06 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…

How to convert JSON string to Array

Here I an showing convert JSON string to php Array 1. I have taken php Variable, I have assign JSON in that php Variable 2. Here is My JSON Array $jsonArray = ‘{“person_id”:”BC21903E-9D4B-40E9-9DAD-00038273508F”, “last_seen_by”:”8A40E73A-8228-4225-B980-A84D7148925A”, “last_name”:”Last 175759″, “first_name”:”First 175759″, “date_of_birth”:”19710222″, “zip”:”190133306″, “sex”:”F”, “race”:null, “other_id_number”:”NEW502828″, “language”:”English”, “religion”:null, “ethnicity”:”Black Or African American”, “last_appt_date”:”20120726″, “allergies”:[], “diagnoses”:[{ “person_id”:”BC21903E-9D4B-40E9-9DAD-00038273508F”, “provider_id”:”88E6E79C-9627-48C0-A2A2-9C1570396F5B”, “enterprise_id”:”1″, […]

Share your Love
2 mins read

How to lock the orientation to portrait mode in a iPhone/Andorid Web Application?

You can specify CSS styles based on viewport orientation: Target the browser with body[orient=”landscape”]  or body[orient=”portrait”] Try this via the CSS @viewport rule @viewport { orientation: portrait; } Or $(document).ready(function () { $(window) .bind(‘orientationchange’, function(){ if (window.orientation % 180 == 0){ $(document.body).css(“-webkit-transform-origin”, “”) .css(“-webkit-transform”, “”); } else { if ( window.orientation > 0) { //clockwise […]

Share your Love
1 min read

How to display image with javascript?

You could make use of the Javascript DOM API. In particular, look at the createElement() method. You could create a re-usable function that will create an image like so… function show_image(src, width, height, alt) { var img = document.createElement(“img”); img.src = src; img.width = width; img.height = height; img.alt = alt; // This next line […]

Share your Love
1 min read

Joomla Changing the site favicon

The file you created in this way will have the extension .ico. Copy the file to the /joomla/templates/<your template> directory andname it favicon.ico. My favicon is in another location <link rel=”shortcut icon” href=”http://yoursite.com/templates/your_template/icon/favicon.ico” /> Share your Love     

Share your Love
1 min read

Read file in Node.js

Asynchronously reads the entire contents of a file. var fs = require(‘fs’); var path = require(‘path’); exports.testDir = path.dirname(__filename); exports.fixturesDir = path.join(exports.testDir, ‘fixtures’); exports.libDir = path.join(exports.testDir, ‘../lib’); exports.tmpDir = path.join(exports.testDir, ‘tmp’); exports.PORT = +process.env.NODE_COMMON_PORT || 12346; // Read File fs.readFile(exports.tmpDir+’/world.csv’, ‘utf-8’, function(err, content) { if (err) { got_error = true; } else { console.log(‘cat returned […]

Share your Love
1 min read

Magento site down due to mysql error General error: 1030 Got error -1 from storage engine

This error is generated when InnoDB cannot write to its data files. I have seen reports of this when the disk is full. if the files or folder permission changed so you can’t write to them. try deleting the folders var/cache and var/session. Another report was when someone enabled innodb_force_recovery to a value greater than […]

Share your Love
1 min read

Creating File Links in Ubuntu: Simplify File Organization and Access

Efficiently linking files in Ubuntu allows for seamless file organization and easy access. This article provides a comprehensive guide on creating links between files, covering both symbolic links and hard links. By implementing these techniques, you can streamline your file management process and enhance productivity in the Ubuntu operating system. Symbolic links, also known as […]

Share your Love
2 mins read

To improve page load times and save bandwidth using the .htaccess

Improving page load times and saving bandwidth are crucial factors for a successful website. The .htaccess file, used by the Apache web server, can be a powerful tool in achieving these goals. In this article, we will explore various techniques and optimizations that can be implemented through the .htaccess file to enhance website performance. One […]

Share your Love
4 mins read