'Tips n’ Tricks' Category

  • UIImage in iOS 5, Orientation and Resize

    November 7, 2011

    One of the things I found very strange is the fact that most operations that came with iOS prior iOS 5 which revolved around UIImage didn’t take into account the orientation of the image. This meant that if you want to read a picture from the camera roll and resize it, you’d have to roll [...]

  • Clone S3 Bucket Script

    October 10, 2011

    I had to backup an S3 bucket so I whiped out a small script to clone a bucket. It’s written in Python and depends on the excellent Boto library. If you are running Python < 2.7 you’ll also need the argparse library (both available also via pip). View the gist here: https://gist.github.com/1275085 Or here below:

  • PPTP VPN on Ubuntu 10.04 for your iPhone / iPad

    August 30, 2010

    Below are the steps necessary to connect your iPhone / iPad or any other computer via a PPTP VPN. Why would I want to do this? For various reasons such as allow you to access information and servers that are behind a firewall, or maybe you just need to route traffic through different servers. I’ve [...]

  • Varnish High, Ever increasing CPU usage workaround

    May 26, 2010

    If you are using Varnish version >= 2.1 and experiencing an ever increasing CPU usage up to a point where you need to restart the service to force CPU usage to drop you may want to add the “-h classic” argument to the command line. This will revert to use the older hashing method instead [...]

  • Disco Tip – Crunching web server logs

    March 21, 2010

    At my day job we use Disco, a Python + Erlang based Map-Reduce framework, to crunch our web servers and application logs to generate useful data. Each web server log file per day is a couple of GB of data which can amount to a lot of log data that needs to be processed on a daily. [...]

  • Ubuntu 9.10 Karmic Koala and ies4linux – Installation

    December 30, 2009

    Installing ies4linux on Ubuntu 9.10 Karmic Koala by just running “./ies4linux” might show some warnings such as: IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It’s recommended that you update your wine to the latest version (Go to: winehq.com). In my case [...]

  • Google AppEngine – Python – issubclass() arg 1 must be a class

    September 14, 2009

    If you are getting the error “”issubclass() arg 1 must be a class”” with Google App Engine SDK for Python on Linux its probably because you are running Python 2.6 (and will probably happen to you when you run Ubuntu 9.04 – 2.6 is the default there). Just run the dev server under python 2.5 [...]

  • Error: “Operation could not be completed (error 0x000006d1)” when adding a Samba based network printer to Vista

    January 20, 2009

    If you are getting the following error while adding a Samba based network printer to Vista: Windows cannot connect to the printer. Operation could not be completed (error 0x000006d1). And you have a Samba server (version 3.0 and above) consider using the following technique to add the printer: Add a local printer (not a network [...]

  • “Unable to retrieve MSN Address Book” on Pidgin on Ubuntu / Debian?

    January 12, 2009

    Today I got the following error on Pidgin (I’m running version 2.5.2 on Ubuntu 8.10 Intrepid Ibex) while it tried to connect to MSN: “Unable to retrieve MSN Address Book” After searching a bit I found this post by Gijs Nelissen which said to use a different MSN plugin for Pidgin called msn-pecan. I’ll reiterate [...]

  • Failed to run /usr/sbin/synaptic Unable to copy the user’s Xauthorisation file

    April 27, 2008

    If you get the following error while running Synaptic: Failed to run /usr/sbin/synaptic Unable to copy the user’s Xauthorisation file. Make sure to that you have enough space in your /tmp directory. To check if that is indeed the problem run the following command in your terminal: df -h This command will show you each [...]

Switch to our mobile site

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org