Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Adar Wesley

@Adar Wesley
About
Posts
20
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Both Weird & Wonderful - a W10 Surprise
    A Adar Wesley

    I am not familiar with the application, so I don't know what the normal look and feel is like. Howeve, to the best of my knowledge, this UI look and feel is created by a controls library called ctl3d, or something similar. It was introduced initially in windows 3.11g and later was carried over to windows 95. You may want to check if such a DLL exists in the effective PATH when the program displays this UI. Adar Wesley

    The Weird and The Wonderful com question announcement

  • Friday programming quiz
    A Adar Wesley

    This little change you suggest puts the perfomance back to O(N^2) and not linear. inputs.Average() gets called for each element in the inputs array. Daniel's solution is the correct one. --- Adar Wesley

    The Lounge linq csharp data-structures json functional

  • My (very preliminary) Win8 + WinRT impression!
    A Adar Wesley

    Metro applications can be docked one next to the other, one application docked to the right and the other docked to the left, so you can see both at the same time.

    The Lounge c++ wpf com design performance

  • Anyone want to guess what this does in javascript?
    A Adar Wesley

    There is absolutly no need to protect against Javascript injection. Just asume it is not safe. It runs on the "attackers" machine in his/her browser. They can mess with anything they want anyway. Your application defenses should be on the server side anyway. On the other hand, using Javascript's ability to dynamically eval code from string can be extremely powerfull. --- Adar Wesley

    The Lounge javascript tutorial question

  • Why does Visual Studio just not work ?
    A Adar Wesley

    We have sevarl machines at work with VS2010 installed on Windows XP Pro. SP3. The machines with weaker graphics cards exhibit these types of problems. So based on that our educated guess is that the problem is with WPF Rendering (VS2010 UI was rebuilt in WPF) on these weaker machines is what gets stuck. Never saw a problem running VS2010 on Windows 7. Time to upgrade the OS ... --- Adar Wesley

    The Lounge csharp visual-studio question asp-net com

  • Porting C# WPF to Mono
    A Adar Wesley

    The mono project has a tool named Moma which is designed to help you figure out what is missing from mono for a particular project you want to port. Run the tool on your current implementation and you should be able to find out what is missing from mono. Moonlight has full support for Silverlight 2.0. Hope this helps. --- Adar Wesley

    .NET (Core and Framework) csharp database php css mysql

  • Where were you when humans first landed on the Moon?
    A Adar Wesley

    I grew up in Israel, and we were watching the television broadcast of the landing just the same. I was 7 at the time and remember the occasion, getting together to watch this historic event.

    --- Adar Wesley

    The Lounge question css

  • I Would Like To Propose a Game
    A Adar Wesley

    Go ahead, make my day!

    The Lounge game-dev

  • RockYou Hack Reveals the Worst 20 Passwords
    A Adar Wesley

    Dan Neely wrote:

    your hint is: "There only only 10 kinds of programmers. Those who get it, and those who do not." 3x12=36 2x12=24 1x12=12 0x12=18

    Loved you hint! Had me LOL. I guess that's because I'm the 11th type of programmer, the type that gets it. How many bugs can one line of code have?! --- Adar Wesley

    The Lounge tutorial question css com security

  • A New Kind of Fail?
    A Adar Wesley

    Immutability does not mean "no state at all". It does mean that if you do have state, once it's created, it will never change. If the state does not change it can be shared between threads safely. --- Adar Wesley

    The Lounge com help question

  • var
    A Adar Wesley

    Chris Losinger wrote:

    Marc Clifton wrote: var foo = factory.CreateAFoo() into every language a little void * must fall.

    In the above case, foo is NOT void *. It is a strongly typed variable of the type factory.CreateAFoo() returns. For instance:

    var str = "This is a string variable";
    str = 5; // <-- Compile error

    Incidently, I love to use var. During development you change the type of a variable by changing the initialization code and not have to go also and fix the variable declared type. So if I have in my code the above mentioned function declared as so:

    internal Foo CreateAFoo()
    {
    // create and return a Foo
    }

    And somewhere else:

    var foo = factory.CreateAFoo()

    Then, during the developement process, I think: "let's change my work from Foo to IFoo to introduce different implementations". All I have to do is change the signature of CreateAFoo() to:

    internal IFoo CreateAFoo()
    {
    // create and return a Foo
    }

    That's it, all done. Don't need to wory about changing all the variables all over the code that hold a Foo reference. They automatically become IFoo references. --- Adar Wesley

    The Lounge csharp com help tutorial

  • If VS2010 was open-source..
    A Adar Wesley

    Daniel Grunwald wrote:

    That's right, there are already three open-source implementations of the C# type system: GMCS (the mono compiler), MonoDevelop, SharpDevelop. None of them are sharing any code.

    Wow, that's interesting. I didn't know all this history. Can you point out some incompatibilities between the different type system implementations? --- Adar Wesley

    The Lounge question announcement

  • If VS2010 was open-source..
    A Adar Wesley

    The mono project[^] is an open source implementation of .NET. In that project they have a sub project MonoDevelop[^] which is, you guessed it, an IDE that is compatible with Visual Studio. If you consider that an experiment on "what would happen if", the result is that bugs DO get fixed, and in an impressive rate. Furthermore, I don't think they have a mess of many different braches. So, my guess is, yes bugs would get fixed. Of course, Microsoft might not manage to do as well ... ;-) --- Adar Wesley

    The Lounge question announcement

  • Sent this email to Scott Guthrie today...
    A Adar Wesley

    Lidnug (Linked-in Dot Net User Group) is planning to host ScottGu again in a couple of months or so. Keep a lookout on http://www.lidnug.org/[^] for details. The previous session was good fun. Had about 600 people logged in the live meeting. --- Adar Wesley

    The Lounge csharp help c++ visual-studio wpf

  • Microsoft Azure Services
    A Adar Wesley

    I see none of the comments have given any real information yet, so here is some: The official site: http://www.microsoft.com/azure[^] What it is (from that site): Azure is a set of Services that help developing Cloud Applications, and it's a platform for hosting these applications. Currently in Azure your have the following Services: Microsoft .NET Services: Basic services for developing cloud applications, include: - Access Control - Service Bus - Workflow Services Microsoft SQL Services: SQL Database in the cloud. - Microsoft SQL Data Services Live Services consists of: Mesh Services - makes it possible to build applications that span across digital devices and the web and enables data synchronization across services, applications and devices. Devices Synchronization Application Management Identity Services Directory Services User-Data Storage Services Communications and Presence Services Search Services Geospatial Services Microsoft SharePoint Services: Microsoft Dynamics CRM Services: As you can see, this is a huge offering. The hosting solution is definitely not for everyone. however, I am sure that if the price will be right and the service good some applications will be deployed to the cloud using this service. --- Adar Wesley

    The Lounge hosting cloud question

  • Do you C?
    A Adar Wesley

    Ahmmm, #ifdef DEBUG #define c "yes" #else #define c "no" #endif void main() { printf("Hell%s World!\r\n", c); } you mean, right? --- Adar Wesley

    The Lounge question html com tools tutorial

  • Automated way of checking if all instances of a type have been properly disposed of [modified]
    A Adar Wesley

    To find memory leaks in a program C# or C++ at runtime use Purify Or DevPartner For static code analysis, I am sure it is possible to create an appropriate FxCop rule. --- Adar Wesley

    The Lounge question csharp asp-net visual-studio com

  • What is the most common error in a .Net application?
    A Adar Wesley

    Colin Angus Mackay wrote:

    There is no double standard. All reference types behave the same way. It is perfectly valid in many situations for a reference to be null. The compiler cannot catch logic errors, only syntax errors. System.Int32 is a value type. It is not valid ever for a value type to be null therefore the compiler can and will catch it for you.

    Try this one:

    int? value = null;
    if (value == null) {
        Console.WriteLine("Value is null");
        Console.WriteLine("type int? is a: {0}", typeof(int?).IsValueType? "ValueType" : "RefType");
    }
    

    int? is a value type and is equal to null... And anyway, there sure is a double standard. The double standard is that value types are teated differently then ref types. How about boxing? How about deriving from value types? Don't get me wrong. I am not saying it should be different. Just that there is a difference. --- Adar Wesley

    The Lounge question csharp help

  • What is everyone using for thier presentation layer?
    A Adar Wesley

    WCF supports circular references in the object graph that it serializes. However, this option is not on by default. You need to specifically configure the DataContractSerializer to keep track of object references. (I don't recall the exact setting off hand.)

    The Lounge csharp question asp-net wpf wcf

  • Video conferencing
    A Adar Wesley

    Try http://www.oovoo.com/ It supports up to 6 people video conference, as far as I remember. --- Adar Wesley

    The Lounge help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups