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
E

ekolis

@ekolis
About
Posts
162
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Harassment online
    E ekolis

    And the NYSE should be shut down, too - come on, it's CLEARLY a slave market :)

    The Lounge

  • Harassment online
    E ekolis

    More than in the past? More than in most other countries, I'd believe, but not more than in the past...

    The Lounge

  • Harassment online
    E ekolis

    Oops, guess it's off to Butt Rape Land (tm) for me then! :)

    The Lounge

  • cancelling microsoft account...
    E ekolis

    Why is it so important that you cancel it? Storing child porn on SkyDrive or something? :P Just let it lapse and forget about it - best case, they push out a ToS change and since you never agreed to it, it's inactivated, worse case, Microsoft gets bought out by NigeriSpamCo when the value of the dollar collapses! :P

    The Lounge question

  • Harassment online
    E ekolis

    Speaking of libel, if I say that Apple makes iPhones using Chinese slave labor, is that libel? Because it's only NOT libel if it's true, and they DO pay the Chinese workers...

    The Lounge

  • Harassment online
    E ekolis

    I still think that corporate buyouts should be illegal under the 14th Amendment, which prohibits slavery...

    The Lounge

  • Harassment online
    E ekolis

    Freedom of speech? Hey, with the amount that's left, it might be worth giving it up for getting rid of ads...

    The Lounge

  • iPhone 5: HTC, Samsung to sue Apple
    E ekolis

    Master plan: Patent the icosahedron, then sue Wizards of the Coast and everyone else who uses the d20 system!

    The Insider News ios com hardware announcement

  • Evolution of tech logos...
    E ekolis

    Huh, and all this time I thought "Haloid" was a Metroid/Halo crossover fan film...

    The Insider News html

  • Server is kredit to team!
    E ekolis

    Whenever anyone mentions TFS, I have to remind myself that it stands for Team Foundation Server, not Team Fortress Server... Though from what I hear, it is kind of like a fortress when you try to get data out of it! :rolleyes:

    The Lounge sysadmin collaboration

  • Visual Studio 2012 - an awful burrito
    E ekolis

    Really? I thought they got rid of the per-language versions, so now there's just a VS Express for Windows, Web, and Mobile...

    The Lounge visual-studio workspace csharp design adobe

  • Experimentation - Would Like Feedback
    E ekolis

    I'd recommend using a generic

    List

    for the questions instead of a plain old List. That way you don't have to worry about casting the questions to IQuestion, or having someone add something that's not an IQuestion to the list!

    C# question com beta-testing oop code-review

  • Contact Us - here, have our email addresses
    E ekolis

    Hey, some people LIKE using their own email client to compose emails! I know it must be a foreign concept to you, since you use Outlook Express... ;)

    The Weird and The Wonderful com beta-testing question code-review

  • 1337haxx0rd00d casts Kaspammle! You struggle under the weight of all the spam!
    E ekolis

    Bibble bubble bobble babble!

    The Soapbox hosting cloud question

  • 1337haxx0rd00d casts Kaspammle! You struggle under the weight of all the spam!
    E ekolis

    I've been getting a lot of spam lately advertising "Vigara"... hmm, is that a magic spell that Cloud casts in Final Fantasy VII to increase his Vigor stat by enlarging his sword? ;P

    The Soapbox hosting cloud question

  • The Dawn of the Stupid Network
    E ekolis

    But if we just let anybody send data over our pipe, then TERRORISTS could stream CHILD PORN over your internet connection! And then you'd go to JAIL! :P

    The Insider News sysadmin html com question

  • Can you call a method on an object that is null?
    E ekolis

    If only you could have extension... parentheses... or whatever you'd call it... seriously, Microsoft, WHY did you have to choose null to represent an event that has no handlers?! Now instead of

    MySpecialPropertyChanged();

    I have to do

    if (MySpecialPropertyChanged != null)
    MySpecialPropertyChanged();

    or have the program crash if nothing's listening to the event!:mad:

    The Weird and The Wonderful csharp question

  • Security - You're doing it wrong!
    E ekolis

    Andrei Straut wrote:

    On the other hand, I'm having fun now with LINQ parsing the list of products from suppliers (didn't get to play with LINQ so far, but I'm quite liking it. Heard it's pretty slow compared to the other alternatives, but in my case speed is not that much of an issue)

    One thing that can make LINQ slow is not caching query results appropriately. (Not saying it's not slow to begin with; I really don't know!) For instance:

    // this method is very slow, it uses the database and network and maybe the TARDIS too
    public IEnumerable GetLotsOfData() {...}

    // this method is *extremely* slow since it calls the database and network over and over again
    public void CrashYourServer()
    {
    var data = GetLotsOfData(); // this just saves a QUERY! not the data!
    // so far so good...
    foreach (var item in data)
    {
    item.DoFancyBusinessOperation();
    }
    // wait, iterating over the enumerable again? uh-oh!
    foreach (var item in data) // going to call the database and network and TARDIS again!
    {
    item.DoOtherFancyBusinessOperation();
    foreach (var otherItem in data) // what, now we need an O(N^2) operation? NOOOOOO!
    {
    ComparisonResults.Add(item.CompareTo(otherItem));
    }
    }
    }

    // this method is more efficient!
    public void PlayNice()
    {
    var data = GetLotsOfData().ToArray(); // this actually loads and caches the data, yay!
    foreach (var item in data)
    {
    item.DoFancyBusinessOperation();
    }
    foreach (var item in data)
    {
    item.DoOtherFancyBusinessOperation();
    foreach (var otherItem in data)
    {
    ComparisonResults.Add(item.CompareTo(otherItem));
    }
    }
    }

    The Weird and The Wonderful security csharp java php com

  • Ran across my old code... Must have been tired...
    E ekolis

    And I thought the WTF was a "maximum" function which takes a string and an int, until I saw the comment...

    The Weird and The Wonderful

  • Cincinnatian in hell
    E ekolis

    A Cincinnatian dies and goes to hell. After a while, Satan notices that he doesn't seem to mind the heat, so he sends one of his minions to check on him. The minion reports, "Lord Satan! This Cincinnatian you have here says that the weather isn't too bad compared to Cincinnati in June!" So Satan cranks up the heat. A while later, the man's still not fazed by the heat, so again Satan sends a minion, and this time the minion reports that the man thinks the weather reminds him of Cincinnati in July. Still later, the man has decided to invite some of the neighbors over for a barbecue. Satan sends yet another minion, who reports that the man says the weather's like Cincinnati in August - perfect for a cookout! At this point Satan is fed up with this man, and so he turns off the heat, and cranks up the AC to full blast. Soon enough, it starts snowing... and then Satan hears an elated cry: "Looks like the Bengals finally won the Super Bowl!"

    The Soapbox
  • Login

  • Don't have an account? Register

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