the twitter the facebook the delicious

Thinks

Trying to download older Flex 3 SDK?


I tried downloading Flex SDK 3.5a (to fix another problem I'll talk about later).

 

You might want to do that from this page:

 

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

 

However, after picking the file you want and agreeing to the terms, you're directing to a link as such:

 

http://fpdownload.adobe.com/pub/flex/sdk/builds/flexundefined/flex_sdk_3.5.0.12683.zip

 

Which fails.

 

However, looking at the URL and taking a guess, I figured they have a lil' bug that is making the link say "flexundefined" instead of "flex3".

 

If you change the link to the following, it works just fine:

 

http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.5.0.12683.zip

 

Nothing huge, but figured I'd document it.



Read More >>


Posted: Wed, 11 Aug 2010

Update on WWW::Facebook::API


Well, after a couple emails passed along with the author of WWW::Facebook::API, my previous issues seem to have been addressed. And looks like I received a mention in the Changes file and now I'm on the list of Contributors. That's dope!

Excerpt from Changes file:

- Fixed upload method in Video along with docs (Anthony Bouvier)++
- Updated server call in API.pm to allow a filename to be passed in
from the upload methods under Video and Photo. (Anthony Bouvier)++


I didn't actually write any of the code for those changes, just sent notes and a quick example (iirc). Still, pretty damn cool to me!


Read More >>


Posted: Wed, 02 Dec 2009

NTIL #1


NTIL (Neat Trick I Learned) #1:

Switching a column to a row in Excel.

Many, many times I've had to manipulate Excel files sent from clients. Prep them for import into a database, an email system, a script or what not. One too many times I've needed a column to be a row or vice versa.

I remember searching for this solution before and asking a few "Excel people" I know, but never did the find the answer.

Figured I'd put note in so I can remember this for the future.

  • Select the row or column you want to flip.
  • Copy it
  • Find a blank cell you want to paste in
  • Go to Edit, then Paste Special
  • Click the checkbox that says Transpose

Originally found this via timeatlas.com. Paraphrased the instructions here for redundancy.

Read More >>


Posted: Wed, 04 Nov 2009

WWW::Facebook::API video upload .. bug?


I recently submitted this note to the RT system on CPAN for the WWW::Facebook::API module (version 0.4.16 as of this writing). Figured it was worth noting for others to find, as I certainly had issues with video.upload when I was helping write something at work.

I'm waiting to hear back from the author (or other maintainer) of the module before I do anything like submitting a patch (really a simple code change). If I don't hear anything back soon, I'll just post the modified code here.

It could be useful to someone else later on:

So, I may have a bug, or just my own serious misunderstanding of how the API works.

In the main API.pm file, there is the sub _post_request() which is called from call()

There is a hardcoded filename ('filename') and hardcoded Content-type ('image/jpeg').

For uploading images (even non-jpegs) this is fine because Facebook doesn't care about the Content-type or the filename actually.

However, for video, it DOES care. With those lines in API.pm, you simple cannot currently upload video of any format. Facebook requires a filename WITH extension -- it checks for extension first for compatible types. So sending a hardcoded 'filename' doesn't cut it -- it will just return Error 352: Video file format is not supported.

If you change the code (which I did) to accept a passed in filename (not the hardcoded, non-extension, 'filename') -- the video upload works. And images still work too.

This is probably all happening because video.upload changed somehow since the release of the CPAN module.

Read More >>


Posted: Sun, 11 Oct 2009