Hurt Locker Attack

Fake Chinese iPads hitting Chinese market before Apple can move into the market. Zuckerberg donates to Diaspora. Why? New $99 Apple TV coming soon. Still just a box. Most observers do not see Verizon iPhone there. Facebook top site in the history of the Internet. Motorola Android tablet coming out soon. More weird Oil stories. Google to do ads on our phones. Marvell doing an OLPC and a tablet. iPhone can be screwed with. My Marketwatch column runs today. Computex begins shortly. LCD 3D without glasses is blurry. Foxconn jacks up pay.

It’s a holiday. Get a date for the weekend!! Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Change Your Era

Acer Android phone is loaded. US probing iTunes dominance. Atlantis shuttle may fly one more time. Huh? Natal shipping Oct. 26.FCC discovers mobile bills are shockingly weird. Do these guys ever get out of the house? Apple’s WWDC a mystery. EVO getting all the ink. AT&T Android phonies crippled by AT&T. Burner phones to be cracked down upon. Gartner sees rosy year. Yahoo modernizing site. It’s about time. Ballmer in the news for miscues.

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Geeks On PHP Episode 12

In this episode Stephen and I talk about database connections, retrieving results and making use of those results. Both MySQL and PostgreSQL are discussed in this episode so whichever open source database you are using we got you covered.

Here is a link to Stephen’s database class for MySQL. He discusses it’s usefulness and some of it’s functions in the show.

Here is some sample code for getting connected to and pulling out results from a PostgreSQL database. The database include file should be separate from your application code so that you can easily change connection parameters in one location without touching your application.

/* Example of PostgreSQL database include file
	named db.inc */

$host = "hostname";
$port = "port";
$dbname = "database";
$dbuser = "username";
$dbpass = "dbpass";

$hdb = pg_connect("host=$host port=$port dbname=$dbname
	user=$dbuser password=$dbpass");

/* How to include and open connection in script */
require_once("db.inc");

/* How to query a PostgreSQL database */
$res = pg_query($hdb, "SELECT name, email FROM table");

/* Close database connection */
pg_close($hdb);

/* Create associative array */
while($ares = pg_fetch_assoc($res))
{
	// do stuff
}

/* Create object */
while($ores = pg_fetch_object($res))
{
	// do stuff
}

Check both Stephen and Myself out on Twitter and also subscribe to us on iTunes!

Enjoy the show and as always, stay geeky!

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

- Nicholas

Share

Read Users' Comments (2)

Google vs Apple vs MSFT

Facebook to simplify privacy controls. XBoX hotshots quit Microsoft. Bad sign. CEO of Foxconn concerned about the suicide problem? Did 8GB 3G iPhone get killed. Pac-Man on Google wasted time. Duh! Dell streak in the wild. Net neutrality at risk. Twitter banning third party ads. Bezos not planning much with the Kindle. Motorola Shadow coming to you. Cam MSFT win anything?

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Thin is “In” Finally.

The Lost TV show sucked. Face book privacy issues showing up in political campaigns. Google now hold Pac-Man. Mars lander dead. Halo, the game, is in the news. How dull. New Adobe flash runs on Android. Twitter getting tough. Google gives up some ad numbers. Intel goes for ultra thin. Yankees ban laptops and iPads.Finally the HHD! New GPS coming our way.

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Worst Computers

Google I/O conference over. Hooray. 30 Year anniversary of Pac-Man. AT&T is expensive. Stop the presses! Encrypted Google search coming from Google. Pakistan re-opens Facebook. More suicides at Foxconn. HP recalls batteries. Japan send rocket to Venus. Best and worst computers nailed by CR. Salesforce hates Microsoft. IBM sends out infected USB port.

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Geeks On PHP Episode 11

In this episode we talk about everything from image manipulation, generating charts & graphs, classes and frameworks and even home invasions.

The charting libraries I discuss are Fusion Charts and pChart, both are very good libraries and have great documentation on how to get started.

The following is a code snippet that I wrote which takes in an associative array, parses it out for a data label ($a[0]) and a data value ($a[1]) and generates a Fusion compatible XML file.

function fnGenerateXML($scaption, $sxaxis, $syaxis, $adata)
{
  if(empty($adata))
    die("Empty data set passed to function.");

  $sdata = "\n";

  foreach($adata as $arow)
    $sdata .= " \n";

  $sdata .= "";

  $sfile_xml = "./chart.xml";
  file_put_contents($sfile_xml, $sdata);
  return $sfile_xml;
}

The function is called in the following fashion:

$sfile_xml = fnGenerateXML("Caption", "X Lbl", "Y Lbl", $a);

The Fusion Chart is generated using the following method call:

echo renderChartHTML("./Column3D.swf", "$sfile_xml", "",
      "ID", 650, 650, false);

Here is some sample code I wrote to generate a graph using pChart:

// Dataset definition
$pData = new pData;
$pData->AddPoint($a1, "s1");
$pData->AddPoint($a2, "s2");
$pData->AddPoint($alabels, "lbl");
$pData->AddSerie("s1");
$pData->AddSerie("s2"); 

$pData->SetSerieName("s1lbl", "s1");
$pData->SetSerieName("s2lbl", "s2");
$pData->SetYAxisName("Ylbl");

$pData->SetAbsciseLabelSerie("lbl");

// Init graph
$pGraph = new pChart(800, 340);
$pGraph->setFontProperties("./tahoma.ttf",8);
$pGraph->setGraphArea(50,30,680,200);
$pGraph->drawFilledRoundedRectangle(7,7,693,240,5,240,240,240);
$pGraph->drawRoundedRectangle(5,5,695,240,5,260,230,230);
$pGraph->drawGraphArea(255,255,255,TRUE);
$pGraph->drawScale($pData->GetData(),
   $pData->GetDataDescription(),SCALE_ADDALL,150,150,150,TRUE,0,2,TRUE);
$pGraph->drawGrid(4,TRUE,230,230,230,50);

// Draw the 0 line
$pGraph->drawTreshold(0,143,55,72,TRUE,TRUE);

// Draw the graph
$pGraph->drawStackedBarGraph($pData->GetData(),
   $pData->GetDataDescription(),TRUE);

// Finish
$pGraph->drawLegend(500,40,$pData->GetDataDescription(),255,255,255);
$pGraph->drawTitle(225,22,"Title",0,0,0);
$pGraph->Stroke();

As you can see pChart requires a bit more setup to get going but both are great libraries for getting the job done. Another free option for charting/graphing that we didn’t discuss on the podcast is the Google Chart API.

Check both Stephen and Myself out on Twitter and also subscribe to us on iTunes!

Enjoy the show and as always, stay geeky!

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

- Nicholas

Share

Read Users' Comments (1)

Is the iPad Killing the Mac?

Google event packs them in. Google TV shown. Looks like a howler to me. It’s all about the ads. Scientists have created life! Maybe not. Android 2.2 and 2.1 all over the news. New version of Flash out and about. What is hate speech? Is the iPad killing Mac sales? Nobody knows. Google stuck with dubious data. Sonic game delayed. A sun eats a planet. FCC baffled by competition.

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Android on iPhone Now!

Google I/O conference underway with a lot of Google apologies. Facebook banned by Pakistan because Facebook created a contest to draw Muhammed. Installing Android on the iPhone unveiled. Germany has a criminal inquiry over Google spying. Climate change on the attack. Twitter app from Twitter will kills small companies. MSFT suing Salesforce. Hotmail back in the news. Why? Yahoo buys SEO content maker. Gak. HTC EVO cell phone in the news.

Show presented by e-Harmony. Get a date. Go to www.eharmony.com and use the code EHTECH for a great discount.

Click to listen:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Share

Read Users' Comments (1)

Facebook About Face

Hotmail update coming. How many years has it bee? Amazon trying to sell books not Kindles. Google WiFi snagging getting company in trouble. People quitting Facebook. So what? Best buy going after Netflix. VC’s like the Android OS. Tablet mania just beginning. Steve Jobs loses $10 billion. HP wants Palm for a printer driver??

Share

Read Users' Comments (1)

 Page 1 of 3  1  2  3 »