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
C

Camilo Sanchez

@Camilo Sanchez
About
Posts
21
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Worst security flaws
    C Camilo Sanchez

    we had this ftp in our company that one day appeared full of porn apparently anonymous access to the ftp was enabled

    The Weird and The Wonderful security beta-testing question workspace

  • Dating
    C Camilo Sanchez

    same happened to me, I just couldn't see what was wrong

    The Weird and The Wonderful

  • ModusOperandi
    C Camilo Sanchez

    lol

    The Weird and The Wonderful

  • Beware while using Japanese language
    C Camilo Sanchez

    :wtf:

    The Weird and The Wonderful

  • ModusOperandi
    C Camilo Sanchez

    I found this jewel in my company's codebase check the name of the Enum on the second line

    szError = PrnError.GetLoadImgError(iflRet);
    Done(szError, ModusOperandi.ImageErrorMgr);

    :laugh:

    The Weird and The Wonderful

  • Now I'm sure to be NIL
    C Camilo Sanchez

    Do you hear me nil?? you are nil!!! always remember it

    The Weird and The Wonderful sales code-review

  • One of those bad days and now i find stuff like this...
    C Camilo Sanchez

    lol no, I have some lil' jewels of my own but no, that one isn't mine

    The Weird and The Wonderful question

  • One of those bad days and now i find stuff like this...
    C Camilo Sanchez

    you're right

    The Weird and The Wonderful question

  • Really big VS rant
    C Camilo Sanchez

    Oh yes, I've had these, I have at work a solution with 40 projects and every day I need to close VS at least once because of System.OutOfMemoryException thrown out when building The other day I was debugging something with ten threads, and I pressed F10 and the darn thing acted like I pressed F11 and stepped into a method call from a different thread that I wasn't debugging Besides it wasn't even half responsive while debugging

    The Lounge c++ visual-studio architecture

  • Nullabilityatastic
    C Camilo Sanchez

    you're missing the point, the post is not about Nullable types but Nullable people

    The Weird and The Wonderful question learning

  • JPEG thumbnail extraction
    C Camilo Sanchez

    That seemed pretty cool the thing is, it is still too slow. I set the folder view to thumbnails in Windows Explorer and it takes forever to display the thumbnails. Right now I'm testing that, and after 10 min, only 3 thumbnails have been shown. I need something to extract the JPEG exif thumbnail. but thanks

    C# hardware

  • JPEG thumbnail extraction
    C Camilo Sanchez

    Hello, I need to show thumbnails for lets say, 4000 .jpg files in a SD card, is there a simple way to read the thumbnail embedded in the Exif of the JPEG file header. I'm asking this 'cause calling Image.GetThumbnailImage is gonna take forever thanks

    C# hardware

  • "team" work
    C Camilo Sanchez

    Do the things the right way, if the original code was crappy replace it, with your good code. As long as your are really sure the original code is crappy, and your is better, the boss won't mind, I can tell

    The Lounge collaboration regex help

  • VS 2008 Crashes
    C Camilo Sanchez

    This is kind of obvious but it helps me when my VS crashes, which it does at about twice a week. Try close the solution, and the VS, then restart Windows, and everything should work after reboot. Sometimes when I build my 26-project-ever-growing solution I got StackOverflowException in the ErrorsPanel. Then I do what I told you and it works. Clean the solution, usually works too.

    Visual Studio visual-studio com tools question

  • 'Item': member names cannot be the same as their enclosing type
    C Camilo Sanchez

    That's right, imagine this:

    class Dog
    {
    public string Dog //error: you can't do this
    {
    get
    {
    return "Fido";
    }
    }
    }

    The only member names that can be the same as their enclosing type are constructors. In your case the indexer, named Item, is named like its enclosing type and is not a constructor, so, that's where your problem is coming from. To fix this, change The name of the class

    The Weird and The Wonderful csharp help

  • WPF idle application freezes
    C Camilo Sanchez

    thanks man, I'm gonna try that right now, but I don't think its gonna make a difference

    WPF csharp wpf

  • WPF idle application freezes
    C Camilo Sanchez

    Hi, I'm developing a WPF application that seems to work fine, but after an long inactivity period, when the user clicks something it freezes for a while then it runs normally. This is the only application running in that computer, so I don't know what could be causing this. In my application I need to check the time between user clicks so I'm intercepting Windows messages like this: void Window_Loaded(object sender, RoutedEventArgs e) { ResetTimeoutChecker();//reset the timer that does something HwndSource source = HwndSource.FromHwnd(new WindowInteropHelper(this).Handle); source.AddHook(new HwndSourceHook(myWndProc)); } private static IntPtr myWndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == 0x0201)//if is a click then reset the timer that does something ResetTimeoutChecker(); return IntPtr.Zero; }

    WPF csharp wpf

  • distributed computing??
    C Camilo Sanchez

    hey man thanks for your answer. but I do check for n*(n^2+1)/2, this is the N property of my class, and the method isMagicSquare returns false if there is a single row or column wich sum is different from N. I made a multithreaded approach in a newer to solve the problem, but it still takes too long. but thanks anyway and sorry for the long code. I thought it will be smaller

    C# csharp question linq graphics code-review

  • distributed computing??
    C Camilo Sanchez

    Hi everyone, I'm supposed to make a program that finds all the magic squares of size 6, but there are 36! possible combinations of squares to check, so my programs runs forever, perhaps with a million servers I could actually find a solution, so here is my question: Anyone knows a way of running my C# application in multiple computers at the same time? Here is my code, perhaps anyone can improve it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Linq; using System.Threading; namespace MagicSquare { public partial class Form1 : Form { Thread bgWorker = null; public Form1() { InitializeComponent(); } struct StateInfo { public int Size { get; set; } public bool PanMagic { get; set; } } private void threadMethod(object state) { MagicSquare msq = new MagicSquare(((StateInfo)state).Size, ((StateInfo)state).PanMagic); msq.FindEnd += new EventHandler(msq_FindEnd); msq.FindStart += new EventHandler(msq_FindStart); msq.MagicSquareFound += new MagicSquare.MagicSquareEventHandler(msq_MagicSquareFound); msq.FindMagicSquares(); } void msq_MagicSquareFound(object sender, MagicSquare.MagicSquareEventArgs e) { StringBuilder temp = new StringBuilder(textBox1.Text); temp.Append("---START---\r\n"); for (int i = 0; i < e.Matrix.GetLength(0); i++) { for (int j = 0; j < e.Matrix.GetLength(1); j++) temp.Append(string.Format("{0}{1}", e.Matrix[j, i], j + 1 == e.Matrix.GetLength(0) ? string.Empty : ", ")); temp.Append("\r\n"); } temp.Append("---END---\r\n"); textBox1.Invoke(new ParameterizedThreadStart(delegate(object state) { textBox1.Text = (string)state; }), temp.ToString()); } void msq_FindStart(object sender, EventArgs e) { working = true; textBox1.Invoke(new ParameterizedThreadStart(delegate(object state) { textBox1.Text = (string)state; }), string.Empty); } void msq_FindEnd(object sender, EventArgs e) { working = false;

    C# csharp question linq graphics code-review

  • proxi authentification
    C Camilo Sanchez

    before anyting thanks for your reply and have a happy new year i was trying to understand what i was asking for and i couldnt understand a shit anyway i either understang anthing of what you answer me what i was trying to do was a web application that, using forms authentication authenticate users from a db and could even create new users i wish you could tell me how can i do the first thanks

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