• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:05
CET 11:05
KST 19:05
  • 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: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
2026 KongFu Cup Announcement4BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains16Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series21
StarCraft 2
General
Blizzard Classic Cup - Tastosis announced as captains GSL CK - New online series BGE Stara Zagora 2026 cancelled BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT
Tourneys
[GSL CK] #2: Team Classic vs. Team Solar [GSL CK] #1: Team Maru vs. Team herO 2026 KongFu Cup Announcement RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
Mutation # 517 Distant Threat The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion BSL 22 Map Contest — Submissions OPEN to March 10 BGH Auto Balance -> http://bghmmr.eu/ Are you ready for ASL 21? Hype VIDEO Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread PC Games Sales Thread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Mexico's Drug War Russo-Ukrainian War Thread NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread Formula 1 Discussion General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
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
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1575 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
Norway8242 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
Spain18234 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
Poland17694 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
Spain18234 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
Spain18234 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
Poland17694 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
Norway8242 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
Norway8242 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
GSL
08:00
GSL CK #2: Team Classic vs Team Solar
herO (Afreeca)194
CranKy Ducklings SOOP43
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
herO (Afreeca) 194
Rex 32
StarCraft: Brood War
Sea 3002
GuemChi 911
Hm[arnc] 863
Killer 503
Larva 331
BeSt 237
Stork 198
Pusan 169
Soma 134
Light 125
[ Show more ]
hero 116
EffOrt 88
PianO 85
sSak 81
Rush 68
NotJumperer 66
sorry 62
Aegong 57
HiyA 43
ZerO 42
Mini 41
Mind 34
IntoTheRainbow 28
soO 22
Noble 13
Bale 8
Purpose 7
Shinee 7
Terrorterran 5
SilentControl 5
Britney 1
Dota 2
XaKoH 537
NeuroSwarm116
XcaliburYe0
Counter-Strike
shoxiejesuss775
zeus286
edward28
Super Smash Bros
Mew2King151
Other Games
singsing1299
ceh9734
Fuzer 144
Pyrionflax89
crisheroes74
ZerO(Twitch)9
Organizations
Dota 2
PGL Dota 2 - Main Stream412
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 8
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt567
• HappyZerGling160
Upcoming Events
Wardi Open
1h 55m
Monday Night Weeklies
6h 55m
WardiTV Team League
1d 1h
PiGosaur Cup
1d 13h
Kung Fu Cup
2 days
OSC
2 days
The PondCast
2 days
KCM Race Survival
2 days
WardiTV Team League
3 days
Replay Cast
3 days
[ Show More ]
KCM Race Survival
3 days
WardiTV Team League
4 days
Korean StarCraft League
4 days
uThermal 2v2 Circuit
5 days
BSL
5 days
BSL
6 days
Replay Cast
6 days
Replay Cast
6 days
Afreeca Starleague
6 days
Sharp vs Scan
Rain vs Mong
Liquipedia Results

Completed

Proleague 2026-03-15
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
CSL Elite League 2026
RSL Revival: Season 4
Nations Cup 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

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
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
NationLESS Cup
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 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.