Surf 11 » Archives for September, 2005

Finding the best waves on the web.

Calling the Blogger API From ColdFusion

Here's a code snippet that you can use to call the Blogger API web service from ColdFusion:

<cfsavecontent variable="xmlRPCCall"><?xml version="1.0" ?>
<methodCall>
<methodName>blogger.getUsersBlogs</methodName>
<params>
<param><value><string>0123456789ABCDEF</string></value></param>
<param><value><string>username</string></value></param> <param><value><string>password</string></value></param>
</params>
</methodCall>
</cfsavecontent>
<cfhttp method="post" url="http://plant.blogger.com/api/RPC2" charset="utf-8">
<cfhttpparam type="XML" value="#xmlRPCCAll#">
</cfhttp>
<cfset result = XmlParse(cfhttp.filecontent)>
<cfdump var="#result#">

Check out the Blogger API docs for more info.



MySQL Access Denied error 1044

If you make some changes to your MySQL permissions, and they don't appear to be working make sure you try and issue a:

FLUSH PRIVILEGES;

That statement will refresh all the prermissions. If you need to GRANT access to a user try something like this:

GRANT ALL PRIVILEGES ON dbname.* TO user@host;


iPod for Windows OR Mac

If you have an iPod, a Mac, and a windows box you would think that you could connect it to either computer - but you can't. You have to pick one either mac or windows. Apparently they format them differently for each platform. So if you want to switch back you need to reformat your iPod, and loose all your stuff. Here is a bit more info about this.



Download a File with wget

Need to setup a scheduled task to download a file? You can use cron, and wget to do this. Your wget command might look something like this:

wget --quiet --output-document=result.html http://www.google.com/


The CSS XML / RSS Button

You can make one of those orange XML or RSS buttons or icons without using an image with CSS. Here's how:

CSS:

.feed {
border:1px solid;border-color:#FC9 #630 #330 #F96;padding:0 3px;font:bold 10px verdana,sans-serif;color:#FFF;background:#F60;text-decoration:none;margin:4px;
}

HTML:

<a href="/rss/" class="feed">FEED</a>

Example:

FEED



How to do a MX lookup on windows

Here's a little trick you can use to lookup an MX record for a domain. MX records are the Mail Exchanger records in DNS - they specify what IP address email should be directed to for the domain. So open up the command prompt (Start - Run - cmd)

nslookup
> set type=mx
> example.com


Identity 2.0

Check out this webcast on Identity 2.0.

As the online world moves towards Web 2.0, the concept of digital identity is evolving, and existing identity systems are falling behind.


How to write better Software

Scott Berkun - the author of The Art of Project Management has posted an essay titled Why Software Sucks - and what to do about it.



Install Apache 1.3 On Gentoo Linux

Gentoo Linux typically has you install the latest versions of everything, but sometimes you need an older version. For instance suppose you wanted to install the latest Apache 1.3 rather than Apache2, use the following:

emerge \<apache-2.0


MySQL vs Oracle vs PostgreSQL

An objective comparison of MySQL, Oracle and PostgreSQL. Via devnulled.

There was also a SQL comparison that made its rounds recently.



Howto be a human lie detector

Here are some ways to tell if someone is lying:

  • They may place objects between you and themselves without realizing it.
  • Repeats words from the question - did you eat the cookie? - no I did not eat the cookie
  • More


Your Rights Online

The Chilling Effects web site is a coalition of law schools and civil liberties organizations. Their goal is to help you understand your rights online so corporations, celebrities, and polititions are less successful at silencing commentary that they do not agree with. The site includes FAQ's about Copyright law, Trademarks, Domain Names, Defamation, Anonymous speach, and Fan Fiction.



Subscribe to our RSS Feed: subscribe to this feed XML
Archives   Tags   Contact