All posts in: Tutorials

Get domain out of any URL string

It’s a common problem with no single right answer: extract the top domain (e.g. example.com) from a given string, which may or may not be a valid URL. I had need of such functionality recently and found answers around the web lacking. So if ...

banner
HTML Tables

List of problems occuring while using html tables

1. Rendering the table is time consuming The entire table must be downloaded and the dimensions of everything in the table must to be known before the table can be rendered. That can delay the rendering of your content, especially if your table ...

banner

Useful 130+ VI text editor commands

Basics :e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving 😡 Write file (if changes has been made) and exit :sav filename Saves file as filename . Repeats the last change made in normal ...

Retrive time period like facebook

In facebook stream you’ll see the time period at the bottom of the stream. For example: 4 minutes ago, 2 days ago, 3 weeks ago…. In our recent project we have to show similar time fashion for our application’s activity stream. So I write a ...

Parse URL’s in text, create links

I’ve discovered a huge drawback to the Twitter messaging system: it does not store links. The Twitter site itself will identify URL’s in messages and convert them into clickable links for you automatically. But the magic ends at Twitter’s ...

Create a Music Playlist

Create a Music Playlist I assume that you already know how to add Music to your website. This is to create music play list by your self and stream on your website. Music playlist is a simple list. To add music playlist to your website have to do ...

Page 1 of 212

Get Adobe Flash player