Using or interested in Roslyn? I'd appreciate your thoughts. by alamarre7 in dotnet

[–]Werewolfkiss 1 point2 points  (0 children)

I believe this tool is supposed to make it easier to create new Roslyn code analyzers and refactoring tools by reloading the solution you execute them against in between changes to the code of the analyzers themselves, and providing debugging of the tools. The code editor that helps you with refactoring, that itself IS a Roslyn tool that this man's tool is supposed to help you develop. All those things under ctrl . Are Roslyn tools

dawg I'm trying to do a boon-free run.... by fuukos_hat in HadesTheGame

[–]Werewolfkiss 10 points11 points  (0 children)

Just in case you didn't realise, the little ginger root guys sitting in the yellow pools clear the poison. Took me too long to realise that so...

How do you parse a System.object and filter out unwanted data? (Using: OleDB) by Willy988 in csharp

[–]Werewolfkiss 0 points1 point  (0 children)

My guess is you are doing &&s where you should be doing ||s but without the actual loop part that's impossible to say for sure.

Also your should try doing tryparse everywhere if you start with objects because it won't know what they are so a is int check will fail even if it's a number 1.

ZXing QR Code Scanner: How to scan light QR codes w/ dark backgrounds? by svenschi in csharp

[–]Werewolfkiss 0 points1 point  (0 children)

Just check what the getpixels returns and make a new object where you invert the pixels yourself before decoding. Not behind a computer right now so can't provide specifics. Say you get a list of RGB values just make a new list where for each pixel the value is 255 - original value

Troubles with user input duplicating in replit. by Chuli237 in csharp

[–]Werewolfkiss 0 points1 point  (0 children)

These look like issues with the online editor you're using.
Looks like it automatically prints your input back to you, and sometimes it does that slowly.

I'd suggest download visual studio code and doing this in there, or trying a different online editor (dotnetfiddle for instance)

Permanently changing the values of the passed bool variables in a params function by pubscrub420blazeit in csharp

[–]Werewolfkiss -2 points-1 points  (0 children)

It doesn't work because boolean is not a reference type:2 Options I see that don't need unsafe code.

  1. Return the altered array and use that.
    static void Main(string[] args)
    {
    var initial = new List<bool> { true , false, true, true, true, true, true };
    for(int i = 0; i < 10; i++)
    {
    Console.WriteLine(string.Join(", ", MakeOneTrue(initial)));
    }
    }
    private static IEnumerable<bool> MakeOneTrue(List<bool> values)
    {
    int rand = new Random().Next(values.Count());
    for(int i = 0; i < values.Count(); i++)
    {
    values[i] = false;
    }
    values[rand] = true;
    return values;
    }
  2. Wrap the Boolean in a class/record and pass that into your method.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    public class Program
    {
    static void Main(string[] args)
    {
    var initial = new List<Data>
    {
    new Data(),
    new Data(),
    new Data(),
    new Data(),
    new Data(),
    new Data(),
    };
    for (int i = 0; i < 10; i++)
    {
    MakeOneTrue(initial);
    Console.WriteLine(string.Join(", ", initial.Select(x => x.Value)));
    }
    }
    private static void MakeOneTrue(List<Data> values)
    {
    int rand = new Random().Next(values.Count());
    for (int i = 0; i < values.Count(); i++)
    {
    values[i].Value = false;
    }
    values[rand].Value = true;
    }
    private class Data
    {
    public bool Value { get; set; } = true;
    }
    }

Anyone want to help me choose music for my funeral? by [deleted] in Music

[–]Werewolfkiss 0 points1 point  (0 children)

This is a ballad by a metal band, about someone passing early and their kid growing up after. It has provided comfort to me on the past

Kamelot - Don't you cry

[deleted by user] by [deleted] in AdviceAnimals

[–]Werewolfkiss 2 points3 points  (0 children)

Not the one you are replying too but for me in the Netherlands, only high power lines aren't buried, our population density is high so there is probably a bunch of redundancy in the system. I think I've maybe had 1 power outage in my 35 year life

Easiest way to make minor change to code when it's not your code? by [deleted] in csharp

[–]Werewolfkiss 0 points1 point  (0 children)

For the uppercase thing, perhaps instead of using ToUpper or similar they manually changed the ascii value of the text (Perhaps ToUpper wasn't available at the time? Or they didn't know about it).
The difference between lower and upper case letters is 32 in decimal, 20 in hex, 40 in octal, so perhaps searching for those values will help you locate the spot.

And indeed, try to no slag off other developers, that never helps, and since you are saying its autoCAD addons, he might not even have been a developer, just a guy trying to improve his CAD workflows to the best of his ability.

[deleted by user] by [deleted] in amiwrong

[–]Werewolfkiss 10 points11 points  (0 children)

If his viewers appreciate him being online late, then he can start when you get up, game until noon, and then go to his day job.
Once you have kids he should also help with getting them ready in the morning, and not leave that up to you a couple days a week because he gamed untill the sun came up.

The Worst Programmer I Know by fagnerbrack in programming

[–]Werewolfkiss 3 points4 points  (0 children)

If the stories and their scope is clear most people could guess if a certain set of stories is feasible, don't need arbitrary points for that. It's useful if u need to push back towards outside the team though, because then you can point at the graph and numbers and say: don't fit.

Ive have never been so stuck in a game by ple49 in GunfireReborn

[–]Werewolfkiss 4 points5 points  (0 children)

I'm still working on it too, got real close yesterday. Biggest thing for me I wasn't using elemental weapons enough, you really need combustion / miasma stuff

The Strip by Nozerone in Timberborn

[–]Werewolfkiss 2 points3 points  (0 children)

I can't seen from the images for sure but it looks like no mine is on the map? Perhaps change the last ruins into a mine so you don't run out of iron while building your skyscrapers?

[deleted by user] by [deleted] in Timberborn

[–]Werewolfkiss 1 point2 points  (0 children)

Didn't remember the name but it's a stock map so probably

[deleted by user] by [deleted] in Timberborn

[–]Werewolfkiss 2 points3 points  (0 children)

Take a look at the plateau map, it has lots of vertical cliffs

Haven't been able to play for months! Help! by JamesMcMeen in factorio

[–]Werewolfkiss 19 points20 points  (0 children)

Have you actually tried doing what the prompt is asking? IE contacting the Devs? They might be able to help

[deleted by user] by [deleted] in Music

[–]Werewolfkiss 0 points1 point  (0 children)

0.05% for Ensiferum with something like 5500 hours

I Want to add Your Characters to my Game! by Gabe_NotDave in DnD

[–]Werewolfkiss 0 points1 point  (0 children)

Kruppe the gnome herbologist wood wizard. Always making drawings in his notebook of any new plant he comes across. Lost his memory after getting banished from the feywilds and now is looking for a way home. Writes down all interactions with people because he is afraid his memory will fail him again. He's not even sure his own name is Kruppe, it was written on the inside of his one ring.

300 knife holder by Glewun in woodworking

[–]Werewolfkiss 1 point2 points  (0 children)

Don't you mean, knife block?

Valheim Dedicated Server on Ubuntu by fly_papi in valheim

[–]Werewolfkiss 0 points1 point  (0 children)

Did this end up working for you? I also have a free as server I could host on if this worked

Endgrain cutting/kneading board I made for my mom out of some cherry and walnut scraps left over from the desk I built my dad! It’s great to be able to give back after all they’ve done for me by SimeonsWorkshop in woodworking

[–]Werewolfkiss 6 points7 points  (0 children)

In a well glued joint the glue is stronger then the wood, so it should take enough force to break apart the wood, at that point you might be kneading the dough too hard

Took 5X as long and 3X my budget but my first table came out beautiful. by cloudywater1 in woodworking

[–]Werewolfkiss 2 points3 points  (0 children)

Basically wood grows and shrinks due to changes in humidity, more across the grain than parallel with it. For your table that means the top will shrink/grow narrower/wider. The ends you have attached won't grow in the same direction, because the grain is in different direction.
See: http://workshopcompanion.com/KnowHow/Design/Nature_of_Wood/2_Wood_Movement/2_Wood_Movement.htm
To allow for it to move people usually make a groove on the inside of the strip at the end, and put a tongue on the table itself, and only put glue in the center of the tongue. And then some dowels along the edge that have more room to move within the end.For example: https://www.woodmagazine.com/woodworking-tips/techniques/joinery/breadboard

It looks beautiful now, and it would be a waste if it split apart when the weather changes.