« first day (384 days earlier)      last day (3931 days later) » 

18:05
Also, would anyone mind taking a look at this? It didn't receive the appropiate response yet (@rolfl's is just a partial one) and I want to hit 2K hence can't afford a bounty!
6
Q: Saving an XML file created by Tesseract OCR as a traversable object

skiwiMy project here works upon output that comes out of a Tesseract OCR scan using hOCR format, then I read it with JDOM 2.0 and finally save it one of my own objects, which at a later point needs to be serializable. I have spotted one major codesmell, which is a for-loop of 5 levels deep. An exampl...

Funny enough that implementation has been outdated again ;) But that doesn't matter for the sake of reviewing.
-1
A: Given two sorted arrays, add the elements of the second array into the first

Darius BaconEdit: OK, fine, in Java: // Precondition: dest[0..n-1] and source[] are both sorted increasing. // Postcondition: dest[0..n+source.length-1] is the sorted merge of // the original dest[0..n-1] and source[], and source[] is unchanged. public static <Type extends Comparable<Type>> void mergeInto...

this guy's got the case of Yoda conditions
@Jamal Did someone just create the tag? ;)
@skiwi Well from a quick overview .... Clear those todo :P
@skiwi Nah. It was migrated from SO, where we have neither of the original tags. I will also have to add additional language tags.
18:22
@Jamal How do you quote a tag in chat?
or @skiwi rather.
[tag:some-tag]
[tag: untagged]
no spaces allowed ;)
There we go!
0
Q: Custom implementation of generic Future.sequence

jonderryI'm trying to make sure I understand how to write clean and robust idiomatic Scala, so I wrote a custom generic implementation sequence of type A[B[C]] => B[A[C]] (instead of TraversableOnce[Future[A]] => Future[TraversableOnce[A]] -- I know something like this exists in scalaz). Is the followin...

18:26
This looks like JS. Am I correct?
0
Q: Reading code from array efficiently

user3082417I'm trying to read data from an array. I manage to get the information I want but my code is extremely inefficiently written. My array looks like this: var arTab:Array = new Array(); arTab[0] = new Array(2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012); var promilleTab:Array = ...

@Jamal tagged with , better be slightly off than just tagged with ;)
I probably should've fixed those last two curly braces as well.
But it's not Javascript :S
18:29
I approved an edit saying it's flash.
But, is it? And is it the first question?
It looks like flash!
That's how it was on SO, but I wanted to be sure. Mods don't need domain knowledge, after all.
Yeah users got your back @Jamal!
You may want to get that back, @Jamal
18:32
Hm? It has been mentioned before on MSE.
The language of Flash is ActionScript
And yes, it's Flash
so... we now have a tag?
And the language of the user is Norwegian / Danish
@Mat'sMug You got a problem with that .... well? Do you?
@Mat'sMug Not anymore. Removed it. is better to use. Flash is the platform, ActionScript is the language.
18:34
I thought Flash was dying
And konijn still answered it. :P
well we do have a tag, so that can't be a reason..
3
I've completely stopped developing for it. Long live GWT!
Flash was really cutting edge in 1999.
18:35
was even bigger.
But, 1 Jan 2000, and COBOL mostly vaporized
was being taught in schools
And I was living in London.
and I bought my first guitar
Met a girl.....
me too!
18:36
Oh... crap. Looks like I was wrong about its burnination. It'll die next month if it doesn't get another question.
Wait... no. It is May, and it has been over six months. wut
Hmmm ... I lied ... sort of... I met lots of girls in 99, but I met the girl in 98.
@Jamal TROGDOR
1999 is when I first started writing music. Was in high school.
Welp, it's official. COBOL refuses to die.
3
In 1999 I rewrote the JP Morgan automated trading system in SQL.
In 1998 I booked a holiday (took time off work), for the 3 weeks from 20 Dec 1999 to 7 Jan 2000
I can't believe I got away with that.
Yeah, COBOL can count to 6
@SimonAndréForsberg Alright. Got a DeLorean?
@Jamal De-what?
@rolfl I also met lots of girls back in those days... In my 2nd year of elementary school I think ^^
18:49
Back to the Future
codereview.stackexchange.com/tags/java-8 How can I see if I'm the tag holder?
You can't. Tags don't belong to any individual.
@Jamal Doesn't that interfere with the Taxonomist badge?
Also, 28 votes short on silver java badge on SO :o One day I'll get gold there, and one day I'll get it here.
Not really. The system knows who created a tag, but such user has no special control over it.
Update: it turns out that didn't die, even after six months, because it has a tag wiki.
Whew!
18:54
lol
2
@skiwi there is an SEDE for that... but I am working on it.
You win this round, (and monkey).
That feeling when your boss tells you you can leave early
lol my boss left at 11:45AM
#dedication
later everyone
18:58
@Jamal I'm just curious as I created that tag long ago, then there was a discussion and it got removed... And it seems it got accepted later on and appropiate questions retagged, just curious if I'm still the one who will get eventually ^^
I do hold the first question being tagged with , so perhaps that counts? Even though the tag itself got recreated on a different question...
I suppose it now "belongs" to the latest person who has created it.
There are just so many things I want to code...
0
Q: Tight loop, string manipulation and calculations

BenVlodgiI'm working on some precompilation operations for a world compiler. Currently to identify flags placed by the level designer I need recognize when a specific entity exists at specific coordinates from the flag's origin. I need to generate a list of offset coordinates from the origin(and include t...

So... what have you written? — Mat's Mug 10 secs ago
@BenVlodgi dude...
you have 5 minutes to edit the code into the question, or else....
19:03
(out-of-ammo, can't downvote)
forgot @CaptainObvious was somewhat late. 5 minutes elapsed. close vote applied ;)
well I won't downvote since this is clearly just a little mistake. This can't possibly be really happening
@SimonAndréForsberg Take a deep breath... Then realise you actually don't want to code 90% of it, and then start at the beginning.
@Marc-Andre that was my thought as well...
@skiwi Do you want to code the other 90% then?
@skiwi has already coded 130% of it!
19:05
@BenVlodgi Are you nuts?
@Mat'sMug Not 130% of all the things I want to code! He hasn't got a TCG AI for example!
Some student of MIT found a 'hack' to use the android camera from within an app without notifying the user about it...
He made the size of the app (or something, not sure exactly how it works) 1 pixel by 1 pixel
@SimonAndréForsberg I haven't even gotten the thing you want to code for me yet... Why don't you start there? :p
@skiwi What thing do I want to code for you? Do you mean the generic EventHandling?
@SimonAndréForsberg Yeah... If you wish to make it :p It shouldn't be too difficult though, perhaps I should write the enhancement ticket about it already
And I'm interested to see how pull requests work in all honesty
@skiwi lol, so am I. So perhaps I'd better make a pull request of it... I have no idea how that process works
@SimonAndréForsberg You need to fork the project first... Then add a downstream of my project such that you can keep your fork up to date, then you implement what you want, and lastly you can do a pull request with your new code
Something along those lines
19:10
@skiwi can I have a link to your github?
@Marc-Andre Of course: github.com/skiwi2/TCG
@BenVlodgi please tell me that was a test to see how fast you'd get closed...
^^ great, it's the only off-topic/on-hold question on the front page!
Hmm I need english lessons!
I want to write "mandatory" somewhere
But the premise shouldn't be as strong as mandatory, it should be along of lines of "logically implied"
It's also something like "While using your common sense", but I know there is one word for it but I forgot which one :(
...how mandatory is it to write that word while using your common sense?
oh, wait
It's not compulsary, not mandatory and neither obligatory... there's some other nice word
19:17
context?
In my TCG all issues get pushed with unit tests attached
I want to write that the unit tests should be attached aswell ^^
And I can't stand not knowing something I knew.
how about unit tests must be attached?
@skiwi: How about strongly encouraged ?
"imperative" maybe is what I"m looking for?
"absolutely necessary or required; unavoidable: It is imperative that we leave. "
I guess my explanation wasn't the best, but it was the word I was looking for :p
> Ketchup will rarely be eaten with pizza or spaghetti, and few people would eat tomato sauce with fries or hot dogs.
wth that guy never heard of a "Michigan" hot-dog?
3
Q: Tomato ketchup Vs Tomato sauce

Maulik VDictionaries did not help me. Collin's writes tomato sauce = tomato ketchup but not vice versa. There tomato ketchup is ketchup flavored with tomatoes. Furthermore, ketchup is sauce! MM says ketchup is sauce and so does OALD. Times of India has good note on that but is understood and written by...

19:23
@SimonAndréForsberg If you intend to do something with, github.com/skiwi2/TCG/issues/75 ^^
@Mat'sMug Tomato ketchup is a tautology
> The Reagan administration classified ketchup as a vegetable for the purpose of school lunches.
6
^^ Only in America!
True...
@Mat'sMug TS... yes I'm dry already.
Hmm. I don't have an account on ELL.
However, I do like ELO.
@skiwi OK, I will keep that in mind. Not sure when I'll get around to it
What's with the voting recently?
2
Q: Reading code from array efficiently

user3082417I'm trying to read data from an array. I manage to get the information I want but my code is extremely inefficiently written. My array looks like this: var arTab:Array = new Array(); arTab[0] = new Array(2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012); var promilleTab:Array = ...

19:29
I'm out of ammo
@skiwi - this is the first recorded use of the tag : codereview.stackexchange.com/revisions/42473/5
and the discussion that followed:
11
Q: The [java-8] tag, here to stay?

rolflRecently the java-8 tag was created to apply to Java8 specific questions. There is no doubt that the questions are, in fact, Java8 questions. The meta question though, is: Should java-8 exist, and if it should, what should it be, a full tag, or a synonym to java?

@SimonAndréForsberg Friday, not yet 30 voters for the week: codereview.stackexchange.com/users?tab=Voters&filter=week
haha nice name:
this question+answers need votes:
1
Q: jQuery animation/blinking code?

indusBullI have one container div which contains some children div members. From time to time, I need to run a custom blinking effects on some of the child div members. The effect steps are as follows: Change font color to Yellow Pause for 0.5 secs Change background color to yellow and text color to bl...

same here
2
Q: Menu script efficiency

tinkerbotI've got a jQuery/JavaScript script for a menu that uses icons as well as label text. When the icon or text is clicked, it turns blue, until such time as another icon is clicked. Also, the page scrolls down to the relevant div on the page, but the menu bar still stays fixed along the top of the ...

Always good to get appreciation:
You know, if I could vote up multiple times I'd spend the next hour or so doing just that. The amount of effort you put into this question is insane, and just voting up doesn't wouldn't show how much I (and probably the other readers) appreciate your effort. As for the results, it's quite interesting how the results are reversed now -- seems like the JIT compiler really knows how to do its thing. I suppose the branch predictor is some form of black magic after all. Also interesting is how even if the entire array is looped over the additional OR instruction slows down evaluation that much. — user3580294 1 min ago
wow
too bad I had already +1'd that answer ;)
@CaptainObvious WHY DON'T YOU VOTE?
@skiwi Remind him that there are bounties!
19:37
Too bad I will never know his real name :p
Must-read:
Loop unwinding, also known as loop unrolling, is a loop transformation technique that attempts to optimize a program's execution speed at the expense of its binary size (space-time tradeoff). The transformation can be undertaken manually by the programmer or by an optimizing compiler. The goal of loop unwinding is to increase a program's speed by reducing (or eliminating) instructions that control the loop, such as pointer arithmetic and "end of loop" tests on each iteration; reducing branch penalties; as well as "hiding latencies, in particular, the delay in reading data from memory". To...
mandatory? ;)
@Mat'sMug Obligatory I call it
3rd in the hot questions list:
6
Q: Using finally with return statement or not

Sillicon TouchI was wondering if it is the proper way to always put the return statement of a function with a try-catch clause in the finally clause. I have for example this function which returns the version of an sql server: public String getVersion() { String version = new String(); final ...

19:39
Except the Assembly code, that you may skip :p
..nevermind, it's gone.
@Mat'sMug I must've missed that one.
Wasn't C in the beginning simply a primitive wrapper around Assembly?
Or does there except somekind of Superassembly that allows you to have some primitive loops? Though variable declaration gets ugly immediatly with caring on which register it is... Temporarily variables even get uglier.
@Mat'sMug If you're talking from the list on the right, it's just an "echantillion" of the real list
Refresh a couple of times and you should see it reappear
19:43
well I am off, good bye all
From the wiki, that bottom switch statement is both ugly and awesome.
Erm yeah, I was also planning to actually code something this evening
later!
You are... leaving us?
nobody is
(too easy)
@syb0rg looks like main could use some functions instead of a giant wall, and there's an extra int main(void); declaration right above the main defintion
(Assuming you wanted quick feedback... not sure haha)
19:57
TTQW cya later!
@skiwi - FYI: SEDE for who 'owns' the tags on the site: data.stackexchange.com/codereview/query/196683/tag-ownership
@rolfl That is some real nice piece of work there!
Minor nitpick: I think it sorts User Link on user id while pretending to be a string hence warranting alphabetic sorting.
I know, I have the column there, just not populatd... (it's complicated).
Yay I can sleep well now with being the creator ^^
Those SQL queries don't look the easiest
Helping hand @200_success arrived!
@user3580294 You can offer a bounty for an exceptionally meritorious answer. — 200_success 1 min ago
I'm afraid though that noone wants to lose their imaginary internet points.
@rolfl How should synonyms be handled? I see is only listed as having 21 usages, but if the synonyms is counted there is more.
Not sure who is listed as the real owner though
20:06
@skiwi - updated the query now....
The 'owner' is the person who added the tag.... often through a revision to a question.
Is there any concensus about when using the Builder pattern if it's a public builder, should the builder then be given in another file or should it be a static class?
Currently i've got MonsterCard.MonsterCardBuilder for example
@Corbin It's not mine, but I should probably send in a pull request containing some improvements.
btw, what is up with the numbers under the person's country? codereview.stackexchange.com/users I don't seem to be able to relate them to anything
Scratch that, it's monthly rep
lol
3
I find it rather odd that it defaults to that tab though
Was about time...
20:11
OK, that was an interesting SEDE diversion .... now, BTW.
I know that people maange to quote their tag earnings messages... but how?
@syb0rg Ah, yeah that certainly could be nice. It's not the worst code I've ever seen, but for an example, it could definitely be cleaned up a bit.
@Corbin Unfortunately, it is the "Unofficial Git mirror of PortAudio". I wonder if I could contact the author and submit some improvements that way.
@skiwi's TCG project has five stars and four watchers. I wonder how many I would get....
@SimonAndréForsberg The factorial obviously
I've got a few questions if you have a minute
20:21
@skiwi I have a factorial of minutes
Consider that I make a PlayerRules object (do you know a better name?) describing that a player has hand of size 5, field of size 5, etc., etc. Should I then let Player have a constructor taking PlayerRules, or should it have a static factory method taking a PlayerRules object? And lastly, I suppose that I need to roll out a PlayerRulesBuilder, should that one be a public static class inner class of PlayerRules or one living in its own file?
or something...
@skiwi PlayerRulesBuilder sounds overkill. Don't abstract too much. If you go with the constructor or static factory method doesn't matter IMO.
As for name: PlayerConfig? GameConfig? SizeConfig?
PlayerConfiguration would also do
If you do want a PlayerRulesBuilder, then either way will do. Although perhaps private static class?
I'm thinking about a Builder as I want to pass in multiple integers, hence it could get confusing
20:25
That is true.
The thing is that I want to construct it from the outside
hence public :p
Logically it is somewhere in the boot process of creating an actual game, possibly someday depending on the gametype
You could have a public static PlayerRulesBuilder newBuilder() in your PlayerRules class returning a Builder. No need for the builder-class itself to be public.
That's also a good option
Btw @skiwi, if you're interested, I found this: github.com/WagicProject/wagic . An open source TCG, written in C++.
What about the difference of a player-constructor or player-static-factory-method accepting PlayerConfiguration?
20:28
Judging by their name, I guess I'm probably safe calling my code "Warthstone"
5114 commits, holy.
I want that automatic build generation by Travis CI aswell!
Pah, I would have more commits if I wouldn't update my whole site with git add . --all. :p
Hey there @kleinfreund
Hey all.
I have some doubts about their AI implementation though, after reading this comment in the source:
//shuffle to make it less predictable, otherwise ai will always seem to target from right to left. making it very obvious.
20:33
shhh You're not seeing me, I'm studying in the shadows... wooosh
2
@SimonAndréForsberg I don't think they have the very best implementation :p
I think it is best if I do not make a commit to my github repo from Travis CI on every commit of my repo?
@SimonAndréForsberg drop the H, makes it "Wartstone"
Hey @kleinfreund btw
and hi @kleinfreund!
And now drop the w and then?
20:38
Holy mother of magic numbers...
*wagic numbers
TTQW - later!
Bye.
And.... I am back to answering things .
@SimonAndréForsberg I'll really need to investigate how they autorelease on github via travis ci ^^
I figured you can upload a binary release (a jar) via the web
@rolfl I didn't think "don't tell 200" would gather so many stars... sorry ;)
However you need to supply private repo keys then... No big deal, unless you notice that it is defined in .travis.yml file, which is publicly available on your github
@Mat'sMug I'm sure he hasn't noticed yet.
20:41
Pretty sure .... yeah.
^^^ really gone now.
@skiwi When you succeed with that, tell me how to get started with it :)
@Mat'sMug It's pinned, what did you expect? :) Pinned messages always gets stars.
:15696332 (removed)
0
Q: Using shims to turn my integration tests into unit tests

CosmosisI want to understand how to properly unit test a function such as this. The function doesn't return anything, but it does call other functions that themselves have already been unit tested. My understanding is that in order to properly unit test this method I will have to shim the dependant metho...

@SimonAndréForsberg Why don't you find it out for me :p
I think it's actually not abnormally hard, I just need to peek a lot on how that other project did ^^
except that ${GH_TOKEN}
Time to call it a day though, enjoy your evenings and all
20:57
@skiwi Because you have more experience in Travis than I do :)
@syb0rg Ah.... Lame. Weird that there's still projects that don't have at least an official mirror on github or one of the other major SCM websites.
enjoy your evening, @skiwi
Holy, 30 upvotes on that answer... Instant maxed out tomorrow morning when I get online?
Also my best scoring answer ^^ now off though
21:16
0
Q: Count array inversions merge sort

Taylor HustonCode works. How does it look? Comments, code correctness, etc. //Function Prototypes void buildArray(int anArray[]); void printArray(int anArray[], int start, int end); void sortArray(int start, int end, int masterArray[], int tempArray[]); void mergeArray(int start, int split, int end, int...

21:29
0
Q: Improving performances processing compressed csv files

GevorgI have some csv files compressed in .bz2 format. I need to take a subset of the records (and data) and switch to .gz. I am not happy with the performances of the code below: //For each file in a folder: try (BufferedReader br = new BufferedReader(new InputStreamReader( new BZip2Compress...

21:54
0
Q: Securing PHP form from using token

dotman14I am trying to secure php forms using tokens. Below is the code I'm working with so far. Could there be any security flaw in this? What can I add to make it more secure. public $alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'; public function create_form_token($len...

SELECT 'TTQW' AS 'What time is it?';
22:17
TTGH
Sweet dreams
23:07
Thanks @Jamal!
Hey @NiallC. - long time no see!
@rolfl Hi rolfl! I've been lurking in this room pretty much since I joined CR. :)
Well, OK, then. ;-)
For some reason you're at the top of the user-bar ... must have jsut rejoined or something.
I put together another fun SEDE today....
Occasionally, someone will notice me, ping me, I'll say Hi back and go back to lurking.
You were interested in tag-related SEDE queries before .... well, this one gives you the details on the person who created the tag, and were, and how close they are to taxonomist badge
@rolfl I was looking for patterns in how people use a particular tag, but this is cool. It's something that I've always thought the SE UI should show you (even if in the 10k or mod tools).
23:13
Well, your Gardening site has shown me an anomoly ... apparently the owner of the did not score a badge for it.
Hmmm .... why him.
It also shows people getting multiple 'taxonomist' badges, and it should be a once-off
Well, it shows they have the badge
And, since they own the badge, and no-one else can then earn the badge for the tag, then it's moot
Oh, the person who asked the question gets the badge, not the person who adds the tag to the question
@rolfl That doesn't seem fair; you'd think the person that adds tags that are useful enough to be reused should be rewarded.
It was my understanding that the tag-adder got the badge, but there may be some history as well in this. Consider tomatoes: gardening.stackexchange.com/posts/1979/revisions
Actually, as far as I can see, the 'owner' of tomatoes should be here: gardening.stackexchange.com/questions/2/…
Yup, looks like a bug.
The very second post on the site was tagged tomatoes by user 11 (Emrikol) and it has been there ever since, and was never recognized for badge:Taxoomist.
I wonder if it is a private beta thing
23:35
@rolfl Could be. Private beta is weird. I've noticed on the android app that I have 1 rep on Embedded Systems -- no association bonus.
It's pretty sad that this is considered "harsh"
Can you clarify what part of the documentation on how string.Split() works, isn't clear? — Jeroen Vannevel 31 mins ago
23:56
0
Q: Taxonomist Badge - Who's the owner?

rolflI have identified an anomaly in the awarding of a Taxonomist badge in Gardening. This fortunate user was awarded Taxonomist for tomatoes. This is doubly fortunate because this user has never added a tomatoes tag to any question I can find (select * FROM PostHistory where Text like '%<tomato%>%' ...


« first day (384 days earlier)      last day (3931 days later) »