Author Archives: stepas

Using CakePHP behaviors

Let me assume: your Cake app has users and these users have something in hasOne or hasMany relationships. If there are more than one user you probably want to allow most of CRUD actions only to the owner. How do … Continue reading

Posted in CakePHP | Tagged , | Leave a comment

Project JavaScript string localisation

If you ever worked on a project which involved JavaScript text, you surely have had some thoughts on how to pass localized or server-side processed strings to JavaScript. One good way is JavaScript templates (Mozilla has some links, I use … Continue reading

Posted in Code, JavaScript, PHP, Theory | Tagged , , | Leave a comment

Project Javascript layout

For some time I’ve been finding myself coding more JavaScript instead of server-side code. And I like it! But that aside, I want to ask you: do you have a file and object-wise layout for your JS code? I’ve got … Continue reading

Posted in Code, Ideas, Theory | Tagged , | 1 Comment

CakePHP vs. Zend framework? The answer is one question.

CakePHP or Zend framework – this question arises quite often. In my opinion, the answer to it is the answer to this question: Are you (your team) skilled enough to define your own application structure and keep all code in … Continue reading

Posted in Theory | Tagged , , | 4 Comments

Fixing code or writing code – what`s better?

This is a long write-up. If you get bored at some point, I recommend going to the conslusion. Writing new code. Fixing old code (that’s like archaeology, right?). But which one of those does help you become better faster? More … Continue reading

Posted in Theory | Tagged , , , | Leave a comment

Why it is more fun to code in a team?

Because you can smile by looking at other guy’s code:

Posted in Fun, Short | Tagged , , | Leave a comment

jQuery selectors on IE 6 and 7 don’t always work as expected on repeating IDs

Today I’ve had a small freelance job on fixing a bug in a e-shop. To summarize, the task was like this: IE 6 and 7 don’t behave as other browsers, including IE8, do. Fix this! Despite the fact that I, … Continue reading

Posted in bugs | Tagged , , , , | Leave a comment

Interruptable file download

Have you ever been to a website that offers downloads of stuff? And while you are waiting for the download, there are lots of ads around? Sure you have. I have too. The last day I was downloading stuff. An … Continue reading

Posted in Code, Ideas | Tagged , , , | 5 Comments

WhoAmI

Hello, my dear code friends! I want to start my blog with introducing myself. My name is Steponas Kazakevičius. I was born and am still living in the center of Europe – Lithuania, in its beautiful capital city Vilnius. 4 … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Hello world!

Hello! This is my first blog post. So I won’t be writing anything more than I (and probably lots of others programmers too) have started their journey of DEV: 1 2 <?php echo "Hello world!"; More coming shortly.

Posted in Uncategorized | Leave a comment