« first day (3690 days earlier)      last day (1250 days later) » 

1:46 AM
Hello, is there any skilled programmer to help me with school project? Its a simple Windows Forms application. Thanks!
 
2:14 AM
don't go forms, it was already dead 5 years ago
 
Actually it is an school project that we HAVE TO do in WForms..
 
So what is your problem?
 
I need to implement this console application pastebin.com/Rsri0Y6r into a wforms.. My project is here github.com/MarvelousMartin/GameofLife/tree/master/…
I got a hint I can use RichTextBox
 
if you just want to convert it to a forms application, you already have most of the things you need
instead of writing it to a console, you can just write to a multiline textbox
it's as simple as that. create a new winform application, add a textbox, set multiline to true. and then in the codebehind use the code you have already written
also set the textbox dock to fill
but keep in mind, that this is the bare minimum, if you want to do something fancy, create an image and update a picturebox
image manipulation is pretty easy in c# just google it
 
ok, will do...
In terms of an image - how to implement it? It looks hard to me
 
2:31 AM
you have an bitmap image where you can color each pixel with the coordinates x and y like bitmapImage.SetPixel(x, y, color)
and then set the source of the picturebox for each update with the changed image
 
oh
it makes sense now
 
you can even do fancy stuff like coloring the pixels which are going to die different and stuff
 
 
1 hour later…
3:43 AM
would it be rude to store files as Base64 in gist?
 
 
8 hours later…
12:11 PM
If I'm using UnityContainer, it makes no sense to make my own singletons, right? I can register with unity directly?
 
 
1 hour later…
1:21 PM
@mshwf depends how you want to use that singleton
If you want to construct it with out a signature() you'd be fine.
You want it to accept a value on construction, you can't use DI
Found that out in WPG
 
1:33 PM
Hello friends!
[Captain Obvious] Dumb ass bot
 
2:05 PM
@juanvan do you have an example of the first case please?
 
 
1 hour later…
3:06 PM
Could someone enlighten me on what would happen if two async methods accessed the same variable or array or object that is local to a class?
Thread-safety isn't an issue here because there's no concurrency with the async/await pattern.
I think what I'm wondering is if two async methods are executed is it possible that they'll end up running in parallel and affecting each other by changing data...?
 
[Captain Obvious] I don't know actually
 
Idk how to test that, doing a basic loop in both with some math on a long array doesn't yield different results other than which async method was executed first.
 
[Captain Obvious] If you come back tomorrow you'll probably get a decent answer to that question, but I don't know if anyone else is here who would know
 
'Aight, I couldn't find anything on SO searching existing questions either.
@CaptainObvious will do.
 
[Captain Obvious] Saturdays and sundays are usually fairly quiet in here. Best times are probably about 10:00-15:00 UTC
 
3:12 PM
Ah so I'm a little late haha, I appreciate it.
 
@FatalSleep It really depends on how you are using your variable as to whether it matters. Methoid A could read the variable and be immediatelly suspended, method B writes to it so now method a is out-of-date, so does that matter to your logic?
Also this is not strictly true: " there's no concurrency with the async/await pattern"
 
Oh?
 
async await doesn't imply concurrency, but it doesn't mean that's not happening in your code
 
Ah, okay I missed that. Well for what I am doing is trying to see if it's even worth it to pre-allocate a byte[] for a buffer to read from incoming data on a NetworkStream for a TcpClient in an async method. As opposed to creating a new temporary byte[] every time I receive a new data packet.
But by pre-allocating said buffer, that buffer would be simultaneously accessible to multiple executing async methods processing data packets.
 
I think in that case your methods risk overwriting each others buffered data
 
3:23 PM
That's what I figured.
 
3:42 PM
hi all, i am trying to download the content of a html page, the problem is that the web page uses ajax, so i am stuck ( sorry for my englidh)
english*
I am using:
var client = new WebClient();
client.DownloadStringCompleted += (sender, e) =>
{
string pageSourceCode = e.Result;

};

client.DownloadStringAsync(new Uri("https://poeapp.com/search/Heist/oHnCRW"));
 
[Captain Obvious] Yeah you're in for a bad time if that's the case
 
 
2 hours later…
mr5
5:32 PM
Botler, hey
 
Well thanks, mr5. You broke me.

System.ArgumentException: You must set a ApplicationId for MonkeyCache by using Barrel.ApplicationId.
   at MonkeyCache.BarrelUtils.GetBasePath(String applicationId)
   at MonkeyCache.SQLite.Barrel.<>c.<.cctor>b__28_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at MonkeyCache.SQLite.Barrel..ctor(String cacheDirectory)
 
mr5
Botler, learn a b
 
Learned the command a
 
mr5
Botler, a
 
Well thanks, mr5. You broke me.

System.ArgumentException: You must set a ApplicationId for MonkeyCache by using Barrel.ApplicationId.
   at MonkeyCache.BarrelUtils.GetBasePath(String applicationId)
   at MonkeyCache.SQLite.Barrel.<>c.<.cctor>b__28_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location where exception was thrown ---
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at MonkeyCache.SQLite.Barrel..ctor(String cacheDirectory)
 
5:43 PM
@mshwf Sure?
https://www.tutorialsteacher.com/ioc/register-and-resolve-in-unity-container
 
 
1 hour later…
mr5
6:49 PM
VS Code with stories 🤦‍♂️
 
 
2 hours later…
8:30 PM
[Captain Obvious] That's not real right?
 
8:56 PM
[Li] Seems like it started as a joke extension and then got brought by this guy who also started a kickerstarter for it <:JUSTLOL:720206278772916304>
 

« first day (3690 days earlier)      last day (1250 days later) »