Posts
 
Reputation
Joined
Last Seen
Ranked #258
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
97% Quality Score
Upvotes Received
61
Posts with Upvotes
49
Upvoting Members
31
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
14 Commented Posts
14 Endorsements
Ranked #114
Ranked #517
~233.90K People Reached
About Me

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…
Favorite Tags

282 Posted Topics

Member Avatar for emin_2

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 …

Member Avatar for Jack Green
1
302
Member Avatar for arun.gtm11

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)

Member Avatar for jackflint
0
4K
Member Avatar for andy1981iron

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 …

Member Avatar for ytttt
1
11K
Member Avatar for islander7

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 …

Member Avatar for Robert_65
0
10K
Member Avatar for jonymanolo

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 …

Member Avatar for Paul_45
0
1K
Member Avatar for deceptikon

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 …

Member Avatar for Yushell
3
1K
Member Avatar for JOSheaIV

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 …

Member Avatar for rubberman
0
289
Member Avatar for geoamins2

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 …

Member Avatar for caiofoglia
0
7K
Member Avatar for Abdelaziz_1

Security program to do what exactly? Encrypt a password? Authenticate a key?

Member Avatar for JOSheaIV
0
146
Member Avatar for marcolanza24

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 …

Member Avatar for Raul Perez
0
328
Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
0
234
Member Avatar for DGULLIVER

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.

Member Avatar for stultuske
0
359
Member Avatar for bayron209

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 …

Member Avatar for bayron209
0
703
Member Avatar for CJMW

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 …

Member Avatar for JOSheaIV
0
286
Member Avatar for Tharindu_1

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

Member Avatar for Tharindu_1
0
730
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
351
Member Avatar for JOSheaIV

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, …

Member Avatar for JOSheaIV
0
261
Member Avatar for Tomas_3

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 …

Member Avatar for Raul Perez
0
314
Member Avatar for rpv_sen

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 …

Member Avatar for pritaeas
0
1K
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
338
Member Avatar for Hamza_13

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. …

Member Avatar for JOSheaIV
0
391
Member Avatar for JamesCherrill

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. …

Member Avatar for invisal
1
669
Member Avatar for altjen

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 …

Member Avatar for JOSheaIV
0
792
Member Avatar for Hamza_13

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 …

Member Avatar for JOSheaIV
0
216
Member Avatar for omimo

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.

Member Avatar for JOSheaIV
0
152
Member Avatar for vuyiswamb

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?

Member Avatar for Santanu.Das
0
193
Member Avatar for Darth Vader

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 …

Member Avatar for JOSheaIV
0
344
Member Avatar for David_66

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 …

Member Avatar for JOSheaIV
0
940
Member Avatar for ogsirus

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", …

Member Avatar for JOSheaIV
0
215
Member Avatar for Hamza_13

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

Member Avatar for JOSheaIV
0
652
Member Avatar for JOSheaIV

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 …

Member Avatar for rubberman
0
438
Member Avatar for Hamza_13
Re: C#

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 …

Member Avatar for JOSheaIV
0
224
Member Avatar for LinaAshaji

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 …

Member Avatar for JOSheaIV
0
315
Member Avatar for Ryan_15

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

Member Avatar for JOSheaIV
0
609
Member Avatar for Hamza_13

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. …

Member Avatar for JOSheaIV
0
246
Member Avatar for G_Waddell

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 …

Member Avatar for JOSheaIV
0
344
Member Avatar for avirag

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 …

Member Avatar for JOSheaIV
4
809
Member Avatar for Kenny Robertson

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, …

Member Avatar for JOSheaIV
0
1K
Member Avatar for JOSheaIV

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 …

Member Avatar for Popc0rn
1
2K
Member Avatar for bLuEmEzzy

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 …

Member Avatar for daniellemacey
0
372
Member Avatar for JOSheaIV

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 …

Member Avatar for Amr.Mohammad87
0
459
Member Avatar for Misar

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 …

Member Avatar for JOSheaIV
0
248
Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
4
236
Member Avatar for calypso11

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 …

Member Avatar for Amr.Mohammad87
0
208
Member Avatar for Nikusha.Kalatozi

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 …

Member Avatar for JOSheaIV
0
136
Member Avatar for sridharsapxi

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 …

Member Avatar for JOSheaIV
0
274
Member Avatar for jdm

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 …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Saboor880

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 …

Member Avatar for JOSheaIV
0
344
Member Avatar for kjblkblt

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 …

Member Avatar for JOSheaIV
0
281
Member Avatar for Erald

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 …

Member Avatar for Taywin
0
209

The End.