Quantcast
Channel: Caught in a Web
Browsing latest articles
Browse All 50 View Live

Method Overloading in PHP5

Although with release of PHP5 we finaly got some long awaited OOP features, sometimes I really miss overloading capability which exists in languages like Java. I am talking about something like this:...

View Article



PHP: Callback functions and OOP

Recently, I had to change default behavior of storing session data into files and use MySQL DB instead. In practice, that means writing whole bunch of callback functions and setting callbacks with...

View Article

Image may be NSFW.
Clik here to view.

Future of Web Applications, Miami

Tuesday, cloudy day in Miami, not really good weather for the beach, but who cares. Today is FOWA day! Check in was within 08-09AM in beautiful Adrienne Arsht arena. Checked location on Google maps,...

View Article

MySQL – NULL values and sorting

Very often we need to sort some data by specific field in db table but in a way that NULL values goes at the end of dataset. Typical example is frontend which displays data from specific table, with...

View Article

Image may be NSFW.
Clik here to view.

HTC Hero USB Tether on Mac OS X

Recently I got brand new HTC Hero – great android based phone. Since my previous phone (Nokia N73) has been working with Mac without any problem I was very disappointed to figure out that I have to...

View Article


MySQL: Moving table from one db to another

To move one table from one db to another, you can create new table (create table foo_new like foo) in db where you want to move table and then copy data with insert into/select query. However there is...

View Article

MySQL: Deleting with Left Join

Today I had to deal with one huge table and cleanup all data where foreign key doesn’t have it’s primary key match in original table, just to remind myself how sub-queries in MySQL are terrible slower...

View Article

Image may be NSFW.
Clik here to view.

Validating an integer with PHP

When I started writing this post I wasn’t sure should I put this into programming category or fun … I mean, validating if passed variable is integer aka whole number, how hard can it be? It appears not...

View Article


Curl HTTP Client 2.0

It’s been a while since I last updated my Curl HTTP Client class. That’s the class that we’ve been using for years now, for all kinds of site scrapping, bulk domain registration without API, … and even...

View Article


Image may be NSFW.
Clik here to view.

Hello World, Hello 2022!

I have to say, for someone being a blogger since 2005, it feels tremendously awkward to write a Hello World post in 2022. Truth to be told, it’s been a while, literally years since I last posted...

View Article
Browsing latest articles
Browse All 50 View Live




Latest Images