• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:19
CEST 21:19
KST 04:19
  • 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
[ASL19] Finals Recap: Standing Tall10HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Weekly Cups (June 30 - July 6): Classic Doubles2[BSL20] Non-Korean Championship 4x BSL + 4x China9Flash Announces Hiatus From ASL66Weekly Cups (June 23-29): Reynor in world title form?14FEL Cracov 2025 (July 27) - $8000 live event22
StarCraft 2
General
The GOAT ranking of GOAT rankings The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? Weekly Cups (June 30 - July 6): Classic Doubles Program: SC2 / XSplit / OBS Scene Switcher
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
ASL20 Preliminary Maps [ASL19] Finals Recap: Standing Tall SC uni coach streams logging into betting site Flash Announces Hiatus From ASL BW General Discussion
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China [BSL20] Grand Finals - Sunday 20:00 CET CSL Xiamen International Invitational The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2024! Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 721 users

The Big Programming Thread - Page 880

Forum Index > General Forum
Post a Reply
Prev 1 878 879 880 881 882 1031 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
Poland17244 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
Poland17244 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
Poland17244 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
Spain17971 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
Spain17971 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 1031 Next
Please log in or register to reply.
Live Events Refresh
RotterdaM Event
16:00
Rotti Stream Rumble 4k Edition
RotterdaM945
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 945
Hui .144
StarCraft: Brood War
Bisu 1120
firebathero 221
Bonyth 80
sas.Sziky 55
Rock 9
Dota 2
qojqva3504
Pyrionflax22
League of Legends
Grubby3638
Counter-Strike
fl0m1589
Fnx 1337
ScreaM767
shoxiejesuss605
flusha379
sgares117
Heroes of the Storm
Liquid`Hasu71
Other Games
B2W.Neo929
Beastyqt921
summit1g662
ceh9629
KnowMe196
ToD169
Mew2King156
mouzStarbuck139
oskar132
Trikslyr70
ZombieGrub50
Sick39
Organizations
Other Games
gamesdonequick50895
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• kabyraGe 232
• Reevou 9
• LUISG 6
• OhrlRock 2
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• LaughNgamezSOOP
StarCraft: Brood War
• 80smullet 11
• Michael_bg 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2641
League of Legends
• Jankos2313
• TFBlade1126
Other Games
• imaqtpie1745
• Shiphtur511
Upcoming Events
Replay Cast
4h 41m
Sparkling Tuna Cup
14h 41m
WardiTV European League
20h 41m
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
1d 4h
The PondCast
1d 14h
WardiTV European League
1d 16h
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
1d 20h
Replay Cast
2 days
RSL Revival
2 days
ByuN vs SHIN
Clem vs Reynor
Replay Cast
3 days
[ Show More ]
RSL Revival
3 days
Classic vs Cure
FEL
3 days
RSL Revival
4 days
FEL
4 days
FEL
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.