Python

Python Source Code

Free Python Source Code. Download from a vast collections of free Python source code below. Games are also available like Rock Paper Scissors Game and a lot more.

Preview XML record from database to browser using PHP and MySQL

Submitted by ronard on
Hi to all sourcecodesterian, I like to share this simple code on how to preview the XML to your browser from database. The script will call the data and retrieve it to the browser using XML tags. Hope you will like it and will help you. Just comment below. Happy codings...

PHP RegEx: With Meta Characters

Submitted by ronard on
In our last tutorials regarding ReGex we have some simple pattern of matching. We also use caret (^) For matching at the beginning of the string and (\z) to match at the end of the string. These characters are called Meta Characters and shown below. a. . (Full stop) b. ^ (Carat) c. * (Asterix) d. + (Plus) e. ? (Question Mark) f. { (Opening curly brace) g. [ (Opening brace) h. ] (Closing brace) i.

Remote Shutdown (Network)

Submitted by lester1992 on
Due to laziness (LOL :D), I decided to create a software, that can shutdown, restart and log-off PC inside my network. Groupbox items are the computernames/IP address. The tiring part of this is you need to set the Force Shutdown to Everyone, every computer that you want to remote. How? Run->type secpol.msc ->Local Policies->User Rights Assignment-> Force Shutdown from a remote system. and click

PHP RegEx: Match a pattern at the end of the string

Submitted by ronard on
In previous tutorial we have a pattern that match a string at the beggining using caret(^). Now we try to match the pattern at the end of the string using \z. What is \z? This is end of subject or read at the end of subject. We still use (i) case insensitive modifier so that it can read any case. The above script will generate "The string ends with nard" which is read at the end of the subject.

PHP RegEx: Case Insensitive

Submitted by ronard on
In previous tutorial we match at the beggining of the string given. But that is a case sensitive. If your condition like this: if(preg_match("/^ABC/", $string)) then the value of your string "abc". The script will returned with this message: No match found This is because of case sensitive. But in this script we will make the condition insensitive using regex "i" for insensitive. Shown below: Even

PHP RegEx: Match the Beginning of the String

Submitted by ronard on
In previous tutorial we match the given string. Now we are going to match at the beginning of the given string. The regex character to read beginning is the caret (^). Then we see if the string given begin with Ron. The forward slashes (/) we see are the delimeter that hold our regex pattern. And the quotations are used to 'wrap it all'. Then we see the (^) will put as the beggining of the string.

POS with Barcode Generator Using PHP/MySQL

Submitted by jobel on
This code will guide you on how to create your own POS with barcode generator using PHP/MySQL. The features of this system are: It allows you to conduct sales using barcode scanner or using search box. Allow you to add, edit and delete products Generate reports such as receipt, sales report (daily, monthly, yearly). This system also has user restriction just like the cashier and the admin. The