I needed to write a script today that used grep to exclude particular words and phrases from my command results. Turns out it’s quite simple.
Here’s an example:
# netstat -tapn | grep -v ’220.127.116.11\|192.168.0.2\|some text\|some other text’
As you can see, each exclusion term is encapsulated (escaped) by the backslash and there is a pipe (OR operator) between each set. The results that will be excluded in my example above are: 192.168.0.1, 192.168.0.2, some text, some other text.
It looks like Research in Motion has done it! Break the 100k app mark for BB10, that is.
Last week, Research in Motion reported that during the two days the Blackberry 10 port-a-thon ran that there were 15,000 submissions. Today, Alec Saunders, VP Developer Relations at Research In Motion announced that, over the last day and a half, developers have submitted yet another 19,000 apps (19,071 to be exact) for BB10′s pre-launch. That brings the total to 34,000 from the port-a-thons alone, meaning there could be as many as 104,000 apps available by the January 30th launch date of the Blackberry 10 operating system.
A date for the new Blackberry Z10 phone has not been officially released yet, but dates as early as the end of February have been reported.
While I’m not a huge user of apps myself, this bodes well for RIM as they attempt to compete with Microsoft’s Windows Phone (by app count, BB is obliterating MS) for third position in the market behind iPhone and Android. RIM has mostly focused on the business user, which they have done a very good job of, but they’ve lost a lot of ground over the last few years as their products have become stale. From everything I’ve seen, BB10 is shaping up to be not only the greatest business phone operating system ever, especially for BYOD businesses, but with BB10′s Balance (basically two completely sand-boxed yet simultaneously-accessible BB10 instances on a single phone – 1 business and 1 personal), the consumer market is sure to take up the devices.
For the past few years many businesses, analysts, and consumers have written Blackberry off. Especially with very little new being produced over the last year and a half. It seems that all RIM’s time and effort has been put into BB10, which has been delayed quite some time; but for the better in my opinion. Releasing a half-assed phone/OS would have certainly meant the demise of the Blackberry. All the extra time and effort that they’ve put in to make things just right is really shaping up to have been the right move.
Personally I’ll be waiting for the QWERTY edition phone as I love having the physical feedback that a physical keyboard provides, but from all the videos I’ve seen of the touchscreen version, BB10′s on-screen keyboard looks like it’ll allow for faster typing than any other keyboard ever created.
In other news, I have surpassed the 1-year mark of developing my video game, Super Space Trooper. Be sure to check that out. I’m hoping to have it completed in five months and launched on the PlayStation Network another three months after that. There’s no word yet on whether or not Unity3D’s gaming engine will be ported to BB10, but if they do port it you can be sure I’ll be releasing Super Space Trooper to that platform as well.
Just a quick note about PHP’s mysql_real_escape_string() function. Basically the function will remove possibility of visitors throwing binary data or other exploits into your forms etc on your website. I recently had a problem figuring out why my mysql_real_escape_string($variable) was null. Silly me, I didn’t even think about the fact that the MySQL database connection must be made first, as in before the mysql_real_escape_string() function can be used.
So if your mysql_real_escape_string() is not receiving any data, make sure you’re connecting to the MySQL database first and then using the function.