2012
02-28

table strange border color in firefox

Problem:

You can find your self wondering why if you put border to table let say color #F00 it have different colors at different borwsers.
Funny :)
(more...)
2011
12-19

mysql sum error

In Blog | Tags: ,
Today I was fighting with strange error.
 
SELECT
  -- ...
  (
  (SELECT SUM(t.v)
   FROM tab1 t
   )
  +
  (SELECT SUM(t.v)
   FROM tab2 t
   )
  ) AS x
-- ...
 
Something like that give me NULL in x in every row even if there was a lot of records in tab1. (more...)
2011
10-13

notepad++ regex replace

Notepad++ is great free text editor.
You can download it at http://notepad-plus-plus.org/.
It have regex replace option.
So how it work ?
(more...)
2011
06-16

howto make order form and check payment status in paypal

It's not so hard to do it if you have good example. Unfortunately it was hard for me to find good example. So I describe it here. (more...)
2011
01-26

New Theme

Today I create new wordpress theme for my site.
(more...)
2010
12-25

What empty foreach do in PHP

While ago I was fighting with one bug. There was code witch was working, but stop working when I add empty foreach.
  1. //that work with rest of code
  2. function fun(){
  3. $table= array();
  4. //...
  5. return $table;
  6. }
  7.  
  8. //that do not work with rest of code
  9. function fun(){
  10. $table= array();
  11. //...
  12. foreach( $table as $key => $val ){}
  13. return $table;
  14. }
  15.  
(more...)
2010
11-16

Canvas – no more Flash

We all know Flash and Java. If you write webpage with it and if your users install it, then they can watch animation elements on your web page. But today I was playing with something new called "Canvas". (more...)
2010
10-26

Softpedia certification

Few months ago I create program "Log Watcher" to observe logs of my webpage. I put it to sourceforge.net here so maybe somebody will also use it. In last week I recived emial with information that my program get Softpedia certification. (more...)
2010
10-24

python fast tutorial

This tutorial is for thous who can programing but don't know Python language. I will show how to use variables, loops, arrays, functions, and how to write scripts. (more...)
2010
10-17

C++ lesson 2 – variables

In that lesson I will describe what are variables. (more...)