I am Jade Danial
Welcome to Code Hub blog!

A blog dedicated to people with programming passion. Here you will find posts about things I have learned, problems that I have solved in programming and projects that I developed.

Code Hub blog is my own personal wiki of learnings, failures, and successes about programming.

I'm A Nice Guy

Jade

Jade Danial is a passionate programmer and creator of Code Hub blog. He is fueled by his passion for learning. He is fascinated by the idea of discovering the world of programming.


Meanwhile, he is developing desktop and web applications using his skills in programming.

Python

Python

JavaScript

JavaScript

Django

Django

PostgreSQL

PostgreSQL

HTML

HTML

CSS

CSS

Qt

Qt

PyQt

PyQt

My Projects

Project Image

Code Hub Blog

Python JavaScript Django HTML CSS

A blog dedicated to people with programming passion. Here you will find posts about things I have learned, problems that I have solved in programming and projects that I developed. Code Hub blog is my own personal wiki of leanings, failures, and successes about programming.

Project Image

DanialSoft POS

Python PostgreSQL HTML CSS Qt PyQt

An inventory system for small to mid-size businesses to handle sales, purchasing, and inventory management and control. It can help track available stocks, add and purchase from vendors, add and take customers' orders, reorder stocks, add products, and generate reports.

Coding Diary

19

Nov 2020

Adding SQLite In Flutter

I add the SQLite database to my mobile app Milk Tea Shop to store the data inside the Cart which the user added. These data include the menu id, menu name, menu image, menu price, and menu quantity.

18

Nov 2020

Adding Screen In Flutter

I add a new screen to my mobile app Milk Tea Shop to display the details of the menu. I use Stream builder to retrieve data from Firebase Firestore and display these data using the Card widget. By adding the Inkwell widget inside the Card the user will able to tap the Card and view the details.

15

Nov 2020

Flutter Setting State

I attempt to change the state of the stateful widget from another class after pressing the button but it didn't work. In my second attempt, I merge two stateful widgets to a single class and change the state on the pressed button and it worked perfectly.

11

Nov 2020

Creating My Flutter App

I start creating my first Flutter mobile app called Milk Tea Shop. This application will allow the user to browse menus for available milk tea, juice drinks, and combo meals. It has a cart that a user can fill and make an order. The order then will be sent to the owner of the milk tea shop.

25

Oct 2020

Debugging My POS Project

Debugging is important to allow earlier detection of an error from the software. My project POS is ready for deployment and to make sure it will run smoothly free of errors, I run it many times and check for some bugs. Fortunately, I identified four bugs and fixed them immediately.

11

Oct 2020

Adding Configuration Script

I add a configuration script in my project POS and name it "config.py". This script will parse the "database.ini" file to read the key-value pair and return the data to connect the database. This script is vital because this will serve as a bridge between the database and the main script.

09

Oct 2020

Creating Database Setup UI

I work more than 3 hours to create a user interface that will set up the database of my project POS. This user interface consists of 4 QLineEdit widgets for the host, name, user, and password. The values of these widgets will be saved in a file "database.ini" for the initialization of the database.

05

Oct 2020

Fetching Data For Charts

A chart is not functional without data. I need to fetch data from the database of my project POS and feed those data to the charts on the dashboard for a user to easily visualize the data. Using some python methods I was able to fetch data from the database and display it to charts in the dashboard.

04

Oct 2020

Using PyQtChart

I add a donut chart in the dashboard of my POS project to visualize the different product categories and their quantity. I use the PyQtChart module and it gives me better and accurate results. PyQtChart is a set of Python bindings for The Qt Company's Qt Charts library.

28

Sep 2020

Creating Graph For Sales Order

I create a graph for the Sales Order that shows the number of sales by month or by year. I use the PyQtGraph module to plot the graph and QWidget as the canvass. It is my first time using this module which I found very useful because it is PyQt5 native and it gives a better drawing performance.

13

Aug 2020

Finishing Report Module

I finish the Report module of my project POS. It consists of 16 reports that a user may choose to generate. These reports can be export as a PDF file or an Excel file so that the user can print. I use HTML tags and QWebpage to display the contents of the report to a single page.

08

Aug 2020

Adding Database To My Project

I add a function to my POS project to check if a database exists. If exists it will direct to a function that will connect to the database and if not it will direct to another function to create the PostgreSQL database. After checking the database it will create tables needed to store data.

01

Aug 2020

Redirect To 'message.html'

I encounter a problem on how to redirect to 'message.html' after a visitor submits feedback from my post. My first approach is to add a URL in action in the form 'Submit' to redirect and it is not successful, then I come up with a solution to add redirect function in views.py.

31

Jul 2020

Using Bootstrap Jumbotron

I use the Bootstrap Jumbotron for page 'message.html' to display a message after a visitor submits feedback from my post. At the bottom of the page, I put a section that will show a maximum of three featured posts that a visitor can read without going back to the previous page.

30

Jul 2020

Revamping My Code Hub Blog

These recent days someone is feeding my blog with spam messages in comments. To solve this problem, I remove the Comment form and change it to the Feedback form and add the 'Approved' field set to False to hide feedbacks and will be visible only after I review it and set it to True.

My Posts

Adding Custom Domain Name

Author

Jade Danial

Calendar

08 02, 2020 11:17 AM

View

729 views



A customized domain name helps you to establish your blog as a professional brand. It also ensures a blog’s success in multiple areas, search engine rankings, quality traffic, Google Adsense approval, community building and more. Every blog is special, but it needs to be discovered first.

Deploying Code Hub Blog

Author

Jade Danial

Calendar

08 01, 2020 9:26 PM

View

618 views



There are a lot of cloud platforms that provide great services but I chose the Heroku cloud platform because it is easy to use and they offer free and I do not need to add my credit card for payment at the early stage. It is also the cheapest option for a low traffic site like my blog site.

Featured Posts

Get In Touch With Me

Facebook

Facebook

Dev.to

Dev.to

Github

Github

LinkedIn

LinkedIn

Twitter

Twitter