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

Mathew Hall

@Mathew Hall
About
Posts
116
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • iiNet wins piracy court case
    M Mathew Hall

    iiNet slays Hollywood in landmark piracy case[^] "The giants of the film industry have lost their case against ISP iiNet in a landmark judgment handed down in the Federal Court today. The decision had the potential to impact internet users and the internet industry profoundly as it sets a legal precedent surrounding how much ISPs are required to do to prevent customers from downloading movies and other content illegally. But after an on-and-off eight-week trial that examined whether iiNet authorised customers to download pirated movies, Justice Dennis Cowdroy found that the ISP was not liable for the downloading habits of its customers. ... iiNet argued that it was not required by law to act on ‘‘mere allegations’’ of copyright infringement, that customers were innocent until proven guilty in court, and that the case was like suing the electricity company for things people do with their electricity." Sanity prevails, though it will be interesting to see what happens once the decision is inevitably appealed.

    "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge html com question announcement

  • Recursion logic and performance tuning
    M Mathew Hall

    I have a uni assignment where I need to recursively process a large number of nodes in a dependency graph in order to calculate the ripple impact. I have come up with a solution that I think is correct, however I'm seeking confirmation of whether my logic is correct, and if so, is there any way to make it faster (and yes, I could post this to the forum for this uni subject, but since we'll be put in groups based on how well we do individually I'm reluctant to do so since I could be heading down the right track). First some background info:

    Fan-Out metric is the number of classes that a particular class relies
    on. Fan-In metric is the number of classes that make use of a given class.
    The ripple impact measure counts the total number of classes that might
    have an impact when any single class is changed. Based on the dependency
    graph above, if we were to modify “E”, the ripple will impact B directly,
    since B has an impact this will impact A as well. In short any change made
    to ‘E’ can have a potential ripple impact on B and A.

    The nodes in the dependency graph that have a Fan-Out of Zero are known as
    a Sink node. Nodes that have a Fan-In of zero are known as Source nodes.

    In the dependency graph shown, we can extract the following information:
    • A: Fan-out = 1 [B], Fan-In = 0, Impact-Ripple = 0
    • B: Fan-Out = 3 [D, E, F], Fan-In = 1 [A], Impact-Ripple = 1 [A]
    • C: Fan-Out = 1 [D], Fan-In = 1 [F], Impact-Ripple = 4 [F, D, B, A]
    • D: Fan-Out = 1 [F], Fan-In = 2 [C, B], Impact-Ripple = 4 [B,A,C, F]
    • E: Fan-Out = 0, Fan-In = 1, Impact-Ripple = 2 [B,A]
    • F: Fan-Out = 1, Fan-In = 2, Impact-Ripple = 4 [B,D,A,C]
    • Sink nodes: E, Source nodes: A

    So in order to calculate the ripple impact you need to recurse through a node's fan-in nodes and add them to a list unless you either a) run into a source node or b) find a node you've already processed. Here's what I have so far:

    public class Node
    {
    ...

    public List<Node> FanIn
    {
    get
    {
    return this.fanIn;
    }
    }

    public HashSet<Node> Ripple
    {
    get
    {
    HashSet<Node> rippleSet = new HashSet<Node>();

            // add this node for easy cycle checking so we don't
            // process ourself twice
            rippleSet.Add(this);
            
            // call our recursive function
            this.CalcRipple(rippleSet);
    
            // remember to remove us so we don't skew the result
    
    C# data-structures performance

  • firat kocak
    M Mathew Hall

    Or an infinite number of cats :D "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge com

  • Gnu type of article?
    M Mathew Hall

    Aamir Butt wrote:

    bad premiership form

    Try being a Newcastle United supporter :sigh: Although since giving Souness the flick they've won their last 3 matches "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question python tutorial

  • hope Nish will report his experience
    M Mathew Hall

    The usual red fluffy suit

    Dario Solera wrote:

    Santa Claus wear a bathing suit

    There's a mental image I didn't want... X| Geez - the new unwell emoticon sucks the big one - what happened to the old one? "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge html

  • hope Nish will report his experience
    M Mathew Hall

    David Cunningham wrote:

    Who wants a Christmas holiday with no snow anyway

    I do - snow at christmas is just plain wrong (christmas + snow = shite summer) ;P "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge html

  • Nostalgia
    M Mathew Hall

    I've got Word 6.0 (9 3.5") on my shelf - does that count? ;P "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge

  • For all the Aussie expats...
    M Mathew Hall

    Paul Watson wrote:

    That is an impossible score for Rugby

    That depends on whether your talking about League or Union ;P "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question

  • For all the Aussie expats...
    M Mathew Hall

    Australia 4 def Uraguay 2 on penalties Woohoo - we're off to the World Cup :-D :-D :-D "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question

  • Hey Christian...
    M Mathew Hall

    we have an EzyDVD in Hobart now Really? Whereabouts is it - I'll have to go and check it out "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge com

  • Import more than 510 fields from csv into Excel
    M Mathew Hall

    I have a friend who needs to import a csv file into Excel that has more than 510 fields. There's a macro here[^] that shows how to import less than 510 fields. I don't know anything about VBA (and don't wish to learn atm), so I'm wondering if anyone is able to modify it to allow the importing of more than 510 fields. Thanks "I think I speak on behalf of everyone here when I say huh?" - Buffy

    Visual Basic css com tutorial question

  • Pointers in struct to itself
    M Mathew Hall

    You'd probably want to do something like:

    [StructLayout(LayoutKind.Sequential)]
    public struct HuffTreeNode
    {
    uint code;
    uint count;
    IntPtr leftNode;
    IntPtr rightNode;
    }

    and then use Marshal.StructureToPtr[^] and Marshal.PtrToStructure[^] to convert the struct to/from a pointer "I think I speak on behalf of everyone here when I say huh?" - Buffy

    C# csharp c++ data-structures help tutorial

  • I'm in Seattle...
    M Mathew Hall

    In Hobart, we have 4 TV channels what about TDT (aka Channel 10) "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge c++ architecture question

  • Go-Karting
    M Mathew Hall

    Thats the F1 - The A1 was set up by one of the Saudi princes. 25 nations get a car and go off and race each other, with all teams using the same chassis, tryes, engines etc. First race is tonight (Australian time) at Brands Hatch - hopefully they have good racing and the Aussie team can score the first win More info here: A1 Grand Prix[^] "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question

  • Go-Karting
    M Mathew Hall

    Fangio would be proud Lets not get too carried away :-D You going to watch the A1 Grand Prix? "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question

  • Go-Karting
    M Mathew Hall

    Just got back from a fun filled evening of indoor go-karting. We had to break into two groups as half had never been before. The track was pretty tight and twisty so there weren't many overtaking opportunities (that and we were pretty evenly matched). Best place was the hairpin at the end of the main straight - managed to pass a few there. Had to abort one attempt as I was trying to get underneath my brother who was attempting to do the same to another guy - he got a bit sideways after I nudged him but he was fine. I had tried another inside move at the same corner earlier but came off second best - got T-boned from behind and ended up in the wall and bent one of the steering rods. Fortunately the damage was only minor as one of the marshals was able to bend it back into place. All in all it was great fun, though I'll probably regret it when I get up in the morning :-D Anyone else partaken in any motorsports recently? "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge question

  • Deadly plague hits Warcraft world
    M Mathew Hall

    "Originally it was thought that the deadly digital disease was the result of a programming bug in a location only recently added to the Warcraft game. However, it now appears that players kicked off the plague and then kept it spreading after the first outbreak ... In the last week, it added the Zul'Gurub dungeon which gave players a chance to confront and kill the fearsome Hakkar - the god of Blood. In his death throes Hakkar hits foes with a "corrupted blood" infection that can instantly kill weaker characters. The infection was only supposed to affect those in the immediate vicinity of Hakkar's corpse but some players found a way to transfer it to other areas of the game by infecting an in-game virtual pet with it. This pet was then unleashed in the orc capital city of Ogrimmar and proved hugely effective as the Corrupted Blood plague spread from player to player. Although computer controlled characters did not contract the plague, they are said to have acted as "carriers" and infected player-controlled characters they encountered. And the best bit: The "Corrupted Blood" plague is not the first virtual disease to break out in online worlds. In May 2000 many players of The Sims were outraged when their game characters died because of an infection contracted from a dirty virtual guinea pig. ROLFMAO :-D :-D :-D "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge com game-dev question announcement

  • Google Maps/Earth - high-resolution imagery updates
    M Mathew Hall

    Australia rejected the Linux trademark attempt Pity they didn't fo the same for Ugg Boots[^] "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge csharp php database com announcement

  • Grimsby 1 - 0 Spurs
    M Mathew Hall

    Would have been better if it was Grimsby 1 - 0 Chelsea :-D How did Newcastle go? "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge com

  • Similar, yet different
    M Mathew Hall

    Wouldn't play for me - looks like a commercial station X| For a non-commercial alternative that doesn't play Top-40 you might like TripleJ[^] "I think I speak on behalf of everyone here when I say huh?" - Buffy

    The Lounge wpf learning
  • Login

  • Don't have an account? Register

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