we had this ftp in our company that one day appeared full of porn apparently anonymous access to the ftp was enabled
Camilo Sanchez
Posts
-
Worst security flaws -
Datingsame happened to me, I just couldn't see what was wrong
-
ModusOperandilol
-
Beware while using Japanese language:wtf:
-
ModusOperandiI 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:
-
Now I'm sure to be NILDo you hear me nil?? you are nil!!! always remember it
-
One of those bad days and now i find stuff like this...lol no, I have some lil' jewels of my own but no, that one isn't mine
-
One of those bad days and now i find stuff like this...you're right
-
Really big VS rantOh 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
-
Nullabilityatasticyou're missing the point, the post is not about Nullable types but Nullable people
-
JPEG thumbnail extractionThat 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
-
JPEG thumbnail extractionHello, 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
-
"team" workDo 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
-
VS 2008 CrashesThis 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.
-
'Item': member names cannot be the same as their enclosing typeThat'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
-
WPF idle application freezesthanks man, I'm gonna try that right now, but I don't think its gonna make a difference
-
WPF idle application freezesHi, 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; }
-
distributed computing??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
-
distributed computing??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;
-
proxi authentificationbefore 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