• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 06:33
CET 12:33
KST 20:33
  • 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
Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational13SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)25Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
herO wins SC2 All-Star Invitational PhD study /w SC2 - help with a survey! Oliveira Would Have Returned If EWC Continued StarCraft 2 not at the Esports World Cup 2026 [Short Story] The Last GSL
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 510 Safety Violation Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained
Brood War
General
Which foreign pros are considered the best? [ASL21] Potential Map Candidates Gypsy to Korea BGH Auto Balance -> http://bghmmr.eu/ Fantasy's Q&A video
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Current Meta Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Awesome Games Done Quick 2026!
Dota 2
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 Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Canadian Politics Mega-thread NASA and the Private Sector
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
How Esports Advertising Shap…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1735 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
Norway8231 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
Spain18199 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
Poland17630 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
Spain18199 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
Canada6221 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
Spain18199 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
Poland17630 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
Norway8231 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
Norway8231 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
RongYI Cup
11:00
Playoffs Day 1
herO vs ShoWTimELIVE!
Solar vs Classic
RotterdaM583
ComeBackTV 526
WardiTV274
IndyStarCraft 134
Rex95
BRAT_OK 80
3DClanTV 64
EnkiAlexander 26
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 583
IndyStarCraft 134
Rex 95
SortOf 88
BRAT_OK 80
StarCraft: Brood War
Calm 7769
Rain 3677
Flash 2241
Horang2 1619
Hyuk 1474
Larva 683
BeSt 674
Jaedong 480
Stork 328
Soma 283
[ Show more ]
Mini 277
actioN 264
firebathero 252
Zeus 169
Light 146
Soulkey 142
Snow 99
Pusan 98
ZerO 77
Rush 64
Mong 61
ggaemo 59
PianO 58
yabsab 58
Shuttle 56
Mind 51
ToSsGirL 34
Barracks 34
Sea.KH 31
scan(afreeca) 25
Sharp 23
zelot 22
Free 20
Nal_rA 20
JulyZerg 19
GoRush 19
soO 18
Shinee 18
Icarus 16
910 15
Terrorterran 13
Noble 13
HiyA 13
ajuk12(nOOB) 12
Bale 11
ivOry 5
[sc1f]eonzerg 1
Dota 2
singsing2085
Fuzer 136
XcaliburYe130
NeuroSwarm90
Counter-Strike
kennyS2179
olofmeister1604
zeus581
Super Smash Bros
Mew2King128
Other Games
Sick206
Pyrionflax187
oskar96
ToD83
edward28
ZerO(Twitch)17
Organizations
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• LUISG 37
• Kozan
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• iopq 8
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV235
• lizZardDota245
League of Legends
• Lourlo1242
Upcoming Events
Wardi Open
2h 27m
Monday Night Weeklies
5h 27m
OSC
12h 27m
Replay Cast
21h 27m
RongYI Cup
23h 27m
Clem vs TriGGeR
Maru vs Creator
WardiTV Invitational
1d 2h
Replay Cast
1d 21h
RongYI Cup
1d 23h
WardiTV Invitational
2 days
The PondCast
2 days
[ Show More ]
HomeStory Cup
4 days
Korean StarCraft League
4 days
HomeStory Cup
5 days
Replay Cast
5 days
HomeStory Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

BSL 21 Non-Korean Championship
OSC Championship Season 13
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025

Upcoming

Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 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.