• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:48
CEST 20:48
KST 03:48
  • 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
Code S Season 1 - RO8 Preview3[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !2Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Do we have a pimpest plays list? BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion AI Question
Tourneys
Small VOD Thread 2.0 [ASL21] Ro8 Day 4 [BSL22] RO16 Group Stage - 02 - 10 May [ASL21] Ro8 Day 3
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Dawn of War IV Nintendo Switch Thread Stormgate/Frost Giant Megathread OutLive 25 (RTS Game) Daigo vs Menard Best of 10
Dota 2
The Story of Wings Gaming
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread The Letting Off Steam Thread Russo-Ukrainian War Thread 3D technology/software discussion
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1932 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
Norway8255 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
Spain18287 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
Poland17743 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
Spain18287 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
Spain18287 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
Poland17743 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
Norway8255 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
Norway8255 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
Next event in 5h 12m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 508
Hui .218
BRAT_OK 64
MindelVK 10
StarCraft: Brood War
Calm 3884
ggaemo 133
Hyuk 126
Hyun 26
IntoTheRainbow 14
Sacsri 13
NaDa 7
Dota 2
Gorgc5812
qojqva1824
monkeys_forever296
Counter-Strike
fl0m2132
kRYSTAL_44
Heroes of the Storm
Liquid`Hasu268
XaKoH 123
Other Games
gofns8914
Grubby5386
Liquid`RaSZi1352
FrodaN1315
B2W.Neo970
ceh9646
C9.Mang0285
420jenkins252
RotterdaM202
QueenE79
Mew2King72
Trikslyr55
mouzStarbuck38
Organizations
Other Games
gamesdonequick2774
StarCraft 2
angryscii 20
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• StrangeGG 80
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• 80smullet 14
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• imaqtpie2021
• TFBlade1306
Other Games
• Shiphtur299
Upcoming Events
Replay Cast
5h 12m
Escore
15h 12m
The PondCast
15h 12m
WardiTV Invitational
16h 12m
Zoun vs Ryung
Lambo vs ShoWTimE
Big Brain Bouts
21h 12m
Fjant vs Bly
Serral vs Shameless
OSC
1d 3h
Replay Cast
1d 5h
CranKy Ducklings
1d 15h
RSL Revival
1d 15h
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
1d 16h
Krystianer vs TriGGeR
Cure vs Rogue
[ Show More ]
uThermal 2v2 Circuit
1d 20h
BSL
2 days
Artosis vs TerrOr
spx vs StRyKeR
Replay Cast
2 days
Sparkling Tuna Cup
2 days
RSL Revival
2 days
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
2 days
BSL
3 days
Dewalt vs DragOn
Aether vs Jimin
GSL
3 days
Afreeca Starleague
3 days
Soma vs Leta
Wardi Open
3 days
Monday Night Weeklies
3 days
OSC
4 days
CranKy Ducklings
4 days
Afreeca Starleague
4 days
Light vs Flash
Replay Cast
5 days
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W6
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.