Saturday, May 3, 2008

Automatically changing wallpaper relatively to daytime in Ubuntu

Fedora 8 introduced a nice feature which is automatically changing wallpaper relatively to daytime. Here’s how to have this cool feature in Ubuntu (and any other linux distribution) !

Select four wallpapers, one to be displayed at sunrise, the second during the day, third at sunset and the last at night.
Then, in a terminal, create a bash script as follows :

gedit .change.sh

You’ll get the newly created .change.sh file opened in a text editor.
Copy the following text in the file (Change the PATH-TO-**-PICTURE with the appropriate path) :

#!/bin/bash
HOUR=$(date +%H)
case “$HOUR” in
04|05|06|07)
gconftool -t string -s /desktop/gnome/background/picture_filename PATH-TO-SUNRISE-PICTURE
;;
08|09|10|11|12|13|14|15)
gconftool -t string -s /desktop/gnome/background/picture_filename PATH-TO-DAY-PICTURE
;;
16|17|18 )
gconftool -t string -s /desktop/gnome/background/picture_filename PATH-TO-SUNSET-PICTURE
;;
*)
gconftool -t string -s /desktop/gnome/background/picture_filename PATH-TO-NIGHT-PICTURE
;;
esac

As you can tell, this script sets the appropriate picture depending on the system’s current hour.
Now we’ll create a cron job, which is a linux way to automatically run tasks.

gedit .change.cron

This will open the text editor to edit our cron job.
Copy the following in the text editor (Replace YOUR-HOME-FOLDER by your home folder’s absolute path):

* 4,8,16,19 * * * YOUR-HOME-FOLDER/.change.sh

As you see, the cron task will lauch our previously created script at 4am, 8am, 4pm and 7pm to set the adequate wallpaper.
(Of course, you can change the hours at your convenience).
Now, let’s add these tasks to our gnome session so that they are automatically launched every time we login.
Open the System>Preferences>Sessions menu.
* Click the Add Button
Name: Changing Wallpaper Cron
Command: crontab PATH-TO-YOUR-HOME-FOLDER/.change.cron
Click Ok
Now the job of automatically changing wallpaper is set as an automated job every time we login.
We also have to add the script at session startup so that the correct wallpaper is initialized when we login. (This means, that if you login at e.g. 5:30pm, you’ll have the right wallpaper for that time). To do that,
* Click again the Add Button
Name: Initializing Wallpaper
Command: PATH-TO-YOUR-HOME-FOLDER/.change.sh
Click Ok
Here you are ! Your desktop wallpaper is living and reflecting the daytime! :P
Send your commentaries if you have any difficulty.

Another Tip’s and Trick let the mind be full by knowledge

How to UN-BAN your CHAT BANNED Y4h3ll ID!!!

Here is somthing i had figured out:

If you would like to unban your name if it has been Chat Banned(Locked up COMPLETELY)
then go to you lauguage settings in your account to change tha lauguage then change
it to:

Chineese-China(Mainland)

and then save it all then exit out of it…DO NOT try to get back on your name for
anything for about 2-3 weeks or untill its unlocked, then change tha settings
back to:

English

then try to log in and there you go you should now have your banned name unlocked and
have fun! You ask how does this work well it works by Y4h3lls Servers will reconize
you(Your banned name) as a new member but your not!! LOL

(NOTE: If it doesnot work if you put it back to “ENGLISH” put it back onto “CHINEESE-Chaina(MAINLAND” and leave it there for about another 2 months)…tnx..gudluck

Finding a Invisible User on Yahoo Messenger
1. Double Click on the user whose status you want to check.

2. A message window will open.

3. Click IMVironment button, select See all IMVironments, select Yahoo! Tools or Interactive Fun, and click on Doodle.

4. The last step and the most important step. After loading the Doodle IMVironment, there will be two possibilities.
a) If the user is offline, the Doodle area will show “waiting for your friend to load Doodle” continuously. If the user is online (in invisible mode), after few seconds (it can take up to one minute, depending on connection speed), you will get a blank page.

So the user is online!There is a counter attack of this trick:Go to Messenger>>Preferences>>Messages and now uncheck Enable IMVironments. Now this trick is nullified!

Second Method: Voice Chat

1. Double Click on the user whose status you want to check.

2. Click on “Voice” icon on the toolbar, or select “Contact” menu and select “Enable Voice Chat” .

3. The deciding part… there are 2 possible results:

a) If the user is offline, you will get this message: “Internal server error. Cannot obtain voice token to start voice chat.” If the user is invisible (actually online), you will see the Voice Toolbar.

Third Method: Conference Invitation

1. Right Click on the user whose status you want to check.

2. When the menu appears, select Invite to Conference.

3. A window will appear. See at the right pane, the username you selected will be there. Now, click Invite.

4. The deciding part… there are 2 possible results:

a) If the user is offline, you will get this message: “None of the users in the invite list are available to join the conference.

Please try at a later time.”If the user is invisible, you will get a window similar saying: “You are now logged into voice conference - ”

Fourth Method: Buddy Spy

1. Get Buddy Spy fromhttp://www.buddy-spy.com
Yahoo tips ‘n tricks ‘n chat commands :sk:
Chat Command Help

/cls Clears the history

/help Displays this message

/join roomname Joins room ‘roomname’

/goto username Goes to ‘username’

/think xxx . o O (xxx)

/follow user Follows the user wherever they go

/follow Stop Following

/invite username Invites ‘username’ to join this room : emotion Displays user defined emotion string

/think– will get you . o O ( …….. ) just type /think whatever…..and get . o O ( whatever ) …doesn’t seem to work in messenger chat though……java /cheeta/ychat/cheeta users if they just type /think will have a random message inserted
/roll 2– will get you something like ‘fire-wall rolls 2 dice 3,4′ ……..to roll multisided dice type /roll 2:10 try /roll 2×2 to flip coins

/tell ( name )– allows you to send a private message with out a pm box
/goto ( name ) lets you go to a friend or another user
/invite ( name )– allows you to invite a user to where you are
/follow ( name )– allows you to follow someone
/stopfollow( name )– stops you following someone else…. no way to stop someone from following you. :cry: :cry:
/cls– clears the screen
/help– works great in java chat!!! be prepared for a full screen of info though.
/define– works in cheeta chat
/time– works in most clients
/version or /ver –the latter is great for when you need help………and /version helpers name sends them a private message with the same info so they can help.
/join (roomname) is great for skipping the rooms list……like
/join yahoo! chat help:1

to emote without using the pop up emotes or the list just type /emote name …….like /hug or to emote someone /hug ( name) and to make your text show as an emote …..type a : then whatever…..and your text will look like an emote like Fire-wall hugs you

/ignore add (username) a quick way to send someone to the iggy box…..
/ignore remove (username) can take an accidental ignore off….. or even remove yourself form your own ignore…. don’t laugh…. it has happened!!! despite yahoo saying you cant ignore yourself. you can also open messenger, look under privacy, and remove names there.
/save works in all but messenger (click file. then save for messenger chat)……..in browser chat make sure you know where it saves the transcript!!!!!
/logoff closes your chat screen and logs you out

Some Tricks in YM Messenger

Here are some things you can do with your Yahoo messenger. I will put them in three sections - Easy, Moderate and Hard to show what level of computer knowledge is recommended.
Easy

Send a group message
This one is really simple. Just right click on the group title in your contact list and select Send Message to all in this group . Alternatively hold down the Ctrl and left click on the names you wish to send a message to. Once you have hilighted the required names simply right click on a name and select Send a message .

Change webcam status message
Really simple and hardly a secret. Click Login at the top left and then click on Preferences. Once the preferences window has opened click on Webcam in the list on the left. Now on the right at the bottom you should see a box and next to it it says When my Webcam is on, change my status message to . Tick the box and then type the message you want people to see when you have your webcam on.

Moderate

Change the title bar text
You can change the text that appears in the bar at the very top of the messenger window by simply editting the ymsgr.ini which you will find in the same folder as your messenger. Locate the ymsgr.ini file and open it in notepad or any text editor. Then at the end add the following

[APP TITLE]
caption=YOUR TEXT

changing YOUR TEXT to whatever you want it to say. Then save the file and close messenger. When you restart messenger you will see your new message.

Advanced

Edit/delete your custom away messages

Please only attempt this if you are confident at registry editting. Click Start and click on Run . In the run window type regedit and press Enter. Once regedit has opened click the following items in the list on the left. You can either double click the folder image or single click on the + sign. First open HKEY_CURRENT_USER then Software then Yahoo then Pager then profiles . Next open the folder for the accounts who’s away messages you want to edit or delete. Now open the Custom Msgs folder. In here you will see all the status messages you have set next to a number. The Number_DND bit sets whether it shows you as busy or not with that status. 1 will show you as busy while 0 will not and 2 will set you as idle. The away msg entry is the last away message you used.

Tips And Tricks How To Change IP Addres

The following is a guide on how to change your IP in 30 seconds or less. This can be used if your IP has been banned from a game server, or on gunbound if your IP get’s blocked. I’ve tried this on both Windows XP and Windows 2000, and it has worked!

1. Click on “Start” in the bottom left hand corner of screen

2. Click on “Run”

3. Type in “command” and hit okay

You should now be at an MSDOS prompt screen.

4. Type “ipconfig /release” just like that, and hit “enter”

5. Type “exit” and leave the prompt

6. Right-click on “Network Places” or “My Network Places” on your desktop.

7. Click on “properties”

* You should now be on a screen with something titled “Local Area Connection”, or something close to that, and, if you have a network hooked up, all of your other networks. *

8. Right click on “Local Area Connection” and click “properties”

9. Double-click on the “Internet Protocol (TCP/IP)” from the list under the “General” tab

10. Click on “Use the following IP address” under the “General” tab

11. Create an IP address (It doesn’t matter what it is. I just type 1 and 2 until i fill the area up. I use my same ip address with a different number at end of ip, same sub mask, same default gateway.)

12. Press “Tab” and it should automatically fill in the “Subnet Mask” section with default numbers.

13. Hit the “okay” button here

14. Hit the “okay” button again

*You should now be back to the “Local Area Connection” screen.*

15. Right-click back on “Local Area Connection” and go to properties again.

16. Go back to the “TCP/IP” settings

17. This time, select “Obtain an IP address automatically”

18. Hit “okay”

19. Hit “okay” again

20. You now have a new IP address

Get rid of Windows Update restart nag

A simple tip for removing the annoying Windows Update nag that pops up asking you over and over again whether you’d like to restart your computer now or later.

First

Quote:
To stop this service, open [Command Prompt] (Start>Run>cmd>Enter) and type the following command sc stop wuauserv. This will not prevent Automatic Updates from starting at the next boot. So don’t worry, you’ll keep getting Windows updates. Just don’t forget to restart eventually.

If you’re afraid of the command line? Here’s how you can disable Automatic Update restart prompts using Windows Computer Policy

Quote:
Now, to get rid of it: Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations

Seems simple enough. Obviously you should still get to restarting your computer eventually, but really, Windows - how many times in an hour do we need to be reminded that you’re desperate for our restarting attention? Just let us work.