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

Blake Miller

@Blake Miller
About
Posts
2.1k
Topics
71
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • So I need to buy a new keyboard (or 2)
    B Blake Miller

    My favorite is the IBM KB-8923, got a couple here. Luckily still prevalent on E-Bay.

    I'm here for whatever you need me to do from the computer.

    The Lounge database announcement workspace

  • So I need to buy a new keyboard (or 2)
    B Blake Miller

    OMG! Those are so beautiful!

    I'm here for whatever you need me to do from the computer.

    The Lounge database announcement workspace

  • Any utilities for replicating Web Site files through intermediary drop into web site testing location.
    B Blake Miller

    I am working on a .NET Core product representing a web site server. There are HTML, JS, CSHTML, etc. files in the Team Foundation Services repository not necessarily organized in folders the same way they will end up on the system actually hosting the web site. Is anyone aware of a utility that will take the source files, make a copy to an intermediate location, and then copy from the intermediate location to update the pages and files on the system hosting the web site? I am changing the source files and want to see the changes reflected on the web site system, which is a VM that must be reached through an intermediate drop location. I can run the utility on the development system and the target system easily enough. It is a PITA to keep track of which files were modified and to keep copying the files by hand. Just asking ahead of time, so I don't go rewrite the wheel.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    ASP.NET csharp javascript html asp-net dotnet

  • Bureaucracy-speak
    B Blake Miller

    And further on... The ATSB also found that the approach to the management of risk by the Old Bar Beach Festival Committee, specifically relating to aviation operations at the beach festival, was ineffective and resulted in a level of risk that had the potential to impact on the objectives of the festival. Oh, you mean like the FERRIS WHEEL can't be used now? :~

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge ruby cryptography announcement workspace

  • Is it possible to enumerate symbols in a PDB file using DBGHELP.LIB - NO Process Loaded.
    B Blake Miller

    I am trying to extract the functions in a module by using the DBGHELP.LIB functions and loading only the PDB. I can't seem to get SymEnumSymbols to invoke the callback at all. The SymEnumSymbols function returns 'success' as if it had done something. Trying various combinations of 'options' using SymSetOptions has not yielded results either. When I search The Internet almost always the result/examples seem to come back with examples where the EXE is loaded and running and has been attached to or at very least the process handle has been obtained. Is having the process handle of the running EXE a requirement Microsoft has completely forgotten to state while using this 'Debug' library? Thanks.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C / C++ / MFC debugging question

  • Windows 8 Modified Windows API List...
    B Blake Miller

    I am trying to find a list of ‘affected’ API in Windows 8. Microsoft used to release a file called Win32Api.Csv that would summarize every function call changed in a new version of the OS. I am looking for something similar for Windows 8. I don't necessarily need the 'new functions' list, I have seen that already. I am concerned we make function calls in our existing products that will be 'broken' in some manner in Windows 8. For example, we have already run into some

    FindWindow

    failures.

    Sigh.... so many Windows OS versions, so little time …

    C / C++ / MFC announcement json tutorial

  • Anyone heard of an Anonymous Statistics / User Experience API or Toolkit
    B Blake Miller

    I am wondering if someone has used an API or Toolkit to incorporate Anonymous Usage or User Experience into their product. For exmaple, when you install Visual Studio, it asks if you want to participate in the Installation User Experience to provide feedback to Microsoft regarding your installation experience. Other product have similar types of options, which basically come down to the application reporting back some information about how the inlstallation was operated, problems encountered, etc. So if you have used or heard of such an API or toolkit to incorporate such features into an application, please respond. Thanks.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C / C++ / MFC csharp visual-studio design beta-testing json

  • case insensitive string comparison - relative speed
    B Blake Miller

    Confirms my 'gut feeling' and we all know how much we like to depend upon those :)

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C# performance question

  • case insensitive string comparison - relative speed
    B Blake Miller

    Awesome! Thanks for the link. :thumbsup:

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C# performance question

  • case insensitive string comparison - relative speed
    B Blake Miller

    Thank you for your answers. Would you have a link to a tech note, language guide or MSDN about this part "Microsoft 'advises' to use uppercase constants." It does matter. I am looking into this because customers are complaining about CPU load.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C# performance question

  • case insensitive string comparison - relative speed
    B Blake Miller

    Suppose two strings,

    String S1, S2;

    Which is faster:

    if( S1.ToLower() == S2.ToLower() )

    Or:

    if( String.Compare(S1, S2, true) == 0 )

    Under what conditions might the relative speed vary?

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    C# performance question

  • An historical observation
    B Blake Miller

    Just quickly .... SSD ...

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge csharp c++ com question

  • A Highly Uninformed Defence of Lance Armstrong
    B Blake Miller

    Targets?

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge c++ com architecture

  • A Highly Uninformed Defence of Lance Armstrong
    B Blake Miller

    I think DodgeBall can hold up, because not only did he refer to his cycling career, but also to surviving his TC, as I recall, so there :wtf:

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge c++ com architecture

  • Familiarity : Trimming leading and trailing spaces from a string...
    B Blake Miller

    This is great. I was just posting the orginal code because of the three reasons I listed. 1. Should be a function - REGARDLESS. 2 - It's inefficient on multiple levels. 3. MS already has the 'tried and true' function to call anyways. I like to see that others do not consider what I posted to be optimal in ANY case, so that is comforting :)

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Weird and The Wonderful

  • Familiarity : Trimming leading and trailing spaces from a string...
    B Blake Miller

    1. This code was COPIED to 3 different places - they didn't bother to make a function out of all of it. That is probably the worst error, because now if this 'new' code has bugs, you have to modify three places instead of one. 2. It 'excessively' calculates the length of the string. I think I am being kind here when I say that. 3. 'Familiarity' was my joke - there is already a function in Windows to do this.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Weird and The Wonderful

  • Familiarity : Trimming leading and trailing spaces from a string...
    B Blake Miller

    We can strip leading and trailing spaces from a string….

                int len = strlen((LPSTR)wName);
                while( \*((LPSTR)wName + len - 1) == ' ')
                {
                \*((LPSTR)wName + len - 1) = '\\0';
                len = strlen((LPSTR)wName);
                }                                                                                              
    
                firstNonSpace=((LPSTR)wName);
                while(\*firstNonSpace != '\\0' && isspace(\*firstNonSpace))    
                {          
                    ++firstNonSpace;     
                }     
                len = strlen(firstNonSpace)+1;               
                strcpy((LPSTR)wName, firstNonSpace); 
    

    Or just call… MSDN: “Removes all leading and trailing spaces from a string.”

    PathRemoveBlanks(wName);

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Weird and The Wonderful

  • Profanity in code
    B Blake Miller

    Well, maybe not profane, but likely hilarious. After the third or fourth time fighting the build system, I submitted this labeling comment: "This is as much fun as eating a poopy flavored lollipop."

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Weird and The Wonderful csharp

  • Dot matrix printers.
    B Blake Miller

    I have a wide-carriage Okidata Microline 395C 24-pin printer here in my office. In the automation industry, real-time records are printed to the line printer, one line at a time (try doing that with a laser or ink-jet printer...) to record plant activity. Sometimes the line printer is set into a 'bunker', in case of an 'accident' it is the 'record' of what has happened. Yep, they are still in use, and I just finished writing a Windows NT service to write to this Okidata a couple weeks ago.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge question

  • Dot matrix printers.
    B Blake Miller

    Speaking of CRT monitors, on the relaly cheap ones, I can hear the flyback transformer buzzing - sounds like a mosquitoe flying right next to my ear.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    The Lounge 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