« first day (515 days earlier)      last day (3502 days later) » 

12:00 AM
There, much better.
"capitalised" is valid spelling in some many parts of the word right?
 
12:15 AM
I'd go with -ized, but yeah... assuming *world ;)
 
Erm, yeah that.
 
> You've earned the "Refiner" badge (Edited and answered 50 questions (both actions within 12 hours, answer score > 0)).
 
it's live?! Congrats!
 
3 hours ago, by Jeroen Vannevel
Huh, refiner badge on SO
3 hours ago, by rolfl
Well, it's live now on CR as well, but noone has been awarded any of the three. I expect there will be only 1 refiner on CR.
1 hour ago, by Malachi
You've earned the "Refiner" badge (Edited and answered 50 questions (both actions within 12 hours, answer score > 0)).
 
Cool!
 
12:17 AM
@Phrancis I did correct myself later ;-)
3 hours ago, by rolfl
The stats for CR will be, approximately, http://data.stackexchange.com/codereview/query/227430/numbers-of-keeper-archivis‌​t-curator
3 hours ago, by rolfl
the hack query is: http://data.stackexchange.com/codereview/query/229354/numbers-of-keeper-archivis‌​t-curator
And it seems Malachi makes 5.... not the 4 the query shows.
And, I asked the dev team, if you got the silver badge, you have not (yet) got the bronze badge.
 
It's not yet on the badges page
They're not yet on the badges page
Ugh
 
Are they on the badges page yet, @Mat'sMug?
 
phone chat lag... edit last spawned a new message...
 
"Sure, blame it on your ISP phone."
(obscure AOEII reference there)
 
12:33 AM
@Mat'sMug ever been states-side? It's funny how beers labeled "Dry" in Canada, they label "Ice" instead here. So you get a Molson Ice, Labatt Blue Ice, Milwaukee's Best Ice, etc.
 
interesting
 
Also... "Laurentides" from up there they label Molson Canadian here...
 
...but then, ...what's the Molson Canadian they're giving us then?
 
Guess "Laurentides" is a pretty challenging word for American population to pronounce
@Mat'sMug It's "Laurentides" with a different label :)
BUT! I did manage to find some Fin Du Monde brews in a few places!
 
woah
Unibroue!
 
12:36 AM
Very expensive, like $8 a bottle for any Unibroue, but it's here!
(tall bottle)
 
so they have La Maudite also?
 
I think I might have seen that one...
All those are imports here and usually on the same shelf rack as crappy Corona and Heineken. They often get overlooked because of price.
 
same shelf as Tsing Tao?
 
You can get a 6-pack of Labatt Blue for $9 or a 30-pack of Natural Dry Ice for $16
 
lol
 
12:41 AM
I haven't looked for that one, never had it. Seen Zapporo (wrong country) once or twice.
 
0
Q: How to optimise this beastly if statement JAVA

RexPRGMERI have this rather ghastly if statement and I'm sure they're is a way to condense it but I don't really know how! Does anyone know how? I was told a case statement would work but Ive never used a case statement and I'm not sure! Sorry for any mistakes in this post! I'm a newbie to code review! My...

 
LOL!!
 
OH NO. JAVA.
2
 
Mine!
 
@Jamal I immortalized it for you :)
 
12:46 AM
That title can be imp-- oh wait, there doesn't appear to be any real purpose to the code. Damn.
 
12:58 AM
Where are c and p defined? It could be beneficial to include the entire method, for context. As you've noticed, that code smells; reviewers will definitely address the if...else blocks, and possibly much, much more - the more you give to CR, the more CR gives back to you! Welcome to Code Review! — Mat's Mug 6 secs ago
 
That's a great comment @mug
 
thanks! :)
There I added the whole method! — RexPRGMER 21 secs ago
voilà!
 
    }
    }
^^ bad sign?
 
no, bad indentation!
 
1:13 AM
loved answering that one.
 
<sings>Walk like an Egyptian</sings>
 
lol
> Also notice the names I've used. Avoid single-letter identifiers, like p and c. Code is much easier to read when it's... readable.
 
0
Q: A PDO connection classto initiate multiple connection and easy access

ThomasKI've been looking for a way to make the database connection easy available directry from any script, and from inside other classes. And since I tend to have different connections based on what action to execute, I had to find a way to easily scale the amount of connection needed. Here's the solu...

 
and that is how I answered my first JAVA question!
2
 
Downvotes needed where?
 
1:21 AM
19 mins ago, by Mat's Mug
There I added the whole method! — RexPRGMER 21 secs ago
 
> DOWNVOTE ... ALL THE COMMENTS
 
I figured those comments would be flagged obsolete already.... slackers.
 
cough
 
Who's slacking? =;)-
 
@Mat'sMug your answer brought to mind mr. ed: a course is a course, of course of course...
 
1:25 AM
> Then it would be possible to only write the block once. Given courses is an array of courses Course... of course:
Hello @MaximeMorin
 
:)
hey @MaximeMorin!
 
I'll bet my allowance you're from Quebec also, @MaximeMorin
 
^^ skidi
 
and no-one can add a course, of course, that is, of course, unless the course is in a free period
 
1:27 AM
Well... you get to keep your allowance...
 
Lots of Morin's where I'm from (Beauce)
I'm a Veilleux ;-)
 
I'm a Mug
5
 
I'm not from Beauce. I'm from Launaudière
 
Ah, never been there. So... what's up?
 
I'm a Programmer
 
1:32 AM
Not much, was wondering what you guys were doing here. :D
 
killing zombies :)
33
Q: What's a Zombie? And what are the many other memes of Code Review?

Simon André ForsbergWhat is a Zombie? Why are Code Reviewers so violent and talking about killing Zombies all the time? And what ammo are they talking about? What is a TS? What does RSA mean? And what other Code Review-specific memes are there? (As the number of memes grows and grows, and Malachi's wish to vote fo...

 
in The Whiteboard, 3 hours ago, by rolfl
Question: as a mod on Code Review, I often get flags saying a question is possibly worth migrating to programmers (normally they are not), but seeing the above makes me question my instincts on it.... so, are questions like that on topic?
^^ interesting discussion
 
@Mat'sMug That's serious business... o_O
 
@Mat'sMug if (course.isFree()) { should be if (courses[period].isFree()) {
 
@MaximeMorin just passing time, discussing code, discussing the site, and... writing FizzBuzz starring lols passing time :)
 
1:36 AM
@mjolka what if courses[period] is null?
but yeah
 
I guess that means it's free no
?
 
@Mat'sMug good catch
 
yeah, but calling .isFree() on that will blow up with a NullPointerException
 
@MaximeMorin Very Serious
 
Visual Studio
Vital Signs
 
1:38 AM
@Mat'sMug So isFree isn't needed anymore, but only a null check?
 
Virtual Shit
 
yeah, but it bloats. I would probably have used a List<Course>, but I'd need to see the whole class
 
it's a weird design. it seems like periods that should be free, not courses
 
yeah
 
I agree
 
1:40 AM
I agree
Hi Maxime.... NAQ ... hmmmmm
 
lol
 
Not A Nother Quebecer... now, should I fix my typo to NAQ, or claim I meant NANQ?
Damn those Canadians.
 
^^ Fix
 
Fixing.
 
not another nosql query
 
1:42 AM
"Don't talk to me about life NoSQL"
 
^^ says the SQL guy
 
 
LOL
 
lol
5
 
Now, since I am (also) Canadian, should I apoligise for that too?
 
1:43 AM
No, just say thanks twice... ;)
 
s/apologise/apologize/
And it's zed not zee ;-)
 
s/s\/apologise\/apologize\//s\/apoligise\/apologize\//
@Phrancis You probably call it a ZEEEbra, don't you....
As an African too, I can assure you that the people who live with them call them Zebra with a short z
 
Doesn't surprise me! French is the same. Only English says ZEEEbra.
 
No, the Americans (and Canadians) say ZEEbra.
The English mostly get it right.
 
Oh, the Brits don't?
 
1:47 AM
nope... they get it right, and I am British too ;-)
So, I know these things.
 
Er, English ;p
 
monkeys always get it right.
2
 
I carry three passports, gets complicated.... South African, British, and Canadian....
Alright, well, @MaximeMorin - welcome to CR, hope you stay, we're the friendliest place on SE ;-)
Time for me to get myself out of .... 6 chat rooms, and get some real life things done .... like TV!
 
@rolfl I'm staying... until bed time...
 
later @rolfl!
 
1:50 AM
Bye @rolfl
 
@Mat'sMug - this Java question got migrated over ... perhaps you can help!
-6
Q: CS106A - Chapter 5 - Exercise 5: How can I streamline this code further?

Jerry KanskyI'm currently learning Java along with the Stanford online "Programming Methodology" course and, while it is awesome, I do lack any kind of human feedback. So here is my question: This exercise was to create a method that took a floating-point value x and an integer k and returned x to the powe...

 
> Partner: man all you did back in the day was elctro trance house
Me: You mean, Eurodance. And yes, that's about right.
 
@200_success - I requested the migration, by the way.... was it bad?
1
A: Raising a number to an integral power

200_successYour function fails to calculate \$x^0\$ correctly. I would expect it to return Double.NaN when \$x = 0\$, and 1 otherwise.

 
@200_success 0^0 makes my calculator say 1... is calc.exe borked?
it says le résultat est non défini. for 0/0
 
Does it say 1 or not defined? Makes a rather large difference...
 
1:54 AM
 
0^0 is undefined
says my Voyage 200...
 
Microsoft fail?
Even Google say 1...
 
I always thought x^0 was 1
 
1:58 AM
1
A: Power Series $0^{0}$

HurkylIn a power series, $x^n$ is not exponentiation operation on real numbers. Instead, it uses a different exponentiation operation; e.g. repeated multiplication suffices for this purpose. Therefore, $x^0=1$ identically. Of course, most people don't like to pay attention to this level of detail in s...

> they just treat x^0=1 when x=0 as a convention.
 
That's in the context of power series, was the CR question about that?
 
nope
 
@rolfl It's certainly not a Stack Overflow question. Whether it's a good CR question depends on whether you consider x^0 to be an edge case.
 
Time for me to go, good luck killing zombies!
 
come back anytime!
 
2:05 AM
1
Q: Iceblox game code, how can I make this more efficient, maintainable, changeable, etc

user4097000Working on this code to make it more efficient, maintainable, stable, etc. It's code for the iceblox game. What are some flaws in this code when thinking about analyzeability, stability, changeability, testability, and maintainability. What can I do as far as program changes to make this code mor...

 
int x[],y[],dx[],dy[],motion[],look[],creature[],ccount[],actors,flames; :O
 
1
Q: PHP: Code to test uptime of my personal server

BijanI made some code to test my personal servers uptime. It logs in to my router page and sees if it returns status 200. A cron job runs it every 5 minutes. Please let me know if I can make the code more efficient. <?php //Date date_default_timezone_set('America/Los_Angeles'); $date = date('m/d h:i:...

 
2:25 AM
@rolfl maybe
maybe not
TTGTB
It is a low down nasty thing to do. It's also the correct thing to do. — Null 21 hours ago
 
3:18 AM
Aren't you glad there are websites discussing the finer points of politely playing the QS in a game of Hearts? ;)
 
0
Q: Spring Service Method Logic

rysI am learning spring and am wondering about this service class's method. Is there a way to split this method up? Is there a way to use spring framework to make this method more readable? Should I move any of it to the controller or the DAO or should I split it into more service methods? // UserB...

0
Q: Make multiple conditions in if expression more readable

pocMy logic has to be written in this way, but I think the if expression is too long to read. How can I make it more readable? if @tool_cvt_video_info_test.save and check_and_update_firmware_model_and_version(params["camera_ip"]) and save_uploaded(params[:videos]) format.html { redirect_to ...

 
This is a pretty interesting answer:
13
A: Can I turn Radio waves into light?

JIm Dearden300THz transmitter? (the band between infra red and microwaves) - with a lot of technology and know how perhaps. See http://www.rpi.edu/terahertz/about_us.html 300THz transistor/IC - no. Use discrete inductors and capacitors at these frequencies? No. At very high frequencies conventional capac...

 
4:04 AM
I agree with this. I think I have given the highest number of downvotes on this site, probably because I care about the quality that much. Graduation will only bring in more people, so possibly more crap. When we've said to increase voting on the site, that also included downvotes. Both are very important. — Jamal ♦ 3 mins ago
 
posted on October 01, 2014 by Shea A.

I'm trying to get it so I don't have to enter (good =, Good =, bad =, and Bad =) Can I make more than just s and str? I'm sure it's possible but can't find anything online about it. I am new to Python, probably a silly question, and one with an easy fix. Thanks! Code: good = "That's great to hear! c:" Good = "That's great to hear! c:" bad = "Aww, how come? :c"

 
@Jamal hopefully easier migration paths to the right website (when applicable) will help transfer questions to SO/Progs/DBA/whatever too
 
4:49 AM
Monking @all
 
Monknight @Heslacher
 
monking
 
5:36 AM
Hi to all!
@Phrancis so what's about you title generator is it ready for reviewing? (:
 
Haven't written one line of code yet... been working on mastering the audio of a song :)
Actually, I have written a little code so far... want to review it?
<?php


?>
I expect the problem to be on line 1, when I use <?php
 
If you have a problem with your code, it is off topic !
 
The code works! It generates an empty HTML page using PHP.
 
The please edit your question as it clearly states "I expect the problem to be on line 1"
;-)
 
Hey there @JaDogg
 
5:46 AM
Hello
You caught me.
@Phrancis Have you find a way to show off your data analyst skills to your boss, without current data analyst knowing
 
Complications... It's not my boss, it's my boss' boss. Other person was hired because they knew more about the phone and scheduling system, as opposed to knowing more about... data.
 
That's messed up dude
 
If he needs help again, I'm going to ask him to email me.
 
@Phrancis Muwahaha, Keep the evidence
 
I call it CYA (cover your ass)
2
 
5:52 AM
@Phrancis ^^ you should check that out, (suggest using a new account if you want to hide yourself)
 
6:03 AM
^^ New song just posted, called "Infect Oblivion". Kind of housy, kind of trancy... but completely friendly.
@JaDogg I spotted my user name!! It's right below the "v"
 
hehe
 
Correct
Not particularly a fan of it, seems overly verbose. But, there it is :)
 
@Phrancis ?
 
Verbose... too long... my work email... francis.veilleux-gaboury@BLAH ... try to spell that out over the phone ;)
 
@Phrancis eh, Doesn't most companies give emails like francis.v@abc.com ?
 
6:12 AM
Like the tune?
Some must... mine sure doesn't.
 
@Phrancis nice.
 
After hearing the song many times during composing & mastering, I'm still not sick of it; so it must be OK ;-)
 
btw It seems like you can download files without paying if you are using IDM (internet download manager).
beware
 
I purposefully made it where you can do it without paying (just enter 0 as amount).
 
oh
 
6:19 AM
Grab all songs with my blessing, if you want. "Dark Matter" is really fun to listen to, features Stephen Hawking.
 
is it really Stephen Hawking ?
 
Yep
(through his voice box, of course)
 
haha, that poor guy, nice
 
Shchedryk is interesting too
 
Are there any tracks with much higher tempo ?
more dub-step or house like ?
Shchedryk is awesome :D
@Phrancis what happened to the great female vocals you said about ?
1
A: Plot daily time spent on codereview.stackexchange.com

flodelHere is how I would rewrite your code. I will add my comments after: plotActivity <- function( activity = 'codereview.stackexchange.com', api_key = getOption('rescuetime_api_key'), from_date = NULL, to_date = NULL) { ## This function plots time spent on a given URL ## using the...

@janos What we discussed kinda happened, Above answer is really good, I'm going to accept that, sorry about that. I'll Santa a bit ;)
 
6:33 AM
@Vogel612: ok.. but I really think the meaning wasn't changed. And it sound a bit weird to lose the ownership of a question after posting it online (moderator gets the right to decide at my place on a content I wrote, it's not very intuitive). But I strongly believe in this community and I appreciate especially the work you are doing here on code review. — Revious 15 hours ago
@Vogel612 I don't want to know what the OP would have written if I as an answerer of the question would have rolled back hits question. Thanks again for helping me out.
 
@JaDogg we're supposed to get vocals in the next day or two. Studio guy has been delaying, for some reason.
If you want something with higher tempo @JaDogg try "The Last Nimbus", "Yard of Bodies" (halloween themed), "Edge of Insanity (meltdown)", or "Devil's Footstool".
 
Thanks, Santa!
 
0
Q: Similar operations but sightly different in if else

user2421117I'm working with Python 2.7.5 and have written the following code: def func(x): if x == 1: list = data.parseJSON(fileName) person = [l for l in list if l['worker'] == sys.argv[1]] displayPeople(flatten(person)) elif x == 2: list = data.parseJSON(fileName) person = [l for ...

 
A warning... "Edge of Insanity (meltdown)" the ending is pretty out there, it is my alternate ending and I purposefully made it sound very apocalyptic.
My partner doesn't like me advertising it, because his is much more listener-friendly.
@CaptainObvious ... the title is sightly mistyped.
 
6:49 AM
1
Q: Zf2 and doctrine model implementation

kitenseiI've implemented for the first time doctrine-orm on my soap server application, can you tell me if I could optimize some of the written orm related code? More specifically, is it a good practice to package entities in sub-namespaces, or is it better to simple put them in an Entity namespace ? I...

 
@Phrancis where's the facebook page ?
 
@Phrancis did you publish it I cannot see it it just take me to facebook.com/home.php
 
I feel quite sure I did... maybe try searching for "Psych-Nein" in Facebook?
 
I liked it as myself and as my pages, also shared it on my timeline
 
7:02 AM
Psycho-Productions is another branch of our projects. but it's more for hip-hop & such
 
@Phrancis I have no idea but I cannot see the page
 
1
Q: Avoid while(true) in task scheduling code

DanI am writing a task scheduler (that will one day grow up to be a windows service when I look into them) that should pretty much loop infinitely until I tell the program to stop. But having while(true) seems incorrect. If I use a windows service, do I still need to implement this run loop myself o...

 
The above (I think) should lead to our electronic music project...
 
@Heslacher anytime ;) OP didn't read terms of service, though...
 
@Phrancis can you see facebook.com/CeylonX
 
7:05 AM
Positive
 
Then that's how your URL should look like too
 
anyone agree that this is asking for advice about code not yet written? codereview.stackexchange.com/questions/64354/…
 
@JaDogg I can't get it to where it will give me that link... Haven't been on FB in ages lol.
 
Control+F search for publish
 
@mjolka I do. VTC
 
7:13 AM
@mjolka Not really (my opinion) . OP is asking what would be a better way as using the while(true)
 
@Heslacher it's this bit in particular "If I use a windows service, do I still need to implement this run loop myself or does it have something like that built in? If not and I do need to create the task myself - then what is the correct way to implement the loop?"
anyway, home time. laters, all
 
Yeah, one could tell him why not using timers instead of checking task.Key.NextRun < DateTime.Now. It could be revied in this way.
 
@JaDogg ^^
 
@Phrancis ^^ see above link
 
Maybe send him to SO to ask about the service part first ( if the consens is to close the question )
 
7:17 AM
@Heslacher I think it's reviewable and we rather just ignore the "feature-request" part.
 
Ah, I had forgot to claim a FB web address. Good thing to know, didn't realize that had to be done manually. Here it is:
Sorry to hinder onto site conversation, I'll shut up now.
 
0
Q: Indentation on a long (ish) linq chain

DanI have some code that loops through directories named for years (e.g. /2011/, /2012/ etc) which each contain files whose names end with dates in the "yyyyMMdd" format, and builds a list of all the dates in all the directories. But what is the best way to indent this, nothing I've tried is readabl...

 
7:41 AM
@rolfl That's valid for only one of my answers.
 
7:59 AM
0
Q: Singleton Database class - is it worth doing?

Dion V.Currently my team is building an application involving a database. We have to write a lot of data (approx 2,000,000 records) to the database and therefore we decided to open a connection once and close it afterwards. The connection will become a local connection, so we don't have to worry about u...

0
Q: Check if downloading image from Internet is already started and if isn't so then start downloading and set flag "downloading started"

Leonid SemyonovIn the method getView() in my implementation of ArrayAdapter I have to download image from Internet and set it to ImageView using the image's url. Because of recycling views in TwoWayGridView and because of some bug there (the adapter's method getView() is called multiple times unnecessarily for ...

 
Monking, Muwahaha
 
Obsolete low-quality notice: codereview.stackexchange.com/a/63884/37660
Monking
 
-1
Q: Optimizing nested loop for an array within a list

hamsayaHow can I optimize the following code, with LINQ or some other trick? var b = birds as List<Bird> ?? birds.ToList(); foreach (Bird bs in b) { for (int i = 0; i< bs.Nest.Count()-1; i++) { if (bs.Nest[i].X == bs.Nest[i+1].X && bs.Nest[i].Y == bs.Nest[i+1].Y) ...

FYI: I closed as "Unclear what you're asking", because the current close reason is total bogus.
 
Monking @SimonAndréForsberg
 
8:12 AM
@Pimgd THAT
I still don't understand why the "unclear what you're asking" votes aren't shown...
 
@Vogel612 The code looks hypothetical also, No Bird/Net class code. Who knows if it is real code.
 
looks pretty real to me
 
@JaDogg just because that guy didn't provide the classes, doesn't mean they aren't there..
 
But I do agree that the close reason I've chosen is not appropriate :D
 
Typical pseudo code ends up not doing anything or fail to run. This would run just fine. One of the answers says it doesn't; that answer is wrong and needs downvotes.
 
8:18 AM
@Vogel612, @Pimgd NVM you are correct. I might have blindly followed the close vote reason that day. I'll be more careful from now on. :D
 
Monking
 
Monking @skiwi
 
@Pimgd your comment seems to just show a "off by one" error when comparing to OP code...
possibly i < b.nestCount(); was the actual plan.. (or i <= b.nestCount - 1;)
 
@Vogel612 i goes from 0 to max-1, and in the loop i and i+1 is used.
given a list of 3:
0,1
1,2
halts
 
@Pimgd well you can't access max + 1....
 
8:24 AM
Well yeah, that's why it has < count -1
 
list of 3: (0, 1, 2)
sooo what exactly is your problem??
 
The answer creates a new bug.
 
for (int i = 0; i< bs.Nest.Count()-1; i++) <-- OP code, should do exactly the same..
 
foreach (var nextNest in b.SelectMany(bird => (
            from nest in bird.Nest as List<BirdNest> ?? bird.Nest.ToList()
            let nextNest = bird.Nest[bird.Nest.IndexOf(nest) + 1]
            where (nest.X == nextNest.X && nest.Y == nextNest.Y)
            select nextNest)))
let nextNest = bird.Nest[bird.Nest.IndexOf(nest) + 1]
Index out of bounds.
 
ermph, yea you're right..
 
8:27 AM
And then the answer goes on to state that it's all OP's fault.
Big fat -1.
 
@Pimgd maybe you should be more explicit about what bug exactly he introduces
 
monking
 
0
Q: Combine union with distinct

annemartijnSituation: I need distinct results from two tables, that both have duplicates. I would like to know if I should combine UNION and DISTINCT. Example 1 - Only use distinct SELECT DistinctValue FROM Table1 UNION SELECT DistinctValue FROM Table2 Example 2 - Combine distinct and union SELECT DIST...

 
Monking @Christoph
 
done
 
8:32 AM
@CaptainObvious pseudocode...
is it just me, or is this thing off-topic?
0
Q: Indentation on a long (ish) linq chain

DanI have some code that loops through directories named for years (e.g. /2011/, /2012/ etc) which each contain files whose names end with dates in the "yyyyMMdd" format, and builds a list of all the dates in all the directories. But what is the best way to indent this, nothing I've tried is readabl...

 
@Vogel612 For what reason?
 
Isn't indention part of the code ? So reviewing indention is codereview ?
 
@Pimgd it feels wrong, that he presents 4 ways to do this...
I'd rather have 3 removed...
interestingly the only answer on that question (as of now) does a more approach-based review.
 
If we criticise indention levels in reviews it is on topic . For the presentation you are right.
 
@Vogel612 It's comparative review, 4way
+ "or maybe something else"
 
8:38 AM
@Vogel612 A vs B (vs C vs D) questions are OK. It would be preferred if he only had one, but it is definitely on-topic and perfectly reviewable.
 
hrmph..
(reluctantly) accepted
 
I tagged it
 
not my preferred way to present anything though..
 
he rolled it back after 36 seconds
 
I can understand if people roll back heavy stuff, but a single tag??
 
8:41 AM
Hey man you get 18k rep on SO you might get tired of people making stupid edits
 
8:55 AM
@Pimgd I recently had a little rollback fight with a 500k user...
 
What was the result? =D
 
0
Q: transpose a large matrix in Python3

tommy.carstensenI want to transpose this matrix input: 1.000 2.00 3.0 4.00 5.00 6.000 7.00000 8.0000000 9.0 10.0 11.0 12.00000 And get this output: 1.000 5.00 9.0 2.00 6.000 10.0 3.0 7.00000 11.0 4.00 8.0000000 12.00000 I have a matrix in a file with thousands of lines and millions of columns, so I can't r...

0
Q: PDO insert from check boxes

twiggSo I've seen so many different ways of doing this all seem very complex and all seem to be done in MySql. I'm using PDO in my project so I've had a go myself to see what I could come up with. Firstly is this safe? Secondly is there something I've missed a better way of doing it? //build quer...

 
I conceded..
 
And nobody removed the smiley.
You guys are sad. =D
 
@Pimgd well it was almost only about the tags..
after all he removed 4 of 5 tags..
 
9:00 AM
@SimonAndréForsberg Directory.GetFiles() returns String[] in C#
 
@Heslacher DateTime GetTimeForFile(String d) then I guess?
 
yeap, but as we are CodeReview shouldn't you name the parameter a little bit more descriptive instead of d ?
 
like dir
(That'd be pretty terrible actually, you need to pass in a file, but it's a string that's a directory? Wat?)
 
no, like fileName as it is a filename
 
@Heslacher just used the name the OP had :)
 
9:10 AM
Now you got my vote ;-)
 
9:22 AM
learning RAII... 4 years after someone told me to look at it. stackoverflow.com/a/4432351/540837
 
9:32 AM
Ah balls you've got to be kidding me... fancy shared_ptrs are C++, so that'd stop the iOS app from using the library
 
0
Q: RX fluent subscribing to observables

VeikedoI have three observables: var itemsManipulationStarted = Observable.FromEvent<ManipulationStartedEventArgs>(Items, "ManipulationStarted"); var pageManipulationDelta = Observable.FromEvent<ManipulationDeltaEventArgs>(this, "ManipulationDelta"); var pageManipulationCompleted = ...

0
Q: XML SQL Data Transfer

TheJoeIautIn my new company a coworker created a fairly new application and i am now scheduled to assist him. In this application every database access is made through xml: A Save method: C# public string SetUser(User user) { var settings = new XmlWriterSettings { OmitXmlDeclaration = t...

 
9:44 AM
Does anybody know the why of this codereview.stackexchange.com/questions/64377/…
 
@Heslacher Perhaps the original coder just didn't know any better?
 
Why does SE not tell you someone else editted the post if you submit a suggested edit?
 
According to my calculations, Code Review graduation was officially decided on Beta day 1341, not that far away from beta day 1337 after all...
 
I just submitted a decent edit OVER someone's great edit because they were 5 seconds earlier in hitting submit than me. Now my edit will go through the queue and get declined after a long time.
 
On what site @Pimgd?
 
9:54 AM
MSE
5
A: Explainer badge understanding

lostsockYou answered a question. Your score on your answer is greater than 1. (So this means you have 1 upvote and 0 downvotes or better. Or you could have 21 upvotes and 20 downvotes.) Just need to see the number 1 or higher for your score. You have to have edited the question that you answered either ...

 

« first day (515 days earlier)      last day (3502 days later) »