Author Archives: admin

Internet explorer – remove border around image link

If you want to completely remove Internet Explorer border around images that are links, use the following CSS code.

Posted in CSS | 2 Comments

Special characters in PHP exported CSV

When creating a CSV file with the special characters, be sure to encounter the problem of encoding characters. Although the output is in UTF-8 OK, Microsoft Excel displays the wrong characters. The solution is simple and is called BOM. At … Continue reading

Posted in PHP | Leave a comment

String contains another string

In this paper, I will bring a simple command (condition) in PHP to check whether a string contains another string. Unfortunately, PHP don’t have function contains, and we must create it yourself. 1st Testing whether a string contains a substring. … Continue reading

Posted in PHP | Leave a comment

Current page URL

Often it is necessary for PHP to find out what is the URL of the currently displayed page. If you are using only HTTP and not using a different port number than 80, you can use the following code: If … Continue reading

Posted in PHP | Leave a comment

Debugging JavaScript

The basic of the debugging is printing variables. But how to write such an object in JavaScript? Just write a simple code: Variable content appears in the console. How to display console in Firefox? Install Firebug extension Right-click anywhere on the page Select “element to examine” How to display console in Google Chrome? Right-click anywhere on the page Select “check control”

Posted in JavaScript | Leave a comment

Absolute positioning – where is 0,0?

There are many tutorials on CSS positioning. In short, there are three modes: static relative absolute In static mode, the element is located where it should normally be. In relative mode is the position set by the parent element. And … Continue reading

Posted in CSS | Leave a comment

How to close JFrame from code

The close () in JFrame unfortunately does not exist. Nevertheless, we can easily form close. or The first method described only invisible form. We can work with him in the future. The second method invisible form and releases all used resources.

Posted in Java | Leave a comment

Printf doesn’t print anything

In this post, some advise for beginners. Do you need print some debug info using printf and it print at the wrong time or does not print nothing? Don’t remember to flush the buffer, which is in the output. You have to use command fflush (). Stdout is the abbreviation for the standard output to the console. Fflush command can be used when working with files … Continue reading

Posted in C/C++ | Leave a comment

Execute an exception (call an exception)

Do you need execute an exception? Just use a simple code: or for example:

Posted in Java | Leave a comment

Conversion BigDecimal to Integer

Very simple:

Posted in Java | Leave a comment