java Script

how to print contents of specific div at html?

function printdiv(id) { try{ var x = ”; x = document.getElementById(id).innerHTML; //alert(x); newwindow2=window.open(”,’name’,’scrollbars=yes,resizable=yes,height=500,width=500,toolbar=1′); newwindow2.title = “The new title goes here.”; var tmp = newwindow2.document; tmp.write(x); newwindow2.print(); tmp.close(); newwindow2.close(); }catch(err){} }

php

How to activate curl in xampp?

1. Locate XAMPP install directory 2. open php/php.ini (probably C:\xampp\php\php.ini or C:\ program files\apachefriends\xampp\php\php.ini) 3. do a search for the word ‘curl’ and uncomment (remove the leading semicolon) that line before removing ;extension=php_curl.dll after removing: extension=php_curl.dll 4. save & close 5. open apache/bin/php.ini (probably C:\xampp\apache\php.ini or C:\ program files\apachefriends\xampp\apache\php.ini) 6. search for curl, uncomment as before (step 3) 7. save & close 8. Do not forget! restart apache

Uncategorized

what is the event bus?

An event bus is a messaging channel where an event producer sends an event, and any number of event listeners can receive the event and act on it.  The important distinction between an event bus and basic event handling is that with an event bus the event producer and recipient don’t know about each other,… Continue reading what is the event bus?

Web Services

Introduction to Web Services

Web services are distributed application components that are externally available. You can use them to integrate computer applications that are written in different languages and run on different platforms. Web services are language and platform independent because vendors have agreed on common web service standards. Several programing models are available to web service developers. These… Continue reading Introduction to Web Services

wordpress

how to enable submenu in artisteer wordpress theme

/wp-content/themes/smartwave/library/defaults.php change ‘art_menu_depth’ => 1, ‘art_menu_source’ => “Pages”, ‘art_vmenu_depth’ => 1, ‘art_vmenu_source’ => “Categories”,   to ‘art_menu_depth’ => 0, ‘art_menu_source’ => “Pages”, ‘art_vmenu_depth’ => 0, ‘art_vmenu_source’ => “Categories”,