« first day (1550 days earlier)      last day (3628 days later) » 

00:07
Ick.
Formatted PDF generation is bad enough.
Although I learned a lot doing it. I may have borrowed some of the XAML layout concepts. =x Stackpanel was a huge time saver.
No more: TextArea2.Top = (TextArea1.Bottom + Padding) < Page.Height ? (TextArea1.Bottom + Padding) : PageMargin
I worked at a company where they tried to use a purely procedural approach. Almost no custom OO. They had a 9,000 while loop. >_<
Filled with magic numbers as "bug fixes" when for whatever reason the math was off. "Hey I'll just add 5 here. Perfect!"
well at least it wasn't over 9000 :D
Yeah true. :P
I have a set of 4 classes that is 600 lines long and contains at one point 6 nested levels of recursion
It could be my PhD work if I went back to school lol
Holy hell
I wanna see your work sometime.
00:23
You mean what I do or where I work
Well technically both.
But I meant your code in this particular instance.
But yeah I'd love to smel-I mean see where you work. :P
lol
This code has nodes and edges which compose a state machine which is used to compose a walk based on a set of paths.
You were working on that for a while right? I feel like I remember you telling me about it like 6 months ago.
I forget the concrete problem it was solving.
I was, finished it. Then someone wanted to be able to skip nodes. And I had to revisit it a little.
scope creep shakes fist
The worst!
00:31
Requires some post creation optimization. The first version did the building all at once. But this one needs some balancing, which means removing certain paths. Here is simple code to remove a path from the walk for example.
public void RemovePaths(Walk w, Path path)
        {
            w.Paths.Remove(path);
            //stop removing if the same node as path has other paths
            if (w.Paths.Any(p => p.Time == path.Time && p.Node == path.Node)) return;
            //paths leading to this removed path need to be removed also if there were no others from this node
Nice
The most recursive code I've written so far is a WPF app that allows users to define a collection of shapes as a symbol. And symbols can contain symbols.
@SpencerRuport - Here is an old picture of one of our growth rooms: i.imgur.com/PzxgVtL.jpg
Is this SFW?
Let me know when you look at it, I am going to take it down
lol yes
Ah, tree traversal
00:35
Nice
graphs are even more fun
I'll have to get in contact with you if I ever visit SB again.
SB is fun :)
Agreed I had a blast while I was there. My friend has since moved elsewhere.
But I do want to check out the sailing.
@BradleyDotNET - It is a circular directed graph
00:38
Well, I suppose it could be worse.... technically
Heh :) I can't remember the full name. I made a recurrence relation for it. Wolfram couldn't solve it :(
My one and only experience with graphs was doing Dykstras (sp?) shortest path
I've done object graphs with reflection, and thats about as close as I want to come
I didn't mean to get into this subject.
I like coding things that are fun a lot more than coding things that are business.
Indeed.
Business Objects get boring pretty quick.
Occasionally you get a new problem but mostly it's about getting the same problem 100s of times and having to tweak the implementation because of unfavorable circumstances.
By the time you have a decent perspective and understanding of what you needed to implement it's grown too large to warrant a refactor.
D:
lol
Yeah, I think that is how almost every webform project that was successful went
00:44
At least with Webforms you can take solace in the fact that it was going to end badly no matter what you did.
haha
the removal part was the easy one, balancing instead of removing is annoying
I must be too far gone. Even when I'm programming "fun" stuff, my data objects are "Business Objects" :)
lol
What I really want to program is some 3d environment websites
where the entire site is in the canvas
That is what I envision as fun :)
@TravisJ - What's the difference between that and an SPA?
SPA isn't 3d
00:47
Do you actually get to visualize the 3D aspect to it or is that just a fancy way of describing the layers?
well, 2 and a half d
no, like "real" 3d
@BradleyDotNET your MOM'S a business object!
@SpencerRuport - Like Quake
Ohhhh
Okay
I'm still floored by the fact that there is a javascript GBA emulator
So awesome.
00:49
lol
I keep telling myself that I'm going to learn DirectX
and then I remember that it requires using C++
It's suuuuch a pain in the ass.
Well... OpenGL was anyway.
I really liked the XNA wrapper
but then they nuked it for Win8
:(
00:50
Well better now than later.
MS is learning their lesson. Cut off technologies that don't fit into the future plan sooner than later.
Without giving a nice replacement? Kind of harsh if you ask me
Now I have to use Managed C++ to do any 3D work
The alternative is letting it limp on and devs demand continued support like with ASP.Net WebForms
True, I guess
They're playing the long game.
just would be nice to know something better is in the works
00:52
When they get their ducks in a row they'll be poised to destroy Android.
I'll say this much, I'm looking forward to getting to combine XAML with my 3D stuff
Should make HUDs and overlays a ton easier
Even if I do have to use C++
I just made an edit on Github and the commit comment was "YOLO commit"
stack overflow =/
01:08
lol, thats what you get with recursion :(
01:20
There was a 0 instead of a value apparently and it was causing an infinite loop
 
2 hours later…
03:07
posted on January 13, 2015 by Scott Hanselman

LOL at my own post title. Pardon me. Michael Wolfenden has a very clever open source library called Polly. Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library that allows developers to express transient exception handling policies such as Retry, Retry Forever, Wait and Retry or Circuit Breaker in a fluent manner. Handling exceptions can be a hassle sometimes. Not just setting the try/catches up,

 
4 hours later…
06:39
Morning all!
 
1 hour later…
07:43
Anyone here know what the reason could be that EF doesn't generate an Id for a newly added entity? My entity has the "MeterId" property (it's a Meter-entity), but EF throws a validation error when trying to add it, because it doesn't have an Id filled in.
model/code first?
What does the error say?
code first
hang on, i'll get the exception
having trouble getting my code to run on a different pc :D
Not that familiar with code first, but shouldn't you use annotations? like [Key] for MeterId?
Havent needed that with any other entity before. That's why I haven't added it
exception ^
08:04
I would assume that MeterId is set to not null?
:)
And that it is not set when you try to save the entity
since it is a string, it can be null
It's not set, just like I do with all my other entities
What properties do the column have in the database table?
I think it's because my MeterId was a string :D
thanks man!
yeah, it works with an int for MeterId
08:19
is there any command where i can find git.exe in windows ?
where git.exe
doesn't work
@BenjaminDiele: np
08:37
Hello anyone?

stackoverflow.com/questions/27917271/create-dynamic-list-depends-on-member
Omg I hate the Carwings stuff!
Why can't they do a client-server setup rather than the messaging (which takes forever) :'(
Nissans app for managing charging, clima etc from web/phone
09:26
@CharlieBrown hi friend ,did you check my posted Question ??
@CharlieBrown really.i am sorry yesterday i was off cuz of office time end.
@scheien I prefer the car with wings.
@CharlieBrown your code is running now. I'd like to see your code.
@RoelvanUden: aye, it looks cool
@RoelvanUden . you can access this link now. before you said that its not open.please check now. 203.215.163.11/index.aspx
@Tariq_ASp.net Show me that code again of your client
09:34
@RoelvanUden yes. wait.
Why is this "203.215.163.11:6473" and not "203.215.163.11"?
i did used port just for test.
its not mandatory
you can use 203.215.163.11 only.
So does it work then?
09:49
not work for me . :(
for you its work ?
Just disable your server firewall and try again.
i gettting this exception . An error occurred while sending the request.
Server pc firewall have been disabled. yesterday i did..
@RoelvanUden did you check? are you getting any error??
No, if you have a problem only when deployed and not locally, it's just the port being blocked.
Or hell, your IIS may not even have sufficient permissions to bind that port
Using port 80 is the logical choice
so i use 80 port on client side ?
"203.215.163.11:80"
Hell if I know how that retarded SignalR was put together.
09:54
@RoelvanUden ,same error on 80 port..
lol .then what should i do now? .its annoy now cuz since 10 days i am facing the same problem .
I thought SignalR is your friend :D
Ye
it runs in a web application, so unless you have your website running at a different port, you should use 80
@scheien . are you friend of SignalR??:D
are you running MapSignalR() in startup file?
I've used it a couple of times before, but that is a while since last time.
@scheien dotnetfiddle.net/geAHux my client side console code.
I don't use SignalR; I use Socket.IO. At least that one is not retarded :P
10:00
hehe
iirc the url is something like 203.215.163.11:6473/signalr
@scheien yes i running MapSignalR() . you can check all code here. forums.asp.net/p/2028649/…
Ah, you're mapping it to the myhubs
@scheien i using custom proxy . yes
Does any of your clients work?
yes myhub
10:02
the js one?
no client work . i mean my console application client not work..
The javascript client works?
but if you'll access link 203.215.163.11/index.aspx
then i will able to see you in dropdownlist
in dropdown , all connected client added
It does not connect
if you'll click on send button,its will send mesage broadcast if you will click on send specific button then its will send message to dropdown selected client..
@scheien yes now its hungss :( i need reset iis again..
this what i gettting issue ,when my client console side try connect with server ,then server iis application start hangs.
before it was working LOL.
10:09
Gotta love the simplicity of SocketIO...
Good Noon @scheien whatsup o/
@RoelvanUden socketio yeah , but its needed node.js :(
.NET tends to over-complicate things that are fundamentally simple :-)
o/
.NET IS LOVE.
.NET IS LIFE.
@RoelvanUden before i was trying to use socketio .but in my film i should web application on server side pc and window services use on all client side pc..
@Sippy .NET is not love,nor life.its just a framework :P
10:13
@Tariq_ASp.net shutup nonbeliever
shuns
@Sippy :D
@Sippy are you really fall in love .NET??
@Sippy Urk. Not really. It's fine for the most part, when you're doing well-supported scenarios (e.g. web sites with MVC and EF). Anything that is slightly more complicated/special, and the ecosystem is just horrible, so you'll have to write everything yourself. If that's not an issue, .NET is great.
@RoelvanUden true
That said, I love IQueryable and Linq. It's lacking everywhere but C#.
@RoelvanUden a pffffffffffffff
10:18
@RoelvanUden talk about SignalR :D its also part of .Net :P
@roel ^ this guy
SignalR is flawed imho. It's just the one realtime framework available.
I like .NET cos I never have to do anything complicated with it, really.
Like SMS :D
Even setting up a WS server in .NET is a horrendous exercise.
@RoelvanUden yeah and with lot of bug :d
10:19
@Sippy SMS is easy actually ;-)
What's your concept of a difficult thing to do with .NET?
@Sippy Networking programming :D
I've never done networked applications in .NET actually.
Why is network programming hard in .NET?
@Sippy yeah thats why you said you LOVE .NET . try to touch networking programming you'll start get annoy after LOL
@Sippy Can be almost anything that falls outside of the scope of well supported frameworks/libraries. Web and database is easy, networking is easy, "new" technologies like WS (Lol, new...) is horrible. Things like manipulating images and PDFs is horrible. Interfacing with anything non-SOAPy bindings is annoying.
10:21
in C and java networking programming is ok.but in Net :(
.NET networking is so much easier than C/Java
@RoelvanUden Was gonna say, I'm looking at the networking portion of .NET right now and it looks fine
Java is a swear word in my dictionary
Now you leave Java alone
Just cos he's disabled doesn't mean you have the right to make fun of him!
@RoelvanUden not really.. i've touch c and java. so i can say that in .net its pretty hard to work on networking programming.
10:23
With pleasure
@Tariq_ASp.net Just make a Stream. Really. It's that simple in .NET.
@Tariq_ASp.net Because of what you're saying, I'm going to assume that because you used fairly low level network programming concepts in Java and C, you probably tried to force .NET to do something it didn't want to do and had issues with it.
That's the fatal newb mistake.
Whereas I have to do quite a bit of binding, endianness, buffering and allocating blocks and inventing my own protocol to give simple packets across the network in C/Java.
I still make that mistake every time I learn a new tech with .NET lol
@RoelvanUden Are you talking from the point of view of a webserver?
My last networked application was that distributed hash cracking thing
At uni
From raw networking. I had a build a Dropbox-like synchronization service in C, Java and .NET at Uni. :-)
C and Java were.. annoying.
10:28
@Sippy,@RoelvanUden . everything is start from low level . higher level we do in end of life :D . low level is the basic part of everything . that's reason we choose c for programming with hardware . yeah .net is easy but its easy only related to DATABASE like thing and designing interface .
You're obviously not well versed in .NET
@Sippy .net networking programming on LAN is pretty easy yeah .
...
@RoelvanUden Well, as I've only done networked applications using Java I suppose I'd enjoy using .NET :D
I didn't mind Java really, but it was RMI
So I didn't need to fuck with the protocol
I never claimed I was an expert, but yes, I do think I know more about networking than most "experts" (please note the quotes).
10:38
@Sippy if you'll try to access the pc which is Behind Router and Proxy ,Firewall. then you'll know :D
@Tariq_ASp.net That .. that's not a .NET specific issue ..
not using Team viewer :D
^ ... Besides, routers, proxies and firewalls are essentially exceptionally simple.
Oh look we have a new moon guy
Moon guy?
10:40
Seeing as the old one don't come around here no mo'
@Sippy but in java you'll do very easy . in linux is master in networking programming .as you know. most hacker these days are use linux
Yeah that moonowlprince dude
Who used to spout random bullshit a lot of the time
@Tariq_ASp.net You know Linux isn't a programming language right?
@Sippy 203.215.163.11/index.aspx now check, you can access now.
And knowing how to use a terminal also doesn't make you a network programmer
No
@scheien 203.215.163.11/index.aspx now you can check please.
@Sippy i know hahaha its not programming language :D
10:44
@Sippy Oh, yeah.
You can be hacker regardless of OS o_o
@RoelvanUden Shell Programming
... ... ...
Lololololol
so done
... .. ..
... . . . ...
Look, it doesn't matter what you use. What matters, are your deeds.
^morse code
10:47
@Sippy any way i love .NET because its need love :d :P
(I'd almost believe I'm not a real "hacker" because I use Windows)
@RoelvanUden Depends how you wanna define hacking
@RoelvanUden LOL i got its
Someone forced into my head at uni that unauthorised access == hacking
@Sippy Exactly, there is that, but even then.
Isn't that cracking? :/
10:50
No idea.
Terminology is a little gray in this area
Aye.
@Sippy every body can't be hacker . hacker born as hacker :d remember LOL
@Tariq_ASp.net Please stop.
HAMMERTIME!
10:53
@RoelvanUden please now check again .
@Sippy ok i stop now. please help me , now check and try solve my issue 203.215.163.11/index.aspx .. after connected , you can see your ID in dropwdown list
There's nothing in the dropdown.
did you see "hub connected "
you have to open drop-down list by click .at 0 index there is empty .
@Sippy can you see now ??
No
> Connecting Hub...
its loading?? :
oh refresh again !
yes now someone connected i see this.
you again disconnect .
@Sippy , can you get issue now ??
11:14
One bug down, 5 new bugs.
@RoelvanUden yey!
@RoelvanUden uh
I derped
When is it appropriate to use ref in a method parameter?
Almost never, right?
When you need to change the reference to the object.
Which is... rare.
11:35
uhh
@RoelvanUden It worked for what I wanted it to do
12:04
Damn
Never thought I'd miss working on AD but this questionnaire application is so dry
At least it lets you make beautiful architecture :-)
@RoelvanUden Oo that's a question for ya
Do you store your viewmodels in the front end project?
As opposed to the model project.
Yes, they are very view-specific so keep them there :-)
Sweet
12:22
sup
ohai
^ RE that conversation, presumably ref this is not allowed
that's only just occurred to me. That would be bonkers.
That's what ama call my blog.
"This universe is out of date, create a new one and reassign it"
4
Q: How to pass this by ref in C#?

IvanIn a class (ClassA) of mine I want to create a related instance of another class (ClassB) providing it with a reference to the object who has initiated it's creation. So I've provided ClassB with a construcror taking a (ref ClassB master) argument. But in ClassA I can't just call var slave = new ...

obviously because this is stackoverflow and there is nothing new under the sun, someone has already tried to break the universe and reported back the results
What's the point of programming if you can't control your own universe? ;-P
12:32
At least the answer is "you can't"
@TomW That answer just confused me.
I only use ref when I'm too lazy to change the output type of my method
rather than the all too common answer of "You can...however i) don't ii) don't iii) seriously, any maintaining developer will hunt you down and flay you alive; seriously, don't"
> ref refers to variable references, not object references.
amazing
@KendallFrey , i know you're expert in SignalR . would you like help me ?
12:35
The reason I asked earlier was cos I needed a piece of information which exists in the method and can be attached to my parameter but wasn't accessible outside the method.
@KendallFrey no, ur an expert.
I am not an expert in SignalR, don't ping me
@KendallFrey many guys say thats :P
I wish F# pattern matching was more like Haskell pattern matching :(
@KendallFrey Yeah me too
@Sippy Everyone will hate you for using ref. Seriously.
12:39
@RoelvanUden Why?
@KendallFrey what's the difference? Not remembering what Haskell pattern matching is like
Unless you're doing super highly optimized image decoders or whatnot...
@Sippy It's a code smell right there. Design your APIs so you don't need it.
@TomW Haskell is like fib 0 = 1
@RoelvanUden I've used it once in my career so far, and that was it. :P
I have it in my head it's bad to use but I have no idea why.
@KendallFrey doesn't F# do that? Or are you just talking syntax?
I mean a pattern in F# is like
foo =
| condition -> result
12:41
match bullshitting with
| true -> "you little shit"
| false -> "You've used Haskell?"
or something like that
:20920846
@TomW syntax mainly. F# is more verbose
oh, gotcha
@KendallFrey I'll take true!
runs away
12:51
I'm beginning to realize how bad the naive recursive fibonacci function is :S
precompile a list of fibonacci numbers to the maximum size of an integer variable on your hardware using a compiler macro :D
@KendallFrey Yeah I hate that :/
never compute anything at runtime
hides under da sea
lol
@TomW I'm running it with bigints now :D
12:54
Do explain what you mean by naive though
I am curiouso
!!define naive
@KendallFrey [naive](http://en.wiktionary.org/wiki?curid=93816) Lacking worldly experience, wisdom, or judgement; unsophisticated.
Surely you're not naive enough to believe adverts!
I know what it means
Just didn't know what you meant by it in that context
As in how can a fibonacci function be naive
the fork bomb version
I remember hearing a tale about some people trying out a very aggressive optimising C++ compiler on some numerical simulation code
12:56
fib(n) = fib(n-1) + fib(n-2)
can barely limp past 40
They twiddled an option once until it took days to compile, but the resulting program ran instantly and just printed a number to the console
The compiler had inlined the entire simulation
saw that coming
stop fixing your inputs, derps and derpinas

« first day (1550 days earlier)      last day (3628 days later) »