« first day (699 days earlier)      last day (1457 days later) » 
00:00 - 09:0009:00 - 00:00

12:38 AM
NIL
Ethen eating sandwich in a classy suit: twitter.com/ethenawilson/status/494200411889209345
nil, did you file a bug for that if statement bug?
 
user457812
Not yet.
 
user457812
I'd assume that's been done. Too likely a pattern.
 
Hmmmm, it compiles for me.
Hang on, not really.
Hmmm yeah, it compiles.
 
user457812
Maybe for you
 
user457812
I crashed Xcode typing it into a playground
 
12:50 AM
wat
We are running the same Xcode.... Right?
 
user457812
Assuming you're on beta 4.
 
Yeah.
 
user457812
gist.github.com/nilium/ecb95d3fcbf91eeb20d7 ⇐ Then paste that into a playground.
 
user457812
Warning: you should save your documents first.
 
nah I like to live dangerously
lol, didn't crash.
but I get 'no such module Cocoa'
 
user457812
12:57 AM
Stop creating iOS playgrounds, asshat. -_-
 
I SPOKE TO SOON
IT CRASHES LOL
after I click on some stuff it crashes
wait, can I create OS X playground in iOS project?
 
user457812
Playgrounds are independent of projects.
 
Ok. Regardless it crashed earlier.
 
user457812
The !(opt || opt) construction is apparently deeply offensive to Swift.
 
Hello
I just got back from my first run with my dog an it was awesome
Way cooler then regular running.
 
user457812
1:12 AM
Calf muscles are weird.
 
Wait, what nil?
It blew my mind that !(opt || opt) crashes in Swift.
 
user457812
Calf muscles are weird. They're big, bunched up muscles just hanging off the back of your legs.
 
user457812
1:28 AM
> The story follows Hime Arikawa, whose absent parents have left with saddled with a huge debt. After being saved from debt collectors by three girls on the student council, in exchange for paying off his debt, he agrees to spend the rest of his high school career dressed as a girl.
 
user457812
Anime plotlines.
 
user457812
I'm pretty sure that's just Hayate the Combat Butler but with cross-dressing.
 
user457812
Like someone went "yeah, needed more cross dressing, but otherwise we'll do this."
 
user457812
@EnricoSusatyo Oh, speaking of cross-dressing, have you seen Working!!?
 
user457812
The !! is part of the name, the ? is not.
 
1:54 AM
My brother have seen it. He didn't recommend it highly.
You liked it?
 
user457812
Your brother is wrong.
 
user457812
It's like Seitokai Yakuindomo without the dirty jokes.. most of the time.
 
user457812
Also more cross-dressing and dysfunction.
 
HAHAHAHA
Alright, might watch it then.
 
user457812
In the meantime, it appears something is stomping memory in my Swift application..
 
user457812
2:04 AM
Or at the very least, the moment I start using KVO on a Swift object that extends NSObject, things start to explode if I have more than a single observer
 
user457812
Really not sure how to explain that one.
 
user457812
I'm almost positive it's something I did wrong, just not sure what. Seems like it's something being released early, at any rate.
 
user457812
The one major downside to Swift is that it's not obvious when it's my doing or the compiler being slightly off
 
user457812
Ok, confirmed it's something to do with the way Swift was handling something in a class extension
 
I can speak in Emglish
*English
 
user457812
2:10 AM
Something got released prematurely is the best I can explain it
 
Cross dressing is awesome lol
 
user457812
Second point about KVO in Swift: do not attempt to observer an array of enums.
 
user457812
KVO finds the entire concept of an array of enums very disagreeable.
 
Swift enums are so bad that when U was trying to port my project over I just made my own enum
 
user457812
Swift's enums are not conventional enums.
 
2:14 AM
They are terri le
Got to go
Goodnight everyone :)
 
user457812
Swift's enums are awesome, they're just not something that fits into Obj-C
 
Are you in the same timezone as Ethen, nil?
I am geographically blind. I don't know where Duluth is in relative to Idaho.
 
user457812
I don't think so.
 
user457812
I don't know what timezones Minnesota covers, but chances are it's not mine.
 
I'm pretty sure we already did that
We are both in CST
 
2:29 AM
I thought you are in bed?!
Lol
 
Idaho is only five miles from Duluth, Enrico
 
Even I know that's true. But nice try, Ethen.
Apparently Duluth is in Minnesota.
That's where McGyver is, I think.
And Idaho is a state name not a city name.
Well done, Enrico.
 
2:46 AM
Hello everyone
 
Hello, nayoso.
 
enrico have you ever released an enterprise apps?
 
Yes
I am hacking the office Sonos to play some Bob Dylan lol.
 
Can you install it via itunes?
or only via link?
 
3:04 AM
hello every1
 
Hmmm, dylibs look like a pain in the ass
 
Does anyone have a minute...
 
How in the world does anyone use them when they can actually export so little...
 
I had been trying to resize a static cell but I get some constrains issues
and only 1/2 gets resized
 
You can install enterprise apps through iTunes nayoso
 
3:21 AM
Does anyone knows how to resize a static cell based on the height of a textview?
Because Right now I can do it..
but it does not resize properly
 
3:46 AM
@nayoso Basically you upload the binary together with a plist file. Then you open that from the iPad. That's how you install it.
 
4:05 AM
Hmm yes I already tried
but looks like I need to set SSL for ios 7
@borrrden Hmm but I can't jim
 
user457812
Alright, undo/redo working in SwiftSchemer.
 
user457812
Like it really just magically works, more or less.
 
@nayoso Yes, you need to have https on the place where you host the .ipa and .plist.
 
yeah Hmmm
I tried this one
238
Q: Enterprise app deployment doesn't work on iOS 7.1

Mark ParnellWe distribute apps via an Enterprise account, using an itms-services:// URL. This has always worked fine, but after installing the iOS 7.1 beta on our iPad it refuses to install. Instead we just get the generic Cannot connect to example.com message that iOS unhelpfully displays when there is any ...

tried the dropbox solution but it says cannot connect to my server
 
4:22 AM
I didn't know Dropbox has SSL.
 
user457812
I am a genius ಠ_ಠ
3
 
Hmmm I thought they have
 
user457812
Also this code is definitely messier. Going to have to spend some time cleaning it up after all the screwing around I did to get undo/redo working as well as it does.
 
ARE YOU REALLY A GENIUS
PROVE IT
Prove that 1 + 1 = 2
 
4:43 AM
psshh... If you were REALLY a genius, you could prove that 1 + 1 = 3
 
ARE YOU TRYING TO BREAK THE INTERNET
 
no.... but now that you mention it...
Ok, so yea... that's my contribution to the internet for the day. Good night.
 
@nayoso Well you suck then
I've done it many times :p
Yes you need SSL for iOS 7.1
However, it doesn't have to be verified by an authority (i.e. it can be self signed)
I set up our OS X server to work correctly
I've done it many times as well
Because of the mountain of times that I messed up the certificate haha
However, the OpenSSL APIs and such are fascinating to me
And in other news I finally figured out that I can use boost without requiring its install on every computer I deploy to (I think)
 
user457812
I can prove that 1/0 is 0.
 
shit
Hmmm I thought I've done it right
just make the normal certificate
and normal provisioning
then create the ipa with that certificate
and then add the url and the app name to the ipa right?
is there anything that I missed?
 
4:55 AM
"normal provisioning"?
You need an in house provisioning profile
 
yes2
I mean the enterprise in house provisioning
 
If you have that, you can install through iTunes
 
I just realized when I check the member center
the provisioning is invalid -_-
 
* thumbs up *
 
I don't know why but I guess my client is messing up with his ID
 
4:58 AM
He might have changed something on the app ID
That will invalidate the provisioning profile...I found that out the hard way :p
Like adding game center support, etc
 
without informing me -_-
 
user457812
I am currently 7 of ten star'd messages
 
user457812
Everyone pick three so I can kill most of them
 
user457812
Or just kill all of them
 
user457812
Anything that doesn't get picked twice gets nuked ಠ_ಠ
 
5:05 AM
There is really no need for a simple emoticon to be starred in my opinion
3
 
And shit it's still can't be installed via itunes -_-
 
5:20 AM
Hahahahahahahahaha
Don't worry soon you will be an Android dev
And your problems will be 100x worse
 
user457812
Which star'd comment do I remove next?
 
All 1346 of them
 
user457812
I could probably do that with a script
 
5:47 AM
HAHAHAHAHA BORRRDEN
YOUR PROBLEM WILL BE 100x WORSE LOL
 
5:59 AM
HAHAHHA
Shit
 
Hello All
Do any one have any idea about core data light weight migration
 
I wish I could make witty tweets like Pinboard.
 
user457812
6:20 AM
Ok, pushed all my undo/redo commits to github
 
NIL!
I am so angry
 
user457812
Why?
 
user457812
Also, 68 day commit streak.
 
A lot of things.
 
user457812
 
user457812
6:28 AM
Today's commits.
 
user457812
If you notice the times are all in like the last hour, that's actually misleading
 
Sometimes, I feel like I would be a lot more productive doing things on my own, at home.
 
user457812
It's just that I didn't bother committing the changes until the last hour or so
 
user457812
So for the past hour I've been going through the code making small, incremental commits.
 
6:29 AM
Because sometimes I am doing very unproductive things here. Writing code that's never released, changing feature x every single day, etc.
 
user457812
I do this a lot.
 
Oh I do that too.
SourceTree is pretty good at that, because it has a "Stage hunk" feature.
I'm not sure how to do that from Git CLI.
 
user457812
git add --patch
 
user457812
You can also edit the patches by hand, since I occasionally need to do that
 
user457812
github.com/nilium/SwiftSchemer/blob/master/SwiftSchemer/… ⇐ That's how undo/redo is handled in the app.
 
6:31 AM
Q
Again.
 
user457812
An undo/redo is literally just a block assigning the old value of something.
 
From now on I will call you Qil.
 
user457812
Since didSet yields the old value of the property, so the easiest way to do undo/redo is to just have each undo op be a block that assigns the old value back to the property.
 
user457812
But here's the trick question: that's undo, where's redo?
 
user457812
Bearing in mind that answering that requires you to already know how Apple's undo management stuff works
 
user457812
6:35 AM
Anyway, the short answer is that undo and redo are the same thing. When an undo operation happens, a new undo operation is registered during the undo operation (it has to be during). The undo operation will trigger the didSet observer, which will in turn register a new undo operation undoing the undo.
 
user457812
A redo operation for NSUndoManager is just an undo operation registered during an undo operation.
 
user457812
Meaning that didSet { addRevision { x = oldValue } } covers both cases without doing anything.
 
user457812
Hence my "I am a genius" line earlier, because I love how that worked out.
 
LOLLLL
You are indeed a genius
So QRevisionTracker() is a wrapper around NSUndoManager?
 
user457812
Yes.
 
6:37 AM
So you get lots of stuff for free.
 
user457812
It's just a weak reference to an NSUndoManager with a special class that wraps a block as an undo operation, since NSUndoManager conspicuously lacks block support.
 
Ah.
You are a genius.
Can we sell this for a million dollar?
 
user457812
Far as I know, NSUndoManager works the same on iOS (it's literally the same class), so QRevisionTracker's also conveniently portable.
 
user457812
One annoying thing in Swift, by the way, is that closures aren't objects.
 
user457812
6:42 AM
I mean, they are, but they're value types.
 
You can't pass them around as an argument?
 
user457812
There's probably some odd exceptions for how Obj-C receives them, but the point is they're not conformant with AnyObject (or NSObject)
 
When do you think they will cut off Obj-C compatibility?
I have a feeling that this is going to be one of the biggest pullbacks in Swift.
 
user457812
At any rate, where Obj-C would take an id, you could pass a block. In Swift, where something would take AnyObject (basically id), you cannot pass a closure.
 
user457812
I wouldn't expect Obj-C to disappear soon.
 
user457812
6:46 AM
Basically, legacy code and lots of it. If nothing else, all of Apple's code is a mix of C, C++, and Obj-C.
 
user457812
So, like Carbon, they can't get rid of it 'til they've stopped using enough of it
 
user457812
I've also read that Swift's performance overall isn't great right now, and it's probably going to be a while before you can convince game devs to give up C++, so I wouldn't count on Obj-C going away.
 
user457812
At least not 'til they've got interop with other languages down really well. I frankly have no idea how importing C and C++ interfaces into Swift works right now.
 
I'm not talking about disappearance of Obj-C. I'm talking about backwards compatibility form Swift to Obj-C.
Oh yeah I also read about that Swift performance
What does &variable mean in Swift?
 
user457812
Read-write/pass-by-ref.
 
6:52 AM
For primitive types?
(non objects)?
 
user457812
For any variable.
 
Hi all did anyone worked on LiveReload for mac?
 
user457812
wat
 
liveReload which updates the webpages automatically
 
user457812
Post an SO question.
 
6:57 AM
ok
 
user457812
"Denki-Gai no Honya-san"...
 
I found it on Reddit. You know of that manga?
 
user457812
I did a reverse image search.
 
7:46 AM
I just realized that chrome is hogging my memory
 
user457812
That's more or less what Chrome is supposed to do.
 
what browser do you use nil?
 
user457812
It allocates as much memory as it can use because you've got memory sitting around being unused.
 
Chrome also eats into your battery.
 
what browser do you use enrico?
 
7:48 AM
Safari and Chrome.
Mostly Safari.
 
Hmmm
 
Chrome is better at some stuff.
 
maybe I need to upgrade my RAM
 
Don't you have a MacBook Air? Can't upgrade RAM in those.
 
user457812
I use Safari and Firefox because Chrome has horrible performance on RMBPs.
 
7:52 AM
No this is my personal laptop enrico
 
user457812
Firefox tends to handle most things better than Safari, though Safari has the upside of sync'ing my tabs and bookmarks.
 
I see
I also use chrome in my iphone
so it's very convenient
it'll sync all my account and history
 
user457812
While I remember, I want to point out something: Chrome on iOS is better than on Android.
 
user457812
And I don't mean in terms of performance, though it is better on iOS because it's not Chrome's rendering engine
 
user457812
But the UI, in general, on iOS is better.
 
7:56 AM
yeah I agree
I wonder when is the next nexus phone will be launched
 
morning guys
and girl
is it time to install yosemite onto my main machine?
is it stable enough?
 
I don't agree that Chrome in iOS is good. I don't like it.
No rage, do not install it.
 
why you don't like it enrico?
 
you had trouble?
 
user457812
I have it but haven't installed it.
 
user457812
8:00 AM
I haven't actually heard a lot of anything bad this time around, but I'm still wary
 
wary is precisely the word I would use
but it's beta4 now and I had Mavericks from beta1 last year
so unless I hear some hard evidence I might give it a go
 
user457812
Basically, I've been through the last 4 Mac OS releases. I know I don't trust Apple to release something stable, so I trust them less with betas because when they say beta they don't mean the joking web dev/google beta, they mean beta and might eat your computer.
 
user457812
I also fully expect that between the beta and full release, someone will break wifi again
 
user457812
Because Apple just seems to break wifi every time they release a new OS.
 
yes I get that, but I don't use that machine that much nowadays as I'm in the office all the time. also I have all important data continuously backed up to several places
 
user457812
8:03 AM
I'd say look up how hard it is to revert to 10.9 and decide from there
 
all work and personal documents on local file server + dropbox + backblaze
 
user457812
I backup less frequently, so it's more of a gamble for me
 
not hard at all as beta keeps the recovery partition intact
 
user457812
Not hard, but you can only recover to 10.10
 
I do highly recommend backblaze for backups
nope
beta doesn't overwrite it
 
user457812
8:03 AM
I had 'em, but my connection's so terrible that it's not feasible
 
that's the point
afaik
 
user457812
This beta does require you to reinstall from 10.10
 
user457812
You can't install an older version on top of a newer version. OS X's installer is prepared for your attempts.
 
well yosemite would, but I can clean install it
as I said I have full backup
 
user457812
You can do that. I'd hate to bother with it.
 
8:04 AM
of course
luckily if it would be me doing it not you
 
user457812
Could also just do a time machine backup then never hook it up after installation.
 
I can't pay for your flight and stay to do this for me
backblaze does the same for you
 
user457812
Backblaze requires internet access and a connection that doesn't blow.
 
I have that
 
user457812
I'm in the US and in the mountains. My options are Time Machine and Time Machine.
 
8:06 AM
I have other machines and a pretty thick fiberoptic cable
and a rifle
when you're in the mountains you need a rifle
 
user457812
Not really. Chances are if something wants to kill you up here, you're not going to stop it.
 
what sort of things should you expect?
wolves? bears?
pedophiles?
 
user457812
Moose, bear, mountain lions, a handful of poisonous snakes, multiple poisonous spiders, crazy white people who don't like no trespasser folk, and a variety of other animals.
 
user457812
Wolves aren't really an issue.
 
wolves less of an issue than moose?
 
user457812
8:09 AM
You don't seem to appreciate how violent moose are.
 
I don't
 
user457812
They are not happy majestic creatures. They are hundreds of pounds and horned and very easily pissed off.
 
know next to nothing about them
enlighten me
 
user457812
Oh, there's also elk.
 
user457812
Let me put it this way: if you're going the speed limit on the road here, anywhere from 45 to 70mph, and you hit a moose, your car certainly won't survive the attempt.
 
8:11 AM
ok, but that's not because the moose did that on purpose
that's an accident
if you hit a dear here the same would happen
 
user457812
Yes, but the point is that if they can do that to a car by doing nothing, picture that mass charging at a human being not inside a vehicle.
 
but not because the dear was out to hunt drivers
I get your point
they are mean and disproportionately larger
 
user457812
Actually, there was a really neat study on the language used to describe animal-vehicle collisions (the technical term)
 
user457812
In most cases, the animal is actually portrayed as almost intentionally getting hit and the driver is the victim
 
user457812
It's really weird
 
8:13 AM
morning y'all
 
morning Jim
 
user457812
Yo.
 
and also Moose kebabs are really tasty
 
user457812
Mooseburgers too.
 
because it's filled with the blood of its many innocent victims
 
8:14 AM
Well everyone knows to gain the courage of your victims you must eat there heart
 
user457812
One shouldn't turn their nose at the deliciousness of tortured human souls
 
user457812
I'm probably not using that phrase right.
 
user457812
Whatever, it's past midnight, I get a pass.
 
yeah you do
 
I wouldn't worry, i'm here now and making a worse mockery of the English language so i'm a good decoy.
 
user457812
8:16 AM
I was just going to silently not point out your "there"
 
he's dislexic
(misspelled on purpose)
 
nah Dyspraxic
i have no excuse on spelling
or grammer
 
My game is out, check it out here it's free :3 itunes.apple.com/app/id900326307?ls=1&mt=8
 
8:46 AM
I wish i had the time tbh
good luck though
 
haha, 8MB only 1 minute of your life. Too much to ask for :)?
 
hey guys, if I have 10 UIScrollViews in 10 UIViewControllers, and I want that 9 of them have a specific scrollViewDidScroll method, how should I proceed?
Delegate patterns, category, inheritance?
I'm a bit lost :)
 
@Mutch95 you have two screenshots for your app, neither of which depicts any actual gameplay
 
well the games running when i attempt to take a screen shot and i die
 
pause it?
add some breakpoints
comment out the part of the code which restarts the game
@Vico - (void)scrollViewDidScroll:(UIScrollView *)scrollView gives you the scroll view
 
8:55 AM
sure. question though, how come when i open a activityViewController on iPad it calls viewWillLayoutSubviews: twice?
 
switch the scrollView passed to the delegate method to implement specific actions for each scrollView
 
@CaptainRedmuff Thanks for your reply, but since all these scrollviews are in different files, I should create a specific delegate for them ? Currently each viewController deals with the scrollViewDidScroll method, thus I have the same code repeated 9 times
 
do they all do the same thing?
 
Yep, moving a add button that is present on all the views
 
if so, make a view controller that implements the scroll view delegate methods and subclass it
3
Q: Method called in -viewWillLayoutSubviews inexplicably runs twice

dimadimaI've got the following code in a detail view controller: - (void)viewWillLayoutSubviews { [super viewWillLayoutSubviews]; [self configureView]; } When I segue to this view controller with a breakpoint on first line of -configureView, it appears that [self configureView] is called twice...

 
00:00 - 09:0009:00 - 00:00

« first day (699 days earlier)      last day (1457 days later) »