Ok guys,
This is weird, I just found this video on the MSDN website: http://msdn2.microsoft.com/nl-nl/security/bb980214(en-us).aspx
Ice__Heat
@Ice__Heat
Best posts made by Ice__Heat
-
How Do I: Prevent a SQL Injection Attack Over a PHP/MySQL/Linux Platform?
Latest posts made by Ice__Heat
-
It hurts
[rant]
PHP.... it hurts...Really, I don't understand why people use it. It makes me sad :(
[/rant] -
RE: ASP.NET: Singletons
I don't see using a database as preferable, unless you are trying to do some kind of logging.
But lets rewrite our (hypothetical) scenario:
You are building a social website in the likes of Facebook. Users can have friends and they can see if their friends are online. If they are, a user can click on "Chat", then a chatbox will open where they can chat with eachother, when they leave, the box closes.
Now, we do this by instancing a chatroom object, and passing the reference to the other user/session by using the CacheSingleton. When the users leave, the reference is set to Null and the chatroom object is disposed by the garbage collector.
No need for a database, just In memory objects. Doesn't seem so bad to me. Or is it just so that Objects are not meant to be shared among requests?
Worker process timeout can be set, and recycling can be enabled, as long that it doesn't interfere with existing chatrooms (which I don't know).
-
RE: Programming Misunderstood
@taylonr said:
"Did you write all those lines?"
That is pretty much an universal line, I heard the same thing alot. They couldn't get their heads around the perversity of the "String" either. -
RE: ASP.NET: Singletons
It is a programming experiment. Why learn algorithms when most of them are in a framework? Like I said, just for fun to try something out to see if it works.
Back on topic.
The list of chatrooms can be persisted to a database, and when nobody is in a chatroom, the object can be disposed. When someone joins an empty chatroom, the an object can be created which other users can then join.
Does recycling remove everything in-memory? Or just unused stuff?
-
ASP.NET: Singletons
Lately, I have been throwing Singletons around like there is no tomorrow (hey why use all that memory?? Just make a singleton!). But I've come to see the downside of it. 2 Users could be using the same object. For some situations thats OK, but most of the times it is not.
Now, I've had the idea of building a little chatroom app, just for fun, nothing serious. I was thinking of a singleton that could hold all the Chatroom objects in a Hashtable or something. Users can then select a chatroom, and get the object reference of the chatroom from the singleton. If 2 users join the same room, they would get the same chatroom reference, thus they would share the data of the chatroom (e.g Messages).
It would mean that the IIS application pool has to be configured so that it would not recycle.
In a real situation ofcourse, checks have to be builtin so that the memory won't get out of proportion.
Plz, WTF-rate my idea. How would YOU do it?
-
Do I get this right?
Microsoft: businessey
(People dressed in businessey clothing in their ads)Apple: Cool
(Every DJ and Artist has a Mac!!!)Open Source: Nerdy
(Long hair, guy wears Linux shirt, has a tux toy)Oracle/SAP: Enterprisey
(*** runs SAP!)Google: Web 2.0'ish
-
RE: Does the development stack matter?
I must unfortunately say I have uninstalled Linux again. I had some configuration issues like drivers and so on. I didn't have time to take on these issues, and I guess it is just little things like these that don't work for me because I found myself starting Windows all the time to actually get some stuff done. This is kind of a problem, because as a software programming enthusiast I feel I *must* do certain things to expand and grow as a programmer. So when I read this article: http://www.vanwensveen.nl/rants/microsoft/IhateMS_1.html I thought: I must use Linux! But in truth I don't like the dual boot hassle. I really just want one neatly configured enviroment that works for everything I do, be it games, programming or playing Blu-ray discs.
There have been some things I always wanted to do, like learning C++, and using Linux. But I never found the discipline and "courage" to really get into it. And now I failed again after doing a Vista install last night over Ubuntu on my laptop. But ofcourse, there is the ever growing influence of the net and programming community. So this evening I listened to this: http://blog.stackoverflow.com/index.php/2008/04/podcast-2/ and reading http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html . And I thought: "Damn, I still have 2 C++ books in my bookshelf. Never did anything with them!". I did some chapters on C++ Primer 4 ed but never got to the pointers. I'm usually put off by Linux/C elitism, but this information is actually coming from a reliable unbiased source. And whats the use of actually learning another high level OO language like python? It has the same level of abstraction as .NET and Java, so I'll probably learn nothing new.
Having teachers telling me I'm good at OO design and understandig design patterns doesn't seem enough for me, software development is an endlessly complex subject, and I must recognise how much I suck. I'm in a "JavaSchool", so OO is the main course. And I'm not even sure if C++ will be served as a side dish. I know that one of my teachers is a C++ enthusiast, but I am not sure if it will be thaught at all.
Maybe I'll get on the Linux bandwagon again. Or maybe I'll try and finish a book on C++ some day. But it's not going to be easy. But at least I have the drive to get better, and I think that counts for something. The interest has always been there, maybe it just needs a little more of a push.
-
RE: Iron Man
@MasterPlanSoftware said:
It is not uncommon. Dutch soldiers in Afganistan and Iraq never hit anything, because if they do, they get court martialed.@jetcitywoman said:
It was really pretty amazing that in the following gunfight not a single bullet managed to find an eyehole.
That is amazing to you?
Did you not see the real life hollywood bank robbery/ensuing gunfight?
-
RE: Iron Man
@MarcB said:
That is not your fault, that is because of violent movies like Iron Man! Duh! Your mother never told you that?@bstorer said:
If a woman doesn't think something is your fault
I recall a time my mother blamed me, personally, for a mass murder that had happend about 2000km away, while I was in my desk in elementary school learning about fractions. Apparently I should have known in advance, being a male and all, that this twerp would snap, get a gun, and blow away a bunch of females at a technical school.
So, yes, everything, everywhere, is your fault.