« first day (1054 days earlier)      last day (2966 days later) » 

4:00 PM
negative
I'll be happy to do it myself; it involves copy-pasting revision 2 of SO over to CR
 
and that's just sorting out the question itself - what of the answers?
 
they will match
 
fine then
 
except for @Justin's answer
(obviously)
 
0
Q: Refactor Linq Query

HarryI am trying to cut this linq down var sys = db.tlkpSystems .Where(a => db.tlkpSettings.Where(e => e.Hidden < 3) .Select(o => o.System) .ToList().Contains(a.System)) //cannot get this part in? .OrderBy(a => a.SystemName).ToList(); foreach (var item in sys) model.Add(new SettingSyste...

 
4:03 PM
I'll be stripping "Here's the code" and "thanks", though
hmmh
> // And here on, an ActionListener for e.g. a button...
gives you a dangerously-close-to-example-code question
but the question was like that ANYWAY
it's a GUI with a textfield (that is further left alone/unused) and button "test" on it
 
♪ let it go ♪
 
@MelanciaUK This question does not belong there codereview.stackexchange.com/questions/123671/…Harry 24 secs ago
 
;-)
 
possible answer invalidation by Malachi on question by Bla Bla Bla: codereview.stackexchange.com/posts/123648/revisions
possible answer invalidation by Pimgd on question by learningJava123: codereview.stackexchange.com/posts/123480/revisions
@MelanciaUK Please read a guide to CR for SO users before making further recommendations to sites you don't even have a profile for. — Mat's Mug 1 min ago
 
1
Q: Scrape HTML into another file

user101032I have written a program to read HTML file, find particular text, write text from that particular text to next particular text in a newly opened file. I am interested in code review. I am very new PHP. Your advice will be really helpful. <?php $FILE = "testing.html"; $count = 0; $directoryName...

 
4:14 PM
@Mafii Code Review deals with code that works as intended. This code clearly doesn't work as intended. Please refrain from recommending sites you don't have a user profile for and/or aren't familiar with. — Mat's Mug 25 secs ago
 
I hope I come off as irritated as I actually am
@Duga thanks @Pimgd
 
I don't like it, still looks off-topic ("and here Actionlistener for e.g. a button") and we have justins answer floating there
 
@Mat'sMug You do ... :)
 
@Justin I'm sorry about your answer. If it can be salvaged, feel free to edit it - if it can't, it's probably best to remove it. I've upvoted another one of your answers to compensate for the lost upvote in that case ;-)
 
reputation smuggling!?
 
4:25 PM
I'd rather think of it as fair compensation for wasting an hour over an answer that's now moot because the question was a chameleon
 
sounds like fair trade smuggling /s
 
@DuaneForrester Hide ya kids, hide ya wife cause I'm everywhere. But for real I live in the internet Hbu? what zipcode u in?
2
Goddamn this twitter bot
CC @AlienHerbNite
 
@Mat'sMug unfortunately, edit history isn't migrated :(
@Mat'sMug two different timelines. there's one for mods too
 
yeah.. that's a shame PITA
@SimonForsberg oh
#ImBlindAfterAll
3
 
@Mat'sMug @Pimgd I think our rev1 is SO's rev 6 or something :(
I was not aware that @Justin had made an answer, which was directed at another revision.
 
4:36 PM
happened only about an hour ago
 
In retrospect, the post should probably not have been migrated in the first place, because of the answer invalidations. I was not aware of the invalidations when I approved it.
WTF
Revision 4 should have been rolled back
yesterday, by Duga
possible answer invalidation by learningJava123 on question by learningJava123: http://codereview.stackexchange.com/posts/123480/revisions
No one acted on that ^^
And @Jamal shouldn't have made that edit, to a version which were already invalidating things.
 
bottom line, everybody F'd it up
5
 
I want a nuke from orbit button for these kinds of situations
ehh? What question? It never existed
 
user image
6
How is it going guys anyway? I've been quite quiet today
 
4:43 PM
So the thing is, we didn't rollback far enough and the answers didn't make sense, so we rollbacked some more. This because another reviewer wanted to review your code but found that his answer completely didn't match with the other answers. — Pimgd 29 mins ago
Ugh.
 
1
A: Beginner's Calculator code

Nilzone-Alright - A couple of things: Your calcService is redundant. The mathService is just fine. Try to avoid $scope and just use controller as. This link explains it very well. You have two variables which is either true of false, depending on what function is called. make a small utility function t...

good answer ▲▲▲
 
@Malachi He get an upvote just for saying "avoid $scope and use controller as"
 
I'm filing this one under "Old Messy Questions"
16
Q: Old messy questions

Simon ForsbergConsidering the somewhat-still-new guidelines we have for editing own question to include revised code, how should we handle old questions which violates this guideline and are, more or less, a mess? Should we flag for moderator attention? (Not sure what would a moderator could do that others ca...

 
@DanPantry right?!
 
@Mat'sMug @Pimgd see @rolfl's answer to the above meta ^^
 
4:44 PM
@Malachi But I don't understand the init recommendation.
 
I think that I should really throw that into a create table function, so that it can be called only when the user clicks the button. that way it isn't rendered until it's rendered...
 
I'm not sure keeping it at the current revision is the best, but well... there are only bad options here.
Or in fact, there is one good option: TTQW.
 
run away, flee, abandon question
 
lol
@SimonForsberg sounds like the best thing to do
Matches the "messy" criteria anyway
 
0
Q: A c# char Trie and scanner in one

MarcusThis is from the Resin codebase. It is fast at lookup but I could use some help making it faster at build up. Loaded with the words from 1M english wikipedia docs it looks up pretty much any node and its descendants within the millisecond. Buildup takes 3000 ms. using System; using System.Collec...

 
5:05 PM
possible answer invalidation by Menno Gouw on question by Menno Gouw: codereview.stackexchange.com/posts/123660/revisions
 
@Duga handled
 
5:29 PM
@PinCrash You forgot one thing:
Please do not update the code in your question to incorporate feedback from answers, doing so goes against the Question + Answer style of Code Review. This is not a forum where you should keep the most updated version in your question. Please see what you may and may not do after receiving answers. — Simon Forsberg ♦ 12 secs ago
@Mat'sMug yeah, or we make a new meta for it...
I'm fine with just letting it slide and hoping it won't happen again
 
me too
@Justin what do you think?
 
Of the resolution? I think it's good
I was able to salvage the major contribution of my answer (that is, what was different from the other answers)
 
great!
 
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.comJB Nizet 45 secs ago
 
So Duga is a chatbot? One of the best I've seen if that's the case
8
 
5:33 PM
the best :)
 
If your code is not working, you must post the code. If your code is working, you should post the code to a new question on codereview.stackexchange.com. Either way, this question is useless without code. Please review the help center, especially the section in the tour about what makes a good, on topic question. — nexus_2006 50 secs ago
It should be on code review, but I'll add my two cents here. You should work out the product of all the numbers, and then make the new array by dividing this result by the each of the original numbers. That makes the process O(n), whereas your version is O(n^2). — Paul Boddington 54 secs ago
You should also try to review your question before posting it on codereview. The description is currently hard to read. You should try to space it out, and I think the algorithm description could be more formal (given an input integer array, it produces and output array where ...) — Aaron 32 secs ago
 
> Resolving identifier references is something I've spent pretty much an entire year refining the code for, and it's still not perfect (although it now resolves crazy ambiguous code you wouldn't even think is legal VBA) - doing that in plain VBA is suicidal at best.
0
A: vba Show references to other procedures

Mat's Mug DISCLAIMER: I wrote this part of the Rubberduck add-in myself, and I own and maintain the Rubberduck project. Download and install Rubberduck. Right-click the procedure name (from its declaration, or any of its usages) and select the "Find all references" command from the code pane contex...

 
http://www.commitstrip.com/en/2016/03/23/the-latest-innovation-from-the-media/
CommitStrip
The latest innovation from the media
CommitStrip
1458754919
9
 
@Justin And she's going to get even better!
 
LOL.
Either that or "I'll just stay off this site now."
I like how AdBlock has taken to blocking popups from sites asking their users to turn it off.
 
5:52 PM
@PinCrash ugh, now I also got a reply that it wasn't an invalidation after all.
What was the saying again... we need mods who can... read, was it?
I can't read deleted comments.
Or actually, I can... erhm...
 
THANK YOU, I really appreciate your contribution to the world by giving us The Rubberduck :), i was actually looking for something that beefs up the VBE and adds more functionalities to it. cheers — Ali_R4v3n 28 secs ago
#MakesMyDay
 
@Quill It's quite the riot.
I had a conversation with it that lasted well over 1 1/2 hours.
@EthanBierlein stop(); // Hammertime!
oh my god
 
LOL!!
 
I don't know what to say in reply.
 
@AlienHerbNite cleverbot.com - there you can spend some more hours
 
5:57 PM
@SimonForsberg Perhaps you could feed the output from one into the other. Wonder what the result would be
 
here's a considerably less advanced robot: i.imgur.com/AmTLXPO.webm
 
6:10 PM
0
Q: Shortest path problem in Scala

scaladevimport scala.annotation.tailrec import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf import org.apache.spark.rdd.RDD object ShortestPath { type Node = Tuple4[String, Array[String], String, Double] type Link = Tuple2[String, Double]...

0
Q: Rethinking binary to save space/chip ticks

thexivThis compiles without error or warning. To the obverse, once run it receives a stack overflow. It appears to move from main() to insert_leaf() and become hung up there. gdb is still foreign to me. Do I not have enough memory (4gigs), or is my code partially corrupted? It should only be making sho...

 
@CaptainObvious Broken code?
 
codereview.stackexchange.com — Andy 14 secs ago
 
@AlienHerbNite I'd say "it's 'STAHP' not 'Stop', whoever taught you that 'Stop' thing did it wrong"
 
0
Q: Error Javascript/SQL/Python

Ryan KingWhen I go into the browser, and Click on the link for complaint_new i receive this error. ERROR: module_start [complaint_new]: render: TypeError: Cannot read property 'length' of undefined from TypeError: Cannot read property 'length' of undefined at Function.n.extend.each (http://127.0.0.1:5000...

 
6:25 PM
@CaptainObvious eh?
 
poof, gone
 
@PinCrash Awful.
Although you can use Python in a server-side manner, in which case the combination of those 3 could work.
JavaScript client-side, Python server-side, MySQL for DB
 
possible answer invalidation by n1c9 on question by n1c9: codereview.stackexchange.com/posts/123612/revisions
 
@Duga Odd edit, rolled back.
 
declare @epiid int = '472256'
erhm.
 
6:36 PM
@Hosch250 Yes, nuke it.
@PinCrash Dynamic variables gone static? ^^
Or is it some sort of a default?
 
@PinCrash int gone a string?
 
Yeah, int-as-string I'm actually surprised it worked anyways
 
Hmmm, yes, some implicit casting going on perhaps.
@CaptainObvious Gone.
 
Next thing I know it'll parse 'NULL' into NULL :)
 
Please try :-)
 
6:42 PM
declare @test char(4);
set @test = 'NULL';
if @test is not null print 'not null';
--> not null
Guess it's not that smart dumb yet!
 
0
Q: My first try with oop in javascript

Marcin DoliwaI'm learning javascript by building simple site, usually I write some jquery code, but it was getting a little messy, so decided to try oop. Can you take a look into my code, is it ok? What should I fix, refactor? function Notifications() { this.btn = $('#dLabel'); this.box = $('#notificati...

0
Q: Learning nested for loops in Python with pig latin translator

ArchitektI've been trying to learn python for a bit now. I've taken a few courses, but I've found that I've been going about them wrong and had allowed them to "hold my hand" too much. I'm trying to build projects on my own and thought I would start off small. My third or so project was this Pig latin tra...

0
Q: Trouble loading font in Monogame

TheAII'm trying to load a font in Monogame, and I've downloaded the font I would like to use. It is a .ttf-file named Legacy.ttf. I get the unhandled exception stating: "Could not load Legacy asset as a non-content file!" I've placed the file in Content, and I've installed the font, but none of it h...

 
7:12 PM
@CaptainObvious free close votes
 
7:24 PM
Why do we have so many bots?
 
0
Q: Starting with Rust - whats the Rust-Way of doing this?

user101049fn limit_from_args(args: env::Args) -> i32 { let args: Vec<String> = args.collect(); if args.len() > 1 { match args[1].parse::<i32>() { Ok(i) => i + 1, Err(_) => 101, } } else { 101 } } I want to get the first argument as a number,...

0
Q: Using separate if conditions but dealing with the same variable

Patrick BardToday I saw this code at work. It seems very strange to me, and I thing there must be a cleaner way to do it. if (result == 0) { result = this.getModelId().compareTo(that.getModelId()); } if (result == 0) { result = this.getNumber() - that.getNumber(); } The cr...

0
Q: Minimum element in a sorted rotated array - Javascript

Software EngineerA sorted array [0,1,2,3,4,5] when rotated n times (3 times in this case) becomes [3,4,5,0,1,2], meaning elements in the front move to the end. The code below finds the minimum element in this array, which is the pivot point of rotation. function findminimum(a, start, end){ if(start>end || s...

 
@BernardMeurer Captain Obvious isn't a bot. It is a feed.
 
@Hosch250 But it 's a feed that outputs into the chat. The physics SE chat feed just pops up on top of the page
 
You can ignore the feed if you want.
 
I think if your own system is working, why not use it? It seems like a good use for Resque, but actually when I was considering this issue I decided to just roll my own implementation as well. See here. But to reiterate, this is a good use for Resque. — max pleaner 46 secs ago
 
7:30 PM
@BernardMeurer That's a room setting. In this room we prefer it posted into the feed, as opposed to the little ticker you've seen in other rooms. That's in large part because many of us work in moderating the site and it's easier to address specific posts that way (since you can "reply" and link the chat posts)
 
@PinCrash Aaaah, I see, now it does make more sense :)
 
because badges we like to keep CR clean :)
 
0
Q: different type of simple calculator

AytanOperands (arguments) can be only positive numbers. Anything else should be considered as incorrect input. Example Input: 1+2 3-6 10*7 9/4

 
i think this question is probably better for codereview.stackexchange.com ... but i'd say none of these are really an anti-pattern. It depends on what you're trying to do in the block. The third is the most idiomatic, but like you say there's no space for error handling. So if you need to handle errors, use one of the other two. — max pleaner 59 secs ago
This question belongs on CodeReview. — aschipfl 22 secs ago
@aschipfl "Need help to solve bugs" automatically makes it off-topic for Code Review. Please read A Guide to Code Review for Stack Overflow Users before making such referrals. — 200_success 13 secs ago
 
7:52 PM
Hello all!
 
hello @Edward
 
@Edward ohai
I bet he likes assembly
 
Man, I just worked out why our package ballooned in size
Turns out the new kendo libraries, you can select spceific ones - like kendo.grid
which seems great and modular
 
@BernardMeurer :) Afraid so!
 
until you see what kendo.grid relies on..
define('kendo.grid', [
    'kendo.data',
    'kendo.columnsorter',
    'kendo.editable',
    'kendo.window',
    'kendo.filtermenu',
    'kendo.columnmenu',
    'kendo.groupable',
    'kendo.pager',
    'kendo.selectable',
    'kendo.sortable',
    'kendo.reorderable',
    'kendo.resizable',
    'kendo.mobile.actionsheet',
    'kendo.mobile.pane',
    'kendo.ooxml',
    'kendo.excel',
    'kendo.progressbar',
    'kendo.pdf'
], f);
 
7:54 PM
@Edward Come here, give me a hug
 
only nearly every widget that I don't want to use...
 
the hell's a kendo
 
Kendo is a UI library that we use in work
 
@BernardMeurer The first step is admitting you have a problem...
"Hi, my name is Edward and ... I'm an assembly language programmer."
2
 
@Edward I never admit the problem, I just force push to main and hide from my coworkers
 
7:55 PM
LOL.
 
You sound like you need to join an 0x0C step program.
 
If they ask it was their commit who broke it :p
ARM assembly has been giving me nightmares for a while now
 
It's always somebody else's commit that broke it. :)
@BernardMeurer ARM's a pretty clean architecture compared to many I've worked with. Any particular problem?
 
@Edward Not really, I just have a love-hate relationship with low level stuff
And also I'm working on some really legacy stuff
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Finding the minimum from a sorted rotated array with duplicates
 
8:00 PM
Ah, legacy stuff is often fun.
Nothing better than diving into somebody else's 3000 lines of uncommented assembly.
Or maybe just one comment that says, "don't remove this instruction or timing will break."
 
@DanPantry holy carp
 
@PinCrash It gets worse, half of those dependencies aren't required (as the code, for example, checks for kendo.PDFMixin which is defined by kendo.pdf), it's just there's no way to specify an optional dependency in AMD syntax
I think the way around this is to manually set up IgnorePlugin in webpack, which sucks..
I mean, kendo.pdf alone is 4k lines of code that we are literally never going to use
 
Guessing they never thought of making a kendo-lite.grid eh?
 
@Edward I'm currently dealing with old, old, fortran stuff
 
No :(
 
8:06 PM
So many GOTOs
 
My condolences. With that kind of stuff, I usually start with unit tests... if there are units...
 
anyone has a clue how this can work?
1
Q: Is scoping broken in VBA?

Mat's MugSay you have this code in a module called Module1: Option Explicit Private Type TSomething Foo As Integer Bar As Integer End Type Public Something As TSomething In equivalent C# code if you made the Something field public, the code would no longer compile, because of inconsistent acc...

it's driving me nuts
 
yes
 
i don't know the answer, so have an updoot
 
8:12 PM
My guess is that COM doesn't actually care about the visibility of types
which is ....
 
oh my jesus christ
  new IgnorePlugin(/.*kendo\.pdf\.js$/),
 [172] ./libraries/kendo/kendo.pdf.js 175 kB {0} [built]
it's completely ignoring it....
want to swap @Mat'sMug? lol
 
hahaha
 
175kb of an OPTIONAL library that we don't even use
multiplied about ~20 times.. no wonder the main bundle went from 2mb to 13mb.
 
Maybe they were just using a little extra memory so it would be easy to trim later. "Look, I'm a hero!"
 
@Edward LOL
the amazing thing is the main "prebundled" file that contains Every module is somehow 5mb (and not minified)
 
8:16 PM
@Mat'sMug That seems just like how Java works.
 
I've seen things like that. Best one was two different encryption libraries linked because the programmers seemed to think that all crypto was magic and should NEVER BE TOUCHED.
 
class Yadayada {

private static class TSomething {
}

public static TSomething something;

}
^^ perfectly legal, just like VBA
 
missing a brace somewhere
 
Me? No.
 
just whacky indentation
 
8:18 PM
oh .. ^^
 
this is why indentation is important
 
to keep Mugs from getting confused?
 
@Mat'sMug I keep some spares in a drawer. Take as many as you need: }}}}}}}}
4
 
@SimonForsberg so.. why/how is it legal in Java?
@SimonForsberg semicolon - hide & seek champion since 1978
 
@Mat'sMug I'm not sure. I'm not able to quote the JLS just like that.
 
  // We don't ever use these files. Note that these are request regexps and not file regexps,
  // which means that they should match the request from AMD rather than the file path.
  new IgnorePlugin(/.*kendo\.pdf$/),
I worked it out. Webpack javascript sometimes just doesn't make any sense.
 
If you want stuff to make sense, you're in the wrong business.
 
@SimonForsberg there you have it, C# wins :)
goes and asks "Is scoping broken in Java?"
 
We've been getting some more complex and interesting questions lately in my opinion.
It's nice to see.
I've got four or five tagged to review when I get some time.
 
8:45 PM
Huh. TIL SQL has bitwise operators
 
That should be on a Valentines Day card.
 
0
Q: Circular Buffer in C - Follow Up

HericksonThis is a follow up to this post I uploaded a few days back on my alternative account about a circular buffer in C. I'm confident that I fixed most of the warnings and even added an iterator. circularBuffer.h #ifndef CIRCULAR_BUFFER_H #define CIRCULAR_BUFFER_H #include <stddef.h> // max_ali...

0
Q: What's a better way of having this scala method not blow up on an Error?

Aslan VaroquaI feel like this feels too much like Java Code any better way to do this without the try catch block? def productShareAnalytics(notif:Notification, reqInfo:RequestInfo): Unit = { try { logActivity(product_shared, Some(LoggedInAccount(AccountId(notif.emails.get.to._id))), notif.produc...

 
9:02 PM
I fail to see how this adds any additional value not given by existing answers. — Hosch250 20 secs ago
What should I do about that? Ignore it?
 
0
Q: XCTestCase#waitFalseExpectationUntilTimeout implementation

Smac89I am working on an iOS project and I'm in charge of testing most parts of it. As I write some tests, I often have the need to wait for an asynchronous method to finish, and then test that something did not happen. Swift has some nifty methods for testing these sort of things; the ones I use the ...

 
It just doesn't make much sense to try to map Visual Basic behavior onto C#. VB is a "make it work if you can" language, C# is hard-ass. — Hans Passant 36 secs ago
I love this guy
I take it that Java is a "make it work if you can" language too
@HansPassant so, VB (and Java?) basically doesn't care about the Private access modifier as far as using a type goes - and happily lets you "leak" private types to an interface, even though the client code doesn't know about the type involved, yet it does know enough to use it, but isn't allowed to declare variables of that type... but runtime will happily dump it into a Variant... I need a drink. — Mat's Mug 6 secs ago
 
If you have working code and you are looking to make it more efficient or have it reviewed, then you should go to Code-Review and read the how to ask to determine how to pose your question there. Similar to the rules on SO, you will most certainly need to show your code there as well. — idjaw 11 secs ago
 
9:38 PM
-1
Q: Code feels too much like Java.

Aslan VaroquaThis is code that handles pushing data to an analytics api. logActivity is a method that uses Dispatch to POST the data to this api. I am worried that an exception could occur and that is why I wrapped the methods in a Try/Catch block. However, this feels very Javaesque. Do I even need the Try/Ca...

posted on March 23, 2016 by nmm

hope you are all having a nice day i need help in writing a code for singly linked list in java which contain one method only for insert weather add first or last or at position based on the position that pass to method as a parameter using if statement . THANK YOU IN ADVANCE ;}

 
@CaptainObvious lol, fixed
 
Running some Roslyn tests in debug mode. Sure takes a long time.
I've been running it for 30 minutes now, and it still hasn't hit my breakpoint.
 
What's worse is when it finally does hit your breakpoint and you accidentally hit "continue" instead of "step"!
 
LOL.
I actually don't use Step a whole lot.
 
I do for some things, like embedded systems where there isn't any way to do a printf
 
9:46 PM
Yeah. I mostly put a breakpoint on each critical statement (like, one in each if/else to determine the execution path) and analyze the data at the point something goes wrong.
 
That's also a good technique. It depends on what I'm debugging and why.
 
Hmm. Why isn't my computer running at full power anymore?
Still not done with the tests. Maybe something got too hot (I doubt it).
 
What is your question? This seems to be more relevant to Code Review: codereview.stackexchange.comDispersia 12 secs ago
 
Huh, the test runner isn't using the CPU anymore.
 
@Hosch250 Not using the CPU any more? Wow, that's an efficient algorithm!
 
9:52 PM
It isn't on a breakpoint or waiting for my input either.
 
Sounds like what happens when the code asks for a system resource (e.g. a mutex) that is never granted.
It's very efficiently doing nothing.
 
Hmm. A project of unit tests shouldn't be doing this.
@Edward Inefficiently, you mean, since it just wasted an hour of my time?
 
You guys might be interested in this room: chat.stackexchange.com/rooms/22119/se-chess
 
That's a site room though, I thought about it but figured this would be more appropriate
TTQW
 
10:06 PM
Yeah, likely for the migration. They can go there if they are interested, though.
 
0
Q: Java 8 Stream of recursive code

ericbnI want to write a class that returns a Stream of permutations of an int[]. public class Permutations { public static Stream<int[]> of(int[] array) { return permute(array, array.length); } public static Stream<int[]> permute(int[] array, int n) { if (n == 1) { ...

that seems like a question which would fit on CR right?
 
looks legit
 
@enderland I'd agree. Even better if there were a bit more description of the purpose and perhaps some driver code to show how it's used.
By the way, thanks for asking!
 
I flagged it there
@Edward hah this is what happens when you know too many chat rooms for too many sites and you have too many accounts
 
@enderland :D
 
10:24 PM
@Mat'sMug you might want to ping certain folks about that
 
I flagged the post :)
 
wooo flag weight!
 
the whiteboard seems empty
 
here's a fun interview question for you guys
Told two girls to add me on whatsapp. One of them did so far but the picture is her doing a handstand with her face away from the camera
how do I find out which one it is
additional constraint: you should not upset any of the girls
purely theoretical
 
Do a bit of Facebook searching.
 
10:36 PM
'abby' and 'paulina' are too broad when there's no common friends
 
Look up their names and see what their hairstyle/haircolor is.
Seriously, I wouldn't be dating anyone when I only knew their first name :P
 
@Hosch250 Ya gotta start somewhere.
 
If you can, I would wait a couple hours like I was away from my computer. See if the other adds you later.
@Edward At that point, we'd be acquaintances.
Gosh, though, is testing Roslyn hard. You did a good job on RoslynTester, @JeroenVannevel.
 
eh, I mostly copied their existing stuff and changed it a bit
VSDiagnostics will get me this job in London though
 
Cool.
 
10:39 PM
You can't imagine the way their eyes lit up when I told them about the analyzer that checks if string.Format() calls have an invalid format
I had interviews with them from 14:30 until 18:00 and it's not over yet
 
I'm adjusting the Switch one for Roslyn.
 
I have an interview with the VP of Tech and the CEO once they all agree they like me so far -- probably in a few days
 
They actually invited me to on my CR post.
@JeroenVannevel Awesome.
 
0
Q: Word Wrapping and Boxing

BrainFRZThis was an experiment to take any text and wrap it to a given number of columns. It also wraps the text in just one box, lets you box multiple blocks of text, and also lets you limit the number of boxes per line. The main paragraph tested was one that I found on Yahoo that I thought was really f...

 
@JeroenVannevel It's a good sign. If they say "yes", there's probably nobody in a position to overrule.
 
10:42 PM
@JeroenVannevel Guess how Roslyn implements their analyzers?
They have an analyzer base with a couple of abstract methods for the language-specific calculations.
Then, they implement the base in the C#/VB.NET analyzers.
 
@Edward oh yeah, they're the last line of defense before I overtake them with awesomeness. I've already been vetted by the recruiter, senior devs, junior devs and the VP of Product
 
@JeroenVannevel Sounds very promising. Good luck!
 
cheers!
@Hosch250 oh yeah, I noticed something like that. I've been thinking about going that route as well once we move some analyzers together
 
Gosh, I don't know what to do at this point.
My tests are failing. I spent an hour trying to debug them, only to have the thing shut down.
 
I'll review some PRs tonight -- looks like I'm staying in anyway
 
10:45 PM
I tried installing the generated VSIX, but I either got the wrong one, or it isn't picking anything up.
 
hmm
why do you install the vsix?
Are you sure you're putting breakpoints in the right places?
 
I wanted to test the analyzer in the real world because I can't get the tests to work.
 
hold on, let's move this to VSD
 
Yes, I had breakpoints on the first brace of both the tests and the analzyer/code fix methods.
Neither of us are room owners here, but we can continue there.
 
Anyway, regarding the interview: so glad I know some basic CS stuff. There was a question saying "you have an int[] initialized with values 1..99, ordered but one value is missing. How do you find out which?"
binary-ish search bitcheeees
also had to design a system at high level that they thought off recently. Turns out I came up with exactly the same solution as they did
 
10:50 PM
@JeroenVannevel Tell the intern to do it?
 
Yeah that was the O(n) solution
 
0
Q: Qt image downloader class

jacwahI'm a novice regarding C++ and Qt though I have knowledge of C. This class is used in my project to get an image from a web service. If a new call to StartDownload is made before the previous has finished, the old one can be discarded as it won't be needed any more. This is because a new request...

 
@JeroenVannevel Actually, it's a technically an O(1) solution because we don't pay the intern.
 
They gave me this situation sketch for the above-mentioned design where a bouncer on a beach in bali (without internet connection) has to verify barcodes of tickets
problem: how do you do it
so I was asked how to solve it
 
Do you get to specify what's encoded in the bar code?
 
10:54 PM
Most barcodes contain a checksum.
 
I didn't go that route but I suppose that would be a valid option as well
 
That's where I would start--verify the checksum.
 
I went with the encryption approach where barcodes are signed server side
 
Exactly what I'd do.
 
Probably harder to break than a checksum.
 
10:55 PM
With a local database to detect duplicates.
 
but I got confused and told them to store the private key on the bouncer's mobile instead of the public key (you don't need to decrypt after all -- only verify it's correct)
so they went deeper into that and asked "what if the bouncer started printing his own tickets?"
"euh.. I'd hire stupid bouncers, probably"
It got me laughs anyway
But I managed to save it and they knew it was mostly a brain fart so all was good
 
Bouncer could make it easier and simply not check.
 
good point
I did include the local duplicate database earlier in the process though
 
Not all hacks are technical. Sometimes all it takes is a very low cut bikini.
 
On the other hand, you could have the tickets printed on that special paper like checks are.
 
10:57 PM
you'd do well in the interview
@Edward I've found that not to be very effective in my case
 
We all have our weaknesses. Mine's kryptonite. (oops!)
 
The stupid bartender would just have to hold the ticket right and see the embedded symbol or code.
 

« first day (1054 days earlier)      last day (2966 days later) »