Wednesday, October 28, 2009

How to Acquire image by scanner in java

You may required to use a image scanner with your java application. But JDK is not support for that kind of functionality. So Third party library is needed.
TWAIN is a very famous library. But it is a written in C.
Don't warry I found a java wrapper for TWAIN dll.



Source code : http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/index.php

Library:http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/uk.co.mmscomputing.device.twain.jar

Sample Code: http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/TwainExample.java

Ok. Now you continue with your development.

Bye!

Thursday, October 22, 2009

Remote Compiling and Debuging IDE - C++

Most of the times we need to compile our C++ Applications in a UNIX or Solaris Environments. If our Desktop Pc is operated on Windows Platform then we need to use a terminal application (Like PuTTy) and do the rest in command line. Working with Command line is not so convenient. I found a god solution, That is BVRDE.
BVRDE is an Integrated Development Environment (IDE) for C and C++. It is designed to make cross-platform development easy. Its features include project management, application wizards, an integrated interactive debugger, and a powerful source editor with source browsing and syntax highlighting.

The goal of this tool is to allow a developer to compile and debug applications entirely on a remote computer, while editing and issuing compile and debug commands through a local interface. BVRDE supports a variety of network protocols to allow connectivity with various remote systems. This includes FTP and secure & encrypted protocols such as SSH and SFTP.



More Screen Shots

Download

Tuesday, September 8, 2009

How to download a Streaming Video ?

           Most of web sites broadcast multimedia streams. If you can download that stream then you can watch it when you are in offline.
 "SDP Multimedia" is a good tools for that purpose.

What can SDP Downloader actually do?
The current free version of SDP can download the following protocols, remember this is for Windows Media Streaming only.
HTTP v1.0 streaming protocol - sometimes referred to as MMSH.
HTTP progressive (simple http download)
MMS, MMST and MMSU over both TCP and UDP transport protocols.
Preview the stream while downloading - using your favorite existing media player.
Download Live and Pre recorded videos and music straight to your hard drive. Like a video recorder.
Note that the free version of SDP will still be maintained as best as possible - updates should still appear.
Types of URL to look for usually start with "MMS://, MMST://, or HTTP://" and end with something like ".asf, .wmv or .wma" etc..


<br/><a href="http://i25.tinypic.com/a4d1g.jpg" target="_blank">View Raw Image</a>

>>>> Download  <<<<
--
_____  http://janaka077.blogspot.com  ____

Sunday, September 6, 2009

Unlock the Huawei E220 HSDPA modem

Huawei e220 or Vodafone e220 is the HSDPA modem we usually get from Dialog Telecom or Mobitel GSM (probably from Airtel) when we purchase a mobile broadband connection. But usually it's operator locked, so we can't switch between networks when the current ISP starts treating us like dust. Here I'm gonna explain how I did that and I'll try to be as simple as I can...

Disclaimer: I’m not responsible, nor will be held liable, for anything you do with the information I provide in this tutorial. Use it at your own risk.

Ok, since we are done with the traditional "Disclaimer" Lets see what you have to do.

First you'll have to download the following tools.
e220 CardLock UnLocker
e220 Updater version 11.117.09.04.00
QC Mobile Analysis Tool
Hex editor

Basically, Unlocking the e220 is simple as running the E220 CardLock Unlock tool and entering the unlock code and pressing the "Ok" button. But that's when you "know" the unlock code.

So how do we find the unlock code for our modem? that's where the other tools come in handy.

Plug your modem to the computer and run the E220 Updater. Wait till it detects your modem and then press the "Cancel" button. yes! Cancel it! This is just to make it easier for the "real tool" to identify the modem.

Now open the QC BQS Analyzer and click on Hardware forensics menu, select Use Com/USB Port

Now the "QC Com Diag" window should be open. Most of the time your modem and com port is automatically selected on the Serial Com port drop down list. If not you'll have to select it manually. And then click on the "Send Cmd" button and wait till the message "Successfully sent command" appears on the bottom right.

Now Select " Read EFS" from the Diag Functions drop down menu and Click the "Lets go" button. When it asks, enter the file name e220.bin and save it. A message saying "Successfully read EFS" should appear.

Now its time to do some hex reading :) Open the e220.bin file from your Hex Editor. And search for the ASCII string Sd, (including the comma) or Search for the for the Hex string 53 64 2c
After few random characters you'll see a clean 8 digit code. Believe me, it's easily recognizable and guess what! thats our Unlock code :D

Once you've found the unlock key all you have to do is enter it on the CardLock Unlock utility and click "OK" And your modem is... Unlocked!!! :D

Hope this will be helpful. I'd absolutely love to know your views on this. Good luck with unlocking your modems :)

Tuesday, August 25, 2009

Run time Configurability with Java (JDK7)

In JDK - 7 , Scripting support is provided. I thing it is very interesting and Impotent Feature. JavaScript is the language that you have to use for Scripting

Here is the features that point out by the SUN.
Some useful characteristics of scripting languages are:
  • Convenience: Most scripting languages are dynamically typed. You can usually create new variables without declaring the variable type, and you can reuse variables to store objects of different types. Also, scripting languages tend to perform many type conversions automatically, for example, converting the number 10 to the text "10" as necessary.
  • Developing rapid prototypes: You can avoid the edit-compile-run cycle and just use edit-run!
  • Application extension/customization: You can "externalize" parts of your application - like configuration scripts, business logic/rules and math expressions for financial applications.
  • "Command line" shells for applications -for debugging, runtime/deploy time configuration etc. Most applications have a web-based GUI configuaration tool these days. But sysadmins/deployers frequently prefer command line tools. Instead of inventing ad-hoc scripting language for that purpose, a "standard" scripting language can be used.
Here is a Screen Shots of a Sample .




Tuesday, July 28, 2009

Easy source code backup - bash script

Most of developers (specially Linux peoples) are used to backup their code by making tar-balls (making .tar files). That is the most preliminary source code version (CVS) system. But you have to rename those tar-balls by the date and time for more clarity. Here is a bash script for that purpose.

How to use:
  • First create a folder for keep your backups
    >mkdir /home/backups
  • Create a folder for your bash script and copy the bash script file to that folder
    >mkdir / home/scripts
  • Add that folder to environment variable.
    Ex:
    > PATH=$PATH:/home/scripts
  • Then goto the source folder.
    >cd /home/project/project_one/
  • Run the script without any comment
    >backup
  • Or you can add a comment for your backup
    >backup “This is my initial backup”

This will create two files. Those are “project_one.txt” and “project_one-20090708-1120.gz”

The text file keep your comments regarding your backups.

Download Script

Thursday, July 9, 2009

Make the Life easy with Google Calender

http://www.gadgetizer.com/wp-content/uploads/2007/05/google-calendar_logo.JPGOrganizing your schedule shouldn't be a burden. With Google Calendar, it's easy to keep track of life's important events all in one place.

1. Share your schedule

Let your co-workers, family, and friends see your calendar, and view schedules that others have shared with you. When you know when everyone is free or busy, scheduling is a snap.


2. Get your calendar on the go

With two-way syncing to your mobile phone's built-in calendar or a mobile version of Google Calendar that's made for the small screen, you can access your calendar while you're away from your desk.


3. Never forget another event again

Customizable reminders help you stay on schedule. You can choose to be notified by email or get a text message sent right to your mobile phone.


4. Send invitations and track RSVPs

Invite other people to events on your calendar. Guests can RSVP to your events by email or via Google Calendar.

5. Sync with your desktop applications

Access your calendar however and whenever you want by syncing events with Microsoft Outlook, Apple iCal and Mozilla Sunbird.

6. Work offline

Know where you're supposed to be even when you don't have internet access. With offline access, you can view a read-only version of your calendar no matter where you are.

My Google Calender....