Archive for the ‘Mac’ Category
Posted by jpluimers on 2016/05/26
Thanks Adrian W for providing the below example in your answer about obtaining GLUE record information for a domain.
It is an excellent showcase for the $IFS Internal Field Separator available in any nx shell.
In this case it is used to get the TLD (top-level domain) from the domain name specified at the command-line.
After that, it obtains the name servers for that TLD, and queries the glue records there, both using dig.
Here is a little shell script which implements Alnitak’s answer:
#!/bin/sh
S=${IFS}
IFS=.
for P in $1; do
TLD=${P}
done
IFS=${S}
echo "TLD: ${TLD}"
DNSLIST=$(dig +short ${TLD}. NS)
for DNS in ${DNSLIST}; do
echo "Checking ${DNS}"
dig +norec +nocomments +noquestion +nostats +nocmd @${DNS} $1 NS
done
Pass the name of the domain as parameter:
./checkgluerecords.sh example.org
–jeroen
via domain name system – How to test DNS glue record? – Server Fault.
Posted in *nix, Apple, bash, Development, DNS, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, openSuSE, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2016/04/25
For one of my USB backup drives, Time Machine was stuck showing “Preparing Backup”.
tmutil (which has a lot of undocumented parameters) helped me out.
tmutil status would not show any change for hours either:
retinambpro1tb:~ root# tmutil status
Backup session status:
{
BackupPhase = ThinningPreBackup;
ClientID = "com.apple.backupd";
DateOfStateChange = "2015-05-04 19:27:31 +0000";
DestinationID = "01AE12C7-1D3E-469E-BE7E-32DA30F0030E";
DestinationMountPoint = "/Volumes/Elements2TB1";
Percent = "-1";
Running = 1;
Stopping = 0;
}
...
retinambpro1tb:~ root# tmutil status
Backup session status:
{
BackupPhase = ThinningPreBackup;
ClientID = "com.apple.backupd";
DateOfStateChange = "2015-05-04 21:13:28 +0000";
DestinationID = "01AE12C7-1D3E-469E-BE7E-32DA30F0030E";
DestinationMountPoint = "/Volumes/Elements2TB1";
Percent = "-1";
Running = 1;
Stopping = 0;
}
So I:
- removed the .inProgress file found by
ls -al /Volumes/Elements2TB1/Backups.backupdb/`scutil --get ComputerName`/*.inProgress
- rebooted with the USB drive attached
- waited for spotlight to complete
- manually started a backup
- verified it made progress using tmutil (you need to run that as root, for instance with
sudo su -)
And it indeed made progress and finished:
Read the rest of this entry »
Posted in *nix, Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »
Posted by jpluimers on 2016/04/01
IRC so: »i> Isotopp: Ich habe jetzt nen Mac als Arbeitsplatzrechner… Was will man als UNIX Hacker zuerst an Tools installieren?«
Source: IRC so: »i> Isotopp: Ich habe jetzt nen Mac als Arbeitsplatzrechner… Was will… by Kristian Köhntopp.
Since G+ is very bad at searching, I created this summary of the tools; read the full G+ post (Google Translate is quite OK), including comments on why.
Edit: 20160402 – I’m posting regular updates based on the comments for that G+ post. I’ve changed or added German iTunes store links to US-English ones.
Read the rest of this entry »
Posted in Apple, Audacity, Audio, Fusion, Hardware, Keybase, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Pro, Media, OS X 10.10 Yosemite, OS X 10.11 El Capitan, Power User, Security, VirtualBox, Virtualization, VMware | Leave a Comment »
Posted by jpluimers on 2016/03/18
Nice summary for just saying “Use Tunnelblick”
This howto article explains how to obtain and setup a Mac openvpn client to connect to the OpenVPN Access Server.
Source: How to connect to Access Server from a Mac
–jeroen
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OpenVPN, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2016/03/07
Last friday I updated the examples at *nix networking – lsof: How to tell what process has a specific port open on Linux (via: Server Fault) as I needed to document some of the machines around here (so it becomes easier replacing them).
I also added some links to background information and (when I get to using it: OS X still goes without) a good iproute2 starter page.
–jeroen
Posted in *nix, *nix-tools, Apple, Communications Development, Cygwin, Development, Internet protocol suite, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, TCP | Leave a Comment »
Posted by jpluimers on 2016/02/29
Reloop has posted the below for DJ controlers (like Contour IE, Jockey 3 ME and Digital Jockey 2 ME), but it also applies to their mixers, for instance my Reloop RMX-40 USB – Reloop (but not limited to Reloop audio equipment) in combination with either of my:
- MacBook Air (13-inch, Mid 2011)
- MacBook Pro (Retina, 15-inch, Late 2013)
All these machines have USB 3.0 ports. But the workarounds below work:
Read the rest of this entry »
Posted in Apple, LifeHacker, Mac OS X / OS X / MacOS, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2016/02/26
It’s obvious if you have seen this once, but it wasn’t clear to me how to play only individual songs from a playlist. Luckily my search got this step by step guide as the first hit:
- Create the playlist.
- Uncheck all of the check boxes in the playlist (In iTunes for Windows, ctrl click one of the check marks to uncheck all of the checkboxes at once)
- Now double click (or select and press spacebar) a song to play it. It will stop when finished because there is no other song checked to be played next.
- If you want to change back to normal sequential play, ctrl click one of the check marks again to change all of the checkboxes back to the checked status.
The tip works for both Mac and Windows.
I needed this as part of a pub-quiz so I could finish the questions and answers before moving on to the next track in the playlist.
Thanks hiker1251!
–jeroen
via: Tip: How to play a playlist one song at a time … | Apple Support Communities.
Posted in Apple, iTunes, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, Power User, Windows | Leave a Comment »
Posted by jpluimers on 2016/01/29
I’m not the only one with a Mac having issues with Google Chrome Helper CPU usage, but most of the entries are for older Chrome versions. So below are the steps I performed. There are also pros and cons are after the steps.
In chrome://settings/content, under “Plugins”, I ticked “Let me choose when to run plugin content” (it was at “Detect and run important plugin content (recommended)”. That dialog doesn’t allow you to copy it’s content, so no HTML, just this screenshot:

In chrome://plugins/ I disabled this one:
Adobe Flash Player – Version: 20.0.0.267 (Disabled)
Shockwave Flash 20.0 r0
| Description: |
Shockwave Flash 20.0 r0 |
| Location: |
/Users/jeroenp/Library/Application Support/Google/Chrome/PepperFlash/20.0.0.267/PepperFlashPlayer.plugin |
| Type: |
PPAPI (out-of-process) |
| MIME types: |
| application/x-shockwave-flash |
Shockwave Flash |
|
| application/futuresplash |
Shockwave Flash |
|
|
|
Pros of these settings:
- If you have a lot of tabs open (many of them suspended using The Great Suspender), then Google Chrome Helper uses far less CPU.
- Youtube doesn’t use the Flash Player any more. It now uses HTML5 which seems far more battery friendly and more responsive.
Cons of these settings:
- PDFs don’t automatically open any more, nor auto-download. You get something like this:
.
–jeroen
Posted in Apple, Chrome, Google, Mac, MacBook, MacBook Retina, PDF, Power User | Leave a Comment »
Posted by jpluimers on 2016/01/27
Even after the SpeedTouch password algorithms were disclosed 2008, ISPs keep using weak algorithms to generate their default WPA/WPA2 passwords in their routers:
A short while ago, blasty published code to generate the WPA2 passwords for UPC routers. Even though Ziggo now owns UPC, a lot of this UPC equipment is still in use. I guess it won’t be for long that similar code for Ziggo routers will be published too.
The code at https://haxx.in/upc_keys.c is easy to download, build and run on a Mac OS X machine even when you don’t have Xcode installed (use the “xcode-select –install” trick):
wget https://haxx.in/upc_keys.c
gcc -O2 -o upc_keys upc_keys.c -lcrypto
./upc_keys UPC0053284 5
./upc_keys UPC0053284 24
–jeroen
Posted in *nix, *nix-tools, Apple, C, Development, gcc, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, Power User, Software Development | Leave a Comment »
Posted by jpluimers on 2016/01/25
The solution: add both the +noall and +answer flags before the query.
dig +noall +answer google.de
–jeroen
via dig show only answer – Server Fault.
Posted in *nix, *nix-tools, Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, Power User, SuSE Linux | Leave a Comment »