ouweouwe meuk log

meuk, meuk, bende, meuk and once in a while something useful

Archive for the ‘other’ Category

Read and learn – part 4: CoffeeScript

without comments

So after Read and learn – part 1: PerlRead and learn – part 2: Python and Read and learn – part 3: Objective C, we will continue with part 4: CoffeeScript.

This book is completely open source, and was written by Alex MacCaw (or @maccman) with great contributions from David GriffithsSatoshi Murakami, and Jeremy Ashkenas.

CoffeeScript is a little language that compiles down to JavaScript. The syntax is inspired by Ruby and Python, and implements many features from those two languages. This book is designed to help you learn CoffeeScript, understand best practices and start building awesome client side applications. The book is little, only five chapters, but that’s rather apt as CoffeeScript is a little language too.

Go check it out here: The Little Book on CoffeeScript

Written by dexmans

October 7th, 2011 at 9:34 am

Read and learn – part 3: Objective C

without comments

So after Read and learn – part 1: Perl and Read and learn – part 2: Python, we will continue with part 3: Objective C.

This tutorial is written and illustrated by Scott Stevenson

Objective-C is the primary language used to write Mac software. If you’re comfortable with basic object-oriented concepts and the C language, Objective-C will make a lot of sense. If you don’t know C, you should read the C Tutorial first.

Go check it out here: Learn Objective-C

Written by dexmans

October 6th, 2011 at 4:35 pm

Posted in other,tech

Tagged with , , , ,

Read and learn – part 2: Python

with one comment

So after Read and learn – part 1: Perl we will continue with part 2: Python.

The document I found will give you a crash course Python, written by Stephen Sugden

Crash into Python is a set of documents/slides that are meant to be used as a teaching aid for bringing programmers from other languages up to speed with Python. It assumes that you have enough familiarity with programming to know what function and class mean, and will recognize that print probably doesn’t put ink on paper. More importantly, it assumes that you either have an instructor who is well-versed in Python, or are resourceful enough to find answers for yourself. A number of these slides are designed to trigger questions and discussion, so if it seems like you’re missing something, that’s a good sign you could be digging deeper.

Go check it out: Crash into Python

Written by dexmans

October 5th, 2011 at 4:44 pm

Posted in other,tech

Tagged with , ,

Read and learn – part 1: Perl

with 3 comments

It’s about  time I post something useful again over here.
That’s why I’m  posting a series of links to pages where you can actually learn things. *insert awkward silence*

Anyway, I’m starting of with a couple of pages where you can either learn a new programming language OR increase your productivity looking at your current environment.

We will start the series with a document written for the purpose of learning Perl, written by Sam Hughes

Perl is a dynamic, dynamically-typed, high-level, scripting (interpreted) language most comparable with PHP and Python. Perl’s syntax owes a lot to ancient shell scripting tools, and it is famed for its overuse of confusing symbols, the majority of which are impossible to Google for. Perl’s shell scripting heritage makes it great for writing glue code: scripts which link together other scripts and programs. Perl is ideally suited for processing text data and producing more text data. Perl is widespread, popular, highly portable and well-supported. Perl was designed with the philosophy “There’s More Than One Way To Do It” (TMTOWTDI) (contrast with Python, where “there should be one – and preferably only one – obvious way to do it”).

Go check out: Learn Perl in about 2 hours 30 minutes


Written by dexmans

October 5th, 2011 at 11:17 am

Posted in other,tech

Tagged with , ,

Down for everyone or just me?

without comments

If you’re not sure that a site you’re visiting is down just for you or everyone, try http://downforeveryoneorjustme.com/

At the moment geenstijl.nl is down and http://downforeveryoneorjustme.com/geenstijl.nl says:

It’s not just you! http://geenstijl.nl looks down from here.

Written by dexmans

August 23rd, 2009 at 11:29 pm

Posted in other,tech

Tagged with , ,

multi php lint

without comments

PHP lint (php -l) only allows you to check 1 file at a time, Martijn shared this little command that loops through a given directory and check the syntax of any .php file.

$ find path/to/files -maxdepth 0 -type f -name \*.php -exec php -l {} \;

Thx to Martijn.

Written by dexmans

August 14th, 2009 at 2:16 pm

Posted in other,php,tech

Tagged with , , ,

ack, much like grep, only better

without comments

Tipped bij martijn!

ack is a tool like grep, aimed at programmers with large trees of heterogeneous source code.

ack is written purely in Perl, and takes advantage of the power of Perl’s regular expressions.

Top 10 reasons to use ack instead of grep:

  1. It’s blazingly fast because it only searches the stuff you want searched.
  2. ack is pure Perl, so it runs on Windows just fine.
  3. The standalone version uses no non-standard modules, so you can put it in your ~/bin without fear.
  4. Searches recursively through directories by default, while ignoring .svn, CVS and other VCS directories.
    Which would you rather type?

    • $ grep pattern $(find . -type f | grep -v ‘\.svn’)
    • $ ack pattern
  5. ack ignores most of the crap you don’t want to search
    • VCS directories
    • blib, the Perl build directory
    • backup files like foo~ and #foo#
    • binary files, core dumps, etc
  6. Ignoring .svn directories means that ack is faster than grep for searching through trees.
  7. Lets you specify file types to search, as in –perl or –nohtml.
    Which would you rather type?

    • $ grep pattern $(find . -name ‘*.pl’ -or -name ‘*.pm’ -or -name ‘*.pod’ | grep -v .svn)
    • $ ack –perl pattern
    • Note that ack’s –perl also checks the shebang lines of files without suffixes, which the find command will not.
  8. File-filtering capabilities usable without searching with ack -f. This lets you create lists of files of a given type.
    • $ ack -f –perl > all-perl-files
  9. Color highlighting of search results.
  10. Uses real Perl regular expressions, not a GNU subset.
  11. Allows you to specify output using Perl’s special variables
    • Example: ack ‘(Mr|Mr?s)\. (Smith|Jones)’ –output=’$&’
  12. Many command-line switches are the same as in GNU grep:
    • -w does word-only searching
    • -c shows counts per file of matches
    • -l gives the filename instead of matching lines
    • etc.
  13. Command name is 25% fewer characters to type! Save days of free-time! Heck, it’s 50% shorter compared to grep -r.

Check it out: http://betterthangrep.com/

Written by dexmans

August 12th, 2009 at 3:56 pm

Posted in other,tech

Tagged with , , ,