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

Issues with translation related to Zend Framework 2.2 upgrade

Posted by evolic | Posted in No category | Posted on 04-08-2013

Tags: , , , ,

0

Hi there,

This time I will take a look at recent issue I met during the upgrade of Zend Framework 2.

There is a note at the website http://framework.zend.com/manual/2.2/en/modules/zend.validator.html as follow:

A new service has also been registered with the MVC, MvcTranslator, which will return this specialized, bridge instance.

Most users should see no issues, as Zend\Validator\ValidatorPluginManager has been modified to use the MvcTranslator service internally, which is how most developers were getting the translator instance into validators in the first place. You will only need to change code if you were manually injecting the instance previously.

Overview

It seems I am not listed in the group of most users, because after updating Zend Framework 2 to version 2.2.x using Composer I noticed that my application won’t translate to specified language.

MvcTranslator was introduced in Zend Framework 2.2 as internal class used to translate text in the MVC architecture. As mentioned before users shouldn’t noticed it’s occurrence but in my case it was not so easy.

It took me a while to investigate the problem and I eventually made it.

How to copy many files with certain mask under Linux?

Posted by evolic | Posted in No category | Posted on 01-08-2013

0

This time I would like to share solution for the problem described in the title of this post: how to copy many files with certain mask under the Linux Operating System.

Background

Let’s say I have 200 files with following types:

  • <number>_400x300.<extension> – e.g. 534_400x300.jpeg,
  • <number>_300x90.<extension> – e.g. 342_300x90.jpg,
  • <number>_640x480.<extension> – e.g. 11_640x480.png

As you could notice – there can be JPG, JPEG and PNG files.

I want to copy all files of the specified type, 300×90 for instance.

Solution

It is quite simple when we are using regular expressions!

Here is sample command we can type (or paste) in Linux shell:

That is all for today.

Hello world!

Posted by Tomasz Kuter | Posted in No category | Posted on 02-06-2009

Tags: ,

3

Hello everyone!

This is the first post in my blog. I hope you will find here something interesting, maybe even that what you have been looking.
My blog is dedicated to some technical solutions used in Internet, but not only.
You will find here some posts describing some current global, local and personal events.

I hope you will enjoy it ;-)

Happy reading!