Your Ad Here

Blackberry Flip Phone!

Digg This Story

Research in Motion has finally decided to make the step into the mainstream with their first ever flip phone! Codenamed the “Kickstart”, it is expected to be released before the end of 2008. It has everything you would expect from a next-gen flip phone: Included camera, bluetooth, bright colorful display and external display. Navigation will still be done with the trademark trackwheel introduced with the Blackberry Pearl. Photos are courtesy Boy Genius Report.

Rate this:
2.5

Tags:, , , , , ,

Digg This Story

header, section, article, footer and html5

Digg This Story

HTML5 introduces new tags that make a lot of sense. No longer will each divison of a page need to be speculated as to its purpose; the new tag names have it built right in. I’m going to take a look at what these two tags mean, and how to implement them. Note: This article will be written based on current drafts, and implementation and definition are subject to change.

Header: The <header> tag defines the header of a section or document.

Section: The <section> tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

Article: The <article> tag defines external content. Such as a news article from an external news provider, or text from a web log (blog), or text from a forum. Or any other content from an external source

Footer: The <footer> tag defines the footer of a section or document. Typically contains the name of the author, the date the document was written and/or contact information.

It all seems pretty self explanitory. As of now, an overly simplified version of a blog layout may look like this:

<div id = "header">Blog title, blog links, and so on </div>
  <div id = "content">
    <div class = "post" id = "1">Post content</div>
    <div class = "post" id = "2">Post content</div>
    <div class = "post" id = "3">Post content</div>
  </div>
<div id = "footer">footer content, links, copyright</div>

This, of course, is not the complete page, but you get the idea. Once html5 is adopted, it will appear more like this:

<header>Blog title, blog links, and so on </header>
  <section id = "content">
    <article id = "1">Post content</article>
    <article id = "2">Post content</article>
    <article id = "3">Post content</article>
  </section>
<footer>footer content, links, copyright</footer>

That doesn’t seem so hard. In fact, I bet I could “upgrade” an entire WordPress theme in about an hour to html5 syntax. What does this mean for developers? Well, the truth is, absolutely nothing right now. HTML 5 is not supported in current browsers, and probably won’t be for some time. Opera 9.5, Firefox 3, and Safari 3.x include a handful of html5 features (namely the canvas element), but none of these tags above.

What it means for the future, is simply web pages that make more sense; easier readability. Also, with the same content, there are 30 less characters that needed to be typed. 30 bytes times 1000 means 30 megabytes of bandwidth saved per thousand page loads. This will also mean cleaner and easier to read stylesheets. Overall, pages like a standard blog page will just be much more efficient. This is great news for developers and end users alike.

Sources: http://www.w3schools.com, http://blog.whatwg.org/, http://www.w3.org/html/wg/html5/

Rate this:
2.5

Tags:, , , ,

Digg This Story

Put Ads on Top of Your Ads - Adbrite Ad Network

Digg This Story

I’ve used many different ad networks, and even if you have a favorite… you should get on the Adbrite bandwagon. If you’re making.. say… 10 bucks a day with Google Ads, awesome! You should still use Adbrite. It’s genius.

You tell Adbrite how much you’re making, you plug in the code from your favorite ad network, and if Adbrite has better (read: more profitable) ads to display, it will. Otherwise, your regular ads display as if Adbrite never existed. Basically… that means that you will automatically make at least as much money as you were already making… and can possible make more.

I’ve used Adbrite with Google Ads (before they canned my account with no explanation, five dollars short of a payout. Assholes), with WidgetBucks, and even with cj.com ads, and have always gotten a few extra bucks out of it. Best part: Minimum payout is only 5 bucks. No more waiting a few months between checks, and perfectly supports my point of it being a great “ad on” ad network.

No. I didn’t get paid for this post, and I’m offended that you think so. I just like to share the wealth. (literally)

Rate this:
2.5

Tags:, ,

Digg This Story

Dealing with timestamps in WordPress is so fucking fucked.

Digg This Story

While modifying a plugin to work correctly in WP 2.5, I came across this code snippet.

I haven’t had to deal with it myself, but maybe someone else will find it useful, or hilarious as I did. Here’s the code to make timestamps WordPress friendly (apprently):

// Dealing with timestamps in WordPress is so fucking fucked.
$offset = (int) get_option('gmt_offset') * 60 * 60;
$this->post['post_date'] = gmdate('Y-m-d H:i:s', $this->published() + $offset);
$this->post['post_modified'] = gmdate('Y-m-d H:i:s', $this->updated() + $offset);
$this->post['post_date_gmt'] = gmdate('Y-m-d H:i:s', $this->published());
$this->post['post_modified_gmt'] = gmdate('Y-m-d H:i:s', $this->updated());
Rate this:
2.5

Tags:, , ,

Digg This Story

Hey, get your HTML5 off my canvas

Digg This Story

What the hell is a <canvas>? How do I use it? Why do I want to use it? What is so great about it?

I have had no idea, so I decided to find out.

With my recent kick on finding out everything I possibly can about html5, this is one part of it that has been implemented in a few of the more popular browsers, and actually has some use. By definition:

The tag defines graphic, such as graphs or other images. The tag is new in HTML 5

That seemed 100% pointless to me, until I learned more. The idea of this element, is to provide a container for graphics, and to use a script to actually print the graphics to the screen. What that means is… dynamic graphics in your webpage without the need for Flash, Java, or Silverlight (shudder) . This is my dream come true. Here is a great example of a real life example: http://canvaspaint.org/, and here is a page with a few basic “how to’s” to understand the <canvas> element better: http://labs.mininova.org/canvas/

Supported Browsers:

  • Mozilla Firefox 1.5+
  • Opera 9.5+
  • Safari 3.x
  • IE8beta1

Edit: Damn RSS feeds and wordpress titles… If I put <canvas> in the title, the browser sees it as a tag. If I put &lt;canvas&gt; in the title, then the rss feed sees it as a tag. C’mon people… this tag arrived in 2004…

Rate this:
2.5

Tags:, , , , ,

Digg This Story

Pages (12): « 1 [2] 3 4 5 » ... Last »