HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dima_vm

no profile record

comments

dima_vm
·4 года назад·discuss
You cannot open-source parts if it's a monorepo.
dima_vm
·4 года назад·discuss
"We run ads, senator." (c) Mark
dima_vm
·4 года назад·discuss
Instagram might not became that big, but it definitely was on track to become somewhat big, that's why Facebook bought it, in fear of competition.

Same, Youtube might go down, but the idea was out of the box now, someone else would do that. Technology (ContentID) was there as well. As a consumer, I don't mind if it'd be called differently done by different team. It might have been better or worse of course.
dima_vm
·4 года назад·discuss
No, sorry. Wondering that myself.
dima_vm
·4 года назад·discuss
Not always, if rebars are pre-tensioned before concrete solidifies. So the rebar is always under tension. Pretty common in prefab parts, like bridge bars.
dima_vm
·4 года назад·discuss
Well, technically, you can use cement instead of mortar (wet, but without sand). As far as I understand, sand is more like a neutral filler, to save money on cement. Various other things can be used to fill as well, like gravel. Sometimes even empty plastic bottles (reduces material and weight) are suitable (just make sure they don't float up). If one got very smooth bricks (e.g. precisely cut aerated concrete), then it might make sense, as there's very tiny amount of mortar (or even glue) is needed anyway.
dima_vm
·4 года назад·discuss
Kotlin has it, but only if the function accepts the function argument, e.g. `foo({println("hello")})` is the same as `foo {println("hello")}` (larger example in my other comment above).

You can also make it on no-args function, if it's a method (attached to a type). Utilizing @get(), like that: `3.mph` and have somewhere else defined

    val Double.mph: Speed
      get() = Speed.mph(this)
dima_vm
·4 года назад·discuss
`{key => value}` it should be mutableMapOf() just as well. Same for array.
dima_vm
·4 года назад·discuss
You can make that in Kotlin, e.g.: `3.mph` or `(-45..45).deg` for ranges.

with definition like:

    val Double.mph: Speed
      get() = Speed.mph(this)

    data class Speed(val ms: Double)
      companion object {
        fun mph(mph: Double) = Speed(mph * 1609.344 / 3600.0)
      }
dima_vm
·4 года назад·discuss
That's right, forgot the word (not a native speaker unfortunately).
dima_vm
·4 года назад·discuss
Framework laptop has the best eco-friendly smart packaging I've seen.
dima_vm
·4 года назад·discuss
Absolutely damned is combination of Kotlin's several features:

1. Lambda functions can be defined with `{}`.

2.`foo(bar, somefunc)` is the same as `foo(bar) somefunc`. In other words, if the last parameter is a function, it can be provided AFTER closing parenthesis.

3. Interfaces that require only one method can be implemented on-side with a lambda function (i.e. `{}` syntax for no-param function).

Combined those three features, the code may look like that:

    routing {
        static("/statics") {
            files("css")
        }
        get("/foo") {
            call.respondText("Hello world!")
        }
    }
So you can make a config-looking file which is just pure Kotlin, with static type checking, autocomplete, suggestions, "this" etc.

It's so damned, I'm surprised author didn't mention it.
dima_vm
·4 года назад·discuss
Most users forget/neglect keeping backup codes for proper 2fa, unfortunately.
dima_vm
·4 года назад·discuss
You can download phone prefixes with prices from them, and also set max price for an SMS (won't work if they charge just a little amount and you send thousand requests of course).
dima_vm
·4 года назад·discuss
They do: https://www.twilio.com/blog/2015/08/introducing-max-price.ht...
dima_vm
·4 года назад·discuss
I know one familiar-sounding, but different (without violent armed remainers) novel by Clifford Simak: "City".
dima_vm
·4 года назад·discuss
GCP is an order of magnitude better at IAM. And the article is actually exactly about that, with comparison.
dima_vm
·4 года назад·discuss
Frame.work laptops have properly grounded charger (over UBC-C).
dima_vm
·4 года назад·discuss
Linux is under GPL. Running your website on Linux doesn't force you to open its sources.
dima_vm
·4 года назад·discuss
Another idea you may find interesting: InfoSec. Some of my friends who were looking beyond engineering said "Your Machine Learning is boring. But InfoSec is a very diverse landscape, hard to get bored".