HNHacker News
TopNewBestAskShowJobs

rmilk

66 karma · joined January 22, 2019

submissionscomments
rmilk··on Why do we dream? A new theory on how it protects our brains
Funny that some medications have these dream effects. An uncommon side effect of Montelukast is vivid nightmares and sleep paralysis. It’s a relativity common asthma control medication, but was recently moved to a not-recommended status for younger people because of this side effect. My personal experience was pretty intense nightmares 1-2 times a week if I took it before bed. Taking early in the day stopped this side effect.
rmilk··on Debt Collectors Are Transforming the Business of State Courts
This seems to the the correct understanding. See these two articles that give the view from people who tracked down the debt collections and the bad data in those spreadsheets.

Bloomberg: https://www.bloomberg.com/news/features/2017-12-06/millions-...

NYT: https://www.nytimes.com/interactive/2014/08/15/magazine/bad-...

rmilk··on Supreme Court rules Georgia state law annotations not copyrightable [pdf]
I would not agree with your assessment. The legislature wrote the laws, which are not copyrighted. But they went a step further in this case to add that the ACTUAL law to be applied in the State is the Annotated version, not the original unannotated version. Or in other words, the only way to obtain the actual law is through the version that was copyrighted. (See the Ars Technica article that has some good background on the history of the case).

I still see the case as being about the legislature creating law but then assigning the copyright to that law to someone else. That was decided long ago in the government edicts precedents. Without this overturned decision, this leaves you in the position that you cannot access the Official Laws without being forced to go to the owner of the copyright for access.

rmilk··on Perl is dying
Also see basic Unix utilities like cut / paste (and colrm if your *nix has it, not sure if MacOS does) as these do the same column selection and printing and support simple options for delimiter and field number selection instead of writing a parser.

cut -d’ ‘ -f 1,2 < some file.txt

rmilk··on Perl is dying
Having extensively used AWK and PERL, I don’t agree. AWK works for simple things, but has significant limitations especially for more complex parsing you might do in a dozen lines of PERL. Subroutines don’t return complex structures, Strict mode declaration checking, hashes, foreach style iterators are much less functional or missing in AWK. Multi layer structures are also trivial in PERL (hash table or array composed of child hash or array). Finally, AWK versus GAWK versus NAWK compatibility is an issue.
rmilk··on Anthony Levandowski Charged with Theft of Trade Secrets
Actually in the old days it was being given a backup tape in the parking lot in exchange for an envelope of money.

I’m referring to the Cadence vs Avanti trade secret theft in the early 2000s. This was in the EDA (Electronic Design automation, electrical engineering software) industry. See this article for a very brief review of the 6 years of legal wrangling.

https://wikivisually.com/wiki/Cadence_Design_Systems,_Inc._v...

Bloomberg also has a full article, behind a paywall, that is referenced in the wikivisually.com link.

rmilk··on Black soldier fly maggots: high in protein with a small carbon footprint
“Bug Bites” is the name of the fish food in my local pet store. Comes in goldfish formula and algae eater formula. The package says it is grown by Enterra Feed in Canada using unconsumed fruit and vegetable that would go to waste.
rmilk··on The Difference Between ‘Violet’ and ‘Purple’ (2015)
Slighly off topic, but UV visibility is important in other species. See this link for photos of flowers showing how they appear to bees or birds.

The CIE charts don’t really consider how to interpret or recolor data outside the color space, for example the UV reflection from flowers or astronomy photos in the UV/X-ray spectrum.

http://www.naturfotograf.com/UV_flowers_list.html#top/

rmilk··on Rewarding Neglect and Punishing Investment in Struggling Neighborhoods
The question then becomes how to acquire the money for the bailout. You can’t just ask for money or acquire funding through buyout. Tax increases or bonds are really the only sources of money, and they require voter approvals. Costs can be reduced by cutting services or through bankruptcy, both of which bring their own side effects by reducing the appeal of the city or county or by making future debt more expensive.

See this link for a survey of California issues with pensions. The source is the league of CA cities, so there is some bias but the results are still meaningful and eye opening regarding future mandatory spending commitments.

http://www.cacities.org/2018PensionSurvey

rmilk··on For the Love of Pipes
I use vim as a visual pipe or pipe debugger with undo when I need to perform a series of transformations (grep/sort/cut/lookup/map/run other data tool). Obviously geared towards text files because it is vim.

The ! command sends the selection through external command(s) as STDIN and then replaces the selection with STDOUT from the command(s). For example, grep or sort, but can be any command that works with pipes. Buffer is replaced with output (sorted file for example). Undo with U to go back to original data. Redo with R to go forward to transformed data. Command line history is available to add more commmands or correct when you type ! again.

Edit a file. Select block (Visual mode shift-V) and type ! or use the whole file with gg!G command. Type in the commands you need to run.

Vim also reads stdin if you give - as the filename, like “ls -l | vim -“ so you we can use it at the end of a pipe instead of redirecting to a file.

Like I said, I use it as an interactive debugger to assemble pipelines and see the results.

vi / vim filter commands: http://vimdoc.sourceforge.net/htmldoc/change.html#!

← PreviousPage 2 of 2