« first day (1721 days earlier)      last day (2089 days later) » 

12:43
@AndyD273 Not my original intent but a good use.
The original intent was to get Legos with really low friction, tough surface finishes to facilitate really fast rotation speeds.
 
1 hour later…
14:14
@James Technically I'm a person, not a fan.
Good morning, WBers
14:53
@NexTerren Good afternoon.
15:04
@Bellerophon I'll stash that wish as an emergency supply for +2 hours
16:03
1
Q: Are there inconsistent standards for closing physics questions?

el duderinoThis 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...

16:27
I'm trying to remember if there was someone in here that was talking about setting up programming training classes
16:39
@AndyD273 Console.WriteLine(stackExchange.Users.FirstOrDefault(aUser => aUser.Conversations.Any(aConversation => aConversation.Find("programming training classes") != -1)));
 
2 hours later…
18:29
@NexTerren too many undefined variables.
18:39
@AndyD273 Touche.
@NexTerren I have no idea what this is in reference to...
@James You said something along the line of "You're a fan of technicalities, aren't you?" So I was clarifying that I was a person of technicalities.
@AndyD273 Me.
Why?
I've talked to 3 recruiters today...
@NexTerren I don't even remember typing that...
May 30 at 18:16, by James
@NexTerren You're a big fan of technicalities aren't you...?
18:52
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.
@NexTerren That was like a year ago...
@Hosch250 No redditing at work, but I shall endeavor to remember to review from home. (I may not remember)
@James Technically it was 5 days ago.
@James No problem.
18:54
@NexTerren Yeah but when you have kids time loses all meaning.
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.
Cool. Hang on a sec, and I'll point you to the two #1 most important docs you should read.
Now go write a small program or few and see what else you need :)
@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...
Can you describe them?
19:11
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
@AndyD273 So, enumerables are lazily executed, and yes, you have to enumerate them.
You got C# In Depth? He explains enumerables really well.
It sets up a state machine and gets each item one by one, and won't get it until you ask for it (with a foreach, a .ToList() call, etc.).
If you are using Linq to Entities, you'd be working with an IQueryable.
It's very similar, and does implement IEnumerable, but it's different too.
You probably want to look at Linqs Select.
19:26
@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.
@AndyD273 Get me an MVCE, please.
I'm about to walk my dog, but I'll be back tonight.
30-min for dog walk, and maybe a 1hr bike ride, but back after that.
19:47
@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 Not sure if I told you but I checked out world anvil...
its a pretty freaking thorough tool
@James Nope, hadn't heard that
Cool. I started to look at it, but then got busy and forgot
Still, looked pretty interesting
I don't know if we have a WB tools page or not
@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....
@AndyD273 You could totally do that. You can also select a...hrmm...instance/version of the tool. So you can set it up as an author, player or dm.
If you set it up as an author all the items specific to table top gaming are hidden.
20:02
Yeah. I chose author, started to play with it, and then other things happened.
Back.
And I missed a conversation about C#?
The word is a sad place.
@AndyD273 I'm not sure I grasp what you're saying here. Can you pseudo code it? Or rephrase it?
20:23
@Green Ok...I need you to explain to me your diamond coated legos comment and why you thought it was the answer to any question ever...
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;
20:44
@AndyD273 Doesn't look too bad.
However, I think you do that cleaner.
Look into using an ORM or microOrm.
Like EF or Dapper.
They handle that better, and actually handle the datatype, so you can just do something like Query<IEnumerable<string>>(query).
EF is more work to set up, but is worth it sometimes.
@NexTerren kinda sad that the ID is a string instead of a number... Might have to make a class to use instead of a string array...
@Hosch250 I may have to work my way up to that
I'm just happy that I was able to get any output at all TBH...
I'm still in the "ow, this makes my head hurt" phase of learning, before the gear stop grinding and finally start turning
I'm pretty sure the problem is squirrels, leaving nuts in the gears, jamming everything up.
@Hosch250 Oh, I think I kind of wrote my own ORM by accident
a really simple one anyway...
Anyway, I'll check out EF and Dapper, at least keep them in mind, see where I can use them
21:15
@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.
So in their mind, you did just fine. :)
21:33
@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.
@Green Since nobody is actually going to cover a lego piece in diamonds anyway, wouldn't it make more sense to build the lego out of a diamond?
You certainly could build a Lego out of diamond and I even know how I would go about doing that.
The trouble is that growing really thick diamond is hard. If people are doing it now, they aren't saying anything about it.
I do know of a growth technique that doesn't require high Temps or pressures. You can basically grow diamond in a mold instead of in discs.
@Green Hm. Okay, fair.
@Green Hey, I mean... I assume normal legos are made with molds (injection molds methinks?).
@NexTerren they are made with injection molds, so conceivably, you could use the low temp diamond grip with method to do it.
I'm glad we figured this out.
@MikeNichols When you leave chat it looks like a bouncing ball.
21:42
:)

« first day (1721 days earlier)      last day (2089 days later) »