Programming

Example of C++ Sudoku Solver In GUI

Today I have a feeling to share the source code of my sudoku program that have been written in C++ QT.  You can download and edit the code if are interested to .

The UI of this program was developed in QT  and I used Microsoft Visual C++ 2010 to compile it.

[box type=”download”] 

[/box]

Screenshot:

sudoku

Otherwise if you just want to use the compiled version of this program, can download by clicking the button below

[box type=”download”] 

[/box]

The size of the file is quite huge as I put all the dependency required by the program to run so you don’t have to install and it’s also portable as long as you run the program on Windows XP and above.

Tags : ,

CPanel : Add email forwarder using PHP

This PHP script will add email forwarder to cPanel account by using it’s API. It’s pretty simple to call the API using PHP. For this example I’m not gonna use their SDK as it’s only one call, unless you want to call multiple API’s then their SDK is more practical.

You can download the entire script:

[box type=”download”] 

[/box]

Before run this script make sure to change some settings.

/*****
*Setting part
*Change according to your cPanel settings
*****/

$fwd_to_email = "[email protected]"; //your free email eg: gmail and so on.
$fwd_from_email = "[email protected]";  //your forwarder email
$port = 2082 ;  //2082 for unsecured, 2083 for secured but your hosting must support SSL (put https in cpanellogindomain)
$cpanelpassword = "yourpass#"; //your cPanel login password
$cpanelusername = "xxxx"; //your cPanel username
$cpanellogindomain = "http://mahadirlab.com"; //your domain when login to cPanel without port or /cpanel .

WHMCS Hacks – Get Domain TLD List

WHMCS provides various APIs for developer, but recently I  need an API to get list of the TLD domain for external search, mean like I don’t want to update the integration code everytime I add a new TLD. I searched through out the entire APIs but none of it provides this features so I  write it myself to access directly to database.

logoblue


Read the rest of this entry »

Tags : ,

file_get_contents – failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

I was recently wrote Facebook application using graph API , In this case my application need to update settings in developer (www.developers.facebook.com).

 php5.4

The URL was like this


Read the rest of this entry »