Saturday, December 10, 2011

Free alternatives for paid(propitiatory) software

Today software piracy has become a major topic in software industry. If we look for a propitiatory software we can find many cracked copies of the latest versions of propitiatory software from the internet. But if we use those things ultimately we steel someones hard work. Also by installing cracks, keygen,etc we are exposed to various security threats. Also it is against the law.
Then what is the solution. today we have free alternatives for most of these paid software. Some of them are open source others closed source but free.
If we use Linux based operating systems like Ubuntu, Fedora, Etc. almost all the software are free. But still the majority of PC users use Windows. So I'm going to discuss about some of the free software which can be used on Windows.

1.Antivirus Software

2.Media Players
You can play any video using Windows Media Player by installing K-Lite codec pack. Other standalone players are VLC Media PlayerKM Player,  GOM Player, Etc.

3.Office Suite.
Openoffice and Libre Office are the leading free office suites in the market. Though this is a free product this can be used as a good alternative to Microsoft office.

4.Maintaining your PC
As maintaining a vehicle a PC must be maintained to get the maximum performance. If we use a software like Advanced System Care we don't have to worry about maintaining the PC. The software will do it for you.

5.Managing and editing your Images
Google's Picasa is the best choice for managing your images and simple image editing tasks.

6.Web Browsing
Mozilla Firefox and Google Chrome are the world's best browsers. You can try both and choose the best one by yourself!

7.CD/DVD/Blue-Ray Burning
You can use Burnaware Studio for this.

8. Audio Editing
Audacity is the best product for this.

9.Video Editing
Windows movie maker is the best product for this. This is included in Windows Live Essentails software package which is a free product.

10.E-mail client
Mozilla Thunderbird is the most widely used free e-mail client.

11.Zip Utility
7 zip is a free utility to create and open archive files like zip and rar.

12.Backup
You can use Dropbox or Microsoft Skydrive to backup your important files in the cloud. Then you will be able to access them from anywhere.

Hope this will be useful.
Note-There are many other free software which are not mentioned here. Just do a Google search to find them.

Saturday, October 15, 2011

Windows Mobile Mango. (Will it be delicious???)

Surely Microsoft rules the PC operating system market. There market share is more that 70%. But what about mobile operating systems? Surely Microsoft had to work hard because there are many competitors like Android, Apple iOS, Blackberry, etc and their market share is way over than Microsoft's mobile platform Windows Phone.
Their previous mobile platform Windows Phone 7 did not do notable difference in smart phone market. But now they have come up with a bang with their latest version Windows Phone 7.5 Mango.



Mango, officially Windows Phone 7.5, adds some 500 improvements to the Windows Phone 7 platform, according to the company. Windows introduced their revolutionary tile interface with Windows mobile 7 platform. Now they have gone a further step. They have made the Tiles extra dynamic which is called Live Tiles. As an example a live eBay tile can display how long there is left on an auction you are bidding for. This is a great example for a good user centered design.

With today's fast paced life styles multitasking is a crucial thing even in a phone. Windows phone 7.5 comes with improved multitasking capabilities which makes you life easy. As an example users simply press and hold down the back key to bring up a webOS-like view of the five most recent apps opened. Then they can then scroll through these apps and tap one to switch back to it.

Windows phone 7.5 comes with HTML5 support. So the users are able to get the maximum use of Web. Also Bing search comes with new features like Music search, and Vision search, which uses your phone's camera to look up product info. Also it includes apps like Local scout, Mall map and Driving directions which provides improved map facilities.


When we are talking about a phone its all about connectivity. Windows mobile introduces whole set of new features which brings connectivity to a new level. So it is called as a People-centric design. Let's see some of the new features which makes your phone People-Centric. In Windows Phone 7.5 threads has introduced to email and messaging.  The whole conversation stays in one thread and you can go through with easily with your finger tip.

Also it let you to group the people you are communicating with. E.g.- Family,Friends,Etc.So you can  send quick texts, emails, or IMs to the whole Group. Also by pinning a group you can see their updates instantly. Also they have linked Twitter and Linked in social networks to their mobile platform with this update.

Another rocking feature in Windows mobile mango is it gives more voice based control capabilities. Now you can send a text message with your hand and eyes free. Also your phone can read texts to you. 
There are thousands of applications which available for this plat form. you can browse and select the apps you wants by just visiting the Windows market place. Ass a example you can do your office stuff on the go with Microsoft Office App for Windows mobile.

Not only users developers like me will get benefited with this new platform.  Developers can built more richer apps with new features with this new platform. Also they can sell their apps in the windows Marketplace.

Here we only discussed about few major improvements in Windows phone platform when it comes from Windows phone 7 to Windows phone 7.5 Mango. But there are hundreds of other features too. With these changes Microsoft will be able to do a huge difference in Smart phone in the coming time. So why not give a try????????


Tuesday, October 11, 2011

Using iReport plugin for Jasper Reports in Netbeans

Jasper reports is a very useful frame work for genarating reports, saving them as PDF,etc. iReport make it more easy because we can design reports using graphical methods from it. Also it is available as a plugin for NetBeans. You can download iReport Netbeans plugin from here. there are for files in the Zip folder. You can install them by at one by selecting all of them when you select the plugin to install from Netbeans (If you don't know how to install a plugin for Netbeans search for a tutorial).
To use Jasper Reports in your application you have to add some libraries. But the problem is these libraries are heavily coupled with each other. So downloading each one is a very difficult task because there are problems like versions don't match, some libraries are outdated, etc.etc.
There is a easy method. After installing the plugin Netbeans will automatically add the Jasper Reports library to its library collection. But it is missing one important library. So you have to download the jar file named jasperreports-4.1.2.jar (version can be changed) from here.
Then you have to edit the existing Netbeans jasper reports Library. To do that select Tools--->Libraries from the Netbeans IDE. Then select JasperReports from left side and select add jar/Folder. Then select the downloaded jar file. Then click ok. Now you are ready to go. 
This website gives a good step by step tutorial on using iReports. But this use the ireport designer instead of the Netbeans plugin. In our case to add a jasper report to our Project right click on the corresponding package and select new>other>empty report. to add the dependencies right click on the libraries and select library--->jasperReports. 
I tried this on Netbeans 6.9. So there can be small differences. But this will give you a basic understanding.



Wednesday, October 5, 2011

Customizing lonex free joomla templates

There are many web sites which provide free Joomla templates. But many of these themes are ugly when compared to commercial themes. But I found this site which provides impressive free templates http://www.lonex.com/content-management-system/joomla/templates/ .

Most of the free joomla templates available on the web contains annoying links on the home page which are linked to their developers. But these can be removed with your HTML and CSS knowledge and using a tool like Firebug.

But the template which I downloaded from above site had none of above problems when I was developing the site in localhost. But the trtrouble started when I hosted it in the server. It shows a link says free blog templated which links to their site.

I tried to located the html code which contains this message using firebug. But I cannot found it in template files. So I decided that this is created by a php script.

After sme inspection i found the following code in templates index.php file.

<div id="maincol<?php echo (2-$leftbar-$rightbar); ?>">
   <div id="pathway">
    <jdoc:include type="modules" name="breadcrumb" />
   </div>
   <div id="maincol_body">
    <jdoc:include type="component" />
    <jdoc:include type="modules" name="footer" style="xhtml"/>
   <?php if(!@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13($JPan[0]).DS.str_rot13($JPan[1]))) : ?>
   <?php endif; ?>
   </div>
  </div>

After commenting out the following php script the message disappeared.

<?php // if(!@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13($JPan[0]).DS.str_rot13($JPan[1]))) : ?>
   <?php //endif; ?>


Friday, January 21, 2011

How to transfer a JPEG file from client to server using sockets JAVA

I searched on Google about this topic few days back. But I could not found a complete solution.Finally I came up with a solution. These methods from my client and server class shows it.


Client Part

 public void uploadFile(File f){
         try {
                socket=new Socket("127.0.0.1", 4000);
                BufferedInputStream in=new BufferedInputStream(new FileInputStream(f));
                byte[] buffer = new byte[(int)f.length()];
                in.read(buffer, 0, buffer.length);
                OutputStream os = socket.getOutputStream();
                os.write(buffer, 0, buffer.length);
                os.flush();
                socket.close();
            } catch (Exception e) {
                e.printStackTrace();
            }
     }

Server Part

private void stroreFile() {
        try {
            byte[] mybytearray = new byte[1024];
            InputStream is = socket.getInputStream();
            FileOutputStream fos = new FileOutputStream("recieved.jpg");
            BufferedOutputStream bos = new BufferedOutputStream(fos);
            int bytesRead =0;
            while(bytesRead!=-1){
                bytesRead = is.read(mybytearray, 0, mybytearray.length);
                System.out.println(bytesRead);
                if(bytesRead!=-1)
                    bos.write(mybytearray, 0, bytesRead);
            }
            bos.close();
            fos.close();
            socket.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

This works for gif and png files on the client side too. But those are saved at the server as  JPEG images. But that is not recommended.

Tuesday, January 4, 2011

How To show a splash screen in a GUI based JAVA program @ startup

Splash screens are essential things in todyas GUI softwares. We can use them to make our software attractive and show our details. This is how it's done.
First Create your splash screen as a image(eg-gif)
Then go to your netbeans or eclipse project folder of your GUI program, using Windows explorer or a similar software.
Find the file named manifest.mf and open it using a text editing software like notepad or gedit.
Add the following line to the end and save.
SplashScreen-Image: filename.gif
Now copy and paste the splash screen (filename.gif) to the folder called src
Then build your project using netbeans or eclipse and create a jar file.
When you open your software by double clicking the jar file splash screen can be seen.
This worked on me in netbeans.