Reputation
17,792
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
3 35 72
Newest
 Enlightened
Impact
~603k people reached

Jul
24
comment Can I listen on a port without interrupting traffic?
If you just want to do a packet capture, Wireshark can do that. It's also open source (GPLv2) so you might be able to figure out how it does it. (It's not written in python though).
Jul
15
comment Can I distribute a GPL executable (not a library) in a closed-source application?
Here is an interesting discussion of this issue written by a lawyer (apparently).
Jul
15
comment Can I distribute a GPL executable (not a library) in a closed-source application?
This answer has the potential to be dangerously inaccurate. As far as I'm aware, what the OP wants to do would normally be done by saying "here's my software, it needs git, but I can't bundle it with my software, so go download and install it yourself." Even then I'm not 100% sure, and I'm pretty sure it's hard to prove what you're saying too. I'm pretty sure this'll get closed because it requires legal advice.
Jun
19
awarded  Enlightened
Jun
19
awarded  Nice Answer
Jun
11
awarded  Good Answer
May
29
comment Any benefits of writing coding articles
@KilianFoth - This will probably be closed as off-topic because this site doesn't like questions that are of interest to programmers.
May
26
comment How to best encapsulate features in code and enabling/disabling them at runtime?
Similarly, here's how Flickr does it.
May
26
comment How to best encapsulate features in code and enabling/disabling them at runtime?
This is what source control is built to solve. Modern source control systems will allow you to back out any individual bug fix or change (basically roll back all commits up to and including that one, and then apply every commit afterwards but skip that one commit). However, for runtime switching, what you're describing is a Feature Toggle.
May
26
comment Object creation: when should I expose a factory vs wrapping class?
@Sher10ck - That wouldn't produce the same functionality, and reduces the flexibility. If you inject an instance, it implies a Singleton. The consumer needs to be able to create instances of MyClass on demand, so it needs to be injected with a factory, not a single instance. It's the factory's job to determine how to create it (possibly a singleton instance, or sometimes a single instance per thread, or one instance per call, and it can provide the parameters for instantiation that the calling method doesn't care about).
May
24
comment Are value converters more trouble than they're worth?
@Rachel - well, if you had continued reading past my second paragraph you would see that's exactly what I was doing. :) There is no business logic in my ViewModels.
May
22
comment Resetting vs. re-sending forgotten passwords
Since it looks like you're not familiar with this, I suggest you research the BCrypt library. There are implementations for most popular programming languages/platforms, and it will do the salting/hashing for you. It's considered to be the simplest and best practice for securely storing passwords in a database.
Apr
16
awarded  Nice Answer
Mar
30
comment Web App vs. Desktop App Regarding Deployment
As someone who pushes out sometimes more than one update per day to a .NET company-wide application deployed via ClickOnce, I really don't believe the "deployment" argument anymore (unless you're delivering over the actual internet, or you have non-Windows clients). For internal applications, ClickOnce works really well.
Mar
26
revised Object creation: when should I expose a factory vs wrapping class?
added 252 characters in body
Mar
26
answered Object creation: when should I expose a factory vs wrapping class?
Mar
17
comment Do enums create brittle interfaces?
It's ok, just didn't like anyone bashing good old object oriented programming. :) Especially since most of us combine functional programming and OOP more than strictly OOP anymore.
Mar
17
comment Do enums create brittle interfaces?
I would hope that an object-oriented programmer would never make their data transfer object, like Pyramid actually know how to draw() a pyramid. At best it might derive from Solid and have a GetTriangles() method and you could pass it to a SolidDrawer service. I thought we were getting away from the examples of physical objects as examples of objects in OOP.
Mar
17
comment GPLv3 + commercial license on the same project?
@bdsl - Yes, distribution was assumed, but I see if you're someone making an internal application and choosing between the licenses you could choose the GPL'd version and it wouldn't matter.
Mar
17
comment Strategies for handling or avoiding race conditions
...since Entities are by definition mutable objects, you should never ever pass an Entity across a thread boundary, which I'm afraid is what you're doing here.