note to self: when I need to access the docker host from within a container running in Docker for Mac, the hostname is docker.for.mac.localhost
.
note to self: when I need to access the docker host from within a container running in Docker for Mac, the hostname is docker.for.mac.localhost
.
note to self: when searching a file or directory in OSX it is possible to show or hide the hidden files with the Cmd-Shift-period shortcut
note to self:
to set up a virtual host named viho for local web development testing on OSX El Capitan (and probably earlier):
/etc/hosts
:
127.0.0.1 localhost viho ::1 localhost viho
/etc/apache2/other/viho.conf
:
<VirtualHost *:80> DocumentRoot "/path/to/where/the/files/are" ServerName viho </VirtualHost>
browse to http://viho/ and enjoy.
Note to self:
To start or stop the Apache webserver on Mac OSX El Capitan, use the terminal:
sudo apachectl start sudo apachectl stop sudo apachectl restart
The configuration is found in /etc/apache2/httpd.conf. The default DocumentRoot directory isĀ /Library/WebServer/Documents. Additional configuration files should be put in _/etc/apache2/other/*.conf_ files.
With every update of IntelliJ IDEA, I stumble over this: IDEA wants to run on Java Version 6. As I don’t have this buggy outdated version on my Mac anymore, I always have to patch the config. To do this, locate the file named Info.plist in the Contents folder of the IntelliJ IDEA 14 CE.app directory. Open the file with TextEdit or any text editor of your choice and change the line
<key>JVMVersion</key> <string>1.6*</string>
to
<key>JVMVersion</key> <string>1.6+</string>
After that IJ will start using your default – hopefully actual – java version.
2015-06-21 Update: IntelliJ IDEA 15 EAP has it’s own custom Java8 built in, and also has the possibility to select the JDK to use when starting up. Cool.