Skip to content

2006

Storing the SQL queries in the database

I want to outline something I developed something like 5 years ago, and that I was kind of happy with at the time: a way of saving all SQL queries inside the database itself. The reason for writing this is that it would really fit in with all the RubyOnRails and other programming frameworks that are created these days. If someone feels like creating a component/plug-in for it, that would be so nice…

If you have no interest in programming and/or database management, go hug somebody and skip this article.

PRINCIPLE
In the most simple version, you have 1 extra table in your database that looks like this:

query_id   int % unique ID of the query
template   varchar(1000) % or even longer
var_list   varchar(255) % comma separated list of vars

An example:
[ 33 , "select * from users where user_id = %user_id% AND type = '%status%' " , "%user_id%,%status%" ]
Instead of constructing your SQL code in your (PHP) code by making one big string and then executing it, you call a function my_exec_query(query_id,array_params)
This function will

  • get the template text
  • walk through the comma-separated list var_list and for each variable inside, look the corresponding value up in the array array_params (or this can be a dictionary or a hashtable).
  • when all substitutions are finished, execute the SQL code and return the result as (connected/disconnected) recordset or an array.

Google moving into Interactive TV

Google is looking for a “Product Manager – Interactive TV”:

In this role, you will provide leadership on product vision and execution of projects that enable using Google’s search and advertising technologies to enhance users’ Television viewing experience.
(…)
These (trends) include but are not limited to the intersection of internet and Television technologies, video-on-demand, personal video recorders and emergence of next generation set-top-boxes with IP connectivity. You will then identify areas where use of Google’s search and advertising technology can enhance this user experience and define appropriate products to deliver these user benefits
from Google jobs

Google TV: with advertising?

Fewer people will be channel surfing, and more people will want to sit down and literally search for something to watch.
radioactiveyak via CNN Money

Size doesn’t matter

Sometimes a spam mail escapes my filters and shows up in my inbox. Last week I got a “Enlarge your …” mail with some girl’s name in the From field. I deleted it right away but subconsciously I had already read some of the content. So I went back and retrieved it from my Deleted Items just to be sure: they really talk about “enlarge a penis up to 10 cm“? (UPDATE: I read this as 10cm TOTAL length, not 10 cm EXTRA length)
Indeed:

First off: as a straight guy I have no practical knowledge of what average size a girl has to put up with these days. Nor am I about to disclose my own dimensions (I want women to like me for my personality). Nevertheless, 10cm or 4″ strikes me as rather short, certainly as an ideal to be reached by taking pills. For those who cannot estimate dimensions: that’s the height of a cheap Nokia phone (the 1100, say).

Google files patents for contextual wifi advertising

registration patent
Google has filed and published the following patent applications:

(1) Method and system to provide wireless access at a reduced rate:
Methods and system for providing wireless access at a reduced rate. In one embodiment, access to a WAP is provided to an end-user at a rate subsidized by a first entity. The first entity includes advertisements in an end-user view.
which sounds like a Google (secure) proxy that modifies passing-though HTML

(2) Method and system to provide advertisements based on wireless access points:
Methods and system to provide advertisements in a view of an end user accessing a wireless access point. The advertisements are related to the WAP based on a predetermined criterion.
aka contextual advertising for Wifi

(3) Method and system for dynamically modifying the appearance of browser screens on a client device:
In one embodiment, a connection of a client device to a wireless access point is identified. Further, the appearance of a screen presented on the client device is modified to reflect the brand associated with a provider of the wireless access point.
aka the ‘captive portal’

on cre8asiteforums.com via seroundtable.com

Moving up the feed chain

While playing with Feed43 recently (an excellent anything-to-RSS converter), I wondered: why doesn’t Feedburner do any of this stuff? It’s just a bit earlier in the RSS food chain (let’s call that the ‘feed chain’). Which of course incentivised me to put that feed chain on paper. This is the result:
RSS feed chain

Web-based web development

Writing code in your browser, it’s coming this way, I tell you! Some indications:

my own WikiRAD article (July 2005)
Playing around with PHP and wikis at the same time made me think on how web-based editing and compiling would be a good way to develop and run web applications
Feed43

Create an RSS feed out of any web page by using regular expressions with a nifty Web2.0 user interface. Lots of services are based on URLs and use RSS as input, so this can be the start of a first application. E.g. I just created an RSS feed for the Stubru playlist pages out of a Stubru Javascript file. Imagine I could now tell Feed43:

for each item in feed_that_I_just_created {
parse_the item_url
publish an rss feed for this item_url as feed_url_X
}

and then start working with that content too.

Amazon S3
web-based outsourced storage for any application, which made John Keyes and Peter Van Dijck to ask themselves: “Can you use Amazon S3 to create the new Flickr killer?”, and which made me think: but what if not only the storage, but the whole program was run by a 3rd party?
Iamalpha (via Richard McManus)
AOL’s new initiative for building microformat-based applications. It’s a bit early to grasp the extent what what they’re trying to accomplish, but I think it’s potentially more than just widgets. They don’t have a web-based IDE yet, but they do have a copy/paste code-validator. Most importantly: the applications are run by AOL!
YouOS (via Jeremy Zawodny)
YouOS: web-based IDE
a web-based OS that allows you to develop Javascript-based applications in a web-based IDE, with version control and compiling. It’s one of the products coming out of Paul Graham‘s Y-combinator startup incubator.

Barcamp Brussels: May 2006

Last year we organised a fairly successful blogger’s dinner in Brussels, and now we’re going to try something different:
next May we will have a Barcamp Brussels event.

WHAT IS A BARCAMP?

Barcamp NY
(photo by miss_rogue)

Barcamp was first organised in LA by Chris Messina and some buddies.

BarCamp is an ad-hoc un-conference born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos, and interaction from attendees.

It is not your regular conference:

  • No spectators, only participants: Attendees must give a demo, a session, or help with one. All presentions are scheduled the day they happen. Prepare in advance, but come early to get a slot on the wall.
  • No fixed agenda: talks, demos and topics are proposed by the attendees when they arrive on a central whiteboard.

Who knows a spam pigeon?

Don't try this at home
I wrote about the economics of spam earlier:

P$ = [N * (I% * S% * W% * B% * M$)] – (N * E$) – (L% * C% * R$)
where
P$ = profit, bottom-line

N = number of emails sent (can be millions!)
I% = % of addresses that are valid/correct
S% = % of addresses that are not intercepted by anti-spam software
W% = % of emails to cause the receiver to go visit the website
B% = % of site visitors that actually buy the product
M$ = margin per product sold

E$ = cost of sending 1 email

L% = risk of having legal action taken against you
C% = risk of getting convicted when you’re in court
R$ = average fine you would have to pay

What I often ask wonder about is the B%: people that actually buy the product. People actually order blue pills upon receiving emails like the one above? People believe they have been chosen to transfer millions of dollars out of some banana-republic?

REQ: more “BEING SPACES” in Brussels

Anyone who often works at home is probably familiar with this: sometimes you would like to work somewhere else to finish something undisturbed, to see some people while you work instead of just the PC and the refrigerator, to have a meeting in a pleasant location, to be in another environment. I often do some work at the Recyclart or the AB Café, and almost always I’m the only nomadic worker there. Both places are cosy and have free Wifi, but they’re not real offices: there is no printer, no meeting room, no water cooler. And since I don’t pay for the accommodation, I feel obliged to order stuff. When I’m hungry, that’s OK, when I’m not, drinking 3 coffees in a row transforms my ADD into ADHD .
I would be glad to pay something between €50 to 100 per month to have a place in Brussels where I can drop by anytime, get some work done (wifi, printer, fax, meeting room, beamer) and maybe have some stimulating conversation with other people present. So when I read about “BEING SPACES”, it really struck home:

(…) urban dwellers are trading their lonely, cramped living rooms for the real-life buzz of BEING SPACES: commercial living-room-like settings, where catering and entertainment aren’t just the main attraction, but are there to facilitate small office/living room activities like watching a movie, reading a book, meeting friends and colleagues, or doing your admin.
from trendwatching

BMI is not perfect

I’ve written a post on the BMI (Body Mass Index) of the candidates for Germany’s next Top Model and I have been mentally bugged ever since. Not by images of thin girls, but by the formula of BMI: weight(kg) / length(m) ^ 2 = kg/m².

Why the square of the length?

BMI measurement
BMI measurement

If the formula were weight/length you can attach a mental image to that: if you took horizontal slices of the body, how much would a 1m high slice weigh? For weight/length³ you can have an image too: kg/m³ or density of the body.

But BMI is kg/m² or something like ‘pressure’ (multiply it with gravity 9.81 m/s² and you get the unit of pressure: Newton/m² or ‘Pascal’).

Blogger snafu: emergency migration to WordPress

One of the reasons why I have been posting less the last couple of days, is because I was working on a migration from Blogger to WordPress. I was still working out some DNS stuff (don’t let me get into that, it’s complicated stuff , to do with how Bluehost‘s -my hosting provider- DNS management works).

So I was just writing a piece on how Google bought Writely with my w.bloggar local client, and when I publish I get an error: “Post was saved as draft, please log in to http://www.blogger.com/ to publish it“. Weird, never have that normally. Anyway, I log in, get the Blogger CAPTCHA ‘word verification’ box and I publish. But I see no changes on blog.forret.com. I publish again. Nothing. Then I click the ‘View Blog’ tab in my Blogger interface. This is what I see:

Blogger Fuck-up
Apparently:

  • my blog is now published to some new awkward blogspot location.
  • my template is gone
  • the new template advises me to discover wordpress.org