Thursday, March 31, 2011

New Blogger Views

Five New Blogger Views

Google introduced five new blogger designs this morning. If you are browsing a blogger site, simply append "/view" to see the available ones.

I personally think I like the "slider" view. The other views probably won't work as well for news-like sites that user experience is based off of chronological posts.

Still very cool!

Cheers!

Friday, March 25, 2011

Printing a Specific Range With sed

Issue

You want to print only a specific range of lines from a file/input.

Solution

Use sed! Say for example you want to print out lines 15 through 30, you can do that like so:
sed -n '15,30p' [file]

Real World Scenario

Okay, so here's how I actually ended up using it; I have a process to publish files across hundreds of sites. I have a PHP script that prints out site information (one site per line). I also have another PHP script that handles publishing that takes in the site name as an argument. See where I'm going here? ;)

So what I need to do is loosely pseudo-coded as follows:

for site in siteinfo.php
publish.php $site

Where does the sed command come in handy? Well, like I said I have hundreds of sites to publish to, so a sleep comes in handy to give the servers a little break. So, I ended up breaking it up as follows:
for s in `/usr/local/bin/php sites.php|sed -n '1,100p'`; do /usr/local/bin/php publish.php $s; done | tee -a $log;
sleep 300;

for s in `/usr/local/bin/php sites.php|sed -n '101,200p'`; do /usr/local/bin/php publish.php $s; done | tee -a $log;
sleep 300;

etc...
etc...

Wednesday, March 23, 2011

CR-48: Dev Channel Users Are Down

So, if you happen to be on the dev channel, the nightly build two nights ago has a serious issue. There's word that a fix will be out soon, but if you wanted to get back up online sooner, try jumping back on the beta channel.

Just the usual struggles with being on the dev channel...

Cheers!

Thursday, March 17, 2011

Google Bookmarks --Really, Bookmarks! (I think)

I just got these and thought they were pretty rad. But are they bookmarks? If they are, isn't it a bit counterintuitive if we're supposed to be supporting ebooks in lieu of traditional books? ;)

I thought I would share anyway. I think I'll end up hanging these up. Now where to put them? In the office? In the home office? In the man cave? Decisions decisions...

But thanks Google! These made my day!

Cheers!

Monday, March 14, 2011

Pi Day or Half-Tau Day?

Pi Day or Half-Tau Day?


I've been happily celebrating pi day for quite some time now and it seems to have been gaining in popularity; perhaps due to the rise of geek culture (or lack thereof)? Tau is awesome, but it's base is pi nonetheless. I'm a pi fan and probably always will be. Though, tau does make good weather for a lovely BBQ. I smell a tau BBQ celebration in the making!


Auspicious numbers are awesome to have, another day sounds even better. I welcome tau day with open arms and hopefully a BBQ pit.


Unfortunately, I forgot to wear my pi shirt today.

Thursday, March 10, 2011

Google Chrome 10.0.648.127

Chrome in my status panel?

I noticed recently that Google Chrome, even when not started is already in my status panel. Interesting. Is this to speed something up? No complaints as of now, but hey what's it for?



Anyhow, I'll find out later. Off to fill myself up with caffeine!

Tuesday, March 8, 2011

Google Voice SIP Is Out In the Wild

Google Voice Offering SIP

Well, word is finally out about Google Voice's SIP availability. I for one am happy, sad, and scared all at the same time...

Well, I love it! I've been using Google Voice ever since I got the invite (early adopter). But as you can see as the details get out, the more attention this gets and that's when the cellular companies start thinking about ways to disable this feature since they'll be losing money on their precious minutes!


All You Really Need Is Data Service

Cellular plans are convoluted with plans that really benefit the cellular companies themselves. All companies do that for their services, and that is so irritating! You are forced to purchase minutes because the old (but current) model revolved around minutes. In the future, I'm hoping that you can purchase data-only plans since that is really what any person needs.


I really hope things all pan out for the best. I don't want to spend any more money than I need to.


How We Save Money On Our Phone Bills

All of our phone calls ("home phone" and cellular) go through Google Voice on a data line. At home, we typically just send/receive phone calls via our computers (that's why I said "home phone"). The same thing goes for our cellular phones except instead of Google Voice (GMail) we have a SIP client (csipsimple) installed on both of our phones and that handles the incoming/outgoing calls. The important piece is the routing via pbxes to have calls go through Google Voice. The tough part was that Google initially didn't have a SIP protocol, instead they used XMPP. This change should make things easier now.
The formula generally goes like this: Google Voice + http://pbxes.org


Post Script

No wonder I got an email about Google discontinuing Gizmo5!