Hi, i was having this problem of not being able to launch a .jnlp file , i thought that it might be some problem with the java installed in my system and was almost ready to reinstall it when luckly i realised that Sun java was requiered for it and the default i was using was OpenJDK.
So i corrected it and now it's working perfectly :)
Here's how you can do it to prevent any hasstles.
Type in the terminal:
sudo update-alternatives --config java
This command will present you the java options in your system and the default one . Just follow the instruction and choose Sun Java as the default.
That's it . Enjoy :)
Tuesday, February 1, 2011
Sunday, December 19, 2010
FOSS.IN
This was my first and sadly the last FOSS.IN and as expected, it was full of fun as well as inspiration. Speakers and developers from around the globe had gathered for this event.
On the first day , i got off a little late from my room and reached the spot only to find a long queue for the ID cards. After the formalities, we (Praveen, Prayag and of course me) stepped in the hall.
The first talk was on Wikimedia by Danese Cooper who also said "Wikileaks!= Wikimedia" :)
There were several other talks but i attented a few which included :
Beyond init - Leonart Pottering
Failures of Fedora and what we learned from it -Rahul Sundaram
Day two was even more interesting:
It featured Fedora MiniConf . It included 6 talks. Rahul started it by getting throught the schedule and then Amit talked about virtulisation.This was followed by talk by Arun and then Ankit Patwari and then Shreyank talked about his Four Seasons Of Code.
Later we had a packaging session by Arun Sag.
The last day included another packaging session by Rahul and it was very detailed. Thanks to IRC :)
The event ended with a lively performance by Raghu Dixit , a well known band in Karnatka and the ambience was filled with excitement. Thanks to him , i even learned some Kannad words!!
It was an awesome experience and will be remembered for a long time .
Proud to use Open Source .
On the first day , i got off a little late from my room and reached the spot only to find a long queue for the ID cards. After the formalities, we (Praveen, Prayag and of course me) stepped in the hall.
The first talk was on Wikimedia by Danese Cooper who also said "Wikileaks!= Wikimedia" :)
There were several other talks but i attented a few which included :
Beyond init - Leonart Pottering
Failures of Fedora and what we learned from it -Rahul Sundaram
Day two was even more interesting:
It featured Fedora MiniConf . It included 6 talks. Rahul started it by getting throught the schedule and then Amit talked about virtulisation.This was followed by talk by Arun and then Ankit Patwari and then Shreyank talked about his Four Seasons Of Code.
Later we had a packaging session by Arun Sag.
The last day included another packaging session by Rahul and it was very detailed. Thanks to IRC :)
The event ended with a lively performance by Raghu Dixit , a well known band in Karnatka and the ambience was filled with excitement. Thanks to him , i even learned some Kannad words!!
It was an awesome experience and will be remembered for a long time .
Proud to use Open Source .
Labels:
foss.in,
open source
Monday, November 1, 2010
Convert .jpg to .pdf instantly! and combine multiple pdf to one
Hi all, recently i had to convert some .jpg files to pdf , i knew that it can be done via GIMP by exporting as pdf but going by the number of files , it would have taken a lot of time, so i googled and found this amazing tool called Imagemagick which one can find in the Ubuntu repository.
First you need to install it as:
sudo apt-get install imagemagick
and then convert simply as:
convert foo.jpg foo.pdf
Moreover i'm thinking of writing a bash script which would convert all the files at one go. It will take some time so keep watching.
Here's script i wrote to convert all the .jpg files in the current directory to .pdf:
#!/bin/bash
count=1;
for file in *.JPG;
do
echo "$file coverted to $count.pdf"
convert $file $count.pdf
let count=$count+1
done
Now to combine multiple pdfs to one , one needs to install two small packages:
gs and pdftk
next to combine use the following command:
pdftk *.pdf output combined.pdf
where combined.pdf is the new combined pdf formed.
Hope it was useful.
Proud to use open source :)
First you need to install it as:
sudo apt-get install imagemagick
and then convert simply as:
convert foo.jpg foo.pdf
Here's script i wrote to convert all the .jpg files in the current directory to .pdf:
#!/bin/bash
count=1;
for file in *.JPG;
do
echo "$file coverted to $count.pdf"
convert $file $count.pdf
let count=$count+1
done
Now to combine multiple pdfs to one , one needs to install two small packages:
gs and pdftk
next to combine use the following command:
pdftk *.pdf output combined.pdf
where combined.pdf is the new combined pdf formed.
Hope it was useful.
Proud to use open source :)
Sunday, October 3, 2010
Anyone into Programming?
Hi, it's been really long since the last post.I've been really busy of late due to campus placements and this i think will go on for another semester :(
Neverthless i've been practising at various online judges like SPOJ
and TOPCODER . They are a very good platform for one to build one's programming skills and the problems vary with difficulty.
I came across a blog recently about how one can improve his programming skills and would like to share with you all. Though it ultimately depends on how you go about it but here's just a startup.
Good luck. :)
Neverthless i've been practising at various online judges like SPOJ
and TOPCODER . They are a very good platform for one to build one's programming skills and the problems vary with difficulty.
I came across a blog recently about how one can improve his programming skills and would like to share with you all. Though it ultimately depends on how you go about it but here's just a startup.
Good luck. :)
Monday, August 30, 2010
Java plugin not working ?
hi i came across this problem that while trying to launch any applet or run a .jnpl file it failed to load. I checked my system and found that java was installed but not sun java ,it was icedtea . So i found a solution to it in ubuntu.
Go to System->Administration->Software Resources->Other Resources and enable to canonical repos.
Next just install sun-javaX-plugin. (where X is the latest version).
Hope it solves your problem.
Let the source be open :)
Go to System->Administration->Software Resources->Other Resources and enable to canonical repos.
Next just install sun-javaX-plugin. (where X is the latest version).
Hope it solves your problem.
Let the source be open :)
Monday, August 16, 2010
Adding libgraph, an alternative to graphics.h in ubuntu
hi all, recently we were asked to write graphics programmes in C and we were 'suggested' to use Windows as Linux doesn't support the graphics.h library . This really felt awkward and i knew there must be some way out. By some googling, i found that libgraph was the alternative.
Here's how to install it in ubuntu:
1. Install the libgraph tar.gz file from here.
2. Next you need to install some dependencies , i.e packages:
libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev (For fedora it's SDL-image and SDL-imagedev and the rest two are same)
3. After that you need to extract the downloaded tar and cd to it.
4. Next perform these:
(i). ./configure
(ii) make
(iii) make install
5. Next you need to copy all the libgraph shared files from /usr/local/lib to /usr/lib ,i.e
sudo cp /usr/local/lib/libgraph.* /usr/lib
That's it! now you may run any programme using graphics.h library and see the resutls. ;)
Here's a sample programme to draw a rectangle :
Note:For running the programme you must use the lgraph flag with gcc i.e if the programme is test.c then use gcc test.c -lgraph
For more details you may check out : this
Let the source be open :)
Here's how to install it in ubuntu:
1. Install the libgraph tar.gz file from here.
2. Next you need to install some dependencies , i.e packages:
libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev (For fedora it's SDL-image and SDL-imagedev and the rest two are same)
3. After that you need to extract the downloaded tar and cd to it.
4. Next perform these:
(i). ./configure
(ii) make
(iii) make install
5. Next you need to copy all the libgraph shared files from /usr/local/lib to /usr/lib ,i.e
sudo cp /usr/local/lib/libgraph.* /usr/lib
That's it! now you may run any programme using graphics.h library and see the resutls. ;)
Here's a sample programme to draw a rectangle :
#include stdio.h // please put in angle brackets, there was some problem while posting
#include graphics.h // --do--
int main(void)
{
int gd=DETECT, gm=VGAMAX; // gd is the device driver , gm is the graphics mode
initgraph(&gd,&gm,NULL); // to initialize the graph
moveto(0, 0);
rectangle(50,50,500,200);
while (!kbhit());
closegraph();
return 0;
}
Note:For running the programme you must use the lgraph flag with gcc i.e if the programme is test.c then use gcc test.c -lgraph
For more details you may check out : this
Let the source be open :)
Saturday, August 7, 2010
Google fails but makes merry!
Here's something interesting. Google recently closed down Wave and they are celebrating about it. Yes, it's a trend they follow, that when they close any service they enjoy as it reflects some more work and more innovation is required by them . Here's the link with full details. Wonder! Let's Celebrate
Subscribe to:
Posts (Atom)