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

Archive for the ‘Apple’ Category

fixing a Mac home `brew update` that has permission errors (after that I could install plantuml)

Posted by jpluimers on 2017/01/26

I had this occurring on my system:

RetinaMBPro1TB:~ jeroenp$ brew update
error: unable to unlink old 'Library/ENV/pkgconfig/10.11/libcurl.pc' (Permission denied)
error: unable to unlink old 'Library/ENV/pkgconfig/10.11/libxml-2.0.pc' (Permission denied)
error: unable to unlink old 'Library/ENV/pkgconfig/10.11/sqlite3.pc' (Permission denied)
To restore the stashed changes to /usr/local run:
  'cd /usr/local && git stash pop'
Already up-to-date.

This is how I solved it:

RetinaMBPro1TB:~ jeroenp$ ls -al /usr/local | grep -w Library
drwxr-xr-x+ 11 jeroenp  admin   374 Mar  9 19:33 Library
RetinaMBPro1TB:~ jeroenp$ sudo chown -R $USER /usr/local/Library/
Password:
RetinaMBPro1TB:~ jeroenp$ brew update
To restore the stashed changes to /usr/local run:
  'cd /usr/local && git stash pop'
Updated Homebrew from d32996d to 638d755.
==> New Formulae
...
==> Updated Formulae
...
==> Renamed Formulae
...
==> Deleted Formulae
...
RetinaMBPro1TB:~ jeroenp$ 

The above solution is based on major python problems · Issue #48301 · Homebrew/homebrew

After that, I could install plantuml (which requires java, just so you know) so now I can create SVGs from it locally:

plantuml -tsvg PSO.network-diagram.PlantUML.txt

Note I had to edit the formula so it installs plantuml-8037 or higher (the git version back then installed plantuml-8031) as it fixed a namespace bug. Since plantuml releases often, be prepared to do some version fiddling.

–jeroen

Posted in *nix, *nix-tools, Apple, Development, Diagram, Home brew / homebrew, Java, Java Platform, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, 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, PlantUML, Power User, Software Development, UML | Leave a Comment »

Lots of new Apple related scans at BitSavers

Posted by jpluimers on 2017/01/22

New scans at BitSavers

Sun Remarketing MFM controller:

Sony disk drive OA-D34V-22 pictures

Service documentation:

 

–jeroen

Posted in Apple, Apple ][, Classic Macintosh, History, Power User | Leave a Comment »

Macintosh SE/30 link clearance

Posted by jpluimers on 2017/01/16

Since I own a Macintosh SE/30…

Mac SE/30, maximum hard disk capacity – Compact Mac –.

–jeroen

PS: non-related, but still fun:

PS/2: Nice series of pictures: Macintosh SE/30 Overhaul | Flickr – Photo Sharing!

Including

https://www.flickr.com/photos/damianward/sets/72157627731094209

16MB RAM SIMMs in a Macintosh SE/30 | Flickr – Photo Sharing!

16MB RAM SIMMs in a Macintosh SE/30

SE/30 System & Newton 2100 | Flickr – Photo Sharing!

SE/30 System & Newton 2100

RetroBright – SE/30 System AFTER | Flickr – Photo Sharing!

RetroBright - SE/30 System AFTER

James Wages is a man on a mission. Where you and I might see a tired old computer that’s not much use to anyone anymore, he sees a decent machine with plen

Source: The SE/30 That Does It All: Interview With An Expert Vintage Mac User | Cult of Mac

 

Posted in Apple, Classic Macintosh, Power User | Leave a Comment »

whatismylocalip alias (actually more like whataremylocalips) and some sed links

Posted by jpluimers on 2017/01/10

Getting the local IP (actually IPs, but most hosts only have a single IP):

# OS X:
alias whatismylocalip='ifconfig | sed -En '\''s/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'\'''
# Linux:
alias whatismylocalip='ip a | sed -En '\''s/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'\'''

I got them via bash – How to I get the primary IP address of the local machine on Linux and OS X? – Stack Overflow

Mac OS X and BSD have ifconfig, but most Linux distributions don’t use ifconfig any more in favour of iproute2, so you use ip a (which is shorthand for ip address show) there.

Their output is similar enough for the sed to work, though. Which surprised be because I didn’t know about the -E option (it lacks in the manual Linux page but it is in the Mac OS X one) which enables POSIX extended regular expressions. In Linux this is documented as -r, but -E also works.

I learned this through the Sed – An Introduction and Tutorial which compares the various versions of sed which also explains about the -n doing no printing.

–jeroen

Posted in *nix, *nix-tools, Apple, bash, bash, 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, openSuSE, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development, SuSE Linux, Tumbleweed | Leave a Comment »

The difference in changing your primary email of an Apple ID and a Microsoft Account

Posted by jpluimers on 2017/01/01

The difference in changing your primary email of an Apple ID and a Microsoft ID:

  • Microsoft Account still requires you to sign in with your (now defunct) old e-mail address as that *is* your primary ID but sends email to your new e-mail addres.
  • Apple ID forgets about your old-email address and requires you to use the new e-mail address to sign in.

Small but important difference…

–jeroen

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

How to securely delete files in OS X 10.11 ‘El Capitan’ | MacIssues

Posted by jpluimers on 2016/12/23

Interesting: diskutil secureErase freespace LEVEL /Volumes/DRIVENAME

–jeroen

Source: How to securely delete files in OS X 10.11 ‘El Capitan’ | MacIssues

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, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »

Ports – MemePix

Posted by jpluimers on 2016/12/19

Cool image of many ports found on Macs, PCs, peripherals, audio and video equipment, including:

Optical Audio “Toslink”, USB A 1.0/1.1/2.0, Firewire 4pin iLink, Firewire 400 1394a, Firewire 800/3200 1394b/c, Ethernet 8P8C/RJ-45, Modem/phone RT-11, Apple Desktop Bus – ADB, Mac Serial, PS/2 keyboard/mouse, USB A 3.0, DE-9F, DB-25  Serial/Com Port, DE-9 Serial RS-232, e-SATA, Centronics, Parallel 36pin, Centronics SCSI 50pin, AT Keyboard, 50 pin SCSI 2, Surround sound, stereo/headphones, line-in, Mic, Digital Audio RCA, AAUI, Composite Audio/Video, S-Video, Component Video, F-Connector RF/COAX, 25-pin Parallel Port/SCI 1/DB-25F, Mac Video/MIDI/gameport/AUI/DA-15, Mini DisplayPort, Mini-DVI, Mini-VGA, Apple Hi-Density Video HDI-45, Apple Display Connector – ADC, LFH60 (dual DVI-D), DMS59 (dual DVI-D), HDMI, Micro-DVI, DisplayPort, DVI Video, DE-15/HD-15/VGA/SVGA.

There are many many more (like micro HDMI, USB-C, various USB 3 forms), but these are the most common ones.

Source: [WayBackPorts – MemePix via See the different types of ports.

Read the rest of this entry »

Posted in Apple, Power User | Leave a Comment »

Shared Google Calendars not showing up on iPhone, iPad, and Mac? Here’s the fix! | iMore

Posted by jpluimers on 2016/12/16

If shared Google Calendars do not show on your iPad, iPod, iPhone or Mac, then go to https://www.google.com/calendar/syncselect (sometimes called https://www.google.com/calendar/iphoneselect) and set a tick mark in front of each calendar you want to appear there. Finally, refresh the calendar list on your iOS device and you are set.

–jeroen

Source: Shared Google Calendars not showing up on iPhone, iPad, and Mac? Here’s the fix! | iMore

Posted in Apple, GMail, Google, GoogleCalendar, iOS, iPad, iPhone, iPod, iPod touch, Power User | Leave a Comment »

“the user name or password for imap.gmail is incorrect” – iPad, iPod or iPhone with iOS < 7

Posted by jpluimers on 2016/12/13

If you ever get a “the user name or password for imap.gmail is incorrect” on an iPad, iPod or iPhone with iOS version less than 7, then don’t waste time about entering captchas or fiddling with URLs: it took me 2 hours to find this is caused by GMail enforcing OAuth2 and blocking less secure apps mid 2014 after announcing it in April 2014.

Note that besides iOS < 7, these are also considered unsafe: the Mail-app on Windows Phone-version less than 8.1, some versions of desktop e-mail clients like (tadaaaaa!) Microsoft Outlook and Mozilla Thunderbird.

Almost all searches for the error message lead you into trying to opening Safari on your iOS device visiting http://www.google.com/accounts/DisplayUnlockCaptcha or switching your servers from gmail.com to googlemail.com (or back), but these tricks don’t help.

What does help is (if you really insist on using a less secure app) to enable these less secure apps in your google account: https://www.google.com/settings/security/lesssecureapps. Note this does not work when you have 2-step verification enabled.

I came across this when donating my old iPad 1 devices and the people could not use it for GMail. Since the GMail app in iTunes doesn’t support iOS 5.1.1 any more basically the devices are now glorious photo frames.

–jeroen

Posted in Apple, GMail, Google, GoogleCalendar, iOS, iPad, iPhone, iPod touch, Power User | Leave a Comment »

You cannot create an iTunes Store, App Store, or iBooks Store account without a credit card. You  – Apple Support

Posted by jpluimers on 2016/12/09

So I gave my mom an iPad. But she doesn’t have a credit card. As having one is not usual for Dutch people, especially for elderly Dutch people. Why would you need one if you can pay anything you require online with your Bank Card?

Well: from an iPad, you cannot sign in to iTunes without first adding a credit card. There is no other way. No bank account (which is very common in Europe). No iTunes voucher. No nothing. This is what you have to do:

If you’ve already created your Apple ID, you’ll need to add a payment method when you first use it to sign in to the iTunes Store, App Store, or iBooks Store. But you can optionally remove the payment method after you sign in to the store. You won’t be asked for a payment method again until you make your first purchase.

I haven’t even checked iTunes for on her PC, as iTunes is so utterly user unfriendly (for instance you cannot drag-drop music to your iPad from a folder. You need iTunes and I’d need to explain here about all sorts of clouds other than where rain comes from) that I won’t even try to teach her how to use it.

What I finally did is add my own credit card (apparently they don’t do name or address checks), then remove it.

–jeroen

Source: Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method – Apple Support

Posted in Apple, iOS, iPad, iTunes, Mac OS X / OS X / MacOS, Power User | Leave a Comment »