Better HN
topnewbestaskshowjobs
Log inSign up

frosas

10 karma · joined Jan 19, 2011 (15y ago) · 12 submissions

https://francescrosas.com
Submissions

comment 5y ago · link · parent

This worked for me on Chrome: https://news.ycombinator.com/item?id=25305835

comment 6y ago · link · parent

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

comment 6y ago · link · parent

Watch out, the email address seems to have a typo.

comment 7y ago · link · parent

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

comment 8y ago · link · parent

From my experience, there's no such a heavy price as long as you don't rebase what you already shared with others.

comment 11y ago · link · parent

Or why bother with those webpack features if the tools you use already do the job?

comment 13y ago · link · parent

How this applies if I want to share my branch to accept changes from other developers (think pair programming, handovers of half-done features, ...)?

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

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;
    }

comment 15y ago · link · parent

It's just the opposite but you may find it interesting:

http://plusfeed.frosas.net/

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

A simple one for OSX:

while true; do screencapture `date '+%Y-%m-%d-%H-%M-%I'`.png; sleep 30; done