xuedi 的 blog
A BLUG Spammers BLOG

Archive for the ‘blug_planet’ Category

Stress testing

Monday, September 6th, 2010

—–TWIT—–
i found this interesting Blog post link (in German, sorry) that is talking about the usage of the tool ‘stress’, than man-page says it better than i could describe, so check it out.
—–

temp scp alias

Saturday, September 4th, 2010

Quite often i am sitting with someone in some cafe working and ‘just’ want to copy a file over … even though we can today send bits and bytes all over the world, the communication of two people next to each other failing on stupid simple reasons quite often (no net-cat installed, samba not configured, nfs modules missing, someone remember the hassle of serial dialog cables ^^) well, the point i try to make here is that for me the most simple and fast is still ssh.

But, with the situation to freelance in changing cafe places and just shortly here and there send some files to different people my .ssh/known_host file grow to about 120 entrys. I can not recall (trust) any of them, so the point of the warning at a man-in-the-middle attack is useless …

I was searching for quite some time (read here and there a few lines of the manual) for a simple –no-host-check option for ssh. Now i found it:


alias mscp='scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'

It is very convenient to have a guest user (no bash / login, with password) account on the system, so you just do sshd->start … then: mscp (mobile-scp) and there is your file … sshd->stop

Cheers
xuedi

annoying bug on the N900

Thursday, August 26th, 2010

Really annoying and not fixed since 3 months:

last 1.2 release, signed in on Skype via 3G change to wiki and Skype is f**ked up, can sign in any more, only solution is to remove the Skype account and create it again. For me this mean to merge 100 contact into my phones address book again.

Nokia and Skype do not even reply to the Ticket i wrote via Support. its in the maemo bug Tracker since month with the info: it depends on action from Skype or Nokia….

Great, reason no. 1 to buy the N900 is not working any more :-( So far i had only great experiences with the phone, hope it will be fixed soon…

my story of – big people

Friday, June 25th, 2010

The typical wikipedia session is always ending for me in an ocean of more and more far related opened tabs, this time (just one thread):

wiki: The Beatles – Penny Lane ->
wiki: James Penny ->
wiki: Slave ship ->
wiki: Slave Trade Act 1807 ->
wiki: Abolitionism ->
wiki: William Wilberforce ->
wiki: Thomas Clarkson ->
wiki: St John’s College, Cambridge ->
wiki: Nobel Prize ->
wiki: Nobel Prize in Literature ->
wiki: Herta Müller ->
wiki: Poetry ->
wiki: Meter (poetry) ->
wiki: Book of Songs (Chinese) ->
www: http://chinese.dsturgeon.net/text.pl?node=14454&if=en ->
www-Google: “how to write pinyin tones with ibus” ->
bash: “flagedit app-i18n/ibus-m17n — ~x86″
bash: “emerge app-i18n/ibus-m17n”
openoffice:

碩人shuò rén
Big person

手如柔荑shuǒ rú róu tí
Her fingers were like the blades of the young white-grass

膚如凝脂fū rú níng zhī
Her skin was like congealed ointment

領如蝤蠐lǐng rú qiú qí
Her neck was like the tree-grub

齒如瓠犀chǐ rú hù xī
Her teeth were like melon seeds

螓首蛾眉qín shǒu é méi
Her forehead cicada-like; her eyebrows like [the antenne of] the silkworm moth

巧笑倩兮qiǎo xiào qiàn xī
What dimples, as she artfully smiled

美目盼兮měi mù pàn xī
How lovely her eyes, with the black and white so well defined

great progress on my game project

Monday, June 21st, 2010

Hello there,

recently i started massively working on my game project again, and i really fall in love with doxygen and mercurial :-)

Check it out

The only problem is i am running out of money because i program to much for hobby ^^

Cheers
xuedi

windows

Monday, June 7th, 2010

Hello,

normally i don’t care much if people use windows or Linux or mac, i just try to show people some new site when they never heard about Linux and help them with some install stuff if they want, so i am not a big fan of flame wars and fanboy-bashing.

But this morning i needed to work shortly on an windows machine, my windows optinion changed from “i don’t care” to “wtf” … The System was an WinXP on dual core with 4G ram, i was asked to help with some updates.

I started updating, everything went quite well, but then acrobat reader hit me straight in my Balls …

I never understood why document viewing application need a 70Mb download and about 150MB space to install, but this time i was really surprised, acrobat (only the reader) started downloading and unpacking and checking and installing, and checking again, and cleaning up and seriously ask me to reboot the windows system (that took 19min on a dual core system) … i was quite speechless already, but after the reboot he started again cleaning up registering components ands so on …

As he finished, i checked all the functions i could find in that app to figure out what that is all about, but it is basically the same simple PDF reader it was many years ago, i don’t get the point.

I checked out of curiosity some other components as well, i found a HP driver that uses 110MB of memory (some wired management stuff that can’t be separated from the driver). I thought gnome was already getting to heavy (using awesome now) but well, memory and new CPU’s are cheap these days ….

Cheers
xuedi

byebye facebook

Monday, May 31st, 2010

Hello there,

now, a while after i tighten up my privacy settings on facebook i noticed that i am really not using it anymore. So today i deleted my account, for everyone who wants to follow and don’t find the permanent delete button, here it is: http://www.facebook.com/help/contact.php?show_form=delete_account (i asume you are logged in already).

Done, none i am searching for a good photo album software to install on my website … anyone any idea?

Cheers
xuedi

z0r.de

Saturday, May 29th, 2010

Hello there,
if you like http://xkcd.com/ you might like http://z0r.de/ as well, is at least the same addictive, a lot of music and repeating animations ^^

Cheers
xuedi

P.S.
Love this one: http://z0r.de/2029

New Ubuntu and binary

Tuesday, April 27th, 2010

Good news,

The 10.10 release of Ubuntu will increase all kind of stats, network speed, hard disk size and so on. And no one need to do any kernel magic for that ;-)

What i am talking about is that 10.10 will have finally implemented the binary norm from 1998 and now there is a difference between 1000MB and 1024MB so only fields where it is really necessary like counting the memory it will be kept in binary counting. All human readable values like hard disk, network bandwidth and so on will be counted in 10 system. To make that clear 1MB will be in the future 1000kB, and in binary counting 1MiB will be 1024KiB so the ‘i’ is the new part the signalize binary counting. That should make calculating much more easy and help the USB-Stick sellers to finally have the right size for free :-P (previous 1G stick was 931MB) now a 1G stick will have exact 1000MB ^^

Cheers
xuedi

Remote control rhythmbox

Thursday, April 8th, 2010

Programmer are good ones if the are lazy in their style of work, and i using that concept for all my live. So one of my new laziness gadgets, imagine you lie in bed, but your laptop is playing music on your working desk, now a song came up you want to skip or you want to change the volume. Given the fact you have a ssh comparable device like i have my N900 with you, you can easily remote control rhythmbox.

The command line control is rhythmbox-client, unluckly its an GUI app that gets a bit confused if the right environment variables are not set, so that how i make it run easily for me.

First:

Make sure you can access the machine that runs rhythmbox easily, my laptop runs a SSH server, so first i created a certificate on my N900, this is not nessesary if you have there alreada a xxx.pub file:

cd /home/<yourUser>/.ssh
ssh-keygen -t rsa

Second:

You need to make your machine that runs the music play to know that this created certificate is accepted, therefor you need to register it, the first variable here is the key file its called something xxx.pub depending if you use rsa or another algorithm. You also need to copy that key over via SSH so you need to enter the name and ip or your machine that runs rhythbox:

ssh-copy-id -i /home/<yourUser>/ssh/id_rsa.pub <user>@<hostname_or_ip_address>

Third:

Make it more easy to access your remote music machine, if you use it only in a home wifi you can create a SSH config file and if you gave your machine that runs ryhthmbox a name lets say ‘myLaptop’ then this command will connect you via SSH: ‘ssh myLaptop’ but you can choose freely run ‘vim /home/<yourUser>/.ssh/config’ and enter this config option:

Host myLaptop
User yourUser       #or whatever you like
Port 22
Hostname <MusicPlayersIP>
IdentityFile /home/<yourUser>/.ssh/id_rsa
TCPKeepAlive yes
IdentitiesOnly yes

Forth:

The command to change your rythmbox need some variables set as well, that makes it quite long, so i suggest you create an alias for that, normally you do that in ~/.bashrc (for your user only) /etc/bash.bashec (for systemwide) but if your machine like mine N900 just using shell not bash you need to use ~/.profile . Add  now the alias command to our file of choice:

alias rc='ssh yourUser@myLaptop env DISPLAY=:0.0 rhythmbox-client --no-start'

Usage:

You can use that new command now for:

  • rc –help                    # get all options
  • rc –next                    # next song
  • rc –previous            # next song
  • rc –volume-up        # louder
  • rc –volume-down  # more quite
  • rc –pause                 # pause the music
  • rc –play                    # start playing music

Some tip, the volume up and down command just change the internal rhythmbox level, so before you go with some beers, sandwiches, to bed an plan to stay there all sunday long, set the rhythmbox level to middle and ajust your system sound level to normal room sound, now you have room for more lous and more quite, and no reason to get up at all … well, get some empty plastic bottle and you even can save the way to your washroom ;-)

N900, N810, N800 Users

You can also create a desktop icon for ever singe command and create your own remote control looking desktop, but don’t be inpatient, command via SSH take a second to work, so don’t press 10 time more loud, that will be still executed just a second later and you neighbors might not like it…

Cheers
xuedi