« first day (720 days earlier)      last day (3596 days later) » 

18:03
Someone injected google maps with bad content: maps.google.com/…
@rolfl Not visible anymore here :(
zoom in?
don't see it either
Nope, I've seen the pic earlier today though
@skiwi care to enlighten us?
18:11
0
Q: Is it okay for my query handlers to use other query handlers?

Mathias Lykkegaard LorenzenI recently started looking into CQRS when using Entity Framework and the impact it has had on my systems has been overwhelming. I implemented the following patterns described in these blog posts: Query implementation: https://www.cuttingedge.it/blogs/steven/pivot/entry.php?id=92 Command implem...

@Mast Just a casual Android icon watering an Apple icon
404 error:
> This page is intentionally left ugly ;-)
lol
This is probably more of a candidate for codereview.stackexchange.comglittershark 34 secs ago
Interesting Question, but I wonder if it would be a better fit for CodeReview SE? — xDaevax 9 secs ago
18:35
I'm voting to close this question as off-topic because belongs on codereview.stackexchange.com — Brad 13 secs ago
Anyone thinks this is enough to help a new coder use jsperf?
@Launa setting it directly to i = -1 would make your algorithm slower. You can use a tool such as jsperf.com to test your codes performance. Implement your own version, and also add a 'real' version and see their differences. (Remove all unnecessary console.log calls and similar before you run the tests) — Simon André Forsberg 32 secs ago
I don't like jsperf, does that answer your question?
I'm still hoping they're building a performance-check-option into ideone.
0
Q: ScopeFactory - Best way to share $scopes across Controllers in Angular?

Leon GabanPreviously I use to always navigate through the $parent $scopes in order to send or change data from one Controller into/in another. I then created my own ScopeFactory as a way to storing each Controllers $scope and then getting those scopes from other Controllers. Have not experienced any prob...

0
Q: code for Inverted Index doesn't work

Lovely ToonZpackage irproject; import java.io.*; import java.util.*; import java.util.concurrent.ConcurrentNavigableMap; import java.lang.*; import org.mapdb.*; import org.tartarus.snowball.ext.englishStemmer; public class inverted { HashMap<String,ArrayList<HashMap<String, Integer>>> idx = new HashMap<...

18:50
Inverted index? Wut?
VLQ anyway
Off-Topic anyway.
@SimonAndréForsberg new coders probably shouldn't be fretted with such optimizations...
0
Q: PHP Memento design pattern implementation

luqo33I am a self-taught programmer. I decided to learn design patterns by reading about them, and then coming up with their implementation in PHP. I know that learning would be virtually impossible without code review. I will be grateful if you could review my implementation of the Memento design pat...

@nhgrif probably not, but they asked :)
probably best suited for code review instead. codereview.stackexchange.comFred -ii- 58 secs ago
I'm voting to close this question as off-topic because it's best suited for code review codereview.stackexchange.comFred -ii- just now
@glittershark This seems to be "example code" which is off-topic for Code Review. — Simon André Forsberg 50 secs ago
@Brad No it doesn't. This only contains a database design, not any code. This is off-topic for Code Review. To avoid questions getting closed on multiple sites, please either flag for migration with a custom flag (so that moderators can reject it or not) or vote to close because it is off-topic for SO, not because you think it belongs somewhere elseSimon André Forsberg 9 secs ago
19:09
@SimonAndréForsberg it's exactly where it belongs. Do I need to sanitize my login value in phpFred -ii- 2 mins ago
sigh, that's not what I said...
@SimonAndréForsberg sorry, I just did a quick search of code review and found plenty of questions looking for review of a database design which included an ERD. IT didn't seem material that the ERD was expressed as a picture and not CREATE statements since the concept is the same. — Brad 53 secs ago
@Brad at Code Review, we review code, thereby any question without any code can't possibly be on-topic. It's a non-starter. — nhgrif 46 secs ago
@Duga @nhgrif Well said
Trying to teach people how to use Windows.
You should start with Doors.
They are trying to use it like Macs, and are surprised how easy it is.
19:21
That doesn't even make sense.
Using a Mac isn't harder or easier than using a Windows machine. It's just different.
2
Using Windows like a Mac is hard.
At least, harder than using it like Windows.
Using Mac like Windows isn't easy either, I mean, look at that mouse
Agreeing here. However, they really should have tested their code before posting their question. In falls into code review, unclear, why it's not working sections, far as I can see. — Fred -ii- 10 secs ago
meh. It's kinda harder to use a Windows machine to it's "full potential"
@Hosch250 what exactly does it mean to use a computer like a mac?
19:24
@Vogel612 What do you mean by that?
Windows machines just have less potential.
@Mast Oh yeah?
aside from that the DOS CLI is just junk
DOS? Who uses that?
Isn't that like, ancient?
19:25
I use it...
Powershell CLI is, too, because it's waaaayy too verbose
seriously you can alias commands by simply adding a symlink somewhere on your path in a *NIX shell..
@Hosch250 what does it mean to "use a windows machine as a Mac"?
neither DOS nor Bash nor Powershell support that, to my knowledge
@Fred-ii- Now that I totally agree with. At Code Review we often get "Does this code work? How can it be made better?" questions, while CR is more about "This works. How can it be made better?". The only way to know if your code works is really to test it. — Simon André Forsberg 44 secs ago
Hold on, they are calling me.
19:27
@Hosch250 I think Windows is too restrictive to have as much potential as the other OSes
@nhgrif Now I am impressed:
Using JSPerf (thanks for that btw) I ran a 'traditional' bubble sort vs. my variation (i = -1). The traditional is considerably faster. Interestingly, the i = i-2 variation is slower than i = -1. I imagine this depends on how the numbers are ordered in the array to some degree. You can see the tests here if you're interested. Test ResultsLauna 12 mins ago
@Mast that has it's good sides, too..
I love it when SO-comments about CR or not CR end up being friendly like this:
@SimonAndréForsberg Exactly. This probably won't be the last neither lol cheersFred -ii- 55 secs ago
Your average digitally illiterate user can't quite destroy that much ;)
@Vogel612 For the average user perhaps, I don't like it
19:29
@nhgrif fair enough. I guess the place for this is Programmers then? — Brad 30 secs ago
The one reason I'm using a dual boot both private and at my work is certain programs just won't run decent on Ubuntu
which is why I use linux at work, and stay with windows for enjoyment. I don't need fancy stuff for enjoyment
This is should be migrated to codereview.stackexchange.comAlexMA 46 secs ago
did I just stick a foot in my mouth again? codereview.stackexchange.com/a/87883/23788
@Mat'sMug Are you that hungry?
19:38
I would recommend that you post this on the code review site codereview.stackexchange.comGary Storey 51 secs ago
0
Q: Select type stringification for ostream output using c++11 template mess

stilgarThe objective is to select which function is used to represent a type as a string for output on ostreams. The code here allows to explicitely choose a function, or to fallback on a java style Object::toString() method if it exists, because I'm using 3rd-party classes that follow that convention....

ugh... @JeroenVannevel any ideas?
But disposing the context after every query handler has done its work makes it impossible for them to share the work they have done with each other. Furthermore, it makes my system create multiple database connections every time this would happen, right? As for the decorator, I could make the field protected internal. — Mathias Lykkegaard Lorenzen 1 min ago
Woohoo. My script with time.Sleep(1 * time.Second) updates every two minutes instead
I'll work on that
I'm not at all familiar with that pattern, I'm just raising a flag about a design issue, where you have a disposable field that doesn't seem to ever get disposed. I don't know how to solve this and keep that service locator. — Mat's Mug 1 min ago
19:51
Database connections are pooled. Two EF caches are shared per app domain, only one is DbContext-specific. DbContext is intended to have a short lifecycle: it's very lightweight to construct. A long-lived DbContext will become inefficient due to a constantly expanding ObjectContext, pressuring memory and execution time. Retrieving an entity from one context and using it in another, will cause the entity to be detached: you should attach it to the new context or EF will think it's a new object.
Hey guys, this guy deserves a few votes. He solved days worth of headache for me.
1
A: Is it possible to throw an exception if the input isn't valid?

CoronAActually each error message is caused by an exception. This exception is caught and the parser tries to recover. The parse tree is the result of the recovering. Since the error occurs in the lexer (the lexer just does not know the characters ( or )), the error handling must be attached to the le...

@Mat'sMug I think we can use this to help us iron out our grammar too. github.com/sharwell/antlr4cs/blob/master/runtime/CSharp/…
You shouldn't be putting your threads to sleep @JeroenVannevel ...
0
Q: Beginner in C++. Random Password Generator

Marcus HeadPlease tell me if this is the wrong place to put this; it says I am asking a question but I am not, I just want my code reviewed. This program is a random password generator. It asks the user how many chars they want their password to be and how many passwords it should generate. I used the rand(...

@JeroenVannevel in other words, his solution is bleh / over-engineered-to-death
@Mat'sMug No doubt. Creating 3 classes for a db.Users.Single(x => x.ID == 2) call? That's Java-style architecture
19:56
lol
Threads shouldn't have bed times.
2
I'll try to put it in a timer, if you're so persistent
I am so persistent.
Or... You can do proper thread dependency.
I'm looking at code samples and while they show timers and tickers, each example also uses time.Sleep()
Next tag badge: [silver:vba]
20:00
Oh. I didn't realize there were examples on github using sleep... That must be the right way to do it then...
</sarcasm>
Ah, they have some <- operator which apparently works like async/await
I don't know exactly what you are doing or in what language, but as far as I know, sleep is almost always wrong.
3
recommended next badge: [gold:socratic]
Work, damn you, work
@SimonAndréForsberg week month quarter ;)
> You've earned the "Refiner" badge.
20:12
Would getting advice on code documentation (e.g., JavaDoc, JSDoc, etc.) be on-topic here or anywhere on SE?
What kind of doc?
JSDoc, specifically
Documentation in your code?
20:18
Yes as in, on-topic here?
Cool. First time writing JSDoc so I want to make sure I'm doing it properly :)
Say yes again. I dare you.
Does Marcellus Wallace look like a code reviewer?
Yes.
JAVASCRIPT MUTHA-CODER--DO YOU SPEAK IT?
20:21
Absolutly not. I had to deal with it a little bit and uderstand to make it communicate with Qt. And I wrote some basic Greasemonkey scripts, but that's really all there is to it.
1
Q: Hello There Calculator

RubberDuckThe open source project I work on uses Antlr4 pretty heavily, but I don't know much about it. I thought I would use April's Community Challenge as an opportunity to learn something about grammars, lexers, and parsers. Without further adieu, below is my very simple calculator using the visitor pat...

lol
@RubberDuck: ado not, adieu
Get that French speak of the premises
6
in TCG Creation, 3 hours ago, by sᴉɔuɐɹɥԀ
♫ It's Friday, Friday, I like to write documentation on Friday! ♫
@CaptainObvious That took too damn long.
20:30
I have written about 50 pages or more of documentation this week.
Wow, that's a lot.
I'm voting to close this question as off-topic because it belongs in code review but I am unable to choose the code review site from the list of other sites... — Jasper 45 secs ago
@RubberDuck and that was a quick answer :)
I hope some day all that's good of Windows and Linux/Ubuntu can just get merged
@skiwi And end up with Windows?
20:44
@Mast What are you talking about, too restrictive?
@Mat'sMug :O Should I be afraid?
@SimonAndréForsberg not unless you're planning a month off in Ukraine anytime soon ;)
The only thing I can't do on Windows is edit the source code, but with free access to the registry and a compiler...
@Mat'sMug I think I want to build an error listener to report back failures for ducky.
20:46
@Mat'sMug Not at the moment, no. I would really want to go back there some time though!
@nhgrif Got an email from my professor in response to one I wrote a couple days ago.
Had to rewrite an essay.
@RubberDuck sounds like a very very very very good idea :)
+165 today
@Mat'sMug log it out, so we can ask for it when people report false positves?
totally
They just generally didn't know about the basic things, like just typing on the start screen to find apps and stuff (like a lot of Windows users). They are doing good now they know how to find things, except it appears the touchscreen driver keeps temporarily deactivating the Synaptics touchpad driver when it starts.
20:54
Some friends just released their first album today:
Scrabble, apparently, doesn't know much about programming.
Either that, or thinks it knows more than it does.
GOTO is not allowed.
2
And I don't know why it thinks "atomy" is a word.
I'm out y'all. See ya after #JDAFocus.
later!
Later.
@Hosch250 GOTO is last I checked two words. go - to.
21:00
@SimonAndréForsberg Not in programming.
At least, not in C/C++!
And last I checked, ATOMY isn't a word.
I should write a Scrabble app that uses the Merriam-Webster and the Oxford to check for words.
Then, I'll just have to create a file of names and places that aren't allowed.
@JeroenVannevel Thanks.
@RubberDuck Worst thing is, I don't have a better title! :)
Damn you SO websockets. What's the point of accepting a messageCount parameter if you're not going to use it?
@JeroenVannevel So you don't break older queries?
21:09
Wait.. They do use it.. Just not when my code calls it
lol
if (Code.Author == User.JeroenVannevel) { return; }
string(MessageCount) does not turn 25 into "25"
Is this SQL?
Evening all
21:11
Evening.
I was wondering, what is the best language/framework these days to build websites.
HTML/CSS/JS?
I've been doing it in the past in PHP (without a framework)
That is what browsers support clientside.
but I was thinking about Django/JSP
21:12
If you have a server, that is completely different.
I've seen Java, Python, Ruby, PHP...
I should've been clearer, I was talking about backend
It depends on what you know, somewhat.
I'm just not certain which one is 'most in demand'
Ruby, Python, Java, and PHP are all in demand.
I have a feeling that there will be a PHP switch at some point.
21:14
I know. I know. I'm leaving, but...
I just got my Yearling badge!!!!
5
°/ @RubberDuck
congrats
@RubberDuck Finally got the 200 required reputation?
Yeah. Took me long enough, eh?
yup ;)
TTGTB. I think Ukraine was really good for my daily rhythm, I'm getting tired much sooner.
You visited Ukraine?
21:18
@Hosch250 i think we are still waiting to find out exactly what it means to use a computer "like a mac"
@bazola Have you ever switched systems?
i use mac linux and windows all the time
You know one, and don't know the other, and you are kind of confused, wondering why things don't work the same?
i understand what it means to not know how to use a computer, what i don't understand is what using a computer like a mac means (vs using one like a windows machine)
They have only used Windows minimally, and the hardest of learning a new system is setting it up (which is also the first part), because you don't know where the preferences are, etc.
21:24
so what's your question you state what you are feeling but you never actually ask a definite question.. this could also be a good candidate for code review — MethodMan 52 secs ago
They are essentially used the same, but they were used the Mac interface, and they were thinking the similar buttons worked the same, when they actually are somewhat different.
@Bazola perhaps they mean more terminal/unix usage on a mac? :)
0
Q: Implements Directed and Undirected Graph in C++

MathStudentI am learning C++ and I decided to implement a Directed and UnDirected graph. (I haven't learned how to do inheritance yet, so they are distinct classes.) I have not handled any error cases (i.e. trying to remove a vertex that doesn't exist.) I am interested in any comments/criticisms of my app...

I agree with @MethodMan, this is probably more appropriate for codereview.stackexchange.com — dub stylee 42 secs ago
Like, Mac doesn't have snapping windows to the side.
21:25
We're not talking about advanced users.
I didn't say we were.
So...?
windows only got that feature around windows 7 anyway
But on Windows, you can snap the window to the side, and unsnap it back to the original size.
i think i understand what you mean now though, just the very specific features of the OS specific UI. those are customizable on any system though
21:26
And what does that have to do with using windows like a Mac?
and those need to be re-learned in between major releases for all platforms
Because they liked the default window size, and were afraid to snap it because they thought they would lose the original size.
So, nothing really different, just different things.
That's such a weird thing for you to even comment about. It's really just an adjustment period.
When I put Ubuntu in this summer, I'll probably try to use it like Windows until I learn to advantage of its strengths and use it like Ubuntu.
You can't use Mac like a windows computer because there is no x button in the top right corner of windows on OS X.
21:28
Nope, it is on the top left.
@Hosch250 i recommend trying it without a UI
@bazola Why?
Are you suggesting the UI isn't good?
because the you can learn the command line interface
Why would I need to?
actually i have no idea as far as the current versions, last one i used was 10. something
21:30
I don't know Bash anyway.
to set up a web server for example? lots of uses for command line linux
Suppose I use the GUI? Makes it a lot simpler to learn, and I will be making less typos.
If there isn't a GUI for that, there should be.
I do use the command line on Windows when I need to, but I find GUI's are faster as a general rule.
well then you may as well not be using linux :)
0
Q: JSDoc for TCG game entity configuration

sᴉɔuɐɹɥԀThe Cardshifter team has been working at "translating" a very complex Java class into JavaScript, to make it more accessible to somebody who would want to fork the game and make their own modification, which is an objective that's been close to our hearts since the very beginning (for the game to...

Command line on Windows is totally different from everything else.
21:32
@Hosch you gotta love the terminal on ubuntu. Installing things has never been easier. sudo apt-get install postgresql. BAM you got it installed!
My first computer though... Windows3.1 and MSDOS.
Yeah, on Windows I have to download it and run through the installer.
On the contrary if you run into problems, solving them on ubuntu can be quite a gell.
But, the installer provides a bunch of startup/install settings.
+ set path variables in some cases
21:33
How does the terminal on Ubuntu handle that?
Just the defaults?
Or does it prompt you to choose?
I suppose you can also use flags and arguments for that. But I never ran into problems with the defaults
It's not like your programs are stored on c:/ProgramFiles
It has a different file structure
you can easily go in and edit the config after downloading, which you will have to do to setup anything really complicated anyway
also @Hosch250 you could look at the x window system for having command line ubuntu but still having a GUI when you connect to it remotely
I'm going to run it in a VM.
Basically, I just want to play around with it, but still work on my Windows system.
Get another machine.
No, get another hard drive.
I have an external HDD, but I use that for backups.
21:38
never hurts to have extra machines!
Actually, you can run Linux from a usb stick.
0
Q: Playframework(scala) custom exception handling

loveshI am using play framework with scala and here is a scenario on which i would like to have your opinion. Lets say i have 2 custom exceptions that i can throw, they are EmailTaken and AuthFail. What i need to do here is whenever any of these 2 exceptions happen, i need to return a json with 3 keys ...

anyway @Hosch250 i wasn't trying to give you crap, i was just curious what you meant by that phrase
@bazola Just the learning process, basically, only I worded it bad.
@Hosch250 There are lots of window-manager hacks for OS X.
21:41
older people seem to hate learning stuff
Well, this person actually is younger than me.
They don't hate learning it, just a bit confused (like I was at first).
It took me a couple months to get familiar with it, and a couple years to get where I am now!
@200_success Thanks, but I'm sure my mom isn't interested.
That's OK, I wasn't interested in your mom.
7
=)
Harsh words in the chatroom
21:45
Lol.
/**
 * Evaluates if it's time to quit work.
 * @param {string} time - The time of day/week.
 */
function timeToQuitWork(time) {
	if (time === "WEEKEND!") {
		console.log("Time to quit work!");
	} else {
		console.log("Keep working...");
	}
}

timeToQuitWork("WEEKEND!");
Quick question; you can write/compile/run JS using Eclipse, right?
bool _TimeToDoSchool = true;
bool _BeingLazy = true;
bool _BeingIndustrious = false;
:(
@sᴉɔuɐɹɥԀ Write, I'm sure.
HIOOOOU - my next Scrabble set.
I just played WINTERY for 70 points.
hi erick, you may want to post this on Code Review which is designed for reviewing code: codereview.stackexchange.comDan Beaulieu 10 secs ago
@DanBeaulieu At Code Review, we will only review a working implementation, not explain how to provide new features. — Hosch250 27 secs ago
22:01
0
Q: A closer look at the chat's mumblings

Jeroen VannevelThe Go Playground was boring so I decided to make a small application that throws me into the language. It basically queries the chatroom every second for new messages and displays them in the output pane (minus the bots their messages). It's all new to me so any insight is welcome. One thing I'...

0
Q: A* algorithm for hex tiles

KyranstarI implemented the A* algorithm for pathfinding for a game of mine. The game uses hex rooms which are connected to each other by an int[] in the room class. Are there any pointers you can give me on my code? public class Pathfinding { /// <summary> /// Finds a path from one ro...

@200_success: BRAZILLION IS A THING
People will start using it
I'm sure of it
BRAZILLION?
BRAZILLION!
I've only heard of Gazillion.
There's a joke in there you are missing... ;-) politicalhumor.about.com/library/jokes/bljokebushbrazilian.htm
2
22:11
+185 ...@Santa?
Ho
Woohoo!! Capped!! Thanks @Santa!!!!
@JeroenVannevel Is it "brazillian" or "brazillion"?
22:23
0
Q: Copy table using Selenium and Python

ZAD-ManI have some Python code that copies a table from a website using Selenium, but as I haven't used Selenium much, I have that irksome feeling in the back of my mind that there must be a better way. It's also quite a bit slower than I would like. Here's the relevant code: # ...Navigate to proper pa...

22:54
@200_success You know, I haven't quite made up my mind yet
Evolving a language is hard
Well, the U got its redesign.
I now know why whoever designed it works there - because no one else would hire them.
[ckuhn203/Antlr4Calculator‌​] ckuhn203 created repository
2
Is something not working the way you'd like it to? If you're looking for code review, there's another Stack Exchange site for that: codereview.stackexchange.comMark Leiber 33 secs ago
If you're looking for feedback on the code rather than help with the code, I'd suggest migrating this to codereview — Foon 46 secs ago
23:10
0
Q: Trying to calculate time elapsed between Ruby loops and getting mixed output

Kane JamisonI have a Ruby script that runs through a number of loops before finishing. Each time it finished one of the 9 loops, I'm putting a message on the screen with the time elapsed since the last loop finished. Here's the relevant code I'm using (minus the loops themselves) current = Time.now #Loop ...

0
Q: Portable C++98 thread class akin to std::thread

Cat ZimmermannI want a homegrown version of C++11's std::thread. My motivation is to avoid manual memory management of the arguments passed to the thread function. I'm restricted to C++98. I want better type safety than what's available in the POSIX and Win32 thread APIs. Two notes: I can't think of a way t...

this belongs on [codereview] — Daniel A. White 41 secs ago
23:41
0
Q: How to read code from hangman.txt file in Java?

BreedingthespawnWanting to know if the code I have in this hangman game is correct for reading code from the hangman.txt file. I think the code is wrong for some reason. I compiled the code and I did not get any syntax errors, but think something is wrong with it though. The program is supposed to read the wor...

23:59
RELOAD!

« first day (720 days earlier)      last day (3596 days later) »