Posts

Random interesting links

http://www.ics.uci.edu/~dan/ class/165/notes/memory.html http://c-faq.com/decl/spiral. anderson.html http://www.pixelbeat.org/ programming/profiling/ http://thread.gmane.org/gmane. comp.version-control.git/ 172286 http://web.eecs.utk.edu/~ vweaver1/ http://code.google.com/p/tcl/ wiki/DesignDocument http://hekimian-williams.com/? p=20 http://indico.cern.ch/getFile. py/access?resId=1&materialId= slides&confId=36801 http://www.booki.cc/ gsocstudentguide/open-source- culture/ http://teachingopensource.org/ index.php/Textbook_Release_0.8 http://www.ibm.com/ developerworks/br/library/l- linux-scheduler-simulator/ http://www.ibm.com/ developerworks/linux/library/ l-scheduler/ http://www2.rdrop.com/~ paulmck/RCU/whatisRCU.html

Caboooo! Cabooooo! Acabooooo!

Image
Assim que fiquei sabendo a última nota que faltava, me lembrei do Galvão bueno comemorando alucinadamente a final da copa de 1994. Finalmente me formei! Caboooo! Caboooo! Acabooo!

Enable power button on minimal install of Fedora 17

After fresh Fedora 17 minimal install, pressing the physical power button has no effect. This is valid for both virtual machines and physical servers. To fix it, just: # yum install acpid # reboot

Communication between two MSP430

Image
I like the LauchPad kit due its price under USD 5. But I also like it due its simplicity. The Lauchpad kit includes two MSP-430 chips. It is very easy to make the second chip to work with just a few components. Schematic used for the second MSP430 This schematic is from:  http://www.msp430launchpad.com/2010/07/schematic-images-and-explanation.html I made two simple programs that communicate with each other. The source code is at: https://github.com/petersenna/msp430/blob/master/rx-device.c https://github.com/petersenna/msp430/blob/master/tx-device.c

Lightning fast boot with Fedora17

See Harald Hoyer article:  Fedora 17 Boot Optimization (from 15 to 2.5 seconds) . One of the boot steps that consumes about 3 seconds is the decompression and running of initrd. If you do not use LVM, software RAID or partition encryption you may not need initrd. But Grub2 is configured to always use initrd for booting. If you modify by hand the file /etc/grub2.cfg, it will last until your next Kernel update. To avoid this, I made a grub configuration file that will generate entries without initrd even for new Kernels. Check it out at: https://github.com/petersenna/Fedora17-fastboot [peter@ace Fedora17-fastboot]$ systemd-analyze Startup finished in 1433ms (kernel) + 2150ms (userspace) = 3584ms 3.5 seconds is good for me and I still have a fully operational Fedora 17. :-D

Nobreak SMS no Linux

Image
O software que a SMS disponibiliza para comunicar com os nobreaks é no mínimo precário. Não é bem acabado e consome uma enormidade de recursos. É difícil de acreditar que eles distribuem um servidor de aplicação apenas para isso. Resolvi fazer o meu software para comunicar com o nobreak. Veja a saída da versão 0.1: É apenas um executável simples que não precisa de nada complexo. O código fonte está diponível para download em: https://github.com/petersenna/nobreakSMS . Também tem alguns binários em:  https://github.com/petersenna/nobreakSMS/tree/master/userland/binary *** ATUALIZAÇÃO DEZEMBRO 2017 *** Tente usar o  nut , Network UPS Tools. Os nobreaks da SMS aparecem na lista de dispositivos compatíveis . O nut está disponível na maioria das distribuições Linux.

Emdebian Grip 2.0

Image
The Grip flavor of Emdebian project allows to create thinner Debian root file systems. I've created one that includes apt, vim-tiny, net-tools, iputils-ping, and isc-dhcp-client. Later I've added grub and Kernel 2.6.32-5-686. The total size of this Emdebian is about 66MB, which is 3.5 times smaller than the usual 230 MB required for regular Debian root file system. Want to test it? I've created a 128MB bootable image file for x86 architecture. You will need at least 48MB of RAM to this image work. You can download it here . For testing use USB pen drive and a personal computer that allows booting from USB. The procedure: 1 - After downloading, uncompress using gzip: # gzip -d peters-emdebian.img.gz 2 - Copy the image do destination pen drive using dd. Be careful to use correct destination as dd will overwrite it. Replace "X" with the correct drive letter. All data on destination storage will be lost. # dd if=peters-emdebian.img of=/dev/sdX bs=8k 3 - Boot!...