On August 24 2017 03:58 emperorchampion wrote:
Looking to do a bit of GUI programming in python, any recommended frameworks?
Looking to do a bit of GUI programming in python, any recommended frameworks?
Pygame?

| Forum Index > General Forum |
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
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? ![]() | ||
|
Nesserev
Belgium2760 Posts
August 24 2017 04:55 GMT
#18002
| ||
|
emperorchampion
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! | ||
|
Manit0u
Poland17420 Posts
August 24 2017 14:58 GMT
#18004
| ||
|
emperorchampion
Canada9496 Posts
August 24 2017 17:06 GMT
#18005
| ||
|
tofucake
Hyrule19151 Posts
August 28 2017 19:55 GMT
#18006
On the downside I no longer have free time :| | ||
|
sabas123
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? ![]() | ||
|
TheEmulator
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. | ||
|
WarSame
Canada1950 Posts
August 29 2017 02:34 GMT
#18009
| ||
|
Manit0u
Poland17420 Posts
August 29 2017 15:21 GMT
#18010
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... | ||
|
bo1b
Australia12814 Posts
August 30 2017 04:31 GMT
#18011
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
Germany1903 Posts
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 | ||
|
bo1b
Australia12814 Posts
August 30 2017 08:37 GMT
#18013
| ||
|
Manit0u
Poland17420 Posts
August 30 2017 12:57 GMT
#18014
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). | ||
|
sc-darkness
856 Posts
August 30 2017 20:47 GMT
#18015
| ||
|
TheEmulator
28092 Posts
August 30 2017 20:50 GMT
#18016
| ||
|
sabas123
Netherlands3122 Posts
August 30 2017 21:12 GMT
#18017
You can always check/post this on /r/cscareerquestions for more help, | ||
|
tofucake
Hyrule19151 Posts
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. | ||
|
sc-darkness
856 Posts
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
28092 Posts
August 31 2017 00:51 GMT
#18020
| ||
| ||
StarCraft 2 StarCraft: Brood War Jaedong Dota 2GuemChi Mini Barracks Leta Rush zelot Aegong Backho JYJ35 [ Show more ] Counter-Strike Other Games Organizations Counter-Strike Other Games StarCraft 2 StarCraft: Brood War
StarCraft 2 StarCraft: Brood War Dota 2 League of Legends Other Games |
|
LAN Event
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
Korean StarCraft League
CranKy Ducklings
IPSL
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
BSL 21
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
Sparkling Tuna Cup
WardiTV Korean Royale
IPSL
JDConan vs WIZARD
WolFix vs Cross
[ Show More ] LAN Event
BSL 21
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
Wardi Open
WardiTV Korean Royale
Replay Cast
Kung Fu Cup
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
The PondCast
RSL Revival
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
WardiTV Korean Royale
RSL Revival
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
|
|
|