Monday, December 29, 2008

Lumines Mobile

Enough with programming, let's talk about games, one of my favorites is the Lumines, i do have the mobile version, that is in game play very similar to other versions (basically just lacks some musics and the time bar doesn't change speed within the same music) This game is very similar to tetris, but adds some tricks that make it one of the best arcade games ever invented. Mobile version has several modes: Arcade (with easy, medium and hard), Challenge ( beat 999.999 points), vs. CPU (the last guy is quite hard), Single Skin (one music, one skin - gets boring after a while), Time Attack (make more in less time), Puzzle (make some shapes on screen - mobile version has only a few), Shuffle (pretty much challenge but in a random fashion). I also made a version for TI-89 (a long, LONG time ago - i kept it on one of my backups), is kinda simple and lacks a menu... but works... Now... about hi-scores >:D ... i wonder if someone who has this game can beat mine:
  • I have gold in all arcade levels... so i'll just skip the score of arcade (heck that would made the list quite long)
  • I have the 999.999 in challenge mode (several times actually - in PSP/PS2 this would have an extra 9)
  • I have 81 Blocks in 90 secs, 132 in 180, 230 in 300 and 432 in 600 for time attack mode... this is the mode i play now that i beat the game.
I think this will make a nice challenge for the ones who have the game on mobile phone (or even in PSP or PS2) and finished it already... I think this is my last post this year, soo ... happy new year! ;p

Saturday, December 20, 2008

JS, Base64, png's...

And now for something totally diferent: PNG JS Encoder Have fun >:D PS: Sorry if this makes you're browser crash .... it's supposed to run well on any decent browser and to show an color pick like image....

Friday, December 19, 2008

Exaustion...

So... i just delivered my assignment... i lost 3 weeks to nothing i guess... is just like a huge amount of code that does a lot of stuff in background, but it does little to be shown to user, so my guess is that i'll have a negative grade or something - teachers usually only look to the interface - go figure... Oh! And teacher requested us to do an webpage to show the work we have done... yeah... he can go to a certain place i know if he thinks we have time to do it.... Well, even if teacher allow to proceed the development in case of negative grade i won't do it, cos i simple have no time: i have to finish another work 'till 10th january (this includes a report and quite some code) and to study to finals (2 classes), not to forget my thesis (that is barelly started), so.... i'll just forget the pratical side of this class, and just study for the finals and do the other work. Yeah.. while unlikely, i'm angry and exausted both physically and mentally... so sorry if my english is not the best .... and sorry for rant about this ... but is better than yell it out loud.... That's all.... i'll just take some - very long - vacations over .NET and C#... now ... i only look to VHDL, C and javascript - they are like my puppies x3, VHDL to have stuff done in hardware, C to do just the stuff i like for most of the stuff, and JS to prototype algorithms or just mess around with browsers... >__>'' good old times.... Damn! I can't even draw now... my tablet is dead and i don't think i'll get a new one so soon.... *sigh* sorry again for the rant... bare with me while i yell at my problems ...

Wednesday, December 17, 2008

Working with .NET again

If you want a little piano for your Windows Mobile PDA you can get it here (copy-paste to install - works on WM2003 and later), it was made as a test for my sound control class, enjoy ;p Sorry for the 'bad' piano tones (it looks more like a guitar) but i didn't have time to mess with audacity and get a nice tone ... Well ... nothing else to report for now.... *goes back to work* PS: Well... today is my birthday... tsh ... i'm getting too old...

Thursday, December 11, 2008

C# a quanto obrigas...

Sim, claro ... após 600 linhas de codigo para fazer um servidor não há muito que possa estar mal além de uns typos ... certo? .... errado... estaria certo se estivesse a falar de C .... o velhinho C .... mas com o C# aquilo que parecia estar certo pode estar errado ... muito errado... (e de notar que este problema aqui descrito nem foi o pior ... apenas o mais simples de entender). Vejamos como exemplo o seguinte pedaço de codigo: foreach (ClientInfo client in clientList) { if (clientSocket == client.socket) { client.state = ClientInfo.State.READY; } if (client.state == ClientInfo.State.READY) { msgToSend.current++; } } onde clientList é um ArrayList da struct ClientInfo (podia ser um List mas havia problemas semelhantes, mesmo tentando com clientList[index].state).... e onde está o problema? simples, dentro de um foreach podem apenas ler .... yep .... aprendi isso da pior forma.... ou seja, após ter finalizado toda a implementação e testado tudo o resto ... eu definitivamente não me dou bem com OO... Parece que não fui o unico (mais detalhado)... >.< ... bem problema resolvido ... struct pra class ... hora de implementar o cliente ... (definitivamente não vou acabar isto a horas)

Wednesday, December 10, 2008

.NET Framework

While the development of the application for CM classes has stalled due to extreme complexity, i did not stop searching solutions to simplify the application (i don't think i'll finnish the application on time anyway). Regarding network comunication using .NET Framework i found two very nice samples that may provide some help, i share my findings here with you. I hope to post my own solution in the future (or just failing epically as i usually do in high-level languages). Samples are both in C#. Links: A Chat Application Using Asynchronous TCP Sockets A Chat Application Using Asynchronous UDP sockets

Tuesday, December 9, 2008

Firefox 3: Add-ons

O firefox tem milhares de add-ons disponiveis, alguns são lixo, mas outros são insubstituiveis, assim deixo aqui a minha lista de add-ons favoritos, alguns deles já mencionados anteriormente, deixo também umas dicas de utilização deles:
  • Downthemall (leia-se down them all e não down the mall) - gestor de downloads, permite aceleração através de multi-part até 10 ligações (pode acelerar até uma maximo teorico de 10x). Permite ainda criar batches de downloads, fazendo a tarefa de tirar ficheiros numerados algo trivial.
  • Firebug (e FireCookie) - Indispensavel para quem desenvolve paginas relativamente complexas, permite debug e alteração do HTML DOM, visualização dos pedidos HTML GET e POST (e com isso é possivel ver os links para os ficheiros de video usados nas aplicações flash - aka.: youtube - ou chamadas de XML de aplicações AJAX), possui ainda uma consola onde é possivel correr comandos JS, e permite a edição de HTML, CSS e script de uma pagina carregada, em conjunto com o firecookie permite ainda a rapida visualização dos cookies de uma pagina.
  • GreaseMonkey - Se o firebug é optimo para ver tudo o que uma pagina tem, o greasemonkey é optimo para alterar de forma automatica tudo o que uma pagina tem. Permite a utilização de scripts em JS para editar o conteudo de paginas carregadas, alterar estilos, adicionar informação, automatizar tarefas, tudo é possivel com este add-on.
  • Classic Compact Theme e Classic Compact Options - Para quem quer o máximo de area disponivel sem sacrificar a usabilidade, a interface superior do meu firefox ocupa apenas 41 pixeis com o menu ficheiro e menu de tabs incluidos, mais 17 pixeis para a barra de estado, o que significa uma area util de 1280x727 para visualização da pagina no meu portatil com um ecrã de 1280x800 - batendo assim o google chrome (1276x722)!
Existem outros add-ons que são bastante uteis, o Ad Block Plus, é um a destacar, mas como as paginas que visito raramente têm pop-ups ou ads intrusivos optei por não usa-lo (ele 'papa' um bocado o cpu quando uma pagina carrega).

Sunday, December 7, 2008

Blog layout

I really hate doing layouts... but i did it because my posts are a bit ..... freaking huge sometimes... well, the sidebar is off-screen in IE7 so bare with it - or just use Firefox, Opera, Safari, Konqueror or Chrome that works properly. Yep IE is nasty... but that you should knew it already...

Opera 10

*stares* http://www.opera.com/browser/next/

DataSet.WriteXml

Let's talk about .NET Framework (Compact Framework to be more specific) .... again... After spent several hours trying to put my XML file control class to work properly i finnally had some success. When i saw the methods WriteXml and ReadXml for DataSet object i said to myself: "Zeca take a note here... this is pretty usefull!"... only for after a few minutes of coding bash to find out that it didn't quite work like i wanted... things is quite simple to be explained, at least the problem, i check if file exists (Sistem.IO.File.Exists(filepath) - or similar), if not, create a new one with default data on it, then return the data, if file exists, use ReadXML on DataSet and get the data... well ... this works pretty well, ok, now i loaded data into some forms (a settings form) then modify some and exit the form to main menu, when i exit i store the changes on DataSet, and do a WriteXml at the end, simple right? Well it works .... until you do the drill a second time.... it reads correctly, it calls WriteXml at exit, it seems to save the changes .... but it doesn't! Now my solution: Don't use the same DataSet! Create a new one, and yes i tried commitChanges methods before trying this solution... in the end this was the only thing that work. I don't know why this happens, anyway it could be a file open mode problem - when reading the information the file is openned in read mode, and later when writing on it, DataSet.WriteXML uses the same file handler to do the job... failing silently... If anyone had the same problem or know what i was/am doing wrong please fell free to comment it out. Thanks in advance. PS: I really start to hate ALL object oriented languages - not all object-able languages

Saturday, December 6, 2008

Blogging and organization...

In the next minutes i'll be organizing my tags on blog post, so that you can find stuff easier (like you ever need that) PS: A visit from Brazil in my blog? That was trully unexpected... =3

.NET Compact Framework experiences

Today i made my first custom control for .NET Compact Framework, nothing too fancy and mostly was copy-paste from msdn website. Well, it does the job and is compatible with Visual Studio interactive designer (that was the tricky part actually). A few days ago i made some experiences with sound on managed code, i found out an awsome class for playing .wav files, the API is just amazingly simple. System.Media.SoundPlay is it's name, you can find all info about it on msdn library, it allows syncronous or assyncronous playback of .wav files, but please remember that .wav files must be encoded in PCM and that big .wav files means huge resources being allocated, so don't just put that 10min studio quality audio pcm file and expect the handheld to be all fine, but is quite useful for little sound effects. Adding to that i adapted a class i found on the internet to manage XML files in such a way that can make them behave as small databases for persistency on the device.

Wednesday, December 3, 2008

Xmas list.... right...

Well... i know i'll never get those ... but since i hope to finish my studies and get a job on this next summer (thinking too ahead i know >__>''), i can start by making a list to where my savings should go (hoping some generous soul that won the lottery has nothing to do to the money - right....)... well here it goes - some of the stuff is not even available yet:
  • Nokia 5800 XpressMusic (i could ask for a N97... but is too heavy and expensive)
  • Sony Alpha 350k (i'm not being greedy ... really!)
  • Sony HDR-SR11E (i could ask for more ... but this is just overkill already)
  • Samsung SyncMaster 2233SW (i could use one to replace my old CRT)
  • Intuos3 A5 Wide USB "Special Edition"
  • Pandora Handheld (this one gonna be VERY tricky to get)
  • Some free time... to use all the suff above =3
So ... anyone with a heavy felling in the pocket? I know, i know: "Keep dreaming...". Note: please keep in mind that this was done just because i was bored and lacking sleepiness at 5h00 am

Sunday, November 30, 2008

Stuck pixel? no problem!

If you know what a stuck pixel is (no, is not the same as a dead one) and you happen to get one, just follow this link: http://flexcode.org/lcd.html My new laptop had one... was hardly visible, but now is gone!

Sunday, November 23, 2008

Bored...

Well ... i was bored so i wandered on the internet, over old places i used to visit.... I bumped into some updates on Ranu's manga, SugarStars, i lost the number of times she did restart over ... i hope this is the last time (i don't think she can improve any further in drawing quality ... and story seems to be awesome as far as i could read it) Oh yes .... i added her to my blogging list .... pay her a visit if you wish, she is quite an artist... Someone asked me what mangas do i read.... here goes the list, i may be missing some: Anima+ Asklepios Bleach Blue Dragon - Ral Grado Claymore Chrome Shelled Regios DNA^2 Double Arts Doubt Dragon Half Dragonaut - The Resonance Hot Milk Koko ni Iru Yo! Laon Little Little Mahou Sensei Negima! Mononoke Monster Mushishi Mx0 Naruto Nurarihyon no Mago Persona 3 Saki Shade - The Other Side Of Light The Lucifer and Biscuit Hammer To Love-Ru

Tuesday, October 28, 2008

Há uns dias limpei o desktop ... no sentido fisico... tirei uma carrada de porcaria dos filtros de ar... Por curiosidade procurei por "dust in computer" no google ... bem fica o link: http://blog.savel.org/2007/07/17/dust-in-computer/ Vejam lá não deixem chegar o PC a esses extremos....

Saturday, October 18, 2008

Portátil novo!

Bem tenho um portatil novo... o velhote ardeu... como a plataforma montevina não está muito divulgada deixo aqui uma pequena review: Especificações: Portatil: Runner T564 CPU: Intel® Core 2 Duo P8600 2.4GHz 3MB Cache FSB1066 Display: 15,4." WIDE WXGA, Máx. 1280x800, Glare RAM: 3GB SODIMM DDR2 667 (exp. até 4GB) Chipset: Intel® PM45 Grafica: 512MB GeForce 9600M GT Drive: Gravador DVD RW DUAL (+/-) Disco: 320GB SATA 5400RPM Rede: 10/100/1000Mbps, Wireless Intel Wifi Link 5100 AGN, Bluetooth 2.0 Som: Realtek High Definiton Audio 7.1, 2 altifalantes, Mic integrado Portas: 1 saída VGA p/ Monitor externo, 1 HDMI, 2 USB, 1 mini-Firewire, e-SATA, 1 RJ45, 1 RJ11, Headphones Out, Speaker-out, Audio in, Mic-in, Slots: 1 Slot Express Card + 1 Card Reader 4 em 1 SD/MMC/MS/MS-PRO Extras: Webcam 2.0Mpx, Microfone, keypad numérico integrado Bateria: Iões de Lítio, 7200mAh, 6 Células Peso: 3.07 Kg ( com bateria ) Mobilidade: Não é o portátil mais leve do mundo, mas a bateria revela um ponto positivo na autonomia, tem mais de 3h de bateria, que facilmente chegam às 4h em navegação web por wi-fi, sem duvida que o centrino 2 ajuda, um ponto negativo da bateria é o seu tamanho, que faz com que saia na traseira do portatil. Performance: Não é nenhum topo de gama, mas este bichinho é mais rápido que o meu desktop, estando à vontade para as tarefas mais pesadas, os 3Gb ram revelam-se uteis quando falamos do Vista a correr. Quanto à componente grafica, podem jogar Crysis em com bastantes settings em high, a grafica permite ainda aceleração de fisicas por hardware, sendo possivel jogar Warmonger sem problemas. Conectividade: A 5100 da intel é sem duvida eficiente quer em termos energeticos quer em alcance. O bluetooth é bastante rápido, embora não tenha testado o alcance deste. A porta de rede é um pouco esquisita com o conector, se tiver muita borracha à volta pode não fazer contacto. A camera e o microfone embutidos funcionam bastante bem, embora o som do microfone seja um pouco baixo. Conforto de utilização: O ecrã não possui os melhores angulos de visão, embora o brilho e o contraste sejam irrepreensiveis. O teclado requer alguma habituação, tendo como areas mais problematicas, o Fn/Ctrl, a zona das setas, o shift direito e o <>, incrivelmente embora as teclas . e - sejam quase de metade do tamanho, são muito acessiveis, o mesmo se passa com o enter. Para quem faça entrada de numeros o numpad é identico ao de um desktop. Nunca utilizei as teclas de multimedia. O touchpad é preciso e rápido, nada de mal a apontar. A activação da webcam, bluetooth e tv-tuner (opcional) é feita através de sensores de toque, aparenta ser uma solução elegante e funcional. Qualidade aparente: Os plasticos que rodeiam o teclado aparentam ser frageis e pouco seguros. A traseira do ecra aparenta ser uma liga metalica bastante resistente. Os plasticos usados no fundo são bastante sólidos. O som das colunas pode fazer o painel plastico, que está por cima delas, vibrar no volume mais alto. A temperatura maxima que o portátil alcançou foi bastante baixa, o som da ventoinha do dissipador mal se faz sentir. Conclusão final: Um portatil equilibrado, onde a performance e autonomia estão em destaque sendo um optimo desktop replacement sem um peso excessivo, o teclado poderia estar melhor, assim como a qualidade de alguns plasticos. Optimo para uso em aplicações multimedia, ou que requeiram poder de processamento.

Informação.

A todos os utilizadores da zapp que com o tarifário Web Sem Limites: Quando o serviço foi lançado em Portugal era impecável, sempre rápido, podia jogar Fear Combat online com um ping de 100-150ms, e fazer downloads a quase 300Kb/s muito perto da velocidade anunciada. Quando uma aplicação efectuou trafego p2p eles telefonaram, eu indiquei que não tinha conhecimento de qq aplicação p2p a correr no pc, mas como bom samaritano iria pesquisar, e procurei melhor, um software de actualização de um jogo usava p2p, informei-os e eles agradeceram a informação e pediram desculpa pelo incomodo causado e pediram compreensão que o serviço ainda era novo, tudo bem disse eu. Por norma fazia entre 500Mb a 800Mb por dia. Até aqui tudo bem. Após alguns meses, começaram a aparecer registos de 2 e 3Gb de trafego diários, eu desliguei a internet por 2 dias pensando que teria apanhado algum malware que causasse tal dado .. mas durante esses 2 dias continuaram a aparecer registos de 2Gb no portal myZapp. O trafego apesar de ser sem limites tinha explicita uma clausula no contracto que impedia o uso abusivo do serviço, embora ambiguo vinha seguido de um exemplo, 1Gb por dia durante 5 dias consecutivos, assim sendo, enviei um mail a avisa-los da situação, eles não responderam de forma clara ('vamos tratar do assunto'), mas não houve repercursões. Até aqui tudo bem. Passados 2-3 meses notei que a internet estava espectacularmente lenta, o messenger sempre a ir a baixo, o google a demorar 20 a 30 seg para abrir... entre outros. Enviei um email a pedir explicações, eles fizeram um teste à minha ligação, telefonaram-me, pediram pra testar uns comandos e apuraram que o problema era o meu PC que talvez tivesse virus. Muito bem, disse eu (de notar embora os teste tenham sido feitos no windows, tinha linux e a velocidade era pouco mais rapida), no mês seguinte formatei o PC, instalação limpa do XP, instalei os drivers da zapp e ... claro ... leeeento como tudo a aceder à net, novo mail para a zapp, desta vez o problema não foi apurado pelo que eles disseram que o remeteriam para a 'equipa tecnica' e este seria resolvido. Ao fim de um par de dias, a internet estava rápida de novo. E tudo estaria bem se não fosse pelo facto de eles terem mais tarde alterado o sistema de gestão de qualidade de serviço (ou algo equivalente) : após 300Mb (medido exprimentalmente) num dia, eles cortam a velocidade para 12-13Kb/s (cerca de 100Kbps). Enviei um email, a pedir explicações, a resposta: variações na utilização da rede. Seria possivel sim ... se não fosse pelo facto de chegada a meia-noite a velocidade disparar, e para confirmar isto, na altura da mudança da hora o 'sistema' da zapp andava pela hora antiga pelo que a mudança de velocidade era à um da manhã. Eu não me ralo muito com o corte de velocidade, embora me incomode um pouco o msn ficar instavel e levar seculos para fazer pesquisas no google (para não falar que jogar online é mentira) Assim após análise do contracto verifiquei que se deram violações do contracto por parte da operadora através da limitação do serviço prestado sem notificação e/ou justificação para a redução de velocidade após efectuados 300Mb de trafego diário, mais especificamente nas condições gerais, clausula 9ª nº.1 alinea a) e nas condições particulares clausula 7ª nº.2, onde é indicada que qualquer alteração no serviço prestado é dada a conhecer ao cliente 24h antes da alteração (caso seja possivel). A este comportamento da operadora isto chama-se agir de má fé, e a adicionar a isso a divulgação de publicidade enganosa (garanto-vos que dificilmente conseguem passar os 400 a 500Mb por dia - 12 a 15Gb/mês - tudo menos ilimitado) A Zapp começou bem, mas descambou rapidamente, se continuarem a olhar para o lucro e não para a satisfação do cliente não vão crescer mais... podendo mesmo ir ao 'chão'. É tudo... e não é pouco... Link do contracto disponivel em zapp.com: http://www.zapp.pt/downloadproducts/outros/Zapp_Contrato_WSL6_51_206.pdf (o contracto tem erros, como passatempo deixo-vos o desafio de os encontrarem)

Friday, June 20, 2008

DownThemAll

In the post below, i talked about DownThemAll as an extension for Firefox, well... now i will explain what i like on it:
  • Context menu's integration on firefox;
  • Reg Ex download filter for both embebed and linked contents of a page;
  • Batch Download (this one could be improved);
  • Download Accelerator (if server supports it);
  • Pause support (if server supports it);
  • Auto rename option;
  • Queueing options;
About batch download: I think it could be taken to the next level by adding variables to the sintax, my idea? An example below: Imagine you have several images in a server, they are organized in years folders like this: .../2007/2007-01-01-001.jpg .../2007/2007-01-01-002.jpg .../2008/2008-01-10-001.jpg .../2008/2008-02-23-001.jpg Or some similar organization. Now you wish to download them all to your computer, you don't have FTP access or similar, only HTTP, with DownThemAll you could say: .../[2006:2008]/[2006:2008]-[01:12]-[01:31]-[001:030].jpg This raises a problem... first batch tag and second should have the same value, but this way such propriety is lost, thus increasing the size of download list with files that don't exist for sure. The solution? Add some extra syntax, nothing very complex, just something like this: .../[$1=2006:2008]/[$1]-[01:12]-[01:31]-[001:030].jpg I think this enhancement would be awesome, well... if any DownThemAll developer sees this: "Add it to your TODO list!" The first solution will generate a list with 100440 files to download! The proposed solution generates a list with 33480 files... a third! Of course this could be applied in many ways (and enhanced even further with math formulas and conditionals), but this sample explains it quite well i think. PS: Woot! 2nd post today!

Browser's War!

Edit: Portuguese: Desculpem não ter isto em português ... mas é pra toda a gente entender ^__^; So... you know (or not) that there are many browsers out there, and now FF3! Here goes my review over them: IE4 (yes, it is still used!): Very very old, if you have it, you may consider buy a new computer. Quite insecure, it is used on WM2003 and prior for handheld devices (not as insecure in those when compared to desktop versions). It's very light and lack many functionalities on modern browsers. IE5.5 (quite old, i actually have it on my oldest computer): If you're using this old one you should update it ... really... you may say it is identical to version 6, but ... it isn't. IE6 (you know it): We all know it, is slugish but kinda light (well it lack many features). IE7 (shiny!): Completely new, shiny buttons to match Windows Vista look and feel, tabs were the major inovation, but since it still has activeX controls support (well at least you have some extra security) i really don't like it, make a mistake and you'll have nice spyware/adware popup's every minute or so... Firefox 2: Still my favorite, i'm just waiting for some crucial extentions to be supported on version 3, it has some memory leaks (i have lot's of ram so i rarely notice it), but the support for extensions is quite awesome. My favorite extensions are: Firebug, FireCookie, GreaseMonkey, ABP (AdBlock Plus) and DownThemAll. With those i can automate and fully control my browsing experience (stop ad's, mess with running JS, run my own JS, mess with cookies, make batch downloads and speed up my downloads) Firefox 3: Awesome, lighter, safer and more stable than the previous versions, i just miss Firebug on it, currently is the browser i use. Edit: FireBug Beta works pretty well ^__^ Opera 9.5: Ok... a friend told me opera has been updated, so i went check, it looks quite good, i may say it's the fastest browser that you can have, their widgets are not as productive as the one found in Firefox, but download manager, torrent support, irc and other advanced features that are quite rare, make serious damage in competition. On development side, i really like Dev Tools (until firefox 3 has firebug avaliable) Safari: Mac users... you guys are really lucky, your OS features a really nice (light, fast and safe) browser. I don't have much more to say because the windows version has quite some issues (last time i update it, it stop working :( ). Konkeror: Well... same as safari... but applied to KDE users :p Conclusion:
  • If you use IE7 ... please change to opera, you will thank me;
  • If you develop websites, you may have to use all of them (to check compatibility), but Firebug really helps so FF2 is the choice for you (and make sure you check everything on IE);
  • If you use a Linux distro... any browser is good :p quite likely you use Konkeror or Firefox already (i don't think you can use IE - Emulation is not the answer, ok?);
  • Mac users, your browser is nice, but test firefox 3 or Opera 9.5, see what you like more;
  • If you want to do everything with you're browser, well ... Opera 9.5 might be the right choice, firefox does what Opera does and more, but each extension makes it heavier.
By the way, according to may personal experience the fastest JS interpreter belongs to Opera 9.5, followed by Safari and Konqueror, then Firefox 2 (i'm not sure about version 3), and the really sluggish browser is IE... and most of the time it doesn't support most of advanced features of modern browsers! On HTML/CSS support, Opera, Firefox and Safari (Konqueror is like safari i believe) are awesome. An example? If you use embebed base64 images on CSS or HTML, they will work fine, on IE you can forget! Same goes to Canvas tag, rounded borders, PNG's with alpha channel (IE7 supports this one now i believe), and others. If you develop webpages you know what problem is to make things work in IE.... (and you are already aware of all the problems it carries) IE has it's own interpretation of HTML/CSS/DOM that goes (many times) against W3C specifications and other entities that specify internet stuff, so i ask you to stop using IE and make life easier to Web developers/designers, thank you in advance. :3

Sunday, June 1, 2008

O que é um PNG...

Chunk: Lenght: 4 bytes Chunk Type: 4 bytes Chunk data: 4 bytes (If needed) CRC: 4 bytes ----------------------------- PNG Sig: 89 50 4e 47 0d 0a 1a 0a ----------------------------- IHDR Chunk: Lenght: 00 00 00 0d = 13 bytes Chunk Type: 49 48 44 52 = IHDR Chunk Data: Width: 00 00 00 02 = 2 pixel Height: 00 00 00 02 = 2 pixel Bit depth: 08 = 8 bits per color Colour Type: 02 = Truecolour Compression: 00 = Default Filter: 00 = Default Interlace: 00 = No interlace CRC: fd d4 9a 73 = OK! ----------------------------- IDAT Chunk: Lenght: 00 00 00 19 = 25 bytes Chunk Type: 49 44 41 54 = IDAT Chunk Data: zlib CMF: 08 = CM = deflate, CINFO = 256bytes window size zlib FLG: 1d = FCHECK = 11101 0x081d½31=0 OK!, FDICT = 0, FLEVEL =00 deflate header:01 = BFINAL = 1b last block, BTYPE = 00b no compression deflate lenth: 0e 00 = 00 0e = 14 bytes nlenght: f1 ff = OK! filter: 00 = none line: ff ff ff 00 00 00 = white,black filter: 00 = none line: 00 00 00 ff ff ff = black,white check value: 29 e4 05 fb = OK! CRC: 9b f9 bb 0a = OK! IEND Chunk: Lenght: 00 00 00 00 = No Chunk Data Chunk Type: 49 45 4e 44 = IEND CRC: ae 42 60 82 = OK! ----------------------------- Isso é um PNG sem compressão, a imagem é um quadrado 2x2 com um padrão xadrez.

Friday, May 9, 2008

Comics

Fica aqui uma listazinha de sites com comics interessantes: http://xkcd.com/ http://ctrlaltdel-online.com/ http://www.userfriendly.org/ http://snafu-comics.com/ http://ivanov.in/garfield/ Divirtam-se...

Thursday, May 1, 2008

Quanto vale o Blog?

Sim.... quanto vale o blog? .... no meu caso 0.00$ até à data, popularidade nunca foi o meu forte, a prova-lo está a minha conta do deviantart... Portem-se.. e se tás a ler isto ... não deves ter mesmo mais nada pra fazer... Nota: Dada a inutilidade da widget... removi-a... tornando este post um pouco inutil....

Sunday, April 27, 2008

Portable Apps

Para quem não sabe, existe um site dedicado a aplicações que funcionam apartir de uma simples pen drive, www.portableapps.com Têm lá coisas como firefox, openoffice, tunderbird... até antivirus, a suite por defeito é muito boa e como agora se encontram drives de 2Gb a 7€ nada melhor de que fazer uso desse espaço todo para ter tudo o que precisas. Uau .. 2 posts no blog em menos de 4 meses ...

Saturday, April 26, 2008

Action Script 3...

Ok ... hoje resolvi ver o que tinha mudado no action script, a mudança de AS1 para AS2 foi algo pacifica pra mim, mas quando exprimentei AS3, tive algumas dificuldades. Tudo se deve ao simples facto de o paradigma de programação ter sido renovado, agora em vez de por o codigo nos objectos, isso é feito em runtime, o melhor exemplo é mesmo os butões, antes pra associar uma acção a um botão, o mais facil seria simplesmente selecionar o butão, carregar F9, por o codigo e já tá, agora... bem agora não é dificil, apenas diferente, pra criar um butão é só fazer uma função que receba um objecto do tipo Event ( function teste(event:Event) ) despejar o codigo desejado para o butão, e associar um EventHandler ao butão com a função ( butao.addEventHandler(MouseEvent.Click, teste) ) e voilá, butão a funcionar... Bem... tal como disse anteriormente eu não sou muito dedicado a blogging ... mas espero que isto tenha ajudado alguém de algum modo.

Sunday, February 10, 2008

Olha o blog

Não sou muito apologista de blogs ... mas cá tá um... aquando da escolha do nome encontrei um blog engraçado: http://gatobranco.blogspot.com claro ... dada a minha natural incatividade nestas coisas.... recomendo que vejam o http://disco-bar.blogspot.com