6Mar/140

Heredoc variable with Javascript

Javascript is amazing in terms of unobvious features. Sometimes it solves your problem in way you never think of.

In this case I need a small HTML template to be included into my very simple JS project. Since template is multi-line I want to edit it as-is and dont mess with "+" on each line. Here is a simple and elegant solution:

Filed under: dev, web Continue reading
28May/131

How I lost and recovered my photo collection in Africa trip

After some very successful photo sessions in Africa, my collection counted like 2000 photos. I was quite happy since most of them were good to show to my friends.

Once in the evening I open my Picture folder in Ubuntu and found that it is empty. Completely empty, nothing was there. I was totally destroyed, shocked.

But I stayed optimistic, since nothing is lost without tracks, even in some cases it is very hard to destroy piece of information.

14May/130

Discover PHP bottlenecks with Xdebug or why my site is so slow

In this article you will learn about the possible use xdebug by system administrators of web-servers.

If you administer a web-server,  often face problems that ordinary users of the site called "slow" or "dead-slow" Of course, this is a very important issue that could have serious financial consequences for the website owner. This formulation is sufficient to begin the investigation.

Filed under: linux, php Continue reading
8May/132

Reading directory list – new PHP5 way

It has been long time for using opendir, readdir functions or even scandir for reading directory listing from the disk.  Even myself still using it when in need.

Its time to update your snipped library with new PHP5 object oriented code. This is definitely not a new new thing, but still I want to make an article on it to attract more users to use this feature.

Filed under: dev, php Continue reading
2Apr/132

Tinydeal – blacklisted, do not buy here

"The friend in need is friend indeed" which is so true what I am going to write about. In short, Tinydeal has bad client service and attitude.

Filed under: misc Continue reading
19Mar/130

Dynamicly load Google Maps v3

Quite often pages are overloaded with 3rd party APIs or widgets and page loading time becomes a bottleneck in user experience. In my project I need google maps support, but only if user selects one particular tab.

So how to load Google Maps V3 dynamicly, on button click or tab select

Filed under: dev, web Continue reading
5Mar/130

How to connect to rare databases in PHP (informix, oracle, db2)

Recently I took part in integration project and faced interesting problem. PHP application that I deploy must communicate with Informix database for data selecte. This php application aims to corporate market, so its not a extraordinary case. I see that it may require connecto to Oracle or DB2 in near future.

Yes, PHP itself has wide choose of database connectors, which is a good option to have native database support. The only problem is that most of them are used so rare that are usualy not compiled in all modern Linux destributos. For example in Ubuntu server 12.04 there are five most pupular php5-sybase php5-interbase php5-mssql php5-mysql php5-pgsql.

Thinking of it, I found one interesting solution.

Filed under: dev, php, tricks Continue reading
12Feb/130

PHP, HTML, CSS, JavaScript editor (IDE) – Codelobster PHP Edition

This is advertising post

Free PHP, HTML, CSS, JavaScript editor (IDE) - Codelobster PHP Edition
Filed under: dev, php Continue reading
25Jan/1314

NoSQL Parody :)

While certainly not in the same class as Hilarious Video: Relational Database vs NoSQL Fanbois or NSFW: Hilarious Fault-Tolerance Cartoon, this parody does have some really good moments:

Filed under: cloud, fun 14 Comments
22Jan/132

Ubuntu 12.04 64bit – Office 2010 with Wine [SOLVED]

It works!!! It took me several hours to make it, but I do not regret time spent, I was so sick of running VirtualBox for MS Office.

Filed under: linux Continue reading