Monthly Archive for March, 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.

Continue reading ‘Storing the SQL queries in the database’

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

Continue reading ‘Google moving into Interactive TV’

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).
Continue reading ‘Size doesn’t matter’

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

Continue reading ‘Google files patents for contextual wifi advertising’