Navarr's Tech Side The Technical Side of my Life

24Feb/080

JavaScript: Changes to the Simple Twitter Feed

Recently, I had resumed working on the Simple Twitter Feed, and decided to make some improvements after reading Dave Winer's "What am I up to?" post.

So, the Simple Twitter Feed has one fix, and four additional optional parameters.

start STR - Symbol or Text to look for at the beginning of a post
time BOOL - Whether or not to display the "about x minutes ago"
client BOOL - Whether or not to display the "from x"
br BOOL - Whether or not to place a break between the tweet and the extra data

The simple fix is that the count parameter would check the last (x) amount of tweets, whereas now it displays up to (x) amount of tweets.

22Feb/080

Air-Powered Cars to come to America

Over a week ago, I talked about the new Air Powered Cars coming to Europe and India.  Now, a similar vehicle being developed by Zero Pollution Motors has confirmed that it expects to produce the world's first air-powered car for the United States as soon as late 2009 or early 2010, with plans to begin producing up to 10,000 Air Cars per year.

ZPM is not only licensed to make the same vehicle I talked to you about, but another higher-powered model: a $17,800 75-hp equivalent, six-seated version that is said to be able to travel as far as 1,000 miles at up to 96mph with each fill up.

I'm not going to elaborate too much on it, but just letting you fans of the car know.  You may wish to read the full article.

21Feb/082

Fedora Issues Cease & Desist against DataPortability

Red Hat, Inc. ("Red Hat") recently became aware that on your website, located at http://www.dataportability.org, you are using art work that is identical to the Fedora Infinity design logo owned by Red Hat.

Specifically, I am referring to two images on your site: the green and white logo, as well as the blue and white logo.

Personally, I think this is ridiculous.  Thoughts and comments are welcome here.  I'm not going to write any more, so that I keep myself from ranting.

20Feb/081

Using XFN with FOAF

So, before I just start splattering your screen with Acronyms, lets define a few, eh?

  • FOAF: Friend of a Friend - An XML Schema containing information about you, as well as a small bit of information, or links to information, about the people you know.
  • XFN: XHTML Friends Network - A Microformat generally used in links to other sites or pages to identify that person's relevance to you, such as "contact", "friend", "acquaintance", "met", "muse" and etcetera.

Generally, you wouldn't combine an XHTML standard with a different XML Schema.  But, I've personally decided the best way to use the two together.

First, declare the XHTML namespace in your FOAF file.  This is with all the others, and generally looks like xmlns:xhtml="http://www.w3.org/1999/xhtml".

Next, go to where you have included your contacts.  For each <foaf:knows> tag, add inside of it xhtml:rel="contact" or similar, following the XFN standards.

And voila!  You now have XFN and FOAF working together.  Of course, the only problem is that nobody quite supports this standard yet, but it will hopefully come in the future.

My Guidelines for using XFN in FOAF is that it should be used when referencing another <foaf:Person>.  In fact, if you want, you should probably even add xhtml:rel="me" to your own <foaf:Person>.

19Feb/081

The Man Who Never Sleeps

Source: XKCD

Tagged as: , 1 Comment
12Feb/0819

JavaScript: Simple Twitter Feed

This is code that I will kindly let anyone use.  It only works with public twitter accounts, however, but it is perfect for placing on any web page.

First we have the Inclusion of the File (can only be included once per page). Then the HTML for where the Twitter Feed is going to go, and then the JavaScript to include the file.

<script type="text/javascript" src="http://www.gtaero.net/twitter/twitter.php?user=USERNAME"></script>
<div id="twitFeed">Optional Placeholder Text</div>
<script type="text/javascript">twitter2id("twitFeed");</script>

Feel free to use this code anywhere you want to.  It is my gift to you!

UPDATE: Some additional (optional) variables have been added to the script for further tweaking.

February 24, 2008.

UPDATE: Support for twitter lists and turled profiles has been added to the script.  Your script might break with these changes, please view the post for more information.

October 30, 2009.

11Feb/081

The Future of Automobiles… Now!

The movie explains more than I could ever really write into text.  The cost of the vehicle, 3.500€ is about the equivalent of $5,100, with a tank that you fill up every 125 miles (200km) for only $2 (1.5€), with a top speed of 70mph.  Is that, or is that not impressive?

Would this vehicle ever sell in America, considering our harsh patent process and oil industry?  That, I'm not sure of.  So far, it is only being planned for release in Europe and India.

The only thing I find more impressive then this; dealing with automobiles, is the DARPA Urban Challenge.  I think I might choose to post about that next.

Source: AutoblogGreen

Tagged as: , 1 Comment
10Feb/082

JavaScript: Falling Objects (Images)

This code allows for one to enable a picture to "fall".  It works by using the image as a background (so make sure to have plenty of padding in the image itself).  It can use any image, and can make it fall as the background for any tag specified.  This code is free for all to use.

NOTE, this script requires the Prototype Framework.


/**
* @author Navarr
*
* Requires ProtoType
*/
     // Don't Touch This!
        window.snowflake = new Array;
    // Active?
        window.snowflake["active"]    = true;
    // Image to use?
        window.snowflake["image"]    = "/temp/img/hearts.png";
    // Div to put it in?
        window.snowflake["div"]        = "htmlBody";
    // Speed (Higher the Number, the Slower it is)
        window.snowflake["speed"]    = 7;

if (window.snowflake["active"])
{
    Event.observe(window,'load',function()
    {
        window.setInterval('startFalling()',window.snowflake["speed"]*10);
    });
}
function startFalling()
{
    if (!window.y) { window.y = 0; }
    window.y = window.y+10;
    if (window.y > window.innerHeight)
    {
        window.y = 10 + (window.innerHeight%10);
    }
    ele = $(window.snowflake["div"]);
    ele.style.backgroundImage = "url('" + window.snowflake["image"] + "')";
    ele.style.backgroundRepeat = "repeat";
    ele.style.backgroundPosition = "0px " + window.y + "px";
    ele.style.backgroundAttachment = "fixed";
}

Tagged as: , 2 Comments
7Feb/080

a single thought about HEROES happen {here}

They are throwing a fuss about computer viruses and a rootkit when the bug is on the lady's website.  Umm.. What?

Since when does a bug on a personal, ancient computer affect what your website is doing?

How does this comic make any sense whatsoever?

Somebody, tell me.

6Feb/080

<BSLSK05>

:)

Tagged as: No Comments