June 28, 2004

News of the recent weeks and bloggage

P

ersonal stuff soon, but interesting articles first:

A speech given to MSFT research about the evils of DRM

Senator Hatch (who used to understand stuff) has introduced the INDUCE Act, which will criminalize the act of inducing another to commit a copyright violation. This is a brand new theory of copyright liability, which, as this floor statement makes clear, is directed at overturning Sony with respect to p2p.

The proposal alone is troubling enough. But the outrageous part is that there is talk that this massive new layer of federal regulation of technology will happen without hearings — indeed, that it will be passed in the next weeks. More…

Washington, DC, Jun. 24 (UPI) — After choosing his running mate, U.S. presidential candidate Ralph Nader urged likely Democratic nominee Sen. John Kerry to pick Sen. John Edwards as his own. More…

While browsing through Rasmus’s Tips and Tricks slides from his talk at PHPCon, I think I found my answer (on page 25 of the accursed PDF file), in what he calls “funky caching.” It works like this: you redirect 404 errors to a PHP script, which looks at the requested URL, decides whether it should actually exist, and if it should it builds the file from the database, saves it to the filesystem, and then returns the page to whoever requested it. Next time that URL is requested, the static file will be served.
More…

Notification in Mozilla when Gmail arrives

Some really good stuff currently at informed consent.

G-Mailto is a utility that automatically associates “mailto” email links on the web with GMail. So clicking a link like this: Email me! will open up the GMail compose window instead of opening up something like Outlook Express that doesn’t work with GMail (yet). More…

Windows XP Service Pack 2 - RC

Penned by at 12:45 PM | Comments (0) | TrackBack
Referrers
', "\n"; echo '
', "\n"; $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=359 GROUP BY referer ORDER BY count DESC, title'; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) { $n++; echo ''; echo $title . " [" . $count . "]
\n"; } } if (!($n)) { echo "No referrals yet
"; } else { echo "
\n"; echo 'referrers [referrals]
'; } echo '
'; echo "
Search Terms
\n"; echo "
"; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $query = ''; $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ($search == 1) { $n++; $query = "" . $title . ""; echo $query . ' [' . $count . ']' . "
\n"; } } if (!($n)) { echo "No search terms yet
"; } else { echo "
search terms [hits]"; } echo "
"; ?>

June 16, 2004

Sites back up

S

ite is back up.

I’m going to Santa Cruz to meet Sarah’s family. Fear, Anticipation, Excitement.

Finals are nuts. Car is going to be towed back to Victorville.

7 hours till my last two finals; im hiding in the computer lab on campus until the campus police stop searching the night library; I can’t find my bruincard and they’ll throw me out if i dont have it.

Resetup my email forwarding so it doesn’t die if Groupnetwork died (i mean when groupnetwork dies again)

Gmail is quite cool, email me if you want an invite. Props to Lora for getting me started.

Suddenly had an urge to find something that hilights code if posted on the site, of course thats more entertaining than studying.

Highlight converts source code to formatted text with syntax highlighting.
problem: its not in real time.
Others :
http://www.elise.com/mt/archives/000235display_code_in_entries.php
http://people.ssh.com/mtr/genscript/
http://rafb.net/paste/results/ (the backend!)
http://colorer.sourceforge.net/

Have I noted how my python rocks? Its quite cool, any language that lets you do
for line in array: line = blah

I’m just saying, thats a nifty way to do fors.
Regex rocks too.

I’m noticing more and more inefficiency in my code… using an O(n^2) solution when a O(nlogn) sol was available, my java code for a file parser being roughly three times the size of my TAs… practice I guess.

Amazingly, there is no Madonna on my ipod right now and I’m sad about that. Also I’m sad that I can’t find any of the Tolkien Ensemble (without, you know, actually buying the Cd’s from denmark)…

VH1 had a new program on today, the “Top 100 moments that rocked TV”… #1 being Clintion playing the sax on Aresenio Hall… I wish I watched that show when it was out… Anyhow, a good 5 hours went there, instead of , you know, studying.

Penned by at 01:04 AM | Comments (0) | TrackBack
Referrers
', "\n"; echo '
', "\n"; $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=358 GROUP BY referer ORDER BY count DESC, title'; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) { $n++; echo ''; echo $title . " [" . $count . "]
\n"; } } if (!($n)) { echo "No referrals yet
"; } else { echo "
\n"; echo 'referrers [referrals]
'; } echo '
'; echo "
Search Terms
\n"; echo "
"; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $query = ''; $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ($search == 1) { $n++; $query = "" . $title . ""; echo $query . ' [' . $count . ']' . "
\n"; } } if (!($n)) { echo "No search terms yet
"; } else { echo "
search terms [hits]"; } echo "
"; ?>

June 11, 2004

AP: McCain Rejects Kerry's VP Overture

T

his just makes me sad… I would have loved that.

AP: McCain Rejects Kerry’s VP Overture
WASHINGTON (AP) - Republican Sen. John McCain has personally rejected John Kerry’s overtures to join the Democratic presidential ticket and forge a bipartisan alliance against President Bush, The Associated Press has learned.

Kerry has asked McCain as recently as late last month to consider becoming his running mate, but the Arizona senator said he’s not interested, said a Democratic official who spoke on condition of anonymity because Kerry has insisted that his deliberations be kept private. A second official familiar with the conversations confirmed the account, and said the Arizona senator made it clear he won’t change his mind.

Penned by at 04:13 PM | Comments (0) | TrackBack
Referrers
', "\n"; echo '
', "\n"; $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=357 GROUP BY referer ORDER BY count DESC, title'; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) { $n++; echo ''; echo $title . " [" . $count . "]
\n"; } } if (!($n)) { echo "No referrals yet
"; } else { echo "
\n"; echo 'referrers [referrals]
'; } echo '
'; echo "
Search Terms
\n"; echo "
"; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $query = ''; $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ($search == 1) { $n++; $query = "" . $title . ""; echo $query . ' [' . $count . ']' . "
\n"; } } if (!($n)) { echo "No search terms yet
"; } else { echo "
search terms [hits]"; } echo "
"; ?>

June 03, 2004

So many things

S

o many things… incompetent TA’s, things up and down with Sarah, remembering other gals that DID do a lot of cute things, finals and massive projects looming, car totally dead, but only one thing entertained me so much I HAD to post.

THE SENATE AIDE who blogged her sex secrets has been named and fired. Jessica Cutler, 24, who has become better known in Washington circles as “Washingtonienne”, was fired last week from her job as an entry-level aide to Republican Senator Mike DeWine.
Her blog, which she set up so she didn’t have to write so many emails to her friends, detailed her sex-ploits in the corridors of power.

http://washingtoniennejessicacutler.blogspot.com/
http://www.theinquirer.net/?article=16158

Oh, and from the Enigma List
- What if the Election Were today
http://www.electionprojection.com/elections2004.html?89,29

Oh, and ALLOFMP3 still rocks.

Penned by at 01:33 AM | Comments (0) | TrackBack
Referrers
', "\n"; echo '
', "\n"; $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=356 GROUP BY referer ORDER BY count DESC, title'; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) { $n++; echo ''; echo $title . " [" . $count . "]
\n"; } } if (!($n)) { echo "No referrals yet
"; } else { echo "
\n"; echo 'referrers [referrals]
'; } echo '
'; echo "
Search Terms
\n"; echo "
"; $rs = mysql_query( $sql ); $n = 0; while( $row = mysql_fetch_assoc( $rs ) ) { $query = ''; $referer1 = $row['referer']; $title = $row['title']; $count = $row['count']; $search = $row['search']; if ($search == 1) { $n++; $query = "" . $title . ""; echo $query . ' [' . $count . ']' . "
\n"; } } if (!($n)) { echo "No search terms yet
"; } else { echo "
search terms [hits]"; } echo "
"; ?>

45)) {$title = substr($title,0,42) . "..."; } else if (trim(strlen($title)) > 52) { $title = substr($title,0,49) . "..."; } } mysql_query( "UPDATE mt_entryhits SET title='$title', search=$search WHERE referer='$referer'" ); function getquery($ref){ $queries = array("search=", "epq=", "p=", "qkw=", "q=", "query=", "va=", "qry=", "userQuery=", "searchfor=", "question=", "sb="); while(list($key,$val)=each($queries)){ $pos = 0;//initialize $pos = strpos($ref, $val); if (strpos($ref,'encquery')) { $pos = 0; } #$ret .= "($pos $val)"; if($pos > 0){ $endpos = strpos ($ref, "&", $pos); if(trim($endpos) == ""){ $search = substr($ref, ($pos+strlen($val)), strlen($ref)-$pos); }else{ $search = substr ($ref, ($pos+strlen($val)), ($endpos-$pos)-2); } $endpos = strpos ($search, "&"); if(trim($endpos)) { $search = substr ($search, 0, $endpos); } $searched = trim($search); $searched = str_replace("+", " ", $search); $searched = str_replace("%2E", ".", $searched); $searched = str_replace("%2B", "+", $searched); $searched = str_replace("%2b", "+", $searched); $searched = str_replace("%22", '"', $searched); $searched = str_replace("%22", '"', $searched); $searched = str_replace("%20", " ", $searched); $searched = str_replace("%3F", "?", $searched); $searched = str_replace("%28", "(", $searched); $searched = str_replace("%27", "'", $searched); $searched = str_replace("%3A", ":", $searched); $searched = str_replace("%2C", ",", $searched); $searched = str_replace("%24", "$", $searched); $searched = str_replace("%21", "!", $searched); $searched = str_replace("%5C", "\\", $searched); $searched = str_replace("%2F", "/", $searched); if(trim($searched) == ""){ $searched = substr($ref, $pos, strlen($ref)-$pos)."($endpos)"; } } } if(trim($searched) !== "") { return "$searched"; }else{ return false; } }// end function ?>
site ed pills site ed site ed pills site ed