stackoverflow.com

TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...

tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...

The ExceptionNotification has plugins that talk to external APIs rather then just sends emails, like microsoft teams or slack. You...

makandra dev
github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...

This is how you regain disk space from OpenStack instances if you are using kvm and qcow. If your instance...

gist.github.com

Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

This is for those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need...

tableconvert.com

https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).

...element.offsetHeight > 0; Or maybe you'd even like to patch Prototype so it behaves like jQuery: Element.addMethods({ visible: function() { return offsetWidth > 0 && offsetHeight...

makandra dev

There are ongoing arguments on how useful this still is, as modern browsers become more comfortable to load images in parallel. However, many major websites still use them, for...

} } // opens a confirmation dialog if unsaved changes are present function bindAlertMethod() { $(window).on('beforeunload', function() { if (isUnsavedChangePresent() && !unloadTriggeredBySubmit) { return warningMessage; } }); } function isUnsavedChangePresent() { var unsavedChanges = false; // objects providing an isDirty...

...Using a css class as marker may make developers awere of the // special form behavior when inspecting the form classes function skipFormsWithOverwrittenSubmit() { _.each($('form input[type=submit]'), function(submitInput) {

...take many times longer to render. So measure before blaming the database. FULLTEXT performs better when your text has low redundancy FULLTEXT performance differs by a factor of 78 between...

In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...

We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

makandra dev

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

When your cucumber features grow massively over time, the test execution can take a lot of time.

If your rails application is unable to send mails, it might be useful to debug your settings using the rails...

codepen.io

...One might argue that could also omit position: relative on .section, and place the before/after helpers using left: 0 or right: 0. However, you'd then need to know the...

...disappear again when moving the mouse pointer to the left or right. Hovering the before/after elements actually means hovering the element itself...

Don't you just hate to write Cucumber path helpers to be able to say this?

campaignmonitor.com

CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...

The non-breaking space is prepended to the second element because that one becomes floating. Since that would discard any whitespace between the two elements, we are adding the...

In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...