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

mattiek77

@mattiek77
About
Posts
16
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Coding Challenge
    M mattiek77

    Mix of recursion and regex

    using System;
    using System.Text.RegularExpressions;
    namespace CPTrimmer
    {
    class Program
    {
    static void Main(string[] args)
    {
    string startVal = "dog cat monkey dog horse dog";
    string[] toTrim = { "dog", "cat" };
    Stripper(ref startVal, toTrim);
    Console.WriteLine(startVal);
    Console.ReadLine();
    }
    static void Stripper(ref string input, string[] toTrim)
    {
    foreach (string trimVal in toTrim)
    {
    Regex start = new Regex(@"\A[ ]{0,}"+trimVal);
    if (start.IsMatch(input))
    {
    input = start.Replace(input, "");
    Stripper(ref input, toTrim);
    }
    Regex end = new Regex(trimVal + @"[ ]{0,}\Z");
    if (end.IsMatch(input))
    {
    input = end.Replace(input, "");
    Stripper(ref input, toTrim);
    }
    }
    }
    }
    }

    The Lounge c++ architecture help

  • Watching the world cup as an ice hockey fan...
    M mattiek77

    youtube David Buust. I have been on the rugby field when a team mate went down with a broken neck, but even that the buust injury is the most horrible thing I have seen.

    The Lounge css game-dev performance question career

  • About bleedin' time!
    M mattiek77

    It sounds like an invasion of a giant swarm of bees... But their house their rules, if that is how they enjoy sport so be it. Just as it is the right of FIFA not to send the world up their again if it annoys everyone else so much.

    The Lounge html game-dev

  • Once more the UK comes last in ESC
    M mattiek77

    we pay for it even through alcohol that annoys me.

    The Lounge

  • Tonights offering. [modified]
    M mattiek77

    Trollslayer wrote:

    dancefloor of the Mayfair

    that brings back memories

    The Lounge csharp php wpf com tools

  • The winner in the "You taking the ..." category.
    M mattiek77

    True

    The Lounge csharp php wpf com tools

  • The winner in the "You taking the ..." category.
    M mattiek77

    fat_boy wrote:

    Hang on, she DIDNT clean up the mess HER dog left.

    I imagine this would be quite hard to prove if it want to court.

    fat_boy wrote:

    Thus she is guilty. £50 is too good for people like this.

    Like a lot of these council jobsworths though, they go after the harmless person who tried to do the right thing. The 6'7'' skinhead with 2 big dogs would probably have been ignored by the 'enforcement officer'

    The Lounge csharp php wpf com tools

  • The winner in the "You taking the ..." category.
    M mattiek77

    What really annoys my is that the jobsworth council official who manages to sound like they are doing the poor woman a favour by not taking it to court. The UK is becoming full of petty officialdom, where complete jobsworths get to avenge years of being bullied at school by dressing up in a pretend uniform and making sure the million and one rules they have made up are followed to the letter. It also shows how messed up the system is where the local MP, or councillor for that matter, does not have the power to stop these things dead in their tracks, elected representatives should always have power over the bureaucrats.

    The Lounge csharp php wpf com tools

  • I feel for Google here.
    M mattiek77

    Apologies I have just realised you are in this part of the world :doh:

    The Lounge csharp php wpf com security

  • I feel for Google here.
    M mattiek77

    Sounds like a true Geordie :laugh:

    The Lounge csharp php wpf com security

  • How to use OLE Automation in my application?
    M mattiek77

    Ouchc

    The Lounge com testing tools tutorial

  • Coding pet hates
    M mattiek77

    if (x == y)
    {
    //no action needed
    }
    else
    {
    // do stuff
    x++;
    }

    Regardless of layout any empty conditional. :rolleyes:

    The Lounge json question

  • Thank the Lord for code comments
    M mattiek77

    Hate VB with a passion, mainly because I find code and comment smell all over it. :((

    The Lounge

  • Calorie Counting
    M mattiek77

    If you had known at the time it was low calorie, it would not have tasted anywhere near as good. That way you got the taste benefit of a nice unhealthy snack. With the added bonus afterwards. ;)

    The Lounge java question

  • Thank the Lord for code comments
    M mattiek77

    Good code should be largely self commenting, if variable, method and object names are sensible.

    The Lounge

  • Thank the Lord for code comments
    M mattiek77

    because I never would have figured this out

    'this sets the engine type to singleline.
    engineType.Value = xxxxxxx.EngineEnumType.Singleline

    The Lounge
  • Login

  • Don't have an account? Register

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