-
6 votes
-
Does the Reddit 'Popular' page base results on the user's preferences?
I use Reddit more than I should. I flip to the 'Popular' page to see current events. I am curious if I am looking at skewed results based on the subreddits and posts that I visit, or if I am truly...
I use Reddit more than I should. I flip to the 'Popular' page to see current events. I am curious if I am looking at skewed results based on the subreddits and posts that I visit, or if I am truly looking at a good sample of Reddit's popular posts?
3 votes -
What have you been watching / reading this week? (Anime/Manga)
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was...
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was cool, something that was bad, ask for recommendations, or anything else you can think of.
If you want to, feel free to find the thing you're talking about and link to its pages on Anilist, MAL, or any other database you use!
7 votes -
An origami simulator
11 votes -
How a fake persona laid the groundwork for a Hunter Biden conspiracy deluge
12 votes -
Elliptic Orbits explained by Albert Baez
4 votes -
Living legacy
4 votes -
Julie Fowlis – Dh’èirich mi moch madainn cheòthar (2017)
7 votes -
Why can we see a yellow band around Earth from space?
8 votes -
RIAA obtains DMCA subpoenas against Cloudflare and Namecheap targeting forty-one domains for YouTube-ripping platforms and pirate sites
29 votes -
The problem with (all) the tech hearings in Congress
7 votes -
DJ Drama, mixtapes, and the raid that changed rap
7 votes -
KORG Gadget is now available for the Nintendo Switch
8 votes -
New stent-like electrode allows humans to operate computers with their thoughts
8 votes -
How wheelbarrows are made
9 votes -
What memo did you not get?
We've all been in situations before where we're the odd one out: everyone's using a new app you had never heard of, everyone is wearing the same color for an event, etc. An often refrain in such...
We've all been in situations before where we're the odd one out: everyone's using a new app you had never heard of, everyone is wearing the same color for an event, etc. An often refrain in such situations is "Well I didn't get the memo". So I'm curious, what memos have you missed?
An example for me: I suddenly have started seeing lots of people using this substack website, which seems kind of like a Medium alternative. No clue where this came from or how it got big - I totally missed the memo on Substack.
19 votes -
Reddit worries it’s going to be crushed in the fight against Big Tech
16 votes -
Denmark has lashed out against the EU's plan to establish a minimum wage, arguing it would undermine a national labor-market model that's popular with unions and employers
7 votes -
Amazon's launch of a Swedish retail site has caused embarrassment – confusing, nonsensical and occasionally vulgar product listings scattered across the catalogue
6 votes -
Glitchtale OST: Bring it on! (Lo-Fi remix)
5 votes -
What creative projects have you been working on?
This topic is part of a series. It is meant to be a place for users to discuss creative projects they have been working on. Projects can be personal, professional, physical, digital, or even just...
This topic is part of a series. It is meant to be a place for users to discuss creative projects they have been working on.
Projects can be personal, professional, physical, digital, or even just ideas.
If you have any creative projects that you have been working on or want to eventually work on, this is a place for discussing those.
6 votes -
Kartell - Time (ft. Qendresa & Coops) (2020)
4 votes -
Statue of a woman made out of rubble from Beirut mega explosion - Lebanese artist Hayat Nazer
6 votes -
Why the extortion of Vastaamo matters far beyond Finland – and how cyber pros are responding
4 votes -
Greta Thunberg reflects on living through multiple crises in a 'post-truth society'
7 votes -
Joni Mitchell is releasing some of her previously never-published early recordings
5 votes -
Vincent Neil Emerson - 25 & Wastin' Time (2020)
4 votes -
What games have you been playing, and what's your opinion on them?
What have you been playing lately? Discussion about video games and board games are both welcome. Please don't just make a list of titles, give some thoughts about the game(s) as well.
17 votes -
New Age bullshit generator
9 votes -
Where loneliness can lead: Hannah Arendt enjoyed her solitude, but she believed that loneliness could make people susceptible to totalitarianism
9 votes -
Reply All - #168 Happiness Calculator vs. Alex Goldman
6 votes -
SpaceX reveals monthly cost of Starlink internet in its "Better Than Nothing Beta"
14 votes -
Architectural Design Patterns
8 votes -
Is this a reply quoting bug or feature?
I noticed an odd behavior, and I can't tell if it's an intended feature, or if it's a mistake. I selected some text in a comment. I then scrolled it offscreen as I read more comments. Eventually,...
I noticed an odd behavior, and I can't tell if it's an intended feature, or if it's a mistake. I selected some text in a comment. I then scrolled it offscreen as I read more comments. Eventually, I started to reply to a comment further down on the page. When I pressed the "Reply" button, it used the selected text from an entirely different comment as a quote block in the reply.
I think it makes sense to pull selected text into a reply, if the selected text is part of the comment you're replying to. I was surprised to see it happen when replying to a different comment. Is this intentional or a bug?
7 votes -
Come From Away - Welcome to the Rock (2013)
5 votes -
A Gentlemen's Guide to Love and Murder - I've Decided to Marry You (2014)
4 votes -
Tracking down an old guitar riff
Yesterday, I was talking with my dad about western swing and similar country music in a conversation about my grandfather who was a mandolin player in a red dirt/western swing band on old timey...
Yesterday, I was talking with my dad about western swing and similar country music in a conversation about my grandfather who was a mandolin player in a red dirt/western swing band on old timey radio in Texas during the post-war years. Unfortunately, I was never able to connect with my grandfather through music because I was still fairly young when he passed away, but I put on his favorite band, Bob Wills and the Texas Playboys, while I was thinking about him and getting some work done.
The Spotify top tracks led me to Steel Guitar Rag from 1936. Shortly after the 40 second mark, you will hear a guitar riff that sent me on a scavenger hunt, texting a couple different friends for help and skipping around songs for half an hour. The riff felt really familiar but more uptempo in my head than in the Bob Wills track. My first thought was the band WOLF!, maybe a track like Humdinger. Good song but not it. A friend of mine suggested Folsom Prison Blues, but that has a distinctly different riff in it.
Eventually, it struck me that I knew the riff from a King Curtis live album from 1966, I just needed to skip around until I found it in one of the tracks. The track is titled Medley: Peter Gunn / Get Long Cindy, and the riff starts after the 3:25 mark. Pretty similar don't you think?
10 votes -
Rob Cantor - "Shia LaBeouf" Live (2014)
17 votes -
RIP Google Play Music, 2011–2020 - A look back at the nine-year life of Google's music service
24 votes -
HBO Max and Cartoon Network are heading to Tiny Toons Looniversity with a new series
5 votes -
What are you reading these days?
What are you reading currently? Fiction or non-fiction or poetry, any genre, any language! Tell us what you're reading, and talk about it a bit.
13 votes -
Deleting your Facebook account forfeits Oculus VR games you already paid for
23 votes -
Fifty years off-grid: architect-maker paradise amid NorCal redwoods
8 votes -
Nintendo Direct Mini: Partner Showcase - October 2020
7 votes -
Did the US founders have contemporary exposure to demagoguery?
11 votes -
Running tabletop RPG games with Obsidian
10 votes -
Cyberpunk 2077 release date delayed again, now December 10
22 votes -
XDA Pro1-X phone announced with physical keyboard, available with Lineage and Ubuntu
12 votes -
Programming Challenge: Over-engineer obfuscation of a mailto link on a hypothetical webpage
This is a bit of a silly challenge that came to mind when I saw a discussion about obfuscating mailto links on the unofficial Discord server. This challenge is intentionally meant to be ridiculous...
This is a bit of a silly challenge that came to mind when I saw a discussion about obfuscating mailto links on the unofficial Discord server. This challenge is intentionally meant to be ridiculous and encourages horrendous solutions that should never see the light of day in actual production code.
Some Background
On the internet, bots are an incredibly common. They may do anything from crawling through webpages to map out valid links on the web, to spamming forums with links to scam websites. Among some of the less ethical uses of bots is the collection of any email addresses that might be sitting around in a webpage's source code, either made visible to the user or hidden behind some alternative text. These bots collect these email addresses for any number of purposes, including phishing attempts to hijack accounts.
Commonly, these emails can be found sitting inside of so-called mailto links, which will open your default mail application and pre-populate the recipient's address, preparing you to send a new email in a single click. It's a safe bet that the vast majority of mailto link implementations aren't very sophisticated, simply providing a snippet that looks much like the following:
<a href="mailto:johnsmith@example.com">Contact Me</a>
Given the above, most bots will likely only ever scrape a webpage for a link containing
href="mailto:
. A simple form of obfuscation to combat a bot could be to leave thehref
attribute empty on initial page load, capture the on click event, dump the mailto email address into thehref
attribute, and finally remove the on click event handler from the link before re-sending the click event.We're not here for simple, however.
Challenge
As suggested in the title, the challenge is to over-engineer this obfuscation. There is only one hard requirement:
Clicking the "Contact Me" link should, to the user's perception, function (mostly) identically to a simple mailto link. Specifically, clicking the link should ultimately result in the user's mail application opening (or being prompted to open) with no further input from the user and the "to" field being correctly pre-populated with the intended email address. This means that captchas and the like are not allowed. Delays in triggering the mail application due to processing layers of obfuscation, however, are expected and acceptable (although "until well after the heat death of the universe" is not an acceptable delay, so let's be reasonable).
Apart from the requirement above, solutions that require increasingly more sophisticated methods of de-obfuscation for a bot to discover your email address are preferred. The more complicated a bot's design would need to be to discover your email address, and the more painful it is for other programmers to see the abomination you've created, the better.
CSS is not required. A functioning webpage is not required. An entire web server is not required. A full, working web project including a framework with defined routes, security features, a VM provisioning script, and whatever the fuck else you would need is not required. You can build an actual web project around this if you wish, but code snippets and some comments explaining what does what will be more than sufficient.
11 votes -
Really specific formatting bug? Putting 2 "larger than" (quote trigger) characters separated by a paragraph break in a codeblock will add an extra "larger than" character between them.
To simplify the title: (Formatted text, no space. (Behind the arrows.) While it's expected for quote blocks to not separate with one 'line' between them, it's definitely not expected for the block...
To simplify the title:
(Formatted text, no space. (Behind the arrows.) While it's expected for quote blocks to not separate with one 'line' between them, it's definitely not expected for the block to be the same size, even w/o text.)
(Formatted text, with a space. Added this one in to contrast with Preformatted w/ space and because it separates the code blocks.)
> > >
(Preformatted/Codeblock text, no space. The "quote trigger" arrow in the middle is the bug, since if you look at the "view markdown" option of this post you'll realize that arrow shouldn't be there.)
> >
(Preformatted/Codeblock text, with a space. This is how I personally fix the bug, if it is that. You can also fix it by typing space into the phantom arrow.)
Now with text inside the quote blocks, for comparison. (And because quoteblocks have to quote something.):
qwerty
asdf
(Formatted text, no space. Here the block expands normally for the text.)
qwerty
asdf
(Formatted text, with a space.)
>qwerty > >asdf
(Preformatted/Codeblock text, no space. The arrow in the middle I never typed in is still there.)
>qwerty >asdf
(Preformatted/Codeblock text, with a space.)
8 votes