Author's posts
Aug 09
How to Install Firefox5 on ubuntu
This quick guide is made for home user who are not familiar with official installation of firefox5. Open terminal and run the following commands sudo add-apt-repository ppa:mozillateam/firefox-stable This will install the repository of firefox5 sudo apt-get update This will update your package manager with the new firefox5 sudo apt-get install firefox Tadaaaa….. now close your …
Permanent link to this article: https://blog.openshell.in/2011/08/how-to-install-firefox5-on-ubuntu/
Aug 05
How to destroy a Confidential File completely in linux (Shred)
Some times you may worry if you accidentally delete a file. then after a Google you would be satisfied with the tools like getdataback, recovermyfile, foremost etc. Consider a situation that you have borrowed a pendrive from your friend or someone else and you copied some important or confidential files from your office and moved it to your PC or notebook …
Permanent link to this article: https://blog.openshell.in/2011/08/how-to-destroy-a-file-completely-in-linux-shred/
Jul 28
Scaling Image Using Java
This blog explains how to scale up or down an image using Java Advanced Image (JAI) API.
Permanent link to this article: https://blog.openshell.in/2011/07/scaling-image-using-java/
Jul 26
How to read XML document using JSTL
JSTL allows the JSP developers to use simple logic and iterative code in the form of tags rather than typical Java code in JSP. In this article, you will know about how to parse XML document using JSTL XML tags.
Permanent link to this article: https://blog.openshell.in/2011/07/how-to-read-xml-document-using-jstl/
Jul 24
Read and Write an XML File using PHP
How to read and write xml document with php’s DOMDocument. The DOM extension allows you to operate on XML documents through the DOM API with PHP 5. For better understanding, I have written comment for almost every line of code. XML Code: file name – employee.xml [xml] <?xml version="1.0"?> <employees> <employee id="1" name="Albert"><age>34</age><![CDATA[ Employee details …
Permanent link to this article: https://blog.openshell.in/2011/07/read-and-write-an-xml-file-using-php/
Jul 22
Display first sentence with PHP
To display the first sentence of the paragraph with PHP. Use this code Code [php] function first_sentence($content) { $pos = strpos($content, ‘.’); if($pos === false) { return $content; } else { return substr($content, 0, $pos+1); } } [/php] Invoke the function like [php] echo first_sentence($content); [/php]
Permanent link to this article: https://blog.openshell.in/2011/07/display-first-sentence-with-php/
Jul 22
uninitialized constant Rake::DSL Ruby Windows Solution
rake aborted! uninitialized constant Rake::DSL C:/Ruby192/lib/ruby/1.9.1/rake.rb:2482:in `const_missing’ C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.1/lib/rake/tasklib.rb:8:in `’ Now, the first step I took towards solving this problem is to issue “bundle update rake” command to update my rake. This will update rake to the latest version. An example log for this update is provided below; bundle update rake Fetching source index for http://rubygems.org/ …
Permanent link to this article: https://blog.openshell.in/2011/07/uninitialized-constant-rakedsl-ruby-windows-solution/
Jul 21
Window.open Not Working In IE
If you use window.open to open custom windows with JavaScript, you might encounter problems in Internet Explorer. Even though you can open new windows in other browsers, it doesn’t work in IE. The reason to this is it depends on how you name your JavaScript windows. IE doesn’t allow space here. window.open takes three parameters …
Permanent link to this article: https://blog.openshell.in/2011/07/window-open-not-working-in-ie/
Jun 18
Loading Javascript dynamically using jquery
If you are creating a web application, then your web pages may have all possibilities of being overwhelmed with a number of JavaScript files. Including large number of JavaScript files may slow down your web page. So its a good idea to load JavaScript dynamically to your web page, i.e load them only when these …
Permanent link to this article: https://blog.openshell.in/2011/06/loading-javascript-dynamically-using-jquery/
Jun 13
Create an RSS feed with PHP
Having an RSS feed on your website is a great way of sharing your content with the rest of the Internet. It’s not a new technology and it’s probably something that you use on a daily basis. If you have a blog or use any form of CMS, that software will most likely handle the …
Permanent link to this article: https://blog.openshell.in/2011/06/create-an-rss-feed-with-php/