• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:18
CEST 22:18
KST 05:18
  • 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
[ASL19] Finals Recap: Standing Tall5HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL33Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
[ASL19] Finals Recap: Standing Tall Flash Announces Hiatus From ASL Help: rep cant save Where did Hovz go? BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 614 users

The Big Programming Thread - Page 901

Forum Index > General Forum
Post a Reply
Prev 1 899 900 901 902 903 1031 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.
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
August 23 2017 19:30 GMT
#18001
On August 24 2017 03:58 emperorchampion wrote:
Looking to do a bit of GUI programming in python, any recommended frameworks?


Pygame?
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-08-24 04:57:22
August 24 2017 04:55 GMT
#18002
--- Nuked ---
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
August 24 2017 08:00 GMT
#18003
On August 24 2017 04:30 Manit0u wrote:
Show nested quote +
On August 24 2017 03:58 emperorchampion wrote:
Looking to do a bit of GUI programming in python, any recommended frameworks?


Pygame?


Seems like a bit more than I need

On August 24 2017 13:55 Nesserev wrote:
I've always used Tkinter. It's easy and portable (to a certain degree)... though it can be quite shitty if something goes wrong, or you don't know a certain thing or aren't aware of some obscure detail.

Read this: http://effbot.org/tkinterbook/tkinter-index.htm

I hate GUI programming.


Yeah seems like this is the best option. I'm just looking to make a very simple interface for some tools I've developed (will just be boxes, and some fields to enter values). Thanks!
TRUEESPORTS || your days as a respected member of team liquid are over
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
August 24 2017 14:58 GMT
#18004
Ugh. I have to figure out how to get from your run of the mill RBAC/ABAC to something like (or exactly) XACML (which obviously doesn't have any tried and true ruby gems). FML.
Time is precious. Waste it wisely.
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
August 24 2017 17:06 GMT
#18005
#1 thread on TL
TRUEESPORTS || your days as a respected member of team liquid are over
tofucake
Profile Blog Joined October 2009
Hyrule19029 Posts
August 28 2017 19:55 GMT
#18006
Good news! My new job is super awesome

On the downside I no longer have free time :|
Liquipediaasante sana squash banana
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
August 28 2017 20:41 GMT
#18007
On August 29 2017 04:55 tofucake wrote:
Good news! My new job is super awesome

On the downside I no longer have free time :|

What job do you have now?
The harder it becomes, the more you should focus on the basics.
TheEmulator
Profile Blog Joined July 2010
28087 Posts
August 28 2017 20:58 GMT
#18008
On August 29 2017 05:41 sabas123 wrote:
Show nested quote +
On August 29 2017 04:55 tofucake wrote:
Good news! My new job is super awesome

On the downside I no longer have free time :|

What job do you have now?

Male Gigolo.
Administrator
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
Last Edited: 2017-08-29 02:34:36
August 29 2017 02:34 GMT
#18009
Does anyone know how to develop for Android Beam with 0 or 1 devices? It seems impossible to transfer from phone to phone. I figured they had a way to emulate it, but I can't find anything on Google.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
Last Edited: 2017-08-29 21:22:35
August 29 2017 15:21 GMT
#18010
I have the weirdest error ever that makes my tests fail in the CI pipeline (they work fine locally):


ActiveRecord::StatementInvalid: PG::UndefinedFunction: ERROR: function array_remove(uuid[], uuid) does not exist
LINE 1: UPDATE api_v1_users SET badge_ids = array_remove(badge_ids::...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: UPDATE api_v1_users SET badge_ids = array_remove(badge_ids::uuid[], OLD.id::uuid)
CONTEXT: PL/pgSQL function api_v1_badges_before_delete_row_tr() line 3 at SQL statement


I've checked it many times and PostgreSQL 9.4 definitely has this function built-in... I've even added explicit typecasts to the trigger but it doesn't seem to help.

Any ideas? I feel like I'm going in circles.

Edit:

Nevermind. The CI pipeline was setting up pgsql 9.4 but starting service for pgsql 9.2 for some reason. Several hours wasted...
Time is precious. Waste it wisely.
bo1b
Profile Blog Joined August 2012
Australia12814 Posts
August 30 2017 04:31 GMT
#18011
So I've been thinking about a basic algo problem that's probably handed out day one of most courses, namely being find the first x amount of primes.

The obvious solution is to modulo every number from 2 to the square root and if one of them returns a remainder of 0 it's not a prime.

It struck me that maintaining a list of primes should be a lot faster, as then you can modulo the primes up to the square root quite quickly. Have I missed something obvious?

Like say you're trying to get 10 million primes, I'd imagine the search time should be lower and lower comparatively but I could be wrong.
Isualin
Profile Joined March 2011
Germany1903 Posts
Last Edited: 2017-08-30 04:51:48
August 30 2017 04:48 GMT
#18012
On August 30 2017 13:31 bo1b wrote:
So I've been thinking about a basic algo problem that's probably handed out day one of most courses, namely being find the first x amount of primes.

The obvious solution is to modulo every number from 2 to the square root and if one of them returns a remainder of 0 it's not a prime.

It struck me that maintaining a list of primes should be a lot faster, as then you can modulo the primes up to the square root quite quickly. Have I missed something obvious?

Like say you're trying to get 10 million primes, I'd imagine the search time should be lower and lower comparatively but I could be wrong.

If you just want to check if a number is prime or not, you should google primality test. But if you want "the first 10000 primes" the method you want to use is Sieve of Eratosthenes There are also other sieve methods like atkins and sundaran but i don't know much about them, eratosthenes is the most famous one
| INnoVation | The literal god TY | ByuNjwa | LRSL when? |
bo1b
Profile Blog Joined August 2012
Australia12814 Posts
August 30 2017 08:37 GMT
#18013
The first primality test was the same thing as my thought, but the sieve methods are super fascinating thanks for that link.
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
Last Edited: 2017-08-30 12:59:17
August 30 2017 12:57 GMT
#18014
Thankfully, modern languages like Ruby have infinite generators and you can do stuff like that:


Prime.first 5
# => [2, 3, 5, 7, 11]


https://ruby-doc.org/stdlib-2.3.0/libdoc/prime/rdoc/Prime.html

It has some interesting concepts already included:
EratosthenesGenerator
TrialDivisionGenerator
Generator23

Good thing about Ruby is that you can browse all source code for their classes (in C).
Time is precious. Waste it wisely.
sc-darkness
Profile Joined August 2017
856 Posts
August 30 2017 20:47 GMT
#18015
Has anyone tried to get H1B visa for US? Would you recommend any job board websites? I've visited indeed.com, but there has to be more.
TheEmulator
Profile Blog Joined July 2010
28087 Posts
August 30 2017 20:50 GMT
#18016
It's apparently a really annoying process so good luck. Think you need an employer to sponsor you?
Administrator
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
Last Edited: 2017-08-30 21:13:09
August 30 2017 21:12 GMT
#18017
AFAIK H1Bs are sponsored.

You can always check/post this on /r/cscareerquestions for more help,
The harder it becomes, the more you should focus on the basics.
tofucake
Profile Blog Joined October 2009
Hyrule19029 Posts
Last Edited: 2017-08-30 21:25:18
August 30 2017 21:24 GMT
#18018
On August 29 2017 05:41 sabas123 wrote:
Show nested quote +
On August 29 2017 04:55 tofucake wrote:
Good news! My new job is super awesome

On the downside I no longer have free time :|

What job do you have now?

Senior Dev at a Drupal agency. I was hired based on my technical knowledge of Symfony (what Drupal 8 is built on), PHP (what all the projects here are built on), DevOps, and generally being awesome.

The main problem is that when I started I knew exactly 3 things about Drupal:
1. It's called Drupal
2. It's written in PHP
3. It's a pretty popular CMS

So I've had to learn not only the basics of how to use Drupal, but also how to tear it apart and fix problems. I find the work fun, but it can get a little stressful having a looming deadline, a problem to solve, and literally no idea what the cause is. In fact, in my latest project I accidentally created a scripting language. Plus since I'm a senior I am also one of the people the other devs go to when they can't figure something out. And so far all of my projects have been Drupal 7, which is old school procedural code not built on an OOP framework, so my Symfony knowledge has been of limited use so far.

At least they are paying pretty well.
Liquipediaasante sana squash banana
sc-darkness
Profile Joined August 2017
856 Posts
Last Edited: 2017-08-30 23:22:03
August 30 2017 23:09 GMT
#18019
On August 31 2017 05:50 TheEmulator wrote:
It's apparently a really annoying process so good luck. Think you need an employer to sponsor you?


I think so. Thanks.

On August 31 2017 06:12 sabas123 wrote:
AFAIK H1Bs are sponsored.

You can always check/post this on /r/cscareerquestions for more help,


Thanks. It looks interesting.

Has anyone here got H-1B successfully? If yes, any experience they'd like to share?

Edit: Have you got challenges from HackerRank and similar from employer? I had to do 4 exercises in 90 minutes and they were about algorithms... not enough time to think and implement properly.
TheEmulator
Profile Blog Joined July 2010
28087 Posts
August 31 2017 00:51 GMT
#18020
This is super cool btw https://www.vincit.fi/en/blog/software-development-450-words-per-minute/
Administrator
Prev 1 899 900 901 902 903 1031 Next
Please log in or register to reply.
Live Events Refresh
OSC
20:00
Mid Season Playoffs
SHIN vs Bunny
Cham vs MaNa
SKillous vs TBD
PAPI vs Jumy
Gerald vs Moja
ArT vs TBD
SteadfastSC269
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 269
IndyStarCraft 209
UpATreeSC 135
goblin 126
ProTech83
Livibee 63
StarCraft: Brood War
Aegong 78
scan(afreeca) 34
yabsab 15
Dota 2
Gorgc7438
Pyrionflax171
LuMiX1
League of Legends
Grubby4062
Dendi1103
Counter-Strike
fl0m2095
pashabiceps620
Foxcn216
sgares13
Heroes of the Storm
Liquid`Hasu586
Khaldor187
Other Games
summit1g5731
FrodaN1777
Beastyqt636
mouzStarbuck446
Trikslyr84
Sick83
Mew2King66
ZombieGrub54
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• HeavenSC 37
• davetesta32
• sooper7s
• Migwel
• LaughNgamezSOOP
• IndyKCrew
• Kozan
• AfreecaTV YouTube
• intothetv
StarCraft: Brood War
• 80smullet 19
• ZZZeroYoutube
• STPLYoutube
• BSLYoutube
Dota 2
• WagamamaTV606
League of Legends
• Jankos2510
• Doublelift1943
• TFBlade1363
• masondota2486
Other Games
• Scarra1088
• imaqtpie990
• Shiphtur254
Upcoming Events
Replay Cast
3h 43m
The PondCast
13h 43m
RSL Revival
13h 43m
ByuN vs Classic
Clem vs Cham
WardiTV European League
19h 43m
Replay Cast
1d 3h
RSL Revival
1d 13h
herO vs SHIN
Reynor vs Cure
WardiTV European League
1d 19h
FEL
1d 19h
Korean StarCraft League
2 days
CranKy Ducklings
2 days
[ Show More ]
RSL Revival
2 days
FEL
2 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
FEL
3 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
5 days
Replay Cast
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.