wsdl in php

We can use nusoap and pear library to invoke web service … there are some command line tools to consume services and generate/validate wsdl ….. 1. wsdl (call method at CLI) # wsdl WSDL_URL METHOD 2. soapUI create wsdl project and use web services 3. wsdl2php wsdl2php convert service methods as the class like structure … Read more

Install DimDim on CentOS 5.3 (Final)

Dimdim is a software company that provides a web-based platform (Webinar) for real-time, rich-media collaboration and meetings. Dimdim provides free web conferencing service where users can share desktops, show slides, collaborate, chat, talk and broadcast via webcam. Dimdim Web Meeting Server Version:4.5 ReadMe ( 32 bit Operation System Only ) Created : 16/10/2008 Last updated … Read more

Grep / ACK

Grep / ACK Ack can be replacement for grep….. # yum install ack Suppose you are on /var/www/html, here you want to search text “svnlabs” in all files in current directory…. you can use: # ack svnlabs # man ack    (for more options) grep : print lines matching a pattern. find : search for … Read more

midentify – mplayer

midentify – It is the utility come with mplayer to find video ID of video files…. # /usr/bin/midentify video.mp4 ID_VIDEO_ID=0 ID_AUDIO_ID=1 ID_AID_1_LANG=eng ID_FILENAME=video.mp4 ID_DEMUXER=lavfpref ID_VIDEO_FORMAT=avc1 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=320 ID_VIDEO_HEIGHT=240 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=1.3333 ID_AUDIO_FORMAT=255 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=24000 ID_AUDIO_NCH=2 ID_LENGTH=72.62 ID_SEEKABLE=1 ID_CHAPTERS=0 ID_VIDEO_CODEC=ffh264 ID_AUDIO_BITRATE=128000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 ID_AUDIO_CODEC=faad ID_EXIT=EOF Try # mediainfo to get video infrmation on linux box  🙂

Traffic Capture – tcpdump

Packet Sniffer [root@svnlabs ~]# route Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 192.168.0.0     *               255.255.255.0   U     1      0        0 eth0 default         ip12.mshome.n 0.0.0.0         UG    0      0        0 eth0 # /sbin/route -n # tcpdump -i eth0 ‘port 80’ # tcpdump -n -c 30000 -w /root/port.80.debug.txt # tcpdump -X -vv -r /root/port.80.debug.txt … Read more

file format validation

Below is the code to check file type in javascript.. <script type=”text/javascript” language=”javascript”> function isImage(file) { var image    = /\.(jpg|jpeg|bmp|gif|png|jpe)$/i; if (image.test(file)) return true; else return false; } function isAudio(file) { var audio    = /\.(mp3|wav|mid|midi|mp2|ul|ra|m3u|ram|rm)$/i; if (audio.test(file)) return true; else return false; } function isArchive(file) { var archive    = /\.(zip|rar)$/i; if (archive.test(file)) return true; else … Read more

wget – server to server files transfer

wget is powerful utility in linux. We can use “wget” to download files of any folder on any server to our server. wget will download files on local server in current folder, we can use # pwd (for current directory) # wget -H -r –level=1 -k -p http://www.domain.com/folder/ here level is folder’s level Keep downloading … Read more