« first day (1030 days earlier)      last day (2989 days later) » 
00:00 - 21:0021:00 - 00:00

12:00 AM
RELOAD! There are 1902 unanswered questions (94.0344% answered)
 
@Duga Shoot, I had a hope that we were still on 18xx unanswered...
 
I might look into Aptana, I think that is what I have on my desktop, wish I had somewhere to set that up...
I googled it but wanted to see what other people are using
I am pretty good with Google, but Media will tell you whatever they are paid to tell you, you know what I mean?
 
That is were the google-fu comes in... :)
 
when it comes to coding I like to get an idea from other programmers
 
Hi there @200_success, is there any pattern in when you moderators close a post directly, and when you let the community close them? (This might sound ruder than it is intended, I'm just trying to figure out when to just comment on post possibly being off-topic allowing the user to recover, and when to just VTC)
 
12:16 AM
@holroy fwiw, a comment on every closed post is not a bad thing
surprisingly many people do not read the canned reasons that show up when closing
Also off-topic posts should be closed, whether they might recover or not.
 
Each moderator has a slightly different threshold. My thinking is, if it's going to get closed anyway, then sooner is better.
 
the point of closing is to allow recovery and reopening
 
The most awkward is when a bad question has already been answered. Then it's really hard to fix the question.
 
But should we comment and VTC at the same time, if there is a decent probability for it to be recovered easily? Or should we comment, and hold on with the VTC?
 
if it's off, then VTC
 
12:19 AM
0
Q: ask for advice of parsing JSON string more efficiently

Lin MaI need to parse a simple JSON string (flat JSON, no hierarchy) for keys and values, and there is a system constraint that I cannot use any built-in JSON library and can only read a string once due to latency requirements. I need to use Python 2.7.x series and cannot use a higher version. With the...

 
@200_success That I've seen a few times
By the way Vogel612, I see that you have some experience related to Java, could you give me some recommendations on what/where to focus if I want to refresh my Java knowledge?
Back in the days I've been the exercise teacher related to a Java introductory course at first year of university, but I feel that is ages ago. Do you have any suggestion as to which frameworks I should focus on, and possibly which documentation/reference sites would be good for getting up to speed with the current Java version?
 
depends a little on what you wanna do with your Java
for Desktop apps you should get up to par with JavaFX
I hear Spring and hibernate are still widely used
other than that... write code and get it reviewed, do some reviews yourself
that's how I got to most of my java
 
I'm mostly thinking Java for desktop applications on either Windows, Java or Linux. And possibly with the option of going into teaching again...
So I would really to focus on best practices
 
JavaFX for GUI
 
Does there exist something like PEP8 (the official style guidelines for Python) for Java?
 
12:32 AM
the oracle guide, which is horrendously outdated
and the google-conventions
 
Do you have some links, please?
 
lol
 
> The last revision to this document was made on April 20, 1999
 
Would you say most coding is done in Java 8, or are there still a lot activity on lower versions?
 
12:35 AM
I worked on a Java 6 application until about half a year ago
got it migrated to 7, since the jump to 8 was "too dangerous"
 
@Malachi SublimeText or Atom are fine
 
there's bound to be significant amounts of java 7, because the switch to 8 was pretty heavy
Pimgd used to work on a java 5 application IIRC
 
Do you think I should focus on Java 7, and not Java 8?
 
no definitely go for 8
 
I understand there was a major change related to Streams usage in Java 8, are there loads of other major changes?
 
12:37 AM
7 was end of public updates in April 2015
@holroy Lambdas were introduced and they removed a JVM argument
but that's about it
IMO 7 was bigger.
 
Removed a JVM argument? Sounds serious... Not...
 
Multi-catch, Try-with-resources, invokedynamic
 
@Vogel612 Those were new with Java 7?
 
off the top of my head, yes.
multi catch was definitely 7
and invokedynamic is a JVM opcode that led to huge simplifications for JYthon, Scala, and the explosion of JVM-Based languages like hadoop and clojure
 
A final stupid question: Is the performance of Java 8 somewhat decent compared to the reputation of Java being extremely slow in version Java 5?
 
12:43 AM
yes, it's significantly better
 
@DanPantry what kind of fun features do they have? isn't sublime a little bit more than vim?
 
not least because of invokedynamic and tipping a toe into functional language ideas
 
or vi?
 
If you're looking for an IDE you'll have a bad time.. they are just text editors
 
Thanks for all the good information! Now I just have to find a proper path for how to (re-)learn Java (and/or Swift :) )!
 
12:45 AM
And boy is PETA pissed... — Adam Davis Dec 3 '11 at 19:01
 
@Malachi By the way, vi is to advanced. I think you should try ed!
 
@DanPantry I will probably just stick with notepad++ then and see if I can find some fun extensions for it or something
 
Sublime has more for angular afaik
 
ed?
 
A line based editor, which doesn't even display the text by default. You'll have to use commands like '.p' to print current line, or stuff like 3,5p to print line 3 through 5.
 
12:46 AM
@holroy s/Java (and\/or Swift ;)/Swift
 
@nhgrif Surprise! Thanks to you also for yesterdays session on Swift!
ed (and vi) is amongst the few editors which are available at console level when booting various Unix operating systems...
 
Also sublime has a vim mode
in case you want to learn it
 
To be slightly more serious (with the exception that knowing vi and ed has saved my day multiple times in the past): I believe that knowing whatever text editor you've chosen, is way better than changing text editor all the time. So if you're used to Notepad++ I would stick with it, as you'll most likely are way more efficient in that editor rather than trying to learn new editors
 
user image
5
 
Good for you!
 
12:57 AM
@holroy what I am looking for is an IDE for Angular. I like having autocomplete, or code suggestions, I am kind of spoiled that way with visual studios...lol
@nhgrif I am going to have to step it up a notch to stay ahead of you guys
lol
 
we're coming to get you...
@Malachi Why can't you continue with VS? I saw some recommendations to use that when googling earlier on
 
I guess I haven't tried to integrate any Angular with my ASP.NET MVC yet. I bet that I could lol it is JavaScript, and VS does Javascript
 
Here is a msdn blog to get you started: blogs.msdn.microsoft.com/visualstudio/2015/02/05/…
 
-1
Q: Is this code duplication acceptable?

kon psychI used codeclimate to evaluate my code and marked that the following piece of code appeared twice in my source. except IOError as e: log.error("I/O error({0}): {1}".format(e.errno, e.strerror)) app_exit(1) The justification is that the amount of duplication mass is 33 which...

 
1:16 AM
@Malachi Typescript? (Shot in the dark as I have never used it)
 
I will look into that. looks like I need to install Eclipse...lol
 
eclipse for typesript?
 
there are a few different add ins for Eclipse for AngularJS
and it could be useful for other languages as well
 
0
Q: Something is wrong with comments

nhgrif The comments on this question don't appear to be correctly wrapping. I'm using Safari 9.0.3 on OSX 10.11.3. I'm not sure if this has been reported yet or not. Please let me know if you need any more details.

 
0
Q: Refactoring a View Model Class in Typescript

user3935156I am trying to refactor a viewModel class because it has two methods that are really similar called updateRegions and updateTowns and even another one may end up being made called updateCountries. I basically copy paste the method and change the variable names. How can this be refactored with may...

 
1:29 AM
Indeed. I was thinking it might be some MathJax issue. If we guess at MathJax, we can probably reproduce on this question. — nhgrif 5 secs ago
 
okay, excuse the profanity:
god fucking damn please do not use TypeScript
@Malachi @JohanLarsson
I use TypeScript in work with VS and Angular and it is the most frustrating thing in the world
2
Because if a set of typings do not exist for a package, you have two options:
- write them yourself
- declare var Library: any at the top of every file that uses it / a file that you then /// <reference>
Also yes comments can affect the code and VS doesn't detect the official project format (tsconfig.json), despite Typescript being made for VS... so your VS will give you intellisense errors even if it builds fine.
If you're on nix or mac, use Flowtype. If you're on neither, just use normal JS
TypeScript has been the single biggest source of frustration in my job for the past year. You should not have to fight a tool to get it to work for you.
2
</endrant>
And if you don't believe me please feel free to look for my messages in this chat room on weekdays between 9 am and 5pm LOL
Don't get me wrong, I'm sure TypeScript has the potential to be really useful, but right now the only reason I don't use Flowtype is because it doesn't work on Windows (yet). TypeScript makes a lot of assumptions that just don't work. It assumes that a module does not exist if you do not explicitly tell it so, despite that being completely counter to how the entire Node ecosystem works.
Additionally you'll have to juggle 2 module syntaxes (3 if you use webpack), each one working in lovely different ways. You don't have this issue with plain old Babel, which makes each module syntax interoperable so you don't have to care.
 
4 mins ago, by Dan Pantry
</endrant>
:D
 
And I have raised these issues on TypeScript, as have many others, but Microsoft are pretty steadfast in it.
Sorry, it's 2am and I'm angry at TypeScript for existing.
plus I figured it doesn't make sense to say "it is crap because I say so"
 
1:45 AM
That is/was one solid rant!
Do you agree with this closure:
-1
Q: Is this code duplication acceptable?

kon psychI used codeclimate to evaluate my code and marked that the following piece of code appeared twice in my source. except IOError as e: log.error("I/O error({0}): {1}".format(e.errno, e.strerror)) app_exit(1) The justification is that the amount of duplication mass is 33 which...

 
I will stick with what I am paid to work with....lol
 
@holroy Yes, but as stub code.
 
TTGTB
 
The code is present and not broken. It is possible stub code, but the OP does present an interesting concept of identical error messages
 
@holroy absolutely
The question is an interesting one, but not a fit for Code Review.
At least not in that form.
It asks us to address the problem of duplication without showing the duplication. The duplication is instead explained. We can review explained code.
 
1:53 AM
That exactly ^
 
The duplicated code is shown, but not within context.
 
Code is shown. It is explained to be duplicate code. It is not shown to be duplicate code.
We can't review explained code.
 
Hmm... I see your points, believe it is closed for the wrong reason, but still a little intrigued by the concept as I've seen too many identical error messages not possible to locate in code when viewed in log...
 
I just got an interesting email.
 
> I know you are so far
 
2:01 AM
That is literally the first spam I've ever gotten at that address in about 3 years.
I guess it is time to retire that address; I'd grown so fond of it too.
 
> After the question has been edited to contain working code, we will consider reopening it.
 
2:28 AM
The OP has now added some code, and I suggest we reopen it.
-1
Q: Is this code duplication acceptable?

kon psychI used codeclimate to evaluate my code and marked that the following piece of code appeared twice in my source. except IOError as e: log.error("I/O error({0}): {1}".format(e.errno, e.strerror)) app_exit(1) The justification is that the amount of duplication mass is 33 which...

 
2:53 AM
Variables should start with lowercase too.Only class names are upper cased :) - It's a code review! lol — pczeus 38 secs ago
 
3:33 AM
@Hosch250 what's the case of two ladies named olga! aren't you lucky
 
Aren't I.
There are enough for you to have at least one, if you are interested.
 
0
Q: Resolving the path to a Bash script

James KoI wrote a function to resolve the full path to the current Bash script, and I'm wondering if it's solid: #!/usr/bin/env bash scriptpath() { result=${BASH_SOURCE[0]} # unfortunately readlink -f isn't available on Macs, # so resolve the symlinks manually while [ -h "$result" ] ...

 
4:04 AM
@Quill You were they are building a new Titanic?
2
 
wat
 
> You were they are
 
0
Q: How to replicate .sortable serialize but with Dragula JS?

user2513846I'm trying to understand how to replicate this code: $(this).on('submit', '#form', function(event) { var input = $("<input>").attr("type", "hidden").attr("name", "token_used").val($('#used_options').sortable('serialize')); console.log($('#used_options').sortable('serialize')); $('#fo...

0
Q: Bricky - A Breakout Clone in Pygame

CactusWomanI've been working on learning Pygame and I made a Breakout clone. I'm looking for stylistic advice and overall suggestions for improvement. Controls are simple: - ← and → to move. # Breakout/Arkanoid clone import pygame, sys from pygame.locals import * import math # General game attributes F...

 
4:50 AM
0
Q: A reusable Previous/Next Contact Collection ViewModel class

Matt FitzmauriceI often use a ViewModel class that contains a collection of Contacts and allows me to iterated through the collection with Previous and Next buttons. I find that I've got duplicate versions of this class all over the place and I'd like to make my code reusable. How would I go about making the f...

 
5:11 AM
Titanic II is a proposed ocean liner, to be built as a modern-day replica of the Olympic-class RMS Titanic. The new ship will have a gross tonnage (GT) of 56,000 while the original ship measured about 46,000 gross register tons (GRT). The project was announced by Australian billionaire Clive Palmer in April 2012, as the flagship of a proposed cruise company Blue Star Line Pty. Ltd. of Brisbane, Australia. The intended launch date was originally set in 2016, with the ship sailing from Southampton to New York within the same year; the launch has been delayed until 2018. == Previous projects == The...
Here is an interesting article: abplive.in/lifestyle/…
 
5:31 AM
is this a good fit for code review stackoverflow.com/questions/35678594/…?
 
@MsYvette I don't think so.
 
Not really... It seems like the OP is asking for how to do stuff, or for code to be written. Code Review can review working code, which occasionally leads to rewritten code
 
k thanks
 
They are asking for help making their code multi-threaded, which is off topic everywhere.
If they were just asking for general improvements on their existing code (i.e. it was working how they wanted it to), it would be a good fit here.
 
ah k thanks for that
 
5:34 AM
NP.
 
5:49 AM
Non-code question is incoming...
Oh well... TTGTB
 
-2
Q: Constructor with tons of parameters vs builder pattern

NarekIt is well know that if your class have a constructor with many parameters, say more than 4, then it is most probably a code smell. You need to reconsider if the class satisfies SRP. But what if we build and object that depends on 10 or more parameters, and eventually end of with setting all th...

0
Q: Read data for a specific line in .txt file

Cf WangThe following code is supposed to read data from row 2 (i=2), but it always read data from row 3, (i=2+1) Can anyone explain why? Thanks. #include <stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> int main() { FILE *pFile; char c[100],n[100],k[100]; pFile=fopen("myfile.txt","r");...

 
6:34 AM
0
Q: Regex to match strings safely

Paras D PainThe following regex is meant to improve string matching by sanitizing the user defined commandPrefix and checking for whitespaces and line-endings after the specified text. command will generally be a single word, hence not escaped. var prefix = commandPrefix.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&

 
 
1 hour later…
7:43 AM
@DanPantry Nice, rant!
 
0
Q: Improvements on Bash script that looks like it came from the middle ages

MercMy experience in bash is... well, around the Bourne shell on AIX. I wrote a semi-complex script in Bash, and I feel that it could be improved in 100 different ways. The Github project is here: https://github.com/mercmobily/lapser Questions: Does anything stand out in terms of things done horr...

 
8:08 AM
0
Q: Getting the Wrong Answer for my Approach

shurHere is aQuestion Link. I have tried solving this Question using Bitmask, But i am getting the Wrong Answer. Can Anybody help me to figure out my mistake. dp[0][0]=1; for(int i=0;i<1<<n;i++){ for(int j=0;j<n;j++){ if((i&(1<<j))!=0 || !possiable(i|1<<j,P,m)) continue; ...

0
Q: Tic Tac Toe - My very first Objective C program (need feedback!)

CleyeI've been learning Objective C for a few days so to test my skills I went ahead and made a simple Tic Tac Toe game using the console. I already have some experience with languages such as C++, Java and Python so I'm familiar with most of the concepts in Obj C. How it works The player chooses t...

0
Q: Draggable and resizable buttons

janoChenI made draggable and resizable buttons using Vue.js (a simplified version of React.js) and Interact.js (a library like d3 but focused on DOM interaction). This is the HTML. The grid and plane div are just there to contain the buttons and act as restrictive boxes. button-el recieves reactive data...

 
9:00 AM
Naruto answer; accepted non-selfie answer with 0 score: Coconut, Sailors, and Monkeys
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Check if a game of Tic-Tac-Toe has a winner
 
0
Q: How to prevent returning a pointer to a data-member of a class from const method

NarekThis code is valid, unfortunately: class MyClass { private: int* m_int; public: MyClass() : m_int(new int(1)) { } int* getPtr() const { return m_int; } }; int main() { MyClass obj; cout << *(obj.getPtr()) << endl; auto& integer = *(obj.getPtr()); integer = 5; ...

 
 
2 hours later…
10:56 AM
0
Q: Recycler View with Cursor Adapter - Android

siviHello I am trying to get recycler viewer with cursor adapter and I seem to miss important point so my view get's the some of the data repeat itself instead of all data once. Can anyone who know about this issue review this code and help me find the problem? import android.content.Context; impor...

 
Monking
 
morning
 
Monking
 
hows it going all
 
11:13 AM
It is the right way. Period. Any code reviewer would tell you the same thing, and for the same reasons I've already given you. You haven't even attempted to defend against them. If this came up in my company I would call you in and tell you, not ask you, not to write any more code like that on my client's dollar. I have already mentioned he correct technique several times, including my own answer, and it is idle of you to now pretend otherwise. — EJP 20 secs ago
It is the right way. Period. Any code reviewer would tell you the same thing, and for the same reasons I've already given you. You haven't even attempted to discuss them, let alone defend against them. If this came up in my company I would call you in and tell you, not ask you, not to write any more code like that on my client's dollar. I have already provided my own answer, and it is idle of you to now pretend otherwise. — EJP 37 secs ago
 
@Duga he's right, but he's a bit of a self righteous prick about it
 
Welcome to the internet.
 
you are the worst @Quill
 
mark as answer is a bit strange on cr
 
@JohanLarsson Pick the one most valuable to you. Yes, it's subjective.
 
yeah, not a problem
nice site, fun reading reviews
 
@Quill How did you manage that? That's seriously evil.
 
@Mast I saw it in the so javascript chat room
 
@Quill Do you know how it works?
 
12:22 PM
probably a dns level redirection htaccess redirection
 
So it's an easter egg on the SO server?
 
the domain is stackoverfiow.com
with an i instead of an l
 
12:46 PM
0
Q: Simple MVC with Java

Jan444444I woudl like to ask about possible improvement of this code. I have created very simple code using MVC pattern. Is there any logic or anything to change? I tried to keep MVC idea. This is model, class Customer: package customereditor; public class Customer { private int ID; privat...

 
1:01 PM
^ I'm inches before closing that one as Pseudocode...
but the design mistakes are so incredibly obvious ....
 
@Mat'sMug you might be interested in seeing:
 
In my opinion questions with code that is not formatted according to conventions should be closed until fixed.
Not very interesting reading reviews pointing out things an automated tool fixes, noise.
 
@JohanLarsson but what are the conventions and how would you propose closing them?
Also consider some places use a non-standard convention
 
@Quill Oh, darn...
 
consistency is more important than blindly following some convention decreed from above
 
1:09 PM
@Vogel612 I guess I'm too C#-centric :)
 
meh. even there I bet there's large codebases with nonstandard conventions
 
yes but stylecop is pretty widely used
 
also I personally dislike the bracing style and the way chained properties read
 
I don't agree with all stylecop conventions but still write pretty much compliant code
Docs is the one thing I usually turn off
/// <summary>
/// Gets or sets the name
/// </summary>
public string Name { get; set; }
^ is too sad for me :)
 
that's not necessarily good docs, soo...
 
1:27 PM
Probably better to take some real code and put it on codereview.stackexchange.com . read their guidelines first — charlietfl 45 secs ago
 
ffs prompting in node sucks
 
0
Q: Need to integrate and modify code in a Tic Tac Toe game-code. (Haskell)

Richard SödlingMe and my classmates are pretty much novices working on a mini project making a tic tac toe game in haskell. This is our base code: {-Tic Tac Toe-} -- The empty board emptyBoard = ["...","...","..."] -- Returns the winner winner :: [[Char]] -> Char winner [[a,b,c],[d,e,f],[g,h,i]] | a == b &&

 
@Vogel612 do you mean that the text should be improved or that the comment should be removed as it is just noise?
 
the former.
 
ok, curious about your version then
 
1:36 PM
@holroy done.
@JohanLarsson On Code Review? Definitely not.
 
ok I can skip stuff like that so no biggie
 
What do you mean skip?
Are you in the review queue?
 
No, was just a general reflection.
 
Code formatting is one of the things we reviewed, so I'm not sure how it'd make sense to not answer questions that are formatted correctly.
 
Not a big problem at all, I mean I can skip reading answers that says what an automated tool says.
 
1:41 PM
Sometimes, when I come across a question that is formatted so poorly, my only answer is to explain their code is formatted poorly, making their code difficult to read, and therefore difficult to review.
 
@JohanLarsson Gets or sets the User's internal Name for "personal referral" would be one thing
 
@nhgrif One way could be to put the question on hold and provide a link to a relevant style guide.
But was just an idea, if you guys like it I'm fine with democracy.
 
@JohanLarsson Why though?
Do you have a strong argument for putting questions like that on hold?
When reviewing formatting is well within the scope of Code Review.
 
@nhgrif Not at all.
 
Okay.
 
1:44 PM
Are you asking for a code review? If so you could try codereview.stackexchange.comGavin 14 secs ago
 
A couple of reasons it could be a good idea:
1. If the asker has not even heard about styles it a good thing that (s)he learns about them.
2. While fixing them is boring it is pretty good ime, after fixing a couple of times one starts to write correctly formatted code. It is not more work to write properly formatted code.
3. Would increase signal : noise in questions & answers (for me)
 
There are plenty of things that the asker will not have even heard about that they can learn by posting their code and asking about it on Code Review.
 
Yeah, maybe too harsh to newcomers to close the question.
 
There are plenty of things that if the asker fixes a couple times, they'll naturally start doing right without thinking (and is actually less work then some of the things we see).
 
But it could be phrased in a constructive way.
 
1:48 PM
There will always be noise from askers repeating the same mistakes that have already been reviewed in previous questions. When you see this and notice it's the same user, I link them back to a previous answer that pointed out the still-existing mistakes and ask them why they've not fixed this.
 
Sounds reasonable.
 
@avanwieringen you could use cake pattern for that, for example. Your question would be more suitable for code review. — 0__ 54 secs ago
 
nice
 
And alternatively, @JohanLarsson, you don't have to review all aspects of the code. You can ignore the formatting issues and comment on something else if you want.
 
1:58 PM
Yes of course, this was more about reading answers but the same applies.
 
Personally, I prefer to ignore every other issue with the code base and comment on the formatting, because as I believe you'd agree that's the easiest part to get correct. I'd also make the case that it's one of the most important parts to get correct.
 
Which is good if you don't know the language exactly, but you still have points to make
 
If was is a PR I would reply 'please format your code properly and update the PR'.
 
0
Q: Polling hash change

VinceI've discovered that Google Chrome on iOS doesn't fire the hashchange event when the back / forward buttons are pressed. Reference: http://stackoverflow.com/q/35620762/2948042 https://bugs.chromium.org/p/chromium/issues/detail?id=559122 To work around this problem, I wrote code that uses set...

 
@JohanLarsson Which is a review.
 
2:09 PM
yes
 
Zak
http://workplace.stackexchange.com/questions/62686/my-employer-is-forcing-its-employees-to-defraud-its-customers-how-should-i-hand

Outsourced software dev. at its finest.
 
It wouldn't make for an acceptable Code Review answer, but it is a review.
 
review or a pre-review but same thing
 
Monking
 
monking
 
2:24 PM
Yes, thanks. I already found out that the cake pattern is suitable. I'll come up with a proposal and put it in Code Review :-) — avanwieringen 28 secs ago
 
possible answer invalidation by user3762742 on question by user3762742: codereview.stackexchange.com/posts/121192/revisions
 
2:44 PM
wow spotify... that's gotta be a new record..
2.3k Ads blocked on a single page
4
 
Just to give the site their credits: If you have complete and working code, your question might fit better for SE Code Review actually. — πάντα ῥεῖ 25 secs ago
 
3:00 PM
possible answer invalidation by Jamal on question by Narankhuu Boldbaatar: codereview.stackexchange.com/posts/14766/revisions
 
3:14 PM
@Vogel612 What...
 
it's 2.9k by now..
 
3:27 PM
Maybe it tries to serve a new one because you block them?
 
Wow. I'm glad I rejected their ToS.
I couldn't agree to let them host any of their stuff on my system, and I don't trust their network to by safe.
 
From Spotify?
where do you even see ads?
Do you not use the client?
 
not on my ubuntu
also the huge banners and the fact that I don't have premium get me a lot of ads
@skiwi yep... 3.3k now
2
 
@nhgrif you see ads on the client too
 
Where?
I've never seen ads.
I also don't really stare at the client, but I don't see ads ever when I do look.
 
3:41 PM
I'm looking at an album page and there's a giant banner ad at the bottom
not the mention the fullscreen one that comes up every now again
 
Zak
Maybe this is an argument for actually paying £10 a month for unlimited music. I don't think there's anything else (apart from maybe my data plan) for which I pay so little and get so much out of.
 
I still don't see any ads any where.
Do you guys have some sort of free version?
I've only ever used whatever paid option there is
 
yeah, I have the free version
 
My wife & I are on the family plan.
 
I had Spotify Premium, but I got Apple Music instead
 
Zak
3:43 PM
@Quill How is apple music in comparison?
 
is it better?
 
It integrates better with my devices
both are missing some songs that the others don't have
 
3:58 PM
0
Q: Generating a graph from a rectangular grid for graph searching

RobHI recently reviewed some code implementing some heuristics which has piqued my interest in the A* graph searching algorithm. I'm going to do that in a bit but first I need a way to create a graph in order to work on... I could have used Point from System.Drawing, but I didn't want to include the...

 
4:10 PM
You might want to have a sneek @Java Implementation of Quick SortAbhijeet just now
Though it is still a valid question for Stack Overflow, I'd also like to tell you that there exists codereview.stackexchange.com, that specifically deals with review and improvements of already working code. Though don't crosspost the same question over multiple StackExchange sites. — Eugene Podskal 35 secs ago
 
night
 
0
Q: AngularJS - Optimize Code IF-ELSE Condition with Timeout

KaneI am new in AngularJS. I found there are two methods to code an IF-ELSE statement with timeout function. Two of these scripts work fine. But which one of them is more preferable? And why? Method One app.controller("filter", function($scope, $timeout) { $scope.expand = function() { ...

 
@Quill Big question though, can Apple Music integrate with a Windows device?
I have an iPhone but a main pull to Spotify is that it works on both my operating systems and my phone
 
It integrates with windows itunes
Personally, I don't mind iTunes for windows, but that took a lot of relationship counselling to get there
2
 
I used to use iTunes before I used Spotify
What's the price tag on Apple Music?
 
4:21 PM
Not sure what'd it be in Euros or Pounds, but around the same price as spotify
I'm planning to try Google Music in a few days
 
Don't tell someone in the UK that you were going to give me a price in Euro... :p
(I'm personally pro-EU, plan on relocating to Germany ASAP, but still haha)
Google Music? You mean youtube red, right? (They're the same thing)
 
Google Play Music
 
I am planning on switching to Mac sometime this year
if I'm going Mac I'll go big or go home, though, so I'm saving for the £2k one
Not sure if I want a laptop or a desktop come to think of it, given that the laptop can connect to my two screens anyway
 
I'm buying a windows desktop but that's just because I need to be able to do stuff
 
Can't you just use a VM in Mac?
I'm pretty sure there's a VM for windows in Mac
 
4:24 PM
Mac laptops are good, but the hard drives are small
You can just boot windows os anyway
 
That's okay, I'd only be using it for work anyway
 
Almost all of the .NET developers at Metova work on MacBooks.
 
120GB hurts even for work stuff
 
Metova?
 
The company I work for.
 
4:25 PM
Oh yea I'd be going for at least double that.
@nhgrif nice :)
I'd want at least 240GB
I don't mind some cloud storage
 
@DanPantry You want a laptop. The desktop options are Mac Mini... which are not very comparable to the MacBook Pros in terms of performance (also considerably cheaper though)... or the Mac Pro... which is considerably more expensive than the laptops.
 
I'd keep the windows machine for gaming and stuff
Though, that said, I only play League, which I hear works on Mac
At the same time I did just buy this barebones package so it'd be a shame to trash it
 
It does indeed.
 
Those are some pretty decent specs
Only concern would be the CPU speed
I'm a node developer, javascript is single threaded
 
El Capitan is amazing
I had Garry's Mod on my macbook for a while. Not a good idea with no space
 
4:28 PM
Yea, I think I will keep the windows one for gaming
but the mac one for everything else
laptop would be best as I could take it around with me as well.. and possibly sneak it into work
 
Node runs pretty well on mac
 
yeah, mac is amazing for js dev.
esp given as nearly all the big tech companies that use node use mac lol
 
I have no idea what we do for our web front ends, but almost every developer we employ has a MacBook Pro issued to them.
 
@nhgrif sounds like i should apply to Metova.
 
4:59 PM
What's your skillset?
 
full stack javascript dev. angular, react, node
c# as well though I'd prefer not to use it
standard web techs a la css
 
You can always apply: jobs@metova.com
 
Looks like you don't have any openings for Node stuff, though
 
5:30 PM
I just visited the Active tab and found multiple posts edited by Jamal from 2012 with no accepted answers, but still some answers with votes. Does someone know why these gets edited?
The edits seems minuscle, and I don't understand the reasoning. (Note that I'm note out "to get Jamal", I'm just wondering why these edits are done)
 
@holroy Jamal edits like Dr. House takes Vicodin...
 
Jamal is the William Shakespeare of markdown.
 
That I know, I'm just wondering if someone knows why. Is it in the hope to trigger activity (like accepting answers)? Will the edits trigger emails (or similar)? More upvotes? Need for "perfection" (according to some definition of perfect)?
 
@VoteToClose LIES! You didn't go to CR. :P
 
5:50 PM
0
Q: Binary file validity in C++/C++11: checking a binary header

DennisI have some code for checking a binary header to see if a binary file is meant to be read by a certain program, and I could use some extra eyes to review it. Assume the following typedefs: namespace Types { using Byte = std::uint8_t; // From <cstdint> using UInt32 = std::uint32_t; ...

 
6:01 PM
Probably a lot of work but ux like code reviews on github would be nice.
 
6:15 PM
possible answer invalidation by Dennis on question by Dennis: codereview.stackexchange.com/posts/121371/revisions
 
@Duga Rolled back already!
Does roll back count toward edit badges?
 
@holroy No.
But it does count towards the rollback badges
 
Do we have rollback badges?!
 
Well, there's only one :P
Cleanup
 
lol... Got that one already!
I guess it would be kind of bad to have a gold badge: "Spring cleaning" – A 1000 rollbacks during a spring month.
 
6:25 PM
If that is created, it shouldn't just be spring months.
 
It would be incredibly rare to even get 1000 rollbacks much less 1000 in a spring month
 
Still it would be kind of a bad incentive, as someone™ might go on a rollback spree
 
Yeah.
Badges are a tricky thing
 
That is exactly what I was thinking.
 
6:37 PM
0
Q: Animate an oval shape using Thread

Jay GorioI have this project that should continuously animating using for loop. Also I want to include variations on the position where the ball pass through. Can anyone please check my code if I am following best practices in coding. Also feel free to edit my code and suggest me some refinements. Thank y...

 
7:12 PM
-1
Q: Show all possible permutations given 6 numbers

Ipe Tafoi need help whit an program, for this program we have numbers form 1 to 6 and we have to show all possible permutations for these numbers. I kwnow that there are 720 possible permutations, as I know this can be made using 6 anidated for-cicles. Answers please in ANSI C. (Sorry for my bad english)...

1
Q: Javascript / jQuery Clickable And Automatic Image Slider

NicoI created a slider that fades images automatically but you can also click to see the next or previous image. It already works how it should. But I think my code is really heavy. I am not experienced with javascript / jQuery so it would be nice if someone could help me to tidy up my code. Here it ...

1
Q: Base converting with strings from bases 1 to 36 to bases 1 to 36

VoteToCloseI'm writing a fastest-code challenge over at PPCG relating to base conversion of bases 1 to 36, and as a part of the process for writing the competition, I decided to write my own program for it. This is the code I wish to be reviewed: public class BaseConv { // Disallow instantiation p...

 
@CaptainObvious No code.
I don't see any code to review. Your question will be closed for lacking code to review. Please read our on-topic help centre before posting a question. — Mast 32 secs ago
 
/me drops in.
 
7:37 PM
One more.
 
7:57 PM
0
Q: Updating an auto-generated invoice (future) when current plan changes

Tony GaetaI've built-out a mechanism to go and find an auto-generated invoice and update it with new information when a plan is changed or if users are added to the plan for the current billing period. It will make it a lot easier than having to remember to change it a month, quarter, 6 months, or even a y...

 
Evening all :)
 
.o/
 
omg...
-(id)init{
    self = [super init];

    isPlayersTurn = YES;

    // choosing players token
    while(!(playerToken=='x' || playerToken=='o')){
        NSLog(@"Choose your token (must be either x or o)");
        scanf("%c",&playerToken);
    }
    // computer token is opposite of player token
    computerToken = playerToken=='x'?'o':'x';

    // set tiles of board to empty
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            board[i][j] = ' ';
        }
    }

    return self;
A while loop with user input... and a nested for loop... in the constructor...
 
Adventures in the tag.
My next article might just have to be titled: Getting User Input is Hard
2
 
00:00 - 21:0021:00 - 00:00

« first day (1030 days earlier)      last day (2989 days later) »