• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:47
CEST 22:47
KST 05:47
  • 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] Finals Preview: Two Legacies18Code S Season 2 (2026) - RO12 Preview2herO wins GSL Code S Season 1 (2026)5Code S Season 1 (2026) - RO4 & Finals Preview5[ASL21] Ro4 Preview: On Course12
Community News
Weekly Cups (May 11-17): Classic wins double0Code S Season 1 (2026) - RO8 Results2Weekly Cups (May 4-10): Clem, MaxPax, herO win1Maestros of The Game 2 announcement and schedule !18Weekly Cups (April 27-May 4): Clem takes triple0
StarCraft 2
General
herO wins GSL Code S Season 1 (2026) Code S Season 2 (2026) - RO12 Preview Weekly Cups (May 11-17): Classic wins double Code S Season 1 (2026) - RO4 & Finals Preview Team Liquid Map Contest #22 - The Finalists
Tourneys
Crank Gathers Season 4: BW vs SC2 Team League GSL Code S Season 2 (2026) GSL Code S Season 1 (2026) Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game 2 announcement and schedule !
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 527 Hell Train The PondCast: SC2 News & Results Mutation # 526 Rubber and Glue Mutation # 525 Wheel of Misfortune
Brood War
General
25 Years Since Brood War Patch 1.08 (Spoiler) ASL21 Winner's Interview vespene.gg — BW replays in browser [ASL21] Finals Preview: Two Legacies UA StarCraft: Mawin (T) vs hanniGan (P) Showmatch
Tourneys
[ASL21] Grand Finals Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Any training maps people recommend? Muta micro map competition [G] Hydra ZvZ: An Introduction Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV ZeroSpace Megathread Warcraft III: The Frozen Throne
Dota 2
The Story of Wings Gaming
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 Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Russo-Ukrainian War Thread Trading/Investing Thread US Politics Mega-thread European Politico-economics QA Mega-thread YouTube Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software)
TL Community
The Automated Ban List
Blogs
Esports Organizations: Raisi…
TrAiDoS
Why RTS gamers make better f…
gosubay
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1575 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
Poland17750 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
Poland17750 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
Hyrule19215 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
Poland17750 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
Poland17750 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
Hyrule19215 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
Patches Events
19:30
Patches' Patch Clash #7
RotterdaM419
Liquipedia
BSL
19:00
RO8 - Day 4
DragOn vs Dewalt
TerrOr vs OyAji
ZZZero.O329
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 419
JuggernautJason111
ProTech100
BRAT_OK 72
EmSc Tv 21
StarCraft: Brood War
Britney 29977
ZZZero.O 329
Dewaltoss 79
Zeus 54
NaDa 7
League of Legends
JimRising 392
Heroes of the Storm
Liquid`Hasu421
Other Games
summit1g5069
FrodaN4353
Grubby3661
tarik_tv2535
Liquid`RaSZi2386
singsing1865
shahzam476
KnowMe334
QueenE87
Organizations
Other Games
gamesdonequick1023
BasetradeTV66
StarCraft 2
angryscii 28
EmSc Tv 21
EmSc2Tv 21
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 20 non-featured ]
StarCraft 2
• Hupsaiya 48
• Reevou 8
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• Kozan
• LaughNgamezSOOP
StarCraft: Brood War
• Michael_bg 4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 1727
• masondota2550
• lizZardDota258
Other Games
• imaqtpie1089
• WagamamaTV382
• Shiphtur220
• tFFMrPink 16
Upcoming Events
OSC
3h 13m
Universe Titan Cup
14h 13m
Rogue vs Percival
Wardi Open
15h 13m
Monday Night Weeklies
19h 13m
Replay Cast
1d 3h
Kung Fu Cup
1d 14h
GSL
2 days
herO vs Classic
Cure vs Clem
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
GSL
3 days
Maru vs SHIN
Zoun vs Rogue
[ Show More ]
WardiTV Spring Champion…
3 days
SKillous vs Strange
Lambo vs Strange
Ryung vs Strange
Lambo vs Ryung
Ryung vs SKillous
Lambo vs SKillous
Replay Cast
4 days
Maestros of the Game
4 days
Replay Cast
5 days
RSL Revival
5 days
TBD vs SHIN
TBD vs Rogue
IPSL
5 days
ZZZero vs WorsT
Julia vs eOnzErG
Replay Cast
6 days
RSL Revival
6 days
IPSL
6 days
Dragon vs Artosis
dxtr13 vs Hawk
BSL
6 days
Liquipedia Results

Completed

Escore Tournament S2: W8
2026 GSL S1
Heroes Pulsing #1

Ongoing

2026 KK StarCraft Pro League
BSL Season 22
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Acropolis #4
SCTL 2026 Spring
WardiTV Spring 2026
2026 GSL S2
RSL Revival: Season 5
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals

Upcoming

CSCL: Masked Kings S4
Escore Tournament S2: King of Kings
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
Bounty Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
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.