MVC-model-view-controller component
General definition: Input => Processing => Output Controller => Model => View Model The model is the part of the component that encapsulates the application’s data. It will often provide…
HTMLDOC – html2image
htmldoc is a powerful simple-to-use tool/utility, which converts HTML to Postscript, PDF or indexed HTML output. # convert /var/www/html/html2img/grid.ps -crop 280×300+40+9 -modulate 100 -geometry 530×480 /var/www/html/html2img/grid.png here convert is ImageMagick…
txt2img
Here is the code to convert text to image or simply write text on image…. <?php $img=ImageCreate (100,20); $background_color=ImageColorAllocate($img,255,205,255); $textcolor=ImageColorAllocate ($img,203,14,91); ImageString($img,3,5,5,”svnlabs.com!”,$textcolor); ImagePNG ($img, “svnlabs.png”); $img2 = imagerotate ($img, 100,…
Post update on Twitter by CURL
Now we can post updates on Twitter by CURL command line …. CURL: It allows us to connect and communicate to different types of servers with different types of protocols…
DIV – Overflow Hidden
Today I got a problem to show product title in 2 lines on product’s detail page….. After some R&D……………….. I got solution by CSS to style a DIV with height…
TinyMCE load ajax
Today I got problem to load TinyMCE as dynamic loaded textareas by Ajax? Solution: <a href=”javascript:void(0)” onclick=”ajaxEdit(); showEditor();”>Edit Content</a> here ajaxEdit() is ajax function where textarea loaded by ajax as…
Hindi Text Editor
akIndicPlugin is very useful for Indian language like Hindi, Marathi, Bengoli, Gujarati, Malyalam, Telugu and Punjabi…. Source: http://amiworks.co.in/talk/akindicplugin-for-tinymce-and-joomla/ http://www.vishalon.net/IndicResources/IndicIME/tabid/244/Default.aspx
WordPress Themes and Blogging Tips
WpThemesPlanet.com is site dedicated to WordPress Themes and to posting interesting articles for the Blogging Community. Here we can find more blogging tips…….. You need to manage Database, Folders, Files,…
Meld – visual diff and merge tool
Meld is a visual diff and merge tool. Meld is used for comparing two or three files and editing them. We can compare two or three folders and launch file…
Backup Amazon S3 with PHP
This is the source code to backup/download Amazon S3 Bucket’s multimedia files to other server by PHP… here $bucketurl is XML url of Amazon S3 bucket with full ACL. $folder…
amcharts – dynamic data generated with PHP
AmCharts is a set of Flash charts for your websites and Web-based products. AmCharts can extract data from simple CSV or XML files, or they can read dynamic data generated…
Decrypt \x3d
How to decrypt string html like below: <br /> [“/imgres?imgurl\x3dhttp://crshare.com/wp-content/uploads/auto_save_image/2009/01/232021vkV.jpg\x26imgrefurl\x3dhttp://crshare.com/tag/joomla-templates/\x26usg\x3d__2r0BoANxQQ1IhXj0-dAyU-HVVYI\x3d\x26h\x3d350\x26w\x3d500\x26sz\x3d30\x26hl\x3den\x26start\x3d81\x26sig2\x3d1MTsUlM1eoJ_j8K6hvLdRQ\x26um\x3d1″,””,”c8m2Qp_jYzo4UM:”,”http://crshare.com/wp-content/uploads/auto_save_image/2009/01/232021vkV.jpg”,”130″,”91″,”Although the \x3cb\x3eJoomla\x3c/b\x3e community”,””,””,”500 x 350 – 30k”,”jpg”,”crshare.com”,””,””,”http://tbn2.google.com/images”,”1″,[],””]<br /> $html=html_entity_decode(urldecode(str_replace(‘\x’, ‘%’, $html)),ENT_QUOTES, “UTF-8”); MP3 file download link $mp3_dlink = preg_replace(‘/ /i’,…
Online Desktop Sharing
You can use some online desktop sharing tools. I always use skype or AA_v3. Here are some links useful for Screen Sharing š http://yuuguu.com/ http://www.crossloop.com/ https://secure.logmein.com/home.asp?lang=en http://showmypc.com/ http://skyfex.com/ http://www.teamviewer.com/index.aspx
Get popup center
function get_popup_center(popurl) { var top = (screen.availHeight/2)-61; var left = (screen.availWidth/2)-150; var width = 300; var height = 150; //var popurl = ‘https://www.svnlabs.com’; var oWin = popUp(popurl, top, left, width,…
focus password element from password to ********
/** *Ā <form> *Ā <input type=”text” name=”password” value=”Password” onfocus=”get_password_focus(this)”> *Ā </form> *Ā This function can be used for focus password element from password to ******** */ function password_focus(obj) { var…
Get page size
function get_page_size() { var de = document.documentElement; var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; arrayPageSize = new…
Change Images
/* change image on mouseover and click */ function mEvent(id,img1,img2,img3) { var i = new String(); i = document.images[id].src; document.images[id].src = i.replace(img2,img1); //for click condition if(document.images[id].src.indexOf(img3)!=-1) document.images[id].src = i.replace(img3,img1); }
Protect website folders by .htaccess
<IfModule dir_module> DirectoryIndex index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !(css) RewriteCond %{REQUEST_URI} !(js) RewriteCond %{REQUEST_URI} !(images) RewriteCond %{REQUEST_URI}…
Templates Search Made Easy
Suppose you want to search joomla/wordpress templates and find the site for all these templates, here you have to navigate entire templates with all pages. This will waste your time…
pdftohtml
pdftohtml convertersĀ PDF documents into HTML format, which is more suitable for Internet publishing. The converter produces HTML documents with texts, pictures, graphics and bookmarks. pdftohtml software does not require…