« first day (848 days earlier)      last day (3163 days later) » 
00:00 - 14:0014:00 - 00:00

12:00 AM
RELOAD!
There are 1465 unanswered questions (94.4732% answered)
 
Zak
This assumes people are familiar with github though
Could we not, for instance, create an "example" question for each language. With a basic piece of code and lots and lots of answers, each addressing a specific recommendation?
 
If we can get the branching done right, there is no problem.
@Zak No, that would get shot down by the on-topic rules.
 
Zak
oh yeah :(
 
I mean, sure, if we really want to, we can find a way.
But it's willingly working around the rules.
But we could write a CR database of common problems without trouble.
 
Zak
Can we not ask the mods for a specific exemption, I.E. for a Meta post on each language?
 
12:03 AM
It wouldn't be official, but hey, who gives.
 
An "example" question with real code...
 
Zak
It feels like something that should actually be on CR
and not just externally linked to
 
@Zak No, CR is different.
On SO, this would be the way to go, probably.
But on CR, we almost never close as duplicate.
 
We wouldn't need to close a duplicate.
 
@Hosch250 No, but if we would post example questions people would start flagging them more often as such.
 
12:05 AM
We could maybe create a close reason as the code doesn't follow best practices as outlined in (link).
 
@Hosch250 That's not a valid close reason.
 
Not currently.
 
Posted:
0
Q: Users that appear to learn nothing

Ethan BierleinI've run into this user and their c++ questions a couple of times now, and I'm finding that they seem to make the same mistakes in each question they post, like using namespace std;, or system("PAUSE");. The user has mentioned in this comment that their professor requires these bad habits, so th...

Any improvements welcome.
 
After we set up best practices questions on meta, though...
@EthanBierlein I earned quite a bit of rep by repeating myself across several answers on several questions by a user.
Eventually, I stopped answering them.
 
@EthanBierlein Comment dropped.
@Hosch250 That will open a can of worms and holy wars.
2
But we did get a 'Frequently posted comments' meta, so perhaps there's some leeway after all.
I don't think it's our best bet though.
TTGTB
 
12:11 AM
Night @Mast
Okay, does anyone have an opinion on this post here?
2
Q: Full C Snake game

TheTask1337I managed to finish my approach on the legendary Snake game. You move around with the WASD keys. I would like to hear your opinion and maybe ideas on how I can improve frame rate because now it sort of flickers (but it is playable). #include <conio.h> #include <stdio.h> #include <ctime> #include <

I think the OP might be a little confused.
It looks like C++ code, but they're saying it's C.
 
Ugh, look at those #defines's.
 
It has a lot of C++ things in it though, like vector<T>, or std.
 
Definitely C++.
They use bool, without including the bool.h, or whatever C has.
 
And not requiring void in functions with no parameters.
 
1
Q: Infinite list of strings containing 'a'

Michael ChavI was assigned to write a piece of Haskell code that makes an infinite list containing increasing numbers of 'a's. My first thought was to write it as a list comprehension like this: aStar = [replicate n 'a' | n <- [0..]] But when I asked my professor he said I should use explicit recursion s...

0
Q: Random Number Guessing Game for Javascript

Jenny ChauI'm working on a project where the user guesses a number that's within a specific range that the user gives. However, I can't for the life of me figure out what is wrong and how to make it work. Help please? var keepPlaying = true; var currentGuess = 0; var targetMax = null; var targetMin = null...

 
12:23 AM
1
Q: Users that appear to learn nothing

Ethan BierleinI've run into this user and their c++ questions a couple of times now, and I'm finding that they seem to make the same mistakes in each question they post, like using namespace std;, or system("PAUSE");. The user has mentioned in this comment that their professor requires these bad habits, so th...

 
12:40 AM
monking
 
Good morning @Quill
 
@rolfl thank you.
this is the first time I have been on my computer all day.....ugh!
I was wishing I was working on my game all day long!
Food, TV, BED
 
12:56 AM
0
Q: Reading XML files from RSS of different websites in PHP

hamada147I've created a working XML RSS reader. I wanted to know if it's a good one or not and if it's efficient for the server or not. I run this code every 12 hours or something give or take the amount of time that a new article will be published. This is the code itself with all the explanation of eve...

 
I've been answering a lot of C++ questions lately.
I wonder why.
It's almost as if I enjoy this .
 
1
A: Users that appear to learn nothing

QuillIf the author does not learn from all the points you make, nothing should be done. People are often forgetful, and can simply forget some of the points you make. For example, If I reviewed a c# question, and suggested string.Empty instead of "", provided they missed the former in a follow-up / ...

 
Thanks @Quill
 
It wouldn't be rude. It's rude for someone to ask for a review and ignore the reviews (not even comment on why changes weren't incorporated). — nhgrif 4 mins ago
I agree that it's rude not to take points on board, but to ask them why they didn't is another thing
 
No, it's not.
I (or any other reviewer) needs to understand the reason.
Are they ignoring my reviews? If so, I'll abstain from giving them more reviews.
Did they misunderstand my comment? If so, I'll make it more clear this time.
Are they bound by some sort of requirement? If so, they need to make that requirement more clear.
 
1:13 AM
0
Q: rabbitmq monitor for Zabbix with queue discovery

Ryan MThis is some go code which is designed to be called as a UserParameter by a Zabbix agent. Zabbix can do item discovery by returning back to it some JSON describing what it needs to look at. It can then use that data to automatically setup items (In this case rabbitmq queues) that it can then quer...

 
1:57 AM
0
Q: Will a question be downvoted for poor code?

James_ParsonsI am kind of new to Code Review SE (I only have two questions), and am trying to understand the site. I recently came across this question with three downvotes. For the most part, It seems that it is on topic, but the general consensus is that the OP is using really bad practices. Now, my first...

 
Wow, it's really quiet.
 
Hm, looks like it yeah.
 
55 mins ago, by nhgrif
No, it's not.
What did the one monkey say to the other? .... nothing original, he just quoted a third.
7
 
@rolfl Now that is a bad joke.
 
You tell enough bad jokes that people still star you anyway
3
 
2:10 AM
I starred it because it was so bad it made me laugh.
 
1
A: Users that appear to learn nothing

Mat's Mug What should we do when we encounter users that keep making the same, obvious mistakes in their code You're reviewing their code; you may comment on any and all aspects of the code. The unsaid is that you may comment on anywhere from a single instruction to the entire project architecture1, i...

@rolfl hey rolfl!
 
So, we've had our share of monkeys around for a while, but we apparently have another Duck.
 
Huh?
 
^
 
 
2:12 AM
@RubberDuck Another duck? Where? Duck!
 
Oh, that Duck.
Huh, another upvote on my LOLCODE question.
 
75 pages of posts by me are starred...... and, there are 587 pages of starred posts.
 
that makes 1-in-8 starred posts are mine... I wonder if that's the most.
 
cough you mean you starred more than Malachi?
 
2:14 AM
But what's your most starred comment?
 
I have 116 pages...
 
@Mat'sMug No, he wrote them.
 
oh
81
 
I have 96 pages that I've starred. Lol
 
12 posted by me, 17 starred by me.
 
2:16 AM
Dec 15 '14 at 13:47, by rolfl
Hats Leaders: Sites -and- Code Review
 
27 posted by me.
 
pages or messages?
2
 
Pages.
Man... I miss my hats.
 
I have 2 pages, heh.
 
I don't really.
 
2:18 AM
@rolfl Thanks for sharing.
 
@Legato Interestingly, it looks like I cheated, that should probably be 23, and not 24 stars on that.....
 
Explain.
 
0
Q: Java Swing Application - Roleplaying Aid

VigilantI've been working on this utility for a while now, and have since gone through a couple reworks to try and increase the readability and best practices, but since I don't usually work a lot with Swing, or UI design in general, I still have the nagging feeling there's a better way to approach this....

 
Also, if 23 we're tied!
 
Note the star is yellow ... ;-)
 
2:23 AM
Mods can star their own messages?
 
It means that I "pinned" it, as a mod, which adds a star to it.....
 
Haha
 
Oh, I didn't realize that added a star even if it was your own message.
 
^
 
Let's see here.... I'll temporarily pin this...
 
2:25 AM
hax
 
Now it is an inception hax....
2
And I can't unstar it ;-)
 
2:37 AM
Genius: You have three wishes. You: My first wish is that I want 1000 more wishes. — Caridorc 15 hours ago
 
That's a trap.
You ask for more wishes you get them...to grant to others.
 
You are now genie.
 
0
Q: Standard Methods in VBA

ZakSince I learnt about refactoring, I've been busy creating my own Module of Standard Methods. I feel it's about time they got a review of their own. Open to all aspects of advice but particularly interested in: Method Naming: Are they completely unambiguous about what the method does/returns? U...

 
1
Q: What is the take on getting older (possibly obsolete) languages reviewed?

James_ParsonsSpecifically, I want to address languages from the era of 8-bit home computing. Such languages could include: 6502 Assembly 6800 Assembly 8080 Assembly Commodore BASIC etc... These languages are specific to a processor / computer that is obsolete nowadays. There are, however, several simulato...

 
2:58 AM
20 rep from 8K
 
 
uh
You okay @Quill?
 
Zak
Would love some feedback on these. Even if you know nothing about VBA, half the stuff I want feedback on isn't language-specific anyway.
3
Q: Standard Methods in VBA

ZakSince I learnt about refactoring, I've been busy creating my own Module of Standard Methods. I feel it's about time they got a review of their own. Open to all aspects of advice but particularly interested in: Method Naming: Are they completely unambiguous about what the method does/returns? U...

 
@Zak what's up with the icon? am I tripping?
@EthanBierlein not really, I've been writing PHP all day
2
 
No
Or we're both tripping.
 
Zak
3:01 AM
it seems we're all tripping :)
and I have no idea
 
@Zak M1) should be OpenWorkbook as you're not returning(getting) it. M3) Why's there extraneous space in Dim arrHiddenRows As Variant M4) What's wrong with escaping characters in "Couldn't find cell """ & strSearch & """ in " M5) lngCounter = lngCounter + 1 what about lngCounter++? also m5: the functions are basically identical, you could consider passing in whether it's a row or column M13) i = i + 1: i++?
correct me if I'm wrong on the ++ point, I can barely remember VBA
 
Zak
@Quill I'm pretty sure VBA doesn't allow ++
@Quill 1) but that's also misleading, as if the wb's already open it'll just be activating it. 3) no idea, I'll go fix it. 4) what do you mean by escaping characters?
 
var string = "\"words inside quotes\"";
 
Zak
@Quill oh right. wrt 3) some of my code is from before/after I stopped making all the declarations line up nicely, so spacing can be a little uneven
The output will be "Couldn't find cell "Search String" in <Worksheet Name>
"" means 'this is actually a " and not part of the code'
 
3:19 AM
Dim "Monking" As Greeting
 
Zak
return "Monking"
 
Oh boy, the heat from my laptop's fan is burning my skin.
That can't be good.
 
You should probably see a doctor
 
A laptop doctor?
 
Zak
Both, really
 
3:23 AM
I was mostly concerned about your skin :p
 
Oh lol. It's a minor burn. Just a little redness.
 
We finally have images in Cardshifter :D
 
Cool!
 
@Phrancis awesome!
 
About time, after a year :)
 
3:26 AM
where's the tweet? ;-)
 
@Zak Users can only chat if they have more than 20 reputation.
 
Zak
and (it seems) new to the SE ecosystem as well
 
2 days ago, by Mat's Mug
@Phrancis yeah, next thing you know you get users posting random screenshots of their apps in chat... oh, wait..
 
Zak
@EthanBierlein they can still be in the room though, right?
 
3:27 AM
@Mat'sMug I'll post one tomorrow, getting a bit late for getting much visibility :)
 
@Zak yes
 
;-)
@Zak They can watch the room, or enter if a mod @@ pings them, or adds them to the 'can chat at any rep' list
> By day I cash kids by night I eat them
2
Well, I finally decided to actually debug the star reporter instead of pretending I knew the issue
 
0
Q: Return sizeof a struct containing members ordered like given template parameters

Brian Rodriguez/** * Should return: sizeof(struct{ T...; }); */ template<typename... T> constexpr std::size_t sizeof_struct() { using meta_t = std::pair<std::size_t, std::size_t>; meta_t sum{0, 0}; std::size_t max_align{0}; std::array<meta_t, sizeof...(T)> arr{{alignof(T), sizeof(T)}...}; ...

 
> Is there some type I can put in the parameter pack T... that can break this code?
 
Pimping an answer:
0
A: Full C++ Snake game

Ethan BierleinUsing constants Rather than using #define and creating a bunch of macros like this: #define PLANEHEIGHT 20 #define PLANEWIDTH 50 #define INITIALSNAKELENGTH 3 #define FPS 5 You should use const instead, like this: const PLANE_HEIGHT = 20; const PLANE_WIDTH = 50; const INITI...

 
3:37 AM
Hmm, wonder if I should accept this one... @Mat'sMug what's your opinion on that?
 
> P.SE / Code-Review
wut
 
P.SE?
 
programmers.se
 
Oh.
 
look at that badly created image, you can see the colour difference in the text boxes ;-;
 
3:39 AM
I'd never imagine SU and DBA (or Progs and DBA) having much to do with each other
I could see some overlap between CR and SE (wrt the occasional DB-related CR question we get)
 
it'd be interesting to see what the answers on both sites cover in a cross-post
 
Hm, unrelated question, but if I got a cursor that runs the same query on a good number of servers, should I declare set transaction isolation level in the context of each iteration, in addition to the context of my parent query?
 
@Mat'sMug Hmm, gives me an idea..
 
@Mat'sMug What are the chances one of the two would get shot down as a cross-post, though?
 
hi @200_success! good timing :)
 
3:43 AM
@CaptainObvious I just put that question on hold, but could use a second opinion.
Reopened.
 
C++ reads so weird... what with all the braces in the wrong places, plus everything about it seems so cryptic ;D
 
Is this correctness in unanticipated cases, or is the author asking specifically what those cases are
 
The author seems to think that it is generally correct, but seeks confirmation. I think that's OK.
 
yup
 
3:46 AM
Is that just another way to basically ask "Did I miss any edge cases?" ?
 
@Phrancis The braces are in the right place for C++. The OP of that post didn't format their code very well, and they used auto as well, so...
 
What does auto do?
 
It's like var
Essentially, declaring a variable and letting the compiler assume the type.
I personally am not a fan of it.
 
ooh, google tells me Australia is 9th place for life expectancy
 
Nice.
 
3:57 AM
@EthanBierlein Can the type of an auto change during its existence?
 
@Phrancis Yes
 
@EthanBierlein Hmm, undoubtedly it has some uses, though it'd be weird to use it for every thing (unless you're doing JavaScript)
 
> One last thing: I'm coding in Java, but your reply can be in also Python, VB.Net, C#, Ruby, C or even just a explanation in English.
^ that's unusual, but I think personally that the question looks fine for CR
 
4:02 AM
Is asking for algorithm complexity improvements on topic here?
 
Zak
can anyone recommend a great article/blog/whatever on refactoring?
 
@durron597 Sure, I've seen answers address algorithms whether asked for specifically or not
 
Woot! 8K!
4
 
Anyways, goodnight all.
 
4:05 AM
@EthanBierlein Later!
 
This sounds like it would be a better fit on Code Review, as it doesn't seem to be about a specific problem but rather a request for improvement of working code. — Phrancis 45 secs ago
Working code looking for advice would be a better fit on Code Review, but when you put this question there, it should be a complete, working program (including a main method) and you should expect to receive all sorts of comments, on style as well as algorithm complexity. — durron597 43 secs ago
 
4:16 AM
@Mat'sMug Grats on your shirt
 
thanks! :)
 
I'm surprised I recognized any of the names.
Given the number of SO users.
 
yesterday, by Mat's Mug
@Hosch250 I'm a lucky bastard
 
@Phrancis, i think my problem is very specific. It can have more than 1 right answer, but it doesn't make my question less specific. I have a kind of bubblesort and I want to make it a kind of mergesort (or equivalent). It's a bit complex, but specific. Anyway, if no one help me here, I'll open a question in Code Review (I didn't know this site, thanks). — Gabriel B S M 19 secs ago
 
Zak
4:28 AM
I wrote my first review in a language I know nothing about. Can somebody check that it actually IS applicable?
0
A: Reading XML files from RSS of different websites in PHP

ZakI'm not very familiar with PhP so this will only cover some basic observations. Readability. On the plus side, your code is full of comments explaining what everything does. On the minus side. It also suggests you're not separating things out. Really good code should never need to explain what ...

 
4:38 AM
@Zak GetRSSData(); // run the code above ^_^ <-- made me lol
 
Zak
@Phrancis Wow indeed
Anyway, I'm out of votes for the day, so TTGTB
 
I should be in bed, but I'm sort of trying to look for resources on the internet.
They are supposed to be open resources that anyone can find.
But, I honestly don't know where to start.
 
Zak
@Phrancis The 12 nested if elseif statements vividly reminded me of my first VBA code
specifically, pastebin.com/QDeMMTFa
 
How would I write a memorandum to a BoD on recovering from/preventing a data leak?
(Just thinking out loud, not asking anyone to do school for me.)
 
BoD?
 
4:45 AM
Board of Directors.
I was thinking I could do something along the line of implementing a security policy from scratch...
I need my own personal chat room.
 
Cool. Interesting challenge
 
I can lock everyone out and you guys can sit back and giggle at the strange ideas I come up with.
 
Is that addressing any kind of data in particular, or just the concept in general of data security/data loss/leak?
 
Data loss/leak, but I'm planning on creating a new policy from scratch.
 
Zak
@Hosch250 I basically had t do that for ym company
 
4:49 AM
I'm doing it for a business writing class.
 
Zak
@Hosch250 don't know how applicable you may find it but when I wake up in the morning I'd be more than happy to share the stuff I used
 
Sure, I'd love it.
This is what I have write now (pun intended): I propose we design and implement a new security policy that takes in to account modern threats, failure possibilities, and data loss types.
#BadPunOfTheDay
Sorry, guys, I'm going to bed right now. Just minutes from midnight here, I've been exhausted lately, and I've got to get up early tomorrow.
@200_success Thanks for the comment, I found that in the Low Quality Posts queue. I can see why we wouldn't remove it, but I think my comment requesting clarification still stands.
 
@Hosch250 As opposed to... old security policies that also do that? Just curious, but it sounds (to me) more like marketing talk than anything (I mean this as constructively as possible :)
 
Zak
@zak so I can find it when I wake up
 
Pretty sure you can't tag yourself like that, @Phrancis
 
5:02 AM
@Mat'sMug you need the post id to ping yourself
(ping!)
 
@Phrancis Pong!
 
@Zak Switch strpos($PublishingDate) {
should be lowercase and the brackets wrap the str_pos
also, it doesn't work
it's checking for presence of a string, not the value of strpos($PublishingDate)
If you need to check whether it's valid, hit ideone.com
You can add two spaces after a sentence if you want to format it to a new line without leaving an empty one, too
 
it works!! at last!!
3
 
5:17 AM
@Mat'sMug NICE!!
 
isn't it sexy? :D
 
It's gorgeous
 
Beautiful ;-)
 
RD 1.x TestExplorer:
 
5:38 AM
A table :o
New one looks way better and hopefully also is way better!
TTGTB; night @ all
 
night!
 
@Phrancis I renamed him, and goodnight
 
Hi @Duck!
welcome to The 2nd Monitor!
 
ello @Duck
Hey @Mat'sMug, you're a C sharp person, what do you think of my solution here? I thought it could be improved, but I wasn't sure of the quality of it.
 
> I really can't keep my poker face on this one; This code is bad.
mwahaha
one of the problems is WinForms... it.. complicates things.
I might take a stab at that question tomorrow
it's a good answer for a question
 
5:51 AM
I wasn't really happy with
21 hours ago, by Quill
        List<PictureBox> pictureBoxes = new List<PictureBox>();
        pictureBoxes.add(pictureBox1);
        pictureBoxes.add(pictureBox2);
        pictureBoxes.add(pictureBox3);
        pictureBoxes.add(pictureBox4);
        pictureBoxes.add(pictureBox5);

        Dictionary<PictureBox, Label> labelsLinkedToPictureBoxes = new Dictionary<PictureBox, Label>();
        lablesLinkedToPictureBoxes.Add(pictureBox1, label1);
        lablesLinkedToPictureBoxes.Add(pictureBox2, label2);
        lablesLinkedToPictureBoxes.Add(pictureBox3, label4);
 
it ties the application logic into the UI
 
It really helped the pictureBox_click, but it felt wrong
 
6:03 AM
@Mat'sMug is that bad practice?
 
is the game logic dealing with Cards, or Labels and PictureBoxes?
there's no Deck, you could get a hand with 5 Queens of Heart
..in theory
 
you're right
 
unlikely though
it's essentially like playing with 5 decks, one for each "slot"
and you shuffle after each draw
 
lemme grab my ti-84 and I'll tell you the probability
 
it's probably pretty slim
 
6:12 AM
9.25% chance of duplicate
 
cough
> Last version before deletion

Quill
6:07 AM
41% chance of a duplicate card
 
huh, okay, never mind
I was doing expected value instead of probability, lol
 
9.25% seems high
 
it does
 
is it missing cards (only skimmed through) or it's with 52-card decks?
 
6:16 AM
My solution: No. Their solution: they typed it out, so, maybe
 
1
Q: Duplicate integers in an array

thesillycoderCode shows duplicate values of integers in an array with indexes and the number of occurrences. Can you please critique my code and provide your thoughts on where I should improve my code? import java.util.Set; import java.util.HashMap; import java.util.Map; import java.util.HashSet; public cla...

1
Q: TestExplorer 2.0 - From Grid to TreeView

Mat's MugRubberduck's unit testing feature (heck, the whole project) started with a VBA unit testing framework that was ported from vba to c#; the VBA logic was pretty much simply rewritten in another language, and a dockable toolwindow is now available in the VBA IDE for Rubberduck users around the world...

0
Q: Inseting a node in binary search tree

Pratik SaxenaWhen I'm inserting a node on the below binary tree,it is giving incorrect answer,although logic seems fine to me. Problem is from https://www.hackerrank.com/challenges/binary-search-tree-insertion . static Node Insert ( Node root, int value) { if(root == null){ Node newNode = new Nod...

0
Q: wriite the java code plz?

NAVYASHREE Mwrite a java program for accepting the input as a sentence. seperate the words for which words placed in 2nd multipliers should displayed as xxx and words placed in 5 multipliers should placed as yyy.words plced in both 2nd and 5th multipliers display as zzz. ex: input : hi good morning , i'm n...

 
wow
@CaptainObvious wriite a better post plz?
 
yeah looks like 52-card decks in OP. so the odds of having an ace of spade in the first spot, are 1/52. Since there's a rng for each spot, each has 1/52 chance of give you an ace of spade. I'd be tempted to evaluate the probabilities of 5x [A♠] to... 0.01923^5? 2.63e-9, so 0.00000000263% right?
 
It's not necessarily that simple
 
I hate stats
 
6:26 AM
@CaptainObvious ../../Resources/flask--arrow.png what's up with the double hyphen?
 
IDK, it's the file names that were in that zip file with 4K free icons
 
lol
 
@RaceTrack fans:
10
Q: Race Track Fuel problem

Jojo Suppose that you are on a one-way circular race track. There are N gas cans placed on locations of the track and the total sum of the gas in these cans is exactly enough for your car to run one circle. Assume that your car has no gas in the gas tank initially, but you can put your car at any l...

I like how the top-voted answer goes:
> First suppose that your car can keep driving even when it's out of gas, going into a negative amount of fuel.
TTGTB
 
and p the probability of success
        if (_cachedResult != null)
        {
            Result = _cachedResult;
        }

        _cachedResult = null;
        IsEditing = false;
could be:
        if (_cachedResult != null)
        {
            Result = _cachedResult;
           _cachedResult = null;
        }

        IsEditing = false;
 
 
1 hour later…
7:46 AM
monking
we should migrate this to Stack Overflow: codereview.stackexchange.com/questions/102277/…
 
good call
Can you explain why this is an improvement over the existing code. — Quill 7 hours ago
@Quill I hope I have addressed some part of your question with my previous answer. In addition I have read that you should pass by reference since it is cheaper, and you don't need a copy of passed value. I think this addresses all the points I have made. I wanted to say that using that switch statement seems unreasonable to me but then again I was downvoted and I though I probably have some serious errors which I don't understand. — firtek 47 mins ago
@firtek, not in the slightest. — Quill 28 secs ago
 
8:22 AM
1
Q: Sort all the characters according to their brightness

LoovjoI wrote a little fractal noise generator the other day, and to test it I wanted to display the dark values with a darker character and the bright values with bright characters (I use a dark background with light foreground). So I wrote a simple java program to do this, and here it is: package co...

 
9:23 AM
Monking
 
9:38 AM
Monking.
> You have so many copy-pasted blocks absolutely everywhere, that I'm getting high from all the paste (glue).
lol @Quill
@Phrancis Javascript, like the mongols, are always the exception
s/are/is
 
10:19 AM
@YAM best practices are an entirely different, and a subjective issue, you should probably open a separate question for that. (If it's a theoretical discussion, maybe it's better suited for programmers, if you want to get an opinion on a certain implementation, for code review). — doldt 34 secs ago
 
I'm glad you found it funny
 
10:44 AM
0
Q: Java Program getting TLE even after using BufferedReader

TanmayI've written following code for a simple program in Java, I changed Scanner and used BufferedReader. Can I have a code review and know where else can performance be optimized? Here's my code: import java.util.ArrayList; import java.util.List; import java.io.BufferedReader; import java.io.InputS...

 
17
Q: Why HackOverflow will not become a site

Robert CartainoProposal: HackOverflow Proposal: CodeBreakers/CodeHackers/HackOverflow The definition of this proposal was completed yesterday. I wanted to be sure the entire 'Definition' Phase play out so we could survey the entire scope of this proposed site before evaluating the viability and utility of this...

 
11:01 AM
0
Q: Is there a better way to set the value of properties via reflection?

SandeepI am working on an application in which I have to parse a xml file. Nodes of the xml file corresponds to an object. I have to populate the properties of the objects at run time. The code below queries the metadata of property and sets its value. Is there a better way to do it or is there a better...

 
11:26 AM
If sites can't be made because their names may be misinterpreted, why did lifehacks, which also happens to generate exactly zero useful content and has no scope at all, make it thru even the early stages of definition? — bjb568 2 days ago
Very appropriate I'm afraid.
 
indeed
lifehacks is bad
 
But not as bad as OpenSource went. They lost their scope a day after entering beta without good reason.
That's a duplicate because OP cross-posted.
 
11:47 AM
Monking
 
Monking
 
Monking
 
0
Q: Python: Summation of primes for large inputs

Gali'm doing a problemfrom project euler. been managed to get pretty good result for small inputs, but when trying inputs like million or two it just won't finish. import time import math def primes_sum(limit): num_list = range(2, limit) i, counter = 2, 1 while i <= math.sqrt(limit): ...

 
12:18 PM
0
Q: Implementing DES algorithm in PHP on linux

user82338I wrote this PHP script trying to implement DES algorithm. I'm running it on terminal, not browser, with php des.php AAAAAAAA AAAAAAAA Here the script <?php $SANDBOX_1=array( array(14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7), array(0,15,7,4,14,2,13,1,10,6,12,11,9,5,3,8), ...

 
12:29 PM
(removed)
 
12:41 PM
Monking
 
Zak
12:54 PM
Monking
 
Monking
 
Monking.
 
1:12 PM
Hi
 
Greetings
 
Zak
1:32 PM
Not another star wall!
4
 
♫♪ just another star on the wall ♫♪
5
 
1:48 PM
I Martijn. I'm very sorry because I din't know that there was an specific place for "code review". If the answer is as simple as a "Yes" I think this is not too useful here. I expected that there was a better way of doing what I did. You can delete the question if you think it's the best option. Thank you very much. — carlosescri 50 secs ago
 
1:58 PM
This answer assumes that the car's tank has a capacity higher than the total amount of fuel it takes to make a lap. — nhgrif 1 min ago
 
0
Q: Drawing with FLTK

simplicis veritatisThis is my first attempt to draw using FLTK libraries *: // Objective: Draw an 8-by-8, red and white checkers board #include "std_lib_facilities.h" #include <iostream> #include "Simple_window.h" int main(){ try{ // create a window in the center of the screen wiht size: 600x600 int w...

 
00:00 - 14:0014:00 - 00:00

« first day (848 days earlier)      last day (3163 days later) »