« first day (603 days earlier)      last day (1553 days later) » 

1:04 PM
Back
 
1:24 PM
Front
 
What are you doing?
 
NSTableView custom animations with delayed timers.
Good times!
what are you doing?
have you put in your notice at your employer yet?
 
lol
Not yet.
I have work here at least until year end.
 
darn! hurry up and get out here.
 
I can kick them anytime however provided I get better salary job and one who also agrees to sponsor me GC
 
1:33 PM
What exactly are you animating in NSTableView?
 
it's a list of names.... when somebody clicks a "add" or "cancel" button, I have to replace the name with "add" or "removed" and then animate removing the table cell 2 or 3 seconds later.
 
@LadduHasADHD
vanakkam
sowkhyama?
 
SPEAK horn ENGLISH ok please
 
illle @MichaelDautermann
 
Lol
 
1:38 PM
@LadduHasADHD
u there
i have some doubt
can i ask u?
 
nalla irrukaen
vanakkam
 
hello madam
i know only one to two tamil letteres
so i cant understand it
ok any way thanks for responding
@LadduHasADHD
let u discuss with me about Auto Release Pool?
 
Sure
 
i want to know it
ok tell me plz
 
It's very simple and has got a lot to do with eating pizza.
 
1:43 PM
oh really
then tell me
 
yeah
 
i will try to eat pizza
easily
@LadduHasADHD
let u start?
 
ok tell me
 
After you've understood it, I will demand a pizza
So it's related to eating pizza
 
1:45 PM
yaaaaaaaaaaaaa sureeeeeeeeeeeee
 
So when you create an object, you have to release it, right?
 
yes
 
In ARC, the compiler adds the release code for us, but finally it's there in the compiled code.
 
With autorelease pools, instead of releasing the objects, we can add the objects to these pools where they live. All those objects will go away when the pool goes away.
Pools are just an area in the memory where all those objects that are added to pool get in
 
1:48 PM
what is the meaning of pool?
 
It's a pool of objects that gets added there
 
what is the meaning of pizza?
 
like a swimming pool
 
1:50 PM
Michael, I'll leave this to you. Goodnight.
 
fine
 
don't leave me!
 
@LadduHasADHD
plz give me any example
 
We are really not going to lock the room?
 
I'll do it in a little bit...
I'm being entertained
 
1:51 PM
Hahaha. Alright. Goodnight buddy.
 
Lol
 
Okay
 
@LadduHasADHD u there?
 
After you eat pizza, the leftovers you throw away i.e. you release the leftovers. However you can keep all the leftovers in a special location called as pool of leftovers and you are set free because there is someone who will take care of the leftovers.
See, everything is pizza in this world.
 
oh really
but i wont like it yar
ok give me example programatically
@LadduHasADHD
 
2:02 PM
Huh?
 
can you buy me a pizza, LadduHasADHD?
 
I bought frozen pizza yesterday from Walmart
And I stole few ketchup packs from my office pantry.
 
oooooooo.... you're a thief!
and a walmart shopper
 
They are employee's property. It doesn't matter if I eat them in office or at home, right?
 
you should be taking your frozen pizzas to work
so you can play frisbee with them around the office
 
2:11 PM
lol
 
hey everyone !
 
lol
 
@LadduHasADHD so do you know tamil ?
 
do you know the way to San Jose?
 
/me ?
 
2:18 PM
it's a song...
 
oh okay
 
but it's from 1970 or something
before everyone here was born.
and I was only a year or two old.
 
oh really nice
 
I'm not Tamil
I have a friend who is, so I know a few words
 
okay
 
3:00 PM
@MichaelDautermann those things aren't mutually exclusive
 
3:49 PM
Anyone work with serial ports over USB on a MAC? I can't seem to get my dev kit to be recognized or even show that there's even a usb connected. Any ideas?
 
Hmm, no, sorry :(
 
4:13 PM
Happy Easter!!
 
...
 
Happy Easter
yey, @LadduHasADHD is back <3
 
4:33 PM
@FredericYesidPeñaSánchez are you still having this issue?
 
4:53 PM
I'm back again
 
How should I interpret [UIPanGestureRecognizer velocityInView:]?
What is it based on? how should I gauge velocity?
 
all green, but just dont click on them
 
Haha
How can I cancel touches that are occuring?
 
5:17 PM
Yes but took a different approach to adapt to muy needs
used viewDidAppear
 
6:06 PM
@EnricoSusatyo Do you know how to cancel touches that are currently in action?
*progress
 
6:23 PM
go back to work @MichaelDautermann.
 
I'm not in the mood to work.
 
I cannot imaging being in the mood to work.
Is there such a thing?
 
well if you like what you do....
and sometimes I do.
but today I'm not in the mood.
 
I call those things hobby ;)
 
6:27 PM
So what do you do when you are not in a mood to work? hang around here and talk with Laddu?
 
lol
 
I get more out of it than talking to @Shade
 
he clearly does not like you too much
 
no... he's watching you... waiting.
 
6:32 PM
lol this reminds me of "I watch enough ...... to know where this is going" meme
 
6:49 PM
mike where do you get your news?
tech news for that matter
 
a few places... but I'm a little too busy to read any blog or site (e.g. gizmodo, tech crunch) too regularly.
 
For a busy man, you seem to spend a lot of time waking up @Shade
 
Yeah, why won't @Shade wake up?
 
He turned off the speaker and monitor
pinging is ineffective
 
I want to buy an Audi or Mercedes
 
6:58 PM
how about a tank?
 
lol
Mic you should be a context to image converter
 
@MichaelDautermann so that's what Nicki Minaj's army looks like
Less twerking than I expected though
 
but a lot of boom
 
I'm done with today's task.
I play lawn tennis in my apartment.
 
by yourself?
 
7:10 PM
We are going to play today evening after office
With my office friends
And last time we played, I went to the other side of the fence of the tennis court where all the balls go when we hit hard
And I got 10 balls besides the one we hit
So we don't need to buy balls for like next 2-3 months
 
<.<
Clever
How long had those balls been there though?
 
They seem new, like very green.
 
The lose bouncicity (technical term) after a period of time.
 
There are more, I will have to go further in that jungle
 
why are we talking about your balls?
 
7:16 PM
Nobody bothers to go there and get at least their balls, dunno why. I can go through the small opening of the fence.
 
@Byte You should feel bad for how bad that pun was
 
:(
 
I still can't figure out how to cancel touches :(
[self presentViewController:[UIViewController new] animated:false completion:nil];
Works but, THERE HAS TO BE A BETTER WAY
and then [self dismissViewControllerAnimated:false completion:nil];
 
7:31 PM
#define TRUE FALSE // Happy debugging.
2
 
Calm down Loki
That's some @NoelCower noise
 
It's Friday. Everybody's busy wrapping up asap to party.
 
I use YES and NO
__objc_yes and __objc_no. I should be ok from that
 
I will do that and everything else similar in your code and you will never know.
 
bye good night
 
7:39 PM
it will show warning redefine thing
Shouldn't be too hard to debug
 
So what. The current project I'm working on has 500+ warnings.
 
...
ok
 
I work towards maintaining 0 warnings
 
None of them are from my lines of code though.
 
500+ is a little above 0. you should do something about that
 
7:41 PM
And Since I know I won't be paid extra to remove them, I don't.
 
tell those people who were responsible for it to remove them
 
Either they have to assign me that task or pay me extra.
 
Did you bring that up to your project manager?
 
No use. I work with monkey coders. They don't stop the animation. They just hide the view.
What effect will that have to coders who code that way?
 
Lol
That just jacked the mainthread like no tomorrow
 
7:44 PM
The animation has to be stopped but they just hide the view.
 
There is not even a stop case in there so yea, you cannot do much other than removing it from superview
or... write a good code for it
 
It can be stopped.
 
how?
 
In the completion block, before again calling the same method you can check for a flag
 
used finished
 
7:46 PM
Like isAnimating
 
yep
or
[_animationBGView.layer removeAllAnimations]
will cause finished to become true
 
If it's not already animating, then don't call the method from completion block. It won't continue to animatee.
 
if true, return
 
Yes, even that is an elegant solution.
 
so much whitespace for simple code :(
 
7:48 PM
You guys are talking about removing UIView animations?
 
oh I didn't know about finish. I guess I never use this kind of perpetual animation
 
Stopping it. Yes.
 
You can stop an in-flight UIView animation by sending a removeAllAnimations message to the affected view's layer(s)
 
@DuncanC Your post on iOS 7 spring animations was helpful thanks
@DuncanC said that above
 
UIView animations do CAAnimations under the covers
 
7:49 PM
I have no clue why he use 2 animation block, could just use 1 and alternate
 
The monkey coders I work with, when they write code only they and god know what it does. And after a while, only god knows.
 
you can see, it blinks
 
Yes, for that we need 2
One will set it's alpha to 0 and next one to 1. This completes one iteration. In the second block method is called again to repeat the iteration.
 
I wonder if hiding a view stops the CAAnimation that's running. It might.
Removing a view from it's superview almost certainly would stop the animation, since it would remove the view's layer from the layer tree.
 
makes sense
 
7:52 PM
It would make an interesting test to see if hiding a view stops its animation or not.
 
Is hiding same as removing from superview?
 
No.
 
That will do it @LadduHasADHD - pastebin.com/6a7dFUJV
No need 2 animation blocks
 
Nice :)
 
and I really dont like his/her spacing
 
7:54 PM
Me either
 
toooo many lines
 
Although it assumes some thing about _animationBGView.alpha
 
it doesn't really. if it is 0 , it goes to 1
anything else goes to 0
 
@Byte How will you make sure in that method that the animation stops at alpha = 1?
 
put an end when it is 1?... just check it
I mean you have access to the view so ask it nicely if it is one when it is finished
 
7:56 PM
It becomes ugly.
In appearance.
 
Cannot be uglier than the original
 
Here's my approach pastebin.com/YYQ3bGJx
 
The original is clear in what it does. I am not defending it. I haven't written it.
 
Not with that spacing, it isn't ;)
ughh, too many lines
 
In the completion block, you will check if it's alpha is 1 or whatever and then stop else not. It's messy. Not difficult to understand but not elegant to look at.
 
8:02 PM
why is if (finished) return; more elegant than if (finished && view.alpha) return;
when it could save u another 6 lines
or so
 
why does the view.alpha matter?
 
she wanted it to stop on 1
 
ah ok
so if you stopped it it'd be full alpha?
 
user457812
I hope my sister gets off the phone and stops saying "fuck" so loudly before the recruiter guy calls.
 
lol
 
8:04 PM
Yes, lets say that's the requirement.
Sometimes it's better to write few more lines of code for better readability or aesthetics.
 
I just did a test. Setting a view's hidden=YES does not stop the animation.
Removing it from it's superview DOES stop the animation.
 
interesting
 
Noel, go tell her you are expecting a business phone call and that she needs to keep it professional.
 
because if a view isn't in the hierarchy CAanmation usually says nope
 
Noel, how old is your sister? Young, right?
I expected that removing it from the superview would stop it, since that means it's layer gets removed from the layer tree.
 
user457812
8:09 PM
Younger than me, so young-ish.
 
Teen at least?
 
laddu, if that were to increase the readability. To me, It impairs it.
 
I don't give my phone to anyone. It's passcode locked.
 
user457812
Don't remember.
 
user457812
Probably 19 or so.
 
8:15 PM
...
(probably)
How do you know she's even your sister? :P
 
user457812
I don't remember people's ages.
 
user457812
I couldn't even tell you my older sister's or parents' ages.
 
readability is not about expressing every single thing on every single line. it is about precise and easy to understand code. too little or too much will not be as readable.
 
19? So plenty old enough to understand "I have a job phone-call coming in. Keep your voice down and don't swear, or I will pull out all of your teeth with rusty pliers."
 
user457812
Ugh, you had to mention teeth
 
8:16 PM
It would get her attention at least.
 
user457812
Four days until one of mine gets ground down to a stump and crowned
 
Sorry to touch on a sensitive subject.
Whatever you do, don't watch the movie "Marathon man" between now and then.
 
user457812
No, it was sensitive before the filling in the tooth was removed and replaced with sedatives.
 
LOL. A comma would have helped that sentence.
I would not think sedatives would make a good tooth filling material.
 
user457812
Sedative fillings are pretty common.
 
user457812
8:19 PM
They're also called temporary fillings because they're not meant to be permanent.
 
Never heard of a temporary filling being called a sedative though.
 
user457812
It's more accurate to call them sedative fillings because the filling is partly oil of clove, which is more or less functionally equivalent to benzocaine.
 
Why has your teeth decayed? Don't you brush teeth?
 
user457812
It didn't decay.
 
user457812
It fractured.
 
8:22 PM
How it happened?
 
user457812
Nobody knows.
 
user457812
In all likelihood, it was because I had to replace a filling previously and the way the filling set put too much pressure on the tooth
 
I also have filling in 2 of my teeth
That was done when I was like 5 or 7
It's still there
I also need to do that in 2 of my other teeth before they get worse.
 
maybe you nibble on rocks while asleep
 
I used to brush in seconds when I was small and only once in a day.
 
user457812
8:27 PM
Did you floss?
 
user457812
'Cause flossing is a lot more important than brushing.
 
Of course not.
I don't even do now
 
user457812
.. You should fix that.
 
user457812
Though when you start, I should point out that your gums will bleed and you'll just need to ignore that.
 
...
 
8:28 PM
I didn't know what floss mean. I am seeing the images and they are putting some thread in their teeth
 
<.<
 
user457812
Dental floss is an interdental cleaning aid (i.e. cleaning between teeth). It is a cord of thin filaments used to remove food and dental plaque from teeth. The floss is gently inserted between the teeth and wiped along the teeth sides, especially close to the gums or underneath them. Dental floss may be made of either plastic (nylon, PTFE or polyethylene) or silk, and can be flavored or unflavored, and waxed or unwaxed. An alternative tool to achieve the same effect is the interdental brush, which is better suited where the gap between 2 teeth is wider. Toothbrushes do not clean between ...
 
I already bleed while brushing sometimes.
Anyways from today, I need to brush twice a day.
 
user457812
You also need to floss.
 
Okay. I will buy from walmart.
 
user457812
8:36 PM
You should also probably go see a dentist.
 
user457812
I assume you have an income now, so budget for that.
 
I got my salary today and I'm very happy. But I need my health insurance card delivered by my employer.
 
@rage you there?
I seek your help
 
I watched Prestige yesterday. It was good but Memento was better. Inception is best.
 
Water floss is good too
 
user457812
8:44 PM
God damn dogs
 
user457812
Put them out to stop them barking at each other so they go outside and start barking at something else
 
user457812
Probably a squirrel.
 
Gotta log off. Catch everybody later.
 
I got free snacks from my canteen
 
user457812
Haven't heard back from the recruiter guy I talked to yet, so I actually don't know if he'll call today or over the weekend
 
user457812
8:51 PM
Hm
 
user457812
Would be nice if I knew, 'cause I actually need to make a run to the store for some shampoo today.
 
user457812
arstechnica.com/security/2014/04/… ⇐ That's actually a pretty good idea
 
Take the phone with you to the store
 
user457812
I doubt he wants to have a "brief confidential conversation" when I'm in a loud store.
 
user457812
9:09 PM
I don't think my sister is aware that when she's blasting music in the bathroom, everyone in the house can hear it..
 
Why don't you yell at her like you do to everyone here?
 
user457812
Because I greatly dislike raising my voice.
 
I do that very often.
 
SHUT UP!!!!
 
lol
what are you doing
 
9:20 PM
just back from lunch... listening to music... doing some bug tracking accounting work.
in other words, just vegging.
 
I'm wasting my time testing a broken project.
 
user457812
Oooo, just discovered NSPageSize
 
user457812
I can think of a use for that.
 
9:46 PM
You people don't go to party on Friday night?
In my company, they usually go.
At 4 PM, almost everyone is gone. The lucky ones.
 
I party every Friday :)
 
What do you do?
 
Go to sports bar , drink , play pool and go to beach(not everytime)
 
Okay
I am going home now and will play tennis
Bye
 
10:03 PM
bye
 
10:26 PM
wake up @Mango !
 
@MichaelDautermann yes sir?
 
YOU'RE There!
that's amazing!
where have you been away to for so long?
 
I've been here. eating soup. checking facebook
i've been stuck on a problem for days, can you help me out?
0
Q: nsurlsession login to web application

mangoI am trying to execute a user login into a web application since it is the only way to access its api. The way that the login works is that you pass in some information (username, password, auth token, etc) as a normal post and it should issue a redirect. And during that redirect, it should give ...

 
you should include the code from "[self getFromAPI]" in your question
since you say it comes up with some authentication error.
do you know if the web application sends back a cookie? or what kind of response does it send?
 
well during the login process, there's should be (another) 'set-cookie' cookie that it returns
it is transferred sometime during the redirect. otherwise, it's just norrmal html. it seems like this isn't captured anywhere
 
10:32 PM
so you never ever see the cookie anywhere in the process?
 
i believe that if i see it, it has a null value
 
user457812
Starting to think I'm not going to get a call today.
 
what's your number?
I'll call you.
 
user457812
Really want to go by the grocery store but have to wait 'til the time I said I'd be free is up
 
user457812
I don't need the lord of sarcasm calling me -_-
 
10:37 PM
Mango, you should try to see if the cookie comes back in the response from that login.
it won't be in the response body
but check the headers of the response.
and see if it's hiding in there.
 
@MichaelDautermann I've looked and it doesn't seem to be there. It looks normal. I think that the redirect happened and what I'm seeing is the redirected response without the cookie in it.
 
well if a redirect happened, that's the server and the site's fault... not your app, right?
 
yes, but the redirect is part of the process.
 
um um ummm... I thinking you can also catch when the direct happens... just trying to remember how to do that.
(when the redirect happens)
 
by assigning a delegate right? and catching it in the delegate method
i already tried that but might as well, not really full of options at this point
this is just really frustrating because I already got over this for the android version of the app and it was an equally arduous ordeal.
hmm odd, looks like the redirect isn't happening this time
 

« first day (603 days earlier)      last day (1553 days later) »