« first day (715 days earlier)      last day (3599 days later) » 

00:00
@popovitsj as a 30K user on CR.SE I can certify that this question would already have more votes on CR, and better and more detailed answers. And OP's question is "How can I avoid using this nested if-else chain?" ...which is exactly what CR.SE is all about: making OP's code better. — Mat's Mug 19 secs ago
Like, knock it off
Flagged for migration.
Oh, I just noticed the guy had an answer.
So?
Needs the rep, or something?
So, why isn't this working?
I suppose you want to ask me that, huh?
Just what have you done to break it? Lol
Nothing.
I deleted your installer and created my own.
I'm going to bring it in and look at what you do in your installer.
What bonus do I get if I get this working?
00:09
@Hosch250 If you get the x64 installer to "just work" like the x86 one does, I'll send you a RD mug and t-shirt!
I need to get the artwork done, I actually want to make RD mugs & tees... no joke :)
OK.
But seriously, what did you do?!
I just made my installer identical to yours, and it is in the CP, but Office doesn't see it.
Hmm, one thing that I dare not change.
Send a screenshot in a sec.
Our registries are different.
Hmm, fixed it.
I just needed to add the keys.
00:25
0
Q: A Virtual Piano

SirPythonI have created a virtual piano that turns the home row (excluding 'g' and 'h') and the top row (excluding 'y' and 'u') of the user's keyboard in a piano's keyboard. The home row is used for white keys and the top row is used for black keys. The keyboard's keys bind to piano's as shown below: ...

YES!!!
Got it to have the same values as you.
Now, I have a clue at what I should change!
That key is where office apps find VBE addins
OK, I didn't enter it.
Testing...
Mine worked flawlessly on my machine :/
Almost having a heart attack...
Mine failed even when my build worked.
Failed again :(
@Mat'sMug Do you have an AMD machine?
00:29
Intel inside
Funny.
Look what I found:
if $(ConfigurationName) == Release64 (
    Copy $(TargetDir)\NativeBinaries\amd64\git2-e0902fb.dll $(TargetDir)
)
That's trash I believe; the setup build knows to grab that dependency AFAICT
Probably leftovers from the various configuration attempts
Mmm.
What about this:
if $(ConfigurationName) == Debug64 (
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe $(TargetPath) /tlb
)
I deleted the other stuff, and it worked fine.
@Mat'sMug One question - what exactly does that regasm command do?
00:33
That one is supposed to register the debug build, but it somehow doesn't. I have to run it manually (I made a .bat file on my desktop for it)
Ok.
Does it enter a key in the registry or something?
It registers the assembly - creates a bunch of entries under the CLSID key and /tlb switch creates the type lib that exposes the RD COM API to VBA, so unit test code can use Rubberduck.AssertClass
OK, so where can I find those registry keys?
They're GUIDs - look for ProgId's in the code, they define the GUIDs (whatever you do don't change those!!)
So, could I do this manually by adding registry keys in the installer?
00:38
I tried that last release, didn't work
Oh, OK.
I think adding a custom action to run regasm.exe during setup could work... but if you ran it manually and it still didn't work then I have doubts
I haven't run it again.
Room owner hat now - we're kinda hijacking the 2nd monitor right now...
Gotta get the kids into bed, bbl
No one else is here...
00:40
I'm here.
I AM HERE AND I FEEL TOTALLY SUBDUED BY THIS OFFTOPIC BANTER
We can't let the room get frozen, you know.
INVASION!!!
@JeroenVannevel Lol
@JeroenVannevel It is awfully easy to subdue you.
The only times I'm not lurking is between 6am and 13pm
00:42
Monking.... non-lurkers.
@JeroenVannevel You have weird sleep hours
Monking
@Mat'sMug I have. Good thing my parents have become used to it already
Monking!
There's always life in the house -- my mom switches with me around 6am
cats love it
00:43
Thats when the good answers happen?
The bullying commences
Your mom answers on your account?
pesky canadians
I NEED AN ADULT
ARE YOU JEROEN'S MOM?
-1
Q: Coderbyte longest string

EmanonSo I am currently working on a problem set for Coderbyte and I cannot seem to figure out why my code is not returning any value at all. JS lint is not seeing any issues with, but when I run the code on repl.it I don't seem to be returning any value. I tried converting the value of the longest arr...

00:43
STOP BULLYING MY SON
Thought he was a girl, sorry, will stop....
Where's that room owner hat now?!
humpf... downside of being a mod.... I have to appear to be nicer....
You're not doing a very good job at that
Good thing I have such a thick skin
No ;-) Im not
OK, I have written a completely lock-free concurrent fixed-length queue in Java....
Took me much longer than it should have, but the results are... impressive.
Task BlockingQueue -> Lockd 2x2 19999900000: (Unit: MILLISECONDS)
  Count    :       50      Average  :  90.8013
  Fastest  :  73.0744      Slowest  : 108.1787
Task BlockingQueue -> Syncd 2x2 19999900000: (Unit: MILLISECONDS)
  Count    :       50      Average  : 184.7098
  Fastest  : 118.6704      Slowest  : 245.4649
Task BlockingQueue -> Atomd 2x2 19999900000: (Unit: MILLISECONDS)
  Count    :       50      Average  :  53.7627
  Fastest  :  44.3904      Slowest  :  79.4626
Task BlockingQueue -> Concd 2x2 19999900000: (Unit: MILLISECONDS)
20% faster than any of the cometitive versions.....
That's on 2 threads writing, 2 threads reading.
00:56
Shoot. I just realized that in some code that I recently posted, I forgot to take out a part of it. If there aren't any answers, can I quickly remove that part?
Yes
For 12 threads writing, 1 thread reading, it is much faster.....
Task BlockingQueue -> Lockd 12x1 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :   7.4066
  Fastest  :   4.0888      Slowest  :  12.9854
Task BlockingQueue -> Syncd 12x1 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :  14.0705
  Fastest  :   6.9707      Slowest  :  22.4337
Task BlockingQueue -> Atomd 12x1 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :   5.7643
  Fastest  :   2.9484      Slowest  :   8.9926
Task BlockingQueue -> Concd 12x1 71994000: (Unit: MILLISECONDS)
And for 1 thread writing, 12 threads reading, it is also faster ;-)
Task BlockingQueue -> Lockd 1x12 719400: (Unit: MILLISECONDS)
  Count    :       50      Average  :   1.3140
  Fastest  :   0.6415      Slowest  :  15.9841
Task BlockingQueue -> Syncd 1x12 719400: (Unit: MILLISECONDS)
  Count    :       50      Average  :   1.8970
  Fastest  :   1.0593      Slowest  :   3.7305
Task BlockingQueue -> Atomd 1x12 719400: (Unit: MILLISECONDS)
  Count    :       50      Average  :   0.9957
  Fastest  :   0.5808      Slowest  :   2.4077
Task BlockingQueue -> Concd 1x12 719400: (Unit: MILLISECONDS)
Only slightly faster there, 0.58 milliseconds to feed through 12,000 members through the queue
With a somewhat balanced 4 writers and 3 readers it comes in faster too....
Task BlockingQueue -> Lockd 4x3 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :   6.3283
  Fastest  :   3.6910      Slowest  :  11.5118
Task BlockingQueue -> Syncd 4x3 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :  19.8354
  Fastest  :   8.6426      Slowest  :  32.4413
Task BlockingQueue -> Atomd 4x3 71994000: (Unit: MILLISECONDS)
  Count    :       50      Average  :   6.0728
  Fastest  :   2.8758      Slowest  :  10.6012
Task BlockingQueue -> Concd 4x3 71994000: (Unit: MILLISECONDS)
Bottom line, it is faster on all concurrencies I tested (excluding 1 writer, 1 reader - where it came in second place).
0
Q: Starting a Clojure Chess Engine

erturneIn my journey to learn Clojure I recently decided that I would like to write a chess engine, which is kind of funny because I don't really know chess either. ;-) My goals are to learn Clojure and chess, and write something that is fairly easy to understand. Currently I'm working on board repres...

what is the significance of "The 2nd Monitor" as a name for a discussion devoted to code review?
13
A: What should be the name of our main chatroom?

Mat's MugThe 2nd Monitor We all [hopefully - if not you're missing out!] work with at least two monitors. I noticed I keep the chat window open on my 2nd monitor [almost] all the time. Having a 2nd monitor is also quite handy during an actual peer review. I think it makes a perfectly suited name for our...

01:10
Right, I am beat.... 8 or so hours today removing paving stones and digging trenches in clay... in the sun, etc. I'm done.. .till morning. bye
@rolfl 'night!
Hi @blaizor! Welcome to our little chatroom!
The war is over, @rolfl. You've got Vimy Ridge.
I can expand this answer if you want to know what you're doing wrong and right in your own code - @blaizor yes, that is what makes CR answers so good! You're getting my upvote if you go with that edit.
01:24
yeah thats what i thought. it was 8:00am here in australia and i dont like waking up
im all awake now. ready to go. ready to expand
That is disgustingly early
On a Sunday, above all
its sunday
i was scheduled to get out of bed at 2pm
#LifeWithoutKids
damn I miss sleeping all morning
01:26
im in year 9. haha #LifeWithoutWork
01:55
ACTIVITY
Hello.
hello
Hello.
hello
@blaizor congratulations, you killed your first zombie!
36
A: What's a Zombie? And what are the many other memes of Code Review?

Simon André ForsbergMeme: Zombies Originator: retailcoder (lol.upvote or Mat'sMug) Cultural Height: During The Mission Background: In a (successful) attempt to motivate the community in reducing the number of unanswered questions, a Call of Duty was made in which every unanswered question (no upvoted answers) is ...

(we need a badge for that)
02:18
when?
when @Legato upvoted your answer from the first post review queue ;)
ah
ok
well im almost done writing the expansion, so look back at it soon ;)
i earned the revival badge
that's my upvote ^^
damn
damn?
02:24
well if it wasn't yours, id have 3 upvotes when i updated my answer
because there'd be legato, you, and upvoter #2
lol
no worries. this isn't SO - here we vote!
3
^^ somebody star that
:)
@blaizor There you go.
thanks
is there such thing as a code review that is too long?
30K is the maximum length.
Are you asking for a code review? Then your question (provided your code works) can be better asked on codereview.Stackexchange.com and it is too broad for Stack Overflow. — Martijn Pieters just now
02:34
^^ this guy was my 1st pick in the SO moderator elections!
@Mat'sMug Mine too, I think.
I picked him, anyway.
Yep, first pick.
ok. not over the 30K limit
3
A: Batch file command looper

blaizorIf you want an easy way to loop an arbitrary command several times... set /a loop=100 for /L %%P in (1,1,%loop%) do ( echo Looping for one hundred times ) The first line is obvious. The second line is a bit harder - for /L specifies that for every number in a certain set, the batch file w...

^^ and that's how you pimp
now I wish I could upvote it again!
very, very nice answer!
if only there were more questions about the two languages ive known since i was 6 and 10 respectively - batch and as3
I didn't know what a computer looked like when I was 6, and I only knew what a desktop from at least XP's era looked like at 10.
Oh wait, we had an ancient desktop I almost always forget about when I was about 6.
02:43
well being born in the era of machines is playing out as an advantage for me
The only thing I remember was my dad would crash it playing Oregon Trail, and I liked playing some fish game.
i know heaps of different shell languages, as2, as3, java, xml and some HTML5 (along with CSS3 of course)
what should i learn next?
if you're into shell languages, try PowerShell - and then you have a foot in the .net world
I learned HTML5/CSS in the U.
I know a bit of Java.
I wrote my app in C#/XAML.
I think my earliest memory is Y2K.
i learnt all the shell languages i know when i was 6-8, i said it to emphasise that im done with them
02:47
lol
I'm biased, but I'd say go with C#
eh
why?
<sings>Because we looove it, we looooove it </sings>
and honestly VS community has been unpacking and installing itself on my laptop for weeks now, and it wont close
task manager isnt helping
Remember that song from White Christmas with Bing Crosby?
What?!
I use VS Pro because I'm a student.
its actually gone, but i can still see the logo on my taskbar
like, it isnt pinned, it looks like its meant to be open but it isnt
02:50
Weird.
Did you reboot to clean it out?
nah im just gonna leave it
i cbf rebooting
I rarely reboot, usually once/twice a month to install updates.
what experience does learning c# offer me that puts ahead of learning other things?
Depends on what you want to do, need to do, and like doing.
I need to get into software development because I don't like ITM.
I enjoy writing real native Windows apps.
ah. i had to tear down my system32 folder to remove all traces of windows update because it kept rebooting, then deciding that the update couldnt be done, then unloading all the update packages which takes 2-3 hours, then starting normally again
02:53
I want to write Universal apps for my job.
i dont like doing anything except learning more languages :D
Sounds like your system "has serious problems.."
Well, learn C# then, just to learn it!
but why?
i could learn php instead
or ruby
or assembly
seems the only thing people do with php is ask questions
C# will take longer.
02:56
what does C# do?
C# isn't just a language - it's the .NET framework - learn .NET and then you can learn VB.NET (don't), F#, PowerShell, and any other .NET language you like
C# does everything you want it to do
VC++
i want it to code itself
will it do that for me?
Almost.
haha
02:57
Most of the .NET framework is C#.
like XML in android studio
codes itself
The basic C# language is written on C++, but beyond that, it can code itself.
I'm writing a COM add-in for the VBA IDE, ...in C#
If you wanted, you could probably write C# with C# with C++...
@Hosch250 the latest C# compiler is written in ...C#
02:58
Not surprisingly.
thats just stupid
O RLY?
better than LOLCODE

« first day (715 days earlier)      last day (3599 days later) »