« first day (593 days earlier)      last day (3722 days later) » 

09:21
0
Q: What's the best approach to achieve two-way communication with TIdTCPServer and TIdTCPClient?

SkynetAdminI'm a newbie in Delphi and I'm trying to create a client/server application using INDY. I want to have a server that is capable not only of receiving messages and streaming, but also sending data to clients at any given time. The clients must have same capabilities. I built a prototype app using ...

09:50
> 750 days, 750 consecutive
2
Take a good look because I'm leaving for Budapest in 30 minutes
And I'm not going to login for a week
The end of an era
Wow !
Give me your account data, I will keep you logged in ;-)
I need 11 days to 100 consecutive.
0
Q: Get condition that not satisfy in complexity boolean expression in C#

KiquenetI have boolean expression complexity with many conditions. I want refactoring if is posible for get the first "boolean condition" that is false. var ok = model.IsMFAProjectTypeSW() && item.ToLower().EndsWith(".sql") && model.Data.ContainsKey(item) &

-1
Q: enum property comparison in if-else structure - How could I generalize this?

ZhuindenSo I have two methods. They do the following. if (ResultTypes.RESULT_TYPE_ONE.getCode().equals(post.getPostResultTypeCode())) { return resultTypeOneService.createResultFilterResponse(resultSearchFilterBO); } else if (ResultTypes.RESULT_TYPE_TWO.getCode().equals(post.getPostResult...

@Heslacher Thanks.
11:09
@Heslacher flagged and voted to delete.
good job. You wouldn't need to vtc. If it is flagged 6 times it will be locked and deleted
But because I have seen the deleted I vtc too ;-)
And now Pimgd and deleted
Why downvotes, why pressure to delete... based on "It doesn't answer the question"?
All aspects of code are up for review.
@Edward Such a comment is illegal on Code Review and demonstrates poor understanding of the rules.
0
Q: Effective alternative to SQL Queries in a loop

PeterI've read somewhere on stackoverflow that doing queries in a loop is very inefficient. It will hammer your SQL server and make your script very slow. Sample code: // Connect to SQL Server 1 $query = "SELECT * FROM articles "; $resource = mysql_query($query); $articles = array(); while $record ...

@Pimgd Agreed.
@skiwi it notifies about all repos that has a webhook to it. Only if something actually happened during the last day
11:22
especially worrying is the deleted user next to it; did faulty application of the rules just drive a new user away?
0
Q: idiomatic scala for nested map/flatmap

simaoDoes anybody have an idea on how to make this code more idiomatic? Tried to use scalaz Traverse, but didn't really help. Given the types and method signatures: type HTTPResult = Future[Either[Throwable, String]] type FeedResult = Either[Throwable, Feed] def fetchHtml(item: FeedItem): HTT...

@Pimgd agreed about the comment, but it looks like the user you nuked.
looks like?
That user got flagged spamming in chat yesterday.
was that before or after having his answer deleted?
11:24
Stupid autocorrect.
*user got nuked
@Mat'sMug Java IDEs are intelligent enough to show the difference
I'm pretty sure it was before @Pimgd
hmmh
Last night I was playing war thunder and I dunno but I think I got a guy so pissed he team killed me 3 times in a row
and I'm still trying to understand the behavior
@rolfl public class [More ...] ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, java.io.Serializable (in Java 6). As List extends Collection interface, there's no use in explicitly writing implements Collection, right?
I know you can't see the comments now, but... Anyway. Bbiab
11:30
the actual spam messages aren't displayed now, but there were about three instances of 'fsdfshgdfdgdsdfsd'-like messages
-1
Q: optionally specifying the type when implementing a method for an interface

broiyanpublic class Temperature : IComparable<Temperature> { public int CompareTo(Temperature other) { } } as opposed to public class Temperature : IComparable<Temperature> { int IComparable<Temperature>.CompareTo(Temperature other) { } } These seem functionally identical. Which i...

11:47
Thanks @Morwenn
@Heslacher Er, what for?
Oh, I didn't notice it was an answer from you, sorry^^"
0
Q: Class for multithreaded insert into database

micgeronimoHere I have class that supposed to take dictionaries of product objects and their articles(kind of unique identifier) from queue and insert or update them in database table. Received dictionary looks like this products_and_articles= {'products':[],'articles':[]} Also I have problem with deadlocks...

0
Q: What's the appropriate procedure for dealing with team killers in War Thunder?

PimgdLast night, I was playing War Thunder (Ground forces - with tanks =D). I made a sub-optimal move, and after that I spent most of the match getting team killed by one guy (3 times in total). What's the appropriate procedure for dealing with team killers in War Thunder? What will happen to them? ...

last nights teamkilling incident
12:06
@rolfl I actually don't really have a clue about AppleScript.
-1
Q: delcraing the reference of a object within a forloop

user3651810please let me know which approach is better case 1 or case 2 and how? can anybody please explain how it is different if we create the refernce of the object inside the for loop. will multiple references created on declaring inside the for loop? case 1: forea...

@Pimgd the answer is to play a different game. Like Crusader Kings 2. Where the urge to team kill leads to phrases like, "my first born son and heir is a retarded maim. How do I kill him so that only my second son inherits?" Or jerry springer moments like "I slept with my son's wife--will he be mad?"
Also, it might've help if you said nothing in chat.
0
A: 2014: What a ride!

Simon André ForsbergNew - active - Moderators Back in March, Code Review got two new moderators that turned out to be very active. It has always been easy to get in contact with them in our chatroom, and they have done a great job in contacting users through chat whenever something was up.

12:21
-1
Q: Linq - selecting all the objects in a list, and adding to a list

user3437721In a loop, I am retreiving a list of DocumentTypeVersions. I want to then select all the DocumentTypeVersions in this list, and add to a master list of DocumentTypeVersions. So I can build up the master list on each iteration. var newDocumentTypeVersions = new List<DocumentTypeVersion>();// ma...

0
Q: which tools are used for Java code reviewing in Eclipse IDE?

mounaimDo you have any suggestions of some tools for java code reviewing within Eclipse IDE ? I've tried PMD but the installation keeps failing

@nhgrif That's what I'm thinking... perhaps I was just in the way, and my comments provoked the other player?
@SimonAndréForsberg Correct about the 'no need to mention Collection' because List extends (yes extends) Collection interface. On the other hand, there is no need to mention List either, because AbstractList implements List
@rolfl yeah, I was thinking about that one too, but I guess that as well as there's no need to mention List, it also doesn't hurt
12:36
That's the way it often ends up. Exactly. You mention the interfaces/ancestors in a way that makes the code most readable.
@RubberDuck you have a spelling error. It is Arugument instead of Arugurment
I tend to include all interfaces/ancestors that I have overrides on.
@Heslacher OP's spelling mistake, not mine.
What makes this one hypothetical guys? Is it the Arugument class?
-3
Q: Declaring the reference of an object within a for loop

user3651810Please let me know which approach is better case 1 or case 2 and how? Can anybody please explain how it is different if we create the refernce of the object inside the for loop. Case 1: foreach (string file in files) { Arugument arg = new Arugument(file); ...

@Heslacher Can I ask you a few questions about wcf service security? It is a bit easier in chat.
You can ask, but I am not that into this stuff that a answer will be that good.
12:41
@Heslacher That's fine. Is there a way to use certificates without needing to install the certificate on the client? Can I do it with a real signed certificate?
@RubberDuck I have edited your answer. It is a double spelling error.
@SimonAndréForsberg - you get a 'ping' for the new comment on: codereview.stackexchange.com/a/43442/31503 ?
Oh. My bad. Thanks @Heslacher.
@Phoenix With a real certificate ( not self signed ), yes you can.
As long as one of the ancestor signing authorities is on the client's trusted list
12:43
thats what I meant
@rolfl yes, I did apparently. fixed it.
@Heslacher In that case, I might end up using an StartSSL certificate with that. Windows has no problems with it(deployed a server ... thingy a while ago)
thoughts about this? (see comments and edit)
0
Q: Class for multithreaded insert into database

micgeronimoHere I have class that supposed to take dictionaries of product objects and their articles(kind of unique identifier) from queue and insert or update them in database table. Received dictionary looks like this products_and_articles= {'products':[],'articles':[]} Please advise what improvements c...

What's an arugument?
@nhgrif It is a new term in programming.
Thanks for the help @Heslacher :)
12:46
It's for making an Arugu's breath smell fresh?
no problem
Yeah. I'm not happy with that close. This is the SO version of that question. I don't think that's hypothetical code at all.
4
Q: Creating objects in Loop C#

prakashJust was curious about below code. for (int i=0;i<9;i++) { ClassA objectA = new ClassA(); } or ClassA objectA; for (int i=0;i<9;i++) { objectA= new ClassA(); } Any Idea is there any difference for both code ? from my knowledge both will create different instances each time so numb...

The SO version is hypothetical. Look at the difference.
@SimonAndréForsberg That "comment" was posted as an answer, and I converted it to a comment, and then I was curious if you get the same notifications.... that's all.
Also, unappreciated answer here.
1
A: Determining Pythagorean triples based on the hypotenuse

JosayA simple optimisation Riding on Droogan's very good answer, you can add a simple optimisation. Indeed, instead of doing for a in xrange(3, hypotenuse):, you can try a smaller range. Also, I took this chance to remove the (premature?) optimisation about if hypotenuse < 4. The point is to limit ...

Monking!
12:53
Would it be crossing a pimping line if I were to mention an SO answer that, with some help, could win Populist badge, hence Treasure hat? It will need 6 answer upvotes, and 3 accepted answer upvotes.... Malachi has pimped from further behind .... ;-)
(my only real prospect for getting a gold badge during winterbash....).
@RubberDuck If the OP doesn't comment on the close, maybe it is hypothetical
Monking @Mat'sMug
@Mat'sMug Hey there.
@SimonAndréForsberg Ah ok, makes sense
13:11
0
Q: Object counting sort in Java

coderoddeThe counting sort for integers counts the amount of each integer, then traverses the count entries in order, and for each entry inserts the integer representing the bucket into the array as many times as its entry denotes. This is basically same idea, but for general objects. The algorithm makes...

0
Q: Find the missing number in a array

HelloI'm working on a personal project to practice my programming skills and I came to this problem. I tried to create a program that will find the missing number in a array. ps. I'm looking forward to upgrade this program and try to find the missing numbers in a array. Yes, with an 's'. :) /****...

@rolfl Seems like fair game to me. After all, people still have to read and decide whether to upvote.
I would have to be relatively persistent, and people would have to use a CR mentality for voting on SO answers ... ;-) But.....
7
A: Java. getClass() returns a class, how come I can get a string too?

nullptrAll objects in Java inherit from the class Object. If you look at that document, you'll see that Object specifies a toString method which converts the object into a String. Since all non-primitive types (including Classes) are Objects, anything can be converted into a string using its toString me...

@Pimgd: noticed my name in chat. Sorry you were unhappy with my comment.
That's a pretty infuriating response if taken at face value
> when I use System.out.println(obj.getClass()) it doesn't give me any error, I'm saying this cause, from what I understand getClass() returns a Class type. Since println() will print only strings, how come instead of a class, println is getting a Class??
most confusing question ever?
13:15
@Pimgd Not my intent, of course. Rather than just drive-by downvoting, I usually try to say what I think is wrong.
Me not being happy with the comment is not the problem; the part where the comment implies a rule of which only its counterpart exists does.
Basically, your comment carries the meaning "all answers should address the question asked".
Which is false.
Agreed.
And to continue spreading the message that "all answers should address the question asked" is harmful to the site.
=)
The primary problem, I think was that it was a poor question.
That too
13:17
What am I missing here? Context?
Right. That whole situation was a bit messed up.
What actually made me call you out is that the comment had an upvote
User: RevPlus (61359) deleted by RevPlus (61359)
Reason: self-deletion
We pissed him off, I agree.
It seemed to me that the constructor was just stub code, so commenting on it seemed to me akin to pointing out that // some other accessors doesn't compile.
Please don't take it personally. I did not mean to offend.
13:20
But, I believe he was a troll.
The comment is technically marginal, inaccurate. but, none of these types of situations are perfect.
My recommendation: just move on.
3
@Pimgd: oh, and if it makes you feel better, I upvoted one of your other answers earlier. :)
Note that the user deleted his own answer, and own account. He chose to communicate abrasively in chat, and to not communicate at all on the main site.
@Edward Yay~
which gave me a silver badge
now I have another fancy hat
Excellent. Only 141 hats behind "Ask Different"
Which should probably be renamed "Eschew adverbs" ... but I digress
@rolfl I think that might be because many people think that we on Code Review are the same kind of people as on Stack Overflow. If that would have happened to me on Stack Overflow, I might also have deleted answer and account and moved on.
13:27
^^^ perhaps, but there's more to it.
I firmly believe the user is a troll, and trying to game things. I called him on it immediately.
My view:
2
But then, I'm not a moderator...
@rolfl game things how?
Do the Area51 hack to get enough reputation to chat
13:31
@Edward that is one excellent song
Who on stack exchange gets area51 rep before any other activity on the system?
Before getting an SO account?
A sock.
Only chat trolls, because there's a way to get 50 rep there without 'doing' anything other than filling in your profile in a special way.
aha. I see your point
0
Q: Is this correct for what is being asked?? (Very new to Java)

SwishGavigan18Hi I was hoping someone would have the time to tell me am i wrong on this question. Sorry I know this will be very basic to most of you but I don't know enough (yet) about Java. Question Asked>> Create a new Project in NetBeans called Payrollimplement Create a new class in the same project cal...

13:44
If a user doesn't know if code does what it's supposed to, is it on topic?
My first instinct is no...
@nhgrif Generally, I'd agree with that, but I don't think that's the problem here.
<strikeout>Poor formatting</strikeout>, and not very good code, yes, but it's ambiguous whether the OP thinks the code is correct.
speaking of poor formatting.. lol!
3
14:00
good morning
@xDaevax good afternoon :D
Hiya @Phoenix
what brings you here?
yeah I think I need to fix that post...it was horrible
14:14
0
Q: Shortening boolean with if statement

user3437721Can this be shortened to one line? bool areVersionsEqual = documentComparer.Equals(version, imported); if (areVersionsEqual == false) { changedDocument.Add(imported); }

when your whole design explodes and you have to add public setters to everything
bleeeh.
I had nicely separate sections. One for wifi. One for streams. One for infrared. etc.
But then Bundled requests came along
bundled requests is basically "send 1 request, get all the simple data back"
and so a single request handler has to know about wifi, infrared, streaming, audio, motiondetection, dhcp and ip settings, authentication, demovalues, firmware, storage and moooore
thus, everything had public setters.
Likely code usage pattern:
did @mjolka Really Reference Eric Lippert's blog! -1
getEverything().waitUntilDone(); return infrared.isOn();
@mjolka JK
and so the compartmentalization I worked on for weeks has blown up in favor of improving worst case performance
14:21
@Pimgd I assume using reflection to set the values is not an option?
@SimonAndréForsberg that'd be even more nasty
I think this is a mistake on my part
I went for this compart-longword
but now I have this "send everything that is simple"...
and I'm receiving 188 bytes.
... I have written 5k lines and ~50 classes to handle 188 bytes.
at this point I just wanna go have xmas early and not care about it anymore
but alas
no vacation until work is done, such is the word of management
I'm trying to understand why this happened
Holy macaral, 1.1k hats!
We're super-duper (or better: you are)
@Pimgd because.... management?
no
I suggested to do this part of the whole system
I made the design
I implemented a null object pattern to make it easier for the library using developer
0
Q: PHP login redirect security?

AbovestandI wish to redirect users to the login page if they attempt to visit a page which requires them to be logged in. After logging in, however, I want to redirect the user back to their original destination. I've written a "redirect.php" script which is to be included on all such pages: <?php require...

14:29
some of it is still useful
but it blew a large hole in the whole thing
@user3437721 Why are you asking about regular expressions now suddenly? Something tells me that you haven't provided anywhere near enough context here. What is it that you really want to do? — Simon André Forsberg 33 secs ago
specifically; anything that has to do with async data retrieval
I don't get why that question has 4 upvotes
:) Monking
> or maybe
hmmmmmh
14:32
Greetings, Programs.
no thinking just upvoting
2
@Malachi I'm trying to prevent myself from doing that, been doing that too much
oh hey a link, upvote might lead to mistakes slipping through
eh it's MetaStackExchange, people vote for no reason there all the time.... just upvote
like bogus advice due to a misphrasing
now let's see if I get the hat
@janos did you Email her?
14:37
... now, how am I gonna claim responsibility for something that's basically wasted a week or two?
if anyone upvotes my Bounty answer or votes one of my recent answers to 7 I will be ahead of @RubberDuck for hats....
even though it doesn't answer the Bounty.....codereview.stackexchange.com/a/73951/18427
Wow, I'm #5 in the hat rankings... behind 4 #1's!
my highest voted answer since Winter bash started codereview.stackexchange.com/a/74020/18427
@Malachi Enjoy it while it lasts. =;)-
3
@RubberDuck lol
14:40
I'm hunting time based hats now...
Hey Malachi, I'm doing a Malachi on SO.... ;-)
@rolfl what?
Pimping for a populist on: stackoverflow.com/a/16385484/1305253
@rolfl upvoted
still no Eureka, it must still be Manual, or they put it on a timer....
@Malachi I have not figured it out (the eureka).
14:45
@RubberDuck there are some that I don't have that you have. so what time based ones could I have gotten already?
I got mine within moments of posting my answer there.... but, remember, I was the first person to identify the criteria for a secret badge....
I was under the impression it was awarded manually, but the immediate timing of it makes me suspicious
@rolfl right. I think there is a little bit more to it than just if you .... BRB
@Malachi Don't forget to upvote the accepted answer too!
(needs to get to 11).
@rolfl done
and it is at 11
@Malachi No. I don't think so. The ones I'm talking about can't be won until Xmas/Kwanza/NewYears, etc.
14:47
@rolfl add backticks around System.out.println(someobj)
Monking
@RubberDuck I don't have Handegg yet I don't have not a cherry
there are a couple of hats that I don't have yet that you do have.
And I seriously doubt that I'll get 30 minutes or less
@RubberDuck I did
Monking @Phrancis
14:49
I know =P
I need coffee
2
I still have a chance to get Breaking Bad and Red Baron though.
Good idea @Malachi
@Malachi Here you go.
Whoo hoo... that should do it... thanks Santas!.
@Pimgd Done.
I have been working on an answer on-and-off-for a few days, now, but it's a miserable one, and now that my daughter is in surgery, and I'm waiting, I figure its a miserable time too, so I will work on it now.
14:53
Looks like people don't agree with me on this one.
I've looked at the Question on SO and this appears to be a concrete implementation of that example. I don't believe this is hypothetical code. — RubberDuck 2 hours ago
@Malachi here you go
Arqade and Ask Different are only a few hats away from each other. Which means that if we pass one, we should be able to pass the other one too.
On the other hand, we have more hats with less people, so our hat potential is smaller.
We're still the highest ranked "beta". =)
Is that JAVA?
@RubberDuck the question seems to be about understanding code
14:55
By a pretty long shot... cough cough PCG cough cough
And PCG is second. No surprise here.
@Morwenn s/win/one/
@SimonAndréForsberg Now that I would buy.
@SimonAndréForsberg Did you intentionally wait so that I couldn't edit anymore? ç_ç
14:59
but I can....

« first day (593 days earlier)      last day (3722 days later) »