Resume Builder pdf2txt, word2txt

Reading PDF Files XPDF package includes “pdftotext.” You have to install XPDF/pdftotext then run the following PHP statement to get the PDF text: $txtcontent = exec(‘/usr/local/bin/pdftotext svnlabs.pdf -‘); Reading DOC Files This package is called Antiword. Here’s the PHP code to grab the Word DOC content: $txtcontent = exec(‘/usr/local/bin/antiword svnlabs.doc’);

Publish HTML2PDF

HTMLDOC converts HTML files and web pages into HTML, PostScript and PDF files suitable for on-line viewing and printing. HTMLDOC is used for anything that needs to be viewed or printed including on-line billing, books, financial statements, automated network configuration guides, mailing lists and labels, marketing flyers, quarterly reports, technical manuals, and users manuals. We … Read more

Configure Amazon EC2

1.Boot 2 linux servers on EC2 2.Assign elastic IP to each of them 3.Register a domain (eg svnlabs.com) 4.On the domain settings – create 2 host records – ns1.svnlabs.com and ns2.svnlabs.com and point each record to each of the elastic IPs. 5.On your 2 nameserver instances – create dns zone for ns1. and ns2 respectively … Read more

Mysql useful queries

Age: Select DATE_FORMAT (NOW(), ‘%Y’) – DATE_FORMAT(BirthDate, ‘%Y’) – (DATE_FORMAT(NOW(), ’00-%m-%d’) < DATE_FORMAT(BirthDate, ’00-%m-%d’)) AS Age From tbl_member where 1; Change collation: Alter table `tbl_student` convert to character set utf8 collate utf8_swedish_ci; Shift mysql column: ALTER TABLE tableName MODIFY column column_2 int AFTER column_1; Get video info with user info: SELECT `video_id` , `video_title` , … Read more

Form’s array element in javascript

How to access form’s array element in javascript? Web Post Mobile Post Application Post Open Source Post Solution: <form action=”<?=$_SERVER[‘PHP_SELF’]?>” method=”post”> <input name=”post[]” type=”checkbox” value=”web” /> Web Post <input name=”post[]” type=”checkbox” value=”mobile” /> Mobile Post <input name=”post[]” type=”checkbox” value=”application” />Application Post <input name=”post[]” type=”checkbox” value=”open” /> Open Source Post </form> <script type=”text/javascript”> for(i=0;i { if(document.sv.elements[i].type==”checkbox” … Read more

HTML WYSIWYG Editor for Fedora

http://kdewebdev.org/ Quanta Plus is a web development tool for the K Desktop Environment. Quanta is designed for quick web development and is rapidly becoming a mature editor with a number of great features and lies at the heart of the KDE Web Dev suite of tools. http://bluefish.openoffice.nl/ Bluefish is a powerful editor targeted towards programmers … Read more

Run C program in Linux

This is the simple C file “svnlabs.c” to execute on linux terminal #include int main() { int i; for(i=0;i<=5;i++) { printf(”n%d %s”,i,”svnlabs.com”); } printf(”n”); return 0; } Output: [root@localhost ~]# gcc svnlabs.c [root@localhost ~]# make svnlabs cc svnlabs.c -o svnlabs [root@localhost ~]# ./svnlabs 0 svnlabs.com 1 svnlabs.com 2 svnlabs.com 3 svnlabs.com 4 svnlabs.com 5 svnlabs.com … Read more

Run Java program in Linux

This is the sample java file “Svnlabs.java” to be executed on linux command line….. import java.lang.*; import java.io.*; public class Svnlabs { public static void main(String args[]) { System.out.println(”svnlabs.com”); } } Output: [root@localhost ~]# javac Svnlabs.java [root@localhost ~]# java Svnlabs svnlabs.com [root@localhost ~]#

wine – run Windows programs on Linux

wine – run Windows programs on Linux/Unix wine program.exe [arguments …] wine –help wine –version wine loads and runs the given program, where the program is a DOS, Win-       dows 3.x, or Win32 executable (x86 binaries only). This will display all the output in a  separate  win-dows (this requires X11 to run). Install wine on … Read more

Xmanager

Xmanager is a powerful and easy-to-use PC X server that runs on Windows platforms. It allows you to bring remote Unix/Linux desktops to your Windows PC seamlessly. You can also run remote X applications securely through the SSH (Secure Shell) protocol even when your Windows PC is inside a private network and a firewall is … Read more