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...

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.\

...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).

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...

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...

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...

stackoverflow.com

When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains the elements you wanted to select. Here's a tiny...

trackduck.com

Service that you can integrate for user feedback. Super-simple integration: Add a...

...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...

powazek.com

Apple’s App Store was a constant source of stress in the development process. Every time another story of Apple randomly booting an app from the store came out, the...

...Apple could deny the app, or even keep it in limbo forever, made us second- or third-guess every design decision. “Will this pixel hurt our chances of getting accepted...

blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...

joemaller.com

Web designers must be free to experiment with these new fonts, to sketch, comp and get to know these typefaces in browser and non-browser applications. This is...

dnicolet1.tripod.com

This isn't about commercial software vs. Open Source software. It's about assessing your real needs and understanding the cost-benefit balance before making significant financial decisions. Don't...

makandra dev
stackoverflow.com

...Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably Rails' Spring is the culprit and not Bundler itself. Fix spring stop

...of the linked Stackoverflow post supposes Spring re-writes the Gemfile.lock on change to ensure all Spring processes are using the same gem versions. Meh...

tenderlovemaking.com

The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check out some of our cards about encoding: Ruby's default...

...encodings can be unexpected How to fix invalid byte sequence in UTF-8 error

github.com

Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...

boingboing.net

...buy iApps. Buying an iPad for your kids isn't a means of jump-starting the realization that the world is yours to take apart and reassemble; it's a...

...way of telling your offspring that even changing the batteries is something you have to leave to the professionals...

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes laid out clearly whenever you need it. Put gem 'awesome...

...ap that will give you a colored, formatted output of whatever you pass it. See the example output of the User class below. For customization visit the repository on Github...

blog.codeclimate.com

Splitting a long method into sub methods is easier in instances since it is in classes. Since you must not save state in a class, you need...

...a long chain of parameters again and again. If your public API has a single entry point, you can still have a class-level method that takes care of constructing...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just like gem server in RubyGems, you can serve gem docs...

...The advantage to YARD’s server is that you don’t need to pre-generate the static docs (with a gem install) before running the server. If you installed your...