• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 18:06
CET 00:06
KST 08:06
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA15
StarCraft 2
General
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3: RO16 results & RO8 bracket RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
2v2 maps which are SC2 style with teams together? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ soO on: FanTaSy's Potential Return to StarCraft A cwal.gg Extension - Easily keep track of anyone
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Nintendo Switch Thread Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread
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
Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1491 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
Norway8196 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
Spain18132 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
Poland17450 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
Spain18132 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
Canada6216 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
Spain18132 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
Poland17450 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
Norway8196 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
Norway8196 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
OSC
23:00
OSC Elite Rising Star #17
CranKy Ducklings12
Liquipedia
BSL 21
20:00
RO16 TieBreaker - Group B
StRyKeR vs Artosis
OyAji vs KameZerg
ZZZero.O452
LiquipediaDiscussion
IPSL
20:00
Ro16 Group C
StRyKeR vs OldBoy
Sziky vs Tarson
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 271
StarCraft: Brood War
Calm 2735
ZZZero.O 452
Artosis 38
Dota 2
LuMiX1
Heroes of the Storm
Khaldor258
Other Games
Grubby6204
FrodaN2210
Mlord510
B2W.Neo341
Pyrionflax210
Maynarde88
Organizations
Other Games
EGCTV1791
gamesdonequick1003
BasetradeTV38
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 92
• davetesta75
• musti20045 26
• HeavenSC 22
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Airneanach30
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21162
• Ler109
League of Legends
• Doublelift3325
Other Games
• imaqtpie1597
Upcoming Events
OSC
9h 54m
Wardi Open
12h 54m
Monday Night Weeklies
17h 54m
OSC
23h 54m
Wardi Open
1d 12h
Replay Cast
2 days
Wardi Open
2 days
Tenacious Turtle Tussle
3 days
The PondCast
3 days
Replay Cast
3 days
[ Show More ]
LAN Event
4 days
Replay Cast
4 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-21
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.