Ichimusai

Photos and other rants

Meny Stäng

Etikett: tips

A few obvious tips

Are you using a pulse watch to track your training? Has a foot pod tracking your cadence, speed and pace when running? If you have there are a few things you may not think of that are actually rather obvious and just because of that they are easy to forget.

Battery change
When it is time to change the battery in any one of the following devices; pulse belt, foot pod, wrist watch connecting to the above, GPS pod, bike pod etc, change all the batteries. One lost stats when out is okay in a year but several is highly annoying. By changing all batteries at once you can probably go for another full year before you have to change them again.
Foot pod depletes unexplicably
Some foot pods, like mine from Suunto, starts when they feel acceleration. This means pretty much any vibration. Have your gymbag in the car for a few days when driving around? Keeping your sneakers in a backpack to and from work? Chances are the foot pod activates and depletes the battery without you working out.
Pulse belt depletes unexplicably
Pulse belts are usually activated by moisture. So if you keep it in your gym bag with your used workout clothes, chances are it keeps trying to find your pulse for hours and hours. Leave it over night a few times like this and it definitely is noticeable on the battery life. Some pulse belts like the Suunto is connected to the sensor and when disconnected it stays off so it does not suffer the same problem.
GPS pod
GPS pods generally has an on/off switch. Switch off when not in use of course.

Screen capture on Galaxy S with Android 2.2

image

I found more or less by mistake how to make a screen capture on the Galaxy S Android mobile. Other such instructiond requires the installation of an SDK or similar but this anyone can do really.

Go to the screen you wish to capture. Then press and hold the back/return button for a couple of seconds and then hit the middle button. A camera shutter sound is played and the image is captured.

The picture can then be found int he gallery of the phone as would any normal camera picture be, it can thus be uploaded, shared with face book, blogged (actually I wrote this on the phone using a WordPress agent straight from the phone)

From Jonas comment below I would conclude this is a Galaxy S specific feature that is not android 2.2 common unfortunately.

All of us who like the Android and writes about specific software on the android would love to have this feature implemented so I will suggest it to Google and see what happens in the coming versions on Android.

Your favourite prompt

Today’s Bash tip. Create a prompt that changes face depending on the return code of your last command. As long as the return code is OK you get a happy face. When it is false you get a sad one.

Open and edit the .bashrc file in your home directory and enter the following:

PS1="\u@\h:\[\e[33m\]\w\[\e[0m\] \[\`if [[ \$? = "0" ]]; \
then echo '\e[32m=)\e[0m'; else echo '\e[31m=(\e[0m' ; fi\`\] \$ "

Have fun.

Two great utilities

There are two great utilities out there that I use now and then to keep the computer nice and tidy (and fast at that). One is a cleaner utility that can remove lots of old gunk in the machine, cleaning out web browser caches and other such bits and pieces, the other is a very fast and good defragmentation program.

Change alphabet in IRC

Some IRC clients such as ircII, Epic, BitchX and so on may not come with a full european setting to be able to display characters such as å, ä, ö, ü, µ, € and so on properly. This is the way to fix this.

First set your language environment to avoid unicode:

export LANG en_US

Then start your IRC application and enter the following commands:

/set eight_bit_char on
/set translation Latin_1

Now you should be able to use it properly.

Flickr Scripts

Here are some of my favourite GreaseMonkey scripts for Flickr that I use almost daily:

Flickr Refer Comment
This script allows you to put a small signature when commenting pictures that tells the people where you found the picture. It is a very nice feature and tells people where you are finding their pictures when you comment them – which group, if you are reading through RSS aggregator, in your friends and family collections and so on.
Flickr Buddy Icon Reply
This script allows you to reply with a buddy icon and / or name so that people know who you are responding to when making a follow up comment. Lovely script!
Flickr – Multi Group Sender
This script allows you to pick from a list all the groups you wish to send a photo to. Normally you have to pick one group at a time and from the organiser you can only send a nuber of photos to one group at a time but with this you can send one photo to several groups at the same time.

In order to use any of them you must first install Greasmonkey, a scripting add-on for Firefox that also can be gotten to work with Internet Explorer.

© 2020 Ichimusai. Alla rättigheter reserverade.

Tema av Anders Norén.