Rolwaling valley and Tsho Rolpa lake (log)
Day – 1
- Kathmandu – Gonggar (7am – 7pm)
Day – 2
- Gonggar – Chetche (8am – 8:45am)
- Chetchet – Simigaun (8:45am – 11am)
- Simigaun – Surmuche (12:20pm – 3.20pm)
- Surmuche – Kyalche (3.30pm – 5.30pm)
- Kyalche – Dongyan (6:00pm – 6:30 pm)
Day – 3
- Dongyang – Kharka (mandir) (9am – 12:30pm)
- Kharka – Beding (1:00pm – 2:30pm)
- Beding – Na (3:15pm – 6:45pm)
Day – 4
- Na – Tsho Rolpa (8:30am – 10:45am)
- Tsho Rolpa – Na (11:30am – 12:45pm)
- Na – Beding (2:00pm – 4:30pm)
Day – 5
- Beding – Dongyang (8:10am – 11:30am)
- Dongyang – Kyalche (1:10pm – 1:45pm)
- Kyalche – Surmuche (1:45pm – 3:00pm)
- Surmuche – Simigaun (3:10pm – 5:15pm)
- Simigaun – Gonggar (5:15pm – 8:15pm)
Day – 6
- Gonggar – Kathmandu (6:00am – 4:30pm)
View our pics on flickr
November 26, 2011 at 12:33 pm | Travelling, Treking | No comment
Auto Completion for Django in Vim
After going through different blogs on auto completion for Django in vim I found this to be the easiest and relevant way. Most of these parts are taken from this blog. I had to use Google Translator to understand it coz its in Spanish.
To make it work for all your Django projects, put your all projects in one folder.
- First create ‘djvim’ file in ~/bin/ folder with this script.
#!/bin/bash# Name: djvim
# Description: Script to automate the setup of the
# enviroment vars to use omicomplete in vim
# for Django projects.
# Usage: djvim filename
#
# Author: Jesús Manuel Mager Hois
# Copyright: GPL v3 or later#Set the global vars to the Django project
function startvim(){
local arr=$(echo $1 | tr “/” “\n”)
for x in $arr
do
#echo “[$x]”
local PROJECT=$x
done
echo $PROJECT
cd ..
local DIR=`pwd`
export PYTHONPATH=$PYTHONPATH:$DIR
export DJANGO_SETTINGS_MODULE=$PROJECT.settings
vim $ARGS
}#Iter the directory tree to find setting.py
function finddjbase(){
cd ..
local DIRF=`pwd`
local FILEF=`echo “$DIRF/settings.py”`
if [ $DIRF == '/' ]
then
echo “Couldn’t find the Django base directory”
exit
fi
echo “Trying in $DIRF”
if ( ! fileexists $FILEF )
then
finddjbase
else
startvim “$DIRF”
exit
fi
}#Check if we can find setting.py
function fileexists(){
local f=”$1″
if [ ! -f $f ]
then
echo “This is not the Django base directory… trying”
return 1
else
echo “settings.py FOUND at $1″
return 0
fi
}#Main block
ARGS=$@
DIRN=`pwd`
FILEN=`echo “$DIRN/settings.py”`if ( ! fileexists $FILEN )
then
finddjbase
else
startvim $DIRN
exit
fi
- Make it executable ‘ chmod +x’
- Put this line in your ~/.bashrc file
alias vi=djvim
- Enable omnicompletion in vim for python file. (~/.vimrc)
autocmd FileType python set omnifunc=pythoncomplete#Complete
- Open your terminal and type ‘djvim filename.py’
[Ctrl+x Ctrl+o] Now you should get your auto completion working.
Tested on Ubuntu 11.04, Vim 7.3
Update : I found better tool for auto completion. Please check Pysmell.
July 25, 2011 at 9:46 pm | Django, Python, Vim | No comment
44 : php not found [zend cli tool error : solved ]
Everything was working fine until I changed my OS to Ubuntu 10.04 from Debian 5.0. I had my lampp installed in /opt. Although lampp was running, zend cli could not find php. I did exactly what the Getting started Tutorial said.
- Extract zend framework
- Edit .bashrc file
- uncomment following line :
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
- if there is already .bash_aliases in your home folder add the following line if not then create and add the following line
alias zf = ‘path/to/zendframework/bin/zf.sh’
But when you try to check zend version “zf show version”, error pops out “44: php not found”.
The missing package is “php-cli” which is use to test php script from terminal/shell. Install “php-cli” from your package manager. After installation restart lampp (if needed). Now open terminal and check zend version, “zf show version”. You should see the version of zend.
August 4, 2010 at 10:21 pm | PHP, zend | 2 comments
Web Scraping
web scraping is a technique of extracting required information from web page. It can be done by visiting the web pages and copy pasting it. This is of course not the proper way if you have thousands and data to extract. But web scraping has been made easy by using some scripting. Here I have an example of web scraper which can scrap the name of top 250 movies of IMDB rating.
This scraper is made in python using “Mechanize” and “BeautifulSoup” modules. Mechanize module is used to browse web pages in python. We can use “urllib” instead of “Mechanize” but “urllib” can not handle antibot/robots.txt so “Mechanize” module provide some extra features than “urllib”. Since imdb.com has antibots, we cannot browse it using “urllib”. “BeautifulSoup” module is one of the popular and feature rich module to pars HTML contents.
You can download my example from here and you must have those two modules to run this script.
July 17, 2010 at 10:12 pm | Python | No comment
Localization of WordPress in Nepali
We all are familiar with famous CMS WordPress. It has been one of the popular CMS among the bloggers. Due to its popularity WordPress has provided portable object (po) file for its localization. Since then we can find WordPress in different languages.
But there was no any contribution for localization in Nepali Language so my friend Sagar Chalise has started to translate it and has made repository in github and I have been one of the main contributor. If you are interested in contributing for Nepali localization of WordPress you can just download the file and start translating it or contact us and let us know. Any help would be appreciated.
clone from git : git@github.com:reddevil/Localizations.git
July 7, 2010 at 8:56 am | wordpress | No comment