Archive for June, 2014

8 Jun 2014

number with ordinal suffix

21:58 | php | 814 views

Goal: to show the english ordinal number I’ve found a very simle solution: a simple test and the result source: php-display-number-with-ordinal-suffix


8 Jun 2014

mysql event_scheduler after server restart

14:40 | mysql | 726 views

Goal: to avoid the event_scheduler stopped after server restart As I realized the events scheduler never working after my server restarted. The why is in the my.ini file. Find the [mysqld] section and put the following line event_scheduler=ON like this. So when the server restarted the event scheduler will be alive again.


7 Jun 2014

sidebar count with style revisited

11:40 | wordpress | 795 views

Goal: fix all the sidebar list (archives by …, categories) I did this correction earlier on categories list ( see also: category count with style ). I will do this on archives list as well based on the previous solution and overriding that one. 1. get the archives list with count: 2. counter changes: We […]


6 Jun 2014

javascript if function – created on other way

10:19 | javascript | 683 views

Goal: to go out of box… The if construction is simple Meanwhile I use the following for in many cases: But! Never use return from the comma chain! someThing == ‘value’ && ( $(this).stop().animate({‘opacity’:0}, 250), this.obj.isHidden = true, return true; /*


6 Jun 2014

jQuery Select Cheet Sheet

9:05 | , jquery | 768 views

Goal: to collect all the available select types textbox: see also: other cheet sheets


5 Jun 2014

easy trace in javascript

9:10 | javascript | 717 views

Goal: to notice the console trace function Who called my function? Easy question if you know about how you can trace. Just put one line to your function: This is for functions. If you want to know about variable changes, use getter/setter use this form So this is nice but here is a more flexible […]


5 Jun 2014

split to array is sometimes dangerous

8:58 | javascript | 701 views

Goal: to notice the split function special feature just split a delimited string to an array: but there is a strange behavior we have an empty element! We need to check the source string is valid or not. The result is correct now. Just be careful.


3 Jun 2014

split string to array

18:46 | oracle | 836 views

Goal: create array from a long string


3 Jun 2014

dbms_output available length extender

18:32 | oracle | 743 views

Goal: to extend the character limited dbms_output If the output is too short for you use instead of


3 Jun 2014

round up with decimals

18:23 | oracle | 796 views

Goal: to create a function to round up numbers with decimals We need to round up every numbers for a catalog view. May be with decimals or without.


#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }