• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Weekly megathread for news/updates/discussion of Russian invasion of Ukraine - June 1

      This thread is posted weekly on Thursday - please try to post relevant content in here, such as news, updates, opinion articles, etc. Especially significant updates may warrant a separate topic,...

      This thread is posted weekly on Thursday - please try to post relevant content in here, such as news, updates, opinion articles, etc. Especially significant updates may warrant a separate topic, but most should be posted here.

      If you'd like to help support Ukraine, please visit the official site at https://help.gov.ua/ - an official portal for those who want to provide humanitarian or financial assistance to people of Ukraine, businesses or the government at the times of resistance against the Russian aggression.

      25 votes
    2. Best products to bring back to Europe from the US

      I'm a US citizen living in Berlin, and I'm currently back in the US (Northeast Ohio specifically) for a family wedding. We've got a lot of extra room in our suitcases, so I want to bring stuff...

      I'm a US citizen living in Berlin, and I'm currently back in the US (Northeast Ohio specifically) for a family wedding. We've got a lot of extra room in our suitcases, so I want to bring stuff back that's hard(er) to get ahold of in Germany. I figured this is a good place to ask for any recommendations from others who live in Europe or have experience traveling!

      As an example, here are some of the common recs I've seen in threads on r/germany:

      • bulk OTC meds like aspirin and tylenol (not hard to find in Germany but cheaper in the US)
      • brown sugar
      • double-acting baking powder
      • Frank's red hot sauce (maybe other hot sauce as well, Germans are not a spicy people)
      • Ranch dressing (I've heard the powdered kind is better bc it's easier to pack?)
      • Adobo seasoning (probably other Latin American ingredients too but this one specifically is a must-buy even for my white ass)
      • specific brands of candies & junk food not available in Germany (though ime this category is the easiest to find at US-themed international stores, albeit at high prices)
      • Levi's jeans for some reason (I don't really get this one tbh but I always see Germans saying it in threads)

      I know for sure I'll get home and immediately regret not having purchased something. Anyone with experience traveling between these two continents, please let me know if you think of something missing from this list!

      16 votes
    3. Anyone here in or familiar with Denver and the surrounding area? Going on a trip and have zero idea what to do as a non-tourist...

      Ok, so the "Going on a trip and have zero idea what to do as a non-tourist..." isn't entirely true like it was in my post about NYC last year, but everyone was extremely helpful and threw out...

      Ok, so the "Going on a trip and have zero idea what to do as a non-tourist..." isn't entirely true like it was in my post about NYC last year, but everyone was extremely helpful and threw out suggestions I wouldn't have even thought about looking for. So here I am again to bug you wonderful people for Tildes Travel Guide 2: Electric Denver Boogaloo

      Same as before, staying for a week, I do have a rental car this time (trying to decide between the comfort of a Lexus or sportiness of an Alfa Romeo, damn car guy indecisiveness) so transport is less of an issue, anything that you'd suggest to see/do?

      13 votes
    4. Does anyone else read webcomics?

      I was wondering if anyone else around here consistently reads any of the many webcomics out there. I really love reading XKCD, CommitStrip, Questionable Content, Alice Grove, and Mare Internum. If...

      I was wondering if anyone else around here consistently reads any of the many webcomics out there. I really love reading XKCD, CommitStrip, Questionable Content, Alice Grove, and Mare Internum.

      If you'd like to have a discussion about art styles, writing, the communities around the comics, how in the world Randall Munroe manages to continually come up with ideas for comics that make XKCD even more relevant for everything, or whatever else you might want to talk about, I'd love to talk with you about it.

      20 votes
    5. Fortnightly Programming Q&A Thread

      General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...

      General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.

      Don't forget to format your code using the triple backticks or tildes:

      Here is my schema:
      
      ```sql
      CREATE TABLE article_to_warehouse (
        article_id   INTEGER
      , warehouse_id INTEGER
      )
      ;
      ```
      
      How do I add a `UNIQUE` constraint?
      
      5 votes
    6. Programming Challenge: Mini Calendar Display

      It has been a while since the last time we did something like a programming challenge, so here's one for ya. The life story of the author before you get to the recipe I've been working on a little...

      It has been a while since the last time we did something like a programming challenge, so here's one for ya.

      The life story of the author before you get to the recipe

      I've been working on a little "today" website, showing what day it is, if it's a significant date for holiday/independence/... reasons, and one of the things I wanted was a small calendar display that showed the full month and days in each week. Like how XFCE's Clock plugin does it.

      So I got to figuring it out and after finishing it up I thought this could be a nice little programming challenge. It has one input (the date) that can be in any of the rows and columns, and it's up to you to figure out all the rest.

      Here's how mine looks in about 250ish lines of TypeScript (TSX technically) and SCSS.


      The Recipe

      Make a mini calendar display that shows all the days of the current month and at least one day of each adjacent month. So for example for May 2023: the 31 days in May, the 30th of April and the 1st of June should at least be visible.

      It can be in any language with any method of rendering; simple text, TUI/GUI toolkit, web-based, raytraced in some game engine, nixie tubes, whatever.

      Bonus Points

      • Highlight the current day name in the first row, if you're including day names.
      • Highlight the current day number, wherever it is.
      • Highlight the current week row, wherever it is.
      • Differentiate the days of current month and the days of the other adjacent months, wherever they are.

      Some Tips

      The week number

      If your programming language of choice doesn't have a built-in way to get the week number, like JavaScript doesn't, this website may have you covered.

      Testing

      Make sure to test multiple different input dates, I thought I was finished with my display until I tried some other dates and noticed that there were still some bugs left to squash.

      Starting

      If you know what the first day in the calendar should be, counting up is as easy as "one two three"!

      Weeks

      If you use 6 weeks in the display, you will always have enough space to fit all the current month's days and the minimum 1 day of the adjacent month's too.


      Showcase

      If at all possible and with at least a few entries I will try to run all the submissions myself and create a little showcase website for it.

      16 votes
    7. Midweek Movie Free Talk

      Have you watched any movies recently you want to discuss? Any films you want to recommend or are hyped about? Feel free to discuss anything here. Please just try to provide fair warning of...

      Have you watched any movies recently you want to discuss? Any films you want to recommend or are hyped about? Feel free to discuss anything here.

      Please just try to provide fair warning of spoilers if you can.

      19 votes