Change localhost directory for Yosemite Apache 2.4

I’ve just installed Yosemite and I managed to change the DocumentRoot without any problems. First I modified the following lines in /private/etc/apache2/httpd.conf: DocumentRoot “/Library/WebServer/Documents” <Directory “/Library/WebServer/Documents”> Options FollowSymLinks Multiviews AllowOverride None </Directory> to: DocumentRoot “<CUSTOM_PATH>” <Directory “<CUSTOM_PATH>”> Options Indexes FollowSymLinks Multiviews AllowOverride All </Directory> The above will set a custom DocumentRoot, enable directory listing and … Read more

How can I create Yosemite-style view with translucent/blurry background?

w00t! I’ve found example code that uses not-yet-documented view type: Set XIB’s deployment target to 10.10 Embed your view in NSVisualEffectView In Interface Builder’s settings for the view set appearance to “Vibrant Light/Dark”. There are other options, like blending “Behind Window” or “Within Window” (the latter requires layers). There’s also NSView method allowsVibrancy that you … Read more

Node script executable not working on Mac : env: node\r: No such file or directory

After all, I found the solution to my problem. As my node script file has been created on Windows, the file is DOS format (line endings in DOS format I think). So, I used a module which allow to converting a file to a unix format : brew install dos2unix sudo dos2unix /usr/local/lib/node_modules/task-app/src/task-app.js