Wesołych Świąt!
Dec 22
Kolejna Wigilia za pasem, jednocześnie Nowy Rok coraz bliżej. Nie ma co dużo pisać – Zdrowych i Wesołych.
Rafal's Grzegorek blog
Dec 22
Kolejna Wigilia za pasem, jednocześnie Nowy Rok coraz bliżej. Nie ma co dużo pisać – Zdrowych i Wesołych.
Apr 17
Po zainstalowaniu IE9 na moim 64-bitowym Windows 7, przy dostępie do panelu administracyjnego VMware zaczęły się dziać dziwne rzeczy. Przy próbie otwarcia strony logowania panelu przeglądarka się wysypywała po czym stwierdzała, że spróbuje odpalić stronkę jeszcze raz. I tak bez końca…
Jeden z Internautów znalazł na to rozwiązanie – można o nim przeczytać na http://www.petenetlive.com/KB/Article/0000329.htm.
Na razie odpaliłem tylko IE bez dodatków i udało mi się dostać do strony logowania VMware, więc wygląda na to, że problem był z jakimś dodatkiem. Jeszcze nie wiem z jakim.
Apr 21
General comic, life No Comments
After some issues with upgrading my Wodpress to 2.7.1 version (qtranslate plugin was the problem, but I found a solution on its forums), I found this post in draws. There is one of the translated parts of UserFriendly comic. A little Christmas atmosphere there, but it dosen’t matter.
A nice accent after time without any posts.
Dec 27
Programming CakePHP, PHP Comments Off
25th December the final version of this great framework has been released. A lot of people put a lot of work, this event could became a reality.
On Cake’s website you can read a kind of summarizing this work: http://bakery.cakephp.org/articles/view/the-gift-of-1-2-final
Dec 09
Administracja error, mysql No Comments
If you want to change, for example, at phpmyadmin to the program mentioned in the title, we may be faced with problems with the connection, as it was with me. The reason may be accepting only local connection by MySQL server. Assuming that we have the power to edit the file /etc/mysql/ my.cnf, just comment line:
bind-address = 127.0.0.1
and restart MySQL Server.
Oct 25
Programming CakePHP, PHP 3 Comments
Some time ago I had the approach to the topic of programming (mainly in the context of web applications) such that I wrote everything myself, to have greater satisfaction with what I do. It was not until the time came convinced that the “reinventing the wheel” does not have the least sense – as is already better known as the wheel is built. This kind of thinking was much more practical – especially using the framework that I have guarantee of solutions to a number of repeating problems by people more experienced than me.
That approach lead me to my first framework based on PHP which is CakePHP. I’m in the middle of my first project with it. Some time it took me a concept of philosophy of Cake, but was worth. In addition, this was not particularly difficult, because the framework is very clear (at least I gave such an impression).
What exactly CakePHP is? I’ll quote the authors:
CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.
Session Management, the creation of forms, CRUD database opearations – these and other issues have to resolve any programmer writing Web applications. And in principle no longer exists, or has these problems, much less, because many of them resolves CakePHP.
Cake’s big advantage (and probably not only this framework) is a file-naming convention, classes and the directory structure suggested by the authors. This allows you to easily find up in the draft.
I don’t like in Cake the fact that the authors hold compatibility with PHP4. This is a version of PHP already really outdated. I hope that version 2.x Cake will only support PHP5.
Sep 12
Let’s assume we want to create a menu using code like that:
<div id="menu"> <ul> <li><a>link1</a></li> <li><a>link2</a></li> <li><a>link3</a></li> </ul> </div>
and we will use CSS like that:
#menu li a{
border-color: #AEAEAE #AEAEAE #AEAEAE #8CCE20;
border-width: 0 1px 1px 0;
border-style: solid;
color: #1F2024;
display: block;
font-family: Verdana;
font-size: .775em;
height: 14px;
padding: 10px 0 8px 13px;
text-decoration: none;
}
Internet Explorer will add unnecessary space beetween each list’s element, so i.e. frame borders could be discontinued. The solution is to add this line:
vertical-align: bottom;
to “#menu li a”.
Source: http://phonophunk.com/articles/ie-fix-for-gaps-between-list-items.php
Recent Comments