Posts for the 'OSX' Category

  1. Django and OSX

    Those who have been here before know that I am a big fan of the Django python webframework, and also a big fan of OS X. So I thought that I would install Django on my MacBook Pro.

    I did have it all installed on my G4 laptop, but I am going to be using it with at least two different databases on this machine. I am not going to give a complete, what I typed style install, just an overview because it is fairly easy.

    1. Install latest version 2.4.* of Python from http://www.pythonmac.org
    2. Check out the development version of Django from http://www.djangoproject.com/download/ (I checked it out in /django – probably not the best place to put it.)
    3. Install latest stable version (5.1) of MySQL from http://www.mysql.com/
    4. Install latest stable version of MySQL tools http://www.mysql.com/products/tools/administrator/
    5. Install MySQLdb from http://www.pythonmac.org/packages/py24-fat/index.html
    6. Create a symlink so Python can find django: ln -s /django/django_src/django/ /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django
    7. Then I followed some instructions on blog.vixiom.com to add the path that I need.
    8. edit your .bash_profile file in your home directory with the following path: /django/django_src/django/bin/:/Library/Frameworks/Python.framework/Versions/Current/bin:

    Now that should be everything needed to start running with Django and MySQL. PostGreSQL is of course the better database but for the testing work that I am doing my webhost at the moment doesn’t support PostgreSQL..

    By timc3 on the
    July 9th, 2007
  2. Full time Mac user – sort of

    Anyone that has been on this site before will know that I have an affinity for Apple Macs, particularly their laptops. Since moving to Sweden I have now ditched windows machines – full time, almost!

    Actually one of the main reasons for getting the new MacBook Pro was that I could run, OSX, Windows XP (or Vista) and Linux/BSD on the same machine. Because of work Windows XP is a major requirement, our software mainly runs on it and a lot of development is done on it and after testing that it ran our OpenGL based VizArtist correctly I knew that it was the right machine to have with 2Gb of RAM of course.

    systemmanager20060405.gif

    So I knew that that was the right machine, but of course switching using dualboot (called Bootcamp by Apple) can be a major pain, so I turned to Parallels. Parallels allows you to run a virtual machine on top of OSX, but in the latest version is its killer feature – the virtual machine can come from another partition – in this case my bootcamp Windows XP partition. And then it can integrate with the desktop so that you can switch between applications whether they are OSX based or Windows Based seamlessly.

    So I get the best of both worlds. Obviously I cant run games using it, but I don’t run games on a work PC. Recommended.

    By timc3 on the
    April 25th, 2007
  3. Removing files of certain date

    To remove files depending on a certain date on Linux, Unix and OSX (and I presume using Cygwin on Windows) you can use the find command and get it to execute the rm command.

    find . -atime +1 -exec rm {} \;

    Will send all files in the current directory that are older than one day to the remove command. Its probably best to test it by looking at the files first:

    find . -atime +1 -exec ls {} \;

    That will show all the files that are over a day old. The remove command is of course useful for cleaning up log file directories from a cron job when daemons or programs running don’t clean up after themselves.

    By timc3 on the
    May 18th, 2006
  4. Introducing Macbook

    It is finally here!!! The new apple Mac Book, available in white and black with built in iSight and with intel core duo. It looks sweet in black but they are selling that at a premium which is probably not worth it.

    MacBook Black

    Here it is in white, with a 1.83Ghz Intel Core Duo chip, 60Gb HD, 512Mb Ram and a Combo drive it costs $1099.

    MacBook

    The specs for the next model up is 2.0 Ghz, 60Gb HD, still only 512Mb Ram and a Super (DVD burning) drive it costs $1299. The black version is costing $1499 which is quite a premium for an upgrade to black and a 80Gb drive. I am hoping that it will change after a few months ala iPod.

    It of course comes with iLife, an Apple remote, Magsafe power adapter, WiFi and Bluetooth, gigabit ethernet, digital audio in and out, 2 USB 2.0 and 1 400 Mbps firewire and a scrolling trackpad.

    read more | digg story

  5. Mac OSX stuff

    Just a couple of tricks, first updating the software. Apple has provided the commandline tool softwareupdate which can be used like this:

    softwareupdate -i -r

    To do installs and updates of the various OS specific and Apple software. Its not Ports, or even APT but its better than nothing I suppose. Another one that is often not known about is the built in, system wide spell checker. Check on the edit menu of alot of applications to see what the shortcut is.

    By timc3 on the
    April 11th, 2006
  6. NetNewsWire

    Well NetNewsWire is definitely the best News (RSS) reader that I have used period, so I didn’t have much trouble coughing up the small amount that it cost to get a license for it. If it had the Camino HTML rendering engine built in it would be perfect.

    netnewswireIconlarge.png

    As I have written about before the fact that you can flag items that are of interest is excellent, and presents an easy way of coming back to content later, plus it has features that every other RSS reader would love to have whether on Mac or PC > Tabbed Browsing, Searching, Podcast, Smart lists, Bloglines syncing, Search engine subscriptions, scripting, HTML difference tracking, finding feeds that haven’t been updated in a long time. In fact a lot more, download the trial for more information.

    And secondly its integration with MarsEdit was excellent, so I got the bundle deal. I think I slightly prefer Ecto for dealing with weblogs and publishing – it just seems easier to use, but what I really needed was the integration.

    marseditIconLarge.png

    Adding images and other things isn’t obvious straight away, but it is under the HTML tags drop down, likewise the custom tags option isn’t that obvious.

    So if you care about your news, I can recommend both and I also wish their was a similar product on Windows and Linux.

    By timc3 on the
    March 20th, 2006
  7. pop3 server for osx

    I need a pop3 server for osx for testing an application that I am thinking of building. I would like it small as in lightweight, osx switch on/switch offable and with little dependancies. Anyone know of one?

    By timc3 on the
    February 24th, 2006
  8. Working!

    Well I have been really busy working at Vizrt, getting to know the systems, and getting to know python and a damn horrible Java website.

    Python is really nice, been running through the tutorials at home, looking at this Django framework for websites which I might write my music site in, if I can get it to run properly on Dreamhost. Django doesn’t have the AJAX support built in yet, but otherwise it is fairly close to what Rails is doing to Ruby. Perhaps once I get it running I can do a video showing how easy it is to do a site.

    But all in all, it is helping my aim to get to know Python better.

    Oracle is the database of choice for applications at work, but for the small application that I am using I have been using MySQL 5.0.18 which has some nice tools on Windows for administration. There was a slight bit of trouble restoring a dump that was over 1Gb in size, but after changing some default configuration for max_packet_size=1G it was fine and the Blobs inserted fine.

    I don’t think that I will get away from my allegiance to Postgres though.

    The less that I say about the Java site the better really!

    By timc3 on the
    February 14th, 2006
  9. Widgets

    Just found a really useful widget – the WordPressDash widget, lets me post up to a word press blog from the OSX dashboard which I am alittle happier to say I am actually find use for as a good place to write down notes.

    And now that I am back from Førde I can begin posting more!

    By timc3 on the
    December 17th, 2005