kossovsky

Stories submitted by kossovsky

C# Set method timeout using Generics(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

I’m pretty sure all of you know the WebRequest and it’s derived class HttpWebRequest. And what a marvelous property both of them have – the TimeOut. Yesterday I had to write some app that reads files located on some remote computer. As I knew already this ins’t such a good practice, because your code can just hang/freeze... read more...

add a comment |category: |Views: 23

tags: another

Javascript boolean interpretation(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

How JavaScript engine true/false evalueation principle read more...

add a comment |category: |Views: 6

tags: another

IE Memory Leak – jQuery Fix(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

I suppose all of you have suffered all those terrible memory leaks in Internet Explorer. Sometimes it bearable, but most of the time it’s not. I say enough is enough ! read more...

add a comment |category: |Views: 68

tags: another

Javascript function context, “apply” method and lost “this” object(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

How many times you had problem or were asked about what happened to this object in your function? Or why this is not an object you expect it to be? Probably these times you have to remind yourself or your fellow programmer about function context. read more...

add a comment |category: |Views: 1

tags: another

C# Inheritance Question(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

Are you sure you understand C# inheritance. Check yourself... read more...

add a comment |category: |Views: 15

tags: another

C# Protected Internal(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

I’ve noticed that most of the c# developers i’am talking to, know exactly what “public”, “private”, “protected” and “internal” access modifiers mean and how to use them, but when it comes to “protected internal” they start guessing the answer and it’s never the right one. read more...

add a comment |category: |Views: 11

tags: another

C# Increment operator (++) question(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

Well, this is a nice one. We all familiar with incremental operators, but from what i saw yesterday… well, there is no need to give a developer some tricky assignment so he could find a way to make some bugs. read more...

add a comment |category: |Views: 4

tags: another

C# Rectangle Packing(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

Sometimes, you’re faced with the problem to cramp as many smaller textures as possible onto a larger texture. Typical cases are lightmaps, which are very small textures with dimensions that usually are not powers of two, or bitmap fonts where you want to try and fit the entire ascii character set onto a texture without wasting much space. read more...

add a comment |category: |Views: 29

tags: another

C# Byte Iteration Question(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

This one is a great c# interview question – short and simple, but tricky. read more...

add a comment |category: |Views: 7

tags: another

C# LINQ Teaser(kossovsky.net)

submitted by kossovskykossovsky(90) 2 years, 10 months ago

Another great interview question. Will the following code compile and if yes what will be the result of it ? read more...

add a comment |category: |Views: 12

tags: another