« first day (2817 days earlier)      last day (2357 days later) » 

13:00
the issue is that I just have plain text names:
It doesn't seem right to allow every unicode character
"hello its me"
"lastname, firstname"
"lastname [middlename], firstname"
(plain text names)
done!
Man, I'm fast
but if unmatched surrogate pairs are your thing, go for it
@KendallFrey its not a check, its to parse a list of names that are already in another database
13:01
oh hrm
Just make a regex that sums this up.. :P
would probably make things much easier though
/wave
but I didnt knew what format they are in until I have seen the possible values
we also get a few hundred "-, -"
13:05
> "lastname [middlename], firstname"
Does this make sense?
What about people with several middle names
Ya
What if bro
you f*d
Homer J Simpson --> Simpson J Homer
Would make more sense like this: Simpson, Homer J
No
Only Simpson, Homer Jay*
Actually you wouldnt put the initial but the whole middle name
13:07
@HéctorÁlvarez it does, but not if you dont know what it looks like
Middle names usually go before last names
@HéctorÁlvarez Middelname after firstname hectoriono
In german it's actually called like "Second Firstname"
All this is so culture dependent.
And even more usually, after the first name
13:07
locale usually goes before anything logical
In France, for instance, it's customary to write the last name first, ALL CAPS, then the firstname.
@Squirrelintraining Not always.
@HéctorÁlvarez Is most bestet* in my eyes
>By default, when you use a HttpClient created by HttpClient factory
WUT
From .Net Core 2.1
OK i gots a c# question before my brain explodes and i pass out from dullness and bordom
13:09
@Squirrelintraining Most bestest*
@BugFinder Ask! Quickly! Ask!
Unity - is all the scripting javascript?
Also drink water
@BugFinder Wrong chat dude
Unity works with C#, doesnt it?
13:10
not when youre trying to c# and reading ac# and unity book :P
I'm pretty sure most Unity work is in C#.
But you're talking about in-game scripting?
JavaScript isn't very well supported in Unity
Everyone uses C# instead
ok cos the books kinda wandered to the unity scripting which maybe only JS but of course cant install fecking unity here cos nasty people block too much so I cant tinker
it seems disappointing if its JS script
No shit sherliock
I am wondering if Unreal would have an LLVM tool
13:11
ive only read 268 pages so far and I SOOOOOO dont wanna be doing JS in it
so that you can compile anything to LLVM and compile that to your Unreal game
@BugFinder you won't
@Wietlol There is C# plugin for Unreal
I prefer not to do C# either
tbh, C# is a pain to use for me right now
13:13
aww why so
https://mono-ue.github.io/
https://github.com/xiongfang/UnrealCS
every minute writing in it, I get the feeling C# lacks features
because I am used to Kotlin now
Hmm not tried that
they went super saiyan on the design
@Wietlol Wanted to kick you for that :D
13:14
ok
@BugFinder Unity scripting webpage? - human translation: why not use a website like ideone (if they have it) to try out unity online in the browser
not if I can help it @Squirrelintraining
You don't know the pain to Lotus Script Wietlol, YOU'LL NEVER FEEL TRUE DISPAIR!
@Squirrelintraining I dont need Lotus Script, I can feel enough DISPAIR! in C-harp
and C-harp 8 hasnt been released yet
the greatest failure still has to come
@Wietlol I do know that many people will view <insert some language here> as less than <insert some other language> because they never entirely got down to all it can do.. so I do giggle at delphi to a large extent when people say it is feeble when actually while it never really did the whole .net style thing it did however even have features in delphi.net that .net didnt have and then tried to adopt..
13:16
on the other hand, Kotlin is also not perfect
I feel many languages are a bit like someones choice in religion they find one that suits them and claims the others are inferior because for them it maybe but not necessarily all.
C# 8 with new "deafult" nulls will be great
@BugFinder except that I look way beyond that
C# just has so much noise
@Wietlol Im not saying you but like all generalisations it only applies in general
you just dont notice it until you see how it can be done with less code
also, C# still has a lot of ambiguities and stuff
and it carries a lot of dead weight because of its age
13:18
Thats the thing, having done a number of languages I do have some insite and like everything there are tools for a job.. and there is a reason why back in the day language were for specific purposes not trying to be everything to everyone
I understand that a language is just a tool, and in Unreal, you use C++
but I really dont like working in C++, but I like other languages much more
its the same reason why Node.js exists
I don't like c#. I did about 6 months ago but any love I had for it has been beaten out of me from using Razor and MVC ASP.NET MVC
aye, i just thought Id look at unity cos the fact its so available
or why there are so many languages that you can use to write any normal application
I tried unity
it does strike me odd that we are still inventing so many new languages
very true
it messes up quite a lot of logic
@Wietlol Kotlin looks badass, i didn't manage to wrap my head around it in the 5 mins that i looked at it FYI
where Unreal doesnt make the same mistake
hence why I would prefer unreal over unity
I suppose by that logic, the best way to reduce standards/languages is to stick to as few as possible
13:22
I don't think that's the message
@Wietlol the other thing that is odd about languages today is that people feeling knowing 1 is enough
I think the message is that you're never going to reinvent the wheel.
kotlin has an LLVM compiler, which basically boils down to C
so I would assume that I could potentially use kotlin in unreal
@BugFinder ow, I know many... too many
@Wietlol yes but er were talking about languages covering too mcuh and people almost make them cos they learn 1 and like thats enough I should be set now.. rather than using the right tools
using the right tools is often not enough
13:24
are you telling me I can't program an arduino in PhP
Any general purpose language should be able to do the same things as any other
if you want client side web stuff, you basically only use javascript right?
(originally I was going to say javascript, but then I got very worried for a second and wrote php instead)
because its the only "right" tool
Any turing complete language is able to do the same things as any other.
13:24
@Wietlol It's the only tool fullstop.
HAMMERTIME!
@Lemonade1947 You can if you have a php interpreter or compile from php to arduino executable code
FULLHAMMERTIME
@LeeButler Lol I suppose.
@Lemonade1947 but that doesnt mean that it is the right tool
13:25
Did you know that powerpoint is turing complete
it's not only unity and unreal on the field. There is also Lumberyard from Amazon. Looks good.
@ntohl its a while since I tried unity and unreal
Lumberyard is based on cryengine
13:26
@Lemonade1947 After Chop Suey!
im sure there are more, but its just like windows phone, its nice that it exists, but if it is late, it is just used less
or if marketing doesnt go well
or <fill reason here>
@LeeButler hmm. I didn't know that. When I was in university the makers of cryengine held a presentation. It was amazing...
@Squirrelintraining you shouldnt wrap your head around a computer
I think that is physically not healthy
Is that so?
Darnit
Gotta warn @Squirrelkiller about that!
13:29
their map creator had real time physics rendering, so you could throw a carrier in the water and watch a cunami in a map creator tool.
But MOOOOM
@LeeButler yeah. Crymaxtools...
It annoys me they aren't using github properly there...
When losing a reference, does the GC call Dispose before finalizing? If yes, is there any use for a finalizer?
Friends don't let friends declare finalizers
13:35
The GC doesn't call dispose.
Dispose is the mechanism for explicit resource management.
But if I really should egt ride of those resources
So call Dispose.
There is a pattern that is sometimes used where a finalizer is declared which calls Dispose, if it wasn't explicitly called before.
@Lemonade1947 ya ok not bad i suppose
@Squirrelintraining wow that's an underwhelming reaction
@LeeButler How do you mean?
@Lemonade1947 I try :')
Aswell, try to compete with this
> hehehe
13:56
@Lemonade1947 No 10 five sighting yet today?
Let's hope he's busy writing code.
HA!
That's funny.
He doesn't write it- just talks about it. He has for years.
hence yesterday I commented about if he had spent as much energy into reading and trying than he does talking and whining it would be done now
Every times he comes here, I show him my warning from the first time: Either he shows me a working Hello World, or he wont be here for too long.
Last time, he actually left on his own.
Oh shit PHP invading
Given the level of questions the code he showed yesterday(?) cant be his
14:00
You guys starred his message?!? That'll encourage him! =D
The next time ten5 comes, can we use only links to older answers to talk to him?
Like...pretty sure everything that should be said has been said.
we should do all code responses in c#
@Squirrelkiller the PHP room has taken to telling him to go seek psych help
pretty sad when the PHP room is doing that
oops I just laughed loudly
THat's not helpful at all though.
14:01
truth hurts
And sometimes doesnt help at all
@Squirrelkiller it is... I was like him at one time...
When the mental patients are telling you to get help, you know you're fucked up
Did you see a psychologist?
@Tiffany There is no way... not like that.
14:02
yes
Good job
@StatikStasis maybe not to the exact degree he is, but I was pretty close. I was also a teenager/early 20s.
glad to hear you did well
treatment helps, a lot
we were all young, we were all new at stuff, but for someone to be learning a language 12 months and still not have a clue where to start, it is the idium of judge a fish by its ability to climb a tree it will always believe its stupid - he is clearly not designed for coding with ease
14:05
He's been doing this for longer than 12 months. He either has some serious issues or he's a troll.
I haven't decided yet.
he said he tried medicating with alcohol at one point
...that's not a solution, and can make certain conditions worse
yeah thats never gonna help
Technically, any alcoholic beverage is a solution.
5
Alcohol either makes things a bunch worse or way better. Your mileage may vary though
indeed, it fucks up the brain's chemistry
14:07
I was about to say that but could not decide whether it was "a liquid mixture in which the minor component (the solute) is uniformly distributed within the major component (the solvent)."
it might make you believe its better sadly it cannot change anything other than how bad your liver and kidneys are and mess with your head
he might've been seeking the Ballmer Peak, but I don't think it made a difference for him, at least at that time
If you're wasted though then you've gone too far and missed the peak
shrug, either way, dude needs mental help, and I wish he wasn't so adverse to talking to his GP about it
Which dude are we on about now
Ballmer or Ten5?
14:10
@Squirrelkiller Spoken like a true chemist
@LeeButler por que no los dos?
Perma Ballmer Peak is where its at
Two chemists walk into a bar. One says, "I'll have an H2O". The bartender pours the first chemist a glass of water. The other says, "I'll have an H2O, too". The bartender, understanding context clues, also pours the second chemist a glass of water.
Couldn't tell if this was a serious discussion since ten5 (assuming its who I think it is) is an absolute nutcase, bless, so just dropping in my 2c
That's why you're whisky laden! I knew it!
14:14
I always use 10five when talking about him in case he is a troll and searches for uses of his name. I figured that would make him happy to see people discussing his behavior if he gets off on that kind of thing.
You mean like beetlejuice?
ten5
ten5
ten5
@StatikStasis but now he knows, cause he's probably read through discussions
Well he's probably show up at the side if he was lurking. I don't think he's clever enough to log out
@LeeButler it's possible to lurk in a room without joining it
Anyone who doesn't have SO on perma login raise their hands
14:18
*raises hand*
!!votekick Neil
oh.. doesn't *lowers hand*
@Squirrelkiller voted to kick @Neil
@Squirrelkiller LOL!
Wait she can do that?
!!votekick Neil
14:19
@LeeButler voted to kick @Neil
hey, lets not try this out..
!!tell Neil votekick Neil
@LeeButler Command !!votekick does not exist. Did you mean: votekick (note that /tell works on commands, it's not an echo.)
@StatikStasis not yet.
@Neil voted to kick @Neil
14:19
Now I know what it must feel like to be lowered in position before being fired from a catapult
Stop hitting yourself
trebuchet > catapult
at least by 400 meters
14:32
How is the Variant class used, and why can't we use it?
what is a good csv library?
all I can find are answers that say "just do csvText.Split(',') bla bla bla"
can you use the built in one from Microsoft?
I'm just starting to learn unit testing and having a problem comparing two XElements, but I'm not sure why the Assert fails. The message shows Assert.AreEqual failed. Expected:<<PrefillAccountRef>
<FullName>full-name-value</FullName>
</PrefillAccountRef>>. Actual:<<PrefillAccountRef>
<FullName>full-name-value</FullName>
</PrefillAccountRef>>. but they look the same to me
iDunno, what is the built-in one from Microsoft?
Uh there's one I'm using now lemme find it CSVHelper
14:37
its in the Microsoft visualbasic namespace
@Hpjchobbes they are same
@erotavlas not in my project
Microsoft.VisualBasic.FileIO.TextFieldParser
@Hpjchobbes are you using fluentassertion?
@ntohl Not sure what fluentassertion is so Im going to say no.
I created a UnitTestProject in Visual Studio
@Wietlol you can find it under framework assemblies when you add a reference in VS
it's a must have for unit tests
for me
> You can also perform a deep comparison between two elements like this.

xDocument.Should().BeEquivalentTo(XDocument.Parse("<configuration><item>value</item></configuration>"));
@Hpjchobbes Debug the unit test, set a breakpoint on the Assert. Go into Immediate Window and type Expected.ToString() == Actual.ToString(). If it's false, check each vairable in debug and look at the actual values.
@Squirrelkiller It returns true
14:48
@LeeButler I know
I am looking into it right now
but I am not sure how to read the records
I'm jqueerying whether or not I want to keep on living.
I must either define a class or use dynamic, but neither are really satisfying solutions
CsvHelper is the way forward
@Hpjchobbes Have you asked google how to compare XElements? It may be neccessary to compare them ToString'ed.
If you don't want to define a type to read in to and you don't want to do it dynamically.... what do you want to do?
14:49
I just want to have a list of strings
for each record
Yeah you need to make a type for it to map to. If you want to map it to an EF type you're gonna have a hard time
@Wietlol Dictionary<int, List<string>> it is!
does csv helper do anything the textfieldparser doesn't?
Where the int is the id of a record, so you may aswell use Guid.
14:50
Dictionary<int, ...
what??
@LeeButler I just want the strings, that should be the basic behavior
Dunno what the id of your records looks like
because that is what a CSV is
@erotavlas Yeah, not rely on the Microsoft.VisualBasic assemblies
@Squirrelkiller there is no id on the records
@Wietlol But why, aren't you going to map them onto properties of a type anyway? A list of strings is not useful
14:52
it would just be the row they are at
@LeeButler i am actually not going to do that indeed
@LeeButler why is that bad? your just relying on something else instead
If you try to make a list of strings useful, you're in for a bad time
@Wietlol So use GetField
At least put it into a dictionary with the key being the column name
why should they be useful according to what you would do with them?
14:53
The point of having a CSV Parser is that you're parsing a CSV into something useful
ie. it will read the headers and put values in there based on those headers, dynamic or not
Or simply, You use a CSV Parser to Parse CSVs
@Squirrelkiller Yeah, it seems that most of the results are issues with comparing semantically similar, but with my unit test they are actually the same, so I thought I may be missing something with unit testing as I am still learning
@RudiVisser that doesnt give me an IEnumerable<IEnumerable<String>>
i would have to make my own thing to get that to work
No, because then you don't know which column is which
That's what I just said - a random list of strings with a random order and no semantic meaning is useless, that would be your rows that have no key
Your columns are headered - so you know what they are
A CSV is not just a random list of strings
@Wietlol I know exactly what you're going to do, and I know for a fact it's a bad idea. I had the same thing where I queried data from a database and returned it as Arraylist<Arraylist<object>>
14:55
If you know enough about the CSV to know which index refers to which, then use GetField<string>(idx) for the amount of columns you have, building up your lists
CsvParser does do what I need though
So ensued 2 years of terrible shit before I gave up on it and at least used a dictionary with the column names
@RudiVisser I dont need to know the locations and such
I just need to have the strings
I literally can't think of any CSV where I'd want that
So whatever - just read it out based on the amount of columns and do it yourself
It's like 2 loops
Cya guys tomorrow
15:06
I have to put it in a table to be viewed in our application
I dont give a frigging shit about the header name, the number of records, the size of the records, the consistency in the amount of values in a record, the order in which they are placed or how fancy a class is
I just want to have a list of lists of strings so I can put it in the table
row.Split(',')
@RudiVisser you can escape ,. It's not enough
@RudiVisser this doesnt work
Stupid requirements get a stupid answer
as ntohl mentioned
15:10
I'm bored of this problem now
Bye
> row.Split(',')
this doesnt parse csv
You don't want to parse a CSV you just want a list of strings and don't care about headers, numbers, consistency, order that they're placed etc
Remember
true
but I do care about that those strings are the actual values
just parse it with a csvhelper, and don't whine about they are too clever
Oh my god this is dumb
You know they are absolutely gonna ask you to do something which requires you to parse is properly. Just do it properly and problem solved
Shit, if you're using WPF and putting it in a datagrid, you don't even need to specify columns, just feed it a datatype and it'll do it all for you
15:13
@ntohl I now use the CsvParser which works fine
I added an extension method to chain all the Read() calls
SO WE ARE HAPPY
Vincent?
ow no, I a not happy
Vincent?
15:15
ow
yea, we happy :D
I'm back
!!tell ntohl giphy no
For your own sanity, leave for a bit longer
15:37
@Hpjchobbes check with BeEquivalentTo from fluentassertion. Most of the time it's clever.
16:01
Hi, I'm creating an excel with openxml and downloading it. When I am trying to read this excel file, I'm using "SELECT {0}* FROM [{1}]", recordCount, SheetName
But it throws error - External table is not in the expected format
In windows, excel is opening without any error
16:43
@PrashantYadav an MCVE is usually useful for us to help
17:02
private byte[] ExportDataSetToOpenExcel()
{
MemoryStream memoryStream = new MemoryStream();
SpreadsheetDocument spreadsheetDocument = SpreadsheetDocument.Create(memoryStream, SpreadsheetDocumentType.Workbook);

//// Add a WorkbookPart to the document.
WorkbookPart workbookpart = spreadsheetDocument.AddWorkbookPart();
workbookpart.Workbook = new Workbook();

//// Add a WorksheetPart to the WorkbookPart.
WorksheetPart worksheetPart = workbookpart.AddNewPart<WorksheetPart>();
var sheetData = new SheetData();
This is how I'm reading
private static DataTable GetExcelFileData(ExcelReaderRequest excelFileRequest)
{
if (excelFileRequest == null)
{
throw new ArgumentNullException("excelFileRequest");
}

string CommandText = string.Empty;
OleDbDataAdapter da = null;
string strMappedPath = DocumentManagementContext.ComponentSettings.MappedPath;
string sourcePath = string.Concat(strMappedPath, excelFileRequest.FileRelativePath);
string connectionString = excelFileRequest.FileExtension == ".xlsx" ? DocumentManagementContext.ComponentSettings.Excel10ConString : DocumentManagementContext.ComponentSettings.Excel07ConString;
edit those and use ctrl+K to make the font monospace
or paste to gist.github.com
Stop pls
@Prashant use gist.github.com or paste.ofcode.org or some other pasting site
That... that's a lot of text...
it's also a lot of stuff in one function
and definitely not an MCVE
also why the DataSet when generating the spreadsheet data?

« first day (2817 days earlier)      last day (2357 days later) »