HN user

electricEmu

432 karma
Posts1
Comments183
View on HN

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.

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.

Alternative Shells 5 years ago

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.

Alternative Shells 5 years ago

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-...

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!

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.

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.

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".

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.

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...

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...

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.

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.

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.

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”.

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.

That’s funny, it took leaving al-anon and AA before the people I knew having problems and their families got better. We all look back at both 12-step programs as very cult like, using religious-style pandering language.

The anecdotes are meaningless. AA can work for a small subset of individuals, but It makes no sense for America to push AA as a first line treatment. AA is not a treatment, it’s a self-help group with poor results.

Pardon my disdain, but promoting AA over other solutions is frustrating for this formerly silent family in America who are fed up with the 12 step answer.