« first day (229 days earlier)      last day (3792 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
I probably broke some rule but calling the functions the way I did though. it doesn't look right to me at all but I didn't want so many variables either because placing the variables was a chore in itself.
 
@rolfl Not sure if this will help you out in getting the hat yourself, but I just got that secret "Chuck Yeager" hat also on MSO
 
@SimonAndréForsberg - I figured out how it works ... I think (after I got chuck myself).
 
@Malachi I still have to disagree with your answer. The “problem” is that OP's code wasn't that horrific to start with, so there isn't much to correct
 
@rolfl Nice, didn't know you got it
 
how do you get Chuck then??? @rolfl
 
6:05 PM
Yeah, it wasn't one I shouted from the roof-tops ... but, the "Ghost of winterfest past....!" That one is cool ...
 
@amon, you have 3 return statements in a small function, and one can be done away with? that is bad code, why would you disagree with eliminating a return?
 
@Malachi because in a garbage-collected language, multiple returns aren't bad code. IMHO early returns can drastically simplify a function.
 
@Malachi - the way you just said that is too absolute ... when multiple return statements aids in readability, it is worth it ....
 
@malachi you have [badge:peer-pressure] already? that answer would be a good prospect :)
 
What @retailcoder said.
@SimonAndréForsberg - you got an actual answer in the comments on your 'flag' MSO post .... one that I understand. Great.
 
6:10 PM
it's still readable, granted the functions are called several times, that is easy to change with assigning variables. the point is, that the OP doesn't need 3 returns in the function, it looks wrong to me with 3 returns. maybe it is personal preference.
@retailcoder yes I think that I do
 
@Malachi nope, I just checked - you got [badge:disciplined] but not [badge:peer-pressure] :)
 
@rolfl Yes, I noticed. I just hope people one day will stop putting answers in comments...
2
 
@retailcoder one more try
 
@Malachi ...
 
@retailcoder I mean, yes?
 
6:20 PM
lol I meant, what do you mean, one more try? I refreshed your user profile 10 times now, still no [badge:peer-pressure]...
 
0
Q: Decompressing a string

user2369284We are given a string which is compressed and we have to decompress it. eg. "(a(bc2)d2)$" '$' indicates end of string "(abcbcd2)$" "abcbcdabcbcd" This is the final string. My code: import java.util.*; class decompress { public static void main(String[] ar) { int end = 0, s...

 
@retailcoder I mean I don't give up easily.
-3
A: multiple returns in a method or one return

Malachi you don't even use linkedContact in that function, I assume that the getLinkedResource needs a linked contact, if that is the case then you really only need to check for the linked Resource, maybe something like this var linkedResource = getLinkedResources(getLinkedContacts(this)); and then ...

 
@Malachi hehe.. I'd just go for the badge :p
 
@retailcoder you don't like my new addition?
@amon check it out, see if I have redeemed myself, even if only a little bit
 
haven't looked, but I've been out of ammo for what seems like forever, I couldn't upvote if I wanted (I soo don't do JS though)
 
6:34 PM
@retailcoder it's like VBScript except there are more Semi-colons
3
 
^^ quote of the day!
 
@retailcoder I can't star my own post...lol
 
@Malachi *sigh* You have half a point there, but I prefer avoiding one level of intendation with an else when the if branch terminates the control flow anyway (break, return, throw,…)
 
@amon alright, now I will delete it.... I have been defeated but not like the armless legless knight from the search for the Holy Grail (Monty Python edition)
 
'tis but a scratch some rep
2
wait, that doesn't work, as you'll be gaining rep through deletion
 
6:39 PM
@amon and a badge
there is still this answer to @amon
 
976 rep on meta SO now. 3 more upvotes on answers and I will be able to see vote counts
 
-2
A: StackExchange clone: where should I add my indexes?

MalachiFirst things is first. When you create a database, you only do it once, and you script it out and execute in the SQL database itself. I wouldn't use ruby to create the SQL Create Script for you. It seems illogical to me that you would create the tables on the database in a language other than ...

it's not the 20th yet is it?
who just voted me on MSO?
 
@Malachi nope, but i also got that “winter is coming” hat, weird
 
0
Q: How are code reviews generally done and what is excess?

user1207047Not sure if this is the right place to post this. Tried Stackoverflow but told that it wasn't appropiate there so I came here. Anyway, my company recently started doing formalized code reviews. The process goes like this: you submit into a github, request a pull request, code gets reviewed by ap...

 
@SimonAndréForsberg great! now tell me my upvote score on the mug+tshirt contest thing!
^^ pretty please :)
15
A: Should employees with head injuries be allowed to post on meta?

retailcoderA long time ago, in a galaxy far, far away... There was this Bounty Hunter that travelled the Stack Exchange world like a Chuck Yeager, always the fastest gun in the west, always on time, always right, never afraid to steal a checkmark. Most of his posts managed to get 500 views in 2 days, but ...

 
6:46 PM
@retailcoder 18
 
Cool! So am I 2nd or 3rd?
 
Yay! I really hope they'll ship to Canada :/
Like, I'd really need to be badlucky to end up 6th
If I end up in the top 3 I'll change my avatar to a picture of me wearing the SO tee and holding the SE mug :)
My wife said if I win the mug it's proof I spend too much time <quote>on that stupid site</quote>
3
 
Unbelievable. Someone created two new crappy tags:
0
Q: How can I automate the process of code review

theghostofcI have a team that works on multiple technologies. I want to know how can I automate the process of code review for .Net, .Net MVC, Python, PHP, Drupal and HTML5/CSS with JavaScript. I have read about and have used some tools like StyleCop/FxCop for .Net and PHP Code Sniffer and likes for PHP an...

 
She obviously doesn't know about WB2013 and what my ranking is...
 
6:53 PM
0
A: Decompressing a string

Simon André Forsberg Indentation. If you are using Eclipse, please select all your code and press Ctrl + I. Your entire for-loop should be indented one step further. Use methods. One method for inputting a String, one method for making one iteration of the "decompression". Did you forget about how to properly use in...

 
^^ TUV
 
@retailcoder Theoretical Up Vote, I suppose?
 
0
Q: My html is malformed

HousemanI'm trying to embed a player to play a video from a CDN. This code was generated by the setup tool, and will work just fine: <object width="470" height="320"> <param name="movie" value="http://osmf.org/dev/2.0gm/StrobeMediaPlayback.swf"</param> <param name="flashvars" value="src=+rtmp%3A%2F%2...

0
Q: Largest Product in a Grid

Dark MirrorProblem 11 says In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04...

 
@sim yup :)
 
By the way, if you ever see anyone create or something like that, please tell the OP that it's a bad tag to have, most likely send them to Programmers, and then edit out the tag. If this happens again, I may need to request a blacklist.
 
7:06 PM
what? isn't black-listed here yet?
 
It can be, but I also don't know if it's been created in the past.
 
Can't we be proactive about it?
 
0
Q: Compressing a string

user2369284The task is to compress a string. eg. "abcbcdabcbcd" Here as you can see some characters are repeated, so it can be compressed. "abcbcdabcbcd" -> "(a(bc2)d2)$" '$' denotes end of string. My code: import java.util.*; class compress { public static void main(String[] ar) { ...

 
I can easily have it blacklisted, which should help prevent if from being created again.
 
@rolfl
It's a paste glitch. What is FWIW? — user2369284 28 secs ago
^^^ I'm not alone!!
0
A: Compressing a string

retailcoderYour naming is awful. Even void main(String[] args) has been butchered to void main(String[] ar)... and the only identifier that's more than 2 letters in this code, is called found - which implies a search, but the method is called compress. What exceptions are you swallowing, and why? I'm no ja...

^^ thanks whoever upvoted my answer here, that was my 5th post with 2+ score since WB2013 has started, I got my 20th and 21st hat!
 
7:28 PM
cough
 
@Jamal the OP commented on my answer though, leaves me thoughtful:
I am more interested in competitive programming at the moment so short variable names suit me — user2369284 7 mins ago
 
Looks like someone is in the wrong place...
 
That was my reply:
We don't do code golf here. The purpose of CR is to write good code. If you're looking for golfed code, I'm afraid you've knocked the wrong door; please see help centerretailcoder 7 mins ago
 
7:54 PM
Oh crap, I won't be able to get the "Hello, World!" hat!
 
0
Q: How to improve this code for testability?

MoonI'm trying to improve the following code for testability. public function can_apply_extension() { $search_dates = [ Carbon::createFromTimestamp(strtotime($this->billing_verified_to))->subMonth(1), $this->billing_verified_to ]; $record = ORM::factory('a model') ...

 
8:35 PM
i should have waited to delete that answer.
 
8:51 PM
0
Q: First file uploading website. What does it need?

HeyItsProdigyI'm a 14 year old programmer who recently started PHP and has prior knowledge of CSS and HTML. I recently created a website (http://heyitsprodigy.com) that has the capability to upload files to your own directory(essentially a dropbox/mediafire). I just want to know what the more experience progr...

 
9:03 PM
0
Q: Optimizing my Javascript

user3117081I anticipate using the following fiddle as the UI For navigation in my site for a portfolio (one day). I was wondering what could be done to further optimize this code. As you can tell, I'm new to javascript; but please be as brutal as possible! Edit: the reason I did this was because it was imp...

 
9:21 PM
-1
Q: Where is there bug in lock free queue?

Daneel S. YaitskovI wrote a Java lock free queue implementation. It has a concurrency bug. I cannot find it. This code is not important. I just worry about I cannot explain observed behavior related with volatile variables. The bug is visible by the exception ("null head"). This is impossible state because there ...

2
Q: Optimization of Javascript

user3117081On the attached fiddle is what I hope will the be future UI for navigation on my own personal portfolio site. I was hoping you guys could critique the javascript I wrote to accomplish the most compatibility with the most browsers. I've tested as far back as IE 7 with this code and it works. Where...

 
9:51 PM
Three code-behind-the-link questions so far today?
 
0
Q: How to make a Python class global?

TheProgramm3rI am working on my game, and have made a level class, but my parselevel() method will not let me parse the level, because of "Block" not being a global variable (Block is my block class). Traceback (most recent call last): File "C:\Users\Benjamin\Documents\GitHub\ShipGame\entity.py", line 5, ...

0
Q: Should I pass an object or values?

MoonLet's say I have a model that has 'purchase' method. The purchase method should take care of purchasing a product. Signature of purchase public function purchase($token, Model_Member $member, Model_Product $product, Model_Recipient $recipient); To call this method, I need to make $member, $pr...

 
@retailcoder now we are tied
12
Q: How to migrate to code review

WesRelated: On migrating from SO: how to do this efficiently and appropriately. I've just come accross a question which I believe is ideal for code review. However it's already got an accepted answer. I can't flag that it should go on code review, and I'm not sure flagging is the best approach. S...

 
Damnit, I just failed my first review audit on SO.
I guess it was time, after having reviewed 1000+ items in the close queue.
@Jamal I can post one more if you'd like?
 
How does one earn the "Winter is Coming" hat when it's not December 20th?
 
IDK
 
10:06 PM
@SimonAndréForsberg: No thanks. :P
 
@syb0rg Quite easy apparently, I guess there was a bug in their system somewhere.
 
Sweet, lets exploit that bug so I can get the hat. STAR ME PLEEZ!
3
 
if I am talking about normalizing a database and I want to make sure my data is ______ data
can someone fill in the blank I can't think of the word
 
Normalized?
 
another word for normalized, unique, ....
i keep thinking plutonic, but that isn't the right word
 
10:08 PM
tabular? structured? non-duplicated?
 
Formalize, homogenize, normalize, regularize...
 
the word starts with an 'N' I think
 
I will upvote you if you use homogenized.
 
programmatically, hypothetically, modularity, flexibility...
 
@syb0rg Challenge Accepted
nuclear
 
10:10 PM
Nintendo, Neon-lit, Nowhere, Null, Nothing, Nonexistent, Negative...
@Malachi Something tells me we aren't helping much...
 
@SimonAndréForsberg it's nuclear
I think
 
nuclear data? Really?
 
You want data to be nuclear?
 
no
Atomic
 
How did I just earn Winter is Coming? Oh wait, maybe it's already December 20th in SE's timezone.
 
10:12 PM
SE uses UTC, so no
 
@Jamal Nope, not yet. Still 1h 48 minutes left.
 
@Jamal doesn't happen for like another 1-2 hours
 
It's funny because no one else is going to earn that hat besides us.
 
Oh well. Another hat means another step towards #1 (or #2)!
 
Still tied for 6th :/
 
10:22 PM
@syb0rg on CR
where do you see how you rank for hats?
does this count @syb0rg????
0
A: Database schema for a school

MalachiYou Data Needs to be more ATOMIC AND HOMOGENEOUS on this table create table StudentGradeReport ( StudentGradeReportId int primary key identity(1,1), StudentInstanceId int foreign key references StudentInstance(StudentInstanceId), SubjectId int foreign key references Subject(Subject...

 
Question; is it not permissible to ask for Optimization advice on Code Review?
 
@user3117081 Asking for optimization advice on Code Review is perfectly OK
@user3117081 As long as you take a look at our Help Center first to make sure your question is on-topic
 
it's ok as long as the optimization advice is part of a code review
 
See, I asked for optimization advice; and then moderators changed it to be for accessibility across browsers.
I still ended up getting some optimization advice but I was a little confused.
 
Are you talking about this question?
5
Q: jQuery-animated navigation menu

user3117081On the attached fiddle is what I hope will the be future UI for navigation on my own personal portfolio site. I was hoping you guys could critique the JavaScript I wrote to accomplish the most compatibility with the most browsers. I've tested as far back as IE 7 with this code and it works. Where...

 
10:32 PM
Yessir!
 
@user3117081 I will take a look at your question
 
@user3117081: That wasn't a moderator who changed your title.
 
Well, someone changed the phrasing of the question.
As well.
 
The title was changed because it sounded too generic. The purpose of the code should be in the title, while the request should be in the body.
 
@user3117081 We try to avoid "Optimization of my code"-style titles, because all questions could be titled that way
2
 
10:33 PM
Makes sense.
The phrasing was probably changed because I talked about other attempts and their lack of portability. Just wanted to make sure I could still ask for optimization advice in future.
 
@user3117081 Your question in itself was perfectly OK. You even got an upvote from me. I hope you will return with more questions.
 
@Malachi Good enough haha.
 
That's fine. Next time, just keep the specific request in the body and the code purpose in the title. You should also use for such request.
 
@Malachi nope. I'm 1 ahead :)
 
Thanks for the tips Jamal and Simon; take it easy :D
 
10:35 PM
No problem!
 
@Jamal Wow. For once, it wasn't a moderator that edited it! ;)
 
@user3117081 No sticking around? This is quite a fun place to just chat about whatever.
2
 
Hehe, I'm at work.
 
So is most others :P
 
@SimonAndréForsberg: I see that change as a more programming-specific one anyway. I can only change most titles if I can find the purpose from the request. Otherwise, I let someone else handle it.
 
10:38 PM
Hah; well I've got to finish up a presentation on the basics of HTML and CSS for my company anyways. So I should probably go wrap that up, as it's due tommorow. Have a good day y'all! Thanks again!
 
@user3117081 Come again!
Now back to my 22 page marketing plan I'm writing...
 
@user3117081 Good luck
Now back to.... absolutely nothing.
3
 
^^ TS
BTW:
8
Q: Winter Is Coming?

FlykI just got awarded the "Winter Is Coming" hat - it's still the 19th? The hat is for the 20th! What is going on?

 
@retailcoder cheater. how did you do that? I might have to pull my vote
 
lol. You pull yours, I'll pull mine :p
What I wonder though, is what the heck happened on MSO for that (quite old) post to suddenly get so much attention.
I got like +30 today on that post
 
10:49 PM
I think that I was searching for something similar, and then I answered on it, so it got bumped, maybe people are checking out our profiles @retailcoder
 
Daily vote limit reached; vote again in 1 hour. - ON A COMMENT!!
 
???
 
my god you vote a lot
i didnt know you even can run out of comment votes :)
 
@retailcoder I've been upvoting that MSO post today.
@Corbin Me neither!!
 
Just realized I'm 9 votes short of getting my first bronze badge!
 
10:53 PM
@retailcoder I've used all my comment votes.
 
Comment votes are counted too?
@SimonAndréForsberg you just beat every freakin' record!!
 
Apparently
Not as many records as @rolfl. At least not when it comes to reputation
This was on MSO though, not on Code Review ^^
 
@retailcoder OMGOSH
I am being a Grinch right now, but I think that this question is off-topic in that it is asking for code to be written, the OP asked where to add indexes. it's really walking the fine line.
2
Q: StackExchange clone: where should I add my indexes?

HopstreamI'm creating an open source stack exchange clone and the following is my schema. What should I add indexes on for it to be optimal? Here is the schema in Rails format (SQL format below as well): create_table "comments", force: true do |t| t.integer "id" t.integer "post_id", ...

maybe should have been migrated to Database.stack
 
Bah, it's answered/accepted.. unhappy with your answer's score?
2
 
11:24 PM
Zombie down:
0
A: Monad Transformers in C#

retailcoderThere isn't much to review here. However I did find this: public class CustomerRepository : ICustomerRepository { public IValidation<Exception,Customer> GetById(int id) { if (id < 0) return new None<Customer>().ToValidationT<Exception>(new Exception("Customer Id less...

(gone to change diapers.. brb)
 
0
Q: Trouble searching database, filtering results, adding longs (ugly code)

nexus_2006My needs outpace my abilities, this code (mostly) works, but it is really ugly, doesn't always add correctly, and is in desperate need of some help refactoring. I can't wrap my head around what needs done with it. I have a sqlite table "WorkLog" which contains rows of (int, long, long, long, lo...

 
ugh.. just found a whole new meaning to Oh the horror.
^^ and the PJ's label says "**Poop**idoo"
 
@retailcoder And what's that meaning? Are you talking about the newly arrived android zombie?
 
You so don't want to know
 
11:40 PM
@StackExchange List<long[]>, Calendar, WTF? This stuff is hilarious in a bad way.
 
@retailcoder I so want to know.
 
Y'all had diner?
 
sure! *goes fetches bucket*
 
I undid the kid's PJ's, to find no diaper.. it was in one of the legs. Poop all over. Amazing. Welcome to parenthood...
2
Straight to the tub!
 
Oh dear...
For a moment just now I thought: What kind of parent are you, putting a baby to sleep at a quarter to one in the middle of the night?? Then I realized, oh, timezones...
So my conclusion is, you are a good parent :)
 
11:45 PM
@retailcoder don't you wish you had a bigger one of those sprayer things next to the sink? ( like at the kitchen sink )
 
Migrating to Parenting SE
4
 
@Malachi like a shower head?
 
@amon yes but only like the ones you see next to the kitchen sink, with the little button and the retractable hose....
@rolfl you don't have an account on dba.stackexchange.com????
@retailcoder, my awesome amazing code that I self answered on that one question with, works in Stage but not in Production. the 3rd party application must be different somehow, or something
 
0
Q: a c program the reads , sorts a list of names

user33811I am writing a c program to read a list of words , sorts them in ascending (alphabetical) order , count the occurrence of a user entered word and searches for a user entered word all in the same program but i did each request separately first however i do not know how to write it in 2D array of ...

 
Oh crap, no more stars for the next four minutes. How am I going to survive?
6
 
11:59 PM
The above question if off-topic, all I did still clean it up.
 
00:00 - 18:0018:00 - 00:00

« first day (229 days earlier)      last day (3792 days later) »