jump to navigation

WebDev: Tables are not layout controls May 21, 2015

Posted by geek-ish.com in Dev.
add a comment

I spent a good bit of time trying to reverse a page that had its vertical and horizontal alignment being managed using divs such that when I tried to change some of the content, the entire page layout was altered. What the…  Who the…  Impossible! I’d have been DESTROYED for making a design choice like this! Wait a minute… this is my page.


I had this page designed like 7 years ago (pre-mobile, pre-tablet, etc.) when I was working on converting image files (PSD) to HTML and now remember having the divs implemented as methods for dealing with the PSD layers; but didn’t think much then about how adversely that design choice might affect other platforms.  I wanted a layout control method for handling the problem with divs aligning vertically & horizontally when the content changes.  As it is designed now, there are “box” classes that house each “cell’s” content and when a box’s content changes, all tangent boxes adjust too – in no ordered manner. To me, that’s an awful design choice.  I thought a table would force the alignment in an ordered, consistent manner, regardless of the content. In Windows development, there is a StackPanel control that can be tasked with managing those vertical & horizontal changes:  https://msdn.microsoft.com/en-us/library/ms752328(v=vs.110).aspx .  I thought a table would handle that alignment task just fine in HTML but wanted a more experienced implementation opinion. After some chatter with a bunch of 10+-years-in, experienced developers, I got their gist which was, “Use divs.” But I was still grr about that, until I found this:

“If your document needs to present tabular data, then the appropriate tag would be
. If you place navigation into a table however, then you’re misusing the intended purpose of the
element. In the second case, you’re not presenting tabular data — you’re (mis)using the
element to achieve a presentational goal.” 

Sep 16 ’08 at 18:31  Carl Camera

Tables are not layout controls.

Thank you!


Virtu2! Wrong fix works(!) for VBox err: Cannot register the hard disk because a hard disk with uuid already exists April 7, 2015

Posted by geek-ish.com in Dev.
Tags: ,
add a comment

*** Caveat: This may be wrong for you but worked like a charm for me! Just saying. ***

Issue:  This error is thrown when trying to reuse a vm-orphaned VBox vhd with a new vm:  “Cannot register the hard disk because a hard disk with uuid already exists“.

Cause(me, unsupported) It seems the vhd uuid is uniquely registered to a specific, orphaned vm and trying to reuse this vhd without removing that orphaned registration entry causes an erroneous duplication in the vm registry.

Fix:  (me, unsupported)  Crack the vhd (Notepad works) and replace the duplicate uuid with a new, unregistered uuid. No guarantees, but again, it worked swell for me.


DetailsToo often, I blow up a vbox vm config but still need its vhd to use with a new vbox config.  Good luck. Trying to reuse the vhd with a new config very often results in an error containing a message like this:  ‘Cannot register the hard disk because a hard disk with uuid already exists‘. I searched for similar experiences online and found this right answer here:  https://forums.virtualbox.org/viewtopic.php?f=3&t=14976.  After a lil investigation of the vhd itself (using Notepad), I found the uuid in question and replaced the duplicate uuid with a new guid using this service:  https://guidgenerator.com/. I realize this could not be the right answer for you, but it worked like a mug for me.

HTH, but comment or buzz me if you have something to add:  ti55@yahoo.com.


Q: What did the C# developer say to the C developer complaining about C++? March 11, 2015

Posted by geek-ish.com in Dev, Tech.
add a comment

Supporters argue that C++ provides a fine mix of C’s low-level aspects (looking at the compiled assembly code, etc.) while providing higher-level attributes found in today’s modern languages. Early in its development, C++ featured a standard template library (STL) with template classes such as vectors and maps, which allows for a certain level of generic programming. The STL allowed programmers to focus on applications-level tasks without having to write their own linked lists and other data structures every time.


A:  Next.

JustBuildItAlready Notes: “Step 1 – Start with the screens.” Whiskey then Tango then F# January 6, 2015

Posted by geek-ish.com in Dev, Tech.
add a comment


The screens? Start with the screens? You’ve got to be kidding me! You mean it might be valuable to share a visual interpretation of the thing you’re going to build with stakeholders to attempt to foster their engagement in design discussions and collaborative conjecture before you actually start building it? That works?!

Who knew.