« first day (833 days earlier)      last day (3483 days later) » 
00:00 - 15:0015:00 - 00:00

15:00
oi
oi oi oi!
oi wot up m8?
... (what have I done)
@Mat'sMug No such thing as overkill.
If it's better, it's better.
15:05
@Mat'sMug haha :P
Soon a bunch of Australians will show up lol
@Mat'sMug u started the wot revolution m8
If only @Quill was here.
I keep reading this all with an Australian accent now :|
I'm thinking more about an East-London football hooligan
2
Any C++ namespace experts here?
15:08
Bye, time to go hiking.
firstnamespace or lastnamespace?
:-)
@spyr03 If you leave your thoughts here, we'll link it to the appropriate people when they show up.
If it's about this answer you wrote, you made a mistake there.
Well, mistake is a big word.
Just read this:
847
Q: Why is "using namespace std;" considered bad practice?

akbiggsI've been told by others on numerous occasions that my teacher was wrong in saying that we should use using namespace std; in our programs. Hence, we should use std::cout and std::cin and these are more proper. However, they did not even make it clear ever why this is a bad practice. Why is usin...

Ty, does moving using namespace std inside a function reduce namespace pollution? Is it a good or bad idea?
TL;DR: Don't use using namespace std
Character count in C++ is irrelevant. Clarity and risk of pollution is.
If it is a small bit of code, and you are coding formulas, using namespace is handy so you dont have to write std::sin, std::cos and I find it makes it easier to read
15:16
Perhaps, that's what students get taught. However, it's bad practice.
0
Q: Is the speed measured accurately?

user3144770Whilst developing a game I needed a delay routine capable of doing delays ranging from 0.5 sec to just a few msec. The obvious choice was to use the BIOS delay function 86h on int 15h. In a true real address mode environment it works correctly but I saw that an emulator like DOSBox messes up thin...

0
Q: Why do I have a “Cannot read property 'top' of undefined” error when I try to do this animation using jQuery?

TomI have a text document,(about 3500 lines of HTML), in which I have some JavaScript in the that will take input and highlight the word. This part of the process works fine and I have no problems with it. The problem happens when I take that input and try to have the highlighted element scroll to ...

If you read a couple of C++ answers, you'll see the same advice everywhere.
Such an overblown thing to critic
8
A: Calculator with simple input

janosAvoid using namespace std It's considered bad practice to do using namespace std. Don't use a string when a simple char is enough Since function must be a single character, there's no need to use a string for it and then use function[0] in the switch. You could use a simple char: char functio...

It's the same as static imports in C# or Java
Sure, it can cause confusion, but it's a rare scenario and you'll notice when you get the error
15:18
In C++ world, we still care about best practices. I have no idea what Java or C# people prefer.
@CaptainObvious needs close votes
Welcome to Code Review! Unfortunately CR isn't a "fallback site for when SO yields no answer" - we're a completely different site, with a completely different scope. Please see our help center, and you may want to read A guide to Code Review for Stack Overflow users on our meta site. — Mat's Mug ♦ 43 secs ago
@Mat'sMug Let it rain.
@Mat'sMug You are aware of the diamond next to your name, right?
lol
I am. But I like when there's more than just 1 name in the "put on hold as off-topic by..." box
@EthanBierlein hello
Aussie arrived, everybody happy now?
15:23
oi
wow, really
The words 'mate' and 'oi' are used a lot here, I use mate sometimes, but really informally.
Actually, I live in an area with a lot of New Zealanders, and they seem to use it more than non-New Zealanders do.
I hear the intro of AC/DC's "T.N.T." everytime I see "oi"
@ErwinRooijakkers Glad you like. Yep, use list->vector to convert to vector afterwards (better to do it yourself than make the original functions do it). My sieve implementation (linked in my answer) does put in a 2, but the Community Scheme Wiki one (that you copied, and that I adapted for this answer, mostly to show you how I would refactor it) doesn't, so I edited it to put in the 2 there too. :-) — Chris Jester-Young ♦ 1 min ago
@Mat'sMug they've been making news recently, because one of the members got arrested for a few things, but they're still touring with him
15:29
I think this question should go on codereview.stackexchange.com — Philippe Paré 20 secs ago
I always preferred Silverchair to AC/DC
@Quill Less electricity, less BOOM!
This old post was rolled back after my edits (the title especially needed to be revised).
@Mast AC/DC has always been a part of mainstream Australian culture, because there's about five or six radio-friendly songs that come on quite a bit, that everyone knows the lyrics for
@Jamal personally I'd only bother with old post titles that contain words that are now blocked
@Quill She was a fast machine
15:32
In terms of phrases, we also use 'bloke' quite a bit
I've also seen 200 fix some old titles at times. I don't think old posts should be immune to this.
I recognize Hell's Bells as soon as I hear the first bell ring
it rings differently than Metallica's For Whom the Bell Tolls
As long as it doesn't invalidate any answers (which may say something about lousy indenting or quote the question), I think editing old questions is fine.
@Mat'sMug Thunderstruck ^^
@Quill lyrics are wrong. it's not "HIGHWAY TO HELL!!", it's "HIIIIIIIIIIIIIIIIIGH WAY TO HELL!"
15:37
ohh, Sorry for that I have posted it on codereview.stackexchange.com — Roshan G 49 secs ago
www.youtube.com/watch?v=uEBzDJnsrUk
0
Q: I made an implementation of std::deque, in my own way...?

Dannyu NDosIn fact, entire deque header, though. According to Wikipedia, common implementaions of std::deque include: Storing deque contents in a circular buffer, and only resizing when the buffer becomes full. This decreases the frequency of resizings. Allocating deque contents from the center of...

0
Q: Implementing Tree data structure in C# with Generics

Roshan GWhile searching for generic implementation of tree in C# I found below solution provided by @Aron Gage in question But I am unable to implement it. What would be the way to implement it? delegate void TreeVisitor<T>(T nodeData); class NTree<T> { private T data; private LinkedList<NTree<T>>

@PhilippeParé the problem is that if the code doesn't work as expected, it's off-topic for Code Review. Please see A guide to Code Review for Stack Overflow users. — Mat's Mug 24 secs ago
@CaptainObvious borked
15:42
I just upped the MaxBodySize limit, so you should be able to have the whole code in the question body. For Code Review, I believe it's important to have all the code in one place. :-) — Chris Jester-Young ♦ 1 min ago
7
@PhilippeParé OP indicates he is not getting the expected result. Per the on-topic help page it's off-topic at CR. Also, given the phrasing of the question, I'm not sure he wrote it himself. — Mast 37 secs ago
@Duga And it got closed here, but I didn't notice that at time of writing.
0
Q: Sherlock and the beast2

user81312MY CODE FOR SHERLOCK ANS THE BEAST IS HERE. It runs for two test cases correctly.... but not for other. i can't understand why? plz help #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { ...

@CaptainObvious Finally: an assembly question!
@Jamal lol
15:53
@CaptainObvious Off-topic? "It runs for two test cases correctly, but not for the other. I can't understand why. Please help."
@CaptainObvious THIS CODE IS OFFTOPIC. plz close (joke on the format of the question)
Is there any sort of C# comments you can use so that you see those comments within your IDE?
@nhgrif Yeah, XML comments
@nhgrif ^^ and // todo:
<summary>
This function does something.
<param name="string">The string to do things with</param>
</summary>
15:57
^^ that shows up in IntelliSense
So if you add that to your method
then in another file you use that method, you could see that?
Yes
Even in another assembly/project
Why is this error happening and how can I solve it? is outside our scope. If your question can be reworded to fit our scope, it will be reopened. — Mat's Mug ♦ 5 mins ago
"My code works, but"
Monking!
0
A: Get string with max length

nhgrifPer Mat's Mug's answer: I'd try to find a name that better indicates that truncation will occur when value is longer than maxLength... but WithMaxLength isn't a bad name. I disagree that the method's name is the place to do this. It's not. And WithMaxLength is a perfectly fine name. But....

What is "gist"? It seems related to github? Or just git in general? What's a gist relative to git?
@Mat'sMug That reminds me of "No offense, but"
16:00
@Phrancis hello
It's Github's PasteBin
@nhgrif I agree that xml comments are the best place for it, but if the name can convey it also, it's even better.
.Truncate() would've been my first choice for a name
Truncate might be a better name.
.WithMaxLength() is what I would expect in a Builder pattern
16:08
Okay... knowing you guys don't know Swift, but do know C# which is close enough, mind explaining to me, big picture, what this code is doing? codereview.stackexchange.com/questions/101021/…
I think it posts a new gist through the API or updates an existing one if it already has the ID
@JeroenVannevel true
-1
Q: Will this window batch script file work?

Skylar AdamsSo to cut a long story short my dad happens to work for an institution where people are not allowed to have videos on the computers and the computers are not connected in any way.His boss wants him to create a program that will automaticall y delete all the videos in the office so that there can ...

16:24
mods... I just flag a comment as obsolete.
I think my comments (plus the user's comment) were encouraging close votes
Thanks for the swift reply - bah-dum-tish #PunOfTheDay
6
I see you've got a sharp eye, there, @Mat'sMug
@Mat'sMug Hey! Save some for the monkey! :P
@Mat'sMug The stars should be going to the OP, instead. ;-)
-3
Q: Will this window batch script file work?

Skylar AdamsSo to cut a long story short my dad happens to work for an institution where people are not allowed to have videos on the computers and the computers are not connected in any way.His boss wants him to create a program that will automaticall y delete all the videos in the office so that there can ...

16:38
@Quill aye, I see sharp, but only with my glasses on
@Mat'sMug without them, all your visuals would be pretty basic, but with them on, they could be advanced
Going afk for the afternoon
16:55
Review of working code is off topic on SO but on topic at Code Review SE. Book recommendations are off topic at SO. — paisanco 49 secs ago
2
A: Would you like to test design-independent graduation?

200_successPops, Community Managers, and Stack Exchange management. It's Saturday, so I don't know if you're on duty, but I want to make sure you see this before you pull the trigger on Monday. Currently, the votes are: Yea: +17-4 = 13 Nea: +10-5 = 5 However, the votes on the explanations tell a more ...

I'm voting to close this question as off-topic because it belongs on code review. — Florian Schaetz 7 secs ago
17:31
@FlorianSchaetz What you mean is that this question is off-topic because there is no specific programming concern in the question. — 200_success 42 secs ago
codereview.stackexchange.com What's going on here with all edits by morbidCode?
@skiwi it just looks like he's spending some time cleaning up old questions of his.
very long answer
0
A: ReactiveCocoa implementation of async function

nhgrif /** - TODO: Add OAuth2 towards GitHub as a protocol - TODO: Make it RAC - TODO: Store gistID in NSUserDefaults */ The right way to mark to-dos in Swift is like this: // TODO: Some note about what you need to do. Per this Stack Overflow answer, it is the most likely variant that Apple will ...

Testing to see how many people UV without reading it @nhgrif? =;)-
@RubberDuck It could also be that he's trying to game the system into some sort of badge?
@RubberDuck There's a picture...
17:45
And I just learned some [swift-is-magic] ++
@nhgrif the edits I checked didn't modify any tags. Maybe some of the others did.
It looks like he's just trying to string together his follow-ups.
Even if he was modifying tags, it would barely benefit him as they wouldn't count towards tag badges.
Could someone edit the code into this post here for the OP?
So we can re-open it.
@EthanBierlein I don't think you (general) are allowed to.
Why not?
It's one pastebin file. It should be hard to copy-paste it into the post.
I asked this question before and I don't entirely remember the answer, but I think it's something to do with licenses, and what the OP actually wants.
17:59
@EthanBierlein Editing in code by someone else than the OP is strictly forbidden here
It's mostly licensing issues, yes
You could be, through good intentions, violating OP's copyright. Only they have the ability to license their content under the CC By whatever SE uses.
@Mat'sMug concerning the named group matcher....
I wrote the regex so that the index would be the only matched group anyways
Actually, that may be okay for pastebin.
**mutters colorful phrases about licensing issues**
> User contributions licensed under CC-by-SA
Still, the onus is on the OP IMHO
Yeah. It's the same license SE uses. So, in this case, we could (but I won't)
18:11
0
Q: Java code needs reviewing

heathbmThis code technically works, however what would be the correct way to structure this? If possible could you explain how the main errors also, I am very new to this and aspire to learn as much as I can. I am following a course this is just what wanted try to see if I could do. what book would you...

@CaptainObvious Title needs reviewing.
@JeroenVannevel That's pretty cool.
More seriously, the limit has been raised to 65536 from 30000. — Chris Jester-Young ♦ 1 min ago
18:22
@EthanBierlein do you ever intend to be employed as a software developer? (Or self-employed?)
If yes, I recommend you rethink your distaste for licenses.
(And either way, stop copy&pasting code from 3rd party sites into SE)
@EthanBierlein I would say that if the OP says it's their code, they are probably okay with pasting it into the post body. If we get a DMCA notification, we can deal with that then.
(I edited the post, for the record.)
@RubberDuck I did. :-P
18:40
@ChrisJester-Young Woah, a mysterious removed ping :o
@skiwi Yeah, originally I said: "Strictly" forbidden? Fine, I'll remove my edit.
Then I saw RubberDuck's comment about pastebin submissions being CC-BY-SA anyway, so.
Fair enough ;)
Should I just reopen the post? Or are we really going to wait for the 5 reopen votes?
18:55
Hmm... what's wrong with me
I've got awesome ideas to make, but somehow I don't find motivation to actually make them
that's called "a healty portion of laziness"
Maybe it's because it's all in Java
I would lose my appetite as well then
Did you try a real language?
oh Jeroen, at least Java can properly handle posessive quantifiers.
/me back to Dark Souls..
I'm damn scared to walk through the fog though.
@Vogel612 Back to Java programming huh?
;)
no.. Dark Souls - Prepare to Die Edition..
18:58
Sounds like Java's unofficial name to me
@skiwi, procrastination is the road to management. Remember that and it should be motivation enough
@JeroenVannevel Java Groovy
and yes it's exactly what it says on the tim
Getting all hyped up for Dark Souls 3 @Vogel612?
a little.
18:59
I still haven't made it past the first level of Dark Souls Prepare to Die
By the way, hello everybody.
Right now I'm shitting my pants 'cuz I'm standing on the roof of a church
hellp @mplf nice to have you here
Welcome @mplf
This is where I posed the question a again. However all I got was down votes, where would be a better place to ask?codereview.stackexchange.com/questions/101054/…heathbm 33 secs ago
Reading your bio, you seem born for this site
3
19:00
Welcome to Stack Overflow. Please take the time to familiarize yourself with the Stack Overflow help file, which will help you understand what kinds of questions are appropriate for this site. This site is intended to help you obtain answers to specific programming questions, as opposed to providing tutorial, design or code review assistance. — MarsAtomic 22 secs ago
@JeroenVannevel That deserves a star, and hey @mplf aswell ;)
@mplf Well... is it that bad to make others do your work?
Not so sure about born as much as invented I think
Everything I say deserves stars. When I don't get them it just means you people are slacking
@skiwi that depends on two things, 1), the quality of what they produce, and b) can you pass it off as your own?
It just seems to me that peole often have an idea, then can close themselves to any critique until they realized their idea
19:03
aaaand I'm dead
gargoyles with huge stone axes are ... problematic
@Vogel612 Do you find Dark Souls playable though? I did use some tweaks to increase the graphci quality, etc. but you still see it's very old
it's definitely playable, didn't use tweaks
but the intended lighting should be called darking
I'm running the steam version, maybe that's why it looks okay
I've also got the steam version
also why can't the idiots at spotify make the commercials with the same volume as the normal music??
I think Dark Souls 2 is a proper HD version though
19:06
it's not like it's that hard..
Spotify is one of the few services I use that are really worth paying for
@Vogel612 Or remove that freaking commercial with the cat's playing ping pong
It equals less than half of a single hourly wage for an entire month of music
well... I don't have a wage starting next month, sooooo...
That one advert where Spotify is intentionally annoying the customer (a free user) kinda put me off from paying in the near future
19:10
@skiwi about the first level... I figure you're stuck in the fight against the boss?
@Vogel612 I think so, yes, been at least half a year since I tried :P
the trick is to go through the door on the left side the first time you enter the room
this leads you to a fire and through a small dungeon
you'll find another weapon
after that there's fog. it gets you to the bosses room again, but you're standing somewhere up
if you attack while jumping / falling you take about 80% of the hp
and the rest is dodging and hitting basics
I'll remember it for next time I try
I still do have some games I can still play :P
Remembers me that I bought Payday 2 a year ago but still haven't played it
hmm... yes humblebundle really makes you have a lot of games you don't play in your library
I bought it in a sale though :P
19:17
Code reviews should be posted at codereview.stackexchange.comrmaddy 38 secs ago
what the fuck...
how why. that's... only DarkSouls lets you fight 2 bosses at the same time
@rmaddy Thanks! I wasn't aware of the code review site but I'll be sure to post it there as well as in the future — Erik 15 secs ago
Also, I now already know that once university starts again in 2 weeks, I suddenly find all motivation to create the games I wanted to make
this is maddening
19:34
0
Q: Creating CSV to email

ErikWhile this isn't a problem, I wanted to hear if someone could please check the format string I use when I create an CSV file? It does work, but it looks kind of "weird" and was wondering if this was the optimal format? These are the column headers: NSMutableString *csv = [NSMutableString string...

19:48
I probably should have closed this question sooner. I only took a glimpse at the question. Now it won't be handled by Community and the title may stay.
20:08
0
Q: credit card validation

Stefan RendevskiI started following Harvard's CS50 (Introduction to Computer Science) on edX, and as part of their Hacker edition set 1 was the following assignment: I am supposed to write a program (in C), that takes as input a long long int from the user and proceeds to check whether the entered number is a v...

20:40
I voted this question as hypothetical
0
Q: Creating CSV to email

ErikWhile this isn't a problem, I wanted to hear if someone could please check the format string I use when I create an CSV file? It does work, but it looks kind of "weird" and was wondering if this was the optimal format? These are the column headers: NSMutableString *csv = [NSMutableString string...

> All of the "value x" strings are replaced by functions in this question for the sake of simplicity.
Needs close votes.
How should he find out what part is hypothetical?
0
Q: Helper for DropDownLists with extension method

Simon ShineIs the following helper idiomatic ASP.NET MVC? All the built-in DropDownListFor helpers only accept IEnumerable<SelectListItem>. If the Model doesn't have this list, but an IEnumerable<SomeEntity>, avoiding this conversion in the Razor template seems to require some more of its helpers. namespac...

@skiwi since you asked about "playable" especially wrt. graphics: gaming.stackexchange.com/q/231976/42123
@Vogel612 There's always a SE post to the rescue! :)
that's in-game screenshot from windowed mode resized to 40% because of image size problems with imgurl
20:46
Oh right... it has no answer yet
mostly because I just asked it right now...
That's I believe how mine looks aswell
Maybe I'm too usd to current-day graphics :p
maybe.
Hypothetical code is off-topic for Code Review. And it seems the part you're primarily asking about is purely hypothetical. For instance, one of the things I'd comment on is the type of loop you're using... which seems wrong... but since I don't actually know what's happening in that loop, I can't really make any comment on that part of your code. — nhgrif 30 secs ago
Code review? Unit testing? This should catch these problems — Ed Heal 26 secs ago
20:54
guess I'm the only close voter then
0
A: Reviewing and optimizing underperforming XSLT

hroptatyrI'd go with a <xsl:key ...> index, like so (at top level): <xsl:key name="contains_RETURN" match="Barcode" use="contains(text(), 'RETURN')"/> and then rewrite your hotspot to: <xsl:when test="count(key('contains_RETURN', 'true')) > 0"> ... </xsl:when> The idea is to parition Barcode nodes...

21:13
@nhgrif I don't have a distaste for licenses, it's just a distaste of the issues that can arise around them.
21:36
0
Q: Lock-free ordered singly linked-list behaves unpredictably

Dawid SzymańskiI wrote an algorithm for lock free ordered list, that uses only one pointer mark to function - kind of novelty. However it behaves strangely, that is under more pressure > 20 threads it breaks, but under less than 20 threads behaves properly even with an increasing infinitely number of iterations...

Sam Weller has been visiting, apparently: codereview.stackexchange.com/review/suggested-edits/42842
21:54
Uh, who is Sam Weller?
@GlenThomas I appreciate that you're providing an answer, despite it being tired. In fact, it's this kind of remark that makes others (or at least me) to review my code and approach once again. After all, if you feel that I'm going the wrong way, perhaps it'd behoove me to look at it from a different angle. But that's a matter for code review. As for your contribution, I'm accepting it and even awarding it +1 because of the example conforming to the premises. Thanks. — Konrad Viltersten 8 secs ago
@EthanBierlein You don't know who Sam Weller is?
Huh
I though chat was updated every hour
I guess not
0
Q: Simple way to calculate recency + frequency

ShimmyI have a list of entities opened by various users. I keep track of each access of any entity by storing access dates and times as the following: public class Entity { public int Id { get; set; } public virtual ICollection<AccessInfo> Accesses { get; set; } = new HashSet<AccessInfo>(); ...

Still off-topic:
0
Q: Creating CSV to email

ErikWhile this isn't a problem, I wanted to hear if someone could please check the format string I use when I create an CSV file? It does work, but it looks kind of "weird" and was wondering if this was the optimal format? These are the column headers: NSMutableString *csv = [NSMutableString string...

22:05
VTC'ed
22:20
There we go.
Now chat decides to update.
22:36
So, we're not offering you this trial because we think it's the best thing for you; we're offering it because it's available (i.e. the stuff that our devs have done enough work on to be ready for real-world testing). As you may know, when we roll out big feature changes, we tend to do it first on Meta SE and then distribute to other sites. Can't do that for design-independent graduation, though, because MSE is already set to "graduated." I mistakenly thought that after everything you guys had been through, you'd rather see any progress than wait for upped rep levels, which aren't ready yet. — Pops ♦ 5 hours ago
1
Q: Recent top tags in Tumblr blog

MephyA friend of mine asked me to write a script for showing the most used tags in her Tumblr blog in the last days. I saw it as a great opportunity for learning Javascript and accepted it, as it seemed simple enough while being useful. As most people using Tumblr aren't exactly programmers but can d...

0
Q: Good Clojure vs. Whatever I did

mmbbI'm working to convert some code originally written in Python to Clojure. I'm still a functional programming neophyte and while I as converting I wrote some code that feels a little clumsy and so I have a few questions. You can see all of the code on github. Question 1: I seem use destructuring ...

23:10
0
Q: Java Interface implementation

DeeTeeI am working on an assignment in my Java class that requires me to implement methods in a Product Database Implementation class. I have populated the methods per instruction (I believe) and would like some review on it. However, I have not run the test client because I am still unsure on how to c...

23:35
0
Q: Return lambda expression based on parameters

afmThis function returns a lambda expression based on the parameters sent. I am sure there is a better way to do this. [NonAction] private Expression<Func<ScheduleItemDto, bool>> Where(Guid siteGuid, Guid? eventGuid, MonthOfYear month, int year, bool? closed) { Expression<Func<S...

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

« first day (833 days earlier)      last day (3483 days later) »