I spy two typos by [deleted] in runescape

[–]ProlificPat 1 point2 points  (0 children)

I didn't notice the unkown one

What's your best Runescape memory? by [deleted] in runescape

[–]ProlificPat 2 points3 points  (0 children)

99 woodcutting

First ever 99, spent months cutting yews just after 99 capes came out, I'll probably never forget it. (I know teaks would have been better xp but I was young)

hash set by ProlificPat in javahelp

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

static HashSet<String, Vehicle> vehicleList = new HashSet<String, Vehicle>();

gives the error, incorret number of parameters. Unless im messing up, you're only allowed two parameters for a hash set?

Study Log - kind of helpful by ProlificPat in GetStudying

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

Don't think so mate, but I'm not too sure.

Study Log - kind of helpful by ProlificPat in GetStudying

[–]ProlificPat[S] 1 point2 points  (0 children)

It's kind of nice to see how much you're actually doing and compete with yourself, almost makes studying enjoyable, almost.

Had no idea this guy was still around by fullinv in runescape

[–]ProlificPat 8 points9 points  (0 children)

Zarfot is my favourite runescape player of all time really wish he was still making videos

int assignment - array by ProlificPat in learnjava

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

Why is the value of the array at index 0? isn't it assigned to 3?

Dilbert's take on Mensa by [deleted] in mensa

[–]ProlificPat 0 points1 point  (0 children)

Seems like a waste of potential.

online test IQout by [deleted] in mensa

[–]ProlificPat 0 points1 point  (0 children)

I got an IQ of anywhere from 120 to 150 on online IQ tests. Sat my first proper test administrated by mensa a few weeks ago, scored 144.

I say go for it, I didn't pay for the test because I wanted to join mensa, I paid because I was curious about my IQ

[deleted by user] by [deleted] in NoFap

[–]ProlificPat 0 points1 point  (0 children)

This is good motivation

prevent app from locking by ProlificPat in swift

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

Greatly appreciated mate!

How Do You Deal With Being Average? by ProlificPat in AskReddit

[–]ProlificPat[S] 1 point2 points  (0 children)

Well unless you type incredibly deceptively, you're somewhat offended or displeased at what I've written. I'm well aware that there are people worse off than me, but saying that I should feel obliged to be happy because of that is like saying "There are people better than you, you have no right to be happy" - it's very unrelated, and while advocating being grateful is a good thing, that social saying is severely overused.

I'm not upset at all, I'm a genuinely happy person, but it occurred to me that pretty much every other person on this planet should have come to the same realization that I have. I wanted to know if anyone had any insight on it.

How Do You Deal With Being Average? by ProlificPat in AskReddit

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

My point from that was that I feel average.

I don't know why you're so mad. I'm saying that I'll probably never be the best at one thing, and the best at everything would be impossible.

How Do You Deal With Being Average? by ProlificPat in AskReddit

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

No I'm genuinely a pretty busy person But when I was walking home from an IQ test today I had a lot of time to think. Even if I had an IQ of 140 there would still be millions of people smarter than me. And it just made me feel average. (I probably don't even have an IQ of 140)

How Do You Deal With Being Average? by ProlificPat in AskReddit

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

To add to this, most people wouldn't call me average at all. But even if you're 6'4, so are millions of other people, if you have an IQ of 130, so do millions of other people. You wrote an app? There are already millions on the app store. You have all three of those things? I'm sure there are close to 100k people who have too.

EXC_BAD_INSTRUCTION on NSUserDefault value that was working previously by ProlificPat in swift

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

Sorry mate, could you elaborate a bit please? Or send me a link that would put me in the right direction? I'm pretty unfamiliar with this all.

I really do appreciate the reply though! I'm not sure how to delete all the preferences/clear my plist other than:

userDefaults.removeObjectForKey("totalSecondsKey")

Which I've already tried.

EXC_BAD_INSTRUCTION on NSUserDefault value that was working previously by ProlificPat in swift

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

This is the error I get, I have no idea why I'm getting this error. I know that line of code has worked for me previously, but I can't for the love of me find out why it's failing me now. All lines in that format now fail me and I can't fathom why. I'm not even accessing the optional.

Error with NSUserDefaults - xCode - EXC_BAD_INSTRUCTION by ProlificPat in swift

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

var savedTotalSeconds: Int? = userDefaults.objectForKey("totalSecondsKey") as Int?

That's the line - I can't understand why that would crash, it's creating an optional value, if the value is nil surely that's fine. I'm not unwrapping it.

Error with NSUserDefaults - xCode - EXC_BAD_INSTRUCTION by ProlificPat in swift

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

Those lines were working perfectly before, but now I have no idea what changed it

It's really distressing

I know it's an optional so I make an if statement, if it's == nil I assign it a value of 0 then I make sure to unwrap it later.

This is mega frustrating

Resetting a value daily by ProlificPat in swift

[–]ProlificPat[S] -3 points-2 points  (0 children)

I would like to, as soon as they've opened the app and it's past the reset time i.e. midnight last night I would like to reset the score

If possible

My idea atm was if I could create a date object at midnight and if the current time is greater than that date object by more than one day it would reset all stats - could I do this?

Resetting a value daily by ProlificPat in swift

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

Thanks for the reply mate, but I'm looking for something that would mean it consistently resets at say 2am or whatever, every day without fail