« first day (1098 days earlier)      last day (1058 days later) » 
00:00 - 21:0022:00 - 23:00

12:09 AM
He doesn't believe in using even one single line of other people's code.
 
Max works almost exclusively in Swift now doesn't he?
Alamofire is a good choice for a swift async networking library. Not as full-featured as AFNetworking, but dirt-simple to use. (Written by the same developer)
 
user457812
12:37 AM
Alright, got my SSD and power external power adapter for it
 
user457812
Most people buy enclosures, I just plug hard drives directly into the wall.
 
12:51 AM
Directly into the wall? A regulated DC power supply seems like an important component.
I bought a replacement for my MacBook's DVD player that holds a HD. I moved my mechanical hard drive into there, and put a 500 GB SSD in the main drive bay.
It boots in like 10 seconds now, and is DRAMATICALLY faster.
 
user457812
There is a regulated DC power supply.
 
throws away my project
Because the developer of AFNetworking is a dick and why add it?
 
Burn him.
 
AFNetworkring helps with downloading shit and caching, that is already working and is customized to my app specifically, which works best
 
So don't use it.
 
12:55 AM
BLASPHEMY, BURN HIM!
 
what isn't working is table view cellForRowAtIndexPath and indexPathForRow return nil and won't let me set a image
Burn dev of AFNetworking
 
Why are you mad at the developer of AFNetworking? I found it to be a very well thought out framework.
You're working in Swift, aren't you?
 
I tried using his Swift version, campfire or whatever and it didn't work with drag+drop and said use cocoa pods or carthlage and wouldn't help, said use those and I'm not using that shit
 
Alamofire.
 
if your project and drag, drop and work I don't want it
I don't like him because he was a dick on github to me
 
12:56 AM
A d*ck how?
 
but even if he wansnt a dick, I don't need it, I need a solution to cellForRowAtIndexPath
 
Sounds like you need to debug your code.
2
 
Its only a suggestion because I say images, if I just say cellForRowAtIndexPath is retuning nil and it shouldn't then there is no reason for AFNetworking is there? nope
Ive been trying for like 3 hours, I need helps
 
So post a gist of your cellForRowAtIndexPath method.
 
How dare you say Mattt Thompson is a dick?
 
1:02 AM
I think its more accurate to say Max is mercurial.
 
user457812
Meh, SSD is currently not playing nice with Linux
 
@enricosusatyo he was to be so.. he is
Ill find his comment in a minute
 
Where is the cellForRowAtIndexPath method?
You should not be calling cellForRowAtIndexPath yourself, the system calls that on the data source.
You should never call your cellForRowAtIndexPath method yourself.
 
This method is called, I have 0 code besides initializing the cell and returning it. this method sets up the cell
how do you get a table view cell then?
 
This line is wrong `if let fetchCell = self.tableView.cellForRowAtIndexPath(indexPath) as? PopularShowTableViewCell {
`
You don't.
 
user457812
1:06 AM
Appears to maybe be a kernel issue..
 
user457812
Could also be a firmware issue.
 
user457812
Or both.
 
how else would you get a cell duncan?
 
Oh, I'm sorry. That's not the data source method.
You're asking the table view to give you an existing cell.
Different method.
That method will only return a cell if a cell for that index path is currently on-screen.
 
yes
oh shit, I think i figured the issue out (don't know a fix)
 
1:07 AM
Where is configureCell called?
 
Ok, so the issue only occurs when the image is already loaded into the cache
and this method is called from cellForRowAtIndexPath
so what if the method is returning so far before I return the cell?
 
indexPathForCell will be nil when called from cellForIndexPath because the cell is new/recycled and not currently an active cell in the table view.
 
errr what
the cell is on screen, for the first time
 
Not yet it isn't.
You said your configureCell method is being called from cellForRowAtIndexPath.
Until you return a cell, it isn't installed in the table view.
Why would you need to call indexPathForRow? You know the indexPath in question. It's the only parameter to cellForRowAtIndexPath.
 
Because its asynchronous
 
1:12 AM
Oh for @#$ sake, show the code that calls that method!
 
if you didn't do that, and image A finished downloading, cell B will display the image potentially and it slows the app up because then all the images are chaning
 
Third and final time I ask.
 
updated
 
user457812
Looks like I'm going to have to use IDE compatibility mode
 
user457812
Meh.
 
1:14 AM
If your completion block gets back nil from the call to self.tableView.cellForRowAtIndexPath then it must have scrolled off-screen while the image was downloading.
 
yes
see thats the issue
 
Maximillian, I just popped in, but... SDWebImage = babe.
 
nope
 
Ok, that means there's nothing to do. Keep the file stored locally and install it in the cell off disk next time.
Your cache should have multiple states: File not stored locally. Download it, save it to disk using the URL as a key, and return it.
 
Ill have to make a new completion block and return if its cached or not
 
1:17 AM
File is available locally. load the image and invoke the completion block immediately.
 
because if the image is cached, and the cell is loaded for the first time I need to set it directly to the cell, but if its downloading then it returned the cell already and could be scrolling so thats why I can't set a image there
 
Just make the image manager invoke the completion block immediately if the file is on disk/in memory.
 
it is
 
Sure you can. Just set the image in the completion block.
 
if let image = cache.objectForKey(show.title) as? UIImage {
completionHandler(image: image)
}
else {...
 
user457812
1:18 AM
Hm, USB stopped working on boot this time.
 
user457812
I'm just a boatload of bad ideas sometimes.
 
IDE mode on an SSD? Ugh. Why?
 
user457812
AHCPI failed.
 
That's like putting 4 donut spare tires on a Ferrari.
 
user457812
It's still going to be faster than the MicroSD, but I'm going to have to find a way to update the firmware on this.
 
1:20 AM
The SATA controller on your computer?
 
Here is Matts response to me BTW, "@MaxHasADHD I cannot reproduce this issue, and many others have successfully used Alamofire in shipping applications. Your decision not to use tools that automate installation is totally on you."
 
Dunno Max. I've used the exact approach we are talking about on several projects and it works just fine.
 
user457812
K, still can't access the SSD in IDE mode.
 
also another user had the same issue as me, he didn't want to help either of us
 
This is on a PC?
 
user457812
1:23 AM
Something suspicious about that.
 
user457812
It's on a MinnowBoard.
 
Indeed. Sounds like something's rotten in the state of Denmark.
Or whatever state is is that you live in.
 
Im just wasting hours, I don't think anyone understands the issue
 
Not to be mean but it's your program, the burden of understanding and fixing the problem falls on you, not the author of the framework.
 
I've known Max long enough to know that he really sucks a lot at explaining, not so much at programming.
 
1:33 AM
I can't explain shit
2
I'm about to go make a movie so everybody knows my issue :P
 
The developer of a framework as widely used as AFNetworking doesn't have time to provide individual help to everybody who has trouble using it.
 
It should work drag and drop, or he should write instructions
Telling people to just use some thing to install it is not an answer
 
I agree with Duncan, as usual.
 
if I release code, Ill tell you how to install it directly. drag and drop, its damn easy
 
You get frustrated easily and tend to go off. Did you rant at Mattt Thompson?
 
1:35 AM
No
Ill find it again
Wouldn't import correctly or build
Im downloading Alamofire, not Carthlage and cocoapods.
I'm being told right now that cellForRowAtIndexPath should only be to deque and return, not setup any cells?
 
user457812
Ah, I love Rick and Morty.
 
I used Alamofire and installed it in my project directly. Didn't have any problems doing it.
 
How long ago?
 
A month or 2 ago I'd guess.
Swift 1.2, not Swift 2.
 
It was still early. maybe it works now with Swift improvements and the library, but it wouldnt work for me and the other guy and he basically said screw off and doesn't care about his work not working. he wanted to side line it to some other libraries to install it, If I can make a damn program its not too hard to drag and drop, but if it doesn't work with drag and drop, fix your shit
 
1:39 AM
Matt has a point that CocoaPods make installing third party libraries easy.
I'm siding with Matt on this. I followed his instructions and it worked flawlessly.
 
he could have updated those within the months of my complaint :P
 
If you can't get it to work by installing it manually, try CocoaPods. They take the drudgery out of this sort of thing.
 
This wasn't yesterday lol
I will never use cocoapods
 
Why
 
I like to know what stuff is doing to my program
I don't want to find out it changed by build settings to X without me knowing
Because what happens later when theres an issue? Does Cocoapods have a little paperclip guy to ask me to help and fix my issue? Nope
 
1:42 AM
I seriously don't understand how this is Matt being a dick: github.com/Alamofire/Alamofire/issues/288
3
LOL Max is getting help elsewhere
 
Anyway. Take a deep breath, calm down, and go troubleshoot your code.
 
Also take a walk.
 
I'm out. Horrible sleep last night, and an early, full day at the client site again tomorrow
 
Goodnight buddy.
 
goodnight duncan
Enrico, go watch my video
also, I didn't know you knew of that place >:[
 
1:53 AM
I've been there a long time.
I'm everywhere.
 
>:[
I never see you there
Do you agree that cell code should be in willDisplayCell?
 
@Maximilian Even after watching the video twice, I don't understand your point.
@Maximilian And that's because I try not to be a help vampire LOL.
 
Enrico, watch the video
when I dismiss the controller that pops up, and then tap the middle tab, those images don't load
but the images are in the cache, they exist! It shows you, I scrolled away and they instantly appeared
 
I watched it twice.
 
then how do you not get it
You don't think images not loading is a issue?
You would ship that?
GAH, wasted hours and 0 progress.
Its a bug
to fix I have to use dispatch_once :/ Lame
Well, each solution has a side effect. I'm out
 
 
1 hour later…
3:29 AM
Hello Peeps ( ^ ^)
 
3:45 AM
:)
 
4:26 AM
there is no peeping
just sorrow and depression
@enricosusatyo its dickish because he didn't even care, just said it worked for him so why try. Even if it works for me, I check that it works for others as well.
 
That's not dickish.
Also, I think your attitude might have put him off too - you kept insulting the framework, saying it was sillly, etc., that it didn't work for you, and implying that was his fault.
 
¯_(ツ)_/¯ His stuff should work
Like Apple, "It just works", but his did not and he didn't care
 
I don't think he didn't care.
He suggested several solutions, actually.
> Your decision not to use tools that automate installation is totally on you.
That line is a bit much, though
Unless he specifically said somewhere that the library will only work through a dependency manager.
> If you prefer not to use either of the aforementioned dependency managers, you can integrate Alamofire into your project manually.
 
the reason why I think I'm in the right is because, when you get X thing and you complain it doesn't do Y, you are at fault. But drag and drop is X, automation is Y that it supports
Its code, I can code something on my phone, drag and drop into Xcode and it builds
If your code can't do the same, its broken
or you didn't specify the requirements good enough if there are any
well the library is updated, I might be able to drag and drop now. but he last me in January
 
Hey guys, can anyone help out? stackoverflow.com/questions/32344782/…
 
hey...me first
:P
 
@Maximilian why isn't your image linked to your data model for the tableview?
meaning, you'll always know what image goes with what cell because the cell data at that index path has an identifier, like an image path or an id.
rather than trying to link it with a cell view.
 
I do use CD
to store image paths
storing images in CD is slow
 
That's not what I meant
 
5:06 AM
Max, not saying anything is wrong with your implementation, but have you tried using SDWebImage instead to see if the issue still exists using them?
 
I don't mean you have to use core data, I just mean your the data for your cell should have some sort of identifier that helps you find the image.
I'm not saying store the image in CD.
 
>:[NO
 
If you can't modify your existing implementation max, I'd use a 'pending' dictionary of NSIndexPaths & image indentifers, so you can know what cells are 'waiting' for their image to load. When that index path becomes visible, assign it the image.
Or something along those lines. But this isn't a tough problem to solve, I think you are just fustrated.
 
My image manager sets core data relationships, does face detection caching and poster caching and a bunch of stuff
no way I can use anything else, also image downloading IS NOT the issue
Its nowhere near it
If I replace "= image" with a known images in my bundle using imageNamed, it will still have the issue
 
OK. So the issue is what... cellForRowAtIndexPath returning nil, or something?
 
5:11 AM
yes
but it should not be
 
That's probably because you're doing it in willDisplayCell
instead of cellForIndexPath, or didDisplayCell (if that one exists)
Not sure, but expiriment. It seems that the cell just isn't available yet.
So look for another delegate method where it is.
wait...
 
I also tried in cellForIndexPath, I was told (and it works) that setting up a cell in willDisplayCell makes it faster
 
I doubt it.
But, either way, why aren't you using the cell passed in by willDisplayCell?
instead, you're looking it up with cellForRowAtIndexPath
 
@Maximilian I wonder why you didn't make the SO question in the very first place.
 
because its async Matt
and it will set the wrong cell
 
5:16 AM
I thought so.
 
Also you copied way too much code in there, I wouldn't read that...
 
because I'm lazy
If I copied less code, I would be told there is no context
 
Hmm. Well, you're right, it should work...
You may be dealing with a race condition. Dunno.
 
Hey guys, anyone able to answer this :) stackoverflow.com/questions/32344782/…
The most important part right now is the last paragraph :)
 
5:18 AM
also to @all, I just tried with a image I know to exist and it didn't set until I scrolled away
 
@Maximilian I see. Although...the only major difference I can see is that willDisplayCell might be called less, as it will only be called when a cell is going to be visible. cellForIndexPath is called when a cell is needed, but might not be immediately displayed.
 
@enricosusatyo I removed some of the code
Well, I mean I only need this when the cell is on screen
and it behaves the same in both places
 
@David are you pushing, or presenting?
 
@mattsven presenting
 
yeah, not sure. I have been considering the same thing.
I'm not sure what would happen if you went to the root viewcontroller and tried to dismiss, see if that deallocates the chain.
You might have to loop from the topmost viewcontroller down.
dismissing them as you go.
 
5:26 AM
Meh, if it is that big a pain, might not be worth it, I just won't have a way to dismiss to get back to there.
 
or, if you're dealing with a UIWindow, you can just set the rootViewController and the presentation chain should be broken
 
It shouldn't be an issue, but just something I was curious about.
In AppDelegate I make use of self.window?.rootViewController = drawerController
self.window?.makeKeyAndVisible()
Would it be something like:

self.presentViewController(rootVC, animated: true, completion: {
var appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
appDelegate.window?.rootViewController = rootVC
appDelegate.window?.makeKeyAndVisible()
})
 
yes.
you can skip makeKeyAndVisible though
shouldn't be needed
 
I always see it used.. not really sure what it does xD
 
Im stressed
 
5:30 AM
Makes a UIWindow visible, and makes it the "key" as in main window.
 
Ah
I'm assuming I already use it AKA it already is key AKA not important to change.
Alright, I'll do the appDelegate.window?.rootViewController = rootVC method then see if I can dismiss.
Alright, hope it works.
Doing appDelegate.window?.rootViewController = rootVC doesn't solve it @mattsven
 
aw
 
I found a semi-fix to my issue
Pass in the cells image view to the method, set it from image manager
 
@mattsven reading through this though, I'm either going to ignore it because it is so lightweight it doesn't matter, or I'll just try with window.makeKeyAndVisible
 
5:45 AM
but its so gross
soooooo gross
 
6:19 AM
Alright, I basically have everything the way I want it :). Only 1 issue remaining and it is with the MMDrawerController library...
or maybe not. hell if I know
 
 
1 hour later…
7:44 AM
I need a job, does anyone want morale officer?
GIVE ME AN N, GIVE ME A S, GIVE ME A CHAT! N.S.CHAT!! Woooo
 
 
4 hours later…
11:34 AM
mpmovieplayercontroller showing pause button while streaming video . i found few SO post which says this is bug reported to iOS ??
 
12:26 PM
Hi All, just wondering can we opt out ATS for Released apps also? (By adding into info.plist)
 
 
2 hours later…
2:07 PM
Ive got a view controller that I want to keep generic. It's primary purpose is to display an object that has multiple subclasses. depending on the subclass, there will be unique properties on the object that will need to be displayed. Should I just create subclasses of the generic view controller for each type?
 
bit vague
cant really understand if you are showing this Viewcontroller many times on the stack
or just once
 
2:45 PM
Kinda got an answer to my issue. Using a number will keep my cells in sync it seems
and I have to use a synchronous method before the async method to fix my other issue, and since you can't use sub functions in closures its a mess
or function functions
 
3:43 PM
Apple: 87% of iOS Devices Now Have iOS 8 Installed On Them http://mod.my/1JBzHGP http://t.co/eW5lbpBNaf
 
4:12 PM
Hi room. Anybody awake.
?
 
I am!
 
Cool. Do you have any experience using private APIs?
 
A little. What's up?
 
I'm working on an iOS app that uses the IOSurface framework to do screen captures while in the background.
With some caveats, it works in iOS <9.
However, it crashes at runtime when run on iOS 9, complaining that it can't load the framework CoreSurface.
 
Does the framework exist on iOS 9?
 
4:15 PM
The only thing from CoreSurface that the app uses directly is a couple of types defined in the header. I think the IOS 8 version of IOSurface framework must depend on CoreSurface, and am trying to sort out the dependencies and find a work-around for the missing framework.
Doesn't seem to.
 
It's in the private frameworks, not public
If you look in Xcode/contents/developer/platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk‌​/System/Library/PrivateFrameworks, its' there
 
I see
Where are you getting the iOS 9 Private frameworks from? The path, I mean. I have Xcode 7 but I only see the simulator SDK, which may or may not have it
 
5:01 PM
@DuncanC It is possible to create a secondary NSManagedObjectContext to play around with without changes being saved into the main context, right? I'm creating a secondary context and somehow, changes are making it into the main context.
 
hallo
 
hello
 
5:21 PM
brb
 
Matt, sorry, I was AFK. Certainly it's possible to create a second managed object context, but I don't think that prevents changes from affecting other contexts.
I'm at work so I can't talk for very long.
 
5:46 PM
Gotcha.
I'm wanting a setup where I can make temporary changes without affecting the main context.
Seems like this is my fault, though.
Some threaded code not behaving...
 
6:02 PM
AHA!
I have FIXED IT!
merging was causing saves to cascade...
 
6:19 PM
Yay.
In other news, I cooked patties.
 
You've been doing a lot of cooking lately...
 
There has got be a way to use SVGs in iOS, right?
Converting to PNG has terrible quality
 
Well, I'm sure there are libraries.
 
I need to feed myself.
 
But there's nothing native, AFAIK.
 
6:33 PM
So I must cook.
 
I figured it was that, lol.
No ramen for you
Besides UIWebView/WKWebView.
 
Heard of the PDF solution, but that's not backwards compatible, what the heck
 
Whatever solution you come up with though will have more overhead than just using PNGs.
paintcodeapp.com is probably as close as you'll get. I use it, it's handy.
 
PNG is terrible quality though. It's blurred
 
It shouldn't, if you export & scale your assets properly and avoid half-pixels
 
6:36 PM
Try doing that with this
 
Oh. Well, that PNG is already blurry, lol.
if you're not creating your own icons, you can find better ones than that in two seconds, on iconfinder.com or something
Is this a client project where you don't have control of assets or something?
 
Hey guys, :)
 
you :)'d. Why did you :)'d?
 
I smile
:O
 
Nah, it's a personal project but I want to make sure I can use everything commercially in case such a situation comes up
 
6:41 PM
I put my MMDrawerController issue into a barebones xCode Project for anyone that wants to fiddle around: github.com/dilizarov/drawerControllerIssue
have a ViewController, BViewController and CViewController.

I use the same instance of C as the Side View for both ViewController and BViewController. You'll notice that any text changes in the textfield in C clearly persist when you go from ViewController to BViewController, but when you go back, C is gone. Why? How do I fix this?
 
Because a single UIViewController can't be in the same place at two times, if that's what is happening here
You probably need to restore C view controller as the side view in viewWillAppear
but I haven't checked out your project yet so just guessing
Anyway signing off for a min
 
@mattsven I've thought about that too, but even then I'm having trouble even restoring. I know the UIViewController is still in memory because I can go back to B (albeit a new instance of B) and still see it with the changes. When I go back to A I can print to logs that the MMDrawerController that encapsulates A still considers C as its side view.

The big thing is I feel like xCode would have thrown me an error stating "Can't have same UIViewController instance active twice." like it does when you blatantly try to presentViewController a controller already somewhere else in the stack.
 
How are you keeping the view controller alive when it's not visible as a side view?
There's nothing that keeps you from 'stealing' a view controller (that you aren't presenting)
MMDrawerController doesn't present any view controllers, it adds them as child viewcontrollers and manages the sizing of their views.
but, g2g
l8tr g8rs
 
My thought is that what is happening is that a UIViewController can't be the child or multiple parents.
But... I have no idea about that.
 
What's the preferred image size for tab bar?
32x32?
 
7:11 PM
So... I managed to fix it, but I had to comment out a line.
I basically reset the drawer controller as such:

override func viewDidAppear(animated: Bool) {
if (viewDisappeared) {
viewDisappeared = false
drawerController.leftDrawerViewController = self.drawerController.leftDrawerViewController
}
}

override func viewDidDisappear(animated: Bool) {
viewDisappeared = true
}
and in the setter code for drawerViewControllers, I commented out the part where it does nothing if you're trying to set the same drawerViewController already there.
Seems to work though.
 
FFS, someone gave two other rooms the key to our bathroom. Two people came in when I was showering.
 
hi
i have a doubt
 
Uh, okay.
 
in my app i want to create an anmation like News republic(android app) tag page
with Sphere, Barrel, Flat views
can u suggest or any idea how to achieve that
 
Not familiar with the animation on that page.
 
7:23 PM
hello
 
@Anamika can you link to the animations?
You'll probably have to create them yourself.
 
yes to create myself i need suggestions
how to achieve that animation
 
If you can show the animation, we might be able to help.
No idea what you're talking about atm
 
LGL
ugh I have to create a custom camera overlay :'(
 
7:37 PM
in this the text are moving in sphere shape and also we can touch and rotate the sphere and user touch the text it will navigate to the appropriate screen
 
8:20 PM
@mattsven The icons are weird. Resized two different icons to same size, and they look weird on the tab bar.
 
How would you place a UIView behind another UIView in an XIB>
 
Why you ever need to stack two views behind each other?
 
One needs to slide up behind the other.
As it folds away.
 
LGL
8:36 PM
is there a different with NSDictionary objectForKeys vs objectAndKeys
 
8:49 PM
I'm pissed, my rental agreement just got worse.
For one, the bathroom I share (awful) one floor down (not in description, apparently connected to room) is now being permanently used by two more people from other floors. This was unannounced, and according to the housing administrator here, just 'how things will be'.
It's small AF as it is, and has no interior lock.
 
it ticks me off that Xcode doesn't have stock tab bar icons
 
00:00 - 21:0022:00 - 23:00

« first day (1098 days earlier)      last day (1058 days later) »