Breaking Post! Configure VirtualBox to Allow Host OS Connecting to Python Server in Guest OS

 

 

Let's retrospect a little about the nature of our beloved Python language : a cross platform language.

This mean you can use Python to develop your application easily whether you're using Linux, Windows, OSX, FreeBSD etc. Although my next statement is debatable, but I strongly believe that developing a program using programming language in its original habitat is somewhat less error prone than if you try developing it in another environment that's not its original habitat.

 (More)



Flask Biography Tutorial Part IX : Creating Product Portofolio Page

 

A compact layout of our Portfolio table

Figure IX-1 Portofolio grid in Bio Page complete with action buttons

 

Before we going further on our journey of making a fully functional Bio Application, lets return to our early concept of this application : product portfolio show case. And guess what we missed. Correct. We missed the required application model for a product portfolio. If you rethink our application models until this state, we know we haven't add a portfolio model/table. This part of article series will guide you on how exactly it's done by adding Portfolio model using SQLAlchemy relationship field in our existing Users mode.

 (More)



Flask Biography Tutorial Part VIII : Using Hash to Store Password Securely

 

Password stored in a plain text format... Oh Dear!
Figure VIII-1 Password stored in a plain text format... Oh Dear!

 

I assess myself as no security expert, but storing a plain text password in a database is surely a bad practice. If someone (probably hacker) gain access to your database, (s)he can easily read your users password. Without any hassle. In this article I will show how you can easily utilize python md5 package to convert our users password into MD5 string and making curious hacker not that easy in reading it.

NOTE : rahasia is Indonesian word for secret.

 (More)


Flask Biography Tutorial Part VII : Adding Sign In Form Using Bootstrap 3 and Login Feature Using Flask-Login

 

Figure VII-1 Persuasive Signin Form in a Bootstrap 3 Navbar

In adding Sign In feature for our Bio Application, I have decided one important thing : the login status or form should always available and already opened in Navbar. Because Bootstrap 3 Navbar if properly setup will always available at the top of every page, this will result in a persuasive sign in form : a kind of form that engage user to directly fill its input fields and hit Submit button! Wherever (s)he is... (More)



Flask Biography Tutorial Part VI : Adding Sign Up Form using Bootstrap 3 and Flask-WTF

 
 
   
    Figure VI-1 A secure Sign Up form with validation and nice visual layout
 

Welcome to the sixth instalment of this Bio Application Development Tutorial. I constructed this tutorial, in such a way that even a newcomer in Python will be able to grasp its content and follow it easily. Thanks to Python intuitive coding environment, my job is not that hard. But it is you who really decide whether my goals are met or I still have to refine how I presented ideas, instructions and concepts.

Previously, our Bio Application having its first data access capability by using a great ORM tool, SQLAlchemy. It able to construct Users tables, populate data and query those data.  But it still lack an important feature : a visitor still unable to register him/herself into our application. In this article, we are going to show you how exactly it is done.

 (More)



Flask Biography Tutorial Part V : Implementing Application Model using SQLAlchemy + PostgreSQL 9.2

 

 
Even Batman need a Biography
Even Batman needs a Biography

In this fifth article we are going to liven up our bio application with real data coming from the database. From our previous post, we already have a nice visual representation of our bio application. Now it is time to supply its content with user very own data. It will make your application feels so nice. Alive.

We are going to utilize SQLAlchemy to do :

  • Model definition : let's define a single Users class which will hold all of our registered users.
  • Data population : as we already have the place to store the data, now let's populate it with sample data.
  • Data query : if certain user page is requested, for example http://bio-ekowibowo.rhcloud.com/ekowibowo (I reserved this username, sorry), let's query his/her data and ...
  • Data display : .. let's display it in our bio.html template page.

A sharp eyed reader may notice, "How do you populate those data? I don't see any user signup action there!". Correct! We are going o skip those important feature for now. Here, I am going to concentrate you on the SQLAlchemy part. I think my next article will going to talk about those Signup form. 

 (More)



Flask Biography Tutorial Part IV : Application Layout and Templating Using Bootstrap 3 and Jinja 2

Saviour of the CSS Soulless creature
 Bootstrap is The Saviour for the CSS soulless coder like me.
For the sake of the Lord, quick, get it here!

If you have followed this article until this point, it means that you really curious on how you can develop a working Python web application. Previously we have understand how to create a working (but dumb) Flask application. Today we are going to start by laying out our application user interface using a very cool front-end framework : Bootstrap.

 (More)



Breaking Post! Utilizing Python Server in a C#.NET Application

Integration is the key
I always enthusiast about integration between different programming language and technology

Breaking Post? Yeah, the same like it is in Breaking News : an interesting event occur during main events... Laughing

While I work on series of articles that talk about developing Flask application on Openshift, I also in the middle of developing a C#.NET Point of Sales application for a Malaysia based company. In the process of coding its admin dashboard, I feel like wanting to use a web view for it. Traditionally, a GUI Desktop application developer like me will just drag and drop GUI element on a dashboard and then code its interaction. But as I about to doing it, an idea flashes my mind : why don't I use Bootstrap + Python for this part? I can leverage Bootstrap cool element design by simply reusing its plethora of example laying around in the web and have access to Python power to serve the dynamic content of the web. The idea seems promising...

 

 (More)



Flask Biography Tutorial Part III-Addendum : Preparing Local Python Environment in Windows and Mac OS X

 
 
Python server running in Windows 7 Git Bash environment
Our Python Application Server Running in Windows 7 Git Bash environment
 

As I write my 4th article talking about using Bootstrap 3 and Jinja for application layout and templating, I realize that in my last post, I neglect a clear and complete instructions of preparing local Python environment both for Windows and OSX users. I only focusing on Linux users (or, Ubuntu/Debian derived distro to  be precise). As I use those three OSes in a VirtualBox environment, I feel like I had to write it. Let's begin with the most irritating development environment to work with : Windows. Laughing

 

 (More)



Flask Biography Tutorial Part III : Application Scratch and Creating Local Working Environment

Python virtual environment
Contained all your Pythons library and framework inside a sandbox, ... and you are ready to play!

Now that we have a clear understanding of what the application that we are going to build, we can directly start our code. I am going to use bio as the project name of our application. If you haven't create it, you can follow the first series of the article here. From inside bio folder you will find several files and folders. For starter, lets open the file setup.py and inspect its contents :

from setuptools import setup
setup(name='YourAppName',
version='1.0',
description='OpenShift App',
author='Your Name',
author_email='example@example.com',
url='http://www.python.org/sigs/distutils-sig/',
#      install_requires=['Django>=1.3'],
) 
 

 (More)



Flask Biography Tutorial Part II : Application Features and Its Stack of Technology About to Use

Thumbnail
 
Let's build our own online CV with social media feature, more like LinkedIn meets About.me

If you followed this article series until now, I can safely assumed that you have already registered to Openshift and able to use RHC client tool to create a Python application there. If not, you may want to follow the first article here. In Part II of series of this article, I would like to create a solid ground understanding of what the application we built like.

 (More)



Flask Biography Tutorial Part I : Preparing Your Local Environment

Preparing local environment
Let's connect your local environment to the Openshift's cloud

After freely registering yourself to the Openshift cloud and before starting to develop your application, the next logical step is to install Openshift RHC Client Tools. This will making your life easier in creating, managing and monitoring your application in Openshift by using just a single command line action. Of course you can do it using Openshift Web Console, but a concise command line operation is actually all that you need.

 (More)



Introducing Openshift : Heroku Replacement for Your Next Killer Python Web Application

Openshift, founded in May, 2011
Click here to register to Openshift and get your Free plan consisting of 3 applications, each having 1GB space quota

If you already familiar enough with web application, I bet you know that finding a cheap (yes, cheap must come first) and reliable (then come reliability) hosting service for your PHP application is very easy. It is because PHP, or to be exact LAMP stack (Linux+Apache MySQL+PHP) is the most popular technology stack in developing web application. An annual charge for a LAMP stack is very affordable. But the same is not applied if you try to build your web application with technology stack other than LAMP, such as Ruby, Java or Python. A traditional approach to host a web application other than PHP is to have yourself a VPS account from an internet hosting provider such as DigitalOcean, which often they don't come with a free plan. In my experience, a free plan is important, as it allows you to get test your application on the internet for free. And having a VPS will require you to manage and install all your application related library, framework and application by yourself.

 (More)



Python: A Perfect Teaching Aid for Youngster in CoderDojo Indonesia


CoderDojo logo

 

Part of my life mission is to teach others what I am good at. This include capoeira and coding. While the first thing is not suited to this blog, but the later is. And to try spreading coding as a cool hobby, I targeted youngsters/children around my neighbourhood. For this, I highly motivated by CoderDojo movement, with a core and simple principle : "teach youngsters/children to code with fun and free". No charge whatsoever. 

 (More)




Copyright(c) 2014 - PythonBlogs.com
By using this website, you signify your acceptance of Terms and Conditions and Privacy Policy
All rights reserved