domingo, 23 de novembro de 2014

How to install pt-br language interface on Libreoffice - Ubuntu

If you have installed Libreoffice on Ubuntu and would like to change the interface language to pt-br (brazilian portuguese) do this:

CTRL-ALT -T  to open a terminal

Then issue the following command:

sudo apt-get install libreoffice-l10n-pt-br


quinta-feira, 11 de setembro de 2014

How to set logic levels in LTSPice to 5 volts?

LTSPICE IV - How to...

How to change logic levels in LTSPice?

Right-mouse-click on the device in your schematic.

A dialog will be shown.

Enter the parameter(s) into any of the fields
from "Value" to "SpiceLine2".

Vhigh=5 Vlow=0 Ref=1.5
Trise=5n Tfall=5n Td=5n

"Ref" is the threshold. Default is (Vhigh+Vlow)/2

Don't connect anything to unused inputs!

domingo, 7 de setembro de 2014

Reasons I Love Linux

I've have used for many years AppleDOS, Windows 3.11, 98, XP, 7 (x32 and x64) and 8.1, Linux (many), SunOS Solaris, HP UX (Unix), OS2, IBM MVS, OS/360 - you name it, I've had my time on it at many moments of my working or private life.

I have tested Linux since the very beginning, Slackware, Debian, RedHAT, Suse, Lubuntu, Ubuntu, etc.

My very favorite operating systems for some time now, is Ubuntu Linux. Here's why:

1. Open Source and free to use. You can install it on as many computers as you like for the pretty price of absolute what you want to donate, or zero if you cannot spare some cash for now! This makes it wonderful for those on a budget, students and who get tired of constantly paying for expensive operating system upgrades.

2. It is the most stable OS that I have tested these last 30 years. I've put my kids on Windows boxes in the past only to have them mangle the operating system beyond recognition in a few short minutes. I've then put the same kid on an Ubuntu Linux box and left them playing happily for hours. 'Nuff said.

3. It's “wife” proof, that means, my wife, who is a lawyer, and does not like technology does not call me so often like when she was using Windows, say goodbye to “updates bugs”, “virus alerts”, “BSOD”, “bad drivers”, etc.

4. No Viruses or Malware. There currently aren't very many pieces of malware around for Linux boxes. The way Linux is designed it mkes it very difficult for the bad guys to design malware or to crack it. As a result I don't have to bother wasting my precious computer resources on antivirus programs, or having the recover my wifes or kids netbook windows any more, hurray!!!

5. Unity, Gnome, LXDE, or other options of very easy to use GUI . In many ways the ease of use reminds me of the Mac computer concept when it hit the market back at the 80's but without the high price tag.

6. I can keep using my older computers as long as I want with Linux. Not only are upgrades free but the resource requirements are low enough that even older computers can use lighter versions like Lubuntu (i.e. just to mention on option), so I don't have to stop using a computer until I ready to move on to a new one.

7. There are many open source, GPL, GNU, free or pay as you need it, software available for all your needs. You name it, Ubuntu has it, probably for free. They have Photoshop equivalents (Gimp), Office suite (Libreoffice), programs to see your images, hear your music, see all video types and decode streams with programs like VLC (ie. Players ) and more games (both educational and same really hot) than I have ever seen! There are programs available for Linux for literally ALL age groups and needs.

8. You can continue to use your many DOS, Windows 98 or XP, codes with WINE which is a windows emulator that can run them right on you Linux screen. I use it to run LTSpice engineering circuit simulation and AXDecrypt for my confidential documents.

9. It is very powerful but at the same time very simple once you get basic “know how” of the system. While I can do almost everything I want to in the GUI, if I want to do something more complex I can always drop down to the command line and take care of business, because I have "the power". For instance, I can navigate the menu to shut down my Ubuntu computer or I can open a terminal and type "sudo shutdown -h now," the command to turn the system off. Ubuntu will ask me for my password and then shut the system off faster than the GUI menu ever though of doing!

10. No worries about NSA spying on you with backdoors. It is a known fact that the NSA is trying to spy on everyone. Chances are they have backdoors built into both Windows OS and applications and even on Apple computers that enable them to keep us all under surveillance. Since the source code on these operating systems is closed (some Apple Mac OSX source code is open, however), users have no way of knowing just how secure their computer really is. With Ubuntu, the source code is open so programmers all over the world look through the code to prevent these backdoors in Ubuntu.

11. It is usually easy to install hardware in Ubuntu (i.e. with exception of winmodens and some less known printers).  Plug in your printer and in moments Ubuntu has installed it. The same goes for wireless cards and many other devices commonly available. But hunting for drivers can be an issue some times, but installing bulky software or dealing with nag screens harassing you to register is gone. Most things just work, which makes life so much easier. Even my favorite old bed scanner that was dead because of lack of the right drivers for Windows 7 returned to life in Ubuntu! Yes!!!

12. A very very very big community of friendly users with many thousands of web knowledge pages with “Howtos”, “instruct-ables”, “blogs”, “wikis”, shared experiences of almost any problem you can encounter in your life with Linux.

13. These are just same cool facts about my life before and after Linux. Let's face it, you need to be committed to get in to a better understand the Linux ways, but it is something rather FUN taking control again of your computing experience, like in the first years of home computers (ie. Sinclair, Apple II, TRS-80, Commodore, etc). Few things are as enjoyable as turning on your computer and hearing the gasps when you don't boot up Microsoft Windows.

Sure you may have to learns to answer new questions, learn a new GUI, but doing so not only spreads the word about this great operating system and also help someone to save a computer that they would otherwise throw away or loose the opportunity to “discover new worlds and boldly go where no user has gone before!”


terça-feira, 1 de julho de 2014

How to logout from Skype from all devices and remote places

This status problem, being offline and showing online, is often-reported in the Skype Community, after M$ took over the company, and is apparently a side-effect of having off-line instant message delivery instituted and having Skype account connected to M$ account.

The work-around I found online, until a fix is released, is to ensure my on-line/off-line status is set to "Invisible" prior to signing out of Skype, and avoid connecting to M$ account.  So far, this has worked for me.

What are chat commands and roles?

When you open a "chat" with one person in your contact list, you can use it to enter special commands to control some functions and members in the chat, secure the chat with a password and do other administrative tasks.

To see a list of the available commands simply type /help into the "chat" reply line. If you are just in a chat with one other person, only the relevant chat options will be shown. If you are in a chat with two or more people, /help will reveal a more comprehensive list of chat commands. If you don’t see the list, the version Skype you are using is not supported.

Important: Make sure you are using the latest version of Skype (only if you really needed them) because some of these commands may not be supported in older versions.

Note: you don’t need to use square brackets around your text after the command. For example, the command:

 /topic [text]

would be used as:  /topic Today’s Meeting Agenda.

Here is a list of all common commands and their descriptions:

Command Description
/add [Skype Name] Adds a contact to the chat. For instance: /add alex_cooper1 will add that member to the chat.
/alertson [text] Allows you to specify what needs to appear in a chat for you to be notified. For example, /alertson London will only alert you when the word "London" appears in the chat.
/alertsoff Disable message notifications.
/clearpassword Removes the password security.
/find [text] Finds specific text in a chat. For example, /find Charlie will return the first instance of the word "Charlie" in the chat.
/get allowlist Details people with access to the chat.
/get banlist Details people banned from the chat.
/get creator Details the person who created the chat.
/get guidelines See the current chat's guidelines.
/get options Details active options for current chat - see /set options below for a list of the options available.
/get password_hint Get the password hint.
/get role Details your role in the chat.
/get uri Creates a URL link that other people can use to join the group chat.
/golive Starts a group call with other participants of the chat.
/info Details number of people in chat and maximum number available.
/kick [Skype Name] Eject chat member. For instance, /kick alex_cooper1 will eject that member from the chat.
/kickban [Skype Name] Ejects chat member and prevents them from rejoining chat. For instance, /kickban alex_cooper1 will eject that member from the chat and ban them from rejoining.
/leave Leave current group chat.
/me [text] Your name will appear followed by any text you write. For instance, /me working from home will cause the phrase "working from home" to appear next to your name in the chat. You can use this to send a message about your activities or status.
/remotelogout Sign out all other instances except the current one. This will also stop push notifications on all other instances.
/set allowlist [[+|-]mask] .. Sets the members allowed in the chat. For instance, /set allowlist +alex_cooper1 will allow that member to join the chat.
/set banlist [[+|-]mask] .. Sets which members are banned from the chat. For instance, /set banlist +alex_cooper1 will ban that member from the chat. /set banlist -alex_cooper1 will allow them to rejoin it.
/set guidelines [text] Set a chat’s guidelines. For instance, /set guidelines No spoilers! These can be returned to be viewed in the chat by the command /get guidelines.
/set options [[+|-]flag] Sets options for this chat. For example: /set options -JOINING_ENABLED switches off the JOINING_ENABLED option, while /set options +JOINERS_BECOME_APPLICANTS will switch on the JOINERS_BECOME_APPLICANTS option.
The available flags are listed below:
HISTORY_DISCLOSED - Joiners can see the conversation that took place before they joined. The limit that they can see is either 400 messages or two weeks of time, depending on which is reached first.
JOINERS_BECOME_APPLICANTS - New users can join the chat, but cannot post or receive messages until authorized by a CREATOR or MASTER (see the table below for more information on roles).
JOINERS_BECOME_LISTENERS - New users can receive messages but cannot post any until promoted to the USER role.
JOINING_ENABLED - New users can join the chat.
TOPIC_AND_PIC_LOCKED_FOR_USERS - Only a user with a CREATOR role will be able to change the topic text or accompanying picture for the chat.
USERS_ARE_LISTENERS - Users with a USER role will be unable to post messages.
/set password [text] Create a password (no spaces allowed).
/set password_hint [text] Create the chat's password hint text.
/setpassword [password] [password hint] Create a password and password hint for the chat.
/setrole [Skype Name] MASTER | HELPER | USER | LISTENER Allows you to set a role to each chat member. A description of roles is given in the table below.
/showplaces Lists other instances where this Skype name is currently signed in.
/topic [text] Changes the chat topic.
/undoedit Undo the last edit of your message.
/whois [Skype Name] Provides details about a chat member such as current role.

Chat roles depend on whether you started the chat or were assigned a role by the chat creator or host:
Role Description
Creator The member who created the chat. There can be only one creator per chat. Only the creator can promote other members to masters.
Master Also known as chat hosts. Masters cannot promote other people to masters.
Helper A semi-privileged member. Helpers will not be affected by the USERS_ARE_LISTENERS option. Helpers cannot promote or demote other members.
User A member who can post messages into the chat.
Listener A member who can see messages but not post into the chat.
Applicant A member waiting for acceptance into the chat. Note: once accepted into the chat, members cannot be demoted to applicants.

segunda-feira, 9 de junho de 2014

How to install Gotec Slim scanner model 6760 on Ubuntu Linux

Many year ago I bought a Gotec Slim scanner model 6760 with 24000 dpi, and upto 48 bits using USB interface.

Later I found that it was also called Plustek OpticSlim 2400+

Flatbed Scanning:
Film Scanning:
Document Feeder:
USB Vendor ID:
USB Product ID:

* did not came with a driver for Linux, but linux community did the magic.

Technical Specification:
  • Technology: CCD colour sensor
  • Optical resolution: 1200 x 2400 dpi
  • Interpolated resolution: 24000 dpi
  • Maximum scanning area: A4 (210 x 297 mm)
  • Scanning method: single pass
  • Lamp: cold cathode
  • Interface: USB version 1.1
  • Connector: USB type B
  • Net weight: 1.4 Kg
  • Size: 378/257/33 mm (Lenght/Width/Height)

Buttons – quick functions (need driver/software):
  • Copy: Send scan to printer
  • OCR: Converts image to text – Optic Character Recognition
  • E-mail: Sends image or text to e-mail client
  • Custom: user programmable
  • Scan: Start the scanning application

Capture modes:
  • Colour depth upto 48 bits
  • Gray scale upto 16 bits
  • White and black: 1 bit

Energy needed:
  • Uses power from USB port
  • Voltage: 5 VDC
  • Maximum current : 500 mA

So first we need to check:

desktop:~$ sudo lsusb
Bus 001 Device 004: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 007: ID 07b3:0454 Plustek, Inc.

desktop:~$ sudo apt-get install xsane

desktop:~$ scanimage -L
device `gt68xx:libusb:006:007' is a Plustek OpticSlim 2400 flatbed scanner
desktop:~$ sudo mkdir /usr/share/sane/gt68xx
desktop:~$ sudo cd /usr/share/sane/gt68xx
Now two options to follow:

OPTION 1: Use existing driver from driver deposits on the web

desktop:~$ sudo wget{driver.firmware}

where {driver.firmware} is the name of your scanner driver
that can be similar to: xxx.fw or xxx.usb

OPTION 2: Best option, use your windows driver CD files

You should find the driver on a windows system that you installed it, check for the cis3R5B1.fw usually can be found at C:\Program Files\Leadership\GOTECxxx or on the CD that came with your scanner (or zipped file), there are three installation files '', '' and 'data1.hdr'. Extract them to a temporary directory (for exemple: /home/{user}/tmp )

Note that some Microsoft cabinets (.cab files), cannot be unpacked with cabextract, because they are InstallShield cabinets, which can only be unpacked with unshield.

desktop:~$ sudo apt-get install unshield

Go to the directory where you saved the and do this:

desktop:~$ mkdir tmp
desktop:~$ unshield -d ./tmp x

Now go to tmp directory where you extracted the and delete all with nautilus or a pcmanfm file manager to find the driver cis3R5B1.fw or similar to this name xxxxx.fw (usually there are more than one because windows installers are for different windows versions.

Then, copy the driver to /usr/share/sane/gt68xx using this command:

desktop:~$ sudo cp cis3R5B1.fw /usr/share/sane/gt68x

Next rename (copy) the drive to the name we need it to be called
desktop:~$ sudo cp cis3R5B1.fw gt680xfw.usb
desktop:~$ sudo chmod a+r /usr/share/sane/gt68xx/{driver.firmware}

desktop:~$ sudo sane-find-scanner
[sudo] password for {username}: xxxxx

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner

(vendor=0x07b3, product=0x0454 [1200dpi USB Scanner], chip=GT-6816)

at libusb:006:007

# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage. 
# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

Be very, very carefull now. You need to know how to use “vi” first.

A brief resume of vi the commands you will need:

type 'i' means insert (just the i letter without the single quotes)
type '{ESC}' leave insert mode (the ESC key on your keyboard)
type 'dd' means cut the line I am on to clipboard buffer
type 'p' means past clipboard buffer after my position
type 'P' means past clipboard buffer before my position
type ':q!' quit without saving (loose all modifications make)
type ':wq!' quit

As a good practice, always, is to issue a {ESC} just to be sure, after a command.

desktop:~$ cd /etc/sane.d

desktop:~$ sudo vi /etc/sane.d/gt68xx.conf

As a reference where you will put the modification, search for “usb 0x07b3” and add it before the “section” that you just found.

Now lest modify the the conf file, issue a insert command a vi and copy and past the following:

#Autodetect Plustek OpticSlim 2400
override "plustek-opticslim-2400"
model "OpticSlim 2400 Plus"
usb 0x07b3 0x0454
# firmware file /usr/share/sane/gt68xx/gt680xfw.usb
firmware "/usr/share/sane/gt68xx/gt680xfw.usb"
# vendor Plustek
# model OpticSlim

Finish with a {ESC} and with the ':wq!' command (without the single quotes)

If all is correct, return to your home directory

desktop:~$ cd /home/{username}

Now check that your scanner is installed and ready

desktop:~$ scanimage -L
device `gt68xx:libusb:006:007' is a Plustek OpticSlim 2400 flatbed scanner

Now using ubuntu software center, install Skanlite, which I believe is the best option.

For the Windows 7 x64 users, the from the plustek works.

Have fun.

domingo, 1 de junho de 2014

Colégio Impacto - Tijuca - RJ - Professor Roquette - Homenagem.



1) "Cobra que não se mexe não engole sapo";
2) "Sou burro mas não sou cego";
3) "O ótimo é inimigo do bom."
4) "se podemos simplificar, prá que complicar?"

Se vc teve aula com o Roquette, Zé Ricardo, Reinaldo, Cachaça, Noronha, Jaime e outros.

Se vc passou seus sabados ou domingos ouvindo sermões do Roquette, fazendo as provas do Zé Ricardo e fazendo o TD durante a semana, vc faz parte do nosso time!!!!

Originalmente:  Rua Desembargador Isidro, 68 - Rio de Janeiro, Rio de Janeiro

Homenagem ao grande educador - professor Roquette, falecido no dia 03 de maio de 2014 (conforme informações do Facebook), um sábado.  Missão cumprida.

Com nosso respeito e gratidão.  Grande lider!

domingo, 6 de abril de 2014

Conflito, a gênese da criação.

Após mais de 200 anos do nascimento de Charles Darwin, e ao escrever sobre evolução, Darwin ilustrou, creio, uma verdade sobre o caráter humano:

"Não é a espécie mais forte que sobrevive, nem é a mais inteligente que sobrevive, mas é aquela que é mais adaptável à mudança."

Note, portanto, que é justamente no "conflito" que está a gênese da criação.

A partir do trabalho de Darwin, entre outros, nós podemos reconhecer que a capacidade humana de sobreviver e florescer é movida pela luta do espírito humano através do conflito para a transformação.

Portanto, mais uma vez, transformação e adaptação, são as nossas maiores habilidade como humanos. E, talvez, até que sejamos testados, não sabemos do que somos feitos ou capazes.  Talvez é isso que a adversidade nos dá, uma sensação de quem somos e uma percepção de nosso próprio potencial.

Podemos, então, nos dar um presente: nós podemos imaginar novamente a adversidade como algo mais do que apenas "tempos difíceis". Talvez possamos vê-la como uma "mudança". 

A habilidade humana de se adaptar, é uma coisa incrível, porque as pessoas sempre apontam para "superação" da adversidade.  Digo, no entanto, que nunca gostei dessa frase (ie. superação da adversidade), e eu sempre me senti desconfortável tentando responder as perguntas que as pessoas faziam sobre isso.

Começo a descobrir o por quê de tudo isto. Implícita nesta frase de "superar a adversidade", temos a idéia de que o sucesso, ou a felicidade, remete a ideia de emergir do outro lado de uma experiência desafiante incólume ou não, marcado pela experiência, como se meus sucessos na vida surgiram a partir de uma habilidade de evitar ou dar a volta nas pretensas armadilhas impostas pela vida, ou aquilo que outras pessoas percebem como minhas incapacidades.  Na verdade, o que acontece é que nós somos "mudados" por estas dificuldades.

Somos marcados, sem dúvida, por um desafio, quer físico, emocional, intelectual ou profissional.  E eu vou sugerir aqui que isso é uma coisa "boa".

A adversidade não é um obstáculo que necessitamos evitar a fim de continuar vivendo nossas vidas.  Ela é parte de nossa vida.  E eu costumo pensar nela como minha sombra. Às vezes eu vejo muito dela, outras vezes vejo bem pouco, mas ela está sempre comigo.  E com certeza, eu não estou tentando diminuir o impacto ou o peso da luta de uma pessoa.

Podemos definir adversidade como sendo apenas uma mudança para a qual nós ainda não nos adaptamos.

Seremos confrontados com adversidade e desafios durante toda a nossa vida, e isso é um fato inevitável e muito relativo de pessoa para pessoa, mas a questão não é se você vai ou não encontrar a adversidade durante sua "caminhada", mas como você vai enfrentá-la.

Portanto, nossa responsabilidade não é meramente proteger nossos entes amados da adversidade, mas prepará-los para que saibam enfrentá-la de frente.

Em nosso desejo de proteger aqueles que amamos, apresentando-lhes a verdade, nua e crua, sobre suas fraquezas, ou, na verdade, um prognóstico sobre as consequências de uma vida que podemos esperar, precisamos ter a certeza de não assentar o primeiro tijolo em uma parede que irá, em vez de fortalecer, na verdade irá incapacitar.  Talvez o modelo existente de olhar apenas para o que está defeituoso, e como consertamos isso, serve para ser ainda mais incapacitante para o indivíduo do que a própria incapacidade.

Então, não é uma questão de desvalorizar, ou negar esses momentos mais difíceis, como se fosse algo que queremos evitar ou varrer para debaixo do tapete, mas sim encontrar aquelas oportunidades envoltas na própria adversidade.

Assim, talvez a ideia não é tanto superar a adversidade, mas abraçando-a, agarrando-a, talvez até dançando com ela, e talvez, se enxergarmos a adversidade como sendo natural, consistente e útil, seremos menos sobrecarregados pela sua presença.

Se pudéssemos dar a alguém a chave de seus próprios poderes, o espírito humano é tão receptivo, se você puder fazer isso, e isto abrir uma porta para este alguém, mostrado a epifania do seu próprio poder, em um momento crucial ou crítico, você estará educando a pessoa, no melhor sentido da palavra. Você estará, portanto, ensinando a pessoa a abrir portas para "ela mesma".

Na verdade, o significado exato da palavra educar vem da raiz "educe" Que significa gerar o que está dentro, revelar o potencial.

Portanto, se conseguirmos fortalecer o espírito humano para manter a esperança, para ver a beleza em si mesmo e nos outros, para ser curioso e imaginativo, então estaremos realmente usando nosso poder para o bem.  Quando um espírito tem essas qualidades, nós somos capazes de criar novas realidades, e novas maneiras de "ser".

sábado, 29 de março de 2014

How to open a Command Prompt on a folder you are browsing with Windows Explorer GUI in Windows 7 ?

Finding a certain file in your Windows file system, using the graphical user interface (or GUI) through Windows Explorer is much easier, right ? 

Then usually, for advanced users, if you require a Command Prompt window, at that spot, you need to open a command prompt (ie. CMD) and get there again ... but, our good reasoning tells us that MS must have a short-cut, right ?

Running CMD.exe from the "run command" is quick, but you sometimes find that you are required to slowly change your folder path from the default CMD window to a different location on your computer, or even in network shares.

But there is the "eastern egg", that MS likes to hide from us, that is a super fast trick that will enable you to quickly open a CMD window to a specific location from the GUI by adding a  "Open Command Prompt Here" to the Explorer context menu. That way all you have to do is to open Windows Explorer, find the required folder and right-click the selected folder.  The context menu appearing is the "Open Command Prompt Here" option.

In older Windows operating systems you had to manually add the "Open Command Prompt Here" to the Explorer context menu.

But Windows Vista and Seven adds this very useful shortcut to the DEFAULT installation inside Windows Explorer context menu, that is, in kind of a hidden matter, for most.  ;-)

1) Open a Windows Explorer windows, browse to the required folder. Windows Explorer usually has two sides, the left (the directory list) and the right (the content of the directory you are selecting)

2) Right-click that folder in the "right pane" of the Windows Explorer window. Note that you do NOT have the "Open Command Prompt Here" option.

3) Release the right-click and now, hold the SHIFT key, before you right-click the folder, and Behold!  And he appears !

This context menu "add-on" in only available when you right-click on the folder in the right pane, and not in the left pane.  So usually I navigate back one step to be able to use the CMD where I what to go.

Based on Daniel Petri solution - January 8, 2009