• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:05
CET 15:05
KST 23:05
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !10Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2
StarCraft 2
General
What's the best tug of war? The Grack before Christmas Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies ComeBackTV's documentary on Byun's Career ! Micro Lags When Playing SC2?
Tourneys
$5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament Winter Warp Gate Amateur Showdown #1 RSL Offline Finals Info - Dec 13 and 14!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Recommended FPV games (post-KeSPA) BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] LB QuarterFinals - Sunday 21:00 CET [BSL21] WB SEMIFINALS - Saturday 21:00 CET
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Beyond All Reason Path of Exile General RTS Discussion 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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread How Does UI/UX Design Influence User Trust? Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced Where to ask questions and add stream?
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2064 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
Poland17545 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
Spain18159 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
Hyrule19183 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
Spain18159 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
Poland17545 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
Poland17545 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
Hyrule19183 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 2h 55m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Creator 160
Livibee 93
StarCraft: Brood War
Britney 45773
Sea 6166
Rain 3975
Horang2 2208
PianO 1304
GuemChi 839
EffOrt 735
Mini 297
Soma 260
ggaemo 245
[ Show more ]
Snow 226
firebathero 222
Mong 210
BeSt 181
Sharp 151
Light 150
Hyun 123
ZerO 121
Rush 115
Zeus 115
Barracks 111
JYJ 87
Sea.KH 71
hero 66
Terrorterran 60
Mind 54
Leta 44
scan(afreeca) 29
Sexy 26
yabsab 15
zelot 15
Shine 12
JulyZerg 9
Bale 8
SilentControl 7
Dota 2
qojqva2976
XcaliburYe1354
Fuzer 232
League of Legends
C9.Mang0332
Counter-Strike
olofmeister2999
zeus1290
shoxiejesuss801
edward168
Heroes of the Storm
Khaldor192
Other Games
singsing2262
crisheroes357
XaKoH 141
Organizations
StarCraft 2
CranKy Ducklings60
StarCraft: Brood War
lovetv 6
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 80
• HeavenSC 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Big Brain Bouts
2h 55m
Elazer vs Nicoract
Reynor vs Scarlett
Replay Cast
9h 55m
Sparkling Tuna Cup
1d 19h
Krystianer vs TBD
TriGGeR vs SKillous
Percival vs TBD
ByuN vs Nicoract
Replay Cast
2 days
Wardi Open
2 days
OSC
3 days
Solar vs MaxPax
ByuN vs Krystianer
Spirit vs TBD
Liquipedia Results

Completed

KCM Race Survival 2025 Season 4
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.