Month: July 2006
-
Vídeo verde no Windows Media Player
Finalmente!!! Há meses que eu visitava alguns sites e ou via o vídeo pelo media player embutido no navegador, ou puxava ele e via separado, e o vídeo de repente ficava verde, e o computador, todo lerdo. Para arrumar é simples: Clique com o botão direito no seu desktop, vá em Propriedades (pra janelinha de…
-
Away de Petrópolis comenta os novos impostos
Agora vou viver ao Deus-dará! Achei esse vÃdeo do Away de Petrópolis faz tempo, mas como hoje não tinha muito o quê fazer, decidi colocá-lo no que supostamente é um “blog”. Sim, sim, esse lugar. Dá dois cliques no vÃdeo pra ir no VocêTubo e ver mais vÃdeos do Away.
-
What does this function test?
A function wrote by a co-worker: function test($what, $where) { if (!empty($where)) { if (!empty($where[$what])) { return $where[$what]; } else { return ”; } } else { return ”; } } When I had a look at this function I immediatlly tought: Test? What does it test? Thankfully there’s the $what argument! And look! A…
-
Required date and optional time fields, how to store it?
Say you have a form where your user can input a required date (MM-DD-YYYY) and an optional time (HH:MM). How do you store this? You can be tempted to store it as a timestamp (seconds since the Unix Epoch, for example) on your database, because it represents a date + time. But if your user…