If you use Google Drive and the OSX app, and like me you often travel and change network connection (VPNs count as well), you may have noticed that it won’t connect anymore.
While I don’t know why exactly, it may be due to some security things in the app itself, I noticed that by restarting the app it connects successfully.
Having to do it more than once a day, here is a simple script that with a double-click will restart it.
If you need a local instance of a mysql database for experiments and don’t really care about security as it’s not any production system here’s a quick way to install a mysql database on your OSX (tested with 10.9+)
- Download the latest OSX native package installation from the
download page. It should be a dmg
- Install it as any other OSX application. It will create under
/usr/local/mysql-x.y.z with a symlink to /usr/local/mysql the
entire directory structure that will be needed by mysql. From now
on I will refer as /usr/local/mysql directory.
- sudo rm -r /usr/local/mysql/data
- sudo mkdir /usr/local/mysql/data
- sudo chown -R <youruser> /usr/local/mysql/data
If everything worked out fine you should be able to start it with
$ mysqld_safe &
to stop it
$ mysqladmin -u root shutdown
I’ve created a couple of aliases and exports in my ~/.profile to ease the tasks
alias mysql-start="mysqld_safe &"
alias mysql-stop="mysqladmin -u root shutdown"
Was just provided of a new laptop with Mac OS X Mavericks on it. Other than I think it’s a very bad product and made me seriously think about moving back to windows, I tried at all costs to solve the main issue I had: if the laptop goes to sleep the WiFi disconnects.
I can understand that for the majority of users this can be awesome but I simply hate it. I can have long-running process that want to have it running for the whole night.
Searched around the web here and there and tried many things. Reached the point where I think it’s not possible to disable this feature, therefore I went in disabling the Sleep completely. This made the trick in my situation.
Issue the following command on terminal:
$ sudo pmset -a sleep 0
Here’s my complete pmset settings:
$ pmset -g
Battery Power -1*
AC Power -1
Currently in use:
by Stuck in Customs via flickr
I’ve started few days ago using Mac OS X. While I still prefer Linux I appreciate the fact that I have the bash power within and I don’t have to go for cygwin anymore. However cygwin is a great tool!
The first thing I had to do was changing the PATH environment variable in my shell for having the newly installed XAMPP binaries. Here is how: edit your ~/.profile file (create it if not exists) and add/change the line export PATH=$PATH:/path/to/your/bins.