domingo, 14 de dezembro de 2008

AutoComplete Eclipse

  1. Eclipse - Preferences.
  2. Java - Editor - Advanced.
  3. Select the first four boxes.

terça-feira, 4 de novembro de 2008

APPLEJACK USAGE

1. You can type 'man applejack' in a terminal window for complete usage instructions.
2. Restart your computer. When the "bong" sounds, hold down the command and s keys until you get lots of text appearing on a black screen. You are now in single user mode. If you've used the installer, you should just be able to type 'applejack' at the prompt and be on your way.
3. Auto mode: You can let the script run through its tasks automatically by typing 'applejack auto'. If you want the machine to automatically restart at the end of its tasks, use 'applejack auto restart'. You can also tell the computer to shut down automatically at the end by using the command line 'applejack auto shutdown'.
3a. Deep Auto mode: If you want to let AppleJack clean out all cache files, including the Launch Services database and any cached User Pictures, use 'applejack AUTO' instead. Use this if you still have problems booting after running AppleJack already.
4. Interactive mode: To run through just one task, or to run the script manually, type 'applejack' and then choose tasks from the menu. Running the script in interactive mode has the benefit of giving you options for working with user level cache and preference files, not just the default system level caches and preferences. To select an option, type the highlighted number or letter associated with the action, and then hit return. Whenever you enter a choice in AppleJack, you will need to hit return for that choice to take effect.
4. Corrupted preference files are moved into a directory that will mirror the original preference directory, with (Corrupt) added to the directory name. For example, corrupt preferences files found in ~/Library/Preferences will be moved to ~/Library/Preferences (Corrupt). After running AppleJack, you'll probably want to take a look at them (and most likely throw out those folders). As of version 1.4.2, AppleJack now creates a copy of the directory tree inside the (Corrupt) folder so that if any files were deeply nested inside the original preference folder, they will be placed in an identical directory hierarchy in the new (Corrupt) folder. This way, if for any reason you would want to move a preference file back, you know where it should go.
6. AppleJack has a primitive logging mechanism. It writes a journal of most of its activity to /var/log/AppleJack.log. AppleJack will automatically reset the log the next time you run it, if the file should ever reach a size somewhat over 500k.

PrintScreens MacOs

Command + Shift + 3 = Print da tela inteira

Command + Shift + 4 = Você seleciona exatamente a área que você quer fazer o print

Command + Shift + 4 + barra de espaço = Seleciona a imagem e clica em cima, faz a print da janela selecionada.

Uma dica final é que os arquivos que são salvos, são gravados na mesa, no formato PNG. Se você estiver usando um monitor estendido, o primeiro comando (da print da tela inteira) captura as duas telas e grava em dois arquivos diferentes (também publicados no desktop)

sábado, 1 de novembro de 2008

update firmware WL500

Desliga o router e retira os cabos de rede que tenhas ligado nele! Liga apenas o cabo de rede que vai do teu pc e liga-o no router na porta LAN (porta 1 por exemplo). Mantem primido o bot„o do reset e liga o cabo do power ao router, mantendo sempre primido o bot„o do reset atÈ que a luz do simbolo do power comece a piscar! Quando vires que essa luz est· a piscar, solta o bot„o do reset. A luz vai-se manter a piscar mesmo sem estares a carregar no bot„o do reset!

Abre o utilit·rio da Asus, e carrega a firmware do Tomato. Efectua o flash.

segunda-feira, 1 de setembro de 2008

Windows Update saka mas não instala

Seguir os passos:

1 - Parar o serviço de atualizações automáticas digitando este comando no prompt do DOS:
net stop wuauserv

2 - Registrar o wups2.dll com este comando:
regsvr32 %windir%\system32\wups2.dll

3 - Reiniciar o serviço de atualizações:
net start wuauserv

segunda-feira, 23 de junho de 2008

Linux on parallels with tools

1 - Select Actions -> Install parallels tools...
2 - In a terminal, enter:
3 - cd /media/Parallels\ Tools/
4 - su
5 - sh parallels-tools.run

Now restart your X server or reboot the VM.

domingo, 22 de junho de 2008

Instalar o Leopardo a partir de uma DMG

Necessário um disco externo.

1 - No utilitário de Disco, formatar o disco externo no formato "MacOS Expandido (diferenciação de maisculas, com registo)".

2 - No utilitário de Disco, restaurar o dmg para o disco externo.

3 - Reiniciar o mac e carregar em "alt", para podermos arrancar do disco externo.

4 - Seguir os passos.

quarta-feira, 18 de junho de 2008

modelo de Wii

Para saber o modelo de Wii que vos calhou:

http://nintendo-scene.com/wiitracker/search.php

sexta-feira, 13 de junho de 2008

Fazer reset à nvram

Para o computador ficar mais rápido no arranque.

Command+Option+P+R (reset da nvram) imediatamente após ligar a máquina.

Configurar o TomCat no Leopard

  • Tirar o tomcat:
http://tomcat.apache.org/index.html

  • Descompacta-lo

  • Copia-lo para /Users/utilizador/Library/apache-tomcat-x.x.x com o comando:
mv apache-tomcat-x.x.x /Users/b3lz3bu/Library/

  • Acrescentar no ficheiro/Users/utilizador/.profile a seguinte linha:
export CATALINA_HOME=/Users/utilizador/Library/apache-tomcat-x.x.x

  • Dar permissõoes de execução aos shell scripts:
chmod +x /Users/utilizador/Library/apache-tomcat-x.x.x/bin/*.sh

  • E já está, é só iniciar o servidor:
/Users/utilizador/Library/apache-tomcat-x.x.x/bin/startup.sh

  • Confirmar que responde:
http://localhost:8080/

First

Ora viva.

Este é o meu novo Blog e é aqui que vou deixar as minhas peripécias com instalações, a maioria em mac como é óbvio.