Archive for June, 2014

3 Jun 2014

select all rows where we have non numeric characters in the column

17:26 | oracle | 1085 views

Goal: to find all the rows with invalid order number. We have a process where some outsider application send orders to a web page and read the answer from the server. The answer sometimes is incorrect. The page structure is seemingly good, but we have incorrect data. For example the place of order number contains […]


2 Jun 2014

make a smarter Enlighter Syntax Highlighter

10:25 | wordpress | 1407 views

Goal: to add some usefull functionality to the Enlighter plugin In my blog I use the Enlighter plugin to colorize my code sections. The plugin is great, but have some defect. My extender/customzier is the following: 1. the code block height maximized to 140px and added to div style 2. I’ve added 2 controller to […]


1 Jun 2014

animated funny mushroom on the date brick

21:17 | javascript | 1066 views

This is a funny post… 2 June 2014 1 June 2014 this post is about he and his brothers. Yes, he is not alone… Click on the date block on the left side. The mushroom jumping on from the far. Twinkling, bored, jumping, for a while waiting and jumping down to nowhere. Let’s check the […]


1 Jun 2014

bindable none DOM objects

17:52 | javascript | 990 views

Goal: to build an effective handshake mechanism between objects In jQuery we have the very useful bind/trigger logic. I want to use some similar on my objects. What I will do I will extend the Object class with 3 methods, like _bind, _unbind, _trigger _bind: to attach a function to my object _unbind: to detach […]


1 Jun 2014

shrink an array

17:06 | javascript | 985 views

When you drop an element from an array by The second item will be there with value. Let’s delete more than one item from the array and there will be many holes in the line. Here is a simple shrink function to solve this problem. This is a simple Array extension. var shrink = function() […]


1 Jun 2014

extender – Array

16:52 | javascript | 1018 views

Goal: give some additional function to the Array type // 1. remove the specified element TypeExtend(Array, ‘remove’, function(from, to) { try{ var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); } catch(e){ return false; } }); // 2. remove all […]


1 Jun 2014

arrange text to the center of a container div (single or multiline)

10:21 | web trick | 1067 views

Goal: show text in a div like in a table cell That’s all. Add some additional styles to the container (size, decoration) and… I’m on the centerof my parent Here is a small extra: center a div in a div. The old technik play with the margins.


#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; }