« first day (348 days earlier)      last day (3670 days later) » 
00:00 - 15:0015:00 - 00:00

12:28 AM
Hey all.... the 2nd is quiet.
 
True
 
indeed.
 
effectively
 
12:46 AM
@rolfl MSO is dead while they separate it from MSE, and that's scared people away.
Lousy timing--it looks like it's up now (but utterly empty--not even one question).
 
Looks like they arbitrarily choose 250000 as the post id cutoff. (1st comment on Meta.SO!!! AHAHAHAHA) — Mysticial 25 secs ago
> The MSO/MSE Split is now underway. Please bear with us while this is completed.
224
Q: Operation 'Split, All The Metas!' Shall Commence On April 16, 2014

Tim Post Update 2014-04-16 23:33 UTC: The split is in progress. Check back for updates. Not all of them mind you, just Meta Stack Overflow into Meta Stack Exchange. I'll have you know, factually, that we really did believe this would take place in six-to-eight weeks when it was originally announced,...

 
I'm scared! D: prepares browser
 
Meta Stack Overflow has turned to Meta (with the SE logo) in the your communitites list
 
Well, that appears to be mostly painless.
 
12:59 AM
 
I just earned Yearling on MSO too!
 
I earned it a month ago ;-)
Congrats, Mat's ;-)
 
lol grats too, monkey!
 
Me, too!
 
Congrats!
 
1:01 AM
High-fives all around! ;p
 
If my Marshal badge is now technically for MSE, perhaps I can earn it again on MSO.
 
does that mean we're going to earn badges automatically on MSO as they migrate content over from MSE?
 
All rep and badges from MSO have transferred to MSE. I no longer have my old badges on MSO.
 
So MSE has its own rep then?
 
I think so. It initially comes from MSO rep.
 
1:11 AM
^^^^ that.
MSO is all new, with some ported questions.
 
0
Q: how to parse httpline

NinjaDeveloperI have httpserver class(.hpp & cpp) I am trying to improve reserve data from socket class because I have s.getline to get http call my s.RecvData(); get data line by line in infinite loop to build http struct this is my old code while (1) { line = s.RecvData(); //httpline = s...

 
I think they just fixed a bug with the drop-down menus too - drop any menu, and hover the others - it didn't do that before, the inbox dropdown would "stick"
(I mean the SE/Inbox/Achievements dropdowns)
well this is entertaining :)
 
1:42 AM
0
Q: Solving sudoku in C

user44516After hearing about backtracking , i wrote this piece of code to solve sudoku , but it seems to give wrong solutions , what exactly i am doing wrong here ? #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define N 9 bool not_in_row(int temp , int i , int grid[N][N]){ int f ; for(...

 
8 asked today, 29 this week | 11 asked today, 39 this week
13 asked this week, 65 this month
and the winner is...
25 asked this week, 93 this month
upvoted twice ... nice. — rolfl ♦ Jan 10 at 7:09
 
1:58 AM
1
Q: Java implementation of the Factory Method pattern

ShijimaI am working on a very simple game and thought it would be a good opportunity to learn and use the Factory Method pattern for creating game objects. I studied the pattern but I'm a bit confused about the Java implementation so thought I would share what I have come up with and get some opinions. ...

 
2:38 AM
0
Q: Search for files in a specified directory

user3233949I am currently making a program that allows me to search for files in a user specified directory. But I am having some trouble condensing my try and except statements. My current code is as follows: if os.path.exists(file_path)!= True: print('\n******* Path does not exist. *******\n') ...

 
 
1 hour later…
3:40 AM
0
Q: Best way to comment regex

FracturedRetinaRegular expressions are one of the worst aspects of debugging hell. Since they are contained in string literals, It's hard to comment how they work when the expressions are fairly long. Say I have the following regular expression to match phone numbers \b\d{3}[-.]?\d{3}[-.]?\d{4}\b Source: Re...

 
4:13 AM
Hello! First time dropping by ze chat room... Quick question, how should we handle the XY problem? meta.stackexchange.com/questions/66377/what-is-the-xy-problem
Example: Someone is asking for code review on a parsing a "file with values separated by commas" and the person asking seems to be oblivious to CSV parsing libraries out there... should we tag/suggest the reinventing-the-wheel tag, or provide one-liner answers pointing out available libraries? Or stick with the question, and provide our opinions in good faith?
 
Hey there.
@h.j.k. .... is this a specific question on Code Review, or is it somewhere else (not a problem if it is somewhere else, just curious if I missed one).
 
not a specific question, asking in general.
so that i know what i can do in the future. :)
come and think of it, my example above doesn't really illustrate the real XY problem described in the link.
 
A lot of code on Code Review is .
We seldom tag it with that.
many people want their 'educational' code reviewed, so we get lots of , etc.
Typically, in a case like what you describe, the assumption is made that the code is an attempt to learn a certain strategy/process (it may be a state-machine with CSV, for example), and the reviewer will just say, "there are libraries that can do this for you... but ... your code does A, B, and C wrong ... ".
 
4:36 AM
@h.j.k. Yes--the XY problem is more like: "I"ve been getting eggs from the store one at a time, and get them home by rolling them on the ground with my nose. Can somebody suggest a good padding material I can wrap around the eggs to keep them breaking so often?"
I do think the nature of CR makes it at least somewhat less prone to XY problems than the main SO site (among many others).
 
4:57 AM
0
Q: Basic PHP lesson to do with DateTime and DateTimeZones

dccPlease forgive me, I'm just beginning to study PHP, but I'm pretty well stuck on this sample project that my tutor gave me to figure out. The goal is to first display the local time of 4 preset timezones, then allow for the user to enter a time manually and on submit, display the time for each o...

 
5:32 AM
@rolfl @JerryCoffin thanks for your inputs!
 
so quiet today...
 
Yeah .... really quiet.
I am chatting a whole bunch with some chinese colleagues.... much more active than here.
 
I'm trying not to lose my mind. Close to the end of a contract date, and they're still changing stuff daily
I just want to grab them and shake them while yelling "this isn't how you develop things!"
 
5:48 AM
0
Q: Enum with getting subset

chillworldI just wrote this but I'm not sure if this is good practice. Can someone give me advice if its good or how I can do better or even its a bad code? The point is that I need a sub List-array-set of the enum. The SubType.ELSE shall have a other name in reality(I know that was a bad choice but its fo...

 
@Yuushi you must be new in the industry .... ;-)
 
not that new, but it's never going to stop irritating me :)
 
Monking
 
Indeed.
 
:o usually I see you sneaking in around 1pm my time
 
6:04 AM
Yeah, working with some folk in China.... time-zones and all.
Normally they stay up so I can work with them in the morning, but things did not work out that way today.
 
Ah okay, I see
Gotta get going to work, back in 30 minutes if you're still there, and else I'll still be back
 
But, I am now done, in all senses .... 02h00 is too late.
drive safe
 
hehe
Should be doable on my bike ^^
Goodnight to you then already
 
tata
 
6:40 AM
0
Q: What is the Java equivalent method of GetFontData() in C++

a14I want to get the points of some fonts such as ttf file, to be able to draw some letter based on the points(coordinates), i found this function in C++ does the job GetFontData, What is the Java equivalent method for this method ?

 
and arrived
 
7:02 AM
Monking everyone.
 
Monking @Vogel612
 
lol I just got doublepinged..
 
Double?
 
yea..
I am in 2 Chatrooms...
and both told me, you pinged me..
 
hehe
I made some code and I don't know why
 
7:15 AM
why what?
 
0
Q: Length limited listagg for muliple m:n relations in a view

cremorI have a few views that all follow the same pattern. They select a primary key from some main table and then a few semicolon seperated strings of captions of related rows over many-to-many relations. All columns that are used in joins are either primary keys or have a manually set index and are o...

 
Well I thought it would be useful... But now I can't find a place to use it
 
lol
 
Hmm, apart from unit tests I see I should also write integration tests
Like a full playthrough of one game (all predictable), would be an integration test
 
@skiwi we have some integration tests running here on my project. and we mostly validate that the passing of instances between controllers (with the help of id's) works as intended.
 
7:28 AM
I see, I'm wondering what tests I can write for the TCG though
Integration tests I mean then
Time spent coding today: 50%; Time spent thinking up variable names: 50%
4
 
7:50 AM
@h.j.k. I'm well aware of the XY problem, and that is one of the things I consider when reviewing code. Usually, I write a comment on the question saying that I suspect an XY problem.
What is the motivation for this code? I suspect that it's excessively complicated because of an XY problem. — 200_success ♦ Sep 3 '13 at 5:15
Clarify what you mean by "in use"? What is the purpose? Your function tests whether you are unable to connect to that hostname:port. It might return true if there is a network problem or a firewall that blocks the connection. — 200_success ♦ Sep 20 '13 at 0:01
I agree with @SimonAndréForsberg, and I suspect you may have an XY problem. It looks like you are trying to do arithmetic based on a string representation of some numbers. Maybe BigInteger is appropriate? I encourage you to post the entire function, probably as a separate question referencing this one. — 200_success ♦ Dec 14 '13 at 17:30
Here is a brilliant example of an answer that caught an XY problem:
15
A: Nesting versus GOTO: which is better to avoid?

AJMansfieldHere is a far and away superior solution: use java.util.Properties to handle your configuration file. Properties supports a key=value syntax that is very similar to the one you are trying to parse. It's up to you to decide whether that syntax is close enough to handle any existing configuration...

… and the OP acknowledged it!
3
A: Should comparisons of code snippets be closed as "not seeking a code review"?

Jeff GohlkeI'm the author of that particular question, and I just wanted to chime in with my experiences with it. (Sort of a ground-floor perspective, if you will.) Yes, the question as asked was about comparing two particular styles to figure out which was better, which was the lesser of two evils. But ...

One of the policies that helps is that we have a rule requiring real, not hypothetical code. Getting concrete details helps us spot XY problems.
10
A: Why is hypothetical example code off-topic for Code Review?

200_successHypothetical code makes poor Code Review questions, which produce poor answers. For example, here is a code excerpt that made a poor Code Review question: bool f(const string& key, const string& value) { // some codes for input check exec_cmd("cmd %s %s", key.c_str(), value.c_str()); ...

@h.j.k. Welcome to our chat room, by the way. Sorry I missed you — hope to see you around here again some other time.
 
8:07 AM
Yay, finally this piece of code seems to be working
 
8:23 AM
emphasis on seems
 
^^
Still unsure of whether I am going to add unit tests here or not
Will be quite hard to do so and cost loads of time
What happened to your repo? You have two times same code in your repo?
 
??
 
Ah, that explains
 
8:35 AM
whoops.
that deletion does not work as planned..
 
Morning @Everybody!
 
Monking
 
Monking
 
I'm totally overwhelmed by my own meme :(
IT GOT OUT OF CONTROL! QUICK, KILL IT BEFORE IT'S TOO LATE!
 
IT'S TOO LATE, SKYNET MONKING HAS INFECTED EVERY COMPUTER ON THE PLANET
 
9:00 AM
It's so silent in here
 
I agree. Keep conversation in a recognizable form of English (or even another language) please, for the sake of newcomers. It's a issue.
 
well...
 
Just tried some cross marketing. Let's see if it works.
0
A: Javascript function not going to the next list on second try

200_successShort answer: you increment currentQuestion in next(), but you never decrement it in back(). function back() { $('h2#p1').click(function() { currentQuestion--; $('ul#ul1').show('slow'); $('ul#ul2').hide(); }); } For a much better answer, though, I suggest that you...

 
@200_success Good luck there
 
9:15 AM
I'm wondering, do you guys ever work on personal code at work?
 
Risky business. Your employer could end up laying claim to your work.
However, work-life separation is not so clear these days.
In any case, keep your personal stuff on your own equipment.
 
9:29 AM
Well yeah... I wouldn't upload personal stuff to a company repo for sure, but I see you can accidentally put it on a wrong desk
 
9:48 AM
Hmm, if all regular options fail to notify about a critical error, how do I notify someone then?
Surely making the server explode will notify the right people...
@200_success Good answer on that enum question... Btw, do you have an opinion about providing a Java 8 answer to questions that are not asked with Java 8 in mind?
5
Q: Enum with getting subset

chillworldI just wrote this but I'm not sure if this is good practice. Can someone give me advice as to whether it's good or how I can do better or even it's bad code? The point is that I need a sub List-array-set of the enum. The SubType.ELSE shall have another name in reality (I know that was a bad ch...

It could be so much simplified with Java 8
 
You can offer the advice. It's up to the author of the question to accept the suggestion or not.
 
But it's surely allowable as an answer? As long as the person does not explicitely say he cannot use Java 8.
 
Sure, you can write such an answer. The OP might like your answer or not, just like any other answer.
 
10:05 AM
@200_success yeah sure, I'll stalk this room once in awhile. ;)
 
0
Q: Python code which gives actual username from gmail id

aviIf you have gmail id, then you can also receive emails on the same account even if you add extra dots in the username or add '+' and some characters. Say your gmail id is montypython@gmail.com, then you will receive emails on same account even if it is sent to: monty.python@gmail.com montypyt...

 
10:31 AM
0
A: Enum with getting subset

skiwiI agree mostly with @200_success' answer, though for simplicity and maintainability I do suggest you to use the following, which is only possible in Java 8. It functionally does the same as @200_success' answer. The code with explanation below: public enum ContentType { TITLE("$$title$$", S...

Why are my answers always so long
 
Why are my answers being ignored .... :(
 
@rolfl you don't need any more upvotes to fulfil our deduced "graduation criteria"
 
0
Q: Bootstrap carousel, images only show up with embedded ruby. And as stacked elements rather than scrolling

user3408293When I have my the following code: <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-exampl...

0
Q: Tuning a query for performance

l0r3nz4cc10I am running this query and it takes several minutes to complete, how can I tune it (unfortunately I don't have the privileges to run an SQL tuning advisor) : select 'Master' || d.ntt_id || '_' || d.deal_nummas, p.prof_currency, sum(p.prof_ts1), sum(p.prof_ts2), sum(p.prof_ts3), sum(p.prof_ts4)...

 
Perhaps, but it would be nice if an answer I put out 7 hours ago .... got some eyes on it ;-)
 
are you too shy to pimp it like @Malachi ?
 
10:40 AM
Yes
TTGHW
 
HW?
 
10:53 AM
0
Q: Where to put the logic to enable filters in a Repository?

k0pernikusI have a symfony2 project. I have an Entity Asset which can have relations with Category. I store a categoryCount-field within the Asset to determine if an asset has one to select those fast via a DQL-query depending on the current user state. Now found myself writing something along of this in ...

 
11:04 AM
Monking @rolfl
 
0
Q: How can I shorten this (working) code to create future dates in ruby for use as params in urls

Michael DurrantI'm doing: require 'cgi' require 'time' now=Time.new() now_year=now.strftime('%Y').to_i now_month=now.strftime('%m').to_i now_day=now.strftime('%d').to_i now_hour=now.strftime('%H').to_i start_hour=(now_hour + 1) end_hour=(now_hour + 2) start_datetime=Time.new(now_year, now_month, now_day, st...

 
11:31 AM
0
Q: Inline PHP IP access log

Jeff GohlkeFor a website, I've got some inline PHP, posted below. It's supposed to log traffic to the website, and it does its job fine. But at the end of the day, I'm not even close to a PHP developer, and this is really just hacked together from Googling and inferring from other, more familiar languages...

 
0
A: Enum with getting subset

chillworldOke after reading all your suggestions I refactored the code to this : public enum ContentType { TITLE("$$title$$"), BODY("$$body$$"), MESSAGE("$$message$$"), EVENTS("$$events$$"); private static final Map<SubType, Set<ContentType>> BY_SUBTYPE; private final String rep...

How to handle this?
 
whoop.s
I'm against deletion of this answer. You are encouraged to answer your own questions. The problem I see with this is, that you are asking for new advice. This belongs into a new question or possibly in a separate section of the current question (as edit). For clarification purposes you should comment instead. If you want to ask for opinions, it's probably best, if you visit us in Code Review Chat. — Vogel612 6 secs ago
how about this @skiwi
 
@Vogel612 Looks good
 
I'm here :)
 
welcome @chillworld
 
11:43 AM
thx @skiwi
What do you think about the refactoring?
 
Hi @chillworld. Welcome to Code Review!
 
@chillworld Your solution doesn't seem to incorporate dynamic changes to the enum, for the rest it looks fine.
Meaning that if you add an enum value to ContentType, the list will be wrong if you forget to update it
Of course correct unit tests will catch such an issue :)
 
hey @200_success, many thx for you answer
I know when refactoring we have to pay attension
 
I'm glad to see that you posted an answer to your own question.
 
Well, I was intended to copy yours
 
11:46 AM
However, we would like to see more of an explanation. Could you add more detail to your answer, as if somebody else were writing a review of your own code?
 
but netbeans was beeing anoying :)
I'll try to do that.
 
Good catch about EnumMap though, I do not know how much it is extra optimized, but it does ensure that all keys are really of that enum type.
It has some performance optimizations by caching all values of the enum.
 
0
Q: Creating a new repository in two different controllers

NiklasI've been reading up on Dependency Incection, UnitOfWork and IRepository patterns, and I intend to implement them all as I go along. But it's all a lot to take in at once. Right now I just want to make sure about some basic things, and that I'm not missing anything crucial that could impact my ap...

0
Q: What would be preferred aesthetically and performance wise?

Sillicon TouchWhich one of these two would you prefer writing in your code? This: tweet = tweet.replaceAll("@\\w+|#\\w+|\\bRT\\b", ""); tweet = tweet.replaceAll("\n", " "); tweet = tweet.replaceAll("[^\\p{L}\\p{N} ]+", " "); tweet = tweet.replaceAll(" +", " ").trim(); Or this: tweet = tweet.replaceAll(...

 
Agreed. That is an improvement. If you would add a few more words about the thought process that produced it, you'd get my upvote.
 
@200_success working on that atm
 
11:57 AM
Also created a version of my answer using EnumMap.
 
hope the answer is improved :)
 
Excellent. Upvoted.
Of course, you had the advantage in knowing that .getSubType() was not important to you. =)
 
@skiwi I hope not me, can't even test here ^^
 
Hope to see you around again on Code Review and Chat.
 
Do mine best :). Mostly you find me at ZK forum also, cause that is mine main purpose.
 
12:08 PM
0
A: What would be preferred aesthetically and performance wise?

Vogel612This is probably a matter of preference. But performance-wise it's definitely faster to do the second one. Especially as there should be a new instance of String created for every assignment you perform. This means, you create 3 Instances of String, that are just "useless garbage". your code / r...

^^^^ requesting improvement suggestions ;)
 
what do I have a love hate relation with regex :)
but very nice answer, the point of constants is so good
I'm the only one who has no magic numbers in mine project at work :)
all constants :D
 
@chillworld my respects.
 
@Vogel612 Looks pretty good, but I think you're wrong with the performance remark.
 
feared that..
 
@Vogel612 thx :)
 
12:15 PM
public String replaceAll(String regex, String replacement) {
    return Pattern.compile(regex).matcher(this).replaceAll(replacement);
}
public String replaceAll(String replacement) {
    reset();
    boolean result = find();
    if (result) {
        StringBuffer sb = new StringBuffer();
        do {
            appendReplacement(sb, replacement);
            result = find();
        } while (result);
        appendTail(sb);
        return sb.toString();
    }
    return text.toString();
}
So it is creating new StringBuffers and creating Strings out of those
 
darn...
 
Yuck....
 
but actually, can't he do a regex that contains it all with or?
 
@rolfl Fresh and awake?
 
Nope.
The code uses StringBuffer and not StringBuilder?
Hello ChillWorld welcome to the 2nd.
 
12:17 PM
3 times he just replace with ""
@rolfl thx (and now cig break)
 
Plop, I'm back.
@chillworld Hey, welcome to the 2nd Monitor :)
 
@rolfl Good catch there... Concurrency issues are non-existant either because it's a local object
 
0
Q: sql indexing and performance

VIckybI am using mysql5.1, i have table which has about 15 lakh (1.5 million) records.This table has records for different entities i.e child records for all master entities. There are 8 columns in this table , out of which 6 columns are clubbed to make a primary key. These columns could be individual...

 
@skiwi - I am just catching up here, and it appears that my "Yuck" was premature.
Yes, the StringBuffer class is not ideal, but the appendReplacement only works on StringBuffer, and not StringBuilder.
 
You might be able to do it with one regex using .appendReplacement(). I'll leave it to someone else to figure out how. It would probably look nasty, though.
 
12:21 PM
I consider it to be a design flaw in the API
 
@chillworld the problem here is the order of replacing, but you are right he could pack the last 3 together to one regex...
 
@Morwenn thx good day to you to :)
 
@rolfl Ah, that might explain it
 
@Vogel612 yeah, I think he left the real replacment out.
 
Good morning
 
12:24 PM
0
A: What would be preferred aesthetically and performance wise?

skiwiI agree mostly with @Vogel612's answer, the second version is more concise and there is no need to litter variables all over the place as is done in the first version. Another point is that code should be self-documenting, which @Vogel612 also suggests, but else you can still add a comment behin...

 
wouldn't be so sure about that.. the second and last regex are just for replacing linebreaks and multiple whitespaces.. it makes sense to actually replace them with a single whitespace only
 
@konijn good afternoon :)
 
@Vogel612 RE my comment: actually, I meant this indentation style:
tweet = tweet
    .replaceAll(…)
    .replaceAll(…)
    ...
 
@amon I haven't got eclipse running currently, so my indentation is probably off ...
but it looks way more similar than the current ;)
 
Isn't it usually a double-tab for those?
 
12:28 PM
@skiwi that probably depends on your IDE preferences.
 
True
I am used to such indentation by now because of the streams API
 
even then my indentation would have been off by 2 spaces...
I really should learn properly how to use them..
 
12:41 PM
I hate jQuery
 
why, of the many reasons?
 
@Malachi Enjoy plain javascript ^^
 
I had something that worked on a site, then I tried to add something else and it killed the other thing, now I have to reclone the prod site....
@skiwi I could probably handle plain JavaScript
I just don't want to spend my own time learning something as trivial as a dropdown menu, I should just try to do it in CSS again. but I want so much more from this site.....ugh
 
I think jQuery is easier though
 
anyway off to work
 
12:44 PM
Suddenly, magic folder names D:\DPC2\converted\2\2.2\2.tiff, that 2.2 just appeared out of nowhere.
 
poof .... a magical unicorn appears !
 
let that unicorn see at mine problems here :)
ancient jboss and logger problems :)
 
message: could not initialize log4j
 
lol was it true
2014-04-17 13:04:20,355 [main] ERROR o.a.c.c.C.[.w.[localhost].[/people] - Exception starting filter monitoring
java.lang.NoSuchMethodError: net.bull.javamelody.Log4JAppender.setThreshold(Lorg/apache/log4j/Priority;)V
at net.bull.javamelody.Log4JAppender.<init>(Log4JAppender.java:43) ~[javamelody-core-1.48.0.jar:1.48.0]
at net.bull.javamelody.Log4JAppender.<clinit>(Log4JAppender.java:35) ~[javamelody-core-1.48.0.jar:1.48.0]
at net.bull.javamelody.FilterContext.initLogs(FilterContext.java:278) ~[javamelody-core-1.48.0.jar:1.48.0]
or this :
2014-04-17 10:18:03,835 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:60) ~[jboss-logging-3.1.3.GA.jar:1.0.0.GA (build: CVSTag=Branch_1_0 date=200609301059)]
at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:35) ~[jboss-logging-3.1.3.GA.jar:1.0.0.GA (build: CVSTag=Branch_1_0 date=200609301059)]
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:98) ~[jboss-logging-3.1.3.GA.jar:1.0.0.GA (build: CVSTag=Branch_1_0 date=200609301059)]
problem known with older jboss, hell yeah what do I have to use :D
 
sounds like fun
0
Q: Codility - Perm-Missing-Elem test can not get 100% performance

quartaelaI can not figure out why I don't get 100% success from the codility's Perm-Missing-Element test even I solve with O(n). I will appreciate for any answer. Also here you can see the problem with my solution link below; https://codility.com/demo/results/demoVTDAWC-P25/

Offtopic or salvagable?
 
12:54 PM
I had to ask for aid cause after 3 days of spitting pom's I'm exhausted
 
monking
 
monking @BenVlodgi
 
0
Q: Codility - Perm-Missing-Elem test can not get 100% performance

quartaelaI can not figure out why I don't get 100% success from the codility's Perm-Missing-Element test even I solve with O(n). I will appreciate for any answer. Also here you can see the problem with my solution link below; https://codility.com/demo/results/demoVTDAWC-P25/

 
@skiwi currently off-topic.
 
how goes the reviwing this morning
 
12:55 PM
"linked code"
 
was just looking at that, thinking also off topic
 
quite well for skiwi.
feel free to flag / vote.
@Ben 1 Answer --> 50 rep ;)
<-- Back to manually inputting books to our system..
 
@Vogel612 awe yeah
#soclose
 
I wish myself good luck in trying to ignore hidden directories in Netbeans...
With git I can modify the .gitignore, with SVN I have no clue
 
Ah, Taxonomist badge!
 
1:02 PM
you can exclude from commit with netbeans
 
Unless the folder is hidden...
 
one sec ;)
 
@skiwi there is that thing called context menu. You can right-click the folder and usually under SVN there is SVN Ignore
 
@Vogel612 Unfortunately the folder is not visible at all when it's hidden :(
 
sec...
Control Panel > Folder Options > View > Show hidden files, folders and drives
should do the trick ;)
 
1:08 PM
You Windows or netbeans?
 
windows.
 
Because in Windows it's on, it isn't showing in the inbuilt file browser in NB
Which makes it even more annoying :p
 
meh. If you installed a full SVN you should be able to use the windows context menu for ignores..
With my Tortoise SVN the context menu was expanded by 12 Entries..
 
I'll leave it for now, don't need that hidden folder anyway
 
one of them was SVN Ignore..
 
1:10 PM
I just found something
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|git.+|hgignore)$).‌​*$ that's wha netbeans ignores currently
Somewhere the . is there
Why would it even ignore anything in a file browser? I don't see the point
I just removed all and they show now :)
 
@skiwi if you go under files in stead of projects
I tested and I can see hidden folders there (not sure the svn folder)
 
@chillworld Didn't work for me until I removed the ignored files setting, now it ignores nothing anymore :)
 
k
well, I take it for today, going home now :)
 
G'day
 
Does HTML/CSS also fall under codereview here? As they're rather markup languages
 
1:18 PM
thx and for the off topic thing, look here : WRONG ANSWER
got -2147483647 expected 1
 
@skiwi they do. there are multiple reviews present.
 
he counts everything up so int has overflow
 
0
Q: Admin CSS sidebar template

JimmyCould I get some feedback on my simple start to an admin template: http://jsfiddle.net/spadez/GHKxW/3/ HTML <div class="wrapper"> <div class="left"> <a href="#"><img src="nav_sprite.jpg" class="logo" /></a> <ul class="navigation"> <li id="dashboard"><a href="index.ht...

 
I'm bored, need some good CR question...
 
@skiwi I'm reading questions On Parenting.SE and that's pretty interesting.
There is no "good parenting method" and everybody wants to raise their child differently.
 
1:28 PM
Out of Ammo, again, at least know I've thought of starring questions that I want to get back to to vote
 
today is a work hard day o_O
 
Today is a day where I need to survive 1,5 more hours
 
@cimmanon is back!!
1
A: Simple grid system made out of CSS columns

cimmanonThere are a few good reasons why no one uses the multi-column module for "grids". They are rigid There are only 2 options for the column-span property: none or all. Want to have elements spanning 2 columns? Too bad. Also, last time I checked, Mozilla does not support the column-span property...

 
@chillworld - see updated answer: codereview.stackexchange.com/a/47477/31503
 
1:52 PM
very good code here, I almost couldn't find anything to review
0
A: Admin CSS sidebar template

MalachiThis looks pretty good for a start. the only thing that I see right away is your CSS formatting a { text-decoration: none } html, body {height: 100%; max-height: 100%; padding:0; margin:0;} .wrapper {display:table; width:100%; height:100%;} .wrapper > div {display:table-cell; vertical-alig...

 
@Malachi is it intended, that this is not indented?
#btn_sec { background-color: #e74c3c; color:white; }
 
should I change my thinking on this a little bit??? I could be skewed, wouldn't be the first time someone has said "Malachi you are skewed"
@Vogel612 oops, thanks I fixed it
 
@Malachi Because it is an answer, not a question.
Not a great answer, but this improves the answer.
 
the answerer used the same variables as the OP on purpose.
 
Oh ?
Let me revisit it....
Also, it is from 2011.... and the answerer has not been seen in a few weeks.
 
1:58 PM
I agree it's not a good answer, I would hope for something with some words that weren't in a code block...lol
@rolfl I hear that
mar 26th
AMgdy, Egypt
216 2 5
 
I disagree that "the answerer used the same variables as the OP on purpose" is important.
 
and 5 hours ago on SO
 
The suggested edit improves the answer.
 
@rolfl I agree the code is more readable.
the Editor should have posted an answer, which is what I will probably do.
 
As a third voice on that... one could even say that the change of variable names could also be an implicit call to "use better variable names"
BTW.Normal, why is that comment still around ?
 
2:05 PM
@Vogel612 - because no-one flagged it as obsolete.
 
0
A: LINQ to SQL Joining Entities

MalachiYour j and i variables are pretty plain and won't make this code fun to maintain (especially if it were a big block of code) You should use more descriptive variables like the ones used in the example code given by @AMgdy. The code will take a little bit longer to write, but in a year or two ...

 
Obsolete-flag applied.
 
88 more edits still, dang...
 
helpful.
 
ain't nobody got time for that
 
2:10 PM
0
Q: Concise nested statements

StarkersI really like the ruby ? : syntax for if else statements. However, I'm not sure how to do the following with a nested statement: if information.is_empty? if leader? || possessor? link_to('update ' + contextual('your') + ' credentials!', edit_user_path) else user.name + ' hasn\'...

0
Q: Why is this code giving me a wrong answer?

user3272626I have solved this problem in C, but I get wrong answer every time, could you maybe tell me what I did wrong? Also, don't laugh at my code, I started learning C 7 days ago :) #include <stdio.h> #include <string.h> long long proba(char a[][1001], int y1, int x1, int p, int q, int y2, int x2, cha...

 
@StackExchange That sounds sooooooooooooo off-topic.
 
^^^ that sounds on-topic ..... not!
Monking Morwenn!
 
Hey! But I've been there for a while :p
 
Spot the contradiction:
> I have solved this problem in C, but I get wrong answer every time
 
I love when questions begin that way.
 
2:14 PM
@rolfl That's a cool way of solving issues.
 
"My code is good but not the answer"
That's strange, his link to Ideone does indeed print the good results.
Oh, I get what he means: he has the good results for the examples but not the good one for the input that would allow him to beat the challenge.
 
This is like a litmus test for CodeReview
we could easily close this question as off topic
and loose a potential user forever
or.. do something else
4
 
@konijn - "Try to avoid single name variables"
single-letter?
 
need moar coffee ( fixed)
5
Also, totally unrelated, I think people with more rep should be able to cast more votes
3
 
2:29 PM
I really need to learn LINQ
 
0
Q: PanelScrollable - a reusable class for rendering a changeable number of panels

durron597This class (PanelScrollable) is part of my view package, in an MVP designed Java Swing system. I am not using any MVP frameworks, it's all custom. The reason I'm posting this code is that I fear too much of the rendering logic is directly accessing Swing components, making it difficult to unit t...

 
2:58 PM
0
Q: HTTPCache and MemoryCache cross dependency

ChaoAfter asking a question on StackOverflow about the two .NET caching systems taking dependencies on each other I gave implementing them a go. I posted them as my own answer there but before accepting the answer I'd like some second opinions on the implementations. HttpCacheChangeMonitor Allows O...

 
00:00 - 15:0015:00 - 00:00

« first day (348 days earlier)      last day (3670 days later) »