osx – Parerga und Paralipomena http://www.michelepasin.org/blog At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Sat, 28 Nov 2015 16:00:28 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.11 13825966 Accessing OS X dictionary with Python http://www.michelepasin.org/blog/2015/11/28/accessing-os-x-dictionary-with-python/ Sat, 28 Nov 2015 15:57:06 +0000 http://www.michelepasin.org/blog/?p=2724 A little script that allows to access the OS X Dictionary app using Python.

Tip: make the script executable and add an alias for it in order to be able to call it from the command line easily.

 

]]>
2724
Upgrading to Lion: tips and tricks http://www.michelepasin.org/blog/2011/10/19/upgrading-to-lion-tips-and-tricks/ http://www.michelepasin.org/blog/2011/10/19/upgrading-to-lion-tips-and-tricks/#comments Wed, 19 Oct 2011 14:01:18 +0000 http://www.michelepasin.org/blog/?p=1643 I’ve finally decided to upgrade my mac operating system from Snow Leopard (10.6.8) to Lion (10.7.2). Not really for the new features such as Mission Control and LaunchPad (which although being pretty cool are not going to change my life) but mostly for the fact that the new OS is well integrated with iCloud. Sharing my iCal calendars, Address book contacts and other useful stuff across my apple computers and mobile devices is going to be a digital-life-changer, hopefully for the better.

Unfortunately as usual an OS upgrade is never as smooth as I would like it to be; so here’s a list of the problems I ran into (and still am), with pointers to solutions whenever I found one.

Tip: A useful place where to get info about Lion is here: http://osxdaily.com/tag/mac-os-x-10-7/

1. Wi-Fi disconnection issues

This is quite a bad one: my wifi connection wouldn’t stay on for more than 2-3 minutes at times, making it impossible to do any continuative work online. After a lot of swearing and searching online, I found a good solution on this article on iLounge.com. The article offers many solutions, but the one that worked for me is to manually downgrading the Atheros WiFi driver which seems to be ill on Lion to the version provided with Snow Leopard (comment 53). Here’s the recipy:

1. run kextstat | grep -i atheros
if a line was returned, you are most likely using Atheros WiFi card and the related kext
2. In your home folder create two directories: cd && mkdir New Old
3. If you have a copy (time machine backup) or other system installed with Snow Leopard (as latest as possible), take a copy of /System/Library/Extensions/IO80211Family.kext and put it into ~/Old/ directory
[P.S. if you don’t know where to get that file, I’ve uploaded a copy here: IO80211Family.kext.zip]
4. (Back on to your main system) gain root access: sudo -s
5. Move: mv /System/Library/Extensions/IO80211Family.kext ~/New/
6. Move cache file: mv /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache ~/New/
7. copy old kext: cp -r ~/Old/IO80211Family.kext /System/Library/Extensions/
8. go to: cd /System/Library/Caches/com.apple.kext.caches/Startup/
9. rebuild cache: kextcache -v 1 -a i386 -a x86_64 -mkext kernelcache /System/Library/Extensions
10. Using GUI Utilities->Disk Utility->Macintosh HD->Repair permissions
11. pray and reboot

2. Install the latest Xcode and Developer Tools

This is number 2 in the list, but really it should be number 1 if you are a software developer. The latest Xcode (4.2, get it on the apple store for free) includes all sorts of low and high level programming frameworks, from C compilers to Python interpreters. In other words, without reinstalling Xcode tons of software development environments won’t run as usual!

Installing Xcode is very easy, here’s a nice tip to keep in mind though (as found here):

When installing XCode, for some unknown unholy rea­son, if you have not quit itunes, and itunes helper (see activ­ity mon­i­tor) prior to start­ing the XCode installer, the install will hang. Do your­self a favor and kill it with fire.

Also, two more crucial things to keep in mind:

– Remem­ber; the binary direc­tory for the dev tools is in /Developer/usr/bin/ — this includes gcc-4.2
– Do your­self a favor, drop “export ARCHFLAGS=”-arch x86_64″” into your .bash_profile.

The last point is extremely important; make sure you do that otherwise you’ll easily run into all sorts of 32 vs 64 bits architectures conflicts that (if you’re like me) you have no time to get into (more info here).

3. Fix your Python installation

On my iMac I couldn’t run iPython anymore; this was surprisingly easy to fix, I just run again easy_install ipython from the command line and there you go iPython went back up (version 2.7, the default one with Lion).

This didn’t work on my other mac though (a slightly older MacBook); the easy_install ipython trick failed with a DistributionNotFound error; if this is the case, you probably have to re-install Apple’s Developer Tools (see point 2 above).
However before doing that you might want to consider this good tip which I found here:

1. Make a list of all the third-party libraries you currently have installed under Python 2.6, because you’ll have to reinstall all of them for 2.7 and you won’t have the 2.6 site-packages directory to refer to.
2. Update to Lion.
3. Update to Xcode 4.1. It’s free in the App Store.

Good, so I installed XCode 4 (= Apple’s Developer Tools) but I still had a problem: for some reason the default python binary (/usr/bin/python) was still pointing at the 2.5 release, instead of the 2.7 that comes with Lion. This was easily fixed by issuing this command:

defaults write com.apple.versioner.python Version 2.7

Two final steps are then required:

a) Download the 2.7 version of setuptools and install it (e.g. sudo sh setuptools-0.6c11-py2.7.egg);
b) re-install iPython via setuptools: sudo easy_install ipython

Obviously I’ll have to manually install under 2.7 all the libraries I used to have on 2.6, but that can be done incrementally and thanks to easy_install it’s also quite quick.

For more discussions on python and Lion, check out these posts: Quick Python/Developer tips for OSX Lion and Python problems on Lion.

4. The Mercurial binaries disappeared

What the heck. You need to reinstall Mercurial using the package available here: http://mercurial.berkwood.com/ and Python problems on Lion

5. Omnigraffle can’t save files anymore

My 5.0 copy of Omnigraffle loaded and let me create stuff just fine, but it won’t save files anymore. I got an error message that looked like an internal error (“class bla bla can’t be subclassed by bla bla bla”) each time I tried to save my work. Bugger.

Couldn’t find a solution to this; I guess that getting the latest version (5.3 I think) will solve the issue (it’ 70 dollars though).

6. Java runtime missing

Lion does not provide a Java runtime by default, so you need to install it separately. No worries: that’s going to happen automatically as soon as you try to run a Java application; alternatively, you can do that manually here.

7. The Finder Sidebar Icons colours (well lack of..) are depressing

Why on earth haven’t they made that a preference we can change? There’s a way around it though, and it is described here. This is the gist of it:

– Download and install SIMBL, which you can get here
– Download the ColorfulSidebar SIMBL plugin (direct link) or visit the developers home and mount the DMG file
– Move the ColorfulSidebar.bundle into the following SIMBL plugin folder: ~/Library/Application Support/SIMBL/Plugins/
– Either login and logout of Mac OS X, or just kill the Finder through the Terminal to relaunch it: killall Finder

Unfortunately this solution won’t stick after an OS reload; but it’s enough to relaunch the Finder (killall Finder) to reload the plugin.

P.S. If you can’t access the ~/Library folder using Finder, check out point 12 below!

8. Safari Won’t Reopen To HomePage

Apple changed the way new windows open. In Safari, if you set the “New windows open with” preference to “Homepage”, then ALL new windows will now open with your homepage setting, including the initial startup window. In past versions, you could set that preference to “Same Page” while startup would auto open the homepage.

Solution: go to System Preferences/General/ and uncheck the “Restore windows when quitting and re-opening apps” option.

9. The CD-TO utility disappeared

A small utility I’ve been using all the time is cdto, a mini application that opens a Terminal.app window cd’d to the front most finder window.

That doesn’t work anymore, but the good news is that as of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service, which you can set by going to System Preferences > Keyboard > Keyboard Shortcuts > Services (check this useful blog post for more details). Also, a more in-depth discussion of the various options available can be found on stackOverflow.

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.

Update: CDTO has a Lion version available too. Also, another free software that offers the same functionalities is Go2Shell.

10. Visor doesn’t work anymore

Yes because Visor (a pumped-up version of the terminal application) relied on SIMBL, which is handled different on Lion. Not a problem, just download TotalTerminal, which is an updated and more stable version of Visor.

For original Visor 2.2 users: TotalTerminal plugin is not injected into Terminal.app automatically like with SIMBL. You have to launch TotalTerminal.app to inject the plugin into Terminal.app. You might want to put TotalTerminal.app into Startup Items.

11. VmwareFusion won’t work

VmwareFusion is a Virtual-PC software that people use to run windows on a mac; I was using an older version of it and it looks as if this is incompatible with the 64-bit architecture of the Lion operating system.

Solution: nothing else than getting the latest version of VmwareFusion, which currently sells for 50 dollars. Bugger.

12. Customize the Finder

Get the Library folder to show again: by default, the Library folder in your home directory doesn’t show in Finder. Just type this into your terminal app to fix it:

chflags nohidden ~/Library/

Show hidden files in finder: beware though, this might result in a lot of information being displayed which is not needed.

defaults write com.apple.finder AppleShowAllFiles -bool YES

Show full paths in finder: it’s quite useful to know always where you are.

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

.. and many more customisations are listed on http://secrets.blacktree.com/.

Alternatively, you can customise your mac to the bone without touching the console by downloading a free utility software called TinkerTool.

13. Get the Old Apple Mail Back

The new Apple Mail interface is quite slick, but I still have some problems adapting to it.

You can easily revert back to the old interface just by going to the Mail menu and choose Preferences. From there, click Viewing and you’ll find the options you want right at the top.

14. .. ? (still looking for it!)

 

]]> http://www.michelepasin.org/blog/2011/10/19/upgrading-to-lion-tips-and-tricks/feed/ 2 1643 Editing PDF metadata on OSx (ie: having the Kindle display the right title/author with pdfs) http://www.michelepasin.org/blog/2010/10/21/editing-pdf-metadata-on-osx-ie-having-the-kindle-display-the-right-titleauthor-with-pdfs/ http://www.michelepasin.org/blog/2010/10/21/editing-pdf-metadata-on-osx-ie-having-the-kindle-display-the-right-titleauthor-with-pdfs/#comments Thu, 21 Oct 2010 10:41:27 +0000 http://www.michelepasin.org/blog/?p=984 One of the cool things you get to do with a Kindle is being able to access your pdf library on the go; however soon enough I ran into the problem of getting all the pdf files to show up with the right metadata, e.g. name, author, creator etc..

I thought that was a simple thing to do; nope! Spent quite some time looking for the right piece of software. Here’s my experience:

1. The False Friends

adobe.png

Adobe Reader. It does say only ‘reader’ but since you can see the metadata so easily, I thought Adobe would have let us edit them too. No way..

Screen shot 2010-10-19 at 16.12.35.png

Itunes. I didn’t know that, but yes it does open and catalogue your pdf files too. And it makes you think that you can edit some sort ‘metadata’ when you press apple+I.. however, these are just iTunes metadata. The pdf ones (which are embedded in the pdf file) won’t be touched. So iTunes is not good too.

pdf_metadata2.png

PDF Meta Edit. I did a bit of googling and found this free little app, but it looked like my operating system didn’t like it (fyi, I’m running Snow Leopard).

2. The Lifesaving Friends

Screen shot 2010-10-19 at 16.15.20.png

PDF-Meta. A small project hosted on googleCode. It’s a simple java application, not particularly nice-looking but it does the job perfectly (and since it’s java you’ve got more chances it’ll work also on other operating systems).

Screen shot 2010-10-21 at 10.18.58.png

PDFInfo. Another small free app that does the job. This is OSx specific though, but it gives you control over a few more options compared to PDF-Meta.

==+===

That’s all I could find online… if you know of other solutions that work on OSx, please speak up!

 

]]>
http://www.michelepasin.org/blog/2010/10/21/editing-pdf-metadata-on-osx-ie-having-the-kindle-display-the-right-titleauthor-with-pdfs/feed/ 12 984
Pong screensaver http://www.michelepasin.org/blog/2009/10/14/pong-screensaver/ Wed, 14 Oct 2009 09:32:19 +0000 http://magicrebirth.wordpress.com/?p=367 Among various other useful freebies, Rogue Amoeba software is giving away for free Pong Saver, a nice little screensaver that emulates this classic arcade game… cool!

Picture 1

 

]]>
367
Bug: OSx 10.5.7 – Macbook sleeps once, freezes second time http://www.michelepasin.org/blog/2009/06/01/bug-osx-10-5-7-macbook-sleeps-once-freezes-second-time/ http://www.michelepasin.org/blog/2009/06/01/bug-osx-10-5-7-macbook-sleeps-once-freezes-second-time/#comments Mon, 01 Jun 2009 10:30:27 +0000 http://magicrebirth.wordpress.com/?p=185 Picture 1

Quite a disturbing surprise finding out that your laptop doesn’t work anymore after an OS update. And it makes you think – why the hell haven’t I waited for the rest of the world to test it out first?

But the desire to be up-to-date and on top of things is too strong, I suppose. Or maybe it’s just a passive attitude towards the ‘software update’ dialog box….

Anyways – here’s the problem: Macbooks tend to crash after going to sleep mode – and even worse, mine switched on from sleep while in the case and the fan started running like crazy. If I hadn’t realized what happened… I could have cooked an egg on that neat metallic cover.
I googled about this for a while, in my opinion the most informative posts are on the Apple discussion forum – here and here.

The fix is not available yet, so the options you have are:

1) disable the sleep option in system preferences
2) revert back to OSX 10.5.6 (instructions here)
3) use a (temp?) hack. In fact, apparently, there’s a workaround:

According to several reports around support forums and from e-mail correspondence from our readers, this issue appears to be related to the Ethernet settings on notebooks.

MacFixIt reader “Andreas S.” reports:

“It appears that if the Ethernet is not enabled (airport only network settings) that on the MacBook Pro the sleep only works once and crashes the second time.”

To re-enable the Ethernet port settings:

1. Open System Preferences > Network
2-1. If you see your Ethernet port in your list of network ports (on the left-side of the window) and it says “Inactive,” activate the port by clicking the gear wheel icon and selecting “Make Service Active.” Click “Apply.”
2-2. If you do not see your Ethernet port in your list of network ports (on the left-side of the window), click the “” button in the bottom-left corner.+
3. In the “Interface” drop-down menu, select “Ethernet.”
4. Enter a name and select “Create.” You should see your new Ethernet connection appear.
5. Click “Apply.”

Note: If you are having this issue and your Ethernet port is already enabled, try disabling it (using the gear wheel icon menu > “Make Service Inactive”). Log out or restart your Mac, then enable it. Be sure to “Apply” your changes.

Test your MacBook or MacBook Pro by closing the clamshell. Be sure to try this twice as most reports point to the second attempt at sleep as being the culprit for the freeze. If it does not work, try resetting your Mac and test again.

UPDATE

I tried the workaround and it does work

 

]]>
http://www.michelepasin.org/blog/2009/06/01/bug-osx-10-5-7-macbook-sleeps-once-freezes-second-time/feed/ 3 185
NetNewsWire – Great RSS reader for mac/iphone! http://www.michelepasin.org/blog/2009/03/10/netnewswire-great-rss-reader-for-maciphone/ Tue, 10 Mar 2009 11:04:22 +0000 http://magicrebirth.wordpress.com/?p=86 For my online and offline RSS needs I’ve been using Shrook for a while – but since recently I got an iPhone the issue of syncing it with my mac gracefully has become quite important.

Shrook does have a complementary iPhone reader, but unfortunately it lacks two important features:

1) it doesn’t remember the history of your ‘mobile’ rss readings

2) more importantly, it doesn’t let you ‘tick’ a news item for later reading (so that I can check it out better on the computer, with a normal size screen)

Well the guys at NewsGator have done it all!!! You can download the free RSS reader they provide that has all the features I was talking about (and of course it also syncs with a free online version of the software) Neat! 

picture-1

 

]]>
86
Using the OS X Terminal Application http://www.michelepasin.org/blog/2009/02/24/using-the-os-x-terminal-application/ Tue, 24 Feb 2009 18:44:05 +0000 http://magicrebirth.wordpress.com/2009/02/24/using-the-os-x-terminal-application/ This tips page provides a detailed introduction to using the unix command line that the Terminal application provides.

Check it out here: http://www.timefold.com/osx/tips/shell.html

 

]]>
74
Subversion on OSX http://www.michelepasin.org/blog/2007/10/01/subversion-on-osx/ http://www.michelepasin.org/blog/2007/10/01/subversion-on-osx/#comments Mon, 01 Oct 2007 11:50:46 +0000 http://people.kmi.open.ac.uk/mikele/blog/?p=254 Day one – part time job – semantic web services. Need to install SVN on me mac… I’ve bothered at least two people in kmi till i found this really useful tutorial here…..

I’ve firstly tried to install it using DarwinPorts, but I was always getting the  same error:
michelepasin:~ michelepasin$ sudo port install subversion
Password:
--->  Fetching db44
--->  Attempting to fetch patch.4.4.20.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/
--->  Attempting to fetch patch.4.4.20.1 from http://svn.macports.org/repository/macports/distfiles/db44
--->  Attempting to fetch patch.4.4.20.1 from http://svn.macports.org/repository/macports/distfiles/general/
--->  Attempting to fetch patch.4.4.20.1 from http://svn.macports.org/repository/macports/downloads/db44
Error: Target org.macports.fetch returned: fetch failed
Error: The following dependencies failed to build: apr-util db44 expat libiconv sqlite3 readline ncurses ncursesw gettext neon openssl zlib
Error: Status 1 encountered during processing.

basically all you gotta do is get a pre-packaged easy-to-install version of subversion here (we love the terminal, but the less  i have to deal with it the simpler my life is, apparently), and then  you may also install a subversion environment manager, such as SVNX… et voila subversion’s running!

 

]]>
http://www.michelepasin.org/blog/2007/10/01/subversion-on-osx/feed/ 1 254
Lyx on the mac http://www.michelepasin.org/blog/2007/03/21/lyx-on-the-mac/ http://www.michelepasin.org/blog/2007/03/21/lyx-on-the-mac/#comments Wed, 21 Mar 2007 18:36:44 +0000 http://people.kmi.open.ac.uk/mikele/blog/?p=222 I’m probably one of the last ones getting there, but I decided to do my best not to use Microsoft Word for editing my phd thesis. Oh yes – since I managed to arrive till this painful state, shall I give myself ever more troubles by using word? Not at all…

So I found out that there’s a nice app which benefits from LaTex, but has an easy front-end. It’s Lyx. I followed the very good tutorial which can be found here, and I report in this article my experience… it takes a little bit.

The tutorial hints at two ways to install latex: one is longer and and involves the usage of i-installer to get the libraries needed, and according to the author the whole thing will sum up to 300 megs more or less. The other one instead involves an already-packaged version of latex – MacTex -  which will take up more than one gig of space, says the installer.

So i went for the first one. Unfortunately i-installer couldn’t find one package, Ghostship. I had to give up, if I wanted to abandon word before dust…
Picture 21.png


Not so easily though. I went for the second option, installing MacTex. Takes almost 5 minutes, and it slowed down my navigation with firefox considerably, but everything was smooth.

So I went on as the tutorial suggests and downloaded and installed Lyx. Another problem here, unfortunately..cause the MacTex installation does not have the same location Lyx is expecting. Basically, it looks for a /teTex subdirectory, while all the stuff we installed with MacTex is locate in .
Picture 3.png

What to do? No worries, just run Lyx (which you should have copied to your app folder) and it runs anyway!!

The next important step to get going is having the dictionaries available. Another good tutorial can be found here, even if I found it much easier to just download Cocoaspell, a macos interface to Aspell. And there you go, follow the instructions to set up the newly imported dictionaries, install some more of them, and it’s done!

Word, your days are coming to an end!

loans pink slip

Martin Cooper, loans pink slip researcher and executive is widely considered to be the inventor of the first practical loans pink slip for handheld use in a non-vehicle setting.

bad loans quick personal credit

A ringing signal is bad loans quick personal credit telephony signal that causes a telephone to alert the user to an incoming call.

loans rft

In most countries, loans rft s outnumber land-line phones, with fixed landlines numbering 1.

secured college loans

[10] UCAN and Cingular reached secured college loans on October 19, 2006, which resulted in stronger notification and authorization requirements for Cingular regarding non-communications charges and also required Cingular to institute a ready means to address billing issues and cancel wireless content services, such as secured college loans s.

loans balance lender direct small commercial

However, these use native formats only available to one particular phone model or brand.

payments loan detail consolidated plan total

Modern payments loan detail consolidated plan total s have become extremely diverse, leading to phone personalization and customization.

goverment busness loan small

In goverment busness loan small goverment busness loan small s had been used to detonate the bombs.

guaranteed bad credit loan

In some developing countries with little “landline” telephone infrastructure, guaranteed bad credit loan use has quadrupled in guaranteed bad credit loan decade.

refurbish home loans

) and upload directly to their mobile phone with no limit on refurbish home loans of songs uploaded.

loan with instant approval credit bad

Breaks were introduced into loan with instant approval credit bad to avoid this problem, resulting in the common ring-pause-ring cadence pattern used today.

]]>
http://www.michelepasin.org/blog/2007/03/21/lyx-on-the-mac/feed/ 2 222
Ecto : multiple blog manager and WUSIWYG editor http://www.michelepasin.org/blog/2007/03/15/ecto-multiple-blog-manager-and-wusiwyg-editor/ Thu, 15 Mar 2007 00:22:29 +0000 http://people.kmi.open.ac.uk/mikele/blog/?p=217 Read an article about the “must-have” applications for the mac on slashdot – incredible how they havent inserted QUICKSILVER, which is a revolutionary launchbar program in my opinion.. actually more:

” A unified, extensible interface for working with applications, contacts, music, and other data.”

But I found some other interesting stuff…. :-)
ECTO, a multiple blog manager for mac/win. Recently my wordpress web-interface started behaving funny (things disappearing, the editor wasnt working properly, unwanted tags coming out) – so a neat external editor is very welcome – I’m writing this post with it – let’s see what happens!

And SketchFighter, a classic-style arcade game, drawn with a pen…..

]]>
1339