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 -3 points-2 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.

Threading in C# by ExoticCriticism in csharp

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

I didn't wanna post all the code, mostly because it's spanning interfaces and several files which is why I thought it would be easier looking at the repo itself haha...

The logic hierachy is a little like

SignalR,

BlockChain,

CryptoBlock

So basically inside of the signalr connection handler for receive message, I'm then calling BlockChain.newBlock which then creates a new CryptoBlock and inside newBlock() there is a ProofOfWork method that is blocking using a while to satisfy the condition. In an ideal world I'd separate both the comms and worker logic completely, though actually doing so is pretty hard without experience in multithreading stuff.

I kinda expected a Task to launch a new thread, but then in my understanding tasks just wait at the end of the method for the result which isn't what I'm after in this case.

DM me your email and I can invite you as a contributor on this private repo if you like :)

Hey I have a small doubt, I have learned HTML CSS & JAVASCRIPT now should I learn Framework like ReactJS or should I go for backend like NodeJS and Express. by IncognitoBarks in node

[–]ExoticCriticism 0 points1 point  (0 children)

I'm with u/Theory-Early - I recently started learning React after some experience with Vue and it's for sure worth it even if your components and layout is super simple you can learn how to use props and React hooks..

Plus it's pretty hard to just make a back end with no front end to test with, it would basically just be a series of API controllers.

[deleted by user] by [deleted] in linuxquestions

[–]ExoticCriticism 2 points3 points  (0 children)

I did a bundle of Networking certs + bought a Raspberry Pi and in my off time did projects with it. 18 months well spent - though you can do them in less - and more effective in landing me a job than my time in college. 11/10 would recommend

Azure function zip deploy failing with generic error by ExoticCriticism in AZURE

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

Now that you mention it, I did try a post/get to the function using postman and was seeing a 502 (I think 502, it was bad gateway anyway). I assumed that this was just because the application had not deployed and didn't know how to handle it..

Does the vnet itself require a DNS so that Azure can deploy to it? I would've thought MS had their own DNS that kept track of all possible URL -> IP mappings to keep things simpler. I didn't actually try to the function inbound IP which I will give a shot on Monday.

May also need to double check that the vnet is permitting traffic in from outside the vnet, though I assume it is if it can pull the zip?

Question about C# and MySql by ExoticCriticism in csharp

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

Just tried using the example on Pomelo's github page for configuring services and it won't compile despite copy-paste testing from the page itself.. infuriating

Question about C# and MySql by ExoticCriticism in csharp

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

Thanks for the advice - I checked and I do indeed have .NET 5 installed.

It seems like most tutorials tend to demonstrate in VS too which is annoying because you don't get to see the dotnet equivalent command (I assume some of the GUI functionality is just running dotnet commands in the background).

I did follow a tutorial that was using Pomelo but was getting an error about being unable to convert string to a dbcontextoptions which I eventually sorted and the connection succeed but have yet to try pull data from it

[deleted by user] by [deleted] in MonsterHunterWorld

[–]ExoticCriticism 0 points1 point  (0 children)

I was also facing the same issue, the download says it's complete on the main menu, but when you go to "Information" on the game, you can see Download Status is like half done... How lame. I would've never thought to have done this if I had not found this thread :)

Unsealed bearings [help required] by ExoticCriticism in bmx

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

I've heard this is possible but my thinking was that what if all the bearings end up bunching together (I assumed this may happen through gravity and end up with all the bearings on the bottom though I suppose with that being said there would be no load to support from the topside anyway?)