note to self: sometimes it happens that applications cannot find a camera on my system, although it is definitely built in and not broken. This can be solved by stopping all applications that may be using the camera and then in a terminal run sudo killall VDCAssistant thanks to http://osxdaily.com/2013/12/27/fix-there-is-no-connected-camera-error-mac/ for this solution (check that link for further details)
just came about this tweet from @cabel: Pro MacBook Pro Tip: have a Touch Bar with Touch ID? If you edit /etc/pam.d/sudo and add the following line to the top… auth sufficient pam_tid.so …you can now use your fingerprint to sudo! Edit 28.05.2019: in iTerm 3.2.9 you have to set under “Preferences/Advanced” the value of “Allow sessions to survive logging out and back in.” to “No” for this to work.
Recently I was testing some applications in a local kubernetes installation running in minikube , especially the access via an ingress. For this I defined the ingress endpoints using a custom otherwise not existing top level domain to produce names like application1.foobar or application2.foobar. (The list of officially registered TLDs can be found at https://www.iana.org/domains/root/db). Now in order to access these applications locally with an URL like http://application1.foobar/ I need to make the DNS resolution resolve this address to the IP address of my local minikube instance.
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
I just needed an apache webserver with PHP 5.6 and some virtual hosts on my Mac running OSX El Capitan. The native OSX apache version comes with an older version of PHP which has no xdebug support, so I shut it down with sudo apachectl stop Installation I installed the following ports: sudo port install apache2 php56 php56-apache2handler php56-xdebug Apache configuration After installing the following commands are needed: cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.
note to self: to set up a virtual host named viho for local web development testing on OSX El Capitan (and probably earlier): define an alias name in /etc/hosts: 127.0.0.1 localhost viho ::1 localhost viho setup the virtual host configuration file /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
Since OSX 10.5, programs downloaded by Safari and other programs like Mail.app get an extended quarantine attribute called com.apple.quarantine. This leads to the behaviour that when starting the program, the user is asked if she really wants to start the program together with the information where the program was loaded from. This attribute is removed once the user who downloaded the file runs the program. Another way to remove the quarantine flag is the following command (the user running this command needs to be in the sudoers file):