PROBLEM I mainly bought it to for programming and work but it seems that sometimes it becomes unresponsive and laggy, I have to restart it and it goes back to…
PROBLEM: I want to connect my desktop gpu R9 390 to my Dell 5520(I have this GPU in my desktop PC, so I’m using it for test). I’m using EXP…
PROBLEM: My ultrabook Acer Aspire S7 wont turn on. Both of the LED’s are shining blue, but it doesnt react on anything. I was using it normally everything was working,…
PROBLEM How to cancel/abort jQuery AJAX request? SOLUTION :1 jQuery Ajax methods return an XMLHttpRequest (or the equivalent) object, so we can use abort(). abort Method (MSDN)- Cancels the current…
PROBLEM: How to Modify the URL without reloading the page? SOLUTION 1: Updating address bar with new URL without hash or reloading the page Example: [pastacode lang=”javascript” manual=”%20function%20processAjaxData(response%2C%20urlPath)%0A%7B%0A%20%20%20%20%20document.getElementById(%22content%22).innerHTML%20%3D%20response.html%3B%0A%20%20%20%20%20document.title%20%3D%20response.pageTitle%3B%0A%20%20%20%20%20window.history.pushState(%7B%22html%22%3Aresponse.html%2C%22pageTitle%22%3Aresponse.pageTitle%7D%2C%22%22%2C%20urlPath)%3B%0A%20%7D%0A%0A” message=”javascript code”…
LC_ALL=C: LC_ALL is the environment variable that overrides all the other localisation settings (except $LANGUAGE under some circumstances). Different aspects of localisations (like the thousand separator or decimal point character,…
PROBLEM: When a PHP application makes a database connection it of course generally needs to pass a login and password. If you are using a single, minimum-permission login for my…
PROBLEM: When downloading a JSON file from an online source and it runs through the loop getting this error: Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\temp\fetch.php…
SOLUTION :1 We generally use when working with transactions looks like this (semi-pseudo-code): [pastacode lang=”sql” manual=”try%20%7B%0A%20%20%20%20%2F%2F%20First%20of%20all%2C%20let’s%20begin%20a%20transaction%0A%20%20%20%20%24db-%3EbeginTransaction()%3B%0A%0A%20%20%20%20%2F%2F%20A%20set%20of%20queries%3B%20if%20one%20fails%2C%20an%20exception%20should%20be%20thrown%0A%20%20%20%20%24db-%3Equery(‘first%20query’)%3B%0A%20%20%20%20%24db-%3Equery(‘second%20query’)%3B%0A%20%20%20%20%24db-%3Equery(‘third%20query’)%3B%0A%0A%20%20%20%20%2F%2F%20If%20we%20arrive%20here%2C%20it%20means%20that%20no%20exception%20was%20thrown%0A%20%20%20%20%2F%2F%20i.e.%20no%20query%20has%20failed%2C%20and%20we%20can%20commit%20the%20transaction%0A%20%20%20%20%24db-%3Ecommit()%3B%0A%7D%20catch%20(Exception%20%24e)%20%7B%0A%20%20%20%20%2F%2F%20An%20exception%20has%20been%20thrown%0A%20%20%20%20%2F%2F%20We%20must%20rollback%20the%20transaction%0A%20%20%20%20%24db-%3Erollback()%3B%0A%7D%0A” message=”jQuery Code” highlight=”” provider=”manual”/] [ad type=”banner”] Note that, with this idea, if a query…