:-[] :-|| Vivek Khokhar rambles here :-O :-[]

December 6, 2007

ERROR: While executing gem … (Gem::GemNotFoundException)

Filed under: Uncategorized — Vivek Khokhar @ 6:35 pm

You might be feeling annoyed with this problem. (I do)
Problem could be:

your local source cache
Example:   /usr/lib/ruby/gems/1.8/source_cache

; try removing this file (Your path might be different than above given; check your path first using #gem env)
If this does not solves your problem

check your env var REMOTE SOURCES (#gem env)

If it is not gems.rubyforge.org then use following command to install:

#gem install -r gem_name  –source http://gems.rubyforge.org

If this does not solves your problem(is your internet down?)

Borrow gem files from your friend and install them without -r option.

#gem install /path_to/gemname.gem

July 31, 2007

lynx: https how to

Filed under: Uncategorized — Vivek Khokhar @ 1:03 am

step1: Compile lynx with ssl support

cd lynx source folder

./configure –with-ssl

step2:  make ; make install

To avoid local ssl error prompts/complains,  Open lynx.cfg make following change:

step3:  FORCE_SSL_PROMPT:yes

thats all!. you should be able to crawl https pages using lynx now.

July 26, 2007

mpgtx: MPEG splitting made easy

Filed under: Uncategorized — Vivek Khokhar @ 1:47 am

Considering ffmpeg for mpeg cutting/splitting… too complex i think for such a simple task.

mpgtx.sourceforge.net is the way to go if are looking for simple operations like cutting/joining mpeg files.

Tool Summary :

This simple command(from a ruby script I wrote) will cut the full length videos into count_chunks pieces and store them under directory_writable, where count_chunks and directory_writable are both variables

Open3.popen3(”/bin/mpgtx -#{count_chunks} #{_file_to_process} -f -b #{directory_variable}/#{game.file_path.gsub(’.mpg’,'’)} 2>> #{directory_variable}/split.log”)

June 1, 2007

Form tag
Extra Vertical Space Problem

Filed under: Uncategorized, css — Vivek Khokhar @ 3:48 am

Fix:
form style=”margin-top: 0px;margin-bottom: 0px;”

May 28, 2007

Tips & Tricks

Filed under: Uncategorized, mysql — Vivek Khokhar @ 11:57 pm

Mysql Getting Random Row: “order by rand()”

February 18, 2007

Multiple Gtalk instances

Filed under: Uncategorized — Vivek Khokhar @ 6:55 am

This is how you can run multiple instances of Google talk
c:\> googletalk.exe /nomutex

pretty straight huh !

October 11, 2006

Find : various possibilities

Filed under: Uncategorized — Vivek Khokhar @ 2:36 am
find . -name “*.ext”

find . -user mike #owned by mike

find . -type d   #All directories  -type f for all files

find . -size +1024M #More than 1 GB

find . -name *.jpg ! -name bb*  #All jpgs except those that start with bb

find /etc  -mtime -1 #All files in /etc that have been modified within the last day (24 hour increment from -1 ie yesterday)

find /etc -user root -amin -2 #all files in /etc that have been accessed within the last two minutes

* -atime: when the file was last accessed
* -ctime: when the file’s permissions were last changed
* -mtime: when the file’s data was last modified
* -amin: when (in minutes) the file was last accessed
* -cmin: when (in minutes) the file’s permissions were last changed
* -mmin: when (in minutes) the file’s data was last modified

* -nouser: shows output that’s not associated with an existing userid
* -nogroup: shows output not associated with an existing groupid
* -links n: file has n links
* -newer file: file was modified more recently than file.
* -perm 777: file has mode permissions. 777

March 2, 2006

Welcome

Filed under: Uncategorized — Vivek Khokhar @ 9:40 am

Hi all,

Welcome to my Place.. :)

I will be using this place to store my Notes,articles,Tools which ofcourse are open for public share.

About me:

I am a software guy by profession, and have to deal with multitude of technologies/ tools during my work. Its very important to keep track of what you are doing, and for that I found Blogging a simple and effective medium.
About Wordpress:

I heard about this tool from my friend Sanoop, and I found it really good. Quick setup,Clean interface, Simple But powerful.

to be continued….

Powered by WordPress