• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:52
CEST 03:52
KST 10:52
  • 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
Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview8[ASL21] Finals Preview: Two Legacies21
Community News
ZeroSpace at Steam NextFest - Last free demo16Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 202611Douyu Cup 2026: $20,000 Legends Event (June 26-28)10[BSL22] Non-Korean Championship from 13 to 28 June4
StarCraft 2
General
StarCraft II 5.0.16 PTR Patch Notes may 26th Daily SC2 Player Grid - feedback wanted J188 – Nhà Cái Cá Cược Trực Tuyến Đẳng Cấp Châu Á Code S Season 2 (2026) - RO8 Preview TL Poll: How do you feel about the 5.0.16 PTR balance changes?
Tourneys
GSL CK #4 20-21th June Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Crank Gathers Season 4: BW vs SC2 Team League Douyu Cup 2026: $20,000 Legends Event (June 26-28)
Strategy
[G] Having the right mentality to improve
Custom Maps
Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
Mutation # 530 One For All The PondCast: SC2 News & Results Mutation # 529 Opportunities Unleashed Mutation # 528 Infection Detected
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Battle cruiser feet vs Carrier fleet Fact based Zerg Upgrade Tier List vespene.gg — BW replays in browser Data needed
Tourneys
CSLAN 4 is Coming! [Megathread] Daily Proleagues Small VOD Thread 2.0 The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers Relatively freeroll strategies Creating a full chart of Zerg builds Why doesn't anyone use restoration?
Other Games
General Games
ZeroSpace at Steam NextFest - Last free demo Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread ZeroSpace Megathread
Dota 2
Looking for a Dota Mentor 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
TL Mafia
Vanilla Mini Mafia {D-2} Late to making 20.06.2026 memorable [p]94718
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread [H]Internet/Gaming Cafe Tips and Tricks The Games Industry And ATVI UK Politics Mega-thread
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
How To Predict Tilt in Espor…
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Why RTS gamers make better f…
gosubay
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10830 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
Poland17770 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
Poland17770 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
Poland17770 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
Spain18320 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
Spain18320 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
Replay Cast
00:00
GSL CK #4 - Day 1
CranKy Ducklings135
EnkiAlexander 68
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 144
Dota 2
LuMiX3
League of Legends
Doublelift6410
Counter-Strike
summit1g11047
Other Games
PiGStarcraft2487
JimRising 591
WinterStarcraft325
ViBE140
Livibee78
Trikslyr66
Nina45
Organizations
Other Games
gamesdonequick1536
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo280
Upcoming Events
WardiTV Spring Champion…
9h 8m
GSL
10h 8m
Maru vs Reynor
Lambo vs Solar
IPSL
14h 8m
Hawk vs Julia
Patches Events
15h 8m
BSL22 NKC (BSL vs China)
17h 8m
Dewalt vs Messiah
Bonyth vs Mihu
TerrOr vs XuanXuan
eOnzErG vs Messiah
Jaystar vs Mihu
Dewalt vs XuanXuan
Bonyth vs TerrOr
Replay Cast
22h 8m
WardiTV Weekly
1d 9h
Monday Night Weeklies
1d 14h
Sparkling Tuna Cup
2 days
The PondCast
3 days
[ Show More ]
Douyu Cup 2020
4 days
Oliveira vs Trap
Jieshi vs XY
soO vs FanTaSy
TY vs Coffee
Douyu Cup 2020
5 days
Neeb vs Impact
MacSed vs Cyan
Scarlett vs Kelazhur
INnoVation vs Dear
Douyu Cup 2020
6 days
Maestros of the Game
6 days
herO vs Classic
Maru vs Serral
BSL22 NKC (BSL vs China)
6 days
Liquipedia Results

Completed

Proleague 2026-06-19
uThermal 2v2 2026 Main Event
Heroes Pulsing #2

Ongoing

IPSL Spring 2026
Acropolis #4
CSCL: Masked Kings S4
YSL S3
BSL 22 Non-Korean Championship
CSL Season 21: Qualifier 1
SCTL 2026 Spring
Maestros of the Game 2
WardiTV Spring 2026
Murky Cup 2026
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
IEM Rio 2026
PGL Bucharest 2026

Upcoming

CSL Season 21: Qualifier 2
CSL 2026 Summer (S21)
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
Douyu Cup 2026
BCC 2026
Light HT
Heroes Pulsing #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 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.