I’ve been using JS for a long time, and have worked on some date and time libraries, and only got 12/28. Wow there’s a lot of edge cases.
Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @dan@d.sb
- 5 Posts
- 832 Comments
They’re likely not intentionally crawling Lemmy. They’re probably just crawling all sites they can find.
Won’t the bots just switch to using that instead of the heavier JS challenge?
tbh I kinda understand their viewpoint. Not saying I agree with it.
The Anubis JavaScript program’s calculations are the same kind of calculations done by crypto-currency mining programs. A program which does calculations that a user does not want done is a form of malware.
The Anubis site thinks my phone is a bot :/
tbh I would have just configured a reasonable rate limit in Nginx and left it at that.
Won’t the bots just hammer the API instead now?
dan@upvote.auto Technology@beehaw.org•TikTok is being flooded with racist AI videos generated by Google’s Veo 324·13 days agoHand-crafted, locally-grown, artisinal racist videos.
dan@upvote.auto Selfhosted@lemmy.world•Introducing reitti: a selfhosted alternative to Google TimelineEnglish3·13 days agoI’d love to see an integration with PhotoStructure in addition to Immich.
dan@upvote.auto Selfhosted@lemmy.world•Linkwarden (v2.11.0) - open-source collaborative bookmark manager to collect, organize, and preserve webpages, articles, and documents (tons of new features!) 🚀English14·18 days agoHow’s it compare to Hoarder/Karakeep?
dan@upvote.auto Selfhosted@lemmy.world•Google killed Maps Timeline, so I self-hosted a better one [OwnTracks]English16·23 days agoBecause of various privacy legislation, and people not wanting Google to track them as much, they stopped syncing the data to Google servers. As someone who’s worked at big tech companies, my guess would be that storing so many people’s location history was flagged as an issue during a privacy audit.
It’s entirely local now. You can enable encrypted backups and back up the data, however you can really only have the data on one device now, and the web version is gone.
TypeScript doesn’t need the “function” keyword for a method in an object or on a class though.
const foo = { bar(): string { ... } }
which I assume is doable because the syntax is unambiguous.
In PHP’s case, the method syntax should also be unambiguous.
The first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.
TypeScript doesn’t need the “function” keyword for a method in an object or on a class though.
const foo = { bar(): string { ... } }
which I assume is doable because the syntax is unambiguous.
PHP’s object orientation is similar to languages like Java and C#, which is what I was comparing to.
It enforces scalar types (string, int, etc) at runtime if you enable strict mode. There’s also static analysis tools like PHPStan and Psalm that will flag issues at build time.
Can we talk about PHP functions with typehints too?
public static function foo(): string {
Practically every other language with similar syntax does this instead:
public static string foo() {
Older variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array.
In modern BASIC variants, DIM has become a backronym: “declare in memory”.
had to upgrade due to DDOS
If you keep getting DDoS attacks, then I’d recommend getting DDoS protection from your hosting provider, or using Cloudflare. A lot of hosting providers can provide DDoS protection if you pay a bit extra per month.
dan@upvote.auto Technology@beehaw.org•Trump Taps Palantir to Create Master Database on Every American23·2 months agodeleted by creator
dan@upvote.auto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Corridor Digital downloader?English3·2 months agoAs far as I know, most of the major streaming services use Widevine L1. Some (like Netflix) use L3 for resolutions up to 720p and L1 for higher resolutions.
dan@upvote.auto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Corridor Digital downloader?English8·2 months agoA lot of video streaming sites (maybe most of them?) used a chunked video format like HLS (HTTP Live Streaming) or DASH (Dynamic Adaptive Streaming over HTTP), where the video is split into a large number of ~5 second clips, rather than having a single video file. All video streaming services that change video quality based on bandwidth uses technologies like these.
The videos are likely also encrypted with a DRM scheme like Widevine. yt-dlp can take a HLS or DASH stream and stick all the small video files back together, but I don’t think it can deal with DRM. Videos with DRM also can’t be captured using screen recording software, unless you do something like using a HDMI cable that strips HDCP.
Are you asking for sanity in this abomination?