Archive | Programming RSS feed for this section
c-sharp-nullreferenceerror

C# – NullReferenceException with TableAdapter and Scalar Values

Ok, I’ve been hacking around this particular problem for a month now, but think I’ve got a bead on how to stop it. So, I hope this helps someone! The Situation I’ve got a TableAdapter in C# and I’m using a Query to return a scalar value that ultimately becomes a double data type. The [...]

Read full story Comments { 0 }
sqlite

iOS – FMDB is THE End to Your SQLite Nightmares

When you’re writing apps for iPad or iPhone, you’ve got a couple of options for you database solutions.  By far the best options (if it fits your app’s data needs) is Apple’s own Core Data which can use SQLite as it’s database store.  Core Data is fast, efficient, an object store, and provides some great integration [...]

Read full story Comments { 4 }
ios

iOS – Get the NSIndexPath for a UITableViewCell by Row and Section

Here’s a newby tip for iPhone and iPad developers…I am noob too I was trying to build an indexPath based on a row # and section, but none of the constructors I tried seemed to work…stuff like indexPathWithIndex: or indexPathWithIndexes:length. Back to the class reference for more reading. I found the answer in the NSIndexPath [...]

Read full story Comments { 0 }

WordPress – Tips on Creating and Updating Tables with dbDelta

One of the reasons I LOVE WordPress is that it makes some mundane programming chores very easy, particularly working with the database. WP uses a modified version of the ezSQL to interact with the database, and provides a number of data cleansing functions, both of which are huge time savers. One other thing that WP [...]

Read full story Comments { 0 }

Geek out: Programmers and Holidays

A friend of mine shared this little joke…some of you may appreciate it Why do programmers confuse Halloween and Christmas? Click for answer Because: OCT31 == DEC25 Tweet it if you got it! Cheers, Byron

Read full story Comments { 1 }
PHP – Sort a Multi-dimensional Array by Value for a Key

PHP – Sort a Multi-dimensional Array by Value for a Key

Here’s a problem I’ve run into a time or two with sorting arrays. I had a multi-dimension array that I needed to sort on a the values for a specific key (“name” in this case). This array is similar to what you would get back from a mysql database query when you use ARRAY_A to [...]

Read full story Comments { 1 }

WordPress: Code Formatting Plugin for your Blog

Sometimes my Googling skills are not what they ought to be.  I searched high and low for a code formatter for this blog, but for some reason I couldn’t come up with the search terms.  Seriously, in the real world, only a demented nerd would drool over the code presentation on other people’s blogs…but there [...]

Read full story Comments { 1 }