In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...
Event listeners are called in the order of their registration: button.addEventListener('click', () => console.log("I run first")) button.addEventListener('click', () => console.log("I...
...as the video is free for end users." (MDN) H.265 / HEVC see H.264 (successor, better compression as H.264) VP8 royalty free VP9 royalty free (sucessor, better bit rate as VP8...
royalty free (planned successor of VP9 with better compression rates) Further reading: MDN: Web video codec guide Audio Codec Format Matrix A broader comparison of many audio codecs can...
Expecting a primitive value as an argument to a method invocation is easy: expect(object).to receive(:foo).with('arg1...
...ms long. Once a frame renders longer than 16ms, the page will begin to feel staggering and slow. Google Chrome DevTools The Chrome DevTools enable you to precisely investigate and...
...complex. Deeply nested rules and slow selectors are the main cost factors. Using a BEM pattern for CSS should produce relatively fast CSS. Performance issue 4: Slow repaints
...However, users with limited bandwidth (i.e. on mobile) need to mine their data budget better. One popular strategy to improve the website performance is to not load images until they...
...via jQuery, as it does not support capturing events. JS-only: not working The "best" strategy would be to hide the src attribute of image tags from the browser with...
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...
If you need to log to a file you can use Ruby's Logger class: require 'logger'
When you want to quickly boot from a drive or image in a virtual machine you do not need to...
When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...
...I am really pleased with it -- but only on a desktop computer. Have you benchmarked the framework also on smartphones and tablets? Unfortunately I must say, that it does not...
...as a jQuery collection: let $element = $(element) An API object to call additional JavaScript behavior added by a library: var player = flowplayer($element) player.play() Framework activation layers (like Angular directives...
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
Your current ruby must be Ruby Enterprise. gem install passenger passenger-install-apache2-module Edit your httpd.conf according to the...
select2 is a great jQuery library to make (large) fields more usable. For Bootstrap 3 there is select2-bootstrap-theme...
The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"
...for the event to be processed before continuing - the event could prevent the default behavior. Luckily there is a concept called passive event listeners which is supported by all modern...
...see a performance gain when declaring scroll events as passive. To improve the scrolling behavior you should still try to keep the execution time of your handler to a minimum...
...or use a more mature solution like Webpack. Modules shared between entry points always become chunks When two entry points import the same module, that module automatically a separate file...
...a way to set a minimum file size for chunking, or to control chunking behavior per import. However there is currently no configuration at all. Modules imported by multiple entry...
If you're responsible for gatekeeping in a project, here is a guide, what to do. In order to reduce...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...
...are often capable of handling such inputs, the overall extraction quality tends to be better when we pass in only input with correctly oriented text. Detecting and correcting the image...
...on the whole image instead, trusting whatever confidence tesseract reports since there is no better alternative. Implementation This module takes a Vips::Image and returns a rotated version as another...
...holds your bash prompt. You might want to change it to serve your needs best. Here is how to: General non-printing escape sequences in your prompt have to be...
If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.