« first day (3314 days earlier)      last day (1628 days later) » 

12:06 PM
hoolo heeman
 
Oh look its hungerocock
357 days to go J.Doe
 
I'm back like the Aliexpress sales
Do you guys have a handy regex to get valid path strings?
I have to make one that discards all invalid symbols, and ..
 
What kind of path
Although the answer is no regardless
 
like \\host\basepath\customfolder
 
Oh filepath
Filepaths can have basically anything in them can't they?
 
12:18 PM
I am gonna go mad!
there is so much to learn!
>.<
 
just check if it contains any of these
> On Windows-based desktop platforms, invalid path characters might include ASCII/Unicode characters 1 through 31, as well as quote ("), less than (<), greater than (>), pipe (|), backspace (\b), null (\0) and tab (\t).
 
@HéctorÁlvarez wat?
Why not Path.Exists(path)?
 
@Squirrelintraining Maybe he has to create it
 
@Squirrelintraining wat?
No I can't do that, I'm not programming.
 
Say word?!
I don't get your question/desire spanish boi!
 
12:22 PM
I'm doing operations orchestration, there's an operation (basically a .jar file) that does this already and takes user input. All I can do is a JS scriptlet which is very dirty and I don't want to use it, or a regex (which is the way to go)
So I'm doing a delete folder flow, but the client is idiotic and doesn't want to setup permissions
so I have to make sure you can only delete very specific folders
e.g. no providing .. as path
Come to think of it, I don't need to check weird symbols because it wouldn't exist anyway
 
I think you need to build your own.
[^] <<< this might come in handy
the "not" symbol
Check the cheatsheet on the lef tfor more info
 
Last time I used somehting like that I made an absolute horrorshow
It did exactly what I wanted it to, but it was horrendous
 
@Squirrelintraining Sure.. if you want to cheat
 
I don't mind cheating.
Aslong as it's illegal that is.
 
is it frozen where y'all at???
 
12:38 PM
in the freezer
 
i locked myself inside the freezer and cant get out
halph
 
if you get sick again, can I feed you hot soup?
 
Don't say yes, it's a trap!
 
hmmm
 
12:42 PM
yes unless hot soup is a code for some gay sht
you never know
 
I've learned the command trap
 
@Hans1984 quick, post a photo of yourself in the freezer on facebook!
 
@Hans1984 hot white luuuve soup
lel
 
I got in there to get rid of my headaches
 
12:43 PM
then after that, call 911!
 
well @AlRey is right. hot soup is good if you got a cold
but i rarely eat soup in general
hmmm
no proteins, not eating it
;)
 
@JackSparrow trap
 
facepalm
 
12:49 PM
maybe change it to one of those yu-gi-oh trap card pics or somethin
(knows dick about yugioh)
 
aww why would I, a converted bisexual, wanna do gay shit? ;p
 
hell no
lmao
 
hueh?
 
cat caught
 
12:54 PM
hm actually I found the wiki article on conversion therapy
wondering if it's as dangerous as everyone says it is
 
I love when cats do that lmao
 
this is one of the best
shows how weird cats are
weird and funny
 
especially when the image is not found ^o^
 
Sorry I had to attend business business
 
12:59 PM
actuall work ?!?
:o
 
ye
had to review some changes we did on hybrid cloud flows
 
sounds complicated
I brought a peanut protein bar with me
it's yummy
 
https://www.youtube.com/watch?v=5dmQ3QWpy1Q
so it's been 2 years since this song -- is it still trash?
 
1:17 PM
@CaptainSquirrel I just had to get lunch from the coop
Because the butchers was closed :(
 
what are some useful tools you use in your project development ? for productivity and any other benefit that VS cant provide
 
idk why this is so funny to me
 
haha its pretty funny
 
@Sakthivel are you talking about stuff you can install via Nuget?
 
mm yeah, that could be added to the list
 
1:21 PM
I'd say if you're using javascript: get the latest jquery via Nuget…..my workplace is still on a version from 8 years ago and there is a number of things we can't do with it
depends on the project, though; what exactly are you working on?
 
Oh shit he's not even here
 
I am developing a new project from scratch with .Net framework 4.8. It will be a console library that exposes few interfaces for other applications to use
 
so it's connecting to a database?
 
I am sad that DI is not first class citizen in .Net framework yet so I am going with Autofac. It is connecting to database yeah
 
I recommend Microsoft SSMS, then
that's something you'll have to go online to download
I'm not really sure how the free versions work, though -- assuming there are any
> SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases. Use SSMS to deploy, monitor, and upgrade the data-tier components used by your applications, and build queries and scripts.
Use SSMS to query, design, and manage your databases and data warehouses, wherever they are - on your local computer, or in the cloud.
SSMS is free!
ok yea there is a free version
 
user10864482
1:31 PM
how much time would be deem reasonable for ants memory profiler to complete a 'take a memory snapshot'?
 
The time it takes to write said memory to disk probably
the bottleneck is almost entirely with the hard drive
unless you're using an SSD drive, in which case it would be almost instantaneous
 
user10864482
darn. I'm on a ssd and its been more than 5 minutes
 
@Sakthivel here's somewhere you can go if you're not too familiar with databases dba.stackexchange.com
 
@human well that's not normal..
 
o.o
 
1:36 PM
I am familiar with mainstream tools
SSMS is actually free unless it is deployed in production i believe
 
oh....shoulda checked your rep before sending the link lmao
 
@human SSDs write at roughly 550 Mb per second, so either you have 550 Mb * 5 * 60 or 161 Gb of memory, or it's something else
 
lol my rep is nothing. i been in this room for like 7 years or so :D
 
I mean it's better than only being active in SO for a few months and having 34 rep :P
 
My memory snapshots tend to take about 10 seconds
But tahs with applications using ~1.5gb of ram
@Neil That's only if they're operating at full speed (and on a sata link)
 
1:40 PM
@AlRey I was curious for rep in the beginning and was answering questions. then i slowed down. I come here to learn and chill. check questions occasionally
 
Real world performance varies wildly
 
> ~1.5gb of ram
is that even an application?
real applications use at least 8GiB
 
Nahh
Only java applications use 8gb of ram
 
I didnt know Chrome was written in Java
 
@CaptainObvious fine, even if we assume it's 100 Mb per second, that's still 29 Gb of memory
 
1:41 PM
Probably is with how badly it runs
Yeah something tells me whatever memory profiler he's using is doing something odd
 
it's probably not an SSD but just a normal sata drive
 
> UI: Mostly C++, though the mac port uses Objective-C
hmm...
ironically, in my experiences, JVM runs a lot faster than Net Core
 
For the SSD I'm running on right now, these are the rated speeds:
And the actual speeds
@Wietlol If you're talking about that 1 cherrypicked benchmark which was using netcore 1.1 then that is not a valid comparison at all
 
what program is even being used to measure speed here?
 
CrystalDiskMark
I'm running an older version so it might be a bit different now
 
1:47 PM
@CaptainObvious not really... it was a comparison between what we run at work, which is net core 2.1 applications and what I tried at home, using Java 8 with kotlin
both applications run in AWS Lambda, inside a private VPC
 
Gonna need to see some methodology there
 
cold starts at work last for approximately 10-15 seconds
cold starts at home last for approximately 100-200 milliseconds
the only difference is the runtime choice
 
I don't know how the hell you're making a netcore app take 10-15 seconds to cold starty
 
@Wietlol reason why it drains ram so much
 
Not that startup time is even a good measure for anything really
 
1:50 PM
the differences in actually running them is negligible
 
I don't think I've ever seen the JVM start froim cold in less than 5 seconds
 
it might not be a good measurement, but it is certainly an important aspect
 
Nah you've definitely cocked something up
 
perhaps AWS has a special JVM
 
That's like me comparing my asp vs aspcore apps here
Except the full framework version on startup connects to another service and downloads a huge amount of data on startup
 
1:51 PM
@Sakthivel it is actually written in C++ it appears
 
"JVM" and "being fast" usually don't go together in the same sentence, unless that sentence is "JVM is not being fast"
4
 
only if you compare Java 1.2 with C back in the days
 
Here's recent benchmarks comparing JDK13 vs netcore3. netcore is faster in most benchmarks, but mostly not by a huge margin
In the first 2 though netcore absolutely wipes the floor with Java
 
C# finally fixed regex?
 
Obviously C and C++ are fastest in the regex one, with Haskell and Rust also making appearances before C# on core
Interesting actually that the AOT compiled C# is slower than the live one
 
2:02 PM
Of note: the C# versions that are fast are using a PCRE library - it looks like the same one the C benchmarks are using
so... fair, in comparison to C, maybe.
 
Hmm, I didn't notice that, that's a bit unfair
 
It makes the benchmark a little unimpressive, for me. C, C++, and haskell (the 3 fastest at regex) all also appear to be using similar or the same library (as well as the fastest C#). So it feels like their speed is more a commentary on the quality of the PCRE library, and whether they can effectively invoke it quickly
 
@AlRey 2002 called and they want their joke back
 
you say that like JVM still isn't slow asf
 
The nucleotide one is all .net though
And that also wipes its ass with Java
 
2:09 PM
@AlRey if JVM is slow af, then it is probably your computer from 1972 that is the bottleneck
 
Heh. Wow. C#'s competitive even with rust - C++ is the only one markedly faster
C# AOT is faster than C at k-nucleotide
 
huh weird...I could've sworn the laptops that myself and a bunch of other college students bought just a handful of years ago were made after 1972
 
@Zarenor what
 
(C++) 3.81 vs (Rust) 5.40 vs (C# AOT)5.63 vs (C)6.00
 
180
Q: Is Java really slow?

Stefano BoriniJava has some degree of reputation for being slow. Is Java really slow? If yes, why? Where is (or was) the bottleneck? Is it because of inefficient JVMs? Garbage collection? Pure bytecode libraries instead of JNI-wrapped C code? Many other languages have these features, but they don't have thi...

 
2:13 PM
well there's the problem: "enterprise"
oh, and streams-based I/O
yeah that Java class was such a goddamn mess
 
@Zarenor what are they running?
 
good morning
 
hmm... I found out why Wietlang was slow
 
It takes after it's namesake?
 
(0 until 1_000_000_000).forEach { }
I found a few of these throughout my base library
 
2:16 PM
Well you can drop a zero every time you want to improve the speed
 
If those didn't get optimized out something is very wrong.
Also 1_000_000_000 wat
 
You can do that in C#
 
Really? TIL
 
Yeah, it was added in 7.?
 
it is really nice...
the only place where we dont use it is in our events registration
because we want to [ctrl][shift][f] for "81623786" without having to manually add in the underscores
 
2:21 PM
yeah, that makes a lot of sense.
although you could use a constant with a comment
 
I suppose an IDE could also choose to simply visualize it differently
@JonathonChase ye... no
 
user10864482
how many instance of runtimemethodinfo is too many in a app (approximately) ?
 
although, on those locations, the value doesnt matter
as long as it is unique
 
Oh, it's not a fixed value. Gotcha
 
no, we use a nifty key combination to fill in random numbers on those locations
 
2:23 PM
Second memory related bluescreen in two days. I'm starting to suspect some of my ram is bad.
 
we dont care about the value
a unit test ensures that all values are unique
 
Is this for an event sourcing pattern?
 
logging purposes
log events
 
Ah, so the ID can be used to get the chain of explosions
 
yep
 
2:25 PM
what so you don't like using timestamps from a 'An error has occurred. To view the erorr, turn off customerrors in the web.config'
 
you assume that it is a website
 
Just jokes
 
in fact, we dont even catch exceptions
 
V.7
@Hans1984 Coincidentally, I've been there for some time and it left good impressions
 
our services simply throw
 
2:26 PM
DataGrip actually does do a display trick to render numbers with the _ separator
 
that's so pretyyyy
 
I am writing a new .Net framework class library that constantly runs document processing and other text processing stuff in the background. this library will expose few interfaces for other .Net core application. Is it a violation to refer .NETFW library from .Net core app ?
 
where is that?
 
looks like sweden
 
@Sakthivel Can it target .net standard? Because I would try to do that.
 
2:27 PM
@Sakthivel you should use a standard
whoops
 
2.0 should work with most versions of framework and core.
2.1 is core only, though.
 
@Squirrelintraining Hardware? I'm not sure. They used to have a page talking about what machine this was run on and how timing was conducted.
 
can i use interop dlls that target .Net framework in .Net standard ? I know .Net FW 4.8 is compliant with .Net standard 2.0, but this dll needs a windows runtime. using it in a core application makes me scary
 
.net config? (C# AOT)
.NET Core SDK 3.0.100
Host Version: 3.0.0; Commit: 95a0a61858
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true
/p:PublishReadyToRun=true
/p:RuntimeIdentifier=ubuntu.19.10-x64
 
2:51 PM
There a faster way of removing a Using block around a long piece of code with out 'Hunting for the end }
 
remove the first } you see then reformat the code
I mean, it probably will break things, but it is fast.
 
ya it does, when you have the Drop lines in VSCode, but not in VSCommunity
 
The vim shortcut to go to a matching ending curly is ]}. I'm not sure if there's a standard vs shortcut, but now I want to know.
 
You could collapse the code block with the outlining feature, then drop a line below the collapse, then expand and you should be at the matching end brace.
 
2:56 PM
Interviewer: "What can you say is your biggest strength?"
ML Expert: "I'm an expert in machine learning."
Int.: What's 6 + 10?
ML E.: Zero.
Int.: That's not even close! it's 16!
ML E.: Okay, it's 16.
@juanvan remove the using
the braces will form a code scope block
 
Ya..
 
code scope blocks should be easily removable by the IDE
 
Why can't I just F2 over using delete and VS delete those lines for me
:-p
 
510....took me like 5 seconds to figure out
you know what equation almost always takes me a moment? 8*7
 
2:59 PM
VS doesn't seem to have a remove empty scope block refactoring by default.
 
Yeah but Rider.
 
obviously
@juanvan uninstall VS, install Rider
then open your solution, go to your line of code
then remove the using and refactor the braces out
then uninstall Rider and install VS again
#fastsolutions
im surprised Rider does not offer me a "convert to using statement" thingy
 
Rider seems cool
 
but that might be because of my C# version
 
3:01 PM
Are you targeting C# 8?
 
Use to have resharper
 
no
 
umm no
 
C# 7
 
Yeah, Rider is smart enough to not offer refactorings invalid for your language
 
3:02 PM
I suppose that is why the option isnt visible for me
 
occasionally I have to drop into projects with a required lower version of C#, so I set the lang option then write the code with the sugar feature and then let rider oldify it for me.
 
Ya 7
 
I dont really see the benefit of the new using stuff
 
I do it to flex on developers who aren't spending all their time learning new features.
 
I still wish Kotlin would offer a close-on-garbage-collect option
closables would then be auto-closed when garbage collected
which is when they fall out of scope
 
3:05 PM
What are closables?
 
disposables?
closeables?
disposeables?
 
I figured but didn't want to assume incorrectly.
 
I asked the client and they don't want to allow people to delete subdirectories, so I don't need to regex anything weird, just standard names
 
> ProcessDependancies
I love people /s
 
How does english decide whether in a combination of verb + able, they use -able or -ible?
 
3:18 PM
random
 
spelling was invented to sell dictionaries
 
So Edible might aswell be Eatable?
 
well, edable
 
Ed isn't a whole word though
 
3:20 PM
edable is being able to ed
 
well i ed food all the time
 
3:39 PM
@Squirrelkiller You pronounce it in Spanish and then translate into English
Convertible in Spanish because the verb is Convertir.
Testable because it's Testear in Spanish.
 
testicle?
 
Testículo.
 
I should leave, shouldnt I?
 
Not this time
 
I am leaving
laytar
 
3:58 PM
@HéctorÁlvarez of course, why didn't I think of that
 
@Squirrelkiller Now it makes sense huh
 
@Squirrelkiller Because you're just a squirrel
 
Fácil
I'm gonna start using small expressions in Spanish while speaking becuase it sounds cool.
No crees?
Why do I always type "becuase"?
Until I try to type because "incorrectly" and type it right
REEE
 
-walks in-
TESTICLES HAHAHAHAHA HA!!
-walks out-
 
4:28 PM
Creo si
@HéctorÁlvarez when going for the a, you just typed the c. So you used your left hand. Now your right hand is also going for the u, since you're trying to use both your hands as efficiently as possible at the same time. Since you left hand just pressed the c though, it needs more time to receive a new order and accelerate in the right direction. Therefore your right hand arrives at the u first.
You basically have a race condition because you don't use locks because they aren't performance enough.
 
V.7
 
G K
5:15 PM
Hi all,
I have some question related to Sql Server
I have an input comma separated string where I am splitting the string and getting the primary keys from a table A.

Now after getting these primary keys from Table A, I need to match with Table B with a foreign key and then get the record where all the rows that is fetched from above primary keys are matching.
 
V.7
 
G K
I got stuck how can I proceed with this. I tried with inner join on the new table
but not able to get any ideas on this kind of thing
 
V.7
DB first, Code first?
 
I don't think this is EF
 
G K
Not EF
 
5:17 PM
Or at least, let's not muddy the waters
 
G K
Just a simple Sql Server
Sorry I mean
Stored Proc
 
"all the rows that is fetched from above primary keys are matching" I'm not entirely sure what this means. If you just want all rows from table A matched up with matching rows from table B, that's an inner join. Could you show up some code?
 
G K
5:45 PM
I wanted to fetch records from Table A where it must satisify all the rows that are fetched from table B
 
G K
True but this is something like I am getting two rows from my first query .
Now when I wanted to fetch records where both the rows has to be matched in table A. So I wanted to call the records where it is matching for both the records
 
hey guys what gets updated on every build in visual studio (the revision or the build number)?
because my company has revision and build swapped and its confusing the heck out of me
 
@GK you're describing an inner join. We're going to have to see some actual code to be able to help you find the problem.
You can make an MCVE at sqlfiddle.com if you'd rather not share your real schema
Jack, commands
 
I know the following commands: commands, learn, tell, echo, save, info, forget, ban, unban, c#, kieran, panini, lenny, shrug, KieranSpelling, funfriday, kieran2, Treason, Treason2, treason3, WhyIsCapGone, test, slänt, trap
 
G K
5:52 PM
 
Jack, learn mcve Mate, if you want help, I'll be needing an MCVE
 
I've learned the command mcve
 
Jack, mcve
 
Mate, if you want help, I'll be needing an <a href="https://stackoverflow.com/help/minimal-reproducible-example">MCVE</a>
 
oof
Jack, forget mcve
 
5:54 PM
Command mcve has been forgotten
 
needs more []()
 
G K
If you see I will get ID 1,2 (assume) from bottom table (lets call it as TableB)
Now with this column values (1,2) I need to match from table A and then I need to get a record where both the values 1 and 2 are maching.
 
@GK ever heard of a join
 
Jack, learn mcve Jack, learn mcve Mate, if you want help, I'll be needing an [MCVE](stackoverflow.com/mcve)
 
I've learned the command mcve
 
5:55 PM
Jack, mcve
 
Mate, if you want help, I'll be needing an MCVE
 
G K
@TravisJ yes
I think my question is not properly understood.
 
That would probably be the route to go to connect those records.
 
What's the canonical MCVE url now?
 
G K
if I do join then I'll get Ticker Group1, Ticker Group2, TickerGroup1
But I want only TickerGroup1 because that row only matching for both the values 1 and 2
How do I do that is my question?
 

« first day (3314 days earlier)      last day (1628 days later) »