Search Results

Showing results 1 to 39 of 39
Search took 0.02 seconds.
Search: Posts Made By: dickersonka
Forum: C# Apr 8th, 2009
Replies: 10
Views: 1,145
Posted By dickersonka
The problem with that would be is that its not a singleton and can exist in multiple classes


private static readonly GlobalVariables TheSingleGlobalVariableInstance = new GlobalVariables();

...
Forum: C# Mar 19th, 2009
Replies: 4
Views: 590
Posted By dickersonka
The exe is the compiled solution, all exes have already been compiled as well

if you are in a winforms app, it needs to be compiled before running it, if you are in asp.net you can set the project...
Forum: MS SQL Mar 17th, 2009
Replies: 2
Solved: greatest three
Views: 544
Posted By dickersonka
select top 3 *
from tableName
order by col3 desc
Forum: MS SQL Mar 11th, 2009
Replies: 4
Views: 1,692
Posted By dickersonka
i'm not quite sure what you are trying to do here, but there are 2 things

first you are referencing R3 outside of its scope, second you have a where instead of an and, here is my shot at what i...
Forum: MS SQL Mar 10th, 2009
Replies: 6
Views: 904
Posted By dickersonka
Ok, just wanted to make sure we aren't chasing a ghost

Rather than just adding the parameters with a name and value, try to add them with a name and type

SqlParameter param1 = new...
Forum: MySQL Mar 4th, 2009
Replies: 17
Views: 1,487
Posted By dickersonka
sorry bout that, was a late night and didn't think twice about it

this will work

select
(select count(*) from posts p1 where p1.user_id = u.user_id) as post_count,
u.user_id
from users u...
Forum: C# Dec 2nd, 2008
Replies: 28
Views: 1,649
Posted By dickersonka
right, then the exception is correct

uri is expected to be a registered prefix, and javascript is not, things are working properly!!!
Forum: C# Dec 1st, 2008
Replies: 28
Views: 1,649
Posted By dickersonka
are you meaning something like this?


foreach (HtmlElement link in webBrowser1.Document.Links)
{
bool isValid = false;
string linkItem =...
Forum: MySQL Dec 1st, 2008
Replies: 3
Views: 1,025
Posted By dickersonka
here i found an article on the suggestion i gave you earlier

its because order of precedence, also always try to do joins this way, makes much cleaner code
...
Forum: MS SQL Nov 28th, 2008
Replies: 2
Views: 607
Posted By dickersonka
Forum: MySQL Nov 25th, 2008
Replies: 71
Views: 3,533
Posted By dickersonka
actually no need to check the uas table at all, just delete, then insert

you are correct, check user table i guess from a login or whatever that is, then no need to check anything against uas...
Forum: C# Nov 24th, 2008
Replies: 4
Solved: string parsing
Views: 1,293
Posted By dickersonka
you are correct, String.split is the way to go to treat it the same as the tokenizer

the other way would be to use regex
Forum: MySQL Nov 23rd, 2008
Replies: 2
Views: 801
Posted By dickersonka
select DATEDIFF(now(), '2008-12-25)
Forum: C# Nov 21st, 2008
Replies: 4
Views: 745
Posted By dickersonka
lol yeh man, it worked fine, will you post the whole class structure then?
Forum: C# Nov 20th, 2008
Replies: 12
Views: 3,962
Posted By dickersonka
are you catching the key press event and checking for enter?


if ((int)e.KeyChar == (int)Keys.Enter)
{
Navigate(toolStripTextBox1.Text);
}
Forum: MySQL Nov 19th, 2008
Replies: 21
Views: 1,153
Posted By dickersonka
perfect english :-), lol well at least typing

maybe when the users are on the system tomorrow, run show processlist again, and you can see what may be causing the problem
Forum: Java Nov 18th, 2008
Replies: 22
Views: 1,316
Posted By dickersonka
depends upon the context, a lot of times you will check to see if bytesRead > -1 or sometimes you check for CRLF (carriage return line feed), other times you will pass how many bytes you will be...
Forum: MySQL Nov 17th, 2008
Replies: 16
Views: 1,800
Posted By dickersonka
ahhh i see now, i know you may not like the idea, but just name the checkboxes as groups when you are displaying them, on postback only grab the ones for the selected airport (also for each airport)...
Forum: Java Nov 17th, 2008
Replies: 2
Views: 432
Posted By dickersonka
are you wanting dynamic variable names?

if so you can't do that in java
you can use an ArrayList or HashMap to store a name and a class


String userSpecifiedName = "SunServer";...
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,316
Posted By dickersonka
sorry, forgot it was java, here's a sample java tcplistener

http://www.koders.com/java/fid857615100E60AA30093DF6D87C3135D7AE75C4F5.aspx
Forum: C# Nov 12th, 2008
Replies: 11
Views: 736
Posted By dickersonka
if you use fxcop or code analysis in visual studio there is a rule CA1806 to 'do not ignore method results'
http://msdn.microsoft.com/en-us/library/ms244717(VS.80).aspx
Forum: Java Nov 11th, 2008
Replies: 21
Views: 1,300
Posted By dickersonka
friend lol, we do seem a bit hostile
i can bet this is the sharekahn app i have saw tons of problems about

just because i am nice, check out this link, the bottom post...
Forum: Java Nov 11th, 2008
Replies: 5
Views: 460
Posted By dickersonka
you can pass parameters using


<applet .....
<PARAM name="param" value="value">
</applet>


in your init
Forum: Java Nov 10th, 2008
Replies: 15
Views: 857
Posted By dickersonka
ahhh, math junkie then lol


this might be helpful as well, more of the logic side, than the graphical
http://bytes.com/forum/thread645269.html
Forum: C# Nov 10th, 2008
Replies: 2
Views: 1,818
Posted By dickersonka
how about


int myValue = 6000;
Debug.WriteLine(Convert.ToString (myValue, 2));


little less lines of code
Forum: C# Nov 9th, 2008
Replies: 7
Views: 705
Posted By dickersonka
Rude, for giving him a link with what it is with code and saying to clarify the question?

Doesn't look like a good way to start off here RC131, when we are trying to help.
Forum: C# Nov 3rd, 2008
Replies: 9
Views: 2,557
Posted By dickersonka
here is the sql code to get it


SELECT
sysobjects.name AS "TABLE_NAME",
syscolumns.name AS "COLUMN_NAME",
systypes.name AS "DATA_TYPE",
syscolumns.LENGTH AS "LENGTH"
FROM ...
Forum: ASP.NET Nov 2nd, 2008
Replies: 2
Solved: picture upload
Views: 819
Posted By dickersonka
manipulate the filename before creating the saveFile


string newFile = FileUpload1.FileName;
newFile = "myfilename_" + newFile;
saveFile = Path.Combine(savePath, newFile);
Forum: C++ Oct 29th, 2008
Replies: 2
Views: 357
Posted By dickersonka
also you will crash out past once x hits 10, your table is only of size 10
Forum: Java Oct 28th, 2008
Replies: 12
Views: 903
Posted By dickersonka
In the instructions it states:

As you can see from the above two runs, the user will be asked to specify the size of the twodimensional
array. So if the user inputs the value (5), then the array...
Forum: C++ Oct 28th, 2008
Replies: 20
Views: 1,068
Posted By dickersonka
and btw, i left the \n endl because you had it in there

normally you would use one or the other, but for this i would say drop the \n and stick with the endl
Forum: C# Oct 27th, 2008
Replies: 2
Views: 3,339
Posted By dickersonka
i think maybe a small correction to that, since he is getting them from the newEmployee object


string sql = "INSERT INTO employeeTable(EmployeeName, Salary) VALUES ('" + newEmployee.EmployeeName...
Forum: C# Oct 22nd, 2008
Replies: 6
Views: 586
Posted By dickersonka
Lol agree with ddanbe, like we told you yesterday use
tbSendText.Text

And just to shed some light on what the other guys are saying about the crlf (\r\n), the socket you are connected to needs to...
Forum: MS SQL Oct 17th, 2008
Replies: 6
Views: 1,395
Posted By dickersonka
The issue is because you are placing the constraints on the same table

Think of it this way, if you remove a trip in the middle of the sequence, it will cause all other trips that are fk'd from it...
Forum: C# Sep 15th, 2008
Replies: 2
Solved: Stupid Question
Views: 400
Posted By dickersonka
you can do it with a binding source

http://blogs.msdn.com/dchandnani/archive/2005/03/12/394438.aspx
Forum: C# Sep 10th, 2008
Replies: 5
Views: 2,301
Posted By dickersonka
also before adding the items, make sure you call


this.comboBox1.Items.Clear();
Forum: C# Aug 28th, 2008
Replies: 14
Views: 1,775
Posted By dickersonka
Yes, I thought you made a custom wrapper around it that only accepted a char.

Anyways here's a link
http://forums.msdn.microsoft.com/en-US/netfxbcl/thread/ebf6b7f4-123c-4de0-b331-2ea74769c94d/
Forum: MySQL Aug 27th, 2008
Replies: 24
Solved: Query help
Views: 1,623
Posted By dickersonka
i'll stick with the coalesce

make sure your join is on the column that will be in both tables, use a left join, and make sure to use an alias on your coalesced column


left join avatars
on...
Forum: ASP.NET Aug 21st, 2008
Replies: 4
Views: 3,324
Posted By dickersonka
For this you can use a query string or session, query string might be easiest.

connect.aspx.cs
protected void picUpload_Click(object sender, EventArgs e)
{
int year = 1870;...
Showing results 1 to 39 of 39

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC