This short block of PHP code takes a SQL script and removes the “dash-dash” and “/**/” comments from it. Of course, many languages, including PHP itself, use the “/**/” comment style so this could apply to PHP scripts, as well. The line that removes the dash-dash style comments could easily...
Technology
Having to sift through a large directory to get the latest file can be tedious. Surprisingly, I’ve needed this twice in the past month, so I figured I should post it. I hope this helps someone.
CamScanner is a free Android app that takes photos of documents, automatically crops the photo, enhances the photo, saves it, categorizes it, tags it, converts it to PDF, and uploads it to your cloud. And CamScanner does it well. The quality is as good as (or better than) a normal...
SAN FRANCISCO (Reuters) – A federal judge on Thursday refused to dismiss most of a lawsuit against Google Inc over allegations the company improperly scanned the content of customers’ emails in order to place ads. U.S. District Judge Lucy Koh in San Jose, California ruled that the proposed class action...
Do transactions apply in dynamic SQL, in SQL Server? In a word, yes. For proof, run the following chunks of code:
Electronic “government”* spying has been occurring for decades. Recently, it has become a hot-topic because of Edward Snowden’s whistle-blowing. The news of this, however, is not a new thing. There has been warrantless wiretapping, NSA spying, and all sorts of communications databasing happening since W. Bush was the ostensible “leader”...
Occasionally, while “surfing the web”, I get this annoying error message. It comes up for Facebook, Google, and today, Vimeo. The error message looks something like this: Invalid URL The requested URL “/video/67664300”, is invalid. Reference #9.8cc21508.1251069229.0 There is no obvious reason or fix for this that I found, until...
Finding a quick PHP function for date difference was painful. Now that I found it, here’s the quick easy way. This site was a great help: http://www.phpf1.com/tutorial/php-date-difference.html
Finding a quick PHP function for date difference was painful. Now that I found it, here’s the quick easy way. This site was a great help: http://www.phpf1.com/tutorial/php-date-difference.html
In an effort to get myself out of cloud storage and retain my privacy, I have decided to move my digital life back onto a flash drive. My problem is that I don’t want to pay for it. My goal? Get a nice flash drive without touching my everyday budget.