Sunday, May 1, 2011
Skyline movie sucks
Watching the skyline movies was a total wast of time. Thank god it was only 1hr 30min :D. Its a movies with lots of special effects and no story behind it. I preffer to watch over the Transformers series or The Independence Day over this one.
Thursday, April 7, 2011
Welcome WindowBuilder
Good news for all Java GUI Developers. Finally the day has come where we can enjoy the WindowBuilder when creating Swing GUIs. This was a commercial product some time back but now its taken by google and its OpenSource. So lets start using it and help the community to make it more feature rich.
More information can be found at Google Code Blog
The plugin can be downloaded from http://code.google.com/javadevtools/wbpro/
Enjoy.
More information can be found at Google Code Blog
The plugin can be downloaded from http://code.google.com/javadevtools/wbpro/
Enjoy.
Saturday, January 8, 2011
Using GIT on windows without starting a new cmd
If you install the portable GIT from http://code.google.com/p/msysgit/ for windows you will need to set the installation path in to your PATH variable in windows. And when you start git from the command line it will open another command line which is opened in your home directory. This was something made me go crazy so i though to find away to run git within the command line i opened like i do with SVN. Well i didn't try the windows installation in msysGit site and try the same thing with the command line because i always prefer zipped installations on windows. I guess that's some thing you can try :).
So when going through the git-cmd.bat file i found away to get it running as i wanted. Here is what you need to do.
Create the following environment variable with the values :
So when going through the git-cmd.bat file i found away to get it running as i wanted. Here is what you need to do.
Create the following environment variable with the values :
- git_install_root = "[folder where you extracted the zip file]"
- %git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;
Saturday, December 12, 2009
Installing MonoDevelop 2.2 with debug support
First of all the mono which is in fedora12 repository doesn't have a working debugger. So i had to build it my self using the latest monodevelop-2.1.2 source code. Follow the below steps and you will have a working mono develop with debugger support (I am using mono-2.4 which doesn't contain the soft debugger).
- Extract the monodevelop-2.1.2.tar.bz2 and run ./configure script. make sure you install the required libs and their devel packages as well.
- Run make.
- Run make install.
- Extract monodevelop-debugger-mdb-2.1.2.tar.bz2 (Mono Debugger support).
- Set the PKG_CONFIG_PATH to point the directory which contains monodevelop.pc file using the command export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
- Run ./configure script.
- Run make
- Run make install.
Your done :).
Blogged with the Flock Browser
Tuesday, December 8, 2009
How to run flash-plugin version 10 with flock and firefox on Fedora
It seems most of the users have a problem running Flock and Firefox with flash-plug-in version 10. This can be avoided if you install Firefox version which is provided by fedora it self. But for flock you can't do that. So as i found in this forum it seems the following solution works on fedora for custom Firefox and Flock installations.
Delete the following files from the Firefox or Flock installation folder.
Delete the following files from the Firefox or Flock installation folder.
- libfreebl3.chk
- libfreebl3.so
Saturday, June 27, 2009
Compiling Amarok2 on FC9
I am sharing my experience on compiling amarok2 on fc9. As amarok wiki (http://amarok.kde.org/wiki/Compiling:2.0) says you need to have the those dependecies and their devel packages installed in your system. Well installing mysql embedded is bit of a trouble since i couldn't find on fc9 repos. So what i did was i got it installed from fc10 update site.
In addtion you will need the following 2 rpms installed in your system qtscriptbindings-0.1.0-5.fc9.i386.rpm and qtscriptgenerator-0.1.0-5.fc9.i386.rpm. You can download those from the following urls which i found from http://rpm.pbone.net/ (A great rpm search engine).
ftp://ftp.univie.ac.at/systems/linux/fedora/updates/9/i386.newkey/qtscriptbindings-0.1.0-5.fc9.i386.rpm
ftp://ftp.univie.ac.at/systems/linux/fedora/updates/9/i386.newkey/qtscriptgenerator-0.1.0-5.fc9.i386.rpm
After that compile it as described in amarok wiki.
But sad say friends, as i felt it was not worthy of the time i spent on compiling amarok2 :(. Because i didnt like the inherited KDE4 theme looks and the missing equalizer :(. Any way this might help the people who still want to install amarok2 on fc9.
[fc10-updates-newkey]
name=Fedora 10 - i386 - Updates Newkey
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/10/i386.newkey/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f10&arch=i386
enabled=0
gpgcheck=0
name=Fedora 10 - i386 - Updates Newkey
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/10/i386.newkey/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f10&arch=i386
enabled=0
gpgcheck=0
gpgkey=
In addtion you will need the following 2 rpms installed in your system qtscriptbindings-0.1.0-5.fc9.i386.rpm and qtscriptgenerator-0.1.0-5.fc9.i386.rpm. You can download those from the following urls which i found from http://rpm.pbone.net/ (A great rpm search engine).
ftp://ftp.univie.ac.at/systems/linux/fedora/updates/9/i386.newkey/qtscriptbindings-0.1.0-5.fc9.i386.rpm
ftp://ftp.univie.ac.at/systems/linux/fedora/updates/9/i386.newkey/qtscriptgenerator-0.1.0-5.fc9.i386.rpm
After that compile it as described in amarok wiki.
But sad say friends, as i felt it was not worthy of the time i spent on compiling amarok2 :(. Because i didnt like the inherited KDE4 theme looks and the missing equalizer :(. Any way this might help the people who still want to install amarok2 on fc9.
Sunday, March 8, 2009
Start your HSDPA connection when linux starts.
Well in my previous post i showed you how to use a HSDPA modem in linux. But that ejecting and running wvdial was some what a trouble for me. I wanted my internet connection to be ready when i login to my system. So i wrote a startup script and a helper script to handling switching the device to modem mode and dial using wvdial. Feel free to use the following scripts at your own risk.
-------------------Contents of /bin/3gwvdial-------------------
#!/bin/bash
if [ -f /etc/3gwvdial.conf ]; then
if [ -a /dev/ttyUSB0 ]; then
echo "Modem found"
else
echo "Modem not found, switching to modem mode."
xargs eject < /etc/3gwvdial.conf
sleep 10
fi
wvdial -C /etc/wvdial.conf &>/dev/null &
echo "Connected."
else
echo "/etc/3gwvdial.conf file not found."
exit -1
fi
----------------------------------------------------------------
In the above script, you have to mention the device file of your HSDPA modem in
/etc/3gwvdial.conf file as follows
-----------------Contents of /etc/3gwvdial.conf---------------
/dev/sr3
--------------------------------------------------------------
After that make sure you give executable permission to your script. Plug your HSDPA modem (no need to eject for the first time), run the script as the super user. If nothing goes wrong you will be connected to internet. So now its time for the startup script.
-----------------Contents of /etc/init.d/hsdpa---------------
#!/bin/bash
#
# description: Controls the hsdpa connection using 3gwvdial script.
# processname: hsdpa
# chkconfig: 2345 11 89
# Source function library.
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting hsdpa: "
/bin/3gwvdial &>/dev/null &
success
echo
}
stop() {
echo -n $"Shutting down hsdpa: "
killall wvdial &>/dev/null &
success
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
status)
status wvdial
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
-------------------------------------------------------------
Give executable permission to the above file as well. Run the following command as super user.
/sbin/chkconfig --add hsdpa
Now try to start you newly created service by following command as super user.
/sbin/service hsdpa start
You must have internet by now. If any improvements that you think for the above scripts please drop a comment.
-------------------Contents of /bin/3gwvdial-------------------
#!/bin/bash
if [ -f /etc/3gwvdial.conf ]; then
if [ -a /dev/ttyUSB0 ]; then
echo "Modem found"
else
echo "Modem not found, switching to modem mode."
xargs eject < /etc/3gwvdial.conf
sleep 10
fi
wvdial -C /etc/wvdial.conf &>/dev/null &
echo "Connected."
else
echo "/etc/3gwvdial.conf file not found."
exit -1
fi
----------------------------------------------------------------
In the above script, you have to mention the device file of your HSDPA modem in
/etc/3gwvdial.conf file as follows
-----------------Contents of /etc/3gwvdial.conf---------------
/dev/sr3
--------------------------------------------------------------
After that make sure you give executable permission to your script. Plug your HSDPA modem (no need to eject for the first time), run the script as the super user. If nothing goes wrong you will be connected to internet. So now its time for the startup script.
-----------------Contents of /etc/init.d/hsdpa---------------
#!/bin/bash
#
# description: Controls the hsdpa connection using 3gwvdial script.
# processname: hsdpa
# chkconfig: 2345 11 89
# Source function library.
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting hsdpa: "
/bin/3gwvdial &>/dev/null &
success
echo
}
stop() {
echo -n $"Shutting down hsdpa: "
killall wvdial &>/dev/null &
success
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
status)
status wvdial
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
-------------------------------------------------------------
Give executable permission to the above file as well. Run the following command as super user.
/sbin/chkconfig --add hsdpa
Now try to start you newly created service by following command as super user.
/sbin/service hsdpa start
You must have internet by now. If any improvements that you think for the above scripts please drop a comment.
Subscribe to:
Posts (Atom)