Installing libmagic in Mac OS X (for Python-magic)

When trying to install python-magic I found out that libmagic was not installed (or not properly available) in Mac OS X 10.7 Lion. There was little information on this problem on the Internet so I thought it might be helpful if I briefly wrote down my experiences.

When installing python-magic:

pip install python-magic

there was an error reported by ctypes (a depency that is installed as well). As ctypes should be part of your python (since 2.5) you can ignore this error or install python-magic from this updated version on GitHub: https://github.com/ahupp/python-magic

After the installation completes however, python-magic gives an error (libmagic not available):

>>> import magic
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "[...]/python-magic/magic.py", line 128, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation
>>>

The easiest way to install libmagic is through Homebrew, a Mac package manager. I used to resort to Fink or Macports in the past, but Brew seems a lot cleaner and more straightforward. Install Homebrew according to the instructions and then install libmagic:

brew install libmagic

Brew installs libmagic in /usr/local/Cellar/ . Python-magic however seems to be looking for a reference to libmagic in /usr/local/lib/

To solve this last problem we can create a symlink in /usr/local/lib to the right file.

cd /usr/local/lib/
ln -s ../Cellar/libmagic/5.04/lib/libmagic.dylib libmagic.dylib

After this, python-magic is able to find libmagic and works properly.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon
22 July 2011 • Apple, Geek stuffComments (2)Permalink

Microsoft desperately needs a darn good strategy

Most people who can be considered real geeks are often not Microsoft fans. They are either open source fans and usually have their own personal preference for a version of Linux, or they prefer Apple's products (and thus use Mac OS X). Of late the amount of Apple fanboys (or girls) seems to be increasing. Apple is known for always having had an incredibly loyal following but they now have been converting the masses with their iPod, iMac, Macbook, iPhone and iPad success spree. That has lead them to make serious inroads against their 'big' rival, Microsoft.

Microsoft has been 'under attack' for a while now. Not only by Apple but by some other companies (notably Google) as well. The question is, 'how is Microsoft going to defend (or expand) itself'? Mobile computing devices are seen as the new PC, yet Microsoft has a rather weak presence there. People all around us are sporting iPhones, iPads and Android devices and are getting accustomed to new software (Apps) and interfaces. On most of these mobile products, Microsoft does not exist at all.

recent article on how the CIO of Starbucks roughly said that Microsoft really needs to 'pull a rabit out of its hat' with the next version of Windows, really got me thinking about Microsoft's overall strategy.

In the enterprise software market it might still be all about dotNet (.Net), MS-SQL databases and perhaps SharePoint. In our private lives it is more about: iPhones, iPad, Android, WhatsApp, Ping (chat), Gmail, Twitter, Facebook, Spotify or Last.fm, iPhoto or Picasa, Dropbox, iTunes and Netflix, etc.

Microsoft's strongest products are still its Windows operating system and its Office suite. In other areas, they have strong products too but there are alternatives. Windows is still the most common OS but it does not really exist outside PCs and Mac OS X is making strong headways (especially for home users). Windows 7 is a fine version of Windows but it is still Windows. Is it that different from Windows 95/98 in terms of usability and user experience?

Are Apps the way forward?

The recently announced Mac OS X 10.7 Lion (and even sooner the current 10.6 Snow Leopard version) will have an App store just like the one on the iPhone and iPad where you can buy and download Apps (or get free ones) for your computer. The new Macbook Air is trying to bridge the gap between the iPad and a laptop which essentially means that Apple is trying to incorporate the successes of iOS into Mac OS (bringing the two closer together). When Google launches the Chromium Operating System it will surely have some integration with Android and the Android App store.

Microsoft does not have an App store (of any meaning) and it does not seem to have a clear strategy for integrating one in Windows either. Microsoft Live Mail (formerly Hotmail) does not work as well on an iPhone or Android device - so many people switch to Gmail.

Microsoft Office

The basic Office suite (Word, Excel, PowerPoint) is what I still consider Microsoft's greatest products. There are alternatives but they also have their drawbacks and everyone is - generally speaking - still using Office so from the compatibility perspective it is easier to use Office (in the corporate world). Outlook is the number one corporate e-mailprogram (and calendar) in combination with MS Exchange. The question remains whether Microsoft can uphold that strength and whether the succes of Office is totally dependent on the success of Windows (i.e. can they decouple)?

Where is the strategy?

I am at loss what Microsoft's strategy is. As a consumer I am starting to see little use for Microsoft products. I prefer to use Word and Excel for Word processing and financial or tabular data most of the times. At the same time, I am almost as comfortable using Apple's iWork software and Google Docs. I do not need Windows (as a Mac user) at home. If I did own a PC, I might switch to Ubuntu Linux.

Professionally, I am forced to use Microsoft products. I do not see that changing in the near-near future. My point is however: Microsoft's dominant position in the corporate world is changing. Microsoft's products are starting to seem like products in decline. What we use at home is slowly making it's way into our professional life as well. From Google Chrome to privately purchased (but brought to work) iPads.

What is Microsoft's strategy? Where is their sense of the future? Windows Phone 7 might prove to be a small succes but it is not going to kick-ass like the iPhone and Android do.

Let's end this post with another simple question: Why on earth has Microsoft not developed a version of Office (Word, Excel and PowerPoint at the least) that works on iOS (iPad and iPhone versions), Android and RIM Blackberry OS? From what kind of strategy perspective did they decide to miss that opportunity and risk the most powerful dominance they have (the Office productivity one). Simply put: there is no market leading, kick-ass program that can view and edit Word, Excel and PowerPoint files and runs on all major mobile platforms. (I do not like Documents to Go that much).

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

The Business of Investing in Great Companies

Don Valentine, a venture capital investing legend (Sequoia), gave this interesting lecture at Stanford. I especially like his blunt criticism of the boards of large companies.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

Minimalist Manifesto (part 1)

I have been meaning to write this for a while now. As I am sure this will turn out to be a 'work in progress', I added the 'part 1' to the title with some foresight.

In the past years I have become more and more interested in the concept of minimalism. Not in terms of art but in terms of a lifestyle. For some time now, I have started reading up on minimalistic lifestyle approaches through blogs and ebooks.

At the same time, I been feeling weighed down by things - both professionally as in my private life. Both material things (stuff) and non-minimalistic approaches (workflows etc.) have been slowly wearing me down - weighing heavy on my mind.

I long for a simpler, more meaningful approach and believe that minimalism can help me fulfill that longing. Minimalism has already resulted in some major and minor changes in my life(style). Writing this 'minimalist manifesto' is the next step in that process. It can both serve as a future promise to myself and as a list of what I have already accomplished. I do not believe in extreme 'minimalism' (e.g. trying to live with almost no material goods). I also do not think minimalism has all the answers or has to be exclusive as a lifestyle.

My minimalist approach to life:

  • Stuff - I will try and limit the amount of stuff I collect around myself. I love nice things, I love quality things, but they need to serve a purpose. Items that are not used or do not serve any purpose, have to go. As I used to be a packrat/collector, this is sort of a slow process for me. With the help of my wife, I have been throwing out a lot of things. There is still more work to be done though. Sometimes it can also be a tough choice. We like for example to host dinner parties at home and enjoy different kind of foods. That can lead to a lot more stuff: tableware, specialized cooking gear, etc.
    What I do buy, has to meet certain quality standards - better invest in something durable than in junk.
  • Organizing - the things that I do own, have to be organized and stored in such a manner that they do not get in my way while at the same time being easily accessible. That also goes for my digital life.
  • Digital - organizing my digital life has already become harder (more time-consuming) than organizing my offline life. I have tried to find the right tools to help me organize my files, pictures, notes and email. I follow a specific email archiving approach with a (near to) zero-Inbox policy. I use Simplenote (online, iPhone and Ipad) for my notes and ToDo lists. I use Evernote to archive receipts and letters.
  • Mail and receipts - my (snail) mail and receipts archive has been moved online. I try and throw away every single piece of paper that comes in through the mail, now. I take a picture of any important letter or receipt with my iPhone and sync and store it with Evernote. I will probably refrain from doing something similar with my old paper archive. This problem will solve itself in the future as I can throw these papers away eventually.
  • Furniture and decoration - my wife and me both like a clean, tidy and rather sparsely decorated house. At the same time, we like decorating and hosting people. These things are some times at odds with each other. Over the past few years, we have accumulated more and more furniture and accessoires. At least our walls are still almost all empty (white).
  • Clean - having a clean house/work area should be central to any minimalist approach. Having little stuff helps with keeping things clean. I definitely need to do more work on this. Thorough cleaning still comes mostly in spurts.
  • Food - my wife (again) taught me to appreciate food more. Though we enjoy the occasional Big Mac, we try to steer away from the processed 'corn syrup' staples most of the time and invest in good quality food. Finding high-quality (organic) food in the Netherlands, proves quite the challenge however.
  • Time - time is limited, it is the single most important thing that we have to offer. I am a pretty awful time-manager in the sense that I always take on more (tasks) than I can possibly handle in a given amount of time. Though I do end up accomplishing a lot because of this, there is certainly room for improvement here.
  • Health - our body is our vessel. I do not understand why we would not try our best to take care of it. It does not take much, to keep your body in good shape: sufficient sleep, healthy food and plenty of exercise.
  • Wealth - I have the luxury to live a minimal lifestyle (and even write about it, on a blog). Acquiring some wealth to take care of yourself (and people around you), should be a main task for everyone. We are entitled to nothing.
  • Professionally - most of the points above also affect my professional life. More specifically, both in the software that I develop and in the advise that I give, I try to adhere to a minimalist philosophy. For example: I believe in simple, clear software that does not need much explaining (on how to use it) and does not offer more than that what is needed.

That is it for now. I went through the list fairly quickly and could have focused more on every item. Do not be surprised if I revisit some of these points in the future. There is much room for improvement on most of these points - trust me, I will be trying.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

Positive attitude please! Or else: you are fired!

Another great video from the Royal Society for the encouragement of Arts, Manufactures and Commerce (RSA) on how, especially in contemporary American (corporate) culture, there is this extreme demand for positivism. Now, that is not to say we should all start complaining or become extremely depressed, but at the same time we do not have to all continuously bury are heads in the sand and pretend everything is hunky dory all the time. Without a critical (and vigilant) attitude we can never challenge ourselves and our society to improve on things.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

Internet trends - interesting presentation slides from Mary Meeker, Morgan Stanley

Latest Internet trends from Mary Meeker of Morgan Stanley, dated 7 June 2010. Notice how Apple users are leading the way in Internet Consumption. Is this because the more "connected" people (heave information consumers) prefer Apple devices or is it because Apple device owners turn into more "connected"  people because of the devices they own? Interesting material....

Darn...they deleted the presentation (Copyright infringement). Oh well - too bad.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

What really motivates us! - how to motivate yourself and other people

This is an amazing animated adaption of Dan Pink's talk at the Royal Society for the encouragement of Arts, Manufactures and Commerce (RSA). The talk in itself is amazing. The accompanying animation beats any PowerPoint slides by a million.

I highly recommend anyone to watch this video completely. For everyone working in a high-skilled profession it is particularly relevant. In my field of work - IT, Internet, creative technology business - there are plenty of examples of companies who manage to motivate their employees in different ways besides monetary rewards.

My short conclusion: to get outstanding results from an individual or group of individuals, you need to:

  1. Take money out of the equation ("pay people enough to take the issue of money of the table). If you don't pay people enough, they will not be motivated. So you pay people enough so that they will not be thinking about money but they will be thinking of work.
  2. Focus on the three factors that lead to better performance: Autonomy, Mastery and Purpose.
  • Autonomy - provide enough space (time, room, budget) and responsibility for someone to find the best solution/provide the best result.
  • Mastery - provide enough opportunity for someone to master what he or she is pursuing. I for one am always looking for better ways to use the tools that help me in my work (mainly software) - it is often frustrating that there is little time for this.
  • Purpose - we all need purpose in life. The "why am I doing, why am I here"-question might run through the head of an intelligent person more often than a less-intelligent person but in the end, we all need purpose. Remember the huge success of the self-help book "The Purpose Driven Life".

 

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon

Gmail still keeps on amazing me - Forgotten Attachment Detector

Just as I pressed the "Send" button I realized that I forgot to attach the files that I was supposed to send. I guess Google found a way to read my mind. Gmail still keeps on amazing me. I do not see Outlook doing anything like this anytime soon.

This might not be unobtrusive, it is darn useful!  Thank you "Forgotten Attachment Detector".

Gmail suggests that I forgot my attachments

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon
14 April 2010 • Information technologyComments (2)Permalink

Wedding website released: Rina Mae and Bram

Rina Mae and I have finally launched our wedding website at www.rinamaeandbram.com. So far we really enjoyed building this website together and we will continue adding content and updates to the website. I am quite a perfectionist and there are still a lot of things I would like to improve.

At this moment we have the following information and functionality on our website:

  • Secure registration (with registration code needed) and login
  • News blog (with comments)
  • Pages for Wedding information, Our story and Travel information (all with comment option)
  • Media pages where we display photos and videos (no videos uploaded yet). The photos are grouped in galleries with a Javascript slideshow playing them and music playing on the background.
  • pre-RSVP form through Wufoo.com - for this purpose I decided that opting for the Wufoo form service was the easiest solution even though it is not perfectly styled in our website theme.

Registration is for invited friends and family only but I will share some screenshots with you:

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon
19 March 2010 • PersonalComments (0)Permalink

Economy update - Recession Porn

These are some things that caught my attention in the past few days. I am really in a doom and gloom mood about the (economic) situation of the world. People have been referring to all the negative news and comments on the economy as "Recession Porn". Here is some to satisfy your needs:

  • Change Of Mindset - Andy Xie - Excellent read on the misconceptions about "stimulus"
  • John Mauldin - The Velocity of Money - Mr Mauldin is one of my favorite reads (every week)
  • Bubble, Bubble, Toil And Trouble -- TIME - Seems like very expensive real estate in Shanghai to me
  • John Lanchester · The Great British Economy Disaster - This sentence struck me the most: "It has been both the deepest and the longest downturn since records began. And yet, to be honest, it hasn’t quite felt like it." I feel a lot of people in the Netherlands share similar sentiments. This is probably the biggest crisis of our lifetime and yet we are still waiting for it to really hit us. Right now, everyone is starting to have this (false) sense of security again. I am in the camp that believes that we are only in the eye of the storm.

To close of, watch this short video on "off balance sheet" accounting. This sort of thing can really get me upset/angry. Especially in light of the recent stream of news events on Lehman Brother's accounting practices.

Frank Partnoy on Off-Balance Sheet Transactions (MMBM) from Roosevelt Institute on Vimeo.

  • Enjoyed this post? Please share it with others:
  • del.icio.us Favicon
  • Digg Favicon
  • Facebook Favicon
  • Google Favicon
  • LinkedIn Favicon
  • Reddit Favicon
  • Technorati Favicon
  • TwitThis Favicon
Page 1 of 4 pages  1 2 3 >  Last »