makandra dev
ruby-doc.org

not or and if unless while until begin/end For more information see Table 18.4 in The Pragmatic Programmer's Guide...

Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on...

wiki.snom.com

If your Snom 300 always keeps the same volume for headset and ringtone (as soon as you change one you also change the other), here's what to do:

...to your phone settings web interface, then Preferences (German Präferenzen). There is the seemingly harmless setting for Ringer Device from Headset (German Klingeltonausgabe bei Kopfhörer). Choose one: "Headset" or "Speaker...

makandra dev
github.com

Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're using BEM instead of SMACSS, here's my favorites.

...not use ID's in CSS Selectors It is never safe to assume there will only ever be one of something on a page so do not use ID's...

stritar.net

Since I'm a software architect and a web developer, I get often approached by people with their new ideas. In most cases, for some quality feedback, and on lucky...

...rough quote about the costs of such a project. These people are usually very secretive about what they have, making me explain to them that it's far from my...

stackoverflow.com

url = 'http://www.foocorp.com/foo/bar' URI.parse(url).host # => www.foocorp.com Note that this will raise an error if the given argument is...

jetbrains.com

...base revision from which both conflicting versions are derived You can also use a similar pane view to compare to files. Mark two files and press Ctrl + D to compare...

...and titles, like [#15775609] Index view for conflicts The geordi command commit automates this. (See: Pretty Commit messages via geordi). Just run geordi commit and it will connect to PT...

...and let you select from a list of all started and finishes stories. Then it runs git commit with the generated message (i.e. all staged changes will be commited).

If you're on Ubuntu: sudo apt-get install ruby-dev On other platforms: Look for a package containing ruby header files. On Red Hat that's "ruby-devel" likely...

If you get the above error when running tests in bulk (but not individually), it's actually the fault of...

When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by counting up the number of forks and watchers of various...

...under active development and fairly up to date, and it's very useful to see groups of gems broken down by category...

benmabey.com

Bryan talked about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be used appropriately based on the situation. The majority of examples...

...on rspec's story runner currently on the web, including mine, are of the imperative type. Since the declarative type has many advantages I thought it would be worth while...

makandra dev
nexts.github.io

Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items. How it works is that you move your data set from the...

...DOM into JS. Clusterize than makes sure only the rows in the viewport (and adjacent batches) are rendered. I believe that AngularUI's data grid component uses a similar technique...

makandra dev
github.com

Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you may also pass URLs like a user's twitter photo...

...stream and the gem will extract their twitter ID . Note that it just parses URLs, and does nothing magic like looking up IDs when the URL contains only a screen...

yehudakatz.com

...is that the purpose of refinements in Ruby 2.0 is to make monkey-patching safer. Specifically, the goal is to make it possible to extend core classes, but to limit...

...the effect of those extensions to a particular area of code. Since the purpose of this feature is make monkey-patching safer, let’s take a look at a dangerous...

E. g. in the following example, Array could mean either Foo::Array or simply Array: class Foo def list Array.new end end What Ruby does here is to see...

...if the name Array makes sense inside of Foo::, and if that fails, resolves it to ::Array (without a namespace). The bad This is relevant for old Ruby versions. Ruby...

social.technet.microsoft.com

Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there.\ While you needed a PowerToy on Windows XP, this is...

...a build-in feature for Windows 7. Simply press and hold the Shift key and right-click a folder icon or into empty space of an Explorer window.\

github.com

...to facilitate website testing in multiple versions of IE, regardless of the host operating system. Unfortunately, setting these virtual machines up without Microsoft's VirtualPC can be extremely difficult. These...

...scripts aim to facilitate that process using VirtualBox on Linux or OS X. With a single command, you can have IE6, IE7, IE8 and IE9 running in separate virtual machines...

...multiply a BigDecimal with another BigDecimal, the result will be a new BigDecimal with sufficient precision to represent the result. No rounding or clipping should occur in that operation.

...means you just transitioned back into the land of random rounding errors. Don't screw up your clean BigDecimal values by thoughtlessly multiplying them with a Float. For instance, this...

answers.yahoo.com

...open files with "full" (100%) zoom and not try to fit them to your screen? Tough luck -- there is no setting for this. But, after opening the file, you can...

makandra dev
fontcombiner.com

...any TTF or OTF font (license permitting), by bringing in font glyphs as vector shapes, providing a completely overhauled font generated to the user's specification with alternative metrics options...

...alternative hinting types, kerning and spacing options and the facility to make any average free font look great. Examples are here

makandra dev
github.com

...mark up links that should use Wiselinks It can refresh content in a given selector only (think framesets), whereas Turbolinks always refreshes the whole body It can submit forms without...

makandra dev
jashkenas.github.com

Imagine all the syntactical delights of Ruby and Haml for your JavaScript. You write in a nice language, but get normal JavaScript at runtime. All whilst having full access to...

...3rd-party JavaScript libraries (jQuery, PrototypeJS), debugging support (it becomes pure, readable JavaScript), existing support from test suites (it’s normal JavaScript) and growing support from various text editors (TextMate...