• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:53
CEST 00:53
KST 07:53
  • 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
Stormgate/Frost Giant Megathread Nintendo Switch Thread 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
US Politics Mega-thread Russo-Ukrainian War Thread Trading/Investing 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: 1195 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
Poland17750 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
Spain18295 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
Hyrule19215 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
Spain18295 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
Poland17750 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
Poland17750 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
Hyrule19215 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
Patches Events
19:30
Patches' Patch Clash #7
RotterdaM550
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 550
ProTech112
StarCraft: Brood War
Britney 17903
Artosis 600
Zeus 90
NaDa 31
Dota 2
NeuroSwarm148
League of Legends
JimRising 561
Other Games
gofns16827
summit1g14303
tarik_tv12179
FrodaN4710
Grubby4126
Liquid`RaSZi2760
shahzam529
KnowMe315
kaitlyn45
RuFF_SC220
Organizations
Other Games
gamesdonequick1349
BasetradeTV73
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• Hupsaiya 60
• musti20045 45
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21506
Other Games
• imaqtpie1194
• WagamamaTV346
• Shiphtur312
• tFFMrPink 14
Upcoming Events
OSC
1h 7m
Universe Titan Cup
12h 7m
Rogue vs Percival
Wardi Open
13h 7m
Monday Night Weeklies
17h 7m
Replay Cast
1d 1h
Kung Fu Cup
1d 12h
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
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
BSL 22 Non-Korean Championship
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.