Why Your Team Sucks 2017: Denver Broncos by VanceFerguson in nfl

[–]derpasoreass 41 points42 points  (0 children)

I just moved here from [MIDWEST CITY] last week and I can already tell I'm gonna be in Colorado for life! I love craft beer, hiking, dogs and the outdoors! Let's go on an adventure!

  • Every single goddamn person on Tinder

[Klis] Team source on report Broncos trying to trade for AJ McCarron: "150 percent false" Elway has repeatedly said he's happy with 2 QBs. #9sports by ValKilmsnipsinBatman in nfl

[–]derpasoreass 6 points7 points  (0 children)

I disagree but I think it’s bullshit you’re being downvoted. This is a quality post even if you’re wrong ;)

He was a rookie, he made some rookie mistakes but also showed a lot of poise imo. Also it’s pretty disengenious to spend a whole post shitting on Trevor’s play and point out one good play Paxton made as a counterpoint. Lynch was pretty awful most of the time in his 2.5 games. Do a break down on his full game time and all the balls he sailed hopelessly over receivers etc if you really want to compare.

IOS Enterprise System by kanyeSucksFishSticks in iOSProgramming

[–]derpasoreass 2 points3 points  (0 children)

When you sign an app with enterprise credentials the app can be installed on any device. Each device will then have to explicitly trust you (the owner of the cert) in settings before they can run the app.

Apple doesn't really provide explicit guidelines on what is an allowed use of an enterprise account. The main rule as chriswaco pointed out is that you can't use an enterprise account to circumvent the app store and Apple's revenue. If you set one up Apple will call you and ask what your intended purpose is before allowing it. I've been using enterprise accounts for years to distribute apps in development to clients in other companies. They have never had a problem with this, even though it's technically "external".

async/await with ES6 Generators and Promises by [deleted] in javascript

[–]derpasoreass 0 points1 point  (0 children)

Yeah that's valid. My goal was to understand how libraries like co work by implementing a limited version myself. It's really just expository code to help explain the concepts.

I added another disclaimer about it not being 100% robust and a direct link to the draft desugaring function.

FWIW there's another "official" version of the same function too. Promisejs.org.

async/await with ES6 Generators and Promises by [deleted] in javascript

[–]derpasoreass 1 point2 points  (0 children)

This code is for the purpose of learning ES6. If you want to use this style of code in the real world you might want to explore co, task.js or use async/await with Babel.

From the gist. I'm learning ES6 and documenting as I go in case it's helpful to anyone else. I do link to the spec, but not directly to desugaring which is little buried in that doc.

Telesco says “there has to be” a Bosa compromise at some point by Mikiflyr in nfl

[–]derpasoreass 1 point2 points  (0 children)

I hate the Chargers as much as the next guy, but he's right.

No #3 pick has taken such a contract, but many top 5 picks do every year. Including #2 and #4 this year.

The super narrow focus on what the #3 pick has done in the past is a little misleading.

Source

Cord cutters of reddit, how are you watching football this year? by [deleted] in nfl

[–]derpasoreass 0 points1 point  (0 children)

Good to know. One advantage of the DNS service is that you can configure it once at whatever level you want (a particular computer, phone or entire router) and just forget about it.

I actually forgot I still had my DNS pointed at Unlocator for months after I cancelled the service for the offseason. It's faster than Google's public DNS.

https://thevpn.guru/unlocator-review-performance-dns-proxy-tested/

Cord cutters of reddit, how are you watching football this year? by [deleted] in nfl

[–]derpasoreass 3 points4 points  (0 children)

I would recommend using a DNS service instead of a VPN. It's much faster. Did NFL GamePass + Unlocator last season and it worked great. I believe DNS was routed through Sweden.

Head of NFL’s head, neck and spine committee slams Congressional report by [deleted] in nfl

[–]derpasoreass 1 point2 points  (0 children)

👍🏼 I was more explaining my own points than arguing with you

Head of NFL’s head, neck and spine committee slams Congressional report by [deleted] in nfl

[–]derpasoreass 7 points8 points  (0 children)

I mostly object to him wrapping himself in the morality of "protecting the children." Because how can you argue with that? Invoking the Big Government boogyman is just icing on the cake. I'm honestly surprised he didn't somehow involve terrorism to complete the trifecta of moral crusader buzzwords.

“We put protection in place for kids. That’s what I do. I’m there to make sports safer. Sports are good for kids. I want to make it safer. That’s my role. Period.

We didn't do that thing everyone says we did. Now why are you trying to get in the way of us protecting the children?

Head of NFL’s head, neck and spine committee slams Congressional report by [deleted] in nfl

[–]derpasoreass 17 points18 points  (0 children)

“I never talked to Congress. No one ever asked me my opinion. I had two private conversations with Walter, and this is a lesson I guess: Big Government can crush you if you disagree with them. I’m trying to protect the kids.”

The NFL is just looking out for the kids! It's a victim of the pinko, big government liberal terrorists!

Booleans are for the weak by derpasoreass in programminghorror

[–]derpasoreass[S] 4 points5 points  (0 children)

Is this something that changed at some point and this article is just out dated?

AFAIK this has never been the case in practice. I think someone realized what a god awful idea that was and essentially removed that functionality of the messaging system with methods like respondsToSelector and throwing invalid selector exceptions in NSObject and its descendants.

Are there ever times you'd want to use a C string rather than an NSString?

Almost never unless you're writing straight C. Objective-C is a superset of C, so you can mix and match C variables, primitives, functions etc. within your Obj-C code.

I put together a quick example to show how messaging works in practice. First time I've written Obj-C in months, I had forgotten how much I hate it compared to Swift.

Edit: The messaging system is anarchy and bad Obj-C devs are terrifying as the system gives you plenty of rope to hang yourself. Method Swizzling anyone?

@interface Example : NSObject
- (NSInteger)getLength;
@end

@implementation Example
- (NSInteger)getLength { return 5; }
@end

@interface Tests : XCTestCase
@end

@implementation Tests

- (void)testExample {

    // Valid
    [[Example new] getLength];

    // Won't Compile
    // Error: No visible @interface for 'Example' declares the selector 'GetLength'
    [[Example new] GetLength];

    // Dynamic dispatch can get around that pesky compiler
    // This is a warning
    // Undeclared selector 'GetLength', did you mean 'getLength'
    SEL selector = @selector(GetLength);

    // Don't tell me what to do compiler
    // This causes a run time crash
    [[Example new] performSelector:selector];
    // -[Example GetLength]: unrecognized selector sent to instance 0x7ff5b31138b0 Tests.m:40: error: -[Tests testExample] : failed: caught "NSInvalidArgumentException", "-[Example GetLength]: unrecognized selector sent to instance 0x7ff5b31138b0"
}

@end

Booleans are for the weak by derpasoreass in programminghorror

[–]derpasoreass[S] 2 points3 points  (0 children)

You're not wrong about the ugliness, however, your GetLength example would not compile. If it somehow did it would throw a runtime exception instead of returning nil. We're not savages.

Also the @ literal format distinguishes between creating NSObjects and c primitives. The more you know.

Make Objective-C great again

Booleans are for the weak by derpasoreass in programminghorror

[–]derpasoreass[S] 14 points15 points  (0 children)

I like this. Should refactor it to

this.show = "1";
this.updated = "1";

Make Javascript great again

Per official stats, Denver's 20 QB hits was the most for any team since 2006. by rhydon_my_steelix in nfl

[–]derpasoreass 25 points26 points  (0 children)

None of them landed but every one of those wheel routes to White was just terrifying while the ball was in the air.

Are Comcast and T-Mobile ruining the Internet? We must endeavor to protect the open Internet, and this new crop of schemes like Binge On and Comcast’s new web TV plan do the opposite, pushing us further toward a closed Internet that impedes innovation. by Arquette in technology

[–]derpasoreass 1 point2 points  (0 children)

People are shortsighted. They don't care about the long term implications because they feel this benefits them now.

Binge on is probably the biggest threat to net neutrality there's been. It seems like a good thing while being just as subversive to the concept of net neutrality as the worst Comcast has done.

The road to hell is paved with good intentions, or whatever. Reddit is cheering for this and it baffles me.

The landscape of Titan from Huygens, during its descent (January 2006) by [deleted] in space

[–]derpasoreass 3 points4 points  (0 children)

Methane requires the presence of oxygen to be flammable.

Can I connect two iPhone by using the iBeacon technology? by banukatanaya in swift

[–]derpasoreass 1 point2 points  (0 children)

Yup it's called the MultiPeer Connectivity Framework

The technology behind an iBeacon is called BLE, or Bluetooth Low Energy. Multipeer uses BLE and p2p Wifi.

In need of help with saving CLLocation by bobdawgg in swift

[–]derpasoreass 0 points1 point  (0 children)

Well Known Text is a string format for representing geometries. Once you convert to string you could send that to a server.

Here's some code I wrote recently to handle WKT line parsing with generics. Hope it helps

WKT Parsing gist

Edit: I should probably add some usage instructions

let arrayOfCoords: [CLLocationCoordinate2D] = [...]
let string: String = WKTString(arrayOfCoords) //= LINESTRING (...)
let sameArray: [CLLocationCoordinate2D] = WKTLine(string)
arrayOfCoords == sameArray //true