« first day (410 days earlier)      last day (3608 days later) » 

12:03 AM
maybe the problem is #3 treats "code from a project" and "example code" as being mutually exclusive when they aren't necessarily (in the case of a project created as an example).
 
I like that interpretation as well. That's how I feel about it.
 
for the record, I like it too! Hi guys!
 
Could be @DaggNabbit.
 
Hey @Mat'sMug
 
Hey Mat'sMug.
 
12:05 AM
hey MM
 
@Mat'sMug hello
 
lol
 
I do want to say though, if it is off topic, it should go. No matter how much we like it.
There shouldn't be trying to interpret the rules in such a way that an off topic question stays.
Be any...
 
@ckuhn203 that's what's bothering me, it feels like we're twisting the rules to keep a question we like
(actually I don't like it but... yeah)
 
I don't think we are in that particular case, but I can think of another where it might have happened.
 
12:09 AM
well, if we aren't, we have very different preconceived notions of what "example code" means, so the faq must be pretty ambiguous
to me, a project created to illustrate a design pattern for the sake of posting it here is example code, and it's a stretch for me to think of it as "just an example project but not example code."
 
I see example code as something I would post on SO. It's stripped of all complexity. Just a snippet.
 
1
Q: IndexOrDefault that functions like FirstOrDefault

VaccanoI don't know why this is not in the .NET Library, but I need to be able to use an index against a list and not have it throw an exception if it is outside the bounds of the list. This is what I came up with: public static class LinqHelpers { public static TListType IndexOrDefault<TListType>...

 
I see Alfred as a learning project. It was built as a learning exercise; not stripped down after it was built.
 
@ckuhn203 see, to me, i think that could easily be "real code from a project"
and in the case of SO, it probably usually is real code from a project
people are just trying to get shit to work on SO, not learn.
so the real problem here is the faq means different things to different people
 
^^ yes.
The FAQ is ambiguous.
2
 
12:15 AM
and i don't think anyone wants to see SO-style questions here, there just isn't anything in the faq to rule them out (specifically)
 
@DaggNabbit "Working code"? :)
 
@SimonAndréForsberg yeah, i guess that would rule most of them out
but I've seen enough SO-style questions posted here that happen to work, but want improvement
the same reason the one-liner bothered everyone, basically
 
The one-liner didn't bother me though.
 
@SimonAndréForsberg weren't you the one looking for a reason to close it?
3
Q: Should we close this one-liner ternary as "unclear what you're asking"?

Mat's MugThis question looks like OP is worried about DRY and perhaps readability of a one-liner ternary. I have a bias against one-liners and other narrowed-down questions, but there's a consensus about them being reviewable and on-topic, and besides there's no "too narrow" close reason. Regardless of ...

oops, it was Mat's
 
I'm not sure if it defines topicality as such, but perhaps my view on the basic difference between here and SO will add something useful. At least as I see it, the basic intent on SO is to change the behavior of the code. The basic intent here is to refactor the code to be more readable, flexible, etc., but (at least normally) to maintain the same basic behavior.
 
12:19 AM
@DaggNabbit I am actually the only one who have upvoted today's one-liner.
@JerryCoffin I agree with that.
 
As such, it seems to me that at least part of the basic intent of topicality is that 1) the present behavior of the code should be something that's worth maintaining (e.g., not obviously buggy) and 2) that the code is sufficiently complete and coherent that we can ascertain the intended behavior.
 
@SimonAndréForsberg ah, your answer on that meta post makes more sense to me now ;)
@JerryCoffin that sounds right. Alfred meets 2, but not 1.
 
@DaggNabbit Right--the problem is that "worth maintaining" can be something of a judgement call. If it's obvious buggy, that makes it pretty obvious. If it works but is too limited to be useful...that's open to a lot more argument. If we aren't pretty liberal in that respect, nearly all student assignments fall outside the line as well.
 
0
Q: How to improvise the performance of the following plpgsql function?

Yousuf Ibn Akhtar SultanI have the below mentioned function written in plpgsql which is working fine. I want someone to review it and let me know how can I improve its performance. What this function does is that, it takes data from staging table and inserts into target tables. Before it inserts, it checks for the exis...

 
@JerryCoffin i personally wouldn't miss any homework code that's not worth maintaining, but i guess that's selfish
 
12:28 AM
almost got wow'd again!
Fantastic answer! Thank you! — Vaccano 36 secs ago
 
lol
 
@DaggNabbit My own tendency is in rather the opposite direction--to err on the side of keeping things open unless they're clearly off-topic or of such low quality that they obviously detract from the site.
The simple fact is that rightly or wrongly, people generally often feel like they're being personally attacked when their questions get closed, so I'd rather avoid it just about any time it's at all reasonable.
2
 
@JerryCoffin, what do you think about the one-liner, should that have been closed?
that one I don't have any personal preference about either way
 
@Marc-Andre I just hit exactly 1,234 rep!! I took a screenshot too :D
2
 
@DaggNabbit Probably, but it really goes to my second point above: that it's so incomplete (and the names so generic) that we can't really ascertain what behavior is desired at any more than a microscopic level, so it's essentially impossible to suggest alternatives in a meaningful manner.
 
12:34 AM
@AlexL nice, happened to me yesterday :)
@JerryCoffin Yeah, after it was closed i tried to address it with a generic solution that could be generally useful, but apparently that's not enough to legitimize the question.
 
Marc and I were talking because yesterday I hit 1,111 :)
 
I wonder if I can earn bronze before I actually learn the language. Nah, probably not. I still need more answers anyway.
 
@DaggNabbit Yeah--and while it's a decent to good answer, it's horribly handicapped by the incompleteness of the question, to the point that I have to question whether I'd be at all likely to use the code from the answer in any real code (even assuming I did write JavaScript regularly).
 
@DaggNabbit did typing up that answer make you feel like you were reviewing code? or more like you were answering an SO-style quickie?
 
@Mat'sMug Are you going to help me catch up?
1
A: Output in one window

Simon André ForsbergNaming conventions Classes start with an uppercase letter, methods start with lowercase letters. HomeworkArrayWFunctionstest5 would be slightly better, but HomeworkArrayWithFunctionsTest5 would be even better, although describing what the class is used for is often best. That's hard to apply on...

 
12:41 AM
@Mat'sMug good point, more like answering an SO question. But, if he had presented code to access deeply-nested properties of an object, I probably would have responded with the updated part of my answer, just the same.
 
@Mat'sMug You don't need to put more mugs on the wall, apparently I do a good job with that myself:
@Mat'sMug Is SO-style quickie and reviewing code always mutually exclusive?
 
@SimonAndréForsberg no
@SimonAndréForsberg thanks for the reminder, I wanted to downvote that one and fix my OCD... done ;)
 
@SimonAndréForsberg I probably wouldn't even mention it except that it's in bold-face, but you've misspelled "inconsistent" as "Inconcistent" in one of the headings.
 
@JerryCoffin I know, I'm inkonsictent.
4
 
@SimonAndréForsberg I can only do so much... ;)
 
12:48 AM
 
or like that, yeah
 
I could use more, too. I'm not sure if there are any remaining C++ zombies that I can kill.
...and our answer percentage is down to 95%.
 
@Jamal Incoming!
 
@rolfl I remember we've been discussing Scanner before, what do you think of the use of it in this question? codereview.stackexchange.com/questions/54567/… . For me it feels wrong to create Scanners inside such a method call
 
@JerryCoffin Syntax error for the vector initialization.
Closing in 3...2...1... :P
 
12:56 AM
1
Q: Code for sums in a vector

Jerry CoffinI posted this code in an answer earlier today, but thought it was worth seeing if somebody could suggest further improvements: #include <numeric> #include <vector> #include <iterator> #include <iostream> #include <algorithm> template <class InIt, class OutIt> OutIt adjacent_sum(InIt begin, InIt...

 
@Jamal Only to an out of date compiler...
 
I'm probably not used to seeing it. I think I do barely recall it being allowed.
 
I just played the most intense AOE II game I've ever played. ELO is heavily flawed on games where you can just make a different account... :/
Also... Google's doodle for today is rather interesting. Just noticed that it's someone kicking a ball against a wall in a favela. x.x
 
1:13 AM
@Mat'sMug That better? Another answer
 
@SimonAndréForsberg it's name is too short => its name is too short ;)
 
=)
 
what, "it's" == "it is"
:)
@SimonAndréForsberg keep it up!
 
@Mat'sMug Stupid grammars.
 
lol, the name is too short
 
1:16 AM
@Mat'sMug Btw, it should be "Stupid grammar", right?
 
...
........
YEAH
lol
I'm like that in French too, no worries ;)
 
@Corbin I've had my online Minesweeper Flags game for six years now. I'm using ELO for Multiplayer games played there. You have no idea how many comments the players have had about that!! I did not make it easier either by allowing the AIs to have rating. Should then the AIs have static rating or dynamic rating? Should games vs. guests give rating? How to detect players who are just losing games on purpose? Oh decisions, decisions, decisions!!
@Mat'sMug I'm like that in Swedish so it's alright :)
590 mugs on the wall...
I need accepts!
And sleep!
TTGTB
 
hehe.. good night!
 
Hey guys... What's the word for when you add commentary to your code like /* Hello */ or <!-- Hello -->
 
1:31 AM
@Phrancis "comments"?
 
hahah. I guess so :)
 
@JerryCoffin OK I guess that was obvious enough, wasn't it lol.
 
0
Q: Simple Query Using Multiple AND/ORs with PDO

JukEboXI am trying to get a simple password from my technician's database but it seems that the $query line is not running. I am new to this PDO idea and I am not sure what to use for this either query or a prepare. From what I have read the query is a base query but the prepare is safer. Can anyone hel...

 
are you serious @Phrancis? :P
 
@Mehrad hey just making sure I'm using the same vernacular as everyone else, otherwise I look like the newbie lol. (which I am)
 
1:34 AM
Good on you... :)
 
So, [this post](http://codereview.stackexchange.com/questions/54388/revised-version-of-a-complex-query-to-count-votes-with-a-redistribution-system#54388) is driving me crazy.. Mainly for this reason:
`votes_above_the_threshold` is being called multiple times, yet nowhere in the script can I find where it is actually being declared/set. It's not a column name either... ugh.
Well that hyperlink thing didn't work well...
 
grab the [Share] url instead ;)
/q/54388
 
You lost me at "grab the"
 
every post on SE has a "Share" link, click that
 
Oh. Gotcha.
 
1:45 AM
takes up fewer characters in comments, too ;)
 
OH I just figured it out, looks like it's aliased multiple times from copy/pasting the same SELECT statement. Looks like we need a variable!
Or a constant, parading as a variable, whichever
 
@SimonAndréForsberg I wish I knew.... AOE II has existed for 15 years and they haven't been able to figure it out. I suppose you could have some kind of "upset" detection. For example, a 1500 should never beat a 1700. At least not 1v1 (as minesweeper always is). At the same time though, it can happen, and a 1700 could lose on purpose. :/
 
I'm just about ready to give up, would be easier to rewrite from the ground up than to review this blasphemy...
 
I've never actually played a game that had any decent form of automatic ELO governing. Making new accounts throws anything out the window. People on AOE II love to smurf and make a second account that's like 1550 when they're actually 1750+. It's very, very annoying for someone like me who usually plays in the 1550-1700 range :/ lol
As far as guest games go though, I would definitely have those unranked. It's way too easy to be untruthful if one of the people is anonymous.
 
2:03 AM
tentative/attempt-of-an-answer:
0
A: The gray areas of Code Review: Hypothetical / Example code

Mat's MugExample Project vs Example Code It's example code that we don't want to see. Example code is hard to review because it either: lacks sufficient context (and/or) has identifiers with names like foo and bar (and/or) has methods with placeholder comments // ... instead of actual code @200_Succe...

 
2:14 AM
@Mat'sMug I am back on that DLL issue to get it fixed. were working on some other project for couple of day
got a question
 
what's up?
 
Any thoughts on this
?
 
On that late binding issue. Do you create a seperate class for your LateBindingService() or just a method?
 
that's completely up to you! depends how complicated the thing can get.
 
never done this thing before and it's c
kinda* new
I'll stick with the method and if it gets screwed up i'll ask more questions :P
 
2:20 AM
keep it simple, extract a class if the method gets bloated and you start declaring instance-level fields that you only use in that method.
 
2:56 AM
Monking all ..... greetings from starry Pittsburgh.
 
@rolfl Monking!
 
Woohoo! Glad you made it.
 
Yeah, me too. Not to be alarmist, but, we're driving through wicked rain, with hail, and wind, and then my cell phone starts chiming, and it comes up with 'tornado warning'.
Well, 3 seconds later it lightened up and we were through it, but, for a moment ....
 
@rolfl Tornado warnings can be a bit scary. Where I grew up, they were pretty common (sometimes two or three times a week during hottest part of the summer) and I still never quite got used to them.
 
@rolfl Guess where I'm at now? Kansas. ;-)
 
3:03 AM
hehe..... Jerry, I see you are looking for code reviews ... ;-)
 
0
Q: Push List Element to Top

Kevin MeredithPlease evaluate this function. It takes a list [a] and an Int, i.e. the index, and returns a new list with the selected item at the top of the list. Note that it returns Maybe [a] to account for bad indexes. pushToTop :: [a] -> Int -> Maybe [a] pushToTop [] _ = Just [] pushToTop xs i | i >=...

 
Wow, Community sure was busy deleting questions today.
 
@rolfl @jamal was looking for something to review, so I posted--but I guess I'm not good enough to be worthy of his reviewing my code... :-0
 
Jamal has standards
I see a JDQ in there too
 
3:19 AM
0
Q: Adding features to a strategy game

bazolaI'm working on a basic strategy game for iOS and I have a question about the overall layout of the code in the program. I added some features to the game today and I had to add code to several different places to get the features to function properly. In general I think I am doing things correc...

 
TTGTB - 'night @all!
 
@Mat'sMug G'night.
 
3:43 AM
@JerryCoffin Nah, your code is just too good for me.
 
4:02 AM
I was going to write an improved answer to codereview.stackexchange.com/questions/54500/memoization-helper
now I think i've just gone too far :/
 
@Corbin Eh, you make me feel dumb at times. :P Algorithms just aren't my thing.
 
Hah. I'm pretty damn terrible at algorithms. I just got lucky and spotted a minor potential bug (unless "hey don't pass this an empty range" is a valid precondition -- then it's not a bug).
 
Eh, still better than me. If some C++ code looks pretty much up to par best-practice-wise, I would pretty much be unable to touch it.
 
(Do the unsorted includes secretly annoy the hell out of you too?)
4
 
4:14 AM
Thanks @Phrancis!!!
> You've earned the "html" tag badge.
 
@Corbin Dammit Jerry T_T
 
hahahahaahahahaha
 
@Jamal You clearly have at least one item to put into a review...
 
Oh! The spacing around the braces in the initialization is inconsistent. ;-)
I could, but I usually don't like having an answer that minor.
 
I noticed the spacing around the initialization list too, and I thought about including the headers and that. Seemed a bit minor given the context of throw-away code though :/ lol
But if someone else posts it, I shall certainly upvote it :p
 
Now that I think about it, I do have an answer with an implementation of mine. I'll see if I can throw it up for review.
 
@Yuushi That seems...above and beyond the call of duty, as they said during my (much younger) military days.
 
@JerryCoffin I started writing an answer to the memoization helper question
and got really, really carried away
(no, I am certainly NOT going to post it, in case anyone is worried)
 
@Yuushi Indeed--a reasonably complete memoization system...
 
0
Q: Function for splitting an integer into smaller values

JamalThis is the function I've implemented in an answer to this question. I've tried to make this as simple and idiomatic as possible, using C++11. Could this still be improved in any way? Test run #include <algorithm> #include <cstdint> #include <iostream> #include <iterator> #include <vector> ...

 
4:36 AM
0
Q: Function for splitting an integer into smaller values

JamalThis is the function I've implemented in an answer to this question. I've tried to make this as simple and idiomatic as possible, using C++11. Could this still be improved in any way? Test run #include <algorithm> #include <cstdint> #include <iostream> #include <iterator> #include <vector> ...

 
5:04 AM
Hey
 
@AlexL Hello.
 
@JerryCoffin How're ya?
Quite around CR now..
 
@AlexL Pretty fair.
@AlexL Off and on, anyway.
 
So are you a full time dev? :)
 
0
Q: Prime Number Sieving Algorithm

user3750870Last semester in my Masters Program I developed this code for sieving. Is this any decent? Or is my implementation really slow? My professor wants me to write a report that he might use locally within the school, but I feel like I've done nothing that new, despite coming up with my algorithm wi...

 
5:11 AM
@AlexL Hm...where do you draw the line between "full time" and "overworked"?
 
@CaptainObvious That's some... interesting indentation and spacing.
 
holy whitespace batman
 
@JerryCoffin Ha :)
 
I think two Java answers (one with a downvote) is enough for me for one day. :P
 
It seems like @Jamal never sleeps :P
 
5:24 AM
@Jamal Your sacrifice has greatly increased your karma this day.
@AlexL This has been noted before...
 
:-)
 
@JerryCoffin Oh I'm sure it has
 
@AlexL Unfortunately... I do. I just go to bed late and wake up late (or early).
 
5:38 AM
I need to call it quits tonight, night all
 
Goodnight!
 
5:59 AM
Monking
 
0
Q: Improving argument passing to dumb tasks

VoiceOfUnreasonI'm becoming acquainted with ruby by taking some of my legacy shell scripts and rewriting them as .rb The pattern that is emerging is that I have a number of different dumb tasks, that do what they are told, and a coordinator that is responsible for ordering the tasks, and providing to the tasks...

 
Is this like... lazyness in C++? typedef std::vector<int> SplitValues;
From a recent question
Doesn't a typedef only make it harder to follow the code
 
not necessarily
 
TTGTW... back in a bit
 
@skiwi No. It's simply the old standard point of separating implementation from interface. The difference is that a Java interface requires you to explicitly specify all the operations the interface will support, then define a type as implementing that interface. A typedef is a but like a duck-typing version of the same basic concept. That is to say, we specify a type name and we use that type--but the requirements on the type are defined only by the operations we actually use.
Changing the typedef lets us substitute a different implementation of the interface (i.e., specify a different concrete type that will be used to support the specified operations). The big difference is that the interface is defined implicitly (by the operations we actually use) rather than explicitly by code that says what operations all implementations of that interface must support.
In this case, the operations used (that I recall immediately, anyway) were bit-shifting, bitwise-and, and most likely assignment. The typedef gives us a layer of indirection (over the type, not the address) that lets us substitute any other type, as long as it also supports bit-shift, bitwise-and and assignment.
 
6:18 AM
@JerryCoffin: I've just added some questions to the question (lol), in case you want to answer them.
 
6:39 AM
@JerryCoffin Then it makes some sense indeed
 
0
Q: Need to simplify an ajax sucess code?

user35295Please take a look at this Fiddle Is there a better way of building a table with titles in the first cell of each row, like this: <div id="area"> <table> <thead> <tr> <th></th> <th>A</th> <th>B</th> <th>C</th> </tr> </thead> <tbody> <tr> <td>Germany</td> <td>...

 
6:57 AM
@Jamal I've tried to add some matching answers to the answer.
 
Thanks! I'll test it out tomorrow.
 
Monking everyone ;)
 
Monking @Vogel612
 
Monking, mina-san.
 
why mina-san? @MadaraUchiha
more like tori-san...
 
7:11 AM
mina-san = Japanese for everyone-san
 
wouldn't you write that with two n?
 
@Vogel612 minna? Maybe
 
while we're at it. Isn't it customary to replace -san with 3 in Japanese chats?
 
@Vogel612 eh?
 
minna3 == minna-san is true
 
7:24 AM
TTGTB - Night y'all
 
night @Phrancis
 
7:40 AM
@Phrancis True Too Good To Be?
 
tiime tooooo - go to bed
needs these notes...
 
0
Q: Performance Issues: Finding Nearest Polygon And Nearest Line Of That Polygon

FatalSleepFinding the nearest polygon out of a list of polygons seems to be quite a challenge on performance, due to lack of optimization. Consider the following image: Rather than, code, I'll give the concept behind this. The "purple" pointer under the mouse is an entity and each blue blob is a polygon...

 
8:03 AM
Hmm... Where did my remote connection go
 
lost in the depths of your open windows...
 
8:19 AM
0
Q: what to do to avoid Memory Error

newPyUserI am working with quite large files (pytables) and I am having problems with the Memory Error when I try to load the data for processing. I would like some tips about how to avoid this in my python 32bits, since I am new working with pandas and pytables, and I do not know how to work splitting t...

0
Q: jQuery check amount of columns in row

DreibaI have a own made grid system and made a jQuery function for that to check if there are not to many columns in each row. If so, delete the HTML code of the row. Normally in my grid system, there fits 12 columns in 1 row. But i can change that. In HTML, i write them like this: <div ...

 
Hey all.
 
Hey @kleinfreund
 
@Simon Call me, please. TotalCommander question. :)
Hi little bird.
 
8:38 AM
why little??
 
0
Q: Better way to handle mulitple boolean variables in function call

Vinoth KumarLogic is to call a function with some input values and function returns multiple boolean variables. In Future the boolean variables may be extended. function(inp1,inp3,bool1,bool2... booln) I decided to pack the boolean variables into structure function(inp1,inp3,struct bool_flags) Kindly ...

 
@Vogel Sorry, nothing personal. Just came to my mind. ;)
 
lol, no offense taken. just... I am 1.9 m tall, so that's kinda. funny ;)
 
See my nickname. I'm about 1.8 m (screw the inches...).
 
8:55 AM
Welcome to Code Review! it seems you have misunderstood what this site is about. We do not help with implementing features or give abstract design advice. For stuff like this you might want to check out Programmers or Stack Overflow. Please read though their respective help center first to find out if your question is okay to be asked there. — Vogel612 1 min ago
and that one looks like a SO answer...
0
A: jQuery check amount of columns in row

VandeshYou could try - row.children('[class*="size-"],[class*="offset-"],[class*="push-"],[class*="pull-"]').each(function () { columns += getCurrentSize(this); }); function getCurrentSize(element){ return Number($(element).attr('class').match(/\d+$/)[0]); }

 
morning @all
 
morning @chillworld
 
vnp
morning
 
0
Q: The efficiency of looping over nested dictionaries in Python

fishiwhjHow to make the following code more efficient? """ Calculate the posterior distribution of p(pos|word) using Baye's rule: p(pos|word) \propto p(word|pos)p(pos). """ word_pos_dict = defaultdict(float) # Example, word|pos -> 0.0012 pos_dict = defaultdict(float) # pos -> 0.005 pos_word_d...

 
9:10 AM
I would like to write a review but no time atm
some stupid ... (can't call it bug) what I need to figure out to work correctly
 
I have one done today already. and I salvaged a probably awful question on German Language that's probably the most I will do at work for today...
gotta get typo3 up and runnning..
friggin php openssl extension..
 
Struggling here with how to make meaningful methods, etc
public List<Pair<String, List<Word>>> findWordsInTextline(final SearchStrategy searchStrategy, final String delimeter) {
 
what in god's name?? List<Pair<String, List<Word>>>
how long do you want the type now??
 
There's worse...
public List<Pair<Word, List<List<SymbolChoice>>>> findWordsForceFitRegex(final String regex) {
 
youch...,
 
9:19 AM
And maybe end users of the library are not too happy with this
 
that hurts to look at.....
 
But I have no clue at the moment how to simplify it
 
Y u no just Map<Word, List<List<SymbolChoice>>>?
 
Because a map has no order :(
 
and why would you need that?`?
 
9:20 AM
and a LinkedHashMap does have order, but there you cannot get key-value pairs in an ordered way
Because the order matters here
Only guarantee that one word is before the other, is the order
 
sounds like a job for "please review my ordered map implementation"
 
@chillworld The agency finally restartet their router. Fixed it of course
 
I'm not even sure if I'm going to put this up for review
Or if I'll refactor it before
 
0
Q: Missing Term in an AP (Programming)

ThorAn Arithmetic Progression is defined as one in which there is a constant difference between the consecutive terms of a given series of numbers. You are provided with consecutive elements of an Arithmetic Progression. There is however one hitch: Exactly one term from the original series is missing...

 
9:36 AM
@kleinfreund I'm not following you atm :s
@Vogel612 I get page not found (prob DMZ blokking link)
 
@chillworld Talked to you yesterday about some sites were not loading for me.
 
@kleinfreund ah yes indeed and the gravatar not showing
 
Yep, all this stuff. Everything's fine now.
 
friggin apache... Y U NO ACCEPT MY CONFIG-CHANGES!
 
Monking @all
 
9:42 AM
today it's mine turn, first on www.zkfiddle.org I can search for degree's in stead of giving me the real fiddle.
now, no connection to mine work pc (teleworking today and have to take over main pc)
 
monking @Nobody
 
monking @Nobody
 
My home PC crashed today while being remote connected to it from work...
luckily someone was home
 
0
Q: PHP isset over use? Good or bad?

RichardFirst, I'm in no way an experienced php coder. This is my 5th time working with php so if you see anything that can bee improve please point them out for me. So I have the code checking for $_POST variable and use them to create the page title. Here is the code: $pgeName = safeVal(basename($_SE...

 
Am I stupid or what btw?
string -> string.replaceAll("^[a-zA-Z0-9]", "")
This should remove a dot for example, right?
 
9:48 AM
noop
the regex does not do what you think it does...
 
Oh..
 
try "[^a-zA-Z0-9]" instead
 
Facepalm
 
ima just ignore that "Windows apache thread stack size warning" for now..
 
9:59 AM
0
Q: Need help in swift code optimisation

skyleri just started learning swift. I started with an example of rss feed parser. I've wrapper class written in ObjC which converted the xml response into NSDictonary. I'm using the NSDictionary returned from my wrapper class. Then in need to iterate though the NSDictionary and fetch all the title and...

 
How can I pass a property to a method to check if it's null? Something along the lines of public void IsRequired<T>(Expression<Func<T, bool>> property)
property/field/variable
 
10:16 AM
@DaggNabbit rather a follow-up than a dupe. the functionality changed...
@JeroenVannevel that c#?
we got our first question..
 
10:43 AM
@Vogel612 ah, wasn't labeled as a followup so i assumed dupe.
 
@Vogel612 It's supposed to be, yes
 
no clue there... in I'd probably just @NotNull it and be done ;)
 
Monking!
@kleinfreund I can't call you, I don't have your number.
 
Monking @SimonAndréForsberg
 
Monking @SimonAndréForsberg
 
11:01 AM
Does anyone know if there are updated Java conventions somewhere? There's a big red message on the top of this page: oracle.com/technetwork/java/javase/documentation/…
 
> The last revision to this document was made on April 20, 1999
whoa
 
Monking @SimonAndréForsberg
Hang on there...
 
Monking monking
 
You are not alone
"HTTP 404 on Oracle Java code conventions"
Holy cow, the amount of tags used in that article
 
@Corbin My experience with ELO is that no matter how you do it, there's always someone who's not happy. (In my case though, that someone tended to be the same persons over and over again...)
 
11:18 AM
I'm absolutely lost at the moment though how to use a WSDL webservice...
 
11:30 AM
@Simon The ping is my ringtone, dude. :)
@Simon I wanted to ask you whether you use the TotalCommander FTP thingy?
Found myself sometimes opening stuff in my FTP Client because it somewhat looks like the TC window.
 
@kleinfreund Oh yes, I love the TotalCommander FTP thingy. Ctrl + F FTW!
 
Yeah and that's how I found out about it.
Tried to search.
 
Search is Alt + F7 :)
Or Ctrl + S to search/filter in the current directory
 
Ctrl + F is Search everywhere else. everywhere.
 
Total Commander is not everywhere :)
I honestly don't know why they've used different shortcuts in TC
 
11:32 AM
That makes me gringe. Why would someone do that.
Ctrl + F to do quick searches is nothing too new. I'm sure it's been there for a long time.
 
Does anyone have a clue what BO and VO mean in a web services context?
 
Which kind of web service?
 
SOAP one, generated from WSDL file
 
Okay, I'm out. Could've only guessed.^^
 
Me too :p
 
11:42 AM
0
Q: From validation can be simplified and get best approach to get the validation result?

3gwebtrainI am doing a validation. I believe that, there is no.of stuff can reducible / removable. Still I an re-work on this. But I am looking for some experts look on my code and get the very best approach for both individual and form submit error handling. here is my code : (see the fiddle for real val...

 
Much fun
my Java code doesn't work to connect to the webservice
Some other tool can do it
 
0
Q: Is my ObjectCache wrapper sound?

StijnWrapper: internal static class Cache { private static ObjectCache InternalCache { get { return MemoryCache.Default; } } private static T CacheOrGetExisting<T>(string key, Func<T> valueFactory) { T value; object uncastedValu...

 
11:58 AM
@SimonAndréForsberg The Google Java Style Guide appears to be widely regarded as the successor to Sun's style guide.
 
Thanks 200
 
Wtf, our server doesn't accept charset UTF-8
 
@chill wow. :D
@Simon Okay, having FTP inside TC is nice. Really. The only annoying thing is the popup window when switching dir's.
@Simon Wait a second. I can remote edit files? O.o
 
12:23 PM
@kleinfreund Popup window when switiching remote directory? Yes, that's because the FTP needs to load the new directory.
Yes, you can remote edit files. The files are stored temporarily in TC's temp folder and when you close it it asks you if you want to upload it back
 
@Simon Obviously, but it's in my way. I'd love to hide it. Or have a message in the status bar, whatsoever.
Remote editing is nice. Doesn't save you too much time, but you don't touch the wrong files. Well, maybe.^^
 
12:42 PM
0
Q: Tweets per second

sundar nataraj  Сундарmy Question is from Talent Buddy Tweets per second Japan Castle in the Sky airing broke a Twitter record on August 3, 2013. At one point during the classic anime movie showing, people submitted 143,199 tweets per second. This particular spike was about 25 times greater than Twitter’s st...

1
Q: Python: base class for subclasses that can track their own instances

Ivan XI'm new to Python, with some background in Java and C# from a while ago, and more recently in scripting worlds like Bash and AppleScript. I wanted to be able to create classes that could a) report their instances, and b) limit their number of instances. Synthesizing various answers from Stack O...

 
I'm not sure if this is example code or not, I think Foo and Bar are only there as usage examples: codereview.stackexchange.com/questions/54624/…
 
12:57 PM
@SimonAndréForsberg I agree
 
Good. Then I'm voting to leave open
 
Does anyone here have experience with JAX-WS?
 

« first day (410 days earlier)      last day (3608 days later) »