HNHacker News
TopNewBestAskShowJobs

electricEmu

433 karma · joined July 29, 2015

submissionscomments
electricEmu··on The mechanics of the Nepali flash flood
Climate change is defined by both wet and dry extremes.

Excess rainfall creates an explosion of brush that during the now annual drought turns to tinder.

electricEmu··on Awk Technical Notes (2023)
PowerShell is open source and available on Linux today for those who enjoy an OO terminal.

MIT licensed.

https://learn.microsoft.com/en-us/powershell/scripting/insta...

electricEmu··on Tech's Elite Hates Labor
Examples of Musk benefitting Musk do not demonstrate a net-positive impact on the world.

The artists criticizing Mr. Musk make a good point about what's really happening.

https://youtu.be/i9qWYUH5x3k

electricEmu··on When Facebook went down this week, traffic to news sites went up
Funny, nmap was released in 1997.
electricEmu··on Alternative shell with native support for JSON, YAML, TOML, CSV, etc.
PowerShell maps plaintext to objects without issue. No need to drop down into bytestreams.

In the following example, 'choco' (Chocolatey) outputs a list of outdated packages in a consistent format (--limit-output). The text output is piped to the ConvertFrom-CSV PowerShell CmdLet, which maps the text output from choco into a PowerShell object.

```ps1 choco outdated --limit-output | ConvertFrom-csv -Delimiter '|' -Header 'name','version','v-new','pin' ```

For what it's worth, STDERR is already colorized in PowerShell too.

electricEmu··on Alternative shell with native support for JSON, YAML, TOML, CSV, etc.
WSL on Windows replaces the need for uutils/coreutils. Running an actual distribution of Linux on Windows with WSL provides an actual Linux/POSIX environment.

In my experience, there is a graveyard of tools that I tried which attempted to create native POSIX ports for Windows. Each port came up short in my workflow every time. PowerShell and WSL provide me and the teams I work with an experience that simply works.

electricEmu··on Alternative shell with native support for JSON, YAML, TOML, CSV, etc.
PowerShell also runs on Mac, Windows, and Linux. You pass objects instead of plaintext through the pipeline which provides a rich experience. The full .NET type and ecosystem are also available when you really need a full fledged class for a thing.

There are good choices in 2021.

https://docs.microsoft.com/en-us/powershell/scripting/instal...

electricEmu··on Alternative Shells
POSIX commands are available on *nix platforms and PowerShell provides native functions or POSIX wrappers for most tasks. About the biggest issue is speed, but there's always POSIX or .NET Core in the rare instance tons of performance is required.

If I may, PS is a first-class citizen on Linux, macOS, and Windows. PowerShell is a spectacular cross-platform shell that provides an object oriented paradigm and it's available today.

electricEmu··on Alternative Shells
PowerShell runs on Linux. I run PS as my primary shell [0] on Linux today. It's is open source too.

You're not far away with how PowerShell can parse Linux commands. Instead of relying on awk/grep, PowerShell uses .NET under the hood to provide consistency across operating systems. There are a few methods for converting from a Linux command to PowerShell objects based on delimiters or OFS. If you're interested, Steve Lee wrote a blog post that does a good job covering how to parse Linux command output into PowerShell objects [1].

[0] https://docs.microsoft.com/en-us/powershell/scripting/instal...

[1] https://devblogs.microsoft.com/powershell/parsing-text-with-...

electricEmu··on Mass die-off of birds in south-western US 'caused by starvation'
For years I've watched the rivers in Washington State receive consideration. Progress has been made and continues to be.

Saying humankind has done "nothing" is not only mistaken, but makes for poor conversation. Perhaps more people should take a page from Attenborough.

https://www.spokesman.com/stories/2020/dec/17/for-the-first-...

electricEmu··on Study suggests that fresh asphalt is a significant source of air pollution
Small trucks may cut enough emissions by reducing road-wear. If everyone switched from large trucks to an even larger amount of small trucks it's possible the problem is made worse.

Why the focus on small trucks as if they're a panacea?

electricEmu··on Zettlr – FOSS markdown editor for personal knowledge management and publishing
Honestly, it's good to hear I'm not alone.

Synchronization in Joplin concerned me too. E2EE is non-trivial to setup and Joplin will upload decrypted files if E2EE is misconfigured on a device. Encryption appears to be an afterthought in Joplin.

Standard Notes looks snazzy but too many features fail to work. I cannot get paste to work consistently on my mobile devices, and you're right - the editors are a an absolute mess. File Safe is only supported in unsupported editors and the supported editors lack basic features. FYI, the spreadsheet editor unsupported and exporting sheet data is...difficult.

I do not recommend Standard Notes anymore. Thanks for pointing out a need for external backups in Joplin though!

electricEmu··on Zettlr – FOSS markdown editor for personal knowledge management and publishing
What happened with your Joplin sync issue?

I am interested in using Joplin exclusively and use both apps currently. The Standard Notes development team is nice but refactors happen too frequently and estimates are rarely (never) produced, even though the product is paid Open Source.

electricEmu··on Capitol Hill Autonomous Zone
Ando Ngo has frequently posted information to intentionally muddy the situation and incite an anger against protestors. As a Seattle resident, my fear is that people are beginning to act on this disinformation from Andy Ngo and others.

Here, a multi-racial family was menaced by residents of Forks, WA. Residents actually cut down trees to block the road.

https://q13fox.com/2020/06/05/spokane-family-harassed-strand...

Here, a police offier's relative drove into the protests, shot a protestor, and ran to the police station.

https://www.washingtonpost.com/nation/2020/06/08/seattle-sho...

While these instances are not widespread, they are incredibly troubling.

electricEmu··on Ask HN: Do you still use MongoDB?
DynamoDB is consistent and scalable, not fast and cheap.

DDB is great for storing data that is required to be scalable and never needs to be joined. Add in DAX, developer time necessary to orchestrate transactions, calculate the scaling costs and...that's how AWS gets you.

Plus, local development requires half-complete emulators or a hosted database you're charged for.

No, maybe people should think twice about DynanoDB.

electricEmu··on Argon – a clean, responsive, modern template for Dokuwiki
Dokuwiki will function perfectly for some specific use-cases. The file format and plugins are not something that should be glossed over with Dokuwiki though.

Yes, it's possible to rsync flat files from Dokuwiki to somewhere else, but Dokuwiki files are stored in a unique format. Moving files from one machine to another does not make the format more ubiquitous or easier to parse. The amount of work required to migrate data out of Dokuwiki may be trivial to some very experienced developers but would be neigh impossible for greener developers.

The plugin ecosystem of Dokuwiki is reminiscent of Jenkins. Dokuwiki plugins can do anything, but few seem to do them well or without quirks. Some require updating the CSS and HTML template for a theme. Others require modifying the host system. Few plugins are active, modern, and useful to more than a subset of specialized scenarios. The mobile editors are truly an exercise in frustration for even tech-savvy users.

Dokuwiki is great if you have specialized needs and accept the file format costs. The specialized markup language and plugin ecosystem are a type lock-in that should really be stated more up-front to new and perspective Dokuwiki users. I do recommend Dokuwiki for very particular and specific needs, but not as a general purpose wiki for "most people".

electricEmu··on Argon – a clean, responsive, modern template for Dokuwiki
Hardly needs maintenance at all was not my experience.

My primary driver for seeking out a new wiki was because of how difficult testing and managing Dokuwiki can be. Updates to the main wiki are infrequent, plugins are often abandoned, and the setup, running, and maintained of the wiki is non-trivial.

I recommended wiki.js is easier to run, uses markdown by default, backs up data as flat files in a git repository, and does not require many resources either. Plus, there's a supported Docker image that works out of the box.

There's no problem with choice. Dokuwiki is frequently recommended to new users and wonder if that wiki is an appropriate recommendation. I explicitly would suggest wiki.js or something similar to someone not already running Dokuwiki.

electricEmu··on Argon – a clean, responsive, modern template for Dokuwiki
Seriously. wiki.js was easy to setup, simple to run, and actually works on mobile devices. Markdown files are published to an external git repository.

I am happy with wiki.js. It's much less maintenance than Dokuwiki.

electricEmu··on Redfin: Vacation real-estate ‘toast’ as Airbnb owners rush to offload homes
Some people will move away from a city and others will move to a city. It happens. Neither of us expects to see a sizable net movement from urban to "exurban" (rural) areas.

Why choose the exurbs where you pay a premium to drive long distances and live far away from opportunity and medical care? Plus, exurbs were some of the hardest hit during the '08 recession [1].

> But underlying today’s exurban fervor is an uncomfortable truth: The reason that homes in these communities are so affordable is that these areas were among the hardest-hit by the housing crisis and recession, and prices have only recently recovered.

Recessions are very difficult to predict. Maybe it will be some time before a reckoning in the exurbs comes due again.

[1] https://www.marketwatch.com/story/it-can-be-risky-to-buy-a-h...

electricEmu··on Redfin: Vacation real-estate ‘toast’ as Airbnb owners rush to offload homes
> Why risk living in close quarters if this may be a recurring pattern and pay a premium for doing so.

Your original assertion was renters will move because the city is unsafe during COVID and that suburan areas are worth the price to commute trade-off.

Two suburban areas around Seattle are Snohomish and Pierce counties. Those "safer" suburbs are doing an objectively worse job of following Washington State's "Stay at Home" order [1]. Prior to COVID, hospitals were closing in rural and exurban areas, which reduced capacity during this pandemic [2]. Disregarding SAH/SIP orders and reduced capacity sounds dangerous, not safer and worth saving money.

As for cost, when enough housing capacity was built in Seattle then the rent stabilized. After short-term rentals are converted back into single-family homes or long-term leases then rent should continue to stabilize or decrease. When I last looked, increasing my commute from 25m to over 1h was not worth the savings in rent and would have required purchasing a car.

It's great you prefer the suburbs and there are absolutely people the 'burbs are better suited. Unless you have a valid reason to suggest people are going to move in-mass from cities to the burbs then I find "diminished city living" mistaken and comical.

[1] https://www.unacast.com/covid19/social-distancing-scoreboard... [2] https://www.npr.org/2020/04/09/829753752/small-town-hospital...

electricEmu··on Redfin: Vacation real-estate ‘toast’ as Airbnb owners rush to offload homes
Only time will tell for certain but the preemptive measures places like Seattle have taken appear to be paying dividends. Living in rural Texas is much more concerning than living in Seattle during COVID19.

As for space, cities have lacked space for as long as cities have existed but people continue to migrate for the opportunity. I wouldn't be surprised if housing prices drop from short-term rentals reentering the market as single-family homes or long-term rentals.

The decision is not so clear cut.

electricEmu··on Initial Impressions of WSL 2
Which keyboard combination moves windows around, the same as WIN+ArrowKey, after enabling "keyboard access" in MacOS?
electricEmu··on Initial Impressions of WSL 2
It's my understanding that MacOS requires extra setup for those shortcuts regardless of Karabiner.

If you feel that extra setup is acceptable then any almost modern OS will fit your needs. There's something to be said for standardized shortcuts that work on every MS Windows instance.

electricEmu··on Initial Impressions of WSL 2
Windows can be controlled entirely by the keyboard, out of the box (Start+ArrowKey).

MacOS always required extra setup with Karabiner and other tools to mostly accomplish the same thing.

The BSD derived base in MacOS made a great developer OS but the windowing system often felt lacking.

electricEmu··on Introducing nushell
PowerShell works on Linux today. It's consistent and works fine for this Go-developer's needs.

It's spectacular to have a shell with consistent verbiage and parameters.

https://aka.ms/getps6-linux

electricEmu··on Los Angeles, the Automobile, and Mexican American Life
I’m writing from a bus and found giving my car up to be great for my pocketbook. Gas was more expensive for affordable vehicles and efficient vehicles were still pricy.

It’s a pain to park, doesn’t necessarily move faster than public transit, and is one of the largest safety concerns to city dwellers.

The blog post can’t be written-off by stating “Chicago”.

electricEmu··on The Persistent Economic Advantage of America’s Suburbs
You should look into Seattle’s housing problems, as there are many.

Apartments are very expensive and most are not sized for families. The city is still zoned for single family homes, driving up the cost of the homes to near San Francisco levels.

Some people are sleeping in parks, which is a cheaper option, granted.

electricEmu··on The Persistent Economic Advantage of America’s Suburbs
The suburbs are much cheaper than Seattle proper. Granted, there are a few small communities that are very expensive.

Mostly suburbs (the Rentons, Tacomas, and Monroes of Puget Sound) are very inexpensive compared to Seattle proper.

electricEmu··on Ask HN: What tech stack would you use to build an open-source Google Keep clone?
I use StandardNotes and the Open Source aspect attracted me. I can run the parts if the company goes away. Today, I’ll pay SN a reasonable fee for convenience and future additions.

The competition is Evernote if the software isn’t free. I feel like SN seeks convenience now. Licensing games are just another commercial competitor.

electricEmu··on Most People With Addiction Grow Out of It (2014)
Either both positive and negative anecdotes, related to addiction treatment in America, are welcome and on topic for an addiction thread, or neither are.
Page 1 of 7Next →