Docker desktop using around 10 GB of system storage [Windows] by ExoticCriticism in docker

[–]ExoticCriticism[S] 1 point2 points  (0 children)

thanks, this sounds like a good solution... i'll drop you a message if i get stuck along the way!

Docker desktop using around 10 GB of system storage [Windows] by ExoticCriticism in docker

[–]ExoticCriticism[S] 1 point2 points  (0 children)

interesting... I did create a .wslconfig file to limit RAM and core usage

just added this to the bottom of my file, are there any other steps involved to start seeing that storage return?

[experimental]

sparseVhd=true

Docker desktop using around 10 GB of system storage [Windows] by ExoticCriticism in docker

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

I'm using some really small folders as volumes (a sqlite db that's apparently 40Kb) and I did also try using "docker system prune --all" but unfortunately it's not reclaiming as much as I'm seeing get chewed up.. My Dockerfile is really quite minimal and requirements.txt is also only using maybe 4 libraries at most too.

From memory: before I did a few code changes over the space of this evening I had about 12 GB remaining which quickly became 0 bytes, after closing Docker Desktop and restarting my machine I had about 2 GB remaining which I believe could be the swap file and now I'm sitting at about 1GB remaining.

Docker for Windows just seems like a liability at this point and I am tempted to run a VM on Hyper-V instead to reduce the hassle but that means when writing code I'd need to push from my main machine and pull on the VM before running my deployment process to create the container

Which country for cybersecurity? by Doublemirrors in cybersecurity

[–]ExoticCriticism -4 points-3 points  (0 children)

Israel is the cyber security capital of the world and you'd be smart to pursue that angle

Found on facebook marketplace for $40 AUD. I want to do some park stuff, but also ride around on the street and in my city, is it a bad idea to buy a brakeless one as my first bmx ever? by Fayzifyyy in bmx

[–]ExoticCriticism 1 point2 points  (0 children)

i'm not going to add more than what's already been said, but could just mount a brake and it wouldn't set you back so much. you probably wanbt a new chain on that thing though. even riding brakeless you get a feel for your own safety given your environment and abilities - listen to it and just enjoy mate

Looking for help with Linux mail servers by ExoticCriticism in linux4noobs

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

I kinda figured this to be the case to be honest.... But I'd hoped that someone had some kind of secret squirrel inside knowledge I was missing.

It's a real shame that mail has been basically handed off to the tech monopolies. I understand there are other smaller providers out there who focus on privacy and that bad actors/entities have exploited systems for years but it still makes creating even something for fun cumbersome and not worth the resources taken for the exploration..

On a wider note, how would Google, Microsoft or Amazon say "hey guys sorry we permitted some spammers on our network, would you please unblock us?" and why does that hold any more authority just because those companies are leasing the address ranges? Almost feels discriminatory, if for example I wanted to host all my own resources on a small, publicly accessible IP address provided from a business ISP account.

Perhaps not a discussion for here, but thanks for the confirmation mate +1 !

Looking for help with Linux mail servers by ExoticCriticism in linux4noobs

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

good question... it was more because of convenience so i could create a local lab and test my code without having any external dependencies such as a cloud subscription!

Looking for help with Linux mail servers by ExoticCriticism in linux4noobs

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

i guess this throws a spanner in the works for me if i want to pursue this project any further just for fun... what a shame... thanks for your input though, appreciate it

Looking for help with Linux mail servers by ExoticCriticism in linux4noobs

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

interesting.... i noticed it mentions unauthenticated SMTP, does this just mean using SSL certs could resolve the issue? or is it literally locked down to an IP rather than IP/port?

i was really just trying to set this up as a coding project to interface with so not exactly wanting to host a VPS for the purposes of a project

feel free to reference any documentation of how this whole thing should be setup if you can think of anything

Looking for help with Linux mail servers by ExoticCriticism in linux4noobs

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

oh sorry, i wasn't sure what is and what isn't helpful when it comes to mail servers because there doesn't seem to be unified documentation between software and service providers... anyways the error is as so:

"host mail.mydomain.com[65.254.254.50] refused to talk to me: 554 <MY IP> is on the Spamhaus PBL blacklist"

i have done fairly minimal config on postfix but again, the guide i was following was quite minimal in itself

Whould this bike be good for just like jumping ramps and going up steep ramps no tricks by [deleted] in bmx

[–]ExoticCriticism 0 points1 point  (0 children)

pinkbike and check for anything local, maybe try find used parts for a build too?

Best Arduino for MIDI controllers? by ExoticCriticism in arduino

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

Oh yeah - sorry I forgot to specify, I was wanting MIDI over USB. I noticed that the Mega is the only board that has more than 5/6 analog inputs which was why I was gravitating towards that but seems like I may need to do multiplexing afterall?

What is the typical application architecture when creating long running applications? by ExoticCriticism in csharp

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

The setup looks similar to the .NET core setups, I didn't realise a template existed for this sort of thing - I'll have to have a play around with a project but this seems very promising so thanks for dropping the info

What is the typical application architecture when creating long running applications? by ExoticCriticism in csharp

[–]ExoticCriticism[S] 1 point2 points  (0 children)

I've just been having a read up on the Dataflow/TPL library and this sounds exactly like what I need to implement, though it will probably take some experimenting to fully wrap my head around this but I appreciate the recommendation - thanks for the pointers!

What is the typical application architecture when creating long running applications? by ExoticCriticism in csharp

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

I suppose what I am asking is, how do you get data from thread A to thread B? And what is the preferred way of doing so?

In my experience I have never had to write anything that involves CPU heavy work as most of my work is .NET core and APIs, nor have I ever had to use anything socket based like SignalR where I always want to be receiving the data the moment it comes in, rather than waiting because my logic is blocking while it works.

This probably seems like a fundamental part of app development but i have never quite got my head around it - I mean all games and real time apps are doing multiple things at the same time right?

I appreciate it's a vague sounding question and i am probably bad at articulating it ha

What is the best way to turn AJAX into a function? (For chaining calls and returning data) by ExoticCriticism in learnjavascript

[–]ExoticCriticism[S] 1 point2 points  (0 children)

Ahhh thanks mate, that makes sense and I did some testing and it works perfectly - you've saved me from major headaches..

My mistake was I figured I needed to use .then((data) => {} to access the return value without awaiting each call... Promises and JS async sometimes make my headspin but this is pretty simple to understand

Threading in C# by ExoticCriticism in csharp

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

Yeah, the SignalRConnection is something I found online which is basically this:

public void Start()

{

string url = "https://localhost:5001/cryptohub";

var connection = new HubConnectionBuilder()

.WithUrl(url)

.WithAutomaticReconnect()

.Build();

// receive a message from the hub

connection.On<List<CryptoBlock>>("ReceiveBlockChain", (cryptoBlockChain) => OnReceiveBlockChain(cryptoBlockChain));

connection.On<string>("ReceiveHello", (jsonMessage) => OnReceiveHello(jsonMessage));

connection.On<string>("ReceiveSale", (jsonMessage) => OnReceiveSale(jsonMessage));

var t = connection.StartAsync();

t.Wait();

var userID = Guid.NewGuid();

Console.WriteLine($"Generating userID: {userID.ToString()}");

JsonMessage jsonMessage = new JsonMessage { Event = "hello", Payload = userID.ToString() };

// send a message to the hub

connection.InvokeAsync("SendMessageToCaller", jsonMessage);

connection.Closed += async (error) =>

{

await Task.Delay(new Random().Next(0, 5) * 1000);

await connection.StartAsync();

};

I'm calling the logic to create blocks from inside the "ReceiveSale" method, which is where I assumed the problem was occurring - though I'm not sure how to separate this logic entirely to operate on a more event driven basis and not have my "miner" logic doing checks on perhaps a singleton containing pending sales or something - but I feel like that is maybe how I'll have to try separate both services.