Comment by Karthik T on How to install curl 7.34 or later on Amazon linux old...
One option seems to be the city-fan repo found in other answers, which is warned against by redhat.
View ArticleComment by Karthik T on Passing an array to the Javascript Date constructor,...
This is awesome! Works natively atleast in FFox
View ArticleComment by Karthik T on ansible wget then exec scripts => get_url equivalent
Agree with drew, this is not a solution.
View ArticleComment by Karthik T on In ansible what is the best way to manage Global and...
Looks very promising, I can use "all" as a default value i guess, but I was wondering if there was a more "Ansible" way in defining variables.
View ArticleComment by Karthik T on ERROR: While executing gem ... (TypeError)...
This helped, I had gemcutter.org setup, removing which my problem went away
View ArticleComment by Karthik T on Could not find iPhone 6 simulator after upgrade to...
This was my issue as well
View ArticleComment by Karthik T on How to specify test directory for mocha?
At the risk of getting banned from stack overflow.. WHAT THE F*#K... I suddenly have 60 failures :D
View ArticleComment by Karthik T on Postman - How can I pass array as variable
I had a slightly related issue, of trying to pass a array from a pre request script via pm.variables.set. I solved it by doing JSON.stringify on the array, seems to work!
View ArticleComment by Karthik T on What's the best way to get device locale in react...
As of ios 14, both AppleLocale and AppleLanguages seem to be defined. Would recommend picking AppleLanguages first now, since that supports the app specific prefered languages feature. and use optional...
View ArticleComment by Karthik T on What's the best way to get device locale in react...
As of ios 14, both AppleLocale and AppleLanguages seem to be defined. Would recommend picking AppleLanguages first now, since that supports the app specific prefered languages feature. and use optional...
View ArticleComment by Karthik T on How to group by count in array without using loop
Cleaner and easier to understand than the accepted answer.
View ArticleAnswer by Karthik T for Combining C++ standard algorithms by looping only once
After better understanding your question, I have got an idea that might work, but requires Boost.You could use a transform_iterator which calls toupper on all characters and use that as the...
View ArticleOverriding a hash and making [] operators private - cant use ||= anymore
Test code:class PrivHash < Hash def set(key, val) self[key] = val end def set_maybe(key, val) self[key] ||= val end private def []= key, value end def [] key super endendWith this code, I expect...
View ArticleValidates presense vs null false in Rails models/tables
I was playing around with Rails admin and I noticed something. Attributes which are defined as below in model, counted as "Required" in Rails admin validates :user, presence: trueHowever, attributes...
View ArticleAnswer by Karthik T for Ruby beginner needs a hand
The method add_two_numbers is not defined on the class Calc, however you are using it as if it is. This is the problem.I would presume you got a NoMethodError.Update: As pointed out in the comments, in...
View ArticleGoogle tag manager and Google Enhanced Ecomerce tracking
This is mostly just a philosophical question.I am looking at integrating GTM and implementing Enhanced ecommerce tracking with it, and the more I look at it, the more I feel like these two are fighting...
View ArticleAnswer by Karthik T for SSH config file setup with wildcards and DRY
On top of figuring out why the config was "breaking", I discovered a new directive Match. This lets me do what I intendHost shortname1? Hostname %h.prod.xyz.comHost test-myname Hostname...
View ArticleSSH config file setup with wildcards and DRY
My requirements are as followsAll of our cloud machines need the same config (User, Port, IdentityFile)I need these settings to be applied to them based on domain (*.xyz.com)I also need these settings...
View ArticleWhen should variables be quoted in GTM custom html tag?
I am trying to implement facebook pixel via GTM, and I am hitting a few oddities. I am implementing via custom html tag, and If i dont quote the variables, the gtm debugger shows them as...
View Article