Skip to content

SMS Post

I can’t complain

SMS Post

On a plain

SMS Post

Listening to some KMFDM. The beatings will continue until morale improves. This is a long message to test some thing that i think should be working. So it will be long and pointless but what the fuck.

SMS Post

Is twitter IRC 2.0?

safaris

i want to go on them.

processing.js

OMG holy fucking shit!

http://ejohn.org/blog/processingjs/

this is great.

though i’m glad i invested in a dual-core laptop, will be needing it to run a web browser. :/

Javascript Drama

Some people are not happy about my muxtape downloader script:

http://userscripts.org/scripts/show/24382

collecting e-dust

this thing needs updates…maybe? does anyone even read it?

Customize your YouTube video

So how did I get this crap image as the first frame of a YouTube video? Well I will show you so you can do the same thing!

  1. Find a video you want to embed. For this example I will use http://www.youtube.com/watch?v=U0FAaah8jgY
  2. Note and copy its “video_id”, which in this case is “U0FAaah8jgY” from http://www.youtube.com/watch?v=U0FAaah8jgY
  3. Get the video’s “t-code”. This can be done by doing a view source of the video page and looking for the code between “&t=” and the next “&” in a section that has this. In our example, this “t-code” would be “OEgsToPDskJXsoy4CQ56hZR-A204DL4a” from id=U0FAaah8jgY&l=209&t=OEgsToPDskJXsoy4CQ56hZR-A204DL4a&s=21556AB
  4. Now create the image you want to use and upload it to your site or an image hosting site. I would recommend using a JPG with dimensions of 425 x 325. Anything with a proportion that is away from that will look stretched out and not so nice. Copy the URL for your image.
  5. You are now ready to produce the code. In the following piece of code, replace with your video_id from step 2, with your t-code from step 3, and with your image from step 4. Note that your image URL should NOT have the http:// in there.

    <object width="425" height="350">
    <param name="movie" value="http://www.youtube.com/v/<video_id>"></param>

    <param name="wmode" value="transparent"></param>
    <embed src="http://www.youtube.com/p.swf?video_id=<video_id>&eurl=&iurl=http%3A//<image>&t=<t-code>" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>

    </object>

  6. Finished! Now simply copy your new code from above into the HTML of your site and you have a YouTube video with a custom first frame. Enjoy!

Facebook doesn’t like my script :(

UPDATE: Since I no longer use Facebook and deleted my account with them, I put the code back up. Get it here: http://www.nemik.net/code/facebook-rss.zip and let me know if you like it.

Facebook decided it did not like my script for RSSing the ‘News Feed’ feature. I guess the lawyers are still on a leash to keep from ripping me to shreds.

I decided not escalate the issue further knowing that their lawyers probably could rip me to shreds and I’m not currently interested in testing their abilities in doing so.

Facebook’s e-mail:

“Hey Nemanja,


I’m an engineer at Facebook and I’m writing to ask you to please discontinue
using and providing for download your RSS script (for scraping News Feed).
We applaud your efforts at extending the use of Facebook, but unfortunately
we cannot allow automated scripts to access our site for any reason. If you
review the Terms of Service (located at http://facebook.com/terms.php) you
will see the following sentence beneath Member Conduct:
“Additionally, you agree not to use automated scripts to collect information
from the Service or the Web site or for any other purpose.”
We’ve disabled your account for now, but if you’ll get back to me when
you’ve removed the script (and discontinued using it) I will be happy to
re-enable your account.

We’d obviously like to resolve this without getting the lawyers involved if
possible, so please get back to me as soon as possible so our legal
department doesn’t get all fired up about this.

Thanks,

Chris Putnam
Facebook Engineer
http://facebook.com/p.php?id=13&l=7f32d95924

So the script is no longer being hosted on my site. Thanks to all who commented on it and helped perhaps improve it.