|
hello, i want to promote the student one class to another class, by using what field to update automatically the student promotion to the next class and next year.can you give some ideas.
|
|
|
|
|
No, because we have no idea what your code or data organisation looks like.
What you've asked is like phoning a travel agent at random, saying "I want to upgrade my hotel room" and putting the phone down. The travel agent doesn't know who you are, which hotel you are supposed to be staying at, when you are staying, or even what country the hotel is in!
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. And at the moment, we don't have anything at all ...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Use the "promotion transaction".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Member 12898590 wrote: by using what field to update automatically the student promotion
First, promotion is a 'process' which means you must write a method that changes some data (for you to figure out) in an existing instance (a student) to represent that.
Second 'automatically' means that something must trigger that method. Up to you to figure out what that means but it could one of the following
1. A method, which really does nothing but call the first method above
2. A timer that runs at some periodic basis which then calls the above method.
3. Some other method, for example something like 'determine final grade' could call the first method above.
|
|
|
|
|
Hi Friends,
I want to calculate the distance between the HD Camera (industrial grade, small tiny one 16mm 1/2" 5MP) There are few formulas that I had found in the net. But not sure which to use.
Can someone suggest the correct formula to calculate the correct distance between the camera and the object. (preferable with the angle of inclination)
Thanks (in advance) for the help
Regards,
Dorairaju
|
|
|
|
|
Well without some frame of reference you can't.
|
|
|
|
|
If you don't have to details on the lens being used by the camera, it's impossible to calculate. You also need to calibrate the system with known points in the image. How accurate you get is also dependent on the object you're measuring distance to. You're not going to get an accurate distance to the center of a ball in the image.
Also, the accuracy is going to be rather poor if you're only using one camera and nothing else.
System.ItDidntWorkException: Something didn't work as expected.
C# - How to debug code[ ^].
Seriously, go read these articles.
Dave Kreskowiak
|
|
|
|
|
Place reference objects / lines in the "frame".
Wonder why there is a "ruler" on the side of doors leading in / out of banks?
Or the "lines on the road" used to measure speed / distance over time (from above).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
my projects link button not work in iphone 6s but desktop work properly why?
|
|
|
|
|
???? What? Sorry, but what has this got to do with C#? Is it code related? If so, what code do you have? Remember that we can't see your screen, so you have to give us a lot more detail than this if you want us to be able to help you.
This space for rent
|
|
|
|
|
Because there's a secret bug in your secret code.
Seriously, how do you expect anybody to be able to help you based on the complete lack of information you've provided?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You may be surprised to know that an iPhone 6 and a Desktop are actually different devices.
|
|
|
|
|
Maybe it's a "Windows-only" link.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Hello,
I would like to validate strings to datetime format using regex please
modified 15-Nov-17 6:00am.
|
|
|
|
|
Not with regular expressions!
Use DateTime.TryParseExact[^] to validate the string against your required format.
However, there's a small problem. Your "valid" string doesn't actually match the format you're validating against. Your format requires the letter "T" between the date and time, but neither of your strings have that.
string input = "2017-09-19T08:04:31.123";
DateTime parsedDate;
bool isValid = DateTime.TryParseExact(input,
"yyyy-MM-ddThh:mm:ss.fff",
CultureInfo.InvariantCulture,
DateTimeStyles.AssumeUniversal,
out parsedDate);
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
DateTime dt = DateTime.ParseExact(input, "yyyy-MM-dd hh:mm:ss.fff", CultureInfo.InvariantCulture);
|
|
|
|
|
In practice, you would wrap a call to DateTime.ParseExact in a try/catch block ... because it will throw an error if it fails.
«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it.» Claude Levi-Strauss (Tristes Tropiques, 1955)
|
|
|
|
|
Better to use TryParseExact , which won't.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am actively looking for the best library that will allow assessing the multiple values, based on weights (preferable as int instead of double from 10,000 - 120,000).
I was looking into many different examples but each one of them is either operating on linear functions or using double.
Let say I will have 4 columns:
Column A, Column B, Column C, Column D
120, 3, 3.23, false
84, 12, 2.12, false,
22, 3, 2.1, true
Which AI C# library could assess the output based on weights (column A weight from (10k to 120k depending on the int))
I am kinda stuck here. Looking for a way to start with this, even with simpler example (so just with two columns like column 120 = 10k, 84 = 11k, 22 = 23k, column b = 0.3, 1.2, 0.3)).
I will greatly appreciate any direction just to get me started
Thanks in advance.
|
|
|
|
|
A neural network can be used to perform a "non-linear" regression.
Test Run - Neural Network Regression
(As for the "best" library... never heard of one).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Thank you for a link!
I was sure that it is possible, as I was using different samples and one of them can even generate simple working code with an output.
I just need to get well explained example to start from that point
THANK YOU VERY MUCH !
|
|
|
|
|
You're welcome!
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Unfortunately, it doesn't seem practical to link anything less than my whole program to solve this issue: Solver[^] If I'm wrong about that, I'd be happy to hear how in addition to the answer to the question itself so I can ask more manageable questions in the future.
The bug occurs for the text input "32^(1/5)", without quotes, somewhere during the fourth execution for the foreach loop on line 635. The four pairs of lines that print when the program is executed with this input are the WriteLine() calls on lines 639 and 642. I added those calls in the hope of seeing how the collection in question differs before and after line 640 executes, but evidently, whatever the alteration is is not revealed by the ToString() override of its element. I don't know what kind of alteration this could be.
The multiply() override called by the * in line 640 at this point - the one on line 611 in the Product class - does touch the contents of Factors, but only once, on line 617:
List<Factor> factors = new List<Factor>(Factors);
I thought that this makes factors a copy of Factors rather than another reference to the same object, so that making changes to the former doesn't affect the latter.
|
|
|
|
|
It makes a copy of Factors yes - in that it copies the reference to each object in the collection to a new collection, it does not duplicate the items themselves (a shallow copy, rather than a deep copy).
The new collection refers to exactly the same objects as the old one, and any change to those objects will be visible from both collections:
public class MyClass
{
public int X;
}
private void MyButton_Click(object sender, EventArgs e)
{
List<MyClass> items = new List<MyClass>() { new MyClass(){X = 111}, new MyClass(){X = 222}, new MyClass(){X = 333} };
List<MyClass> itemsCopy = new List<MyClass>(items);
items[0].X = 666;
itemsCopy[1].X = 777;
foreach (MyClass m in items)
{
Console.WriteLine(m.X);
}
...
Will generate:
666
777
333 So if you will have to look closely at what you are doing with your new collection and the objects it contains.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I intended to make all of my Number classes immutable, and thought I had done so. If they are in fact immutable, is there any danger left?
|
|
|
|