The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Mac’ Category

some more lsof, netstat and rpcinfo examples

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 »

Reloop RMX-40 USB – when your Mac doesn’t recognise it.

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 »

Tip: How to play a playlist one song at a time … – via: Apple Support Communities

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:

  1. Create the playlist.
  2. 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)
  3. 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.
  4. 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 »

Mac: Google Chrome Helper excessive CPU usage

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
Name: Shockwave Flash
Description: Shockwave Flash 20.0 r0
Version: 20.0.0.267
Location: /Users/jeroenp/Library/Application Support/Google/Chrome/PepperFlash/20.0.0.267/PepperFlashPlayer.plugin
Type: PPAPI (out-of-process)
MIME types:
MIME type Description File extensions
application/x-shockwave-flash Shockwave Flash
.swf
application/futuresplash Shockwave Flash
.spl
Enable Always allowed to run

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:

 

–jeroen

Posted in Apple, Chrome, Google, Mac, MacBook, MacBook Retina, PDF, Power User | Leave a Comment »

Building and running upc_keys.c on Mac OS X

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 »

dig show only the answer section: specify both +noall and +answer – via: Server Fault

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 »

Getting your public IP address from the command-line

Posted by jpluimers on 2016/01/13

Many sites giving your public IP address return a web page with a bloat of html. From the command-line, you are usually only interested in the IP-address itself. Few services return exactly that.

Below are command-line examples to provide the public IP address mostly from a *nix perspective. Usually you can get similar commands to work with Windows binaries for wget and Windows binaries for curl.

In the end, I’ve opted for commands in this format, as I think akamai will last longer than the other sites (but does not include an end-of-line in the http result hence the echo on Mac/*nix):

I’ve not tried aria2 yet, but might provide commands for that in the future.

These are the Linux permutations for akamai:

curl whatismyip.akamai.com && echo
curl ipv4.whatismyip.akamai.com && echo
curl ipv6.whatismyip.akamai.com && echo
curl ipv4.whatismyip.akamai.com && echo && curl ipv6.whatismyip.akamai.com && echo

The last two are convenient when you have both IPv4 and IPv6 configured on “the outside”.

You can replace curl with wget -q -O – (which outputs to stdout) for each command. You can even ommit the http:// (as that is the default protocol for both curl and wget).

Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, bash, bash, Batch-Files, cURL, Development, 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, 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, Scripting, Software Development, SuSE Linux, wget | Leave a Comment »

Mac OS X: integrating Beyond Compare 4 into SourceTree 2.x

Posted by jpluimers on 2015/12/28

Unlike SourceTree for Windows, SourceTree for Mac still doesn’t automagically detect Beyond Compare even though that has been available for Mac OS X since :  [SRCTREE-2092] Add built-in support for Beyond Compare version 4 – Atlassian JIRA.

Even modifying my ~/.gitconfig didn’t work, but manual configuration did. Here are the steps:

  1. Start the UI version of Beyond Compare
  2. Select the Beyond Compare menu, install the command-line tools
    Read the rest of this entry »

Posted in Apple, Beyond Compare, Development, DVCS - Distributed Version Control, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Source Code Management, SourceTree | 3 Comments »

How to verify app signatures in OS X | MacIssues

Posted by jpluimers on 2015/12/18

Interesting:

For codesign verification:

find /Applications -d 1 -name "*.app" -exec codesign --verify --verbose {} \;

For system policy assessment:

find /Applications -d 1 -name "*.app" -exec spctl --assess --verbose {} \;

–jeroen

Source: How to verify app signatures in OS X | MacIssues

Posted in Apple, bash, Development, 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, Scripting, Software Development | Leave a Comment »

OS/X – How to print screen in Remote Desktop Client (RDS) on Mac OS X? – Super User

Posted by jpluimers on 2015/11/16

The only reliable way to create a remote print-screen is by using the Windows On-Screen Keyboard. It even works with Alt-Prt+Sc to make screenshots of individual Windows.

Just run OSK to start the On-Screen Keyboard.

–jeroen

via: osx – How to print screen in Remote Desktop Client (RDS) on Mac OS X? – Super User.

Posted in Apple, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, 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 | Leave a Comment »