• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:01
CEST 18:01
KST 01:01
  • 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
$5,000 WardiTV TLMC tournament - Presented by Monster Energy0GSL CK: More events planned pending crowdfunding0Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy What mix of new & old maps do you want in the next ladder pool? (SC2)
Tourneys
Sea Duckling Open (Global, Bronze-Diamond) $5,000 WardiTV TLMC tournament - Presented by Monster Energy GSL CK: More events planned pending crowdfunding Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
so ive been playing broodwar for a week straight. ASL21 General Discussion Pros React To: JaeDong vs Queen [BSL22] RO32 Group Stage Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues [ASL21] Ro24 Group F Escore Tournament StarCraft Season 2 [ASL21] Ro24 Group E
Strategy
Muta micro map competition Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Nintendo Switch 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 Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread
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
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1212 users

The Big Programming Thread - Page 861

Forum Index > General Forum
Post a Reply
Prev 1 859 860 861 862 863 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.
Hanh
Profile Joined June 2016
146 Posts
Last Edited: 2017-03-15 11:45:00
March 15 2017 11:25 GMT
#17201
In the same style,

Prove that for any prime number p >= 5, there is an integer n such as

p*p - 24n - 1 = 0

This does not require any math beyond high school level.
meatpudding
Profile Joined March 2011
Australia520 Posts
March 15 2017 12:06 GMT
#17202
I'm going through my master's in maths and I wouldn't mind having a Big Maths Thread. Anyway, here's my attempt at showing the proof:
+ Show Spoiler +
By eliminating p divisible by 2 or 3 then we can say for some integer a > 0 that p = 6a + 1 or p = 6a + 5. Then show that 24 | (p.p - 1).
1st case:
(6a + 1)(6a + 1) - 1
36a.a + 12a + 1 - 1
12a(3a + 1)

If a is even then 24 | 12a
If a is odd then 3a + 1 is even and 24 | 12(3a + 1)

2nd case:

(6a + 5)(6a + 5) - 1
36a.a + 60a + 25 - 1
12a(3a + 5) + 24

Same argument as above.

For p = 5 (not covered in these examples) observe that with n = 1 gives p.p - 24 - 1 = 0.
Be excellent to each other.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-03-15 13:02:15
March 15 2017 13:00 GMT
#17203
lol ive spent an hour on it i cant figure it out and i refuse to look at meatpudding's solution

edit: i lie. i looked now. his solution makes sense :/ damn
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
March 16 2017 09:43 GMT
#17204
I hate proofs. Lucky that I didn't have to deal them much. Proving something that looks uncertain is cool but proving something that we know it's true for years is a weird mental process. Imo they should teach it by proving things which really need proving, like things not obvious to be true or false at the first look.
Age of Mythology forever!
Askelad
Profile Joined October 2016
France20 Posts
March 16 2017 10:04 GMT
#17205
On March 16 2017 18:43 mantequilla wrote:
I hate proofs. Lucky that I didn't have to deal them much. Proving something that looks uncertain is cool but proving something that we know it's true for years is a weird mental process. Imo they should teach it by proving things which really need proving, like things not obvious to be true or false at the first look.


I fail to understand the problem. Just like you learn coding by programming easy stuff which has already been done thousands of times and probably already exists as a function/library, you learn to do proofs by proving easy stuff. If you're having a hard time writing down a proof for some easy stuff you're probably not ready to prove hard stuff?
Manit0u
Profile Blog Joined August 2004
Poland17716 Posts
March 16 2017 12:08 GMT
#17206
[image loading]
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-03-16 12:10:49
March 16 2017 12:09 GMT
#17207
--- Nuked ---
Acrofales
Profile Joined August 2010
Spain18255 Posts
March 16 2017 14:49 GMT
#17208
history|grep... bunch of filistines.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
March 16 2017 15:50 GMT
#17209
lol I haven't quite reached the level in that comic yet

... and I hope I never will
Prillan
Profile Joined August 2011
Sweden350 Posts
Last Edited: 2017-03-16 16:56:11
March 16 2017 16:50 GMT
#17210
Pro-tip: use Ctrl+R to search backwards in your history.

https://asciinema.org/a/4imqasv42pqalf641v8zg66do

Edit: Almost forgot, press Ctrl+R again to jump to the next match.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
tofucake
Profile Blog Joined October 2009
Hyrule19200 Posts
March 16 2017 16:51 GMT
#17211
I install this everywhere I can: https://github.com/nvbn/thefuck

[image loading]
Liquipediaasante sana squash banana
Acrofales
Profile Joined August 2010
Spain18255 Posts
March 16 2017 17:28 GMT
#17212
I'm just imagining tofucake on a new system:

aptget install thefuck
fuck
fuck
fuck
FUUUUUUCK

emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
March 16 2017 19:06 GMT
#17213
funny stuff :p
TRUEESPORTS || your days as a respected member of team liquid are over
Thaniri
Profile Blog Joined March 2011
1264 Posts
March 16 2017 19:08 GMT
#17214
Whoever decided to rename Angular2 to just Angular is an evil bastard. It's impossible to google anything because search indexes aren't distinguishing between Angular and AngularJS........
Manit0u
Profile Blog Joined August 2004
Poland17716 Posts
Last Edited: 2017-03-17 02:51:23
March 16 2017 23:01 GMT
#17215
On March 17 2017 04:08 Thaniri wrote:
Whoever decided to rename Angular2 to just Angular is an evil bastard. It's impossible to google anything because search indexes aren't distinguishing between Angular and AngularJS........


But Angular2 is sooo 2016

[image loading]
Time is precious. Waste it wisely.
Manit0u
Profile Blog Joined August 2004
Poland17716 Posts
March 17 2017 02:16 GMT
#17216
[image loading]

This site is magnificent.
Time is precious. Waste it wisely.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
March 17 2017 13:47 GMT
#17217
Yea, finding help on google for angular2 is terrible. When you need a manager, to manage a manager, you know something is wrong and page speed will be affected. I usually use freenode to get any help.
Life?
Thaniri
Profile Blog Joined March 2011
1264 Posts
Last Edited: 2017-03-17 22:44:43
March 17 2017 22:39 GMT
#17218
I don't even like Angular but all the fresh memes these days are built with Angular or React.

I'm building a static page that takes 4.5 seconds to load. All it does is show some text and images and utilize the Angular router. ~25kb of images but vendor.bundle.js is a whopping 2.7mb. I remember when I was learning web development my teacher told me that if a page is > 1mb and it isn't a web application you're doing something wrong.

Angular really bothers me on a deep level but I don't feel like I'm a good enough programmer to articulate why its bad.

edit: I swear that as soon as I post something somewhere online I find the solution to my problem immediately. Here I am bitching about wasted kilobytes and I'm sending packets to a starcraft forum for no reason. https://angular.io/docs/ts/latest/guide/router.html they renamed it from hashbang to hashlocation..................
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
March 17 2017 23:26 GMT
#17219
Does anyone know where to find longer video footage of autonomous cars in service? I can only find promotional videos so far. I'm looking for an hour+ of straight driving to see what it is like. On a related note, where is the state of the tech at right now? Last I checked the consensus was that driving itself had been mostly figured out, but it still had problem with poor weather conditions, such as the Lidar not working. Is this still the case?
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
tofucake
Profile Blog Joined October 2009
Hyrule19200 Posts
March 18 2017 02:03 GMT
#17220
Google's car has issues with some things still (cyclists doing track stands is a big one)
Liquipediaasante sana squash banana
Prev 1 859 860 861 862 863 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 8h
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Hui .305
LamboSC2 264
TKL 163
ProTech140
SteadfastSC 84
Rex 65
StarCraft: Brood War
Calm 4049
Shuttle 1342
Bisu 1282
Jaedong 1075
Stork 472
actioN 367
ggaemo 356
Mini 306
Snow 244
Larva 229
[ Show more ]
EffOrt 156
Aegong 139
Rush 128
Leta 125
hero 102
PianO 90
Soulkey 81
Sharp 75
Barracks 36
Hyun 35
ToSsGirL 31
scan(afreeca) 27
sSak 25
Rock 23
Terrorterran 19
soO 18
NaDa 10
GoRush 9
Dota 2
Gorgc7975
qojqva1898
syndereN327
420jenkins236
Counter-Strike
fl0m2661
pashabiceps1588
byalli511
Super Smash Bros
Mew2King89
Other Games
B2W.Neo1114
FrodaN776
hiko728
crisheroes345
DeMusliM334
Mlord329
RotterdaM324
Beastyqt190
ArmadaUGS114
XaKoH 80
KnowMe74
Trikslyr40
Organizations
Counter-Strike
PGL13186
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• poizon28 26
• Shameless 22
• LUISG 13
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• HerbMon 14
• blackmanpl 8
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota235
League of Legends
• Nemesis2704
Other Games
• Shiphtur41
• tFFMrPink 12
Upcoming Events
Replay Cast
8h
The PondCast
18h
CranKy Ducklings
1d 8h
WardiTV Team League
1d 19h
Replay Cast
2 days
CranKy Ducklings
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
2 days
BSL
3 days
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV Team League
3 days
OSC
3 days
BSL
4 days
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
GSL
5 days
Replay Cast
6 days
Kung Fu Cup
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
RSL Revival: Season 5
WardiTV TLMC #16
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.