Featured Post

If you have much work to do, but only 24 hours a day…

My today’s thoughts about work, relations and legacy: If you have much work to do, but only 24 hours a day You need to delegate your work to skilled people such as you. But how to make more of you? I am not talking about procreation and sex Which is some sort of solution, but long-term I’m...

Read More

1001 form inputs in PHP and 1001 items inside IN operator in Oracle database

Posted by evolic | Posted in Databases, Programming, Web development | Posted on 10-08-2014

Tags: , , , , , , , , , , , , , , , , , , , , , , ,

0

Thousand number was a magical for many people among the ages. In Latin it was described by M letter (lac. Millennium).

In 2000 year we had experienced year 2 kilo bug (Y2K bug) also called Millennium bug caused by dating convention made many years earlier by describing year with two digits instead of four e.g. 1992 was described as 92. Year 2000 could be described in this system as 00, and current year 2014 as 14. But what with financial or population systems? Somebody could be born in both 1901 and 2001. Because of this problem whole world was updating the software.

But attentive reader could ask about the relation between number 2000 and current time, because the problem described above had passed and had been solved long time ago. After all, we have 2014.

[EN] International Workers’ Day in Poland, Europe

Posted by evolic | Posted in Events in Poland, Holidays | Posted on 01-05-2014

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

0

Today we are celebrating International Workers’ Day.
In Poland we are celebrating also 10th anniversary of the joining Poland into the European Union in 2004.

Polish presence in the European Union

There are many concerts related to our presence in the EU, paid – of course from the money Poland got from the Union. To be honest – it’s Polish money, because we are putting some amount of money from our taxes to European Union moneybox and receive it back (more or less) for certain projects according to EU policy and priorities for developing Poland as the member to fix all problems related to over 40 years of being ruled by communists.

Poland has changed a lot from 1989.

CSS and JavaScript files order in Zend Framework templates

Posted by evolic | Posted in Programming, Web development | Posted on 07-06-2013

Tags: , , , , , , , , , , ,

2

Today I would like to focus on one thing in Zend Framework (no matter if I talk about version 1.x or 2.x).

There is a problem with positioning CSS and JavaScript files in templates (using headLink() and headScript() helpers). I will demonstrate it in below samples and give the solution for that situation.

So let’s begin!

SubForms example in Zend Framework 1.x

Posted by evolic | Posted in Programming, Web development | Posted on 22-04-2013

Tags: , , , , , , , , ,

0

Today I would like to write something about SubForms available in Zend Framework 1.x.
Currently we have Zend Framework 2 released, and there is some similar solution called Form Collections with completely new approach.

I will take care that new feature from Zend Framework 2 in the close future, but in this article I would like to share some good looking and good working example of using SubForms from Zend Framework 1.x

SubForm example page in HTML5

SubForm example page in HTML5

Currently I am working on the project made with Zend Framework 1.x and I think that real example could be useful to people, who want to learn something about Zend_Form_SubForm.

Localizing application in Zend Framework 2

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 29-03-2013

Tags: , , , , , , , , , , ,

2

Today I would like to focus on translating application in Zend Framework 2.

Overview

By default, tutorial application has included Zend\I18n\Translator\Translator configuration in /module/Application/config/module.config.php as follow:

It has also attached translation files in gettext format under the /module/Application/language directory.

There is over a dozen files like en_US.mo and en_US.po. You can edit .PO files (gettext source) with Poedit – a free, open source and cross-platform gettext catalog editor.

.MO file is automatically created (compiled), when you save the .PO file.

Program has very intuitive interface and looks like that:

Poedit - main window

Poedit – main window

There was missing Polish translation, so I created it on my own.

Creating one to many relation in Doctrine 2 ORM

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 23-03-2013

Tags: , , , , , , ,

0

Introduction

In this tutorial I will present relational mapping between albums and songs.
In Zend Framework 2 Tutorial we had only one table – it was called albums, and stored albums data.

Today we will extend our sample application with new table – songs.
Each album can has many songs, but single song can be connected to only one album.
It is called relation OneToMany in Doctrine ORM.

Update your database with following:

Integrating FirePHP with Zend Framework 2 using Composer

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 23-03-2013

Tags: , , , , , , ,

0

Introduction

If you previously integrated FirePHPCore with Zend Framework using this description just remove require_once(realpath(__DIR__ . ‘/../../vendor/firephp/FirePHPCore/FirePHP.php’)); instance, where you include FirePHP library in global.php

Modifying Composer configuration

Now you need is to update composer.json file as follow:

At the end update your vendor libraries:

Now you should be able to use FirePHP using Zend\Log writer and as standalone \FirePHP::getInstance(true)

And that is all in this topic.

Integrating FirePHP with Zend Framework 2

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 22-03-2013

Tags: , , , , , , , , , , , , ,

1

In this post I will show you how to easily integrate FirePHP – Mozilla Firefox extension with Zend Framework 2. FirePHP enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.

General information

At the beginning some basic notes:

So download server side version and unpack the archive.
Find the FirePHPCore inside and copy it to /vendor/firephp directory.

At this step you should have FirePHP.class.php in the /vendor/firephp/FirePHPCore/.

Now rename FirePHP.class.php to FirePHP.php.

Once you successfully installed FirePHP extension in Mozilla Firefox you can get to next step – setting up the Zend\Log in our tutorial application.

Portfolio website released

Posted by Tomasz Kuter | Posted in Web development | Posted on 19-03-2013

Tags: , , , ,

5

Today I would like to inform you that I created website presenting my portfolio – projects I was involved with. In my opinion site looks good and is very readable for any users.

Currently it is static page – non CMS attached, but I am going to create own Content Management System in close future.

Porfolio is available at: http://evolic.eu5.org/

Any feeedback from your side will be very valuable.

Below some screenshots.

Porfolio website - homepage

Porfolio website – homepage

Porfolio website - language selecion

Porfolio website – language selecion

Porfolio website - contact page

Porfolio website – contact page

Mozilla Firefox addons

Posted by Tomasz Kuter | Posted in Internet browsing, Web development | Posted on 15-03-2013

Tags: , , ,

0

Many of you probably use Mozilla Firefox, I can’t imagine that you haven’t heard about that browser at all. What I want to speak about is Add-ons, by big A, because add-ons themselves are the biggest feature and power of the Firefox.

I will focus on the two kind of add-ons:

  • Must have – as I describe add-ons, which normal Firefox user should have,
  • and web development add-ons, which every Web Developer should use in his/her work.

Must have extensions

First of all, I would like to mention about Adblock Plus, which of I was talking in older post. IF you won’t like to see insistent ads – just install Adblock Plus. Very helpful is also Element Hiding Helper for Adblock Plus.

Next one is Tab Mix Plus, which has the biggest number of options relating to tabs and session. If you would like for instance open new pages in new window from the address bar or search bar (not loosing currently opened page) – just install this extension.

Last one of the normal add-ons is Better Privacy. If you want to keep your presence in Internet more anonymous – it is perfect choice for you.

Full list of my must have add-ons you will find at the end of this post.

Web Developer extensions

Second list of extensions is Web Developer add-ons.

I will encourage all people concerned on creating web sites to use following extensions:

  • Web Developer – many useful features helping web developers,
  • Yslow – great tool released by Yahoo for profiling and optimising websites to speed up the page loading,
  • Page Speed – another website profiler created by Google,
  • Firebug – a must to have extension for web developers and webmasters,
  • FirePHP – if you are PHP developer – you will start using it and will never know why you haven’t been doing it before!
  • SenSEO – helpful if you would like to make some SEO optimisation of the websites you are involved with,
  • HttpFox – advanced tool for HTTP requests investigation.

The list of all add-ons I am using you can find below: