Better HN
topnewbestaskshowjobs
Log inSign up

oinksoft

3,796 karma · joined Apr 21, 2011 (15y ago) · 1,135 submissions

https://oinksoft.com/
Submissions

comment 4y ago · link · parent

As far as I know, Furnace Creek is an oasis, and its golf course is irrigated by non-potable groundwater from local springs.

Water Conservation at The Oasis: https://www.oasisatdeathvalley.com/who-we-are/sustainability...

Hydrogeology of Lower Amargosa Valley (see Fig. 1 in report): https://pubs.er.usgs.gov/publication/sir20185151

comment 6y ago · link · parent

https://www.latimes.com/environment/story/2020-04-28/coronav...

> “It is possible that this was partially due to reduced emissions, but meteorology likely played a much larger role.”

Here in OC over the past couple weeks the haze has returned, while traffic is only slightly up.

3.

Eddie Paul: How to build a mechanical shark(newatlas.com ↗)

1 points · by oinksoft · 6y ago · discuss

comment 9y ago · link · parent

Somewhat related, from my .bashrc

  for a in $(git var -l | sed -nE 's/^alias\.([^=]*)=.*/\1/p') ; do
      if ! command -v g$a >/dev/null 2>&1 ; then
          alias g$a="git $a"
      fi
  done
Which creates a shell alias prefixed with `g` for each of my configured git aliases if there is no conflict. So I get not only the `gst` command you mentioned and ones like `gco` (because I have Subversion-equivalent aliases for common commands), but more complex ones like `gstpup` (stash, pull upstream, stash pop). Combined with `alias g=git`, I seldom type "git" and the setup is pretty convenient. I've thought of making the above alias unconditionally, or report conflicts, as it can be jarring when an alias is missing. I've also considered expanding it to all git commands because sometimes my custom ones live as `git-$command` scripts and not aliases.

comment 9y ago · link · parent

ML for the Working Programmer is my favorite programming book! It's fantastic because it is serious and goes into great detail about practical matters in working with SML. Its treatment of SML's module system is without match. It contains generally useful chapters on the implementation of streams, persistent functional data structures, parsers, and proof systems. My favorite thing about the book is its emphasis on designing correct programs. And the cover's pretty cool.

comment 9y ago · link · parent

I don't know if this is helpful for you, but I map <c-p> to run the open buffer in Vim in the buffer's filetype's interpreter (or compile and run, etc.). For GNU APL, this is:

  nnoremap <buffer> <C-P> :write !cat - <(echo ")OFF") \| apl --script<CR>
It took some time to figure that out, but combined with https://github.com/ngn/vim-apl, it is not too bad of an editing experience.

comment 9y ago · link · parent

Highly recommend https://github.com/othree/yajs.vim

8.

Cassette Tapes Find New, Unlikely Following in Southeast Asia(realclearlife.com ↗)

4 points · by oinksoft · 10y ago · 3 comments

comment 10y ago · link · parent

Either way, mapping the arrow keys to <nop> seems wasteful. In normal mode I map up/down to :cprevious/:cnext and left/right to :colder/:cnewer, which makes error list navigation effortless. Some other good targets are the buffer, tag and location lists (with a little work you could make them context-aware too). I don't remap the arrow keys in insert mode though, it'd be annoying to have to exit insert mode only to move the cursor a few characters.

comment 10y ago · link · parent

Obligatory warning about running `strings` on untrusted files: https://lcamtuf.blogspot.com/2014/10/psa-dont-run-strings-on...

comment 10y ago · link · parent

The Salton Sea is fascinating. Its bed is as low as Badwater Basin in Death Valley, and were it not inundated, it might be the hottest place in the US. A little while ago I submitted a fellow's account of hiking its perimeter during summer: http://dineshdesai.info/saltonwalk/

comment 10y ago · link · parent

Unfortunately, this is the only source I could find referring to plants marked as "cursed" by the church for the reason that they didn't "bow before [God]." Most primary sources are in Amharic, of which I know little.

comment 10y ago · link · parent

Apparently as recently as the 19th century, coffee was forbidden in Ethiopia (the birthplace of coffee, where its cultural importance is tremendous) by the Orthodox Church. Coffee, along with tobacco, cannabis and khat were considered "cursed plants" because they were reputed to have not dried when Christ was crucified.

The best source I could find is http://www.ijhssnet.com/journals/Vol_3_No_21_[Special_Issue_... which describes the condemnation of khat:

> Khat was cursed by God forever to be chewed by humans because of causing a divine displeasure when God came to Earth and all the plants bowed before him showing ultimate respect with the exception of Khat.

comment 10y ago · link · parent

This is a real problem with ML. There's competing tooling from SML/NJ and MLton, not to mention interesting, useful projects like MoscowML or PolyML. So finding reusable libraries and such is a real battle, and you can't escape knowing both MLBasis and CM, as well as SML/NJ extensions and differences in the respective Basis libraries. The underlying "problem" is that MLton is too good to ignore, but takes so long for even small programs that it's impractical for day-to-day, let alone interactive development.

That's what's so exciting about new work on MLton like this: A JIT-ing MLton, for instance, could be an amazing thing. It seems like the community has been coalescing around MLton against all odds, and any improvements to it are a big deal.

SML is nicer syntactically than OCaml, but OCaml brings so much to the table that it's hard to ignore (a simpler compilation model, niceties like named arguments, single development target, good community). Also Paulson's ML For the Working Programmer explains SML's warts well, in a historical context. It goes into great detail of some of the limitations of SML's module type safety and some of the nasty things you need to do to make functors generic and reusable, which really turned me off of the language and explained why Caml and OCaml exist. I still love SML but must concede that it's mostly a teaching language. The Little MLer is wonderful.

comment 10y ago · link · parent

Not a pun, just what this immediately reminded me of :) I've always found it astonishing that people would live on an island with such a low maximum elevation.

comment 10y ago · link · parent

Tuvalu is in similar straits.

comment 10y ago · link · parent

Also here: https://en.wikipedia.org/wiki/Reston,_Virginia

comment 10y ago · link · parent

Echoing what you said, I've never met nicer people or made friends more easily than when I lived in Sacramento.

comment 10y ago · link · parent

Mali is on the west coast of Africa, so such an ocean crossing would not require rounding the Cape. They're also well-situated to take advantage of trade winds, and are at the point of the narrowest middle Atlantic crossing. So it's not so far-fetched that they could have made these trips.
12345
38