« first day (417 days earlier)      last day (3592 days later) » 
00:00 - 16:0016:00 - 00:00

12:15 AM
0
Q: Error handling within functions

suntropI am wondering how to handle this error. A cron calls this function regularly (every 10 minutes): userNotifications() function userNotifications() { $dispatch = $this->dispatchMails(); $news->setDispatched(); $this->sendReport(); } function dispatchMails() { // This method will look up...

 
12:45 AM
0
Q: Encapsulation in the superclass

drewmoreI'm contemplating domain modeling in spring-data-neo4j, and, although in normal circumstances I would vomit at the thought of keeping a reference to a DAO in a domain entity class, several quirks in my use-case have repeatedly tempted me to do so. I'm toying with the idea of doing something lik...

 
1:32 AM
Apparently my new apartment complex leases out water billing to some third party company that charges me a $5 admin fee to forward my bill to me. That's some freaking crookery if every I've seen it.
 
1:54 AM
@Corbin i assumed it was just a troll, but i've been known to give people too much credit...
 
@DaggNabbit I don't know. I can completely see it being real, but the possibility of it being fake was one of my first thoughts too. Given they made no effort to fan the flames after posting it, I'm leaning towards it being real. Then again, I didn't see what happened before it got locked and protected, so who knows.
 
2:21 AM
0
Q: Drawing multiple Images

Lukas Häringim trying to draw a lot of fields image for my world generation, all is perfect 64 fps, but if i begin to draw all the time the grass it became laggy, like 59 fps (something that musn't happen! :( ), i need help and some tricks to draw things in c# with more optimization :) List

 
2:49 AM
Just learned some to write a review.
 
0
Q: Wondering why button is not executing code

ZennesonI made a submit panel in the nav to submit files to a website I am currently working on. Dopeyemine.com For some reason the "Submit" button in the submit panel is not working. Please review the source code and help me figure out what the problem was. Thank you. $("#submitform_btn").click(funct...

 
Any opinions on vs. ?
 
 
1 hour later…
4:07 AM
0
Q: JavaScript eBay Listing Generator

MyCompassSpinsI'm still pretty new at JS and, frankly, this is probably a little above my skill level. But here's my attempt at a script that will take user input and produce a custom interactive eBay listing. This is definitely still in progress, but I wanted to post the code I have since I'm sure there will...

 
4:51 AM
Hey guys
 
5:46 AM
0
Q: Should I null coalesce EventArgs?

Kyle BaranWhen I implement events, it usually looks something like this: public class SomeClass { // The main property and its backing variable private bool _enabled; public bool Enabled { get { return _enabled; } set { if (value != _enabled) // A defin...

0
Q: Rewriting Dynamic URL with .htaccess not working

PriyankaI am working on a ecommerce website and i am trying to make its url preety. So i enabled apache configuration ,then created a .htaccess file but my usl is stil the same. I am not able to figure out where am i goin gwrong . can any one help ?? If my url is like: http://www.public_html/products.php...

 
6:04 AM
Monking
 
6:17 AM
Monking
 
6:40 AM
I should workout more
 
-1
Q: Why isn't my PHP working? (mysql_fetch_array() expects parameter 1 to be resource)

MagnusWhy isn't this code working? I've already checked by echoing $salt and it echos out the salt on the page, so I know it's nothing to do with the salt. <?php session_start(); include 'db.php'; if (!isset($_SESSION['salt'])) { header('Location:index.php'); exit; } $salt = $_SES...

 
Hmm... our organization id's only range up to 10.000 or 100.000 and I never expect them to be longer, should I use an int or long however? any opinions?
Similar question for storing data which I believe to be integers, but I will not have to work with the numbers themselves, best to store those as String?
 
6:55 AM
max length of 32 bit int is over 2 mil, 4 mil for unsigned... should be plenty
if you don't need to do math or numeric sorting save it as a string (for the second thing)
also isnt an int32 the same as a long?
anyway 16 bits sounds too short, go for 32 unsigned
oops, i meant 2 billion / 4 billion
not million
 
Using Java here, no need to worry :P
int is 2^31 - 1
as I'm not expecting negative account numbers
 
signed int is 2^31-1, unsigned is 2^32-1 right
really it doesn't matter if you don't have billions of employees
 
I don't think there are even that many companies in the world?
As that's where my stuff is about
 
well hopefully you are not dealing with anywhere close to 2 billion companies
 
@skiwi IMO you should never store numbers as strings if you can do it differently
 
7:05 AM
@Vogel612 what about phone numbers or zip codes
those should always be strings, but people store them as numbers
if it's not a numeric thing, you never know what's going to happen
 
@DaggNabbit well they are not really numbers. In fact most valid phone numbers contain stuff like +() and that makes them Strings.
 
we had an application once that had promo codes that started off as all digits, but changed to have letters later
 
zipCodes in germany are numeric, but as soon as you get a single letter or a leading zero, you have to store it as string.
 
i think if you don't need math or numeric sorting it's a good rule of thumb to just use strings
unless it's some internal thing that only matters to devs like a PK in a database, then use whatever you want
 
It's just a Java view by the way, of data that comes out of a web service as 'text' (strings)
This doesn't have to do with database storage
 
7:10 AM
i'm just saying don't store it as a numeric type just because you can, only store it as a numeric type if you need to
otherwise store it as a string
 
It's what I am thinking as well, as I simply have no control over the data
 
@skiwi well, if it isn't even a "number", but just some data you need to display, then you could ofc leave it as String. all else equal I'd still recommend number types over Strings...
 
I'm waiting till the day that two classes end up having the same fully qualified name, same serial version id, the same arguments, yet different behaviour ;-)
 
7:28 AM
@Vogel612 i think the issue is it's coming from an external source and it's not really clear whether it's "really a number" or just a string of digits. In cases where you can't be sure, string is the way to go. Of course if it's clear that something is really a number, store it as a number... you may need to sort it
 
I do store the organizationId as int for example
That comes from a database I suppose, if it's not an integer... might as well fail before messing things up
 
yeah that's most likely a PK in a database table
 
@DaggNabbit @DaggNabbit exactly ;)
yaaaay I just broke the chat...
 
lol!
 
7:41 AM
It's finally time for me to go to bed. I'll finish removing the tag from some of the questions, unless someone is willing to do that instead.
 
0
Q: Updating MySQL with shuffled numbers between 1 and 50

Govind Singh NagarkotiI need to assign a number to each userId. I think this is too much of a query for updating. Is it possible to reduce the number of queries, or is it okay? def newRanking(groupId: String) = { DB.withConnection { implicit con => var rank: List[Int] = util.Random.shuffle(List(1, 2, 3, 4...

 
8:32 AM
0
Q: Genetic Algorithm in Python

f.rodriguesMy first try at GA. I'm a new programmer, so any help is advised. Preferably to make it faster, avoid heavy memory usage and so on. #! /usr/bin/env python """ This module is a frame work for a Genetic Algorithm. :param genePool: See this documentation for how to use this module.. :...

 
@Jamal I could use some edits either way ;)
someone know the current status of our blog?
 
Finally; 250 bounty on my question
not cool that you have to wait 2 days
 
8:47 AM
Some question here incoming once I have time
busy busy
 
@JeroenVannevel lol @ the answer
 
Some pretty heavy homework people have lately
 
0
Q: Scan directory, get subfolder names, find an xml file in the subdirectorys, move xml data into variables

CodeXI am trying a very simple method of getting the theme information via a theme.xml within each theme folder. What it should do: Scan the theme directory ../themes Return the names of all the theme folders (array) Use the name of the theme folder returned to create a link to search in file_exist...

 
9:04 AM
@JeroenVannevel Which one do you mean?
 
Your question grew
 
> please do your own homework , read the rules!
 
Yeah, 10K gonna wait
you wut... lol at that guy
 
Oh yeah, it's been evolving. 14 edits to it so far
 
9:06 AM
@JeroenVannevel linkey??
 
I'll read through it once I've got time
 
@Vogel612 5 lines above you ;)
 
aaaah....
well poor not even 2k on SO me...
can't see snarky answer with snarky responses ;)
 
Question up ;)
0
Q: Organization data class waiting for bugs to happen

skiwiContrary to the title, I'd like to have a full review on the following data class, which I believe I have made quite decently. The code is built on Java 8 and uses the Builder and Serialization Proxy pattern, it is used to store results from a web service call, and the only certainty I have is t...

first sentence fixed ;)
 
I think I saw a bit of the discussion earlier, but you shouldn't store an ID in an int if you're never going to calculate with it
like a house number
it'll only restrict you in the future
 
9:19 AM
I tend to disagree, but I have no arguments right now.
I think it should be quite standard... but just intuition
 
1
Q: Organization data class waiting for bugs to happen

skiwiContrary to the title, I believe I have made the following data class quite decently, and I'd like a thorough review on it. The code is built on Java 8 and uses the Builder and Serialization Proxy pattern, it is used to store results from a web service call, and the only certainty I have is that...

 
> When you use strict mode, your code is subject to a tighter set of restrictions than JavaScript normally allows. For example, you can't use a variable without declaring it, write to a read-only property
non-strict mode sounds like hell
 
@JeroenVannevel Correction: It is hell.
The world must really break down for those people who were using non-strict mode previously... I mean, they can't use a variable without declaring it anymore!
Noo @200_success, it was my attempt at a creative title :(
 
oh well it got a little longer...
0
A: Min and Max initialization

Vogel612As mentioned in a comment, I think your whole process smells. You should check for the Single Resposibility Principle (SRP). In essence the principle says: A method, class or package should only be responsible for exactly one thing. Methods do one task, classes represent one specific object a...

 
Thanks for the tags though
Now it'll never get hot :p
 
9:33 AM
The title was misleading, though, by your own admission. There is a line between creative and misleading.
 
I understand it's leaning too much towards the suggestion that there are bugs in the code and hence shouldn't be on CR
@Vogel612 Any reason variables and methods as package-private over private?
 
@skiwi wasn't sure wether I could call em from the static "factory method" if they are privatge.
and I didn't want to fire up eclipse just for that..
you got a point on the fields though,..
 
If stuff stays inside one class, then you can always privatize them
I myself don't like having builder patterns in the same class as the class it's building, so end up making the constructor package-private ;)
 
@skiwi well in this case I think a builder pattern is a nice way to enforce runCalculations() and to keep the clutter away from the caller.
5 to go for protection privilege
 
Too bad someone here is having a day off when I need him :p
 
9:41 AM
who r you talking about??
 
At work here, chances are low you know him
 
aww..
well you got "free time" now..
 
I've got loads of things to do :p
Hmm, sm
private static final Map<String, SelectionMethod> DESCRIPTION_MAPPING =
        Arrays.stream(SelectionMethod.values())
        .collect(Collectors.toMap(SelectionMethod::getDescription, sm -> sm));
It's weird, yet suitable
 
should you really use the description as MapKey?
 
9:48 AM
@Vogel612 Yeah
 
@SimonAndréForsberg Monking
 
monking @SimonAndréForsberg
public enum SelectionMethod {
    ;

    private static final Map<String, SelectionMethod> DESCRIPTION_MAPPING =
            Arrays.stream(SelectionMethod.values())
            .collect(Collectors.toMap(SelectionMethod::getDescription, sm -> sm));

    private final String description;

    private SelectionMethod(final String description) {
        this.description = Objects.requireNonNull(description, "description");
    }

    public String getDescription() {
        return description;
    }
 
@skiwi I imagine it being kinda impractical...
 
I really need to :)
Yeah, I know the enum constants are missing :P
 
I'd rather have something like a name, if you can't enum it. Description sounds like a longer string..
DESCRIPTION_MAPPING.get("Some overly long description on how the heck stuff works"); ;)
 
9:50 AM
Well
COC_VAT_IBAN("(COC, VAT, IBAN)"),
COC_VAT_BANK("(COC, VAT, Bank)"),
COC_IBAN("(COC, IBAN)"),
This are examples
It's not exactly a name, but hm
Description may be over the top as well
In some question I've encountered:
"It is also important that your solution highlights your knowledge of and approach to Agile software development."
What does that mean exactly?
 
I have to say that I really like the answers of VoiceOfUnreason. At least on my questions
6
A: Analyzing Minesweeper Probabilities

VoiceOfUnreasonGroupValues GroupValues doesn't seem to serve much of a purpose beyond what you get from Map; it adds no functionality beyond an unused field. In practice, all I think it is achieving is obscuring what is actually going on. FieldGroup That you are extending ArrayList, rather than composing wi...

 
It's not easy to continue building a system when both web services and databases are not working yet
And they're vital
I guess I better start replacing my individual configuration arguments to a pointer to a configuration file
 
0
Q: How Do I Make This MySQL Query More Efficient?

Braydon Batungbacalquick question.. I have the following MySQL query, but I feel like it could be more efficient and that there is a more practical approach than using a subquery here... Suggestions? SELECT p.*, pm.filename AS thumbnail, (SELECT C...

 
> You've earned the "protect questions" privilege! Learn more about it in the help center.
4
 
@200_success From what I've heard from @Donald.McLean: Scala all the way.
 
10:04 AM
I was beginning to get that impression, the more I looked into it.
 
Why not Groovy?
Though it depends, what are you expecting from Scala @200_success?
 
Not really sure. Mostly intellectual curiosity for now.
The functional programming aspect seems appealing.
 
I see, then it might be suited
I personally dislike putting as much information as possible on one line
 
@200_success From my minor experience with Scala, it's very hard to learn. Ever since Java 8, I've stopped looking into Scala. I couldn't find any documentation that was as good as Oracle's Java documentation.
 
10:08 AM
Scala doesn't really like braces, brackets, etc. either as far as I know
 
@skiwi Erhm.... Java 8? Streams?
 
Good point, that Java 8 also goes in that direction.
 
@SimonAndréForsberg It's not on one line
 
@skiwi I'm sure you can write Scala on multiple lines as well...
 
@SimonAndréForsberg Not that easy I think
 
10:22 AM
Ugh, property files feel ugly
Properties properties = new Properties();
properties.load(Files.newBufferedReader(Paths.get(args[0])));
 
Builder-Pattern?? ;)
 
Nah, static factory
Would've been better
 
0
Q: SCSS / Sass: Checking screen sizes for responsive site

BasI wrote this piece of code to make any breakpoint to the users choice: @mixin breakpoint($media) { $max-width: 0; @if($media == 'phones') { $max-width: $phone-medium; } @else if ($media == 'monitors') { $max-width: $screen-medium; //etc etc etc } @else if($media > 0) { $...

 
I managed to get a such messed up problems that neither Google, nor SO nor SU can help me...
Fun times when I wrote a comment 2 minutes ago, and now already forgot what I meant
2
 
10:54 AM
mhhhh just created an release, put it on accept => doesn't startup, mine boss has changed some dependencies and have now spring 3.2.7 and 3.2.8 at same time in project :s
2
 
11:06 AM
0
Q: Eternal running socket server with high load

Hugo DelsingI'm working on a socket application that will listen to incoming messages from about 400 devices. They all send a message atleast once per minute. Now I have a working program and it has been running for a few days without problems as a test with about 10 devices, but I keep thinking I missed som...

 
All problems aside: my API works perfectly fine when called from Javascript
celebration time
 
gratz
 
Come on, Visual Studio. Respond to me.
 
Monking @rolfl
 
@JeroenVannevel You have very high demands...
@rolfl's here? I don't see him...
 
11:09 AM
He did manage to post an answer ;)
 
And damn, his answer is really smart
Darn Netbeans is a bit broken on renaming
StageOrganization.INPUT_DIRECTORY Configse.INPUT_DIRECTORY = Paths.get(args[0]);
StageOrganization.OUTPUT_DIRECTORConfigBase.OUTPUT_DIRECTORY = Paths.get(args[1]);
StageOrganization.MANUAL_DIRECTConfig= Base.MANUAL_DIRECTORY = Paths.get(args[2]);
StageOrganization.CONFIGConfigE = Base.CONFIG_FILE = Paths.get(args[3]);
I renamed Base to Config
 
well that failed...
 
it's supposed to be:
StageOrganization.INPUT_DIRECTORY = Config.INPUT_DIRECTORY = Paths.get(args[0]);
StageOrganization.OUTPUT_DIRECTORY = Config.OUTPUT_DIRECTORY = Paths.get(args[1]);
StageOrganization.MANUAL_DIRECTORY = Config.MANUAL_DIRECTORY = Paths.get(args[2]);
StageOrganization.CONFIG_FILE = Config.CONFIG_FILE = Paths.get(args[3]);
 
eclipse wouldn't have failed.
 
11:13 AM
Wut... "Because I Got High" is on radio at work
 
@Monking all ;-)
Thanks @skiwi ;-)
 
Implementing it right now ;-)
Do you think that the accountId deserves to be an int?
@Vogel612 Flag as offensive.
Just kidding ;)
 
@skiwi You claimed that they all had to be Strings.
 
@rolfl But the accountId is the only exception I also claimed
but wondering if there's much point
 
Account ID's are often treated as strings.... some have leading zero's, et.c
 
11:21 AM
could also make it a string
Okay, Might be better to change it then
Learning useful programming practice related things on university is a joke :(
Now I start to understand why companies want people with practical experienced of at last one year.
 
@skiwi define "practical experience". Is that "working experience", or just "practical experience"?
 
@SimonAndréForsberg Actual working experience I mean
But...
Let's say you have created a bunch of awesome games and received reviews on those... That also counts for a fair share imo
 
Do I have actual working experience of at least one year? No. Do I have practical experience? I think so.
@skiwi code reviews, or software-reviews (from end-users)?
 
I think your experience is quite some
It's the steps you have to go through as programmer:
1. I have no clue what I am doing
2. I'll google some random library that suits my needs
3. I'm the best, I'll write it myself!
4. I'm not the best, and I'll carefuly research which existing library suits my needs best
2
Replace library with pattern at your will
 
5. You learn how to count to 4. (Sorry, couldn't help it)
 
11:29 AM
Fixed it ;-)
 
@200_success From what I've seen using full time for the last three years, Scala has all the advantages of Java, and fewer of its disadvantages. Don't know that much about Groovy, though I recall reading about it three years ago and not having any interest in it.
 
> 3. I'm the best, I'll write it myself!
If there's something I've learned, it's that it's better to use something existing rather than reinventing it. At least if the existing library is good enough. There's a whole lot of time you can save by using something existing.
 
Though I think, for experimental purposes, it's neccessary to reinvent some weels.
2
 
@Donald.McLean Let me guess, you were already using Scala three years ago?
 
But it's not a good spending of your time at your job
 
@SimonAndréForsberg No, we were looking for a web technology and found a nice little Scala web framework that works great. First I had ever heard of Scala.
 
@SimonAndréForsberg Yeah, but also the smaller things
IDE shortcuts are also your friend
 
@Simon - interestingly, is the sort of thing I do reinvent occasionally.
 
I'm still having an eternal debate with myself about using plurals or not in enum names
 
Having the option of tweaking what a Node does in a linked list is .... useful
@skiwi There is a best practice.... I forget whether I used it.
 
11:36 AM
Which is the one then?
 
I'm looking
 
I love these kind of error notifications I got here... Once I click on them, the errors are gone
So, singular it is
public enum AttackResult {
    TARGET_SURVIVES, TARGET_DIES;
}
Found somewhere ;-)
 
35
Q: Naming of enums in Java: Singular or Plural?

friederbluemleIs there an "official" recommendation of how to name Java enums? enum Protocol { HTTP, HTTPS, FTP } or enum Protocols { HTTP, HTTPS, FTP } I know in the .Net world the recommendation is to use singular except for enums that represent bit flags. Just curious if there is something similar in ...

Edited answer to be singular.
 
11:39 AM
I'm wondering whether the company here does unit or integration testing...
 
or both
 
It's scaring me a bit
 
@skiwi or nothing
 
Also, one hour ago I got rights to modify the test database... Hopefully I can do without messing things up the first day
 
@skiwi first day? You're working at another place now?
or "first day with access to the test db"?
 
11:47 AM
@SimonAndréForsberg That one
I could program lots faster if only I had 3 hands.
Two for keyboard and one for mouse.
 
@skiwi - the trick is to not program with the mouse
 
@skiwi the one who doesn't work is the only person who doesn't make faults
2
 
@rolfl It's hard if you need to scroll down, at least I'm still used to use mouse for scrolling
 
test is ment to be messed up ;) (hopefully not to often)
 
I know there's also keycombos for it, but still
 
11:52 AM
What's wrong with Ctrl->Down-arrow
 
I'm not used to using it, nothing wrong with it though
 
As I say, the trick .....
 
@SimonAndréForsberg That one sql question is actually non-working code... but I don't disagree with keeping it open
 
12:10 PM
monking
 
@skiwi What's non-working about it?
 
@SimonAndréForsberg SQL doesn't know about php parameters
 
@skiwi As the question is tagged with PHP and SQL, I assumed that the SQL is written as a PHP String, if using double-quotes, than it's possible to embed the PHP variables like that. Although not recommended.
@Mat'sMug MINUS 9 MUGS ON THE WALL!
 
If the user tagged it... then I can agree more
 
@rolfl Here I thought monkeys used their tails for that.
 
1:06 PM
Java: the preferred language of vandals:
I present evidence that the kids already know how to code. #YearOfCode /cc @jasongorman @ervines http://t.co/bXcoch6wnr
 
^^epic
nsfw by the way.
 
^^^ who names their class 'foo', it should be 'Foo'!
6
Script-kiddies.... that's who
 
Somehow I knew that even though it was short, it'd get an effective review here. :-)
4
 
Any suggestions for how to start writing a CV / resume?
 
Hi every one :D
 
1:19 PM
@Marc-Andre Hello.
 
Hey @Marc-Andre. How are ya?
 
@ckuhn203 Good and you ?
 
@SimonAndréForsberg Start with keeping a list of all the projects you've worked on.
Ohh, just another ridiculous day at the office.
 
@SimonAndréForsberg Ask a relative theirs!
 
Hey! Look at that. That's cool.
Enthusiast badge.
 
1:25 PM
Would you say : Age at beginning of the year or Age at beginning of year (My English skill is not loaded this morning)
 
@Marc-Andre the latter IMO (not a native either)
 
former....
What was your age at the beginning of the year?
@ckuhn203 - grats, you're officially addicted
 
@rolfl thx I was feeling like it was "too" "french"
 
Does anyone have experience with Jackson?
 
@Simon does, I think.
 
1:31 PM
@rolfl I am. It's true.
 
@SimonAndréForsberg Is there a way to make Jackson work with annotations on private fields? Rather than getters/setters, or public fields
 
This site is a priceless resource. I really feel like hanging around here is making me a better programmer.
 
Well, I can't hang around any longer ;(
TTGTW
 
See ya.
 
Also ... FYI, if you want to know what 'addicted' is:
> 238 days, 238 consecutive
4
 
1:33 PM
lol
 
@skiwi If you put an annotation, such as @JsonProperty on a field, it will always be considered. If you want Jackson to treat all private fields as properties by default, you can use an annotation on the class... hold on...
@skiwi @JsonAutoDetect on the class to set the defaults
 
I'm not that great @rolfl mine SO account :

239 days, 190 consecutive
 
@skiwi Well... I don't have that many relatives who have a CV I think...
@ckuhn203 "all" as in all?
 
@SimonAndréForsberg ask Jon Skeet!
 
Yeah @SimonAndréForsberg. I've found that updating my resume is easier when I have a list of everything I've worked on since the last time I updated it.
Then you just go through the list and figure out what's worth mentioning on your resume.
 
1:41 PM
@ckuhn203 mine resume : almost 1 year exeriance in java, all the rest I may drop
 
@SimonAndréForsberg I'll refrain from it for now, but I'll remember, not sure what Jersey thinks about the json property annotations
 
who the fuck want's to know that I worked 10 years on airplanes if I want to be developer
 
@ckuhn203 I assume only "publically available projects" is worth mentioning. Not some unofficial-semi-complete-more-or-less-just-for-fun-projects.
@skiwi If there is any concern with separating the model from the Jackson dependency, Jackson also supports "mix-ins" that can be used to map classes to a JSON structure
@chillworld You worked 10 years on airplanes?
 
It depends I suppose. I don't see anything wrong with including open source projects, but it should be a somewhat "professional" project.
 
@SimonAndréForsberg yeah, I'm not proud of it (but if you need a job you take everything)
 
1:45 PM
@chillworld It's probably more relevant than you realize. Programming isn't just about the languages you know. It's about your personality, professionalism, finishing what you start, etc.
2
 
@JerryCoffin last interviewer skipped that part as soon he saw that, so I'm not sure about that
 
@SimonAndréForsberg Have you ever worked for a company in any way?
 
@chillworld You need to find the right parts of it to mention. Just saying "spent 10 years working on airplanes", you're right: nobody's going to care. "Improved quality by X% while reducing costs by Y%" is the sort of thing they're a lot more likely to care about.
4
 
@JerryCoffin finishing what I start, huh? I guess I should not mention any semi-complete projects then...
 
^^^ @chillworld - on your resume say: I have 10 years experience in support and maintenance of mission critical, life-and-death systems in the aviation industry.
 
1:48 PM
^That. Yes.
 
@skiwi Well, I did work full-time in January - March, and I've been doing a day here-and-there for them earlier as well
 
Surprise! I went to execute (what I thought) some code, and my program started executing something completely different
What is happening here is total nonsense!
ahhhh....
I named my main class main.Main for simple testing
But a dependency of a dependency of a dependency of a dependency of a dependency also has main.Main for testing
2
 
@rolfl That's a start, but (if possible) you still want to talk about what you did effectively. "10 years experience" mostly translates to: "in 10 years I never screwed up badly enough to get fired." Being able to say that for 10 years you finished all tasks on time and under budget (or whatever) means a lot more. You want to point out how you were really effective, not just some guy doing as little as he could get away with.
 
@skiwi There's a lesson in there.......
 
@JerryCoffin sounds like they'd want to hear that I managed to reduce the time for a commonly used search-feature from 15 seconds to 5 seconds...
 
1:56 PM
0
Q: generating 2 comma separated lists from list of key value pairs

csetzkornCould this code: var a = new StringBuilder(); var b = new StringBuilder(); var kvps = new List<KeyValuePair<Guid, object>> { new KeyValuePair<Guid, object>(Guid.NewGuid(), 1), new KeyValuePair<Guid, object>(Guid.NewGuid(), "hello") }; for (var c = 0; c < kvps.Count; c++) { a.Append(k...

 
What they want to hear is that you reduced it to 5 milliseconds ;-) But, tell them that there was a third-provider auditing system so you could only manage a 3X improvement
 
@SimonAndréForsberg Yes, that would be something to mention (IMO, anyway). "Tripled speed of a commonly-used function, saving an estimated XXX man-years per month" would probably be even better.
 
@rolfl Keep giving such comments and I'll probably ask you to read and suggest improvements to my CV once I've written it...
@JerryCoffin Can I make my own estimation for the "XXX"-part? :)
Or does the estimation have to be grounded in reality?
 
@SimonAndréForsberg You need to show at least some basis. Even if you don't have a count of the exact number of users and/or number of times it's called per hour (or whatever), come up with at least semi-believable estimates for them, and work out the numbers from there.
 
OK, got it :)
 
2:03 PM
For all you JavaScript people: github.com/petkaantonov/bluebird/wiki/…
 
@SimonAndréForsberg You could say that you have a lot of internet points! Joke aside, you could mention your Stack Exchange participation! You have a lot of good reviews and some good communication skills. That can be a plus !
3
 
0
Q: Optimizing javascript functions

chiapaI've got a tab menu and functions that change the tabs color on click, giving the clicked tab a different color from the others. The thing is, when I click one, I give it another background-color easily but I'm also setting all the other tabs background-color. In my largest menu there are 6 tabs...

 
@Marc-Andre At least I hope it's not a minus!
 
@SimonAndréForsberg Basing the estimates on something like: "if I had as many users as Google" probably won't fly. Basing them on something like: "about nine and a half thousand users who use this product an average of 4.6 hours per day, and use this function about 3 times per hour" is a lot more believable.
 
@SimonAndréForsberg Not at all. The only minus I could see is if they are afraid of internet time at work.
 
2:05 PM
That is a potential minus. Stack Exchange is a double edged sword that way.
 
@Marc-Andre perhaps I can come up with a reason for why I have that many internet points?
I think that if they understood what our lovely Code Review site is, it'd be a huge plus.
 
If I had as many users as Google had, then my improvements would have realized a one billion second speedup, which equals 10 million dollars
The request sent by the client was syntactically incorrect (Bad Request)., thanks, that was helpful...
 
@SimonAndréForsberg Exactly if the employer has review process, I think they would be in awe :P
 
TTGTH
 
2:23 PM
monking
 
monking!
I tried my best here, this one was pretty confusing:
0
A: Abstract Factory Pattern C# Example

Mat's MugSingle Inheritance By using abstract classes like this... abstract class ContinentFactory { public abstract Herbivore CreateHerbivore(); public abstract Carnivore CreateCarnivore(); public abstract Problem CreateProblem(); public abstract Giant CreateGiant(); public abstrac...

@SimonAndréForsberg well done! (told you!)
 
@SimonAndréForsberg If they don't understand how beautiful it is, do you really want to work with them anyway?
 
@ckuhn203 Exactly what I was thinking :)
@Mat'sMug I have to be careful now though, to not vote for you too much ;)
(If we're counting all the bounties you have paid though...)
 
If you want to count bounties..... add another 1100 mugs to that wall! ;)
4
 
There is no spoon wall
 
2:33 PM
@SimonAndréForsberg don't you dare start cheating now, mr. lumberjack ;)
 
Is this a reasonable comment to this question?
To make life easier for reviewers, please add sufficient context to your question. The more you tell us about what your code does and what the purpose of doing that is, the easier it will be for reviewers to help you. See also this meta questionSimon André Forsberg 1 min ago
Or would you say that the question has enough context?
@Mat'sMug Crap, there's 9 mugs on the wall again!
 
@SimonAndréForsberg If it didn't have answers I would vtc as unclear what you're asking.
 
1
A: Windows.Web.Http.HttpClient#GetAsync throws an incomplete exception when invalid credentials are used with basic authentication

Yuval ItzchakovAfter reconstructing your example and playing around, i figured out what happens. var data = await client.GetAsync(new Uri("https://mytestdomain/v2/apikey?format=Json")); The GetAsync method invokes the http request with invalid credentials. What happens is that the returned request tries to l...

It's solved!
3
No way I would have ever thought of that
 
2:59 PM
Hey @Mat'sMug, anything to add to this one? I'm the only one who answered it.
4
Q: Script for saving/sorting/sending emails based on their subject

slow_excellenceI've spent a couple days making this script in Outlook that checks my emails and saves/sorts/sends a reply based on the subject. This also happens to be my first experience in working with VBA. Now that I have it working, I was wondering how I could simplify it or "make it prettier" (I always got...

 
@JeroenVannevel What on earth... The explanation, and how could someone even come to that conclusion without source!
That's a nice piece of WTF there.
 
In retrospect it makes sense but I never though to look at it
 
As long as the error message doesn't indicate it, I wouldn't say it makes sence
 
0
Q: Haskell: evaluate and combine list of functions

A SzI've got the following code: {- ... ... ... -} data Ellipsoid data Halfplane data Intersection data PointSet s a where Halfplane :: RealFrac a => a -> a -> a -> (a -> a -> Bool) -> a -> PointSet Halfplane a Ellipsoid :: RealFrac a => ...

 
3:36 PM
@ckuhn203 haha I had favorited that one, saw your answer this morning and went to answer the "factory" question instead.. perhaps I can take another look, yeah ;)
@JeroenVannevel nice!
 
0
Q: Would this be considered MVC?

Jack JohnsonFor many days, I've been re-designing my application, applying some custom pattern and making our code looks like a framework. I have something like this for separate the business logic, from views: if(file_exists($route . $urlpara[0] . ".template.php")){ require_once($route . $urlpa...

 
3:51 PM
@rolfl well, I can say that I'm a perfectionist : 10 years experiance on planes and no plane where I worked on has crashed.
 
0
Q: Memcache Keys Management Class

abrocksI have written below class to manage Memcache keys. My Memcache keys structure are like: product_details_#{product_id} => product_details_2 designer_info_#{designer_id}_#{type} => designer_info_10_2 Methods which will be defined are: MemcacheUtil.product_details(product_id) MemcacheUtil.des...

 
00:00 - 16:0016:00 - 00:00

« first day (417 days earlier)      last day (3592 days later) »