Do you think Google will take over the world?
Google isn’t just a search engine anymore. Let’s face it, Google is a household name (and a verb in some cases). Sure, it started as a search engine, but they have branched out into so many other free services like email, maps, website analytics and even their own web browser. Yesterday, Google introduced the new Google Chrome OS.
“Speed, simplicity and security are the key aspects of Google Chrome OS. We’re designing the OS to be fast and lightweight, to start up and get you onto the web in a few seconds. The user interface is minimal to stay out of your way, and most of the user experience takes place on the web. And as we did for the Google Chrome browser, we are going back to the basics and completely redesigning the underlying security architecture of the OS so that users don’t have to deal with viruses, malware and security updates. It should just work.” Read Full Article
What’s next for Google? How long will it take before I’m driving to work in a Google car? What about a Google restaurant? “Hun, do you want to eat at Google tonight?” LOL
Watch the clock tomorrow!
At exactly five minutes and six seconds past four o’clock in the morning, this coming July eighth, we as people who have been here for hundreds of thousands of year will experience an exact time alignment including six digits. It looks as follows: 4:05:06 am of 07/08/09.
This is a special even in time because it will not happen again for another one thousand years. Our relatives will have changed the world we live in so much by that point that it may not have the same meaning. Humans may not even exist at that point in the future, so this may be even rarer because it could end up being a one time occurrence.
Exact Time Alignment Including Six Digits
Wordpress: Add Content Based on Post Count
A couple months ago I redesigned one of my sites to use Wordpress as a CMS. It is a site that displays small video clips with a few lines of text underneath. Everything went well with the transformation and I was happy with the way it turned out, but there was one minor problem.
The pages on the site are setup to show 15 posts per page. If there aren’t 15 posts on the page, the layout gets broken. Pages 1 & 2 are fine, but page 3 doesn’t have 15 posts yet. You can see from the screenshot below what I’m talking about.
Somehow I needed to add blank posts at the end to fill up the rest of the page. Yesterday, while looking through a Wordpress tip site, I found something that made me think it would be possible. Display a text/code only if more than X posts are published
<?php $count_posts = wp_count_posts(); if ($count_posts->publish > 10) { //Your code to be displayed only if more than ten posts have been published } ?> |
That code would have worked fine, but I needed it to display a dynamic number of blank posts based on the current post count. I also needed it to only display those blank posts on page 3. It was a good starting point though.
Let me start off by saying that I am NOT a php programmer, so this may be a little messy. I knew what I wanted it to do, but I had to Google everything to see how it was done in php. After piecing everything together, I finally came up with this:
1 2 3 4 5 6 7 | <?php $page_url=$_SERVER['REQUEST_URI']; $page_number= 'page/3'; $published_posts = wp_count_posts()->publish; while ($published_posts < 45 && strstr($page_url, $page_number) ) { ?> <div class="videoitem">...</div> <?php $published_posts = $published_posts + 1; if($published_posts == 45) break; } ?> |
Line 1 – start php
Line 2 – reads the URL of the website
Line 3 – declares $page_number as “page/3″.
Line 4 – uses built in function of Wordpress to declare $published_posts
Line 5 – says that while the number of posts is less than 45 and the URL contains ”page/3″, then display the html code below
Line 6 – the html that I want shown if Line 5 is true
Line 7 – add 1 to the post count and loop it until 45
All of the code that I created went under the normal Wordpress post loop. See below:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="videoitem">...</div> <?php endwhile; else: ?> <?php endif; ?> right here |
The end result now looks like this:

If you want to see it in action, go here.
Free 1 Year Subscription to Maxim Magazine
Sony is giving away a free 1 year subscription to Maxim magazine.
Visit this link and use the code: YSON
In other news, Maxim’s 2009 Hometown Hotties Semifinalists are posted online for your voting pleasure. See them all here.
What’s New in Firefox 3.5 (RC3)
Firefox 3.5 (Release Candidate) is based on the Gecko 1.9.1 rendering platform, which has been under development for the past year. Firefox 3.5 offers many changes over the previous version, supporting new web technologies, improving performance and ease of use, and adding new features for users:
* This release candidate is now available in more than 70 languages – get your local version.
* Improved tools for controlling your private data, including a Private Browsing Mode.
* Better performance and stability with the new TraceMonkey JavaScript engine.
* The ability to provide Location Aware Browsing using web standards for geolocation.
* Support for native JSON, and web worker threads.
* Improvements to the Gecko layout engine, including speculative parsing for faster content rendering.
* Support for new web technologies such as: HTML5 video and audio elements, downloadable fonts and other new CSS properties, JavaScript query selectors, HTML5 offline data storage for applications, and SVG transforms.
Has anyone tried it yet? I think I may wait until it’s officially released.











