« first day (2488 days earlier)      last day (2686 days later) » 

02:59
Reverse() in Enumerable or in List will more efficient?
mr5
mr5
var test = new Test();
var something = "something";
test.functionA(new { "something" });
test.functionA(new { something });
test.functionA(new { something = something });
why does the first syntax of functionA fails?
03:21
@mr5 youre using Anonymous Types
a variable name must available to creating anonymous type, in order to accessing variable.
@nyconing my guess would be in list as the length is known
example:
       var _strin = "oh"; var _int = 5;
       var anony = new {_strin , _int};
       anony._strin is string;
       anony._int is int;
@hsimah if you want creating an array: new[] {"",""}
@nyconing whats that got to do with reverse?
lol Im answering mr5
okay, you pinged me though
03:28
oh, I didnt seen that reply pointed to earlier message
my bad
03:50
looking for some direction in reading a cookie from a common domain
am on localhost, set the Web.Config
<httpCookies domain=".foo.com"/>
read the cookie, and still has localhost as the host
 
2 hours later…
mr5
mr5
05:35
in .resx file, if I have mistakenly added an element comments instead of comment under data, the value is not generated. no errors, no warnings like WTF Microsoft! How can you be cruel!?
im fairly sure resx files are supposed to be edited using the editor, not a text editor
it sucks, but it's like the designer from winforms, if you edit it yourself you might find all your changes lost next time the designer is opened
mr5
mr5
the VS in Mac does not provide a UI for that though that's why I'm editing it raw
well thats a bummer
you should uservoice that
06:08
I'm thinking of writing tests for an local software that integrate to an system using flat-file databases.

Is there any neat way of doing this, thinking of just make an reference version that i copy every time on each test
mr5
mr5
@hsimah too lazy
@Raldo94 neat way of implementing flat-file database?
Could not load file or assembly or one of its dependencies. The located assembly's manifest definition does not match the assembly reference . How can i slove this issue?
@mr5 Oh, i mean to keep the state of the database same as before the test, the api provided cant fully "undo" every thing you do against it...
@Saravanakumar Check your project references?
mr5
mr5
@Saravanakumar recheck references || rebuild || clean || restore packages || delete obj/bin folders || restart IDE || restart computer exactly 3 times
06:19
@mr5 , this steps are i already done. but issue not yet resolved.
mr5
mr5
check edit
@mr5 check edit means ?
mr5
mr5
@Saravanakumar I mean, check my reply. I edited it
@Raldo94 create another copy of the file?
@mr5 It remains same.
@mr5 ok i will check ping later
resharper ultimate license key pls?vs2015
06:30
bugger off pls?now
G'morning C# :D
@mr5 Probably, 5GB of files :) maybe only copy the modified files and the non-existent to avoid unnecessary disk wear
06:52
saphana driver, which site can download?
@mr5 oh god I still didnt get used to your new avatar
o/
\o
o/
Do the boogie-woogie.
ohazou
boogie woogie /o
\o
|o|
<-o->
Tie fighter!
?o?
aaaa maccarena
06:56
i think im loosing my eyesight :/
then stop drinking ethanol duuuh
i only need moonlight to survive
mr5
mr5
whaat?
\o/ <o> <o_ /o\
im retarded.
07:09
Is that a singular boob?
blurb blurb
mr5
mr5
07:26
@WilliamMariager (.) to complete
That's just distasteful mr5.
mr5
mr5
!!> '( . )'.concat('( . )')
@mr5 "( . )( . )"
mr5
mr5
lol
mr5, hi
mr5, why a bot flirting with you showing you her virtual boobs?
mr5
mr5
07:43
dunno. lol
@CapricaSix show me boobs
i'm the real pervert
Hi guys
Can anybody please help me with url query paramaters
mr5
mr5
!!> "Hi Caprica"; '( . )'.concat('( . )');
@mr5 "( . )( . )"
lol
"Hi Caprica"
she hates me.
07:50
good morning
!!> "Hi Caprica";
mr5
mr5
damn. I made a lot of spaces there but it just trimmed my effort
@ARr0w "Hi Caprica"
good morning Ntohl
eh. mr5. Is this a syntax of some programming language which this bot is following?
mr5
mr5
!!>learn showboobs !!>'( . )'.concat('( . )');
07:51
@mr5 Command showboobs learned
@mr5 "SyntaxError: missing ; before statement"
mr5
mr5
!!>showboobs
@mr5 "ReferenceError: showboobs is not defined"
mr5
mr5
xD
mr5
mr5
can't handle it
07:52
lol
showbobies
!!>learn showboobs; !!>'( . )'.concat('( . )');
@ARr0w "SyntaxError: missing ; before statement"
yea i hate you too
dangit I got a question but I feel stupid asking it xD...
jason ask it.
i'll give you some encouragement
guys i have a question
I have a class that contains a few strings, I need the syntax on how to declare it as a const inside a static...
07:55
don't do it. My 2.5 year old son does that all the time. He will eventually get smart, but the questions are stupid.
why do i pee like a boy and not like a girl?
^ stupid as f...
@ARr0w because You mentally consider yourself a boy. You can change any time.
@ntohl we get can a vagina fitted in us now a days? :o
Lol
heres my question better written out lol
I have a Public Class (lets call it person) that I plan to use in a few different areas of my code.
It Contains a few variables.
string Name; string Description; string URL; string Email;
I want to create a const person[] People inside a static class. But im not sure of the syntax to create it
Const person[] People = ???
lol see i told yu my question was stupid :P i coulda googled it
@ARr0w nonono. I mean there is a hype, that You can choose Your gender. So after You choose to be girl, than from now on, You pee like a girl (tho You pee the same way before)
nvm.. that only helped mildly
@ntohl it is all about the mind game uh ? thanks for answering my question and clearing my confusions man.
yet i asked a stupid question but i did learn a little.
be like me, @Jason. Be Shamless like me
08:01
@ARr0w so the answer to the question "why do i pee like a boy and not like a girl?" is "Do You?"
I still don't understand how to define my people variable....Const person[] People = ???
@JasonBrown readonly? not const?
ah... that might work?
@ntohl just like the answer to life is 42 ?
ya seems to be working fine ty @ntohl @ARr0w
08:03
This room does not accept more than two genders. Your gender is your biological gender. XX or XY (Sorry for all the possible but rare biological weirdness XXY etc). Thank you for your understanding.
argh nope...Cannot declare instance members in a static class...
Is there any standard designs or patterns for developing restfull urls?
REST really doesn't care. As far as REST is concerned, the URI is opaque; any information encoded into it is done at the servers discretion and for its own use.
What does this above sentence means?
Ahoy o/
mr5
mr5
@RoelvanUden no extra chromosomes allowed?
sooo anyone know the syntax for declaring a non static inside a static... So far I got to this
readonly Person[] People = new Person[] { new Person { Name = "Jason" }, new Person { Name = "Other" } };
Which says cannot declare instance members in a static class....
08:15
You cannot create a non-static version of a static class.
So if person is Static, that's it.
Im not trying to...
Person isnt static
The class Im puting person into Is
public static readonly Person
ok il try that
argh that drove me crazy... Thanks lol
Anything inside a static class must also be static. I don't see how that is confusing.
Nah its not that...
Im just had a brain fart and couldn't remember I needed to declare the object as static... Would have thought const would have taken care of that...
08:24
XY is girl?
there are no girls on the internet :|
mr5
mr5
because reasons
and I think its the other way around
XX is girl
xy is boy
now you will always remember
08:26
Lol
Im more confused by that :D
Chromosomes XX XY is identical to gender
I get it.
But why no YY
Then you get a Trump.
@nyconing Y chromosome is ''smaller" and does not contain the important stuff that the X chromosome has
hence you cant make a proper human
08:33
... omg so YY really does make a trump...
so... the one X of the XX are bringing important stuff on boy...
seems logical. but complicated.
lol
Y bringing important stuff on girl....
....
ima poof for a while till i have more stupid questions :D
@nyconing XX is female.
oh!!! I forgot that!
complicated
How can you forget? It's still visible on the screen ...
08:41
so the Y are the override to the X
to bringing important stuff on boy
so mother will get ClassNotFoundException when only has YY
It's more like a compiler error :P
class X { abstract CreateNaughtyBits(); }
class XX : X { ... }
class XY : X { ... }
class YY : Y { ... } // Y not found
Good day everyone :)
Does anyone have idea how to execute an Action thread straightaway without waiting for the compiler to read all the lines of code?
The issue is, I have a thread blocking code after my Action Thread, but that code blocks the code execution even before my Action being executed
//some code here
Action action = () =>
{ }
Task.Factory.StartNew(action);
//some blocking code here
dont block main thread.
just make another callback to the main thread when your Action done.
08:51
@sohaiby That made no sense whatsoever :-)
The problem is, I can't run my main thread on a separate async thread
Good day! C# Peeps. I have a question. Someone is asking me to create a program for printing vendo like machine. It's like youll insert your usb and you are enable to print the document if you insert the amount of money needed. I'm curious on how am I going to check if the amount of money is already okay due to it is only the software is that I will be creating. How am I supposed to know to work the coin machine or bill machine to communicate with the software
My main thread is used by a Twain scanner and this must be used on main thread
@EarvinNillCastillo, Look at the documentation for the coin counting hardware
@EarvinNillCastillo take the documentation from your hardware vendor.
08:53
@RoelvanUden I can't run my main thread on separate async thread, so I want to execute the other lines of code asynchronously before the main thread blocks it
@WilliamMariager @nyconing That's the exact word that I needed to read! I don't know t he specific name of it
Documentation? :P
Hardware?
Look?
Coin?
i searched coin vendo machine
oops
that is why I neeeded to ask from expers
experts*
Or your hardware vendor may already has a SDK for easy to use.
Yeah, you can't just use any random currency counter documentation.
08:58
@nyconing still not creating it. im just asking how am i going to do it.
Ask the people you're working for what the part number is and then find that. Or get the documentation directly from them.
that is why my idea of the coin counter came up.
And get the part number right away.
ohhh. ok thaaanks!
Nooooo proooobleeem
08:59
like your beard bro
btw
mr5
mr5
you forgot #nohomo
how to grow beard like that?
#nohomo
#respect
@EarvinNillCastillo You wait. It grows. Automatically. Then you trim it.
09:04
lol
but when it wont grows
Wait, that's how you do it? Mine's glued on dog fur/hair.
mr5
mr5
unless you're asian, you don't grow beards #truestory
asian growing beards
my father do.
then your father is no asian
i have hardly seen beard on Malaysian men
09:17
@RoelvanUden my beard won't grow on my face pls help
halps
then you is asian.
lol
mr5
mr5
i is asian. i no beard. pls halp
@KamilSolecki you'd have to get lost in an iceland for few months to grow a beard
mr5
mr5
you mean greenland right?
09:18
@mr5 see i told you <-
@nyconing not true. My previous girlfriends told me I'm closer to being black
!!lenny
( Í¡° ͜ʖ Í¡°)
@mr5 whatever color you'd like imagine of the land. Fine by me.
mr5
mr5
greenland = ice land
iceland = green land
does that make sense? lol
Greenland = Denmark
That is stupid too
09:25
(≧▽≦)
Give it back to the eskimos
yo!! they living in the ice!
@KamilSolecki Did you break up with them? I heard girls say 'Once you go black you never go back'
Ooooh she liked to go back
Jk I'll see myself out
That was a terrible joke.
09:28
:D
Anyways I'm now lone and lonely
Please take me in sempai
<-- beard :D @KamilSolecki
@KamilSolecki If you pay rent.
400 euro/month. You get your own room. With your own electricity meter.
:-P
I'm pretty good at turning gears in electricity meters
mr5
mr5
09:30
@mr5 wut te fuk indian accent
Will I get to play with the doggo?
mr5
mr5
can someone point out what te fuk is happening in my code?
using electromagnet to slowing it from turning
@KamilSolecki Absolutely.
how long does it take for a picture to be changed from all stackoverflow web instances.
09:32
but the meter are non-mechanic based nowaday
@ARr0w 301.92 seconds.
Pretty sure it was decreased to 273.15 recently?
Was that the 29.1.1.39 update?
anyone knows why i cant see .net versions 4.6.2 in my visual studio?
Do you have updated vs?
09:37
yes
my colleague who is sitting next to me has the exact same version as i have
and he selected 4.6.2
Read it first
It's an explanation
Tldr install this microsoft.com/net/targeting
latest framework for developers download
09:40
someone linked me the download link
and when i ran it, it said i already had installed it
Why bother with 4.6.2 though? Get 4.7.1 instead while you're at it.
but i think it wasnt the developer/targeting pack
i need to open a project that is built on 4.6.2
Then 4.7.1 should be perfect!
Go get it noob!
can i run a 4.6.2 project with 4.7.1?
that sounds... stupid
09:42
iDunno
You can run a 4.0 project with 4.6.2.
It does / does not
It's not like an update should completely break any older versions. :P
uhm...
should? no
does? yes
Damn, better do this project all over, they fixed an obscure issue.
Do you have any examples of .NET frameworks breaking backwards compatibility?
09:45
It should not be a problem though
At all
4.7 should run 4.6.2
morning =)
guten morgen
Hi guys
how would you describe "from scratch" in an elegant way (planning, developing, launching) ?
for an application
mr5
mr5
blueprint? prototype?
09:52
Grounds up
^ dont
everything works now
\o/
now on to the real error :D
mr5
mr5
who's watching TI7?
noone?
what is that
09:55
var acceptedModels = models.Where(m => m.AcceptanceStatus.Equals("1") || m.AcceptanceStatus.Equals("Geaccepteerd"));
anyone any idea why this doesnt filter the list?
models = List
I have a table which stores customer wise orders.So to get list of orders customer wise(i have composite key for customer)
what should be the url :
mr5
mr5
you disappoint me :'(
http://www.example.com/customers/??/orders
09:55
it doesnt even throw null reference exceptions when AcceptanceStatus is null
ow wait, i think i know the issue
@Learning .../customers/{UID}/orders
@Wietlol, Only way that happens is if the code never runs, if the exceptions are consumed and thrown away or if the collection is empty.
@SebastianL sir but as i said i am having composite key
@WilliamMariager i was too soon
09:58
So how to specify composite key there
i did a step over on that line
but i forgot it didnt return a list
What should be the url as per the restful standards?
Ah, yeah, Where predicates are only executed when enumerating. That would be a fourth way to have it not crash. :P
@WilliamMariager Found that out the hard way with disposable objects with async calls :)
@WilliamMariager i am too used to Java i guess
missing Stream api :(
10:21
Finally the picture changed -_-
greetings
10:44
@Wietlol I prefer the C# way actually.
You setup these enumerables you can enumerate multiple times and get different results.
And if you just want a snapshot you simply ToList it.
@Wietlol while on the other side the situation is :
@Wietlol your net is probably cheating on you and making out with someone else.
@WilliamMariager why does Resharper complain about multiple enumerations on IEnumerable created from Where but not from ToList?
everytime you accessing items in IEnumerable will causing a enumerations. this may causing low performance.
so make ToList() after you done enumerations on Where() and accessing items from the List.
Situation called as IEnumerable lazy evaluation.
@mr5 some of it

« first day (2488 days earlier)      last day (2686 days later) »