akshay
Mon Nov 12 2018
The Forwardable module in Ruby provides delegation of specified methods to a designated object, using the methods
def_delegator
and def_delegators
.akshay
Mon Nov 12 2018
Ram talks with the computer with the help of a memory controller on the CPU. So the reason why its often suggested to prefer to have multiple RAM modules rather than a single one is due to memory channels. If the memory controller within the CPU supports multi-channel architecture then it can leverage it having multiple RAMs than having a single one as it helps in faster data exchange. Like if it’s dual channel then a pair, quad channel then four modules, etc.
goromlagche
Mon Nov 05 2018
iffyuva
Mon Nov 05 2018
to verify certs generated by letsencrypt, we can do
openssl x509 -in server.crt -text -noout
. More info here: https://support.asperasoft.com/hc/en-us/articles/216128468-OpenSSL-commands-to-check-and-verify-your-SSL-certificate-key-and-CSRiffyuva
Mon Nov 05 2018
to verify certs generated by letsencrypt, we can do
openssl x509 -in server.crt -text -noout
. More info here: https://support.asperasoft.com/hc/en-us/articles/216128468-OpenSSL-commands-to-check-and-verify-your-SSL-certificate-key-and-CSRakshay
Fri Nov 02 2018
Rspec has argument matchers
any_args
for matching any number of args at any point in an arg list and anything
for matching anything and everything.revath
Wed Oct 31 2018
use
flex: 1
on the child of flexbox element to expand the child to 100% width of the parent https://jsbin.com/dadidujubo/1akshay
Fri Oct 26 2018
Capybara defaults to requiring an href attribute exist when finding links. To handle such cases we can pass
href: nil
as an option thus enabling to find it.akshay
Fri Oct 12 2018
Rails has an ActiveSupport::Notifications module which is a part of its core instrumentation API. This API allows users to define hooks on events. With the ActiveSupport::Notifications you can instrument an event by simply calling
instrument
with a name, payload and a block. The notification will be sent after the block returns. Now all you need is to define subscribe
method which consumes the event based on event name and you can define your on callback code here, sort of like a Pub/sub pattern.revath
Wed Oct 10 2018
related to
GIT_SSH_COMMAND
(http://codemancers.littil.io/?q=GIT_SSH_COMMAND) if you are using hub + multiple account. you can use HUB_CONFIG=~/.config/hub-work
for setting config for work account. source: https://github.com/github/hub/issues/1300#issuecomment-318872894Showing 53 to 55 of 73 results