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

Archive for the ‘Apple’ Category

SSH tricks

Posted by jpluimers on 2012/08/24

SSH tricks

SSH tricks

Recommended reading:  SSH tricks

Quote:

SSH is a protocol for authenticating and encrypting remote shell sessions.

But, using SSH for just remote shell sessions ignores 90% of what it can do.

$ ssh home -L 80:reddit.com:80

This article covers less common SSH use cases, such as:

  • using passwordless, key-based login;
  • setting up local per-host configurations;
  • exporting a local service through a firewall;
  • accessing a remote service through a firewall;
  • executing commands remotely from scripts;
  • transfering files to/from remote machines;
  • mounting a filesystem through SSH; and
  • triggering admin scripts from a phone.

–jeroen

via: SSH tricks.

Posted in *nix, Apple, Cygwin, Endian, Internet, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »

Tonido as alternative to DropBox (via: Bei sensiblen Daten lieber eigene Cloud-Lösung – c’t – PresseBox)

Posted by jpluimers on 2012/07/30

On the research list (wow, Google Translate is very accurate this time!): Tonido

More and more programs allow users to cut the cord of cloud providers like Google and Dropbox. The Tonido software is suitable for example for users who want to make sensitive customer or patient data accessible on multiple devices without outsourcing it to an external server. “Once you have installed Tonido on your PC and create an account, you can in the local network, but also on the move access to a PC or mobile devices on the complete data set”

Original German text from the mid December 2011 issue of c’t Magazin:

Immer mehr Programme ermöglichen es Anwendern, sich von Cloud-Anbietern wie Google oder Dropbox abzunabeln. Die Software Tonido eignet sich beispielsweise für Nutzer, die sensible Kunden- oder Patientendaten auf mehreren Geräten zugänglich machen wollen – ohne sie auf einen externen Server auszulagern. “Sobald man Tonido auf dem eigenen PC installiert und ein Konto angelegt hat, kann man im lokalen Netz, aber auch von unterwegs mit PC oder Mobilgeräten auf den kompletten Datenbestand zugreifen”

Thanks Noud van Kruysbergen for translating the German c’t article into Dutch.

–jeroen

via: Bei sensiblen Daten lieber eigene Cloud-Lösung – c’t – PresseBox.

Posted in *nix, Linux, 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, Power User, Windows, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP | Leave a Comment »

Mac OS X: Copy and paste the full path of a file in the Finder (via: Reality Distortion)

Posted by jpluimers on 2012/07/27

FilePathToClipCMPlugin is a live saver.

  1. Download it.
  2. Open the .dmg
  3. Open a new Finder window
  4. Point it to the folder “/Library/Contextual Menu Items/” or to “˜/Library/Contextual Menu Items/” (create the latter if it does not exist).
  5. Drag the required plugins there
  6. Restart your machine (restarting the Finder did not work for me)

–jeroen

via: Copy and paste the full path of a file in the Finder — Reality Distortion: Macs, Mac OS X, and Apple stuff.

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

Reference desktop client for the Google Authenticator (OS X, Windows, Linux) – via: mclamp/JAuth · GitHub

Posted by jpluimers on 2012/07/20

It runs on OS X, Windows and Linux:

JAuth is a reference desktop client for the google authenticator. Intended

as an alternative to the iPhone Google Authenticator app and similar.

And it comes with installers in addition to source code.

Interesting.

–jeroen

via: mclamp/JAuth · GitHub.

Posted in *nix, Apple, Google, GoogleAuthenticator, Mac, Mac OS X / OS X / MacOS, Power User, Windows | Leave a Comment »

Hollerith and why we have digraphs in Pascal and trigraphs in C/C++ (nostalgia, Apple ][ plus)

Posted by jpluimers on 2012/07/04

Apple ][ plus keyboardSome nostalgia (:

In the mid 80s, when programming in UCSD Pascal and Turbo Pascal, I learned that Pascal has (. and .) digraphs that translate into [ and ], similar to the (* and *) digraphs that translate to { and }.

In fact I thought the English word was bigraph (as bi- is a prefix for twice, just like tri- is a prefix for thirce).
The digraphs are lexical alternatives (Pascal ISO  standard 7185:1990 paragraph 6.1.9 or Extended Pascal ISO standard 10260:1990 paragraph 6.1.11). There is even one more: the @ at-sign is a lexical alternative for the ^ caret.

Back then (I was in my teens, there was no internet yet and school library had nothing on programming) I thought these were because keyboards like those of the Apple ][ plus couldn’t emit [ and ], but I was wrong: it was in fact the Hollerith Card Code that could not represent these characters.

That limitation was because of the first Pascal implementation was done on a CDC 6000 series that used punched card readers/writers.  You could not punch arbitrary numbers of holes on each row (lace cards lacked structural strength) limiting the character codes you can represent.

They still work in the Delphi compiler for arrays and for comments (I just learned that various Pascal implementations use different rules of mixing digraph and normal comments (some even allow nesting)).

While I taught myself C and C++ just as I taught myself Pascal, somehow I never learned that they use lexical alternatives too. It was only recently that they do, both as trigraphs and as of C99 also as digraphs and that there is even a trigraph tool as part of the C++ personality of RAD Studio 2007.

–jeroen

Posted in Apple, Apple ][, C++, Delphi, Development, History, Keyboards and Keyboard Shortcuts, Power User, Software Development | 1 Comment »

How much USB power does a device use or provide? Apple Computers and Displays: Powering peripherals through USB

Posted by jpluimers on 2012/05/28

Two quotes:

Apple peripheral devices may request more than 500 mA (Milliamps) at 5 V (Volts) from a port to function or to allow for faster charging. Such Apple peripheral devices include:

  • Apple MacBook Air SuperDrive (when connected to supported computers)
  • Aluminum Wired Keyboard*
  • iPod
  • iPhone
  • iPad

Open System Profiler to find more information about peripheral power requirements, or contact the manufacturer of your peripheral. For the most accurate information about power usage, make sure your device is connected directly to your Apple computer or display before opening System Profiler.

All this because of the iPad charging challenge.

–jeroen

via: Apple Computers and Displays: Powering peripherals through USB.

Posted in Apple, Gadget, Power User | Leave a Comment »

Mac keyboard shortcut to move things to the Trash – Mac Guides: command-backspace #mac #keyboard #shortcut

Posted by jpluimers on 2012/05/18

Some shortcuts on the Mac are difficult for me to remember. For instance the one to move something from the Finder to the Trash.

The guides on Trash at MacRumours.com to the rescue:

Deleting items

You delete files and folders by moving them to the Trash. You can:

Drag and drop a file on the trash icon in the dock

Control-click on a file and select “Move to Trash” from the menu

Select a file or files and use the keyboard shortcut: command-backspace

Select a file or files and choose “File > Move to Trash” from the menu bar

Notes:

Read the rest of this entry »

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

Mac & Windows – How to prevent screensaver from kicking in

Posted by jpluimers on 2012/05/14

A few tools to prevent your screensaver to run:

Windows (most seem to work with Windows 7 too)

Note: on Windows 7 this will not prevent the inactivity timer on an RDP connection!

Mac OS X

–jeroen

via: windows xp – How to prevent screensaver – Super User.

Note: no need to write it yourself :)

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, Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »

Affordable MacBook Air physical USB ethernet adapter

Posted by jpluimers on 2012/01/13

DealExtreme product #34691: USB 2.0 10/100Mbps RJ45 LAN Ethernet Network Adapter Dongle

A big drawback from a MacBook Air is that it only have wireless LAN/WiFi (in the form of Integrated AirPort Extreme 802.11 a/b/n/n), no physical ethernet.

Transferring large amounts of data over any WiFi is can be a pain (being slow, suffer from signal quality) and for the MacBook Air: it makes the built-in fan swirl like crazy.

Since the MacBook Air does not have USB 3.0, I went looking for a 100 Mbps USB Ethernet dongle for it, and fone the DealExtreme product #34691: USB 2.0 10/100Mbps RJ45 LAN Ethernet Network Adapter Dongle.

At a price of about USD 7 including shipping, it comes in an Apple compatible shiny white color too, nicely fitting the 4 port USB hub (DealExtreme # 45773) on the right  :)

Even better: it works like a charm!

Note that first need to download and install the ASIX AX88772B drivers first. Choose the Apple Mac OSX 10.4 to 10.7 Driver for x86 and Power PC download package labelled “For Apple x86/Power PC, 32-bit/64-bit platforms”.

The install tells you to reboot at the end, but no need for that: as soon as the install finishes, the USB Ethernet dongle works. And it is fast too: 12 megabyte/second over a 100 megabit cable is fast!

In the readme of those drivers, it also mentions the AX88178, which is capable of gigabit (there is a separate AX88178 driver download page and Mac OS X download package).

NB: the cool thing about both these ASIX chipsets is that they are supported on a broad range of platforms (Mac, Linux, Windows CE, Windows 7/Vista/XP/2003/2000) and bit sizes (32-bit and 64-bit).

For even faster transfers, I might try the DealExtreme product #15336: Arkview USB 2.0 1000Mbs Gigabit Ethernet LAN Network Adapter.

It is slightly less than USD 20, and  user Janipro indicates it is based on the ASIX AX88178 chip at the DealExtreme forum.

On the other hand: I might not, as for more than twice the price, user cyberic mentions in the same forum thread it is only about twice as fast: 23 megabytes per second, about half the maximum USB 2.0 speed of 480 Mbps. And it is not Apple white :)

–jeroen

Via: USB 2.0 10/100Mbps RJ45 LAN Ethernet Network Adapter Dongle – Free Shipping – DealExtreme.

Posted in Apple, LifeHacker, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook-Air, Power User | Leave a Comment »

Resetting the SMC solved my MacBook Air Fan Noise With Lion problem

Posted by jpluimers on 2012/01/09

This might have been caused by my MacBook Air haning itself one time during resume: I manually turned it off keeping the on/off switch pressed for 5+ seconds, then rebooted.

Anyway: over time I observed that the fan was running fast without much CPU/GPU/memory/disk activity.

Resetting the SMC like the answer below, followed by resetting the PRAM and NVRAM solved my issue.

I had exactly these issues with my new Macbook Air 13.  Having read this forum I downloaded istat pro and discovered that my fan was always running at over 4000 rpm and the top left part of my case was quite warm.  I then followed the instructions here…resetting the SMC and after this the problem was fixed!

–jeroen

via MacBook Air Fan Noise With Lion: Apple Support Communities.

Posted in Apple, LifeHacker, Mac OS X 10.7 Lion, MacBook, MacBook-Air, Power User | 1 Comment »