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
R

Roger Alsing 0

@Roger Alsing 0
About
Posts
1.0k
Topics
180
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I have done a stupid!!!!!
    R Roger Alsing 0

    Yes! I once developed windows mobile app for my ex job (a food wholesales agent) The app was an inventory / shop system. Anyway, one of the features was that they could send orders from the phone to the companys webshop. The web orders could have a custom comment attached. So for debugging reasons I made the comment from the phone app "Tord is a small horse" tord was my co-worker, older humorless guy. Time passed and the app was deployed. One day a sales guy from our company called Tord and asked, "why do our weborders say that you are a small horse?" Apparently every sales person had been seeing the small horse comment for quite some time. And Tord was pretty pissed :)

    My Blog

    The Lounge regex help question

  • Why WPF sucks today
    R Roger Alsing 0

    Actually, you can assign values to "this" in c# ;-) Try it inside the constructor of a struct.

    My Blog

    The Lounge csharp wpf visual-studio wcf com

  • Aspect Oriented Programming for Beginners
    R Roger Alsing 0

    >> What's the use of doing it this way? By using AOP you can model cross cutting concerns and apply these to the rest of your model. Think about how how inheritence works for OOP. Inheritance in OOP makes it possible to reuse code from a baseclass to a subclass. In a similair way you can reuse code via AOP. Lets say you need logging in all your business methods. Then you can apply the same logic onto all of them via AOP. So you can think of it as inheritence at method level, you let a method inherit logic. These magic fragments of code are called an "interceptor" or an "advice" The most naive and obvious usages of AOP is logging and security. But there are lots of other usecases. Personally I used AOP (using my own framework NAspect) to apply things like data binding support and dirty tracking onto ordinairy classes. One common argument against AOP is that it makes it hard to see what happens. e.g. you can not see that the logging code will execute when you look at the code. This is true, and could be a problem. This is ofcourse a very simplified view on AOP, but I hope it gives some idea on what it can do.

    My Blog

    ASP.NET question

  • Code Smith opinions
    R Roger Alsing 0

    I havent tried CS for quite a while now so this might not hold true anymore, But last time I checked it did a 1-1 mapping between tables and classes. You will get a class model reflecting the database schema instead of a model reflecting the actual domain problem you are trying to solve. I wouldn't use it if its still the same..

    My Blog

    The Lounge collaboration question discussion learning

  • Mainframe vs .NET/J2EE
    R Roger Alsing 0

    I'm in such an environment right now so I can relate somewhat. The old mainframe system does what it is supposed to, so there is no immediate benefit of porting anything. The real benefit would come from new possibilities, e.g. the systems where I am were designed some 40 years ago and have been patched and patched over and over and have now become hard to change and maintain. Design decisions from decades ago make it impossible to add new features w/o massive rewrites. (and lack of testability will most likely cause new bugs to surface in the production environment) So a .NET or Java rewrite could make it much easier to add new features and maintain. Due to better tools, testability and easier to model the problem domain in OOP. //Roger

    My Blog

    The Lounge csharp visual-studio business question discussion

  • Atari ST or Commadore Amiga?
    R Roger Alsing 0

    Amiga 500 and the king of computers Commodore 64 ;-)

    My Blog

    The Lounge beta-testing question

  • Secret of Life one step closer
    R Roger Alsing 0

    Define earth-like conditions? Life thrives in alot of strange conditions. There are bacterias eating sulfuric acid, organisms living in boiling underwater vulcanos, bacterias living in and eating solid rock. We are making incorrect assumptions IMO. We look at how life looks on earth, and think -"they would never survive in another environment" Ofcourse they wouldn't, they are adapted to this environement after millions of years. If an envirionment can sustain even the smallest forms of life, I'm sure evolution will find a way to optimize that into larger forms given enough time.

    My Blog

    The Lounge html

  • Secret of Life one step closer
    R Roger Alsing 0

    For who? Creatures that evolved on earth?

    My Blog

    The Lounge html

  • Good UML diagramming tools?
    R Roger Alsing 0

    Anyone know any _good_ UML diagramming tools? Visio is a joke when it comes to UML. Altova UModel is decent, but not optimal when it comes to sequence diagrams. The best I've found so far is some shareware app "TraceModeler" which is awesome for sequence diagrams. But it does not support any other diagram type at all. So, anyone know of any tool that is as good as tracemodeler but that can handle other diagram types too? (It should be intelligent enough to understand how each diagram type works, and not just treat everything as free floating shapes on a paper) //Roger

    My Blog

    The Lounge com tools question

  • Threadsafe property
    R Roger Alsing 0

    AFAIK, "lock" is not recomended since it can result in permanent lockups of an object for ever. Monitor.TryEnter does the same but takes an argument specifying timeout interval. Also, the locker object should be readonly.

    My Blog

    C# question

  • Blog Recommendations? [modified]
    R Roger Alsing 0

    Wordpress has a [sourcecode language="csharp"] code [/sourcecode] tag that you can use. (atleast the official wordpress site where I host my blog) You simply paste raw source code into that block. http://support.wordpress.com/code/[^]

    My Blog

    The Lounge csharp php visual-studio question lounge

  • Easiest way to limit access to a WCF service?
    R Roger Alsing 0

    What would be the easies way to limit the access to WCF services hosted in IIS? The intended consumers are other sites on the same server. Do I need to use client credentials for this or can it simply be solved by only allowing local users to access the svc files in IIS or something like that? The service site also expose other asp.net resources that needs to be accessible from remove users... (I know that I've could have used pipebinding if it wasnt hosted in IIS, but thats not up to me to decide) So what are the options here?

    My Blog

    WCF and WF csharp asp-net wcf com sysadmin

  • Evolution of Mona Lisa
    R Roger Alsing 0

    Dalek Dave wrote:

    I understand the principal, but if it could paint new and interesting pictures, that would be something else!

    That is a matter of how you see it :-) The "source image" in this case the Mona Lisa, could be seen as "the environment" And the generated image should be seen as "the adaption", how fit the organism is, not how the actual organism itself looks. Also, this is not intended to be used as some sort of "god does not exist" propaganda. I'm well aware that this only proves that; evolution works in a designed environment with designed rules. I can never similate evolution w/o me myself beeing a parameter in the simulation. But this might lead into soapbox material quite fast , so I'll shut up now :)

    My Blog

    The Lounge com

  • Evolution of Mona Lisa
    R Roger Alsing 0

    Incase anyone likes genetic algorithms and art, I tried to combine the two topics just for fun this weekend :-) http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/[^] (And sorry if this looks like some self promotion post, I don't do that normally but I just thought the topic might be lounge worthy)

    The Lounge com

  • Accessing a parent class' methods
    R Roger Alsing 0

    It does not work in C# , but it is possible at IL level. So I guess its simply a rule that prevents you to skip layers of abstraction in C#.

    My Blog

    C# com game-dev question

  • Passing DTO to client from server
    R Roger Alsing 0

    Hi, Maybe this should go under ASP.NET instead, I'm not sure. I'm well aware that I can create a lib of DTO objects that are [DataContract]s and pass them to the client and the client knows about them as the _exact same type_ as the server when using WCF. While interacting with an old WS normally results in auto generated proxy objects. So my question is: is it possible to make a normal WS client use the same types as the server? (the types that are DataContracts in a WCF scenario that is...)

    My Blog

    WCF and WF csharp question asp-net wcf com

  • What's the big deal with ALT.NET, anyway?
    R Roger Alsing 0

    My guess is that there are multiple reasons why ALT.NET exists. * People are not pleased with some of the MS technologies and thus want to use something else * It's a bit hip and elite'ish to be in that kind of group * Some OS devs are affraid that their own beloved frameworks will die out if people start using MS frameworks, so they try to push their own stuff in this channel in order to not lose their fame and glory * They are making a statement, "hey MS, you have to improve your stuff"

    My Blog

    The Lounge csharp visual-studio com business tools

  • facing problem while encryption
    R Roger Alsing 0

    Thus the " ;P "

    My Blog

    C# help security

  • facing problem while encryption
    R Roger Alsing 0

    huffman encryption :P

    My Blog

    C# help security

  • Rotation of cube
    R Roger Alsing 0

    Take a steady grip with both your hands around the monitor. Lift it up and move it closer to your face while twisting it from side to side.

    My Blog

    C# graphics game-dev
  • Login

  • Don't have an account? Register

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