Better HN
topnewbestaskshowjobs
Log inSign up

igg

23 karma · joined Aug 26, 2016 (10y ago) · 12 submissions

Submissions

comment 1y ago · link · parent

This list seem to be based on production based accounting if emissions. Consumption-based per-capita emissions are available here for those curious: https://ourworldindata.org/grapher/consumption-co2-per-capit...

comment 5y ago · link · parent

The 1 GB DRAM per 1 TB Flash is to store the Flash Translation Layer mapping from logical addresses of the host system to the physical address in Flash. The write cache is separate and much more limited in size.

comment 6y ago · link · parent

It is Julia all the way down.

  julia> @which randn(1000)
  randn(dims::Integer...) in Random at ~/Software/Julia/share/julia/stdlib/v1.5/Random/src/normal.jl:210

  julia> @edit randn(1000)
  # Opens the normal.jl file in your editor

  julia> @run randn(1000)
  # Starts the debugger in VSCode

Digging deeper, at least one of the PRs [1] is based on a 2018 paper [2]

[1] https://github.com/JuliaLang/julia/pull/29240 [2] https://arxiv.org/abs/1805.10941

comment 6y ago · link · parent

You could use a cronjob to add and commit all files at midnight.

comment 6y ago · link · parent

A Mathematical Theory of Communication

comment 6y ago · link · parent

The article was renamed "The Mathematical Theory of Communication" in the 1949 book of the same name, a small but significant title change after realizing the generality of this work.

comment 7y ago · link · parent

While you still need some experimentation to get a plot right, following the grammar of graphics approach can make it quick and methodical. For any plot, I just need to answer a few questions:

* What kind of plot do I want? Bar chart? Scatter plot? Boxplot? Pick the geom based on this.

* What column goes on each axis? Do I need to transform the axis? For e.g., is log scale better?

* Do I split data by some other column? Use different colors/fill, shapes, or facets.

* Do I need any annotations to point out interesting parts of the plot?

GGPlot and Plotnine are joy to work with once you grok the ideas of tidy data and grammar of graphics. Since the API is consistent, experimentation can be quick:

* That scatter plot looks to busy? Change the geom to a boxplot.

* Want to see if an attribute has any predictive power? Assign it to any unused aesthetic.

Seaborn can provide some higher-level functions compared to plotnine/ggplot like pair-plot. But as you said, you need to lookup seaborn's documentation all the time to work with it.

comment 8y ago · link · parent

Yup, that's correct.

comment 8y ago · link · parent

The decompression step on the receiver does not need the knowledge of the pre-trained dictionaries; they are used only to bootstrap the compression step.

comment 8y ago · link · parent

Highly recommend plotnine if you are looking for the python equivalent of ggplot and only need static visualizations.

comment 10y ago · link · parent

tmux-resurrect seems to have an option to save bash history. When combined with tmux-continuum, it should happen seamlessly.

comment 10y ago · link · parent

fzf [0] works pretty well for this.

[0] https://github.com/junegunn/fzf