Pages

21 September 2011

Dual head

I didn't know where to exactly post these pictures, either in the Profile section of my website (where you can see my personal computers), in the Pictures section (a miscellaneous collection of pictures) or here in the blog. For the time being I'll upload them here.

As you can see I have bought a twin monitor for odd, my main desktop machine. I have not finished configuring it yet but I just couldn't help taking some pictures to show around.

The first picture shows a "cloned" display (both screens show the same windows). The second picture shows an "extended" display (different windows in each screen).

Here you are:


20 September 2011

Screenshot of the week 2 (wmii)

This is definitely not the best screenshot I could take. Maybe it was done in a hurry and the results are not out of the ordinary but with a bit of imagination it will do the trick.

This screenshot features one of the best tiling window managers I know: wmii I have just recently started to use it and I must admit it is far superior to other tiling applications. In order to learn about all its features and to see better screenshots, please visit the official website.

In the picture you can see htop (system monitor), mc (file manager) and scrot (screenshot application)

Using wmii:

Most window management is done using the keyboard, even though you can use the mouse as well to point and resize windows.

As usual most keystrokes are mnemonic: Alt+p = programs, Alt+s = stack mode, Alt +d = default and so on

One of the things I like the most about wmii is that you can start a terminal or as many terminals as you need by simply pressing Alt+Return. Really handy and straightforward.

18 September 2011

gnome-blog still not supporting uploading images : ( Trying drivel : )

Too bad gnome-blog can't upload images. Let's see what drivel can do.

Well, no luck : (

Trying gnome-blog again

Some time has passed since the first time I used this cool application. I left it aside because back then it couldn't handle images properly. I think it can now. So, let's give it a shot.

25 August 2011

Moles

Moles are dynamic content scripts run by a Gopher server This last week I have been experimenting with them a little bit.

My first mole

This first one was a little naive, just to get the gist of how moles work:

#!/bin/sh

/usr/pkg/bin/cal
You can imagine the output of this script...

My second mole

This is the original code of the script. I had to strip it down a bit for it to properly work. But I'm including here this version as a starting point for a future revision and improvement. (You're warned. This mole has flaws!!!)

 #!/bin/sh

 #This mole creates a digest of the main text content of my gopher site.

 cd ~/gopher

 if test -d ~/gopher/digest; then
  cd ~/gopher/digest
 else
  mkdir ~/gopher/digest
  cd ~/gopher/digest
 fi

 echo "This is a digest of the most important text content of the gopher
 version of chalsattack. It is automatically created by a script for
 the very lazy people, too lazy even to navigate the site. Enjoy." > at_a_glance.txt

 #TODO:Add suffix .txt to files to be able to use *.txt and skip silly steps -->

 cp ~/gopher/presentation ~/gopher/digest
 cp ~/gopher/chalsattack/about ~/gopher/digest
 cp ~/gopher/chalsattack/history ~/gopher/digest

 FILES="presentation
 about
 history"

 for i in $FILES
 do
 cat $i >> at_a_glance.txt
 done

 cat at_a_glance.txt



 #Notify me if the script is run

 MAD=mail@address.com #MAD short for Mail ADdress

 echo "Mole out of the hole!!!" > ~/gopher/digest/mole.txt
 echo $(date) >> ~/gopher/digest/mole.txt
 cat ~/gopher/digest/mole.txt | mutt -s "Automatically sent report" $MAD

 #Please turn off the lights and take the garbage out!!!
 #rm -r ~/gopher/digest > /dev/null 2>&1

21 August 2011

YAPP (Yet Another Penguin/Present)

This is a present I got from my elder nephew. He knows how keen on penguins I am. And he likes them quite a lot as well, especially the "Penguins of Madagascar". Do you fancy guessing which one this is...We haven't been able to figure it out as of now.




Thank you. love.

Crystal clear

This is a very original present I got from some really dear friends of mine some weeks ago. I have the picture already stored on my hard drive now so it is time to publish it as I promised.


Thank you very much from the bottom of my heart. love you.