• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. 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?
      
      7 votes
    2. What have you been listening to this week?

      What have you been listening to this week? You don't need to do a 6000 word review if you don't want to, but please write something! If you've just picked up some music, please update on that as...

      What have you been listening to this week? You don't need to do a 6000 word review if you don't want to, but please write something! If you've just picked up some music, please update on that as well, we'd love to see your hauls :)

      Feel free to give recs or discuss anything about each others' listening habits.

      You can make a chart if you use last.fm:

      http://www.tapmusic.net/lastfm/

      Remember that linking directly to your image will update with your future listening, make sure to reupload to somewhere like imgur if you'd like it to remain what you have at the time of posting.

      7 votes
    3. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      12 votes
    4. Project: Miniature longsword

      Over the last couple of years my sister has been getting into HEMA (Historical European Martial Arts) and especially the longsword. She recently had a significant birthday so I thought I'd make...

      Over the last couple of years my sister has been getting into HEMA (Historical European Martial Arts) and especially the longsword. She recently had a significant birthday so I thought I'd make her a small, but realistic and functional, longsword. It went pretty well, if I do say so myself. I did not, however, take as many photos as I would have liked, but I was doing this thing in very short bursts so I only had a few minutes here or there to get this done.

      To start, I read a bit about longsword proportions, looked at some pictures and sketched a couple of possible designs, before finalising a 1:1 scale drawing to work from. I bought some O1 tool steel (carbon steel so it can be hardened and sharpened properly) and started to cut. Almost immediately I made a mistake, I cut the steel 25% too long. But that was OK, I just went with it.

      I roughly shaped the metal and got it in the forge to heat-treat. Plunged into oil then slammed hard into my newly-built plate quench (aside: the plate quench is two hefty slabs of aluminium, designed to suck heat out of the steel fast, while holding it flat to prevent warping). The plates worked, the metal came out dead flat and not at all warped, which was good because there was very little space to grind out any distortions. I heart plate quenching.

      Next, cutting up some brass to make the crossguard. Cutting a 1.5x3mm slot in that was incredibly frustrating. I broke all four of my remaining 1mm drill bits, eventually had to resort to very fine diamond burrs and going extremely slowly. Luckily there is a bit of overlap from the blade so the slightly messy slot is covered up a bit. Similarly for the pommel, which was cut from brass rod and shaped on my lathe before I totally botched cutting a hole for the tang. If anything I made more of mess of the pommel, during the final fit up I just filled it with glue and wedged it in the right place.

      Inbetween making an awful - albeit recoverable/hideable - mess of the sword hardware I also finished up shaping and finishing the blade itself. This is where I don't have a lot of photos, but I ground a bevel onto the blade and wondered about cutting a fuller (groove down the centre of the blade) before realising that I absolutely did not have the tools to do that and would make a total mess of it. I also thought about sharpening it to scary sharp but given my sister has two reasonably small children I left it fairly blunt. It'll make a good letter opener but not much more. If she wants it sharp I can always put a serious edge on it another time.

      Final pre-glue fit up, as you can see it matches the design drawing pretty well, apart from being to a slightly different scale.

      I had considered making a wooden handle, as is traditional, but I was running short on time and I had plenty of leather so instead I did two layers of wrapping. This is the base layer (I do not remember why I have 1mm orange leather but I do) wrapped and clamped so the glue can dry. Another layer went on top of that and I ran a final polishing disc over everything, put a very light coat of metal lacquer over the metal to keep it shiny and that was it. Sword done.

      I cut a piece of round bar steel, cut and forged it to shape as a support, treated the hot metal with beeswax (gives a lovely black finish which stops rust and looks nice). I set this in some flame-finished oak and gave that a coat of tung oil. Once the various finishes and glues had dried it was good to go.

      The final product, dangling point, handle detail, view from above and in my hand for scale

      I think this is one of the best things I've ever made. I hope my sister likes it. I have some metal left so I might try making another - there's a few things I'd do differently.

      14 votes
    5. What are your ISP support experiences?

      I just wanted to see what everyone else’s experience has been working with your ISP. I recently had a horrible experience and wanted to see if anyone else can relate and maybe just vent a little....

      I just wanted to see what everyone else’s experience has been working with your ISP. I recently had a horrible experience and wanted to see if anyone else can relate and maybe just vent a little.

      My recent experience: I moved to a new town, and I had been experiencing issues with my internet dropping out, as we all probably have had at some point, and I contacted Cox communications through their chat app. After multiple attempts to fix it, they finally sent a tech out to find that the coax connectors at the pole were rusted out. He replaced them but it wasn’t fixed completely. The tech dismissed it and said to just use it for now and I wouldn’t notice. So I did, and it wasn’t great at first, but it actually slowly got better and was good for a while until the last couple of weeks. This past week every single night it would drop out. I watched the connection drop while I was trying to watch mythic quest (great show btw) and every night for the past week the internet was unusable in the evenings. I then contacted Cox again multiple times, got a credit refunded back to my account and they wanted to do the whole reset modem thing again, so I did just to get to the next steps. Again they said use it and see if it improves, so I did, and it didn’t. I contacted them again, and again the modem reset, so I got fed up and filed a complaint with the FCC while I was chatting with this guy and he had the nerve to try and sell me home automation at the end of our chat!

      The next day goes by, a woman from their escalation lines contacts me about my FCC complaint and they send a new tech out. Turns out Cox never buried my original line in conduit, so the line was probably damaged underground as it was sending a weak return signal. The tech ran a new drop from a different tap and used the thickest coax I’ve ever seen. So far it’s been good after the new drop, but it took multiple chats and calls with two different field technicians and an FCC complaint to get it fixed. The worst part about it is Cox Communications is the only broadband ISP in my area other than Starlink and I seriously considered Starlink. So if you read this far, thanks! Please share your experiences if you’d like, or if you want to vent that’s okay.

      15 votes
    6. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      13 votes
    7. What did you do this week?

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their week. Did you accomplish any goals? Suffer a failure? Do...

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their week. Did you accomplish any goals? Suffer a failure? Do nothing at all? Tell us about it!

      13 votes
    8. Weekly coronavirus-related chat, questions, and minor updates - week of June 21

      This thread is posted weekly, and is intended as a place for more-casual discussion of the coronavirus and questions/updates that may not warrant their own dedicated topics. Tell us about what the...

      This thread is posted weekly, and is intended as a place for more-casual discussion of the coronavirus and questions/updates that may not warrant their own dedicated topics. Tell us about what the situation is like where you live!

      7 votes
    9. Weekly US politics news and updates thread - week of June 21

      This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate...

      This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate topic, but almost all should be posted in here.

      This is an inherently political thread; please try to avoid antagonistic arguments and bickering matches. Comment threads that devolve into unproductive arguments may be removed so that the overall topic is able to continue.

      8 votes
    10. What helps keep you off social media?

      Over the past couple years I've transitioned from spending far too much time on Reddit, to spending not as much but still too much time on Tildes instead, to spending much less time on Tildes and...

      Over the past couple years I've transitioned from spending far too much time on Reddit, to spending not as much but still too much time on Tildes instead, to spending much less time on Tildes and a reasonable amount of time reading stuff from https://longform.org/ and https://www.theflipside.io/ .

      I've found that these two sites (well, a site and an email subscription) respect my time, don't try to monopolize my focus, and provide decently nuanced info rather than outrage-inducing clickbait. They also don't have comments, which means I never get that feeling of needing to correct random internet users and get drawn into their nonsense.

      I'm wondering if there are others internet spaces that people find similarly useful in curbing their social media consumption.

      And more generally, I'm wondering what other, non-internet things help keep people off social media.

      As an example of the latter, lately I've been trying to get into the habit of going to the park after work and eating dinner there while reading a book instead of scrolling through Tildes comments or watching mindless youtube videos while I eat.

      20 votes
    11. Emulate a CRT screen with ReShade for your pixel-based games

      Why? In recent years, there has been a bit of a nostalgia boom for older CRT displays, sort of in the same vein as vinyls over CDs and digital music, and people have been rediscovering the...

      Why?

      In recent years, there has been a bit of a nostalgia boom for older CRT displays, sort of in the same vein as vinyls over CDs and digital music, and people have been rediscovering the technology.

      But something else that people have been rediscovering is that many older titles, from the NES all the way up to the PS2 era, were designed for CRT screens specifically. So much so that the graphical artistry can change entirely! A Twitter account called CRT Pixels has been documenting the difference across many games and the differences can be dramatic. Where LCD screens show each pixel exactly, the nature of CRT displays meant colours shifted and blended into each other and game artists of the time knew, tested for, and took advantage of this to create some amazing visuals.

      Sometimes you get the proper colours.

      Sometimes you get proper texture detail out of the image.

      Sometimes the background details come together and you see what it really was supposed to look like.

      Sometimes you'll see the characters actually have expressions on their faces.

      Sometimes you get the proper image entirely.

      Even in early 3D games, you'll see some pretty significant differences.

      Of course, it's not always good but such is the tradeoff. CRTs were blurry by nature and smaller objects will always look less crisp and clear than clean pixel representation. Ultimately it's all a matter of preference. But that doesn't mean trying it out to see if you like it or not should be difficult.

      Many emulators come with CRT emulating shaders built-in and support additional ones. But what about native PC games? We've seen a plethora of 2D indie games over the last decade, many going after the older nostalgic styles. Why not try them through a CRT filter and see if they hit that nostalgia button even harder?

      I've noticed that a lot of pixel-like or "low-res" indie games look pretty sharp. Too sharp. I wondered what it would be like if they were displayed on CRTs and, through this emulation method, I've come to really prefer it for the majority of pixel graphic games out there. Even games that are going after this new trend of PS1/N64 era graphics like DUSK seem to benefit some from it!

      Tools

      There are only two things you need to get started on Windows:

      Linux

      Unfortunately I'm not able to offer much by way of help to Linux users but from what I gathered this is also possible. It will take a little more elbow grease to get Linux's equivalent of ReShade going.

      If you're on Linux, you can use vkBasalt instead of Reshade. It's a ground-up post-processing solution like Reshade made for Linux that is mostly compatible with Reshade shaders. I'm not able to test this myself so I can't offer any guidance on setting it up with this particular CRT filter directly. There are some guides involving this, MangoHUD, and GOverlay on reddit's r/linux_gaming that go into more detail on installing this solution.

      Setting it up

      It's pretty easy! The basic gist is that you will be adding a few files and folders to your game installation folder. I've gone into a lot of detail in these steps but once you go through them, you'll see it's pretty simple. You'll be able to apply it to a new game in less than a minute!

      ReShade is not a program you install on your computer! Instead that .exe file is an automated tool that will place the necessary .dll, .ini, and shader files into your game installation.

      1. Open ReShade and click on the big button that says "Click here to select a game and manage its Reshade installation"
      2. You will see a list of applications installed on your computer. Select your desired game and click "Use selected application", or use "Browse" and manually navigate to the game's .exe file. I recommend going for Browse immediately, this list can take forever to finish loading.
      3. On the next screen, it will ask you what rendering API the game uses between DirectX 9, 10/11/12, OpenGL, or Vulkan. Select the proper one. If you are unsure, check PCGamingWiki, you will find it near the end of any game's page under "Other information".
      4. The final screen will ask you which effect packages you'd like to install. ReShade supports all kinds of postprocessing effects but we won't worry about any of them. Install only the Standard effects so that we get some basic support. Once you hit OK, you're all done with ReShade.
      5. Navigate to your game's folder and you will see that ReShade has added a few files (dxgi.dll, dxgi.log, ReShade.ini) and a new folder (reshade-shaders).
      6. Open the .zip you downloaded from the CRT Royale GitHub page and drag the reshade-shaders folder inside that archive into your game installation folder. The files will move and nothing should be overwritten.
      7. When you launch the game, you should see a notice at the top that Reshade is running. Press Home to bring up the ReShade menu. You'll see a prompt to view a Tutorial to using it. Try it if you like! Otherwise, we can skip it for now. You will then see a list of installed effects (.fx files). Enable CRT_Royale, and it will load immediately.

      You're basically done now! The filter will load with its stock settings. Of course, depending on your hardware and personal preferences, you may need to adjust the settings that pop up in the lower portion of the ReShade panel there.

      One thing that you may need to address immediately is a severe shake to the screen. This is caused by the Interlacing setting running on a high resolution input on a modern LCD screen. Interlacing is a key part of what gives CRT screens the look they have so disabling it is not my recommendation. Instead, we offset the shake with its options. To stop the shake, increase the Scanline Blend Strength. On my monitor, the shake is quite severe so I set this to a maximum 1.0, and then adjust the Scanline Blend Gamma up to 0.95 to counter the slight darkening this introduces.

      Configuring the CRT filter

      These instructions are specific to CRT Royale. I chose to use CRT Royale as it is perhaps the most feature-filled CRT emulating shader out there, and is generally the most flexible. There are many other CRT shaders out there that may serve your particular purposes or desires better, especially if you want to recreate certain artifacts from NTSC or PAL signals.

      In that last screenshot, you'll see all of the main factors to configure.

      Generally, the stock configuration is pretty good! The vast majority of changes you can make are to your own personal preference or even memory of what CRTs were like. You can hover almost all the settings bars to get a good description of what part of the CRT technology the setting emulates.

      Here's a selection of the options that you may want to consider playing around with:

      • Mask Sample Mode: Choose between Lanczos or Point. This is entirely preferential and can change game by game!
      • Mask Size Param: This is effectively the resolution of the CRT display. You can choose between Triad Width or Number of Triads Across, corresponding to the following two settings. If you want a higher resolution screen, or are going after a specific look, try adjusting these settings.
      • CRT Gamma or LCD Gamma: Feel free to adjust these if you find the CRT filter makes the game too dark for your liking.
      • Halation: This adjusts the emulation how inaccurate the phosphors of a CRT could be! Trying to go after a cheap, busted display from your youth where colours were unsaturated as all heck? Here's the option to get that effect!
      • Diffusion: The refraction effect of the glass on CRT displays. Having none basically means you can see all the triads of the CRT technology, the refraction is part of what gives CRTs there "warm" look.
      • Geom mode: The screen shape! Was your CRT curved? Flat? Maybe you had the Trinitron cylinder style? This will adjust the display to emulate the effect of playing on differently shaped CRT screens. The next few options under it give you the ability to tweak this further, if desired.
      • Border size: The size of the black borders around the screen. I turn this off, this was always my least favourite thing about CRT screens but if you're trying to introduce and adjust that CRT style screen border, use this and the next few settings.

      That's it

      And that's all you need to try it out, really! I recommend giving it a shot to see if it works for you. It can take a few minutes but if you're like me and find some 2D games look a bit too sharp, the colours don't transition very well, or that the foreground objects stick out a little too obviously then the CRT filter might help it out.

      I made a quick album using another 2D pixel graphics game called Blasphemous using the CRT filter. It was the game that finally inspired me to try this out and I think it fits the aesthetic of the game so much better. Things look that much gloomier and contrasted, and the softness added to characters and environments help them seem a bit less "video gamey" to me. Keep in mind that the CRT emulation effect looks a bit odd in still images as it's an effect that is in a constant state of flux.

      16 votes
    12. What did you do this weekend?

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their weekend. Did you make any plans? Take a trip? Do nothing at...

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their weekend. Did you make any plans? Take a trip? Do nothing at all? Tell us about it!

      10 votes
    13. 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!

      6 votes
    14. To all the shrinks I've known before

      Is this what therapy looks like for other people? I can't tell you how often I've come to the edge of sharing the following experiences--destructive, traumatic, bizarre: all the opposites of what...

      Is this what therapy looks like for other people?

      I can't tell you how often I've come to the edge of sharing the following experiences--destructive, traumatic, bizarre: all the opposites of what therapy is supposed to be. For months after the latest incident, I've needed to tell someone. I've struggled so hard with life and with putting things into writing, typing and erasing H-E-L- into the title field on Tildes over and over. Where do you go when therapists are the problem? Then, this morning, I woke up with this idea of squeezing the facts into a lightly comedic lyric. Try as I might, I guess I can't deny my métier. (I can clarify what gets lost in the parody.)

      Sing along if you know the tune and have a high tolerance for aural ipecac from the 1980s.

      To all the shrinks I’ve known before,
      I was ten and your help I begged for.
      You said, “Those aren’t real issues,
      Please spare some of my tissues.”
      You were a shrink I’ve known before.
      To all the shrinks who somewhat tried,
      Who thumbed their whiskers as I cried,
      One had a light-bar toy
      And called me a scared boy.
      He was a shrink I’ve known before.

      The winds of fashion keep on blowing,
      With each conference you attend.
      The only constant is me going.
      What won’t I do for friends!

      To the shrink who said, “talk speedier,”
      Then stalked my social media,
      You came to session with the flu,
      And so I got it too.
      Now you're a shrink I’ve known before.
      One hid his grins with coffee mugs,
      While second-guessing my psych drugs.
      He phoned the very dude
      With whom I had a feud,
      Now he’s just a shrink I’ve known before.

      The pandemic brought us video,
      Any doctor can be seen!
      But it’s the same as ab initio,
      Behind or just off screen.

      To the one who should have HIPAA claims,
      Whose spouse listened outside the frame,
      I heard him eating lunch,
      But you dismissed my hunch,
      Now you’re a shrink I’ve known before.
      To all the shrinks I’ve known before,
      Who apparently could not close doors,
      You broke my fragile trust,
      So say goodbye I must,
      To all the shrinks I’ve known before.

      13 votes
    15. I just got back from a seven-day Buddhist silent meditation retreat. Ask me anything (or share your own experiences of meditation retreat)

      As I mentioned in the screenless day thread I was at Cloud Mountain in the woods between Seattle and Portland. This was my 3rd retreat there, and the longest that I've sat - the previous two that...

      As I mentioned in the screenless day thread

      I was at Cloud Mountain in the woods between Seattle and Portland. This was my 3rd retreat there, and the longest that I've sat - the previous two that I attended were 2 days and 5 days respectively.

      There were two teachers on the retreat, fully ordained Buddhist nuns in the Thai Forest tradition of Theravada Buddhism. Ayya Santacitta and Ayya Santussika were both wonderful.

      I spent 8-10 hours a day meditating, split between sitting and walking meditation. Other than that, I ate 2 or 3 really tasty vegetarian meals a day, skipping dinner on the last few days (Buddhist monastics were doing intermittent fasting way before it was cool - only eating between sunrise and mid-day). Dinner is always served, soup and bread, but the monks don't eat, and some retreatants skip it as well. And...not much else. Eat, meditate, sleep, repeat.

      It was very well done with respect to covid safety - we all wore masks and social distanced. Everyone on the retreat was vaccinated (and this retreat center is making it a requirement starting in September). They took a vote at the beginning that gave us the option of removing our masks since everyone was vaccinated, but the vote to take them off had to be unanimous and it wasn't, so we all continued to wear them while indoors.

      ping: @kfwyre and @cfabbro

      30 votes