« first day (3173 days earlier)      last day (1761 days later) » 

9:01 AM
My little exercise with dict. -->
 
mornin' AHOY o/
 
o/
 
\o
\o looks like a Nazi. :(
o/
 
what?
trollface
!!Does it look like a nazi ?
 
@Hans1984 Of course not
 
9:06 AM
see
we can use it freely
 
@kame that looks like it wont work
 
@Wietlol why not?
if I change "heloabc" to "helloabc" it is working
 
have you tested it?
have you thoroughly tested it?
oh wait
you do the loop and then still use the collection
ew
also, mutation, double ew
 
we are in C# chat. Mutation is ok
 
brain mutations
 
9:16 AM
@Wietlol double?
 
two times
Dictionary<Char, Int32> sourceLetters = letters
    .GroupBy(it => it)
    .ToDictionary(it => it.Key, it => it.Count());
this is how I would write the creation of the dictionary
for the check, you dont have to subtract
you make such a dictionary for the word as well
such as:
then, you can loop over each node in the wordLetters dictionary and find out if the other dictionary contains any of them at all and more or equal than the desired amount
 
Im dead.
Actually.
Twice.
 
twice
:o
 
7 lives left
 
true
cat cat
 
9:33 AM
@Wietlol Thank you for the example. Sounds good.
 
Why is MS office still single process and single threaded
Using a sharepoint file in Excel is painful because it blocks the UI every time a cell is updated to sync changes to the server. And because it's doing that I can't do fuck all in any other excel docs I have open
 
my code for the loop wouldnt work in your case, since I use a special function in it
mostly because of Find()
 
is there a business standard for auth? I would like to implement the following part>
not SAP tho. I thought about oauth
is there a ready auth server implementation around, which is pretty standard?
okta maybe?
no. Okta just sponsores OAuth...
 
9:57 AM
just make people log on using google or whatever
we do almost the same, except we use something else that allows people to log in into that using google
or facebook
or whatever
 
I want some metadata to the user. Like client api version
 
@ntohl that image is confusing
 
@ntohl so?
 
so whenever I give the token, and I say Authenticate OK will be sent only when the client version is checked
 
@Wietlol I have mixed feelings for 3rd party auth or phone number auth
There was a time when I had no phone also I don't use IG or FB so I couldn't use service ....
 
10:00 AM
I want 3rd partish auth. I mean like a downloaded auth server from the net, but self hosted
from github or such
 
@Raimonds they also have a direct login thing too
 
so if you dont want to use google or facebook, then you can use that
 
^ have anyone used the link provided code?
 
Well they are better than guys I used
 
10:04 AM
I have never thought about client version as claim...
I have just read about Katana. Have anyone used it?
 
You mean that thing that goes with Owin middleware ?
 
you mean one of those things that cut?
 
10:27 AM
oh god
i did a thing
something is uploading to imgur and i don't know what
...maybe not?
 
@Wietlol not so beautiful. But at least I get it. paste.ofcode.org/JhUcDakmvNKmwVznxkbSaJ
 
you dont have to put the missing characters in a dictionary tho
 
@Wietlol I know.
 
but yea, this does indeed do the job without adjusting the counts
anyway...
> The magic number in GZip header is not correct
why is EF so unstable?
 
is it tho?
 
10:44 AM
iDunno
there is something weird with it atm
and it is throwing out random errors
 
U mean EF Core or just EF
 
@Wietlol Thats why i use Dapper
 
EF Core
no wait
no, in this case just EF
(I get confused a lot now that I switch between .net core and .net framework about 200 times a day)
 
@Raimonds yes. Not the sword
 
11:21 AM
!!meow
 
11:38 AM
Given that only the configuration file of the entry point exe/dll is available to ConfigurationManager, why does MSBuild output myclasslibrary.dll.config file?
 
@HollyStyles It thinks you need it I guess
 
11:54 AM
Do you want to party with the bona parte and the mighty mighty in the wellington?
 
> Why isn't this thing i just did working on UAT
Because I did to my local env, not the UAT one
ME CAPTAIN SQUIRREL. ME SM0RT
 
Because you are a flawed carbon unit like the rest of us
 
I OM DE SM0RTEZT SQUIRREL
 
All be it with a fluffy tail :)
 
The fluffier the tail, the fluffier the mind
Jun 17 at 12:01, by Captain Squirrel
i'm dumb
 
12:05 PM
Hello
Anybody has used LinqToExcel?
I am getting Unexpected error from external database driver
tried the some solutions of SO
 
12:18 PM
Are you using the correct db driver? :D
Are you sure?
 
are you sure you want to use excel?
 
12:36 PM
TIL some new TSQL: SELECT DEFAULT_DOMAIN() I can find no official documentation for this function ???
 
frist day of jaaaab
 
was this roach language ?
 
First order of business, boot rig navigate to C# chat room.
 
it took me 4 hours to get on here
been mental
 
I've had worse first days
 
12:40 PM
as first days go its been quitre nice
got the tour
 
I once deleted entire blob storage in Azure within first week. 2nd week implement backup for Azure blob storage ;)
 
12:51 PM
sup
meeting with boss in about 1 hour
i don't know what to expect honestly
 
Ask for a raise
 
hah, on what grounds?
 
hes pissed you off so you deserve it for dealing with him
 
ye... except not really
 
it was just a thought
 
12:54 PM
i wish but...
 
How much $ does your contribution actually create? I bet it's more than you think. No web-form, no customer, no customer no revenue. No you no web-form.
 
I have no idea about $$ values
 
pesos, euros whatever
 
but in any case, the big breaking point is that the lack of motivation I got from VB6 made me slack as well
I got bored a few times, when I get bored I drift away so I effectively wasted a lot of time
@HollyStyles I mean I've no idea about how much my contribution creates
Also I don't necessarily want more money yet, I'd be fine with my current wage but a different project where I can get rid of VB6
 
Yeah VB6 is not lasers.
 
12:58 PM
basically a position where it doesn't feel like mornings are eternal
where i can come here and participate in debate while I do my stuff
where I can do my stuff without having someone peeking from behind me
 
so the someone peeking behind you was your client?
bruh
 
ye
I believe this company is good, at least they don't treat me as a number
 
good morning
 
TBH If I got sent on site with a client and they were constantly watching over my shoulder i'd probably just position myself so they couldn't
but that's just me
g'day
 
fun fact as well, the company that contacted me, and then forgot to contact me for the interview, hasn't even made the effort to reach me and tell me what was wrong
 
1:03 PM
sign of an excellent company
 
I think I won that trade actually.
 
Maybe you have alias
which resolves as number ;D
 
I have a numeric ID
!!rimshot
 
user10864482
mornin
 
1:05 PM
ah well, time to go
meeting soon
 
mr5
hello sisyarp
 
@HéctorÁlvarez tell us how the meeting goes pls
 
I'm still clueless though
sure I'll update you
 
mr5
make a live video and share it here
 
there's no streaming integration
 
1:06 PM
all ur updates
gib
 
xD
kk guys, cya soon
 
mr5
gib or els
 
o7
Gud luck
 
user10864482
@HéctorÁlvarez success to you my friend, now go ace that interview, go shine ;)
 
new company, no code comments
gg
 
1:08 PM
@Harry code comments are rare
 
mr5
I don't put comments in code
Unless it's a hack
 
mr5
Or I'm writing an API
 
I commented the shit out of a livechat system I made because no one else on our team knew how signalr worked
And in the main CRM we had, i left satirical comments about stupid shit that had to happen for one reason or another
 
user10864482
well written code is self explanatory imo
 
1:10 PM
For example, converting a date to american then parsing to US it in the table plugin, then re-converting it back into UK in the bind
@user23333 not if its super duper fucky
You can have well written code, but if its doing funky shit, there ain't no figuring that out unless you tear the thing apart
 
user10864482
@CaptainSquirrel yea but exception to clunky shit; these needs comment but generally speaking
 
@user23333 well written clunky shit*
 
user10864482
when I'm doing clunky stuff I put comment
 
:P
Clunky Comments are a given tbh
Although its normally
//Don't remove this as everything breaks without it
or something along those lines
 
rip
 
1:15 PM
Discord is still rip 😬
 
user10864482
Something that happen to me is project with no documentation or like v.0.0.1 documented so like 10 years gap in a no-doc.
 
user10864482
that's ... something.
 
user10864482
I won't argue no comment at all is bad hehe
 
mr5
1:29 PM
o.O
Do projects usually starts at version 0.0.1?
I thought it's 1.0.0?
 
I thought 0.1.0-SNAPSHOT
My thinking might be mavenized tho
 
mr5
you're putting names in your version string?
 
maven does
but maven has some special stuff
you can specify a snapshot repository and a release repository
 
mr5
So which is more stable?
 
0.1.0-SNAPSHOT would go to the snapshot repository, and loading 0.1.0 from it gets that version
release is more stable
snapshot is always newer
when you release 1.0.0-RELEASE, you immediately create 1.0.1-SNAPSHOT
 
mr5
1:32 PM
So it's like the feature-xxxx in Git Flow
 
user10864482
the dotting was more like an example but does it happen to you .. the no-doc thing?
 
im not sure git works the same
or even remotely similar
its like a preview in nuget
 
mr5
There is a recommended pattern for creating branches in Git
 
or... prerelease
 
mr5
Haven't tried it yet
 
1:33 PM
for example, Microsoft.Forever.Preview 3.0.0-previewxxx
 
mr5
So, is maven both versioning and build system?
 
maven is both build system, and library repository
it is msbuild or dotnet build and nuget in the same thing
 
mr5
so versioning system is under the build system
 
but maven is also much more than that
no, under the library repository
versioning is done on libraries
when you release a library nightly, you need versions for it
when you build your project, you dont need a version
 
mr5
you do
 
1:36 PM
nah
 
mr5
it should go under the build version
 
silly .net land
 
mr5
it tells you how many times you assume you do the right thing
like, this minor version have been built like 3million times to finally put in rc
 
that is super useful
like for when... uhm... you know... when it is useful
 
mr5
my eyes are aching ugh
I think I need to sleep early
 
1:40 PM
@mr5 do you have hayfever?
 
mr5
nope
I'm just sleep deprived
 
I have hayfever
and its gonna be 38 degrees this week
 
mr5
4-5hrs sleep almost everyday
 
gonna have a pain of a week
at least tomorrow we have a cold wind coming up
or rather... coming down, since it comes from norway
 
user10864482
@mr5 welcome in the da club. That's the story of my life
 
2:03 PM
anyone here listen to music while coding or does it reduce productivity ?
thoughts?
 
@SamuelWakeman It should boost it in my case
Since i find office buzz anoying
 
I listen to music all the time
 
I have music on most of the time. I don't think it helps or hinders specifically - I just like having music on.
 
Unless you are like really into all the words
As long as music is in a background and I am focused on work not what artist sings it should be super productive
 
at AvenDATA it was forbidden to listen to music
 
user10864482
2:06 PM
earbud with sound cancellation (or one that prevent exterior noise) with piano song (or anything without parole / voice) is a best for my productivity
 
user10864482
and because I don't like the office buzz too
 
user10864482
most of us do (where i am). to a point where we have a special hand movement to disrupt someone when they are in the "zone"
 
sigh, why doesnt EF core support ICollection<String> -_-
 
user10864482
this example name for a var ahah
public string StringsAsString
stackoverflow.com/a/31648135/10864482
 
ye
 
2:26 PM
oh C# why you do this to me?!?!
 
async never does something nice to me
or I am using the wrong methods
 
what are you doing inside that function?
 
public async Task<IEnumerable<DtoFoo>> FindFoosByBarContaining(String bar) =>
    Foos
        .Where(it => it.Bar.Contains(bar))
        .Select(it => it.MapToDto());
EF Core
 
53
Q: Should I worry about "This async method lacks 'await' operators and will run synchronously" warning

dannykay1710I have a interface which exposes some async methods. More specifically it has methods defined which return either Task or Task<T>. I am using the async/await keywords. I am in the process of implementing this interface. However, in some of these methods this implementation doesn't have anything ...

 
2:29 PM
when I created the interface it implements, I was like "oh, this is all database calls so all should be Task<T>"
 
you might just need to add an await operator inside the code. or add one to when it gets called
 
it works now, but it bugs me
 
You're not using an await, so why are you surprised?
 
@KendallFrey I expected to use an await somewhere
 
Where?
 
2:31 PM
somewhere
 
its a database thing
it does net traffic to a database server
how more async do you want it to get?
 
async doesn't imply async
 
but you currently are using an await operator?
 
nope
not in this function
only in the one that calls it
it looks like I should use a ToListAsync here
 
user10864482
2:35 PM
darn tha'ts rude "EF Core does not support multiple parallel operations being run on the same context instance. You should always wait for an operation to complete before beginning the next operation."
 
mr5
@Wietlol that's cold
 
celsius, not kelvin, damnit
 
user10864482
they shouldnt call it "await" but "holup" ahah
 
they should have called it "" in my opinion
 
user10864482
sometime I wish I could spend some time and replace all c# keyword with OG replacement
 
user10864482
2:39 PM
an OG (old gangsta) fork to c#
 
mr5
 
user10864482
@mr5 what's on the image?
 
ew
 
mr5
It's OG
OG.n0tail
OG.fly --- OG.Ceeeeeeeeeeeeeeeeeeeeeeeeeeeb
OG.Cr1t
OG.ana
OG.Topson
 
Good morning o_O
 
user10864482
2:44 PM
good morning
 
@user23333 sounds like a reason to go greate a new language/fw
use your own gangsta og key words
problem solved
 
user10864482
@SamuelWakeman well, I know I'm not advanced enough to create a meaningful language, hence a fork on an existing one, c# being a good candidate i think
 
Don't star this message
9
waits
WHO DID THAT
 
not me...
 
I see we got a couple o' rebels about
I've said this before
But i'm not sure if i'm happy or sad that my highest starred comment is this
!!quote get kieran
 
2:54 PM
Feb 27 '17 at 16:02, by Kieran
Thank you for confirming im an idiot c:
3
 
@CaptainSquirrel (highest starred) comment or highest (starred comment) ?
 
uh
wot
Also hector never came back to update
is ded
confuirmed
 
user10864482
I'm trying to retrieve the output of a given process. The case is I'm launching something using cmd.exe .
 
user10864482
private string[] launchCMD(string command)
        {
            System.Diagnostics.Process cmd = new System.Diagnostics.Process();
            cmd.StartInfo.FileName = "cmd.exe";
            cmd.EnableRaisingEvents = true;
            cmd.StartInfo.RedirectStandardInput = true;
            cmd.StartInfo.RedirectStandardOutput = true;
            cmd.StartInfo.CreateNoWindow = true;
            cmd.StartInfo.UseShellExecute = false;
            cmd.Start();
            cmd.StandardInput.WriteLine(command);
 
user10864482
it's not working but I have the sense I'm not that far, can someone give me a hint?
 
3:10 PM
you might want to wait until the cmd process has finished running
im not familiar with the C# process api
but it looks like you are missing that part between cmd.Start(); and return output.ToArray();
also, I would start the process after you set up the input output redirecting
 
It's a little odd to me to start up a cmd to do that, unless your command is using shell language. I'm not sure how you'd know whatever commands were started were completed.
 
the same way how other processes do it
I use something similar in my compiler
I start a process that runs clang program.ll in CMD
(I might just as well run clang.exe with program.ll as argument, but then, I would have to deal with where clang is placed)
 
Right, that's my point.
 
or wouldnt I?
 
I think it still references %PATH%, but I'm not certain. I know there are ways, but I haven't tried
 
3:16 PM
in any case, it works as intended tho
I get an exit code and the IO is redirected to the data in my code
which allows me to properly log it or include in exceptions
 
The terminal exits? Or that's embedded in the command?
 
there is no terminal in my case
I am more concerned about how frigging difficult it is
(the compiler, not the process execution)
 
user10864482
my routine is like
1. get data from db
2. retrieve the path of the file, checksum it and copy it to a tmp
3. run a conversion in the tmp
4. confirm conversion using a crc on file data frames
5. log result to db
6. update db table

on step 3 and 4 I rely on extern app; a converter i can launch using command argument and a command-line tool to verify my crc
 
3:31 PM
hey i know like literally nothing but is there anything you can do to debugthe process at certain steps
like after step 2 can u make sure the path is correct?
 
user10864482
@SamuelWakeman oh yes, I have many step-guards , just didn't mention them :)
 
so what part is screwing up rn
?
on what step does it go wrong
 
user10864482
the part which redirect cmd output is not working; step 3 don't return anything but step 4 is supposed to
 
yeah i got nothing sorry bro
 
user10864482
np, Wietlol gave me a hint, I'm on my way for a solution :)
 
3:51 PM
Has anybody worked with the OpenXML SDK, by chance? (It creates Excel files (and Word/PPT) from code without using the Interop)
 
@CarenRose I have but it's been a while
 
I'm trying to write a date to a spreadsheet
and it is the most unreasonably frustrating thing
 
Welcome to programatically working with Office files
 
Yeah!
 
Do you have the productivity tool installed?
 
3:53 PM
Yes
 
You can use it to generate code from an existing spreadsheet, it's incredibly helpful
 
Oooh, I will try that
 
If you're not sure how to do something, do it manually in the spreadsheet, load it in the productivity tool and "reflect code" (I think that's what it's called)
It'll show you the C# code needed to generate that spreadsheet from nothing
 
I now realize it may have been a different error than the dates
Well, now I've generated a file that still gives the error, but displays the dates correctly once it "repairs" the file ...
But the most annoying part is the productivity tool, when it validates the file, finds no errors!
 
4:10 PM
 
user10864482
@Feeds how one cheat reasoning?
 
a body double
 
@CarenRose it finds no error before or after the repair?
 
Before
 
Hello!
If I use EF, will it be possible to switch db, db types and create new databases at run time?
for example create new sqlite db, initialize it, close it, connect to mysql db etc. at run time?
 
4:13 PM
With just EF? Probably not right out of the box
Why, pray tell, would you want to do such a thing
 
I want to make wpf app and I want to allow user to use sqlite or server db like mysql, postgres etc
 
I've created/initialized an sqlite database in code before connecting to it with EF.
But switching types I haven't ever tried
 
hmm
is there something like identity system for wpf like we have in asp.net core?
where I will be able to add service or something to login and user roles?
I want to add global auth system so I wont have to check in each viewmodel what current user can / cant do
 
Does anybody else like to pronounce sqlite as "sqwuh-lite"? Just to be a little obnoxious to others?
 
not me...
I dont even have to speak to be obnoxious to others...
 
4:27 PM
I take every opportunity I get to be obnoxious :)
 
:D
 
Alright, if I comment out the date part entirely it's still erroring
So ... this is good but not good
 

« first day (3173 days earlier)      last day (1761 days later) »