• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:44
CET 11:44
KST 19:44
  • 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 ZvT24Behind the Blue - Team Liquid History Book16Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0226LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker16
StarCraft 2
General
Liquipedia WCS Portal Launched ByuL: The Forgotten Master of ZvT Kaelaris on the futue of SC2 and much more... How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) How do the "codes" work in GSL? Sparkling Tuna Cup - Weekly Open Tournament LiuLi Cup: 2025 Grand Finals (Feb 10-16) Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 513 Attrition Warfare The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
CasterMuse Youtube A new season just kicks off TvZ is the most complete match up BGH Auto Balance -> http://bghmmr.eu/ ACS replaced by "ASL Season Open" - Starts 21/02
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates Zealot bombing is no longer popular? Current Meta
Other Games
General Games
Nintendo Switch Thread ZeroSpace Megathread Path of Exile Diablo 2 thread Battle Aces/David Kim RTS 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
Vanilla Mini Mafia TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
Inside the Communication of …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2566 users

The Big Programming Thread - Page 901

Forum Index > General Forum
Post a Reply
Prev 1 899 900 901 902 903 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.
Manit0u
Profile Blog Joined August 2004
Poland17664 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
Poland17664 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
Hyrule19193 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
28098 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
Poland17664 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
Poland17664 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
28098 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
Hyrule19193 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
28098 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 1032 Next
Please log in or register to reply.
Live Events Refresh
Escore
10:00
Grand finals
LiquipediaDiscussion
PiG Sty Festival
09:00
Group B
Clem vs Percival
Zoun vs Solar
PiGStarcraft859
TKL 192
IndyStarCraft 156
BRAT_OK 123
Rex113
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft829
TKL 192
IndyStarCraft 152
BRAT_OK 112
Rex 101
ProTech30
Creator 22
StarCraft: Brood War
Horang2 3143
Rain 2313
PianO 1868
GuemChi 1579
BeSt 1406
Jaedong 595
Hyuk 404
actioN 321
Stork 227
Light 203
[ Show more ]
Soma 164
Snow 125
Dewaltoss 114
Mong 104
ZerO 103
Hyun 97
hero 88
Pusan 82
Killer 79
Leta 76
Rush 55
Soulkey 53
Sharp 48
Mini 46
Mind 44
Nal_rA 44
ggaemo 43
ToSsGirL 40
Aegong 34
sSak 32
JulyZerg 31
NaDa 26
910 22
GoRush 20
zelot 19
Free 19
Barracks 19
Hm[arnc] 17
yabsab 17
Yoon 16
Bale 12
SilentControl 10
Shine 5
NotJumperer 4
Terrorterran 2
Dota 2
XaKoH 561
NeuroSwarm129
League of Legends
JimRising 396
Counter-Strike
olofmeister2613
zeus825
shoxiejesuss676
Stewie2K576
m0e_tv380
kRYSTAL_39
Other Games
singsing1764
Fuzer 207
crisheroes134
Hui .92
Trikslyr27
ZerO(Twitch)10
Organizations
Counter-Strike
PGL45497
Other Games
gamesdonequick705
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 25
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• escodisco215
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1220
• Stunt634
Upcoming Events
Epic.LAN
1h 17m
Replay Cast
13h 17m
PiG Sty Festival
22h 17m
herO vs NightMare
Reynor vs Cure
CranKy Ducklings
23h 17m
Epic.LAN
1d 1h
Replay Cast
1d 13h
PiG Sty Festival
1d 22h
Serral vs YoungYakov
ByuN vs ShoWTimE
Sparkling Tuna Cup
1d 23h
Replay Cast
2 days
Replay Cast
2 days
[ Show More ]
Wardi Open
3 days
Monday Night Weeklies
3 days
Replay Cast
3 days
WardiTV Winter Champion…
4 days
Replay Cast
4 days
WardiTV Winter Champion…
5 days
The PondCast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-02-19
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Escore Tournament S1: King of Kings
WardiTV Winter 2026
PiG Sty Festival 7.0
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
Acropolis #4 - TS5
Jeongseon Sooper Cup
Spring Cup 2026: China & Korea Invitational
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.