The text is in not-exactly-convenient database dumps (see other commenter’s link) and there are daily diffs (mostly bot noise), but then there are the images and other media, which are way up in the terabytes by now. There are some docs, maybe out of date, about how to run the software yourself. It’s written in PHP and it’s big and complicated.
- 0 Posts
- 20 Comments
It’s mostly ok, my immediate reaction is that it’s unnecessary to put the whole program into a class. Python isn’t Java. It’s fine to write procedures at the top level.
Also as someone said, consider using enums, and also the new case statement as of Python 3.10. Type annotations also can make things clearer. I’ve been using mypy to check mine but there are some alternatives now that might be better.
There is not much error checking but that can be ok if you are the only user.
If the config file might be crafted maliciously, it can use escape codes for a terminal playback attack: https://www.cyberark.com/resources/threat-research-blog/dont-trust-this-title-abusing-terminal-emulators-with-ansi-escape-characters
Be careful of that.
solrize@lemmy.worldto Linux@lemmy.ml•Retro, vaguely windows-95-looking linux distro that's actually usable and people like it?3·12 hours agoI’ve been using Debian MATE. It’s mostly ok.
I use Thunderbird and hate it. Full of bugs and cramdowns (not sure what the right term is) where they make a bad setting that you can’t undo. Also too difficult to find too many things. And way too many non-mail features. I haven’t bothered seeking a good alternative but Thunderbird leaves a lot to be desired. Forking isn’t likely to help much. It needs total replacement.
solrize@lemmy.worldto Technology@lemmy.world•Lenovo Cuts the Windows Tax and offers Cheaper Laptops with Linux Pre-installedEnglish7·13 hours agoThey’ve done that on and off for ages, and the ones being offered with Ubuntu here are mostly pretty expensive or else not so interesting. I’ve been content to buy older Thinkpads and self-install Debian for my past several laptops. I was somewhat tempted by recent Ideapad Yogas but resisted, and since then, prices have gone up, whether due to tariffs or whatever else.
solrize@lemmy.worldto No Stupid Questions@lemmy.world•Traveling Salesman is NP-Hard, yet Uber Eats delivery route optimization algorithms exist22·23 hours agoActual difficult instances of TSP are pretty rare, and for something like Uber Eats, it’s fine if your route is 2% worse than the mathematical optimum. Traffic fluctuations probably matter more than having the shortest route.
There are many good heuristics for TSP that might not give you the optimal solution, but that will generally come pretty close. The Wikipedia article probably describes some of these.
solrize@lemmy.worldto No Stupid Questions@lemmy.world•Where can I post a referral link? Makes me money and makes the other person about $20 within 10~12 mins10·1 day agoYour own damn blog that you host yourself. We don’t like spam here.
solrize@lemmy.worldto News@lemmy.world•After a scathing rebuke, judge grants DOJ an extension in deportation case17·1 day agoJudge: “That ends now”.
Also judge: “ok, have another week”.
solrize@lemmy.worldto Ask Lemmy@lemmy.world•Does a temporary employee qualify to enroll in health insurance immediately upon becoming full-time?2·12 hours agoChanging employment status is a qualifying event or whatever it’s called, so assuming the company offers its employees coverage immediately on hiring (not all do), you shouldn’t have to wait for open enrollment. However, while health coverage is a common benefit of employment, it’s not universal and policies vary by employer. That is: ask the company, or if for some reason you don’t want to ask, get a copy of the employee handbook, maybe by asking one of your co-workers for it. The info for the particular company is likely to be in there.
solrize@lemmy.worldto News@lemmy.world•'God has an order': Head of Trump's faith office says women must 'submit' to men3·2 days agoWait for the backpedaling when she finds out God is female.
Oh I see. The Linux kernel has been doing fine with mailing lists (LKML) for decades, if that helps.
solrize@lemmy.worldto No Stupid Questions@lemmy.world•What is the best way to take your blood pressure to get the most accurate results?1·2 days agoAt the dr’s office the idea is generally sit down and relax for a few moments, if you have gotten exerted by walking up stairs or whatever. Otherwise there’s not much special. The main difference is they usually have a nurse take your blood pressure with a manual squeeze bulb device, using a stethoscope to listen to your pulse underneath the cuff. This is more accurate than using an automatic pushbutton monitor like most people use at home. The pushbutton monitors work somewhat differently and inherently lose accuracy from that.
I don’t know if it’s possible to take your own blood pressure with the manual gizmo. You might need another person to do it (unless you’re one of those rare and exceptional people with three arms), and they have to know how. It’s not rocket science but it’s more complicated than pressing a button. There are online instructions and youtube vids showing how to do it, I’m sure.
It might be possible to build a fancier machine that does the manual-style measurement automatically, but it would be more expensive than the typical kind.
What does that even mean? If it’s a service, it’s a program running on some computer somewhere. Is that not hosting?
Mozilla propaganda. It’s not just about individually identifiable data. Privacy means not giving the bad guys ANY data, whether or not it points at any individual.
You can self host it.
Gerrit still exists for that. Whether it’s currently best, idk.
solrize@lemmy.worldto Programming@programming.dev•i want to learn/use functional programming language1·3 days agoYour crossposted question was a choice between Clojure and Common Lisp. Between the two I would say Clojure is more functional, but it comes with the baggage of the JVM. Common Lisp on the other hand is more of a 1980s language where you can use a functional style some of the time, and with some pain.
If you want a Lisp-like language, the usual starting point is Scheme, and if you want something with more creature comforts, try Racket. Either way, you’d start by reading SICP (fulltext here). But I think that whole approach misses out on an important aspect of FP, which is how type systems classify values.
So I’d say go with a typed functional language. OCaml is something like what you are used to, while Haskell is more “drinking from the fire hose” (steeper learning curve, but I think you will get more from it).
For Haskell, learnyouahaskell.com is a good place to start. I don’t know if there is something similar for OCaml. Haskell can be seen as a gateway drug to even more pointy headed languages like Idris.
Yet another thing to look at as a possible migration point from Ruby is Elixir. It’s not really so FP, but it’s very practical if you’re mostly interested in web development rather than programming languages per se. It’s dynamically typed like Ruby and uses Ruby-like syntax, so you should be able to switch to it fairly easily.
solrize@lemmy.worldto Selfhosted@lemmy.world•Beelink ME mini is a NAS with an Intel N200 processor and support for up to 6 SSDsEnglish1·5 days agoHow much do you expect to pay for the 24 NVMe disks?
solrize@lemmy.worldto Open Source@lemmy.ml•Potential Feature Suggestion: Open Source AO3 Fanfiction Recommendation Tool?1·9 days agoNoo, really, idk what Disco was but tags and recommendations from other humans are plenty to find good AO3 fic to read. And AO3 itself has been getting hammered for months, presumably by corporate AI crawlers. A recommendation engine would also have to crawl AO3. That’s very difficult to do because of said hammering. Even the regular download feature barely works now if you use fanficfare for it.
I haven’t looked in a few years but 20TB is probably plenty. I agree that Wikipedia lost its way once it got all that attention online and all that search traffic. Everyone should have their own copy of Wikipedia. I used to download the daily incremental data dumps but got tired of it. I still have a few TB of them around that I’ve been wanting to merge.