quarta-feira, 4 de maio de 2011

Brasil: País de TOLOS(Nós)!

Beleza de país!

Composição do preço gasolina ( em reais) :

Gasolina ("A") 800ml (pura, vendida pela Petrobrás) = R$ 0,80
Álcool Anidro 200 ml (os 20% misturados à gasolina) = R$ 0,24

TOTAL = R$ 1,04 / Litro
+
CIDE - PIS/COFINS (Imposto Federal) = R$ 0,44
ICMS (Imposto Estadual) = R$ 0,64
TOTAL DE IMPOSTOS (104% do Preço Bruto) = R$ 1,08

TOTAL (CUSTO + IMPOSTOS) = R$ 2,12
+
LUCRO DA DISTRIBUIDORA (Média por Litro) = R$ 0,08
FRETE (Média por Litro) = R$ 0,02
LUCRO DO POSTO (Média por Litro) = R$ 0,25

FINALIZANDO:
VALOR NA BOMBA COM IMPOSTOS
= R$ 2,47
VALOR NA BOMBA SEM IMPOSTOS = R$ 1,39

Portanto, se você consome 200 litros de gasolina por mês, o bolo
fica dividido assim:
DONO DO CARRO (otário 01- Você, no caso....) GASTA: R$ 494,00
DONO DO POSTO (otário 02) GANHA: R$ 50,00
DONO DO CAMINHÃO (otário 03) GANHA: R$ 4,00
PETROBRÁS (gente que rala...) GANHA: R$ 16,00
GOVERNO (nem um pouco otário....gente de lobby....gente da corte.....

gente picareta....gente privilégio - reforma não...gente auto-salário) GANHA: R$ 216,00

Deveríamos comemorar a "auto-suficiência" em roubo também.

Nós produzimos nossos próprios corruptos...

BRASIL: UM PAÍS DE TOLOS!!!

quarta-feira, 8 de setembro de 2010

Eclipse Helios Proxy Error

Add to eclipse.ini
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=acces_port
-Dhttp.proxyHost=proxy_ip
-Dhttp.proxyUser=username
-Dhttp.proxyPassword=passwd
-Dhttp.nonProxyHosts=localhost|127.0.0.1

domingo, 7 de fevereiro de 2010

.conkyrc

alignment top_lefth
background no
border_margin 2
border_width 2
cpu_avg_samples 2
double_buffer yes
default_color green
default_shade_color black
default_outline_color grey90
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
gap_x 5
gap_y 55
minimum_size 150 5
maximum_width 245
no_buffers yes
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
override_utf8_locale yes
stippled_borders no
total_run_times 0
update_interval 0.5
use_xft yes
uppercase no
use_spacer yes
xftfont Terminus:size=10
xftalpha 0.8

TEXT
${color blue}${font Arial Black}${alignc}${voffset 6}${time %A, %e %B %G}
${color white}${font Arial Black:size=20}${alignc}${time %H:%M}${font}
#Linux Logo
${color white}${font OpenLogos:size=30}${alignc}J${font OpenLogos:size=35}^${font}
#Uptime
${voffset 2}${color}${font StyleBats:size=12}O ${font}${color white}UpTime: ${color }$uptime
#Kernel Version
${color}${font StyleBats:size=12}Q ${font}${color white}Kernel: ${color }$kernel
#PUBLIC IP
#${color}${font StyleBats:size=12}Z ${font}${color white}Public IP: ${color }${execi 1 ~/.conkyscripts/ip.sh}
#System Temperature
${color}${font StyleBats}y ${font}${color white}System temp: ${color}${acpitemp}°C
#Gpu Temp
${font StyleBats:size=12}k ${font}${color white}GPU temp: ${color}${execi 20 nvidia-settings -q gpucoretemp |grep Attribute |awk '{print $4}' | cut -c1-2} °C
#Cpu Frequence
${font StyleBats:size=12}k ${font}${color white}Frequency: ${color} ${freq} Mhz
#CPU Usage
${color white}CORE 1: ${color}$font${cpu cpu1}% $alignr
#${color white}CORE 2: ${color}$font${cpu cpu2}%
#CpuGraphic
${cpugraph cpu1 25,245 789E2D A7CC5C} $alignr
#${cpugraph cpu2 25,120 789E2D A7CC5C}
#Memory
${color white}MEM: ${color} $memperc% $mem/$memmax
${memgraph 25,245 789E2D A7CC5C}
#${color white}${membar 3,245}
#Swap
${color white}SWAP: ${color } $swapperc% $swap/$swapmax
${color white}${swapbar 3,245}
#Root Directory
${color white}ROOT: ${color }${fs_free /}/${fs_size /}
${color white}${fs_bar 3,245 /}
#Home
${color white}Home: ${color }${fs_free /home}/${fs_size /home}
${color white}${fs_bar 3,245 /home}
NETWORK ${hr 1}${color}
${font PizzaDude Bullets:size=12}S${font}${color white} Down ${downspeed eth0} ${color}${alignr}${font PizzaDude Bullets:size=12}M${font}${color white} Up ${upspeed eth0} ${color}
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}
${color white}${hr 2}
#Gmail Monitor
#${voffset -14}${color}${font Martin Vogel's Symbols:size=16}B${font}${color white}gmail_1: ${color white}${alignr}${color green}${execi 300 python ~/scripts/gmail_1.py n} ${color white}mail(s)
#${voffset -14}${color}${font Martin Vogel's Symbols:size=16}B${font}${color white}gmail_2: ${color white}${alignr}${color green}${execi 300 python ~/scripts/gmail_2.py n} ${color white}mail(s)
#Amarok Player
#${color}Amarok:
#${color white}${font Terminus:size=8}${exec dcop amarok player artist}
#${font Terminus:size=10}${exec dcop amarok player title}
#${hr 2}
#top 5
${color}${font Webdings:size=12}i ${font}${color white}Top 7 ${alignr}CPU% MEM%
${color}${top name 1} ${alignr}${top cpu 1} ${top mem 1}
${color white}${top name 2} ${alignr}${top cpu 2} ${top mem 2}
${top name 3} ${alignr}${top cpu 3} ${top mem 3}
${top name 4} ${alignr}${top cpu 4} ${top mem 4}
${top name 5} ${alignr}${top cpu 5} ${top mem 5}
${top name 6} ${alignr}${top cpu 5} ${top mem 6}
${top name 7} ${alignr}${top cpu 5} ${top mem 7}

sábado, 16 de janeiro de 2010

Tomcat6

Links necessários :
cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat6 log
sudo chmod -R 777 /usr/share/tomcat6/conf

sexta-feira, 15 de janeiro de 2010

amarok.sql

CREATE DATABASE amarok;
USE amarok;
CREATE TABLE tags (url VARCHAR(900),dir VARCHAR(900),createdate INTEGER,modifydate INTEGER,album INTEGER,artist INTEGER,composer INTEGER,genre INTEGER,title VARCHAR(255),year INTEGER,comment TEXT,track NUMERIC(4),discnumber INTEGER,bitrate INTEGER,length INTEGER,samplerate INTEGER,filesize INTEGER,filetype INTEGER,sampler BOOL,bpm FLOAT,deviceid INTEGER);
CREATE TABLE album (id INTEGER PRIMARY KEY ,name VARCHAR(255));
CREATE TABLE artist (id INTEGER PRIMARY KEY ,name VARCHAR(255));
CREATE TABLE composer (id INTEGER PRIMARY KEY ,name VARCHAR(255));
CREATE TABLE genre (id INTEGER PRIMARY KEY ,name VARCHAR(255));
CREATE TABLE year (id INTEGER PRIMARY KEY ,name VARCHAR(255));
CREATE TABLE images (path VARCHAR(900),deviceid INTEGER,artist VARCHAR(255),album VARCHAR(255));
CREATE TABLE embed (url VARCHAR(900),deviceid INTEGER,hash VARCHAR(900),description VARCHAR(255));
CREATE TABLE directories (dir VARCHAR(900),deviceid INTEGER,changedate INTEGER);
CREATE TABLE uniqueid (url VARCHAR(900),deviceid INTEGER,uniqueid VARCHAR(32) UNIQUE,dir VARCHAR(900));
CREATE TABLE admin (noption VARCHAR(255), value VARCHAR(255));
CREATE TABLE related_artists (artist VARCHAR(255),suggestion VARCHAR(255),changedate INTEGER );
CREATE TABLE amazon ( asin VARCHAR(20), locale VARCHAR(2), filename VARCHAR(33), refetchdate INTEGER );
CREATE TABLE lyrics (url VARCHAR(900), deviceid INTEGER,lyrics TEXT, uniqueid VARCHAR(32));
CREATE TABLE playlists (playlist VARCHAR(255), url VARCHAR(900), tracknum INTEGER );
CREATE TABLE labels (id INTEGER PRIMARY KEY , name VARCHAR(255), type INTEGER);
CREATE TABLE tags_labels (deviceid INTEGER,url VARCHAR(900), uniqueid VARCHAR(32), labelid INTEGER REFERENCES labels( id ) ON DELETE CASCADE );
CREATE TABLE podcastchannels (url VARCHAR(900) UNIQUE,title VARCHAR(255),weblink VARCHAR(900),image VARCHAR(900),comment TEXT,copyright VARCHAR(255),parent INTEGER,directory VARCHAR(255),autoscan BOOL, fetchtype INTEGER, autotransfer BOOL, haspurge BOOL, purgecount INTEGER );
CREATE TABLE podcastepisodes (id INTEGER PRIMARY KEY , url VARCHAR(900) UNIQUE,localurl VARCHAR(900),parent VARCHAR(900),guid VARCHAR(900),title VARCHAR(255),subtitle VARCHAR(255),composer VARCHAR(255),comment TEXT,filetype VARCHAR(255),createdate VARCHAR(255),length INTEGER,size INTEGER,isNew BOOL );
CREATE TABLE podcastfolders (id INTEGER PRIMARY KEY , name VARCHAR(255),parent INTEGER, isOpen BOOL );
CREATE TABLE statistics (url VARCHAR(900),deviceid INTEGER,createdate INTEGER,accessdate INTEGER,percentage FLOAT,rating INTEGER DEFAULT 0,playcounter INTEGER,uniqueid VARCHAR(32) UNIQUE,deleted BOOL DEFAULT 0,PRIMARY KEY(url, deviceid) );
CREATE TABLE devices (id INTEGER PRIMARY KEY ,type VARCHAR(255),label VARCHAR(255),lastmountpoint VARCHAR(255),uuid VARCHAR(255),servername VARCHAR(255),sharename VARCHAR(255));
CREATE INDEX album_idx ON album( name );
CREATE INDEX artist_idx ON artist( name );
CREATE INDEX composer_idx ON composer( name );
CREATE INDEX genre_idx ON genre( name );
CREATE INDEX year_idx ON year( name );
CREATE UNIQUE INDEX url_tag ON tags( url, deviceid );
CREATE INDEX album_tag ON tags( album );
CREATE INDEX artist_tag ON tags( artist );
CREATE INDEX composer_tag ON tags( composer );
CREATE INDEX genre_tag ON tags( genre );
CREATE INDEX year_tag ON tags( year );
CREATE INDEX sampler_tag ON tags( sampler );
CREATE INDEX images_album ON images( album );
CREATE INDEX images_artist ON images( artist );
CREATE INDEX images_url ON images( path, deviceid );
CREATE UNIQUE INDEX embed_url ON embed( url, deviceid );
CREATE INDEX embed_hash ON embed( hash );
CREATE UNIQUE INDEX directories_dir ON directories( dir, deviceid );
CREATE INDEX uniqueid_uniqueid ON uniqueid( uniqueid );
CREATE INDEX uniqueid_url ON uniqueid( url, deviceid );
CREATE INDEX tags_artist_index ON tags( artist );
CREATE INDEX tags_album_index ON tags( album );
CREATE INDEX tags_deviceid_index ON tags( deviceid );
CREATE INDEX tags_url_index ON tags( url );
CREATE INDEX embed_deviceid_index ON embed( deviceid );
CREATE INDEX embed_url_index ON embed( url );
CREATE INDEX related_artists_artist ON related_artists( artist );
CREATE INDEX url_podchannel ON podcastchannels( url );
CREATE INDEX url_podepisode ON podcastepisodes( url );
CREATE INDEX localurl_podepisode ON podcastepisodes( localurl );
CREATE INDEX url_podfolder ON podcastfolders( id );
CREATE INDEX devices_type ON devices( type );
CREATE INDEX devices_uuid ON devices( uuid );
CREATE INDEX devices_rshare ON devices( servername, sharename );
CREATE UNIQUE INDEX lyrics_url ON lyrics( url, deviceid );
CREATE INDEX lyrics_uniqueid ON lyrics( uniqueid );
CREATE INDEX playlist_playlists ON playlists( playlist );
CREATE INDEX url_playlists ON playlists( url );
CREATE UNIQUE INDEX labels_name ON labels( name, type );
CREATE INDEX tags_labels_uniqueid ON tags_labels( uniqueid );
CREATE INDEX tags_labels_url ON tags_labels( url, deviceid );
CREATE INDEX tags_labels_labelid ON tags_labels( labelid );
CREATE UNIQUE INDEX url_stats ON statistics( deviceid, url );
CREATE INDEX percentage_stats ON statistics( percentage );
CREATE INDEX rating_stats ON statistics( rating );
CREATE INDEX playcounter_stats ON statistics( playcounter );
CREATE INDEX uniqueid_stats ON statistics( uniqueid );

domingo, 26 de abril de 2009

Cedilla - layout Internacional

Add : en no último parâmetro

sudo vim /usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules

"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"

Modificar o mapa de caracteres :

sudo gedit /usr/share/X11/locale/en_US.UTF-8/Compose





quarta-feira, 14 de janeiro de 2009

why?

Nós vamos morrer, e isso nos torna afortunados. A maioria das pessoas nunca vai morrer, porque nunca vai nascer. As pessoas potenciais que poderiam estar no meu lugar, mas que jamais verão a luz do dia, são mais numerosas que os grãos de areia da Arábia. Certamente esses fantasmas não nascidos incluem poetas maiores que Keats, cientistas maiores que Newton. Sabemos disso porque o conjunto das pessoas possíveis permitidas pelo nosso DNA excede em muito o conjunto de pessoas reais.
Apesar dessas probabilidades assombrosas, somos eu e você, com toda a nossa banalidade, que aqui estamos...