« first day (1031 days earlier)      last day (2987 days later) » 

5:00 PM
3.2-3.5 should be enough though. That's the most important
Every time you change jobs you jump up +10% or so anyway
 
Disclaimer: I don't know the validity of payscale numbers... :-)
@JeroenVannevel That would be really nice if it were the truth!
 
If you want to earn money, don't come to The Netherlands.
 
Now time to look at London. I've got an interview with a Londonese company tomorrow
 
You don't want to hire a room in London.
 
@Mast I have one rule for my job search: it should be outside Belgium and The Netherlands
 
5:01 PM
@JeroenVannevel getting around in Europe, eh?
 
@Vogel612 You know it. In a month I'm visiting Krakow
 
Krakow has good skiing areas, go for it.
 
unrelated, but more to Code... JavaFX is being a PITA...
I can't DI things in there properly, or I haven't found out how yet
 
@JeroenVannevel Similar payscale links for Senior averaging at £43,770 and Junior averaging at £23,019 in UK.
 
Yeah, London has junior at 26k pound. That's +- 33k €, less than Berlin
I don't know how accurate that is
 
5:07 PM
Step... away... slowly... from the sp_send_dbmail... and no one will get hurt...
3
 
drop procedure sp_send_dbmail;
this error cracks me up every time
0
Q: Procedure too large excel vba

gatusoAny idea how to put this code smaller? This code how it is don't run on VBA How to aplly sub procedures here? Private Sub Worksheet_Change(ByVal Target As Range) For J = 17 To 19 Select Case Target.Address Case "$J$17" If Not Intersect(Target, Range("J17:J19")) Is Nothing Then T...

AT WHAT POINT WERE YOU GOING TO STOP DOING THAT??!!
missing tag
3
 
@JeroenVannevel Still it needs to be compared against living costs, and my gut feeling is that living costs ordered from high to low are something like: (Norway,) London, Berlin, Belgium, Poland
 
This is VBA telling you to think differently. — Mat's Mug 20 secs ago
 
@holroy this indicates Ghent is more expensive than Berlin though
 
Ghent?!
 
5:15 PM
Yeah. Hometown of the brave and sexy
aka: where I live
 
Ah... I see... As stated it was my "gut feeling"... Berlin being close East Germany could be part of the explanation of why I'm wrong! (or maybe Belgium has higher living costs than I believe :) )
 
A McDonalds meal is 10% cheaper in Berlin than Ghent. That's probably one of the most accurate statistics you can have
I think there was an index referring to that. The Big Mac Index or so
 
there is
the cost of a Big Mac is one of the best indicators of the cost of life
 
Belgium is definitely expensive. Cost of living we're 18th vs Germany's 29th source
 
This indicates that Munich (in West Germany) is more expensive than Gent... :)
 
5:18 PM
@holroy well Munich is the most expensive town in Germany
 
The other way around :P
Look at the bottom statistic on that page
Ghent 81.65 CoL; Munich 74.74
 
@JeroenVannevel We're 23, but I don't think you can put the entirety of Germany under one number.
 
A big issue seems to be the taxes though. In Munich you seem to keep 64% more salary after tax?!
 
Hard to read those pages... :-)
 
@Mast True, but neither can you do that with Belgium. I have to use something to make assumptions
There will always be wiggle room
 
5:23 PM
@Mat'sMug if Outlook is (Not Responding) while trying to import all those messages, should I leave it be until it does respond, or kill the process and try to restart it?
 
With Oslo at 100 CoL, Gent is around 75 CoL. If I read this correctly.
 
Big Mac Index for Belgium is 4.25 vs Germany's 3.86 statista.com/statistics/274326/…
 
@Phrancis I'd kill the process and leave Outlook closed until IT stops being stupid
 
I hate that Oslo is so expensive. I plan on visiting it in the next few months
@holroy You're looking at Munich
 
hmm 4.14 in Canada
 
5:25 PM
Ghent is the 4th column
 
0
Q: Class templates for encapsulation of datasheet limits

NullI've written some classes to encapsulate the limits given for datasheet parameters, e.g. for the classic 741 op amp: As the above example datasheet snippet shows, there are some challenges for representing the values in the "min", "typ" (typical), and "max" columns -- including cases where the...

 
@JeroenVannevel No, Oslo at 98.92, Gent at 81.65. But the bottom diagram seems to be related to last searches.
 
@Mat'sMug From the looks of it, it's the BizTalk interop server acting up, the emails are just a consequence of it...
 
@holroy oh maybe. But yes, Ghent at 81.x
 
no. the emails are a consequence of someone deciding half the world needed to be sent 45K emails when that happens.
 
5:28 PM
True dat
 
Compared to Berlin's 65.x that's quite the difference
 
@JeroenVannevel Yeah! Norway is almost the most expensive!
 
I'm going to assume I'll be getting a better deal in Berlin than Ghent. And 3.3k bruto would alreay be really good in Belgium too
Seems like Germany might have less taxing than Belgium so that would play in my favor too
@holroy I'm not surprised about Switzerland. I have honestly never even thought something that expensive existed
I was looking for a simple place to eat and I had to settle for a pizzeria where I ate a 40€ pizza
Everything else was >50€
Granted, it was in Zürich but still
40-50€ train ticket for a half hour ride is normal there
 
Is this debate on salaries and living costs slightly off-topic? ;-)
 
^^
 
5:32 PM
And now I'm hungry!
 
All topics are ontopic when I'm in the house
 
Switzerland instantly got 25% more expensive the day the EUR peg gave way.
 
Zak
I enjoyed writing this bit:
> My personal #1 rule of fast spreadsheet manipulations:

Thou shalt not directly manipulate data in worksheets
 
@200_success Which was coincidentally +- 3 weeks before I went there
You can tell how much I hated myself for not buying Francs sooner
 
6:04 PM
BTW I just put up a +250 bounty on my latest question
 
Zak
6:17 PM
Do we have canon evidence that occam's razor exists in the Star Wars universe? — Plutor 23 hours ago
@Plutor I think it's known as Occam's Lightsaber in that universe, as it cuts through many things, but also burns the unwary wielder. — pcurry 14 hours ago
 
Anybody interesting in giving me feedback on my blog article I just posted (before I make it more widely public). lokiastari.com
 
@LokiAstari you want to "emphasize" and not "emphasis" in that first sentence of "Rule Of Zero"
 
This is an appropriate question for Code Review. — Kyle Williamson 6 secs ago
 
@LokiAstari I'm on it.
> therefore should bot be defining
Change "bot" to "not".
Under Rule of Zero, just below the list of things the C++ compiler generates.
The very first word in the next paragraph should be followed by a comma: "Conversely, classes" (not "Conversely classes").
 
6:33 PM
@Mat'sMug How about a link? ^^
 
0
Q: What is the best way to manipulate a time-value as a string in Ruby?

alexanderjsingletonI recently submitted a code-challenge for an interview according to the following guidelines: About Write a function or method that accepts two mandatory arguments and returns a result. Requirements: Use Ruby or another language of your choosing, and write production quality code. Your funct...

 
6
Q: Tracking Entity Changes (not EF)

Mat's MugSo, I kept refactoring my Sage300 API wrapper - I wanted the client code to feel just like using Entity Framework - this is the closest I got to it: using (var context = new SageContext(/*redacted credentials*/)) { context.Open(); var header = context.PurchaseOrderHeaders.Single(po => ...

 
> This section walk through the processes
should be walks. That's "Copy and Swap idiom"
 
Nested parenthesis are not supposed to be used: "(in terms of pointers this means the owner is responsible for calling delete on the pointer (usually in the destructor)"
The second parenthetical phrase can just be set off with commas.
Last sentence in this paragraph: "If you are not the owner of a resource you should not have access to the resource object directly (as it may be destroyed by the owner without other objects knowing)."
Put a comma after "resource" (subordinating conjunction), and remove the parenthesis.
 
http://www.commitstrip.com/en/2016/02/29/all-freelancers-will-understand/
CommitStrip
All freelancers will understand
CommitStrip
1456770601
 
6:37 PM
"refereed" > "referred" Immediately after first code block in Rule of Three, Version 1.
 
@CommitStrip So, stay single or don't freelance?
Freelancing isn't working from home, by the way.
You can do one without the other and vice versa.
 
yeah, I wondered why it said freelancers
 
Get your facts straight!
</rant>
 
"Thus" > "This" Second sentence in Rule of Three, Version 3.
After the second code block in Copy and Swap Idiom:
> But before we add exception handling lets take a closer look at the three sections of the assignment operator.
Add a comma after "handling" and change "lets" to "let's" or "let us".
 
@LokiAstari Didn't read all, but I'm confused to why you have that long list at the start. I would rather start with what is the main point/theme of your article, and possible state that "there were X arcticles on this topic the last months...". Similarly I'm expecting a statement stating what the "Rule of Zero" actually is, not just used as a section title. Similar for the other rules
 
6:42 PM
"But Part-2 the" > "But in Part-2" the". Immediately above first code block before Rule of Five (last code block in Copy and Swap Idiom).
 
In general I fell the article is a little on the long side, especially when I don't have a general idea on what your overall topic is
 
Same sentence: "operation so", "operation, so"
 
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.comJB Nizet 16 secs ago
 
Same paragraph: "Yes this does make the performance for self assignment worse. But it make the normal operation even more efficient." > "Yes this does make the performance for self assignment worse, but it make the normal operation even more efficient." (Join sentences.)
Just before "Allocating more storage":
> If we know that certain operations are exception safe them we can optimize resize operations and maintain the strong exception guarantee.
Change "them" to "then" and add a comma after "safe".
Other than that, it looks good, @LokiAstari. Nice article.
 
@Liam: I think it would help you a lot if you submitted your working code to Code Review. You will be treated very gently there unless you post crap like code that won't even compile, and it may well help you to learn some of the subtleties of the language — Borodin 32 secs ago
 
6:53 PM
Somewhere there's an orphanage for abandoned changes. — Pharap 12 hours ago
@Pharap I feel bad for orphans. That's why I have my processes kill their children before exiting. — QPaysTaxes 59 mins ago
:)
 
@DanLyons That is just so wrong! lol
 
Zak
@EasterlyIrk Very subtle. Almost missed it.
 
Zak
Is this something you always do?
 
7:09 PM
Maybe.
:p
 
Well, Grace note is a CM. I guess she is allowed. :P
 
actually Grace is a CM
 
whatever
 
0
Q: H3 headers with 'i' look like 'l'

MichaelTStrings Strings Strings On my machine, this looks like: That is... less than ideal and almost had me going in to fix the 'how in the world did I type strIngs?!'. Instead it will be ### to ##.

 
7:13 PM
@EasterlyIrk there's a HUGE difference. CM's are paid by SE; mods are paid by you slaves.
3
 
Oh, okay.
So I should send you money to pay your salary?
:P
 
eh, if I did this for the money, I'd be a sad, sad mug.
 
no way anybody would pay enough for the hassle of being a mod?
 
who said it was a hassle? :)
 
possible answer invalidation by 200_success on question by Lasoloz: codereview.stackexchange.com/posts/121454/revisions
 
7:20 PM
Isn't that part of the issue, that mods don't consider it to be "the hassle of being a mod"? I'm thinking most of the reason why we're here most of us is due to inner motivation
 
-1
Q: How to remove specific item from local Storage and layergroup on leaflet?

RogerHNI am trying to save on localstorage the markers that I create on click in leaflet and delete them using a buttom. The problem is that I don't know how to delete just one marker at time and remove them from the main layer without affecting the others. I want to add a unique id to each marker crea...

 
or, just because
 
Thanks: Vogel612, Hosch250, holroy. Really appreciate the input.
 
NP.
For code golf:
/bu|[rn]t|[coy]e|[mtg]a|j|iso|n[hl]|[ae]d|lev|sh|[lnd]i|[po]o|ls/ matches the last names of elected US presidents but not their opponents.
2
 
the hovertext this guy is insane
 
7:31 PM
@Hosch250 Something for the 19th?
@Mat'sMug My point exactly
 
@holroy I posted it there too.
 
Did it get a lot of response?
 
Not yet.
in The Nineteenth Byte, 54 secs ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
I love regex golf.
 
0
Q: Java Program that reads a sentence from the user and prints the sentence with characters of each word backwards. (Using a stack)

daylea14I'm having a problem with figuring out why my code won't print the entire sentence. It will only output and reverse the order of the first word's characters in the sentence. How do I get this to output the reverse order of the entire sentence? package Stack; import java.util.StringTokenizer; i...

 
@CaptainObvious broken
 
7:49 PM
@Mat'sMug Why are we still not seeing community ads?
 
0
Q: Delphi 2009 Interface Memory Leak

Luiz Carlos M. Jr.I have this code and at the end of it, FastMM show that there were memory leaks with all the objects of TSinc and it. unit sinc_int; interface uses Classes, log_listener_list_int, tick_listener_list_int; type ISinc = interface; ISincList = interface; ISinc = interface ['{5381423...

 
@CaptainObvious I think memory leaks are not considered broken code (per CR standards), is that correct?
 
@200_success that's a very good question
@Phrancis not unless you're asking for a way to fix them
 
8:07 PM
I don't get it, my code work. Its just missing a small feature (a working delete markers from localstorage), that's why I am asking help... That's why want someone to review my code to point me how to make it better. I have everything it needs to work there. — RogerHN 44 secs ago
 
Please note, asking this community how to implement your delete feature is off-topic. — Mat's Mug ♦ 6 secs ago
 
Is this a good/clear use of ternary operator?
public void enqueue(Object obj) throws QueueFullException {
    if(isFull()) {
        throw new QueueFullException("Queue is full.");
    } else {
        queue[tail] = obj;
        tail = (tail + 1 == capacity) ? 0 : tail + 1;
    }
}
 
That could work. Personally, I'd choose to use a modulo operator, even if it takes a few more CPU cycles.
queue[tail++] = obj;
tail %= capacity;
 
I saw some examples using modulo, I thought it wasn't immediately clear (to me) what the purpose of it was
 
Yeah, use modulo.
@Phrancis Modulo wraps around.
 
8:17 PM
Hmm ok
 
Modulo is way easier to read than your ternary
 
So, 4 % 5 == 4.
5 % 5 == 0.
 
Isn't 5 % 4 == 1 ?
Or -4?
 
It is really just the remainder.
 
        Q[r] = obj;
        r = (r + 1) % N;
 
8:18 PM
Right, 5 % 4 == 1.
 
Examples I saw looked like that^^
 
4 % 5 = 4.
 
If M/N=x and M%N=y then Nx+y=M
 
Who is randomly starring things?
4
 
Me, and not randomly! Showing apreciation!
 
8:20 PM
@skiwi -4 \equiv 1 \equiv 4
 
Code Review questions are considered off topic on this site. Try posting it on the Code Review Stack Exchange site which is set up for such questions. — Tot Zam 6 secs ago
 
One question, @Phrancis, why are you wrapping around in a queue?
Once the queue is full, you are going to start overwriting the items at the top of the queue?
Or, assuming that is what isFull() checks, you are going to wait until the queue has room for one item, then overwrite the top one?
 
The latter, yes
 
Why in the world would you do that?
Shouldn't you append the new item to the end?
 
Oh, I am sorry. I didn't know that. Should I delete this and repost it on Code Review? — Sebastian Y. 34 secs ago
 
8:23 PM
It's a circular queue using an array, which has a fixed size
 
Looks like a good fit for Code Review. Come on over! — Hosch250 16 secs ago
 
(I realize I could use a type of Array/List that can change size, that's not the point of the exercise though)
 
Oh, so the item at index N is consumed, then the next item just writes over it. Cool.
 
We are not a code review site. Coincidentally there is one on the stack exchange network. — NathanOliver 17 secs ago
 
Well, when it is consumed (dequeued), the index at N becomes null
 
8:26 PM
If it is working, come visit Code Review. This sounds like a good fit. — Hosch250 16 secs ago
I'm voting to close this question as off-topic because it is asking for a review of working code. Perhaps belongs on codereview.stackexchange.comcrashmstr 26 secs ago
 
OK, makes sense.
 
Aside from SE Code Review, std::bitmap might come in handy, — πάντα ῥεῖ 51 secs ago
 
0
Q: My user registration factory for AngularJS + Firebase app

user1880836The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database. Subscribers to a mailing list were all sent a 'secret' registration code. Upon completion of the registration form, RegisterFactory.re...

 
8:46 PM
0
Q: Prime factorization of a natural number greater than 1

Sebastian Y.I am a math student who just started learning Java a week ago. I want to write a program in Java that return a prime factorization of any natural number greater than one. After spending some time coding and debugging, the program runs fine. Since I am new to Java and programming in general, I don...

0
Q: Generating a 2-variable truth table and preforming boolean arithmetic

phillisMy code currently generates a 2-variable truth table and lets the user select to AND/OR/NOT the variables. I was looking for advice on how to make it more concise, handle bad inputs better, and ignore case while going through. CODE: #include <iostream> #include <string> #include <iomanip> using...

 
@holroy: Added an overview. Moved the list to the end. Broke out some of the work into a second article.
 
0
Q: How to more effectively achieve a dataframe from a dynamic list of lists

user2943039This code works for me, but I am trying to improve my coding and am looking for advice on how to improve it. Specifically I want to simplify this so that perhaps I can have a dynamically updating dataframe that tracks the "site" that I am on, and the "cutoff" value that I am on, and records the c...

 
Naruto answer; accepted non-selfie answer with 0 score: Queuing web service calls
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Mouseover effects for social network icons
 
9:19 PM
For the record, my email is still down :|
 
9:37 PM
It would've probably been less painstaking if you just switched to telegrams at the start of this whole ordeal
3
 
@JeroenVannevel But what about global warming and being green and all that other stuff?
 
I don't think the telegram industry is a big factor in global warming
 
I don't think sp_send_dbmail can interface with telegraphs, so that would definitively solve that issue
 
@200_success There was more wrong than just an indentation problem here. Is following the rules against common sense? I'm having trouble parsing your comment.
 
@JeroenVannevel All that paper usage likely is.
The software development version of "Eureka! I found it!" is "Oh I'm an idiot!" :)
I said that when I made a mistake driving yesterday. My mom said "No, you are just learning."
 
9:48 PM
> drives over pedestrian
> it's okay honey, you're just learning
2
 
Hmm, was working earlier, but now I test the "wrap around" the array and getting ArrayIndexOutOfBoundsException
 
@Hosch250 so true
 
@JeroenVannevel When life gives you pedestrians...
 
10:05 PM
Ah, found the bug. Assigned the wrong number for the array's capacity in my constructor
Now I got a different bug :D
circQ size : 4
circQ.dequeue() : A
circQ size : 3
circQ.dequeue() : B
circQ size : 2
circQ.dequeue() : C
circQ size : -2
circQ.dequeue() : D
circQ size : -3
circQ.dequeue() : E
circQ size : 1
circQ.dequeue() : F
circQ size : 0
 
Just speaking for me, but if I'm code review, I'm not going to like the original (illegal) code or even the valid solution. A traditional "if" is going to be much more obvious as to both the intent and utility of the method. — Anthony Pegram 6 secs ago
 
10:23 PM
0
Q: Linked List with deep copy constructor

123I've created a linked list template class which contains a copy constructor that deep copies the list. LinkedList.hpp template <class T> class LinkedList { protected: struct Node { T value; Node *next; Node(T val, Node *nxt=NULL) { value = val; ...

0
Q: Using Scanner.nextInt() whilst ignoring rest of line

holroyI'm contemplating how to read an int using Scanner.nextInt(), and at the same time ignore the rest of the line or flush the input buffer to be ready for inputting the next number. Typical usage would be to read a number where the user is likely to add units or similar after the number, and I want...

 
I'm voting to close this question as off-topic because this belongs on Code Review. — Tunaki 8 secs ago
@borodin I agree, it's more consistent. And I agree with the code review as well. Maybe I should head over to CR a bit more often, but the Perl tag seems very slow and then people jump on new questions even more than here. — simbabque 48 secs ago
 
10:41 PM
ooooh yeah. I'm getting my SageContextBase under test!
250-rep hint: the code as-is, is coupled with the 3rd-party API and isn't unit-testable
 
And fixed that bug too... all looks OK now... CR question probably tonight after I finish the NonCircularQueue code...
Gonna let Outlook VBA function run overnight, hopefully by morning it will be done plowing through 55K+ new emails lol...
TTQW
 
NonCircularQueue? Is that a SquareQueue? OvalQueue? Or possible a PathQueue?
Or just a plain IrregularQueue? :)
 
hahaha :) ... It's a queue that doesn't "wrap around" the end of the array and instead "runs out" of queue space, so it can queue up to a finite number of items and not one more
 
BrokenLinkList
 
I'm hoping that "NonCircular" is not a part of the actual name of the queue, as it seems somewhat strange to have a class name indicating what it isn't! Then you could get really long class names like "NonLinkedListNonStackNonDynamicNonCircularQueue", as it most likely isn't any of those...
 
11:02 PM
@holroy or all of them
 
hmm.. how can I test that OnModelComposing() abstract method actually gets called....
if I verify the mock views, I'm testing the fake model implementation
if I mock the context to verify the OnModelComposing method, I'm mocking the SUT
 
Doesn't it do something you can trace afterwards?
One suggestion could be to make a subclass of your class, and as such get a concrete possibility to call the method. See this answer related to unit testing abstract classes.
> If there are methods on this abstract class that are worth testing, then you should test them. You could always subclass the abstract class for the test (and name it like MyAbstractClassTesting) and test this new concrete class.
 
11:17 PM
KISS. I have a fake implementation - nothing keeps me from making it have a public bool IsComposed method that gets set to true in the OnModelComposing implementation
the fake implementation is instrumental to the test. right?
 
there is a thing called partial mock that may be right
I have only used it a couple of times to hack tests for smelly designs
 
@Mat'sMug Test preparation or test setup... :-)
 
never heard of
@holroy I'm putting it up for review then
it's up!
and TTQW
 
11:33 PM
0
Q: Testing an abstract class

Mat's MugI started writing a set of tests for my SageContextBase class, which needs to be abstract because the client code must derive from it (think of it as EF's DbContext - it can't be instantiated directly, but it packs a truckload of functionality) - I have 5 passing tests covering everything that sh...

0
Q: Simple endless obstacle dodging game

RobertI've made a quick game in C++ where you race down a vertical track and dodge 'X's or obstacles. The player is represented as a 'v', and the score is counted by how far you manage to get down the track. The obstacles are randomly generated at the bottom of the map and slide up each time the player...

 
monking
 
@CaptainObvious I hope that doesn't spoil too much of the improvements I made to make the class testable :-)
 
benchmarkdotnet is pretty nice
 
11:50 PM
@holroy I could call it ExhaustibleQueue instead of NonCircularQueue do you think that would be better?
 
Most queues aren't circular...
So I'd only put an adjective in there if your queue actually is different from what you'd expect if you just heard Queue...
What does your queue do exactly?
 
Maybe FixedQueue or FiniteQueue to focus that it has a given size? ExhaustibleQueue gives me a slightly bad feeling that at some random point the queue might be exhausted...
 
Queues are exhausted though.
I see the caveat here is the maximum queue size. So to answer the question on how we should call it, we should probably ask what happens if I try to enqueue into a full queue.
 
Exhausted? Not full?
 
To add to a queue, you enqueue items. To retrieve items out of the queue, you dequeue them (which removes them from the queue).
If you've dequeued until the queue is empty, you've exhausted the queue.
This doesn't happen at a random time. It's predictable.
 
11:57 PM
I understand the en- and dequeue operations. Don't like the expression "exhausted the queue". And still think "ExhaustibleQueue" gives me a somewhat random feeling as to when it will become exhausted. That's what I read into that name
 
ExhaustibleQueue is an unhelpful name. As I said, all queues are exhaustible.
If it's not exhaustible, it's a list, or some other sort of collection.
 

« first day (1031 days earlier)      last day (2987 days later) »