sugree's blog
How to add quote to string delimited by comma in PHP
Sometimes we will have a list of string delimited by comma, e.g., a,b,c,d
, and we would like to add quote or single quote around each element, e.g., 'a','b','c','d'
. It is possible to do so in a line.
- Add new comment
- Read more
- 3969 reads
How to create and verify SSHA hash using PHP
There are so many hash. SHA1 is one of them which is widely used in recent years even though it is not safe to use right now. By the way, it is still the default hash function for storing password in LDAP especially OpenLDAP. In order to develop a website with LDAP authentication manually against POSIX account, SSHA hash function or SHA1 is the easiest solution.
- Add new comment
- Read more
- 8949 reads
Where to get LDAP Explorer
Working with LDAP is not as easy as I expect. I do need to have a good frontend to handle LDIF. There are several LDAP GUI Applications available in public domain but the easiest one should be web-based software solution. One main reason is to run it on localhost without graphical interface like X server and so on. The most popular one I know is called LDAP Explorer which is available for so long and it is a kind of old project. Right now, it is not easy to find and download this software because the main web site (igloo.its.unimelb.edu.au) has been downed for a while. Anyway, I have found a valid one eventually.
- Add new comment
- Read more
- 2689 reads
How to clone LCD to projector using fglrx
Even though I used IBM ThinkPad T43 for a month, I just have a chance to give a short talk and presentation in this week. So I have to show my slide on a projector. Anyway, Fn+F7
didn't work as expect like I did in BenQ as well as amdcccle
which didn't help. Eventually, I find a right way through command line interface. Note that I use driver from ATI, fglrx 8.38.6.
- Add new comment
- Read more
- 2122 reads
How to configure laptop hotkey in Ubuntu
Today I have a little trouble. All hotkeys of my T43 didn't response my finger by displaying on-screen display. Instead, it was just nothing happen. After investigated 2 hours, I found a solution. It is hotkey-setup
.
- Add new comment
- Read more
- 2464 reads
How to display user's fullname in Drupal
By default, Drupal will have only username and password for such a user. Whenever username is displayed, it will try to call a theme funtion namely username
by specified $node
. If you want to display user's fullname instead, you have to customize a little bit.
- Add new comment
- Read more
- 5544 reads
Recent comments
3 years 29 weeks ago
3 years 34 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 36 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago