Monday, July 27, 2009
Remove whitespaces or whatever letter from a string in Java
str will be : Helloo!,!Welcome!to!the!land!of!FRACK!!!!
Thursday, July 23, 2009
To Shutdown/Restart Ubuntu linux from terminal
So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:
To shutdown / poweroff Ubuntu Linux
Type the command:sudo halt
ORsudo shutdown -h now
To reboot Ubuntu Linux
Type the command:sudo reboot
More information can be found about these two commands by typing following commands (man page):man reboot
man shutdown
Friday, July 17, 2009
Opera: Microsoft's 'minor tweak' of Windows 7 not enough
Computerworld - Opera Software, the Norwegian browser maker that sparked an antitrust investigation into Microsoft business practices in Europe, remains dissatisfied with its rival's move to dump IE8 from Windows 7.
Last week, Microsoft shared a bit of technical information about how it is stripping IE8 from Windows 7 to create the "E" editions for the European Union market.
"The only functional difference is that the Internet Explorer 8 component is not available," said Arik Cohen, a Microsoft program manager in a Q&A on the company's Windows blog. "This is the same component that your users can turn off in the 'Turn Windows features on and off' control panel in the Windows 7 RC build."
All other parts of IE will remain in the E editions, said Cohen, "since they are part of the Windows core."
The "Turn Windows features on and off" feature refers to the kill switch option Microsoft added to Windows 7 in March. Then, Microsoft managers confirmed that the new operating system would offer user settings for disabling, but not deleting, a host of bundled applications, including IE8. "If a feature is deselected, it is not available for use," said Jack Mayo, a program manager on the Windows team. "This means the files (binaries and data) are not loaded by the operating system and not available to users on the computer."
Files are not actually deleted from the PC, however, so users can later reactivate the disabled applications, said Mayo.
Flipping a switch to simply make IE8 unavailable is not enough for Opera, the browser builder that complained to EU regulators in late 2007. Its complaint led the government's antitrust agency to charge Microsoft in January with shielding IE from competition.
"Microsoft's minor technical tweak will not restore browser competition on the desktop," said Hakon Wium Lie, Opera's chief technology officer, in an e-mail today.
Opera has previously expressed dissatisfaction with Microsoft's decision to dump IE8 from Windows 7. In June, when Microsoft announced the E editions, Lie was skeptical, even though it was unclear at the time exactly what part of the browser would be removed. "The rendering engine will remain," Lie argued then. "Who knows what Windows Update would do? You could wake up in the morning and see all of IE8 there again."
Microsoft may have felt forced to leave parts of IE within Windows, since some of the OS's functionality, particularly Windows Update, likely depends on those components.
A month ago, Microsoft acknowledged that its unilateral move might not satisfy critics, including EU officials. "Our decision to only offer IE separately from Windows 7 in Europe cannot, of course, preclude the possibility of alternative approaches emerging through Commission processes," Dave Heiner, Microsoft's deputy counsel, said on June 11.
While the EU has not yet ruled -- Microsoft dropped an oral hearing slated for early June because of scheduling conflicts -- but Lie said that as far as Opera is concerned, turning off IE but leaving bits and pieces in Windows 7 isn't enough. "At Opera, we'd like to give users access to more browsers, not fewer," he said.
Opera wants the EU to order Microsoft to insert a ballot screen into Windows; the screen would offer users several browser choices that would then either be activated -- if all were pre-installed on the machine -- or downloaded and installed.
Regulators also have hinted that the ballot screen is its preferred solution. "A potential remedy ... and which would not require Microsoft to provide Windows to end-users without a browser, would be to allow consumers to choose from different web browsers presented to them through a 'ballot screen' in Windows," the European Commission said in a June 12 statement.
Nor has Microsoft publicly disclosed what, if any, incentives it's held out to European computer makers to continue to install IE8 on new PCs. Last month, Mozilla said that that was critical to figuring out whether Windows 7E would level the playing field. "It's impossible to evaluate what [Microsoft's proposal] means unless and until Microsoft describes -- completely and with specificity -- all the incentives and disincentives applicable to Windows OEMs," said John Lilly, Mozilla's CEO. "Without this, it's impossible to tell if Microsoft is giving something with one hand and taking it away with the other."
Microsoft's Cohen also claimed that the "vast majority" of applications work on Windows 7 E, including programs that use Windows' embedded browser components, including Trident, IE's layout engine.
Microsoft: How to install a browser on Windows 7 E
Users will be required to install an internet browser from external media, such as a USB pen drive or CD, as there will be no way of browsing the web without one otherwise.
Due to the EU pushing on with its anti-trust case against Microsoft, users buying Windows 7 E will have to find their own browser to use. Whilst users could of course just download their browser of choice, and save it on a pen drive, Microsoft has made Internet Explorer 8 available for order, on disk. The disk costs £3.44, excluding VAT. For many users, this will not be necessary, but Amazon.de is offering the Internet Explorer 8 disk as an extra anyway, for €3.99. Firefox is also available to order, from the Mozilla Store.
Windows N will be the same as Windows 7 E, but without a media player installed by default. Whilst some oppose the decision made by Microsoft (as a response to the EU anti-trust case), others believe it will offer other browsers a chance, such as Firefox and Opera. However, how well this will go down with those who buy Windows 7 E remains to be seen.
Whether or not browsers can be bundled in by computer manufacturers isn't stated on the site, but as it states that media players can be bundled, then it is assumed so. However, for system builders and everyone else, there will be no "browser selection" upon finishing installation, as some speculated. Instead, users will have to go back to basics, and find something to store it on, or, alternatively, order a browser on a disk.
Source : http://www.neowin.net/news/main/09/07/15/how-to-install-a-browser-on-windows-7-e
Microsoft: new Vista PCs sold in EU can't upgrade to Windows 7
EU buyers of new PCs before 22 October will definitely not be able to upgrade to Windows 7 from Windows Vista, TechRadar has learned.
Instead these buyers will also be forced to perform a clean install of their OS, losing all their settings and potentially applications and data.
The unfortunate side effect has been caused by Microsoft's decision to avoid any further EU censure on Windows 7 by removing Internet Explorer 8 from the OS. Because Internet Explorer is so deeply integrated within Vista, it's not currently possible to perform an upgrade that removes IE.
The problem will affect all new PCs sold in the EU between now and the launch of Windows 7 on October 22nd. As we learned back in June, the retail version of Windows 7 E (Europe) has the same issue and there will be price concessions on the full version of the OS - at least until the end of the year.
TechRadar has heard from manufacturers (OEMs) who were told of the issue four weeks ago at a meeting with Microsoft. Having a large partner day isn't an unusual occurrence prior to such a release – they will have seen the Windows 7 RTM and will have been generally updated on information.
However, we have spoken to two system integrators who were at the meeting when all were told of the restriction – and that there was anger over the problem. No wonder; it will surely affect sales further during the traditionally poor pre-OS period for new PC purchases. And at a time when sales are down anyway due to the financial crisis.
What happens next?
Some OEMs are trying to provide solutions already with upgrade brochures, but TechRadar has also found that others seem blissfully unaware of the situation.
This is a problem partly of Microsoft's making – the EU actually didn't tell Microsoft to remove IE from Windows, simply to include an option of installing other browsers. Microsoft weren't so keen and took the drastic action of binning IE8, knowing full well that many OEMs will decide to install it anyway to make it easier for their customers.
Any EU appeal process could have delayed the launch of Windows 7 – an unacceptable situation for Microsoft.
So far, Microsoft has not been able to produce an upgrade process which would strip out IE, although a workaround may appear later in the year.
Microsoft may still be able to supply OEMs with Windows 7 discs with IE8 on them if they can gain an exemption to the ruling. That would be on the grounds that OEMs can simply choose to supply an easier upgrade path for their customers by actively choosing to install IE8.
EU approval would be needed for this and it's doubtful it would go through in time for the Windows 7 launch date.
Source : http://www.techradar.com/news/software/operating-systems/microsoft-new-vista-pcs-sold-in-eu-can-t-upgrade-to-windows-7-615757
Saturday, July 11, 2009
Having Windows as Default choice in Dual boot(Ubuntu & Windows)
When you install a dual-boot of Ubuntu, one of the frustrating things that you’ll immediately notice is that Ubuntu is now set as the default operating system in the Grub loader. There’s an easy way to switch back to using Windows as the default.
To make this change, you’ll first have to boot into Ubuntu, and then run the following command:
#sudo gedit /boot/grub/menu.lst
Find this section of the file:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify ’saved’ instead of a number. In this case, the default entry
# is the entry saved with the command ’savedefault’.
# WARNING: If you are using dmraid do not change this entry to ’saved’ or your
# array will desync and will not let you boot your system.
default 0
The important line is the last one(marked by red color). You will need to change that number 0 to match the Windows boot section. Typically it’s always going to be 6 on a default dual-boot configuration. Change this value to 6, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically. But if when you have restarted your computer, you see the wrong choice is the default choice, then it is just to count the numbers of the lines up to your favorite choice and then set that number as default :-)
Note: The blocks at the bottom of the file match the items in the menu. You can change this value to match whichever item you want as default, just remember that numbering starts at 0.
How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)
Original tutorial :
I have recently seen many posts from people trying to dual boot Ubuntu and Windows 7 beta, but not succeeding. So I tried it out myself and found a solution.
Index
1. Obtain a copy of Windows7.
2. Partition your disk with gparted.
3. Install Windows7.
4. Re-install Grub.
5. Edit Grub to List Windows 7.
6. Have Fun.
__________________________________________________ ________________________________
1. Obtain a copy of windows 7.
Official Microsoft Link - http://download.microsoft.com/downlo...FRE_EN_DVD.iso
*This Link Is Now DEAD Go to the Microsoft website and get your own download. Requires java*
*You can also find a torrent of this but for legal reasons I cannot provide a link. *
2. Partition your disk
**This does go wrong in some cases, if in doubt back up your valuable data.**
Boot from a Ubuntu live cd or a gparted live cd.
Start up gparted, If ubuntu is on the whole disk you need to re-size it by at least 8 gb for Windows 7. (Make sure windows 7 is on the second partition to make it easier for grub) You will be left with some unallocated space on your hard disk if you want you can partition it to NTFS or you can do it later on the windows install.
3. Install Windows 7
Follow the on screen instructions, Select the un-partitioned space to format and install windows on, or if you already made it NTFS choose your NTFS partition.
**It will ask for a product key but you have 30 days to do that. Note: Beta keys will work with the RC**
4. Re-install GRUB
Now you have windows 7 but it has completely eaten your boot loader so you need to re-install grub.
Boot from the Ubuntu live CD and go to terminal.
Type in terminal:
"sudo grub"
"grub> find /boot/grub/stage1"
That should return your Ubuntu partition in the form of (hdX,Y), use that:
grub> root (hdX,Y)
grub> setup (hd0)
grub> quit
(you don’t need to type the grub> bit)
That has re-installed grub but you can no longer see windows7
5. Edit grub.
Go to terminal from normal ubuntu and type :
“sudo gedit /boot/grub/menu.lst”
A large text file will open and at the bottom leave a line and add this:
title windows 7 beta (Loader)
root (hd0,1)
savedefault
makeactive
chainloader +1
(Do not type this line but if that does not work on re-boot try “hdo,0 or hd0,2” and so on until it works.)
Now that is done you can re-boot into windows 7 and ubuntu happily

******************Edit***********************
Hi
I have remembered that if you also have vista installed on your machine when you in install 7, that windows 7 will add itself to the vista bootloader.
So You will need to point grub to the vista partition so it will load the vista loader and give you the option for 7 and vista.
Also To work out what partition number your 7 partiton is use gparted it will give you results like "Windows 7 sda2" that means hda0,2 or if you have two internal hard drives than change the tab in the top right to the appropriate disk. Then take note of the sda2 but as it is on the 2nd drive it will be hda1,2. And so on..........
Source
Adding startup applications at Ubuntu
Friday, July 10, 2009
Intel collaborated with Google on Chrome OS
A representative confirmed this to us this morning.
He said: "We have been privy to the project for some time and we have worked with Google on a variety of projects, including this one. We welcome Google's move here."
The statement is likely to throw Microsoft into total panic. Intel and Microsoft were always "friends", but some have speculated they've always been enemies.

Intel put its weight behind a light weight operating system for netbooks, based on a Linux kernel, and called Moblin. Some had speculated that the Google move would throw Intel, as well as Microsoft, into disarray.
It seems not.
Now Intel has put its cards on the table, and it must be up to Microsoft to respond to the direct challenge.
Microsoft was unavailable for comment at press time. And could not be contacted for comment.
source
Thursday, July 09, 2009
Google Apps is out of beta (yes, really)
Ever since we launched the Google Apps suite for businesses two years ago, it's had a service level agreement, 24/7 support, and has met or exceeded all the other standards of non-beta software. More than 1.75 million companies around the world run their business on Google Apps, including Google. We've come to appreciate that the beta tag just doesn't fit for large enterprises that aren't keen to run their business on software that sounds like it's still in the trial phase. So we've focused our efforts on reaching our high bar for taking products out of beta, and all the applications in the Apps suite have now met that mark.
Gmail, Google Calendar, Google Docs and Google Talk — both enterprise and consumer versions — are now out of beta. "Beta" will be removed from the product logos today, but we'll continue to innovate and improve upon the applications whether or not there's a small "beta" beneath the logo. Indeed, today we're also announcing some other Google Apps features that we think will appeal to large enterprises: mail delegation, mail retention and ongoing enhancements to Apps reliability.
We have much more in store, and IT managers can read more about how to make the switch to Apps in our Microsoft Exchange and Lotus Notes resource centers. One more thing — for those who still like the look of "beta", we've made it easy to re-enable the beta label for Gmail from the Labs tab under Settings.

Google: Chrome OS will be free, with major PC vendors on board
In a follow-up post this afternoon, Google confirmed that its upcoming Chrome OS will be available free of charge. The company also listed some of the partners it has lined up to work with the new operating system -- including some well-known PC vendors.
The details further illustrate the potential for the new Google operating system to alter the competitive landscape for Microsoft Windows. Google said Acer, Adobe, ASUS, Freescale, Hewlett-Packard, Lenovo, Qualcomm, and Texas Instruments are among the early partners.
Google had previously hinted that Chrome OS would be available for free, and even before the confirmation this afternoon, that's what analysts were assuming. The idea isn't to make money off the operating system, but rather to help Google improve the Internet experience and deliver targeted ads, said analyst Mark Mahaney, a director at Citi Investment Research, in a note to clients earlier today:
"We neither expect the Chrome OS to generate material revenue near-term, nor do we expect Google's Chrome OS investments to materially impact its current cost structure. We wouldn't be surprised if Google gave the Chrome OS to OEMs for free, as they currently do with Android and their mobile partners. To be successful in selling an OS to full-powered PCs, Google would potentially need many large OEM partners, as well as a robust after-market support and services network, which would take significant manpower, $'s and possibly years to build out, in our opinion. This doesn't seem like Google's playbook."
Microsoft isn't commenting on the Google announcement. Google says Chrome OS will initially be targeted at netbooks when it debuts next year, but there's nothing to stop it from spreading to all sorts of computers. At the very least, the introduction of a high-profile, alternative operating system promises to give new Windows president Steven Sinofsky a major new competitor to wrestle with.
Sunday, June 28, 2009
Windows was unable to find a certificate to log you on to the network>MyNetwork
"Windows was unable to find a certificate to log you on to the network>My Network"That's caused by improperly setting the encryption to WPA-RADIUS instead of WPA-PSK on the client. The router and the client are both trying to find a RADIUS server with which to authenticate. Since you don't have one, it complains using Microsoft techno babble. Change the encryption to WPA-PSK (pre-shared key) on both ends.
Tuesday, June 23, 2009
Codec Pack for WMP
http://www.xpcodecpack.com/
This is a package of different codecs which will update your Windows Media Player to play different files(avi, ...).
Thursday, June 11, 2009
How to find out your Wordpress version
/wp-includes/version.php
contains :
$wp_version = '2.8';
$wp_db_version = 4593;
Wednesday, June 10, 2009
File Systems for Harddisk, which one to choose ?
Use NTFS if…
...you will be using the drive only with Windows 2000, Windows XP or Windows Vista (performance will generally be greater when compared to FAT 32). This file system is compatible in read only mode with Mac OS X 10.3 and higher. See technical note at left for information on the 2TB volume size limitation under Windows XP 32-bit and Windows 2000.
Use FAT 32 (MS-DOS) if…
...you will be using your drive with both Windows and Mac OS X 10.3 or sharing the drive between Windows 2000 and Windows XP or Windows Vista. Maximum single file size is 4GB.
source : Lace documentations on the RAID product
2TB limit on 32bits Windows systems
FAT 32
FAT is an acronym for File Allocation Table, which dates back to the beginnings of DOS programming. Originally, FAT was only 16 bits, but after the second release of Windows 95 it was upgraded to 32 bits, hence the name FAT 32. In theory, FAT 32 volume sizes can range from less than 1MB all the way to 2TB. It is the native file system of Windows 98 and Windows Me, and is supported by Windows 2000, Windows XP and Windows Vista. When FAT 32 is used with Windows 2000, Windows XP and Windows Vista though, volume size is limited to 32GB (by the Windows partition utility, i.e. Disk Manager), and the individual file size is limited to 4GB.
NTFS
This acronym stands for New Technology Filing System, and it is the native file system for Windows NT, Windows 2000, Windows XP and Windows Vista. NTFS offers several features that are not available with FAT 32; i.e. file compression, encryption, permissions, and auditing, as well as the ability to mirror drives and RAID 5 capabilities. The minimum supported volume size for NTFS is 10MB, with a maximum of 2TB when initialized in MBR format or without a limit when initialized in GPT format, with no limit to file size. Volumes created in NTFS can only be directly accessed (not through shares) by Windows NT, Windows 2000, Windows XP and Windows Vista without resorting to help from third-party products.
source : Lace documentations on the RAID product
Tuesday, June 09, 2009
Big O notation ...

Saturday, June 06, 2009
Returning Backspace as previous page button in Firefox @ Linux
The feature was removed to fix a bug. The bug that was caused by fixing the previous bug, which is that the backspace does not behave like it should has been fixed too (Thank heavens!)
But then, until the bug fix propagates to a Firefox build available on Ubuntu, one has to resort to a little scratching to fix the matter. Here’s how you resurrect the backspace button in Firefox 2.0 (worked for 3.o.10 today):
Type “about:config” in the address bar of Firefox and press Enter.
`Filter` for ‘browser.backspace_action’ and change its value to 0 (zero)
Thursday, May 07, 2009
Have your Google calendar @ your email client, Thunderbird
However it is possible to archive similar results using Windows, or Linux for free.
Being the owner of an Orange M600 Smartphone, and a Linux user, I spent a long time looking over the Internet, as the best way to get the information shared between my Desktop and my PDA phone. and although there are projects out there , SynCE springs to mind, they are not easy to setup.
So I thought i would look at a different way of resolving the issue.. As always, this is not the only way, its just my way.
Issue
- Cross Platform Calendar Connectivity Windows, Linux, Windows Mobile
- Easy to use
The key to my resolution is Google Calendar, which can be accessed easily enough, especially if you already have a gMail account. If however you don’t have a gMail account, you can create your self a Google Account here, which will give you access to the Calendar functionality. Its pretty self explanatory. Once this is setup, its time to look at your mail client, obviously you could just use google calendar, via the web browser in Windows or Linux, but it doesn’t display to well on a PDA.. Also the aim here, is to emulate some of the functionality of Outlook, which allows you to have access to multiple mail accounts in one location.The Email Client
The software I use is Thunderbird, Its my preferred Mail client, as i use both POP and IMAP based mail accounts, this mail client doesn’t however come with any built in calendar function, which is a reason, so many people berate it, and state that “calendar functionality is required before this app can move forward”. One of Thunderbirds strengths however, is, like its cousin Firefox, it works on a plugin system. That is, people have written third party modules, which can be used to enhance the functionality of Thunderbird. And I use 2 of these pluginfrom has an old version, Try downloading Lightening fromSetup The Plugins
Lightning Plugin for Thunderbird: http://www.mozilla.org/projects/calendar/lightning/
Google Calendar Provider: https://addons.mozilla.org/en-US/thunderbird/addon/4631Quite simply, Lightning provides a calendar interface for Thunderbird, its part of the Mozilla Sunbird project, and helps provide the Schedule interface which standalone Thunderbird is missing.Quote:
Note: The version of the google provider at this time, requires Lightning version 0.7 or higher, and may not work with the one in the Gutsy repository under add/remove, so use the link above to download the latest version.
The magic here, however is the Provider for Google Calendar plugin, which, unlike just adding the necessary links to Thunderbird, to access Google Calendard, not only provides read access, it provides write access as well..Sync the PDA
Install both plugins, and restart Thunderbird, you will then be shown, a Calendar in the left pane, this calendar has 3 tabs Agenda, Todo and Calendars. To setup Google Calendar, click on the Calendar tab.
Click on the New Button, in the Calendar Tab, and you will be given a choice, you need to select, On the Network. Click on Next, there is an option for Google Calendar, select this.
In the Text bar under the Google Calendar you will need to enter the Link URL which allows you to write to your Account, you can find this, buy logging into the Google Calendar account you created earlier.
Create a new Calendar, or if you already have a celedar created, click on the down arrow next to the calendar. And click on Share this Calendar.
You will be taken to a new page, where you will need to click on Calendar Details on the top of this page.
Then Select the XML button, next to the Private Address, this will allow you the read/write access to the calendar, if you need read only access, or wish to share calendards with read only access, use the XML button next to the Public Tab.
When you click on the XML button a URL will be displayed (i’ve edited the whole strin below for security reasons) Copy this URL , and paste it into the Thunderbird Text box, then click on Next.
Give the Calendar a name which you will use in Thunderbird to identify this calendar, and choose a colour, this is the colour which will identify your Google Calendar, if you are using multiple calendars. Then CLick on Next and then Finish.
You will then see your calendar listed as available. you should now be able to add an event in either Thunderbird, or the wEb Interface, and both will update to show the events. You can set reminders, repeat events, and all the usual type of Schedule details.
The next step is to sync the Calendar with the PDA, this is done using the GMobileSync app for Windows Mobile or Smartphones. it requires .NET CF 2.0 which is available for download from the site, and provides not only read access to they Google Calendar, it also provides write access. This means as well as having PDA based access to your existing schedule, you can provide updates from your PDA to your calendar too. The application requires your login ID and password for the Google Calendar site. and works as far as i’m aware over both Wifi and GPRS networks, however i will confess, with UK prices as they are for Data over GPRS i’ve only tried Wifi. The Sync is a manual operation, and not automatic (yet)Final Thoughts? So what do we have? quite simply a free, Open source based Mail and personal schedulling system, which can be accessed, over muliple platforms, Windows Mobile, Windows and Linux (not sure about OSX). Providing access to multiple mail accounts, using POP or IMAP. Read/Write Calendar access on Desktop, Laptop or PDA.. There is also ToDo list functionality available. and all this can be accessed via a Web Interface. Now thats value for money.. Now if i could get this working with Open Xchange as well… bye bye M$ Exchange..
Source
Monday, May 04, 2009
Limitation in Thunderbird
If you are going to send one email to multiple addresses with one click, you can add all the addresses seprated by comma(,) in one address line and there will be no problem. But there are limitations. Here is Thunderbird official website explaination :
There appears to be a limit of approximately 60 addresses when sending messages if you enter each address separately. However, if you use lists (mail distribution lists) for most of the addresses any limit is imposed by whatever SMTP server you use.
You can receive messages sent to multiple addresses in the same mailbox. Any limitations would be due to your e-mail provider.