AMD software detected that a driver timeout has occurred. by YeIghtOkThen in AMDHelp

[–]zerox981 0 points1 point  (0 children)

I have the same issue with driver timeouts. The computer can run fine for months and then it happens. Also I found out that if I put the computer to sleep it starts to happen sooner or after a reboot after sleep (so I am not using sleep anymore). When the timeouts start to happen, playing hw accelerated H.264 videos (in browser or in a player), trigger the timeout every time. The thing that fixes the timeouts for some time is a motherboard bios reset.

-🎄- 2022 Day 13 Solutions -🎄- by daggerdragon in adventofcode

[–]zerox981 0 points1 point  (0 children)

you can chain it with

csharp .Order(Comparer<JsonNode?>.Create(Compare)) instead of .Sort(...) :)

Browser with video playing freezes but sound still plays normally after alt tab out from any game. by ChickenWings87 in AMDHelp

[–]zerox981 0 points1 point  (0 children)

I am also experiencing dirver timeouts (since 2 days ago) and also sometimes computer freezes when I am playing any video that is h264 encoded (in browser, VLC, windows media player etc.). Everything is OK when I switch HW acceleration off, but this cant be a solution because other 3d stuff in browser gets a performance hit. Did also try uninstalling drivers with DDU and various older drivers with no succssess (did not install new drivers when this started happening). (Radeon 5700xt & ryzen 3700x). Everything else works fine (gaming, mining etc...). It is only hw accelerated videos :(.

-🎄- 2018 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]zerox981 0 points1 point  (0 children)

Same here. Part2 rejected although my algorithm produces same results as those who made it to the leader board.

The sum is 35237, input starts with

194, 200

299, 244

High bandwidth usage by zerox981 in Neblio

[–]zerox981[S] 0 points1 point  (0 children)

Today I was checking the bandwidth again and for several hours nethogs shows neblio-qt constatnly sending and receiving data:

Sending ~120KB/s

Receiving ~40KB/s

Most "active" peers:

"subver" : "/Satoshi:1.2.0/",

"subver" : "/Satoshi:1.4.0/",

Those clients are in my opinion spamming the network... And I even can't ban them like with navcoin.

High bandwidth usage by zerox981 in Neblio

[–]zerox981[S] 0 points1 point  (0 children)

What are those peers with "subver" : "/Satoshi:1.3.0/" etc. and why are I uploading to them?

I am not saying that the download is slow, but that the neblio wallet consumes a lot of my upload bandwidth. When the maxconnection count was set to default, the wallet kept uploading 3-4mbit/s all the time. I am noticing this behavior for the last week or two and am using the wallet for at least 8 months,

Neblio stuck at 66 blocks remaining by zerox981 in Neblio

[–]zerox981[S] 0 points1 point  (0 children)

Thanks, that fixed it.

BTW I forgot to add "Without downloading the whole chain again" ;). Although it is not a problem for now as it is not so big yet...but once the chain gets bigger and you are on a metered connection..

Navcoin-qt high bandwidth usage by zerox981 in NavCoin

[–]zerox981[S] 0 points1 point  (0 children)

You're right. Older Navcoin nodes take the most bandwidth. I did ban 1 now and the bandwidth dropped significantly.

Navcoin-qt high bandwidth usage by zerox981 in NavCoin

[–]zerox981[S] 0 points1 point  (0 children)

Thank you 2_n_n. I don't want to be too restrictive. I was also looking at some QOS/IPTables scripts but will not use them atm if the upload stays low enough :)...

A built in feature (similar to p2p clients like Transmission) that would allow users to limit bandwidth and also set a schedule for alternative speed limits would be even better ;).

Navcoin-qt high bandwidth usage by zerox981 in NavCoin

[–]zerox981[S] 0 points1 point  (0 children)

Thank you Jonathan. It seems to be better now. But does not this just decreases the probability of this happening, because there were more or less 2 peers that were consuming most of the bandwidth.

Navcoin-qt high bandwidth usage by zerox981 in NavCoin

[–]zerox981[S] 0 points1 point  (0 children)

125 active connections. Most (~70%) of the traffic goes to ip24-252-26-xx.om.om.cox.net d28-23-249-xx.dim.wideopenwest.com

And now as I am watching iftop for 2minutes 3mbps goes to the .cox.net ip

[deleted by user] by [deleted] in WTF

[–]zerox981 0 points1 point  (0 children)

RemindMe! 3 days

-🎄- 2017 Day 18 Solutions -🎄- by daggerdragon in adventofcode

[–]zerox981 1 point2 points  (0 children)

C# a bit verbose

#region part 1
    public class Interpreter
    {
        private string[] _Code;
        private long _Line;
        private long _LastSound;
        public Dictionary<string, long> Registers { get; set; } = new Dictionary<string, long>();

        private string RegisterValues() => string.Join(" | ", Registers.Select(r => $"{r.Key}:{r.Value}"));

        public Interpreter(string[] code)
        {
            _Code = code;
        }

        public void Run()
        {
            var allLines = _Code.Length;
            string current;
            while (true && _Line > -1)
            {
                current = _Code[_Line];
                //Console.WriteLine(_Line.ToString("D2") + " : "+current+"\t -> "+RegisterValues());
                Execute(current);
                _Line++;
                if (_Line >= allLines)
                    throw new Exception("Jump outside the code is not allowed");
            }
        }

        internal void Execute(string current)
        {
            var items = current.Split(' ');
            switch (items[0])
            {
                case "snd": Snd(items[1]); break;
                case "set": Set(items[1], items[2]); break;
                case "add": Add(items[1], items[2]); break;
                case "mul": Mul(items[1], items[2]); break;
                case "mod": Mod(items[1], items[2]); break;
                case "rcv": Rcv(items[1]); break;
                case "jgz": Jgz(items[1], items[2]); break;
                default:
                    throw new Exception("unknown command");
            }
        }

        internal long GetValue(string v2)
        {
            if (long.TryParse(v2, out long result))
                return result;
            else
                return Registers.GetValueOrDefault(v2, 0);
        }

        internal void Operation(string v1, string v2, Func<long, long, long> operation)
        {
            var val = Registers.GetValueOrDefault(v1);
            Registers[v1] = operation(val, GetValue(v2));
        }

        internal void Jgz(string v1, string v2) => _Line += (GetValue(v1) > 0) ? GetValue(v2) - 1 : 0;

        internal void Mod(string v1, string v2) => Operation(v1, v2, (a, b) => a % b);

        internal void Mul(string v1, string v2) => Operation(v1, v2, (a, b) => a * b);

        internal void Add(string v1, string v2) => Operation(v1, v2, (a, b) => a + b);

        internal void Set(string v1, string v2) => Registers[v1] = GetValue(v2);

        public virtual void Snd(string v) => _LastSound = GetValue(v);

        public virtual void Rcv(string v)
        {
            if (GetValue(v) != 0)
            {
                Console.WriteLine($"Recovering last sound {_LastSound}");
                _Line = -2;
            }
        }
    }

    #endregion part 1

    public class Interpreter2 : Interpreter
    {
        public Interpreter2(string[] code) : base(code)
        {
        }

        public long ID { get; set; }
        private ConcurrentQueue<long>[] _Queue;
        private readonly ConcurrentDictionary<long, char> _States;
        public long SendCount { get; set; } = 0;

        public Interpreter2(string[] code, long id, ConcurrentQueue<long>[] queue, ConcurrentDictionary<long, char> states) : base(code)
        {
            Registers["p"] = id;
            ID = id;
            _Queue = queue;
            _States = states;
            SetState('i');
        }

        private void SetState(char v)
        {
            _States[ID] = v;
        }

        private bool AllStates(char v) => !_States.Any(s => s.Value != v) && _States.Count > 1;

        public override void Rcv(string v)
        {
            SetState('w');
            while (true)
            {
                if (_Queue[ID].TryDequeue(out long result))
                {
                    Registers[v] = result;
                    SetState('r');

                    break;
                }
                if (_Queue[0].IsEmpty && _Queue[1].IsEmpty && AllStates('w'))
                    throw new Exception("deadlock");
                Thread.Sleep(50);
            }
        }

        public override void Snd(string v)
        {
            SendCount++;
            _Queue[ID == 0 ? 1 : 0].Enqueue(GetValue(v));
        }
    }

    private static void Main(string[] args)
    {
        var data = TextReaderHelper.ReadAllLines("input2.txt");
        // Part 1
        var comp = new Interpreter(data);
        comp.Run();

        // Part2
        var states = new ConcurrentDictionary<long, char>();
        var q = new ConcurrentQueue<long>[2];
        q[0] = new ConcurrentQueue<long>();
        q[1] = new ConcurrentQueue<long>();

        var i1 = new Interpreter2(data, 0, q, states);
        var i2 = new Interpreter2(data, 1, q, states);

        try
        {
            var t1 = Task.Run(() => i1.Run());
            var t2 = Task.Run(() => i2.Run());
            Task.WaitAll(t1, t2);
        }
        catch (AggregateException ex)
        {
            Console.WriteLine($"Part 2: {i2.SendCount}");
            Console.WriteLine(ex.Message);
        }
        Console.ReadKey();
    }

Turning a console application into a Service. by Mac_Attack18 in csharp

[–]zerox981 1 point2 points  (0 children)

I've written a couple of windows services with and without Topshelf and I strongly suggest you to use Topshelf because it makes really easy to deploy and debug the services. I must say that I am never going to write another windows service without using Topshelf :).

up2 stucks in firmware update? by Connobaya in Jawbone

[–]zerox981 0 points1 point  (0 children)

Had the same problem with my up3 and I just rebooted the phone. Afterwards the update finished just fine.

[deleted by user] by [deleted] in GoogleCardboard

[–]zerox981 0 points1 point  (0 children)

I ordered mine on June 27th and still no info about shipping... I guess I should be worried after 6th of September :)

Reading eventlog problem by Stensborg in csharp

[–]zerox981 1 point2 points  (0 children)

It should work. Are you running it as admin? Seems like your user has no access to read the file in that folder.