programming

Tags:  •    •    •    •    •  

I share my Timer class with you. This is an easy to use class. If you use this you will never have to think about the way of execution time measuring.

Tags:  •    •    •  

You can read about two popular thumbnail generating methods in this article. The first method requires GD library. If you select the other way you need Imagick which is a native php extension to create and modify images using the ImageMagick API. Let's see the code!

Tags:  •    •    •  

Sometimes you need all public properties of an object. I've also met this problem. I tried to find some usable native function on php.net, but the only native solution is the ReflectionProperty class. I think It claims too much resource. I've written an own function that has solved this issue.

Let's see the function

/**
 * It gets all public properties of given $object.
 * @param object $object It must be object.
 * @return array that contains all public property name as key and their values. example:
Tags:  •    •    •  

The well known way is svn export. Some times this command is not applicable. You can use this simple shell command in this case (Linux/*nix only).

Tags:  •    •    •    •  

I've got the next error message from Oracle server, when I try to insert new record:

ORA-01653: unable to extend table OWNER.TABLE_NAME by BYTE in tablespace TABLESPACE
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:  •    •    •  

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:  •  

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:  •    •    •    •    •  

Google dont't like indexing a duplicated content. Have you got more domains that point to the same content? Is your site available at www and non-www version of the domain? (example: www.bitprison.net and bitprison.net point to same content) More domain point to my blog: bitprison.com, bitprison.net, bitprison.org and bitprison.hu. I need a solution for avoid duplicated content. I've chosen 301 redirection that google recommends for webmaters in case of duplicated content. It may help Google to determine PageRank for your site more accurately.

Now I'm sharing with you two ways of redirection.