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
M

MAW30

@MAW30
About
Posts
149
Topics
84
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Multi-threading
    M MAW30

    I have all my data stored in DataTables, when I run my program using multi-threading I get an error message. I don't remember the exact wording but, it said index out of bounds of the array. However it does not appear to be out of bounds. When I run the program without using the multi-threading everything is fine. Also, most of my methods are static, I lock the datatables when loading data. I can't find where the problem exist, because where I believe the program line failed it does not show it as being out of bounds. Any help would be greatly appreciated, thanks in advance. Michael

    C# help database data-structures

  • Debug does not stop on errors.
    M MAW30

    Previously when debugging my program would stop if an error occured, this no longer works. Now I have to hunt down the error which takes hours sometimes. Is there an option / setting I can change in order to stop on the error as it occurs. I appreciate any help. Thanks in advance. Michael

    C# help debugging

  • Changing Caption in dt
    M MAW30

    I have hundred of DataTables and many of the caption names within do not match the column name. Is there a way I can change all captions to match column name.he follows code I tried.

    foreach (DataTable dt in dataSet.Tables) { foreach (DataColumn dc in dt.Columns) { if (dc.DataType == typeof(string)) { dc.Caption = dc.ColumnName.ToString(); } } }

    ' However this is not permanent and I don't see results. Is there a way to make this permanent. I appreciate any help and thanks in advance. Michael

    C# regex help

  • Get constant from column ordinal.
    M MAW30

    I need to use a DataTable's column number in a switch statement. I am having problems with the following: const Int32 xxxColumn = (Int32)DataTable.xxxColumn.Ordinal; switch (n) { case xxxColumn: ********; break; } How do I get a constant value from a DataTable column ordinal. Any help will be appreciated, Thanks in advance, Michael

    C# help question

  • Multi-threading Efficiency
    M MAW30

    That's not an option.

    C# question discussion

  • Multi-threading Efficiency
    M MAW30

    Can anyone please tell me what would be the most efficient way to calculate data. I have to calculate 10000 items with 1000 algorithms each. 1. Have 10 different groups of data 100 algorithms each in various parts of my program, where it locks and unlocks the DataTable when storing. or 2. Calculate 1000 algorithms all at once, locking and unlocking the DataTable only once. Because 2 is a larger set of data to calculate other processes might have to wait more. However 1 locks and unlocks many more times slowing down the process. What is considered the best practice or rule to follow. Thanks in advance, Michael

    C# question discussion

  • Retrieving data from a webpage
    M MAW30

    I solved the problem with help from the website, I needed to add authorization into the url. Thanks, Michael

    C# csharp dotnet agentic-ai help

  • Retrieving data from a webpage
    M MAW30

    Can anybody else possibly help with this. Thanks in advance, Michael

    C# csharp dotnet agentic-ai help

  • Retrieving data from a webpage
    M MAW30

    The following is the website: "http://finviz.com/screener.ashx?v=150&ft=4" however you have to pay for the service to get data, which will be "http://elite.finviz.com/screener.ashx?v=150&ft=4". Find the button export the url on that is "http://elite.finviz.com/export.ashx?v=150&ft=4" This is the actual url I use then add or don't add ".csv". if I enter the url in my browsers command line, the file is downloaded, but when I use c# I get html code.

    C# csharp dotnet agentic-ai help

  • Retrieving data from a webpage
    M MAW30

    yes

    C# csharp dotnet agentic-ai help

  • Retrieving data from a webpage
    M MAW30

    I am trying to get the csv file full of data not the html code.

    C# csharp dotnet agentic-ai help

  • Retrieving data from a webpage
    M MAW30

    I am trying to retreive data from a webpage with a label saying "export". The data is partially showing on the screen, if I manually click on "export" a window comes up and ask to save, save as, or cancel. I then save all data to my computer as a csv file. However when trying to get the data using c# I get the code behind "export" and not the data, code starts out as "". I am using the following code:

    WebClient webClient = new WebClient();
    webClient.UseDefaultCredentials = false;
    webClient.Credentials = new NetworkCredential(strUsername, strPassword);
    webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    webClient.DownloadFile(url, @strOutputFile);

    *note url is for "export". Can someone please point me in the right direction. Any help will be greatly appreciated. Thanks in advance. Michael

    C# csharp dotnet agentic-ai help

  • Security hacking
    M MAW30

    What do you think of the following: http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/

    C# security help question

  • Security hacking
    M MAW30

    Thanks, The information you gave me was very enlightening, I really like your last idea about polling. Michael

    C# security help question

  • Security hacking
    M MAW30

    Thanks, What other operating system do you recommend, and is it wise to go out a separate computer PC 3 or does it make any difference to go out the same way it went in (my original thought was it wouldn't be able to send data out the way it came in). Does the firewall operate along with the OS or is it completely different. Is there one I could buy that would meet my requirements or would I need to write it myself, if so suggestions where to start, C# code, etc.

    C# security help question

  • Security hacking
    M MAW30

    Thanks, "Your application runs as an .exe file? So how should someone steal that code? This might only work if he steals your .exe file." This is what I am worried about I understand that it is possible to download everything on your computer. Data coming and going I do not care about, I spent years developing the software, if it got into someone else's hands it will have been a waste of time.

    C# security help question

  • Security hacking
    M MAW30

    Thanks, By what you wrote above it sound like data can travel in both directions, can I block data going in one direction, if not then machine 3 is unnecessary.

    C# security help question

  • Security hacking
    M MAW30

    Thanks, if I build my own firewall and only allow specific data to enter, can I block everything else. I want to have my code on a separate computer which only allows one direction of data so my code can not be copied. Any results go to the next computer allowing only certain types of data, then sent to the internet.

    C# security help question

  • Security hacking
    M MAW30

    Thanks for your input, I read about Security DMZ and it doesn't appear to be as secure as I would like it to be. I want something that is absolutely full proof.

    C# security help question

  • Security hacking
    M MAW30

    I an worried about hackers breaking into my program. I was wondering if I could separate my program into three parts on three different computers: 1. Has access to the internet and collects data and transfers data to the second computer. 2. Analyzes data and sends results to part three. 3. Has access to the internet and returns results. I do not want any data getting to the second computer, except the specific data and in one direction only. The same goes for part 2. Is this possible? How would I go about doing this? Any help would be greatly appreciated. Michael

    C# security 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