• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 06:50
CET 12:50
KST 20:50
  • 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: Winners10Intel 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 win10
StarCraft 2
General
Mech is the composition that needs teleportation t TL.net Map Contest #21: Winners Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win RotterdaM "Serral is the GOAT, and it's not close" 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament 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
[ASL20] Ask the mapmakers — Drop your questions BW General Discussion [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
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile Should offensive tower rushing be viable in RTS games? Dawn of War IV
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
[Manga] One Piece Anime Discussion Thread Movie Discussion! 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: 1539 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
Turkey779 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
Poland17421 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
Spain18110 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
Hyrule19151 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
Spain18110 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
Poland17421 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
Poland17421 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
Hyrule19151 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
CranKy Ducklings
10:00
Sea Duckling Open #140
CranKy Ducklings93
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 176
ProTech129
StarCraft: Brood War
Sea 7520
Horang2 3621
GuemChi 3257
Jaedong 732
actioN 400
Larva 387
Soma 312
Stork 243
Mini 239
BeSt 211
[ Show more ]
EffOrt 144
Killer 135
Backho 111
ToSsGirL 91
Hyun 87
Rush 69
Mind 48
PianO 35
NaDa 30
Sharp 29
Icarus 19
HiyA 15
sorry 12
soO 12
Bale 11
Sacsri 8
Terrorterran 4
Dota 2
Gorgc4237
singsing1652
XcaliburYe267
Counter-Strike
fl0m2549
zeus556
edward31
Heroes of the Storm
Khaldor143
Other Games
B2W.Neo687
Sick318
XaKoH 117
Fuzer 88
nookyyy 32
MindelVK18
Organizations
Counter-Strike
PGL130
StarCraft 2
WardiTV11
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH158
• StrangeGG 68
• LUISG 31
• Dystopia_ 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2743
• Stunt940
Upcoming Events
IPSL
6h 10m
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
6h 10m
Lambo vs Clem
Scarlett vs TriGGeR
ByuN vs TBD
Zoun vs TBD
BSL 21
8h 10m
Gosudark vs Kyrie
Gypsy vs OyAji
UltrA vs Radley
Dandy vs Ptak
Replay Cast
11h 10m
Sparkling Tuna Cup
22h 10m
WardiTV Korean Royale
1d
LAN Event
1d 3h
IPSL
1d 6h
JDConan vs WIZARD
WolFix vs Cross
BSL 21
1d 8h
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
1d 21h
[ Show More ]
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
3 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
4 days
The PondCast
4 days
RSL Revival
4 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
5 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
CranKy Ducklings
6 days
RSL Revival
6 days
herO vs Gerald
ByuN vs SHIN
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
BSL Season 21
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

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.