Posts

Showing posts from 2010

Google South Africa's Telephone Number

Are you tired of searching for Google South Africa's contact details? You are pretty sure that their office is on the corner of Main Road and Sloane Street , but more than that, you just don't know. Well, @StewartMoss managed to dig up their telephone number - after first having to call Google UK and Google Kenya! So, directly from the Kenyan horse's mouth, here it is: Google South Africa's telephone number: +27-11-575-6000 Apparently, according to the receptionist, they "don't accept calls." So, there you go. You now have a telephone number for Google South Africa. I hope that you have better luck being put through to talk to someone than Stewart did. Thank you for this information and for calling Google UK, Kenya and South Africa Stewart, you rock!

Galactic Inbox: An HTML5 game inspired by Gmail - Official Gmail Blog

Galactic Inbox: An HTML5 game inspired by Gmail - Official Gmail Blog An interesting very cool game by Paul , a Google employee. Check it out! You can also follow Paul on Twitter .

HOWTO: Stay Motivated

This section was taken from Robert L Read's How to be a Programmer: A Short, Comprehensive, and Personal Summary ( direct link to the specific section .) How to Stay Motivated It is a wonderful and surprising fact that programmers are highly motivated by the desire to create artifacts that are beautiful, useful, or nifty. This desire is not unique to programmers nor universal but it is so strong and common among programmers that it separates them from others in other roles This has practical and important consequences. If programmers are asked to do something that is not beautiful, useful, or nifty, they will have low morale. There's a lot of money to be made doing ugly, stupid, and boring stuff; but in the end, fun will make the most money for the company Obviously, there are entire industries organized around motivational techniques some of which apply here. The things that are specific to programming that I can identify are: Use the best langu

A Way to Handle Raised Errors in Both Dynamic and Static SQL Code

If you've needed a reliable way to handle errors that might be raised in both dynamic and static SQL code, here is what I've been doing: SET   ANSI_NULLS   ON GO SET   QUOTED_IDENTIFIER   ON GO -- ============================================= -- Author:      Erland Sommarskog - http://www.sommarskog.se/error_handling_2005.html -- Create date: 2009/11/29 -- Description: **Call this sp from within your --              CATCH block** This --              reraises/throws the most recent --              error. Please see --              http://www.sommarskog.se/error_handling_2005.html --              for more details. -- -- Modifications: -- Author:      A. Jackson -- Create date: 2010/03/11 -- Description: Renamed the sp from --              "error_handler_sp" to --              "dba_Error_Handler" to conform --              to naming conventions. --            : Documented this sp. --            : Enhanced SQL readability. -- Author:

HOWTO: Quickly and Efficiently Get An IEnumerable of Directories and Files

Have you ever wanted to get an IEnumerable of files and directories and had to either make do with or convert from an Array because the System.IO namespace didn't provide methods of doing this? In .NET 4 you can do this quickly and efficiently. Check out the MSDN documentation here .

HOWTO: Find out the Sizes of All the User Tables in a Database in SQL

Do you need to know the sizes for all the user tables in your database? I found this script by Mitchel Sellers, an SQL Server MVP ,  to be very handy. I've modified it slightly, but you can get the original on his blog . Thank you Mitchel for allowing me to post this here. Please excuse the poor formatting, I am working on finding and implementing a decent code formatted for both SQL and C#. SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author:            Mitchel Sellers - mitchel.sellers@gmail.com -- Create date: 2007/06/27 -- Description: Obtains spaced used data for --                            ALL user tables in the database. --                            This does not update the space --                            usage information - implicity --                            running DBCC UPDATEUSAGE on the --                            database - as recalculation has --                            

HOWTO: Generate a Random String of Characters in SQL

Here's a stored procedure to generate a string of random characters. This is useful when, for example, one needs to generate a random password. Please excuse the poor formatting, I am working on finding and implementing a decent code formatted for both SQL and C#. Thanks to  Raymond Lewallen  over at CodeBetter.com SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author:            Raymond Lewallen --                    http://codebetter.com/blogs/raymond.lewallen/archive/2005/05/17/63281.aspx -- Create date: 2005/05/16 -- Description: Generate a random string of --                            given length. --                        : Everything is self-explanatory. --                        : Right now max length is set to --                            100. So anything between 1 and --                            100 will work for a length. --                        : If you specify a --