Quantcast
Channel: Code Theory
Browsing all 229 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

An introduction to CherryPy, a lightweight Python web framework

CherryPy is an open source, fast, and stable python web framework that allows the developers to build the web applications. The developers can build the web applications as the way they would build the...

View Article


Image may be NSFW.
Clik here to view.

A simple introduction to the fuser utility for linux geeks

What Is The fuser Command? The fuser command is a very smart unix utility used to find which process is using a file, a directory or a socket. It also gives information about the user owning the...

View Article


Image may be NSFW.
Clik here to view.

How to make use of the Python pytube tool to download videos from YouTube

Introduction to the pytube tool pytube is a python package written for the main purpose of downloading videos from the famous video website Youtube. According to the official documentation there are no...

View Article

Image may be NSFW.
Clik here to view.

How to connect to mysql with python

Being a Python geek, lately I am experimenting with database oriented applications. Building the projects from scratch, I am making use of the Mysql server as the database management system in the...

View Article

Image may be NSFW.
Clik here to view.

Sql commands you should know as a computer geek

Being a computer geek, there is a lot of information to learn each day it passes. Lately I am experimenting a little with the structured query language, a language which is a domain specific one....

View Article


Image may be NSFW.
Clik here to view.

How to write a python script which communicates with the MySQL server

Python is a very useful utility when it comes to scripting automatic tasks. When interacting with a database management system in the backend, Python is my favorite programming language to automate the...

View Article

Image may be NSFW.
Clik here to view.

All You Need to Know About Cloudflare

Located in San Francisco, United States, Cloudflare provides Content Delivery Network (CDN) services, internet security, distributed domain network services, internet security and Distributed Denial of...

View Article

Image may be NSFW.
Clik here to view.

How to execute multiple queries in the backend Mysql database through PHP...

Communication with a backend database management system gets easier due to the specific support for the task by different computer programming languages. One of the many languages which supports...

View Article


Image may be NSFW.
Clik here to view.

How to execute a sql query in Mysql with PHP

PHP comes with all the required tools for connecting and interacting with a Mysql database in the backend. Although you may not have previous experience with PHP and Mysql, this blog post is self...

View Article


Controlling the Volume of an Audio File in Javascript

Just another quick tip. I’ll show you how to change the volume of an audio file of whatever format you are using – mp3, ogg, wav, aac, etc. When Using the HTML5 <audio> Element If you are using...

View Article

Fixing MySQL ERROR 1030 (HY000): Got error 28 from storage engine

TL;DR You need to free-up some space on your server (or computer) or get a bigger HDD (or partition). Today some of the pages on CSSDeck just stopped showing up. All one could see was a blank white...

View Article

Convert Your CSS Code to SCSS/Sass

Ever wanted to make your own CSS2Sass convertor ? When working on projects, a tool that can quickly convert our CSS code to Sass can be ridiculously useful. Let’s see how to do it. Using sass-convert...

View Article

Get the Duration of an Audio or Video File in Javascript

It is quite easy to get the playback length (in seconds) of an audio or video file. The file may be in whatever format that the browser supports – mp3, mp4, ogg, wav, etc. When Using the HTML5 Elements...

View Article


The Real Beauty of CSS3 Box Shadows

You might have used CSS3 box shadows several times to create some pretty looking drop shadows like you do in Photoshop. That’s great! But do you even know how it can be used for some other mind...

View Article

17 Neat HTML5 Games To Keep You Busy This Weekend

Flash games are old and technology is advancing. I have collected some amazing HTML5 games that you can play this weekend and keep yourself busy. They are in random order (no ranking or anything else)....

View Article


Creating a Paint Application with HTML5 Canvas

Let’s build a simple painting (or sketching) application using HTML5 <canvas> element along with its Javascript API. Although the app will be small, there’s going to be quite a bit of information...

View Article

Get the Original Width and Height of an Image

If you use the width and height properties of the image node (vanilla Javascript) or use jQuery’s width() or height() function, you’ll get the size that you see in the browser. Getting the actual...

View Article


Calculate Control Point to Make Your Canvas Curve Hit a Specific Point

Creating curves in HTML5 Canvas is usually achieved with quadraticCurveTo() that has 1 control point or bezierCurveTo() that has 2 control points. In some cases, it might be highly desirable to control...

View Article

HTML5 Canvas Drawing Lines with Smooth Edges

In the previous post we kicked off with our painting application using HTML5 canvas. If you remember well, we ended up with a basic app where one can easily draw lines or something else with a “pencil”...

View Article

The New and Final CSS3 Linear and Radial Gradients Syntax

The specs have always been in a state of flux. But it seems to be decided on the CSS3 linear and radial gradients syntax finally (hopefully). Let’s just discuss the changes and how you’ll need to...

View Article
Browsing all 229 articles
Browse latest View live