Saltar para o conteúdo

Programando na Madrugada

Webcam Life Log

O Webcam Life Log é um utilitário que tira fotos com a webcam, em um intervalo de tempo definido. Desenvolvi ele utilizando o Adobe AIR. Para instalar, basta clicar na imagem abaixo. Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 6.0.65 or higher installed. // version 9.0.115 or greater is required for launching AIR apps. var so = new SWFObject("http://webcamlifelog.googlecode.com/svn/wiki/AIRInstallBadge.swf", "", "215", "180", "9.0.115", "#000000"); so.useExpressInstall("http://webcamlifelog.googlecode.com/svn/wiki/expressinstall.swf"); so.addVariable("airversion", "1.5.3"); so.addVariable("appname", "Webcam%20Life%20Log"); so.addVariable("appurl", "http://webcamlifelog.googlecode.com/files/WebCamLifeLog.air"); so.addVariable("appid", "com.luizpicanco.WebCamLifeLog"); so.addVariable("appversion", "0.1"); so.write("flashcontent"); Screenshot: Webcam Life Log screenshot

Ler mais →

23 de maio de 2010

SessionScope e FlushAction no Castle ActiveRecord

O Castle ActiveRecord é uma implementação do padrão homônimo feita em cima nHibernate. Um ORM bastante conhecido no mundo Java. Apesar de alguns comportamentos serem realizados pelo nHibernate, estarei aqui citando o ActiveRecord como responsável por tais comportamentos. Um problema muito comum que eu costumo me deparar, é com a utilização de lazy loading no ActiveRecord. Geralmente na utilização de lazy loading em aplicações web, é utilizado o padrão Session per Request para o SessionScope. Só que por padrão, o ActiveRecord persiste automaticamente (em algumas situações) as entidades, mesmo que seus métodos Save ou Update não tenham sido invocados. Isso costuma gerar uma série de problemas, como por exemplo, entidades com o seu estado interno inválido sendo persistido.

Ler mais →

9 de abril de 2010

O Gênesis em Java

No início, a terra era sem forma e vazia Então Deus criou o Java e viu que era bom Com o Java ele levou 6 dias para escrever o código-fonte do universo No 7º dia ele botou para compilar e foi descansar E assim, tudo teve início Powered by Java HotSpot Virtual Machine 6.0

Ler mais →

24 de fevereiro de 2010

Erro ao utilizar o mysql no ruby: LIBMYSQL.dll is missing

Um erro muito comum que costuma acontecer no ruby/rails, em ambiente windows é: “LIBMYSQL.dll is missing from your computer” erro E a mensagem também pode aparecer no console da seguinte forma: ruby.exe - Unable to locate Component This application has failed to start because LIBMYSQL.DLL was not found. Re-installing the application might fix this problem. Esse erro ocorre porque a dll do mysql, LIBMYSQL.dll, não foi localizada. Para resolver esse problema, faça o seguinte:

Ler mais →

21 de fevereiro de 2010

The Social Media Revolution

We no longer search for the news, the news find us… Are you ready ? UPDATE: 08/05/2010 Versão 2.0:

Ler mais →

25 de agosto de 2009

Obtendo as Properties pela ordem de declaração no C#

Em alguns momentos, pode ser necessário obter a lista de properties de um objeto. Um jeito simples de fazer isso é: private IEnumerable<PropertyInfo> GetProperties(Type type) { return type.GetProperties(); } O problema é que, segundo a Microsoft, a ordem em que as properties são retornadas não é garantido:

Ler mais →

18 de agosto de 2009

Jamais compre um notebook HP !!!

Eu fui proprietário de um notebook HP, modelo tx1070br, que parou de funcionar de forma repentina. Pesquisando nos fóruns, qual não foi a minha surpresa ao constatar que CENTENAS de pessoas tiveram o mesmo problema ? Em quase todos os casos, para não generalizar, a HP ignorou o caso e como a maioria dos problemas “estranhamente” ocorreram logo após o término de garantia, cobrou pelo serviço. Algumas pessoas pagaram e logo após receberem o notebook de volta(após 2 meses), o notebook apresentou o mesmo problema.

Ler mais →

2 de julho de 2009

Erro na instalação de uma Ruby Gem: no such file to load -- mkmf

Se ao instalar uma gem você se deparou com esse erro: Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install mechanize extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1

Ler mais →

6 de maio de 2009

Guia rápido do Grails

É bom ver a comunidade Grails crescendo no Brasil. O Henrique Weissmann produziu esse ótimo guia sobre o Grails. O guia está divido da seguinte forma: 1 - Introdução 2 - Como instalar o Grails 3 - Groovy - O básico para quem for aprender Grails 4 - Grails Acesse aqui: Grails: um guia rápido e indireto ë /dev/Kico

Ler mais →

26 de abril de 2009

Batalha de RAP de geeks

Veja como os geeks fazem uma batalha de RAP: djahandarie: we ain’t here to do e-c-e djahandarie: we’re here to do c-s-e on the w-e-b djahandarie: listen to me spit these rhymes djahandarie: while i program lines djahandarie: and commit web accessibility crimes djahandarie: word, son http402: You talk like your big on these I-Net kicks, http402: But your shit flows slower than a two-eighty-six. http402: I’m tracking down hosts and nmap scans, http402: While Code Igniter’s got you wringing your hands. http402: Cut the crap rap, http402: Or I’ll run ettercap, http402: Grab your AIM chat, http402: N’ send a PC bitch-slap! http402: peace djahandarie: you’re talkin bout down hosts and nmap scans djahandarie: while i got other plans djahandarie: you’re at your new job, but you can’t even do it right djahandarie: you just create a plight with your http rewrites djahandarie: i’ve been on the web since the age of three djahandarie: you just got on directly off the bus from mississippi djahandarie: respect yo’ elders, bitch http402: You’ve been webbin’ since three, but still ain’t grown up, http402: Gotta update your config and send the brain a SIGHUP. http402: You say you’re that old? No wonder you’re slow! http402: You’re knocking at the door while I run this show! http402: Elders my ass, you’re shit’s still in school, http402: Hunt and pecking at the keyboard like a spaghetti-damned fool, http402: Rim-riffing your hard drive like a tool, http402: Face it. I rule. djahandarie: i erase my harddrives with magnets (bitch) djahandarie: all you can do is troll on the fagnets djahandarie: and son, my brain’s wrapped in a nohup djahandarie: it wont be hurt by the words you throwup djahandarie: dont mind me while i emerge my ownage djahandarie: while you’re still over there apt-getting your porridge djahandarie: you say i’m still in school djahandarie: but the fact is that i know the rule djahandarie: cuz you need to go back to grade three djahandarie: and you better plea, that they take sucky graduates from c-s-e http402: Time to bend over and apply a patch, http402: Your brain’s throwing static like a CD with a scratch. http402: Your connection got nuked and you’ve met your match. http402: You run a single process like a VAX with a batch. http402: I’d pass the torch to a real winner http402: But it’d just scorch a while-loop spinner http402: Caught in a loop that you cant escape, http402: I run clock cycles around your words and flows, http402: Cuz your rhyme is like a PS fan: it’ blows, http402: Your water-cooled lyrics leak and it shows, http402: Take your ass back to alt.paid.for.windows. djahandarie: Good god, I can’t even respond to that. :P djahandarie: You win haha

Ler mais →

17 de abril de 2009