|
luigi thirty i did a "proper" mvvm version of your blackjack game without all the image stuff. have fun.
|
# ? Jul 29, 2014 23:42 |
|
|
# ? May 17, 2024 09:30 |
|
BONGHITZ posted:if only i could do things without having to learn how to do those things, that would be really nice yes learn how to do asp.net forms when I could instead do anything else lol but yeah realpost that "I don't know this thing yet" feeling sucks
|
# ? Jul 29, 2014 23:46 |
|
candy for breakfast posted:luigi thirty i did a "proper" mvvm version of your blackjack game without all the image stuff. have fun. holy poo poo I didn't know you could put a camel in commit messages like that
|
# ? Jul 30, 2014 01:00 |
|
how the gently caress does a* work? i've looked at a bunch of tutorials on it and it still doesn't make any sense
|
# ? Jul 30, 2014 04:28 |
|
do you understand djikstra's? http://en.wikipedia.org/wiki/A*
|
# ? Jul 30, 2014 04:31 |
|
if you just look at wikipedia it won't make much sense, you should check out one of the simpler game implementations. it's pretty easy to use a* to do path-finding on 2d grids, and that gives you a practical case for the heuristic and should be pretty easy to comprehend. this looks like a decent breakdown: http://www.policyalmanac.org/games/aStarTutorial.htm
|
# ? Jul 30, 2014 04:37 |
|
DukeDuke posted:how the gently caress does a* work? i've looked at a bunch of tutorials on it and it still doesn't make any sense its less confusing once you actually write an implementation. just try to write it once and then you'll realize it's actually pretty simple
|
# ? Jul 30, 2014 04:38 |
|
candy for breakfast posted:luigi thirty i did a "proper" mvvm version of your blackjack game without all the image stuff. have fun. wow nice team foundation server error when i load it in visual studio... also thanks this is v helpful
|
# ? Jul 30, 2014 07:47 |
|
http://www.redblobgames.com/pathfinding/a-star/introduction.html
|
# ? Jul 30, 2014 09:38 |
|
well i have a wpf book recommendation so is c# in depth good too
|
# ? Jul 30, 2014 19:37 |
|
judging by your blackjack thingummy, you'd be better off with Essential C# 5.0. i think there's a lot of foundational material you're probably missing
coffeetable fucked around with this message at 19:49 on Jul 30, 2014 |
# ? Jul 30, 2014 19:46 |
|
let me tell you about my extensive experience in p-langs and how that knowledge applies to real world things outside of college
|
# ? Jul 30, 2014 20:09 |
|
MeramJert posted:its less confusing once you actually write an implementation. just try to write it once and then you'll realize it's actually pretty simple the short version is that for depth first search when i visit a new node i put its unvisited neighbors on a stack and work off the stack. for breadth first search i put unvisited neighbors in a queue and work off that. for a* i put unvisited neighbors in a heap that is sorted by my guess* about that point being in the shortest path and work off that. my guess is how far it is from start to this point plus how far i think it is from that point to the end FamDav fucked around with this message at 20:48 on Jul 30, 2014 |
# ? Jul 30, 2014 20:20 |
|
also admissable heuristic really just means your guess is never worse than reality,
|
# ? Jul 30, 2014 20:22 |
|
Luigi Thirty posted:let me tell you about my extensive experience in p-langs and how that knowledge applies to real world things outside of college people in college are literally children so no matter how many times you tell them how things will work when they become adults, they refuse to believe it
|
# ? Jul 30, 2014 20:40 |
|
Shaggar posted:people in college are literally children so no matter how many times you tell them how things will work when they become adults, they refuse to believe it i typed "shaggar was right" into google and the top result was a blogspot named Incarnating Abyssinian Hitlers through music coffeetable posted:judging by your blackjack thingummy, you'd be better off with Essential C# 5.0. i think there's a lot of foundational material you're probably missing wow and it's only 27 dollars on amazon
|
# ? Jul 30, 2014 20:56 |
|
i got http://pastebin.com/RE96mWFU
|
# ? Jul 30, 2014 20:56 |
|
Luigi Thirty posted:i typed "shaggar was right" into google and the top result was a blogspot named Incarnating Abyssinian Hitlers through music http://libgen.org/
|
# ? Jul 30, 2014 20:58 |
|
Luigi Thirty posted:let me tell you about my extensive experience in p-langs and how that knowledge applies to real world things outside of college literally every job i have had since high school has been made better by automating the stupid office crap everyone has to do all the time and plangs make that super easy
|
# ? Jul 30, 2014 21:35 |
|
i dont think thats legal timb
|
# ? Jul 30, 2014 22:22 |
|
I'm trying to normalize a table where each row contains 3 delimited strings with hundreds on entries in each. I've got a split string function which works well and the following function works but feels like idiot SQL to me because I'm making 3 temp tables with an identity and joining them all for the return table. Is there a simple solution?code:
|
# ? Jul 31, 2014 00:44 |
|
It's idiot schema already, just do whatever to fix it. Depends how frequently the data updates, one could leave the intermediate tables permanently in place and use triggers to update. You could always stuff temporary tables behind a materialized view, unless its SQL Server and you probably have to fake it anyway.
|
# ? Jul 31, 2014 00:51 |
|
it's more of I want to know the right way. it's for data conversion so it only needs a couple of runs anyway, so in this case efficiency doesn't matter. it just feels like I'm doing something ugly where there should be a tidier approach.
|
# ? Jul 31, 2014 01:46 |
|
ah databases something i do know abo-- what the hell is that schema
|
# ? Jul 31, 2014 02:41 |
|
Luigi Thirty posted:ah databases something i do know abo-- what the hell is that schema for some reason the author of this abomination decided just put GL accounts with one row each and concatenate the credits / debits in caret delimited strings.
|
# ? Jul 31, 2014 02:49 |
|
do... do they still work there
|
# ? Jul 31, 2014 03:19 |
|
CISADMIN PRIVILEGE posted:I'm trying to normalize a table where each row contains 3 delimited strings with hundreds on entries in each. I've got a split string function which works well and the following function works but feels like idiot SQL to me because I'm making 3 temp tables with an identity and joining them all for the return table. Is there a simple solution? I don't think you really need the temp tables but maybe im not totally getting the entire problem. SQL code:
|
# ? Jul 31, 2014 03:52 |
|
Luigi Thirty posted:do... do they still work there "they" is the author of a member database system for organizations which at one time had thousands of customers including some you've heard of. the poo poo is a result of an sql conversion upgrade from some dumbass flat file mainframe thing. dude sold his company to a huge company for a shitload of money, who then several years later gave it back to him. I don't have access to the application code and the only person who does that i know personally is a mediocre programmer at best (not to mention the code is c++ so if the SQL is that much of an abomination i don't actually want to see it)
|
# ? Jul 31, 2014 04:06 |
|
Shaggar posted:I don't think you really need the temp tables but maybe im not totally getting the entire problem. thanks i'll try that tomorrow.
|
# ? Jul 31, 2014 04:06 |
|
idk if that stuff I wrote is right. maybe you can use an unpivot or something too. also a merge so you can run it over and over w/out duplicating data and stuff. w/e. its a pretty good exercise tho cause bad data is gonna happen and its nice to know how to fix it.
|
# ? Jul 31, 2014 04:20 |
|
or maybe a cross apply? likeSQL code:
|
# ? Jul 31, 2014 04:57 |
|
Shaggar posted:or maybe a cross apply? like i use cross apply on the return value from the function above in order to create a final table with |ACCTNO|FISCAL_PER|DR|CR| so that the table can be keyed on ACCTNO and FISCAL_PER for sensible queries. Then I normalized out all of the other account details. (if account type, header account etc) the results are financially sound it's just my function above feels like it could be done much better which I think you did in your previous post.
|
# ? Jul 31, 2014 05:05 |
|
rad
|
# ? Jul 31, 2014 05:07 |
|
i just hate it when I know there's a better way to write a query, but the fact i don't do this poo poo every day makes it hard for me to figure out.
|
# ? Jul 31, 2014 05:22 |
|
yeah sql code smell is really strong.
|
# ? Jul 31, 2014 05:24 |
|
Corla Plankun posted:literally every job i have had since high school has been made better by automating the stupid office crap everyone has to do all the time exceldna loving owns so hard f# in excel
|
# ? Jul 31, 2014 08:35 |
|
huh well looks like everyone finally learned to program good
|
# ? Aug 16, 2014 18:04 |
|
congrats all
|
# ? Aug 16, 2014 18:05 |
|
don't ask the users of my company's website.
|
# ? Aug 16, 2014 19:03 |
|
|
# ? May 17, 2024 09:30 |
|
CPColin posted:don't ask the users of my company's website. asking as user for their opinion on a product they use and continue to use is like asking a beaten spouse their opinion of their spouse
|
# ? Aug 16, 2014 22:21 |