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 ‘Mac OS X / OS X / MacOS’ Category

Mac OS X: Open a Terminal at Folder from Finder / Open Finder at Folder from the Terminal (via: StackOverflow)

Posted by jpluimers on 2015/04/06

Thanks User Chris Page – Stack Overflow for answering on StackOverflow:

  • How to open a Terminal from a selected Folder in the Finder
  • Hoe wo open a Finder at the current Folder in a Terminal

Some quotes of his answer:

As of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service. As with most Services, these are disabled by default, so you’ll need to enable this to make it appear in the Services menu.

System Preferences > Keyboard > Keyboard Shortcuts > Services

Enable New Terminal at Folder. There’s also New Terminal Tab at Folder, which will create a tab in the frontmost Terminal window (if any, else it will create a new window). These Services work in all applications, not just Finder, and they operate on folders as well as absolute pathnames selected in text.

In addition, Lion Terminal will open a new terminal window if you drag a folder (or pathname) onto the Terminal application icon, and you can also drag to the tab bar of an existing window to create a new tab.

Finally, if you drag a folder or pathname onto a tab (in the tab bar) and the foreground process is the shell, it will automatically execute a “cd” command. (Dragging into the terminal view within the tab merely inserts the pathname on its own, as in older versions of Terminal.)

You can also do this from the command line or a shell script:

open -a Terminal /path/to/folder

This is the command-line equivalent of dragging a folder/pathname onto the Terminal application icon.

–jeroen

via: osx – Open terminal here in Mac OS finder – Stack Overflow.

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

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 »

OS X Finder: viewing hidden paths

Posted by jpluimers on 2015/03/27

One of the most frustrating things on a Mac is that the OS X Finder does not allow you to browse all paths.

Unlike Windows the Windows Explorer, where it is fairly easy to switch a preference for enabling/disabling showing the hidden files and folders, there is no option in the Preferences. There is a command-line trick (see below) to enable/disable showing hidden files and folders.

Luckily, both the Windows Explorer and the Mac OS X Finder allow you to specify the full folder path to browse, where you can enter a path that otherwise would (partially) be invisible.

  • Windows Explorer: just enter a full path in the address bar.
  • Mac OS X Finder: press Shift-Command-G (or Menu -> Go -> Go to Folder...), then enter the full path.

An alternative for Mac OS X is the payed (but great tool) Path Finder which is one of the best Finder replacements I know.

Command-line trick to enable/disable Mac OS X Finder hidden folder behaviour

Read the rest of this entry »

Posted in Apple, 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, Power User | Leave a Comment »

Mac OS X: Replicating md5sum Output Format (via: Raam Dev)

Posted by jpluimers on 2015/02/18

Mac OS X has md5, but no md5sum.

I agree with Mac OS X: Replicating md5sum Output Format that the second way of emulating md5 is better than the first one.

So here it is:


#!/bin/bash
/sbin/md5 -r "$@"

view raw

md5sum.bash

hosted with ❤ by GitHub

–jeroen

via: Mac OS X: Replicating md5sum Output Format – Raam Dev

Posted in Apple, bash, Development, Hashing, 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, md5, OS X 10.8 Mountain Lion, Power User, Scripting, Security, Software Development | Leave a Comment »

NotePad++: Text Editor which shows \r\n (via: Stack Overflow)

Posted by jpluimers on 2015/01/26

I hadn’t monitored Notepad++ in a very long time, so I was glad that User Thomas Owens mentioned that it can show you the CR and LF codes:

With Notepad++, you can show end-of-line characters. It shows CR and LF, instead of “\r” and “\n”, but it gets the point across. […]

To use Notepad++ for this,

  1. open the View menu, open the Show Symbols slide out, and
  2. select either “Show all characters” or “Show end-of-line characters”.

I needed this because many development environments get confused when you have text files using a mix of line-break kinds (in my case LF, CR and CRLF).

–jeroen

via Text Editor which shows \r\n? – Stack Overflow.

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

Mac OS X GeekTool: like Windows BgInfo on steroids.

Posted by jpluimers on 2015/01/12

A long time fan of BgInfo on Windows, I was looking for a Mac OS X replacement.

And I found one: GeekTool is on steroids compared to BgInfo (:

Much more than I needed (plenty of add-on scripts too), but more than enough to get some simple text displayed.

–jeroen

via: windows – Tool to put text on desktop wallpaper – Super User.

Posted in Apple, 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, Power User | Leave a Comment »

MRR Software: NameChanger

Posted by jpluimers on 2014/12/22

NameChanger cool visual tool to do pattern based mass-renames on your Mac.

Needs OS X 10.6 or better (Snow Leopard, Lion, Mountain Lion, Mavericks), though previous versions that are still available support all the way back until 10.3 (Panther).

–jeroen

via: MRR Software.

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

(Retina) MacBook tethering: WiFi, Bluetooth and USB. iPhone and Android.

Posted by jpluimers on 2014/12/15

Out of the box, a MacBook can do tethering using:

I’ll point to two things about this below:

  1. WiFi is not always the best wireless tethering method
  2. USB is not restricted to iPhone only Read the rest of this entry »

Posted in *nix, Apple, Google, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Nexus 4, OS X 10.8 Mountain Lion, Power User | Leave a Comment »

Taking Screenshot on multiple platforms (via Wikipedia, the free encyclopedia)

Posted by jpluimers on 2014/11/28

Cool, I just found out that Wikipedia has a Screenshot topic, listing how to take screenshots (and often shots of the current window) on many platforms, where (*) means I verified them:

  • Apple Mac OS X
    (*) Use “⌘ Cmd+⇧ Shift+3” for the screen or “⌘ Cmd+⇧ Shift+4” for a part of the screen (as of Mac OS X Tiger, you can press the “Spacebar” to capture a Window in stead of part of the screen). You can press “Ctrl” with these shortcuts to the shot goes to the clipboard, otherwise it gets saved as a PNG file.
  • Microsoft Windows
    (*) Use “Prt Sc” for the screen or “Alt+Prt Sc” for the Window
    (note that on my laptop and multi-media keyboards, you need to type the “Fn” key in order to press the “Prt Sc”)
  • Microsoft Windows Phone
    Press the “Sleep/Wake” button and the Startbutton at the same time.
  • Apple iOS
    (*) Press the “Home” and “Lock” button at the same time.
  • Google Android
    Hold the “Volume down” button, then press the “Sleep/Wake” button.
    (*) Or press the “Sleep/Wake” and the “Home” button at the same time.
  • HP WebOS
    Press the “Orange/Gray Key+Sym+P” at the same time.
    Or press “Home Key+Power” at the same time.
  • X Window System
    Varies with the installed tooling
  • Maemo 5
    Press “Ctrl+⇧ Shift+P” at the same time.
  • Google Chrome OS
    Press “Ctrl+F5” to capture the screen or press “Ctrl+⇧ Shift+F5” to capture a portion of the screen.

–jeroen

via: Screenshot – Wikipedia, the free encyclopedia.

Posted in Android Devices, Apple, Chrome, Google, HTC, HTC Sensation, 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, Nexus 4, OS X 10.8 Mountain Lion, Power User, Uncategorized, 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 »

Introducing nogotofail—a network traffic security testing tool for TLS/SSL – via: Google Online Security Blog

Posted by jpluimers on 2014/11/07

Great! And it is open source at https://github.com/google/nogotofail:

The Android Security Team has built a tool, called nogotofail, that provides an easy way to confirm that the devices or applications you are using are safe against known TLS/SSL vulnerabilities and misconfigurations. Nogotofail works for Android, iOS, Linux, Windows, Chrome OS, OSX, in fact any device you use to connect to the Internet.

There’s an easy-to-use client to configure the settings and get notifications on Android and Linux, as well as the attack engine itself which can be deployed as a router, VPN server, or proxy.

–jeroen

via Google Online Security Blog: Introducing nogotofail—a network traffic security testing tool.

Posted in *nix, Android Devices, Chrome, Google, iOS, Mac OS X / OS X / MacOS, OpenSSL, Power User, Security, Windows | Leave a Comment »