Posts

Showing posts with the label language

Funny BASH snippets

echo howdy /bin/echo howdy /bin/../bin/echo howdy /bin/echo* howdy cd /bin echo* howdy *echo howdy ec*ho howdy ech? howdy ??h? howdy ech[o] howdy cd /tmp ec${howdy}ho howdy echo$howdy howdy ec''ho howdy ec""ho howdy 'ec'ho howdy "ec"ho howdy 'echo' howdy "echo" howdy ech\o howdy ec``ho howdy ec$()ho howdy ec`true`ho howdy ec$(true)ho howdy $yay echo howdy `` echo howdy `true` echo howdy `echo echo` howdy :&echo howdy if echo howdy;then :;else echo howdy;fi ! echo howdy { echo howdy ;} (echo howdy) eval echo howdy xargs echo howdy < /dev/null sh -c 'echo howdy' bash -c 'echo howdy' ssh localhost 'echo howdy' cd /tmp printf "all:\n\techo howdy" > Makefile make cd /tmp echo echo howdy > bash chmod +x bash ./bash cd /tmp cp /bin/bash bash echo echo howdy > bash ./bash . ./bash bash bash PATH=. bash alias howdy='echo howdy...

The Computer Language Benchmarks Game

= The Computer Language Benchmarks Game The Computer Language Benchmarks Game is a free software project for comparing how a given subset of simple algorithms can be implemented in various popular programming languages. The project consists of: * A set of very simple algorithmic problems * Various implementations to the above problems in various programming languages * A set of unit tests to verify that the submitted implementations solve the problem statement * A framework for running and timing the implementations * A website to facilitate the interactive comparison of the results = Supported languages Due to resource constraints, only a small subset of common programming languages are supported, up to the discretion of the game's operator. https://benchmarksgame.alioth.debian.org/ * Ada * C * Chapel * Clojure * C# * C++ * Dart * Erlang * F# * Fortran * Go * Hack * Haskell * Java * JavaScript * Lisp * Lua * OCaml * Pascal * Perl * PHP * Python ...

Build a chatbot using deep learning

I always look forward to making natural language processing more intelligent without hardwired rules. I also like the condensed style of the video. Build a Chatbot - ML for Hackers #6 video by Sirajology http://www.wildml.com/2016/04/deep-learning-for-chatbots-part-1-introduction/

Minification is not enough, you need tree shaking

This is one of the reasons I advocate improving your tools before you start to solve complicated projects. ECMAscript was created in the past millennium for messing around with your cursor and making text blink. Any serious use is a kludge . Big respect for people making superhuman efforts to develop working web applications, but why make your life more difficult than it needs to be? "If I had eight hours to cut down a tree, I would spend six hours sharpening my axe" - attributed to Abraham Lincoln Check out  Minification is not enough, you need tree shaking on Seth Ladd's google engineer's blog

Trickling of bug fixes

I've been bitten by the following bug from 2009 which has a proper fix in git, yet the stable package doesn't even have a workaround for it. That's agility for you! http://permalink.gmane.org/gmane.comp.handhelds.ipaq.synce.devel/1808 And let's not talk about the memory safety issues this bug again brings up.

Gmail guessing your keyboard and text

I haven't noticed the keyboard layout switcher yet. How come it automatically contains exactly the three layouts which are relevant for me? I've found out earlier that both Search and Translate can correct your input if it makes more sense in some other popular layout, like Russian. What else is there under their sleeves?

My programming language usage

In recent months, I've been developing Python (Geany, Netbeans), BASH (gedit, Geany) and a bit of HTML/Javascript (Netbeans, Geany) for work, Java (Eclipse) for coursework, Erlang (Emacs, sometimes Geany) and a bit of Emacs LISP (Geany) for labwork, and Haskell (Geany) for my own needs. I have also refreshed my Logo (Geany) skills recently to refactor two of my homeworks. I will move to C++/Qt/FFmpeg/SQLite (Qt Creator) again in the upcoming days for some time. I have dug into Gnome's Genie (and Vala) and will write a short overview of the language soon. That's 8-10 languages at my fingertips, but a few more aren't deep down below either, like C (you never forget the horror), Ada (hard to forget the beauty), Pascal (need to find a way to convert to Ada), Eiffel (have seen it, but no professional coding done in it yet). Sadly, I'm not allowed to share my Python code, and some of my more interesting BASH scripts. You also can't enjoy some unpublished parts of Refa...