Oktober 2011

So Mo Di Mi Do Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Tags


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.

Nice browser stats
Let's see how long this will last ;-)
Nice grace:



via jitro.org

Wie man an diversen Stellen mitbekommen konnte, arbeite ich seit November letzten Jahres für ein Berliner Startup mit dem Namen UNUSUALS. UNUSUALS ist ein social network für die weltweite Werbefilmindustrie. Wir bauen momentan die Seite von Grund auf neu mit vielen weiteren und tollen Features.

Hierbei suchen wir als Unterstützung einen motivierten Software Engineer bzw. Web Developer zur Festanstellung, entweder in Ludwigsburg (bevorzugt) oder Berlin. Wenn du die Fähigkeit hast, schnell und mit dem Job zu lernen, mehrere Programmiersprachen beherrschst und deine Arbeit liebst, würden wir gerne mit dir sprechen.

Geforderte Fähigkeiten:
  • 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
Wünschenswerte Fähigkeiten:
  • 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, ...)
UNUSUALS bietet dir eine Möglichkeit, in einem großartigen und wachsenden Startup zu arbeiten. Wir geben dir Raum zum Wachsen sowie die Möglichkeit, deine eigenen Ideen und deine Kreativität einzubringen.

Wenn du interessiert bist, sende bitte eine Bewerbung in Deutsch oder Englisch an jobs[at]unusuals.net. Beispiele deiner Arbeit, evtl. Code-Auszüge, sind sehr willkommen!

As you may already have noticed I'm working for a Berlin based start-up called UNUSUALS since November last year. It's a social network for the worldwide commercial film industry and we're doing a rewrite from scratch with tons of new features and awesome stuff!

For this to accomplish, we're searching a motivated Software Engineer/Web Developer to join us. The workplace will be in Ludwigsburg (preferably) or Berlin, which are both in Germany. If you're able to learn quickly on the job, pick up multiple programming languages and are passionate about your work, we'd like to talk to you.

Required skills:
  • 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
Optional skills, which are a plus:
  • 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, ...)
Working at UNUSUALS is a big opportunity to work within an awesome and growing start-up. You'll have room for growth as well as the possibility to bring in your ideas and values.

Please send a copy of your resume in German or English to jobs[at]unusuals.net with some examples of work you've done and/or code samples.

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.

Ever installed a Perl module on a Linux system? This is what a typical installation process looks like using the command line tool cpan:

Typical CPAN installation
While I can read and understand these lines, not every programmer -- in particular someone that is not using Perl on a regular basis -- cannot and is overextended by the massiv amount of text.

Since 2010 there is a really neat alternative to cpan called cpanminus. Excerpt from the docs:

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.

So what's the difference? Less "line noise", easier, more lightweight!

If the module you're trying to install is already up to date it tells you this with only one line instead of 5 lines (ok, everyone should be able to read the 5 lines, too ;-)). Installing a module (here: Module::Build) gave me 5 lines of output while cpan has written a novel of 105 lines and using much more RAM and CPU.

I say give it a try by installing with the following single line on your terminal:
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.

HTML::Mason, what I'm using since years as my favorite template system got an overhaul. Jonathan Swartz announced Mason 2 a few hours ago. Read the announcment here: http://www.openswartz.com/2011/02/21/announcing-mason-2/. Mason 2 got a top-level namespace on CPAN, is not completely based on Moose and already has a Catalyst view. What a nice way to start, eh?

Because I missed the recent development process I'm late to the party and just switching a new project from HTML::Mason to Mason.
From the Readme:

Sometimes you are fetching static content like images, JavaScript code and CSS files from a different server that your Catalyst application is running on, let's say a CDN (content delivery network). For development, this often should not be the case because your local files may differ from the files on your CDN. Changing the URIs to the static content everytime you upload a new version of your application is not a solution and leads to mistakes.


CatalystX::UriForStatic takes care of your static host name

CatalystX::UriForStatic either creates a local or production URI to your static files depending on your configuration! If your differences are that simple so you just can switch the host names, CatalystX::UriForStatic is for you.

As there are plenty of different ways how to integrate a CDN into one's own application, this module reflects the way I'm planning to implement the CDN. Suggestions for a broader range of implementations are very welcome, as well as patches and so on. If you like, hop over to github and fork the project. You're welcome :-).

Or get the latest stable fron CPAN at http://search.cpan.org/perldoc?CatalystX::UriForStatic, or with your command line:
sudo cpan CatalystX::UriForStatic
Oh, BTW about a week ago I released a new version of CloudApp::REST, too. Grab it, it fixes some issues.