« first day (595 days earlier)      last day (1561 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
Hello does anybody have an advice why osx is drawing text upside down in core graphics? It's driving me crazy...
 
Sorry. I hope someone in this room may have idea about this.
 
Actually, ios draws "upside down"
OS X draws according to OpenGL
 
ok this may be a good advice
this issue occurs on a cross platform library
it draws text for a pdf
and i fixed iOS with some dirty tricks
but no chance for osx :(
Fixed iOS like this: 'CGAffineTransform flipVertical = CGAffineTransformMake(
1, 0, 0, -1, 0, self.pageSize.height
);
CGContextConcatCTM(pdfContext, flipVertical);'
 
OpenGL. Haa. Something I know little bit about and studying this semester.
 
yes i really was thinking the same: I should have paid more attention at uni when we talked about rotation matrices
now it feels a bit like bs bingo
 
12:09 AM
Well rotation matrices are column major in OpenGL.
I was stuck in last assignment because I used row major matrices. I do not know row major/column major should not affect the result, I recall my professor saying that but it did affect output. I would better clarify it with professor I suppose
 
diffcult topic. Will try it again tomorrow. Think it's enough for today
will se you here soon again
thanks for your help!
cu
 
No problem. Just one friendly reminder. Please try to follow rule #3 which says "Use English to the best of your ability and do not use chat-speak. Just try to make sense."
 
sorry I'll try my best next time
 
Yes please! And everyone would be happy to help you as far as your language is not chat-speak and readable.
 
12:26 AM
@borrrden You're up early.
 
And you too Enrico. Good morning.
 
Good morning.
Do you guys hot cross buns in the US and Japan?
 
that sounds
 
A hot cross bun is a spiced sweet bun made with currants or raisins and marked with a cross on the top, traditionally eaten on Good Friday in the UK, Australia, New Zealand, South Africa, and Canada, but now available all year round. History In many historically Christian countries, buns are traditionally eaten hot or toasted during Lent, beginning with the evening of Shrove Tuesday (the evening before Ash Wednesday) to midday Good Friday, with the cross standing as a symbol of the Crucifixion. The ancient Greeks may have marked cakes with a cross. Some have claimed a connection with ...
The shops has been selling them for months. Work just bought a lot today.
 
sorry... we do Cronuts here:
 
12:32 AM
WAT IS THAT
 
and KFC "Double Down" "sandwiches":
Rohan can enjoy American cuisine
but you can't, until you come visit here.
 
I've seen that KFC double sandwich here!
But it's not available all the time.
 
12:54 AM
I have one thought that I want to run by you guys. Might write a blog post about this.
 
Hi
I bought Sketch 3.. it is nice
My question to all designers, how the hell do you get a mobile web preview for your design?!?! XD
 
my thought about it is "blorf".
 
In the Interface Builder/code discussion, one thing that I should note is that if you use Interface Builder, you will not be able to search for anything that you set over there when you do project-wide search.
 
Enrico have you heard of Empire of the Sun?
 
For example, if you use button title "Add Person" in Interface Builder, you will not be able to search project wide for that string and find which xib file it is on.
On the other hand, if you had set that button title in the .m file, you will be able to find the file immediately by searching "Add Person" project wide.
Is this an improvement that should be made by Apple? Or is it just inherent that when you do things in Interface Builder, it's not going to be searchable?
I had a problem this morning when I forgot where button_background.png is used on, and I've realised that I've had this problem for years.
After today, I feel less inclined to use Interface Builder as much.
@MaxHasADHD I've never heard of that.
 
12:57 AM
so you won't get a hit when you type in "Add Person" if the string exists in the .xib file?
 
of that? lol its an Australian band
 
Michael: Correct.
 
Lolol
 
file it as an enhancement request in Radar.
 
Nice picture there Michael
 
1:00 AM
 
American food has gotten even more outrageous since I've been gone
 
^ This is the project wide search that I mean.
 
whats wrong with search Enrico
 
If I had used xib for that, then I would have not find refresh_button string.
Read my whole argument, Max.
 
I hate mac file search. Who in apple though searching the contents of a file is a good idea?
 
1:01 AM
Enrico project wide search doesn't include XIB files?
 
no, American food is just as normal as always
 
looking for paper, type in first paragraph to find it. lol makes no sense! default should be name
 
OMFG I want that though!
 
borrrden: Correct. It wouldn't include strings that you type in Xib files. e.g. button titles, button background image, etc.
 
Empire of the Sun is also an early movie with Christian Bale as a kid isn't it?
Huh I thought that it did Enrico ><
 
1:03 AM
 
Christian Bale probably looked like this as a kid
 
borrrden: Hmmm I'm pretty sure I've had this problem before.
 
Weak I guess I am remembering Windows instead of iOS
 
Windows does that?
Damn that is awesome.
In Visual Studio?
 
any of you use sketch?
 
1:08 AM
Max: You can try this if you want. Open a Xib file, try to see if you have any button titles or button background image in the Xib, then do a search for that string with cmd-shift-F.
 
so far i love it
 
No, I use Pixelmator and Photoshop.
 
well.. why would you think it searches a xib/storyboard? i would not assume it does
oh
PS is eh, sketch is cheap and made for UI. I made icons super easy and exports them very easily. have all icons in 1 file and then exports them all with @2x automatically added
 
user457812
Photoshop is my god, buggy as it may be these days
 
meh... Try Sketch 3 on mac
its pretty cool, used the trial for a day and a half, bought it
 
1:11 AM
I understand why it doesn't. Because xib is just a giant XML with lots of strings that we don't care about. But on the other hand I do want to be able to search for the strings that I set myself.
 
ah ok
it must be apple bug
 
Why am I not surprised by that sentence.
 
user457812
XIB files are a little more readable than most people think, the problem is they're not as readable as they need to be for human use
 
True.
All I want to know is which xib files contain old_iOS6_button_that_needs_to_be_replaced.png
It's a pain in the butt to search for them manually.
 
user457812
Probably depends on how they reference images.
 
1:16 AM
Actually, I have an idea. How about I open those xib files in TextMate and search them from there? Lol.
 
user457812
I'd probably just ack for the filename.
 
user457812
It appears that my little capture_snippet command for Sublime Text has gone over mostly well.
 
"ack"?
Is that a typo?
 
user457812
No.
 
user457812
 
1:26 AM
Wow, I did not know such things exist.
I thought grep was optimised for programmers. Hehehe.
> ack versions 2.00 to 2.11_02 are susceptible to a code execution exploit. Please upgrade to 2.12 or higher ASAP.
 
so I cannot turn amazon $ into iTunes $
 
Managed memory is the future.
 
kinda stupid
 
nil booted Laddu?!
I must investigate
Lol I found it :p
I heard there is some legislation pending to make H1-B visa holder spouses eligible for visas as well
Something new for Laddu to abuse :p
Assuming she is still married
I also use self.delegate = self to implement a non-overflowing UITextView :p
Even though that discussion ended weeks ago
Ok, 11 days
Oh I finally got your ping Enrico. I am always up that early.
I just don't usually come into the chat
 
1:58 AM
Haha, I wake up at 8 or 7:30 usually. But I don't go into chat until about 9:30 when I get to work.
And yeah, that discussion was weird. I had always been using that technique.
 
I get up at 6:30
Saturdays as well
I should throw Sunday in too just to be consistent :p
 
YOU WAKE UP EARLY!
What time do you go to bed?
 
2:31 AM
Anyone here familiar with UITextRange? :/
 
I've used it once or twice.
What's the problem?
 
Well, my range changes between...serializations. A code example will explain better, one sec
If you opened that already refresh
I feel like I'm not understanding something about offsets...
 
Hmmm I'm not familiar with those two APIs
 
:(
 
I'll be back in a few minutes, I need to do something.
 
2:43 AM
k
 
2:58 AM
I posted the question here for interested parties:
0
Q: Restoring UITextPosition in UITextView?

mattsvenI'm attempting to save a UITextView's UITextPosition and restore it again later on, but I'm seeing odd results - the reconstructed UITextPosition is always a few characters off from the original. UITextRange *selectedRange = [textView selectedTextRange]; UITextPosition *docStart = [textView begi...

 
user457812
3:14 AM
 
user457812
Microsoft seems to be just a tad desperate.
 
I got the same email, LOL
 
3:42 AM
Well, in their defense, the open source Roslyn is pretty exciting
 
user457812
Exciting-ish but not really meaningful to me in any way unless they give me a free Surface RT.
 
They can't know that ;)
You could be like my other friend, who is waiting to use Roslyn so he can get around the mono compiler bugs he is having :p
 
user457812
They can't know that and won't care anyway since they apparently don't give out free devices to people.
 
user457812
I still haven't found a single use for user-defined literals in C++11.
 
user457812
Seems really kind of completely useless.
 
3:54 AM
Could be a replacement for some macros
An example on cppreference is degree -> radian
 
user457812
I saw that.
 
user457812
I would rather just pick one and not do conversions, period.
 
Also it would help with getting more constexpr
 
4:41 AM
hey homies wake up we gotta talk
 
LOL
Since when are we homies?
:D
@MaxHasADHD what's up, homes
 
Why?
 
What is that a response to?
 
5:06 AM
I was asked to prom
 
:o
 
lol i will ask her back though in person. meh. wasn't gunna go but i guess ill go
could be fun.. school suckin my $$$
lol. we are homies since forever, and i think he's talking to me and we talk because thats what we do
 
Shit I am so full.
 
lol
 
5:52 AM
Phew
Spent my lunch trying to get a project to compile on OS X Mono
 
6:07 AM
If anyone is thinking of living in Sydney and needs a job, let me know. I have a few iOS and Android dev open.
 
Good afternoon everyone!
That's cool enrico!
 
You want to move to Sydney?
Hahaha
 
Not for now
hahaha
you want to move to tokyo?
 
At some point I might.
This is why I'd love to have my own business. I can then work anywhere I want.
 
user457812
6:24 AM
It'd be interesting to move to Sydney but I don't think the paperwork to emigrate would be worth it
 
And it'd probably cost a lot of money for you to move here, compared to if you move to another state over there.
But of course you might not be working with someone as fun as Enrico =P
2
 
Yes, Enrico the wet pants.
If you remember that message
HAHAHA
 
WAT
I don't remember anything like that
 
user457812
For the past few days there's been this weird clicking sound in my room, like metal slowly straining
 
user457812
Only just figured out what it was.
 
6:35 AM
What was it?
 
@EnricoSusatyo see this search chat.stackoverflow.com/…
maybe it's a rat nil?
 
user457812
I keep a spray bottle on the coffee table behind me. The head of the bottle has a little trigger thingy with a spring in it. The spring, or something else in the head, has been making noise the entire time.
 
user457812
We don't get rats. We get cats.
 
nayoso: LOLOLOLOLOLOLOLOL I FORGOT ABOTU THAT ALREADY
 
6:58 AM
ah that's make sense about the rats
enrico I'll never forget about it LOL
 
7:15 AM
Do you guys in Japan has a very long weekend?
I have tomorrow off and Monday off
Tomorrow is Good Friday, and Monday is Easter Sunday break.
 
7:26 AM
Hah, because your company is Indonesian?
 
hi @ALL
can anyone help me on this ?
0
Q: Show only MKOverlay part on Map

MayurI have created MKOverlay class & add it into the Map-view. Now i need to have some customisation in it as following : While opening it should only display MKOverlay & not show google map anywhere. Scrolling can only done in MKOverlay area. To show only Overlay visible & hide google map area i...

 
7:45 AM
@borrrden No, all Australian companies have a 5 day weekend this week =P
 
why 5 days weekendf ??
 
Right, I forgot you aren't in Japan lol
 
8:32 AM
Good Friday, weekend, Easter Sunday moved to Monday.
 
We have Golden Week soon though
 
8:48 AM
Golden week but I have to move to new house...
but it's OK because I can go to John Mayer concert next month
 
lol
Poor nayoso :p
 
9:10 AM
Microsoft is kinda dumb lately
They rejected my app twice for not providing them with user account details
Because there are none. You create your credentials for the app at the beginning. You can use anything you want ><
 
9:28 AM
yes and I'm just realized I have to pay about 30.000円 for the management fee...
 
Lol, be happy that it's that little
You don't want to hear how much money I paid to move into my apartment :p
 
HAHAHHA
I guess you paid more than 100.000
 
Psh,
100,000 would have been nothing
 
and the sad thing is my payday is 10 next month so I'll be tight in budget this month...
WHAT?
 
It cost 400,000 to move in
 
9:36 AM
WHAT?????
400.000 only to move in?
 
(Including the first month's rent)
 
Ah so it's about 280.000 then
it's still expensive!
 
In theory 110,000 should come back at the end of the lease
Er, 100,000 mayube?
 
errrr....
in theory
but usually japanese people doesn't have bad intent to you
at least that's what happened to me for this 1/2 year
 
You'd be surprised what they want to get out of you
 
9:42 AM
maybe
hahahah
at least the level of scam in jakarta is worse than here
I don't know how about in the states?
 
Probably
I saw a special on Indonesian stuff on Japanese TV the other day
Including something where everybody was wrestling in the mud
 
HAHAHA
 
I guess you should see this borrrden
This is what I have to go through everyday (twice)
when going to work and going back from work
ah it's in bali!
 
That's ridiculous!
 
9:49 AM
That's the reality man
 
Screw that
I'll live on a mountain before I live somewhere like that lol
 
HAHAHA
that's why I want to move to countryside
 
My hometown is very countryside
 
some of my japanese friends said tokyo is very crowded
then I show them that picture
they're screaming
HAHAHA
ah yes I read the article borrrden!
your family farm is famous right?
 
Not famous, it was just in the local news haha
Turn on google earth in that image
 
9:53 AM
ah I can't do the streetview
but your place is nice man!
everything is green
 
Hahaha no, no street view cars go there
 
you can compare it with this
 
The internet there sucks though
 
My dad finally got decent Internet this year
 
9:54 AM
that is jakarta
wait
maybe the standart is different
how fast is decent internet in america?
 
I'd say 6 - 8 Mbps
He had satellite Internet until now
Which costs a lot per month and has a low data cap
 
6-8 mbps is pretty fast in jakarta then
but it's slow compared with here
 
I'm talking about Megabits, not Megabytes
Just to be clear
 
10:10 AM
Ah sorry for themisunderstanding man
I mean 6-8 Mbps is pretty fast in jakarta
my internet speed in jakarta is about 4 Mbps
and it's the fiber optic one
 
10:32 AM
Maybe I'll skip dinner tonight and just drink beers
 
watch out enrico
or you will become デブ
 
Does that mean fat?
Lol
 
HAHAHHA
it's more like buncit in our language enrico
 
11:35 AM
0
Q: Show only MKOverlay part on Map

MayurI have created MKOverlay class & add it into the Map-view. Now i need to have some customisation in it as following : While opening it should only display MKOverlay & not show google map anywhere. Scrolling can only done in MKOverlay area. To show only Overlay visible & hide google map area i...

 
 
3 hours later…
2:42 PM
Good morning All!!
I have a question
I am subclassing UISlider class and putting a label over the thumb which reflects the current value of slider
 
OK
Been there before.
 
and when I use this class as my slider class Label is doesnt show anything
does Label has to be local?
you get it?
 
Not...exactly.
So, in your UISlider subclass...
you are creating a UILabel, that updates as the slider changes.
However, when you use this subclass, it does not work.
Is the UILabel a subview of UISlider?
Am I correct in this?
 
Yes
 
Yes to...?
 
2:46 PM
Yes to everything but Is the UILabel a subview of UISlider?
its not subview..I mean I am not adding it as subview
just a label in the class
I see ...I have to add it as subview
 
Yes.
Unless a view is in the view hierarchy in some way, it will not render.
 
Ahh Stupid me..Thanks :)..Let me try
 
lol
 
??..
 
???...
 
2:49 PM
this was for Byte..Whats so amusing I wonder .. Perhaps my stupidity LOL
 
although i dont think subclassing slider is a good idea if u want a label
 
why not
 
i would make a view that holds the slider and label
 
Because UISlider could change in the future, not allow subviews bla bla bla
 
because later on when 4.7 inch comes u might have a prblem with the layout
 
2:50 PM
But most UIView subclasses are designed to not flip out if you add a subview to them.
@Byte How so?
 
say u subclass slider, how does the label get displayed?
 
It can't imagine that being a problem
 
right on the thumb
its overlapping on the thumb
 
over the circle?
 
yes
 
2:52 PM
Yes.
 
that should be fine i guess
 
i was thinking u put it on the side with some fix padding etc
 
Although X position is fine but having problem with Y
co ordinates
 
how do u add it in the circle?
 
2:54 PM
I'll post my code for how I did it, @ShikhaShah
 
you are overlaying it with fix X?
 
Not fix x
CGFloat xCoord = ((sliderValue-sliderMin)/sliderMaxMinDiff)*275-20.0/2;
 
how do you get X
 
have to modify little bit though
 
yes that IS fix X
 
275
 
valueChanged is the relevant part
 
what happens when u stretch slider?
 
As I said need to modify..275 is jsut for testing it would be width of slider
 
but that is fix width though
 
2:56 PM
yes
 
i stopped using a fix width for a while now
 
@ShikhaShah Did you see the code I posted?
 
Looking at it
 
all auto layout that is why the crude calculation doesnt work
 
Y is -65 ?
 
2:58 PM
That's distance from thumb
 
I am having problem with Y position of my Label
 
on y axis
Really once you have the thumb's rectangle you can do anything from there.
 
yes
I see
 
CGRect thumbRect = [super thumbRectForBounds:self.bounds trackRect:[super trackRectForBounds:self.bounds] value:self.value];
 
You are pretty much doing same ..but more organized :)
Yeah thats what I wanted
 
3:09 PM
@mattsven how does NavSlider handle the rotation/frame change?
 
@mattsven It is working like charm !! I am using your code.. Thanks :D
Byte it just handling fine..I checked
 
cool
 
@ShikhaShah Great!
 
3:49 PM
Having weird problem now..[UISlider setValue] obviously doesnt call UIControlEventValueChanged and hence on launch of page Label shows up 0 and seperated from circle
 
Shikha, you have to special-case that. When you load a saved value on page launch you have to invoke the code to display it to all your UI elements, as well as display it elsewhere in the UI.
 
I see
yes Thats true
 
What I usually do is to write a method that displays the value everywhere, and invoke that method when restoring saved values on display.
You can make that method take a sender parameter, and not update the sender object.
Then if you change a slider value, you call the method and pass in the slider as the sender, and it doesn't update the slider again.
If the sender is nil, it updates everything in the UI.
 
Make sense
 
00:00 - 16:0016:00 - 00:00

« first day (595 days earlier)      last day (1561 days later) »