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
I

icestatue

@icestatue
About
Posts
26
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Why are so many people using WPF let alone Microsoft
    I icestatue

    I am not sad to say that Microsoft needs to just quit making software! I have been a big supporter of Microsoft for years but lately all they produce is garbage. I understand the basic Ideology of MVVM for applications but WPF is terrible at delivering this. It used to be a simple task to wire up a simple combo box to display a list of options but with WPF its not so simple. In fact when I started to ask questions about how to do it the only response I get was "ummm.... I have to look at your code" no one seems to have a simple response. Even researching online I never see a clear example not even from Microsoft's own site. So if the company that wrote this can't provide a simple example why are so many people dedicated to make this shit work. The entire platform is not obvious and the learning curve is too steep. Additionally, it seems that performance of these applications is terrible and buggy. Yet you see the demand for everyone to have this skill set from employers. A framework should deliver the following features to developers: stability of execution, obviousness of design, simplicity, and hopefully a reduction of effort. If you can't ensure these traits don't deliver a product, you will just weaken the end user. I don't feel that WPF delivers any of these traits. In fact a much broader statement could be made here Microsoft as a company no longer supplies this, or maybe it never did. I started looking back at everything Microsoft has produced and I realized its just a lousy provider of software in general. I kind of wish more people would abandon these products for the sake of pressuring these industry giants to start providing better solutions. If we as a community continue to accept inferior tools to do our jobs it will only become more difficult to progress forward. I know that some people will say "well if you don't like Microsoft what would you use in place of it?" The answer is I don't have a good answer to that one. There are so many lousy software companies out there that provide bottom of the barrel products that there is no safe haven for anyone. I see too many times that people generate so many patches or hack code to work around platform bugs that I wonder what would the software look like if you didn't always have to fix the code before you work on your own problem. If you eve wonder why you have so many service calls start looking at the underlying problems with the framework you have chosen you may find your answer there.

    nothing

    Work Issues wpf help tutorial csharp design

  • I need some advice for a Python app calling a C++ library function.
    I icestatue

    Well Thanks for taking a stab at it, I know this post wasn't much to work with but I am dealing with various constraints none the less. I have not found an answer for this behavior yet, but I will continue to look for one.

    nothing

    C / C++ / MFC c++ python graphics tools performance

  • I need some advice for a Python app calling a C++ library function.
    I icestatue

    I have a C++ application that has 3 functions. The first is the standard int main entry point function. The other function is a simple test function void Test(). And finally the 3rd is a analysis function that takes several parameters one of which is a std::vector. Both the main and Test function pass the same parameters to this analysis function. In theory these 2 functions should return identical results. However they don't. The main function is called from a command prompt and the other function is called from a python script. I have eliminated marshaling issues by not passing parameters to or from the Python environment. The Python environment simply calls the test function. However after placing print statements throughout the library I have seen that the results are completely different. Does anyone know of any memory model issues or threading issues that can occur between these 2 environments that might lead to something like this.

    //declarations
    void Test();
    void Do(std::vector &x, int search);

    int main(int argc, char* argv[]) //called from command line.
    {
    std::vector x; //some data here
    int search =8; //some param here
    Do(x,search);
    }

    void Test() //called from Python
    {
    std::vector x; //some data here
    int search =8; //some param here
    Do(x,search);
    }

    void Do(std::vector &x, int search)
    {
    //...Something here, possibly some vector juggling and new objects created as needed
    }

    I don't want to bother with the Python code here though it just calls the test function...it appears to run so, not sure what else it has to do other than wait for the C++ library to finish.

    nothing

    C / C++ / MFC c++ python graphics tools performance

  • The way I think about Diagnostic tools
    I icestatue

    This post needs a bit more information. It doesn't have a good structure to the content and it doesn't say much about techniques. If you are the moderator of this post go into more detail about the subject give a suggestion for tools and techniques to make it more appealing.

    nothing

    The Insider News csharp visual-studio com debugging tools

  • Linq2Horror
    I icestatue

    I agree most people don't use the View White Spaces option in edit and the readability of source code goes to hell when people are not maintaining a consistent spacing. There is also the benefit that using tabs also results in smaller files so there is less demand for storage for Source control history for files this way. In larger projects its noticeable.

    nothing

    The Weird and The Wonderful csharp database linq question discussion

  • Everything That Has a Beginning Has an End (Eventually)
    I icestatue

    I was exposed to a similar situation but it didn't involve an auto generated tool so much as a terrible programmer. We had a stored procedure that used 13 parameters to be used as filters for a set of data that we would return to the users. After getting a complaint that the filter was acting strange I was told to review the procedure to find the bug. When I opened the procedure I noticed that an if then else chain of about 3000 combinations of variations of the select statement had been hand written to account for every scenario that could exist. The only problem was that we figured that this was only a small fraction of the coverage of code needed to work correctly we also noticed when coping the procedure it was more the 5 megs in length. We were able to shorten the script to about 12 lines of code when we finished it.

    nothing

    The Weird and The Wonderful database csharp linq com

  • Jumping on the Band wagon
    I icestatue

    I have no idea why so many people are touting the new MVC3 model and Razor view engine. My point here is when classic ASP was the thing we mixed code and HTML on the same page and by god does it look like hell when you do. So when Microsoft allowed you to inline code into your application it really did nothing to stop lousy code practices. And placing all the logic into the code behind was a much cleaner separation of concerns then ASP ever was. But now we have come full circle with Razor which promotes mixed mode files again. Granted it looks better then classic ASP it doesn't look as clean as ASP.NET using code behind. There still needs to be a better way for auto generated code to be passed around without resorting to concatenation of mixed forms of code. Its just sloppy.

    nothing

    The Weird and The Wonderful asp-net csharp html

  • Old news but worth noting Graphics.FromHwnd and Spy++
    I icestatue

    I went looking for a resolution to a small problem with using Graphics.FromHwnd and getting an OutOfMemory Exception. It turns out if the handle number that is entered is invalid, then this exception is thrown. If you are using Spy++ to retrieve handle numbers keep in mind that these numbers are in Hex and need to be converted to base 10 format if you want this to work or try something like this TryParse statement to convert the Hexadecimal numbers for you.

    int.TryParse(textBox1.Text, System.Globalization.NumberStyles.AllowHexSpecifier, null, out _int)

    nothing

    The Lounge graphics help announcement

  • Go to Hell
    I icestatue

    Afraid not, those numbers are correct. ....I'll bring the mop!:~

    nothing

    The Weird and The Wonderful csharp com sales tutorial question

  • Go to Hell
    I icestatue

    I got one better. The other developer here wrote: DataRow Dr; if( ((string)Dr["Col"]).ToString() != "false") return true; else return false; The biggest problem is that the value was stored in the database as a non nullable boolean value. She also wrote a stored proc that was more than 265 pages or roughly 5 megs worth of code. She didn't know how to write a query to test for null parameter so she wrote one query for ever parameter combination for the procedure that had 10 parameters. So effectively 2^10 number of combinations. I hope someone dumps her sorry behind, she gives programmers a bad name.

    nothing

    The Weird and The Wonderful csharp com sales tutorial question

  • ASP.NET Session refuses to expire.
    I icestatue

    I hate asking if anyone knows why my .net web application refuses to expire. Basically, a user visits a document listing page, then if they click on a link after the timeout .net is regenerating the session on the next page request. Does anyone have an idea on why this is happening and how to stop it.

    nothing

    The Lounge csharp asp-net tutorial

  • Required Field Validator
    I icestatue

    All I have to say is what the F**K was microsoft thinking when they made the textbox component this way. Microsoft left no easy way to trap the error code coming off a detected client side script attack. It makes no sense that there is no event to capture when a detected validation has failed. The work arounds to make something as simple as string x = Textbox.Text; is rediculous. If you work at Microsoft and you read this all I have to say is EAT MY ASS!

    nothing

    ASP.NET help tutorial

  • SiteMaps a lost cause!
    I icestatue

    The fact that they used a provider pattern makes sense and I have no problem with that aspect. However, the idea that the component can only model Trees is a bit limited. Many sites typically have more complex connectivity then a tree is able to describe. Any resolution to this will always seem forced and cumbersome. :|

    nothing

    Design and Architecture question csharp design help

  • SiteMaps a lost cause!
    I icestatue

    So This is what I found. The SiteMap is flawed because it assumes that every site can be modled as a Tree structure. Given a site that models a network topology and it crashes. I would guess most sites actually model a real network rather then a tree. The reason you can't model a network for a SiteMap is simple. Given any two nodes in the network you can not assume any one path will lead from node to node. Hence resolution of the path fails. Typically this causes the developer to try a variety of other approaches to resolve this ambiguity of path.

    nothing

    Design and Architecture question csharp design help

  • Response.BinaryWrite
    I icestatue

    Try to put the Byte array into a MemoryStream first. I had the same problem. I also found that Adobe is a crap product in general. Try checking to see if a message box appears behind your Web Application. Sometimes the application hangs up waiting for you to address a message box hiden behind your app. I might be able to dig up my original sample but now it is late for me I must go.

    nothing

    Clever Code question

  • SiteMaps a lost cause!
    I icestatue

    Is Microsoft planning to upgrade the SiteMap object in .NET 2.0 to actually work or is the underlineing design intrinsically flawed? This is the question I asked myself repeatedly in the last few days and I think I finally was able to understand why the SiteMap object will never truely represent most site maps correctly. Before I explain the issue I wanted to know what others thought.:confused:

    nothing

    Design and Architecture question csharp design help

  • http://localhost not working.
    I icestatue

    Check and make sure that C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll is assigned to the Aspx extention in you application mapping dialog. You may have not installed .NET

    nothing

    ASP.NET help html sysadmin windows-admin

  • Crystal Report Problem in asp.net/vb.net
    I icestatue

    Welcome to developing with Crystal Reports, the worst reporting application ever!

    nothing

    ASP.NET help csharp asp-net design

  • How do I connect from a Webfarm not on domain to a server on a domain?
    I icestatue

    Check if you have access rights on the table you are trying to view. If the account you log on with the connection string doesn't match the table access rights you may get that message. Thats one possible check. There is also a connection attribute that needs to be assigned for DataReaders to work correctly. Asynchronous Processing=true; I believe Good luck

    nothing

    ASP.NET question database sysadmin csharp

  • SiteMapPath stability concerns
    I icestatue

    I have some concerns about the stability of the SiteMapPath control for ASP.NET 2.0. First the programmatically modify SiteMap Nodes in Memeory described at ms-help://MS.MSDN.vAug06.en/dv_aspnetcon/html/76f0cf95-d0fd-44c9-8a07-93173beb6e22.htm changes the nodes, however, it seems to be called each time you navigate forward or backwards. So each page node is overwritten with the same info. It seems the static method call for assigning this is the issue. Second after reopen the web browser the Crumb trail displays the incorrect path. I typically have to restart the web server in order to clean it out of state. Third SiteMapPath crashes if it detects more then one node pointing to the same url. Does any one know of how to fix any of these problems? It seems that Microsoft has not bothered to test this control before releasing it. (Suprise Suprise!):mad: I think I will need to make a new SiteMapPath object that works. This control is too problematic to be taken seriously.

    nothing

    ASP.NET help csharp html asp-net sysadmin
  • Login

  • Don't have an account? Register

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