Quantcast
Channel: Adam Zwakk » Coding
Browsing latest articles
Browse All 10 View Live

AdamZwakk Labs

I started a “lab” of all my personal coding projects on one page. You can see it here

View Article


BTAARETI: “Web Services”

I’m starting a new “segment” called “Buzzwords that are actually really easy to implement”. There’s a LOT of misconceptions out there about stupid buzzwords that mean absolutely nothing, or sound super...

View Article


Snippet: Get the next and previous MySQL row via ID

This can be handy to create some previous/next links for different page entries. Previous ID SELECT * FROM foo WHERE id = (SELECT MAX(id) FROM foo WHERE id < '.$id.') Next ID SELECT * FROM foo WHERE...

View Article

The best way to run IE on a Mac

I use a Mac primarily for development. Mostly because I got pulled into making an iOS app (and Apple won’t let you develop on any other platforms than theirs for that, of course), but I really started...

View Article

Query of the day: Meal Times

I have a table like this: id name starttime endtime 1 Breakfast 01:00:00 11:00:00 2 Lunch 11:00:00 16:00:00 3 Dinner 16:00:00 23:00:00 This query will figure out which time range the current time fits...

View Article


Use Media Queries in IE6+

Recently I had to use Media Queries to handle a responsive site so that it could be viewed in mobile. I really didn’t want to redo it all so it would work in IE, so I found this amazing time saving...

View Article

Login remotely to a MySQL server through terminal

You don’t need SSH access, just use this command: mysql -h db.server -u user -p dbname You’ll need mysql installed on your machine to run it. If you’re on a Mac, you can install mysql through homebrew...

View Article

Snippet: Remove item from Array in PHP

To find the string ‘foo’ inside the array $array and remove it, you can do this. unset($array[array_search('foo', $array)]);

View Article


Titanium: Application Installer abnormal process termination Android solution

Just want to post a solution to an error I was getting when I was trying to build my Titanium app for Android. I always got this error [ERROR] Application Installer abnormal process termination....

View Article


Snippet: Group By with Collections in BackboneJS

Here’s a way to group your collection data via exact attribute values using BackboneJS and UnderscoreJS. this.categories = _.groupBy(this.collection.models, function(row) { return...

View Article
Browsing latest articles
Browse All 10 View Live