Wednesday, June 17. 2009
eZ Components: The Good The Bad and ... Posted by Thomas Koch
in english, eZ Publish, PHP at
11:07
Comments (0) Trackbacks (0) eZ Components: The Good The Bad and the Ugly
I've been nominated again for the eZ Components Award. Thanks to eZ Systems for honour and to me employer YMC for the food!
So this is a good occasion to assemble a list I've had in mind for a longer time. In a big project like eZ Components, which has been programmed by many contributors over a long time it is natural, that there are some better and some worse parts. So which components are the good, the bad and the ugly? Maybe this kind of overview could also be done by other users of other libraries too. Then we could assemble a big comparison table of framework or library components and one could pick the best parts of each. You'll notice that even if I consider myself a power user of eZ Components, I won't give a rating for every component, because there are still a few, I've not intensively used by now. So let's complete this table in a wiki somewhere together! So IMHO: Continue reading "eZ Components: The Good The Bad and the Ugly" Wednesday, April 15. 2009
Found my desktop for live Posted by Thomas Koch
in english, information technologie at
20:53
Comments (3) Trackbacks (0) Found my desktop for live
After some experiments I finally found a desktop configuration I can life with. My first experiment with a somewhat stranger window manager was with Ratpoison. The nicest properties of it are:
Ratpoison is somewhat undermaintained and complicate, but there is awesome. This window manager is new, has a big community and all the good properties mentioned above. But awesome is only a window manager, not a full blown desktop environment like KDE or GNOME. It lacks features like auto mounting, application autostart, session management, etc. So I was very enthusiastic, when I found out about the KDEWM environment variable. This variable tells KDE to use an alternative window manager instead of the standard "kde window manager". The result is here: The KDE symbol in the lower right is not part of the background image, but a KDE widget that gives me the start menu with all applications and session management features (logout, switch user, suspend...): And while working I see only the applications I need, nothing more. Sunday, April 5. 2009
Google Tech Talk: "The ... Posted by Thomas Koch
in english, world views at
10:57
Comments (0) Trackbacks (0) Google Tech Talk: "The Palestinian Perspective"
I'm very happy, that google hosts not only tech talks, but covers many important topics. This one was hold by Pamela J. Olson about "The Palestinian Perspective: What the world looks like from the West Bank".
Since there's no other place, I put my questions here:
Related links to this talk
Tuesday, December 23. 2008
Definition Religion Posted by Thomas Koch
in english, world views at
13:07
Comments (0) Trackback (1) Definition Religion
There is no general accepted definition of the term "religion".[1] When I write my personal definition here, then I do not intend in any way to claim this definition to be scientifical correct or general acceptable. It's only what I am thinking of, when using the term.
So my Definition: Religion is the sensation of a human to be dependent of an external power that controls his life. This way the human neglects responsibility for those parts of his life that he believes to be controlled by this external power and delegates this responsability. Examples for religions are: [1] http://en.wikipedia.org/wiki/Religion#Definitions_of_religion Sunday, March 23. 2008VIM an a PHP IDE
Today I read an article from Matthew Weier O'Phinney on Planet-PHP about Programming PHP with VIM. Since he want's to continue his series and I wrote a similiar text these days, I thought to post the text I wrote so far.
Maybe we can continue together to write a nice teaser to for PHP with VIM. It would be fine, to have one place (vim.org, php.net/docs ?) to collect all those nice helper scripts and plugins. The main benefit could be, that all the scripts can be installed together without overlapping key mappings. So much for now, since I'm with my family to celebrate easter. Happy Easter to everybody celebrating it today! VIM as an IDE for PHPTemplatesTODO Codesniffer integrationCodesniffer is a tool to check PHP code against a Coding standard. By integrating it into vim you can get the list of violations in a separate error window. The errow window allows jumping to each error in the source code, even if the line numbers have changed. See help quickfix in the vim help.
Put the following code in $VIMHOME/plugin/phpcs.vim:
function! RunPhpcs()
let l:filename=@%
let l:phpcs_output=system('phpcs --report=csv --standard=YMC '.l:filename)
" echo l:phpcs_output
let l:phpcs_list=split(l:phpcs_output, "\n")
unlet l:phpcs_list[0]
cexpr l:phpcs_list
cwindow
endfunction
set errorformat+=\"%f\"\\,%l\\,%c\\,%t%*[a-zA-Z]\\,\"%m\"
command! Phpcs execute RunPhpcs()
Now you can run a Codesniff for the current file via :Phpcs Including Manuals
Install the ManPageView script from Charles Campbell. It gives you access to the PHP manual, Perl manual and to man and info pages. The script could also be extended and I'd love to use it for Javascript and HTML, too. Make sure to take the most recent version, eventually from Campbell's homepage, since it may include bugfixes not yet uploaded to vimscripts.org. You also need to install the links text browser, which is used to grap the online PHP manual: apt-get install links I took links, but elinks or links2 may work too. After installation you simply press C-K on top of a keyword and the corresponding manual page will be opened in a separate window. AutocompletitionVim helps you to complete identifiers:
The first proposed item beginning with auto is an PHP function. Vim can autocomplete with different language dictionaries depending on the filetype. Thus it won't propose you any PYTHON function while you're editing a PHP file. The second item is a word from another file I'm editing in the same Vim session. Thus you can easily complete Variablenames or Functionnames from other opened files. Vim tells you also where it got the term from. Since the last item is from the same file, there's no filename written after the word. PDV (phpDocumentor for Vim)You do document your code with proper inline comments, do you? To make this task easier, Tobias Schlitt wrote a VIM plugin which automatically lookup some characteristics of the item you want to document and creates a Docblock sceleton for you:
@todo Tag Browsing with cscope (Identifier lookup)Just like in a big IDE like eclipse, you can easily jump to the definitions of functions and classes. Vim integrates cscope for the job (apt-get install cscope).
Build the taglistVim needs an index file for all identifiers. This file is build with cscope. First we create the file cscope.files which tells cscope which file to scan. In our case this are all files called *.php. The -b option tells cscope to use the list from cscope.files: cd project_dir find . -name '*.php' > ./cscope.files cscope -b rm ./cscope.files The shell commands from above left a file cscope.out in project_dir. Now we tell vim to use the generated tagfile: cscope add project_dir/cscope.out project_dir Note that you have to add the project_dir as the second argument to cscope add! Taglist WindowEvery IDE gives you an overview of all functions in a class, right?
Install exuberant-ctags ( >= Version 5.7 ) and the taglist vim plugin. On debian you go with: apt-get install exuberant-ctags vim-addons install taglist NoteThe 5.7 version of exuberant-ctags still has problems to parse PHP properly. It can not distinguis between the word "function" in a comment and a real function decleration. Therefore I still use a patched version of exuberant-ctags version 5.6. Debug with xdebugWhat's an IDE without a Debugger?
You can find the most up to date link to the vim-xdebug plugin at the remote section of xdebug.org. |
QuicksearchArchivescategoriesBlog AdministrationPowered byBlog abonnieren |

