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

Archive for the ‘Mac OS X / OS X / MacOS’ Category

If you miss having the Caps Lock button on your #Chromebook… (via: Google Chrome – Google+)

Posted by jpluimers on 2014/02/13

This reminds me about mapping the CapsLock to Windows-key on old Lenovo keyboard (you can do that [Wayback/Archive] with ReMapKey from Microsoft, the [Wayback/Archive] slightly more convoluted open source SharpKeys, or a AutoHotKey script), and a [Wayback] Mac equivalent:

MacOS:

I like to have a second Control key instead of Caps Lock.

In OS X, go to System Preferences -> Keyboard -> Keyboard -> Modifier Keys… and change or turn off Caps Lock, Control, Option and Command.

For more radical key remapping in OS X, use KeyRemap4MacBook. Despite the name, it works on non-Macbook machines, too.

ChromeBook:

If you miss having the Caps Lock button on your #Chromebook, you can turn the Search button into a Caps Lock button in a couple steps: find “Keyboard Settings” under the “Settings” menu, and select “Caps Lock” under the “Search” drop-down menu.

Or you can use this quick link on your Chromebook: chrome://settings/keyboard-overlay

Chromebook has [Wayback/Archive] quite some different keys than a Windows keyboard.

Ben Ostrowsky has a nice post with an SVG drawing of the [Wayback/Archive] Chromebook keyboard layout.

Read the rest of this entry »

Posted in Apple, Chromebook, Google, Keyboards and Keyboard Shortcuts, 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, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Tagged: , , , , , | Leave a Comment »

nmap finger printing: Usage and Examples

Posted by jpluimers on 2014/02/13

Just append -O and -v to a command-line:

nmap -O -v ip-address

Note you need administrative privileges for this on Mac OS X, so there you run it like this:

sudo nmap -O -v ip-address

If you want to scan more than the default 1000 TCP ports, then use the -p- switch:

sudo nmap -O -v -p- ip-address

For more info about the finger printing algorithms used by nmap:

–jeroen

via: Usage and Examples.

Posted in *nix, Apple, Linux, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, SuSE Linux | Tagged: , | Leave a Comment »

Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X

Posted by jpluimers on 2014/02/13

You don’t want to fully open your Mac to always install applications, so I’m glad that OSXDaily provided multiple workarounds:

Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X.

I needed it to install the nmap binary for OS X.

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Tagged: , | Leave a Comment »

Mac OS X: How do you run JavaScript script through the Terminal? (via: Stack Overflow)

Posted by jpluimers on 2014/02/11

Now I have these aliases in my ~/.bash_profile:

alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc'
alias JavaScript='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc'

Now I can use the WebKit jsc from the console.

Thanks User microspino – Stack Overflow for this answer: Read the rest of this entry »

Posted in Apple, Development, JavaScript/ECMAScript, 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, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development | 1 Comment »

Fixing Inverted Caps Lock on VMWare Fusion, Parallels, or Remote Desktop (RDP/MSTSC)

Posted by jpluimers on 2014/02/10

Every now and then my Mac RDP program will suddenly turn on the CAPS LOCK on the connected Windows terminal.

It happens on different OS X versions, and different Windows versions. I haven’t figured out the steps to reproduce yet. I will amend this post when I have (:

I also have it occasionally fail when I RDP from a physical Windows system to another Windows system, but far less than from Mac OS X.

You work around it using the On Screen Keyboard tool in Windows like Josh Adams explains:

  • launch the On-screen Keyboard application (generally this can be done by choosing Start ==> All Programs ==> Accessories ==> Accessibility ==> On-screen Keyboard; as noted by DrFooMod2 in a comment below, you can also bring up the On-screen Keyboard by typing “osk” without the quotes in the Windows Run… box) and
  • toggle Caps Lock by clicking on the virtual “lock” button in the application.
  • The On-screen Keyboard application shows–and can change–the state of Caps Lock

The easiest way to start the On Screen Keyboard is to create a shortcut to this:

%windir%\system32\osk.exe

–jeroen

via: Josh Adams’s Blog: Fixing Inverted Caps Lock on VMWare Fusion, Parallels, or Remote Desktop.

Posted in Apple, Keyboards and Keyboard Shortcuts, 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-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | 1 Comment »

OS X menu keyboard shortcuts: Ctrl-F2 and Shift-Command-?

Posted by jpluimers on 2014/02/04

So I don’t forget:

Often, Ctrl-F2 (^-F2) fails to show the menu, but ⇧ ⌘ ? (shift+command+/) works all the time.

You can navigate the menus in the menu bar without using a mouse or trackpad. To put the focus in the menu bar, press Control-F2 (Fn-Control-F2 on portable keyboards). Then use the key combinations listed below.

Left Arrow and Right Arrow Move from menu to menu
Return Open a selected menu
Up Arrow and Down Arrow Move to menu items in the selected menu
Type the menu item’s name Jump to a menu item in the selected menu
Return Select a menu item

–jeroen

via:

Posted in Apple, Keyboards and Keyboard Shortcuts, 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, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »

To force-quit Mac Applications: the Mac equivalent of “Ctrl Alt Delete” (via: eHow.com): Option-Command-Esc

Posted by jpluimers on 2014/02/03

Once every while, a full screen app on your Mac hangs, and there is no way to Command-Tab to another application.

PC addicts then press Ctrl+Alt+Del, to either get to the Task Manager, or to logoff/reboot.

For a Mac, there are two:

  1. Force Quit Read the rest of this entry »

Posted in Apple, Keyboards and Keyboard Shortcuts, 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-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

How to Keep Alive SSH Sessions (getting rid of the “Write failed: Broken pipe”)

Posted by jpluimers on 2014/01/25

Getting rid of the dreaded “Write failed: Broken pipe”.

Note the difference of ServerAliveInterval/ServerAliveCountMax and ClientAliveInterval/ClientAliveCountMax.

For Mac, Linux and CygWin: Read the rest of this entry »

Posted in *nix, Apple, Cygwin, 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, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, SuSE Linux | Leave a Comment »

7za in the OS X Terminal on your Mac

Posted by jpluimers on 2014/01/25

On both Windows and OS X, I use 7zip a lot. Usually the GUI versions (currently 7z920 on Windows and Keka 1.0.4 on OS X).

But for some purposes (for instance: compressing .lnk files) the 7za command-line version is a must (it has lots of options).

Note that the Windows 7za command-line version is 32-bit.

If you handle really large files on Windows, you might want to use the 64-bit 7z.exe that is in `%ProgramFiles%\7-Zip\7z.exe`.

There are a few ways to install the 7za console version on a Mac so you can access 7za from the Terminal in OS X. Read the rest of this entry »

Posted in 7zip, Apple, Compression, 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, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »

Happy 30th birthday Mac!

Posted by jpluimers on 2014/01/24

Being away from a computer sometimes means you forget about events.

So before I forget: happy 30th birthday Mac!

For me, real programming started 31 years ago on an Apple II at high school, soon followed by a II+ and a //e. At first, I was programming in both Integer Basic and AppleSoft Basic, then with Apple Pascal (which was based on UCSD Pascal, but way too slow), and finally with Turbo Pascal 1.0 (after they installed a Microsoft Z-80 softcard in a few of the machines which allowed it to run CP/M).

Back then me, nor my parents could afford a computer like a Mac, but I was lucky enough to keep on people at the “close by” (30 minutes by bicycle) University to use one and program in hyper card and various Pascal dialects (and later Delphi).

Now I own a few Macs (most more portable than the //c) bought a //e and //c last summer and collecting some extension cards to make life easier.

Just look at the B&N magazine rack how popular the Apple stuff is today:

image

So again: happy 30th birthday Mac!

Without you, I wouldn’t be a software developer.

–jeroen

via: Apple bracht eerste Mac-computer 30 jaar geleden uit – Computer – Nieuws – Tweakers.

Posted in //e, Apple, Apple Pascal, Delphi, Development, 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, Object Pascal, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Pascal, Power User, Software Development, Think Pascal, Turbo Pascal, UCSD Pascal | 1 Comment »