02 May, 2025
Ubuntu 22.04 Features List in Details Ubuntu 22.04 LTS (Jammy Jellyfish) is a long-term support release that launched in April 2022, bringing with it a robust suite of features and…
In this artical we are discuss about what is modules and how to use modules in Python. The propensity of computer code is to expand. We can conclude that code…
The ACID properties—Atomicity, Consistency, Isolation, and Durability—are fundamental principles that ensure reliable transactions in a database. To know more about ACID Properties, This article focuses on two key properties: Atomicity…
MySQL has InnoDB storage engine, that strictly follow the ACID Model to prevent data corruption and results distortion from unexpected occurrences like hardware failures and software crashes. You don’t have…
A key idea in software development is the singleton design pattern, which offers a straightforward method of guaranteeing a class has a single instance and a global access point. This…

jQuery UI Virtual Keyboard Plugin Example

 Here is jQuery UI virtual keyboard plugin.  This plugin will provide features like 1) An on-screen virtual keyboard embedded within the browser window which will popup when a specified entry field is focused.2) The user can then type and preview their input before Accepting or Canceling.3) Add custom keyboard layouts easily.4) Add up to four […]

Share your Love
1 min read

google map show multiles marks with infowindow

<html> <head> <meta name=”viewport” content=”initial-scale=1.0, user-scalable=no”> <meta charset=”utf-8″> <title>Info window with <code>maxWidth</code></title> <script src=”https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false”></script> <script> var locations = [{“title”:”Dr. test test”,”latitude”:”23.0061749″,”longitude”:”72.5190038″,”iw_content”:”<div id=’content’>n<div class=’map_photo’>n<img src=’http://localhost/healthjump/images/mypro.png’/>n</div>n<div class=’map_dleft’>n<span class=’dname’>Dr. test test</span><br/>n<span class=’speciality’>03-Internist</span><br/>n<span class=’practice’>NYU Faculty Group Practice</span><br/>n<span class=’email’>abc@gmail.com</span>n</div>n<div class=’map_last_add’>n<span class=’address’>vejalpur, ahmedabad, nGujarat, India – </span>n</div>n</div>”}, {“title”:”Dr. Mohit Gupta”,”latitude”:”23.0095879″,”longitude”:”72.5618894″,”iw_content”:”<div id=’content’>n<div class=’map_photo’>n<img src=’http://localhost/healthjump/images/mypro.png’/>n</div>n<div class=’map_dleft’>n<span class=’dname’>Dr. Mohit Gupta</span><br/>n<span class=’speciality’>04-Nephrologist</span><br/>n<span class=’practice’>NYU Faculty Group […]

Share your Love
1 min read

How to Add javascript in Joomla

There are three ways to add javascript Inline JavaScript 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScriptDeclaration(‘ 4: window.event(“domready”, function() { 5: alert(“An inline JavaScript Declaration”); 6: }); 7: ‘); 8: ?> External JavaScript There are two ways to include a JavaScript file 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScript(‘/media/system/js/sample.js’); 4: ?> The second […]

Share your Love
1 min read

.htaccess Block hot linking from specific domains

RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(.+.)?myspace.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?blogspot.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?livejournal.com/ [NC] RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] RewriteEngine On  RewriteCond %{HTTP_REFERER} ^http://(.+.)?myspace.com/ [NC,OR]  This condition was not met but the OR option made it pass RewriteCond %{HTTP_REFERER} ^http://(.+.)?blogspot.com/ [NC,OR]  This condition was not met but the OR option made it pass RewriteCond %{HTTP_REFERER} ^http://(.+.)?livejournal.com/ […]

Share your Love
1 min read

php date() Formatting

<?php $today = date(“F j, Y, g:i a”); // March 10, 2001, 5:16 pm $today = date(“m.d.y”); // 03.10.01 $today = date(“j, n, Y”); // 10, 3, 2001 $today = date(“Ymd”); // 20010310 $today = date(‘h-i-s, j-m-y, it is w Day’); // 05-16-18, 10-03-01, 1631 1618 6 Satpm01 $today = date(‘it is the jS day.’); […]

Share your Love
1 min read

php date() and mktime() example

This can be more reliable than simply adding or subtracting the number of seconds in a day or month to a timestamp because of daylight saving time. <?php $tomorrow = mktime(0, 0, 0, date(“m”) , date(“d”)+1, date(“Y”)); $lastmonth = mktime(0, 0, 0, date(“m”)-1, date(“d”), date(“Y”)); $nextyear = mktime(0, 0, 0, date(“m”), date(“d”), date(“Y”)+1); ?> Share […]

Share your Love
1 min read

How magento save value in session?

if you want to save “Test value” in “SessionMessage” variable $sessionValue = ‘Test Value’;Mage::getSingleton(‘core/session’)->setSessionMessage($inputMessage); If you want to read value form “SessionMessage” $outputMessage = Mage::getSingleton(‘core/session’)->getSessionMessage();echo $this->__($outputMessage); Share your Love     

Share your Love
1 min read