Bernie's Blog A confusing concoction of Java, mobile devices, technology and photography

11Jan/102

Conversation of an Engineer and a Manager

Management: How many feet do mice have?
Reply: Mice have four feet.

M: Elaborate!
R: Mice have five appendages, and four of them are feet.

M: No discussion of fifth appendage!
R: Mice have five appendages; four of them are feet; one is a tail.

M: What? Feet with no legs?
R: Mice have four legs, four feet, and one tail per unit-mouse.

M: Confusing -- is that a total of 9 appendages?
R: Mice have four leg-foot assemblies and one tail assembly per body.

M: Does not fully discuss the issue!
R: Each mouse comes equipped with four legs and a tail. Each leg is equipped with a foot at the end opposite the body; the tail is not equipped with a foot.

M: Descriptive? Yes. Forceful NO!
R: Allotment of appendages for mice will be: Four foot-leg assemblies, one tail. Deviation from this policy is not permitted as it would constitute misapportionment of scarce appendage assets.

M: Too authoritarian; stifles creativity!
R: Mice have four feet; each foot is attached to a small leg joined integrally with the overall mouse structural sub-system. Also attached to the mouse sub-system is a thin tail, non-functional and ornamental in nature.

M: Too verbose/scientific. Answer the question!
R: Mice have four feet.

:-)

Filed under: Ramblings 2 Comments
8Jan/101

Bashing Bash

Despite being on Linux for quite many years now, I've always come to regard bash (and bash scripting) as somewhat of an arcane magic. No idea why though, just is. To me, it's even scarier than C++ (but that's given since there were 2 semesters of C++ back in school). True enough, a few months back, there was this tiny bit of thing I needed to do in bash and I sucked at it.  Specifically, I was modifying (and fixing) someone else's script. Not fun. Got it to do what I needed it to do, but re-evaluating how certain things were done, I'll be happy if the script is forever buried.

Not any more. Thanks to a few articles over at IBM DeveloperWorks. No idea why I never came across these very useful articles before. The 3-part articles titled 'Bash By Example' (part 1, part 2, and part 3) helped tremendously in helping me understand basics of bash scripting. I'm pretty confident now that I'll be able to rely on bash to do many simple tasks that Java is overkill for.

Also some neat stuff on bash itself, see 'Bash Help'.

Makes one wonder if bash is so easy and useful, maybe the other scripting languages (ruby, python) is worth exploring seriously too. Hmm...

Filed under: Programming 1 Comment
19Dec/093

Wordpress 2.9 Released, This Blog Updated

News of a new Wordpress release - v2.9 - hit Twitter last night, with these new features (along with 500 bug fixes and misc enhancements!):

The coolest new stuff from a user point of view is:

  1. Global undo/”trash” feature, which means that if you accidentally delete a post or comment you can bring it back from the grave (i.e., the Trash). This also eliminates those annoying “are you sure” messages we used to have on every delete.
  2. Built-in image editor allows you to crop, edit, rotate, flip, and scale your images to show them who’s boss. This is the first wave of our many planned media-handling improvements.
  3. Batch plugin update and compatibility checking, which means you can update 10 plugins at once, versus having to do multiple clicks for each one, and we’re using the new compatibility data from the plugins directory to give you a better idea of whether your plugins are compatible with new releases of WordPress. This should take the fear and hassle out of upgrading.
  4. Easier video embeds that allow you to just paste a URL on its own line and have it magically turn it into the proper embed code, with Oembed support for YouTube, Daily Motion, Blip.tv, Flickr, Hulu, Viddler, Qik, Revision3, Scribd, Google Video, Photobucket, PollDaddy, and WordPress.tv (and more in the next release).

And there's more! Under the hood Wordpress developers did some magic too:

  • We now have rel=canonical support for better SEO.
  • There is automatic database optimization support, which you can enable in your wp-config.php file by adding define('WP_ALLOW_REPAIR', true);.
  • Themes can register “post thumbnails” which allow them to attach an image to the post, especially useful for magazine-style themes.
  • A new commentmeta table that allows arbitrary key/value pairs to be attached to comments, just like posts, so you can now expand greatly what you can do in the comment framework.
  • Custom post types have been upgraded with better API support so you can juggle more types than just post, page, and attachment. (More of this planned for 3.0.)
  • You can set custom theme directories, so a plugin can register a theme to be bundled with it or you can have multiple shared theme directories on your server.
  • We’ve upgraded TinyMCE WYSIWYG editing and Simplepie.
  • Sidebars can now have descriptions so it’s more obvious what and where they do what they do.
  • Specify category templates not just by ID, like before, but by slug, which will make it easier for theme developers to do custom things with categories — like post types!
  • Registration and profiles are now extensible to allow you to collect things more easily, like a user’s Twitter account or any other fields you can imagine.
  • The XML-RPC API has been extended to allow changing the user registration option. We fixed some Atom API attachment issues.
  • Create custom galleries with the new include and exclude attributes that allow you to pull attachments from any post, not just the current one.
  • When you’re editing files in the theme and plugin editors it remembers your location and takes you back to that line after you save. (Thank goodness!!!)
  • The Press This bookmarklet has been improved and is faster than ever; give it a try for on-the-fly blogging from wherever you are on the internet.
  • Custom taxonomies are now included in the WXR export file and imported correctly.
  • Better hooks and filters for excerpts, smilies, HTTP requests, user profiles, author links, taxonomies, SSL support, tag clouds, query_posts and WP_Query

Wordpress 2.8.x users should be able to just hit the update button in their admin interface, wait a few minutes and upgrade to 2.9. Those seeking to do a fresh or manual install can grab a copy here.

Tagged as: 3 Comments
16Dec/090

Beautiful Widgets Dev Gets Cease and Desist

beau1
HTC apparently sent a C&D to LevelUp Studio, makers of 'Beautiful Widgets' (reviews here and here). This message was posted along with the latest update of the application in Android Market:

HTC sent me a C&D, I have to remove the widgets from the market soon, so please back it up if you want to keep it, using appmanager or ASTRO file manager - LevelUp Studio

I bought the application some time ago, and definitely feel disappointed that HTC decided to deal a low-blow to the developer. Is LevelUp Studio doing any damage at all to HTC? Probably not. Do they have a right to issue a C&D? Probably yes. Doesn't change the fact that this stinks. Reminds me of another C&D issued to a certain well-known ROM developer not too long ago.

I urge LevelUp Studio to modify the widget (use other images perhaps?) and do a new release. I wonder if this kinda of tactics means that widgets that emulates a certain look-and-feel of other widgets might get into trouble. Definitely an ugly precedence.

Update: Looks like the developer has decided to go forward with development - with a twist. The widget now doesn't look like those from HTC. And they are still look as good!

Tagged as: No Comments
15Dec/090

Eclipse Hudson Plugin

Context - Continuous Integration (CI) is a must. And Hudson is a free, decent, and quick to setup CI server.

To get Hudson into Eclipse - there's a plugin. The recommended way of installing is of course, via the plugin's update URL - http://hudson-eclipse.googlecode.com/svn/trunk/hudson-update/.

After installing it, you'll need to configure it:

Screenshot-Preferences

Once that is out of the way, you'll get this:

Screenshot-Java - Hudson browser - Eclipse

13Dec/090

No Updates To Archlinux?

arch_update

How can it be? I've been without a single update for 2 weeks. Did all the developers go for vacation? And at the same time? Nay, it was a problem with the repo mirror that I was using (http://archlinux.unixheads.org/$repo/os/i686). I've switched to another mirror (http://distro.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686) and everything is good again. Updated 200MB worth of packages yesterday.