« first day (323 days earlier)      last day (3693 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
So when creating a SudokuBoard, you give it a width, a height and a set of 9 boxes?
 
Yeah, I think currently the formatting / readability is the worst part of the code :) not entirely sure how Java 8 should be formatted.
@skiwi A classic sudokuboard yes
 
Officially, there are no guidelines, but in my opinion:
 
	public static SudokuBoard classicWith3x3Boxes() {
		return sizeAndBoxes(DEFAULT_SIZE, DEFAULT_SIZE, DEFAULT_SIZE / BOX_SIZE, DEFAULT_SIZE / BOX_SIZE);
	}
 
Map<String, String> map = Stream.of("A,1,!","B,2,@","C,3,#","D,4,$","E,5,%")
        .map(line -> line.split(","))
        .collect(Collectors.toMap(
                array -> array[0],
                array -> array[1]
        ));
map.forEach((k, v) -> System.out.println("Key = " + k + " / Value = " + v));
This looks readable to me
@SimonAndréForsberg Only for a classic board? Did you generalise it even more?
 
@skiwi You haven't seen the Samurai method I assume?
Take a look at the pictures in my C# question to see which Sudokus the code can solve
16
Q: SudokuSharp Solver with advanced features

Simon André ForsbergEven though it's the first time I'm writing something this "big", it feels like I know C# quite good. It's been nice to learn LINQ also and I am very impressed by the features, and perhaps I have overused it here (if it's possible to do that). SudokuFactory: Contains static methods to create so...

@rolfl I find this funny: "If you include the parallelism, then a fork-join process is right. Not a stream.

My Attempt

I am not claiming this is right, or best practice (...)" :)
 
4:05 PM
They all look like sets of 9 boxes, unless I am mistaken?
 
The Nonomino doesn't have classic 3x3 layout of 3x3 boxes, but instead has a 'squiggly' kind of 'boxes'.
 
I think I sense confusion
They all look like sets of 9 tiles, unelss I am mistaken?
Might be worded more appropiate
 
Well, yes. That's correct. Although it doesn't necessarily have to be 9.
 
In any future sudoku the tiles themselves could even be disjoint, as long as one set consists of 9 tiles and is correct only if it has the numbers 1 through 9 distinct?
Then what I just said, but then with X tiles?
 
If I understand you correctly, yes.
 
4:10 PM
0
Q: how to reduce the complexity of the given code?

arunkrishnamurthy01Below is my solution for this 'Team Split' problem. In summary, the problem is to find relative strength of 2 teams by finding the difference between their total strength (individual strengths can be found using a quadraric expression of form ax2+bx+c) The solution in Java manages to solve the ...

 
Btw another point, it would be better if you put all class variables at the top imo in SudokuBoard
 
^ I assume this is an algorithm problem; not a coding problem.
Oh well.
 
In all honesty, I find your code quite illogical, I would expect a SudokuBoard to have a width, a height, and a list of a set (or list) of tiles, where the set of tiles woudl be called a group
 
@skiwi SudokuBoard does have a width, height and a set of SudokuRules. A SudokuRule is a set of tiles.
@ChrisW Do you consider algorithm problems to be less on-topic??
 
@SimonAndréForsberg Then I think the SudokuRule name is a bit weird... As I'd expect it to be a rule, but it's a set of boxes.
 
4:22 PM
@skiwi It's a set of tiles (or is a box the same as a tile?). And it enforces a constraint on the board, hence the name rule.
 
For the rst I think it should only be accepting a Collection and not a list in the constructor
But it is a set of objects...
 
SudokuRule(Collection<SudokuTile> tiles, String description) { <--- looks like a Collection to me
 
that one yes
SudokuRule(Stream<SudokuTile> tiles, String description) {, this one looks like a Stream to me :p
 
@SimonAndréForsberg Choosing an algorithm is a pre-coding activity. If it is an algorithm issue, the only reason for doing a code-review is to reverse-engineer the algorithm in order to choose a better one.
 
@ChrisW So do you think that the question off-topic??
 
4:25 PM
I'm sorry if I do not go to deeply onto the possible stream issue in your code, but I got some other doubts first
 
So, answering the question means solving the puzzle (picking the good algorithm), not reviewing the code.
 
Well, I see plenty of comments that can be said about the code as well.
@skiwi Yes, that Stream constructor I am not so sure about myself, and I don't think @rolfl likes it much either.
 
@SimonAndréForsberg I have doubts on your `SudokoFactory`, in some sudoko formats it creates the board ánd assigns the groups to the boards.
In other formats (the simple one), the board needs to handle creating the groups itself.
 
@SimonAndréForsberg Possibly should be off-topic, but isn't: precedents say that if it contains source code then it's reviewable.
 
I find that a bit awkard
 
4:27 PM
@SimonAndréForsberg Yes but the OP may not care for those comments.
 
@ChrisW Even if the question is only about picking a better algorithm, I think it can be a good question. I think it should be perfectly on-topic. The worst part about this particular question/code is his horribly bad variable names.
Doesn't matter if the OP cares about them or not, we care about them.
@skiwi That is a very good point.
 
I think the structure needs to be redone quite a lot, I'd expect a SudokuSolver somewhere... But I don't see it explicitely in your code
 
The board takes care of the solving. It has a solve method.
 
@skiwi - @SimonAndréForsberg - updated this answer with some code at the end:
10
A: Java 8 Effective Use of Multiple Streams

rolflYour code is odd in the sense that it is going to a lot of effort to calculate that 103 is 1000. I understand why you are doing it, but I took the liberty of changing the count() terminating function and replacing it with: StringBuilder sb = new StringBuilder(); ....... .forEachOrdered(prod ->...

 
@ChrisW I'm going to review his code... this might take an hour :)
 
4:32 PM
Why would it need to do? I'd expect a board to just hold its contents
 
By extracting the functions, it looks better.
 
@skiwi Because I wrote the code just to be a SudokuSolver, I wasn't planning on making a game out of it. And I was frustrated with Visual Studio when I wrote it so I didn't extract the solving much.
 
@SimonAndréForsberg Two problems I had with editing the question: choosing a better title; and the problem description being copyrighted.
 
@rolfl I find none of our(&OP) versions actually self-descriptive with the using streams
@SimonAndréForsberg And then... a game happened?
 
@skiwi The code I have for Sudoku is not 'playable'. Code for playing it could easily be added, but I didn't see the need to. I just wanted to solve sudokus.
 
4:36 PM
anyone know of a good Free Antivirus software that I can use on my computers?
 
I still think seperation is the way to go, but let's not discuss that further
 
@Malachi Avast!
 
No antivirus, they slow down your pc
 
@Malachi AVG?
 
@Malachi - AVG ...but is it still free?
 
4:38 PM
pcmag.com/article2/0,2817,2388652,00.asp this site says the highest score went to Avast
I don't think AVG is Free....
 
I wouldn't use AVG or Avira myself, because they have proven to be slow as hell and slow down the pc... But that's just my opinion
 
Avast is free and lovely, it even has a nice voice saying "Avast virus database has been updated" :)
 
@rolfl i just found that one
 
@SimonAndréForsberg I randomly stumbled upon one method here:
 
4:40 PM
My experience is that AVG has a lot of false positives.
 
I think you are misusing forEach a bit :P
	void ResetSolutions() {
		Arrays.stream(tiles).forEach(
				arr -> Arrays.stream(arr)
						.forEach(tile -> tile.resetPossibles()));
                //vs
                rules.forEach(rule -> rule.forEach(SudokuTile::resetPossibles));
	}
 
i would probably have like 2-3 of them installed but not running and then pick a day of the week where I run them one after the other after updating them or something like that.
 
I added my version at the bottom under //vs
 
have one running non stop
 
I think know enough of the program to know if they do the same, but I suspect that tiles is about equal to all the tiles of all the rules combined?
After that change the program still runs, so the change must have had no impact!
(Cough bad Q&A)
 
4:42 PM
@skiwi Looping over each rule is unnecessary as one tile can be within any number of rules. By only looping over the 2D array I only perform it on each tile once.
 
Ah then forgot that code
 
For a regular classic Sudoku, there's 27 rules each containing 9 fields. So that's three times as many iterations.
 
Still I do not think you want to abuse .forEach for this
 
What code? I don't remember any code :)
@Malachi You would have 2-3 of what exactly?
 
Good :P
 
4:44 PM
Oh, hi @Nobody. I think I talked to you a lot yesterday when no one was around.
 
@SimonAndréForsberg: I feel I should coin a new meme that is "@SimonAndréForsberg ing" which means: pinging you unnecessarily
3
 
0
Q: Want to check if I am using PDO correctly

Studentso today after few years of not programming in php I decided to go back, but to do so I need to change all mysql connections. So I want to check if I am using it good. So I used to write something like this: $user = clean($_COOKIE["Logged"]); $GameReg = mysql_fetch_array(mysql_query("SELECT * F...

 
@Nobody Looking forward to it :)
 
@Nobody is looking forward to that.
@SimonAndréForsberg Pick your evils
	void ResetSolutions() {
		Arrays.stream(tiles).forEach(
				arr -> Arrays.stream(arr)
						.forEach(SudokuTile::resetPossibles));

                //vs

                for (SudokuTile[] tileArray : tiles) {
                    for (SudokuTile tile : tileArray) {
                        tile.resetPossibles();
                    }
                }

                //vs

               for (SudokuTile[] tileArray : tiles) {
                   Arrays.stream(tileArray).forEach(SudokuTile::resetPossibles);
but... there is a better way
 
so I got your approval to enter it into the meme list?
 
4:47 PM
What do you think about this?
	void ResetSolutions() {
            forEachTile(SudokuTile::resetPossibles);
	}

        void forEachTile(Consumer<SudokuTile> consumer) {
            for (SudokuTile[] tileArray : tiles) {
                for (SudokuTile tile : tileArray) {
                    consumer.accept(tile);
                }
            }
        }
 
@StackExchange How could the user forget about tagging it with PHP?
@Nobody It's not a meme yet... you'll have to do it a couple of times first :)
 
hm who can pin here in chat?
 
@skiwi Readable, but I'm not sure that forEachTile method would be used in other places? I actually used a good old for-loop at first but wanted to do it Java 8 style :)
@Nobody What do you want me to pin? Your message?
 
yep
also: writing it into the meme list might make it a self-fulfilling prophecy ^^
 
Done. Everyone with an italic username (room owners) has the ability to pin items.
 
4:50 PM
ahh good to know
 
@SimonAndréForsberg If you insist on Java 8 style I'd take the Consumers out of Java 8 instead of double forEach with Arrays.stream(), and to really warrant this approach it needs to be used on at least 2 places
 
what distinguishes a room owner? (besides the italic name)
 
@SimonAndréForsberg protection programs. if I had the money that is what i would want to do.
 
@Nobody The ability to pin/unpin and edit room feeds and description. That's about it I think.
 
ok and how to does one obtain this status?
creating the room I suppose but you did not, did you?
 
4:53 PM
AVG seems likie the better option between AVG and Avast, it comes with more. but i have to get going.
I will test one for a while and then test the other one, and then run the free trial out that I get with the computer
 
@Nobody An existing room owner can change the list of room owners, and if all previous owners are absent for a long while the system automatically chooses new owners. @Mat'sMug got promoted by the system a while ago and he added some regulars to the list
 
based on which criterion does the system do that?
 
Automatic appointment of room owners

If a reasonably active room has no owner, or none of the owners have been in the room for a certain time, a new owner may be automatically appointed, to ensure that there's somebody who can administrate.

The system will pick the room's most active user in this case and make them owner; this is announced via an automatic message. If the user does not want to be room owner, they can revoke ownership from themselves by going to the access tab on the room info page and setting their status back to “no special access”. Before they do this, they should find
 
a thx @ChrisW
should have thought about the faq
btw do you support my meme proposal?
 
5:11 PM
I wonder how much influx of people with OT question that never ask again there is on CR
especially compared to other sites
 
huh, I dug up some history:
Nov 25 '13 at 13:11, by Stack Exchange
retailcoder has been automatically appointed as owner of this room. (What does this mean?)
 
@rolfl I remember that as if it was yesterday
 
@Nobody "Avid users" ignores people with a rep of less than 150.
 
oh ok
 
But if the number of avid uses is constantly growing, it's hard to ensure everyone is endlessly promoted.
Yet apparently that's their definition of a healthy site.
 
5:20 PM
I feel the ordering in 200_success's welcome query should be changed accordingly
so that those show up first that are closest to crossing the boundaries (200 and 500 rep)
 
So who thinks my new answer helps establish my reputation as an ancient curmudgeon?
 
@JerryCoffin - bein a curmudgoen myself, I will point out I said this in my answer:
> A for-loop is the right thing for this construct (if it was not for the parallelism). If you include the parallelism, then a fork-join process is right. Not a stream.
 
@rolfl I refuse to settle for merely "old" -- "ancient" or bust...
@rolfl What you didn't point out though is that in this case, the parallelism almost certainly loses more than it gains. The time to spawn threads, or even dispatch to threads in a pool, almost certainly exceeds anything you could hope to gain from running such trivial computation in parallel.
I guess I didn't point that out explicitly either though. I should probably edit.
 
Latest Java zombie DOWN!
Although I couldn't find any particular speed issues in the code... mostly because he didn't mention which inputs caused the speed issue.
And I actually think his code is very fast. I don't see any special improvements.
I might have exaggerated a bit in my readability comments... but well...
Let's see what the comments and votes will be.
Hey @syb0rg
 
5:35 PM
@skiwi I like the new avatar.
 
@SimonAndréForsberg You made me want to create a Sudoku game/solver with Java 8 and Java FX 8
 
Hey @SimonAndréForsberg
 
thanks
 
now I am out of ammo
 
@skiwi That's the spirit :)
 
5:37 PM
I love how giving one Java 8 answer on SO gave me 130 rep today
Lol, from the hot network questions
55
Q: I can read from /dev/null; how to fix it?

AdityaI read the Wikipedia article on /dev/null and was playing around by moving files to /dev/null. For this I created a test_file and put some contents in it: $ touch test_file $ echo "This is written by Aditya" > test_file $ cat test_file This is written by Aditya Thereafter I tried to move the ...

 
@skiwi: I wonder if there is something like a /dev/null measure to categorize your program's resilience against such unlikely things as reading some values from /dev/null
 
There was a prank played at university the one time where a user replaced /dev/random with a sequential number generator.
 
@rolfl And that is... bad?
 
We were all doing things like students now are doing, building games, etc.
All our numbers were 'wrong'.
 
5:44 PM
Logo turtles kept moving in spirals.
2
(that was a good one, the user had code something like:

mov random(10)
if (random(1)) turn left else turn right
every second number was odd.... ;-)
 
Ah... wow now I understand the impact :D
Is something like that even possible in Windows?
 
Another 'game' to play would be to replace /dev/yes
2
 
@skiwi Yes (though it's not nearly as easy).
 
Wait, dev/zero
 
Does for example Java also hook into the /dev/x 'things'?
 
5:50 PM
Basically, you need to replace the DLL that Windows uses to implement its random number generation. Windows tries to prevent its known DLLs from being overwritten, but with a little persistence (and administrator rights) it can be done.
 
@skiwi typically, yes
Morning sunshine :p
 
@ChrisW: Hm. I actually received a downvote on that answer. That was literally my first downvoted answer.
 
6:04 PM
@SimonAndréForsberg His comment was,
guys the issue is my solution involves sorting of arrays and that increases the complexity,any workarounds such that sorting can be avoided to solve that problem. — arunkrishnamurthy01 40 mins ago
So I posted an answer which tried to address that.
I did predict he didn't want a code review.
 
@SimonAndréForsberg Rewafadhabihlgdity +1
 
@ChrisW Kinda hard to help him improve the speed of the code when it's unclear what he is coding
 
@SimonAndréForsberg First line of the question:
Below is my solution for this 'Team Split' problem.
Obvious way to gain speed seems to be to replace the loop with some math.
 
@JerryCoffin I am aware, and I did look at the problem description. It did help me understand his code. But I couldn't figure out where to gain speed
 
Does codechef.com intentially use SE's rep/badges alike system?
 
6:15 PM
@SimonAndréForsberg Oh, okay.
 
I still thought the other aspects of the problem was important to note.
If he would have included a JUnit test case, then it'd be different
 
@SimonAndréForsberg Indeed -- I thought your review was good enough for an upvote anyway.
 
Thanks Jerry-Santa :)
 
@skiwi I can't believe it is anything except intentional
 
So you believe that it is everything that could be intentional?
Also I didn't think I responded yet to the mention of the default bug in the GA, but I did see it a few days ago ^^
 
6:24 PM
@Jamal , @All . The code review site statistics are updated: data.stackexchange.com/codereview/query/161411/…
But, what I have never done before, is pull up the statistics for meta.codereview...:
 
@rolfl It is looking good.
 
6:48 PM
@rolfl Much as the phrase is overused in general, "took it to the next level" nearly springs to mind.
4
 
Yeah, I worry that graduation will need another jump like that
 
docs.oracle.com/javase/tutorial/extra/generics/morefun.html Any reason why vowels are expensive in Oracle tutorials?
 
@rolfl Maybe. Then again, maybe not. data.stackexchange.com/apple/query/161411/…
 
Why is the apple page called 'ask different'?
@skiwi What vowels?
 
We're current close to double the volume of Ask Different, so my guess is that sustaining the current level (with reasonable growth in new users and such) may well be sufficient.
 
7:02 PM
@SimonAndréForsberg e.g. snk for sink
 
@SimonAndréForsberg At one time Apple advertised being different, along with something about "different is good."
 
@SimonAndréForsberg The ones that you cannot see, sink -> snk, for example
Ah @amon was faster
 
@SimonAndréForsberg I guess they don't like dupe questions. :P
3
 
@SimonAndréForsberg Because of Apple's "Think Different" slogan
 
@SimonAndréForsberg Why does everyone ping you?
 
7:05 PM
at least they don't @SimonAndréForsberg you :P
 
@SimonAndréForsberg - because it is irritating
Also, if you hit the reply-button, you get pinged.
@Nobody This is why there are a lot of pings, for the record.
and why it does not really qualify as a meme
If you don't want to be dinged, then you should probably either: turn off the sound associated with the ding, or not talk on chat ;-)
I normlly have the ding turned off.
 
@rolfl: I was mainly refering to the fact that @SimonAndréForsberg is constantly pinging me without me being addressed or in the room :)
 
I assume Oracle wanted to not repeat the word "sink", as the class is called Sink.
 
@rolfl I mean for example this:
yesterday, by Simon André Forsberg
(That @Nobody joke never gets old -- sorry for pinging you all the time btw)
so you see it is not about answering but about referencing people without needing to (that maybe are not even in the room)
 
I think is still being misused. Shall it be renamed to something like ?
 
7:13 PM
which is by no means of the chat by design or unintended
well I got to go now
bb all, have a nice rest weekend :)
 
Later!
 
Hitting reply button? @rolfl
And I should teach myself to not forget that @r + tab extends to @rolfl (Sorry for this ping, @rolfl)
 
0
Q: Ruby implementation of derangement (secret santa) algorithm

MohamadA secret santa gift exchange is a game where each player is randomly assigned a person to whom they anonymously give a gift. The algorithm is referred to as Derangement. For example, given the following players: Mohamad, Carolina, Sami, Tania, Ikram, José An game may be: Mohamad gets Sami Ca...

 
@Jamal I was thinking about , assuming that CR is a well known enough abbreviation for Code Review, but commuinity-challenge would work also. Perhaps bring it to a meta vote (which will boost our meta activity even further)
 
Alright. Should I start it, or you?
 
7:18 PM
You do it :)
 
Alright! Instead of just putting separate answers with each choice, I'll have others add any ideas (but I'll still provide mine).
 
Why not create the tag for Coding Community Challenge?
 
@skiwi Because somebody might mistake that for Community Code Challenge, and then there'd be trouble!
 
0
Q: Rename [code-challenge] to something more site-specific

JamalIt seems that users are still using the code-challenge tag for challenge-oriented questions that do not correspond to the site's occasional voted-upon challenges. We already have the programming-challenge tag for off-site challenge programs, but it's understandable that the two tags sound simila...

 
7:39 PM
0
Q: Rename [code-challenge] to something more site-specific

JamalIt seems that users are still using the code-challenge tag for challenge-oriented questions that do not correspond to the site's occasional voted-upon challenges. We already have the programming-challenge tag for off-site challenge programs, but it's understandable that the two tags sound simila...

 
7:54 PM
@Jamal I suggest something longer to prevent accidental use:
 
Unfortunately, it exceeds 25 characters. :/
 
@Jamal Allow longer tags.
:-)
 
8:24 PM
0
Q: Speed up python MapReduce program; finding low value hashes

BumSkeeterFor class we were to make a MapReduce program in python to find low value hashes of our name. I have completed the assignment but want to try and speed it up. Currently the program takes about 45s to complete. I would like to see if there are any suggestions to speed it up some. The requirements...

 
8:50 PM
Today is Friday ♪ Tomorrow is Saturday ♫
Haha, just kidding. Tomorrow is Monday. Great...
 
I wish. :-(
 
9:03 PM
I like this profile:
 
Lol :p
 
It's pretty dead here tonight :/
It seems that everybody loves Code Review while at work.
 
It's been this way all weekend. But I'm still around in case my time is needed.
 
Good guy Jamal :)
 
Plus there's not much other moderator activity, so I should still be around. I don't have much else to do anyway.
 
9:15 PM
Fortunately, I generally have things to do when not a work.
 
Fortunately, I work all the time ;-), and I need regular breaks from work... ;-)
And, when I am not working, I spend all my time with my family, and I need regular breaks from my family... ;-)
 
And you never need a break from CR? :-)
 
xD
 
Oh yeah, that's right. We're the ones who keeps all the good bananas.
 
When I am neither working nor with my family, I spend all my time on CR, and for that I have a monkey-suite, and who needs a break from that?
 
9:19 PM
@Jamal Hmm...bananas. Sounds good right now.
 
When I'm here, I'm in my diamond suit. It's sooo shiny.
 
When I'm not working nor with my family, I have rehearsals with my band, I compose, play and listen to music, I party with friends (like 3 to 4 times a week), I watch porn, I read books or mangas and I do some other things from time to time.
 
I guess that means we are your family? Nice ;-)
 
You are in both "work" and "some other things" actually :)
 
Would I recognize the band?
 
9:21 PM
@Morwenn I also... do one of those things. :-P But honestly, I don't do much else beyond school, CR, and family.
 
@Jamal Oh, I guess you have a band :D
 
Yeah, you could say that. :P Well, technically, I was in my high school marching band, but that's in the past.
 
Haha, I never had such a thing in high school.
Actually, I play the recorder in a metal band.
 
It's probably one of the only physically-fit things I've done willingly, and it did help me make many friends. Unfortunately, I haven't played my trumpet since graduation, which was four years ago.
 
But anyone who's read my description knows that much =D
 
9:24 PM
If they didn't lose their time on your profile ;-)
 
@rolfl That's exactly what my profile says. You sound like you read it :o
 
I want my five seconds back. :P
-1
Q: Python chess game error

user2604809I am working on a chess game in Python. I've finished, so far, the functions that return possible moves for pawns, rooks, and bishops. When I try to move a bishop, however, I get this error: File "F:\Python\Chess.py", line 562, in getBMoves1 if getList(NC(NC(NC(NC(NC(c))))))[m-5]==' ': IndexE...

It's so pretty!
 
The fuck is that o__o
 
@Jamal I can think of other terms.
 
A masterpiece? Yep, I agree.
 
9:29 PM
Wow, I am being hit on by a random guy on another chat.
 
@Jamal Not exactly the word I had in mind.
 
lol
2
 
So much for 'arrow coding', that counts as chevron-coding
 
I don't know Python well but I'm quite sure that's not how it's supposed to be done...
 
Well, it does look like a slithering snake...
 
9:31 PM
Not enough abstraction.
 
Needs more cowbell.
 
Nice to see it has comments:
        elif isUpperCase(getList(NC(c))[m+1]): #checks if up-right space is occupied by opponent's piece; does not check further
 
0
Q: Please Rate my VM in Python out of 10

user3452305I'm writing a virtual machine in Python using RPython and the PyPy toolchain. The RPython will still work in the ordinary Python 2 interpreter, it's just a bit slow unless it's compiled to C code with PyPy. The virtual machine has 4 instructions: EOP - End of Program EOI - End of Instruction P...

 
Wow... that python question
Any codechecking tool reviewing the amount of paths you can take... will.... complain.
 
@skiwi did you see that many of the 'functions' are actually lambdas?
 
9:42 PM
Yep
Darn, I must go offline and have 194 rep on SO today... No maxing out it seems
 
What are you on about, willis?
 
willis?
 
Aaaaaaand goodnight :)
 
Thanks santa!
 
hehehe
 
9:46 PM
Huh and then a random +2 happened
(I did not accept an answer)
Ah, it was a +10 that was cut off due to rep limit
 
@skiwi -
 
@rolfl Are you multi-santa-ing?
 
It was a good answer ... ;p
 
82 to go for a gold badge... Maybe I get it one day on some answer :P
 
Oh well... night
 
9:47 PM
Just because I don't have time to live on SO, does not mean I can't occasinally visit.
 
Anyways, goodnight
 
cheers, sleep well
@SimonAndréForsberg - I thikn you may have an answer on the AI side by morning ;-)
 
Java 8 ftw:
0
Q: Counting unique characters in a String given by the user

user3453347I have to write a program that counts the uniques characters in a String given by the user. For example "abc" returns 3 and "aabbccd" returns 4. I am not allow to use advanced Java classes like Map, Set, etc. I can only use arrays, Strings, for loops, while loops, if statements. I am trying to u...

Couldn't afford to not answer this
 
10:09 PM
@skiwi Now you just need to edit the question to fit better with your answer...
 
Bounty awarded! @rolfl and @palacsint are 5 points apart, and could be at 20K tomorrow. Anything could happen.
Interesting "please rate x/10"
0
Q: Please Rate my VM in Python out of 10

user3452305I'm writing a virtual machine in Python using RPython and the PyPy toolchain. The RPython will still work in the ordinary Python 2 interpreter, it's just a bit slow unless it's compiled to C code with PyPy. The virtual machine has 4 instructions: EOP - End of Program EOI - End of Instruction P...

(I downvoted)
 
hehe .... I count 35 points, but, well fine.
 
Okay, the OP edited with an actual request. Now the title can actually be improved.
 
@Jamal Do you think we're being trolled, or is the OP sincere, or is there no way to tell?
 
@ChrisW I couldn't tell for sure, but it seems a bit like trolling.
 
10:23 PM
I'm assuming it's sincere, until proven otherwise...
(call me naive)
 
If it's sincere, the comments aren't constructive.
 
I prefere to assume that people are sincere :)
 
@Jamal @rolfl what's up with ?
 
@Mat'sMug Have you seen my Meta post?
 
yeah
I think I've seen the tag mistaken for only once
@ChrisW flagged "thanks" comment as obsolete
Tags can be renamed? Is it renamed, or recreated? — Mat's Mug 6 mins ago
@Jamal ^^ would I lose paternity of the tag? it's only 10 questions short of getting me a badge!
 
10:29 PM
You might still get it since it would involve a merge. The old tag would still exist somewhere.
 
oh, well.. whatever. monkey coined "weekend challenge" anyway
FWIW I find makes sense (upvoted)
> Status Update, 2014-03-23: It's no use! The percentages are barely budging. Although we have nearly doubled the number of ≥4k users since mid-Janurary, we're also gaining a lot of new avid users. The increased upvote activity has undoubtedly been beneficial, but I'm not convinced that this query is a useful metric of the vitality of the community.
 
Pfff, I'm so bored that I'm listening to black metal .___.
 
^^^^ thoughts?
@Morwenn I'm watching The Lion King for the 5th time today (I stopped counting how many times this week) ♪♪ oh I just can't wait to be kiiiiiiiing! ♫♪
 
@Mat'sMug Wow, that sounds quite insane.
 
twins. 2 years old.
 
10:40 PM
@Mat'sMug If the number of avid uses is constantly growing, it's hard to ensure everyone is endlessly promoted; yet apparently that's their definition of a healthy site.
 
@ChrisW so, we're doomed?
 
exploding bear traps would reduce the number of new users ...
4
... alternatively there's little trouble with the status quo.
 
Then I don't understand why we're not graduating
As it stands we would survive moderator election.
 
because we're not growing up/maturing? the influx of new users is keeping the community too juvenile?
(assuming we've interpreted Grace's metric correctly)
 
(meta post brewing)
 
10:53 PM
0
Q: Smart pointer memory pool

dalleUsing a third-party library which utilize boost::shared_ptr for memory management. Problem is that I need to allocate very many objects and I have detected that the allocation and deallocation is rather resource demanding. So I thought I should utilize a smart-pointer memory pool to reduce the ov...

 
I'm leaving. See you later, all! :)
 
À tout à l'heure
 
@Morwenn Later.
 
0
Q: Preloading images in JavaScript

lindseyI'm working on a little game where you press a button and a new image appears. There's a glitch every time you ask a new image to display and it occurred to me that I should preload the necessary images. However, I'm not sure how to do this efficiently as I'm not using a variable to display the i...

 
@Mat'sMug See this if you haven't already.
 
11:09 PM
Thanks Santa
Someone difference between palacsint&me .... 0
Based on recent reputation rates, there will be 4x20K users this time tomorrow.
Which will mean there will be no active users between 10K and 20K
Although konijn will probably make 10K tomorrow too.
 
0
Q: Improving the accuracy of my gegraphic transform function

erotavlasI finally found how to convert geomagnetic coordinate back to geographic coordinate I'm so close to the correct answer but slightly off This is my function, but the result are off by several degrees and I'm not sure if its due to rounding and such when I'm propagating values from function to fun...

0
Q: Monopoly Board part 2

EltonI have created my monopoly board using PHP,MySQL,HTML, CSS here is a previous question of mine. Also I would like to share a visual image of what the board looks like in the browser. I no longer want to use MySql or PHP to generate the board, instead I want to do it with Jquery. Also I am intere...

 
Oh, and svick is in fact active ... silly me.
 
I'm not sure about the Monopoly question. The Op says he's looking for an approach review, not a code review. There are also some off-topic requests in there.
 
Does that mean * is higher or equal to / in operator precedence?
@Jamal - in C, what is the value r in: r = 8 / 4 * 2
Never mind, found it:
 
@rolfl / and * have same precedence, so read left to right, so r = 4.
 
11:19 PM
	double a = 100.0;
double b = 50.0;
double c = 2.0;
double r = a / b * c;
Console.WriteLine("Result " + r);
 
@StackExchange Could also be tagged floating-point and computational-geometry
 
11:41 PM
0
Q: Modern OpenGL basics

Peter VaroI'm trying to create a basic triangle with modern OpenGL (3.0+) on Mac OS X Mavericks. Actually, I'm quite new to modern OpenGL, so any feedback is welcome! Now, this code compiles, runs, doesn't throw any error, and creates a nice black-backgrounded window, but nothing more. However, when I ask...

 
^ off-topic
 
IMO the monopoly board question is off-topic too: OP is asking for code to be rewritten using jQuery, and to get rid of php.
 
Agreed.
 
Agreed too.
 
00:00 - 16:0016:00 - 00:00

« first day (323 days earlier)      last day (3693 days later) »