« first day (1602 days earlier)      last day (3341 days later) » 

12:01 PM
BROSHIP! AWESOME.
@RodrigoSilva puush is awesome :3
 
0
A: Get parameter value from URL in asp mvc 5

Ehsan SajjadYou can read it from Request this way: public ActionResult myMethod() { // Get param here var Spectrum = Request["val"]; return View(); }

Is that a bad answer?
 
So many vampires nowadays
 
OP is a total vamp
But that guy just repwhores everywhere as far as I can see
No effort to educate OP whatsoever, just provides a shit answer
 
Is the answer correct?
 
Define correct :/
It works
I don't really think it's right
 
12:08 PM
It's not correct. It depends on the route and RouteData, not Request[""]?
And its much nicer if it was a param
 
Yeah this is my point
Shit answer, it works, but it's bad.
 
12:23 PM
hey guys
anyone here used gridmvc?
 
Yeah
 
Am trying to use a glyphicon as a link
but cant figure it out yet
I did this
 
What do you have?
 
 columns.Add().Encoded(false).Sanitized(false).RenderValueAs(c => @<span class="glyphicon glyphicon-ok">@Html.ActionLink("Select", "Select", new { id = c.MyDeviceID }, null)</span>);
which is basically a name and the glyphicon side by side
hehe
definitely wrong
 
.RenderValueAs(m => "<a href='#' class='glyphicon glyphicon-pencil text-success btnEditAnswer option' "
	+ "data-toggle='modal' data-target='#editAnswerModal' data-answerid='" + m.AnswerID + "' title='Edit value'></a>"
That's my one.
 
12:29 PM
aha
 
So all you need to do there really
 
let me see if I can use helpers for the url with class
 
Is change the class of your action link.
Remove the span.
 
+1
 
Your codes works on JSFiddle but when I implemented it into my solution it doesn't work — Scanner 40 mins ago
smashes head on desk
 
12:41 PM
Stupid is, what stupid does.
 
Long way to the top.
I just wanna get to 3k rep so I can do all the review tasks lol
 
hehehe
 
My next goal is 100K, because free shirt.
not gonna happen though
 
Going to be an ass, but, why bother reviewing stupid questions @Sippy? :)
Almost all questions should get a "LEARN TO SEARCH" or "LEARN TO DEBUG"
 
@RoelvanUden I take a lot from this community and currently the only way I can give back is through doing that.
I do often wish they didn't remove the "question shows lack of effort" flag :(
 
12:47 PM
And once you answer a GOOD question, you get ONE UPVOTE
Because it's too hard for others
 
yap.
You could write canonical answers though
As in you personally
Those are seen by many, upvoted by many, and are generally useful
Cos people google for them and come across your awesome answer
 
@RoelvanUden: If you're lucky you get a upvote, and even luckier if they choose to accept your answer.
So many questions with correct answers that arent accepted.
 
1:01 PM
@scheien That's better than the alternative, where questions are accepted by moderators
 
yep
it's the lesser of two evils.
 
1:21 PM
yayayaya
 
Is it possible to determine the name of a process that had a given ID at a given time?
the time would be in the past obviously
 
@KendallFrey you mean after its lifetime ended?
 
yeah
 
time machine?
 
@ton.yeung hey thats the DDD book I was reading!
 
1:23 PM
@CharlieBrown This needs to run on other people's machines
They may not have one installed
 
@KendallFrey the only way would be to install a logging service, i assume
 
1:43 PM
What is the way to avoid an EF query when an entity is already loaded locally?
Oh nvm
 
Does anyone here understand MSI component rules?
 
2:00 PM
Is there a nice easy way to wait for a file to be created? I call a method which will end up creating a file, but it will return before the file has been created.
 
@KendallFrey I wrote an Rx observable that wrapped a FileSystemWatcher once
That would do it
I don't think I have it here but I can try and find it
 
@Roel
0
A: Is it possible to use Lambda with model of List<ViewModel>?

Ehsan SajjadYou have iterate as it is collection: ``@for(int I=0; I Model[i].Value) }

Same guy again lol
 
That would involve a callback/event handler, right?
 
@KendallFrey while(!File.Exists("")) { Thread.Sleep(1) }
 
@Sippy int I lol
 
2:02 PM
@KendallFrey yeah, you'd subscribe...something, to a given event stream
 
i know its worse than bad ^^
 
I used it to fire off N requests on different threads and await the response for each, matched up using a continuation ID written in the response message
 
I think I can figure out a way to use await, I was just looking for something super easy
 
How can I use the variables I get from a linq query in the controller?
 var devicecount = from d in db.Devices
                              join m in db.MyDevices
                              on d.DeviceID equals m.DeviceID
                              where m.MyDeviceID == ID
                              select new ViewModels.DeviceViewModel { Port = d.Port, IP = m.IP, Model = d.Model };
like the Port and IP variables
 
@Sippy >_<
 
2:05 PM
The only way I know so far is sending them to the view
and getting them from there
 
@RoelvanUden I wanna downvote every answer he posts but I'd get told off for serial downvoting cos my only reason would be "Cos he's bad"
 
@Sippy Yah well. See, 22k rep means NOTHING.
 
Yeah
 
12k answers.... holy shit
are they all like that?
 
Yap
I see a lot of his answers and they are all totally dire.
 
2:07 PM
I randomly clicked some. They are bad. Lol
 
@Sippy any idea mate?
 
@Gotalove Use method based linq lol
sql based linq looks so weird.
 
sql based linq easy to read
hehe
I get confused with method based honestly
 
It's like reading sql backwards and forwards simultaneously I can't deal with it xD
 
sql based linq is weird
 
2:10 PM
TPL question for the initiated; why oh why does Task.Run use Default scheduler, instead of Current scheduler? It makes it really annoying to let tasks run of my own scheduler...
 
UR WEIRD STEVE
 
I NOES
 
@Gotalove Anyway, elaborate on this question
 
you know why sql based linq is backwards? how would intellisense work if you didn't have the from first
 
What do you mean you wanna use it?
You can.
 
2:10 PM
am always like x pointing to name,x pointing to id x orderby what now...hehe
 
Any specific reason to downvote? — Ehsan Sajjad 3 mins ago
:DDDDDD
 
okay so I am wondering if I can get the items in the linq so I can use it right after that linq query
 
wat
 
Isn't that the whole point of querying for data?
 
var devicecount = from d in db.Devices
select new ViewModels.DeviceViewModel { Port = d.Port, IP = m.IP, Model = d.Model };
var Portgotten = devicecount.Port;
like above
is it making any sense
 
2:14 PM
This is why method based is better.
Cos it's a shitload less confusing.
 
@Gotalove no, devicecount is a list, it won't have a Port property
 
so do I have to iterate through to get it?
 
get what?
 
the items Port,IP,Model
 
which item?
 
2:16 PM
@Roel "Downvote because bad answer. OP clearly doesn't understand view models and you have ignored that and given him a hack."
Does that sound fair?
 
assuming it returns a single row
 
.Single()
I don't know if there's an equivalent in query syntax, and I don't care to know
 
yes that is it
thanks Kendal
I knew it was something easy but I hadnt ever tried using a linq query returning a single row
 
@Gotalove Stop using query syntax :P
 
hehe
I need to train myself to use the other
 
2:19 PM
Aye
 
let me start by trying this 1
 
if it doesnt return a single row, it throws an exception.
SingleOrDefault() returns null if no matching row are found.
 
@Gotalove I totally disagree
 
thats why :) am so comfortable with sql linq
 
2:21 PM
To each their own.
 
so all those people that left, weren't devs
wooooo
 
Method syntax lets you access shit in a way that's sane and makes sense
 
this one dev, who works on my team, doesnt do anything. literally, hes been googling clothes and facebooking for months now with not 1 piece of work done, other than when i strong armed him into pairing with me, where he did little work still
 
Cos you're working with an object in C# you're not pulling stuff from the database
 
how the fuck does this guy still have a job
 
2:23 PM
EF already did that :D
 
@Steve That's what I was about to ask
 
@Steve I've been doing that for 2 weeks
Cos I ask for work every day and they say "We'll find you something tomorrow."
 
we do status updates every week on what we're working on too, he never says anything
 
@Sippy method syntax does the same thing, it doesn't magically turn a database into an object
 
i dont get it
 
2:24 PM
@KendallFrey Ofc it does the same thing
It just looks sane
 
@Steve Is he maybe related to the CEO?
 
@Sippy thats different though, you ask for work
 
or at least some kind of relationship?
 
he's really good 'friends' with a senior dev
 
@Steve Ninja ability: Reduced perception. This effect causes others to notice the person using the ability less and will not perceive obvious problems.
 
2:25 PM
I mean, I'd rather be paid to write code than suck off bigwigs, but to each his own.
 
it's horse shit, i can see his screens, all day long, for months, clothes and fb
 
well at least there are clothes
 
i'm not mr. gung ho or anything, i slack here and there, and come on SO chat
 
If all he does is clothes and facebook it could be quite probable that he does suck off your boss for a living.
 
but i do it reasonably
 
2:27 PM
You suck off your boss reasonably?
 
no, i was talking about your mother
 
I was talking WITH your mother
well, she wasn't talking back, she had a ball gag in her mouth
 
@Sippy fuck this shits confusing man
 
I gagged your mom with my balls.
... @steve
@Gotalove What method based? :P
I'm guessing you don't know a lot about lambdas?
 
@Sippy anybody would gag at your balls
 
2:30 PM
yea lambdas
 
lambdas are for pussies. function composition and pointfreedom ftw
 
@Gotalove Lambdas are something else that are enormously ridiculously irreplaceably useful
@KendallFrey ufukinwot
 
C# without lambdas and queryables is almost a regression to Java!
Why would you not use them?!
 
@Sippy map (*2) [1..50] m8
 
@KendallFrey nerd
 
2:36 PM
Imagine if you could do .Where(< 100) instead of .Where(x => x < 100)
you'd like it too
#jammin
 
so this what I got finally
var devicecount2 = db.Devices.Join(db.MyDevices, x=>x.DeviceID, y =>y.DeviceID,(x,y) => new {x,y}).Where(a=>a.y.DeviceID == ID).SingleOrDefault();
took me all that time just for that 1 query
My struggle was getting why you have to declare the keys used in the join as (key1,key2) => new(key1,key2) then in the where have to use a new variable altogether as a =>a.key1.Field instead of just key1 ->key1.field1
thats how I thought it would be
but I guess after sometime using lambda it gets more natural
 
@KendallFrey WHY?
 
@Gotalove horrible
 
@SebastianL WHY NOT?
 
@CharlieBrown whats horrible?
 
2:43 PM
that query
 
my sql linq queries or the speed it takes me to create a linq lambda query
?
its still not right?
snap no select in it
 
Time to watch this again
 
@KendallFrey That actually has a fantastic level of detail hahaha
 
> Is it made of lemon juice? Doorknob ankle cold.
pure gold
 
whoo, wheekend
 
2:50 PM
@KendallFrey alarm a llama!
I hate these laptops
16gb with top end i7 and it can't run two instances of VS
 
Stephen Hawking is a pizza delivery guy?
 
hahaha the llama song is insane
wtf?!a treehouse lived in a cake
hahaha
 
lol ya'll
 

« first day (1602 days earlier)      last day (3341 days later) »