Better HN
topnewbestaskshowjobs
Log inSign up

dmiladinov

178 karma · joined Apr 5, 2011 (15y ago) · 72 submissions

Find me on stackoverflow: http://stackoverflow.com/users/114359/danny

Check out my github: https://github.com/danielmiladinov

Submissions

comment 12y ago · link · parent

Manager: "Why isn't the project done yet? Why are you still coding?"

macromaniac: "Patience, I'm still working on salad..."

comment 12y ago · link · parent

From the article:

> This article is for computer engineers who would like to have a high-level understanding of how the dual parity calculation works, without diving into all of the mathematical details.

I believe that is the value proposition for reading: gaining an understanding of RAID-6 parity calculation while glossing over the math-y bits.

comment 12y ago · link · parent

Oh come now, that's just an extra safety net.

Don't take IDEA local history as a replacement to version control, rather a supplement.

comment 12y ago · link · parent

Without actually saying the words, this post makes a good introduction to the [expression problem][0], trading the ease of adding types for the ease of adding behaviors.

[TINSTAAFL][1], but what a functional programming paradigm takes away it replaces with brevity, concision, additional type safety, and greater opportunities for the compiler to restate your algorithms in a form more conducive to parallelization and concurrency.

[0]: http://c2.com/cgi/wiki?ExpressionProblem

[1]: http://en.m.wikipedia.org/wiki/There_ain't_no_such_thing_as_...

comment 12y ago · link · parent

In order to use variables from the scope that the anonymous function came from, you have to explicitly import them into the anonymous function with the use[1] block:

    public function getTotal($tax)
    {
        $total = 0.00;
        
        $callback =
            function ($quantity, $product) use ($tax, &$total)
            {
                $pricePerItem = constant(__CLASS__ . "::PRICE_" .
                    strtoupper($product));
                $total += ($pricePerItem * $quantity) * ($tax + 1.0);
            };
        
        array_walk($this->products, $callback);
        return round($total, 2);
    }

In other languages that have true closures, the anonymous function "closes over" the lexical scope in which it was declared.

[1]: http://www.php.net/manual/en/functions.anonymous.php

comment 12y ago · link · parent

There's also some vmoptions tweaking you can do to increase performance some more.

comment 12y ago · link · parent

> "...heating water and converting it to coffee"

Spot on! What, oh what, would I ever do without my Keurig machine!!!

comment 12y ago · link · parent

Also, "as of" reporting is a built-in feature requiring no additional configuration.

comment 13y ago · link · parent

Add a commit for yesterday (I just picked whatever arbitrary time):

   git commit -a -m "Insightful Commit Note" --date "2013-09-25 08:24:32"
Might also be worth mentioning the [difference between commit date and author date][1]

[1]: http://stackoverflow.com/a/11857467/114359

comment 13y ago · link · parent

The second coming of Java the platform (the JVM), at any rate.

comment 13y ago · link · parent

Now I'm confused - I thought Benji Smith wrote this?

comment 13y ago · link · parent

This! A thousand times, this!

comment 13y ago · link · parent

According to Wikipedia:

Exile means to be away from one's home (i.e. city, state or country), while either being explicitly refused permission to return and/or being threatened with imprisonment or death upon return.

So he's probably not so much worried about whether or not he can return to the U.S., but rather what would happen to him when he did.

http://en.wikipedia.org/wiki/Exile

comment 13y ago · link · parent

As long as you can still disable JS via about:config or NoScript, this is hardly worrisome.

comment 13y ago · link · parent

Oh, I wasn't aware that ClojureCLR was still being maintained. All I knew was the Hickey was no longer maintaining it.

Thanks for clarifying!

comment 13y ago · link · parent

> Inference : ClojureCLR seems to be dead :(

For at least a few years now.

I remember watching a Hickey talk where I think I recall him saying it was even before 2011, but the exact name escapes me at the moment. However, I was able to find this snippet from 2011:

Fogus: Clojure was once in parallel development on both the JVM and the CLR, why did you eventually decide to focus in on the former?

Hickey: I got tired of doing everything twice, and wanted instead to do twice as much.

http://codequarterly.com/2011/rich-hickey/

comment 13y ago · link · parent

Yes, as for the Balkans, some would argue that Croatian, Serbian and Bosnian are all just dialects of the same basic language.

comment 13y ago · link · parent

> I'd love to see some statistics on what kind of effect a half hour per employee per month does for overall happiness and employee retention.

I would too, and here's some anecdata for you: one of my old bosses would conduct weekly one on one meetings with all of the developers on his team (anywhere from 4 to 8 of us at different times) and I'd have to say that personally they were some of the best manager-direct experiences I've ever had since.

One on one meetings are one of the most important tools out there for helping organizations build relationships with their people, helping them produce more results, as well as increase retention.

Anybody interested in starting them at their organizations should check out the manager tools website. They produce several weekly free podcasts as well as offer other products and services.

https://www.manager-tools.com/docs/Manager-Tools_One_on_One_...

http://www.manager-tools.com/2005/07/the-single-most-effecti...

comment 13y ago · link · parent

All that's left when you're done with the first 90% of development is the other 90%[1].

[1]: http://en.wikipedia.org/wiki/Ninety-ninety_rule

comment 13y ago · link · parent

Half serious, half tongue-in-cheek, but he's apparently had this idea since at least Iron Man 2: http://www.youtube.com/watch?v=EuG2AVFB-g0

comment 13y ago · link · parent

You're right, it isn't.

This post[1] from JetBrains helped clear the situation up for me.

[1]: http://blog.jetbrains.com/blog/2013/05/15/intellij-idea-is-t...

comment 13y ago · link · parent

Even the community edition[1] supports android development. Just point IntelliJ at your android sdk installation folder, and you're off to the races!

[1]: http://www.jetbrains.com/idea/features/android.html

comment 13y ago · link · parent

Two names come to mind:

Irony[1], and

Quis custodiet ipsos custodes?[2]

[1]: http://en.wikipedia.org/wiki/Irony

[2]: http://en.wikipedia.org/wiki/Quis_custodiet_ipsos_custodes%3...

comment 13y ago · link · parent

Is this any different from how Facebook Credits work(ed)?

comment 13y ago · link · parent

Between the TSA groping you at the terminal and now the scary possibility of ne'er do wells initiating shenanigans from their smartphones in mid-air, it's enough to make me never want to fly again.

comment 13y ago · link · parent

When I first moved to Pennsylvania I was completely dumbfounded the first time I came to a stop at a stop sign and the driver behind laid on his horn - I didn't read the "fine print" below the sign: except for right turn[1]

[1]: http://www.pacode.com/secure/data/067/chapter212/s212.107.ht...

Edit: Here's a source with a photo: http://www.another-mile.com/2009/12/stop-means-stop-except-r...

comment 13y ago · link · parent

I think it's because you can use botnets to divide up the vast IPv4 search space among the individual bots and crawl it exponentially faster.

comment 13y ago · link · parent

For similar coverage about finding barely-secured devices that shouldn't have ever even been connected to the Internet, check out the Security Now! podcast, episode 396 - The Telnet-pocalypse:

http://www.grc.com/securitynow.htm

Transcripts are available in several formats:

http://www.grc.com/sn/sn-396.htm

http://www.grc.com/sn/sn-396.txt

http://www.grc.com/sn/sn-396.pdf

comment 13y ago · link · parent

PHPStorm is like the perfect gateway drug. I first became familiar with JetBrains products through PHPStorm, but have since upgraded to IntelliJ IDEA. IntelliJ IDEA is the perfect polyglot IDE, with support for the following either in-built or via plugin (and forgive me if I leave anything out, or add it in a reply):

- Java

- Scala

- Clojure

- Android

- PHP

- html/css/javascript

- Python/Django

- Ruby/Rails

- Groovy/Grails

- Actionscript/Flex

I'm a raving fan!

30.

Google Developers' Performance Checklist For The Mobile Web [pdf](mainroach.appspot.com ↗)

2 points · by dmiladinov · 13y ago · discuss

123