List Open ports on Mac OS X

July 16th, 2009 | Author: Sunny

Found this on the web. I used to use fport to see which port is open on my machine, but it only works for Windows. So, this will be helpful for any of you if you are looking for the same information.

open terminal windows, and type: sudo -lsof -i -P | grep -i “listen”

P.S.
| grep -i “listen” <— this is optional… but help you to grep which port is listening


Save Youtube Video from Safari

July 13th, 2009 | Author: Sunny

My sister was being interviewed on TV something about plastic bag tax. Her husband wants to save this interview, but they have already missed the broadcasting time. And thank to the Internet, it has been showing on Youtube. haha. So, he wants me to help him to save it and crop my sister’s part out. I looked around, but did not find any good converter. There was a site that actually you can copy Youtube’s URL, and convert the video. However, the quality was not good at all, and no sound!!! (still couldnt figure out why)

And I found this: http://www.usingmac.com/2009/1/20/free-download-hd-youtube-video

You can save youtube video from Safari! Following this steps on Safari:

1. Open YouTube URL to video. Append URL with &fmt=18 to view HD video (you may not need it if you don’t need HD video)
2. Show up Activity Monitor (Command-Option-A)
3. Seek for file with largest size and Option-Click it
4. The download should be started with default name video.mp4

Isn’t it nice? and I used iMovie to crop my sister’s part out.

Category: Mac Stuff | Tags: , , , | Leave a Comment

Wordpress and flash?

July 03rd, 2009 | Author: Sunny

ok. First I want to say: This may not work, just my idea how Wordpress and flash work together.

Since WordPress uses Database, you can actually retrieve your Blog from the database. What you need to do is write a script to retrieve those data and display it as XML or whatever data format you like. Then your flash movie should read XML (or other data format) and display it.

This purpose only good for read only.. since we are not modifying the database.. so I guess this should work well. If you want to do more advance stuff, then the best way is first to see how the database tables related to each other, then do an appropriate updates for each modification.

If you have a better idea, please let me know…