This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
it is just we have shift our server from windows to linux. and we got some problem in our application. May be that was our mistake that we code like windows environment or wrong coding practice. that's i want to find.
but still we are using windows to code ? should i ?
I work on java technology.
The problem are,like :
During writing on files "-" is treated as " â€“ " .
ResultSet Closed which is working fine on widows..
These are some programming issues. but works fine on windows.
So *nix is better solution for avoiding such mistake.?
Joined: Sep 21, 2011
Might be an encoding problem. Windows and Unix use different platform default encodings, so if there's an operation somewhere where the code relies on that (by not specifying the encoding), there might be trouble.
Neeraj Dhiman wrote:During writing on files "-" is treated as " â€“ " .
Where did you get the dash? If someone did a copy-and-paste from a Word document, then the dash is not a dash (ASCII 0x2D) but is rather some other character. And yes such characters can cause unpredictable results. Ditto for single and double quotes. I recently corrected a number of Java sources where comments were copied from Word documents; the resulting Java sources compiled just fine under Windows but gate the OpenJDK on Linux fits.
. . . and a dash (- = -) is < 0x80 (=128), so it is a plain ASCII character. Even a Windows®/DOS command line can display that. There is something wrong if it displays as â€. Are you sure you are using the ASCII (\u002d) version?
As has already been said, this is probably an encoding issue. I'd say you should find and correct the issue, rather than switching to Unix just because of that.
If you want just to be able to test your application on Unix, you might consider VMWare Workstation or some other virtualization technology (maybe a free alternative exists). We're doing exactly that - developing on Windows, deploying onto Linux; we've got Linux in a VMWare for testing and packaging.
It is really a good suggestion for using *nix . i have little bit experience on Linux in my college time but its not enough.
So its time to learn some think like this side by side.
its a really a valuable suggestion.
Which Linux is a question that can only be answered over lots of beers and a fair amount of pizza.
A few years ago, I'd answer "Ubuntu" but I hate "unity" their GUI. So I'd recommend Linux Mint.
I run Debian on most of my Linux boxes, but Mint and Ubuntu are more user friendly.
The strongest recommendation that I can give is:
Use the distro that your buddy uses, so you can buy him/her a beer when you need help.
All other differences are minor.
Joined: Oct 13, 2005
If you think Unity is bad that means you have never tried Gnome3! At least with Gnome3 there are some tweaks to turn it back into a desktop. And googling, I have just found there may be ways to tweak Unity.