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,861 other subscribers

Archive for the ‘MacBook-Air’ Category

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 »

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 »

Restore music and video from iPod: the iPod_Control\Music folder

Posted by jpluimers on 2015/10/09

When you’re not a frequent iTunes user, and recycle computer systems, then every once in a while you will get you in to a situation where you have Music on your iPod, but not on your PC any more.

Whereas iTunes is great at putting music on an iPod, it cannot get it back.

There are numerous paid tools to get the music from your iPod, but doing it manually is not that hard. Below are a few links to get you started, but they all come down to this:

  1. Your iPod has a hidden folder called iPod_Control in the root
  2. Inside the iPod_Control folder is a folder called Music
  3. Inside the Music folder, there are folders named with letters and numbers like F00
  4. Each numbered folder has media (music, video or even photos!) files with a strangely encoded name like B00N.mp3 or 3DUN.m4v with supported media extensions including mp3 m4a m4p jpg gif tif m4v mov.
  5. The media files contain meta data with song, artist, album, etc.

The steps to copy them back

  1. Do not erase your iPod when opening it in iTunes!
  2. Ensure you can mount your iPod as a disk (the “enable disk use” option in iTunes)
  3. Mount your iPod as a disk in Mac or PC
  4. Ensure you can view the hidden files
  5. Copy the Music folder including all subfolders to your Mac or PC
  6. Unhide the Music folder and all Music and Music/F* folders inside it using this chflags trick from Unhiding Unix Directories | Apple Support Communities:
    1. chflags nohidden Music
    2. chflags nohidden Music/F*
  7. Add these to your iTunes library and have iTunes re-generate the correct filenames from the meta-data

Some links explaining this in more detail:

–jeroen

Posted in Apple, iPod, iTunes, 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, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9 | 2 Comments »

Introducing the new Microsoft Remote Desktop Preview app for Mac – Remote Desktop Services (Terminal Services) Team Blog – Site Home – MSDN Blogs

Posted by jpluimers on 2015/09/11

During the last update of Microsoft Remote Desktop for my Mac, I noticed there is a beta available with a feature very familiar for users of visionapp – ASG-Remote Desktop: it allows you to manage common credentials.

Note the uncommon URLs of both the beta page redirect and the download:

In the mean time, I learned that “Microsoft has acquired HockeyApp. This is a tremendous opportunity to continue to provide developers with the best app development tools and users with the best app experiences.”, but the aka.ms is new to me. Anyone knows what it is about? A successor of go.microsoft.com/fwlink redirects?

New Mac OS X beta of Microsoft Remote Desktop announced.

New Mac OS X beta of Microsoft Remote Desktop announced.

I’m keeping an eye on this, as future features interest me much: Multiple monitors, Clipboard redirection, Remote Desktop Gateway, Remote Resources (RemoteApp and Desktop Connections), and Azure RemoteApp preview.

BTW: I wasn’t aware Remote Desktop made it this many platforms yet, as I’m mainly a Windows 8.x/7, Mac and Android user, but here you go:

  1. Windows 10 Universal Windows platform (Preview).
  2. Windows 8.1.
  3. Windows Phone.
  4. iOS.
  5. Mac OS X.
  6. Android.

–jeroen

via:

Posted in Apple, Mac, Mac OS X / OS X / MacOS, 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, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | 1 Comment »

50+ and 25+ Ah batteries: Macbook External Battery & Car Adapter Charger from MikeGyver

Posted by jpluimers on 2015/07/06

Wow:

  • 52800mAH Ultimate External Battery for Macbooks
  • 26000mAH Macbook External Battery & Car Adapter

That’s (nah Triad) 50+ and 25+ Ampere hour of battery capacity.

Which is the similar to what car and motor cycle batteries can hold.

–jeroen

via Macbook External Battery & Car Adapter Charger.

Posted in Apple, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »

Intermittent but frequent OS X pauses may be from iCloud syncing | MacIssues

Posted by jpluimers on 2015/05/21

fseventer is a great tool for investigating Mac OS X file system events. Like many low-level tools, it requires admin privileges.

This is apparent through the use of the tool “fseventer” which monitors what files on your hard drive are being accessed.

–jeroen

via: Intermittent but frequent OS X pauses may be from iCloud syncing | MacIssues.

Posted in Apple, 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, 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 »

Setting the SMB/Netbios name of your Mac

Posted by jpluimers on 2015/03/30

Even after changing the name of your Mac, from the Windows side it still looks like this:


C:\Users\developer>net view
Server Name Remark
——————————————————————————-
\\MACBOOKPRO-4C7F Jeroen's MacBook Pro
The command completed successfully.

I knew I had solved this in the past, as the MacBook Air showed up correctly in the list:


C:\Users\developer>net view
Server Name Remark
——————————————————————————-
\\MACBOOKPRO-4C7F Jeroen's MacBook Pro
\\MBAIR133JWP MBAIR133JWP
The command completed successfully.

The trick is that there are 2 names for your Mac: the name for the Apple side of things, and the name for the Windows side of things. For the latter you’d think it would be named SMB or NetBIOS. Read the rest of this entry »

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, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »