Icons and images representing the web page
Summarizes ways to link pictures to the website, such as favicons and other.
Incorrect sorting with “order by”
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.
Add and remove fields in the profile
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.
Google plus share url
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:
https://plus.google.com/share?url=http://erik.landvall.se
Hands on ZF2
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.
Continue reading →
Text with shadow
With some help of CSS 3, we can shadow text on the website.
As usual, IE is not very generous.
h1 { text-shadow: 1px /* y-axis */ 1px /* x-axis */ 1px /* blur */ #999; /* color */ }
The values for blur and color is not necessary to specify.
Continue reading →
Working with Git and Github in Netbeans
Netbeans has supported the version control system Git since 7.0. In this post I will briefly go through how to initiate Git version control for a project in Netbeans and how to sync this with Github.
Syntax highlighting with Prettify
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.
Continue reading →