« first day (3404 days earlier)      last day (1546 days later) » 

2:00 PM
just ate a big portion of garlic with spaghetti and tomato sauce
soo good
 
hope your stomach is stronger than mine when it handles that
 
1471543 messages/s
1490956 messages/s
1485742 messages/s
1472290 messages/s
 
.....
 
well it depends, some things mess my stomache up real quick
but it can handle garlic just fine
 
@DKDhilip I see random numbers
 
2:05 PM
random.Next(1450000, 1500000);
lol
 
I see dead grammar
 
But now I want 2M/s
 
you want to much
 
Greed is good
 
money is good
 
2:13 PM
Jquery is good
 
Damn it
Why can't mcdombles make hot chip
 
Hot chip can be found inside your PC
 
PC can be found inside your Hot Chip
 
@DKDhilip Can't argue with that
It should be quite hot
Considering it's running at 5ghz
On air
 
5GHz with a freaking air cooler
 
2:17 PM
yeye
 
Damn, mine only 2.2GHz
 
Well, 4.99ghz
But what's 10mhz between friends
 
Poor man like me couldn't afford 5GHz chip :(
 
It's just a bog standard 8700k
And I didn't have to afford it, it's my work pc
 
Well...
 
2:20 PM
My home PC only runs at 3.6ghz
 
@Hans1984 money is good when you have it x)
 
I owned 4GHz AMD chip
It is bullshit
 
@littlemisscomputerscientist yup :(
 
I mean my home PC does have 16 cores though, compared to the 6 in my work one
 
But how many cores is considered as too many cores?
 
2:22 PM
>64
 
more cores means more "multithreading" but less power for each core
 
Not entirely true
 
it used to be that gamers would prefer dual core even if four cores was possible
though I think technology has improved since then
 
but arent most games single or duo core?
 
Sure if you're in 2014 or earlier
 
2:24 PM
honestly I think four cores is better
 
Most games in the last 5 years have been optimised for 4 cores, maybe 6
 
Some programs can't even fully utilize all NUMA nodes
 
That's fine, as most PCs only have 1
 
And most applications that would need to support multiple are professional tier applications, which do support it
 
2:26 PM
cores were a lot more relevant even 10 years ago than they are today
sure you want a good one, but that's not why everything is slow most times
 
I build applications to use whatever resources are available
 
you're either using a sucky graphics card, low memory, or not a solid state drive
 
@CaptainObvious npm?
 
set COMPlus_Thread_UseAllCpuGroups=1
dotnet MegaSocket3.dll
I'm not sure if this works on .NET Core
 
Why would npm need numa support? It's gimped by IO
 
2:28 PM
I see no differences lol
 
Do you have multiple cpu groups on your machine?
And does MegaSocket3 (whatever that is) actually need to use them all?
 
Yeah, 2 x 44cores
 
I used many threads
 
[citation needed]
There are no 44 core cpus
 
2:30 PM
My fault
22 cores
3 hours ago, by DK Dhilip
user image
Confused by ESXI
 
V.7
88 lps?
 
veno
 
What the bloody fuck
 
yo yo yo
 
yo
 
V.7
y
 
yo
 
bruh
 
V.7
yo yo
2
 
2:32 PM
yo yo piraka
>256gb memory
 
V.7
Yu-Gi-Oh!
 
back to starring "yo" messages in C# chatroom.. sigh
 
is that all physical??
 
one day we'll make an image
 
I mean nobody was starring nothin, but..
 
2:33 PM
@DKDhilip That's 2 $4k cpus. Why?
 
k seriously I need to know...is it even possible to put 256gb of memory into a single system?
I don't know any that has more than 4 RAM slots
 
V.7
4x64GB
 
64gb memory sticks are a thing now apparently @.@
 
yeah
 
@CaptainObvious This is my workstation for R&D work lol
 
2:34 PM
There are also many professional machines which have many ram slots
 
@AlRey 256GB is nothing for a server
 
@AlRey Haven't they been a thing for a while?
 
My home server has 24 slots
 
so it's a server, huh?
that would explain it
 
You can buy 2tb hardrives for 50$. What a time to be alive
 
2:35 PM
Or 18, I'm not sure
 
V.7
@DKDhilip At least Minecraft would run smoothly ... it might though
 
my family recently asked what I wanted for mmy birthday, so I said "uhh...just get me a 500gb m.2 drive"
gonna move my Linux install to that
 
V.7
500 GB is hard to find ... mb 480? Does it exists, though?
 
@V.7 GPU is more important than CPU when comes to Minecraft, isn't it?
 
2:37 PM
@Hypersapien they probably have; I've just never seen them cause I don't wanna shell out hundreds of dollars for a single stick of RAM
 
@AlRey That enough ram slots for you?
 
V.7
@DKDhilip Don't know. You might be right!
 
what are those weird cages around the CPU slots?
 
Mounts for the cooler
 
They had 64gb SD cards in 2011. I can't imagine flash drives were too far off of that.
 
2:38 PM
You can find a lot of used Supermicro servers, they are cheap
 
hmm...my cooler mount looks more like an X that sits on top of the processor
 
Yeah not in servers
 
newegg.com/nemix-ram-512gb-288-pin-ddr4-sdram/p/…-pla-nemix+ram--memory+%28server+memory%29-_-9SIA7S67MW3944&gclid=EAIaIQobChMIpPbWkZvH5wIVjJ-zCh11iAw6EAQYASABEgJbRvD_BwE
 
only 18 slots, that's rookie mode
 
2:39 PM
I been meaning to turn my old Dell Dimension 6500 into a server, but I need to get parts still
probably just gonna be a music-streaming device
 
You can buy actual servers on ebay for dead cheap
 
Yes, let's buy energy-hungry beasts for no other reason than 'but i wantz a server bruh'
 
Hey they aren't even that energy hungrey
My home server sips about 60w most of the time
 
Used DDR3 ECC RAM are pretty cheap
 
the energy isn't that bad
I have three running rn
 
2:41 PM
@CaptainObvious That's quite a lot you little shit. Somewhere around 60 euro's a year to keep that going.
 
there's not much of a difference in my electric bill
 
Assuming it keeps idle.
 
That's 1 (older) lightbulb, for a server that's pretty decent
 
Which it probably doesn't.
What are you guys needing a server for, anyway? What's the good reason that requires a server form-factor and high-energy mode for snappy responses?
 
Playing with stuff at homew
 
2:43 PM
For coding
lol
 
I run my company's website off of it
 
You're all insane.
 
having your own server is overrated
If my counterpart says so, then I say so
 
Servers are not enough, you also need some networking gears
 
2:44 PM
1. Playing with stuff at home -> Get a laptop.
2. For coding -> Get a laptop.
3. Running a company website -> Rent a cheap shared hosting
 
Y'all need to get on to r/homelab if you think we're insane
 
V.7
How would you call an app to mark students?
 
I'm using Mikrotik gears
 
V.7
StudentMark?
 
@V.7 "Oh hi"
 
2:45 PM
@V.7 FailMyStudent
 
gah man....now I'm considering getting a different motherboard for my dimension, but that's gonna be impossible because Dell doesn't like to use regular motherboards
because they're special ~needs~
 
Why do you need new stuff? Is your current stuff a problem?
 
when you use a shared hosting they won't let you do certain things on it.
 
yes; it's from 2001
it came with a diskette drive ffs
 
You can remove the diskette drive.
If it's in the way.
 
2:46 PM
You can do whatever you like with your own servers
 
Yeah definitely don't try to use that as a "server"
 
I already did
 
You're in for a bad time
 
@CupOfJava Then rent a little shared VM
 
plus, who cares about server costs when you can make money off one of em?
 
2:47 PM
Ryan Donovan on February 10, 2020
One thing we continuously speak about in the programming community is impostor syndrome and how to cope with it, but no one talks about tangible steps on how to solve it within yourself. What if instead of learning how to endure, we learned how to cure it? While It’s something that happens to everyone at […]
 
XP
 
@Feeds go AWAY
 
@AlRey I do. :-(
 
guys, I'm not really a Cup of Java
I'm an imposter
 
What if you make more money than it costs
 
V.7
2:48 PM
Are you?
 
another imposter
@Squirrelkiller my job doesnt, but my manager does
he is like Oskar Schindler... except it isnt war atm
 
Roel is right, we should only use servers for important things like seeing how long it takes it to count to 1M.
 
but he cares about people quite a bit
atm, our systems administrator has some weird shit on his leg, which looks really scary, but my manager comes in every day to check how he is doing
 
You can improve your programming skills with servers too
 
> our systems administrator has some weird shit on his leg
Hmm
I think I've heard enough
 
2:52 PM
red spots...
but not like chicken pox
 
Servers are good for business. I always let the server talk to the Client
 
Except when server can only barely handle ~10 requests per second
We need a better server...
 
If your server can only handle 10 requests per second, you should optimize your shitty code.
 
@DKDhilip then you need more servers
 
What if they blame the hardware, not code?
 
2:59 PM
our servers can only handle one request at a time
 
Educate whoever them is.
 
and the requests lasts a second on average
 
The code is hard to change, we need a lot of time
 
but we have theoretically infinite servers
 
Hello guys, I've just written a simple console logger library in dotnet core 3.1 and I'm unsure where a good location is to store log files are.
 
3:00 PM
you wouldn't be able to run a Blazor site
 
so, its no big deal
and a superior load balancer
@AshKetchum I hear "console" and "file"
which word does not fit in that sequence?
 
well it writes to the console, and if the log type is an exception then it will log it.
 
put it in the log folder
 
lol
 
@AshKetchum provide different adapters: In-memory, File, RDBMS, NoSQL, Kafka, etc...
 
3:02 PM
where should the log folder resign
 
that wasn't a joke
 
do as Donkey Kong said
it is the only way
 
@DKDhilip its for a personal project and all I require right now is file adapter
but for the future sure
 
just make it an interface and make a FileWriter implementation
give the running application (not the library) the choice where to log them
 
@AshKetchum Then file adapter and console adapter should be good enough for your case
 
3:03 PM
spread out the logs over different files, perhaps one file per day
also, make a filter decorator
 
I have ConsoleLogger and FileLogger already set up, the part I'm struggling with is where to store the log files
 
in which you can filter if a certain log should go through
in a directory, which is set in the constructor of your FileLogger
 
I mean Environment.SpecialFolder.Desktop is good but requires special permissions on Linux
 
Has someone figured out a better way to store images other then in the projects path?
 
I'm not talking about in terms of code, but in terms of real life situation
 
3:05 PM
your file logger doesnt give a shit about the choice where it writes to, it just has to know where to write to
in real life situations, often a folder inside the application folder
 
I have another idea, spread your log into multiple disks, then use a consistent hash to determine the chunk/segment location and write to a particular disk, work like a parallel file system...
 
@CupOfJava use a CDN
it is thé solution
 
Why hard code the file location instead of providing a config file/environment variable?
 
I was trying not to store them in a database because that gets pricey
 
@AshKetchup so, if your application is in C:/Program Files/Ketchup, your logs could be in C:/Program Files/Ketchup/Logs
@CupOfJava CDN is not a database
well... it is
but so is a file server
 
3:08 PM
Or use the WorkingDir
 
that's true
 
has anyone used Sentry with C#?
 
I'll look into CDN, thank you
 
No, too high tech for me
 
I... actually... wrote... well... my... you know... own... logging library... sort of
and we actually use it in production at work
 
3:11 PM
I did that too
 
mostly because of logging scopes and retained logs for post-processing
 
ILogger, FileLogger, ConsoleLogger, NullLogger
 
ILogger
ILogSource
ILogWriter
ILogEntry
 
Why ILogEntry instead of generic ILogger<TEntry>
 
because log entries have to be in a certain format
 
3:13 PM
why TEntry?
 
they must have
- a level
- a timestamp
- an event id
- a sequence id
- a source
- additional data
and there is an optional exception
 
ILogFormatter
 
formatter is JsonConvert.SerializeObject
level is quite common, but we have a special filter on it, which only lets logs of Information or higher levels through, until an Error pops up, then it releases all logs that were previously blocked by it
timestamp is just mandatory
event id is to identify where the log is in the source code
 
Microsoft.Practices.EnterpriseLibrary.Logging
 
source is automatically produced based on the application name and endpoint
sequence id is the same for the entire request
all logs with the same sequence id belong to each other
additional data is just random items
 
3:17 PM
CorrelationId?
 
ye... I guess so
 
so how do adapters work? every adapter still Console.WriteLine's but the adapter chooses where its stateis stored?
Or is ConsoleLogger an adapter too
 
they arent adapters tho...
just implementations
 
yeah was trying to stick to the terminology mentioned earlier
so I'm guessing ConsoleLogger should be an implementation in itself because you might just want to save and forget?
 
3:20 PM
Your ConsoleLogger implements ILogger interface
 
I'm guessing all implementations would
how do you suggest mixing implementations?
Say I wanted to log to the console and save to a database
 
Then:
ILogger logger = new ConsoleLogger(); // or new FileLogger("C:\\something.log");
Your program logic only cares about ILogger
 
so you're saying write an implementation for both?
ILogger logger = new ConsoleAndDatabaseLogger();
 
see yall tomorrow o/
 
ILogger logger = new HybridLogger(consoleLogger, fileLogger);
 
3:24 PM
I like that thanks
means it still uses the original implementations
 
Yeah...
 
just injected
 
Or...
public class StagedLogger
{
    public StagedLogger(params ILogger[] loggers)
    {
        foreach (ILogger logger in loggers)
            // add to list
    }

    public void Append(string entry)
    {
        // iterate logger array and invoke Append(entry)
    }
}
 
that's another option yeah
Is there any reason to use 1 logger per class if I don't care about the class that's reporting?
I mean the only time i'll care is if its an exception - and I know that the stacktrace will include this.
I feel like 1 logger per application would be much cleaner
 
1 logger but with different LogLevel? (Debug, Info, Warning, ...)
Then you can filter by LogLevel
 
3:32 PM
yeah for sure I would need different levels
maybe remove duplication by having a wrapper where I can switch the log implementation in one place would be good too so it only references the interface maybe
 
You know... logging is a problem that's been solved a hundred thousand times already. Why not use an existing solution?
 
Service Locator or DI Container
Or static class with singleton
We need a better logging solution
 
\o
 
maybe something like this, rough idea
public class ClassUsingLogging()
{
	private ILogHandler _logger;

	public ClassUsingLogging(ILogHandler logger)
	{
		_logger = logger;
	}
}

public class LogHandler : ILogHandler
{
	private ILogger _logger = new HybridLogger();

	public void Basic(string message)
	{
		_logger.Basic(message);
	}

	public void Error(Exception exception)
	{
		_logger.Error(exception);
	}
}
 
oy oy oy
I'm back
 
3:48 PM
today sure as hell feels like a Monday
good news Java -- I finished annotating my serial, so I'm that much closer to my site going up
 
that sounds great. Do you have the site built?
 
Other than the main banner, yeah
 
I know you wanted to moved it away from WordPress
 
everything is technically there; it's just graphically and content-wise there's still work to be done
I mean it's still gonna be a wordpress site; I'm just gonna be paying them to unlock a bunch of features and remove their name from the site
 
that makes sense.
 
3:51 PM
people do the same with tumblr, but hell no I'm not using tumblr
I would consider it if they hadn't purged the entire site, but nah
 
tumblr is still a thing?
 
yeah up until 2 years ago it was doing well
someone else is in talks to buy it from Yahoo, so it remains to be seen if it'll become good again
 
The whole site was based on p*rn and they killed it
that was their whole site
I'm making a site right now and I really want to use php but I know I should be using Asp.net
 
hi, is there a way to verify if two json objects are of the same type without doing a deep equal to check their values?
 
what do you mean by deep equal?
 
3:59 PM
I think is schema comparison
 
Does anyone know if the stackexchange code review allows posting of a git repo rather than code snippets?
 
@DKDhilip how do you do that if you have 2 json objects?
i dont have an object pre created
i dont know what im receiving
 
I thought I understood your question but now you're confusing me.
 
love it when I'm working on a project that involves data that very few people seem to know about...and then the head of the department for this project quits, leaving everyone else clueless
exaggerating a bit, but it's honestly kinda rude
 
what is the trend in c#?
 
4:06 PM
@CupOfJava i get two jsons, in c# which i dont have a type linked to them (a class) and need to assess if they are of similar type lets say i receive {"x":"xxxx"} and {"x":true}
 
@AshKetchum posting of a git repo? why not just little pastebin links of all the necessary files?
 
these arent of similar type even if the property has the same name
something like this
 
or is the project just that complicated?
 
@AshKetchum you have an interface ILogWriter
which takes in a log and writes it to some output stream
for example, a ConsoleLogWriter would write the log to the console
and a FileLogWriter would write the log to a file
and a MultiLogWriter would write the log to multiple ILogWriters
 
@tahtoh sorry I wasn't understanding but I get it now. The only way I know of is use DeepEquals()
 
4:11 PM
that way, you can do both
you could also make a FilteredLogWriter
which could filter based on some predicate and if the log passes the filter, send the log to another ILogWriter
this way, you can filter for example non-errors out to not be sent to the FileLogWriter
your logger, when receiving a log, or when flushed in case of a batch logger, would only have one ILogWriter which it sends the logs to
 
@tahtoh I found this if it helps at all stackoverflow.com/q/21555731/11168559. There's an answer in there that doesn't use DeepEquals().
 
different log writers could have different output formats, such as a string, byte array or object reference
 
but it has 0 votes so.....
 
so, if you have structured logging, you might want to provide a formatter to each final log writer to format the log entry to the output format
 
@CupOfJava deepequals compares the values too
no?
 
4:16 PM
@tahtoh you want to check if two json objects have the same properties?
how about optional properties?
 
the same property types
 
how about objects with same properties but different meaning in your application?
you could just take the JObject (or whatever it is) and iterate through the keys/values
sorting on the keys, then zipped to a tuple
 
so its manual a bit there is no prebuilt thing to compare?
 
I love messing about with GDI
 
you want to compare something that is not done a lot
 
4:19 PM
I have on my desk 18 print outs of different revisions of a label design
 
usually, you compare by a specific value or by all values
not by types
 
Because it's written in code so I can't see it until it prints
 
print on screen?
 
4:35 PM
@tahtoh I just made this, not sure if this is good enough for your case
let obj1 = { foo: 1, bar: 0 },
    obj2 = { foo: "bar", bar: 200 },
    obj3 = { foo: 100, barz: 10 };

console.log(typeEquals(obj1, obj1));
console.log(typeEquals(obj1, obj2));
console.log(typeEquals(obj1, obj3));

function typeEquals(a, b) {
    let aKeys = Object.keys(a).sort();
    let bKeys = Object.keys(b).sort();

    if (aKeys.length !== bKeys.length) return false;

    let aMap = aKeys.reduce((x, y) => (x[y] = typeof(a[y]), x), {});
    let bMap = bKeys.reduce((x, y) => (x[y] = typeof(b[y]), x), {});
Result:
true
false
false
 
thats js tho
 
C# spawn a JS engine, evaluate, return :P
 
@DKDhilip yes it will do i think thanks
 
Can't print on screen, half the issue is that it needs to be printed on physical media with an odd printer with a print resolution of 203 dpi
And supports black or white, and cant dither for shit. No grays
So if you try to scale any bitmap assets you've instantly fucked it
 
Wtf shog9 was fired
 
4:48 PM
Can someone help me figure out how to add "Web Deploy" to IIS? We just added a new server and I can't get it on there. I've added a whole slew of features in the 'Add Roles and Features Wizard" but it didn't help.
 
4:58 PM
Got Web PI installed?
That should have it
Go to your site, open webPI, search "Web Deploy", be the dude who solved the thing the whole team apparently couldn't.
 

« first day (3404 days earlier)      last day (1546 days later) »