Sonntag, 14. Juli 2013

=== Windows 7 more usable ===

After all these years i am sarting to use windows again. People may laugh at me but windows 7 for example has a lot of advantages to prior version. For instance the Power Shell or the netsh command for configurations of your network interfaces are two pretty neat features Windows has to offer. And as an IT-Pro you can't just ignore windows if you want a job.

Here are 3 awesome free porgrams you could have installed to make the desktop experience a bit better:

 1) Fences

fences

 With Fences you are able to Organize Your Desktop Icons into groups. You create a fence by drawing a bounding box with the right mouse button. Each Fence can be named. And if you are doubleclick on the desktop all icons disapear.

Fences can be downloaded from here

2) Process Explorer

Process ExplorerThe Windows Process Explorer is part of the Microsft Sysinternals Suite which can be downloaded directly from Micorsoft. After unpacking the Suite you might copy this to your C:\Programms folder and adjust your Systems PATH variable. So that you can start programs directly from Start --> Search. Do do so from the desktop do the following: Right-click My Computer and select Properties. Now click on Advanced System Settings and on the In the System Properties window click the Environment Variables button. This will open a box where you can edit the systems path variable. Just open the PATH by double-click on this and add a Value seperated by  ";"(semicolon). After you have started Process Explorer you can use this one and replace the Task Manager. Just use Replace Task Manager from the Options menu of this program.

 3) Better Explorer

Better Explorer

 Better Explorer is an alternative Explorer which uses the Ribbon Style Explorer like in Windows8. The best way to have the best of both worlds. You can download it here.

 

Dienstag, 2. Juli 2013

=== Obtain versions of firefox in linux using python and bash ===

The following code will get you the versions of both: The firefox version currently installed and the one available for update on the server:

01 #!/usr/bin/env python
02 
03 import os
04 
05 # we look and store the local version of firefox in this function
06 def firefox_get_version_string(inputString):
07     firefox_version_string = os.popen(inputString).read()
08 
09 # short name for firefox version number
10     fvn = " "
11
12     for i in firefox_version_string:
13         if i.isalpha() != True and i != "-" :
14            fvn = fvn + i
15
16     return fvn.strip()
17
18
19 firefox_version_remote = (firefox_get_version_string("curl -s -l ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-i686/de/|awk -F "".tar.bz2"" {'print $1'}"))
20 firefox_version_local = (firefox_get_version_string("firefox -v"))
21
22 if firefox_version_remote == firefox_version_local:
23     print("++++++++++++++++++++++++++++++++++++++++++")
24     print("This is a Testphase for autoupdate firefox")
25     print("version is up to date")
26 else:
27     print("++++++++++++++++++++++++++++++++++++++++++")
28     print("This is a Testphase for autoupdate firefox")
29     print("version differs. There might be a newer version available on the remote server")
30     print("consider implementing all of it.")
31     print("for now update must be done manually")

try it and enyjoy. oh and i am using python 2.7.3 by the way.