- Research In Motion
- Sigma Designs
- Sohu.com
- Ebix
- Millicom International Cellular
- Open Text
- Pegasystems
- ANSYS
- Apple
- AsiaInfo Holdings
- Infosys Technologies
Wednesday, December 30, 2009
World's 10 Fastest-growing IT cos
6 Hot jobs for IT pros in 2010
- Java and .Net
- Cloud Computing
- Rich internet apps
- Mobile development
- Embedded technologies
- Project management
10 Most attractive IT workplaces for grads
- Microsoft
- IBM
- Intel
- Sony
- Siemens
- Hewlett-Packard
- Cisco
- Nokia
- Accenture
Tuesday, December 29, 2009
Netbeans Subversion plug-in update
Netbeans integrated subversion client for Netbeans 6.5 works along with TortoiseSVN 1.5.9.
After upgrading to TortoiseSVN 1.6.0 and above this issue will come up :
Netbeans integrated subversion client (being a unsupported client version for TortoiseSVN 1.6.0 and above) will fail to recognize files from the repository as a result of which committing, updating, checking out of files / folders wont be possible.
To solve the issue follow either of the two steps mentioned below:
- Downgrade TortoiseSVN 1.6.0 to TortoiseSVN 1.5.9
- Upgrade Netbeans integrated subversion client
To Upgrade Netbeans integrated subversion client follow the below steps :
- Go to Tools -> Plugins -> Installed -> Select Subversion 1.5 for Windows (Category - Bridges) -> Click on Uninstall.
- Download latest zip file for TortoiseSVN.
- Unzip the downloaded file.
- Go to Tools -> Options ->Miscellaneous -> Versioning -> Select subversion -> Copy the bin folder's path found in the unzipped file -> Paste that in "Path to the SVN executable File:" -> Ok -> Restart Netbeans
20 Biggest IT employers in India in 2009 (29 Dec 2009)
- Tata Consultancy Services
- Infosys Technologies
- Wipro Ltd
- Cognizant Technology Solutions India
- HCL Technologies
- Hewlett-Packard India
- MphasiS Ltd
- Intelenet Global Services Ltd
- IBM-Daksh
- Genpact India Pvt Ltd
- Tech Mahindra
- Aegis Ltd
- WNS Global Services (P) Ltd
- Firstsource Solutions Ltd
- CSC India Pvt Ltd
- Patni Computer
- Larsen & Toubro Infotech Ltd
- Hinduja Global Solutions Pvt Ltd
- Oracle Financial Services Software Ltd
- Convergys India Services
Friday, December 18, 2009
JTabbedPane for Netbeans Desktop Application
If any desktop application created in netbeans is using several tabs. Then each time the application is started, it will show the last selected tab. Even , by initially calling setSelectedIndex(int index) methodof JTabbedPane wont work. To resolve this issue following steps needs to be followed :Go to the class which extends SingleFrameApplication (,i.e,having public static void main).Update the overridden method shutdown() by selecting the default tab before super.shutdown() is called.
Writing resource file (I18N)
- "\\" stands for "\"
- "\n" stands for the newline character, U+000A
- "\t" stands for the horizontal tab character, U+0009
- "\ " stands for the space character, U+0020
- Lines whose first non-whitespace character is "#" are comment lines and are ignored.
- "\#" stands for the number sign character, U+0023.
- This is only needed if a line within a heredoc string starts with this character.
- Lines that contain only whitespace characters and are not part of a heredoc string are ignored
- Leading and trailing whitespace is trimmed from both key and value
setResizable for Netbeans Desktop Application
- Go to the class which extends SingleFrameApplication (,i.e,having public static void main)
- Update the overridden method startup() by calling this.getMainFrame().setResizable(boolean resizable) after show(View view) is called.
Tuesday, November 24, 2009
ClassFormatError
ALERT: java/lang/ClassFormatError: Bad version information.
If when launching a Midlet in netbeans emulator the above errors, then check if any jar file is being used which is created using Java 1.5 and above.
Wednesday, November 11, 2009
Null Pointer Exception in Java
Item array in J2ME : While initializing a Form object in J2ME application the corresponding label as well as items array might not be null. But this can throw NullPointerException if any one element of items array is null.
Hashtable : If Hashtable is used in our application ,then any manipulation of its reference prior creating the object will throw NullPointerException.
String array : If String array is initialized at the beginning, but , if at a later point , if that String array calls a function which returns null, then , trying to get the length of that String array will throw NullPointerException
Friday, October 16, 2009
World's 10 Fastest-growing IT cos
- Research in Motion
- Sigma Designs
- Sohu.com
- Ebix
- Millicom International Cellular
- Open Text
- Pegasystems
- ANSYS
- Apple
- AsiaInfo Holdings
IT's 7 new Best employers
- R Systems
- Perot Systems
- Ingram Micro India
- Sify Technologies
- Infogain India
- Unisys India
- Novell
IT’s 10 Best pay masters
- SAS Institute India
- Datacraft
- Sify Technologies
- Novell
- Perot Systems
- Nagarro
- Tavant Technologies
- Ingram Micro India
- Rolta India
- Fidelity (FIS)
India’s 15 biggest IT companies
- TCS
- Wipro
- Infosys
- HP
- IBM
- CTS
- Ingram Micro
- HCL technologies
- HCL Infosystems
- Redington India
- Cisco Systems
- Oracle India
- Intel India
- Accenture India
- SAP India
India's 20 best IT employers (14th Sep 2009)
- HCL Infosystems
- iGate
- Rolta
- RMSI
- SAS Institute India
- R Systems
- Perot Systems
- Tavant
- Datacraft India
- Synechron
- Ingram Micro India
- Tulip Telecom
- Sify
- SPAN Infotech India
- Hexaware
- Patni (PCS)
- Infogain India
- Unisys India
- Novell
- Virtusa
Wednesday, October 14, 2009
Out of Memory Exception in java
When we have 2 methods with following signature:
return_type method(String str);
return_type method(Object str);
if we call method("string") inside method(String str) assuming it will call method(Object str), it won't do so, rather function recursion will occur infinitely resulting in Out of Memory Exception.
Tuesday, September 29, 2009
Iterating for child elements in a DOJO tag
page = dijit.byId(page_id);
dojo.forEach(page.getDescendants(), function(widget){
if(widget.resize)widget.resize();
});
dojo.forEach(page.getDescendants(), function(widget){
if(widget.resize)widget.resize();
});
Iterating a page for all DOJO divs present
dojo.query("div").forEach(function(n){
if(dijit.byNode(n))
{
var page=dijit.byNode(n);
var dojoType=page.declaredClass.toString();
if(page.resize)page.resize();
}
});
if(dijit.byNode(n))
{
var page=dijit.byNode(n);
var dojoType=page.declaredClass.toString();
if(page.resize)page.resize();
}
});
Wednesday, September 23, 2009
DOJO include when Stores and I18N are used
<script type="text/javascript" src="dojo.js" djconfig="isDebug: false, parseOnLoad: true, usePlainJson: true, extraLocale: ['en-us', 'ja-jp', 'es-es', 'zh-cn', 'fr-fr', 'de-de']"></script>
Window events using DOJO
dojo.connect(window, 'resize', function() { //code})
dojo.connect(window, 'onload', function() { //code})
dojo.connect(window, 'onload', function() { //code})
Viewing javadocs in netbeans with minimal key press
First Way:
- Mouseover any member in the navigator window.
- Press ctrl+F1 when javadocs is shown in a small popup.
- Separate window is opened for javadocs.
- Then while scrolling, appropriate documentations are shown as and when the cursor is in any member.
- Windows --> Others --> Javadoc.
- Separate window is opened for javadocs.
- Then while scrolling, appropriate documentations are shown as and when the cursor is in any member.
Tuesday, September 15, 2009
Monday, September 7, 2009
J2ME InvalidJadException 36 while run
Exception:
com.sun.kvem.midletsuite.InvalidJadException: Reason = 36 Error in opening jar file:Troubleshooting:
Right click on project - Application Descriptor - Attributes
Check if extra attributes other than following are there :
MIDlet-Name
MIDlet-Vendor
MIDlet-Version
If they are present remove those and again build and run.
If problem persists search in forums and add the solutions as a comment in this blog.
Opening editor in a new window from netbeans
Press "Alt+Shift+D " from current file
Repeat the process to restore the file to netbeans editor.
Monday, July 13, 2009
Friday, July 10, 2009
Optimizing code while styling HTML table rows
When specifying the css class name to be used for a tr HTML element, so as to specify the style for a HTML table row element , we need not explicitly specify the classname for all tr tags if all tr's have same styles. Rather we can only explicitly specify the classname for the first tr tag . By doing so subsequent tr tags will implicitly have the required style
Different ways to determine a browser
1. Using userAgent() of javascript
var userAgent=navigator.userAgent.toString();
var isMozilla=userAgent.indexOf("Mozilla");
var isSafari=userAgent.indexOf("Safari");
var isChrome=userAgent.indexOf("Chrome");
These 3 variables isMozilla , isSafari , isChrome returns -1 or a positive value.
Horizontal aligning of HTML elements using CSS
Center Align:
margin-left : auto;
margin-right : auto;
Right Align
float : right;
Left Align:
float : left;
Few Guidelines while writing CSS
1. Defining font sizes in css:
While defining font sizes in stylesheets , we should hardcode the same only once. This will make font size manipulation easier. If we want different font sizes for various child elements of an HTML element we should use relative values (like em , %) . It is because a child element of an HTML element assumes its parent element's font size as its default value , thus inheriting the value thereby. But the most possible exception for this statement is IFRAME element in HTML
2. Reducing lines in a css file:
If we have number of same properties having same value. We should avoid repetition of the same by declaring that specific rules at a time and as usual separated by commas. By doing so we can make our css file compact.
Fix : Appearing of dotted borders when we click an element in mozilla
:focus { -moz-outline-style: none; }
Different ways of creating CSS rules
.css_class_name
{
..
}
.css_class_name *
{
..
}
.css_class_name html_tag_name
{
..
}
.css_class_name html_tag_name1, html_tag_name2
{
..
}
.css_class_name .its_child_class_name
{
..
}
.css_class_name table > tbody > tr > td
{
..
}
.css_class_name table > tbody > tr > td:first-child
{
..
}
#id_of_html_element
{
..
}
.css_class_name [id= id_of_html_element]
{
..
}
.css_class_name input[type=text]
{
..
}
Subscribe to:
Comments (Atom)