« first day (1567 days earlier)      last day (3364 days later) » 

12:00 AM
@TravisJ @JohanLarsson CONSULTING IS SCARY
 
that's not specifically what I'm confused about. Essentially it's the last bit of code that I'm trying to replicate. After picking your successors and assigning costs to each of them, it says to search through the open nodes again and find nodes with a lower cost at the same position which doesn't make sense to me since no nodes share a position?
 
@Pheonixblade9 how why?
 
@Pheonixblade9 Why is that?
 
oh it's just that it's my 4th day and I'm basically expected to know everything already.
but I have a lot of support, I'm more joking than anything
it's scary in a good way - it's challenging me
 
sounds grejt
 
12:03 AM
@bug56 better explanation here
basically each square's cost will be calculated numerous times
as seen in that gif
 
I get that theory
but you see the last bit of code in my original link?
 
right, she/he couldn't obviously did a better job explaining or whatever you want to call it
it is rather confusing
 
yeah I mean I get all of it up to the point where he's talking about skipping nodes
he's saying to find nodes of a lower value at the same position, which is odd
 
12:18 AM
i got it now muwahaha
after your first iteration you'll end up with 8 successors on your OPEN list
and your starting point on your closed list
then you pop off the lowest cost successor
and get 8 more successors...
while doing that, you still have other successors on the open list from the last iteration, and they will have the same position as the current nodes successors
@bug56 make sense?
 
@NETscape I think so - I just came back because I came to the same conclusion
I think by "position" he means tier - like every 8 successors are on the same tier, so just continue along the least costly part of the tier
I feel dumb now
position was a terrible term to use lol
 
well it is position
 
any one want to offer there take on what problem/design angular.js solves
 
the position is relative to the map
 
but the 8 nodes (the ones surrounding the initial node) are scattered in every direction. By definition they have different "positions"
 
12:32 AM
@juanvan Its a pretty expansive MVVM library for the web
 
not to argue semantics or anything
 
so it solves the "direct UI manipulation sucks" problem
 
Lol that is more what I was wondering
so data binding via controllers -
 
@juanvan also the templates system is very nice
 
so successor 3 lets say is at x = 4 y = 0, but successor 1 costs less to go to, so you go to successor 1. successor 3 is still on the open list. now when creating next 8 successors, while at the node (which represents successor1)... you will end up creating a node with x = 4, y = 0
 
12:34 AM
ya it just seems like moving logic to the view - well atm just did an intro video on code school
 
@juanvan I'm still fairly new to Angular but I love the crap out of it, it's sooo useful.
 
and that's already on the open list, so then you ask, if the current successors @ x=4 y=0 costs more to travel to than whats on the open list already, you don't want to save the current successor
 
Shaping up with Angular course?
OHHH
WOW
I get it
thank you
 
@bug56 they have different positions all relative to one another, but not relative to the mapping as a whole
haha
 
(not a fan of angular)
 
12:36 AM
ya shaping up - or learning a jingle like the song that never ends
 
I am the only one though apparently.
 
@TravisJ do you have another framework you prefer?
 
just plain old js
 
not even jquery?
 
little bit of jquery
 
12:37 AM
@bug56 I think I might have to implement that for fun as well :)
 
@NETscape might as well haha
 
are you doing it in C#?
 
I am
 
I guess it is just for the flash
 
@bug56 I'm not going to look yet, but it looks like there are projects you could check your work against :) github.com/…
 
12:38 AM
@Travisj honestly I did plain js for like 3 years and it worked fine for me but then I started looking into jquery and angular and if you're working on something that's a lot bigger in scale it can save a lot of frustration
 
@bug56 - What kind of frustration?
 
stuff you want to have already built in like when I was working on some ecommerce stuff I implemented my own quick and dirty system to bind inputs directly to the db but ultimately I would have saved a lot of time and typing if I'd just left it to a framework
one thing I dislike about angular is how weird it is about scope
 
binding to the db is as simple as name=bound
That is more of an html feature than js
 
well no, there's also sanitizing, checking data types, updating multiple things based on one change etc
 
That is all server side.
 
12:42 AM
not something you can do with a catch-all attribute
 
Sure there is some checking (jquery validate supports that)
But you can't really trust client side validation.
 
that's why I'd validate on both ends
 
Why would this selector: .myGrid tbody tr be overriding actual "class" strings on the tr element itself?
seems like the "class" def should win
 
@BradleyDotNET - inline definitions take precendence
 
right, thats my understanding
 
12:44 AM
but honestly it's just one example. Ultimately using a framework means less coding, which means less overhead and time for a big project
 
With MVC it is ridiculously easy to allow the back end to define the front end validation rules.
 
so isn't the second one inline?
 
@TravisJ And that is what I thought
 
for example, it has class="offline"
shoudn't that take precedence?
 
tr class = "offline" versus .myGrid tbody tr ?
 
12:45 AM
right
 
I think you need to read about specificity.
 
thats quite possible
 
I do know that "most specific" wins
So reading that (which matches up with my existing knowledge), is .myGrid tbody tr not a type selector?
so my class should then win?
 
Well it starts off with a class, so it may be a slight corner case
 
12:50 AM
I see
well, adding the specifics before this class is getting me closer at least
 
I believe that each part adds to the value
So your class modifier .myGrid adds some weight, then tbody adds weight, then tr adds weight. So you have class + type * 2. On the element, it has class, and from that standpoint it is a little more clear which has more specificity.
I think this article may explain it better smashingmagazine.com/2007/07/27/…
lol paste fail
 
Well this is annoying then. My cool alternate row selector is beating out my "class override"
Any hints on good ways around it?
.myGrid .offline
works on the normal rows
but of corse the nth:child selector is more specific. So it doesn't work on those :(
I could go the !important route, but supposedly thats bad
plus I need the hover effect to override this
And now I remember why I hate web development
 
lol that was a short path to hell
 
.myGrid tbody tr:nth-child(2n + 1)
anyway I could add "offline" to that to make it more specific when I add that class to the tr?
I've tried: .myGrid .offline tbody tr:nth-child(2n + 1)
and .myGrid tbody tr:nth-child(2n + 1) .offline
but neither seemed to even match
Not good, its bad enough that I might have to ask an SO question :(
0
Q: How to match a class selector over an n-th child selector

BradleyDotNETI have a standard table element, with the rows dynamically generated by Angular. The page looks like this: <table class="myDataGrid"> <thead> <tr> <th>In Service</th> .... </tr> </thead> <tbody> <tr ng-repeat="item in data" ng-class="{'...

if anyone happens to know a way to do it
 
1:28 AM
Apparently, that space before .offline was killing it :(
at least someone set me straight!
 
 
2 hours later…
3:47 AM
posted on January 30, 2015 by Scott Hanselman

Within a single week two different friends of mine called me to talk about their job satisfaction. One didn't like the project they were working on and felt that when they were pitched the job they were sold one job but ended up doing another. The other friend felt like review time each year was a Musical Chairs-type parade of employees and they were left wondering "Will I be picked ag

 
4:40 AM
Hey @BradleyDotNET
if you're around I'll ask a question
 
5:03 AM
 
F4z
6:00 AM
If C# was a person would he be able to C#
 
Oldest one in the book :P
 
F4z
lol. Would you believe me if i said i just thought of it while i was walking back home from the shops?
 
Well, the original one is slightly different: Why do Java programmers wear glasses?
Beucase they don't see sharp
 
F4z
heh! guess mine's original then :P
 
7:00 AM
lolz
 
7:21 AM
@F4z thumbs up
 
7:31 AM
Hey guys what is the best place which both users and windows services both can access in windows
 
8:13 AM
You mean like a folder?
 
user4433485
8:24 AM
hi
 
user4433485
any idea what kind of project is wisely to make as C# Beginner?
 
user4433485
not like Hello World beginner but somewhat further as that
 
That depends on what you want to learn.
 
user4433485
I want to learn the basics of C#
 
user4433485
When I got a good knowledge of the language I want to start Windows Phone Apps, but for now, simple desktop applications will do.
 
8:26 AM
You have no goal you're working towards to be able to build?
Ah, then, you are better served with learning WPF.
The concepts of MVVM and data binding.
 
user4433485
hmm what about desktop applications first?\
 
WPF is for desktop applications, but it feels rather similar to Windows Phone.
 
user4433485
ah its with Xaml and stuff?
 
If you understand WPF, Phone is easy. And vice versa, to be honest. There just are more tutorials on WPF :-)
Yep. That's the one.
 
user4433485
but isn't that for browsers?
 
8:29 AM
No, that's Silverlight. It was deprecated, but also used XAML and similar concepts.
 
user4433485
ahh I see:)
 
user4433485
So you suggest me to take a look into WPF first,
 
user4433485
Tnx
 
user4433485
is it very difficult?
 
user4433485
I am experienced in html css javascript and php
 
user4433485
8:31 AM
completly new to .NET or any other object oriented programming
 
Yeah, begin on the beginner courses on WPF. It will be mind boggling for a bit, if you have no experience with data binding patterns (e.g. AngularJS or KnockoutJS), but once you grasp it a new world opens :-D
 
user4433485
Thanks:)
 
10:04 AM
o/
 
10:18 AM
hi
 
ello ello
 
@scheien yea like a folder
 
Depends on what you are storing, if the user are supposed to be able to access it with ease (e.g. write config), and what the service would do (e.g. read config etc)
The easiest is probably having a folder C:\
c:\myapp or something you find suitable
 
11:27 AM
Morning
 
Morning
 
Morning
 
@scheien thanks
that information is helpful
 
11:46 AM
Any MVC nerds in the house today?
 
i know a little mvc
 
I answered the question I had anyway, nvm :)
 
:)
 
Whats up @Sippy?
 
Wanted to know the contextual difference between using Html.Partial and using Html.Action, obviously with Action you go through the controller so you can authorise and stuff
 
11:56 AM
aye
And you have renderpartial()
and RenderAction()
but that is off topic though :p
 
I never knew what those did
Reading, it says they're rendered in the response
As opposed to returned as a string
So would that mean they just get prepended to the top of your page or would it look like a redirect?
 
action returns rendered stuff as string, whereas renderaction renderes directly to the repsonse
But I've always used Partial and Action
So dunno how the performance difference would be in a real scenario
 
In reality a large html string is less performant than rendering to the response
But I'm not sure how that would look on a webpage
So will have to experiment
 
Yep, but how big are the partials :p
 
My partials are always as small as I can make em
 
12:02 PM
Mine too
Federal Aviation Admin Warns, "Super Bowl Is Strictly a 'No Drone Zone' "
Imagine that they would allow drones, there would proabably be hundreds of them
and them the oh shit moment "fuck, batteries are all out"
 
12:17 PM
@scheien Long pass from Brady, and it's going up. OH NO, it's knocked off course by a drone, and the ball will fall well clear of any receivers! WAIT, the receiver has caught another falling drone, and he's running to the endzone for a touchdooooooooooown!
 
smashing the drone to the ground
FUCK YE!
 
They continue playing with the drone, and 12 minutes later, they kick a 97-yard field goal just before halftime. The drone flies all the way to the uprights.
 
The cameras locate the drone pilot, who cries like a little baby
on his knees screaming "NOOOOO, WHYYYY? DAMN YOU BATTERIES, DAMN YOU"
 
You have no idea what the halftime show will be like
 
A good old public hanging?
 
12:23 PM
Katy Perry lowers from the sky on a drone, which proceeds to do stunts while she's standing on it singing
 
haha
:D
I would have guessed some twerking from Miley Cyrus
 
On a drone
I like how I'm a wizard with MVC compared to my undergrad peers now
 
I'm a wizard in lots of things compared to my peers
 
MVC'S SHIT HOW DO YOU EVEN DO THIS SHIT WTF
"Do this, this and this."
 
nothing that matters though :(
 
12:28 PM
"You're a genius wth"
@KendallFrey Wearing the hat doesn't mean you are actually a wizard though ..
 
@Sippy The things that bother me are little simple things, like inefficient LINQ
I think it's true that you're the best off when you are the worst programmer at your company.
Example: Yesterday I found code that did: a.ForEach(x => b.Add(x));
AddRange guise
 
@KendallFrey wat
So like .. rocks.ForEach(rock => pebbles.Add(rock));
 
yeah
 
wtf.
 
I'm glad you think that
 
12:35 PM
I've probably done worse but it wouldn't cross my mind to do that I don't think
 
Ninjacode
 
A few days ago I was getting an error message that said to check the inner exception for details. Well, I couldn't do that in the Errors window -_- but I tracked down the code that was throwing the exception, and guess what, the InnerException was null -_-
 
@KendallFrey I love null innerexceptions
 
heheheh
 
EF does that from time to time
 
12:37 PM
This was in our code
I fixed it
I fixed it hard
 
Did you make a comment => // hard
?
 
// Good morning, sunshine
Oh god, someone's demoing a website with a marquee
 
:)
 
Good thing it's just a placeholder
 
What is a marquee?
 
12:40 PM
 
Ah, it burns!
My eyes!
 
Google "marquee tag"
and look at the results counter
> The marquee element is originally an IE invention.
Scumbag IE
 
hehe
Ever used the contenteditable attribute?
It's supported from IE5.5
that's weird
 
I'm not sure, I don't think I ever used it in my code
 
12:45 PM
Inline edit on elements
 
I know what it does
I should make a userscript that sets contenteditable on everything
 
hehe
 
Lol
Just spoke to service desk again about service request from June for a web server
They cancelled it and never marked it as cancelled so it's been going back and forth between people with no communication
 
"We're working on it"
Lol, without any reason?
 
Cos they had no web servers to give us at the time they had to build one
 
12:49 PM
eh?
build one?
 
I've been pestering them and getting no where because the request I thought was active wasn't active
So people have been basically ignoring me cos I'm not following procedure
:D
 
Don't they virtualize the stuff, with shared hw?
 
@scheien No, we have physical servers.
We're moving to Azure soon.
Also I know that's not technically an answer but no, not all of them are virtualised.
 
Last place I worked had a VMWare cluster thingy, which was awesome for testing.
Don't remember what it was called
Could create isolated testing environments, side by side
 
Hyper-V?
 
12:52 PM
hm
 
We have some Hyper-V stuff
 
hyper-v is Microsoft virtualize tech isnt it?
 
Think so
> Hyper-V, codenamed Viridian and formerly known as Windows Server Virtualization
 
vCloud
It was pretty cool being able to bring up new servers, clients and whatnot when needed
Reverting state after test to get a fresh start
 
> haaaa, he has no friends
out of context conversation snippets are funny
 
12:58 PM
like journalism?
:)
 

« first day (1567 days earlier)      last day (3364 days later) »