Mostrando entradas con la etiqueta mac. Mostrar todas las entradas
Mostrando entradas con la etiqueta mac. Mostrar todas las entradas

9 de marzo de 2015

Reset the DNS cache in OS X

Reset the DNS cache in OS X

Learn how to reset (flush) the DNS cache.

About the DNS cache

OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server. Sometimes it might be necessary to reset the cache immediately and re-query a DNS server. For example, you might need to do this if you are a network or server administrator and an entry on your DNS server has recently changed.
If your Mac isn't using the latest DNS entries from your server, you can restart your Mac to update its cached information. If you need to update DNS entries on a server using OS X and you can't restart the server, use the terminal commands below for the version of OS X you're using.

OS X Yosemite

Use the following Terminal command to reset the DNS cache:
sudo discoveryutil mdnsflushcache

OS X Mavericks, Mountain Lion, and Lion

Use the following Terminal command to reset the DNS cache:
sudo killall -HUP mDNSResponder

Mac OS X v10.6

Use the following Terminal command to reset the DNS cache:
sudo dscacheutil -flushcache

7 de abril de 2014

Installing MySQL-Python in Mac OS X Mavericks

If you are in Mac OS X Mavericks and while trying to install MySQL-Python you run into this error:



This is a what makes the trick:



Then, pip works its way towards installing MySQL-Python OK:



Voilà!

21 de mayo de 2012

Find what you are looking for with grep + find + xargs

Sometimes (very often) you are looking for this particular word of string that you think is in one file of a given project... but you don't know which file, and the project has a zillion files. And you feel like crying.

Well, don't, that's what this post is for :)

Let's go for the command:

$ find -iname | xargs grep -in

Where:
[1] a folder name: for instance, to look from the current folder, use ".".
[2] for instance, for files ending in .py, use this: "*.py"
[3] a string to look for. Case insensitively.

Example: Let's look for the string "hello", case insensitively, between the files of the current folder and its subfolders, inside files with filename ending in .py:

$ find . -iname '*.py' | xargs grep -in 'hello'

The output will say the file(s) and line numbers in those files where 'hello' was found.

17 de mayo de 2012

VOX USB-MIDI Driver for Mac OS X

After digging around the web for a while, searching for the VOX USB-MIDI Driver for Mac OS X for the VOX ToneLab EX, I found it on the VOX Japanese site.

Here's the link: http://voxamps.jp/support/download/usb-midi/mac.html

Direct download link: link.

9 de septiembre de 2011

Disable autocorrection in Mac OS X Lion

I found that Mac OS X Lion came by default with an autocorrection functionality. This can be useful... or a big annoyance!

For instance, it annoyed me when I typed "TRAC" and replaced it with "trace" in one of my daily SCRUM meetings.


Then, how to disable it?

Go to System Preferences -> Language and Text -> Text tab, and disable the check:





Done!