20 April 2012
When you have plenty of Symfony2 applications and you need to deploy them from time to time, you are probably sick of thinking about every activity you need to do for every deploy. Often people use some build scripts, which are hard to maintain and tends to be unreadable. I wanted to automate it as much as it possible and I’ve choosen Ant, to help me out.
Actually Ant is choice, due to other fact – it can be easily used with Continous Integration server like Jenkins, while ssh scripts often generates some problems. With this aproach all you need to have Ant binary on server and build.xml config in root folder. You can have different targets defined in config and chain them using depend attribute. So in this case you can have target for building project on production server (usefull for continous delivery) and setup for Jenkins.
Read more
4 April 2011
W najnowszym Software Developer Journal ukazał się mój artykuł pod tytułem “Test-Driven Development oraz Continous Integration w projektach PHP 5.3″. Zapraszam do lektury i dzielenia się spostrzeżeniami w komentarzach. http://sdjournal.pl/magazine/1683-po-co-nam-interfejsy-tworzenie-elastycznego-kodu
Read more
22 March 2011
If you are developing PHP application on your own PC, you probably have some vhost based configuration of your Apache. With some tricks, you can turn your Linux box into powerful development server without configuring vhost for every app . In the minimum configuration effort, you need to pass those steps:
- checkout repository to disk
- create vhost configuration with some ServerName
- create entry in /etc/hosts which reflects server name used in vhost to 127.0.0.1
I’m pretty sure, that above path is used by many developers. We can ommit two lasts steps, limiting preparation of the environment only to place source code somewhere in filesystem. To achieve this we need mod_vhost_alias module for Apache2 and simple DNS server which will resolve local domain names for us.
Read more
31 January 2011
Na firmowym blogu http://xlab.pl zamieściłem post odnośnie mojej ostatniej prezentacji na temat Symfony2 – zapraszam do lektury :-) Post jest dostępny pod tym linkiem.
Read more
30 November 2010
On thursday 25th of November 2010 I passed Zend Certified Engineer exam for PHP 5.3 thanks to certification program in company where I work – XSolve. It’s quite new exam, because of PHP 5.3, so I will describe my feelings and recomend you some helpful sources.
Read more
23 November 2010
Probably most of us heard about streams in PHP. They are background of all files and network operations in PHP, even if we don’t see it. Everytime when you use file_get_contetnts or fopen you are actually using streams. But there are many stream wrappers I haven’t used, because they aren’t well known.
Read more
27 September 2010
Na firmowym blogu XSolve xlab.pl umieściłem artykuł o uporządkowanym wysyłaniu e-maili w projektach symfony 1.4, wykorzystującym dobrodziejstwa programowania zorientowanego obiektowo.
Krótki wstęp:
Niemal każdy projekt, z jakim miałem do czynienia, zawierał fragmenty, w których były wysyłane e-maile. Najczęściej czynność ta jest wykonywana w kontrolerze aplikacji (klasa actions), a treścią wiadomości jest wyrenderowany partial. To rozwiązanie jest dobre do czasu, gdy chcemy wysłać tego samego e-maila z dwóch różnych aplikacji (np. z frontend i z backend), czy z taska. Warto wtedy przyjrzeć się wbudowanemu systemowi do wysyłania emaili jaki oferuje symfony 1.4 (korzystającym z Switf Mailer).
Czytaj całość:
Uporządkowane wysyłanie e-maili w projekcie symfony
Read more
30 May 2010
Ostatnio miałem przyjemność poprowadzić w firmie, w której pracuję, ”Piątek z XSolve” prezentując temat “MongoDB – baza danych zorientowana dokumentowo. Czy ruch NoSQL ma sens?”.
MongoDB jest bazą nowej generacji, która jest zorientowana na przechowywanie dokumentów JSON, o dowolnej strukturze. Nie mamy w tym przypadku problemów z schamatami bazy, czy migracjami na nowsze wersje jej struktur. MongoDB, jak i inne rozwiązania nurtu NoSQL, jest stworzona z myślą o pracy w dużych obciążeniach oraz posiada wbudowane mechanizmy skalowania i replikacji. Baza ta posiada bardzo przyjemne API dostępu do danych, które jest podobne do niektórych bibliotek ORM.
Read more
13 May 2010
The sfWidgetFormSelect doesn’t provide ability to render disabled options. It’s rarely used feature of a HTML select element, but sometimes it could save your life :-) In fact, we can achieve this feature by creating our own widget, like one listed below, which inherits from sfWidgetFormSelect. This solution is inspired by problem posted on Symfony Experts.
Read more
18 April 2010
Mam przyjemność zaprezentować widget mojego autorstwa: NKFeed, dzięki któremu na waszej stronie startowej netvibes.com możecie oglądać ostatnio dodane zdjęcia przez waszych znajomych z nasza-klasa.pl. Widget ten jest dostępny w ecosystemie netvibes pod linkiem: http://eco.netvibes.com/widgets/378267/nk-feed Widgetu można używać również w czytniku iGoogle.com
Zapraszam do używania oraz dzielenia się wrażeniami oraz ewentualnymi napotkanymi problemami.
Read more