• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:21
CEST 07:21
KST 14:21
  • 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
ByuL, and the Limitations of Standard Play1Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview8
Community News
[TLMC] Summer 2026 Ladder Map Rotation05.0.16 patch for SC2 goes live (8 worker start)65ZeroSpace at Steam NextFest - Last free demo31Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 202611
StarCraft 2
General
Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) Mizenhauer's Douyu Cup Preview ByuL, and the Limitations of Standard Play Possible bug in the new patch?
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event Douyu Cup 2026: $20,000 Legends Event (June 26-28) INu's Battles#17 <BO.9> Sparkling Tuna Cup - Weekly Open Tournament GSL CK #4 20-21th June
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 531 Experimental Artillery Mutation # 530 One For All Mutation # 529 Opportunities Unleashed
Brood War
General
vespene.gg — BW replays in browser Quality of life changes in BW that you will like ? ASL 22 Proposed Map Pool BW General Discussion [BSL22] Non-Korean Championship from 13 to 28 June
Tourneys
[Megathread] Daily Proleagues The Casual Games of the Week Thread [BSL22] GosuLeague Casts - Tue & Thu 22:00 CEST CSLAN 4 is Coming!
Strategy
Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration? Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Beyond All Reason Nintendo Switch Thread ZeroSpace at Steam NextFest - Last free demo
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread [H]Internet/Gaming Cafe Tips and Tricks
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 McBoner: A hockey love story Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Listen To The Coaches!
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6059 users

The Big Programming Thread - Page 989

Forum Index > General Forum
Post a Reply
Prev 1 987 988 989 990 991 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.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 14 2019 00:58 GMT
#19761
My first job paid almost as much as the average household income in Canada. My second job pays about the average. This is for 1 person vs. a household.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Excludos
Profile Blog Joined April 2010
Norway8263 Posts
Last Edited: 2019-01-14 08:13:47
January 14 2019 08:13 GMT
#19762
On January 14 2019 08:31 solidbebe wrote:
Show nested quote +
On January 14 2019 02:00 Excludos wrote:
On January 13 2019 23:36 SC-Shield wrote:
On January 13 2019 22:16 mahrgell wrote:
Those extraordinarily high salary jobs usually have this extraordinarily high salary, because you do require extraordinarily rare/difficult additional skills, which you don't just randomly acquire in a remote evening webinar or by grabbing 2 books from the local library.

If the logic of
high pay there -> lets quickly learn that stuff -> ez money
would work, those jobs weren't high paying for long.


Ok, higher than average salary then. What could I do to achieve this using C++? I don't want to use Java because I dislike it. I don't want to drop C++, but I'm ok with using .NET Framework together with C++. Maybe I'd also learn Go if necessary.


If you want to earn more, you'll first off need to be good at what you do, and have some experience. You're not going to get any useful salary the first few years out of school.
.

?
Graduates from technological universities have an average starting salary around median income here.


I'm sorry, bad choice of words from me there. It's far from useless, but it's going to be on the low end for the industry. My first job only 4-5 years ago gave me about half of what I earn now, and I started out a bit higher than most of my friends. It's still true that it was well above median income tho.
Acrofales
Profile Joined August 2010
Spain18328 Posts
January 14 2019 11:50 GMT
#19763
On January 14 2019 03:23 travis wrote:
I want to execute a function every 5 minutes - within a time window of a few seconds. It needs to be consistent even if it runs for 24 hours straight. It needs to match the time on a website. I can sync my windows clock to the time on the website.

Does anyone know how to do this in python?

edit: im gonna use APScheduler
https://apscheduler.readthedocs.io/en/latest/


while True:
process = Thread(target=travisSpecialTask, args=stuff)
process.start()
sleep(300);
Manit0u
Profile Blog Joined August 2004
Poland17774 Posts
January 14 2019 12:49 GMT
#19764

class SuccessFileNotFoundException extends Exception


Don't you just love meaningful and non-confusing naming?
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 14 2019 13:50 GMT
#19765
On January 14 2019 20:50 Acrofales wrote:
Show nested quote +
On January 14 2019 03:23 travis wrote:
I want to execute a function every 5 minutes - within a time window of a few seconds. It needs to be consistent even if it runs for 24 hours straight. It needs to match the time on a website. I can sync my windows clock to the time on the website.

Does anyone know how to do this in python?

edit: im gonna use APScheduler
https://apscheduler.readthedocs.io/en/latest/


while True:
process = Thread(target=travisSpecialTask, args=stuff)
process.start()
sleep(300);


my concern there is that it would lose accuracy over time.
like, the first time if i ran it exactly at 12 am, by 24 hours later it might be off by like 5 seconds? or would that not happen
Acrofales
Profile Joined August 2010
Spain18328 Posts
January 14 2019 14:13 GMT
#19766
On January 14 2019 22:50 travis wrote:
Show nested quote +
On January 14 2019 20:50 Acrofales wrote:
On January 14 2019 03:23 travis wrote:
I want to execute a function every 5 minutes - within a time window of a few seconds. It needs to be consistent even if it runs for 24 hours straight. It needs to match the time on a website. I can sync my windows clock to the time on the website.

Does anyone know how to do this in python?

edit: im gonna use APScheduler
https://apscheduler.readthedocs.io/en/latest/


while True:
process = Thread(target=travisSpecialTask, args=stuff)
process.start()
sleep(300);


my concern there is that it would lose accuracy over time.
like, the first time if i ran it exactly at 12 am, by 24 hours later it might be off by like 5 seconds? or would that not happen

You'd have to profile it, but my guess is that launching a thread is negligible (in the range of 1 millisecond or less). In 24 hours you launch 24*12 = 288 threads, so if it's 1 ms for launching a thread, your inaccuracy is still well under a second. That said, if you already do it with a scheduler, then don't worry about it.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-01-15 01:18:45
January 15 2019 01:15 GMT
#19767
here's a question

(which will likely make it readily apparent I know nothing)


when it comes to like, reinforcement learning -
models are based on a dataset, yes? and the model gets updated over and over and over, hence the "reinforcement"?
- feel free to cut me off if this is way wrong

but if that is correct so far, then my question is
how do these datasets not grow so large that they are impossible to use? like, alphago for example?

am I vastly underestimating how clever programmers are about this stuff?
is the magic in how neural nets work?
Lmui
Profile Joined November 2010
Canada6223 Posts
January 15 2019 01:28 GMT
#19768
On January 15 2019 10:15 travis wrote:
here's a question

(which will likely make it readily apparent I know nothing)


when it comes to like, reinforcement learning -
models are based on a dataset, yes? and the model gets updated over and over and over, hence the "reinforcement"?
- feel free to cut me off if this is way wrong

but if that is correct so far, then my question is
how do these datasets not grow so large that they are impossible to use? like, alphago for example?

am I vastly underestimating how clever programmers are about this stuff?
is the magic in how neural nets work?


Training the neural net requires computation power equivalent to the size of the dataset but calculation of an output based on the input takes a fixed amount of processing power.

Pretty much O(n) for training, O(1) for calculation
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-01-15 02:13:11
January 15 2019 02:01 GMT
#19769
okay, ill stop asking questions before I annoy people because I obviously should just be taking an actual course on this
but I want to throw out one last question about neural nets

this is purely a guess -
are neural nets basically graphs where nodes are possible actions (or choices... or classifications... or whatever) and edges determine choice sequences, and the weights of edges determine the odds of following choice 1 into choice 2?


edit: no, no it isn't. not at all! but my idea could be something neat
aRyuujin
Profile Blog Joined January 2011
United States5049 Posts
Last Edited: 2019-01-15 02:59:02
January 15 2019 02:58 GMT
#19770
no but your intuition is not that bad. neurons are basically functions that map some input to some output in some way, and differing outputs happen as a result of that function's behavior.
can i get my estro logo back pls
Acrofales
Profile Joined August 2010
Spain18328 Posts
January 15 2019 08:35 GMT
#19771
On January 15 2019 11:01 travis wrote:
okay, ill stop asking questions before I annoy people because I obviously should just be taking an actual course on this
but I want to throw out one last question about neural nets

this is purely a guess -
are neural nets basically graphs where nodes are possible actions (or choices... or classifications... or whatever) and edges determine choice sequences, and the weights of edges determine the odds of following choice 1 into choice 2?


edit: no, no it isn't. not at all! but my idea could be something neat

Your idea sounds kinda like a Markov Decision Process (MDP). Neural networks (ANN) are something different. Perhaps you're confused, because you can use an ANN to solve an MDP, and you saw something like that?

Anyway, to answer your earlier question: RL generally doesn't learn from a dataset, but from trial and error. You could use a dataset as the basis for the reward function, but the idea is really that it executes some policy (method for determining the best actions), gets some outcome and uses this to update the policy, then uses the new policy to do it all again. This is a time-consuming process, but as Lmui pointed out, once you have finished training, and have a good policy, execution of the policy is straightforward.
LightTemplar
Profile Blog Joined August 2011
Ireland481 Posts
Last Edited: 2019-01-15 13:42:33
January 15 2019 13:39 GMT
#19772
Out of curiosity, I'm currently seeing every programmer around me and their dog doing some learning in the ML space over the last 1-2 years. Is this just a local phenomenon or more universal? I'm wondering how saturated that space is going to be over the next few years. Speaking strictly in terms of employment for those who learn it rather than any kind of engineering interest.

Also want to agree with the folks above. Focusing on a specific language / stack has always seemed like a pitfall to me. All the best people I've worked with will pick up the tools for the job when it makes sense to do so; some of the most frustrating are those that refuse to try something new.
"Thoughts are always there, the mind can't stop" - Grubby
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2019-01-15 13:52:42
January 15 2019 13:49 GMT
#19773
Even assuming AI is indeed the future, AI jobs are a bubble right now, but it will plateau or even dial down at some point. Having basics in machine learning will be very common for every scientist or programmer, but we don't need that many people working on data.

And like everything else, there is a spectrum of skill and expertise within AI/ML, after a while it won't be worth much to put that on your CV if all you did was take a class.
I would say at this very moment it indeed looks good on your CV though. Even small businesses are looking for a dedicated "data scientist" even if they don't realize they need one full-time guy to do that.
Manit0u
Profile Blog Joined August 2004
Poland17774 Posts
January 15 2019 15:36 GMT
#19774
There's a boom for that currently because business doesn't understand how things work and companies will do everything to put hype words like "big data", "blockchain", "AI", "machine learning" wherever they can just to attract potential investors by showing how cool and hip they are.

This is also why there's currently such a big market for people in those fields. Companies are hiring whomever had any contact with it, regardless of their actual knowledge on the matter or experience with doing anything that's running live in production and making money.

I have a friend who's working for a company that wants to release a new product. They are forcing introduction of blockchain into the project despite every developer telling them that they don't need blockchain for their use case scenarios.

It's really sad and I hope that this stupid hype bubble will burst soon so that people will finally realize that you can't use ML and blockchain for everything...
Time is precious. Waste it wisely.
Excludos
Profile Blog Joined April 2010
Norway8263 Posts
Last Edited: 2019-01-15 15:59:06
January 15 2019 15:57 GMT
#19775
Somewhere out there I'm sure there's a code for gathering large numbers of text based data analysed with ML to produce the words "Hello World",

edit: Also this http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2019-01-15 16:14:33
January 15 2019 16:06 GMT
#19776
Haha that's good. I'm actually surprised it got a few wrong... I don't agree with making %15 a complete distinct case from %5 and %3 .
LightTemplar
Profile Blog Joined August 2011
Ireland481 Posts
Last Edited: 2019-01-15 17:54:33
January 15 2019 17:53 GMT
#19777
Amazing :D

Glad the blockchain into everything and AI on everything isn't just my experience. Sort of....
"Thoughts are always there, the mind can't stop" - Grubby
waffelz
Profile Blog Joined June 2012
Germany711 Posts
Last Edited: 2019-01-15 20:50:15
January 15 2019 20:33 GMT
#19778
On January 16 2019 02:53 LightTemplar wrote:
Amazing :D

Glad the blockchain into everything and AI on everything isn't just my experience. Sort of....


Have you some data on this? A lot of data preferably... like a big pile of data?

I just realised, ML is the logical conclusion for all the big data hacks (not to discard big data as a whole ofc). Think about it, we got lots of cases where we couldnt make sense out of big data so now we throw ML at it so it can make no sense out of it. I expect to get abducted any seco
RIP "The big travis CS degree thread", taken from us too soon | Honourable forum princess, defended by Rebs-approved white knights
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 15 2019 22:11 GMT
#19779
Given a 2d point, and a distance, I would like to output a point every 10 degrees on the circle that surrounds that point by the distance. It can start at 0 degrees, I don't really care. So, 35 points.

What is a good way to do that? Brain is pretty tired. I am using python but I am sure I could convert non python code to python if you want to write it in your favorite language (without relying on libraries).
Excludos
Profile Blog Joined April 2010
Norway8263 Posts
Last Edited: 2019-01-15 22:18:03
January 15 2019 22:16 GMT
#19780
On January 16 2019 07:11 travis wrote:
Given a 2d point, and a distance, I would like to output a point every 10 degrees on the circle that surrounds that point by the distance. It can start at 0 degrees, I don't really care. So, 35 points.

What is a good way to do that? Brain is pretty tired. I am using python but I am sure I could convert non python code to python if you want to write it in your favorite language (without relying on libraries).


This seems more like a mathematical problem than a programming one. Once you find the formula for moving around the circumference of a circle (easily found by googling if you don't want to have a go at it yourself), actually implementing the solution is a cakewalk.

Edit: Or, download, install and learn Unity (and C#), and use the function transform.RotateAround()
Prev 1 987 988 989 990 991 1032 Next
Please log in or register to reply.
Live Events Refresh
Douyu Cup 2020
05:00
2026 - Day 2
Neeb vs Impact
MacSed vs Cyan
Scarlett vs Kelazhur
INnoVation vs Dear
CranKy Ducklings86
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft602
Nina 178
RuFF_SC2 172
ProTech138
StarCraft: Brood War
Rain 4601
GuemChi 3084
Shuttle 480
Snow 117
ZergMaN 34
Noble 20
Bale 13
Icarus 5
Dota 2
NeuroSwarm101
League of Legends
JimRising 717
Counter-Strike
Coldzera 1249
Other Games
summit1g11210
C9.Mang0676
Mew2King138
ViBE131
Organizations
Other Games
gamesdonequick1126
StarCraft: Brood War
UltimateBattle 69
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• practicex 21
• CranKy Ducklings SOOP21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1172
• Stunt357
Upcoming Events
Big Brain Bouts
10h 39m
Jumy vs eGGz
Harstem vs sebesdes
TriGGeR vs HeRoMaRinE
Douyu Cup 2020
23h 39m
Maestros of the Game
1d 7h
herO vs Classic
Maru vs Serral
BSL22 NKC (BSL vs China)
1d 8h
Douyu Cup 2020
1d 23h
BSL22 NKC (BSL vs China)
2 days
Online Event
2 days
RSL Revival
2 days
WardiTV Weekly
3 days
RSL Revival
4 days
[ Show More ]
RSL Revival
4 days
Bombastic Starleague
4 days
Kung Fu Cup
5 days
OSC
5 days
CrankTV Team League
6 days
Bombastic Starleague
6 days
Replay Cast
6 days
Liquipedia Results

Completed

CSCL: Masked Kings S4
WardiTV Spring 2026
Heroes Pulsing #2

Ongoing

IPSL Spring 2026
Acropolis #4
YSL S3
BSL 22 Non-Korean Championship
CSL Season 21: Qualifier 1
CSL Season 21: Qualifier 2
SCTL 2026 Spring
Douyu Cup 2026
Maestros of the Game 2
Murky Cup 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026

Upcoming

CSL 2026 Summer (S21)
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
BCC 2026
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E1
Heroes Pulsing #3
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
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.