all Tutorials

11. python with

By: Ashley J : 2017-09-27

Description: Python with statement is used when you want to execute a block of code based on another operation. For example you need to open a file, for manipulating the file, then close it after you have worked with the file. In this case, python with is used to make sure that the file is closed after processing the file.


12. python if

By: Ashley J : 2017-09-27

Description: Often, you need to execute some statements only when some condition is true. Or in some cases you would need to execure different blocks of code based on a condition. The compound statement if —comprising if, elif, and else clauses—lets you conditionally execute blocks of statements.


13. python while

By: Ashley J : 2017-09-27

Description: Python while statement repeats execution of a statement or block of statements, until the loop condition is true. Once the loop body finishes executing, Python evaluates the loop condition again from the top to check whether another iteration should execute. This process continues until the loop condition is false, at which point the while statement ends.


14. python for

By: Ashley J : 2017-09-27

Description: Python for statement repeats execution of a statement, or block of statements, controlled by an iterable expression. The statement or statements that make up the loop body execute once for each item in iterable (unless the loop ends because of an exception or a break or return statement)


15. Python Basics - Setting up your Python Development Environment

By: Ashley J : 2017-09-26

Description: The first decision you need to make is which version to download. The Python 2.7 or the Python 3.x. If you are a beginner and you are just starting to learn Python, then you should download 3.x. On the other hand, if you need to work on some legacy Python based application which depends on older libraries that cannot be ported, then you are better off with 2.7. But moving forward, there will not be any new releases on 2.7 Python. Eventually all have to migrate to 3.x version which is improved and most of the libraries are porting to the newer version. So Just go with version 3.x. Download the right release based on whether you are using Windows, Linux or Mac. Just download and install it in the default location.


16. Data Analytics - Which programming language to learn. R vs Python

By: Ashley J : 2017-09-24

Description: Often people ask which one is better to learn? R or Python. Python is better for for data manipulation and repeated tasks, while R is good for ad hoc analysis and exploring datasets. For example, take text analysis, where you want to deconstruct paragraphs into words or phrases and then identify patterns. In this use case R is better suited and makes it simple. On the other hand, take for example, pulling the data, to running automated analyses over and over, to producing visualizations like maps and charts from the results then Python is better suited.


17. smskannel SMS gateway run in background

By: Ram : 2015-04-24

Description: To make the smskannel run in the background you need to run the following two commands.


18. Update contents of a file within a jar file

By: Naren : 2015-04-24

Description: Recently there was a change of IPs in my servers. Therefore some of the applications stopped working. For example, there was an application that was running as an executable jar file. The access to other resources from that application was using IP Addresses and there was a config file named bcconfig.xml that had all the IP addresses of various resources the application needs to access.


19. PHP code to import from CSV file to MySQL

By: Nate : 2014-10-06

Description: After playing a while, I'm confident the following replacement function works in all cases, including the ones for which the native fputcsv function fails. If fputcsv fails to work for you (particularly with mysql csv imports), try this function as a drop-in replacement instead.


20. PHP code to write to a CSV file from MySQL query

By: Jamie : 2014-10-06

Description: Utility function to output a mysql query to csv with the option to write to file or send back to the browser as a csv attachment.