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
A

Are Jay

@Are Jay
About
Posts
140
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Single Array Vs 2D Array to represent a Matrix...
    A Are Jay

    Thanks you for you help and insight was extremely helpful, thanks again. Robert Fidler

    I'm listening but I only speak GEEK.

    C# performance visual-studio data-structures

  • Single Array Vs 2D Array to represent a Matrix...
    A Are Jay

    harold aptroot thank you for your insight on MD Arrays. "A list inside the matrix" is miss leading. I will have an initial datasource of Objects that I will reference by Id so once/while I iterate through the relationship matrix I can return a List. Robert Fidler

    I'm listening but I only speak GEEK.

    C# performance visual-studio data-structures

  • Single Array Vs 2D Array to represent a Matrix...
    A Are Jay

    1. It will be a sparse matrix. 2. Natual ordering, I am not familiar with this term but after a quick google search I don't beleive I will be. Will look more like "Nested". 3. Yes I will be using an integer indices to access the matrix. 4. No matrix manipulation, I have not found a reason yet to do this. If I find that I can in the future it would be nice. An example of useages for the matrix: - Find all the children and childrens-children for Object.Id 456. - Find all the parents for the Object.Id 456. At this time it will be a simple 2D datastore of relationships. Robert Fidler

    I'm listening but I only speak GEEK.

    C# performance visual-studio data-structures

  • Single Array Vs 2D Array to represent a Matrix...
    A Are Jay

    Single dimension array Vs Multiple dimension array. - speed/performance - memory footprint I will be storing Object relationships and permission information so I will need to quickly return a list of Object Ids/Reference Objects inside the matrix. I am looking for anyones experience with both types of array usages, pitfalls, performance/memory issues, and overall preferences. Robert Fidler

    I'm listening but I only speak GEEK.

    C# performance visual-studio data-structures

  • Troubles Drawing a Rubik Cube to windows form.
    A Are Jay

    First - The code used to create my version of a rubik cube was created by Peter Szilagyi; Arcus Applet - Rubik's Cube Simulator Applet. His code is not the problem it's the way I have implemented it into a windows form. Second - It is entirely to hard to copy and paste code snippets of the code to show what and where it is doing the re-draw of the cube and it's cubie's so I have posted a .rar file with the entire window's project and I will reference methods within this project. RubikCube Project[^]. Basic layout of the application uses RubikCube : Control. Within the RubikCube I am overriding the mouse events to move the cube and on paint event to draw the cube. In the Mouse Move Event I call: rbx_mouse_X, rbx_mouse_Y are where the mouse was and _event.X, _event.Y is where the mouse current is.

    axisRotX(Math.PI * (rbx_mouse_Y - _event.Y) / rbx_dimension.Height);
    axisRotY(Math.PI * (_event.X - rbx_mouse_X) / rbx_dimension.Width);

    axisRotX then calls:

    _vector[rbx_Y] = _vector[rbx_Y] * Math.Cos(_angle) - _vector[rbx_Z] * Math.Sin(_angle);
    _vector[rbx_Z] = _vector[rbx_Z] * Math.Cos(_angle) + _vector[rbx_Y] * Math.Sin(_angle);

    and so on... I the issue occurs when the mouse movements are quick the cube begins to decrease in size and distorts. I have a series of static values that the cubie's ( a sub class of Rubik Cube ) access during their paint method. I am not sure on the best way to architect the class layout to get the desired results but it seems the mouse move events are happening out of sequence and causing the cube to disfigure. Any thoughts, constructive criticism, or suggested reference materials to help would be appreciated.

    I'm listening but I only speak GEEK.

    C# help com graphics discussion announcement

  • APS.Net 2.0 Large File Download
    A Are Jay

    This would work but I still run into the content/type restrictions which could be changed prior to download. This creates a new issues:   -How to update filename and file type once it file reaches the client's PC. I am unable to rely on the client to have the ability to rename the file (half the time they don't know where it went once it was downloaded). I would accomplish his if I used an ActiveX control on the client's PC. Not an ideal solution but still plausible. I would prefer purchasing a control that handles all of this for me. I don't have allot of time available to me for this project and am looking for a quick fix. I also need to update the Upload functionality to allow multiple files and folder uploading so my thoughts where to purchase a control that kills multiple birds with one stone. Thanks for all your assistance in helping me come to a solution.

    I'm listening but I only speak GEEK.

    ASP.NET csharp asp-net sysadmin performance tutorial

  • APS.Net 2.0 Large File Download
    A Are Jay

    Restrictions:   -Firewall restrictions will not allow me to pass specific file types.   -Upon upload the file is appended with a hashed value as a file extension (to prevent execution of uploaded files).   -Currently I have a getFile.aspx?file-id=[id] that returns the file. My understanding of a hyperlink via [filename] vs. [getFile.aspx]:   -[filename]: allows IIS to handle the transfer of the file (more efficient of the 2 choices).   -[getFile.aspx]: is not registered with IIS so it is managed at the code level. Is my understanding correct?

    I'm listening but I only speak GEEK.

    ASP.NET csharp asp-net sysadmin performance tutorial

  • APS.Net 2.0 Large File Download
    A Are Jay

    I have a pre-existing web application that moves files through HTTPS protocol between client and server. I have create an AJAX upload ( over 2 years ago so my knowledge of AJAX at the time was limited). Now I am re-visiting the application because I used the traditional methods for downloading a file ( code snippet below ). We have noticed that downloads of files that exceed 1 gig are killing our web server. My questions are:   -How to handle a chunked downloads so I am not loading every bit into memory then sending it.   -Has anyone used a purchased asp.net control that handles both Uploads/Downloads of large file(s) that they would recommend using.

    try
    {
    if (File.Exists(fullFilePath))
    {
    using (StreamReader _streamReader = new StreamReader(fullFilePath))
    {
    using (Stream _stream = _streamReader.BaseStream)
    {
    Response.Clear();
    Response.AddHeader("content-disposition",
    String.Format("attachment;filename={0}", Path.GetFileNameWithoutExtension(fullFilePath)));
    Response.Charset = "";
    Response.Cache.SetCacheability(HttpCacheability.Public);
    Response.ContentType = DataAccess.GetMIMEType(Path.GetExtension(fullFilePath));
    Response.BufferOutput = false;

        byte\[\] \_buffer = new byte\[1024\];
        int \_counter = \_stream.Read(\_buffer, 0, 1024);
        while (\_counter > 0)
        {
          Response.OutputStream.Write(\_buffer, 0, 1024);
          \_counter = \_stream.Read(\_buffer, 0, 1024);
        }
    
        Response.End();
    
      }
    }
    

    }
    }
    catch (Exception)
    { }

    All comments will be helpful and appreciated, thank you.

    I'm listening but I only speak GEEK.

    ASP.NET csharp asp-net sysadmin performance tutorial

  • SQL Membership PRovider
    A Are Jay

    Using SQL Server Managment Studio import the database from old tables to new tables. This should be quick and painless process. Hope this gets you rolln' Robert Fidler

    I'm listening but I only speak GEEK.

    ASP.NET database csharp visual-studio tutorial question

  • SQL Membership PRovider
    A Are Jay

    aspnet_regiis.exe[^] The above link will walk you through creating the required tables, views, and stored procs. In your case, just select the web applications current database. Hope this helps. Robert Fidler Springfield, Missouri

    I'm listening but I only speak GEEK.

    ASP.NET database csharp visual-studio tutorial question

  • Looking for help getting started...
    A Are Jay

    thats perfict. this article is exaclty the starting point I was looking for. THANKS!!

    I'm listening but I only speak GEEK.

    C# csharp database algorithms help

  • Looking for help getting started...
    A Are Jay

    Thanks for your reply. The data I am looking to gather is published on sporting sites and is about 40% accurate. This is where my problem lys. I am looking to research how video surveillance cameras track objects on low res video. Example: video_tracking[^] This is an extreme example... I am looking to gather an x and y location (reading ever x milliseconds) of the object as it travels around a track. Looking for help finding an algorithm that breaks down a video frame by frame and detects objects. That would help me start.... Thanks Robert Fidler Springfield, Missouri

    I'm listening but I only speak GEEK.

    C# csharp database algorithms help

  • Looking for help getting started...
    A Are Jay

    My initial post may have been a little misleading. I am looking to follow races, (greyhound, horses, and automoblies ). I am looking to follow the entire race and track the movements, behaviors, etc... Thank you for your post. I will google OCR and start with that. Thanks Robert Fidler, Springfield, Missouri

    I'm listening but I only speak GEEK.

    C# csharp database algorithms help

  • Looking for help getting started...
    A Are Jay

    I am an advanced .net web developer and am looking to create an application that will WATCH sporting event videos and report statistics, results and other data into a database. I understand the scale of this project and complexity and am ony looking for keywords and phrases that will help me start my research. Again, I am NOT looking for code. Maybe similar software uses a similar approach or again keywords that I may use to start my research. Thank you, Robert Fidler Springfield, Missouri.

    I'm listening but I only speak GEEK.

    C# csharp database algorithms help

  • New to mobile web application development...
    A Are Jay

    I have an existing web application that I am modifying for mobile devices and need a list of the different browser types and what phone that belong to. I am looking to gather a group of emulators for testing. Any helpful articles that will get me started would also be appreciated.

    I'm listening but I only speak GEEK.

    Mobile testing beta-testing

  • Treo 600 application
    A Are Jay

    I'm looking for someone or good resources to write my own application for the treo 600 and I need help getting started. I'm a C# programmer and have no experience with mobile devices. Any advice will be helpful.

    I'm listening but I only speak GEEK.

    Mobile csharp help

  • Sync between a local and remote Dataset
    A Are Jay

    private void CompaniesCompare() { rowsAdded = 0; rowsDeleted = 0; rowsUpdated = 0; start = DateTime.Now; // This will update and add the rows m_parentProcess.OnPostMessageEventHandler( this, new MigrationEventArgs( "\tcomparing company data." ) ); foreach ( dsLogPro.CompaniesRow row_Raw in ds_Raw.Companies.Rows ) { dsLogPro.CompaniesRow found_Local = ds_Local.Companies.FindByCompanyCode( row_Raw.CompanyCode ); if ( found_Local != null ) { if ( !found_Local.Equals( row_Raw ) ) { // raw will trump local foreach ( DataColumn col in ds_Local.Companies.Columns ) { found_Local[ col ] = row_Raw[ col ]; // update local with raw } rowsUpdated++; } } else { // this must be a new row found_Local = ds_Local.Companies.NewCompaniesRow(); foreach ( DataColumn col in ds_Local.Companies.Columns ) { found_Local[ col ] = row_Raw[ col ]; // update local with raw } ds_Local.Companies.Rows.Add( found_Local ); rowsAdded++; } UpdateProgressBar(); } // This will remove un-needed rows foreach ( dsLogPro.CompaniesRow row_Local in ds_Local.Companies.Rows ) { dsLogPro_Live.CompaniesRow found_Raw = ds_Raw.Companies.FindByCompanyCode( row_Local.CompanyCode ); if ( found_Raw == null ) { // was not present in the raw so remove it. ds_Local.Companies.Rows.Remove( row_Local ); rowsDeleted++; } UpdateProgressBar(); } } This is what I have ended up with and would like someone elses opinion on the code. I'm listening but I only speak GEEK.

    C# announcement database performance help

  • Sync between a local and remote Dataset
    A Are Jay

    foreach ( dsLogPro.CompaniesRow row_Raw in ds_Raw.Companies.Rows ) { dsLogPro.CompaniesRow found_Local = ds_Local.Companies.FindByCompanyCode( row_Raw.CompanyCode ); if ( found_Local != null ) { if ( !found_Local.Equals( row_Raw ) ) { // raw will trump local foreach ( DataColumn col in ds_Local.Companies.Columns ) { found_Local[ col ] = row_Raw[ col ]; // update local with raw } } } else { // this must be a new row found_Local = ds_Local.Companies.NewCompaniesRow(); foreach ( DataColumn col in ds_Local.Companies.Columns ) { found_Local[ col ] = row_Raw[ col ]; // update local with raw } ds_Local.Companies.Rows.Add( found_Local ); } } This is the direction I'm currently moving towards. I don't believe the tables will change but the columns might change in the future so I'm really trying to keep this flexable. I'm listening but I only speak GEEK.

    C# announcement database performance help

  • Sync between a local and remote Dataset
    A Are Jay

    I am looking for an help in the best way to accomplish a sync between two dataset of the same type. Meaning I have a LOCAL and REMOTE version of the database and I'm needing to sync them nightly. I have a web service that will accept a dataset and update the REMOTE version but because of a large amount of data I have a LOCAL copy that represents the REMOTE version. I first parse in data from flat files into a RAW virsion and need to sync data between the RAW and LOCAL versions, ( RAW will trump the LOCAL). I then use a web service to pass ONLY the changed data to the REMOTE version of the database. Overall I'm looking of and easy, processor and memory friendly way to sync this data. Any and all ideas on the topic would be helpful.

    I'm listening but I only speak GEEK.

    C# announcement database performance help

  • help needed for Dictionary concept
    A Are Jay

    I have two different ways:

    // Cleaner less controll over the dictionary
    private Dictionary<> innerTable;
    private Dictionary<>>> outterTable;
    
    public DataAccessLayer()
    {
      innerTable = new Dictionary<>();
      outterTable = new Dictionary<>>>();
    
      innerTable.Add( "stringKey", 12312.012 );
      outterTable.Add( "anotherStringKey", innerTable );
    }
    
    
    
    // Longer but you'll define both dictionaries
    // and how all the methods work.
    public class UsingMyNewCollections
    {
      // default constructor
      public UsingMyNewCollections()
      {
        InnerDictionary inner = new InnerDictionary();
        inner.Add( "StringKey", 1213.0123D );
    
    
        OutterDictionary outter = new OutterDictionary();
        batchTable.Add( "SomeKeyString", outter );
      }
    }
    
    public class OutterDictionary : IDictionary<>
    {
      // private field for the class
      private Dictionary<> m_outterDictionary;
    
      // default constructor
      public OutterDictionary()
      {
        m_outterDictionary = new Dictionary<>();
      }
    
      public void Add( string key, InnerDictionary value )
      {
        // Validation on passed in values
        // ...
    
        // Add your value
        m_outterDictionary.Add( key, value );
      }
    
      #region IDictionary<> Members
      // code
      #endregion
    
      #region ICollection<>>> Members
      // code
      #endregion
    
      #region IEnumerable<>>> Members
      // code
      #endregion
    
      #region IEnumerable Members
      //code
      #endregion
    }
    
    public class InnerDictionary : IDictionary<>
    {
      // private field for the class
      private Dictionary<> m_innerDictionary;
    
      // default constructor
      public InnerDictionary()
      {
        m_innerDictionary = new Dictionary<>();
      }
    
    &n
    
    C# csharp help tutorial
  • Login

  • Don't have an account? Register

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