Topics
  • Most Recent Stories
  • Trending Stories
  • Miscellaneous
  • PHP
  • CS CART
  • Ubuntu
  • jQuery
  • Python
  • React Js
  • Selenium
  • MySql
  • Programming
  • Node Js
  • Angular Js
  • Django
  • Memory
  • Encryption and Decryption
  • Cryptography
  • ORM

Questions and Answers

Answer written - Python
author
,
Fond of IT
An ORM is Object Relational Mapper which maps with relational database management system to objects. ORM is not dependent on database which is going to be used and gives different objects to access the database to retrieve, insert and manipulate the records. Here we are going to use SqlAlchemy ORM in Python. To communicate with database, we just use ORM along with Python objects and classes. Her... (more)
Answer written - Miscellaneous
author
,
Fond of IT
To check image existence you can use below function. You just need to pas the image URL in this function and it will return true or false, this way you can identify and show image based on it's existence. //Check whether image exists or not function UR_exists($url){         if (@getimagesize($url)) {         return true;     } else {         return false;     } }... (more)
Answer written - MySql
author
,
A guide
To save an Arabic text into your MySql database table, you first check the table column is set to "utf8" or not. If not, switch to table structure tab of phpmyadmin and click change under action column, here you will see a column "Collation" and choose "utf8_general_ci" from utf8 group and save. Now if you will save any Arabic string in this column it will save properly as it should be. Please re... (more)
Answer written - jQuery
author
,
Programmer
Get the jQuery code below to check a date that can't be greater than current date:   $('.ty-dob input').change(function(){                      dob          = $(this).val();          var current_date = new Date();     var arrDate = dob.split("/");     var dob = new Date(arrDate[2], arrDate[1]-1, arrDate[0]);          /*console.log(arrDate);     cons... (more)
Answer written - Miscellaneous
author
,
Programmer
Cs cart comes with some basic APIs already created like fetch products, get cart contents and some more. You can create your own APIs that can communicate with database get ready to be connected with your mobile application. To access/enable APIs you need to follow below steps: API access is activated/disabled on a per-user basis. To activate cs cart API access for a user: 1- Got to the CS-Cart... (more)
Answer written - Python
author
,
Programmer
Before using mysql, you need to install mysql.connector module. Use the below command to install it: $ sudo apt-get install python3-mysql.connector Above example is for python3 and same can be used for python2 also. Get a quick reference with an example below: import mysql.connector cn = mysql.connector.connect(user='root', password='admin@123',                     ... (more)
Answer written - jQuery
author
,
Fond of IT
If we want to disable writing in a field using jQuery we can do this by writing below code. Actually sometime we don't want anybody to edit information written in a html input element but want that field populated with some default text then use the below line code to do this: $(document).ready(function(){                  //Disable address edit on checkout page         $(".... (more)
Answer written - Miscellaneous
author
,
Programmer
You can solve this problem by using a css technique and get the slides vertically rotate. I'm giving you an example and try to make you understand how you can get your problem resolved, below are some code snippets of thumbnails:                 /********* CSS ***********/ .owl-carousel{    transform: rotate(90deg);    width: 270px;     margin-top:100px;  }  .it... (more)
Answer written - CS CART
author
,
Fond of IT
It is a very simple step to setup it on local machine. You just need to backup complete website from cpanel with database and extact the zip file on your localhost root (WWW) folder. Now find the file name config.local.php on root of your extracted zip folder. Open up the file in any editor and find the line of code where you can see database name, user and host as below: // Database connectio... (more)
Answer written - Miscellaneous
author
,
Fond of IT
Sometime we need a div in sidebar to float within header and footer, in this requirement you can write your own code and in jQuery or JavaScript but if you wish to use any third party library then I would suggest you to use the below one which is really very easy and light weight to use. You can just need to include the library and put a snippet of code where you want that floating feature and you... (more)