Archive for the ‘Projects’ Category

smsq, actualização

without comments

Motivado pela boa recepção que tive neste meu novo projecto, hoje continuei com o trabalho.

Alguns bugfixes, e tenho já um protótipo de um GUI para o utilitário da linha de comandos.

Não há tempo para muito mais detalhes (nem código), mas como aperitivo deixo-vos um screenshot. Espero que gostem.

smsq

Written by Pedro Cardoso

March 5th, 2009 at 12:34 am

Posted in Projects

Tagged with , , , ,

Ventos cruzados

with 6 comments

Estava para aqui a ver no Youtube o vídeo do avião da Lufthansa em Hamburgo quando encontrei no mesmo Youtube um acontecimento semelhante um avião da TAP.

Deve assustar, mas são coisas que acontecem.

Written by Pedro Cardoso

March 4th, 2008 at 12:23 am

Posted in Projects

Tagged with

20080101

with 2 comments

Não dou muita importância à passagem de ano por ser um evento sem grande significado.

O feriado sabe bem e a reunião com amigos e familiares sobrepõe-se a qualquer importância que uma mudança da folha do calendário possa ter. Mesmo assim, a data pode ser útil para desenhar uma linha na areia e marcar um início. Neste caso, o arranque de alguns projectos pessoais que vou guardando na gaveta.

Alguns destes projectos são brincadeiras que pretendo desenvolver e criar na internet. A seu tempo divulgarei o que são e quais os URLs. A lavagem cerebral do Codebits foi eficaz e duradoura. :)

Não tenho grandes ambições, vão ser brincadeiras que podem vir a ser úteis e pouco mais. Um hobby. Mesmo que caiam no esquecimento dias depois de os anunciar o prejuizo nunca é muito: a slice do hosting, o registo do domínio e o trabalho de umas quantas noites e fins de semana. Comparado com o que se ganha, especialmente com o que se aprende, é insignificante.

Prognósticos só lá para o fim do ano… ;)

Written by Pedro Cardoso

January 2nd, 2008 at 1:06 am

Posted in Life,Projects

Uma foto e uma música

without comments

Water

Far from the ground.mp3

“far from the ground” e “water”.

Written by Pedro Cardoso

September 14th, 2007 at 12:40 am

Posted in Music,Projects

Breeze Demoparty

with one comment

A demoparty will take place here in Lisbon in February, 16-18th. Gaming is not allowed, apparently. Judging from the pre-registrations listed on the site there is not a lot of people coming, which is not unusual.

The demoscene here has always been a minor thing. Nowadays with the internet and cheap flights this has become less of a problem, it’s just too bad you grow old and lack all that free time you had when you were younger. There is a limit to what you can do while balancing work (and/or college) and family with your hobbies. Long gone are the days of long hours into the night in front of the computer trying to optimize a demo effect or trying new ideas.

Luckily, gone too are the days of dialling +358 12387128973 to reach Starport BBS to download the STMIK. If it still existed, it’s now much faster/cheaper/easier to just use www.starport.fi :)

Well, I’ll see what I can do with Schism Tracker until then.

See for yourself at breeze.untergrund.net

Written by Pedro Cardoso

January 12th, 2007 at 10:38 am

Posted in Projects,Scene

O meu novo desktop

without comments

Aqui está meu novo desktop. :)

a600 desktop

Agora é só fazer “dd if=a600hd of=/dev/hdb1″ e já devo poder arrancar o meu Amiga 600 do disco sem ter usado disquetes para instalar o Workbench.

Comprei no miau um joystick Maverick para juntar à máquina e custou o dobro do amiga, mas sempre traz um megadrive “agarrado”. O gajo não vendia só o joystick… :)

Agora vamos lá sacar uns ADFs de demos. Interference, onde estás?

Written by Pedro Cardoso

December 11th, 2006 at 2:12 am

Posted in Amiga,Hack,Projects

Home sweet, delayed, home

without comments

Continua atrasada, como sempre. Ainda não há novidades, como sempre. Vou separar este assunto do blog. A partir de agora (ou daqui a uns dias), podem ler tudo em terracosdaponte.luminescente.com.

Written by Pedro Cardoso

November 3rd, 2006 at 1:49 am

Posted in Life,Projects

MiauRSS

without comments

Bem, isto possivelmente viola os termos de utilização do Miau e ainda está inacabadíssimo, mas pode ser que seja útil a alguém.

Feito numa noite em que me deu na mona ir procurar um Amiga 500/600/1200 para juntar aqui ao museu.

Aqui vai o link: http://www.luminescente.com/miau/

Alguns feeds (os que saltam para páginas intermédias) não funcionam, mas podem colocar os 3 valores que são passados na função gtc no fim do URL de um qualquer feed, pela ordem da chamada à função gtc.

E quem teve a brilhante ideia de usar forms e submits por POST para fazer uma treta de um link devia ser condenado a passar a eternidade a escrever HTML em Graffiti num Palm.

Written by Pedro Cardoso

October 20th, 2006 at 1:55 am

Posted in Hack,Projects

Javascript/CSS Image Reflection

without comments

reflex demoHere is a new CSS/Javascript hack of mine: transparent image reflection, like it can be seen on the image on the left.
Been toying with this for the last few days and after some testing here it is. It’s slow, not fully tested, and probably not good enough to be used, but this can be something to improve and build on.

The idea itself is not original, as it can be seen in lots of places, from websites to software, but this implementation is as far as I know unique, in the sense it does not require browser support for the Canvas tag, like this implementation.

It’s working with Safari, IE and Firefox. IE and Firefox support animated gifs as background, so if the source image is a animated GIF so is the reflection.

Here it is, play with it, check the source and let me know if you liked! :)

Written by Pedro Cardoso

April 24th, 2006 at 11:07 pm

input type=search – Extreme overhauling

without comments

If you’re using Apple’s Safari browser, you may have noticed the following input element, similar to a text box.

Safari Input Search

This element was introduced with Tiger (Mac OS X 10.4) integrated with Dashboard and Safari RSS, but it soon started to appear in some other sites. At it’s heart, this is just a special kind of INPUT element, of type “search”, that Safari renders as a Cocoa search field. Other browsers that don’t know what it is (ie, everyone else) default to a normal textbox, with no ill effects, apart from failing validation.

There are several new attributes for this element, documented here, but in short:

  • placeholder: the text to be shown in light gray when the box is empty
  • autosave: the identifier for auto saving entered values
  • results: the number of auto saved searches

What if there was a way to have this kind of element rendering in the other browsers like it does in Safari?

Well, I hacked away and now there is. I’ve been wanting to wait a little more and clean up the code but release early and release often, right? :)
Just include the code at the end of this post in your HTML, and that’s all, your search input elements will become like this in other browsers.

Input Search Test

Under the hood

At startup, all the INPUT elements of type search are parsed and this happens:

  • The element we are messing with is hidden, and a new container SPAN is created containing (in this order) the search image, a new textbox and the clear button. These elements are styled to look like a single element. In Mozilla, the corners are rounded using the -moz-corner-radius CSS rule.
  • The onBlur/onFocus events are defined so we can automatically clear and set the textbox’s default message (using the attribute placeholder)
  • Similar monkey business is done to the onChange so we can show/hide the clear button when appropriate.

Notes: This behaviour can be easily modified to apply this hack to elements with a certain className, instead of applying to elements of input type=search. When in the presence of Safari, replace the text with a search input. This way the (X)HTML could remain standards-compliant.

This code is yours to do as you please, just leave a comment if you like it… :)

    Todo
  • Re-use the text element instead of creating a new one and hiding the old one.
  • Paste-aware
  • Implement auto saving (using client-side cookies?)
  • Improve the positioning of the images

The files are here. You need the HTML along with the image files.

Written by Pedro Cardoso

March 26th, 2006 at 6:38 pm

Posted in Programming,Projects