« first day (729 days earlier)      last day (4217 days later) » 
01:00 - 20:0020:00 - 00:00

1:15 AM
oops
wrong thing
0
Q: How to perform overload resolution with generics programatically

NOtherDevI have a number of MethodBase instances referencing different open generic methods (expected), e.g. representing the following methods: T Foo<T>(T nevermind, T other); T Foo<T>(string nevermind, T other); And I have a single MethodBase instance referencing closed method that was ac...

This is the most frightening concept I've heard proposed so far.
 
 
2 hours later…
3:27 AM
hi all
 
yo
 
 
2 hours later…
user868935
5:32 AM
0
Q: limit pitch of camera between two values

SpicyWeenieI'm having trouble trying to pitch my camera within a specified range. Currently, my camera can pitch around the model without any constraints. I've tried to limit the Y-Axis between a range of 6 and 36, but if I keep pitching, the Z-Axis will continue moving the camera forward. I'm using a cont...

 
10:36 AM
Anyone encountered XAML bindings that don't update their bound models?
It works one way; I see the value
Gaah, Mode=TwoWay solved it; how do I know when it's default TwoWay and when it's not?
 
10:49 AM
Guys how many byte is a char ??????
 
It depends on your encoding
.Net uses Unicode
if you're talking in memory representation
also, it depends on your language
 
11:23 AM
I am working on a game using Unity which doesn't serialize structs so my choice is to either a) serialize an array of class instances (which are slower to work with at runtime than structs plus use a lot of extra memory in quantity) or b) have 3 native C# arrays, one for each field of the struct. b) seems like it might be a good choice but what disadvantages would there be to this option?
I suppose the main question is, if I created a function that looked up the 3 values, chucked them into a struct and returned them for convienience, is the 3 array lookups going to kill performance when array lookups is frequent
 
I was about to say 'sounds like a job for protobuf.net' but then checked my facts and it turns out that doesn't support structs either
 
protobuf.net?
 
.net port of google protocol buffers - it's a binary serialisation library
figured because it was meant to be simple and low-level it would probably support structs - it doesn't
 
ah I see, unfortunately I am stuck with Unity's serialization
It's serialization system has to vet certain data types which are treated in an unconventional way
But sadly they didn't implement structs
 
 
3 hours later…
2:06 PM
hairy pants
 
yes dear?
 
haha
how are you this fine sunday?
 
reasonably good, thanks. Although I just looked out of the window to verify that my comment about having nice weather was accurate...and there's a filthy great black cloud engulfing us at this very moment
which probably means my clothes are about to get wet. So, brb.
 
2:33 PM
Hello
 
Hey blud
Any hardware experts?
[]
 
what sort of hardware?
(not me, in any case)
 
RAM
I want to buy RAM. 10500 vs 12800
Is it worth getting 12800?
oops 10666*
 
2:50 PM
for gaming?
 
Nope
 
is 12800 == 1600 Mhz?
 
I don't know
 
I think so
I experimented some with RAM speed, the difference is noticeable. There was stability issues but 1600 MHz is maybe standard on many mbs now
The say that the bigger the cache on the cpu is the lesser the benefit from fast RAM will be
 
2:54 PM
(it was a couple of years since I experimented)
 
Cache is 3mb
 
Think I am running at 1866 now
 
Memory types :1066/1333
 
what do you mean?
 
2:56 PM
And what is the difference in cost? RAM is pretty cheap nowadays
 
That's the CPU.
Why does the CPU care about what type of RAM anyway?
@JohanLarsson 40eur
 
is that for a laptop?
 
Yeah
 
One way is to buy the more expensive just in case
My gut feeling is that they will be more stable at a lower frequency and hhave potential to run faster
but as usual when i write something here I don't know for sure
 
Yeah I think so. Expensive doesn't always mean better.
 
3:06 PM
Hello Hi
 
true, but when it comes to computer stuff I often choose more expensive just in the hope that it will reduce downtime
 
Lol
@user1508671 Hey
 
we are risking StackOverflow now
 
3:08 PM
lol
 
@JohanLarsson lol
 
yoho
 
Hey
I'm confused. Lenovo and Crucial are telling me different stuff.
The max I can take is 32gb says Lenovo.
Crucial says 16gb
 
@LewsTherin 16 is enough, it is very rare to be over 10
 
Yeah.
I need to be sure of the ECC, Buffered/Unbuffered, Frequency
 
3:17 PM
how many slots are there?
@LewsTherin Why ECC slower and more expensive
 
It is non-ECC I think
Lenovo says 4 slots.
Crucial says 2 lol
 
thhat is the correct choise I think
Lenovo should know?
What is the name of the mb?
 
mb?
 
MotherBoard
 
Mmn let me find out.. if I can
Emerald Lake 2
Lenovo's stuff apparently
 
3:26 PM
then Lenovo should know
I was thinking if there are four slots you can buy 2x8 GB
then you can upgrade if need be
 
I will open the laptop to make sure of the slots.
And see what RAM type it uses.
Talk in a few.
Could only remove a screw.
Might have to go to a retailer which SUCKS.
 
Ask these guys?
 
Lol
Poor trashcan
 
but we dont know what it did before do we?
 
3:41 PM
Refused to take trash?
 
lol, that type of attitude can be a trigger
 
Lol
 
annoying to watch
 
Lol
ds
You can always remove it
 
to late
and I dont want to permalink
 
3:55 PM
Check this:
2
Q: Why task exception not rethrown on GC.Collect

imakMy understanding is that when a Task throws an exception, it's get stored and re-thrown when either one of (Result, WaitAll) property of Tasks is observed or when GC happened. Given that, I run following code. Task t = Task.Factory.StartNew(() => { throw new Exception(...

Weird..
 
is there an infinite loop?
ok see it now
that is interesting piece of code
 
No I used an infinite loop to test it. But it doesn't crash.
 
uhh I'm tired
 
What up jiggas!?
 
Isn't "jigga" derogatory?
 
 
1 hour later…
5:14 PM
Howdy.
 
Have anyone tried AngularJS?
 
I have not.
 
Ok
 
My new project will be an online recipe box, with Android support.
 
5:32 PM
COMMENCE BADASSERY
guy about to jump from 120,000ft
 
you not heard about the record attempt?
guy trying to make the highest freefall jump, breaking the sound barrier in the process
 
Yeah, it's gonna be sick
Also, @TomW the gun was an airsoft gun. So yes, it was a recipe for laughs.
Many people were shot last night. and it was good.
 
well, i say attempt
he's at-height now
the challenge is now to not die
 
Oh, he got up there? the wind was right?
I haven't been following it.
 
5:35 PM
nearly
sure he must be high enough
 
Shit, that's cold up there.
It's light jacket weather up there!
 
the air is that warm because it's starting to catch cosmic rays and particles directly from the sun
what little air there is
 
lol it's -0.3f out there.
 
it's been a lot colder
 
aye.
So for this recipe web app, I want users to be able to put their own ingredients in the database, and it's going to be in the vein of wikipedia where anybody can enter an ingredient, but anyone can mark it for removal, then people with a moderator status will see it marked for removal when it reaches n votes. Should I keep track of that on the ingredient, or should I have a separate table that is 'id, ingredient id, user id' then tally those votes with a count?
well, I guess there will be a reason attached to it.
so it would be id, ingredient id, user id, reason
Nevermind, I figured out how I'm going to do it.
 
5:54 PM
Why can't I understand the difference between async programming and using threads.
for example SP.NET will not be using any threads between the async method call and the await.
*ASP.NET
what does it mean? How come it doesn't use a thread between async and await
any idea?
it calls an async method
and the caller keeps doing other things while the async method is doing its own work
and we say await since we need the result of the async method
but why doesn't it a thread?
 
I need a Halloween costume idea. I was going to do the 10th Doctor, but I can't find that sports coat. Ideas?
 
@DorianGray it's an abstraction
 
so?
 
in .NET 4.5 it's a very deep-level abstraction. It's language integrated.
 
how do you explain it?
 
6:03 PM
How do I explain what?
It's on its own thread. If you inspect the process you will find it has a thread going the bit of work.
You can probably get the thread.
Using the Thread.CurrentThread property.
 
from what I'm reading, the Task executes on the calling thread when the thread is idle: "The async and await keywords don't cause additional threads to be created. Async methods don't require multithreading because an async method doesn't run on its own thread. The method runs on the current synchronization context and uses time on the thread only when the method is active."
 
the thing that I don't understand is you invoke an async method and the caller is also doing some other things after the async gives the control to the caller
but the async method is running at the background and completing some other jobs
and all these things happen without a new thread?
or another trehad
when you await a method you say like Task.Wait or Thread.Join
this is the thing I don't get and I've been pondering on it for days.
without an extra execution path, how come you call it async?
 
I'm sorry
I was totally wrong
You're right
I just read about it.
 
but when you await a async method
thread.join blocks the current thread however
await attach the current operation as a continuation to the called async method
so it doesn't use the current thread instead shuts it down and add itself to the other asycn method's continuations
 
6:17 PM
well I think it explains the thing here: The async and await keywords don't cause additional threads to be created. Async methods don't require multithreading because an async method doesn't run on its own thread. The method runs on the current synchronization context and uses time on the thread only when the method is active
 
well actually it's not a lie in that the article is correct
it's just ugh
 
user868935
0
Q: limit pitch of camera between two values

SpicyWeenieI'm having trouble trying to pitch my camera within a specified range. Currently, my camera can pitch around the model without any constraints. I've tried to limit the Y-Axis between a range of 6 and 36, but if I keep pitching, the Z-Axis will continue moving the camera forward. I'm using a cont...

 
-1
Q: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at Typer.main(Typer.java:156)

Ŧhƹ ѢƹʑŦ import java.awt.AWTException; import java.util.Arrays; import java.util.Random; import java.util.Scanner; import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; import java.awt.AWTException; import java.awt.Robot; import java.io.File; import java.io.File...

 
Ugh. I can't get my second monitor to work. This is annoying.
 
6:39 PM
Wooh! I got it working!
 
Woop!
 
It turns out that the cord for it is super short, and when I put my computer back, it pulled it out of the plug.
Although, I need to get a flat screen instead of a CRT.... It's too big and bulky, and I feel like I'm suffocating.
 
A CRT. Get out!
 
Hey, it's all I had handy.
My main is still an HDTV
Awww yiss.
I can have 4 windows split screened now.
 
Throw it out the window.
 
6:47 PM
No!
Nevar!
 
Yes now!
Because you spelt "Nevar" wrong :D
 
But I need a second monitor.
 
Buy a new one ha ha
Preferably not CRT.
 
I lost my job Friday... I don't see that happening.
 
Oh.. :(
Why?
 
6:51 PM
Downsizing/they couldn't pay our salaries.
They laid off 13 of us.
That's why I'm basically spending every day and night at my computer until I get a new job. Putting my Resume in at places, and making things so I can have a larger code sample base.
 
And I thought software development was a safe place to be.
Man, I hate the news.
Hope you find something soon!
 
I do, too. I have a few leads I'm following up already. Hopefully I won't be out of a job for long.
 
Was it a start up?
 
Yeah.
 
Ah ok.
 
6:58 PM
They got federal funding to do a program where they trained anybody willing to take the course, and then hire them. They got kickbacks for doing this and their business model was to hire as many people as they could so they could get as much money as they could and funnel it back into the business and insource jobs that were going to other countries.
 
Aim higher next time mate!
You have a degree right?
 
Which basically lead them to hiring 50 people that really didn't have business in that field.
I was a tax preparer before this, and did this on the side. I had no degree.
 
How much experience?
 
Granted I have been doing stuff like this since I was about 12. So I've been doing it for almost 12 years.
 
You are from America right? You should be fine.
@SpencerCole 12 years? You don't need a degree lol
 
7:00 PM
Yeah, I have no worries about any of it.
Well I wouldn't say it's a 12 years worth of actual development. I'd say it's more like the first 5 years were 'hey I can make things on the internet! What's this pee hache pee thing?'
Then for the rest of it it was 'hey, so I know things, but I don't have any purpose other than lol I can make things'
 
Well it is still a lot more than I know. And I go to college.
 
The job focused my skills to a purpose, and that's where I kind of learned the most, by being on projects.
so I have 18months of on the job experience, 12 years of using logic to solve things like 'LOL I CAN MAKE IT SAY BOOBS 100 TIMES IN A LOOP!'
 
Ha ha
I can imagine doing that for fun ;)
I wonder if that'd impress a girl. mmmn
 
60% of the time it works every time.
 
Doesn't make sense lol :P
The comments.. LOL
 
7:06 PM
But the biggest drawback of my experience is that I don't have a code sample base to show for. Everything I had for the company wasn't able to be used, and I didn't think to make anything in that year and a half that was worth while outside of work, so I got screwed.
So here I sit, making things to show people.
 
Didn't they give you reference?
 
They're super supportive, but I can't use any code that I developed there. So they can say 'yeah, he's a great developer' all they want, but that doesn't mean anything without code to back that up.
 
Yeah they wouldn't give you the code.
It is the reference that will count. You can say what frameworks you used however
If it is the company's framework that might be a problem..
 
I have one thing that was never used by them, that my one manager let me take, but it's a game that's not polished. But meh.
 
Oh you worked for a game dev company?
 
7:11 PM
No, and that's why it wasn't used.
 
Right..
Reproduce it lol
 
They basically ran out of contract work and said 'hey, make whatever you want and we will release it on the android app store!', so I made a game. And my manager said 'I support this, it's a good game, but we're not a game development company. It probably won't go anywhere'. and it didn't.
I have all the code. I can just change the package to be mine. They won't use it ever.
 
What game was it?
 
It's the game 'Dope Wars' or 'Drug Wars', but it's basically unskinned so that you can set it in any time period, location, and format. The thought was going to be Midieval Mogul, and instead of drugs use things like textiles, food, and whatnot.
and then we could skin it a bunch of different ways and the users would be able to play whichever struck their fancy.
 
Remake it and sell it.
 
7:16 PM
It's complete, but it's unskinned, and only a version 1.0.
 
They didn't claim ownership right?
 
Actually, it was never on the record. I coded it entirely there, but I'm not positive they'll keep it.
But I have the code, so I can change the references and whatnot and release it. They wouldn't pursue me if they found out, either.
The amount of dirt I have on them, I could sue them. If I won or not, they wouldn't be able to pay for it, and it would bankrupt them. So even the hint at legal action I could get away with murder.
 
Ha ha
 
Anyone use mysql?
 
Scary!
 
7:19 PM
And it's not any dirt that is them doing illegal stuff, it's enough that I could take them for quite a bit of money.
 
@TravisJ Briefly.
 
@TravisJ I use it a bunch.
 
With .net?
 
I'm using it right now.
I used it a bit with .net
 
What type of connector do you use?
 
7:19 PM
If you have the full version of Visual Studio 2010, there should be a built in connector.
You can't use it with Express.
 
lol, a built in connector? right. we are talking about deploying not debugging
 
yeah, its broken though
 
How?
 
it has an issue with threading and closing over a loop in a recursive build of nested functions
 
7:21 PM
Ok, yeah, I haven't used it that extensively. I used it on an MVC app to show you could.
 
I came across it 3 months ago, and had been toiling with the problem thinking it was entity frameworks fault. Finally got to the exact line of code in mysql connector.
I was hoping you were going to tell me of some great mysql connector you had :P I guess I will have to try dotconnect
 
I just used linq to query it and pull back tables so I could manipulate the data that way.
 
Yeah, well if you use any nesting in your linq then mysqlconnector fails
 
Haha, no. I did all that by hand after the fact, because I am weird like that and love the spaghetti code.
 
It gets into one of two situations. An extended recursive loop, or an indented loop where the query is malformed.
 
7:24 PM
As bad as it may sound, it may be best just to do straight sql to the database instead of linq.
 
@TravisJ Have you asked on SO proper?
 
The properly generated sql for what I query is about 170 lines and it is different each time.
@JohanLarsson - About which connector to use? Or about the other situation?
 
@TravisJ I... what.
 
No, and a bunch.
 
7:25 PM
what the hell are you querying that needs 170 lines of SQL?
 
Maybe it will be easier to get priority for your fix if the problem is exposed
 
@SpencerCole - 12 tables of inner / outer joins. Makes an object graph about 7 levels deep
 
Holy hell, man.
I think at that point, it would be easier to make a view.
 
@JohanLarsson - Exposed? First, I submitted an in depth report to them on their site. Second, I found a couple of people from 2009 with the same issue who stopped using the mysql connector because the issue was never fixed. I don't think I can continue using it and today am going to strip it from my project and move to a different connector.
@SpencerCole - This is in a 4n relation database. Not sure how I got conned into this behemoth of ERP.
 
7:28 PM
ok, exposure can serve others at least. And there is always a slim chance that a Jon Skeet type of guy has a solution
 
regardless, I am switching connectors
or, "MySQL Provider"s
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, mysql.data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />? deleted.
 
Are there many to choose from?
 
@JohanLarsson The point Travis is making is that it's been out there for years now, and hoping that some guy figured it out and just forgot to post it somewhere and the just happens to see his post is slim, and it's less of a hassle to just switch to a connector that works than to stick with one that doesn't and hope there is a solution just waiting for his question.
 
That is pretty much my point lol
 
7:32 PM
I am going to version and make the change
 
So what I find really funny is that we still use C:\ as our hard drive, even though A:\ and B:\ are antiquated, and there is a higher chance that nobody will use them.
I don't know anybody that has a floppy drive, and I don't know anybody who still uses DOS proper.
I'm going to start mapping my C:\ drive to A:\
 
I have a floppy drive on my "super" computer at home. However, I don't think I have ever used it. I would be willing to bet that there is something hardcoded that looks at the A drive for boot instructions though, I wonder if you could just epically (apparently epically is not a word, but I am still going to use it) hack someones computer by exploiting that.
 
That would be funny.
I just went to change my drive map, and it said 'things may look to C:\ and you could break shit, wtf you think you're doing?'
I think I have my answer of why we still don't use A:\ or B:\
I'll map my secondary Hard drive to A;\
 
this could be premature optimization right?
 
what could be?
 
7:41 PM
this is this as this;
 
@TravisJ Stop it. My head hurts.
 
lol
 
true?
 
blame it on the a-a-alcohol?
 
compile error this is reserved?
 
7:43 PM
this is this as this does not compile
neither does this as this is this
 
@TravisJ Lool
 
@TravisJ but can you make it work? Some IL doctoring might do
 
I could make that work, but is that this?
 
ask on SO?
 
how did this start?
 
7:48 PM
I blame @SpencerCole
 
Hey now.
 
starting to play around with drive letters, clearly signaling that the gloves were off
Nothing is holy
 
Except mysql connectors code, tons of holes...
 
Zing!
 
:D
 
7:54 PM
@TravisJ Why not rewrite the sql connector? Are you scared?
 
@JohanLarsson - It is so packaged, I am not sure about how to repackage it if I make the edit.
 
go IL on the mf?
 
From what I can see, the web.config directive is the only place that a reference is made
I have all their code.
I even pointed out where their error was.
 
I saw that, that was nice work on your part, hats off
I am joking by the way
 
Because you don't wear hats?
 
7:58 PM
out of frustration over that the errors in my code never ends
Wanted to do something funny but it has just been agonizing grind
 
Isn't it always? The hardest things to do are always the best. If they were easy, it would have already been done.
 
01:00 - 20:0020:00 - 00:00

« first day (729 days earlier)      last day (4217 days later) »