606 Posted Topics
Re: 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 … | |
Re: If only it was that easy. It takes a rewrite. | |
Re: create a new thread rather than posting in this thread and we might be able to | |
Re: You are having problems calling displayArray from your main method? I see you are creating one cell, how are you creating the rest? | |
Re: 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 | |
Re: Optimize pdeudo-code? Well if you say, there should be no optimization since no code is involved, only possible logic changes | |
Re: 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 … | |
Re: [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 | |
Re: 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 | |
Re: 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 | |
Re: 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] | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 >= … | |
Re: 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); … | |
Re: 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 … | |
Re: A possible solution could be to use events, to pass whatever you needed. | |
Re: Show us what you have then we will help. We won't just give you code. | |
Re: 1. put code in code tags 2. where are any of your while loops in the code | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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. | |
Re: Agree with ezzaral, the call is right in there. Also, put your code in code tags, much easier on the eyes. | |
Re: you need to correct the insert statement portion [code] insert into parentchild(child, parent, parentchild) values(@child, @parentid, @parent + " / " + @child) [/code] | |
Re: 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 … | |
Re: Its in XPCOM, not pretty, but doable. [url]http://jonathanchambers.blogspot.com/2007/08/monoxpcom.html[/url] | |
Re: 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] | |
Re: 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 … | |
Re: So you are wanting us to do a game hack? | |
Re: 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? | |
Re: 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 … ![]() | |
![]() | Re: 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 … ![]() |
Re: [code] select * from (select * from table t1 where t1.column=value) as t2 where t2.column=value [/code] ![]() | |
Re: 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 | |
Re: What are you getting errors, anything? Post your code and config and we can help. | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: A good place to start would be posting what you have and what part you are having trouble with. | |
Re: 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 … | |
Re: 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 | |
Re: 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. | |
Re: What is this ? What is the colon by the way? [code] :CLOSEDDATE [/code] | |
Re: 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 … |
The End.