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...
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...
...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...
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing an async function, prefer to signal failure by returning a...
...rejected promise. The full story When your function returns a promise ("async function"), try not to throw synchronous exceptions when encountering fatal errors. So avoid this: function foo(x) {
If you get the above error when running tests in bulk (but not individually), it's actually the fault of...
...DOM events, which will trigger both native and jQuery handlers. jQuery's .trigger is simpler, but will only trigger event handlers that were bound by jQuery's .on.
...moves the mouse over a button and "clicks" the mouse, she actually triggers a sequence of events (mouseover, mousedown, focus, mouseup, click). To help emulate this, the Trigger helper has...
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
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...
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...
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...
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...
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.\
...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...
...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...
...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
...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...
...new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its stability and features. One advantage of GoodJob over Sidekiq is that GoodJob doesn...
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...
Service that you can integrate for user feedback. Super-simple integration: Add a...
Testing with real live production data does come with at least one catch. All those real live users in your...
...or if none given, by it's number: When /^(.*?) inside the (.*?). iframe$/ do |nested_step, frame_number| page.within_frame(frame_number.to_i) do step nested_step end end When /^(.*?) inside the...
...iframe:$/ do |nested_step, frame_number, table_or_string| page.within_frame(frame_number.to_i) do step("#{nested_step}:", table_or_string) end end Use it like this: Then the radio button...
...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...
Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...
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...