« first day (733 days earlier)      last day (3582 days later) » 

19:00
Why are you concerned? Do you have a specific error? Otherwise you should put your code to Meta codereview: meta.codereview.stackexchange.comJérôme Leducq 1 min ago
@Duga Lovely
0
Q: Is there a better way to change a div that contains a view link?

JustinI've written some code to load a section of my application between views. While my code works, I'm wondering if there is a better way to do it. (partial views perhaps?) Currently I load the views, then show/hide them depending on a button click. I'm looking to improve and would be welcome some cr...

@Duga He should be concerned about the code he's writing....
~Time()

{hour=0;

minute=0;

second=0;

}
That serves what purpose exactly???
having something to put in a destructor method
Yeah, that's not what a destructor is supposed to do.
19:15
smh
Come on... that's not even a hard assignment.
> include iostream>
Doesn't even compile
Good grief. How do you write that much code without even getting it to compile?
3
I don't know. Maybe it wasn't even ran through a compiler. But at least the OP suspects that something is wrong.
I don't know. I just don't.
This is funny... One of our vendors filled out a fax cover sheet, scanned it, and emailed it to us along with their invoice...
19:24
I can't imagine writing more than a handful of lines before testing it to make sure it still works.
lol Nice
Could be worse. You could spend a year working on an app that will never make it through Apple's review process.
Oh. That's ugly.
At least it compiles.
At least it compiles.
What makes you think it won't get through Apple?
If you don't mind me asking.
I don't have such an app.
19:27
Oh. Okay. I was gonna say...
I know that people spending tons of time working on apps that will never make it through though. I see SO questions.
Apple stopped approving flappy bird clones at least 6 months ago.
It's important to know the things that will definitely not be approved.
That's step number 1 in any iOS app.
Does Apple have a list of those published somewhere?
Not a list of definites, but that have several documents available.
Those two are the big ones.
> If your App doesn't do something useful, unique or provide some form of lasting entertainment, or if your app is plain creepy, it may not be accepted.
I don't even want to know.
Yeah. The guidelines are just that, guidelines. But if you keep your ear to ground, you find out when something is completely shut down... But typically things shit down like that are when there is some sort of game being cloned relentlessly.
19:37
0
Q: Phone keypad implementation

FabZerosI was wondering, beyond the standard improvements that this needs, is there a more "clever" way of solving this problem? The problem is to translate letters into digits without changing the format of the original string. The conversion is based on the international standard letter/number mapping...

0
Q: Dynamically create javascript object (Backbone View)

LemmyThe context here is Backbone but it's a general question about dynamically creating javascript objects. I would like to pass the name of a View ('ViewX') to be created, to a function which can then create the new ViewX() How could I do this? In my Backbone View I want to create a subView, the ...

> Apps that include games of Russian roulette will be rejected
whiskey tango foxtrot...... oh to be a fly on the wall when they had to add that one.
@RubberDuck What's wrong with Russian roulette?
1 hour ago, by RubberDuck
user image
19:44
that's CommitStrip, I'm following them on Twitter
in VBA, 1 hour ago, by Stack Exchange
[BEST OF] We're off for two days! But let's remember this great russian game. Who will dare? http://www.commitstrip.com/en/2014/05/16/russian-roulette/ http://t.co/JadJ0N4jWY
^^ that one's nice too
Indeed
Chat Roulette is mentioned explicitly...
So, any JS experts awake?
I have some code I want to re-use in multiple scripts, not sure what the best way is
I should probably make it a module, but I'm not sure how to keep it OO in that case
20:12
So, I have a zillion enums I use multiple places around my project.
I'm cleaning my classes and files and everything up, and I'm not sure what to do with them.
Should they each have their own file?
0
Q: React.js flood game implementation

kharandziukWe created an implementation of Flood game with React.js(GitHub). We tried to use Flux-architecture. The implementation consists of parts: the storage class Storage extends EventEmitter { refresh() { this.cells = _(_.range(15 * 15)).map( _.partial(getRandomInt, 0, colors.length-1) ...

@Hosch250 I usually put everything in separate files. Including enums.
but VS2012+ makes it not-quite needed anymore, since you can drill down to members in the project explorer.
20:28
I'm voting to close this question as off-topic because questions with working code asking for improvements belong on Code Review, not Stack Overflow. — TylerH 27 secs ago
@Duga It has NINE upvotes on Stack Overflow dammit! Are you sure it doesn't belong on Stack Overflow?
What is the purpose of reusing this variable? To confuse code reviewer? — Sasha Salauyou 23 secs ago
Sigh, then please use an actual close reason. Being on topic somewhere else doesn't make it off topic here. Saying it belongs somewhere else is not a close reason @TylerH. — RubberDuck 35 secs ago
thanks, Ducky.
I hope the comments won't get more out of hand than that. If he replies, invite him to chat.
0
Q: Java 8 : Method optimization

RanPaulI have a method as below which checks if a control of an entity's attribute is 'multiControl' or not private boolean entityHasMultiControl(IEntityMetadata entityMetadata) { for(IAttributeMetadata attr : entityMetadata.getAttributes()){ for(IControl control : attr.getAttributeTyp...

20:39
@RubberDuck Unfortunately we are not capable of changing our CV reasons even in light of new information, so I'm unable to do that. — TylerH 1 min ago
Then I hope he'll do so next time.
So do I. Maybe he will, but I'm not going to go back to tell him that.
@Mat'sMug Thanks, that makes sense.
So, should I create a directory just for holding enums?
20:54
OK
put them whatever namespace that's relevant to them
that can be harder that it seems, if you have multiple projects in your solution
Yeah, and I have multiple namespaces that are using them...
I'd hope so ;)
I'll put the setting ones in the SettingProvider namespace.
sounds right
20:56
I suppose I should create a Model namespace to put my Tree and MenuItem and such classes in?
And what about my static tutorial tree?
in WPF on Stack Overflow Chat, 2 mins ago, by Brian J
It's a constant battle between feeling like a dumbass and a genius, lol
I don't know how your project is structured.
I'm trying to clean the structure up a bit so I can open source it right now.
It will be easier to discuss a section if we can all see what I have, I think.
Just bracing myself for the WT* everyone is going to be saying :)
dude, the worst that could happen is that your code ends up getting better :)
21:13
What is "WT*"?
censored WTF
...
This question is off-topic:
It's either broken (not working) or hypothetical.
-1
Q: Load table view else load web view

ChrisI have a View Controller. Within this view controller I have a menu and a tab bar depending on what menu item is clicked. Depending on what is clicked in the menu/the tab bar, I want to load either a UIWebView or a UITableView with data. I have already added a UIWebView to the view controller. ...

Take your pick.
No matter what, it's impossible to answer.
0
Q: Python Small RPG text game issue

Red John# Character Creator Program for role-playing game # Get points and assigns them to things points = 30 strength = 0 health = 0 wisdom = 0 dexterity = 0 choice = None attribute = None attributes = ("strength", "health", "wisdom", "dexterity") print("Welcome to the game of conquest!") name = input(...

I think you should ask this question at codereview.stackexchange.com. — M.Othman 8 hours ago
Ugh.
21:25
It's likely that @Duga missed that, I caught here being down a bit earlier today.
@Mat'sMug I know.
@Duga's down for a short while, and this happens!
no shit
;)
I may be wrong, but isn't codereview.stackexchange.com a lot more suited for that? — Kyll 53 secs ago
@M.Othman Please take a tour and read the help center before you continue to make recommendations to Code Review. Just because someone is asking about best practice doesn't make the question a good fit for CR. We require real code from a real project that is already working exactly as the user intends, not a small snippet of hypothetical code cludged together just for the sake of asking how to do something masked as a question about best practice. — nhgrif 17 secs ago
21:31
Boom
Kyll needs an upvote or two.
And actually... I don't know JavaScript, but looks like he writes good answers.
@M.Othman Notice, the Code Review version of this question has been closed as off-topic. — nhgrif 20 secs ago
@nhgrif Who's Kyll?
Or better, why does he deserver upvotes according to you?
@Duga This guy is Kyll, @Mast. And he deserves upvotes because of how cooperative he was after I educated him. Even thanked me.
And I looked at his answers, they look good.
Passed him one
Anyway, I'm out for today
TTGTB
21:47
@nhgrif We need more SO users like that!
What's your actual question? If this code works properly, and you have other questions about refactoring, performance, maintainability you can also consider Code Review. Do not cross post on both sites. — ryanyuyu 7 secs ago
Prepare your upvotes:
0
A: Checking two text field for match and checking for null

nhgrifYour indentation is a bit wonky. Why is the first line indented? Why isn't the stuff in the inner-else indented correctly? There's no reason to println() our passcodes. At the very least, we should be certain to wrap these in #if DEBUG so that they're taken out of the release build of our p...

@Duga Does that code actually work? Can you create an array of chars like that in JavaScript?
a versus 'a'?
And the reason is quite simple, the OP made an array of references, rather than an array of strings
This may be a good starting point for writing an Int extension which does exactly whatever you want. — nhgrif 35 secs ago
0
Q: JavaScript Class Hidden Global and Local Variables

Michael WarnerThe Goal here is to make a class instantiation pattern that has the following two qualification. The classes variables can't be seen of modified unless through a function in the class. The classes Variables can be either seen and modified by all objects created by the class or only seen and mod...

22:04
@CaptainObvious Does that look like example code to anyone else?
TTQW
@Phrancis when did you learn to code something other than SQL? Look at you buddy!
0
Q: matlab to c++ percetile clipping

GiladI have a 2d matrix in matlab and I want to covert the matlab code into c++ in c++ i have int* channel_gr the commented code is the original matlab code; I was wondering about performance optimization, is there a faster way to execute this code? //Gr(1:ROIY(1), :) = clipLevel; ...

@nhgrif No. That's an array of variable values (variables that don't exist, so they are all undefined), not an array of characters.
Hmm, @Phrancis beat me to it:
20 mins ago, by Phrancis
And the reason is quite simple, the OP made an array of references, rather than an array of strings
22:26
Remind me when everyone reloads:
0
A: Checking two text field for match and checking for null

nhgrifYour indentation is a bit wonky. Why is the first line indented? Why isn't the stuff in the inner-else indented correctly? There's no reason to println() our passcodes. At the very least, we should be certain to wrap these in #if DEBUG so that they're taken out of the release build of our p...

That this has zero votes must mean everyone is out of votes.
22:45
> Then after the fotos added is the collectionView will refreshes by it self or i need to refresh it pragmatically?
Hmm, I need to go with a beta version of Unity if I want to have my WP app use it.
I'm not sure if this is a good idea.
Lightning and thunder.
I'm going off now to enjoy the storm, and because I unplugged my computer to prevent a power surge taking it out.
You have a WP app?
Make sure to unplug the ethernet cord too.
If you're not WiFi.
Oh yeah... @Mat'sMug where's your current multithreading problem?
6
Q: Exploring the code of the Code Explorer

Mat's MugThe Code Explorer is a dockable toolwindow that displays a TreeView that shows all opened VBA projects and their respective modules, but unlike the "native" Project Explorer, Rubberduck's explorer also drills down to individual module members, and allows quickly navigating them: While it looks...

23:01
Hello
Hi, @EthanBierlein
@RubberDuck I'm starting to figure out that SQL is kind of boring, compared to what you can do with other programming languages!
Stack Overflow is not a discussion forum, but a Q&A site (as are all Stack Exchange sites). "Answer" posts should answer the "Question" that was asked. While an interesting post, it constitutes a response to another post, not an answer. I really encourage you to post actual code (not just hypothetical example code as that would be off-topic) up on Code Review if you want to have your working code peer reviewed and discussed inside out. Cheers! — Mat's Mug 53 secs ago
@RubberDuck seen this?
-1
A: Error (Run-time error 5) will not raise when "On error resume next" is active

CBRF23@RubberDuck. Good example. I won't argue that it's effective, and yes - passing the error to the user is extremely important. The issue I have with On Error GoTo is that it becomes messy if you need to check for errors in multiple places in one module, and especially messy if you need to hand...

(flagged as NAA)
0
Q: Right triangle side length calculation

dylanMy code compiles and executes. I would like to hear any comments or suggestions pertaining to my use of C++. #include <iostream> #include <math.h> bool error_check(){ if(!std::cin){ std::cin.clear(); std::cin.ignore(256,'\n'); return true; } else ...

23:16
@Mat'sMug smh.
23:33
your answer code should be part of your question, and your question should then belong to codereview.stackexchange.com - as it stands, your question should be closed. — Luca just now
0
Q: Hashing an arbitrary object to a sparse array of bits

SuperJedi224I have this method in one of the java classes I'm working on (an implementation of a counting bloom filter): private int[] hash(V v){ Random r=new Random(v.hashCode()); int l=r.nextInt(size); int[] keys=new int[size]; for(int i=0;i<bpe;i++){ keys[(r.nextInt(size)+l)%size]...

@Luca Codereview is for real, maintained code, there's no code here. — Ethan Bierlein 24 secs ago
@EthanBierlein codereview is not for real, mantained code only. Any code can be peer reviewed on it. My suggestion is to try to help getting more answers, as the way it stands, this question is too broad for the purpose of stack overflow — Luca 10 secs ago
0
Q: Is my Graph Data Structure C++ Implementation Correct So Far?

Aadesh//Graph.h #ifndef GRAPH_H #define GRAPH_H #include <vector> #include <string> #include <queue> template <typename T> class Graph; template <typename K> class Vertex; template <typename T> class Neighbor { friend class Vertex<T>; friend class Graph<T>; private: int vertexI...

@Luca As you have no activity on Code Review beyond simply signing up there, I highly recommend you take a tour and check out the help center before you continue to make recommendations pointed toward CR and try to make statements about what is on and off-topic there. — nhgrif 6 secs ago
Oh dear, we're going to have the same issue now that we had with user:jww a couple of days ago...
23:47
Nah, just don't reply any more.
If he wants, he can come to chat.
@nhgrif Agreed, it's pointless arguing with stubborn users sometimes.
The question definitely isn't too broad though. It's quite explicit.
> I need to extract trimmed non-empty lines from a HTML textarea using JavaScript. How can this be done in a efficient and compact manner?
@nhgrif i agree, it's just the user never mentions any methods he/she tried, so it's more of a "gimmeh teh codez" question than any other.
It's a Q + A question.
There's a self-answer to the question.
0
A: How to remove blank lines and trim each line in a string using JavaScript

Kjell RilbeI found this solution using regex: myString .replace(/\s*[\r\n]+\s*/g, '\n') .replace(/^\s+|\s+$/g, '') .split(/\n+/); The first replace removes all duplicate line breaks along with any surrounding whitespace and replaces them with a single \n break. The second replace removes any...

Ahh, I see, better remove my dv.
23:55
@nhgrif it's true I have no activity on CR, my intentions were only good when I suggested to get a code review of the OP answer (as they are asking for 'an efficient and compact manner'). I apologize if it's not good advice, however I haven't made statements about what is on and off-topic there - and the main point that this comment thread is missing is that this question as it stands is too broad for SO standards. — Luca just now
Why do people say something is too broad and not vote to close as too broad?
^ that.
RELOAD!

« first day (733 days earlier)      last day (3582 days later) »