Welcome to CodeGlobe. CodeGlobe provides free source code, tutorials and latest useful technology news.
Thursday, September 16, 2010
Google Apps is changing
• In addition to the core suite of messaging and collaboration applications, your users may now access many more Google services with their Google Apps accounts. Learn more
• Currently you will not have the ability to disable additional services as you can today with the core Google Apps suite, but this capability will be added soon. If you need the ability to disable any of the additional services please do not transition at this time.
• Important materials and notices for your users are currently only available in the English versions of Google products. If you have users who may be using non-English versions of Google products, do not transition at this time.
This update is free, and Google will automatically make the transition for you this Fall. In most cases, though, we think you'll want to step through the transition wizard yourself and actively communicate the forthcoming changes to your users. You can move everyone to the new infrastructure today, or you can try out the new account services with selected pilot users. Learn more
Thursday, September 9, 2010
Java Me from Childhood to Robinhood - Online Book by CodeGlober Joji George(xpedition)
This book is mainly written to those who are interested in Java Me programming. I think it will help you to begin Java ME from scratch.
This book contains 9 chapters .
Go to Java Me from Childhood to Robinhood
cochin IT solutions-web hosting application development cellphone applications web site designs
Saturday, August 28, 2010
Debugging Javascript, CSS, HTML and PHP using FireBug and FirePHP
There are number of firefox add-on every webdeveloper love, in which one of the best add-on is firbug.
Fire bug let's you debug your javascript, html, css code. Thinking even more it' can debug PHP also using FirePHP. It include debugger, error consol and commandline.
After you install firebug add-on you will see a 'firebug' in statusbar of firefox .Click on that bug firebug in open for you at bottom of your page.
If you bored using javascript alery(myVar); function for debugging you may use console.log(myVar); like console on most development tools.
Also firbug helps you to inspect each every corner of DOM using your mouse.
Debugging PHP using Firebug, FirePHP
First you need to install firebug add-on then firePHP add-on. Then download FirePHPCore from http://www.firephp.org/ and add FirePHPCore in your PHP 'include' or root or somewhere you like. Include it in you PHP file.
using
require('FirePHPCore/fb.php');
and call fb() function passing a single argument that you need to pass in to Console
try{ echo "hello"; } (Exception $e) { fb($e); fb("Error in data ".$foo); }
FirePHP writes this to console using HTTP headers – in particular, X-FirePHP-Data headers in the response.
So you need to use ob_start();
This will initialise output buffering, so that any HTML you output is held up till the end of script execution.
Referances
More about Firebug and FirePHP
You can get Firbug Add-on from here http://getfirebug.com/enable
FirePHP Project http://www.firephp.org/
Friday, August 27, 2010
Google Call- Call to phone from Gmail Inbox FREE for US and Canada
Now you can use your Gmail to call your friends phone. This new feature from Google is under testing. This feature will not be available to non US Canada users, also to Google App for non-profit. In coming days google will launch this feature to more countries. However the call rates and comparison rates to different countries now available. To see this feature go to http://gmail.com/call. You need to install Voice video plug-in to use this feature. To know more about this Visit Google Official Blog
Tuesday, August 24, 2010
Cheap Reliable Web hosting India
They are running promo now . 50% Off on web hosting plans
cochin webdesigns hosting development
Monday, August 23, 2010
Undo Send option in Gmail- Will help us to re-think whether to undo a send mail
Sometimes I regret sending a message the morning after. Other times I send a message and then immediately notice a mistake. I forget to attach a file or email the birthday girl that I can't make her surprise party. I can rush to close my browser or unplug the Internet — but Gmail almost always wins that race.
An email to the wrong Larry pushed me over the edge. I could undo just about any other action in Gmail — why couldn’t I undo send? Many people agreed, including Yuzo Fujishima, an engineer in the Tokyo office. My theory (which others shared) was that even just five seconds would be enough time to catch most of those regrettable emails.
And now you can do just that. Turn on Undo Send in Gmail Labs under Settings, and you’ll see a new “Undo” link on every sent mail confirmation. Click “Undo,” and we’ll grab the message before it’s sent and take you right back to compose.
This feature can't pull back an email that's already gone; it just holds your message for five seconds so you have a chance to hit the panic button. And don't worry – if you close Gmail or your browser crashes in those few seconds, we'll still send your message.
I've had Undo Send turned on for a while and it's saved me several times. Let us know if it saves you too.
(Thanks to Google official blog)
Google Transliteration IME released - Google Input Method: Type anywhere in your language
Google Input Method: Type anywhere in your language
Google Transliteration IME is an input method editor which allows users to enter text in one of the supported languages using a roman keyboard. Users can type a word the way it sounds using Latin characters and Google Transliteration IME will convert the word to its native script. Note that this is not the same as translation -- it is the sound of the words that is converted from one alphabet to the other, not their meaning. Converted content will always be in Unicode.
Google Transliteration IME is currently available for 19 different languages - Amharic, Arabic, Bengali, Farsi (Persian), Greek, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Punjabi, Russian, Sanskrit, Serbian, Tamil, Telugu, Tigrinya and Urdu.
Features
Offline Support
No dependency on internet connection.Word Completions
Dictionary based word completions for prefixes.Personalized Choices
Remember user corrections along with macro and canonical support.Easy Keyboard
Dictionary enabled keyboard to enter rare and complex words.Quick Search
Single click web search for highlighted word.Cool Customization
Customize suggestions page size, display font and more.
Google Transliteration IME is an input method editor which allows users to enter text in one of the supported languages using a roman keyboard. Users can type a word the way it sounds using Latin characters and Google Transliteration IME will convert the word to its native script. Note that this is not the same as translation -- it is the sound of the words that is converted from one alphabet to the other, not their meaning. Converted content will always be in Unicode. For example, typing "hamesha" transliterates into Hindi as: and typing "salaam" transliterates into Persian as:
Google Transliteration IME is available for 19 different languages - Amharic, Arabic, Bengali, Farsi (Persian), Greek, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Punjabi, Russian, Sanskrit, Serbian, Tamil, Telugu, Tigrinya and Urdu.
Sample status window and the edit window for Hindi IME are shown below. For simplicity, Hindi IME is used as an example at most places in this help page.
Install
To install, download (If you are on a 64-bit Windows, make sure you have selected the 64-bit radio button in the download page) and run the installer and follow the instructions on screen.
- More than one language IME can be installed on the same client machine.
- Requirements are Windows 7/Vista/XP 32-bit/64-bit operating systems.
- Only one instance of IME will be installed per machine but the configuration is done for each user using IME.
Uninstall
To uninstall, follow these steps:
- Click on the "Start" menu.
- Select "Control Panel" and then go to "Add or Remove Programs".
- In the program list, select the "Google Input", click on "Change/Remove" button.
- By default, "Retain my personal data with settings" option will be checked, which will not clean your personal customizations like display font, user correction cache etc., as part of uninstall. Uncheck the option, if you want to clean all your personal settings information.
- In the "Uninstall Google Input" dialog box, click "Yes".
If you want to use IME with any application like notepad, you must first open the application and then open our IME. IME can be opened by clicking on the language bar on the desktop and then selecting the IME language icon or through a shortcut key if it's already configured. To close IME, you can change the language in language bar or try right clicking on the current application to see whether it supports 'Close IME' popup menu option or by closing the current application.
Displaying Language Bar
- In desktop, right click on tool bar and select Toolbars -> Language bar
Enabling Language Bar
If the 'Language bar' option is not visible in 'Toolbars', then it needs to be enabled through control panel:
Windows 7/Vista
- Control Panel -> Regional and Language Options -> Keyboard and Languages tab
- Click on Change keyboards... button to open Text services and input languages dialog
- Navigate to Language Bar tab
- Enable the radio button Docked in the taskbar under Language Bar section
- Apply all settings and try to display language bar as mentioned in previous section.
Windows XP
- Go to Control Panel -> Regional and Language Options -> Languages tab -> Text services and input languages (Details) -> Advanced Tab
- Make sure that under System configuration, option Turn off advanced text services is NOT checked.
- Go to Control Panel -> Regional and Language Options -> Languages tab -> Text services and input languages (Details) -> Settings Tab
- Click Language Bar
- Select Show the Language bar on the desktop. Click OK.
- If you are installing the IME for East Asian language or Right-To-Left language, go to Control Panel -> Regional and Language Options -> Languages Tab
- Make sure that options Install files for complex scripts and right to left languages and Install files for East Asian languages are checked in the checkboxes. This requires installation of system files and the system will prompt to insert the Operating System Disc.
- Apply all settings and try to display language bar as mentioned in previous section.
IME Shortcut
A shortcut key sequence can be applied to the IME as follows which can be used to quickly enable IME for any in-focus application:
Windows 7/Vista
- Control Panel -> Regional and Language Options -> Keyboard and Languages tab
- Click on Change keyboards... button to open Text services and input languages dialog
- Navigate to Advanced Key Settings tab
- If Google Input is not listed in Installed Services box, then click Add and in Add Input languagedialog box, go to the language for which you want to enable IME in the languages tree and expand the node. Check the checkbox next to Google Input in the list.
- In Hot keys for input languages Select To - Google Input
- Press Change Key Sequence
- Select Enable Key Sequence
- Select option like Left ALT + SHIFT + Key 1
- Apply all changes
- Now opening an application like notepad and pressing Left ALT + SHIFT + Key 1 should open the IME.
Windows XP
- Control Panel -> Regional and Language Options -> Languages tab -> Text services and input languages (Details) -> Settings Tab
- If either or Google Input not listed in Installed Services box, then click Add and in Add Input language dialog box, select in Input language and Google Input in Keyboard layout/IME. ClickOK
- Press Key Settings
- In Hot keys for input languages, Select Switch to -Google Input
- Press Change Key Sequence
- Select Enable Key Sequence
- Select option like Left ALT + SHIFT + Key 1
- Apply all changes
- Now opening an application like notepad and pressing Left ALT + SHIFT + Key 1 should open the IME.
Status Window
Whenever you enable our IME for an application either through a shortcut or through language bar, its status window will be visible on the screen. By default it will be placed at the bottom right corner of your desktop which can also be moved around. It is used for more configuration and controlling various features of our IME. It has three to five icons (depending on the language and features available) with leftmost being the application icon. Next to it are IME language indicator button, keyboard button (not present for Amharic and Tigrinya), canonical mode button (This button will be present if you have anycanonical schemes associated with the IME) and menu button in that order.
Edit Window
When the IME is enabled for an application like notepad and you start typing, IME displays the edit window with the typed text and the corresponding word choices in IME language. In the below example, user has typed 'googl' and the IME has displayed five choices numbered 1 to 5.
Navigation and Selection
By default the leftmost choice will be highlighted indicating active choice. Active choice can be changed by navigating other choices through BOTTOM-ARROW or TAB key - which moves the selection to the right; or through UP-ARROW or SHIFT+TAB keys - which moves the selection to left. To select one of the choices as the new word for your application, use ENTER key which inserts the active choice to the application at its current cursor position. Using SPACE or any other PUNCTUATION CHARACTER also inserts the active choice to the application along with the typed punctuation character. Exception will be when IME thinks that there is a better choice of word containing the punctuation character as part of the word itself. All the above controls only insert the active choice (highlighted) into the application. Another way to insert any choice even if it is not active is using its position number as: CTRL+.
Word Completions
When you type a word, the choices displayed in edit window will be either in BLACK or BLUE color. Intuitive partial word choices for the typed content are displayed in BLACK color which will always be grouped on the left side. If there are any better dictionary-based word completions for the typed content, they are displayed in BLUE color and grouped on the right side.
Paging
In the example being discussed, IME displays only 5 choices in the edit window which is the page size setting of the edit window. It can be configured through the menu button of the status window. If there are more choices than the page size set, then it will be displayed in the next page. Page navigation can be done through the small arrow buttons at the right bottom corner of the edit window or through PageUPand PageDown keys. Even when you navigate the choices with arrow or tab keys, the control moves to the next or previous page from either end of the edit window.
Search
At anytime while typing in edit window, if you click the Google image on top right corner of the edit window, it triggers a web search for the active/highlighted choice in google.com. Search can also be triggered for non-active choice by right-clicking on any choice and then clicking the Search... drop-down button.
User Cache
There will be scenarios where the leftmost choice is not the one you are looking for and you select some other choice (second choice in the below example for typed word 'program') which will be inserted into the application.
IME remembers this selection for the current user and when the user next types 'program' again, the last selected choice will now be displayed as the leftmost choice. To share this information across all applications for a user, this is persisted at user level even after closing the application. But this persisting behavior can be disabled through the 'Disable User Cache' option from menu button of status window. Note that caching doesn't apply if you select word completions. It is only for word choices shown in BLACK color.
Switch to English
If you want to add both roman alphabet (typically English) content and IME language content to any application, there is an easy way to switch between the two. In one mode IME gives you choices in its language and in another mode it just emits what you have typed. Toggling can be done by clicking the IME language button in status window or through shortcuts: CTRL+G or F12.
Keyboard
When you don't get some words as expected choices for any rare complex words; you can use the flexible keyboard to input any possible word. You can open the keyboard by clicking the keyboard button on status window or through the shortcut CTRL+K. Mouse is used to enter characters from the IME keyboard which also triggers word completions in the edit window. Keyboard can be closed by clicking the keyboard button again on status window or through shortcut keys: CTRL+K or ESC. There is also option to enter Zero Width Joiner (ZWJ) and Zero Width Non Joiner (ZWNJ) characters.
Customization
You can customize many features through IME's menu. Options available through the menu popup in status window are:
- Change or activate one of the available canonical schemes (Option available only if there is atleast one scheme in the Schemes directory).
- Select the font and size to be used to display the choices in IME language inside edit window (Suggestion Font).
- Select the font and size to be used to display the English/Roman characters inside edit window.
- Set the page size for edit window to restrict its size through number of choices.
- Enable or disable the persistence of user cache.
- Add/Edit or Delete macros using Manage Macros option.
- Information about the IME like version.
- Help, linking to this page.
Special Cases
There are some special cases in how IME behaves for some characters in some languages:
- Example in Arabic for special case of SPACE where it is part of the typed word.
- Example in Arabic for special case of PUNCTUATION where it is part of the typed word.
- Example in Greek for special case of CAPITALIZATION where only first character being in uppercase in input retains its casing.
- Example in Greek for special case of CAPITALIZATION where all uppercase word in input retains its casing.
- Example in Greek for special case of DIGITS where number is converted digit wise instead of its whole value.
IME supports adding custom user defined macros. Macros are short character sequences mapped to a word of your choice. When you type a character sequence, if there is a word corresponding to that sequence in the user-defined macros collection then it will be shown as the first choice in the Edit Window. You can manage the macros by choosing the 'Manage Macros...' option from the IME's menu.
When you select this option the 'Manage Macros' dialog opens, allowing you to add, modify and delete the set of macros.
Adding a Macro entry
Click on the 'Add' button. This will add an empty row to the Macros List. You can double click (or select the cell and press F2) on the cell to add the new Macro entry.
- Macro Text should consist of only alpha-numeric characters and the length should not exceed 100 characters. Macro Text is case-sensitive.
- Macro Target should not contain any spaces and the length should not exceed 50 characters.
Removing a Macro entry
Select the cells you want to delete (Use Shift+Click to select a range or Ctrl+Click to select multiple disconnnected cells) and click on the 'Delete' button. Note that you cannot delete single cells. If you delete a cell, the full row will be deleted.
Modifying and Saving Macro Entries
- You can edit any cell by double clicking it (or selecting the cell and pressing F2 key).
- You can cancel the edit anytime by pressing the 'Esc' key or clicking outside the cell. Press the 'Enter' key to complete the edit.
- After all edits are completed you need to click on the 'Save' button to save your changes.
- You can click on the 'Discard' button anytime to discard all the changes made so far (after the previous save action).
Once you have the Macros in place you can use them while typing. For example if 'Mon' is mapped to in the Macros, then when you type 'Mon' you will see as the first option.
Friday, July 23, 2010
Merging two mozilla bookmark backups
When you import bookmark backup files , your current bookmarks will be lost.
Some times you need to merge two bookmarks say backup A and current backup B.
here are the steps.
Read More
EPIC Browser from India
Indian company Hidden Reflex launches india's first web browser EPIC.It's build on core of mozilla web browser. One of the main feature include in-build antivirus protection using ESET.
Read More
Twitter followers as your twitter background
Do you want to Twitter followers as your twitter background
Twilk takes your Twitter followers' profile photos and puts them on your Twitter background.
Read More
Appcelerator Titanium is a platform for developing mobile and desktop applications using web technologies
Appcelerator Titanium is a platform for developing mobile and desktop applications using web technologies.
Appcelerator Titanium is developed by Appcelerator Inc. and was introduced in December 2008.
Read More
.CO domains now available.
Searching for your favorite domain?. Here is one more chance for you. '.CO' domains are now available.
Now you may get 'yourdomain.co', so hurry up!, befor your domain get parked by spammers and they could bargain large amount of money.
Read More
Turn Windows 7 to Wi-fi Hotspot
Do you need to share your internet connection in your laptop to your friends, co-workers, mobile devices.
Here is a good solution for your problem.
Connectify ! it's 100% FREE, you can now turn your Windows 7 laptop to Wi-fi hotspot.
Easy to connect any numbers wi-fi enabled devices to your laptop.
Read More
Friday, July 16, 2010
Top 5 Google map Implementations
Yelp, Inc. is a Web 2.0 company that operates a social networking, user review, and local search web site of the same name. Yelp has more than 31 million monthly unique visitors as of early 2010.
In statistics about 60% of yelp pages uses google map.Also they used facebook plugin to integrate social aspect to the same.
Read more Google map implementations
Wednesday, July 14, 2010
MLM application using PHP, Javascipt, CSS
Multi-level marketing (MLM), (also called network marketing, direct selling, and referral marketing,) is a term that describes a marketing structure used by some companies as part of their overall marketing strategy. The structure is designed to create a marketing and sales force by compensating promoters of company products not only for sales they personally generate, but also for the sales of other promoters they PHPintroduce to the company, creating a downline of distributors and a hierarchy of multiple levels of compensation(Source: WIKI).
Complete Multilevel marketing website script in PHP with a nice MLM TREE . Here are the screen shots of the same. Try to develop one like this.Full source code for commercial use is also available. If need that please contact us.
Wednesday, May 5, 2010
Zion Esconder Mini 1.0 beta for Mobile
Hide your secret/important files...Download.
Hide your secret/personal/important files from others..
Esconder protect/hide your audio/video/image etc files in a secure manner.
1.'Lock' option is to lock the file(s),use the browse option to browse the files to be locked and use 'Mark' option in the Zion Browser to select files to be locked and then click 'Lock' to lock the file..
2.'Unlock' option is to unlock file(s),the browse option let you see the locked files..there you can unlock the file..
3.'Settings' option is to change your login password.
Note:Once you installed the application in your mobile,before going to delete the application ensure that you have unlocked all the locked files otherwise those file may become inaccessible even if you reinstall the application.
After installing the application move it in to external memory,because all inatallation will go to internal memory.To hide more files you have to move the application to external memory..
For more details contact-email:xpedition009@gmail.com
web:www.xpedition009.com
Friday, April 9, 2010
Your CD drive or DVD drive is missing or is not recognized by Windows or other programs
Problem description
Your CD drive or DVD drive is missing or not recognized by Windows or other prog...
Fix it for me
To fix this problem automatically, click the Fix this problem link. Then, click...
Microsoft Automated Troubleshooting Services: Your CD or DVD drive cannot read or write media
Now go to the "Did this fix the problem?" section.
Let me fix it myselfImportant This section, method, or task contains steps that tell you how to modi...
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
Windows 7
To resolve this problem on a computer that is running Windows 7, use the Open Playing and Burning CDs, DVDs, and Blu-ray Discs troubleshooter. For more information about how to open this troubleshooter in Windows 7, visit the following Microsoft Web site:
If this troubleshooter does not work, try to use the Hardware and Devices troubleshooter. For more information about how to open this troubleshooter in Windows 7, visit the following Microsoft Web site:
Windows Vista
- Click Start, and then click All Programs.
- Click Accessories, and then click Run.
- Type regedit, and then click OK. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
- In the navigation pane, locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Control\ Class\{4D36E965-E325-11CE- BFC1-08002BE10318} - In the right pane, click UpperFilters.
Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 8. - On the Edit menu, click Delete.
- When you are prompted to confirm the deletion, click Yes.
- In the right pane, click LowerFilters.
Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the "Next Steps" section for information about how you can find more solutions or more help on the Microsoft Web site. - On the Edit menu, click Delete.
- When you are prompted to confirm the deletion, click Yes.
- Exit Registry Editor.
- Restart the computer.
Now go to the "Did this fix the problem?" section.
Windows XP
- Click Start, and then click Run.
- In the Open box, type regedit, and then click OK.
- In the navigation pane, locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Control\ Class\{4D36E965-E325-11CE- BFC1-08002BE10318} - In the right pane, click UpperFilters.
Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 7. - On the Edit menu, click Delete.
- When you are prompted to confirm the deletion, click Yes.
- In the right pane, click LowerFilters.
Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the "Next Steps" section for information about how you can find more solutions or more help on the Microsoft Web site. - On the Edit menu, click Delete.
- When you are prompted to confirm the deletion, click Yes.
- Exit Registry Editor.
- Restart the computer.
Did this fix the problem?
Windows 7 Click Start , click Computer, and then see whether the drive is liste...
Windows 7
Click Start, click Computer, and then see whether the drive is listed.
Windows Vista
Click Start, click Computer, and then see whether the drive is listed.
Windows XP
Click Start, click My Computer, and then see whether the drive is listed.
If the drive is not listed, remove and reinstall the existing drivers.
Remove and reinstall drivers
If the drive is not listed, remove and reinstall the existing drivers. To do this, follow these steps:
Windows 7
- Click Start, and then click Control Panel.
- Click System and Security, click System, and then click Device Manager.
Note If Control Panel is in Classic View, double-click System, and then click Device Manager.If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. - In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
- When you are prompted to confirm that you want to remove the device, click OK.
- Restart the computer.
After the computer restarts, the drivers will be automatically installed
Windows Vista
- Click Start, and then click Control Panel.
- Click System and Maintenance, click System, and then click Device Manager.
Note If Control Panel is in Classic View, double-click System, and then click Device Manager.
If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. - In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
- When you are prompted to confirm that you want to remove the device, click OK.
- Restart the computer.
After the computer restarts, the drivers will be automatically installed.
Windows XP
- Click Start, and then click Control Panel.
- Click System and Maintenance, and then click System,
- On the Hardware tab, click Device Manager. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
- In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
- When you are prompted to confirm that you want to remove the device, click OK.
- Restart the computer.
After the computer restarts, the drivers will be automatically installed.
Next steps
If this method did not help you, you might want to use the Microsoft Customer Su...
If this method did not help you, you might want to use the Microsoft Customer Support Services Web site to find other solutions. Some services that the Microsoft Customer Support Services Web site provides include the following:
- Searchable Knowledge Base (http://support.microsoft.com/
search/?adv=1 ) : Search technical support information and self-help tools for Microsoft products. - Solution Centers (http://support.microsoft.com/
select/?target=hub ) : View product-specific frequently asked questions and support highlights. - Microsoft Product Support Newsgroups (http://www.microsoft.com/
communities/newsgroups/ ) : Contact counterparts, peers, and Microsoft Most Valuable Professionals (MVPs).default.mspx - Other Support Options (http://support.microsoft.com/
default.aspx?pr=csshome ) : Use the Web to ask a question, to contact Microsoft Customer Support Services, or to provide feedback.
If you continue to have questions after you use these Microsoft Web sites, or if you cannot find a solution on the Microsoft Support Services Web site, click the following link to contact Support: http://support.microsoft.com/
ODBC System DSN List Using Java
* OdbcSystemDSNListUtil.java
*/
package odbc;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
/**
* @author Nimish
* Apr 9, 2010
*/
public class OdbcSystemDSNListUtil {
public static Set
String PERSONAL_FOLDER_CMD ="HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI";
String []command = new String[] {"reg","query",PERSONAL_FOLDER_CMD};
Set
try {
Process process = Runtime.getRuntime().exec(command);
BufferedReader stream = new BufferedReader(new InputStreamReader(process.getInputStream()));
String dsn = "";
while((dsn=stream.readLine())!=null){
if(dsn.indexOf(PERSONAL_FOLDER_CMD+"\\") != -1)
dsnList.add(dsn.substring(dsn.lastIndexOf("\\")+1));
}
} catch (IOException e) {
e.printStackTrace();
}
return dsnList;
}
public static void main(String[] args) {
Set
for(String dsn:dsnList) {
System.out.println("dsn name: "+ dsn);
}
}
}
Windows Tasklist using Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class ProcessManager {
public static void main(String[] args) {
List
for(Task task:testList){
System.out.println(task.getImageName()+" : "+task.getMemoryUsage());
}
}
public static List
List
try {
String []command = new String[] {"tasklist","/fo","csv","/nh"};
Process process = Runtime.getRuntime().exec(command);
BufferedReader input = new BufferedReader
(new InputStreamReader(process.getInputStream()));
String line ="";
while ((line = input.readLine()) != null) {
if(!line.equals("")) {
line = line.replaceAll("\"","");
Task task = new Task();
String[] taskAttributes = null;
try {
taskAttributes = line.split(",");
} catch (RuntimeException e) {
e.printStackTrace();
}
task.setImageName(taskAttributes[0]==null?"":taskAttributes[0]);
task.setProcessID(taskAttributes[1]==null?"":taskAttributes[1]);
task.setSessionName(taskAttributes[2]==null?"":taskAttributes[2]);
task.setSessionNumber(taskAttributes[3]==null?"":taskAttributes[3]);
try {
task.setMemoryUsage(taskAttributes[4]==null?"":taskAttributes[4]+taskAttributes[5]==null?"":taskAttributes[5]);
} catch (RuntimeException e) {
task.setMemoryUsage(taskAttributes[4]==null?"":taskAttributes[4]);
}
tasklist.add(task);
}
}
} catch (IOException e) {
e.printStackTrace();
}
return tasklist;
}
}
Sunday, March 28, 2010
AVG Rescue CD-A powerful, free toolset for the rescue and repair of infected machines
The AVG Rescue CD is a powerful must-have toolkit for the rescue and repair of infected machines. It provides essential utilities for system administrators and other IT professionals and includes the following features:
- Comprehensive administration toolset
- System recovery from virus and spyware infections
- Suitable for recovering MS Windows and Linux operating systems (FAT32 and NTFS file systems)
- Ability to perform a clean boot from CD or USB stick
- Free support and service for paid license holders of any AVG product
- FAQ and Free Forum self-help support for AVG Free users
Fore more details and downloads please visit AVG