This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Saturday, August 22, 2015

How to Configure Ubuntu Linux Look Like Windows 7/8

Ones who migrating from Windows to Ubuntu Linux will not lose previous look and feel, you can have similar environment in your new home. With look and feel like previous operating system style, you can customize your Ubuntu Linux like the ways I'm tried here.


What You Need?

Here I will explain in brief tutorial how to  make such configuration. What you need among some ingridients are:
- Ready used Ubuntu Linux
- Cinnamon Desktop
- Windows 7/8 Theme
- Windows Icon

Get Installed Cinnamon Desktop

First, you need to install Cinnamon Desktop in your Linux Box with following command line:

Terminal Commands:
$ sudo add-apt-repository ppa:lestcape/cinnamon
$ sudo apt-get update
$ sudo apt-get install cinnamon

Install Windows Theme

Terminal Commands:
$ sudo add-apt-repository ppa:noobslab/themes
$ sudo apt-get update
$ sudo apt-get install win-themes

Install Windows Icons


Terminal Commands:
$ sudo add-apt-repository ppa:noobslab/icons
$ sudo apt-get update
$ sudo apt-get install win-icons

Apply The Installation



Wednesday, August 19, 2015

How To Change Grub Default Boot

This article will show you how to change Grub default boot for any installed operation system inside your computer, be it various Linux or Windows. The steps here known to working very well in my Ubuntu 14.04, while other version or distribution may have similar method.

image

$ sudo cp /etc/default/grub /etc/default/grub.bak
$ sudo nano /etc/default/grub

image
Change to
image

After saving above file, then issue this command:

$ sudo update-grub

image

$ sudo reboot

You can search MenuEntry Label on this file: /boot/grub/grub.cfg

image 




image 

Tuesday, August 18, 2015

Build wxWidgets Application to Run on Any Linux

Link wxWidgets application statically and run on any linux distribution without missing any dependency files.

This tutorial inspired by article written by Tierra here, mentioned about linking with gtk and run on any linux. Also to show you how to make static linking to libstdc++ since various linux distribution will have different version of this library that could lead to error program to running.

Note: Remember that GTK is licensed under LGPL, which essentially means that in order to link it to your application _statically_, your application will have to be (L)GPL-licensed.

$ sudo mkdir -p /opt/wxWidgets
$ cd /opt/wxWidgets
$ wget http://ftp.wxwidgets.org/pub/3.0.2/wxWidgets-3.0.2.tar.bz2
$ tar -xapvf wxWidgets-3.0.2.tar.bz2
$ cd wxWidgets-3.0.2
$ mkdir -p build2/wx3.0.2u_static

$ cd build2/wx3.0.2u_static
$ ../../configure --disable-shared --with-gtk --with-libtiff=builtin --with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin --with-zlib=builtin --with-expat=builtin LDFLAGS="-static-libgcc -static-libstdc++"
$ make 

Note: using similar switch as shown at autoconf above , you may also build/compile any Plain C/C++ application to link statically.

Monday, August 17, 2015

GUI Designer for wxWidgets using wxFormBuilder

I used wxFormBuilder frequently in recent years as GUI Designer when coding with wxWidgets. This RAD tools very much help programmer to build GUI up and running in a snap. Following tutorial will guide you in quick simple steps to configure and work with wxFormBuilder.

Installing wxFormBuilder in Ubuntu

$ sudo apt-get install libwxgtk3.0-0 libwxgtk-media3.0-0

$ sudo add-apt-repository -y ppa:wxformbuilder/release
$ sudo apt-get update

$ sudo apt-get install wxformbuilder

Installing wxFormBuilder in Windows

Get download wxFormBuilder_v3.5.1-rc1.exe

Work with the Tools, Begin wxFormBuilder

Starting the program and you will be greeted with new blank project with MyProject1 as an intial name.

For easy associating with the UI naming, then I would like to alter this name into UI. Take a look at Object Properties on the right pane, and make change to this properties:
name : UI
file : UI

Then save the project into your netbeans project (let say into folder wxApp) and make the name UI.fbp

Adding Frame

Activate tab [Forms], then select/click Frame to insert it into project and adjust properties: 
name : MainFrame
title : My wxApp

You basic GUI is now ready and to make a test, just press [F5]

Working with Window Controls


To enrich the GUI and to have full featured application  window, you may can follow the step below:
Adding layout:
[Layout] + wxFlexGridSizer
Properties :
growablecols : 1
Adding Label or StaticText
[Common] + wxStaticText
Properties :
label : What is your name:
Adding TextControl
[Common] + wxTextCtrl
Properties :
flag : wxEXPAND [v]
Adding Spacer
[Layout] + spacer
Adding Button
[Common] + wxButton
Properties :
flag : wxALIGN_RIGHT [v]
Preview the Window, press [F5]

Generate C++/wxWidgets codes

After make a GUI design, you may then generate C++ code, just press :
[F8] to Generate base class and yield you with 2 files UI.cpp and UI.h. PLEASE DO NOT make any MODIFICATION directly to these files
[F6] to Generate Inherited Class inside the files UIMainFrame.cpp and UIMainFrame.h, on which you will work with directly

Complete File is Here !

Get fresh wxApp from my Github repository, clone to your local folder and try to figure out the files inside this netbeans projects.

Happy coding …………………… / Ddy

Friday, August 14, 2015

Howto Build wxWidgets with MinGW

This tutorial is intended for the beginner who wish to have wxWidgets up and running in Windows environment. The build using MinGW without Msys.

Installing Toolchain

Download TDM-GCC from http://tdm-gcc.tdragon.net/download


image

After completion of installation, please relogin to Windows to make sure path to tdm-gcc applied.

Prepare wxWidgets Source

image
> Extract wxWidgets-3.0.2.zip into c:\opt\wxWidgets\wxWidgets-3.0.2
> cd \opt\wxWidgets\wxWidgets-3.0.2\build\msw

Build for DEBUG Version

> mingw32-make -f makefile.gcc BUILD=debug UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11"
image

Build for Release Version

> mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11"
image

Final Result is Here

image
That’s all, the simple steps to build wxWidgets on Windows without Msys. Check the result inside this folder: lib\gcc_lib

Tuesday, August 11, 2015

GitHub - HowTo Work With

GithubLogo

It would be easy for us to have program source code stored in centralized version control system in the server. GitHub provide such service free for open source projects. The simple steps herewith will guide you to setup and initialize your very first project into GitHub.

Install Git on Ubuntu

$ sudo apt-get install git

Configuring GitHub

$ git config --global user.name “user_name”
$ git config --global user.email “email_id@domain

image

Create Local Repository

$ git init MyRepo

image

$ cd MyRepo

Create README.md

README.md is initial file you may put on the repo.

$ nano README.md

Adding Repository Files to an Index

For the next, you can populate MyRepo directory with program source codes. copy over all the files into the directory, or create one if you wish to.

$ git add *
$ git commit -m “some_message”

Create Repo on GitHub with Same Name

image

Once the repo is made on the GitHub server, you may then push local content. To connect to GitHub, use following command:

$ git remote add origin https://github.com/yasriady/MyRepo.git

Pushing Files into GitHub

Final step is to push your files into server with following command line:

$ git push origin master

image

Check the result on your GitHub.com



image 
Congratulation,.... you are now on GitHub, Happy Coding....!!

Sunday, August 09, 2015

How To Make Linux Fonts Look Like Windows Fonts


I like to see my Ubuntu Desktop fonts sharp like one appears on Windows. This brief tutorial will guide you how to make such appearance. For other distribution you might use, the step is almost similar.


For this purpose, I set font configuration with following simple steps:

sudo apt-get install msttcorefonts
$ wget http://file-id.sf.net/downloads/39-clearfonts.conf
$ sudo cp 39-clearfonts.conf /etc/fonts/conf.avail/
$ sudo ln -s /etc/fonts/conf.avail/39-clearfonts.conf /etc/fonts/conf.d

To make this change applied, please relogin your current session. 

Then you may use unity-tweak-tool to customize appearance of the desktop. If not installed, then do this command line:
$ sudo apt-get install unity-tweak-tool
$ unity-tweak-tool


Make a selection to [Appearance] - [Fonts], then adjust your font to match Windows Look a Like ……. 


See the result:






How To Configure wxWidgets on Ubuntu

Configuring wxWidgets into Netbeans is not so complicated, even for those who are new to the application will find the easy way to work with. This short tutorial is intended to guide you to setup wxWidgets on Ubuntu 14.04, thus you can begin to code immediately. 



Take a look the simple step, and happy coding with wxWidgets …..

$ sudo apt-get install build-essential
$ sudo apt-get install netbeans $ sudo apt-get install wxformbuilder $ sudo apt-get install libwxgtk3.0-dev 



Install C++ Plugins

After starting netbeans, then make selection to:  Make [Tools] - [Plugins]



Download initial Netbeans project: wxApp.zip, include GUI project by using wxFormbuilder.





How to Build wxWidgets on Windows with MSys/MinGW


This tutorial will guide you step by step to build wxWidgets-3.0.2 on Windows using MSys/MinGW.
Download and do Install Msys 1.0.11 from http://www.mingw.org/wiki/msys
image27
image
Download and Instal TDM-GCC
image
image
image

Edit C:\msys\1.0\etc using your favorite editor:
image

Open MSys Command Prompt
image

image

$ cd /opt/wxWidgets
$ wget http://nchc.dl.sourceforge.net/project/wxwindows/3.0.2/wxWidgets-3.0.2.tar.bz2
$ bunzip2 wxWidgets-3.0.2.tar.bz2
$ tar -xvf wxWidgets-3.0.2.tar
$ cd wxWidgets-3.0.2
$ ./configure --enable-debug --disable-shared --with-msw
$ make

The library result can be fond here:
C:\opt\wxWidgets\wxWidgets-3.0.2\lib\gcc_lib

How to Setup wxWidgets 3.0.2 with Netbeans 8.0.2 on Windows

The simple tutorial about How To Configure wxWidgets to work with Netbeans in Windows environment.

Create New C++ Application Project
image

Capture1
Mention the project name and UnCheck [ ] Create Main File
Capture2
Configure C++ Compiler
image
Enter following information:
Include Directories:
C:/opt/wxWidgets/wxWidgets-3.0.2/include
C:/opt/wxWidgets/wxWidgets-3.0.2/build2/wx3.0.2ud_static/lib/wx/include/msw-unicode-static-3.0
Preprocessor Definitions:
_UNICODE
__WXMSW__
C++ Standard: C++11

Configure Linker
Additional Library Directories:
C:/opt/wxWidgets/wxWidgets-3.0.2/build2/wx3.0.2ud_static/lib
Libraries:
wx_mswu_core-3.0
wx_baseu-3.0
wxtiff-3.0
wxjpeg-3.0
wxpng-3.0
wxzlib-3.0
wxexpat-3.0
wxregexu-3.0
gdi32
comctl32
ole32
uuid
oleaut32
comdlg32
winspool
Additional Options: –mwindows

image

That’s all