SQL 30 April 2012

Got some problems with sorting in wordpress again, posting a short solution.

Does the response return rows in incorrect order, in the sense that letters like Å and Ä are counted as A and Ö counts as O, even though you specified an “order by” statement? The fault probably lies in the table’s collation.

Read more..

Wordpress 29 April 2012

The user profile there is various contact fields that can be edited. It can however happen that we wish for other attributes than those already specified.

I will in this post go through how to edit this form, both by adding new fields and delete predefined.

Read more..

Web 24 April 2012

I saw on stack overflow today that you could make your own designed share button to Google + just as you can do to Twitter, Facebook and other social websites. That is, a url to Google where you can submit your url as a parameter for the client to be able to share it easily. With this future we are able to create our own design and are no longer restricted to simply use Google’s.

The url is as follows:

Read more..

Zend Framework 2 15 April 2012

Is about to set up a development environment for a project I have thought of for a long time now. My eyes have fallen on Zend Framework 2, which at this moment is in beta 3. I summarize in this post my views of the framework after a first glance.
Read more..

CSS 11 April 2012

With some help of CSS 3, we can shadow text on the website.
As usual, IE is not very generous.

        1px    /* y-axis */
        1px    /* x-axis */
        1px    /* blur   */
        #999;  /* color  */

The values for blur and color is not necessary to specify.
Read more..

Javascript 6 April 2012

If we want to present code on a webpage then we have some different tools that can help us by coloring the code according to the syntax. The options we have is basically one of two things, server or client-based. I have chosen to use a client based script because I don’t want to “pollute” the outputted html code.

Prettify is a javascript which is released under the license Apache License 2.0. The code can be downloaded at Google code. I’ve chosen to use this script over other equivalents because I feel it’s more flexible, stable and faster.
Read more..