Blog

Tags:  •  

Almost all beginner Java Swing programmers meet these issues. I have written some code example for representing the solution. This issue collection is useful for some situation, but please comment it.

Maximize a Java Frame

How to maximize the JFrame (main window) from code:

import java.swing.JFrame;
 
public class MyFrame extend JFrame {
   public MyFrame() {
     // the application window is run as maximized
     this.maximize();
 
     // some code ...
   }
 
   /**
    * Maximize the Frame.
    */
   public void maximize() {
Tags:  •    •    •    •  

When I upgraded my Ubuntu Linux from "Gutsy Gibbon" to "Hardy Heron" my gnome-terminal not shown some characters correctly anymore. I tried change the character encoding to UTF-8, but next time back again to ANSI_X3.4-1968. And I have found the solution.

Tags:

One World, One Dream

“One World, One Dream” is China's Olympic slogan. But the reality of China's occupation of Tibet is a nightmare. Right now thousands of Tibetans are being arbitrarily detained, beaten and killed for speaking out for freedom.

The Game is Over.

On March 24th, China launched its Olympic Torch Relay. In
the next two months, the torch will travel to cities around the world in a blatant attempt by the Chinese government to gain international acceptance and to divert attention away from its illegal occupation and current military crackdown inside Tibet.

Take Action: No Olympic Torch in Tibet!

Free Tibet!

Tags:  •    •    •  

Task

I've given the follow task:
Make a PL/SQL procedure for Oracle, what put CRATE TABLE statement to DBMS output.
The signature of prodecure is
PROCEDURE cr_tab(p_owner VARCHAR2, p_table VARCHAR2)

Tags:  •    •  

Publish your source code on web with colour syntax highlighting.

For example: How to send correct UTF-8 mail in PHP
This article is contain a PHP code what is syntax highlighted and all PHP function is link to PHP documentation. This code is more understandable, and more readable than simple colourless version.

How to set syntax highlighting on your website?

Tags:  •    •  

Change your boot splash or menu appearance in ubuntu or kubuntu with startupmanager. Set password against kernel parameters for example: init=/bin/bash, what boot up your system to root prompt.

Installation:

sudo apt-get install startupmanager

After installation process has finished execute startupmanager:

sudo startupmanager

After it you can set any splash for boot, background image for GRUB, or you can set password protection for GRUB, or change resolution, color detph of boot process, etc...

Tags:  •    •    •  

How to convert jpg files to one PDF?

    Requirements:

  • Linux

    Ubuntu is my favorite. But you can use any other distribution.

  • ImageMagick
    Type the follow line to Ubuntu commmand prompt for intall ImageMagick:
    sudo apt-get install imagemagick
Tags:  •  

This is a short summary of Sun's Java naming conventions.
I think the most important code convention in Java is the naming convention. These easy naming conventions make programs more understandable by making them easier to read.

Naming conventions

Classes and interfaces
Class and interface names should be nouns, in mixed case with the first letter of each internal word capitalized.

Tags:  •  

Set level the horizon line of your photos in 5 easy steps.

Tags:  •    •    •    •    •  

My spam traffic has decreased to minimum after I've inserted following lines in /etc/postfix/main.cf file (Postfix main configuration file). These settings made my SMTP server to spam resist. This method use DNS queries, what mean very fast UDP communication and use less memory and CPU then any spamfilter. If your hardware is weak or an all-in-one server than use this really fast and effective method.

Before: I received 200-300 spam a day.
Now: I receive only 1-2 unsolicited email a day.