« first day (817 days earlier)      last day (1339 days later) » 

9:08 AM
damn swift giving me bad programming habits haha
forgetting those ;
 
9:19 AM
I'm right here.
 
hahaha
What were you doing
 
I was sleeping...
then the @ ping woke me up
THANKS Gudiya
 
Why do you keep your machine ON?
 
it's my best friend
except when it's crashy.
 
I am getting my task done
 
9:25 AM
at 4:30 in the morning, Atlanta time
 
Yep. Hopefully it gets done.
 
why don't you do it during the day like normal, fully employed people?
 
It's because they assigned 2 sprints before and now want it get done in 1 sprint which ends today.
Also their code sucks. They have all reusable business logic inside View Controllers and therefore can't be reused. I was hoping to finish my pending tasks expecting such already existing class to make calls to, but ended up creating a new class and moving all code from VC in there.
 
so when you will be quitting and moving onto your next job?
 
If they don't process my Green Card in a year, I will quit.
I will tell them there are number of commits by me in the Git during middle of night. So process my GC or I quit.
Also the Lead has often been asking me - If I like everything here. Dunno what he is thinking.
 
9:33 AM
because you'll soon be the lead when he himself quits in the near future.
 
I am thinking that he is thinking that I think it all sucks
 
well don't you think it all sucks?
 
Yeah I do
What are you gonna buy during black friday?
 
I might actually shop
but that would be the first time I ever did it on Black Friday. Going to the store on Black Friday is for suckers.
 
hello mike my friend
 
9:41 AM
Hello Dirk it's nice to see you
 
Are the deals same if we buy online?
 
depends on the store, really.
 
ok
I am gonna buy a Bed, Sofa, Coffee Table, TV Table and a TV
Not more than $1200
Right now I only have mattress and a dining table.
 
that's all you have?
nothing else?
not even any Justin Bieber posters on the wall?
 
They will charge me extra if the walls, etc are damaged
 
9:45 AM
every apartment complex does that. It's stupid.
 
I will stream from my laptop to the TV
Cable price is too much. DirecTV is minimum $20/month
 
a little late in the monring, but EC2 is awesome. AWS as a whole is awesome
 
I know you send most of your money home to your parents, but really do you have to be so cheap with yourself Gudiya? You can afford ~$70 per month for cable or Direct TV.
or Netflix or some other service.
 
No
Before I was working as contractor and therefore we may need to shift very often
Therefore I didn't want to buy anything.
The kind of employer they were, I am sure the projects/client would change at most every year
Now since the job is stable, I am planning to buy
 
you should get a car
 
9:53 AM
I was supposed to go today for the online test. But need to finish this task.
I will go tomorrow
 
oooh, you ARE going to get your drivers license?
 
yes
And you know what
I already drove here without license
2 times
In city and highway both
 
lol
Even without license I was driving good.
I wasn't scared
 
you come here, I'm definitely staying off the sidewalks.
 
9:59 AM
Which car is best to buy ?
 
one that comes with a free crash helmet
 
And is invisible to the police
which is none of them
 
camouflage car like in Die another day
I liked Nissan Altima
 
Not sure that has stealth technology though
id highly recommend getting your liscence before driving though
Not sure what the laws are in the US but you'd lose your license before you got it in the UK if you were caught. Not to mention they have guns in the US
 
I will tell them - I like your Gun
 
10:16 AM
Hello @Gudiya, how are you (kashi aahes) seeing you after a long time.
 
Hi I am good
Yeah the time zones are reversed
 
good to see you. Hope you remember me?
 
yes
Even @MichaelDautermann remembers you
 
ha ha , I know
:)
 
Micheal remembers everyone, and he knows if you have been naughty or nice. He is making a list.....
 
10:19 AM
so gudiya, still onsite
?
 
yes
 
@MichaelDautermann hi
 
great. you are minting $$$$
 
I am trying my best not to return back to India
 
why
 
10:20 AM
hello Sport
 
Because I earn more here
 
@Gudiya come to india again APP party going to distribute ticket , you can get
 
Hi mike I have a question for you
 
I have used UIview Class and in it I have added one textView programitically
also I have implement initWithCoder method to use that from interface builder
in my class I have make outlet of that class, and in UIviewClass touchEnded event not fired
 
10:26 AM
is there a question in there
 
ok gudiya. all the best
 
yes mike not fired is a question lolz
 
so do you want touchEnded to fire from your UIView or from the text view?
 
yes mike right
in UIview class
 
would touchesEnd fire if you had not added the UITextView ?
 
10:35 AM
nope
 
2
Q: Touches Ended not being called

sahmed24I've playing around with recognizing the touches in an iOS Application, and I have this simple code - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"%lu",(unsigned long)[touches count]); [touches enumerateObjectsUsingBlock:^(id obj, BOOL *stop) { UITouch *touch =...

 
10:59 AM
who's worked with xml?
is this tag illegal?
 
Everyone has.
 
<tile gid="1"/>
 
Nothing's illegal in XML.
 
i mean is it valid
 
it's a free for all!
 
11:00 AM
Yes it is.
 
so how come when i read the friggin thing the value is invisible?
the console puts out no value
 
gid="1" is invisible?
 
it's just b;ank
i mean the console output of it's value is invisible
 
make sure you're reading the attribute.
how are you reading it?
 
can i paste 5 line?
or will i be murdered
 
11:02 AM
nil is sleeping
I won't tell if Enrico doesn't
 
Go, quick!
Before he wakes up
 
xmlDoc.Load (Application.dataPath + "/Maps/" + mapDataName);
XmlNodeList tileList = xmlDoc.GetElementsByTagName ("tile");

foreach (XmlNode tile in tileList) {
print(tile.Value);
 
Java?
 
c# :/
 
Ok, I don't think it's tile.Value.
I think it's more like tile.attribute("gid");
Find the docs, value is like <tile>value</tile>, attribute is what you wrote above.
 
11:05 AM
string employeeName = chldNode.Attributes["Name"].Value; :D
 
that is 5 lines. :p
 
Yay!!!!!
it works
 
It works?
Cool
 
lol you wouldn't know how long i've been trying to get this to work x3
 
11:06 AM
LOL
 
i've tried so many different methods of reading xml document
 
It's ok, it's a common XML mistake actually.
 
phew
thought i was silly
wow it's already nine. been working on this since 6
 
And this is why i use JSON
 
how often do you guys use a pc?
a day
 
11:08 AM
What's a PC ?
:p
 
LOLLLLL
Mac user since 2008.
 
Time to sleep for 1 hour. Bye
 
i use both :p
like in hours. that was horribly strung together haha
 
i used one in 2012 for a 3 week job that needed some fixes on a game built in OGRE
 
Very rarely use a PC. Last one was around Vista time/early Win 7.
I know the guy who wrote OGRE.
 
11:08 AM
before that not since 2009
 
We're friends.
 
Cool
i liked OGRE
 
lets ask again how long would you use a computer a day?
 
Though it needed an iOS / Android export when i was using it
25 hours a day
 
Hmm during workday probably around 14 hours.
Or like 13 hours, I don't know lol.
 
11:10 AM
25 hours a day xD
 
I think its safe to assume all employed programmers use computers way beyond the healthy and legal ammount of time
 
the logic is strong in Dev2Rights
 
they shouldnt though
 
but they have to
 
Yeah.
 
11:10 AM
as my eyesight is shot to s**t
i blame that from no breaks and all code
 
yeah my mum got all up in my grill last night going nya nya nya you've been on this all day!
 
Well your actually doing something constructuve
 
i was just like i have to! it's called being productive
 
yeah
 
she says it's nothing...
 
11:11 AM
tell her ok ill take a break and go and take some drugs instead then and commit some crimes
 
I was once 16 years old and lived with my parents too.
 
She will be more than happy to let you code then :p
DISCLAIMER: My advice is not likely going to help anyone.
 
That's also what I said when I was 16 LOL
 
what is enrico?
5
 
What is me?
 
11:14 AM
Yeah i was thinking that is a deep question
NSChat has got all philosophical :p
 
what you said?
 
hello All
0
Q: Filtering data using UISearchDisplayController

RanjitI am working with searchBarDisplayController, I have written a search predicate to search results based on what user types. I have an Class called Contact Class Contact { NSString *name; NSString *emailId; } This has been added to my source to display on table [m_contactsArray ...

 
 
3 hours later…
2:34 PM
Is there a way to set flags in XCode for me to quickly tell at build time if I've go an APNS Sandbox entitlement, or APNS production?
 
I'm not aware of it.
 
2:55 PM
How do you guys deal with sandbox tokens not ending up in production?
 
3:15 PM
@jlindenbaum Hmm, I've never actually had that problem, sorry.
 
You've never accidentally put an apns sandbox device token into a production db? You're either a genius or really lucky haha
 
Sup
 
I have 2 servers 1 sandbox / development for deving on and one for production
Evening
afternoon even
confused by these long drawn out nights
 
3:31 PM
Dev, the issue is you can still build an apns-sandbox entitled app pointing at your production machine, and you'll have a sandbox token in your prod machine. I'd like to just see which entitlement the app is signed with
 
IF you release Adhoc / app store / Enterprise then it is built with the release one surely ?
infact i tested this
as all the adhoc builds on the project we are working on pointed to the prod server and used the prod certs on that server
and development builds pointed to our dev server
didnt have to do anything
try it out
Unless your prod server is already live
OC
 
i can point the app to production, run it on a local device, and it'll run with an apns sandbox entitlement, because it's built from xcode
 
yah but if you build an Adhoc build and install it it will use the production entitlement
 
if i do a command line build and distribution to testflight (not itunes connect testflight) it'll properly sign with an adhoc cert and end up with apns-production entitlements
 
I don't use testflight but id imagine that is correct
 
3:37 PM
correct, i'm trying to find a way to properly detect an xcode proper vs. xcode cli build and set proper flags so in code i can detect what entitlement i have.. so that - usually by accident - i have am running production API end poitns with apns-sandbox entitlements i don't end up with useless tokens in our db.
 
Oh i just overwrite them on a user by user basis
 
Hey guys
 
i do see the problem though that you can get erroneous ones which caused issues when push notificaitons first came out
 
I am facing a little issue in tableview
 
not sure about now
 
3:43 PM
Can any of you guys help me?
This the code for my cell creation
 
i actually build specific release and debug builds and make sure there pointing to the correct server and use precompiler flags to switch the server
that then switches
server URL e.t.c
 
I have different image frames for profile picture, separator line and a button in my cell
All these resources are in 7 colors
Now the requirement is that all the cells should follow the sequence of colors. like 1st cell is blue, second is yellow, third is green and when it ends, it starts over with blue, yellow, green
When table loads first time, it is fine. But when the cells are reused due to scrolling, colors are not exactly what i desire
Any ideas?
 
Just compare based on the index paths?
 
You mean like when my index path.row>count of my resource array, i should set the index of resource array back to 0?
>=*
 
idk?
I'm just saying as far as cell colors go
 
4:48 PM
I saw this on another stack whilst looking up a Unity problem mathematica.stackexchange.com/questions/66538/…
 
that's golden
 
hey everyone
 
hai
 
I'm having a big big problem with my tables
I have cells that only contains a UILabel, but they are multiline
 
k
 
4:53 PM
on iOS8, they cell height adjusts automatically, but on iOS 7 this is not happening, the labels are not breaking the lines
 
so you need to calculate the height
 
the AL constraints are being broken
 
is it not breaking the lines, or is it being cut off?
 
cuts the text, add ellipsis
 
does UITableView have proper support for Autolayout height in iOS 7?
i don't think it does
 
4:55 PM
I think so
you mean the table or the cells?
the cell has a single label. I added top, bottom and sides constraints
set max lines to 0
 
cells
332
Q: Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

smileyborgHow do you use Auto Layout within UITableViewCells in a table view to let each cell's content and subviews determine the row height, while maintaining smooth scrolling performance?

very thorough answer there
 
let's see
 
5:27 PM
So complicated :/
 
yup
 
how do I instantiate a cell from the storyboard?
> You can't.
 
5:53 PM
LMFAO
Hello peeps
I need block help:O I just read something on SO that makes no sense!!1
It says i can use self in blocks and it won't create a retain cycle!?!!?! WHAT
 
it depends on who owns the block
 
IDK
 
if self owns the block, then using self in it will cause a retain loop
 
Lol well I was googling blocks because in the source for 1Passwords extension API they have blocks and make weak references then make it strong again and then week and then strong for double blocks and such
And so In my app I was updating some code to make it better when logging into dropbox, so it has a block for knowing when you log in but it doesn't get account info so i add a observer block inside the login completion block, and need to reload the table
so i made a weak reference to the table outside both blocks, so i was trying to figure out if i need to make it strong inside the first block or something? IDK:P Blockception!
Also is it bad to remove an observer inside the observer block?:P
 
yes
it's like dividing by 0
 
6:00 PM
:O Really?
It didn't crash it or anything
 
not really
 
LMFAO you're evil
Gah, more bugs.. Autolayout hates me
UIScrollView+Autolayout != good
 
why
 
IDK, its just buggy
I take a view out of this UIView in a scroll view and then it moves outside of the place it should
Its driving me nuts:P
 
I used scrollview within a scrollview with auto layout without any problems
 
6:08 PM
depends on how complex your layout is
 
Not very
So there is the scroll view, starts at 0 and goes across the screen to the beginning of another button
To get autolayout working correctly, you have to add another view inside the scroll view that doesn't have autolayout, then every view you add to that view and can be autolayout code
 
scrollview is evil
 
and all it is are buttons edge to edge to each other with a width of 147
 
its subclasses not, but the mother is evil
 
Yes
I think i found the root of this issue, I coded something last night that will center a button or scroll to the end of beginning if you select a tab, also called i guess when i close a tab:/ grrrr. so much checking and math:P
lol damnit, it checks if its less than 0 and sets it to 0, well if there are 2 tabs it gets offset of 13.5.. dammit.
damnit, the offset has nothing to do with it i guess:/
That.. is strange.. Says the default offset was 60? If i set it to 60 it does look correct... what is going on!?!
 
6:19 PM
Max is like the friend that occasionally runs into the room shouting and mumbling about something only he understands and then leaves
 
:P
Ill post my code
 
please don't
 
agh i was too late
 
:P LOOK AT IT
 
6:23 PM
yo prefix your classes max
also for properties that generate an instance variable just use the instance variable, instead of calling a method every time that returns it...
 
prefix?
 
MLTabBarButton
prevents clashes with system classes
nothing seems obviously weird about your code :/
 
Lol too late, I have billions of classes
 
this is why Apple hates you, Max
 
lol
Also where am i doing the instance variable thing? The setSelected method?
 
6:26 PM
self.tabButtons > _tabButtons
self.tabButtons calls the associated getter method
 
so use _tabButtons?
 
yes
 
:O Oh shit
I use self.tabbuttons everywhere and do the same thing in other classes probably:P
 
it's not a biggie, but it does provide a slight optimization when you're dealing with a particular property a lot
 
so if i dont need to have the getter method called i can just do _arrayOfShit?
 
6:29 PM
hella yes
 
lol
Lol ok so nothing looks strange in my code? the contentOFfset makes no sense to me:/
Setting the xOffset to 60 makes the view line up with the left
 
maybe CGRectGetMidX(tabButtonContainer.frame) is the culprit
do you want the center x, or the height/2?
width i mean
/2
 
I think, but im checking the offset at the end, and setting it to 0 before setting it as the contentOffset doesn't work:P
 
wait...
 
Setting it to 60 works, but makes no damn sense
 
6:31 PM
why are you doing CGRectGetHeight in a calculation for x offset?
 
I do height/2 because there is a button on the other side thats width = height, to center it to the device i have to add the height/2 and it centers
Ill take a picture of the app so you can see
 
hm
k
 
the green rect is the scroll view
the red rect is the content view that buttons are on
 
red rect is scroll view?
 
and when i have 3 tabs and close 1, it does this:P The red line should never be out from the left edge unless you scroll, but on iPhone 2 tabs doesn't allow scrolling anyways
no green is scroll
 
6:35 PM
you're trying to center them or align them with the left of the scroll view?
 
Maybe.. just maybe... Im setting the width of the view in the method called when the close button is tapped, the delegate is called first though which calls the method we are looking at.. maybe setting it after does something strange and i can't check if theyre the same size because it hasn't been called yet:O
 
:o
 
So if the width of all the tabs (red rect = that) is < the width of the scroll view frame, then it should be 0
it should just sit there, all tabs showing, but if that width is greater, scrolling is allowed, if you tap the last tab (which is accounted for in code already) then it scrolls to the last tab and the right edge is aligned on the right
but if you have like 10 tabs, and you tap tab 5, i want that centered.. looks nice
Yup, setting the frame is called after, so... hmmm.. i can try setting the offset again there and see if it works
Nope:P
setting it to 60 again makes it better and closer to the correct position.. this makes no sense-_-
its like going negative on a positive offset?
Shouldn't the offset 0,0 be the beginning?
 
yes
 
well.... then scroll view is messing with me
in one method 60 = 0, in another its like 46
for the X value
That makes no sense....
Ok so something is messing with this offset at the time of removing a tab.. If i set the tab the same method is called, and the offset is 0 and its correct
Wish nothing would make different values work but whatever-_-
Funny, setting the width after the delegate is the cause.. Disabling it made it stay where it is? This is Chaos Matt
Setting it before fixes it
See Matt! Centered!!! I know my maths:P
 

« first day (817 days earlier)      last day (1339 days later) »