• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. 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
    2. 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
    3. 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
    4. 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
    5. 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
    6. 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
    7. 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 the href attribute empty on initial page load, capture the on click event, dump the mailto email address into the href 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
    8. 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