« first day (423 days earlier)      last day (3579 days later) » 

6:00 PM
@200_success And then there's the question of interpreting the packets...
Pushing to git://94.254.79.94/project.git
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3)
^^ Then it stops. Nothing happens.
[23852] Connection from 212.116.xx.xxx:58711
[23852] Extended attributes (19 bytes) exist <host=xx.254.xx.xx>
[23852] Request receive-pack for '/project.git'
^^ That's the output from: git daemon --enable=receive-pack --reuseaddr --export-all --verbose --base-path=/var/cache/git/ /var/cache/git/
 
I was told to join here
 
Welcome, Robert!
 
Thanks
 
Hey Robert.
You were 'invited.... ' ;-)
There was some confustion about your edits earlier today.
I just wanted to assure you that the second edits were good, except you got pipped at the post by another answer.
 
6:06 PM
@rolfl That didn't seem to have any effect at all
 
@SimonAndréForsberg Use SSH.
The fix required a patched environment.
 
ah. okay. I have used stackoverflow.com for a while now but haven't tried asking for cleaner code / refactor help
 
@Robert - I did not want you to feel victimized.... and 'edit abused'.
or is that rollback-abused.
 
Nah, I was just trying to get the best answer possible. I prefer to stay within the guidelines of the site
 
I also recommend that you put together a follow-on question with your revised code.
Code Review gets 'complicated' if the answers don't seem to match the code in the question.
 
6:08 PM
@rofl I did already. I put all the updates I have since made on it
 
Ahh, I missed that... .
 
I didn't link to the new question. Wasn't sure if that was okay
 
It's fine, if you want (add links wherever they make sense, and it makes sense here).
The link on the new post to the old one will help people find the history
The link on the old to the new will let new users see that there is a revised version of the code.
 
good answer that might not get seen if I don't pimp for them.
1
A: Refactor a legacy application to a less-unwieldy state

NotProTo remove one level of nested if's you can negate first condition and return empty list if (! ListItems.Any()) return nodes; One more thing which wasn't mention yet is if (item.key.Equals(initialCrs)) { child.Children.Add(grandChild); } else { initialCrs = item.key; parent....

Hey @Robert! Nice to see you here! Glad you are getting everything squared away!
 
Okay link added in a comment. Should I put it in the post instead?
 
6:17 PM
I'll run through and do it, and that will be fine.
 
Thanks for the heads up
 
@Robert - the 'rules' about editing your question only apply to the code in your question.
 
That makes more sense
 
Sorry about the confusion in my comment, @Robert. I wasn't aware that it was supposed to be a follow-up.
 
Still working out the intricacies of this site. It's all good.
 
6:27 PM
We're still trying to make this info more visible. No other site has to deal with such things.
 
Thoughts anyone? I'm competing with @Malachi for accepted answer ;-)
0
A: Is there any way to speed up this stored procedure?

PhrancisGreat answer by @Malachi. Let's talk about performance. Variables You have lots of variables and this can slow it down. I see at least two that could be completely eliminated: SET @Now = getdate() SET @Today = DATEADD(dd, 0, DATEDIFF(dd, 0, @Now)) There is not really a point in setting a va...

 
We're still trying to make this info more visible. No other site has to deal with such things.
 
@rolfl can you post a link to this on the meta page? I can't access it from here.
 
@Phrancis... that does Q's only, right?
 
6:43 PM
I believe so
Actually no it doesn't let me twek it
tweak
 
twerk?
The join to tags only works for questions
 
WHERE LEN(Body) > 200
AND Posts.Tags IS NOT NULL
AND Posts.PostTypeID = 1
Now this should return only questions
 
0
Q: Best method of returning similar objects to clients

Nick WilliamsI am wondering what is the best way of returning data to a client where the data is similar in some way. We have a requirement to allow clients to connect to our software via a SOAP method, and we will return all the 'events' which have happened to a particular object. For example in an online s...

 
Wait I'm going to do something funny with the default parameter
There:
 
7:04 PM
Welcome to Second Monitor @Robert!
 
7:18 PM
What, if any, new permissions become available at 1000 rep? I know it's on meta but I can't see it from here :(
I'm at 911 now
 
@Phrancis During beta, you will be able to 1.) make direct edits, 2.) review suggested edits, and 3.) review low-quality posts.
 
@Phrancis Nice Answer
 
Oh cool. Low-quality posts I'm guessing are in a different queue/section?
 
Yes
 
Thank you @Malachi !
I don't like all his LEFT JOIN if it were me I would find a different more efficient way to get all this data together.
 
7:28 PM
@Phrancis or create new tables to hold the data more efficiently.
some people mistake efficiency to mean less
2
it is not that way in SQL(and sometimes programming altogether) you need more code to translate the data more efficiently
 
Sooo I just had to explain to a manager in my department all about Little Bobby Tables.... That was awkward.
3
 
LOL
 
Yeah. I tend to stick to KISS as much as possible. What he's trying to do is very convoluted, if he posted example result set I would start from the ground up.
 
I guess I'll mostly be the only mod on-duty today, since it's Canada Day. :P
3
 
78 days left for 1337 days in beta
4
 
7:37 PM
Nice
 
@palacsint Cool, but kinda sad.
 
yeah
 
Why isn't this site linked in reputation to the main stack exchange?
 
I don't know. What do you mean @Robert?
 
@Robert Yeah, I'd love that - reading deleted posts on SO would be nice
 
7:51 PM
Can anyone think of a widely used programming language where back tick is a reserved character/operator?
 
Beat me to it.
Thanks for sharing that query @Mat'sMug.
 
Never heard of that, what's it used for principally?
 
anything you can do with a batch file, and more
 
isn't it like DOS and stuff?
 
7:56 PM
you make a script and run it. could do anything, you can use all of .net!
it replaces batch files
and if you have a small command-line utility console app, it probably could be rewritten in PS
 
Technically, it replaces vbscript, which was supposed to replace .bat files.
 
Look at this screenshot guys. This is HOW BAD this browser looks like
1 sec
 
@Phrancis any of the unix shells (csh, bash, sh, ksh, zsh) and also perl.
 
Can you imagine working ALL DAY with this as your ONLY browser?
 
I guess you get used to it..
 
8:06 PM
We are proceeding with the burnination process for some of the meta tags. If you'd like, you may help out by retagging any questions here with non-meta tags.
5
 
@Jamal exactly which tags are we looking for?
 
The ones in my answer: , , and .
Others may follow, but not yet.
 
Those are questions that will be affected by the burnination, and will not be left with useful tags.
(not that the tags were useful to start with)
 
We're still looking over the Essential Reading question, so you may ignore it.
 
in The Upper Room, 3 mins ago, by Caleb
@fredsbend Hey they have to issue him his hammer first. Time enough for everybody to get your tin-foil-hats on ;-)
 
8:10 PM
@Jamal Are those questions that would otherwise be "ophaned" without a tag?
 
Just the ones with tags that will be burninated. Questions without a tag automatically receive . If a question just simply cannot use a non-meta tag, it may be subject to deletion.
 
@Jamal quite a bunch are "locked by @Jamal" or just closed.. do we retag closed questions?
 
I have been hacking that query again, it's grown a bit.... but, the idea is that we want questions to be tagged....... with something useful.
 
Like this one.
18
Q: Essential reading / learning resources for the code reviewer?

LREWhat materials have you read (or in another way learned from) that make you a better reviewer? 1 item per answer, please. Let the good ones get the votes.

 
You may retag closed ones, and you'll have to flag locked ones, specifying how it should be retagged.
 
8:13 PM
what language is this?
6
Q: Placement of Conditionals

u2622I've noticed a tendency towards two styles of conditionally executing methods: Conditional before the call def foo(thing) puts thing end if thing foo(thing) end Conditional within the call def foo(thing) return unless thing puts thing end foo(thing) Pros of 1: Method is concis...

can only share locked post @Jamal
21
Q: Is it bad to use a ternary inside of an if condition?

Peter OlsonLet's suppose I have some sort of form that automatically performs a copy procedure when the user either focuses on a textbox, or highlights some text. Let's suppose that the user has a preference of copying on focus or copying on highlight. By default, it copies on highlight... which leads us t...

 
@Mat'sMug It's Ruby.
 
thanks @ckuhn203
 
No problem. I did put a close vote on that one though.
 
@Mat'sMug I thought all locked posts can be flagged. Wow.
 
OK, I have updated the query, I think all questions returned should have some form of modification before we process the burnination.
 
8:17 PM
@rolfl can you link? I want to look at your code since you've been doing this for so long :)
 
If you think there are languages (real tags) that should be included in the 'good-tag' list?
 
@rolfl arduino maybe.
 
@Mat'sMug Oh... I don't have a flag button, either.
 
what language is this one?
4
Q: When returning inside of an if block, should an else block be used?

Jake KingLet's say I'm writing a method which can return two very different things based on parameters. I could write that bit of code like this: function getMyThing(a) { if (a == 0) { // Do some stuff return b; } else { // Do some stuff return c; } } This pi...

 
8:20 PM
@ckuhn203 arduino is a platform, you may as well tag it 'intel'.
 
Fair enough @rolfl. Does anyone know what language this is? codereview.stackexchange.com/questions/33561/…
 
@Mat'sMug @Jamal - I have no issue deleting codereview.stackexchange.com/q/21123/23788
 
underexposed:
2
A: Arduino More maintainable code

Aseem BansalI'll start by breaking the code down into different files. There are a many #define and const int here. If I am correct that will definitely grow with your project. Having all the constants in a different file is always a good idea if you are considering making it even moderately big. So to your ...

@ckuhn203 my bet is on C++, but you shouldn't trust that
 
@rolfl Me, neither. Many of these types of questions are available on Programmers anway.
 
8:22 PM
screw historical significance?
 
Screwed.
 
lol
 
it is older than 6 months, so no rep is lost by anyone, and it's not a good fit.
 
Perhaps we could do like SO and have an archive of these historical posts.
 
@rolfl you sure of that? rep freezes after 6 months?
 
8:25 PM
@ckuhn203 I guess Arduino is considered a language here. This is not C nor C++.
 
No, I am not sure.....
Apparently it is 60 days:
8
A: Clarifying the criteria for when rep from deleted posts is maintained

Nick CraverThe rules are as follows: 60+ days must pass between when the post is created and when it is deleted for the rep to "stick" The score must be 3 or higher at at the time the post was deleted (since the score can't change while it's deleted, that's the same as current score)

@Jamal - what about not deleting it, and tagging it with a new meta-tag....?
 
Looks like Arduino is a language. I guess.
 
something like
 
@rolfl Perhaps
 
Naahhh, I have to get over the deletion aversion.
It's a crap question for CR.
 
8:31 PM
so wait a minute, we burn meta-tags, so we go through posts with meta-tags and remove them meta-tags. and locked ones we retag with.. YAMT?
(yet another meta-tag)
 
But we can first focus on cleaning up these questions.
 
@Mat'sMug - the issue is if we end up with questions that have no tags.
and, there will be this happening.
the locked question about 1-line declarations is not one of them, but it exposes a different problem.
 
Still, if these things are available on Programmers, then we don't have to preserve them.
 
what to do about questions that only exist because they are old.
 
and off-topic by today's rulebook?
 
8:35 PM
Well, yes.
So, if I undelete that question (which I am considering), what should it be tagged with?
 
I think that deserves a meta question
 
That is common practice, of sorts... on other SE sites.
But, for CR, it probably deserves a meta question
 
the code certainly has a language? that's already one tag..
 
What language?
Could be Java, C, C++, Obj C, etc.
 
lol tag it with [JAVA]
 
8:37 PM
I presume C# as well.
 
indeed
 
So, by today's standards, it is hypothetical, and ....
Huh, and there's a to burninate as well....
added style to phase-2 list of burninations.
 
1
Q: Reading names and ages

jliv902This code reads names and ages from an array and prints them. Then it increments all of the ages and re-prints the names and ages. This was written in a new and innovative anti-functional, anti-OO paradigm. It is the pinnacle of all modern C++ code. #include <iostream> using namespace std ; co...

 
@Mat'sMug Just tag ALL THE THINGS WITH [JAVA]!!!
 
Does this contain enough reviewable code?
 
8:47 PM
Technically, yes.... I will recommend a tag in addition to the .
mod_rewrite is more of a language.
 
@CaptainObvious Trying to decide whether the OP is a troll or an ignoramus, but leaning (heavily) toward troll.
 
I'm with you .... recommendations?
I am tempted to suggest an answer..... that points that out, will be fine.
(nicely).
 
@ckuhn203 got the enums and UDT's to work!
 
This is a good cleanup. I've come across a question needing a new language tag.
Okay, I've cleaned up these questions quite a bit. Some still have meta tags, but I don't think any will become untagged after the first round of burnination.
 
@jamal hardly... should probably be on SO
 
9:02 PM
@JohnP No, I had to ask! :)
Evening all
 
hey @CodeX
 
Hi @CodeX
 
@Mat'sMug SWEET!
 
@Mat'sMug @Malachi @MadaraUchiha @Jamal @Phrancis @ckuhn203 @chillworld @CaptainObvious @rolfl @SimonAndréForsberg I love you all! Thankyou! :)
 
Who gave @CodeX the 'shrooms?
6
 
9:05 PM
@CodeX Well, @CaptainObvious loves you back
 
We love you too, @CodeX lol.
 
<3
 
You guys are awesome, really helped me out BIG time
 
lol
Ohhhh myyyy
@CodeX I must be getting sometimers. I don't remember how we helped you out.
 
9:07 PM
This is a great answer:
5
A: What are the uses of Brainf**k?

DmitriThere are no practical uses of Brainfuck.

 
lol
 
Your group advice, your enthusiasm for code, you guys inspire me
 
@CodeX Oh boy, what have we done now?
 
Gave him the manual.
 
@Phrancis Best answer ever.
 
9:10 PM
I cant upvote that answer because i only have 13 repz @Phrancis :(
 
he smoked it.
 
That's OK @CodeX I'll upvote it for you
 
@ckuhn203 Updating the query.
 
Ok lesson learnt, never google search images "Brainfuck"..
 
@CodeX Ouch.... learned the hard way I take it.
 
9:13 PM
Just glad the kids are in bed..
 
Hmm, was not as bad as I expected.
 
@rolfl Of course he did. What else can you do with a manual?
 
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++‌​.------.--------.>>+.>++.
 
gotta go. later!
 
CyA!
 
9:15 PM
Seeya
 
I'm out too. Cya guys!
 
@Mat'sMug 101 Simons on the wall
 
@rolfl I dunno--I don't think I'm going to waste spend time writing an answer.
 
I agree.
 
Bye @ckuhn203
 
9:18 PM
I think the post won't survive long.
 
i love to bind() and execute() !
prepare(), bind(), execute()
3
 
@rolfl There's not really a close reason that fits it precisely, but I doubt that'll keep it open.
 
Closing this post because it is apparent that there will be no right answers for this question. If the language is so new, and revolutionary, there is just one expert in it, and would thus be entirely opinion-based as to what a reasonable answer would be. — rolfl ♦ 1 min ago
 
@rolfl I guess you had inside information on that one... :-)
 
0
Q: Two Datasets Same Query

aaronmallenI have a form that allows the user to select a server. This will execute the exact same query just on a different server. private void QueryButton_Click(object sender, EventArgs e) { switch (this.FindByComboBox.SelectedIndex) { case 0: ByTargetVDN(); brea...

 
9:21 PM
Jerry, the only-upside of questions like that, is that it means we are becomming a bigger part of the SE system, when people start trolling here.
 
Well, the tag does make sense with goto. :-P
 
No, it does not.
A person who can get that code working with the goto's is no beginner.
2
 
I'm not defending the question anyway.
 
@CodeX ...... you're welcome......
 
@CodeX you just made me laugh uncontrollably for several minutes
 
9:24 PM
goto's? Where?
 
@Malachi *you're
 
@Phrancis :)
 
@rolfl Once upon a time, most of us did (in BASIC, and before that in FORTRAN). If you look back far enough, we even used things like if x 100, 200, 300, which meant "goto 100 if x is negative, 200 if x is 0, and 300 if x is positive".
 
@CodeX That's the spirit!!
 
Jerry, I was part of some of that.... I know GOTO.
 
9:26 PM
where is this question?
 
if nothing else, I learned that using assembler for the PIC Microchip.
 
-3
Q: Reading and incrementing names and ages

jliv902This code reads names and ages from an array and prints them. Then it increments all of the ages and re-prints the names and ages. This was written in an anti-functional, anti-OO paradigm. #include <iostream> using namespace std ; const int size = 3 ; const char * names [] = {"Bob", "Alice", "...

@rolfl I don't doubt it for a moment (as I recall, you're only about 10 years younger than I am). Most days I manage to forget that stuff though...
Point is: with enough persistence, even a beginner can twist his mind enough to code that way and get things to work--but, of course, doing so is a pretty crappy idea, so I quite agree that the question is pointless.
 
@rolfl I suddenly realized the reason for on-topic question #4
 
Where would be the best place to post a "page fetching script" for security review?
 
@CodeX CR can most likely spot some potential security concerns if you post for review (and of course help with better code if needed)
 
9:34 PM
Ok, thanks ill post it here then
 
I've done it a few times for PHP/SQL injection for example
 
depending on how the question is written it could go on IT Security as well
 
Sure thing
 
Cheers
 
Why not both in fact. ITS would know stuff that CR wouldn't and vice-versa. Like context.
 
9:43 PM
Can you cross post like that? I thought that was frowned upon on SE sites.
 
@JohnP It's frowned on in general, because site topics are mostly chosen to not overlap, so very few questions really belong on more than one site.
 
Ok, ill just post it here then
 
Or you could post on SO so Jon Skeet can get some more rep ;-)
 
does this look off topic to anyone else?
0
Q: Two Datasets Same Query

aaronmallenI have a form that allows the user to select a server. This will execute the exact same query just on a different server. private void QueryButton_Click(object sender, EventArgs e) { switch (this.FindByComboBox.SelectedIndex) { case 0: ByTargetVDN(); brea...

 
@Malachi it does to me "but of course this doesn't work" he's asking how to write code... should go on SO maybe.
"
Unless CR reviews only the working (top) portion
 
9:51 PM
does the top work the way he wants, or is he asking for code?
 
the top code works, he wants to streamline it. The bottom "attempt" didn't work.
 
0
Q: Admin page select function

CodeXI am using this script to get the admin pages via this query string ?page= once the admin is logged in. Just needing a review, opinions Function: // GET PAGE FROM QUERY STRING public function page_select($page) { $ext = '.php'; $file = 'pages/'.$page.$ext; if(file_exists($file)) { ...

And on that note, G'night all
 
0
Q: Admin page select function

CodeXI am using this script to get the admin pages via this query string ?page= once the admin is logged in. Just needing a review, opinions Function: // GET PAGE FROM QUERY STRING public function page_select($page) { $ext = '.php'; $file = 'pages/'.$page.$ext; if(file_exists($file)) { ...

 
@Malachi seems ambiguous. I think the bottom section is provided as an example of how he would want it to look as streamlined
 
@CodeX later
 
9:59 PM
Bye @CodeX
 
@Phrancis , @JohnP, that is what I was thinking but wasn't sure, some people try to skate stuff by us
 
What I don't get is why he's filling different datasets? You can't get around having a different source assignment, but after that all code should be reusable.
 
INSERT INTO #Leaving SELECT * FROM [The 2nd Monitor] WHERE UserName = 'Phrancis';
 
nm. I read it backwards.
 
DELETE FROM [The 2nd Monitor] WHERE UserName = 'Phrancis';
INSERT INTO Car SELECT * FROM #Leaving;
 
10:08 PM
Cheers Phrancis.
JohnP, that's for in actual posts....
 
How do you preformat code?
 
not chat.
 
@JohnP all of that code is messed up
later @Phrancis
 
JohnP, either indent the line with 4 spaces
this is code
or use backtics.....
 
DROP Phrancis;
 
10:09 PM
this is also code
If you have multiple lines, use shift-enter
and, on the second line, you get a new `fixed font` button, which, if you select it
will indent all your input with 4 spaces, and it will be code.
 
this is a test of
shift + enter
My god, it's full of stars...
 
You got it.
If you have really long input, the output will be limited, and a 'more' button added.
 
maybe someone will set him straight or try to run his code and close the question.
"screw you guys, I'm going home"
JK LOL
 
0
Q: Pseudo-random number generator implementation check

AlbireoI was searching for a pseudo-random number generator for C# and stumbled upon Tales from the CryptoRandom by Stephen Toub and Shawn Farkas, so I tried to implement a variation of their code. The main difference with their implementation is mine returns inclusive ranges (e.g [0,1] and [min,max] i...

 
 
1 hour later…
11:29 PM
@Malachi - opavote.org/results/4582121628762112/0 - you got votes ;-)
 
11:44 PM
Duplicates:
http://codereview.stackexchange.com/questions/13737/when-returning-inside-of-an-if-block-should-an-else-block-be-used
http://codereview.stackexchange.com/questions/2084/if-return-else-return
TTGTB
 
Night
 

« first day (423 days earlier)      last day (3579 days later) »