Close all other windows in Vim

Vim documentation: usr_08

CLOSING ALL OTHER WINDOWS If you have opened a whole bunch of windows, but now want to concentrate on one of them, this command will be useful: :o nly This closes all windows, except for the current one. If any of the other windows has changes, you will get an error message and that window won’t be closed.

Chrome Firefox

Firefox: Chrome Package Makes Firefox Look Even More Like Chrome

The Chome Package Firefox extension makes Firefox look almost exactly like Google Chrome for those of you who prefer Chrome’s tabs-on-top style. (Chromifox wasn’t quite there.) You’ve enabled the rest of Chrome’s best features in Firefox.

I put off downloading Google Chrome because I already had Flock, Safari, Avant. But as the blog posts ranting about Google Chrome came up, I gave in and installed it.
It looked very cool and I have been using it for several days and like it very much.
However today, I found the above package to make Firefox look like Chrome and I will revert to Firefox.
My main reason is I miss the add-ons in Firefox (scribefire, gmail checker etc). With the growing interest in Chrome, I am sure I will explore Chrome again later.

Good reason to upgrade to WordPress 2.6.2 ?

Sticky Posts! « WordPress.com

Regular updates are what blogging’s all about, but sometimes you want to keep hot topics or other static info at the top of your posts. This feature has existed as Sticky Topics in the forums, but hasn’t been available on blogs. Until now.

This feature might be a good reason to upgrade to WordPress 2.6.2.

Read Daily Bread easier with python

I live in Malaysia which is GMT+8.

When I open the Daily Bread in the morning, it shows me the previous day’s devotion because Malaysia’s time zone is ahead of Daily Bread’s. However, Daily Bread allows me to read ‘ahead’ by clicking on any date on a calendar on the website.

Well, I don’t like to do anything manual repeatedly if I can help it and I wrote the script below.

 
import os
import datetime
import webbrowser
import urllib2
from BeautifulSoup import BeautifulSoup
 
def daily_bread(d):
    year = d.year
    month = d.month
    day = d.day
# refer http://my.php.net/manual/en/function.sprintf.php for sprintf format
 
    url = 'http://www.rbc.org/devotionals/our-daily-bread/%04d/%02d/%02d/devotion.aspx' % (year, month, day)
    webbrowser.open(url)
 
    open_bible(url)
 
 
def open_bible(daily_page_url):
    page = urllib2.urlopen(daily_page_url)
    s = BeautifulSoup(page)
 
    bible_a = s.find('a', id = 'ctl00_cphPrimary_hlGatewayVerse')
    url = bible_a['href']
    webbrowser.open(url)
 
 
today = datetime.date.today()
 
daily_bread(today)
 
if today.weekday() == 5: # Saturday
    tomorrow = today + datetime.timedelta(1)
    daily_bread(tomorrow)

It will open the Daily Bread devotion for the correct day (the same day as my computer time).

As a bonus, it will also open the day’s Bible verse. (You will need to easy_install BeautifulSoup first).

On Saturdays, I read the Sunday’s devotion too because I go to church on Sunday. The script opens 2 days’ reading on Saturday.

Technorati tags: ,

Run office PC from home

This morning, I learnt how to switch on my office PC from home.

In my scenario, my office has citrix which I can log in to.

Before this morning, I had to leave my PC on before I left work if I wanted to use it from home. At home, I would log on to citrix and then remote desktop to my office PC.

This wikipedia article provided good resource to find scripts to switch on my PC from home. I used one of the scripts provided and tested it to wake up my computer via citrix. It worked. Once that was accomplished, I could then remote just as if I had left the computer on.

Now I don’t have to leave my computer on if I want to work from home.

Technorati tags:

Read Office 2007 files with Office XP, 2000, 2003

Download details: Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats

By installing the Compatibility Pack in addition to Microsoft Office 2000, Office XP, or Office 2003, you will be able to open, edit, and save files using the file formats new to Word, Excel, and PowerPoint 2007. The Compatibility Pack can also be used in conjunction with the Microsoft Office Word Viewer 2003, Excel Viewer 2003, and PowerPoint Viewer 2003 to view files saved in these new formats. For more information about the Compatibility Pack, see Knowledge Base article 924074.

Free Django hosting

Google App Engine comes bundled with the popular Django python framework.

For an idea of Django hosting prices, visit http://www.webfaction.com/services/hosting.

Python hosting is rare and pricey (compared to PHP hosting).

Before  Google App Engine, if you wanted to run Django on Bluehost, you have to be ready to do quite a bit of work and bluehost tells you it is not supported.

Google App Engine gives a free start-up pack that comes with 500M disk space.

So, before you fork out $ for Django hosting,  give Google App Engine a spin first.

Technorati tags: ,

Introducing Google App Engine – hosted web applications on Python

Most hosting companies support PHP web applications but few support Python web applications.

Google just launched Google App Engine – a hosted environment that uses Python and YAML and it even offers a no-risk free start-up pack.

During this preview period, applications are limited to 500MB of storage, 200M megacycles of CPU per day, and 10GB bandwidth per day. We expect most applications will be able to serve around 5 million pageviews per month. In the future, these limited quotas will remain free, and developers will be able to purchase additional resources as needed.

Yahoo !!

Google App Engine Blog: Introducing Google App Engine + our new blog

Technorati tags: ,

easy_install is a great tool to install python packages

Today, while reading a magazine, I came across a package I wanted to check out – pyExcelerator.

I found the package at sourceforge, version 0.6.3a.

I downloaded the zip file and just before I installed it, I tried out easy_install.

   1: c:\1\sql\nfx>easy_install pyexcelerator
   2: Searching for pyexcelerator
   3: Reading http://cheeseshop.python.org/pypi/pyexcelerator/
   4: Couldn't find index page for 'pyexcelerator' (maybe misspelled?)
   5: Scanning index of all packages (this may take a while)
   6: Reading http://cheeseshop.python.org/pypi/
   7: Reading http://cheeseshop.python.org/pypi/pyExcelerator/0.6.0a
   8: Reading http://www.sourceforge.net/projects/pyexcelerator
   9: Reading http://cheeseshop.python.org/pypi/pyExcelerator/0.5.3a
  10: Reading http://sourceforge.net/projects/pyexcelerator/
  11: Best match: pyexcelerator 0.6.0a
  12: Downloading http://pypi.python.org/packages/source/p/pyExcelerator/pyexcelerator
  13: -0.6.0a.zip#md5=df116f024919e129487366729e619928
  14: Processing pyexcelerator-0.6.0a.zip
  15: Running pyExcelerator-0.6.0a\setup.py -q bdist_egg --dist-dir c:\docume~1\siewka
  16: ~1\locals~1\temp\easy_install-gglema\pyExcelerator-0.6.0a\egg-dist-tmp-di0eir
  17: zip_safe flag not set; analyzing archive contents...
  18: Adding pyexcelerator 0.6.0a to easy-install.pth file
  19:
  20: Installed c:\1programs\python\lib\site-packages\pyexcelerator-0.6.0a-py2.5.egg
  21: Processing dependencies for pyexcelerator

and it was installed.

But it got version 0.6.0 instead of 0.6.3a.

I then tried installing with the zip file :

   1: c:\1\sql\nfx>easy_install e:\download\pyexcelerator-0.6.3a.zip
   2: Processing pyexcelerator-0.6.3a.zip
   3: Running pyExcelerator-0.6.3a\setup.py -q bdist_egg --dist-dir c:\docume~1\siewka
   4: ~1\locals~1\temp\easy_install-atezny\pyExcelerator-0.6.3a\egg-dist-tmp-qdyivy
   5: zip_safe flag not set; analyzing archive contents...
   6: Removing pyexcelerator 0.6.0a from easy-install.pth file
   7: Adding pyexcelerator 0.6.3a to easy-install.pth file
   8:
   9: Installed c:\1programs\python\lib\site-packages\pyexcelerator-0.6.3a-py2.5.egg
  10: Processing dependencies for pyexcelerator==0.6.3a

and it  also installed !!

Wow !! easy_install can install just by my typing

1. easy_install <package name> – and it will search the internet for the package.

2. easy_install <downloaded zip file>

Get easy_install from Python Enterprise Application Kit (PEAK).

Technorati tags: , ,
Cookie

Alternate URL addresses for Google search

All these url addresses link to Google search.

1. www.americanlandmarkfence.com
2. www.unitedamericanfund.com
3. www.earningspace.com
4. www.jeanoffer.com
5. www.factualearn.com
6. www.abnamrobankgroup.net
7. www.glisteningwhitesmile.com
8. www.iloveyourobin.com
9. www.nuzrinmira.com
10. msm.byu.edu

 

Use them to Prevent Boss From Snooping On Your Google Search Queries

Technorati tags: , , ,
Pages:«1234»