tkot's comments

tkot | 7 months ago | on: Our European search index goes live

If a search engine (be it Ecosia, Qwant, DDG or Google) is used by someone who is running uBlock Origin, does it benefit the company running the engine or does the cost of queries with no chance of displaying an add to the user outweigh the benefit from the meager amount of data collected (IP address? Interest in given keywords? Some more data for tuning the search results?)?

tkot | 1 year ago | on: Deciphering language processing in the human brain through LLM representations

> For example, the German "Ich sehe die Frau mit dem Fernglas" (I see the woman with the binoculars) is _unambiguous_ because "die Frau" and "mit dem Fernglas" match in both gender and case. If this weren't the case, it could be either "I see (the woman with the binoculars)" or "I see (the woman) with [using] the binoculars".

My German is pretty rusty, why exactly is it unambiguous?

I don't see how changing the noun would make a difference. "Ich sehe" followed by any of these: "den Mann mit dem Fernglas", "die Frau mit dem Fernglas", "das Mädchen mit dem Fernglas" sounds equally ambiguous to me.

tkot | 2 years ago | on: My favorite coding question to give candidates

The noun is not the issue but rather the scope of uniqueness:

>Now, given two log files (log file from day 1 and log file from day 2) we want to generate a list of ‘loyal customers’ that meet the criteria of: (a) they came on both days, and (b) they visited at least two unique pages.

It appears to me that the requirement could be interpreted as either:

"(visit on day 1) AND (visit on day 2) AND (total unique pages count > 2)"

a clearer way to put it would be "visited at least two unique pages in total"

or "(visit at least two unique pages on day 1) AND (visit at least two unique pages on day 2)"

a clearer way to put it would be "visited at least two unique pages on each day"

tkot | 2 years ago | on: URL Explained – The Fundamentals

> Host: (always present, not always visible)

Hostname can be skipped in file URI and localhost will be assumed, maybe that's what the author meant.

tkot | 2 years ago | on: My favorite coding question to give candidates

Does visiting pages A and B on day 1 and visiting page A on day 2 also make the sentence true? I think that's the source of ambiguity (or maybe it's ambiguous to me only because English is not my native language).

tkot | 2 years ago | on: Spacedrive: Unify files from all your devices and clouds into one explorer

Yup, it's also very useful for doing stuff like checking archive integrity after upload (got bitten by it once when uploading some archives via FTP) and syncing with cloud - I've had a dedicated client remove files from my PC instead of the cloud after desync, rclone makes it easy to check what will be done and works with pretty much every service available.

tkot | 2 years ago | on: Full Text of the Federalist Papers

>in your opinion what is the difference between a Republic and a Democracy?

To keep things simple: democracy -> majority rule

republic -> majority rule + no inheritance of public offices (so no monarch)

Of course it can get more complicated than that - democracies can differ in terms of who can and cannot vote, freedom of press, how exactly the separation of powers is handled (or if the powers are separated at all), what method is used to distribute seats in the parliament, how much power is held by the president and how much is held by the prime minister etc.

By that definition US and UK are both (representative) democracies but of these two only the US is a republic and UK is a parliamentary ("constitutional" sounds pretty weird in this context given that there is no codified constitution) monarchy (while still being a democracy).

tkot | 2 years ago | on: Full Text of the Federalist Papers

Isn't it a matter of words changing meaning over time? Could it be that what James Madison called "democracy" corresponds to "direct democracy" in modern understanding and "republic" corresponds to "representative (indirect) democracy" in modern parlance?

If not, then what are the differences between republic described by Madison and representative democracy?

tkot | 2 years ago | on: Improbably Right

I was responding to the person mentioning 100km/h as the correct answer (firstlink).

tkot | 2 years ago | on: Improbably Right

I think you are thinking about a case where someone goes 120km/h for 1 hour and then 80km/h for 1 hour instead of going over a fixed distance at 120km/h and then going over the same distance at 80km/h.

tkot | 3 years ago | on: Idiot Proof Git

I'd probably suggest --force-with-lease just to be sure ;)

tkot | 3 years ago | on: List of Creepypastas

It won't work in cases where the stories require images or interaction but for text-based stories I use

curl <pasta url> | html2text | less

Just to be sure ;)

tkot | 3 years ago | on: Parsing SQL

Libraries written in SQL. I'm sure one can search for let's say a snippet that will create a date dimension table for a data warehouse and copy it but it's pretty clunky compared to even Python modules.

I'm criticizing SQL as a language which is lacking in composability (as opposed to criticizing relational algebra or relational data model).

Libraries for working with SQL (full-fledged ORMs or simpler query builders) are themselves written in a different language so they don't necessarily prove anything about SQL itself, though one could argue that if people want to use them then they might not be satisfied with raw SQL.

page 1