Tag Archives: programming

Set your own date format in MySQL

Use DATE_FORMAT in MySQL to create your date strings formatted however you like: SELECT CONCAT(YEAR(res_hotel_booking_bookings.created),’-‘,DATE_FORMAT(res_hotel_booking_bookings.created,’%m’) ,’-‘,DATE_FORMAT(res_hotel_booking_bookings.created,’%d’)) AS creationDate, Count(res_hotel_booking_bookings.id) As reservationsMade FROM res_hotel_booking_bookings WHERE res_hotel_booking_bookings.created >= ‘2013-10-15 00:00:00’ AND res_hotel_booking_bookings.created <= ‘2013-10-17 24:00:00’ GROUP BY YEAR(res_hotel_booking_bookings.created), MONTH(res_hotel_booking_bookings.created), DAY(res_hotel_booking_bookings.created) ORDER BY creationDate DESC There are more concise ways to do this, but this was adapted from an earlier method that used CONCAT so I stuck with that… 🙂

Really good iOS apps: example 1 [Wild Fables]

Developing an iOS app is not that hard. Developing a good iOS app is surprisingly hard. It is always nice to see a developer doing things right and really creating a valuable app for the end user. Therefore I was very happy to come across some good coding tips here: How to Write an iOS App That Uses a Web Service | Ray Wenderlichhttp://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-serviceIn this tutorial, you’ll get hands-one experience with using web services, by writing an iOS app that communicates

Building a random name generator

Last night I had fun building a  little random name generator for my friend Adam and my wife. They both write and sometimes it is difficult to come up with names for characters, that is where the new tool comes in handy: Character Name Generator Every time you refresh the page you get a new name 🙂 I used to code a lot of fun little projects like this but lately I have not made time for it. I do

Google Refine: a Few Sample Transformations and Helpful URLs

Google Refine is a powerful tool to help cleanup data from a variety of sources. I’m gradually becoming more familiar with it and the powerful transformation tools that it offers. Here are: a few sample transformation expressions, and… sample data the result “=” after the transformation is applied The first example provides labels and explanations, the rest of the examples omit the labels and explanations but follow the same syntax. I hope these are helpful to you! NOTE: there are