• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Linux users: after finishing distro hopping, where did you land?

      I've been running Linux for a little over a year now and, after a recent conversation on Tildes, I decided that I need to wipe and re-install so that I can enable full-disk encryption. Thus, right...

      I've been running Linux for a little over a year now and, after a recent conversation on Tildes, I decided that I need to wipe and re-install so that I can enable full-disk encryption.

      Thus, right now I'm shopping around for a distro and trying out different live environments to find something that works for me. My question isn't necessarily for right now though (my hardware is old enough that I'm definitely going to need to use a lightweight distro, which severely limits my options). It's more for the future, in that I plan to replace this computer in a year or two with something up-to-date, which means I'll be able to run any distro under the sun! Any!

      So, I'm curious to hear from people who have found their "forever distro." What do you run for your everyday use, and why? Also, what's your level of technical expertise? I am very far from a power-user at present, but I'd like to be somewhere closer to that when I replace my computer.

      44 votes
    2. What's a good habit that you're proud of? What's a bad one that you want to change?

      thought it would be interesting to hear some of your guys' habits in day to day life. feel free to answer only one of the questions if you feel uncomfortable or anything :) these are mine: the...

      thought it would be interesting to hear some of your guys' habits in day to day life.
      feel free to answer only one of the questions if you feel uncomfortable or anything :)

      these are mine:
      the good habit is definitely walking for 20 minutes every day.
      and the bad one is not sleeping enough.

      27 votes
    3. What's the origin of the name of this website?

      I got invited recently and registered my account, but since hearing of it I was curious of where the name comes from. Tildes are dyacritics in Spanish that you put on top of vocals líké thís, and...

      I got invited recently and registered my account, but since hearing of it I was curious of where the name comes from. Tildes are dyacritics in Spanish that you put on top of vocals líké thís, and they stress syllables and help with pronunciation. Now, it is a coincidence, isn't it?

      14 votes
    4. Could the display theme be account bound?

      Edit: What I'm asking below is actually already an option, I guess I'm just bad at reading :-/ As of right now, when you choose a theme, a theme cookie is created which takes a simple string value...

      Edit: What I'm asking below is actually already an option, I guess I'm just bad at reading :-/

      As of right now, when you choose a theme, a theme cookie is created which takes a simple string value (white, light, dark or black).

      It's straightforward and it works well, but for someone like me who set his browser to delete cookies at the end of his session, it's a little inconvenient to have to go into my settings to set a theme everytime I log on Tildes.

      It's a low-priority request, obviously, but maybe you could consider it? I do understand that it makes sense to have it as a cookie since a user may prefer different themes on different devices.

      In the meantime I think I'll just write a script to set my theme to black automatically.

      8 votes
    5. What are some of your favorite "lost" games?

      By "lost", I mean games that have been lost to time--games that you would not be able to play now, even if you wanted to. It could be because you cannot currently get a copy of the game (through...

      By "lost", I mean games that have been lost to time--games that you would not be able to play now, even if you wanted to.

      It could be because you cannot currently get a copy of the game (through legitimate means), or your own copy is not able to run since the tech has moved on. Perhaps the game's servers have been shut down or the multiplayer base has died out. Or, perhaps the game's development took it in a different direction and you're left hankering for an older build.

      31 votes
    6. Breaking all the rules

      In most of my programming, I try and remain professional, and do things in a readable, maintainable way, that doesn't involve pushing the language to breaking point. But, occasionally, I give...

      In most of my programming, I try and remain professional, and do things in a readable, maintainable way, that doesn't involve pushing the language to breaking point.

      But, occasionally, I give myself free reign. What if you didn't care about the programmer who came after you? What if you didn't care about what a programmer should do in a certain circumstance?

      For myself, over the years I've written and rewritten a C library, I like to call CNoEvil. Here's a little taste of what you could do:

      #define EVIL_IO
      #define EVIL_COROUTINE
      #include "evil.h"
      
      proc(example, int)
        static int i = 0;
        coroutine();
        While 1 then
          co_return(++i);
        end
        co_end();
        return i;
      end
      
      Main then
        displayln(example());
        displayln(example());
      end
      

      (And yes, that compiles. Without warnings. Even with -Wpedantic.)

      So... Here's the challenge:

      Ignoring the rules, and best practices... How can you take your favourite programming language... And make it completely unrecogniseable?

      (Might be best to choose a language with macros, like Nim, Rust, any of the Lisps. Though, you can still do some impressively awful things in Java or Python, thanks to overloading inbuilt classes.)

      Challenge Ideas:

      • Make Python look like C
      • Make Java look like Python
      • Make anything look like BrainFuck

      I don’t know how to really explain my fascination with programming, but I’ll try. To somebody who does it, it’s the most interesting thing in the world. It’s a game much more involved than chess, a game where you can make up your own rules and where the end result is whatever you can make of it. - Linus Torvalds

      21 votes
    7. The next president of the US makes climate change their top priority. What should be their first actions?

      Let's assume that they have full control over congress, so politics isn't an issue. I think looking at what a good global climate policy would be useful, because it allows us to see where we...

      Let's assume that they have full control over congress, so politics isn't an issue. I think looking at what a good global climate policy would be useful, because it allows us to see where we stand. It could also serve as a platform for future candidates.

      It seems to me that the new president should take a wide-ranging series of measures to curb emissions in all the major domains: electricity, transportation, agriculture, manufacturing, etc. [1]. You might argue that measures taken in isolation from other countries are not sufficient. While that's true, someone has to start. The US taking the lead on climate change would have a profound impact on all other countries. The US could use its very strong diplomatic weight to pressure other countries to adopt similar measures.

      So what should these measures be? The major one would seem to be a carbon tax, applied to all major sources of emissions: energy production (coal plants, ...), agriculture (cattle and meat imports), jet fuel (current taxes are very low), etc. Another one could be a tax on imports depending on how much the exporting country does against global warming. Maybe a new kind of free trade alliance among "climate-virtuous" countries could be created.

      Any thoughts? Have any serious global policy proposals been made and studied in the past?

      [1] : https://www.gatesnotes.com/Energy/My-plan-for-fighting-climate-change

      27 votes
    8. XML Data Munging Problem

      Here’s a problem I had to solve at work this week that I enjoyed solving. I think it’s a good programming challenge that will test if you really grok XML. Your input is some XML such as this:...

      Here’s a problem I had to solve at work this week that I enjoyed solving. I think it’s a good programming challenge that will test if you really grok XML.

      Your input is some XML such as this:

      <DOC>
      <TEXT PARTNO="000">
      <TAG ID="3">This</TAG> is <TAG ID="0">some *JUNK* data</TAG> .
      </TEXT>
      <TEXT PARTNO="001">
      *FOO* Sometimes <TAG ID="1">tags in <TAG ID="0">the data</TAG> are nested</TAG> .
      </TEXT>
      <TEXT PARTNO="002">
      In addition to <TAG ID="1">nested tags</TAG> , sometimes there is also <TAG ID="2">junk</TAG> we need to ignore .
      </TEXT>
      <TEXT PARTNO="003">*BAR*-1
      <TAG ID="2">Junk</TAG> is marked by uppercase characters between asterisks and can also optionally be followed by a dash and then one or more digits . *JUNK*-123
      </TEXT>
      <TEXT PARTNO="004">
      Note that <TAG ID="4">*this*</TAG> is just emphasized . It's not <TAG ID="2">junk</TAG> !
      </TEXT>
      </DOC>
      

      The above XML has so-called in-line textual annotations because the XML <TAG> elements are embedded within the document text itself.

      Your goal is to convert the in-line XML annotations to so-called stand-off annotations where the text is separated from the annotations and the annotations refer to the text via slicing into the text as a character array with starting and ending character offsets. While in-line annotations are more human-readable, stand-off annotations are equally machine-readable, and stand-off annotations can be modified without changing the document content itself (the text is immutable).

      The challenge, then, is to convert to a stand-off JSON format that includes the plain-text of the document and the XML tag annotations grouped by their tag element IDs. In order to preserve the annotation information from the original XML, you must keep track of each <TAG>’s starting and ending character offset within the plain-text of the document. The plain-text is defined as the character data in the XML document ignoring any junk. We’ll define junk as one or more uppercase ASCII characters [A-Z]+ between two *, and optionally a trailing dash - followed by any number of digits [0-9]+.

      Here is the desired JSON output for the above example to test your solution:

      {
        "data": "\nThis is some data .\n\n\nSometimes tags in the data are nested .\n\n\nIn addition to nested tags , sometimes there is also junk we need to ignore .\n\nJunk is marked by uppercase characters between asterisks and can also optionally be followed by a dash and then one or more digits . \n\nNote that *this* is just emphasized . It's not junk !\n\n",
        "entities": [
          {
            "id": 0,
            "mentions": [
              {
                "start": 9,
                "end": 18,
                "id": 0,
                "text": "some data"
              },
              {
                "start": 41,
                "end": 49,
                "id": 0,
                "text": "the data"
              }
            ]
          },
          {
            "id": 1,
            "mentions": [
              {
                "start": 33,
                "end": 60,
                "id": 1,
                "text": "tags in the data are nested"
              },
              {
                "start": 80,
                "end": 91,
                "id": 1,
                "text": "nested tags"
              }
            ]
          },
          {
            "id": 2,
            "mentions": [
              {
                "start": 118,
                "end": 122,
                "id": 2,
                "text": "junk"
              },
              {
                "start": 144,
                "end": 148,
                "id": 2,
                "text": "Junk"
              },
              {
                "start": 326,
                "end": 330,
                "id": 2,
                "text": "junk"
              }
            ]
          },
          {
            "id": 3,
            "mentions": [
              {
                "start": 1,
                "end": 5,
                "id": 3,
                "text": "This"
              }
            ]
          },
          {
            "id": 4,
            "mentions": [
              {
                "start": 289,
                "end": 295,
                "id": 4,
                "text": "*this*"
              }
            ]
          }
        ]
      }
      

      Python 3 solution here.

      If you need a hint, see if you can find an event-based XML parser (or if you’re feeling really motivated, write your own).

      4 votes
    9. Black Mirror S04E02 “Arkangel” discussion thread

      Previous episode | Index thread | Next episode Black Mirror Season 4 Episode 2 - Arkangel Worried about her daughter’s safety, single mom Marie signs up for a cutting-edge device that monitors the...

      Previous episode | Index thread | Next episode

      Black Mirror Season 4 Episode 2 - Arkangel

      Worried about her daughter’s safety, single mom Marie signs up for a cutting-edge device that monitors the girl’s whereabouts -- and much more.

      Black Mirror Netflix link


      Warning: this thread contains spoilers about this episode! If you haven't seen it yet, please watch it and come back to this thread later.

      You can talk about past episodes, but please don't discuss future episodes in this thread!


      If you don't know what to say, here are some questions to get the discussion started:

      • How does the title relate to the episode itself?
      • Are there any similarities between real life events and the episode?
      • Are there any references or easter eggs in the episode, such as references to past episodes?

      Please rate the episode here!

      11 votes