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
V

Vladimir Svyatski

@Vladimir Svyatski
About
Posts
44
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 7z support
    V Vladimir Svyatski

    OK, my article is here C++/CLI for Beginners[^]. 7z hasn't been replaced by zip automatically, so I did that manually. The article has been reviewed by one of your editors after the update already.

    I have 4 words for you: I love this company! Yes!

    Site Bugs / Suggestions help com windows-admin question

  • 7z support
    V Vladimir Svyatski

    Hi, support people. Recently I've discoved sort of a problem with article submission. You see, in the article submission wizard it is said that 7Z archives are supported. In reality, not entirely. One can upload them, but when you create a link to 7z file in your article, it can't be downloaded. The 404 error will be shown. So I had to replace 7z with zip. Could you verify that everything is OK with 7Z? Maybe they're not in IIS mime list. Or just remove all the words about 7Z support from the article submission wizard. I'm using Firefox 35.0.1. Thank you.

    I have 4 words for you: I love this company! Yes!

    Site Bugs / Suggestions help com windows-admin question

  • GUIDs
    V Vladimir Svyatski

    A new nasty virus? It's so terrifying, that it can easily beat Skynet. The machines will terminate us all :((

    I have 4 words for you: I love this company! Yes!

    The Weird and The Wonderful performance question sales lounge

  • Get all the Enumeratorz
    V Vladimir Svyatski

    The foreach operator is not an option I guess :) . Also, if they only wanted to reverse the list, why not use this? That is the forbidden stuff, and the unfaithful will be punished by torturing and banishing for forever.

    I have 4 words for you: I love this company! Yes!

    The Weird and The Wonderful csharp career

  • It won't take no for an answer
    V Vladimir Svyatski

    The code is complete bullshit!

    • What is the point of using ref? objWord is not assigned any value. I guess, the author has never heard of reference types and value types, doesn't differentiate them and also is a former C++ developer.

    • If an exception is generated, a variable, representing it, can NEVER be null. And the check

      ex != null

      just looks stupid.

    • Also, it will sound very upsetting for the author, but if the exception mentioned above is ever generated, he is about to face an infinite recursion, hence he will also face the full power of the StackOverflowException.

    Summarizing the above, I'd say he better work in McDonald's. To get a chance to become a manager :rolleyes:, that is a real chance to afford Ford Mustang GT... someday :-\ .

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful

  • Visual Studio 2013 License
    V Vladimir Svyatski

    Try to contact Soma Somasegar :). "Tat is wat we all been tinking abot!" (© 2012 Soma Somasegar). Sorry for the bad spelling in the quote, but I've been trying to express his accent (I kinda like it). Here is the video http://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-Live/Soma-Somasegar-Visual-Studio-2012-Launch[^] by the way (it's about Visual Studio 2012, but nevertheless).

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful visual-studio csharp com testing collaboration

  • Found this today
    V Vladimir Svyatski

    According to this http://technet.microsoft.com/en-us/library/ms184325.aspx[^], the expression is just stupid, it is much easier to write

    SELECT '' as [Email]

    , because ISNULL(NULL, '') will ALWAYS return ''.

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful

  • Yes I know it was me who wrote that...
    V Vladimir Svyatski

    I've been always wondering why people just don't use string comparison functions with the case ignoring ability. Many languages have them. Why use ToLower or ToUpper if you don't really need that lowered string? One my colleague once told me that because of the belovers of ToUpper/ToLower the program he had to improve was doing its job during about 11 hours (the program was in C++)!!! After just replacing the appropriate functions with stricmp and similar ones (which compare ignoring the case) the program got the awesome performance boost: it managed to finish its execution in just one hour or such. Taste the difference!

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful

  • A delicious bug in the September update of SQL Server 2012 Data Tools
    V Vladimir Svyatski

    This post is about dates and certificates. On the 7th of October, 2013 I needed to install the September update of SQL Server 2012 Data Tools (I'll be using the acronym SSDT further). Imagine how surprized I was when after attempting to download something the installer failed claiming that the reason for the failure is a wrong certificate which is already out of a valid date range. I tried to google some solution, but the only thing that I found is a post from some guy which had the same problem. After some thinking I have come to the solution (just taste it): in order to install the stuff you have to correct a date on your PC to something close to the release date of that update! I used September, 20th. Wonderful, isn't it? Was it way too hard for the Microsoft guys to just ensure their certificate doesn't expire before they release another update?:confused:

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful help announcement database sql-server sysadmin

  • Developer whose first language is not English
    V Vladimir Svyatski

    Initially I didn't get it (because of the asterisks). Such aliases should not surprize anyone. If we step aside from the programming for a moment, one can remember that Japanese car makers are that awesome, that they can name cars "Pajero" (which is not a very good word in Spanish slang) and sell them officially in Spain. With that said, why can't a female developer use genitalia as an alias in that SQL query?

    lifecycle of a lifecycle of a lifecycle

    The Weird and The Wonderful asp-net com

  • It does what now?
    V Vladimir Svyatski

    It throws an exception when visible == null.

    The Weird and The Wonderful question

  • Happy new year... kind of...
    V Vladimir Svyatski

    An attempt to create new, better LINQ to SQL?

    The Weird and The Wonderful database question

  • Just a C++ tutorial
    V Vladimir Svyatski

    This tutorial should be called: "How to get your first access violation runtime error in C++".

    The Weird and The Wonderful c++ com tutorial

  • String Comparison
    V Vladimir Svyatski

    I always wonder: why after many, many, many years people just can't learn to use caseless string comparison methods? I constantly see shit like this. Caseless comparison methods existed even in good old plain C. Damn, is it really that hard to master primitive things like this:

    if (String.Compare(name, "CamelCasedName", true) == 0) {...}

    ? In the end, it's not Lebesgue integration, right? Those, who ever had the "pleasure" to be familiar with functional analysis, know :) .

    The Weird and The Wonderful code-review

  • Straight from the horse's mouth
    V Vladimir Svyatski

    I have seen such stuff many, many times. They always claim that such approach makes it "easier to read". But the question arises: "For whom?" Don't want to answer, because it will be abusive for some. But writing such sort of a code is the same (yes, it is) as putting the caption "car" on a car (you can make up more examples if you wish). Thanks, I noticed :)

    The Weird and The Wonderful tutorial question career

  • ISP hacked
    V Vladimir Svyatski

    Wow, I'm impressed. Brand new encrypting technology - UTF8 :laugh: But it's not strong enough (like Latin1 as well). I strongly recommend to use something like UTF32. You know, additional 24 bits make it harder to decrypt. Or they could just use Japanese or Arabic characters. This will mislead an intermediate european or american hacker.

    The Weird and The Wonderful com tutorial

  • Code Optimize
    V Vladimir Svyatski

    BobJanova wrote:

    Interesting to see someone else who likes to do

    if(0 != ...)

    ... as well.

    This is called Yoda condition.

    The Weird and The Wonderful com code-review

  • What should you do if assigning is going to crash your application?
    V Vladimir Svyatski

    It's not only Pokemon exception handling, Smurf naming convention is also widely used in the application I took the snippet from. I just removed it from class name, because it leads in some way to the source of the snippet.

    The Weird and The Wonderful json help question

  • What should you do if assigning is going to crash your application?
    V Vladimir Svyatski

    I didn't spotted that initially (perhaps I was way too attracted by try/catch). But now I've fallen from my chair, thank you. :laugh:

    The Weird and The Wonderful json help question

  • What should you do if assigning is going to crash your application?
    V Vladimir Svyatski

    Another coding horror. Have you ever thought that usual assigning operation, like a=b, can crash your application? Not yet? You gotta be ready. One of my teammates has already prepared:

    public class InspectionMethod
    {
        private string name\_;
    
        \[XmlElementAttribute()\]
        public string Name
        {
            get
            {
                return name\_;
            }
            set
            {
                name\_ = value;
            }
        }
    
        //This method is the most interesting part
        public void Resuscitate()
        {
            try
            {
                name\_ = this.Name;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Serialization error has happened.",
                  MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
    }
    

    And indeed, never forget about message boxes. User must be warned, right?

    The Weird and The Wonderful json help 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