Tabbed UI in android made simple

I wrote a class to allow for rapid development of tabbed UI in android using Java’s reflection features. While you can develop tabs rapidly this way, you must make sure you enter the names of your classes correctly. If you don’t, the app can crash at runtime (hopefully something you’ll realize when testing it) Regardless, I think it’s a cool feature and android already makes use of this reflection facility anyway — so the same risks are involved.

The main difference is with this method, you get to parameterize tabs. It’s as simple as making a few Activities or Views in XML and calling makeTabs() on them in your Activity that extends SCTabActivity. This came out of my need for a way to make an application with several, several, tabs rapidly.

The code is on my github as a gist: SCTabActivity for android

Posted in Uncategorized | Leave a comment

Using jQuery to regulate external links

I added a cool delicious rss feed to my blog, but I didn’t like the fact that this meant a bunch of links would now be on my blog without nofollow causing my page rank to drop, so i wrote this line of jQuery to fix that. Just change the selector to use it on other stuff.

1
2
3
$(document).ready(function() { 
$(".rsswidget").attr("rel", "external nofollow"); 
});
Posted in Uncategorized | Tagged , | Leave a comment

Carl Herold gives FREE quality programming lessons

Carl Herold is a great guy who teaches people programming for free. Here is Carl Herold‘s official site.

Posted in Uncategorized | Leave a comment

polydactyly

I wish I had 6 fingers on each hand.

asdfg hjkl; ?

Posted in Uncategorized | Leave a comment