LyX

So on recommendations I have installed LyX. I am actually writing this on LyX now. I just thought I should post my thoughts on this programme. I am not sure why I had not tried this first, it is mainly a WYSISYG editor that outputs LaTeX source or any other LaTeX-like source code for that matter. So you can type documents up as you would in a normal text editor and then not have to worry about all that LaTeX markup that you need to make it look like it should because there are a myriad of buttons you can use for styling.

Read more

Share

LaTeX Editors

I have been looking into LaTeX (pronounced La Tek) editors for my writing now and after a lot of trials and tribulations, I finally settled on LateXila. Not only does it look identical to my favourite text editor / IDE of all time - gEdit. It supports syntax highlighting, decent support for BibTex referencing. It also has a very user friendly interface and it’s also customizable as per any GTK interface in GNOME.

Read more

Share

A note on Zend Pagination

Having gone round in so many circles I finally found out that when useing Zend Pagination and the current route you are using has more than one dynamic variable i.e $router->addRoute( 'listingswithpage', new Zend_Controller_Router_Route( '/listing/:type/:page', array('controller' => 'listing', 'action' => 'index') ) ); Your pagination view helper gets a bit thrown if you go by the documentation. The first thing you need to do is find a way to specify the first page initially.

Read more

Share

Mod_Rewrite and Zend Framework 1.10.x and Ubuntu

So all the tutorials on configuring your development server to run Zend Framework successfully say that you need to enable mod_rewrite in apache2 so that .htaccess and Zend_Router* works well. What they all say is to make sure it’s loaded and enabled. I will raise my hand and say it wasn’t that easy for me to find because Ubuntu lays out Apache2 a little differently from say Fedora. First of all in the /etc/apache2 folder there are a few folders to take note of.

Read more

Share

Full Text Indexing with Zend_Search_Lucene

To provide a robust search facility for content you have stored on a MySQL database, you may be thinking of using MySQLs builting full text indexing facility. This comes with the MyISAM storage engine and can be slightly limiting especially if you would like to use foreign keys and such. So queries such has the following: "SELECT *, MATCH (page_content, page_title) AGAINST (:keywords IN BOOLEAN MODE) AS relevance FROM pages WHERE MATCH (page_content, page_title) AGAINST (:keywords2 IN BOOLEAN MODE) ORDER BY relevance DESC"; may not work for you although this may be how you want to go.

Read more

Share

A question on Zend_Acls

So I have been playing with the Zend_Acl for a while now and I managed to integrate it with this site I am working on. I am however asking myself a few questions here. What is the best way to implement an ACL, which by the way is an Access Control List. On one hand I can do my “isAllowed” checks at the controller level, but do I want the user to get that far?

Read more

Share

Having multiple instances of Zend Navigation in a Single View Zend 1.x

so I have been playing around with the Zend Framework rather extensively over the past few weeks and it has been a very rewarding experience. I am posting this here because it was a bit difficult finding a work around for the issue I describe below. Zend Navigation had been giving me a lot of problems especially because I could not get the Navigation object passed to my view object to render two different navigation configs.

Read more

Share