Thursday, December 24, 2009

Good News and Bad News for Python Dev...

Good News and Bad News for Python Developers

As you've probably figured out by now I've become a fan of the Python programming language.
I haven't done anything large scale or in a team with it, but it looks like it can scale well.   It also has an increasing presence in the infrastructure of the various Linux distributions.   One of the pluses of that is that the distributions now have to worry though at least some of the challenges of easing forward to new releases of Python.   Python 3.1 is not a trivial target from 2.4 or 2.6, so I'm happy to see the transition is something that the Fedora and Ubuntu folks are working out while I bravely lag behind cheering their progress.

Anyhow, the good news is that it is possible to mix C and C++ libraries in with Python code.  The bad news is that you need to be some kind of guru to untangle a stack trace from such a combined environment when something crashes.
Dave Malcolm has proposed some additions to the gdb debugger for Fedora 13 to make it easier to debug such mixed stacks.   For a good time, take a look at the stack trace that Dave points to from his description of the proposed enhancement.   It certainly left me convinced I'm not ready to do any heavy duty mixing of Python and extensive C & C++ libraries.    And back in the day I did my share of Assembler language programming above and below PL/I wrestling with SYSUDUMPs back on the mainframes.

I'll stick my neck out and assert that programming with a mix of complex programming languages is always going to present challenges.   But after I saw Dave's example, I felt like I had to point it out so you can't later say that I never warned you.

Merry Christmas to you and yours!  (I borrowed the beautiful Christmas tree picture from the web page of Lynne Marshall. The page gave no attribution for the picture, so I don't have further credits to give for it).

Drew


Revised 02/03/2010 to correct a typo.

Thursday, October 8, 2009

Financial engineering


Financial engineering


Re-engineered to Smithereens is interesting reading. Linkedin.com pointed me to the piece via a posting there by the piece's author. I think her essay dwells a bit much on baby boomers, but maybe you have to have come from Lucent to see how losing sight of the purpose of a company can mess up the jobs of far more than one generation of (former) employees.  What the financial engineers seem to overlook is that if a company's stated mission is no grander than "Our mission is to make money for the stockholders", that that is not going to inspire many of the company's staff to rally round the corporate flag.  My undergrad degree is in Industrial Engineering and Operations Research, so I kind of can see where the numbers argue that its a great idea to sell off all the factories and outsource all the production of the company's products, but somehow along the way, the company (formerly known as Western Electric) lost the idea that the way the company earns its money is to sell products.   I'll not insist that you have to manufacture the products in order to sell them, but somehow with the factories gone, the management seemed to lose its sense of direction.  Didn't anyone understand that to sell products with a fat profit margin, you need to have products that people can't get from anyone else, not commodities.  Last year's gee-whiz item is next year's commodity (if not sooner).  Seems to me that things worked out better when the Great Depression idled the factories and management's reaction was to find ways to keep the factories working, even if that meant producing washing machines or some such things that are far out of the company's usual scope.  (Confession:  I tried to find something on the web to substantiate my assertion that Western Electric built washing machines during the Great Depression, but was surprised to learn they were making washing machines and sewing machines in the early 1920's.   Not what I expected to find   But I did find of Western Electric in the Great Depression:

The company paid its employees to make "articles in general
demand" from furniture to cigarette lighters to keep them employed,
then it distributed the goods at-cost through the company stores.

according to http://www.u-s-history.com/pages/h1802.html).  But now, in the 21st century, with no factories, the management just seems to blame the economy and look for more costs to slice ("The beatings will continue until company morale improves"). 

They sold off vast portions of the company, including the chip-business, which produces the raw materials (integrated circuits) from which innovative products can be built.   I'm a bit less comfortable with the notion that all the chips we'd ever need can be purchased from elsewhere.   If we buy commodity chips, how distinctive can our products be?   And if we pay other companies to make custom chips to our specifications, who is going to pocket the profit margin on those chips?   Surely Lucent management didn't make the humerous assumption that they are consumate deal-makers!

Lucent had some interesting starts on products that far out-distanced what the marketplace was currently demanding.    I'm thinking about the micromirror based optical router, long since canceled to the best of my knowledge.   "Nobody" needs that kind of bandwidth capacity.   Why walk away from a future market.   Wouldn't it have been smarter to help cultivate demand for more bandwidth.   Lucent had pioneered development of HDTV.    Why not work with web cam companies to bring HDTV to the PC?   HDTV video chats might step up the demand for IP bandwidth.  Youtube, I hear is already pressing the capacity of Internet service providers.   Verizon is gambling on the future by building FIOS now.   More bandwidth than the customer demands at present, but it'll take some real work and hefty investment for the cable companies to provide as much capacity as FIOS can.   Capacity isn't all that's needed to compete with the cable TV companies, but at least Verizon apparently noticed that they had competition and had to do something about it for Verizon to have a future.

(Disclosure:    I'm a Cablevision "triple play" subscriber.   I use Vonage for my home phone [though the Cablevision phone line has been useful to provide a phone for Aunt Dolly, who currently lives here].   My only monthly bill from Verizon is from Verizon Wireless for cell phone service.  [In other words, I'm not a FIOS subscriber even though they tell me it is now available in my neighborhood].  Since I am no longer employed by Bell Laboratories, I have so far managed to resist the call of the marketplace to move on up to HDTV.   I watch HBO on a plain old NTSC [that is, old non-digital] television set).

"Field of Dreams" projected the kind of thinking that Lucent management lacked.   "Build it and they will come".  But somehow Lucent was never interested in a market space until Cisco or someone had demonstrated that there was a significant market there.   That's not leadership.   "Me too" products are not a good way to bang big bucks to the bottom line.   At Lucent, the bottom line was "a lot fewer bottoms on the line".

Drew











Tuesday, October 6, 2009

How not to sell to me


How not to sell to me

From http://www.limofoundation.org/solutions/index.php

comes this gem of marketing speak:

MOTO U9 is designed for those who want to talk, rock, capture memories and send messages in style.

Sorry, but this is not an effective way to sell a cell phone to me.   Tell me how it makes it easier to send or organize my messages, but don't tell me how stylish I'll look when I'm using the phone.   Now maybe the marketer who crafted those words will smile and shrug and say "obviously I'm not in their target market", but I think what bothers me is the amount of stuff that gets marketed without any meaningful distinguishing characteristics that make the product worth its price.   I guess that explains why I use Linux and OpenOffice (both "free open source software") even as I help people with virus and malware afflictions on their Windows PC's.

My most recent adventure with a Windows Vista PC was a friend's HP that was afflicted with something that kept it away from Internet sites that might have been useful for curing what ailed it.    My friend had purchased Norton 360 Premier, but the infection on the computer kept the Norton package from being able to "Activate".   I tried bringing a copy of the install program for the AVG free (for home use) antivirus to the machine on a USB solid state drive since Google could find the site but when I'd click on the link on the infected machine, the browser would tell me the link is broken.  I checked the etc/hosts file, but that file wasn't what was mis-directing the http traffic.   I was disappointed that the AVG program wouldn't install from the USB drive.   Seems that much like Norton's "activation", the AVG installer looks back to an avg.com site to fetch the actual software to install.   For the next round, I rebooted the PC into "safe mode with networking".   From there I could install AVG.     After I got AVG installed, I ran it and it found a Ddnsfilter.dll file that it didn't like so it got rid of it.   Once that file was out of the way, Norton activation, et al was happy to run.   After scrubbing the machine with AVG, I scrubbed it again with Norton, finding another small number of comlaints, which were cleaned.    Then I scrubbed again with Windows Defender, ran Windows update to install all available patches.   Uninstalled AVG so there isn't the conflict of having 2 anti-virus scanners competing with each other, found some Adobe reader updates that wanted to be installed, so I let them in, found some HP updates, including an update to the PC's flash BIOS, so I let them in, scrubbed the whole thing with Adaware, finding only some cookies and the usual WildTangent garbage, scrubbed the whole thing with Spybot, finding very little to complain about.   If he had decent backups of his files, I'd have felt more confident in reloading the hard drive from scratch, but I think the machine is now as clean as it'll get.    I was impressed that Norton 360 Premier is more than just an antivirus for the money.   It also did a registry clean-up, a disk optimization and even made off-site (via the Internet) backups of something (his data files?).  If it chose wisely what it backed up, that makes it a pretty good deal for what I think amounts to about $35/year.

But I've gotten off the topic of this Blog entry:   "How not to sell to me".   From http://www.netezza.com/testdrive/ comes yet another approach to offend my sense of what I want from an ad:

Get meaningful, actionable analysis faster than you thought possible.

We'll tell you about the low price point later. Right now, just stand back and

watch Netezza TwinFin™ perform!


The good news for the marketeers is that I was only visiting the web site because the product name intrigued me enough that I wanted to know what it was.   I learned only that it is some kind of data warehouse server of unspecified capacity and unspecified price point, but they'll loan me one to try if I'll just fill out their lead-collection form.   All will be revealed to me later.    No thanks.   I was especially unimpressed that they had a link on the site that was supposed to take me to a video about the product, but just dumped me back at the promo page for the free loaner unit.  And don't get me started about the word "actionable"!


Drew






Wednesday, September 9, 2009

Holes in the Road

Holes in the Road

From time to time, especially in early Spring when the ice melts, the drivers of NY like to complain about the holes in the road.   After viewing the video clip about this hole in a Los Angeles road, I think it is clear that the good folks in Queens don't have anything worth griping about.   But then I remember many years ago (1981), while vacationing in the Kissimmee, Florida area, we took a side trip to Winter Park, Florida, just to see a sinkhole that had developed there.  I was pleasantly surprised today to find a video about that sink hole on Youtube.   But that hole wasn't something you'd compare to a pothole in a road.   It was more like a hole in the earth.  That Winter Park sinkhole ate a house, a car dealership, a part of a community swimming pool and left a yawning deep chasm in the middle of the town.   It swallowed five expensive Porsche sports cars (from the car dealership), but so far as I know, no people died as a result of that hole's formation.

There are another couple of aerial shots of the Winter Park sinkhole on this web page.   Looking at a map of Winter Park, Florida, there are numerous large circular lakes in town.   Red flag A marks the spot where the sink hole formed in 1981.   I was surprised at what a relatively small pond the sinkhole formed now that it has filled up with water.    You'll need to zoom in on the map to even seen that small circular pond.

I hope Florida won't mind that I've got Winter Park, Florida on my short list of places to not consider for my some-day retirement home, right up there with Centralia, Pennsylvania.

Drive carefully wherever you are.

Drew






Saturday, August 1, 2009

It's All In How You Spin It


It's All In How You Spin It

Here's another video clip from The Onion News Network.  Reminder:  As I've mentioned before, that site doesn't publish real news, just satirical humor.

Gap "For Kids By Kids" clothing line

Drew


Thursday, July 30, 2009

Vitamin D?


Vitamin D?

Looking for something to read?   I suggest that you Google for:

vitamin d flu

Among the many web pages that search will find for you is this one:


A few years ago when I read a paper that looked an awful lot like that one, there were a lot fewer pages on the web about vitamin D and the flu.  I dug around at the time in search of support for that guy's data point and found instead reports of vitamin D having little effect on health except in the case of extreme deficiency.   Reminded me of the flurry of reports of people swearing that vitamin C and Zinc could protect you against the common cold a few years ago.   Now there are so many pages about vitamin D to prevent swine flu that its hard to find anything that weighs in against it.   Dr. John J. Cannell of the "Vitamin D Council" seems to be to vitamin D as Linus Pauling was to vitamin C.  You can even watch Dr. Cannell on YouTube.   Here is another YouTube video preaching Dr. Cannell's message for him.
Picture copied, without explicit permission, from http://www.selftanningqueen.com/?p=850

Is the science in favor of your keeping your vitamin D level high?   I don't know.   But the anecdotes of warding off flu in the prison certainly appeal to my sense - they sound right.   Bummer that he couldn't show statistical significance in the observation.   Nevertheless, vitamin D tablets are inexpensive and have a long shelf life, so I've been making a point of taking a 1000 IU tablet each day for quite a while now.

Now if only there weren't those reports in early 2009 about not finding any good coming from taking a daily multi-vitamin.


I really want to believe.

Speaking of believing, there sure are a lot of web pages with conspiracy theories about FEMA and the Federal government in general.   The swine flu, I found web pages suggesting, is a man-made weapon.   And all I was looking for was that article about warding off flu in prison by handing out regular doses of vitamin D.

Your tax dollars at work:

But that's getting off the topic of vitamin D.

Drew





Wednesday, July 29, 2009

No Child Left Behind

Here's another video clip from The Onion News Network.  Reminder:  As I've mentioned before, that site doesn't publish real news, just satirical humor.  In this clip I think they achieve a fair balance of poking fun at television news and our beloved Federal government.  Of course in real life the teachers wouldn't be quite so flexible about the prescribed curriculum, would they?

Students First In Line Job Training

"It's good to see a positive story come out of a troubled school".

Drew