text-overflow: ellipsis; is great for text lines that may be longer then the parent element, eg. for shop article names or user names. But there is currently no solution for paragraphs that are longer than the parent. Of course you can set overflow: hidden;, but that will just clip the content/text.
Today I stumbled upon a blog entry by David DeSandro in which he show the use of -webkit-line-clamp which "limits the number of lines of text displayed in a block element". Sadly this is only possible within WebKit browsers (Safari and Google Chrome).
Entering Clamp.js. Clamp.js is a small Javascript that mimics this behavior in other browsers and sets the appropriate CSS for supported browsers. All you need is:
$clamp(document.getElementById('clamp-this'), { clamp: 'auto' });
Works. Nice. Thank you, Joe.

- Erfahrung mit einer Scriptsprache wie Perl, Python oder Ruby
- Erfahrung mit Datenbanken wie PostgreSQL oder MySQL
- Erfahrung mit HTML, CSS und Javascript
- Wissen, wie das Web funktioniert
- Fähigkeit, ein Linux System zu bedienen
- Fließend Deutsch oder Englisch sprechen und schreiben
- Erfahrung mit Modern Perl wie z.B. Catalyst, DBIx::Class etc.
- jQuery, HTML5, CSS3
- Fähirgkeit, ein Linux System zu administrieren
- Erfahrung mit Amazon Web Services wie EC2 und S3
- Aktivitäten im "social web" (Facebook, Twitter, last.fm, ...)
- Experience with a scripting language like Perl, Python or Ruby
- Experience with databases like PostgreSQL or MySQL
- Experience with HTML, CSS and Javascript
- Knowledge of how web stuff works
- Ability to use a Linux system
- Fluent in speaking and writing German or English
- Experience with Modern Perl stuff like Catalyst, DBIx::Class and the like
- jQuery, HTML5, CSS3
- Ability to administrate a Linux system
- Experience with Amazon Web Services like EC2 and S3
- Active in social web (Facebook, Twitter, last.fm, ...)
Ever wanted to count the lines of code you’ve written in a project? I guess you have and you may came to a solution that was build by yourself. It worked, but not more.
Today I stumbled upon CLOC — Count Lines of Code — that is a small Perl programm which does a fair good job at counting, recognizing comments, empty lines and so on. It also finds out in which language each file is written (by file extensions). There are also plenty of options to ignore folders (like .git or externals) or files by regex (like single Javascript libraries).
A simple check looks like this:
Check out this project on sourceforge and give it a try. Installing is painless: Just download the file and you’re done! http://cloc.sourceforge.net.

cpanminus is a script to get, unpack, build and install modules from CPAN. Why? It's dependency free, requires zero configuration, and stands alone. When running, it requires only 10MB of RAM.[...] For less experienced users (mostly from outside the Perl community), or even really experienced Perl developers who know how to shoot themselves in their feet, setting up the CPAN toolchain often feels like yak shaving, especially when all they want to do is just install some modules and start writing code.
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
After uloading all my Perl modules to github I switched a local project from svn to git. After that I had an odd tag named trunk that I wanted to get rid of. gittower wasn't able to delete it.
I came to this solution:
git tag -d trunk git push origin :refs/tags/trunk
The remote tag trunk was successfully deleted.

Feed dieses Blogs abonnieren
Neueste Kommentare
Philipp on Schade: kein erweiterter Heise-Newsfeed: Hi, ich wü
Ano Nym on Schade: kein erweiterter Heise-Newsfeed: Ich würde
Jonas on Schade: kein erweiterter Heise-Newsfeed: Ich wäre a
mots on Schade: kein erweiterter Heise-Newsfeed: Ich würd d
Bastian on Zwei Jahre ist es her...: Hej, willk
Heiko W. Rupp on PostgreSQL und Volltextsuche: Im letzten
Josef on Schade: kein erweiterter Heise-Newsfeed: Würde mich
Martin on Schade: kein erweiterter Heise-Newsfeed: ich reihe
Guido on Schade: kein erweiterter Heise-Newsfeed: Dich hätte