Accessing a Resource in Java
Accessing a Resource in Java A resource is data(audio, vedio, image, text etc.) that a program needs to access. Before accessing a resource by a Java program, the resorce is…
Install JAVA Tomcat on Linux
Installation of Java Login to server as root # cd /opt Download jdk 6 linux rpm bin package from sun (Java SE Development Kit (JDK)) http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/downloads/widget/jdk6.jsp # chmod 777…
CakePHP in svnlabs
CakePHP is the rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It follows design patterns like MVC and ORM, CakePHP reduces development…
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…
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,…
send xml over post
<?php /* $url = Web Service Url or Server Url where xml have to post $xml = XML schema to post on server */ function sendXmlOverPost($url, $xml) { $ch =…
Oscommerce – made easy
osCommerce is an online e-commerce solution that offers a wide range of features that allows online stores to be setup quickly with ease, and is available for free as an…
pdftohtml
<?php echo exec(“/usr/bin/pdftohtml -c -noframes ‘/var/www/html/htmldoc/pdf/svnlabs.pdf’ > ‘/var/www/html/htmldoc/pdf/svnlabs.html’ 2>&1″); ?>
Soap Client for MMS
Web services are widely supported the major technologies.. There are some ways to make web services: XML-RPC, SOAP and REST here is the demo in nuSOAP for sending MMS to…
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…
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…
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 …
WebConference
Web Conferencing include some features: Document Presentation and application sharing Chat — text, voice and video Whiteboard and Two-way screen sharing Session recording Meetings are scheduled and attended here All…
phpinfo
# php -i > php.txt # vi php.txt phpinfo() PHP Version => 5.1.6 System => Linux ip-78-xxx-xx-55.ip.secureserver.net 2.6.9-023stab044.4-smp #1 SMP Thu May 24 17:20:37 MSD 2007 i686 Build Date =>…
zend framework tips
(Join 2 or more tables) $select = $RelatedTable->select(true)->setIntegrityCheck(false); (Union tables) $adapter = $dbTable->getAdapter(); $sqlsvn=’sql goes here’ $dbRow = $adapter->fetchAll($sqlsvn, Zend_Db::FETCH_ASSOC);
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)…
create sub buckets on amazon s3
Sub buckets is very tricky task to create on Amazon S3 service… <?php include(“S3.php”); // class for REST based S3 manager $s3 = new S3(‘accessKey’, ‘secretKey’); $s3->putBucket(‘bucketname’, S3::ACL_PUBLIC_READ); /* function…
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…
float: left – anchor’s height
Today I faced a strange problem …. I have to add drop-down menu by javascript. <a href=”https://www.svnlabs.com” style=”border:2px dotted #0000FF”><img src=”svnlabs.gif” border=”0″ style=”border:2px solid #009966″ /></a> this is the code…