- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 61
- Posts with Upvotes
- 49
- Upvoting Members
- 31
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
I am a college graduate with a degree in Computer Science Security. Ever since learning Java my freshman year, I have fallen in love with code. Currently my preferred language is C# for project (I also like to write SQL when I get the chance)
- PC Specs
- Intel Core i7-920 @ 2.67GHz; Corsair XMS3 2GB DDR3 - 1333MHz (x6); Seagate Barracuda 1TB Sata; Seagate…
282 Posted Topics
Re: Are you trying to keep a running counter that every new item you index is on a new row? (kind of like you would do if you inserted into a SQL server database)? If the code isn't working you may want to check this link http://csharp.net-informations.com/excel/csharp-excel-oledb-insert.htm It appears to be … | |
Re: If you still haven't figured it out let us know, I wrote some code awhile back that did a lot of work of reading and writing to an excel file and would be more then glad to share it if you need (I'll have to dig it up) | |
Re: You shorted your motherboard! I accidently did this and would get similar problem as you. Now I just recently had a problem that I finally fixed thanks to a friend. I would have this issue where I would turn on my PC and everything would boot up fine, except no … | |
Re: WEll I stumboled on this threat as I to have been having issues with my GPU. I woke up one morning to wake the system to find that the system woke up but no matter what monitor (or TV) i used I got no image. I have run into this … | |
Re: What your asking isn't that easy. I mean you could insert any photo you want, but that doesn't guarantee the color you will get. Now I have a theory how this might work, it's a long shot, but you could give it a try. First you have a collection of … | |
Re: Interesting design. I have actually been working on a few of these myself. After really learning SQL at my job, I have written one for connecting and interacting with like SQL/Oracle/AS400/IBMDB2, as well as one for SQLite. Have to say, the approach you took, and your design is somewhat different … | |
Alright this one has me stumpted. I have a piece of code to do TCP Listening running on a thread that was executed from the ThreadPool, using this little one liner `ThreadPool.QueueUserWorkItem(ServerListener);`, that will continue to run until a status flag is altered. When the thread has ended I need … | |
Re: I know this is solved, but I wanted to bring something up in that you should really think about the security related to storing these finger prints. Long story short, my last year of college was a granduate level class on Applied Cryptography. For my final paper I focused on … | |
Re: Security program to do what exactly? Encrypt a password? Authenticate a key? | |
Re: Hey marcolanza24 If I am reading this correctly, you want each individual word as its own element in the collection (in relation to a line). You could try something like foreach (string line in File.ReadAllLines(@"..\..\InputApriori.txt")) { itemsDataList.Add(new DataSets() { line.Split(new char [] {' '}, StringSplitOptions.RemoveEmptyEntries) }); } What that does … | |
Alright I got a question for you all that I just can't seem to figure out if it's working as I expect it to or not. Recently I have begun re-writing a piece of code I wrote that is used to generate QR Codes (square barcodes). Part of the reason … | |
Re: Back in college, on my laptop and desktop, I had NetBeans and Visual Studio 2012 installed on the same machine at the same time. It had no problem what so ever. | |
Re: A little addition to Shark_1's post, You probably will also want to add a Group By onto that select statement. So for instance if you want to see how many occurances there are of the s_monthname in the table, but only return distinct records in relation to the month name … | |
Re: My advice, use an engine. These are specifically design for the very purpose for people to build their games upon. They take care of all the nitty gritty bits that can bog you down if you tried to do everything yourself (such as rendering, lighting effects, sound and how it … | |
Re: Do you have any of the code you have tried? For instance what approaches have you attempted that have caused errors? This can help prevent duplicate work, or possibly finding the bug in what you have tried | |
Re: SO you are running your application on a seperate machine, and have to downlioad a 600+ MB file? That is weird, because .NET has all the libraries needed to connect to a SQL Server database, local or remote. (System.SQL or something like that). How are you connecting to the database … | |
Alright this one is bugging the heck out of. I am developing some software that can auto generate a solution and projects within. I have the project templates already created (done by another co-worker), and zipped up. I have then added these as an embedded resource into my project. However, … | |
![]() | Re: No offense, but this seems a little fishy. The way you are posting on every level possible makes me think you are going to try and find anyone. You also claim it's going to be open, but there's a side of me thinking you might be wanting more from it … |
Re: So what's the problem exactly? Looks like you spin up one thread and are your way. You should be aware, that `Thread.Sleep(60000)`. Once you hit that, the thread it's running on is going to sleep for a minute, and any command you try to send it, won't be acknoweldged until … | |
Re: Nah you did it correctly. The reason you got a stack overflow, you were calling print in your Class1, which was calling itself. Usually you use a virtual/override when you want the base class to function a certain way, but you can override the logic (there is also the abililty … | |
Re: Actually if you are trying to get the DateTime from a string, you should be using the something like `DateTime.Parse`, `DateTime.TryParse`, `DateTime.ParseExact`, or `DateTime.TryParseExact` If I remember right, the Convert.ToDateTime, never worked for converting a string to a DateTime. However, I do know for a fact the above ones work. … | |
Re: One other thought, a more brute force way, since you are doing FIFO, is to create duplicates in the queue. So say you have a unique identifier to specifiy each record type. For a normal random engine you'd have 1 entry in the queue to select from for each record. … | |
Re: ReverendJim, that tool looks nice, I'll have to check that out myself. Another suggestion, is you could always look on how others do it. There is CUPID as well as Open Hardware Monitor. They both offer the source code or a dev code that you can look at (note that … | |
Re: So it sounds like you want to populate your ComboBox with all the distinct values from a column. Look for the event "CellValueChanged" in the DataGridView. This should fire after the cell's value has been edited, and focus has left the cell (so like leaving edit more). However, I would … | |
Re: You've pretty much already answered your question. You convert the image to a byte array, and then store it (it's like a varbinary type). Just be aware, this can easily grow the size of your database quickly if the images are large enough. | |
Re: So if you are trying to programmically click a button, you can do something like `btnCalculate.PerformClick();`. Is that what you trying to do, is programmically click the button? Or did I misread this? | |
Re: This can be tricky. It really depends on how the login is done for the page. You would have to log in to the base using your webKitBrowser1, using the code. Unfortantly I can't find the code awhile back, but you should be able to google and see what's possible … | |
Re: So are you trying to create an application to generate possible random numbers that you could then use to create your tickets? Or are you planning to try and find a pattern in the numbers that have been drawn (I will tell you if it's the 2nd option, you probably … | |
Re: It appears you are trying to treat you ints as a collection ... which you can probably assume will NOT work. ddanbe does bring up a good idea, that you could use a dictionary. This gives you a "key" based on the 'i' value (which is kind of like "Number1", … | |
Re: So I did some quick Googling real quick, from what I can tell, the Calender control is designed for System.Web.UI, not System.Windows.Form which is what you'd be using for a Windows Form design. It looks like, the MonthCalender is the WindowsForm equivalent of the Calender | |
Hello everyone, I am posting this more generically in the software development section to see what might be available and to increase a possible success rate. But enough of that let's get to the question at hand. Recently, in C#, I started back up a project of mine to do … | |
Re: Hello Hamza_13, Can you please post the code you have written. It's kind of hard to follow exactly what your code is doing just by your original post. It would be also nice to see that you have attempted to do the work, as DaniWeb isn't a place to ask … | |
Re: I would argue WPFs. They may seem like the best choice, but I should point out they aren't the greatest. They have practically no memory management. I had to write my own disposer pretty much to clean up a nasty memory leak. They are nice, but not always the best … | |
Re: Well you 2nd insert your column names, specifically this "acount_name" looks different then the 1st where it's "account_name" (notice the extra c). I don't know if that might be causing some issues or if it was just a typo when you wrote this post | |
Re: Don't forget the single quotes around the value if it's a string type column (or similar types). So you'd need to produce a query string like string QueryString = String.Format("SELECT * FROM TableName WHERE (Name = '{0}')", textBox1.Text); Make sure you replace "TableName" with the proper name of the table. … | |
Re: This is a rather weird one, becuase if your application is running in 64-bit, then it should be pulling up the 64-bit libraries. Oracle is a stickler for this, and must have identical matchups. Either that, or the 32-bit libraries are not setup correctly on the system you are working … | |
Re: Nice little piece of code. I like the recurssion piece as well (course I say that with a little bias because I did something like that to and though to myself "wow that was clever of me"). If you do a PictureBox addition, make sure you dispose the Image, and … | |
Re: Using the code you provided you could do something like private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { button2.Enabled = (!String.IsNullOrWhiteSpace(textBox1.Text)); } That pretty much is saying, if there is text in the TextBox, that isn't just whitespace (like spaces), then enable the Button, but if it is blank or whitespace, … | |
As the title says, anyone else noticing the activity on DaniWeb suddenly dropping? I usually check the Database and Software Developing sections in the morning. The Database one for awhile was getting a few new topics at least a day, but all of a sudden, it seems to have almost … | |
Re: Can you please show us your table schemas? I will say this, I have seen duplicates occur when you don't inner join properly. For instance if you don't utilize all the primary keys it can return multiple results due to matches in one table causing the other to repeat. Some … | |
As I develop more and more for a living I have been trying to perfect my developing skills with personal projects in hope to expand my professional career, one of these is the concept of Polymorphism. The last few projects I have worked on, I have this model where I … | |
Re: There are multiple types of encryption such as AES and RSA, and depending on which you use, there have different key structures. Quick side track lesson about encryption. Make the algorithms public, but keep the keys private (the only cipher that is the exception being Caesar Cipher, but that's back … | |
So I have to say this is starting to become an annoyance of mine. It seems so many of the questions I answer tend to go dead, never followed up by the user. I'll answer the question, or try to, maybe asking for more details, or offering what I can … | |
![]() | Re: When you do a GROUP BY, it has to be by the columns selected (with the exception of those that are like Count) So you would need something like SELECT s_id, s_last, MAX(s_id.uc_student) AS s_id.uc_student, COUNT(max_enrl.uc_course_section) AS NumberOfOrders As your select statement. This is just an example of couse (is … |
Re: It really depends on how masssive of a number we are talking. For instance a `Double` can handle up to 1.7 × 10^308 as its largest size. Which can work for most people. To find the largest or smallest value, you can use bitwise logic like is one value greater … | |
Re: Alright let's see if can offer some help. I will admit I haven't done a lot of XSL experience myself, however, it does follow XPath logic (which I do have experience with) The "when" works kind of like an if statement if the scenario is true, then the sub code … | |
Re: I konw this is probably considered solved, but I would like to point out the original question never got answered. The reason you are probably seeing duplicate results is because you are doing an Inner Join. This usually happens because you join two tables, and you don't fully utiliize the … | |
Re: Also, usually there are installations that will install SQL Server as well as SQL Server Management Studio. Actually thinking back (I don't install this often but have time to time), by default if you get a more complete installer it will install SQL Server Management Studio. I would suggest installing … | |
Re: If you would like to draw grid lines, and easily change the size of the Xs and Os, I would suggest maybe using a different Windows Form Component to something along the lines of a DataGridView. Back in college we had to develop a Sudoku game, and this was the … | |
Re: That's a lot of code, and quickly reading it (and while I only know a big VB), there are a few things I see First of all you have foreach loops that assign to a variable. However, if I am reading it right, the way you do this only the … |
The End.