frosas
Re:Self-host your fonts for better performance
on Friday December 04, 2020 @08:10PM (#25310602)
This worked for me on Chrome: https://news.ycombinator.com/item?id=25305835
Re:Pulumi – Modern Infrastructure as Code
on Thursday April 16, 2020 @08:00AM (#22888505)
As with any new technology, I'd start using it in new non-critical projects as risk is low and it makes it easy to convince the stakeholders.
To clarify, Pulumi can coexist with Terraform and other tools in the same stack, see https://www.pulumi.com/docs/guides/adopting/#coexistence
Re:Ask HN: Who wants to be hired right now?
on Thursday March 26, 2020 @08:34AM (#22692869)
Watch out, the email address seems to have a typo.
Re:A mathematician's way of converting miles to kilometers
on Sunday August 11, 2019 @01:50AM (#20666496)
I do something similar but, because I'm faster at multiplying, I do "its double plus its half". E.g. 7 inches = 14 + 3.5 = 17.5 cm
Re:High-Level Problems with Git and How to Fix Them
on Tuesday December 12, 2017 @05:52PM (#15910228)
From my experience, there's no such a heavy price as long as you don't rebase what you already shared with others.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling
on Tuesday July 28, 2015 @01:14AM (#9959643)
Or why bother with those webpack features if the tools you use already do the job?
Re:Linus on git rebase and merge (2009)
on Thursday August 01, 2013 @03:44AM (#6139123)
How this applies if I want to share my branch to accept changes from other developers (think pair programming, handovers of half-done features, ...)?
Re:Improve PHP Disk I/O & remove Race conditions by using '@' error su...
on Thursday January 10, 2013 @11:48AM (#5037982)
I've being using this trick for years instead of the ugly
isset($array['key']) ? $array['key'] : null;
thinking I was simply ignoring those stupid "Undefined index" notices.Now I figure out I was also hiding "Undefined variable" notices when $array was not defined and a ton of potential errors when $array is an object implementing ArrayAccess.
Shame on me.
Re:What PHP 5.5 might look like
on Thursday July 12, 2012 @10:37AM (#4234697)
I agree keyword arguments are a better solution (but probably harder to implement).
Right now this is how I do this:
function salute($user, array $options = null) {
$options = (array) $options + array('shout' => false);
$salutation = "Hi $user!";
if ($options['shout']) $salutation = strtoupper($salutation);
return $salutation;
}
Re:Google+ Platform
on Thursday September 15, 2011 @08:39PM (#3002664)
It's just the opposite but you may find it interesting:
Re:Xkcd Password Generator
on Thursday August 11, 2011 @02:14PM (#2874042)
How does one calculate password entropy? I deduced this one:
entropy = log2(symbols^chars)
But using 63 symbols ([a-zA-Z0-9&]) I get 65 bits for Tr0ub4d0r&3, not 28.
Re:Ask HN: What are your best life hacks?
on Sunday March 13, 2011 @07:24AM (#2318968)
A simple one for OSX:
while true; do screencapture `date '+%Y-%m-%d-%H-%M-%I'`.png; sleep 30; done