HN user

dlkmp

128 karma
Posts0
Comments54
View on HN
No posts found.

Can't help but thinking how handy PowerShell is out of the box for tasks like this.

Translating the examples from the ReadMe, having read the file with:

  $medias = Get-Content .\medias.csv | ConvertFrom-Csv
Previewing the file in the terminal
  xan view medias.csv
  $medias | Format-Table
Reading a flattened representation of the first row
  xan flatten -c medias.csv
  $medias | Format-List
Searching for rows
  xan search -s outreach internationale medias.csv | xan view
  $medias | Where-Object { $_.outreach -eq "internationale" } | Format-Table
Selecting some columns
  xan select foundation_year,name medias.csv | xan view
  $medias | Select-Object -Property foundation_year, name | Format-Table
Sorting the file
  xan sort -s foundation_year medias.csv | xan view -s name,foundation_year
  $medias | Sort-Object -Property foundation_year | Select-Object -Property name, foundation_year | Format-Table
Deduplicating the file on some column
  # Some medias of our corpus have the same ids on mediacloud.org
  xan dedup -s mediacloud_ids medias.csv | xan count && xan count medias.csv
  $medias | Select-Object -ExpandProperty mediacloud_ids -Unique | Measure-Object; $medias | Measure-Object -Property mediacloud_ids
Computing frequency tables
  xan frequency -s edito medias.csv | xan view
  $medias | Group-Object -Property edito | Sort-Object -Property Count -Descending
It's probably orders of magnitude slower, and of course, plotting graphs and so on gets tricky. But for the simple type of analysis I typically do, it's fast enough, I don't need to learn an extra tool, and the auto-completion of column/property names is very convenient.
Kagi Translate 2 years ago

Just as a quick usability feedback: As long as Deepl translates asynchronously as I type, while Kagi requires a full form send & page refresh, I am not inclined to switch (translation quality is also already too good for my language pairs to consider switching for minor improvements, but the usability/ speed is the real feature here).

This is coming from a user with existing Kagi Ultimate subscription, so I'm generally very open to adopt another tool if it fits my needs).

Slightly offtopic, slight related: As already mentioned the last time Kagi hit the HN front page when I saw it: the best improvement I could envision for kagi is improved search performance (page speed). I still encounter multiple second page loads far too frequently that I didn't notice with other search engines.

We cannot, okay, I see the point. Up to now, I considered the inability to express modifications on existing resources a limitation of the declarative model but I can see how adding state can help here.

With Bicep, we mostly deploy only the initial state and then we either re-deploy the whole thing or, if this isn't possible due to the interruptions this causes, add migration scripts in an imperative language (az cli/ pwsh). Which is admittedly the much less elegant approach.

Interesting example. For context, I have only experience with Azure Bicep so "no state" is my default assumption on IAC languages.

Do you in practice really use random names? In my experience, I'd just use a loop vm01...vm10 for the names and the passwords aren't needed to identify an instance after the deployment so here randomness isn't an issue.

That sounds almost impossible to me. I feel like half of everything I purchase which has a manual doesn't ship with a physical manual, but instead comes with a printed QR code to "get instructions". If it's a gadget that comes with an App, there will be a QR code linking to that app. I know multiple bars/ restaurants which won't send waiters to your table but expect you to scan the QR code on the table and order with your phone.

Yes we can say "no", no matter the billions of dollars some companies may invest in their product.

I can relate to this kind of excuse in case of fat children who don't fully control their eating habits and rely on whatever food their parents make available to them. For self—sufficient adults, it's a pathetic opinion to have about your own level of control.

If you had to start over, would you still recommend to yourself to learn F# in 2022?

I am asking this as someone who has dabbled in functional languages (F#/ Haskell) multiple times over the years but, despite liking the elegance of functional code, never reached a level of productivity that came close to what I am used to from imperative languages. Specifically for C#, given the trend of baking more and more of the cool functional stuff into the language (e.g. [1]), I am wondering whether F# still has enough unique features to justify the effort.

[1] see e.g. https://devblogs.microsoft.com/dotnet/early-peek-at-csharp-1...

Less children means that 100 years from now there will be less strain on the environment

Population growth is influenced by other factors than reproduction, namely immigration. I don't think it makes much sense to consider the environnmental aspect of population growth on a national level.

Does the caching reliably work in common webservers by now? I remember having read a couple years ago that Apache would simply clear its cache if the connection to the ocsp provider breaks (or did something similar unhelpful, resulting in an error to the enduser).

You're getting a lot of negative feedback so I just want to say I can relate a lot to the model you're proposing (and practicing).

I interview fairly often with potential employers, sometimes just for the experience and insights. Never once did I consider taking a job for other reasons than the type of work and its pay (commuting time and factors not directly in control of the company aside).

I'm not even the type of person who hates team events and the like, at least at the companies I have been working at these usually were a lot of fun. It's just nothing that keeps me from moving on from or motivates me to take some job.

One has to take the perspective of the author into account here. He's a psychology MD and seems to have a lot of experience with people with major eating disorders such as bulimia.

I find it quite convincing that for this type of patient, regular eating patterns can help to restore a healthy approach to food as they are starting with extremely unhealthy eating habits to begin with.

The conclusion, as formulated in the title, does seem to generalize these findings a bit too much. At least it lacks evidence on how generally healthy (maybe somewhat overweight) people who attempt IF as a dieting measure tend to develop unhealthy longterm eating habits.

I use Tiny Tiny RSS as a self-hosted solution, very quick to setup and offers lot's of features. The UI is a bit hard to use from a smartphone, though, at least with my font sizes.

I've only started using RSS for a couple weeks and have just added blogs organically as I found them mostly from HN and lobste.rs. You don't need a big list of blogs to start with to profit from RSS, just add the HN feed and go from there.

And oh, I also migrated my youtube subscriptions to RSS, it's much more convenient imho.