data-loss

Losing data with jQuery.data()

I'm working on a utility web app that to help manipulate some domain-specific XML data. The flow goes like this: Load XML file Parse XML file using the browser's native XML objects (not jQuery!) and convert into JavaScript object. Store resulting object using $(document).data() Iterate through object and extract additional information...

Java: BufferedReader reads more than a line?

Hi, I'm making a program in Java with Sockets. I can send commands to the client and from the client to the server. To read the commands I use a BufferedReader. To write them, a PrintWriter But now I want to transfer a file through that socket (Not simply create a second connection).First I write to the outputstream how many bytes the ...

Strange git case - git stash followed by git stash apply lost uncommitted data?

I have a file, let's say file.txt I have done git mv file.txt to file1.txt, then I created a new file called file.txt and worked on it. Unfortunately I didn't add that file to git yet. Anyway the problem is that I did git stash, then git stash apply, but the new file.txt disappeared... anyway to get it back? ...

RAD Studio 2009 Ctrl+Z Buffer Corruption Bug

Now this has happened to me twice this week alone: when I press Ctrl+Z a number of times in RAD Studio 2009, the editor buffer gets corrupted. The current and nearby lines get filled with nonsense data, and sometimes a breakpoint is created (autobugically). And there is a EAccessViolationin the IDE, which then terminates. All unsaved cod...

Session data lost between pages PHP?

I am making a news add form using post method. In the second page i make data validation. I define the variables like $message = $_POST["message"] and after that $_SESSION['message'] = "$message"; after that I echo the session var and everything look fine the data appear. And when I click to send which go to another page to add the data ...

iPhone: Document dir data does not survive a hard reset.

I have just uploaded my app and it was accepted. To my horror, I now discover that if I hold down the top right button for some time, to turn iPhone off and then repeat that to turn it on again (i.e. a hard reset), the contents of Documents has vanished. ...