Better HN
topnewbestaskshowjobs
Log inSign up

cribwi

234 karma · joined Mar 20, 2013 (13y ago) · 29 submissions

meet.hn/city/nl-Groningen
Submissions

1.

Amazon Alexa won't stop saying 'lalala'(androidauthority.com ↗)

4 points · by cribwi · 1mo ago · discuss

2.

Shai Hulud campaign strikes NPM again(research.jfrog.com ↗)

3 points · by cribwi · 3mo ago · discuss

3.

8 Stages of AI engineering maturity: a framework for teams(upsun.com ↗)

3 points · by cribwi · 4mo ago · discuss

4.

Stop being the code review bottleneck(newsletter.posthog.com ↗)

1 points · by cribwi · 4mo ago · discuss

5.

The End of Code Review: Coding Agents Supersede Human Inspection(arxiv.org ↗)

20 points · by cribwi · 5mo ago · 18 comments

comment 3y ago · link · parent

A similar research is done for humpback whales by HappyWhale: https://happywhale.com/ They're doing a great effort with already over 600K user/tourist submitted photos of whale encounters to track individual whales over the globe

comment 4y ago · link · parent

Great approach and good write-up! I’ve implemented a similar technique before on PostgreSQL, but with the materialisation in the application backend. Still works like a charm.

>So instead, we created a special kind of trigger that tracks the minimum and maximum times modified across all the rows in a statement and writes out the range of times that were modified to a log table. We call that an invalidation log.

Does this invalidation log also take into account cases where the view has an aggregate that is based on data from a bucket other than itself? For example, a lag() or lead() might be used to calculate a delta compared to the previous bucket. Then, if a data point inside bucket 1 is added into the realtime table and bucket 1 is invalidated and re-materialised, for integrity reasons also bucket 2 needs to be re-materialised?

comment 4y ago · link · parent

In some cases for removing repeating (intermediate) calculations, I generally find it easier to use a lateral join (in postgres), like

    select
        title,
        country,
        avg(salary)         as average_salary,
        sum(salary)         as sum_salary,
        avg(gross_salary)   as average_gross_salary,
        sum(gross_salary)   as sum_gross_salary,
        avg(gross_cost)     as average_gross_cost,
        sum(gross_cost)     as sum_gross_cost,
        count(*)            as emp_count
    from
        employees,
        lateral ( select
            (salary + payroll_tax)                   as gross_salary,
            (salary + payroll_tax + healthcare_cost) as gross_cost
        ) employee_ext
    where
        country = 'usa'
        and gross_cost > 0
    group by  title, country
    having    count(*) > 200
    order by  sum_gross_cost
    limit 3;

comment 5y ago · link · parent

If you're running PostgreSQL, you can use the built-in generate_series (1) function like:

  SELECT id, random()
  FROM generate_series(0, 1000000) g (id);
There seems to be an equivalent in SQLite: https://sqlite.org/series.html

[1] https://www.postgresql.org/docs/current/functions-srf.html

comment 5y ago · link · parent

You can assign a custom shortcut to it via Settings > Keymap and then the action "Main Menu > File > Local History". I myself have assigned the shortcut control+shift+=

11.

An automatic pool playing robot(youtube.com ↗)

2 points · by cribwi · 5y ago · discuss

comment 6y ago · link · parent

Try using https://m.xkcd.com/ and click the comic to toggle the alt text

13.

The Mexican Fisherman(bemorewithless.com ↗)

1 points · by cribwi · 6y ago · discuss

14.

Wikipedia's JavaScript Initialisation on a Budget(phabricator.wikimedia.org ↗)

1 points · by cribwi · 7y ago · discuss

comment 8y ago · link · parent

I know that specific story from the book "How not to be wrong", by Jordan Ellenberg. It was nice to read it from a different angle in this article

16.

Builder Pattern in Scala with Phantom Types(medium.com ↗)

1 points · by cribwi · 9y ago · discuss

17.

Computational Zoom: A Framework for Post-Capture Image Composition(cvc.ucsb.edu ↗)

1 points · by cribwi · 9y ago · discuss

18.

Pev: Postgres EXPLAIN Visualizer(tatiyants.com ↗)

4 points · by cribwi · 9y ago · discuss

19.

$PHP = dead;(medium.com ↗)

3 points · by cribwi · 9y ago · discuss

20.

What is the value of code review anyway?(blog.phacility.com ↗)

1 points · by cribwi · 11y ago · discuss

comment 11y ago · link · parent

Part 1: https://news.ycombinator.com/item?id=7654439 http://vimeo.com/85490944

22.

Spotify Engineering Culture – Part 2(vimeo.com ↗)

2 points · by cribwi · 11y ago · 1 comment

comment 12y ago · link · parent

Since it has been broken some time ago: no. But when it was still working: yes, I found it rather useful. Especially with very small commits/bugfixes and such. I hope they'll fix it soon

comment 12y ago · link · parent

I've been using Phabricator for almost a year now in our company. At first, I also had my questions about the workflow with arcanist (the local PHP cli software to interact with Phabricator). However, right now I really love it and miss it on every repository which works without Phabricator. Commands like 'arc feature', 'arc tasks' and 'arc inlines' provide a solid abstraction over the repository to bring the workflow to the cli.

About the unit tests: indeed, out-of-the-box Phabricator only supports running them locally (you can configure the unit engine to run every time a piece of code is been send into review). Luckily, it's not that hard to hook into the event engine (https://secure.phabricator.com/book/phabricator/article/even...) to, for example, trigger your CI-server to run the test suite for a specific revision. Also, Phabricator is still being developed actively. There are a bunch of alpha and beta applications which will only make it more powerful (for example: DryDock and Harbormaster, which will ease the work for automatic builds: http://www.guywarner.com/2014/05/integrating-jenkins-and-pha...)

In my opinion, Phabricator is one of the most powerful tools around for doing code reviews and effective collaboration management. Even with the large amount of beta applications (which are promising in many cases) the decision for us was easy to make.

25.

PostgreSQL vs. MS SQL(pg-versus-ms.com ↗)

142 points · by cribwi · 12y ago · 103 comments

26.

On Pull Requests(cramer.io ↗)

58 points · by cribwi · 12y ago · 34 comments

comment 12y ago · link · parent

Funny to see a new player entering the game to start button bashing and ruining the playing field in a matter of seconds :)

comment 12y ago · link · parent

Used it on a regular basis, but since I owned multiple Android devices this tool became pretty useless. You can't filter on devices, so when I'm out with my phone leaving my tablet at home, the location history only displays a bunch of spikes of me traveling with tremendous speeds.