His computer is a SGI O2

Thijs van der Vossen, 31 Aug 2006, 13:34 in video (edit).

In this video Avi talks about his Silicon Graphics O2 and the classic car effect:

Video (MP4, 19MB) | Video (DivX, 26MB)

4 comments

Fcgimon updated

Manfred Stienstra, 28 Aug 2006, 16:50 in ruby on rails and tools (edit).

In march I wrote a post about our fcgi monitoring and management tool Fcgimon. Today I fixed some rough edges and decided to call this version 1.0.

The biggest change is the way Fcgimon gathers and presents it’s data from `ps`. Earlier versions would just find all the dispatchers and spawners in the process list and show them. This means that not running application would just not show up in the list. Fcgimon now shows the status of all the configured projects, which makes it easier to detect broken spawners. Fcgimon will still show all fcgi processes and spawners outside of the configured projects, but under the normal list and with a small warning.

Minor changes include memory usage information and in general nicer output.

screenshot of fcgimon

If you like what you see you can download Fcgimon from our Subversion repository.

https://fngtps.com/svn/server-scripts/trunk/fcgimon/

2 comments

MySQL NULL gotcha

Thijs van der Vossen, 28 Aug 2006, 11:09 in ruby on rails (edit).

Never try to find the authenticated user in a Rails app running on MySQL with something like:

@authenticated = Person.find_by_id session[:authenticated_id]

Only use find_by_id if session[:authenticated_id] is not nil:

unless session[:authenticated_id].nil?
  @authenticated = Person.find_by_id session[:authenticated_id]
end

When you do a find_by nil the following query is executed:

SELECT * FROM people WHERE (people.`id` IS NULL) LIMIT 1;

Most of the time this returns an empty set, but if the previous query was an insert into the people table, MySQL will return the row for the last insert. This is because NULL somehow returns the generated id:

mysql> SELECT id FROM people WHERE id IS NULL;
Empty set (0.00 sec)

mysql> INSERT people SET username='bob';
Query OK, 1 row affected (0.08 sec)

mysql> SELECT id FROM people WHERE id IS NULL;
+----+
| id |
+----+
| 11 |
+----+
1 row in set (0.00 sec)

mysql> SELECT id FROM people WHERE id IS NULL;
Empty set (0.00 sec)

It would take some time and determination to exploit this, but it’s certainly not impossible.

Update: This was fixed in Rails just after the release of 1.2.1.

4 comments

Normal business accounting rules?

Thijs van der Vossen, 16 Aug 2006, 08:58 in business (edit).

Email from Skype:

You’re receiving this email around 30 days before your Skype Credit balance expires. Skype Credit expires 180 days after your last purchase or SkypeOut call. If you’re not using your balance we need to expire the credit sooner or later to comply with normal business accounting rules. Not very exciting, but true.

If you have any idea what these ‘normal business accounting rules’ exactly are, please let me know.

3 comments

Ajaxload

Thijs van der Vossen, 13 Aug 2006, 10:58 in web and design (edit).

Build your own with the Web 2.0 ajax loading gif generator service.

No comments yet

Ruby on Rails Development Timeline Fun

Manfred Stienstra, 07 Aug 2006, 10:31 in ruby on rails (edit).

I always follow the Ruby on Rails development timeline to see if my patches get applied and if there are any nice new features. Turns out that apart from the usual stuff, there’s the funnies on page three. Just like in the newspaper.

Changeset 4661 Changeset 4678 Changeset 4700

1 comment

Sad 2

Thijs van der Vossen, 02 Aug 2006, 00:33 in broken (edit).

Anyone at the ABN-AMRO Bank wants some help with HTTP Redirection?

If you go to http://abnamro.nl you’ll get a 404 Not Found error message.

8 comments

Sad

Thijs van der Vossen, 01 Aug 2006, 20:31 in broken (edit).

The Media Guild aims to support the development of creative talent and entrepreneurship in the fields of ICT and New Media.

Great. The website looks like this in Firefox:

The Media Guild website looks broken in Firefox

and even more broken in Safari:

The Media Guild website looks broken in Safari

Those who also still think they can get away with a website that only works in Internet Explorer should definitely check out their ‘range of specialist media services’ or have their ‘concepts rapid-prototyped by the Guild’s selected apprentices’.

9 comments