Formatting Timestamps in Drupal

Most data dealing with times and dates is stored as a as a standard Unix timestamp in Drupal. Examples of this are the node creation and revision dates, or the user creation, login, and access dates. If you access this data directly from the database you will retrieve this highly illegible timestamp. Good thing that Drupal provides a function for formatting dates: format_date().

Adding Links in Drupal with the l() Function

In Drupal you should know that you never want to hardcode a local URL into your nodes or blocks. Firstly as your site expands the node may show from places you do not currently imagine thus breaking your paths. Secondly if you try to bypass this by using a full/direct URL, you are going to be up shit creek without a paddle when you migrate the URL. The link l() function should be used for adding links so that manipulations, like localization and URL determinations, can happen on the output.

I can't Tab in Safari or Control+Option+Tab

As a Drupal developer and Mac fanatic, I find myself frequently entering scripts into textareas in Safari. I also like my code to be well formatted with the proper amount of tabs for indents. If you found this post than you probably are also frustrated with the fact that the tab key is reserved for switching focus between onscreen widgets. Two or Four spaces is a common alternative to the tab for scripting, but once I start counting to 12 while pushing the space bar, I get a little antsy. So today I put on the hardhat and did a little experimenting on how to create a tab in Safari.

Pancakes, the Sunday Stack

Stack of PancakesStack of Pancakes Being hungry for pancakes here in Prague led me to do an internet search for recipes. Every Sunday, and on random weekdays, I have been turning out batches of flapjacks for the family. I have now settled on the perfect recipe, that I am proud to say involves a bit of my own tweaking, and thus I feel as if this recipe is actually mine.

This pancake recipe makes six plate sized cakes and twelve if you double the amounts of all the ingredients. I have done my best to make the instructions as detailed as possible, but if you want to cut to the chase you should: mix the dry together, mix the wet together, mix the wet into the dry, fry.

Czech Lesson 2.4 - Location Words and Genders

For this session I am going to list a number of locations and the gender of the word. When using the locative case, the gender of the location must be determined to proper declenate the location properly. Please see the Locative Case Quick Guide for more information on how to properly declenate these location words by gender.

  • škola : school (Feminine)
  • divadlo : theater (Neutral)
  • pošta : post office (Feminine)
  • moře : sea (Neutral)

The Inferno (Signet Classics)

Scientific, humorous, political and moralistic; Dante puts it all into one little book. It is really worth reading once, so you can know which ring of hell to assign all the bastards you meet out there! For instance: with the current housing bubble crisis, the usurious lenders are assigned to the seventh circle, a desert of flaming sand with fiery flakes raining from the sky. :)

Connect your Mac and your Garmin 405

Garmin finally released Mac support for their Garmin ANT USB Stick. I have had my Garmin Forerunner 405 for sometime and have been eagerly awaiting this. I decided that I would also write down the steps it took to get my watch to sync with the computer and to use it with Garmin Connect.

Czech Lesson 2.2b - Locative Case Quick Guide

As a final followup on the previous two posts, I have generated a small list that gives the general rules to apply to each genders nouns when in the locative.

Czech Lesson 2.2 - Locative Case Continued

Today's lesson continues with the locative case. I am simply going to expand upon the previous post filling out more of the list of locative example sentances with the neutral and masculine gender.

The Czech language uses the locative case to denote location (for eample: v České Republice/in the Czech Republic) and may also be used after certain prepositions with meanings other than location (for eample: o Praze/about Prague, po revoluci/after the revolution).

Czech Lesson 2.1 - Locative Case

The Czech language uses the locative case to denote location (for eample: v České Republice/in the Czech Republic) and may also be used after certain prepositions with meanings other than location (for eample: o Praze/about Prague, po revoluci/after the revolution).

For my examples I will use 'v/ve' and 'na', which translate roughly as 'in' and 'on'.

Syndicate content