• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:04
CEST 07:04
KST 14:04
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage1Weekly Cups (March 23-29): herO takes triple6Aligulac acquired by REPLAYMAN.com/Stego Research8Weekly Cups (March 16-22): herO doubles, Cure surprises3
StarCraft 2
General
Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool What mix of new & old maps do you want in the next ladder pool? (SC2)
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
ASL21 General Discussion [BSL22] RO32 Group Stage so ive been playing broodwar for a week straight. Gypsy to Korea Pros React To: JaeDong vs Queen
Tourneys
[ASL21] Ro24 Group F Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group E
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game Nintendo Switch Thread General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread The Chess Thread Russo-Ukrainian War Thread NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Broowar part 2
qwaykee
China Uses Video Games to Sh…
TrAiDoS
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 13112 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
Poland17713 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
Poland17713 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
Hyrule19200 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
28100 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
Poland17713 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
Poland17713 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
28100 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
Hyrule19200 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
28100 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
CranKy Ducklings
00:00
TLMC #22: Map Judging #1
CranKy Ducklings58
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 185
ROOTCatZ 65
StarCraft: Brood War
Sea 6002
GuemChi 5080
Snow 171
Tasteless 121
Leta 110
sSak 53
soO 27
Noble 15
ajuk12(nOOB) 7
Icarus 5
League of Legends
JimRising 713
Counter-Strike
Coldzera 1753
Stewie2K1385
m0e_tv433
Super Smash Bros
C9.Mang0295
Mew2King57
Other Games
summit1g10857
NeuroSwarm91
Organizations
Other Games
gamesdonequick1385
BasetradeTV315
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1204
• Rush948
• Stunt428
Upcoming Events
Sparkling Tuna Cup
4h 56m
PiGosaur Cup
18h 56m
Replay Cast
1d 3h
Kung Fu Cup
1d 6h
Replay Cast
1d 18h
The PondCast
2 days
CranKy Ducklings
2 days
WardiTV Team League
3 days
Replay Cast
3 days
CranKy Ducklings
4 days
[ Show More ]
WardiTV Team League
4 days
uThermal 2v2 Circuit
4 days
BSL
4 days
Sparkling Tuna Cup
5 days
WardiTV Team League
5 days
BSL
5 days
Replay Cast
5 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 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
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
uThermal 2v2 Last Chance Qualifiers 2026
RSL Revival: Season 5
IEM Cologne Major 2026
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
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.