• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:43
CET 18:43
KST 02:43
  • 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
TL.net Map Contest #21: Winners8Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! 5.0.15 Patch Balance Hotfix (2025-10-8) Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
$5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Should offensive tower rushing be viable in RTS games? Path of Exile Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1721 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
Poland17420 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
Poland17420 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
Hyrule19151 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
28092 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
Poland17420 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
Poland17420 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
28092 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
Hyrule19151 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
28092 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
Next event in 17m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 599
Livibee 143
BRAT_OK 72
UpATreeSC 55
MindelVK 29
StarCraft: Brood War
Jaedong 1075
GuemChi 1050
Mini 275
Barracks 116
Leta 101
Rush 95
zelot 51
Aegong 41
Backho 40
JYJ35
[ Show more ]
scan(afreeca) 21
soO 20
Bale 9
HiyA 9
Terrorterran 7
sas.Sziky 1
Dota 2
qojqva3440
syndereN339
420jenkins293
Counter-Strike
ScreaM873
oskar122
Other Games
Beastyqt425
Lowko254
KnowMe140
Liquid`VortiX136
Hui .130
QueenE53
Trikslyr47
Organizations
Counter-Strike
PGL195
Other Games
BasetradeTV96
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Kozan
• IndyKCrew
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• intothetv
StarCraft: Brood War
• Michael_bg 6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3854
• lizZardDota231
League of Legends
• Nemesis4488
• TFBlade1009
Other Games
• WagamamaTV331
• Shiphtur256
• tFFMrPink 12
Upcoming Events
LAN Event
17m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
ComeBackTV 561
Korean StarCraft League
9h 17m
CranKy Ducklings
16h 17m
IPSL
1d
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
1d
BSL 21
1d 2h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 5h
Sparkling Tuna Cup
1d 16h
WardiTV Korean Royale
1d 18h
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
[ Show More ]
LAN Event
2 days
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 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.