« first day (744 days earlier)      last day (4205 days later) » 

9:00 PM
i suppose i'm just screwing myself up because I don't trust users and I want to add a couple more color states depending on if it's unedited but checked, checked and edited, checked but processed, etc.
screw highlighting on check state at all .
BAM done
 
@Billdr Give the serialization attributes a readthrough, there are not so many
 
@JohanLarsson I was doing it right; a part I didn't write myself was broken.
When I was told that part was working I believed them. Silly me.
 
@Billdr Serialization/deserialization is fairly testable
I have a couple of XmlAsserts that I can share (for nUnit)
One does a roundtrip, serializes and deserializes and makes asserts, you can pass expected xml optionally
 
@JohanLarsson Thanks, I got it under control now.
 
9:06 PM
@robjb I did get your CV. I'll keep it in reserve for when we're hiring again :)
 
5
Q: XSD key/keyref intellisense validation support in Visual Studio 2010

bonomoI've been searching for the answer and could not find one: Is there a XSD key/keyref validation support via Intellisense in Visual Studio 2010? If so, how to make it work? If no, is there a (built-in) way in Visual Studio to do key/references validation in an XML having an XSD schema at all? ...

 
@Pheonixblade9 Great, good to know :)
 
Would you say modern processors are RISC?
 
@Billdr thanks
 
Instead of screening I am going to try to use the data explorer, but I seem to forming a bad SQL query..Can anyone spot what is wrong here?
DECLARE @RepFilter int = 50000

SELECT      ParentId as [Post Link]
FROM        Posts
            INNER JOIN Users
            ON Posts.OwnerUserId = Users.Id
WHERE       Users.Reputation > @RepFilter
 
9:17 PM
@Billdr Depends. Is the latest x86 'modern', and are you referring to the microcode or machine code?
 
@AmmarAhmed display: inline
 
I was searching "block:none" lol
 
@KendallFrey I'm doing some research on RISC vs CISC. Found an Ars Technica article from 1999 saying we live in a Post-RISC world.
RISC would be the instruction set on the processor, so I guess that's what I'm referring to.
 
x86 was originally cisc, and the newer ones supposedly have the same machine code, but an internal architecture that is risc.
 
@Billdr I assume i put that in the <h1> element? I have a button that I wanna put next to the H1 element
 
9:21 PM
@AmmarAhmed Yes, as a style attribute.
@KendallFrey So you're saying they still have the CISC instruction set?
 
yes, x86 still has all its instructions
 
Yes.
 
if that's what you're asking
 
17
Q: Why does Intel hides internal RISC core in their processors?

GoofyStarting with Pentium 4, Intel redesigned it's microprocessors and use internal RISC core under the old CISC instructions. Since Pentium 4 all CISC instructions are divided into smaller parts and then executed by mentioned RISC core. At the beginning it was clear for me, that Intel decided to h...

The decoder turns CISC machine code into RISC microcode.
 
Yea
so.. backwards compatibility for old x86 code, that makes sense. But the CPU itself is working as RISC
 
9:25 PM
got it to work on jsfiddle. yay
 
yes
 
Backwards compatibility is the enemy of humankind.
 
though as an assembly user I'd like it if they exposed the risc instruction set
 
I guess I stumbled upon the first (AND ONLY!) ars technica article that was wrong.
 
9:25 PM
because x86 as it is is a royal pita
which article @Billdr? I'm interested in reading that :P
 
I agree, but I have no idea what a RISC instruction set would be like.
 
load, <do>, unload
instead of <do>
 
woah that's an old article lol
 
the key difference is you have to load and unload the registries manually. This gives you a performance bump if you don't need to load new data into the register for the next instruction.
 
9:27 PM
But how is that different than mov eax, [edx]?
 
On x86? It's not.
Because that's what's going on under the hood, apparently.
 
I have to disagree :/
 
What's the difference then?
 
@Billdr ARM is an example of a RISC processor, as well as OMAP. Intel/AMD processors are generally CISC
 
I implemented a MIPS R3000a emulator
 
9:29 PM
Zneak knows more about this than I do, it sounds like.
 
and if there's a true RISC ISA I'd like to say that it's the MIPS
 
the easiest differentiation is RISC is generally fixed-length instructions, whereas CISC is variable-length instructions.
 
zneak knows more about everything
 
lol
RISC CPUs mostly aimed at having a simpler interface
 
So do most domesticated animals :(
 
9:29 PM
@Pheonixblade9 I hate those variable instructions!
 
it comes with a few tradeoffs
 
longer code, right?
 
RISC CPUs are also faster per instruction, by virtue of having smaller, simpler instructions, which means decoding is cheaper. Decoding is generally the most expensive (longest) part of an instruction execution
 
not necessarily, if you can put to use all these bits
 
With RISC, yes. This I can confirm.
 
9:30 PM
MIPS means "millions of instructions per second"
so one instruction takes exactly one cycle
 
well, just compare RISC with a feature like MMX... RISC doesn't have stuff specifically designed to do stuff like decode images.
 
@zneak Always? That's crazy.
 
(except for branches, which take two, but they cheat by executing the following instruction at the same time, so it's still KINDA 1 instruction per cycle)
 
@zneak I thought RISC still did branch prediction via pipelining
 
I'm just talking about MIPS
 
9:32 PM
Well sorta, Kendall. It can take 3 RISC instructions to be one CISC instruction.
 
what @Billdr probably means here is that the logical operations can only operate on registers
 
well, yeah, but I can't imagine one instruction per tick.
 
that's just half-true, though
 
well, CISC essentially breaks down a longer instruction into multiple RISC instructions
 
Oh?
 
9:33 PM
@zneak Oh, yeah, that makes sense.
 
the target must be a register, but most instructions have an "inline" variant
 
look at how patient mr. skeet is in his comments on this question stackoverflow.com/questions/7219597/sorting-songs-in-java
 
for instance, "ori"
(which is the inline instruction of "or")
it takes a target register, a source register, and a 16-bits immediate
which is why it's "half-true": you can only have 16-bit immediates
because the instructions are all 32 bits long
 
Is there actually a 32-bit limit on instructions?
 
yes
an instruction is ALWAYS 32 bits
no more, no less
also, the CPU doesn't have flags
 
9:34 PM
Dumb question, but I was under the impression that you can specify 32-bit operands.
Wait, are we talking about the same thing?
 
no, you cannot, and that's why you often need to load a full word to a register
I'm talking about MIPS cpus lol
 
That would explain it.
 
to branch, since you don't have flags, there are instructions that compare registers then branch on some condition
 
No flags... sounds scary.
 
that's not scary, that's awesome
 
9:36 PM
w/e
 
For example, CISC instruction like this:

JUMP if (A > B) to LOC_A

Can be thought of as the following:

COMPAREGREATERTHAN(A, B) => X
IF(X = 0)
LOAD(PC1 = PC)
LOAD(PC = LOC_A)
...execute
something like that :)
 
with the MIPS ISA, that's
lw r1, [address of a]
lw r2, [address of b]
bgt r1, r2, LOC_A
 
Yeah, it would use the ... I forget which flag.
 
I don't really know MIPS, I do know Motorola assembly though :P
 
68k assembly I guess?
 
9:38 PM
yep
 
@Steve wow. I don't think I could have been that patient.
 
68k HC12 is what I learned on
that and ARM Cortex M3
 
that said, in x86, that's not a whole lot better, you need to load at least A in a register, subtract B, then use I-don't-know-which-jump
You see @KendallFrey? flags are evil, people never remember them :P
 
@zneak So you do assembly then? Is there an easy way in for a guy who's written managed code his entire life?
 
Well, I think i remember the instruction name.
jgt?
 
9:40 PM
something like that I guess
I haven't professionally worked with assembly, that's all on my spare time, and I would never ever try to do something big in assembly
that Roller Coaster Tycoon guy has all my respect
but it's totally learnable
 
It was not assembly, was it?
 
it was.
all of it.
 
Nuts
 
in assembly.
 
O M F G
Chris Sawyer > Jon Skeet
 
9:41 PM
lol yeah
 
lol
 
@zneak did I ever show you the ALU I designed?
 
WOAH, Zneak, you drove Kendall to blasphemy.
 
pretty sure you did not
 
I did the RAM for it for a full "CPU", didn't post it though
 
9:42 PM
lol that looks fun
 
Did you see the ALU some dude built in minecraft?
 
I've never done CPU design but that's something I would certainly enjoy
 
@Billdr Heard of it, I think.
 
and that's one of the reasons I'm going to transfer to some other university
 
Oh, he's saying it's a CPU now. I remember it was related to the pdp8 somehow initially.
 
9:44 PM
@zneak yeah, we won lots of extra credit, like 156%, our design was WAY smaller and faster than all of the PHD students :P Ours was like 160ux180u, the next best was like 800ux900u :D
 
What code editor do you use for assembly? I figure it is not the language that is the hardest part but actually reading it
 
I've never used a specific editor because all their syntax highlighting for the platforms I used was broken
then again, I didn't do a lot of writing myself
 
@JohanLarsson Notepad++ FTW
 
From what I have seen it is like ~20 instructions that make up a decent part of the usage
 
a lot of instructions simply have variants
and a lot of instructions have the same syntax (though this is more true of RISC- than CISC-inspired ISAs)
one thing I'll never forgive to x86 is the brokenness of multiplications and divisions and the nightmare it becomes for register allocation that just some instructions always output to fixed registers
 
9:48 PM
It depends on your assembler.
Some assemblers have different names for different sizes of instruction.
I don't think there are many that use different names for all the different opcodes though.
 
in the case of x86, there are two popular syntaxes (put aside the different goodies assembler will give you), the AT&T syntax and the Intel syntax
 
For one thing, a lot of instructions have the arguments in the opcode.
 
I prefer the AT&T syntax but it seems that's the least popular choice
 
you mean gas?
I use NASM for all of my assembler.
 
both will let you specify your flavor I believe
 
9:50 PM
srsly? wtf
What about inline GAS ASM in C?
Which is the only place I would use it.
 
GCC FTW
 
then you're stuck with the intel syntax
but gas itself, as a stand-alone command, lets you use either
well, when it's not broken, as it was on Mac OS Snow Leopard
(and that's why I moved to nasm)
 
Wait. gas = intel? I thought nasm was intel and gas was at&t
 
no you're right
I'm just mixing up my names
soooooooorry
 
Good. Because that means I have an excellent memory.
 
9:54 PM
okay wtf visual studio
I want to add an existing folder to a group in a solution
why is that so hard
 
Because aliens.
Especially that one.
 
DID IT JUST FLATTEN THE WHOLE FILE HIERARCHY
 
@KendallFrey I use FASM... MWAHAHA
 
Bill Gates is mocking you.
 
I hope he's having as much fun as I'm frustrated
no, in fact, I hope he's not having fun.
why does it take forever to remove files from a project >.<
screw that, I'm going to grab something to eat, hopefully VS will be back to responsiveness when I'm back
 
10:01 PM
 
I am clearly going to edit that project file in notepad++ when I get back
 
sexy beast.
 
Performance Review done. I got EE
Exceeds expectations!
<-- going to go buy some beer and party like it's 1985 like balmer in that video
 
Grats
 
Thanks
Apparently I have great communication skills, but I get a bit too technical when talking to some audiences, so I have to work on that... no more jargon
 
10:08 PM
He didn't say "developers" once. Fake Steve Balmer is fake.
 
Now I have to explain ID-10T errors and PEBKAC errors
 
VS is still working on removing that flattened file hierarchy
 
Just wondering, but can you draw a rectangle with only three sides colored?
 
you mean draw just 3 lines with a different color?
 
So say you draw a rectangle that has left, top, and right with color red but the bottom one with white color?
not exactly
 
10:09 PM
with what API, gdi?
it's officially been 20 minutes that Visual Studio is removing files
 
Can I create a DateTime by just specifying hour?
 
@JohanLarsson no
 
DateTime.Now.Date.AddHours(hour)
 
Or is there something more suitable thhan datetime
 
that will be today's date though
 
10:16 PM
but you can change the hour of an existing datetime
 
@zneak You forget DateTime.Today
 
0
Q: Combine Time Ranges

thecaptain0220I am currently working on a C# program where I have the need to combine a bunch of time ranges. For each range I have the start and end time. I found an example where this was being done in Ruby but not for C#. I am basically looking for the time range union. I feel like there might be a way to d...

That looked fun
 
yes, I forgot today again
 
You can also use TimeSpan.
If you want time-of-day.
 
@JohanLarsson are you wanting to represent a point in time, or the length of time between two points?
DateTime for one, TimeSpan for the other.
 
10:17 PM
TimeSpan is also good for a time of day.
 
yeah, if the start is midnight, it is.
 
When else?
 
point in time, just writing some quick and dirty test things where I dont care about dates
 
or noon, I suppose, if you don't want to deal with 24 hour time.
 
I'll go with this DateTime dateTime = new DateTime(0, 0, 0, 1, 0, 0);
 
10:18 PM
@JohanLarsson what's your requirement?
 
is there a command line I can use to print the full path of all files in a file hierarchy?
 
@JohanLarsson That throws an ArgumentOutOfRangeException
 
should I ask superuser? lol
 
I think so. It has tree in the name IIRC.
 
@KyleTrauberman lol
 
10:19 PM
lol it is tree.
Except it doesn't do the full path.
 
yes but it just graphically prints a tree
 
> Year, Month, and Day parameters describe an un-representable DateTime.
 
@RyanTernier Just the quickes and less verbose way to new up datetimes where I only care about thhe hour
 
@JohanLarsson just use DateTime.Today.AddHours(1);
it will represent today too, but you can ignore that part
 
@KyleTrauberman ok
ty
 
10:21 PM
np
 
Why not TimeSpans?
They will let you do pretty much the same, except get funny bugs if you're running around midnight.
 
@KendallFrey maybe it is better, I'll have a look ty
I always code around midnight 23:23 here now
 
@KyleTrauberman Not funny. Jon Skeet would be very concerned.
I mean, if the guy knows what went on in Shanghai years ago...
 
Concerned about what? My laughing or the bug?
 
10:24 PM
Both.
 
yawn this day is going by sooooooooooo slooooooow.
 
I got two tickets done, time for a third
 
I sent a ticket to a DBA this morning and he hasn't touched it yet. /bored
 
@KyleTrauberman read a book!
Wait, why do you need to wait for a DBA to do something?
We abuse the hell out of SQL here and we don't have a single person whose job title is "DBA"
 
because without DB access, I can't connect the SharePoint BCS to the table, which means I can't create an external content type, which means I can't create an external list, which means I can't complete this task.
and I don't have sa access to the MS Dynamics DB server.
yawn
at least I don't have to jump through red tape to get it done, like with a previous employer that required 15 different approvals to make A F@#$$ING CSS CHANGE.
 
10:28 PM
sounds like PITA bureaucracy
 
nah, GCU is cool
 
we recently implemented code reviews...
it's caught a lot of stuff
 
I'm a proponent of scrum and code reviews
 
especially shitty code I've checked in :P
 
and not having one dev always working on the same thing.
 
10:29 PM
@JohanLarsson WHy not just care about the hour as an int/double vs a time?
 
letting everyone branch out and learn different aspects of the project
 
How do you excuse yourself for writing shitty code? I'll need to know this soon.
 
@JohanLarsson ^^ that.
 
@RyanTernier I dont understand
 
@KendallFrey just say "I was young and naive when I wrote that. oh well." and move on.
 
10:30 PM
@KendallFrey I just want to generate dummy data to test with
 
@JohanLarsson if you only care about the hour (1, 2, 3, etc.) just use an int.
 
@JohanLarsson You said you only care about the hour, so why not just care about the hour...?
 
@RyanTernier true
I want to write some tests for this kind of things:
        public void Merge(TimeRange timeRange)
        {
            if(!IsOverLap(timeRange))
                throw new ArgumentException("Cannot merge timeranges that don't overlap","timeRange");
            if (End < timeRange.End)
                End = timeRange.End;
            if (timeRange.Start < Start)
                Start = timeRange.Start;
        }
 
What is TimeRange?
did you mean TimeSpan?
 
I suppose it's a DateTime and a TimeSpan?
 
10:34 PM
Either that or 2 dates.
 
It is a start time and an end time sme thhing as StartTime + TimeSpan
 
Which appears more likely.
 
private DateTime FromHour(int hour)
{
    return new DateTime(2012, 1, 1, hour, 0, 0);
}
that will do
 
or you could use 1970, which would make much more sense.
 
DateTime.MinValue
> The value of this constant is equivalent to 00:00:00.0000000, January 1, 0001.
 
10:37 PM
DateTime.MinValue.AddHours(hour);
 
the js room is boring. only Kendall to talk too... and who wants that
 
I write hh every fkn time why is that? Something my mother did?
 
@JohanLarsson Or didn't.
 
10:38 PM
did you not get enough hugs?
I can hug you... moves closer
would you like a hug?
 
I don't want to know
 
I would like you to hug me... in a parallel universe.
 
It turned me into a help vampire
 
@KendallFrey Hey, U probably don't remember, but u helped me with cursor.clip on Sunday and I just wanted to tell u it worked perfectly and my application is nearly done
Thanks!
 
Sweet!
 
10:41 PM
/O
 
I love passing on turdbits of info to other devs.
If there are more Asians than Caucasians, does that mean slitty eyes are normal and we all have huge eyes?
 
@KendallFrey thinks out of the box! way to go champ!
never thought of it like that.
 
fffffffuuuuuuuuuuuuuuuuuuuu
 
Who knew abstract art was so easy?
 
10:47 PM
@KendallFrey that image infringes on apple's patents.
rounded corners and all.
 
there were errors in the code
lots
can you bin it @KyleTrauberman?
 
bin what?
 
the pastebin I posted, it was crap
 
k
2 messages moved to recycle bin
donez0rs
wtf
in recycle bin, 10 hours ago, by Moorthy The Boss
user image
 
10:56 PM
Not sure if funny or...
hilarious!
 
Creepy
 
what a beautiful person! is it a dude or a miss?
 
How do I split code into blocks when posting on SO?
It merges all code into one huge block
 
try putting an html comment between
yup, it works
 
11:05 PM
code sample?
 
Or some text.
 
    foo

<!-- bar -->

    bar
the comment can probably be empty
 
Hey Zneak, do you know of a site where I can find a list of RISC and CISC instructions?
 
I have a feeling there is going to be downvotes on that one.
@zneak ty
 
@Billdr, RISC and CISC are just paradigms for instruction sets
you'll probably want to look for specific instruction sets
 
11:08 PM
Wow. I'm glad I'm paying so much for this higher education.
And I quote, "Your report should discuss at least two CISC instructions that are not supported by a RISC CPU."
 
wow
your teacher went full retard
 
Last week we had to compare "Intel Centrino Processors" to AMD Semprons.
 
that's very up-to-date
well if you're looking for easy "CISC instructions" that are not supported by "RISC CPUs", you can use push and pop
 
The last sempron was last year. There has never been a processor branded Centrino. That was a spec to reduce drain on batteries.
 
you're right
I was thinking about Celerons
 
11:11 PM
Which is what I decided to write about.
 
Not a processor.
 
that's...interesting
 
Yea. The text book for this class is awesome. Too bad we're not using it.
oh well. Thanks for the assist.
 
push and pop are easy answers to your question as I said above
you'll almost never see that in a risc cpu
and you have them on x86 cpus
 
11:14 PM
Quiz : What gets printed?
    [TestFixture]
    public class NewTest
    {
        [Test]
        public void WhatGetsPrinted()
        {
            A a = new B();
            a.Print();
        }
    }

    public class A
    {
        public void Print() { Console.WriteLine("A"); }
    }

    public class B : A
    {
        public new void Print(){ Console.WriteLine("B");}
    }
 
Looking them up at present.
 
it writes "A"
 
correct
 
Well, I would have been wrong.
 
because Print is non-virtual and merely shadowed by B
 
11:15 PM
... so it turns out the guy I've been waiting on all day to answer my ticket is on vacation... FML
 
@zneak Ok, I had to test it to see
 
I'm not sure what shadowing is useful for
it seems like the kind of feature C# has just because it can
 
It is primarily used for setting up wtf
 
lol
who would think you could waste a full afternoon trying to add a folder to a solution
 
but I think as long as you wrap it in @Travis famous anitpattern wrapper it is kool
#region AntiPattern
public new void Print() { Console.WriteLine("B"); }
#endregion AntiPattern
 
11:25 PM
Heh. I'm watching "Andromeda Strain" on netflix. There's a shot of these "highly trained electronics engineers" pawing at circuit boards, no grounding, nothing on their hands. They're smearing their fingers over ICs. Michael Crichton was a crank.
 
11:42 PM
@zneak do you know of a tool that does this?
 

« first day (744 days earlier)      last day (4205 days later) »