« first day (3184 days earlier)      last day (1747 days later) » 

hello everyone
 
Hi o/
 
need help from you guys
 
I figured
 
9:04 AM
sorry i cant give you any money
 
I can, but I won't
 
I changed webform treenode to System.Web.UI.WebControls.TreeNode
 
@Squirrelkiller lend me a tenner
 
now in webform I had this code
 
9:05 AM
You'll just leave the EU and never come back
 
System.Web.UI.WebControls.TreeNode view;
System.Web.UI.WebControls.TreeNode dummydata;
 
@ratna I strongly recommend making a gist
 
!!tell ratna format
 
@ratna Format your code - hit Ctrl+K before sending and see the faq
 
!!Welcome-c# ratna
 
9:06 AM
@ratna Welcome to the C# chat! Please review the room guidelines and tips. If you have a question, just post it, and if anyone's free and interested they'll help.
 
why is cap more welcoming than we are
 
ok .
 
did we upset him
 
@ratna ok, explain what you are trying to do first and what your issue is :)
 
thanks
my project was console application in which i took webform and performed treeview task
you know treeview control
then i swithed to web application . in web application i can't use webform
 
9:14 AM
Did you switch to mvc or webforms
 
and do the treeview control
so i took System.Web.UI.WebControls.TreeNode
now some of the methods are not working in System.Web.UI.WebControls.TreeNode
like
 
@ratna What namespace is the webform in that you previously used?
 
@CaptainSquirrel 6 you nub
 
9:21 AM
@Harry lel
 
@nyconing why
do you have that
 
@Squirrelkiller double lel
 
Its out of date, but still
why
 
@CaptainSquirrel i.imgur.com/jObeP1r.jpg
3
 
i
wot
THATS CHEATING
 
9:25 AM
HOW IS THAT CHEATING?
THATS NOT CHEATING, THATS MIMIKRI
 
THAT
CHEATING
IS
U CHEATER
 
ALSO
CAP, FUNFRIDAY
 
@CaptainSquirrel NO YOU CHEATER
YOU GOT ME TODAY; SO I GOT YOU
 
YOU KNOW WHAT HAPPENS TO CHEATERS
THEY GET KICKED
I'LL DO IT I SWER
 
9:27 AM
here we go again
!!c#
 
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
 
...they usually fuck everyone and the authorities dont care?
 
RO's threatening to kick RO's
 
No, not threatingn
 
9:27 AM
Bruh you kicked our Captain
 
:O
 
It's nice without that pesky rodent here 'eh?
So peacefull
 
youre a rodent
 
So tranquil
 
SKREEEEEEEE
 
9:28 AM
Oh shit
 
Damnit kids
 
He started it :)
 
why cant we all just GET ALONG
 
Well ok he had that one coming
@Harry because oil and stuff probably
 
hello guys. this is not exactly a c# question but it has me pretty stumped. I'm saving a txt file in utf-8 and sending it via mail. I'm on go2meeting with the party on the other side. When they open the file its suddenly in ansi and losing a bunch of the information in it. How could that be possible?
 
9:28 AM
If he kicks me again, shit's gon go down
@cybera are you sending it via attachment i take it?
 
!!votekick Captain Squirrel
 
@Harry voted to kick @Captain Squirrel
 
!!VOTEKICK CAPTAIN
 
@Squirrelintraining voted to kick @CAPTAIN
 
@CaptainSquirrel yes via attachment.
 
9:29 AM
@Squirrelkiller THAT WAS REVENGE
 
@cybera 1) Make sure it's really utf-8 2) Check which program they're opening it with
 
COME AT ME BREATHERIN
 
:O
 
@Feeds OI FIX THAT RIGHT AWAY SIR
 
9:30 AM
!!should i give squirrelintraining RO again
 
@CaptainSquirrel Of course!
 
@CaptainSquirrel DIGS HIS RABBIES RIDDEN TEATH INO KIERANS NUTS
 
NOw WHAT YOU DO
 
9:31 AM
!!is this room out of control
 
@Harry Of course!
 
Cap looking out for the rodent fam lol
 
@Squirrelkiller I've triple checked. and I even send it to some colleagues to see if there will be a problem on their end. And everything was fine. But on the business partner computer the file suddenly becomes ansi. He opened it with notepad++ and well as regular notepad same situation.
 
what if they specifically tell Notepad++ to read the file as utf8
 
9:31 AM
@cybera do they have a mail filter?
 
@cybera maybe change encoding to UTF-8 on client-end-side?
 
Also yeah, firewalls and stuff can break shit
 
@cybera Also the e-mail program/anything that handles the file might be just saving it as .ansi instead of .utf8
!!is ofcourse
 
@Squirrelintraining Not a chance
 
9:33 AM
!!is !=!
 
@CaptainSquirrel No way
 
I can't because ansi is smaller char set, and information is just lost. Once saved into ansi it can't be just opened int utf-8 as far as I know.
 
ive had more comments starred in the last 24 hours than ive had in the rest of my time in this room combined
 
I still have a higher starred comment than you
 
9:33 AM
@cybera Only if it's indeed saved as ansi
 
!!quote get kieran
 
calling yourself an idiot
 
Feb 27 '17 at 16:02, by Kieran
Thank you for confirming im an idiot c:
 
26 stars beatch
 
In the end, it's lots of bytes, and the decoder decides which encoding to read the bytes with
 
9:33 AM
I don't think it works like that
Try it out
trial and error
 
Well when I asked them to go to regular notepadd save as it showed it as ansi
 
of course
encoding -> utf8
(no converting)
 
:(
 
nice
 
9:35 AM
uhh Captain
 
wot
If you're about to tell me its the wrong order, ur wrong
 
10 messages moved to Sandbox
!!invite Harry sandbox
 
@Squirrelintraining That didn't make much sense. Use the !!/help command to learn more.
 
does that work?
naah :<
 
!!tell harry sandbox
 
9:36 AM
@harry Please go and play in the Sandbox
 
ty thats the 1
 
!!suckmyelbows
 
@Squirrelkiller of course we tried to just change the encoding to utf 8 but stuff is just question marks at this point.
 
9:37 AM
Alī becomes Al?
 
then it really does arrive as ansi
 
for example
 
must be something in the email chain then
zip it and try sending that
 
I guess we'll try different ways of transferring the file. An SFTP or something
 
or of corse mak a pdf if it's supposed to be read only
 
9:39 AM
there is information inside that needs to worked on. PDF are decent for reading, but really problematic for working with.
 
Then zip it and send the archive
unzip at destination
or go google docs lol
(if your data policy allows it)
 
i used System.Windows.Forms
previously
 
Oh, cool, the kick notification now tells you who kicked who and at what time.
 
System.Windows.Forms treeview
now I'm using System.Web.UI.WebControls.TreeView
some of the methods from System.Windows.Forms are not working in System.Web.UI.WebControls.TreeView
like
 
@Squirrelkiller tried that too. They can't receive zip files I'm guessing their mail server has filters in place for security reasons. We're trying sftp's next :)
 
9:45 AM
System.Web.UI.WebControls.TreeNode nodedata;
System.Web.UI.WebControls.TreeNode dummydata;
dummydata = new System.Web.UI.WebControls.TreeNode();
nodedata.Nodes.Add(dummy);
not working nodedata.Nodes.Add(dummy);
as Nodes not exists into System.Web.UI.WebControls.treenode
 
@ratna So you didnt listen the last time this came up?
 
@RoelvanUden Ups
 
yes i need to convert System.Windows.Forms.treenode to System.Web.UI.WebControls.TreeNode();
 
Also you told us this:
42 mins ago, by ratna
I changed webform treenode to System.Web.UI.WebControls.TreeNode
 
Wasn't me roel!
 
9:48 AM
You went from WINFORMS to web
 
but is there any documentation regarding this . what are the methods present in System.Web.UI.WebControls.TreeNode();
 
You can't just port it
it's different technologies
basically solve your xy, then you can fix your webforms
Figure out what is supposed to happen, in a bigger perspective
also not in a technical perspective, as far as possible
 
error is this
'TreeNode' does not contain a definition for 'Nodes' and no extension method 'Nodes' accepting a first argument of type 'TreeNode' could be found (are you missing a using directive or an assembly reference?)
 
What are you trying to do in that context?
Traverse child elements?
Find a child with a specific title or type?
Make every element on screen blue except the background?
 
hi
 
9:54 AM
Hi shad
I think you've been the trainee in here long enough
Can you help ratna?
 
Save the children... nodes!!!
 
I am trying to get individual values in csv row
using splitting on ','
me myself in a problem :P, but I can try to
 
line.Split(";")
 
Problem is a value already contain ','

eg. 1,hello, "I am, good"
^ this causes problem
 
Then it needs to be escaped
 
9:56 AM
4 values now
 
The one writing the csv fucked up
 
@Shad the point of a separator is that it is a unique divisor of values in csv
if the values themselves could potentially have "," then you have a text file, not a csv :)
 
You cna of course try parsing smarter and start a string liteal when " starts, but that's only if you can't affect the generator
 
well csv is comma sperated values
 
escaping it would be a solution
 
9:57 AM
it is escaped
 
it is?
How?
 
yes
 
then use \ in negative lookbehind
so you separate by commas not escaped
 
1,hello, /"I am, good/"
 
ah
...does .NET have a csv parser?
I'd kinda expect that by now
 
9:58 AM
I am creating my own
 
that's not really "escaped" so much as its in a string
 
Would be good enough for me
 
I wouldn't use regex for this then
if you're allowing this level of complication
at least not for splitting
 
so what should I do>
 
There's like two approaches
first you make a function that parses a line for you: IEnumerable<string> GetValuesFromCsvLine(string csvLine){}
 
10:03 AM
@Harry In Peru and other latinamerican countries the do eat things like Cavia porcellus. Just pay that squirrel a holidays trip there
 
Now you traverse the whole string for(var i = 0;i<csvLine;i++){}
 
I have the lines
 
Now you make a state machine basically
 
1,hello, \"I am, good\"
2, bye, ok
 
mr5
Lots of insects here that's why people come n go
 
10:05 AM
If I remember correctly you must be careful with lookbehind regex, some API's do not allow them (javascript)
 
either 1) go over every character, add currentChar to a string variable local to the function, return when you find a comma except when you're inside an escaped string
 
@mr5 inscects?!
!!afk
 
or 2) read the line and get commas, figure out which ones are seperators, and have a function build your values from that
 
BTW, sorry I linked spanish wikipedia instead english one xD
 
run through all the characters with a boolean which says you're in a string or not.. divide into chunks for every comma present outside of a string
regex is probably an inefficient means to accomplish the same thing
 
10:09 AM
@Squirrelintraining your mother was a hamster
 
@CaptainSquirrel Squirrelintraining is afk.
 
your father smelt of elderberries
 
mr5
@Squirrelintraining u guys looks like an insect from afar
 
:O
YOU TAKE THAT BACK
 
mr5
10:14 AM
look like ants ^^
 
Gah you fucking mongs
What do you want from me
 
@Harry Your ma on toast
Wait
 
And yes, I work Sunday to Thursday, my PC is sometimes left on over Weeke ds to process shit
 
what does ma look like on toast?
 
Lee is a wool, he might not get understanderino
 
10:21 AM
Shh
 
Also
He's been here for a while
I vote to make @CaptainObvious RO
 
@CaptainSquirrel you what
 
U HERD ME
 
I second this motion
 
i didnt know squirrels came in herds
@CaptainObvious teachers pet
 
10:22 AM
@CaptainObvious u cannot second ze motion
 
@harry NOW LISTEN HERE YOU LITTLE SHIT
 
Squirrels come in flocks
 
squirrels come in flocks, belong in sewers
 
I remove my vote
 
What don't I understand anyway
:(
 
10:23 AM
Why is connecting to a DB a pain 99% of the time with EF
 
can anyone help me on this stackoverflow.com/questions/56901180/…
 
@juan it's not
 
hahaha cap'n thought you were calling him a little shit
 
Fun fact, this chat is hard on mobile
 
Ohh ya this chat sucks in mobile
But ya it is.. For some flocking reason
I connected to the DB in server explorer
Plugged the same con string into the app.config and `A network-related or instance-specific error occurred`
 
10:25 AM
Are you using core or 6?
 
6
 
I re-vote my vote
 
time to make a sanity app
are we voting on going to work?
 
Also have you considered checking the exception to see what the network related or instance specific error is?
 
10:27 AM
You can if you want
 
well most of you are I bet
it's localhost >_>
I can't connect to my self!!!
 
I'm not in work today, hence me only turning up now after responding to notification spam
 
@juanvan are you using sql server?
 
ya
 
Is mixed auth on?
 
10:28 AM
Are you doing something dumb
 
connectionString="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=LITTLESHITS;Integrated Security=True"
well ya I'm making a rock talk
sounds dumb to me but it makes $
 
hehe
 
!!hmmmmm
 
10:29 AM
You've not targeted your db
or added a username & pass
 
@CaptainSquirrel And your father smelled like dingelberries
 
na I have integrated security on
 
Integrated security doesn't need user+pass
 
I can try that I guess
don't think mix mode is on
 
10:29 AM
@juanvan make sure you turn on mixed auth first
 
it's default config
 
Do you know where to do it?
 
And initial catalog is the dB selection
 
ya
 
coolcool
STOP PINGING ME YOU SHIT @Squirrelintraining
 
10:30 AM
yep - it's the same exact string in the server explore
 
oh my god
lmao
 
hahahaha ping me ping me
 
@Captain ping
 
I have no speakers
 
10:30 AM
@ratna You didn't answer my questions. Those were not rethorical questions.
 
When someone pinged you earlier I got the notification so that was fun
 
:46685149
 
And i just hit ctrl + m
 
Thanks wildcard pings
 
@CaptainSquirrel ping
 
10:31 AM
>:(
D:<
 
:)
 
@juanvan pong
 
:-)
 
ping ping ping
 
Just realised
i can turn the annoying ping sound off
heh
 
10:32 AM
yaaa
 
@CaptainSquirrel CTRL + M?
 
right click mute tab
 
>:( is either an angry smiley or davy jones
 
god dammit
 
10:32 AM
ctrl+m = mute tab
 
@CaptainSquirrel HOLYCRAP
 
I know right
 
HOW LONG HAS THAT BEEN THERE?
 
!!afk lunch
 
FOREVER
LITERALLY FOREVER
 
10:33 AM
!!afk lunch
 
@Harry PING THE SHIT OUT OF THE TARD THAT TRIED TO DO THAT EARLIER TO ME!
@Harry hurry
@Harry harry
 
10:59 AM
@csharpforevermore Pretty sure like 95% of people here use git
@Squirrel HA!
 

« first day (3184 days earlier)      last day (1747 days later) »