Updates from February, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • diegor 4:05 pm on August 10, 2012 Permalink | Reply
    Tags: ,   

    HOWTO: Italian gestures 

    Gestures have been always very important in communication. They preceded the spoken language and human beings used gestures to communicate with their fellows.

    I think that gestures are the oldest way of communication. OK, what about gestures today? Are they still used? Short answer: yes. Long answer: yes, but depends on the country and culture.

    As Italian, I like to show you how we use gestures to communicate with other people. Following there are three images with the most popular Italian gestures.

    What do you prefer?

    Which one is ambiguous (that has another meaning in you culture)?

    What’s the funniest?

    What’s an offence (for you)?

    So, now you are aware about Italian gestures and before to plan your trip to Italy, be sure to study Italian gestures! :)

     
  • diegor 9:48 am on February 7, 2011 Permalink | Reply
    Tags:   

    HOWTO: count lines of code 

    From today you will not go mental anymore to write a script that count lines of code of your last project. No, because there is “CLOC” that counts for you. It’s a huge (7640 lines) perl script that give you nice statistics about your project. You can find it on SourceForge.

    Once downloaded, unzip it and with a terminal cd (to cd=to change directory) to executable; then type the command below:

    #> perl cloc-1.53.pl /path/to/project/

    and you’ll have an output like this (it depends by the project’s complexity). The cool things is that recognizes languages and divides statistics depending on which have you used!

         671 text files.
         633 unique files.
          70 files ignored.
    
    http://cloc.sourceforge.net v 1.53  T=121.0 s (4.7 files/s, 1976.7 lines/s)
    -------------------------------------------------------------------------------
    Language                     files          blank        comment           code
    -------------------------------------------------------------------------------
    SQL                              3           1473           1257          85959
    Python                          97           5733           3435          29419
    Java                           170          10411          25782          28139
    HTML                           235           4833            200          28045
    Javascript                      32            803           1977           6994
    CSS                             21            473            149           3380
    Bourne Shell                    12             62            154            269
    Visual Basic                     1             46             50            136
    DOS Batch                        1              2              0              5
    -------------------------------------------------------------------------------
    SUM:                           572          23836          33004         182346
    -------------------------------------------------------------------------------

    That’s it! Oh yes, obviously you can take a look to its help launching it without any argument.

    And you, how many line of code have you written? :)

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel

Switch to our mobile site

%d bloggers like this: