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
M

mrchief_2000

@mrchief_2000
About
Posts
58
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Configuring new Windows 8 laptop
    M mrchief_2000

    d@nish wrote:

    His requirements are really limited to browser and MS office. He is alien to IT World. Since I too have never seen Windows 8 (I like my cave and have no intentions of crawling out of it for now), I am not really sure what all do we need to do to get things going.
     
    For instance, I would disable updates for some software, disable UAC and make start up programs and services to my liking. Apart from that, I would install MSE, Chrome and VLC player.

    Sounds like you got the wrong gadget. You should return it and buy an iPad (or a cheap Android tablet). ;P

    The Lounge asp-net oracle com business tutorial

  • Configuring new Windows 8 laptop
    M mrchief_2000

    Sounds like you got the wrong gadget. You should return it and buy an iPad (or a cheap Android tablet). ;P

    The Lounge asp-net oracle com business tutorial

  • Programmers should not be allowed to, well, program.
    M mrchief_2000

    Most of the code is actually self documenting (I'm excluding code /vendor assuming that's not his). For example

      def copy\_locale
        if Gmaps4rails.pipeline\_enabled?
          directory assets\_source\_path, assets\_destination\_path
          copy\_file "../../../public/stylesheets/gmaps4rails.css", "vendor/assets/stylesheets/gmaps4rails.css"
        else
          %w( base google openlayers bing ).each do |filename|
            copy\_file js\_source\_path(filename), js\_destination\_path(filename)
          end
          copy\_file "../../../public/stylesheets/gmaps4rails.css", "public/stylesheets/gmaps4rails.css"
        end
      end
    

    or this one:

      def show\_readme
        readme 'README' if behavior == :invoke
      end
    

    This reads like plain english and is quite evident what the code is doing, and even though I'm not a ruby programmer, I can understand most of it. This is true for almost all of his codebase. I know Marc's reputation, so obviously he's seeing something that I don't. So what am I missing?

    The Lounge help ruby com testing beta-testing

  • Does anybody 'Hide extensions for known file types'?
    M mrchief_2000

    Martijn Smitshoek wrote:

    If you receive a file named "playme.exe"

    You're talking about attachments which are handled in a different program, not Windows Explorer.

    Martijn Smitshoek wrote:

    you do need to know the extension

    There is difference between "seeing" an extension, and "knowing" what it means. There is no guarantee that even if a user sees the extension, he's not going to ignore it or worse understand what it means. And this debate can go on endlessly. But again, that's a different issue altogether.

    Martijn Smitshoek wrote:

    There is no excuse for not knowing what you're doing.

    True in general... But your point is? Everyone should get a degree in computer science before touching a computer? The post here refers to people who know and understand the basics. For them, that extension is simply "noise"!

    The Lounge question csharp visual-studio announcement

  • Does anybody 'Hide extensions for known file types'?
    M mrchief_2000

    Extensions are meant for the OS only. Average user doesn't need to bother with them. Its a rather stupid way of detecting the file type. While the geeks want to see it, average consumer doesn't. No need to guess who's the majority here, do we?

    The Lounge question csharp visual-studio announcement

  • Still people are happy with IE6
    M mrchief_2000

    Vasudevan Deepak Kumar wrote:

    It looks like IE 7 can be made to sit on Windows 98 machine through third party open source tools:

    So you rescue them from a well but push'em into a pit again?

    The Lounge com

  • Git rant, Part II - the word is the thing
    M mrchief_2000

    Another major issue is that sites like github do such a good thing in masking (via their excellent UI) all these shortcomings of a bad CLI so that these issues are even less of issues to most.

    The Lounge php com collaboration help tutorial

  • Git rant, Part II - the word is the thing
    M mrchief_2000

    Yeah. It is the result of a geek (he who must not be named) working over a weekend and no one reviewing the work. If the lord himself wrote it, it must be you who is stupid enough not to understand it, right?

    The Lounge php com collaboration help tutorial

  • A C# book - Expert C# 5.0: with the .NET 4.5 Framework
    M mrchief_2000

    No free copies?? :omg:

    The Lounge csharp com question learning

  • So I installed Ubuntu this morning.
    M mrchief_2000

    Win Vista is why I tried Ubuntu. WLAN with Ubuntu is why I switched back to Windows (of course, Win 7 also was a big part of it, although it was in beta at that time but still way better than vista)!

    The Lounge linux

  • Can someone tell me why should I upgrade from VS 2008 to 2010 or 2012
    M mrchief_2000

    Because VS 2010 is the "Vista" of Visual Studios and VS 2012 is the "Win7" version of it (ofcourse that makes VS 2008 the "XP" version and we all love that, don't we?)!

    The Lounge visual-studio csharp sales

  • Code Optimize
    M mrchief_2000

    Declaring an extra variable doesn't affect your performance at all. Compilers can (and will) easily do the code reduction you did (note what you did is not an optimization). On the other, having that extra variable does aid in readability and debugging. The only rewrite I would is (if I absolutely have to change something for no reason other than style):

    return ResultFlag != 0;

    The Weird and The Wonderful com code-review

  • Coding Challenge
    M mrchief_2000

    Probably not the most efficient, but in C#, this works:

    using System.Text.RegularExpressions;

    var source = "dog cat dog horses monkeys dog";
    var stringsToTrim = new[] { "dog", "cat" };
    var trimmedString = Regex.Replace(source, string.Format("^({0})|({0})$", string.Join("|", stringsToTrim )), "");
    Console.WriteLine(trimmedString);

    Live demo: http://rextester.com/GTLWO64640[^] Making above shorter:

    using System.Text.RegularExpressions;

    Console.WriteLine(Regex.Replace("dog cat dog horses monkeys dog", string.Format("^({0})|({0})$", string.Join("|", "dog", "cat")), ""));

    The Lounge c++ architecture help

  • Worst source code EVER
    M mrchief_2000

    Norm .net wrote:

    ON ERROR RESUME
     
    Nothing more, nothing less...

    This one beats yours:

    On Error Resume Next
    'Do Somthing
    Err.Clear()
    On Error Resume Next
    'Do Somthing
    Err.Clear()
    On Error Resume Next
    'Do Somthing
    Err.Clear()
    On Error Resume Next
    'Do Somthing
    Err.Clear()
    ...

    And it goes on for every single line in the code.

    The Lounge question career

  • Amazing Sytem User
    M mrchief_2000

    It's 'Luo', not 'Lua'

    The Lounge business code-review

  • Anybody try VS Debugger Canvas?
    M mrchief_2000

    You can manually update extension.vsixmanifest inside the vsix package to include your edition and try. That will let you past the installer. It may or may not work but worth a try.

    The Lounge visual-studio csharp com debugging question

  • Try To Excel, and Get Hampered by Mediocrity
    M mrchief_2000

    5 combo boxes before you can see a report? I would prefer nested menus. Am I missing something here?

    The Lounge csharp asp-net database sales

  • VS 2010 color config - am I missing something?
    M mrchief_2000

    After resisting them initially (initially spans years), I now believe they are very helpful. > The darker schemes are certainly friendly to the eyes. > Having a different color scheme does help impart the 'geek'y attribute to you especially when most of the developers around you live with the default scheme. Changing them individually is a pain. I started with a dark theme and modified few settings to my liking. This way, I din't have to change a whole lot. I still don't like the VS theme switching (maybe the default theme is what I find the best).

    The Lounge visual-studio com tutorial question career

  • SkyDrive - Alternative to Dropbox?
    M mrchief_2000

    effayqueue wrote:

    What makes you think dropbox are saying one thing and doing another

    Read it again. If the file is encrypted, it should not be possible to de-duplicate it... get the idea?

    The Lounge csharp html security question

  • SkyDrive - Alternative to Dropbox?
    M mrchief_2000

    Uses the same de-duplication technique as dropbox :(

    The Lounge csharp html security 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