May 18, 2008

How to add Streaming Video in your website 1 - create a Flash Video FLV

Filed under: Programming, Software — HanaDaddy @ 10:42 am

Few years ago, I was looking for some free streaming video service solutions for my website, but couldn’t find any. There was Media Streaming Server from Microsoft, but I am using LINUX. Eventually I gave up searching that I lost interest.

But now that many movie sharing web sites are using Flash Video ( files extension .flv) I decided to take some time to learn how to embed streaming video to a website using Freewares.

Flash Video is a technology that supports streaming video naturally using Adobe Flash Player. You do not need to buy that expensive streaming media server for this. Users do require to install Adobe Flash Player in their computer in order to view this Flash videos. But most of the casual users already have the Flash installed so don’t worry. You can learn all about the Flash Video technology at Flash Video Wikipedia.

Note that if you are looking for an easy solution, you should think about utilizing sharing services such as YouTube. It’s a great service that you can upload regular movie files - such as .avi, .wmv - and it will be automatically converted to flash video. Once you upload your movie, you will get little html <embed> code snippets that you can insert to your web page.
(more…)

October 22, 2006

UPS XML Rate Quote

Filed under: Programming — HanaDaddy @ 9:20 pm

Please note that I lost my previous website and related lastest article about UPS XML shipping rate PHP codes.

But here is my original work that still works.

http://www.neox.net/ups/upsrate.php

Thank you for visiting my website and please leave some comments if you have any question.

August 25, 2006

Extract a single file from the tar file.

Filed under: Programming — HanaDaddy @ 12:05 am
tar --extract --file 20060506.edidataff.tar /edidata/IN/S_NIS/customer/20060506/050629H0.GTN

August 24, 2006

[shell] sed replace to \n

Filed under: Programming — HanaDaddy @ 11:55 pm

sed is utility to replace particular text with new text in files.

s/// doesn’t work with \n
use y/// for \n replacement

sed 'y/ /\n/g'

Or you can use ‘tr’

$> tr -s '~' '\n' < inputfile > outputfile

[shell] removing ^M : Dos text to unix

Filed under: Programming — HanaDaddy @ 11:52 pm
tr -d '\015' < inputfile > outputfile

Detecting ^M (\r\n)

Note that “^M” is “Cntrl+V and Enter” Key

#!/bin/sh
 
if grep "^M" $1 > /dev/null
then
   echo $1 contains DOS Carriage Return
fi
Page 1 of 3123»
 

44 queries. 0.334 seconds. Powered by WordPress