New Toys: EzMobile

I have a theory that it’s the adults that think the fancy plastic toys are somehow cooler than their simple counterparts.  Kids on the other hand are using their imagination (at least should be), and don’t really care how pixel-perfect it is.

My theory was verified when 5 minutes after taking this photo, Ezra flew a $15 toy helicopter past me with this little EzMobile guy hanging out the door  :)

 

 

Python: ‘tuple’ object is not callable

This can be a bit of an obscure error, if you run into it…  It looks like this:

File ".../CCRM/Content.py", line 202, in Page_Update
    ('Nav1'       , Data.Nav1),
TypeError: 'tuple' object is not callable

In reality, it’s typically caused by accidentally forgetting a comma from the line before:

    Page_MNID = App.DB.Value('''
      UPDATE
        "Dashboard"."Page"
      SET
        [Field=Value]
      WHERE True
        AND "Page_MNID" = $Page_MNID
      ''',
      ('ScriptPath' , Data.ScriptPath)
      ('Nav1'       , Data.Nav1),
      ('Nav2_Icon'  , Data.Nav2_Icon),
      ('Nav2_Label' , Data.Nav2_Label),
      ('Title'      , Data.Title),
      ('Active'     , Data.Active),
      Page_MNID     = Data.Page_MNID,
      )

Notice that line 9 is missing a comma at the end?  That causes python to see this:

tuple_object = ("ScriptPath", Data.ScriptPath")
tuple_object("Nav1" , Data.Nav1)  #eg, next tuple looks like params

Solution?  Just add the comma :)

An Easier Way to Blog (2)?

Now, I am trying out BlogDesk

Ok, inserting a link was easy… How about a graphic?

Image

That was pretty easy… Now, how about some source code?

 #============================================================================
 def Exec(self):
   # We will try to catch everything and return a valid response.
   # if that is not possible, a 500 will be returned.
   try:
     self.Open()
     try:

       self.Log('Coaster: ScriptPath={0}'.format(self.Env.ScriptPath), LogLevel=4)

       ScriptPath = self.Env.ScriptPath
       ScriptPathParts = ScriptPath.split('/')[1+self.ImportStrip:]

       if not VALID_SCRIPT_PATH_MATCH(ScriptPath):
         XYZ
         return

Ok, let’s see how that works out…

An easier way to blog?

I’m going to try out Microsoft Word -> WordPress

One of my biggest complaints about blogging is the miserable web interface for creating posts. Formatting and images are just painful.

I would blog a good deal more if it were truly easy. So the question of the day is:

Is it easy with Microsoft Office 2007?

Let’s see!

Here is a snagit:

#============================================================================
 def Exec(self):
   # We will try to catch everything and return a valid response.
   # if that is not possible, a 500 will be returned.
   try:
     self.Open()
     try:

       self.Log('Coaster: ScriptPath={0}'.format(self.Env.ScriptPath), LogLevel=4)

       ScriptPath = self.Env.ScriptPath
       ScriptPathParts = ScriptPath.split('/')[1+self.ImportStrip:]

       if not VALID_SCRIPT_PATH_MATCH(ScriptPath):
         XYZ
         return

End of test.

U.S. Student Loan Amounts

There is an estimated $730 billion in outstanding federal and private student-loan debt, says Mark Kantrowitz of FinAid, a Web site that tracks financial-aid issues — and only 40% of that debt is actively being repaid. The rest is in default, or in deferment, which means payments and interest are halted, or in forbearance, which means payments are stopped while interest accrues.

(referenced from http://articles.moneycentral.msn.com/CollegeAndFamily/CutCollegeCosts/the-555000-dollar-student-loan-debt.aspx)

Great article on Python super, __mro__, and attributes

I highly recommend reading this excellent writeup on Python super(), python __mro__, python attributes, and more.

It is Copyright © 2005-2009 Shalabh Chaturvedi

http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html#method-resolution-order

Is it just me, or does this get old?

Hi Darryll,

If I have to say no again, you will officially be a nuisance. Have a great day, and best wishes with your endeavors.

Best Regards,

Jason Garber
Senior Systems Engineer
AppCove, Inc.

On Tue, Jan 12, 2010 at 10:35 AM, Darryll ——— wrote:

Jason,

I don’t mean to be a nuisance, but I wanted to try one more time to see if you, or someone you could direct me to would have a couple of minutes to discuss how my company can increase your access to working capital, a process which the Wall St. Journal calls, ‘An idea whose time has come.’ Just reply to my email, or contact me at the number below and I’ll follow up with you.

Best,

Darryll ——–
504———–

Google’s Lack of Customer Support

Perhaps it’s because Google hasn’t had “traditional customers” en mass for so long? Perhaps it’s because Google is 99% full of techno-geeks that are very focused on technology? Perhaps it’s just a lack of management’s vision?

Regardless of the reason, it’s hard to dispute that Google, Inc. lacks in Customer Service. Most recent post I saw was this Computer World article on the Nexus One fiasco.  Or just search google for the issue.

In my own experience with Google at work, I’ve had horrible, terrible, and just downright non-existent support on critical issues with Google Apps and Google Enterprise Support (both of which we are a paying customer).

A 7 day response time is about as good as a 700 day response time in today’s business world.  A phone number which we pay to have access to that is not answered in a time of need?  Unanswered requests by email and web forms?

Google has figured out how to manage vast quantites of talent to produce a wide array of successful products.  But if they continue to ignore their paying customers, it will take a toll on them that will be beyond repair.

If Google is reading this, remember that bad word of mouth is 100 times as fast spreading as good word of mouth.  I encourage you, Mr. Schmidt, to apply a resonable fraction of your vast resources to create the best customer service experience in the world.   Then, you will truly, do no evil.

A response to Preventing a pirate attack

An open letter to Daniel Jones, of GDS Publishing Ltd.
“The definitive resource for the global oil and gas energy industries online…”


Hello Mr. Jones,

 

I just read your well done article on ways to prevent a pirate attack.  I liked the infographic, and the descriptions that accompanied it.

http://www.ngoilgas.com/news/oil-tanker-pirate-attack/

While all seem to be interesting ideas, consider this:

Given that a M2 .50 caliber machine gun and spotlight mounted on the bow and stern would provide a physicalactualcapable, and pointed defense against any small to medium pirate attack…

Given that these ships travel in international water, where it is not reasonable to expect any police protection…

Given that the security issues of maintaining such weapons are important, but any organized army will entrust this and more powerful weapons to a trained 18 year old solider…

Given that the captain of the ship already has the responsiblity for life and wellbeing of his crew, not causing tremendous environmental disasters, and not crashing his ship…

Given that the pirates intend to use real military weapons to cause death and mayhem…

Why is it that such a reasonable (even if politically unlikely) method of defense was not even mentioned in your article — as if it didn’t exist?

As if it didn’t exist, when in reality, it is perhaps the most secure and reasonable approach to deterring armed pirates.   The same reason that army soldiers carry weapons.  The same reason that police carry weapons.  The same reason that security guards carry weapons.  The same reason that many civilians carry weapons.

May I suggest, that if  most rational people who would be asked why police carry weapons, were re-asked why oil tankers should carry weapons, the answer would be the same.

These are the same vessels that transport huge quantities of all kinds of goods, chemicals, military hardware, and other toxic, dangerous, or harmful substances.  It would be pathetic to think of transporting large quantities of cash from bank to bank without armed guards.  How much more so the cargo of merchant ships in the middle of the ocean?

In summary, why did you not mention this as a possibility in your otherwise excellent article?

Sincerely,

Jason Garber
Citizen, Father, Business Owner
Altoona, Pennsylvania

Update:  as soon as I posted this, these were the possibly related links that appeared.  Interesting…