Archive for August, 2009

links for 2009-08-24

August 25, 2009
  • <pre>

    * An EC2 account. Click on the sign-up for ec2 button.
    * Download the ec2 tools.
    * Generated an ec2 keypair.

    to build an EC2 LAMP Server.
    cd .ec2

    a lot of ec2 stuff happens in the .ec2 directory.

    To list the possible servers that you can set up run:
    ec2-describe-images -a

    I ran
    ec2-describe-images -a | wc -l

    and got 1477 possible servers. Some are Windows.

    Let’s say we see this listing:
    IMAGE ami-1539dc7c level22-ec2-images/ubuntu-8.04-hardy-20080205a.manifest.xml

    to start up the ubuntu server listed above type:
    ec2-run-instances ami-5647a33f -k ec2-keypair

    run this command:

    We should see either “pending” or the actual instance running with its FQDN listed in the 4th column. An example FQDN is this:

    go to:

    we should see a webserver.

    ssh -i ec2-keypair

    we’ll get the root prompt:


links for 2009-08-22

August 23, 2009

links for 2009-08-21

August 22, 2009

links for 2009-08-18

August 19, 2009
  • <p>When I push [my toaster] lever down, if there's a crumb stuck in the coils, it isn't long before my fragile pre-coffee state is shattered by the piercing siren of my smoke detector. It doesn't know about the toast, but really it should. If it were sociable, as soon as it detected particulate matter in the air, it would query the toaster to see if it had been activated. That would tell it that in all likelihood, it wasn't detecting an unattended, middle-of-the-night fire but instead a benign morning meal. The price of low-power radio networking and the just-minted funding for smart home energy networks makes this sociable smoke-detector scenario entirely within our reach. I want one.</p>

links for 2009-08-17

August 18, 2009

links for 2009-08-15

August 16, 2009

links for 2009-08-13

August 14, 2009
  • <blockquote>
    <h4>Are there yet ZigBee products on the market?</h4>
    <p>Yes, there are. Some implement an actual ZigBee stack while others feature a ZigBee ready
    platform like EmberNet.</p>
    <p>Examples in the residential space include Control4 (lighting), Eaton (home automation),
    Golden Power Manufacturing (sprinklers and thermostats), Hawking Technology (home
    gateways), Kalirel (heating), Mija (fire extinguishers), Nice (shutters), and TSC Systems
    (home automation).</p>
    <p>Examples in the commercial space include Mija (fire extinguishers), Philips (lighting),
    Siemens (building automation), and TAC (building automation).</p>

links for 2009-08-12

August 13, 2009

links for 2009-08-11

August 12, 2009

links for 2009-08-10

August 11, 2009
  • <blockquote>
    CONCAT( "[",
    AS json FROM users;

    CREATE TABLE `user`(
    `id` int not null auto_increment,
    `name` varchar(100),
    `email` varchar(50),
    ) ENGINE = InnoDB;

    INSERT INTO `user` (`name`, `email`) VALUES
    ('Cesar', ''),
    ('Maria', ''),
    ('Jose', ''),