282 Posted Topics

Member Avatar for Mohammad_21

My guess here is because all your return statements are within a for loop. If that loop is empty, then you would never return. However, if read this correctly your for loop is not a good idea. Because if there is any items in the first loop it will ALWAYS …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Mohamed_26

I recently learned about Triggers myself. The one use I had for them, was I had a table with a collection of values, when I inserted the record (or updated it), I had a trigger fire that would take the values, ran a mathimatical equation using them and produce a …

Member Avatar for JOSheaIV
0
243
Member Avatar for ScottieF

To be honest, this is pretty much how I would have built the table. One for the Employee, one for the Job, and then one to record each employee for each job. Now for me though I would have probably setup an AUTOINCREMENT type field for both Employee and Job …

Member Avatar for JOSheaIV
0
235
Member Avatar for James_43

Quick question, where are we at with this? I have developed software to fade images in and out (transitioning them), and after many attempts have a good working solution (MIne was for a screen saver to fade in and out images, works smoothly, and does well with memory management)

Member Avatar for James_43
0
1K
Member Avatar for JOSheaIV

Everytime I try to change my profile data (since the newest UI), I keep getting the error "This date appears to not be formatted correctly." I assume it's my date of birth, which I have tried multiple formats and it doesn't like em (it's now MM/dd/yyyy)

Member Avatar for JOSheaIV
1
300
Member Avatar for zachattack05
Member Avatar for JOSheaIV
0
576
Member Avatar for happygeek

Always love learning about past massive attacks. One of my personal favorites was I think SQL Slammer that used buffer overflowing to spread. I just find it interesting because of how easy it was to do However, now a days I don't think we have massive viruses like we used …

Member Avatar for aileenwitts
3
440
Member Avatar for Suzie999

That is one monster pattern! Did you write that? (and if so, how long did that take). So is this solved, or are you still looking for possible solutions to parse IPv6

Member Avatar for JamesCherrill
0
4K
Member Avatar for ddanbe
Member Avatar for Reverend Jim
0
319
Member Avatar for Dani

Wow ... caught me off guard for a second there. I thought I was on the wrong page. New design is nice, I just miss having a top navigation bar (not a huge fan of if on the right side). Actually, am I looking at this right? I have to …

Member Avatar for Dani
4
640
Member Avatar for Suzie999

Ahh man I missed the Regex fun (LOL I am addicted to using Regex, no joke a client gives me grieff for it)

Member Avatar for JOSheaIV
0
393
Member Avatar for JOSheaIV

Here's one that's stumping me. Does anyone know where in the registry the two-digit year regional setting is located? I am working on a system that refuses to apply this setting server wide, making it so we have to run windows services under specific log on accounts instead of a …

Member Avatar for JOSheaIV
0
984
Member Avatar for digiway

So each row is (n + (n-1)), building on top of itself right? Couldn't you just for loop through each row in the table and just take the current row's value and add it to the lasts (you would of course then need an extra column). You could check the …

Member Avatar for ddanbe
0
228
Member Avatar for Ali_51

I can easily help you with the XML, but I need to know what exactly you want written to the XML, and if you have specific structure in mind. Details on what needs to be done, and some context would greatly help all of us (just throwing up some code …

Member Avatar for lithium112
0
301
Member Avatar for cblock

When you simply do the "add existing project" it makes a reference to the project in whatever folder it resides in. This allows for you to edit a project externally, that might shared across multiple solutions, and they all can get updated. To get around this, move the project folder …

Member Avatar for cblock
0
714
Member Avatar for Falcon25

Please use the one that simply does "get;set;" if you can. Then you don't have to declare a ton of extra variables (.NET 3.5 and up supports this)

Member Avatar for JOSheaIV
0
19K
Member Avatar for Darth Vader

The 2nd one is running a cmd prompt. A command you can run is `ipconfig /renew`. While I don't fully know what it does I have used it before when my internet is acting up to see if I can reset things and get everything back in line. However, usually …

Member Avatar for JOSheaIV
0
635
Member Avatar for ddanbe

Wow didn't even know this library existed. I wonder if it can help with the last piece I need for my RSA key generation? Having trouble with the Extended Euclidian Algorithm (it only wants to work part of the time, but if I produce to large or random numbers, then …

Member Avatar for JOSheaIV
1
616
Member Avatar for john_93

You sir are in luck. I have a piece of code I wrote for work that returns a DataTable's column as a collection. Built it as an extension even using System; using System.Data; using System.Collections.Generic; using System.Linq; /// <summary> /// Contains a collection of Extensions in relation to DataTables (as …

Member Avatar for JOSheaIV
0
237
Member Avatar for ryanzeng

Question, doesn't the logic apply recurssively, so after you change one index, you have to proceed to checking all the following? (Also aren't rule 1 and 3 the same? or am I misreading it?) I say recurssively, as that's how I would see doing it. Change one index then going …

Member Avatar for JOSheaIV
0
216
Member Avatar for you207
Member Avatar for IconiCxPimp

Okay going to ask ... how is Pig Latin written? Honestly, I've never actually learned it hahaha. I sense a possibility to have some Regex fun (queue Jaws music)

Member Avatar for IconiCxPimp
0
280
Member Avatar for James_43

Also, I assume it's a USB recieve communicating wirelesly? Is it RFID, Bluetooth, ext? (On a side note, anyone else get the feeling he's asking this to pull a prank on like a professor or something?)

Member Avatar for James_43
0
122
Member Avatar for john_93

So what's the purpose of "Total Price"? If you are trying to pull it from the database, you do NOT need to add it to the params. I also point this out because you called the "ExecuteRead". That's what queries the Database, the read part is just reading what was …

Member Avatar for JOSheaIV
0
184
Member Avatar for James_43

Anytime you need to invoke, it's because you are trying to access a piece of code within another thread. While threads offer the ability to run multiple tasks at the same time, they can't actually talk to each other straight out of the box. Because of this, you MUST Invoke, …

Member Avatar for JOSheaIV
0
142
Member Avatar for James_43

Have you ever looked at using animations? I will admit I have only dabbled in WPFs myself, but have used them to fade images in and out. I did a quick google seach for it and found this http://stackoverflow.com/questions/12551823/wpf-animate-width-and-height-with-code-behind-zoom-in But you want to look at something like a DoubleAnimation. Sorry …

Member Avatar for JOSheaIV
0
329
Member Avatar for JOSheaIV

Alright everyone, I am at a lost here. I am working with log4net at my work, and have come to learn log4net can pipe its data to a telnet stream. I have setup the config for the log4net like so <appender name="RollingTelnetAppender" type="log4net.Appender.telnetappender"> <port value="1200" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date …

Member Avatar for JOSheaIV
0
516
Member Avatar for ddanbe

WPFs also can run on DirectX if I recall right. If you remember I was working on a program to transition images, I ended up using a WPF because of its storyboard objects. The only thing I really hate about them, they are AWFUL when it comes to memory management. …

Member Avatar for ddanbe
1
552
Member Avatar for ddanbe

I remember just yesturday I was doing some research about how to hide or disable certain classes that might be inherited (again I am using virtual here). Never the less, while looking for solutions, I did see throwing exceptions as a possibility. From an OOP perspective, that might be considered …

Member Avatar for JOSheaIV
0
279
Member Avatar for powerade661

I can personally recomment the library pritaeas suggested. I just recently used that library in a project for a client. It works VERY good (And has the ability to return results in a DataSet, allowing for dynamic JSON work). Oh yes and it has an MIT License which is always …

Member Avatar for JOSheaIV
0
246
Member Avatar for mdavis28

May I ask what is the purpose of the database connection? I ask this because I personally have never used that DataSet and what not but instead use the SqlConnection and SqlCommand objects. I then populate the data into a DataTable, a local variable, not a new item in a …

Member Avatar for JOSheaIV
0
161
Member Avatar for DTaylorIPA

Timers are rather easy to use, however, take note there are 3 different types (that share the same name). `System.Timers.Timer`, `System.Threading.Timer`, and `System.Windows.Form.Timer`. I personally like to use the Windows Form ones because that's what I usually use them with are forms. However, let's go ahead and use the first …

Member Avatar for JOSheaIV
0
183
Member Avatar for ddanbe

Interesting, didn't know that's what dynamic did. Have you thought of making the classes virtual? So someone could inherit this design and override maybe those problemsome methods? So if you had two Person objects you tried to add, what would C# actually do in the code during run time? Does …

Member Avatar for JOSheaIV
1
778
Member Avatar for Matt Grihar

PictureBoxes have BackgroundImages ... how the heck did I not know this. For the code, let me provide you with a few warnings I have learned over time of messing with images. First of all, if you can load the image in (if calling a seperate function) instead of passing …

Member Avatar for JOSheaIV
0
6K
Member Avatar for RH7MES

Well there are two approaches, the first is you could do a console application. For this you would have a collection of question, and display one at a time and wait for a user's response of "YES" or "NO" (watch your case-sensative checking there). Then as they enter their answer …

Member Avatar for JOSheaIV
0
219
Member Avatar for Daniel_45

So what's the exact question? Do you need help imporing ot exporting? or what? The way you wrote this, it looks like a school assignment. If that is the case you are out of luck here. DaniWeb is a forums that helps answer questions, not write your assignment for you. …

Member Avatar for JOSheaIV
0
194
Member Avatar for ddanbe

I know it's been solved, but can I ask, would something like `.ToString("N0")`. That would return the number as a string, and chop off the decimal and everything past it (it won't handle rounding though, but I think some of the other number formats can do that, this explains it …

Member Avatar for JOSheaIV
0
662
Member Avatar for JOSheaIV

Hey everyone some let me give a quick run down what I got here. About a week ago I was with my family waiting to get a seat at a resturant (to watch the USA Woman's Soccer game). We had a long wait so I was watching my siblings play …

0
95
Member Avatar for preethi_1

Have you looked into the Interop logic for Excel in relation to C#? You could use that to to read values and then drop them into your ListBox. If you are interested in that, I might be able to provide some example code (I have been working with Excel files …

Member Avatar for JOSheaIV
0
274
Member Avatar for kukuruku

Possibly you might be able to do. I know you can use this piece of code to convert a column from a DataTable into an array (value is the DataTable, and ColumnName is the column's name) `return value.Rows.Cast<DataRow>().Select(row => row [ColumnName]).Cast<T>().ToArray();` You might be able to do something like this, …

Member Avatar for tinstaafl
0
144
Member Avatar for Elmar_2

List<string> MyList = ObjectList.Select(x=>x.ToString()).ToList() or string [] MyArray = ObjectList.Select(x=>x.ToString()).ToArray() Of course this all depends what the objects are in the List, this will work fine for basic types like integers, booleans, ext. But thinks like Form Components, if they don't have a specific `.ToString()`, you might get like a …

Member Avatar for JOSheaIV
0
6K
Member Avatar for JOSheaIV

Here's a good one for everyone. I have been working on a Screensaver program for some time now (some of you may even remember questions related to this). Anyway, one of the biggest challanenges with developing it was finding a good way to transition images, smoothly, and not killing all …

Member Avatar for JOSheaIV
0
653
Member Avatar for necrovore

If that is a true Image object in System.Drawing that right there can cause serious memory issues. I speak from experience as I have been trying to design my own Image Selector component (as I hate the one C# uses because I can't figure how to thread it). Because of …

Member Avatar for JOSheaIV
0
195
Member Avatar for Suzie999

Hey so quick question, did you happen to check the max limit yet? I quickly google SQLite's limits for Blobs and found something interesting > During part of SQLite's INSERT and SELECT processing, the complete content of each row in the database is encoded as a single BLOB. So the …

Member Avatar for JOSheaIV
0
2K
Member Avatar for goody11

Well you can at least from a time perspective, used the `System.Diagnostics.Stopwatch`library, and test the time it takes to initally load up everything at once, and what it takes to create them. How much data are we here? Some strings? Images? 100k+ record? Another trick is to use your Resource …

Member Avatar for JOSheaIV
0
569
Member Avatar for CodeWarrior14

Second what DaveAmour suggests, used a GUID. They are like 99.9% unique (or something along those lines). While I never did find the exact logic behind how they are produced, I do know that time is factored into it. Using time itself probably isn't the best idea because multiple piece …

Member Avatar for JOSheaIV
0
151
Member Avatar for JOSheaIV

So we have this software that we can use a Telnet client to tap into, sending and receiving data in VT220. The software when it initally connects, connects to port 23, and you simple send it an \r command, and which point you are then repointed to a login screen. …

Member Avatar for JOSheaIV
0
204
Member Avatar for vjcagay

I personally love .NET just because of what it lets me do. There are tons of libraries for it, and thanks to Microsoft, more people are developing them Also, anything I can think up, I can usually do. You also have the MSDN website that has documentation on pretty much …

Member Avatar for vegaseat
-1
4K
Member Avatar for ddanbe

You know ddanbe, I think I still have it, but I wrote a Regular Expression pattern that could pick up functions (like what you listed there). YOu wouldn't be interest in that would you? It's been awhile since I used it, I wrote it for a program at work, where …

Member Avatar for JOSheaIV
0
425
Member Avatar for singh.ranjeet

I believe it's your Connection String. I did a quick search for the format of a MySQL connection string `Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;` Look at your password part. You did "PASSWORD=", when it should be "Pwd=" That would explain the error you are getting to (it never even makes a connection)

Member Avatar for JOSheaIV
-1
2K

The End.