• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 16:01
CET 22:01
KST 06: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
TL.net Map Contest #21: Winners2Intel 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!20$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage3Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
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
BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review [BSL21] RO32 Group Stage Practice Partners (Official) [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
Current Meta How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread 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
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
Anime Discussion Thread Movie Discussion! [Manga] One Piece 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
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1272 users

The Big Programming Thread - Page 880

Forum Index > General Forum
Post a Reply
Prev 1 878 879 880 881 882 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.
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
May 08 2017 05:39 GMT
#17581
Was reading a bit on the Ruby object model and it really cracked me up:


the superclass of an eigenclass of a class is the eigenclass of the class’s superclass


Some crazy shit right there.
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-05-08 17:46:04
May 08 2017 17:41 GMT
#17582
--- Nuked ---
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
May 08 2017 19:41 GMT
#17583
New at OpenCV. I try saving videos with XVID codec and avi extension. When I save BGR frames, all well and good. When I try saving grayscale, the video doesn't open... I'm about to go fucking crazy.
"windows bash is a steaming heap of shit" tofucake
AKnopf
Profile Blog Joined March 2011
Germany259 Posts
May 08 2017 20:39 GMT
#17584
On May 08 2017 14:39 Manit0u wrote:
Was reading a bit on the Ruby object model and it really cracked me up:


the superclass of an eigenclass of a class is the eigenclass of the class’s superclass


Some crazy shit right there.


Haha, gotta love that! But where did you read that?

The superclass of any eigenclass is always class (that's why it's a class in the first place). And the eigenclass of anything can never be class*. But that's what any classes superclass is. So that definitely is wrong. Funny sentence though :D

* Also there is no eigenclass that is shared with anything (it is "eigen" to its object). But your sentence would mean that the class "C" and its superclass "S" share the same eigenclass "e". This cannot be true, though.

I guess the sentence could be true if by "is" the author means "I *is* an instance if class C or any of its subclasses". But even that would be a stretch since then an eigenclass would have to be the superclass to its object, which it is technically not.




Sorry if I'm wrong here. Did I miss anything? Also sorry for being triggered. Ruby's object model is just too much fun :D




Edit: Just to be sure, I just tried it on tryruby.org

> class << Strin­g
.. puts self.­superclass­.__id__
.. end
=> "11488"
> class << Strin­g.supercla­ss
.. puts self.­__id__
.. end
=> "1184611846"

Not the same
The world - its a funny place
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
Last Edited: 2017-05-09 09:31:39
May 09 2017 09:25 GMT
#17585
On May 09 2017 05:39 AKnopf wrote:
Show nested quote +
On May 08 2017 14:39 Manit0u wrote:
Was reading a bit on the Ruby object model and it really cracked me up:


the superclass of an eigenclass of a class is the eigenclass of the class’s superclass


Some crazy shit right there.


Haha, gotta love that! But where did you read that?

The superclass of any eigenclass is always class (that's why it's a class in the first place). And the eigenclass of anything can never be class*. But that's what any classes superclass is. So that definitely is wrong. Funny sentence though :D

* Also there is no eigenclass that is shared with anything (it is "eigen" to its object). But your sentence would mean that the class "C" and its superclass "S" share the same eigenclass "e". This cannot be true, though.

I guess the sentence could be true if by "is" the author means "I *is* an instance if class C or any of its subclasses". But even that would be a stretch since then an eigenclass would have to be the superclass to its object, which it is technically not.




Sorry if I'm wrong here. Did I miss anything? Also sorry for being triggered. Ruby's object model is just too much fun :D




Edit: Just to be sure, I just tried it on tryruby.org

> class << Strin­g
.. puts self.­superclass­.__id__
.. end
=> "11488"
> class << Strin­g.supercla­ss
.. puts self.­__id__
.. end
=> "1184611846"

Not the same


https://www.sitepoint.com/understanding-object-model/


class Object; def eigenclass; class << self; self; end; end; end

E.eigenclass
# => #<Class:E>
E.eigenclass.superclass
# => #<Class:C>
C.eigenclass.superclass
# => #<Class:Object>
Object.eigenclass.superclass
# => #<Class:BasicObject>
BasicObject.eigenclass.superclass
# => Class
Class.superclass
# => Module
Module.superclass
# => Object


Edit:

Also, super useful thingie:
[image loading]
Time is precious. Waste it wisely.
shz
Profile Blog Joined October 2010
Germany2687 Posts
Last Edited: 2017-05-09 14:54:22
May 09 2017 14:52 GMT
#17586
Git Question:

Following folder structure:

folderA/folderB/
folderA/folderC/


I want to ignore everything in
folderA/
and its subfolders except 2 files inside
folderA/folderB/


How do I write my .gitignore?
Liquipedia
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-05-09 15:06:33
May 09 2017 15:05 GMT
#17587
--- Nuked ---
shz
Profile Blog Joined October 2010
Germany2687 Posts
May 09 2017 15:30 GMT
#17588
Aight. Thanks!
Liquipedia
aRyuujin
Profile Blog Joined January 2011
United States5049 Posts
Last Edited: 2017-05-09 17:55:52
May 09 2017 17:55 GMT
#17589
On May 09 2017 18:25 Manit0u wrote:
Show nested quote +
On May 09 2017 05:39 AKnopf wrote:
On May 08 2017 14:39 Manit0u wrote:
Was reading a bit on the Ruby object model and it really cracked me up:


the superclass of an eigenclass of a class is the eigenclass of the class’s superclass


Some crazy shit right there.


Haha, gotta love that! But where did you read that?

The superclass of any eigenclass is always class (that's why it's a class in the first place). And the eigenclass of anything can never be class*. But that's what any classes superclass is. So that definitely is wrong. Funny sentence though :D

* Also there is no eigenclass that is shared with anything (it is "eigen" to its object). But your sentence would mean that the class "C" and its superclass "S" share the same eigenclass "e". This cannot be true, though.

I guess the sentence could be true if by "is" the author means "I *is* an instance if class C or any of its subclasses". But even that would be a stretch since then an eigenclass would have to be the superclass to its object, which it is technically not.




Sorry if I'm wrong here. Did I miss anything? Also sorry for being triggered. Ruby's object model is just too much fun :D




Edit: Just to be sure, I just tried it on tryruby.org

> class << Strin­g
.. puts self.­superclass­.__id__
.. end
=> "11488"
> class << Strin­g.supercla­ss
.. puts self.­__id__
.. end
=> "1184611846"

Not the same


https://www.sitepoint.com/understanding-object-model/


class Object; def eigenclass; class << self; self; end; end; end

E.eigenclass
# => #<Class:E>
E.eigenclass.superclass
# => #<Class:C>
C.eigenclass.superclass
# => #<Class:Object>
Object.eigenclass.superclass
# => #<Class:BasicObject>
BasicObject.eigenclass.superclass
# => Class
Class.superclass
# => Module
Module.superclass
# => Object


Edit:

Also, super useful thingie:
+ Show Spoiler +

[image loading]



this is why i hate oop
can i get my estro logo back pls
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
May 10 2017 10:57 GMT
#17590
Imperative all the way?
Time is precious. Waste it wisely.
TMG26
Profile Joined July 2012
Portugal2017 Posts
May 10 2017 11:08 GMT
#17591
Functional all the way.
Supporter of the situational Blink Dagger on Storm.
Hanh
Profile Joined June 2016
146 Posts
May 10 2017 11:27 GMT
#17592
System F
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 13 2017 01:22 GMT
#17593
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?
ZigguratOfUr
Profile Blog Joined April 2012
Iraq16955 Posts
May 13 2017 03:26 GMT
#17594
On May 13 2017 10:22 travis wrote:
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?


Yeah, the solution is wrong.
CoughingHydra
Profile Blog Joined May 2012
177 Posts
Last Edited: 2017-05-13 09:56:57
May 13 2017 09:41 GMT
#17595
On May 13 2017 12:26 ZigguratOfUr wrote:
Show nested quote +
On May 13 2017 10:22 travis wrote:
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?


Yeah, the solution is wrong.

Actually, no! The solution is right - if you have a linear transformation from R^n to R^n (or more generally from a linear space V to a linear space W with dim V = dim W < infinity), then being one to one is equivalent to being onto. This follows from the Rank-nullity theorem. This is very similar to having a mapping from an n-element set to an n-element set - it is onto if and only if it is one to one.
Acrofales
Profile Joined August 2010
Spain18108 Posts
Last Edited: 2017-05-13 10:08:50
May 13 2017 10:06 GMT
#17596
On May 13 2017 18:41 CoughingHydra wrote:
Show nested quote +
On May 13 2017 12:26 ZigguratOfUr wrote:
On May 13 2017 10:22 travis wrote:
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?


Yeah, the solution is wrong.

Actually, no! The solution is right - if you have a linear transformation from R^n to R^n (or more generally from a linear space V to a linear space W with dim V = dim W < infinity), then being one to one is equivalent to being onto. This follows from the Rank-nullity theorem. This is very similar to having a mapping from an n-element set to an n-element set - it is onto if and only if it is one to one.

This doesn't sound right, because they're not finite sets.

My counterexample was wrong for R^n. It'd hold for Z^n. Need to come up with one that works with real numbers.
Hanh
Profile Joined June 2016
146 Posts
May 13 2017 10:56 GMT
#17597
CoughingHydra is correct.
Prillan
Profile Joined August 2011
Sweden350 Posts
Last Edited: 2017-05-13 11:22:41
May 13 2017 11:20 GMT
#17598
On May 13 2017 19:56 Hanh wrote:
CoughingHydra is correct.

Yup, a map being linear is a pretty strong property.

It's a nicely put question since it tests students on: injectivity (one-to-one), surjectivity (onto), rank, nullity and the rank-nullity theorem.


EDIT:
On May 13 2017 19:06 Acrofales wrote:
Show nested quote +
On May 13 2017 18:41 CoughingHydra wrote:
On May 13 2017 12:26 ZigguratOfUr wrote:
On May 13 2017 10:22 travis wrote:
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?


Yeah, the solution is wrong.

Actually, no! The solution is right - if you have a linear transformation from R^n to R^n (or more generally from a linear space V to a linear space W with dim V = dim W < infinity), then being one to one is equivalent to being onto. This follows from the Rank-nullity theorem. This is very similar to having a mapping from an n-element set to an n-element set - it is onto if and only if it is one to one.

This doesn't sound right, because they're not finite sets.

My counterexample was wrong for R^n. It'd hold for Z^n. Need to come up with one that works with real numbers.


Z is not a field, so you wouldn't even have a vector space to begin with.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Prillan
Profile Joined August 2011
Sweden350 Posts
Last Edited: 2017-05-13 11:22:02
May 13 2017 11:21 GMT
#17599
whoops, double post
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Acrofales
Profile Joined August 2010
Spain18108 Posts
May 13 2017 13:41 GMT
#17600
On May 13 2017 20:20 Prillan wrote:
Show nested quote +
On May 13 2017 19:56 Hanh wrote:
CoughingHydra is correct.

Yup, a map being linear is a pretty strong property.

It's a nicely put question since it tests students on: injectivity (one-to-one), surjectivity (onto), rank, nullity and the rank-nullity theorem.


EDIT:
Show nested quote +
On May 13 2017 19:06 Acrofales wrote:
On May 13 2017 18:41 CoughingHydra wrote:
On May 13 2017 12:26 ZigguratOfUr wrote:
On May 13 2017 10:22 travis wrote:
doing a practice final for linear algebra. True or false

If T is a linear transformation from R^n to R^n which is one-to-one, then for
every y in R^n there exists x such that T(x) = y.

I said false, the solution page says this is true.
but isn't this the definition of onto, not one-to-one ?


Yeah, the solution is wrong.

Actually, no! The solution is right - if you have a linear transformation from R^n to R^n (or more generally from a linear space V to a linear space W with dim V = dim W < infinity), then being one to one is equivalent to being onto. This follows from the Rank-nullity theorem. This is very similar to having a mapping from an n-element set to an n-element set - it is onto if and only if it is one to one.

This doesn't sound right, because they're not finite sets.

My counterexample was wrong for R^n. It'd hold for Z^n. Need to come up with one that works with real numbers.


Z is not a field, so you wouldn't even have a vector space to begin with.

Yeah, forgot that fields need to have a mulitiplicative inverse, so scratch my counterexample Good thing you cought that! It is indeed a great exam question!
Prev 1 878 879 880 881 882 1032 Next
Please log in or register to reply.
Live Events Refresh
LAN Event
18:00
Day 3: Ursa 2v2, FFA
SteadfastSC393
IndyStarCraft 177
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 522
SteadfastSC 393
White-Ra 235
IndyStarCraft 177
UpATreeSC 134
ProTech123
Railgan 61
ROOTCatZ 40
StarCraft: Brood War
Shuttle 451
Bonyth 77
ivOry 12
Dota 2
Dendi1030
Counter-Strike
pashabiceps1118
Foxcn172
Super Smash Bros
Liquid`Ken5
Heroes of the Storm
Liquid`Hasu516
Other Games
Beastyqt756
fl0m662
shahzam465
FrodaN419
KnowMe182
Pyrionflax172
ArmadaUGS138
C9.Mang0114
ToD87
Mew2King75
Trikslyr53
OptimusSC21
Organizations
Counter-Strike
PGL164
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Adnapsc2 11
• Reevou 10
• Dystopia_ 3
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2989
• Ler85
League of Legends
• TFBlade969
Other Games
• imaqtpie1345
• WagamamaTV341
• Scarra323
• Shiphtur216
Upcoming Events
OSC
59m
Replay Cast
1h 59m
OSC
14h 59m
LAN Event
17h 59m
Korean StarCraft League
1d 5h
CranKy Ducklings
1d 12h
LAN Event
1d 17h
IPSL
1d 20h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 22h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
3 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
6 days
The PondCast
6 days
RSL Revival
6 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
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
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
Esports World Cup 2025

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
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.