All posts by kadjo

The Python Django Series – a post of software awesomeness

I’ve been in hibernation for quite some time as I have lots of projects that I have to attend to. Today, I need to finish some of my hobby project including my sites that has been Idle and just say “Coming Soon” for some time. They will all be hosted and run via DJANGO, hear it ūüôā , djang-go and its awesomeness.

I have already my initial wireframe and my theme to worked with, the succeeding post then with this title is my documentation of how things going while doing this project.

I’ll post another hot topic soon :).

Tomboy: a post-it notes apps



The last time i’ve heard is that tomboy is related to LGBT community term but that was changed when I’ve encountered a semi-post it notes desktop application in Linux Desktop. Yes its a software , a note taking software that helps a lot in organizing and documenting text. I’ve used this one for quite some time. Googling for some related documents on this software, i’ve found out that its not limited to Linux OS alone, but for Mac and Windows as well.

It has a wiki link system that when you write something and decides that there will be another link on it, you just have to click the link button.

If you’re in debian based distro, just do “apt-get install tomboy” , should be automatically added in your system.



Blender: The best Opensource 3d Software

box_display.png mamagembalay.jpg fia-nathan.jpg bahaykubo2.jpg








I’m returning to my study now in Blender after getting bored of doing some programming task. ¬†These various renders has been for a while and I need to get this updated starting today. ¬†I even ordered 3 books from Switzerland just to get started this. I have few community that I get involved with online including the Blender Philippines before but I didnt get to finish my interest here as there are some pressing task that I have to attend.

Again, this is is my return to the blender software and my rendered 3d before.


Thanks and enjoy ūüôā



Fix: Error on py2exe script when wxpython version changes

When you change the version of the wxpython and then rebuild the py2exe script you made, there were some errors that shows up and that it cant be compiled to exe as expected.¬†When this happen, ¬†you need to check ¬†your “build” folder.

And then on the  at the beginning of, type the following:

# cleanup dist and build directory first (for new py2exe version)
if os.path.exists(“dist/prog”):

if os.path.exists(“dist/lib”):

if os.path.exists(“build”):

This should fix the problem you have.

Opencart SEO url in Nginx sample

Here is my sample URL rewriting definition for opencart SEO links that I hope to be useful on other developers running in NGINX. Notice that I have /opencart/ as the path of my opencart installation.


    location /opencart/ {
        try_files $uri @opencart;

    location @opencart {
        rewrite ^/(.+)$ /opencart/index.php?_route_=$1 last;

    location /opencart/admin/ {
        index index.php;

    location ~* (\.(tpl|ini))$ {
    deny all;

Starting a New Project in wxPython

I’m starting a new project now. This time instead of pyGtk, i’m switching to wxPython, i’m giving a go on this as i’m getting bored on doing something on pyGtk.¬† Here I will post the development on the project.

This is a POS project that will be based on SqlSoup, Sqlite and wxPython.  I will post a github link later.

See you then everyone. Thanks.

.NET ComboBox Value Assignment notes

Recently i’ve encountered issue on assigning a value on ComboBox. ¬† I’ve propagated the combobox value on the collection and I was assuming that everything will work as it is.

this.cboAvailableOnlyTallyTH.Text = this_particular_string; //this one is not working

this.cboAvailableOnlyTallyTH.SelectedText = this_particular_string; //this one is also not working

this.cboAvailableOnlyTallyTH.SelectedValue = this_particular_string; //this one is also not working

So frustrating that i’m really wondering why the value wont be assigned as i’m expecting. Later i realised that there are some extra spaces on the values which the string wont match. ¬†I’ve finally fixed the issue by using the assignment statement .

this.cboAvailableOnlyTallyTH.SelectedIndex = this.cboAvailableOnlyTallyTH.FindString(this_particular_string;






Tamir.SharpSSH, C# and some linux shell command

I’ve found some interesting .NET class for accessing the linux server via SSH tunnel on this site – I’ve almost gave my task after experimenting the WinSCP active x plugin. I’ve decided to search again another code and found this library.
There are samples there on the source code but I’ve found the code ‘SSHExeTest.cs’ helpful for me.
Here is the revise code I have :

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Tamir.SharpSsh;
namespace WinSCP_Test
public partial class Form1 : Form
string _ipAddress = "";
string _username = "root"; // :) dont worry i'mjust playing on virtualbox I think its better not to use root in production
string _password = "xxxxxxx";
SshExec exec;

public Form1()
exec = new SshExec(_ipAddress, _username);
exec.Password = _password;
private bool isScriptRunning()

string command = "ps ax | grep -e '[t]'";
string output = exec.RunCommand(command);
string[] output_arr = output.Trim().Split(' ');
return output != "";
private void runScript()

string command = "/usr/bin/python /root/ > /dev/null &";

private void killScript()
string command = "ps ax | grep -e '[t]'";

string output = exec.RunCommand(command);
string[] output_arr = output.Trim().Split(' ');
output = exec.RunCommand("kill -9 " + output_arr[0]);


private void button1_Click(object sender, EventArgs e)
if (this.isScriptRunning())
if (MessageBox.Show("Script is running kill it?", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (MessageBox.Show("Script is is not running,run it?", "", MessageBoxButtons.YesNo) == DialogResult.Yes)


private void button2_Click(object sender, EventArgs e)

private void Form1_FormClosing(object sender, FormClosingEventArgs e)