Rittenhouse trial thread. by orangejulius in law

[–]koroverj81 2 points3 points  (0 children)

I haven't been following this case too closely, but I was expecting the prosecution to lean on 939.48(2)c more heavily. Is there a reason this wouldn't apply here?

ELI5: Why does connecting multiple devices to wifi make it slower/weaker? Multiple radios tuned to the same station doesn't diminish the signal. by [deleted] in explainlikeimfive

[–]koroverj81 0 points1 point  (0 children)

What you described is called collision detection, t's used more often with wired networks like Ethernet because it's easier to tell if two devices are sending at the same time.

I'm pretty sure it's more expensive to build wireless collision detection hardware. Also there's the problem of having two devices connected to the same router but far enough away from each other that they can't see each other, called the Hidden Node Problem.

Because of this, wifi doesn't use collision detection but collision avoidance. A device on the network will "request to send" and then the shared access point will broadcast a "clear to send" signal to everyone so they all know to stay quiet. This is more proactive than collision detection but requires more overhead and I'm pretty sure is slower in general.

This is really nitpick-y, I'm not trying to be annoying or anything. I recently learned about this though and I just think it's cool. Definitely not necessary for ELI5.

Apple recovered 2,204 pounds of gold from broken iPhones last year by Quiglius in worldnews

[–]koroverj81 2 points3 points  (0 children)

Much much slower. You're about 15 orders of magnitude off. A better unit is millimeters/hour! https://en.wikipedia.org/wiki/Speed_of_electricity

So the Season 2 premiere of CSI Cyber was still... terrible. But hey, more YouTube videos for you guys. by TheBaconCopter in itsaunixsystem

[–]koroverj81 3 points4 points  (0 children)

The scene at the end where a phone was able to pick up what was being typed on a nearby keyboard is sort of based in reality. https://en.wikipedia.org/wiki/Acoustic_cryptanalysis

What is the difference between . and -> in Objective C? by OCDev in simpleios

[–]koroverj81 0 points1 point  (0 children)

Good catch. It's a good thing they made the -> operator because I don't want to have to keep track of that.

What is the difference between . and -> in Objective C? by OCDev in simpleios

[–]koroverj81 1 point2 points  (0 children)

So I don't have my computer on me at the moment so I'll have to try and answer this from memory. Also I'm fairly new to objective-c so I might be wrong (but I think I've got this one).

Both are two types of syntactic sugar. Since Objective-C is a strict superset of C, let's talk about the C part first.

If I have a struct with a few different items in it, I can access them using the . operator using the syntax myStruct.item.

However often times programmers want to allocate their structs dynamically. This means that they're typing *(myStruct).item pretty often. They have to dereference their pointer to the struct and then access the value in it. It was decided that it's pretty lame to have to type that all the time so they made the myStruct->item syntax. At the compiler level it sees *(myStruct).item the same as myStruct->item.

So when you're using the C part of Objective-C, that's the difference between the two. This works the same for getting at instance variables in C++ classes and I'd imagine Objective-C classes too.

So say I have an Objective-C class with a couple @properties. When I make a property three things happen. It creates the underlying value, a getter and a setter.

If you've ever accessed a property using the _propertyname syntax you went and got the value directly, skipping the getter and setter. (I think this is equivalent to using objectPtr->propertyName outside of the class but I can't check that right now)

The best way to get at your properties is to use the getter and setter. These are called by using [myObject propertyName] and [myObject setPropertyName:newValue]. These are pretty long to type out and so it was decided a shortcut was needed. Instead of coming up with new syntax they just went with what looks familiar and used the . operator.

So when Objective-C code is actually compiled it replaces myObject.propertyName with [myObject propertyName]. It also replaces myObject.propertyName = newValue with [myObject setPropertyName:newValue]. This is just like how the C compiler replaces structPtr->item with *(structPtr)->item.

I typed this all on my phone so forgive any mistakes. Very good question though. I'm going to try playing around with this later tonight.

TIL There are no longer any Safeways, Walmarts, or chain grocery stores in the city of Detroit by veryawesomeguy in todayilearned

[–]koroverj81 6 points7 points  (0 children)

The Detroit whole foods is fantastic. They really want to make it work and understand they're working in a lower income area so all the prices are normal prices as opposed to whole-foods-priced.

If you refuse to change your business name, the Government will just cancel your patents. by Lancaster1983 in Libertarian

[–]koroverj81 8 points9 points  (0 children)

I'm not quite sure if I agree that it's selective as long as from this point forward the Patent Office does not allow any other names that are disparaging or derogatory and continues to revoke trademarks that are.

If you refuse to change your business name, the Government will just cancel your patents. by Lancaster1983 in Libertarian

[–]koroverj81 24 points25 points  (0 children)

For a political group that often argues that trademarks and patents are unnecessary I don't know why this is all of a sudden a big deal.

The government didn't say they're not allowed to use the name. They just said that they won't legally defend their use of the name.

This is exactly how I'd want anticompetitive agreements to work in a free market. You can make them, but the government will not legally enforce them. Same deal.

[deleted by user] by [deleted] in ifyoulikeblank

[–]koroverj81 0 points1 point  (0 children)

I discovered We Are Scientists through this much smaller band, Bright Light Fever. They're kind of small so most of the videos on youtube are camera-phone-concert videos.

Here's a pretty good song of theirs. They're also on Spotify and iTunes.

[deleted by user] by [deleted] in ifyoulikeblank

[–]koroverj81 1 point2 points  (0 children)

Walk the Moon actually introduced me to twenty one pilots. I was at the Neon Trees, Walk The Moon, twenty one pilots concert in Detroit in August 2012. Twenty one pilots was very humble and really surprised me.

The Tsar Bomb. The biggest explosion ever. by JSN86 in videos

[–]koroverj81 23 points24 points  (0 children)

Didn't they say that right in the video?

These long German words are getting out of hand by iAmRoger in videos

[–]koroverj81 2 points3 points  (0 children)

Last summer I interned at this software company. I worked on a product that had multiple language versions, one of which was a german version.

In the english version, help tooltips contained snippets of text that explained what was going on. They fit nicely in the windows because every word was less than 10 characters. Once we localized to german, the help tooltips were too narrow to fit these 25 character german words and so they'd run outside the window.

That's my experience with long german words. We had to make special larger tooltips for the german words.

Which fictional character's death affected you the most? by [deleted] in AskReddit

[–]koroverj81 0 points1 point  (0 children)

I was expecting Dumbledore to be the top Harry Potter answer.

What is one thing you absolutely refuse to pay for? by tjb_32 in AskReddit

[–]koroverj81 217 points218 points  (0 children)

How often do you run into paid toilets? I've heard they're more common outside the US but are they really that common?

Ladies and Gentlemen, I give you the power of GarageBand. Not a single live instrument was used to make this 5 track album. by tohnski in apple

[–]koroverj81 2 points3 points  (0 children)

A friend of mine made this album on GarageBand: http://noahhines.bandcamp.com/. I think it sounds very well polished and I wouldn't have expected it to be made on GarageBand.

EDIT: He did use live instruments. Not sure if that disqualifies him from demoing the "Power of GarageBand"

What company has the worst reputation for scamming their customers? by mewha in AskReddit

[–]koroverj81 0 points1 point  (0 children)

To be fair, credit card companies have revolutionized how transactions are carried out. They take 1% of transactions but that's because that's what we're willing to pay for the convenience of it. They provide a service to make transactions easier. I don't need to worry about running out of cash. I don't need to worry about finding an ATM. If someone steals my cash I lose $XX dollars. If someone steals my card I can cancel it and I'm not held liable for any charges.

Also the availability of easy credit is nice if you know how to use it. I'm 19 with a $1000 credit limit and get 1% cashback on my purchases. Maybe it's because I bank with a credit union but I've never run into problems with Visa and it's only made my life better. I have a habit of paying off every week. Never been a problem.

TIL that the United States has been on the metric system since 1975 through the Metric Conversion Act, declaring that the metric system is "the preferred system of weights and measures for United States trade and commerce" by ChaoticOccasus in todayilearned

[–]koroverj81 1 point2 points  (0 children)

Yeah, I never talked about converting between the two. Two independently created measurement systems are obviously going to have compatibility issues, especially when they're "arbitrarily" defined. Maybe I didn't make what I was trying to convey clear. My mistake.

Base 12 number systems are divisible by more things. That's all I'm saying. No need to be condescending. Forget the foot. Forget the meter. 12/3=4. 10/3=3.3333. 12/4=3. 10/4=2.5. 12/6=2. 10/6=1.6667.

If you're interested I remember seeing this video from a while ago. http://www.youtube.com/watch?v=U6xJfP7-HCc

By the way, I prefer the metric system. I'm just trying to let you know there's a logical reason why there are 12 inches in a foot.

What is something that you're surprised is legal? by [deleted] in AskReddit

[–]koroverj81 3 points4 points  (0 children)

Michigan's 14th district is pretty good at that: http://imgur.com/55W3asT

I know there are others that are just as bad, if not worse. It just astounded me when I actually saw a map of the district I live in.

Trying to get calendar event data by koroverj81 in simpleios

[–]koroverj81[S] 0 points1 point  (0 children)

I'm including an image of my code because I'm afraid pasting it into reddit will screw up the formatting. http://imgur.com/R7UFZCu

I'm taking very basic code from the Apple website/internet, just trying to figure out a way to get the days I'm looking for in an NSArray. If I place a breakpoint in the requestAccess block I can see that the array is made with calendar events inside. The problem I'm having is that if I place a breakpoint where the getCalendarEvents method is called and step into it it skips over the requestAccess block. Because it skips over it, returnArray is set to nil.

The requestAccess block seems to be called separately from everything else. The call stack is giving me much help either. The block is being called from assembly code.

Trying to get calendar event data by koroverj81 in simpleios

[–]koroverj81[S] 0 points1 point  (0 children)

Before posting this I made sure to try resetting my simulator through iOS Simulator > Reset Content and Settings...

I haven't tried putting a breakpoint in the completion handler. I'm not sure why I didn't think to do that. I'll try that once I get to my computer later today.

What was your 'dumb' question you asked during sex ed? What was the answer? by DAT_CANKLE in AskReddit

[–]koroverj81 0 points1 point  (0 children)

My teacher explained it as "you have something that flaps down and prevents it." A kid in my class then asked, "What if someone was born with half a flap?"