Como fazer download dos KDE Oxygen Icons:
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/oxygen-icons/
Premonição, senhorita que perdeu voo da Air France morre em acidente de carro:
http://g1.globo.com/Noticias/Mundo/0,,MUL1192176-5602,00-ITALIANA+QUE+PERDEU+VOO+DA+AIR+FRANCE+MORRE+EM+ACIDENTE+DE+CARRO+DIZ+JORNAL.html
Espero que o marido consiga melhorar.
O site beta da rádio UOL ficou muito bom: http://beta.radio.uol.com.br
Fizeram uso pesado de JQuery e bons CSS´s.
A tooltip utilizada por eles é a Orbital (plugin do JQuery):
Depois de aprender C, Python e Ruby finalmente resolvi estudar Java.
Abaixo segue um exercício bacana do livro Thinking in Java, exercício 10:
“”"
Exercise 10: (5) A vampire number has an even number of digits and is formed by multiplying a pair of numbers containing half the number of digits of the result. The digits are taken from the original number in any order. Pairs of trailing zeroes are not allowed. Examples include:
1260 = 21 * 60
1827 = 21 * 87
2187 = 27 * 81
Write a program that finds all the 4-digit vampire numbers.
“”"”
Solução (sei que há melhores, mas estou utilizando tão somente o conhecimento passado pelo livro até o momento):
class VampireNumbers {
public static void main(String[] args) {
for(int i = 1000; i < 9999; i++) {
isVampire(i);
}
}
public static void isVampire(int number) {
if(number % 100 == 0) { return; } // Gets numbers with two trailling zeros out.
char[] numberCharArray = ("" + number).toCharArray();
String a = "" + numberCharArray[0];
String b = "" + numberCharArray[1];
String c = "" + numberCharArray[2];
String d = "" + numberCharArray[3];
int ab = Integer.parseInt(a + b);
int ba = Integer.parseInt(b + a);
int ac = Integer.parseInt(a + c);
int ca = Integer.parseInt(c + a);
int ad = Integer.parseInt(a + d);
int da = Integer.parseInt(d + a);
int bc = Integer.parseInt(b + c);
int cb = Integer.parseInt(c + b);
int bd = Integer.parseInt(b + d);
int db = Integer.parseInt(d + b);
int cd = Integer.parseInt(c + d);
int dc = Integer.parseInt(d + c);
int[] multiples = {ab, ba, ac, ca, ad, da, bc, cb, bd, db, cd, dc};
for(int auxA=0; auxA < multiples.length; auxA++) {
for(int auxB=0; auxB < multiples.length; auxB++) {
if(multiples[auxA] * multiples[auxB] == number){
System.out.println(multiples[auxA] + " * " + multiples[auxB] + " = " + number);
}
}
}
}
}
Mesmo não usando Mono esse post é interessante de ler [ http://www2.apebox.org/wordpress/rants/124/ ]. Acho a tecnologia fantástica. Antes de taxarmos-na de ‘tecnologia Microsoft’ devemos ler a respeito.
Salvando stream da web com mplayer e salvando como mp3.
Primeiro passo é garantir que você tem instalado os pacotes:
mplayer
w32codecs
lame
O único um pouco chato de instalar é o w32codecs, para Ubuntu Jaunty tu
pode ir nesse site [ http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-904-jaunty.html ] que ele dá as manhas.
Vamos agora baixar o stream. No console execute:
mplayer -dumpstream http://linkParaOStream
Exemplo:
mplayer -dumpstream mms://wms-rly.181.fm/181-party
O mplayer não executará som nenhum, ao invés disso ele salvará
todo o conteúdo em um arquivo chamado “stream.dump”.
Quando estiver pronto a gravação, aperte CTRL + C para interromper o mplayer.
Agora converta o arquivo para formato WAVE:
mplayer -ao pcm stream.dump
Será gerado um arquivo “audiodump.wav”.
Agora vamos converter para mp3:
lame audiodump.wav nomeQueVoceDeseja.mp3
Pronto. Salve no seu mp3 e vá correr.
Primero post.