Monday, August 8, 2011

wordpress

Porting
  1. database config : wp-config.php
  2. SELECT * 
    FROM `wp_options` 
    WHERE option_name
    IN (
    'siteurl', 'home'
    );
  3. change site url in db:
    update wp_options` set `option_value` = 'wp_base_url' where option_name in('siteurl','home');
  4. if required,change RewriteBase in .htaccess

Wednesday, July 20, 2011

w3c

w3 validator
http://validator.w3.org/check?uri=

validate and entire site
http://www.htmlhelp.com/tools/validator/

Thursday, June 16, 2011

faceBook App Creation

http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/

http://developers.facebook.com/docs/guides/canvas/#config

To set up your Canvas Page and Canvas URL you must first register your Facebook app (verify with mobile phone)and enter in your basic app information. With that complete, click the "Facebook Integration" tab on the left side of the configuration screen and specify a Canvas Page and Canvas URL:

Thursday, October 21, 2010

ffmpeg

download :http://ffmpeg.arrozcru.org/autobuilds/ffmpeg-latest-mingw32-static.7z from http://ffmpeg.arrozcru.org/autobuilds/

ffmpeg : http://www.ehow.com/how_4716678_install-ffmpeg-windows.html

combine 2 files in wondows
  1.  convert the required files to mpg first
  2. use any of the tricks in http://txpress.blogspot.com/2007/01/join-multiple-video-mpg-files-in.html
  3. and change it to flv  ffmpeg -i kilichundan_mambazham4.mpg kilichundan_mambazham4.flv


php ffmpeg: http://forums.about.com/n/pfx/forum.aspx?tsn=1&nav=messages&webtag=ab-php&tid=274
sample ffmpeg commad: http://stackoverflow.com/questions/43890/crop-mp3-to-first-30-seconds
phpclass: http://www.phpclasses.org/package/3747-PHP-Manipulate-and-convert-videos-with-ffmpeg-program.html

Batch operations example

:: http://backroom.bostonproductions.com/?p=378
:: save this as doConvert.bat and CALL this batch file as
::  for %i IN (*.flv) DO (doConvert.bat %i)

IF EXIST %~d1%~p1%~n1.mp3 GOTO exit

@echo ————————— >> "%~d1%~p1%convert.log"
@echo Conversion for %1 started on %DATE% %TIME%  >> "%~d1%~p1%convert.log"

ffmpeg -i %~d1%~p1%~n1.flv -ss 60 -t 30  samples/%~n1_sample.mp3

@echo ————– DONE – SUCCESS ———————- >> "%~d1%~p1%convert.log"

:exit
@echo ——————————– >> “%~d1%~p1%convert.log”
@echo “%~d1%~p1%~n1.jpg” already exists >> “%~d1%~p1%convert.log”


CROPPING:
http://ffmpeg.org/ffmpeg-doc.html#SEC74
ffmpeg -i fullmovie.mpg -vf  "crop=in_w-2*10:in_h-2*30" fm.mpg

Crop syntax is:
crop=width:height:x:y

so to chop 10 pixels from bottm
so you simply need to specify
crop=in_w:in_h-10:0:0