• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:36
CET 04:36
KST 12:36
  • 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
Behind the Blue - Team Liquid History Book15Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0220LiuLi Cup: 2025 Grand Finals (Feb 10-16)26Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker10PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)14
StarCraft 2
General
How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep Behind the Blue - Team Liquid History Book Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) LiuLi Cup: 2025 Grand Finals (Feb 10-16) RSL Season 4 announced for March-April RSL Revival: Season 4 Korea Qualifier (Feb 14) Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
Which units you wish saw more use in the game? ACS replaced by "ASL Season Open" - Starts 21/02 StarCraft player reflex TE scores [ASL21] Potential Map Candidates Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Path of Exile Nintendo Switch Thread Diablo 2 thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread
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 Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Ask and answer stupid questions here! European Politico-economics QA Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ADHD And Gaming Addiction…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2184 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
Poland17661 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
Poland17661 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
Poland17661 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
Spain18215 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
Spain18215 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
HomeStory Cup 28 - Group C
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 241
NeuroSwarm 202
StarCraft: Brood War
JulyZerg 45
910 37
Icarus 3
Dota 2
monkeys_forever589
LuMiX2
League of Legends
JimRising 800
Super Smash Bros
C9.Mang01263
Mew2King65
Other Games
summit1g15387
tarik_tv5678
ToD115
Moletrap11
Organizations
Other Games
gamesdonequick1227
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• davetesta55
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt357
Upcoming Events
Sparkling Tuna Cup
6h 24m
LiuLi Cup
7h 24m
Maru vs Reynor
Serral vs Rogue
Ladder Legends
14h 24m
Replay Cast
20h 24m
Replay Cast
1d 5h
Wardi Open
1d 8h
Monday Night Weeklies
1d 13h
OSC
1d 20h
WardiTV Winter Champion…
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Winter Champion…
3 days
Replay Cast
3 days
PiG Sty Festival
4 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Winter Champion…
4 days
Replay Cast
4 days
PiG Sty Festival
5 days
Epic.LAN
5 days
Replay Cast
5 days
PiG Sty Festival
6 days
CranKy Ducklings
6 days
Epic.LAN
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-02-14
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.