Interactive whiteboard using the Wiimote

This is obviously something very, very cool :)

software and more info at the author’s website.

You can also checkout his presentation at TED talks.

Advertisements

Get Cisco 3500 into factory defaults

Ever needed to get an old Cisco 3500 EOL switch into factory defaults? Well I did. Since no ROMmon is available for this model a different approach is needed. That said I made a little recipe to get the system going:

  1. “Power-up” the switch while pressing the mode button at the front;
  2. Release the mode button when Port1x LED goes out;
  3. You now have the switch: prompt;
  4. Type flash_init
    • switch: flash_init;
  5. Type load_helper
    • switch: load_helper;
  6. Check the flash contents
    • switch: dir flash:
    Directory of flash:/
    2    -rwx  1645807   <date>  c3500XL-c3h2s-mz-120.5.2-XU.bi
    3    -rwx  94680     <date>  c3500XL-diag-mz-120.5.2-XU
    4    drwx  6784      <date>  html
    111  -rwx  272       <date>  env_vars
    112  -rwx  600       <date>  vlan.dat
    113  -rwx  2363      <date>  config.text
    843264 bytes available (2769408 bytes used)
  7. Rename the config file
    • switch: rename flash:config.text flash:config.old.text
  8. Reboot the switch
    • switch: boot
    Loading "flash:c3500XL-c3h2s-mz-120.5.2-XU.bin"...
    ###########################################################################
    ###########################################################################
  9. Erase vlan database
    • Switch#delete flash:/vlan.dat
    Switch#delete flash:/vlan.dat
    Delete filename [vlan.dat]?
    Delete flash:/vlan.dat? [confirm]
  10. Copy current config to flash (creates new config.text)
    • Switch#copy running-config startup-config
  11. Delete old config file
    • Switch#delete flash:/config.old.text
    Delete filename [config.old.text]?
    Delete flash:/config.old.text? [confirm]
    Switch#

Done!

Detailed information may be found at Cisco’s website.

Utilizar Quicksilver para alertas

Sou um grande admirador do Quicksilver e utilizo-o para muitas coisas (e.g. lançamento de aplicações, integração com iGTD). A última das quais tinha tomado conhecimento há uns tempos, mas na altura não me pareceu muito útil. Até hoje. Como tenho algumas tarefas diárias que podem demorar tempo indeterminado mas sem necessidade de serem finalizadas (exemplos: jogar, ler notícias :)), nada como um reminder para nos acordar para a realidade.

Fui à procura do artigo que tinha lido em macosxhints.com e acabei por encontrar também um vídeo do LifeHacker a demonstrar o processo (a banda sonora também não é nada má).

Num dos comentários ao artigo no macosxhints.com podemos encontrar a forma de definir o reminder de uma só vez, utilizando a combinação de teclas Ctrl+Enter para criar o comando:

  1. Activar quicksilver;
  2. Pressionar “.”;
  3. Inserir texto;
  4. Pressionar “Tab”;
  5. Pressionar “Ctrl+Return”
  6. Escrever “delay”;
  7. Pressionar “Tab”;
  8. Escrever “10s” (ou qualquer outro valor de tempo e.g. 5m);
  9. Pressionar “Return”.

Et voilá.

GTD vs GTTFD

Bem… penso que muitos de nós já ouviram falar na metodologia GTD de David Allen como forma de melhorar a produtividade, a qualidade de vida, acabar com o efeito de estufa e muito provavelmente resolver a crise no médio oriente… Pois é, mas quem já ouviu falar em GTTFD?

Acho que vou repensar a minha forma de trabalhar :)

Office 2008 for Mac…

I was trying to install the Office 2008 for Mac but, unfortunately, it was a not so easy task.

I began installing the package, which was fairly easy. All went well and smooth, until… the Setup Assistant began the final steps for concluding the installation. Not only I couldn’t get it to finish the installation, but it was even more frustrating since I was one step away to begin using the very much awaited new version of Office for Mac and… no way José.

In the log message I could read:

Exception: EXC_BAD_ACCESS
Application Name: Microsoft Office Setup Assistant
Application Signature: MosA
Crashed Module Name: EntourageLegacy

Entourage?! WTF?…

The worst part was that I could open all applications (e.g. Excel, Word) but I couldn’t open or save some types of files. For example, in what Word is concerned I couldn’t save .doc files but I had no problems with .docx files, and the same happened for opening operations. The error message was always the same, if I wanted to save a file as xpto.doc I got:

xpto.doc could not be found.

After a lot of time looking…I found out that my directory ~/Library/Caches/TemporaryItems had its permissions changed sometime ago and only root could write in it (I had also tried the “Repair permissions” from Disk Utility before but that didn’t help). Since Setup Assistant uses this folder, as well as some other Office operations, I could never do anything with it…So, here’s the Solution:

chown -R myuser:myuser ~/Library/Caches/TemporaryItems

Eureka! All became alive! And only took… too long. I wonder… should there be a specific programming discipline for not creating cryptographic error messages? It’s probably in the same package as test units…