I found today that Mobile Safari, the browser bundled with the iPhone, has a very strange and annoying behaviour when it comes to web apps. In fact, when you “install” web applications with the <meta name="apple-mobile-web-app-capable" content="yes" /> tag in the “Home Screen”, the USER_AGENT header sent to the server is different to the [...]
HTTP Headers, Web Apps and Mobile Safari
October
30,
2009
How to? · iPhone
Add Your Comment (2)
WordPress 2.8 and the get_link() error in line 647 of dashboard.php
June
25,
2009
Wow, that’s a long title, but it should drive people with this problem right here. If you have upgraded your WordPress installation to 2.8, you might have encountered a nasty error in your Dashboard, which says something about a
Fatal error: Call to a member function on a non-object in /home/user/www/wp-admin/includes/dashboard.php on line 647
This has been [...]
How to? · Open Source
Add Your Comment
10 iPhone Memory Management Tips
January
28,
2009
Memory management in the iPhone is a hot topic. And since tonight I’m talking about it on tonight’s monthly meetup of the French-speaking Swiss iPhone Developers group, I might as well share some tips here from my own experience.
I won’t go dive through the basics; I think that Scott Stevenson did a great job in [...]
Cocoa · Code · How to? · iPhone
Add Your Comment (32)
Basic vs. Digest
July
7,
2008
In the series of highly boring posts ;) here’s another one; in this case, a simple explanation of two different authentication protocols available in the HTTP standard.
HTTP Basic Authentication Protocol
This is the simplest HTTP Authentication protocol available:
The browser sends a request to a protected resource: GET /index.html
The server looks for the “Authenticated” header [...]
How to? · Papers · Technology
Add Your Comment (2)
wp-super-cache problem? Easy fix
April
23,
2008
I’ve just installed the excellent wp-super-cache plugin to accelerate things a bit in this blog; today somebody sent one of my pages to reddit and I’ve had more users than usual! – by the way, thanks for coming! :)
Update: I admit, it also has a bit to do with the reading of today’s entry in [...]
How to? · Open Source
Add Your Comment (3)
Installing PostgreSQL 8.3 on Leopard
April
23,
2008
This is the documented path to my discovery of PostgreSQL 8.3, which I’ve never used before. Now that MySQL’s community is getting hammered to death by Sun, and thanks to all the good things I’ve heard about it over the years (including enhanced performance on multicore systems and greater scalability), I really wanted to install [...]
Django · How to? · Open Source · Ruby on Rails
Add Your Comment (8)
Extracting e-mails from a vCard file with Python
April
23,
2008
Let’s say that you have a vCard file. You can export it from your Mac OS X AddressBook.app, or from any other similar application. Now you need to extract some information from it, namely the e-mails, for spamming your friends with some boring news. Typical.
Enter vobject. This Python library is part of the Chandler effort [...]
Quick spec from your Python tests
April
17,
2008
Using Python’s own unittest package, here’s a small script that can iterate over your test suite to output a small, quick, nice list of the tests in your application:
import unittest
loader = unittest.TestLoader()
tests = loader.loadTestsFromName(‘path.to.your.tests.package’)
for test in tests._tests:
print test._tests[0].__class__.__name__.replace(“Test”, “”)
for method in test._tests:
[...]
Django · How to? · Quality
Add Your Comment (2)
How to build ohcount on Leopard
April
7,
2008
If you do not know ohcount, you should; the guys at ohloh.net have GPL’d one of their core components, namely the one that allows you to perform source code line counts in your own projects. Neat and useful!
However, the current ohcount distribution (which you can download from this link) does not build out-of-the-box in Leopard. [...]
Apple · How to? · Open Source
Add Your Comment (1)
Playing with HTTP libraries
March
26,
2008
It’s fun to find out how to tackle the same task in different programming languages; in this case, it’s all about doing HTTP requests over a network: fortunately, there are networking libraries in virtually all major programming languages. In my current project, I’m generating wrappers easing the access to the core of the project itself, [...]
Code · How to?
Add Your Comment (35)