Monday, December 15, 2008

99 Run Commands - Win XP

I found very nice article to know about windows XP RUN commands.
There are 99 command .Find the below commands.

Accessibility Controls
access.cpl

Add Hardware Wizard
hdwwiz.cpl

Add/Remove Programs
appwiz.cpl

Administrative Tools
control admintools

Automatic Updates
wuaucpl.cpl

Bluetooth Transfer Wizard
fsquirt

Calculator
calc

Certificate Manager
certmgr.msc

Character Map
charmap

Check Disk Utility
chkdsk

Clipboard Viewer
clipbrd

Command Prompt
cmd

Component Services
dcomcnfg

Computer Management
compmgmt.msc

Date and Time Properties
timedate.cpl

DDE Shares
ddeshare

Device Manager
devmgmt.msc

Direct X Control Panel (If Installed)*
directx.cpl

Direct X Troubleshooter
dxdiag

Disk Cleanup Utility
cleanmgr

Disk Defragment
dfrg.msc

Disk Management
diskmgmt.msc

Disk Partition Manager
diskpart

Display Properties
control desktop

Display Properties
desk.cpl

Display Properties (w/Appearance Tab Preselected)
control color

Dr. Watson System Troubleshooting Utility
drwtsn32

Driver Verifier Utility
verifier

Event Viewer
eventvwr.msc

File Signature Verification Tool
sigverif

Findfast
findfast.cpl

Folders Properties
control folders

Fonts
control fonts

Fonts Folder
fonts

Free Cell Card Game
freecell

Game Controllers
joy.cpl

Group Policy Editor (XP Prof)
gpedit.msc

Hearts Card Game
mshearts

Iexpress Wizard
iexpress

Indexing Service
ciadv.msc

Internet Properties
inetcpl.cpl

IP Configuration (Display Connection Configuration)
ipconfig /all

IP Configuration (Display DNS Cache Contents)
ipconfig /displaydns

IP Configuration (Delete DNS Cache Contents)
ipconfig /flushdns

IP Configuration (Release All Connections)
ipconfig /release

IP Configuration (Renew All Connections)
ipconfig /renew

IP Configuration (Refreshes DHCP & Re-Registers DNS)
ipconfig /registerdns

IP Configuration (Display DHCP Class ID)
ipconfig /showclassid

IP Configuration (Modifies DHCP Class ID)
ipconfig /setclassid

Java Control Panel (If Installed)
jpicpl32.cpl

Java Control Panel (If Installed)
javaws

Keyboard Properties
control keyboard

Local Security Settings
secpol.msc

Local Users and Groups
lusrmgr.msc

Logs You Out Of Windows
logoff

Microsoft Chat
winchat

Minesweeper Game
winmine

Mouse Properties
control mouse

Mouse Properties
main.cpl

Network Connections
control netconnections

Network Connections
ncpa.cpl

Network Setup Wizard
netsetup.cpl

Notepad
notepad

Nview Desktop Manager (If Installed)
nvtuicpl.cpl

Object Packager
packager

ODBC Data Source Administrator
odbccp32.cpl

On Screen Keyboard
osk

Opens AC3 Filter (If Installed)
ac3filter.cpl

Password Properties
password.cpl

Performance Monitor
perfmon.msc

Performance Monitor
perfmon

Phone and Modem Options
telephon.cpl

Power Configuration
powercfg.cpl

Printers and Faxes
control printers

Printers Folder
printers

Private Character Editor
eudcedit

Quicktime (If Installed)
QuickTime.cpl

Regional Settings
intl.cpl

Registry Editor
regedit

Registry Editor
regedit32

Remote Desktop
mstsc

Removable Storage
ntmsmgr.msc

Removable Storage Operator Requests
ntmsoprq.msc

Resultant Set of Policy (XP Prof)
rsop.msc

Scanners and Cameras
sticpl.cpl

Scheduled Tasks
control schedtasks

Security Center
wscui.cpl

Services
services.msc

Shared Folders
fsmgmt.msc

Shuts Down Windows
shutdown

Sounds and Audio
mmsys.cpl

Spider Solitare Card Game
spider

SQL Client Configuration
cliconfg

System Configuration Editor
sysedit

System Configuration Utility
msconfig

System File Checker Utility (Scan Immediately)
sfc /scannow

System File Checker Utility (Scan Once At Next Boot)
sfc /scanonce

System File Checker Utility (Scan On Every Boot)
sfc /scanboot

System File Checker Utility (Return to Default Setting)
sfc /revert

System File Checker Utility (Purge File Cache)
sfc /purgecache

System File Checker Utility (Set Cache Size to size x)
sfc /cachesize=x

System Properties
sysdm.cpl

Task Manager
taskmgr

Telnet Client
telnet

User Account Management
nusrmgr.cpl

Utility Manager
utilman

Windows Firewall
firewall.cpl

Windows Magnifier
magnify

Windows Management Infrastructure
wmimgmt.msc

Windows System Security Tool
syskey

Windows Update Launches
wupdmgr

Windows XP Tour Wizard
tourstart

Wordpad
write

HTML Color Chart

Hi All,
There is an interesting web page which will give complete information about HTML color codes.
Most of the Web Designers use to struggle for the color code, when they designing a web page or what ever. The following site would be the solution for then. They can find here all color value and color. Please look into the following URL.
http://immigration-usa.com/html_colors.html

Sunday, December 7, 2008

JPEG Header Informations

Recently, I just started to work with J2ME based application. There i got a requirement like, i have to transfer some device based information as a MMS to other mobile device. Of-course, I have to send it as a JPEG . While i do search in net, i got a good articel about JPEG header.
http://www.obrador.com/essentialjpeg/headerinfo.htm

Before the image data is ever loaded when a JPEG image is selected for viewing the markers must be read. In a JPEG image, the very first marker is the SOI, or Start Of Image, marker. This is the first "hey, I'm a JPEG" declaration by the file. The JPEG standard, as written by the Joint Picture Expert's Group, specified the JPEG interchange format. This format had several shortcomings for which the JFIF (JPEG File Interchange Format) was an attempted remedy. The JFIF is the format used by almost all JPEG file readers/writers. It tells the image readers, "Hey, I'm a JPEG that almost anyone can understand."

Most markers will have additional information following them. When this is the case, the marker and its associated information is referred to as a "header." In a header the marker is immediately followed by two bytes that indicate the length of the information, in bytes, that the header contains. The two bytes that indicate the length are always included in that count.

A marker is prefixed by FF (hexadecimal). The marker/header information that follows does not specify all known markers, just the essential ones for baseline JPEG.

A component is a specific color channel in an image. For instance, an RGB image contains three components; Red, Green, and Blue.


Start of Image (SOI) marker -- two bytes (FFD8)

JFIF marker (FFE0)

  • length -- two bytes
  • identifier -- five bytes: 4A, 46, 49, 46, 00 (the ASCII code equivalent of a zero terminated "JFIF" string)
  • version -- two bytes: often 01, 02
    • the most significant byte is used for major revisions
    • the least significant byte for minor revisions
  • units -- one byte: Units for the X and Y densities
    • 0 => no units, X and Y specify the pixel aspect ratio
    • 1 => X and Y are dots per inch
    • 2 => X and Y are dots per cm
  • Xdensity -- two bytes
  • Ydensity -- two bytes
  • Xthumbnail -- one byte: 0 = no thumbnail
  • Ythumbnail -- one byte: 0 = no thumbnail
  • (RGB)n -- 3n bytes: packed (24-bit) RGB values for the thumbnail pixels, n = Xthumbnail * Ythumbnail

Define Quantization table marker (FFDB)

  • the first two bytes, the length, after the marker indicate the number of bytes, including the two length bytes, that this header contains
  • until the length is exhausted (loads two quantization tables for baseline JPEG)
    • the precision and the quantization table index -- one byte: precision is specified by the higher four bits and index is specified by the lower four bits
      • precision in this case is either 0 or 1 and indicates the precision of the quantized values; 8-bit (baseline) for 0 and up to 16-bit for 1
    • the quantization values -- 64 bytes
      • the quantization tables are stored in zigzag format

Define Huffman table marker (FFC4)

  • the first two bytes, the length, after the marker indicate the number of bytes, including the two length bytes, that this header contains
  • until length is exhausted (usually four Huffman tables)
    • index -- one byte: if >15 (i.e. 0x10 or more) then an AC table, otherwise a DC table
    • bits -- 16 bytes
    • Huffman values -- # of bytes = the sum of the previous 16 bytes

Start of frame marker (FFC0)

  • the first two bytes, the length, after the marker indicate the number of bytes, including the two length bytes, that this header contains
  • P -- one byte: sample precision in bits (usually 8, for baseline JPEG)
  • Y -- two bytes
  • X -- two bytes
  • Nf -- one byte: the number of components in the image
    • 3 for color baseline JPEG images
    • 1 for grayscale baseline JPEG images
  • Nf times:
    • Component ID -- one byte
    • H and V sampling factors -- one byte: H is first four bits and V is second four bits
    • Quantization table number-- one byte

The H and V sampling factors dictate the final size of the component they are associated with. For instance, the color space defaults to YCbCr and the H and V sampling factors for each component, Y, Cb, and Cr, default to 2, 1, and 1, respectively (2 for both H and V of the Y component, etc.) in the Jpeg-6a library by the Independent Jpeg Group. While this does mean that the Y component will be twice the size of the other two components--giving it a higher resolution, the lower resolution components are quartered in size during compression in order to achieve this difference. Thus, the Cb and Cr components must be quadrupled in size during decompression.

Start of Scan marker (FFDA)

  • the first two bytes, the length, after the marker indicate the number of bytes, including the two length bytes, that this header contains
  • Number of components, n -- one byte: the number of components in this scan
  • n times:
    • Component ID -- one byte
    • DC and AC table numbers -- one byte: DC # is first four bits and AC # is last four bits
  • Ss -- one byte
  • Se -- one byte
  • Ah and Al -- one byte

Comment marker (FFFE)

  • the first two bytes, the length, after the marker indicate the number of bytes, including the two length bytes, that this header contains
  • whatever the user wants

End of Image (EOI) marker (FFD9)

  • the very last marker

Thursday, October 30, 2008

WOX - Web Objects in XML

WOX is an XML serializer for Java and C# objects. In other words, WOX is a library (woxSerializer.jar for Java, and woxSerializer.dll for C#) to serialize Java and C# objects to XML and back again. One of its main features is the generation of standard XML, which is language independant. This means that if we serialize a Java object to XML, we could take the generated XML to reconstruct the object back to C#; and viceversa.

WOX provides a simple and robust way of serializing objects to XML. It is easy to use, and you do not have to modify your source files with any special declarations. The source code is provided, and you are free to adapt it for your own purposes.

Features

Some of the WOX main features are listed below.

  • Easy to use. The Easy class provides serialization and de-serialization methods.
  • Simple XML. The XML generated is simple, easy to understand, and language independent.
  • Requires no class modifications. Classes do not require to have default constructors, getters or setters.
  • Field visibility. Private fields are serialized just as any other field. WOX serializes fields regardless their visibility.
  • Interoperability Java and C#. WOX can serialize a Java object to XML, and reconstruct the XML back to a C# object; and viceversa.
  • Standard XML object representation. This could potentially allow to have WOX serializers in different object-oriented programming languages.
  • WOX data types. The WOX mapping table specifies how primitive data types are mapped to WOX data types.
  • Robust to class changes. Defaults will be used for newly added fields.
  • Arrays. Handles arrays and multi-dimensional arrays of primitives and Objects.
  • Base-64. Byte arrays are base-64 encoded for efficiency.
  • Collection classes. Lists and Maps are provided as WOX data types. (ArrayList and HashMap in Java; ArrayList and Hashtable in C#).
  • Object references. Handles duplicate and circular object references with id/idref.
  • Class and Type. Objects of these classes are saved by their String name.
  • Small footprint. The woxSerializer.jar file (which contains only .class files) is only 25k.
Please look at the following link to find more example and documents.
http://woxserializer.sourceforge.net/index.html

Tuesday, October 28, 2008

Hiding and Un-hiding HTML table rows with out using DIV tag

Hiding and Un-hiding table rows with out using DIV

tag

Usually people will use DIV tag to hide and un-hide the control from the html page dynamically. But we can also use pure Java script to hide the controls.

Here I used Java script to hide and un-hide html table rows. I hope this may help some people.

Copy the following content and save it as an html file. Of-course image won't come....;-)

<html>
<SCRIPT type=text/javascript>

function showHideTR(tRow, no, image) {
var tbl,row,img;
if(document.getElementById && document.getElementsByTagName) { //1
tbl = document.getElementById('tblMain');
img = document.getElementById(image);
if(!tbl){
return;
}else{ //2
for (var x = 1; x <= no; x++){ //3
var rowId = tRow+'Child'+ x;
row = tbl.getElementsByTagName('tr')[rowId];
// alert(rowId);
// alert(row);
if(row) {
if(row.style.display != 'none') {
row.style.display = 'none';
if(img){
img.src = "authTable/icon_connect_plus1.gif";
}
} else {
try {
row.style.display = 'table-row';
} catch(e) {
row.style.display = 'block';
}
row.style.display = 'block';
if(img){
img.src = "authTable/icon_collapse_minus1.gif";
}
}
}
}//3end
}//2end
}//1 end
else if(document.all && document.all.tags) {
tbl = document.all.table1;
img = document.getElementById(image);
if(!tbl){
return;
}else{ //2
for (var x = 1; x <= no; x++){ //3
var rowId = tRow+'Child'+ x;
row = tbl.getElementsByTagName('tr')[rowId];
//alert(rowId);
//alert(row);
if(row) {
if(row.style.display != 'none') {
row.style.display = 'none';
if(img){
img.src = "authTable/icon_expand_end.gif";
}
} else {
try {
row.style.display = 'table-row';
} catch(e) {
row.style.display = 'block';
}
row.style.display = 'block';
if(img){
img.src = "authTable/icon_collapse_more.gif";
}
}
}
}//3end
}//2end
}
}
</SCRIPT>
<br/>
<form id="newUserForm" method="post" name="newUserForm">
<table name="tblMain" id="tblMain" width="100%">
<tb>
<tr bgcolor="#feefff">
<th width="11%">Modules</th>
<td align="center" valign="top" colspan=12><b>Roles</b></td> <!-- 4 * number of role) -->
</tr>
<tr bgcolor="#ffggff">
<td rowspan="2"></td>
<td align="center" colspan="4"><b>Admin</b></td> <!-- 12/3=4 here been used 3 may varie. So 3*4. 4 is constant-->
<td align="center" colspan="4"><b>publisher</b></td>
<td align="center" colspan="4"><b>Viewer</b></td>
</tr>
<tr>
<td align="center"><b>Create</b></td>
<td align="center"><b>Update</b></td>
<td align="center"><b>View</b></td>
<td align="center"><b>Delete</b></td>
<td align="center"><b>Create</b></td>
<td align="center"><b>Update</b></td>
<td align="center"><b>View</b></td>
<td align="center"><b>Delete</b></td>
<td align="center"><b>Create</b></td>
<td align="center"><b>Update</b></td>
<td align="center"><b>View</b></td>
<td align="center"><b>Delete</b></td>
</tr>
<!--Dynamic to be done from here -->
<!--Row 1 -->
<tr id='row'+'1'>
<td>
<A onclick="showHideTR('row'+'1', 2, 'row'+'1'+'Img'+'1');"
href=javascript:void(0)><img id='row1Img1' src="authTable/icon_collapse_minus1.gif" alt="+"/><b> Ananth</b></A>
</td>
<td align="center">
<input type="checkbox"></br>
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
</tr>
<!-- ChildRow 1-->
<tr id="row1Child1">
<td align="right">
<img src="authTable/icon_collapse_more.gif" alt="-"/> Data1
</td>
<td align="center">
<input type="checkbox"></br>
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
</tr>
<!-- -->
<!-- ChildRow 2-->
<tr id='row1Child2'>
<td align="right">
<img src="authTable/icon_collapse_end.gif" alt="-"/> Data2
</td>
<td align="center">
<input type="checkbox"></br>
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
<td align="center">
<input type="checkbox">
</td>
</tr>
<!-- -->
<tr><td bgcolor="#feefff" colspan="13">'</td></tr>
</tb>
</table>
</form>
</html>


Wednesday, September 3, 2008

Google Chrome

Hi All,

            2Day I just downloaded Google Chrome. It really wonderful and an amazing web browser which I ever seen before. Usually, I use to work with Mozilla from last few years,  but now i am loving Chrome. It has so many features than other popular browsers. Just see the following list of good things about Chrome..................U will love it.. 

20 things to know about Chrome

1. Google Chrome is built using WebKit, which also powers Apple's Safari and Google's Android.

2. Google Chrome is beta, and currently only available for Windows. Mac and Linux versions are being produced.

3. Google Chrome promises to be more stable - each browser tab will run in its own process so a buggy web page won't take down the entire browser.

4. The tabs will be the key part of the interface - tabs will be located at the top of the window rather than under the address bar.

5. When you open a new tab, you'll see thumbnails of your nine most visited pages and search boxes for the sites you search most on.

6. You'll be able to 'tear off' tabbed windows and move them elsewhere onto the desktop, creating separate windows or adding them to existing windows.

7. When a tab crashes you'll get a sad face icon in the tab - called a 'sad tab'.

8. Each tab will have its own controls and its own URL bar, which Google's developers are calling the 'Omnibox'.

9. The Omnibox isn't just somewhere to type web addresses - it will also suggest pages you've visited before, and popular pages you haven't visited, based on the keywords you type into the box.

10. You'll be able to search your browser history from the Omnibox to return to pages you visited previously but didn't bookmark.

11. Autocomplete will only autocomplete to an address you have manually typed before - Google's example is that typing C and hitting return might take you to cnn.com but never to a previously clicked link such as cnn.com/2008/politics/07/27/campaign.wrap/index.html.

12. Once you've performed a search on sites such as Wikipedia or Google, you'll then be able to search those sites later straight from your address bar by typing the site's name and then pressing the Tab key.

13. Google Chrome has a private browsing mode - if you create what it calls an "incognito window" then pages won't be saved in your history and when you close the window, any related cookies will be deleted.

14. Google Chrome promises to be faster - because each tab runs in a separate process, that process is killed when a tab is closed, and so your PC gets the memory back.

15. Google Chrome will feature a new JavaScript virtual machine. Google says this will be more efficient at running JavaScript-heavy apps such as Gmail, and allow smoother drag-and-drops.

16. Google Chrome comes with a Task Manager that lets you see which sites are using the most memory on your PC - and just like with the Windows Task manager, you'll be able end processes that are sucking up memory.

17. Google Chrome promises to be more secure - processes won't be able to write to your hard drive or read documents, for example.

18. Google Chrome will be constantly updated with information on phishing and malware sites and warn you if you attempt to visit one.

19. Google Chrome is being tested against millions of web pages - and Google is using its Page Rank system to ensure the browser is first tested against the web's most popular pages.

20. Google Chrome will be fully open source, so everyone will be able to contribute - and examine the code, which should allay any privacy fears

.google-chrome

 

Thursday, August 28, 2008

39 things wrong with the Iphone

Hi All,
2Day i got a forward mail from my friend Vidya. It’s really very interesting to share with you all. We where waiting for IPhone from last year but i hope now people will get disappointment.
1. Can't copy & paste text.
2. Except for the first and last SMS messages in a session, iPhone text messages lack timestamps.
3. iPhone's Safari browser does not support Java or Flash, so you can't watch videos (except for YouTube ones) or see parts of certain websites.
4. The on-screen keyboard can't be used in landscape mode in applications other than Safari.
5. Vibrate mode for incoming text messages is weak.
6. Incoming text messages appear word-for-word on the screen upon receiving them, which may be a privacy issue for some. (Update: Here's a sort of solution.)
7. No Undo function for when you've accidentally erased or mistyped text.
8. Scroll bars don't appear in some text fields in the browser, and there are no arrow keys to maneuver through text.
9. Can't save usernames and passwords in Safari.
10. The YouTube app does not allow you to view or post comments on videos.
11. Can't download or save Word documents, PDF files, or any other file for that matter. Why not add a My Documents folder?
12. No spell check feature for web forms.
13. Can't send more than one image in an email.
14. Except for in the Camera Roll, photos can't be edited or removed directly from the iPhone. You have to edit them on your computer and then re-sync them.
15. The iPhone lacks a Find function for sorting through contacts, e-mails, calendar appointments, notes, etc.
16. Can't update your Facebook status via iPhone's Safari browser. Facebook is a fast-growing social network, so iPhone should support it. (Update: Facebook now has an iPhone version of the site, located at iphone.facebook.com)
17. No mass edit feature for handling calendar items, notes and e-mails.
18. Can't search within web pages in the browser.
19. Its 3-day, expensive battery replacement plan.
20. Can't highlight text.
21. Limited ringtones. Can't set songs as ringtones. (Update: Apple now lets you convert some songs into ringtones via iTunes for $0.99 each.)
22. Difficult to rewind and fast-forward through long audio and video files (like audiobooks and TV shows or movies).
23. No AIM or iChat application.
24. One too many steps to dial a contact. (Update: In a software update, Apple added a feature that lets you double tap the home button to access your Favorites list of contacts.)
25. Because it is recessed, the headphone jack is incompatible with non-Apple headphones. Griffin's headphone adapter can solve this problem.
*Bonus* - MORE things wrong with the iPhone
Here are a few more things wrong with the iPhone, as readers have pointed out in the comments below.
26. iPhone's camera is archaic (no zoom, poor image stabilization, poor quality in low-lit areas).
27. No speed dial or voice dial functionality.
28. Cannot add attachments to emails.
29. Can't use iPhone as a hard drive storage device, unlike the iPod.
30. Can't change the sound notifications for email, voicemail, etc.
31. Can't delete individual entries from the recent calls list without deleting them all, a potential privacy issue.
32. No 3G data speeds. EDGE is slow at times.
33. Cannot send photos via text messages.
34. Cannot send mass text messages. (Update: Apple added mass text messaging to the iPhone via firmware update 1.1.3)
35. iPhone lacks a video camera. (See my article on why mobile video is important)
36. No tasks or To-Do widgets.
37. No support for games.
38. Can't disable auto-correct on the keyboard. Every time it makes a suggestion you don't want, you have to tap X to cancel it, which can slow down typing a lot.
39. iPhone's calculator lacks a backspace, so you have to clear the entire process if you accidentally touch an unintended digit.
N.B: If you still want to buy an iphone then hang on...let the prices slash. Surely 31k(India) is not worthy for the above features lacking in a phone.

Wednesday, August 27, 2008

CheckStyle integration with OpenNMS

What is CheckStyle:

Checkstyle is a development tool to help programmers to write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring task. This makes it ideal for projects that want to enforce a coding standard.

Checkstyle is highly configurable and can be made to support almost any coding standard. An example configuration file is supplied supporting the Sun Code Conventions. As well, other sample configuration files are supplied for other well known conventions.

A good example of a report that can be produced using CheckStyle and Maven

I prefer to use geosoft java coding conventions always. You can download CheckStyle from here.

Procedure to integrate CheckStyle with OpenNMS Maven:

I believe us all familiar to use Maven. So I am just directly going for CheckStyle integration.

While compiling OpenNMS code I used CheckStyle to generate Static code Analyze report.


To generate the Checkstyle report as part of the Project Reports, add the Checkstyle plugin in the section of openNMS root pom.xml.



I used geosoft check file so I changed the above configuration as per my need




Then, execute the site plugin to generate the report. Use the following command in command line.

mvn site

We can also generate the Checkstyle report by explicitly executing the checkstyle:checkstyle goal from the command line. It is not required to specify the Checkstyle plugin in your pom.xml unless you want to use a specific configuration. . Use the following command in command line.

mvn checkstyle:checkstyle

To specifically configure the Checkstyle plugin, we need to add it in the section of your pom.xml as shown in the sample below.

Note: The generated report will be saved under target\site folder of each project folder. example : opennms-model\target\site

Some of the images might missing in this post. Please see my wordpress blog also.
http://experiencesharing.wordpress.com/

Reference Links:

http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#outputDirectory

http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html

http://maven.apache.org/plugins/maven-checkstyle-plugin/

Tuesday, August 26, 2008

About Adsense again..........;-)

Adsense is an advertising program run by Internet giant Google. Google Adsense allows you (blog owner) to sell advertising space on your blog. The program enables you to display relevant text and banner ads on your blog''s content pages. Banner ads are the most common form of online advertising displayed at the top of many blog pages. Google pays you a fee when the visitor clicks on the ad.

When you join the Adsense program, you get access to Adsense for content which places ads on your content pages. Because the ads are targeted to what visitors are looking for on your blog or they match the interests of the visitors your content attracts, you earn and at the same time enhance your content pages. Google uses its vast search technology resources to serve ads based on blog content. In this regard, Adsense has become a popular choice for placing advertisements on a blog because the content of the ads is relevant to the blog. For example, ads for kitchen utensils will appear on a blog post about healthy cooking. Google has an extensive inventory of ads for all categories, business, practically for all kinds of content. If Google is unable to display targeted ads on your blog page, you can display a default ad of your choice.

A companion to the Adsense for content is the Adsense for search. It allows you to add a Google search box on your pages. This keeps the visitors on your blog longer since they can search from right on your blog. When a visitor searches the web using the search box, Google shares any ad revenue it makes from those searches with you and you shell nothing to participate.

Another recent addition is the Adsense for feeds. This runs on RSS and Atom feeds. RSS and Atom feeds are standards for publishing regular updates to blog-based content. Ads are displayed in the most suitable feed articles. You are paid for your blog''s original content; visitors see appropriate advertising and more relevant feeds to choose from.

How to Join

There is no rigid criteria to conform to for acceptance into the Google Adsense program, unlike other online ad networks that place minimum traffic requirement to be accepted. The only real criterion is acceptable content. Of course, any ad program wants to attract quality content blogs only. Assuming you already have a blog on which you can include Adsense links, you first need to be accepted into the program. The first step is to go to sign up. Google will review your blog to find out if you have the necessary traffic and the content that would bring in sufficient clicks to make your taking part in the program beneficial to Google and to you.

Once you are accepted, all you need is a bit of javascript code to incorporate the advertisements into the accepted blog site. Google does the rest like providing appropriate ad links from its inventory of clients to your blog. Targeted ads will start showing up on your blog.

How It Works

There are two sides to Google advertising ? one for advertisers selling a product or service called Adwords and Adsense for blog publishers. Advertisers pay Google to have their ads designed using Adwords appear next to the search page results in Google and a list of significant keywords for their offerings. Google will display an ad only if the provided keywords conform to a visitor search. An advertiser pays Google on a cost per click (CPC) basis. This means an advertiser pays only for that ad if the visitor clicks on the ad and visits the advertiser’s site. Advertisers compete with one another to buy search keywords usually from five cents and above. Nevertheless, Google also takes into consideration the search engine ranking of the advertiser blog, so no one site can just buy keywords. For example, a purchase of the keywords "digital camera" produces ads next to Google search result in its home page. Said purchase also shows Adsense ads for digital cameras on other blogs where digital cameras are mentioned.

For their part, blog publishers using Adsense create relevant pages. Google sends out Mediabots (digital robots) which use special algorithms to crawl the host blog page and evaluate the content to determine what keywords are relevant and report the result to Google’s ad server which then serves the appropriate ads. Blog publishers get paid a percentage of the fee that Google receives from the advertiser. This is done through a combination of a pay per click (PPC) and pay per impression basis. Impression is the number of times a specific ad has been displayed. A blog publisher is reimbursed at a fixed rate per thousand impressions. If a page isn’t significant enough, a blog publisher doesn’t get paid as much. There is no charge for the blog publisher to join Adsense. All costs are covered by the advertiser who participates in Adwords.

How Much Money It Makes

The amount of money you (blog publisher) can expect from Google Adsense depends upon several factors. If your blog draws tons of traffic and you focus on a particular niche, Google will serve ads that appeal to visitors of your site. For instance, if you maintain a popular blog devoted to portable media player, you can make a windfall because of the high level of competition for related keywords. Rates for competitive keywords can exceed $1 which impacts your blog''s earning potential. Conversely, if you are in a less competitive niche, you get occasional traffic only, thus less visitors click on your ads which equates to less money earned.

How much each advertisement pays per generated click is also another important factor. Each Adsense ad is not worth the same. An ad may give you ten cents while another may give you $1 per click. It depends on the demand for that kind of ad. If a number of advertisers are bidding for the same advertising space, the advertiser offering the most per click will get their ad displayed first.

Ad formats and placements influence revenue. Placing ads on the right part of the blog page is significant so that visitors looking at your page will see the ad, at the same time it will be not be overly intrusive to put visitors off.

Fundamentally though, it is all about content. To make money from Adsense, you have to know what your visitors are looking for. It may be information on a topic, a product they want to buy or a service they want to avail of and entertainment. Offering visitors good content will generate highly relevant ads which in turn will draw more clicks on the ads displayed. To optimize content, the same basic rules for search engine optimization apply.

Google doesn’t publish the percentage it takes as a commission and only displays what the blog owner receives in member reports. However, you can make a rough estimate. The average click through rate (CTR) for online advertising is generally around 0.5 to 1%. CTR is the rate at which visitors click an advertisement usually calculated as a percentage of ad impressions (number of times a specific ad has been displayed). What each click pays is dependent on the content and keywords that are generating the ads being served.

Although Google doesn’t release the amount it pays for keywords, you can sign up as an advertiser on top of being a participant in the Adsense program for $5 and see for yourself how much advertisers are paying Google for various click through. For example, a thousand page views with Google ads on them per day, at 1% click through rate and 25 cents per click will yield $2.50 per day. Not a lot but it can cover hosting fees or service fees.

Google Adsense is not a get rich quick program. But there are documented cases of bloggers earning as much as $5,000 a month and more. In fact, Jason Calacanis sold his blog network, Weblogs Inc. for a whopping $25 - $40 million on Google Adsense revenues of $1 million yearly. There isn’t any sense why a blogger can’t earn much from Google Adsense program. Definitely, there are thousands of dollars worth of reasons to make money from Google Adsense.

Did you find this article useful? For more useful tips & hints, Points to ponder and keep in mind, techniques & insights pertaining to Google Adsense, Do please browse for more information at our website :-

Article Directory: http://www.articledashboard.com

For more useful tips & hints, please browse for more information at our website: - www.thegooglefund.com www.adsense.reprintarticlesite.com

Monday, August 25, 2008

OpenNMS - Email Notification

Hi All,

From last week I just started to use OpenNMS. It’s such a wonderful web based network discovery tool. It has lot of features then other NMS products.

I downloaded the version 1.5.91 from OpenNMS download server. Compiled with maven and added with eclipse workbench. Every thing works fine except mail notification. After some RND on this, finally i solved the problem. I used gmail smtp server.

All open NMS configurations related files are found under etc folder of openNMS. To enable mail notification we need to do some changes in the configuration files.

Edit Javamail-configuration.xml to set SMTP information

org.opennms.core.utils.fromAddress=frommailid@gmail.com

org.opennms.core.utils.useJMTA=false

org.opennms.core.utils.transport=smtp

org.opennms.core.utils.mailHost=smtp.gmail.com

org.opennms.core.utils.smtpport=587

org.opennms.core.utils.smtpssl.enable=false

org.opennms.core.utils.authenticate=true

org.opennms.core.utils.authenticateUser=tomailid@gmail.com

org.opennms.core.utils.authenticatePassword=password

org.opennms.core.utils.starttls.enable=true

org.opennms.core.utils.messageContentType=text/html

org.opennms.core.utils.charset=UTF-8

Edit notifd-configuration.xml to enable notification

status=”on”

Example:
notifd-configuration
status=“on”
pages-sent=”SELECT * FROM notifications”
next-notif-id=”SELECT nextval(’notifynxtid’)”
next-group-id=”SELECT nextval(’notifygrpid’)”

User mail configuration for notification:

As per your need you can configure the duty schedules.

Example:


Group configuration for notify:

As per your need you can configure the Duty schedules.

Example:

When my node is down, i got a email notification. please see the below mail.

Monday, August 18, 2008

AlertPay online-money transfer

Hi All,
We are well known about paypal(www.paypal.com/). Of-course many sites are using paypal for then online money transfer. sDay i was doing goggling to implement paypal in my site. I got some information abt
AlertPay( https://www.alertpay.com/). These guy also doing very good job in online payment transaction.
Some more details:-
Personal Pro Account


A Personal Pro account gives you access to numerous online selling tools to
help you thrive online. If you are an active seller or you an avid online
shopper, choose the AlertPay Personal Pro account today!

* Conduct business under your name
* Low receiving fee of 2.5% + $0.25 per transaction
* Accept Credit Card payments
* Website Payments: Buy Now Buttons, Subscriptions and Recurring Payments
* Instant Payment Notification (IPN): Real-time notification to your
servers
* Mass Pay: Send out payments to groups of people


Business Account


A Business account is tailored to meet all the needs of your online business.
If you are managing a business under your business name, this is the account
for you. You will have access to numerous online business tools to help your
business grow online as well as

* Conduct business under your company name
* Low transaction fees of 2.5% + 0.25 per transaction*
* Accept Credit Card payments
* Sub accounts: Manage multiple online businesses with one account
* Website Payments: Buy Now Buttons, Subscriptions and Recurring Payments
* Business Tools: Integrate AlertPay into 3rd party applications
* Instant Payment Notification (IPN): Real-time notification to your
servers
* Mass Pay: Send out payments to groups of people
* Unlimited emails associated with your account

* Additional fees may be applied for specific industries.

This information may helpful i hope