Testing Sanity

The core task of software development is sanity testing.

  • warning: Parameter 2 to gmap_gmap() expected to be a reference, value given in /home2/thepalls/public_html/cgpsoftware/includes/module.inc on line 483.
  • strict warning: Non-static method view::load() should not be called statically in /home2/thepalls/public_html/cgpsoftware/sites/all/modules/views/views.module on line 879.
Posted by cgp

I knew you could do a lot of "close to the metal" in terms of registers and memory allocation with C, but this is wonderful - utilizing instructions that are unsupported by the compiler through bytecode. Nice.

SSE4.2 and the new CRC32 instruction

AI Progressing?

10 Oct 2010
Posted by cgp

Or just another set of overhyped articles? I'm not sure which I hope is more accurate, but either way, it's coming eventually.

Well, duh

08 Oct 2010
Posted by cgp


Programmer Passion: An Enterprises Most Useful Yet Repressed Advantage

I've worked at just enough places to have seen the best and worst of both. Sure, there's a danger of the "inmates running the asylum", but if one of your greatest fears is employees who are in love with their work and want to deliver more than is asked of them: You're doing it wrong.

Posted by cgp

Some of these examples are fairly subtle in what they do, others are hot pink, and not so subtle.

Styled Maps Using Google Maps API Version 3

Posted by cgp

The Maven quickstart documentation suffers from an unfortunate problem.

With the latest Maven (2.2.1), when you try to use the included command line snippet to create the example app you probably will get the following error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate in org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-4
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Sep 22 11:06:33 EDT 2010
[INFO] Final Memory: 2M/508M
[INFO] ------------------------------------------------------------------------

A little digging around yielded the following, which worked for me:


mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -DarchetypeVersion=5.0.18

Posted by cgp

A calculator of the overall effectiveness of competition in a particular market.

For instance, do we really have competition in the distribution of cable TV? There are lots of factors here:

Symptoms of a well functioning market:

  • Lower price for service
  • Number of service providers
  • Fluidity in choice (is the market dominated by long term contracts?)
  • Quality of information regarding choices
  • The number of channels being distributed (quality channels vs. non-quality channels?)
  • Offering of Pay channels
  • Improved digital service

Conditions which market forces may have to deal with, in some cases these can be temporary

  • Government Regulation
    • Restrictions on market size
    • Ability to restrict abusers of the system
    • Mandates on availability (of which there are none now)
    • Mandates to provide ala carte service?
  • Natural disaster?

Note: A similar list could probably be done for cell phone service, and broadband service.

Close enough list for now.

Posted by cgp

Yesterday I ran into a little problem logging into Drupal. Weird thing was that it worked fine under Firefox but IE and Chrome were both failing to log in. There were some suggestions that it could be cookie related, but I cleared my cookies and that didn't seem to do the trick, nor clearing cache, and a restart of my machine (as silly as that seemed) didn't seem to work either.

As usual, the truth is much simpler: I should have noticed when I started getting random SSL certificate expiration notices that talked of certificates being expired, yet the expire date on the cert was 7/23/2011. (On a Google tool no less).

So, long story short, after a half an hour, I took a look in the lower right hand question and saw that the time had been set to the future and it was causing cookies to expire too soon - set my time back and everything looked good.

Posted by cgp
How Custom Events Will Save the Universe by Andrew DuPont...