606 Posted Topics

Member Avatar for murderotica

Agree with LizR, this is a very common question that comes up. Remember you can have two users on a machine, and the service could be running as a completely different user than either of those (and most likely will). If you need your service to be user specific, then …

Member Avatar for Jugortha
0
206
Member Avatar for Kyle108
Member Avatar for ashercharles

create a new thread rather than posting in this thread and we might be able to

Member Avatar for dickersonka
0
78
Member Avatar for bahr_alhalak

You are having problems calling displayArray from your main method? I see you are creating one cell, how are you creating the rest?

Member Avatar for dickersonka
-1
212
Member Avatar for codered152
Re: list

you don't have to do it this way, this is typically my guideline i normally would use a for loop with a known size and a while loop where you don't know the size until the last iteration

Member Avatar for ~s.o.s~
0
100
Member Avatar for lordx78

Optimize pdeudo-code? Well if you say, there should be no optimization since no code is involved, only possible logic changes

Member Avatar for dickersonka
0
132
Member Avatar for fvdave30

Any beeps when it does freeze up, or just no response? Does it show any completed steps? Don't know if this is the same machine as your other post. Try reseating the RAM and other cards, and possbily try a single stick of RAM. Ensure cpu temp is good. Are …

Member Avatar for caperjack
0
78
Member Avatar for mgn2683

[code] WHERE tbl_user.Id= assignment.Reader OR tbl_user.Id = assignment.Chaplain [/code] i think this is what you are looking for with the additional where

Member Avatar for mgn2683
0
92
Member Avatar for bahr_alhalak

Lol wow, little trouble reading, to make it clear Mark this as solved and create a new thread and show us you can try to do your work, do not give us an assignment, we will help YOU with your assignment not do it for you

Member Avatar for dickersonka
0
269
Member Avatar for misselegant

also, just as a formatting rule, try to keep your control names consistent i.e. tbFirstName otherwise, it could get a little messy trying to find all your textboxes on a page

Member Avatar for misselegant
0
96
Member Avatar for mrjoli021

The scanner constructor takes a string as a source to read from, the string is not a filepath use this [code] File file = new File(fName); Scanner in = new Scanner(file); [/code]

Member Avatar for dickersonka
0
95
Member Avatar for fvdave30

If the computer wouldn't turn on, most likely the video card isn't bad. When a power supply is going awry, sometimes it may turn on the computer, sometimes not. Make sure all cards/ram are firmly in place, possibly remove and reseat them. If you still have the same result, trying …

Member Avatar for dickersonka
0
93
Member Avatar for Fiorentino01^
Member Avatar for dickersonka
0
34
Member Avatar for gouki2005

and to extend upon ddanbe, you can also set the modifiers on the methods [code] public void MyStuff() { } private void MyStuffAgain() { } [/code] the access modifiers match except these VB -> C# equivalent Friend -> internal Protected Friend -> internal protected

Member Avatar for dickersonka
0
81
Member Avatar for dellarby

Couple things that seem unclear, that could affect the choice. 1. How did the meta data get there in the database if its a new file? 2. When you say "process file", does that mean you have application code or sql code that does this processing? 3. Is the processing …

Member Avatar for pritaeas
0
115
Member Avatar for janamrob

you need to check the current rating, not all the ratings [code] public boolean getStatus(String rating, int age) { int minAge = 0; if(rating == "PG"){ minAge = getPGuidance(); } else if (rating == "G"){ minAge = getGeneral(); } else if (rating == "A"){ minAge = getAdult(); } if(age >= …

Member Avatar for stultuske
0
122
Member Avatar for Achupa

In your instructions you have that you can't add a list of limbs, only single limbs, yet in your code you have. [code] // adding limbs: protected void addLimbs(List<Limb>limbToAdd) { this.limbs.add((Limb) limbToAdd); } [/code] you need to change it to [code] // adding limbs: protected void addLimb(Limb limbToAdd) { this.limbs.add(limbToAdd); …

Member Avatar for dickersonka
0
153
Member Avatar for rje7

Lol a professor wants you to make it more complex. One of the objectives in programming, is to make a complex task into manageable and logical separated parts, but maybe he just wants to see a little more. Maybe something more complex, could be added functionality similar to that of …

Member Avatar for rje7
0
139
Member Avatar for gp04lch
Member Avatar for gp04lch
0
71
Member Avatar for khatter
Member Avatar for dickersonka
0
122
Member Avatar for intelli

1. put code in code tags 2. where are any of your while loops in the code

Member Avatar for destin
0
92
Member Avatar for Grub

Agree with stultuske. You need to create something like a "wrapper" class. Lets say for example the jar file will load an employee, but you want to add a check if the employee is still active. Create a method in your wrapper class to call the jar and load the …

Member Avatar for Grub
0
125
Member Avatar for mrjoli021

[code] ArrayList files = new ArrayList(); StreamReader sr = new StreamReader("C:\\TestFile.txt"); String line; while ((line = sr.ReadLine()) != null) { files.Add(line); } sr.Close(); [/code] you don't need that for loop in there, and a call to readline makes the stream read again, you are using line as sr.ReadLine() so you …

Member Avatar for dickersonka
0
96
Member Avatar for amby

aspx is not straight html code, it must be compiled, whether thats at runtime or precompiled you can right click on your file in visual studio and click view in browser, this will launch the vs asp.net host to allow you to view it, otherwise you need to publish to …

Member Avatar for jbennet
0
148
Member Avatar for pradeepkk2008

agree with jbennet you can choose to create your own method of locking, or go by sql physical locking not sure what db or version you are using, but the sql concepts are row lock or table lock if you want to implement this yourself, you can add a locked …

Member Avatar for jbennet
0
96
Member Avatar for DaJoker

not sure what your methods look like, but lets say you have a method that will add a number and return the sum your test case, will provide the number and ensure it is the correect result when its returned

Member Avatar for dickersonka
0
118
Member Avatar for Robins Antony

Of course we can see what the error is, here is something to help you rather than just tell you. After assigning your sql statement, do this. System.Diagnostics.Debug.WriteLine(selectsql); Then you will be able to tell where the error is at.

Member Avatar for dickersonka
0
66
Member Avatar for askhan

Agree with ezzaral, the call is right in there. Also, put your code in code tags, much easier on the eyes.

Member Avatar for dickersonka
0
82
Member Avatar for ferretwoman

you need to correct the insert statement portion [code] insert into parentchild(child, parent, parentchild) values(@child, @parentid, @parent + " / " + @child) [/code]

Member Avatar for dickersonka
0
99
Member Avatar for NotThereAnymore

Calling a constructor with account number and balance is a little redundant. Are you sure you don't need a constructor with account number and deposit instead? [code] public BankAccount(int anAccountNumber, double depositAmount) { accountNumber = anAccountNumber; balance = //do something here to load balance from account number //your other code …

Member Avatar for dickersonka
0
96
Member Avatar for panpanf

Its in XPCOM, not pretty, but doable. [url]http://jonathanchambers.blogspot.com/2007/08/monoxpcom.html[/url]

Member Avatar for Jugortha
0
132
Member Avatar for luvingmana
Member Avatar for deraj8

i think maybe a small correction to that, since he is getting them from the newEmployee object [code] string sql = "INSERT INTO employeeTable(EmployeeName, Salary) VALUES ('" + newEmployee.EmployeeName + "', " + newEmployee.Salary.ToString() + ")"; [/code]

Member Avatar for dickersonka
0
88
Member Avatar for hmd

In the bios, try to see if you can find something about onboard ports. The port might be disabled in the bios. Also in device manager look at the irq's to see if there are any conflicts. Make sure you have the driver's installed also. Although you are plugging in …

Member Avatar for dickersonka
0
117
Member Avatar for ItIsFinished
Member Avatar for panpanf

Agree with narue, mysql is a very good open source database. What are you looking for about your select statement that is different than the rest?

Member Avatar for panpanf
0
88
Member Avatar for tonyaim83

here is a couple more columns than you need, just so you can be clear on the query [code] SELECT sysobjects.name AS "TABLE_NAME", syscolumns.name AS "COLUMN_NAME", systypes.name AS "DATA_TYPE", syscolumns.LENGTH AS "LENGTH" FROM sysobjects INNER JOIN syscolumns ON sysobjects.id = syscolumns.id INNER JOIN systypes ON syscolumns.xtype = systypes.xtype WHERE (sysobjects.xtype …

Member Avatar for Geek-Master
0
190
Member Avatar for Geek-Master

They can be used for both I suppose, but here is the way I normally think about them. Think of schema's as groupings of tables. This way, you can always see the tables grouped together by schema that are related. Also you will probably need a common schema for ones …

Member Avatar for Geek-Master
0
428
Member Avatar for kartik14

[code] select * from (select * from table t1 where t1.column=value) as t2 where t2.column=value [/code]

Member Avatar for Geek-Master
0
178
Member Avatar for dwdish

most likely, this is a security issue then, and you will need to authenticate with the server to be able to send mail to other domains

Member Avatar for dickersonka
0
204
Member Avatar for deraj8

What are you getting errors, anything? Post your code and config and we can help.

Member Avatar for dickersonka
0
81
Member Avatar for Stefano Mtangoo

Here's a free one I have used before. Covers a large set of the visio like features. [url]http://live.gnome.org/Dia[/url]

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for crprajan

Along with Lizr, we won't do this for you. The concept of 3 tier architecture is that you have separation within your code. UI Tier - display only, your forms will be this Business Tier- You do your necessary business rules in here, maybe something like ensuring first name length …

Member Avatar for dickersonka
0
116
Member Avatar for Phrenetic

i'm not sure of your table structure but would you be able to achieve it with this at the end [code] WHERE od.uid = USER_ID AND (od.cat_id = 8 or od.cat_id=9) [/code]

Member Avatar for Phrenetic
0
125
Member Avatar for puja_suri

A good place to start would be posting what you have and what part you are having trouble with.

Member Avatar for dickersonka
0
48
Member Avatar for sfrider0

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 know when you are done sending. Since you can send 5 bytes, then later …

Member Avatar for sfrider0
0
118
Member Avatar for Jesi523

Where are you loading and setting the session variables? You can load them in Page_Load, and set them for example lets say after the user clicks login Also ensure your web application supports it. I believe it is EnableSessionState=true

Member Avatar for dickersonka
0
106
Member Avatar for spr_vivega

You can paste the html into the aspx page, this will be html. If you want to convert it to use asp.net controls, rather than html controls, do some research on it.

Member Avatar for dickersonka
0
53
Member Avatar for Mapper99
Member Avatar for janustt

you are calculating average incorrectly this is wrong [code] //Calculates average Average = Average + Salary[i]; [/code] you need something like this in its place [code] int totalSalaries; //now your for loop here //Calculates average totalSalaries= totalSalaries+ Salary[i]; //then after your for loop //We can calculate average Average = totalSalaries …

Member Avatar for dickersonka
0
93

The End.