« first day (2081 days earlier)      last day (2869 days later) » 

12:01 PM
Where do I apply the int.TryParse ?
 
@VictoriaS. generalizations like that are a wankstain on the fabric of computer science.
 
    :31371592
        string input = Console.ReadLine();
        int limit;
        if (!Int32.TryParse(input, out limit))
        {
            Console.WriteLine("Invalid input. {0} is not a number", input);
        }
 
that live edit
 
And then I can use .Parse right?
After it checks
 
You don't need to - if TryParse succeeds, limit will contain the parsed number.
 
12:03 PM
how is that, isn't limit a variable passed by value?
 
@Proxy I will never bow down to Markdown!
@catgocat Note the out specifier - it marks it as "pass by reference, must be initialized by callee".
 
Oh ok
 
C4u
CTRL + T is funny. Cant imagine where someone could need it.
 
@C4u What, flip characters? Its only use is to annoy Resharper users when they're using a machine without Resharper.
 
C4u
xD
Yeah why should someone flip characters >.<.
 
12:07 PM
Because why not.
 
C4u
When misstyping something I would NEVER think about if the chars are flipped so I could use CTRL + T lol.
 
it's safer than flipping tables
 
C4u
>.<
 
and better than flipping burgers.
 
But less tasty
 
12:07 PM
true.
I want a burger.
 
C4u
(╯°□°)╯︵ ¿¿¿
 
I don't want a burger.
I want a big whooping Pizza
With lots of cheese
 
!!pizza 800 800
c'mon cap
!!info
wat?
 
!!pizza 800 800
 
12:10 PM
there we go
 
C4u
How
 
mmmm
 
C4u
XD
 
@C4u 10/10
 
lol
 
12:11 PM
!!dunphy 1920 1080
 
@C4u How. Name Squanto.
 
is lemon's computer now on 56k modem
 
"56k modern"
 
C4u
No seriously.... what is !! about?
 
12:12 PM
that's an oxymoron if I ever saw one.
@C4u er, no
!!tell C4u help
 
@C4u Information on interacting with me can be found at this page
 
@tweray was on vacation for a week. browser leaks and such
 
@VeronicaDeane Hey, you may not have been around, but I remember when 56k was practically futuristic.
 
probably should reboot it
 
C4u
Interacting with you?
Thats a bot lol!?
 
12:13 PM
@AvnerShahar-Kashtan And I remember when Britain was in the EU, but that doesn't make it true.
 
C4u
1 min ago, by Caprica Six
@C4u 10/10
What is that about then?
 
you asked it a question
it gave you an answer
 
C4u
O.o
!!norris
 
@C4u That didn't make much sense. Use the !!/help command to learn more.
 
C4u
Well... yeah.
 
12:15 PM
@rlemon ah vacation, i kind of forgot how it was like for quite a while
 
I don't do much
worked on my yard
 
I just asked my web hosting if there is a way to see how much RAM is being used by the server.. No way apparently.. How do I know if the server will break.. :|
 
unless you call driving around for gf's parents as "vacation"
 
@rlemon You should take some VR panoramas :)
 
@JakobMillah what's your host os?
 
12:17 PM
I took some pictures of an abandoned building yesterday
 
why not just do some backyard work in VR
 
C4u
!!stat 785745
 
@C4u Veronica Deane (http://stackoverflow.com/users/785745/veronica-deane) has 24224 reputation, earned 10 rep today, asked 60 questions, gave 631 answers, for a q:a ratio of 60:631.
avg. rep/post: 35.05. Badges: 9g 60s 103b
 
C4u
Ah alright. Got it.
 
!!stat 701054
cool.
 
12:19 PM
@AvnerShahar-Kashtan You (http://stackoverflow.com/users/701054/avner-shahar-kashtan) have 8499 reputation, earned 0 rep today, asked 12 questions, gave 324 answers, for a q:a ratio of 1:27.
avg. rep/post: 25.29. Badges: 1g 14s 35b
 
!!stat
 
@rlemon You (http://stackoverflow.com/users/829835/rlemon) have 11589 reputation, earned 0 rep today, asked 71 questions, gave 374 answers, for a q:a ratio of 71:374.
avg. rep/post: 26.04. Badges: 9g 60s 96b
 
@rlemon One.com.
 
@JakobMillah that doesn't tell me anything
what tech are you using
 
@rlemon Ohh sorry Apache
I guess they are running on Linux
 
12:21 PM
do you have node?
require('child_process').exec( 'cat /etc/meminfo',  (err, stdout, stderr) => console.log(stdout) );
if not, do this in another language
brb, meeting
 
Nope. Just a plain PHP API. Nothing itty gritty
 
C4u
!!zalgo HORROR
 
@C4u H̨̧̫̓̅͜Ȍ̤̝͆̓̉R̍͋̐̅ͯͦ҉̼̹̮͟Ř̼͖̞̝̳̱̊͂̈́̌ͣͯ̀͘͞Ǫ̛̦͖͖̜͉̻͓̎̀̕R̴̶͚͕̠̝͕͈
 
C4u
Funny.
I hope no one minds that Im playing around a bit.
!!zalgo Just a small test if some more words are possible.
 
@C4u J̢̻͔̬̣͓̱̒ư̵̵͕̦͔͓̦̗͍͟͠s̷̶̤͌̏̃̿̕͟t̔̏̀҉̺͇͡ ̛̫̮͍̜̝̮̽̒ͫͤ͘͢a̸̘̪̘̍ͬ̌̂ͥ̾̕ ̸̨̨͎̝̹̬̲̮͡s̵̷̨̛̃m̛̘̜̬̈ͣ͂ͨ́ͥ͜a̽͋̈́͂͑̓͟͏l͊̇̎̽̋̃̋l̸̨̨̖̻͑̈͆̀͗̀̚̚͢ ̞͓͝ͅt̨ͨ̐҉ê͂̐ͧ̀s̕҉̘̦͖t͏̶̴̢͙͉ ̴̧͂͛̓́́͠i̴̛͏̢̙͇̘͔̬̦̼̀f͠ ̡̧̙͈͟͞s̗̝̆ͥ̊͊̑̂͆ǫ̮̌͊͐͡m̵̧͕̤̭ͦ̃ͯ͂ͅe͗ͨ̎ ̜̤̾ͭ͗̋̏́̕m̧̯͋̓͋́̈̕or̛͖͎̳̜̼ͯ͡e̴̢̤̜̩̬͚̗̿̊͌̌̌ ̸̛̦̬̝̜͎̳̽́̓͛̀͘͝ͅw̍̿͌̇͊҉̱̼͢͜o̵̗͙͂̔̈̃͒͗̊͝ŗ̶̫̹̉͐̍͑͜͢d̵ͯ͑͊́̓͛̃҉̮̭s̢̭̰̙͍̖̻͉ ̪͙͙̲͛͆̂͌ͧ̅a҉̴̹̣̹͠͞͡ͅŕ̢͖̀͘͝e̅̃͆҉̼͇̤͙ ̨͖̥̹̜͍̄ͣ͋̾ͭ̈̌p̲̭̙̾õ̠̹̩͌ͥ̉̉̈́ş̹̞̦̉̒̐͆̑͠͞͠sͥ̾͆̓͆̈͗͟i̵̯̮͈̜̯͇̪̐ͨ̈́͘͜͟b̢̰̟̝̫͕̋͋̓̐ͭͬl̂‌​̹̳͇̪͇͐͌ͬ̑͋͟͡e̴̡̽͊.̨͈͈̕
 
C4u
12:25 PM
Dafug. This is looking cool :D.
 
Anyone here willing to test a simple program for me?
 
@betarunex If it's easy to access
Nothing to do at work anyway
 
C4u
External apps are NSFW in here.
 
@JakobMillah Ok. Where can I upload to that you can easily get it?
 
No idea
 
C4u
12:28 PM
Oh its in german.
!!google file upload
 
What are some useful resources for learning C#?
 
exe file not allowed... Any other site?
@catgocat youtube
 
C4u
@betarunex You'll get this everywhere. Zip it.
 
guys, I have user control in wpf with couple of images, but when I drag it to my window, images in user control are not showing, you maybe know what causing it?
 
12:31 PM
@betarunex Work Antivirus disapproves this
#sadface
 
Lol. Wtf...
 
C4u
Happens often.
 
It's cause it's an unknown exe.. Will have to wait until I get home. Won't turn it off
 
@user3662546 What do you mean "drag it to my window"?
 
@JakobMillah ok then. Will you be able to recieve a visual studio project then?
 
12:33 PM
In Visual Studio?
 
@AvnerShahar-Kashtan ok, I simplified it:P I dragged it from toolbox
 
@betarunex perhaps. could try
 
C4u
@AvnerShahar-Kashtan I guess he means dragging from toolbox onto a form. The usercontrol itself is showing images where the form with added usercontrol does not.
 
I can't stop laughing at the accepted answer stackoverflow.com/questions/1732348/…
 
Yeah, that was pretty amazing :p
 
C4u
12:34 PM
@StevenLiekens Checked the zalgo command hm? ^^
 
@StevenLiekens That's no laughing matter.
@StevenLiekens Zalgo is Tony the Pony.
 
and funny thing is, when I change something in user control, in my main window I get a warning to rebuild the project for the changes to be shown - at that moment all my images are visible in designer.... but when I rebuild it, they disappear again
 
@JakobMillah Never mind. My friend finally answered his phone. Thanks anyway.
 
Alrighty! Niema problemu
 
C4u
Polski? ^^
 
12:35 PM
Nie
 
russian
 
Niet
 
C4u
@user3662546 Thats a normal behaviour. This warning will show up if any added userControl gets changed.
 
kako?
 
C4u
Can talk but not write in polish. ^^
 
12:36 PM
@C4u I know that... but why are the images are visible at that moment? why they disapear when I rebuild the project?
 
And I can understand and speak very little. I used to be able to understand really well
 
C4u
Yeah time's taking unused knowledge. Just as it does for me.
 
It's being archived.
 
C4u
@user3662546 I seriously dont know. Where have you set the images?
@JakobMillah The biggest part unfortunately went into the trashcan for me.
 
@C4u Oh kurwa...
 
12:39 PM
I need opinions on something

I have base64 strings stored in a database
and I'm cosidering of saving them as blobs in the new database

any thought on what that could to to the performance? Knowing that these can easily be 4 GB in size
 
C4u
>.<
Havnt spoken polish seriously for about 10-12 years.
 
About the same duration since I heard it on a daily basis
 
C4u
Ja mam 27 lat.
 
niema problemu ? is what ukrainian then ?
 
polish
 
12:42 PM
but you said it's not up :P
 
I am the biggest troll EU
:)
 
C4u
Looks polish for me as being "there's no problem"
 
@C4u I added them to resources
 
@C4u zrob mie jedna kanapki, kurwa
 
come on you can't be in this situation
yes
 
12:43 PM
guys?
 
C4u
:o thats rude dude.
 
but it's very similar in croatian, russian etc
 
@JakobMillah zrob mi jedna kanapke*
 
C4u
Dunno what a kanapke jest.
 
@VictoriaS. I have no clue.. I saw Blob and I saw 4GB and I had to recharge my pacemaker
@user3662546 Dieki.. I suck at polish, as been stated :D
 
C4u
12:45 PM
Never learned writing in polish.
 
eh i also don't know...
 
so
don't do?
 
when i was storing videos/images etc i only stored the path to it in db
 
@VictoriaS. I don't know about blobs, so that's why I couldn't reply :/
 
I'd store them as blobs
it's in the name
binary large objects
 
12:46 PM
wouldn't that cause a performance isuue when I need to display them on a page?
 
converting 4GB files to base64 sounds like a terribly thing to do
 
But.... base64 that's up to 4GB? How is that possible..
 
wouldn't decoding 4GB of base64 cause a performance issue?
 
yea that's why I'm doubting to store them as blobs.
 
C4u
2 mins ago, by Victoria S.
don't do?
 
12:47 PM
doo doo
 
they're images, stored at base64 strings
 
Store binary data as binary data.
 
C4u
Why?
 
heck if I know why
not my database
 
C4u
@RoelvanUden Is an image binary data?
 
12:48 PM
That is, store them as blob. base64 makes no sense for this.
@C4u yes
 
I'm just wondering if it's worth storing them as blobs from now on
 
maybe you're better off storing the images somewhere else like S3
 
C4u
Not if its not worth storing images.
 
and only store the file URL in your db
 
yea... we don't and can't have that. S3, that is.
and our hosting partner forbids storing files on their server.
 
C4u
12:49 PM
afk
 
(it sucks, I know. Boss won't let us change hosting services)
 
Anyone have any good suggestions or resources for handling a browser 'back button' press after an ajax call is made?
 
so, anyone have any idea why my user control images are not shown on main window (neither in designer nor the running app)?
 
afternoon guys
 
greetings
 
@StevenLiekens thanks!
 
How is it possible to do a query equivalent to
select x. where( y => y.id in (mylist) in sqlite net
 
C4u
You mean a sql query?
 
linq query using in list
am able to get where id = a single id
but I want to get the equivalent of that
for alist
@C4u
understand what I mean
 
the sun called amy will be shining upon us
 
1:01 PM
?
 
C4u
Why shouldnt it work for a list?
y => mylist.Contains(y.id) ?
 
@GotaloveCode where is the list coming from?
Sounds like you want a join
 
sql query : select * from users where id in (3,4,5)
now
in linq would
 
C4u
users.Where(user => (new int[] { 3, 4, 5}).Contains(user.id))
 
Why are you selecting an arbitrary set of IDs? That doesn't seem likely.
 
1:05 PM
sql query : select * from users where id = 3 || id = 4 || id = 5
you mean like that?
 
@C4u ^^ that works thanks
Services = await conn.Table<ServiceItem>().Where(v => ServiceIds.Contains(v.Id)).ToListAsync();
 
C4u
Np. ^^
 
that was just an example @VeronicaDeane
 
@betarunex I'd rather go for a ... where Id IN (3,4,5)
 
@scheien kewl. I'm new to this stuff. If that works then I'll take note
 
C4u
1:14 PM
// ien
 
oh, that's what @GotaloveCode said. nvm :)
 
anyone see any hiccups with this line:

tbl.Interimkantoor = db.Interimkantoor.Where(m =>
(m.Naam == naam)
).FirstOrDefault();

?
 
can we think of a SELECT with a WHERE clause like a foreach with an if statement printing out stuff when something fulfills that condition?
@VictoriaS. the name hahahahaha
 
seriously tho
 
C4u
@LikeIfYouCaredAboutMyName list.Where().Foreach()
 
1:18 PM
I ALWAYS returns null. Even if the data IS in db.Interimkantoor
 
@C4u what's the code behind SELECT?
 
C4u
What do you mean?
 
@C4u I thought in a SELECT if it was an foreach right? I'm asking what is the code behind the SELECT statement, what's the code behind that filters and prints the data
 
Where().Select()?
 
1:22 PM
so it's just normal c# ?
I thought it would perform different operations
 
What do you mean?
 
"can we think of a SELECT with a WHERE clause like a foreach with an if statement printing out stuff when something fulfills that condition?"
Im just asking what's the code behind the SELECT xD, I don't know any other way to put it
 
C4u
@LikeIfYouCaredAboutMyName goo.gl/y2z0Ru
@LikeIfYouCaredAboutMyName Still dont know what you're talking about. We ARE already talking about the code itself. There is no code behind code!?
Execute my posted example on top.
 
I was just askigng about the "code behind" the SELECT, not the code behind the code xD
 
C4u
1:28 PM
Which SELECT >.<.
 
wow :o
@C4u Sql SELECT
 
@tweray wanted to post that as well ;>
 
C4u
Getting even more confused now.
Thought we would talk about C#.
 
nope xD
I was asking about the SQL select
 
I'm talking about c#.
 
C4u
1:32 PM
So you want to have an IF statement to trigger if the conditions in the WHERE are true?
SELECT "this is printed.." FROM xxx WHERE myField = "..this is true"
 
C4u
There is your if inside your pseudo foreach.
 
Im asking what is the code behind the SELECT statement
 
C4u
Flowers
 
user47589
1:34 PM
why do you want to know how SELECT is implemented? it will be different for every database server and is not a detail any of us should be concerned about
 
user47589
the only thing that matters is what SELECT does and how it behaves.
 
user47589
and you can gather that from the documentation or tutorials.
 
meh just curious if it could be interpreted or it it was anything like I imagined
 
the sun has risen
 
Then go check out some open source database, and have a look.
 
C4u
1:35 PM
He souriously asked about how the SELECT is working CODE BEHIND????
 
user47589
Look at the documentation then, @LikeIfYouCaredAboutMyName
 
C4u
So it was true this was about code behind code.
 
depends on how you see it
 
C4u
You asked about how a car is working and looked forward getting an answer how the street is build up lol.
Havnt thought that far.
 
I wasn't looking at the SELECT as code per say, I just looking at it as a statement and what code was used to filter and print out the values
 
user47589
1:37 PM
once again, why do you want to know that? it will be different for every database engine.
 
user47589
that doesn't matter at all
 
C4u
Hmm. So we both walked different ways the hole conversation.
 
oh boy, migrating from nuget 2013 to 2015 is a YUGE pain
 
user47589
Go look at the source code for an open source db engine if that's what you want.
 
C4u
@Amy Maybe rebuilding such a system?
 
1:38 PM
I'm just curious xD I just started to wonder how it was, that's why I asked if I could think of it as a foreach with an if statement
 
Hello @Amy, long time no hear, hope you're doing fantastic!
 
user47589
Otherwise, please stop asking the same questiuon over and over again.
 
user47589
hi @AdrianK.
 
but I'm not asking the same over and over, they were asking me what did I ment and I was just replying
 
C4u
@LikeIfYouCaredAboutMyName Regex
Let the shitstorm begin...
 
1:42 PM
@LikeIfYouCaredAboutMyName when you keep repeating and ppl still doesn't understand what you mean, maybe you should consider describe your request in a different way
 
still stuck at a stupid where clause that returns null when I can clearly see the data I need when debugging
 
C4u
@VictoriaS. C# or SQL?
 
so something is setting that value to null in the middle of it
 
c#
tbl.Interimkantoor = db.Interimkantoor.Where(m =>
m.Naam == naam
).FirstOrDefault();
 
what's a Naam?
 
1:43 PM
always returns null. I can clearly see the Naam I'm querying for in the dbSet
 
C4u
Is it an enum you are comparing?
 
Naam = Name
it's a string
 
C4u
Ah.
 
user47589
what is its value?
 
(sorry, dutch naming, can't go against my team here)
 
C4u
1:44 PM
Ah its "name" ? ^^
 
value = Accent IT
 
user47589
are you 100% positive that value exists in the db?
 
yes.
I saw it.
 
C4u
Trim()?
 
user47589
verify your connection string, that you're connected to the db you think you are.
 
1:44 PM
oh yeah that happens sometimes
 
The letters are the same casing?
 
good point there
 
connection string is correct, ele I couldn't see it.
yes, same casing.
 
C4u
tbl.Interimkantoor = db.Interimkantoor.Where(m =>
m.Naam.ToLower().Trim() == naam.ToLower().Trim()
).FirstOrDefault();
Just to verify they are the same.
 
user47589
@C4u that won't work
 
1:45 PM
they ARE the same. TolowingTrim won't help.
 
@VictoriaS. lol haha
 
trim just deletes the white spaces
 
I verified every last character.
 
user47589
have you tried restarting the application?
 
it just returns null.
yes, about a dozen times :/
 
C4u
1:46 PM
@LikeIfYouCaredAboutMyName Nope. It deletes them at the beginning and end.
 
user47589
Then without additional information, I don't think we can help.
 
I had this profesor while on studies that he always had to accent all English references i.e. character, procedure, function, value. It reminded me about him
 
thing is this is in my seed.
I'm trying to get it before I do db.SaveChanges(), because apparently I can't call that in between seed functions.
it worked for Countries, but not for this.
additional information? there's nothing more D:
 
If you have checked that the values are identical, then it should return the record you're asking for. If that's not the case, then there's unfortunately not much more we can do.
 
EF is love EF is life.
the problem is not EF
 
1:52 PM
morning!
 
C4u
Check this one: goo.gl/RBl4xs
Its the same select. And its working.
 
user47589
please don't use a url shortener
 
C4u
They have to be different. Cant imagine anything else.
 
I need to merge a winform designer file with 54 conflicts
 
C4u
@Amy Im not. Its the website thats doing so.
 
1:53 PM
they will lookout for virus
 
how f***ed am I?
 
is it better (in terms of performance) to set a color to color.FromRgb(int, int, int) or to color.FromHex(string)?
 
anyone knows any workaround??
 
user47589
then paste the actual URL, @C4u
 
I'd doublecheck the connectionstring to make sure that you are connecting to the correct database. Then check for leading / trailing spaces, and then check the casing. If all those are as you'd expect, then there's something else that's casuing the problem. What does it return if you do a db.Interimkantoor.ToList()? Does that contain all the records you expect / see in SSMS?
 
1:53 PM
concerning best practices, of cours
*course, and specifically while programming for mobile (xamarin)
 
it's not that simple
 
@VictoriaS. you should hit your boss for letting people design DB's like shit, it's because of him you're having such problems with things that should be easy and quick
 
user47589
why isn't it that simple, @VictoriaS.? What is the result if you do a ToList()?
 
That would return all the records for that particular table.
 
I'm not connecting to a db
it's local variables, stored in a dbContext for a seed
 
1:55 PM
@VictoriaS. what are you connecting to then?
 
checking the tolist now.
 
The seed method should populate a database.
 
yea, at the end of it. I'm not AT the end of it.
 
C4u
@Amy Not possible. There is no other url showing up.
The url I am writing this code on is the general one from the IDE. You see a blank site then.
Oh wait. After opening the shortened url I can see the base one.
Ill remember that ^^.
 
user47589
@C4u if you click on your own shortened url, it will get the real one
 
user47589
1:58 PM
obviously.
 
C4u
Just noticed ^^.
 
count = 0 for the ToList
 
user47589
there's your problem, @VictoriaS.
 
C4u
@VictoriaS. Havnt you told you debugged it and there were values matching?
 
user47589
your table has no rows.
 
1:59 PM
my table, is empty, because I'm still seeding
my dbContext is not empty, and I'm querying that
so how DO I get objects from the dbContext while seeding, if I can't do db.SaveChanges() in between.
 

« first day (2081 days earlier)      last day (2869 days later) »