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
B

Brandon Haase

@Brandon Haase
About
Posts
29
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Self contradictions
    B Brandon Haase

    How about: Microsoft Works SourceSafe diet food agile developer bug fix marketing integrity industry standard

    The Lounge tools help question discussion

  • Suggestions for DVD Software
    B Brandon Haase

    Ditto vote for Nero. I would recommend the full Nero 6 Ultra Edition package for about 80.00 USD. I regularly use it to edit and burn my own data and home movie DVDs.

    The Lounge help

  • Home Search Assistant
    B Brandon Haase

    The first thing I thought after reading the subject was of an assistant that searches your home for lost items (keys, wallet, cds, kids, pets, etc...) :laugh: Alas, I was disappointed :sigh:

    The Lounge com help tutorial question

  • Laptop purchase. Spend my money please!
    B Brandon Haase

    How about Sager? I own a 4780 and it is an excellent laptop. And the nice thing is, Sager's are actually manufactured by Clevo, the same company that manufactures Alienware computers. Here are the interesting highlights: 17" WXGA Active Matrix Display (can't meet you resolution requirements, but the screen is larger) Intel® Pentium® 4 3.2(800MHz FSB) Processor 256 MB 400MHz PC3200 DDR [Expandable to 2048 MB] 40.0/60.0/80.0 GB Ultra DMA Hard Drive Integrated TV-Tuner with Remote CMOS Video Camera 6-in-1 Card Reader ATI MOBILITY RADEON 9600 PRO 128MB DDR 6 Channel Analog Audio output 1 Type II PCMCIA Slot Infra Red, Wireless Fast IR interface USB 2.0 Ports Firewire Port (4 PIN) Optional Internal 802.11b Wi-Fi Wirless LAN Module Their support is also excellent. Send them an e-mail and they will call you before the end of the business day. http://www.sagernotebook.com/pages/notebooks/product.cfm?ProductType=4780[^]

    The Lounge graphics business performance

  • Google Sets
    B Brandon Haase

    Looks like a great way to suggest pizza toppings... to a point :) Mushrooms, Onions, Pepperoni[^]

    The Lounge csharp c++ com tools

  • Quantum entanglement
    B Brandon Haase

    Luck to you! Nothing sounds "regular" about that expression... I'd be willing to put money on the chance that the person who wrote it had more than a brush or two with PERL :-D Syntactic sugar causes cancer of the semicolon. ~ Alan Perlis

    The Lounge css asp-net sharepoint com game-dev

  • Legacy ASP Editor?
    B Brandon Haase

    Ultraedit-32. I use it to edit just about everything I don't have a good IDE for, and I often use it to make quick edits. It has a customizable language tagging system; there are a *lot* of languages supported (see the list here[^]). Simply download the wordfiles you need and get cranking. The find-replace (can be deadly) and macro functions are very good too. It is an excellent notepad and hex-editor replacement. http://www.ultraedit.com/[^]

    The Lounge csharp question discussion

  • ZIP processing
    B Brandon Haase

    You also might take a look at the free-use-for-any-purpose, no-strings-attached opens source library #ziplib. It can be found here http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx[^]

    The Lounge question

  • returning when inside a lock - is it safe?
    B Brandon Haase

    Bravo! Based on your code and some thought, I ended up restructuring the entire class. It is smaller, tighter, and a lot faster. My test suite execution time dropped from an average of more than 500ms to less than 200ms; it drops to less than 1ms when I pre-load the singletons. That lock-loop was killing me. Thanks! B

    C# com docker regex help question

  • returning when inside a lock - is it safe?
    B Brandon Haase

    Thank you for a solid example. I didn't think of checking my decompiler's output.

    C# com docker regex help question

  • returning when inside a lock - is it safe?
    B Brandon Haase

    I've run into a situation I haven't seen before, and was wondering if someone with a bit more threading experience would like to chime in. The class IsoCurrencyInfo maintains a collection of IsoCurrencyInfo singletons. The instances of IsoCurrencyInfo class themselves are read-only once created, so by themselves are thread-safe. The trick is keeping the ArrayList container in line. I think I have it nailed, but in doing so I am executing a return statement while inside a lock(). The code works very well under heavy concurrent load :cool:, but I can't help wondering "Is this safe?" Is there a better way to structure this method to optimize the locking? I have adapted the Singleton implementation pattern[^] from Microsoft Patterns & Practices[^].

    public static IsoCurrencyInfo GetInstance(string isoCode)
    {
    IsoCurrencyInfo newICI = null;

    if(null == \_iciRegistry)
    	lock(syncRoot) 
    		if(null == \_iciRegistry)
    		{
    			\_iciRegistry = new ArrayList();
    
    			newICI = new IsoCurrencyInfo(isoCode);
    			\_iciRegistry.Add(newICI);
    		}
    if(null == newICI) 
    	lock(syncRoot) 
    	{
    		foreach(IsoCurrencyInfo existingICI in \_iciRegistry)
    			if(existingICI.AlphaCode == isoCode)
    				**return existingICI;**
    
    		newICI = new IsoCurrencyInfo(isoCode);
    		\_iciRegistry.Add(newICI);
    	}
    return newICI;
    

    }

    Thanks! B

    C# com docker regex help question

  • Not another programming but
    B Brandon Haase

    You need to change the router's DMZ configuration or port 80 forwarding to point to your web server's ip address. Check your router's manual to see if you can change these settings. Another hit related to this... sounds like your router is set up to use DHCP (automatically assigns out ip addresses when computers connect). If you don't specify a "hard" ip address in your web server's tcp/ip settings and point the router to that ip, a power failure or restart of a few computers can cause the addresses to be reassigned. When this happens, your router will likely end up pointing web traffic to the wrong box.

    The Lounge php mysql performance help question

  • Thought provoking....
    B Brandon Haase

    Chris Losinger wrote: the Republicans control it all right now. The republicans may have the majority, but that doesn't mean they have control. Take the filibuster of judicial nominies by the dems as an example. Republicans will agree to disagree, but the dems will continue to argue that they didn't agree to anything :laugh: Chris Losinger wrote: maybe it's time to quit blaming the left for the problems of the right Its time for the citizens of the US to take the blame on themselves for a change. We as a whole put these people into office and now we have to live with it. :((

    The Back Room php com business help discussion

  • Bitter Irony
    B Brandon Haase

    Trollslayer wrote: I see from the article that that stone was placed at night with noone around - if he was so right then why go behind peoples backs like this ? Is it so unusual to perform labor that would interfere with the workings of a government building after hours? Trollslayer wrote: Now if he had a monument which represented a range of beliefs rather then just his and was open about it in the first place it might have been different, but he was trying to impose is own views in what is supposed to be a place of objective justice. Since when was our government founded under a "range of beliefs"? Granted, the people of this nation have the right to a range of beliefs, but that doesn't change the fact that the Ten Commandments are a historical foundation of the modern justice system.

    The Back Room com question announcement

  • USB Memory Stick
    B Brandon Haase

    PenDrive by KTI. I picked up a Secure 512 MB model from http://www.directron.com for $140. I use it so much I wish I had gone for the 1GB.

    The Lounge performance question

  • TFTD
    B Brandon Haase

    Compile the source code CPU cycles churn on Dang, one more error

    The Lounge

  • Speaking of VS.NET 2003...
    B Brandon Haase

    He probably fell asleep waiting for it to finish installing...

    The Lounge csharp visual-studio workspace

  • Bitter Irony
    B Brandon Haase

    LunaticFringe wrote: I believe one of the founders stated that the purpose of the Bill of Rights was to protect the rights of individuals from an 'arrogant majority'. I would suggest that Moore's tantrum was precisely the sort of thing this statement had in mind. Actually, from my point of view, the individual's (Moore) rights were swept aside and buried without proper examination to placate the desires of the majority who have become xenophobic towards anything that has a whiff of judaeo-christian values. In this time it seems the "arrogant majority" has won.

    The Back Room com question announcement

  • Bitter Irony
    B Brandon Haase

    Ah, a suspicious one :-D No trick; I just wanted your opinion, and I agree with you. In today's society, the interpretation is everything. And I think this is A Bad Thing. The fact that the new "letter of the law" is based on some one else's interpretation that was likely based on another interpretation and so on... Scary stuff.

    The Back Room com question announcement

  • Bitter Irony
    B Brandon Haase

    I think the laws should evolve, not the interpretation of them. Considering the legislative branch seems to be paralyzed when it comes to many issues, it's no surprise the way things have turned out... oh well... hindsight is 20/20. Although, I would say it is probably a good thing the process is slow. Take a look at the laws that have passed relatively quickly in recent days... DMCA, PATRIOT, etc. Which do you think is more important, the letter of the law or one judge's (or panel of judges) interpretation of it?

    The Back Room com question announcement
  • Login

  • Don't have an account? Register

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