This question recently got put on hold and it's made me notice a pattern where some physics questions that are asked by newer users get closed. Now, this is not necessarily an awful thing in and of itself. Personally, these types of questions are the ones I like answering the most and the main re...
1 of them I won't be dealing with. They are trying to recruit with me for a contract position. I told them $75-80/hr. They kept pressuring me to go lower, and I said no. They put me down at $70-75/hr anyway.
I just had to share it though--a support team killing a combat battalion in training exercises, and a support team having to fire a years' worth of ammo in 24 hours.
@Hosch250 I'm needing a refresher course in C#. Started looking at some of the online training course stuff, and then remembered talking about it on here and figured I'd bring it up.
@Hosch250 Those do look useful. I'm attempting to learn how to write an Azure API App. I've got it functional, in that it pulls data from a database into a data table, and then outputs it, but there are a few C# things that don't seem to have equivalents in other languages that I've used in the last 15 years...
Some are kinda basic, like how to use enumerables... I was attempting to take the datatable with an ID field and text field and return it in the output, but ended up just having to loop through the rows, put just the text field into a list<of string>, and return that.
Part of the problem is that the API App stuff is new, so I don't know what it will let me do, and the other part is not being super familiar with what C# needs. I can read C# code and translate it, but writing it is a different story
@Hosch250 I've used linq a bit while working with datatables and the like. I can usually get done what I want eventually. The problem in this case was trying to adapt the select output with two data columns into something that the function would accept as being an enumerable when outputted. I'll have to check out that book.
@Hosch250 Heh, honestly, I'm not 100% sure how to do that... since I'm feeding off of a sql database into a datatable, I'll have to hard code a new datatable with the same structure... I'll have to look into it a bit, but I may not be able to finish before tomorrow.
I was up all night filling water balloons for the kids field day today, so I'm hoping to crash not too long after I get home
* not all night, I technically got 2 hours of sleep...
@AndyD273 Yeah it has a ton stuff, you can add locations, maps that you can pin and relate back to text entries, characters, timelines, monsters and a whole bunch of other stuff.
all of it can be linked, so if you set up locations, events and characters for a city and select that city, it will tell you what all is linked to that particular entry.
That does sound really useful. As a person who writes, it might be interesting to see if it can set up a timeline; Bob visits Booperville, event 1, event 2. Bob travels to Fletcherton , event 3, event 4, event 5....
public IEnumerable<string> Get(){ string query = "Select ID, Name from People"; DataTable dt = FetchDataTable(query); var retList = new List<string>(); foreach(DataRow dr in dt.Rows) { retList.Add(Convert.ToString(dr["Name"])); } return retList; }
Hmm, I may have figured it out...
apparently the answer was to change public IEnumerable<string[]> Get() and instead of the foreach do this: string[][] output = dt.AsEnumerable().Select(x => new[] { Convert.ToString(x["ID"]), Convert.ToString(x["Name"]) }).ToArray(); return output;
@AndyD273 If you're calling ".ToArray()" at the end you could change the signature from IEnumerable<string[]> to either IEnumerable<IEnumerable<string>> or string[][]
Just depending on your coding style. I imagine you'll prefer one of those two.
Also I thiiiiiiiink you'll hit performance issues with large tables calling "dt.AsEnumerable()" if I remember correctly. Smaller tables won't be an issue.
@AndyD273 I had several DB professors in college that prefered IDs as strings instead of ints. In their opinion, "INT" or "Decimal" or "Double," etc, were math values. For it to be an INT, Variable + 3, or Variable * 2 needs to have a meaning. ID * 2 has no meaning, so they thought they should be strings.
@James diamond is highly abrassion resistent (duh) and very heat resistant. I saw a video of a guy trying to see how fast he could spin a Lego wheel. He made it up to about 29k RPM then the junction melted between the wheel spacer and the support.
With reduced friction and higher temp resistance, the wheel could probably go a lot faster till other parts of the system failed.
That's why it's an appropriate answer to have diamond coated Legos.