• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:12
CET 12:12
KST 20:12
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
https://www.facebook.com/Silen.Sense.Calm.Ears.Ire What mix of new & old maps do you want in the next ladder pool? (SC2) Potential Updates Coming to the SC2 CN Server Behind the Blue - Team Liquid History Book herO wins SC2 All-Star Invitational
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
KK Platform will provide 1 million CNY Recent recommended BW games ASL21 General Discussion Gypsy to Korea RepMastered™: replay sharing and analyzer site
Tourneys
[ASL21] Ro24 Group B [Megathread] Daily Proleagues 2026 Changsha Offline Cup [ASL21] Ro24 Group A
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Darkest Dungeon Path of Exile
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
Complete Overview Of Fenbendazole Tablet US Politics Mega-thread The Games Industry And ATVI European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Which is better SEO or PPC? [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 9981 users

The Big Programming Thread - Page 952

Forum Index > General Forum
Post a Reply
Prev 1 950 951 952 953 954 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
March 22 2018 17:25 GMT
#19021
For a website, ASP.NET core works nicely for me, though I don't have any other Web experience. DB access is done using Entity Framework Core. All very easy to set up on Azure, too.
If you have a good reason to disagree with the above, please tell me. Thank you.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 23 2018 01:11 GMT
#19022
On March 22 2018 17:15 Excludos wrote:
Very Janky, like duplicate slide bars. That said the main problem I have is I don't quite understand how to use it. It's not super user friendly, especially without instructions

How would you like instructions to be displayed to you? Would a tool-tip question mark beside the main slider box with a modal pop-up be good?

The instructions themselves are just to move the sliders around to represent the number of houses/railroads/utilities owned and see how different squares compare - the sum value is 40, so a value of 1 means a square is 1/2 as valuable as a square with a value of 2.

It is super janky. Pug is fucking up the rendering for whatever reason. I'm looking into fixing that, but at least it works for now.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
March 23 2018 08:18 GMT
#19023
On March 23 2018 10:11 WarSame wrote:
Show nested quote +
On March 22 2018 17:15 Excludos wrote:
Very Janky, like duplicate slide bars. That said the main problem I have is I don't quite understand how to use it. It's not super user friendly, especially without instructions

How would you like instructions to be displayed to you? Would a tool-tip question mark beside the main slider box with a modal pop-up be good?

The instructions themselves are just to move the sliders around to represent the number of houses/railroads/utilities owned and see how different squares compare - the sum value is 40, so a value of 1 means a square is 1/2 as valuable as a square with a value of 2.

It is super janky. Pug is fucking up the rendering for whatever reason. I'm looking into fixing that, but at least it works for now.


That middle part is what I don't get. Does "owning houses" make probability change even if it doesn't matter where does houses are placed? Shouldn't it matter where those houses are placed? Like why does "owning houses" make it better for me to take Mediterranean Avenue? And shouldn't it be more than 5? I haven't played monopoly in a while (Because, as board games go, it's one of the shittier ones. It's up there with Risk on "How to make your friends hate you"), but I seem to remember that you can have much more than 5 (Or rather, they combine to make a big house).

As for instructions, there's really no one answer here. I'd be fine with just a question mark button you can hover over and get a tooltip from, tho that can be easy to miss. You could just have the text at the top or bottom, depending on how long it is. Or you can just mess around with it and see what fits best
tofucake
Profile Blog Joined October 2009
Hyrule19198 Posts
March 23 2018 12:31 GMT
#19024
monopoly is easy:
1. buy as much of the first row as possible
2. build houses
3. never upgrade to hotels
Liquipediaasante sana squash banana
Acrofales
Profile Joined August 2010
Spain18246 Posts
March 23 2018 12:42 GMT
#19025
On March 23 2018 21:31 tofucake wrote:
monopoly is easy:
1. buy as much of the first row as possible
2. build houses
3. never upgrade to hotels

Honestly, monopoly you should just always buy what you land on as long as you have money to do so. Even if you don't want it, someone will want to trade it later on. Except maybe the utilities. Those can lead to some good earlygame cash, but don't make a dent when people start building houses.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 24 2018 01:03 GMT
#19026
On March 23 2018 17:18 Excludos wrote:
Show nested quote +
On March 23 2018 10:11 WarSame wrote:
On March 22 2018 17:15 Excludos wrote:
Very Janky, like duplicate slide bars. That said the main problem I have is I don't quite understand how to use it. It's not super user friendly, especially without instructions

How would you like instructions to be displayed to you? Would a tool-tip question mark beside the main slider box with a modal pop-up be good?

The instructions themselves are just to move the sliders around to represent the number of houses/railroads/utilities owned and see how different squares compare - the sum value is 40, so a value of 1 means a square is 1/2 as valuable as a square with a value of 2.

It is super janky. Pug is fucking up the rendering for whatever reason. I'm looking into fixing that, but at least it works for now.


That middle part is what I don't get. Does "owning houses" make probability change even if it doesn't matter where does houses are placed? Shouldn't it matter where those houses are placed? Like why does "owning houses" make it better for me to take Mediterranean Avenue? And shouldn't it be more than 5? I haven't played monopoly in a while (Because, as board games go, it's one of the shittier ones. It's up there with Risk on "How to make your friends hate you"), but I seem to remember that you can have much more than 5 (Or rather, they combine to make a big house).

As for instructions, there's really no one answer here. I'd be fine with just a question mark button you can hover over and get a tooltip from, tho that can be easy to miss. You could just have the text at the top or bottom, depending on how long it is. Or you can just mess around with it and see what fits best

The number display is "value", not probability. The squares have different rent progression, so at different numbers of houses they have different value ratios. The program just assumes you have the number of house on each square equivalent to the slider's value. You can only have up to 5 houses(the 5th is the hotel).

Monopoly is a terrible game. It was actually designed to be a terrible game to show people the dangers of capitalism.

https://en.wikipedia.org/wiki/Monopoly_(game)#Early_history

I'll get to the instructions section after I fix the basic UI, but I appreciate your feedback and I'll look back at it when I get there.

On March 23 2018 21:31 tofucake wrote:
monopoly is easy:
1. buy as much of the first row as possible
2. build houses
3. never upgrade to hotels

That's a surprisingly viable strategy. They would have to upgrade 0 houses -> hotel which is impossible with no revenue.

On March 23 2018 21:42 Acrofales wrote:
Show nested quote +
On March 23 2018 21:31 tofucake wrote:
monopoly is easy:
1. buy as much of the first row as possible
2. build houses
3. never upgrade to hotels

Honestly, monopoly you should just always buy what you land on as long as you have money to do so. Even if you don't want it, someone will want to trade it later on. Except maybe the utilities. Those can lead to some good earlygame cash, but don't make a dent when people start building houses.

Utilities are great if you're playing with people who aren't going to trade with each other. The earlier you think the first monopoly will appear the worse they are.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 24 2018 20:55 GMT
#19027
I updated the content and the link using AWS-Serverless-Express:

https://xqc864csp7.execute-api.ca-central-1.amazonaws.com/prod/
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
ZerOCoolSC2
Profile Blog Joined February 2015
9037 Posts
March 27 2018 18:55 GMT
#19028
I know it can be done, but I can't think of the solution. How do you narrowly search for GPS location in C#? Say, if you wanted to know if there was another user within a 2-3 block radius from where you are? I found some stuff on Stack Overflow, but I need to add a function to search for nearby users instead of just getting your current location.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
March 27 2018 19:48 GMT
#19029
On March 28 2018 03:55 ZerOCoolSC2 wrote:
I know it can be done, but I can't think of the solution. How do you narrowly search for GPS location in C#? Say, if you wanted to know if there was another user within a 2-3 block radius from where you are? I found some stuff on Stack Overflow, but I need to add a function to search for nearby users instead of just getting your current location.

Well, you're going to need some kind of centralized system that will store GPS locations, at least temporarily. And of course every user that comes up in the search also has to be giving their location to your centralized system.

After that, it's just math.
Average means I'm better than half of you.
ZerOCoolSC2
Profile Blog Joined February 2015
9037 Posts
March 27 2018 20:00 GMT
#19030
What would be some of the functions that would need to be called? I'd check the server almost every x amount of seconds to see if there were nearby users, get that. It would need to be so that if the app signature is no longer in the area, then it bounces to the next one until it gets a hit.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
March 27 2018 20:16 GMT
#19031
On March 28 2018 05:00 ZerOCoolSC2 wrote:
What would be some of the functions that would need to be called? I'd check the server almost every x amount of seconds to see if there were nearby users, get that. It would need to be so that if the app signature is no longer in the area, then it bounces to the next one until it gets a hit.

That really depends on what you're trying to do with those GPS locations.
Average means I'm better than half of you.
tofucake
Profile Blog Joined October 2009
Hyrule19198 Posts
March 27 2018 20:52 GMT
#19032
Haversine is used to calculate the distance between two GPS coords
Liquipediaasante sana squash banana
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
March 27 2018 21:19 GMT
#19033
On March 28 2018 05:52 tofucake wrote:
Haversine is used to calculate the distance between two GPS coords


2-3 block radius you just use ||x1-x2||_2 I imagine :p
TRUEESPORTS || your days as a respected member of team liquid are over
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
Last Edited: 2018-03-27 21:29:15
March 27 2018 21:26 GMT
#19034
On March 28 2018 05:00 ZerOCoolSC2 wrote:
What would be some of the functions that would need to be called? I'd check the server almost every x amount of seconds to see if there were nearby users, get that. It would need to be so that if the app signature is no longer in the area, then it bounces to the next one until it gets a hit.


If I understand correctly, the naive way would be to calculate the distance between each user using whatever distance metric. I’m sure if you think or search around there are more elegant ways (i.e., if you know two users are far apart based on earlier calculations no need to check the distance between a third user that is close to either one of them).
TRUEESPORTS || your days as a respected member of team liquid are over
ZerOCoolSC2
Profile Blog Joined February 2015
9037 Posts
March 27 2018 21:34 GMT
#19035
I just need to see if two users are within the same area in order for an event to be triggered. They don't have to keep GPS on, they just need to "upload" their current location and then the app needs to see if there is another person with the app installed nearby in order to trigger the event. Like Wolf said, the locations are stored temporarily until they match or they move out of the radius.
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
Last Edited: 2018-03-27 21:47:14
March 27 2018 21:42 GMT
#19036
On March 28 2018 06:34 ZerOCoolSC2 wrote:
I just need to see if two users are within the same area in order for an event to be triggered. They don't have to keep GPS on, they just need to "upload" their current location and then the app needs to see if there is another person with the app installed nearby in order to trigger the event. Like Wolf said, the locations are stored temporarily until they match or they move out of the radius.


Mm I would take the norm of the difference of every entry in the database and add it to a matrix. If any entry is less than my specified distance then do stuff.

If you have a lot of users then you probably do something more clever to save time and memory.

Edit: of course when a new user is added you just calculate that user
TRUEESPORTS || your days as a respected member of team liquid are over
ZerOCoolSC2
Profile Blog Joined February 2015
9037 Posts
March 27 2018 21:51 GMT
#19037
Thanks. I am starting to see how it should work in my mind. If I get it working (probably use and adapt code), I'll post here. I'm waiting for Google to open up Maps to developers officially. Haven't seen anything yet. That will be another piece solved when they do that.
Thaniri
Profile Blog Joined March 2011
1264 Posts
March 29 2018 00:33 GMT
#19038
Another fantastic repo has been spotted:
https://github.com/jezen/is-thirteen
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
March 29 2018 02:14 GMT
#19039
lmao wtf. It would be hard for me to even think up a project like that.
Acrofales
Profile Joined August 2010
Spain18246 Posts
March 29 2018 08:18 GMT
#19040
On March 29 2018 09:33 Thaniri wrote:
Another fantastic repo has been spotted:
https://github.com/jezen/is-thirteen

Suddenly a rigidly controlled set of libraries is more and more attractive. Whoda thunk curation of the crap that people commit as "libraries" would be important?
Prev 1 950 951 952 953 954 1032 Next
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 4: Playoffs Day 3
herO vs RogueLIVE!
Tasteless954
IndyStarCraft 205
Rex93
CranKy Ducklings63
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 954
IndyStarCraft 205
Rex 93
MindelVK 1
StarCraft: Brood War
Britney 9324
Sea 4383
Jaedong 862
Killer 387
firebathero 346
Soma 331
Mini 277
Stork 270
actioN 245
EffOrt 178
[ Show more ]
Hyun 170
Last 157
Soulkey 121
hero 76
ZerO 62
Sharp 50
Barracks 44
sSak 38
sorry 32
scan(afreeca) 28
Hm[arnc] 28
Movie 24
NaDa 17
SilentControl 10
IntoTheRainbow 6
Noble 4
Dota 2
XaKoH 719
XcaliburYe400
canceldota164
League of Legends
JimRising 378
Counter-Strike
zeus783
allub290
Other Games
singsing1720
ArmadaUGS904
B2W.Neo858
crisheroes268
FrodaN211
mouzStarbuck182
Fuzer 182
Sick107
RotterdaM74
ZerO(Twitch)14
Organizations
Other Games
BasetradeTV76
StarCraft: Brood War
CasterMuse 12
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH282
• LUISG 31
• CranKy Ducklings SOOP2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos492
Upcoming Events
Platinum Heroes Events
3h 48m
BSL
8h 48m
RSL Revival
22h 48m
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
1d
BSL
1d 7h
Replay Cast
1d 12h
Replay Cast
1d 21h
Afreeca Starleague
1d 22h
Light vs Calm
Royal vs Mind
Wardi Open
1d 23h
Monday Night Weeklies
2 days
[ Show More ]
OSC
2 days
Sparkling Tuna Cup
2 days
Afreeca Starleague
2 days
Rush vs PianO
Flash vs Speed
Replay Cast
3 days
Afreeca Starleague
3 days
BeSt vs Leta
Queen vs Jaedong
Replay Cast
4 days
The PondCast
4 days
Replay Cast
5 days
RSL Revival
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

KCM Race Survival 2026 Season 1
WardiTV Winter 2026
Underdog Cup #3

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
StarCraft2 Community Team League 2026 Spring
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.