12 Apr '13, 6pm

So, the developer of the currently shut down Bitcoin-24 exchange asked this question last month: #amateur

I have some question ... example: a user will buy something for his USD Check his USD Balance Deduct the USD from his account Make an Order -> order queue user becomes his item and the other one becomes his USD Lets say, the users makes 5 requests in the same second (very fast). So it is possible (and happen) that 5 requests are running. He has only money to buy only from 1 request. Now the requests are so fast, that the script checks his balance, but is not so fast, that it deduct the money from his account. So the requests will pass two times! How to solve it? I use LOCK in mysql before I start the process: 1. IS_FREE_LOCK - check is there a lock for this user if not -> 2. 2. GET_LOCK - sets the lock 3. make the order / transaction 4. RELEASE_LOCK - releases the lock But is does not really work. is there another way? function lock($id) { mysql_query("SELECT GET_LOCK('$id...

Full article: http://stackoverflow.com/questions/15026825/php-mysql-how...

Tweets

How to prevent theft by bad contractors

fashion-incubator.com 11 Apr '13, 11pm

How to prevent theft by bad contractors Posted by Kathleen Fasanella on Apr 11, 2013 at 4:43 pm / Contractors , Operations...

Intelligence Budget Requests for 2014 Disclosed

fas.org 11 Apr '13, 3pm

Intelligence Budget Requests for 2014 Disclosed April 11th, 2013 by Steven Aftergood Some $4 billion is being cut from the...

Bitcoin Starts to Tank Again after Top Bitcoin ...

thenextweb.com 11 Apr '13, 10pm

Here we go again. Following yesterday’s Bitcoin crash , the top exchange for the digital currency Mt. Gox decided to tempo...

Please help with Google Rank question(moving Do...

forums.seochat.com 13 Apr '13, 4pm

I've asked on many other message boards about my question but never get reply's and google hasn't replied yet either. I ho...

DDoS cripples Bitcoin exchange Mt. Gox after tr...

news.cnet.com 12 Apr '13, 5am

Update at 6:15 a.m. PT Friday: Bitcoin's tumble continued after trading resumed. As of now, the digital currency is tradin...

Bitcoin exchange Mt. Gox taken offline yet again by ‘stronger than usual’ DDoS attack

Bitcoin exchange Mt. Gox taken offline yet agai...

venturebeat.com 12 Apr '13, 5am

Leading Bitcoin exchange Mt. Gox has been knocked offline in another distributed-denial-of-service (DDoS) attack just hour...

Biggest Bitcoin Exchange Halts Trading After Price Plummets: The Bitcoin economy shed a billion dollars overni...

Biggest Bitcoin Exchange Halts Trading After Pr...

spectrum.ieee.org 11 Apr '13, 9pm

For the last month, Bitcoin has been growing fat on the vine, like an over-watered grape in July. But the fun is now over....