« first day (692 days earlier)      last day (1464 days later) » 
00:00 - 05:0005:00 - 00:00

user457812
5:25 AM
Saw this at the end of a URL someone posted:
 
user457812
> #utm_source=FD& utm_medium=lifeandstylepuff &utm_campaign=note
 
user457812
Had to add spaces around a thing. Anyway, wanted to highlight that bit of the anchor.
 
user457812
It's surprisingly frank about what the article's intended to be.
 
lol wat
 
user457812
Puff piece located.
 
5:32 AM
What are you up to, buddy?
 
user457812
Wondering what Hacker News does when someone mentions Ayn Rand
 
Who is that
 
user457812
Pure evil.
 
user457812
Like, legitimately pure evil.
 
user457812
A good way of knowing whether or not she's up your alley is this question: does might make right?
 
5:35 AM
it's worked for the USA for years... at least up until the current administartion.
 
user457812
s/until the/until every/
 
but since you disagree with me, I'll do like Obama and write a strongly worded letter for you to ignore.
 
I don't understand.
 
Help needed
1
Q: Calling a python script through java?

Abhijeet PanwarI have written a code to call a python script through java,I have tried it using both Runtime.exec() and process builder but by both the ways I am facing same problem. My code is : Process pr=Runtime.getRuntime().exec("/usr/bin/python /home/abhijeet/delete.py"); pr.waitFor(); System.out.prin...

 
You are asking a Python question in an iOS room? lol
 
5:37 AM
ohh..sorry
:D
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
 
It's been about 5 years since I last wrote a Python script.
 
user457812
@EnricoSusatyo Basically, Ayn Rand is the god of extremist (i.e., not typical) libertarians
 
It was a java question
 

Java

Dedicated to the discussion of the Java programming language a...
 
5:38 AM
I like those other rooms descriptions.
 
user457812
What bird is that..
 
You want to pet it, don't you?
 
user457812
What kind of monster wouldn't?
 
This kind.
 
user457812
No such thing.
 
5:47 AM
Ughhh now that the rainy season is over in Japan it's just going to be hot
until around October
 
user457812
Sounds good to me.
 
6:04 AM
ARGH
 
Hi Guys would you please check my post stackoverflow.com/questions/24902683/…
 
ewwwwww
a big broad question.
Enrico, you can handle it.
 
Ugh, Michael, you're the boss.
 
me? what do I know...
 
I don't know anything either
 
6:10 AM
I voted to close it as too broad
 
A vote from me too, sorry Sara.
Ask a more specific question.
 
6:41 AM
Somehow I can't edit that line anymore lol
 
6:58 AM
So... Apparently the work that I did at uni was published in a computer science journal.
I did not expect that to happen at all.
 
Why?
 
Because I thought it was published in a conference back in 2012, but apparently I think they did extra work without me and resubmit it as a journal article.
 
user457812
7:19 AM
I know what the words in that article's title mean on their own but not how they're used together.
 
user457812
Now I know what it's like when people use the same phrase to describe the things I say.
 
user457812
I should retroactively put together a shit_noel_says.txt
 
8:32 AM
Why, hello there
 
8:56 AM
any idea when to tell whether a sprite is in-between a range? because this line obviously doesn't work while (player.position.x <= node.position.x+30 && player.position.x >= node.position.x-30)
i feel as i maybe need another operator?
or that i should split the while statement to just player.position.x <= node.position.x+30 and then make another ?
this will override the first change though
 
user457812
I might have just rewritten synchronize(X) { … } in Swift.
 
is that good?
 
synchronize can be overkill for many cases
 
any idea with my problem because it obvious keeps looping i need like a but operator i believe their isn't one though.
 
user457812
Usually unnecessary, but I was looking at porting RxJava and they make rather heavy use of it
 
user457812
9:07 AM
The upside, I suppose, is that Java's synchronize is optimized to hell and back while mine is naive as hell
 
user457812
@Mutch95 What do you mean by doesn't work?
 
user457812
Are both player and node in the same coordinate system (i.e., have the same parent node)?
 
i mean when it runs it just loops forever because it's checking if the player x position is < node x position then on top of that it also check if the player x position is > node x position
 
user457812
Well, it's obviously going to loop forever if it's a while loop.
 
user457812
Assuming you don't ever change the position in the loop.
 
9:11 AM
yes but all i want to do is for it to repeat whenever the node x position is close to the sprite so -30 px away and closer and +30px away and closer
 
user457812
What do you mean by repeat?
 
so within the range of -30px to +30px
 
user457812
Do you mean immediately repeat? Per frame? Per X seconds? What?
 
it runs this in the while loop randomX = (arc4random()%boundaryEastSpawn);
randomX = randomX/offset;
randomX = roundf(randomX);
randomX = randomX*offset;
sets a new position for node
the while loop is also in a for in loop
which works with an array
 
user457812
I don't see anywhere in that sequence of things you've listed where it modifies the node.
 
user457812
9:14 AM
Also, why does it need to be a while loop?
 
user457812
What are you trying to do in general terms?
 
just spawn a wall on a grid randomly but not within 30 px of the player
all i need to know is how to check if the range is within -30px and +30px and ill be on my way
 
user457812
You're already doing that.
 
user457812
The problem is you're using a while loop.
 
user457812
There's also really no reason for you to generate more than one random number.
 
9:16 AM
so what loop would i use as i need it run until the position is not within the range
 
user457812
Why does it have to be a loop?
 
the random x lines set it so it spawns on a grid
 
user457812
Why can't you just do 30 + random() since there's an obvious minimum?
 
because it can't go over a boundary aswell
 
user457812
So 30 + (random() % (max - 30))
 
user457812
9:18 AM
In other words: min + (random() % (max - min))
 
wait i fixed it, while (player.position.x <= randomX+30 && player.position.x >= randomX-30) was meant to test randomX
the while loop doesn't repeat now, well for forever that is
 
user457812
Even though you could just do what I suggested.
 
user457812
Could even use arc4random_uniform with an upper bound.
 
what's the different with arc4random() and arc4random_uniform?
 
user457812
The docs can explain that one.
 
user457812
9:22 AM
Also, arc4random can be fairly slow, so keep that in mind.
 
user457812
Mostly depends on how often you're using it, but it has to acquire a lock for it to work.
 
a lock?
 
user457812
Meaning it has to set things up so only one thread can use it at a time.
 
user457812
Even if you never use more than one thread, it has to do this.
 
ah so arc4random_uniform allows me to set a range? instead of using the modulo operation?
 
9:24 AM
modulo is not great
 
user457812
It lets you set an upper bound. You still have to do min + arc4random_uniform
 
You can google "modulo bias" if you are interested
 
user457812
But yeah, what borrrden said.
 
hmm interesting i think i should go with arc4random_uniform then
 
That is undisputed
I wish Qt weren't so expensive
(For a commercial license)
 
9:30 AM
so once an app goes in review for it's first review is that usually the only longest wait or do updates also take up to 8 days?
 
user457812
Varies.
 
There are other factors to consider
 
so updates can take as long as the first upload?
 
user457812
Or longer.
 
darn, i go off this website appreviewtimes.com
 
user457812
9:34 AM
I suggest you focus on something else while waiting.
 
user457812
Same as when you've ordered a package.
 
yeah i have a website i need to work on actually
and school.
is Xcode memory report reliable?
 
Yes
 
9:50 AM
is crashing when the home button is pressed normal because memory is deallocated from arc or is it another reason?
 
That question is pretty vague but I would go with "not normal"
 
hi, I am stuck with facebook sdk, and have tried to implement every solution i found, can anybody help me with this question stackoverflow.com/questions/24903907/…
?
 
This is a pretty basic thing to do. I'm almost certain that there must be an example in the API docs
 
I have already read the API docs, tried to follow that,
I went through many questions on stackoverflow
but no solution is working, can you please spot the mistake? or tell me another way?
also tried to use the answer, but getting this
FBSDKLog: Error for request to endpoint 'me': An open FBSession must be specified for calls to this endpoint.
 
It means you did not open a session as described here -> developers.facebook.com/docs/facebook-login/ios/…
 
10:03 AM
but according to the code, I did
didn't I ?
 
Your code looks old
 
does anyone have a windows pc ?
 
I'm sure many people do
Also Dani look at the page I linked...there is something there that says "You must ALWAYS <redacted> when opening a session"
Your code doesn't do it
It doesn't look very promising that you've read and understood the documentation
 
i meant in this chat, what would you think the minimum spec for a computer which compiles and runs code should be for windows based programming?
 
"windows based programming"
This phrase makes me laugh
It's like asking "What kind of vehicle should I buy if I want to move myself?"
compiling and running code is not a very intensive task though. Probably anything within the last 5 - 10 years will be adequate to run a compiler
 
10:08 AM
oh geez. fine average specs for building and running code?
 
As long as it has a decent amount of RAM (4GB +)
 
alright, just wanted to know from a programmers perspective, thanks
 
If you are doing more graphics related stuff then of course the requirements change
 
yeah obviously
 
Even just XAML stuff with WPF is rendered in realtime as you edit the document
That can slow down a machine pretty quickly
Being specific with your questions is a very good skill to have
 
10:10 AM
i5 should be decent enough? 3.4ghz
 
That is the processor in most macbooks these days
It should be more than enough
 
alright awesome
 
I'm going to buy an i5 for my system soon
4690k
 
what do you have at the moment?
 
Core 2 Duo from ages ago
However I use it for gaming, not dev
 
10:15 AM
ah i see
i maxed my iMac out with hardware :/ no reason why i felt i just wanted a fast machine
 
Apple products are not terribly friendly in the customization department
 
i mean when i bought it, can't really upgrade anything else except ram
have you made any applications for iOS ?
 
Several
Unfortunately most of them are only available in Japan
 
any world applications that i can look at?
 
Only my very first one
That I put out August 2011
 
10:20 AM
what did it do?
 
user457812
It was an app that signaled some nearby hardware to set his neighbor's house on fire
 
user457812
Not enough people used it, so the house survived
 
That sounds an awful lot like the plot of a movie....untraceable or whatever
 
user457812
That seems to me like it'd be really, really traceable
 
10:23 AM
oh goodness the jokes.
just installed it :)
 
Ahahaha I wish I could work more on it, but our company has to actually make money
 
is it indie?
 
I don't know where the boundary of "indie" is
It was developed when my company was in full-on startup mode
The company I work at I mean
 
i'm loving these animations!
 
When did your company decided to stop full on startup mode, borrrden? lol
I thought that was your personal app.
 
10:27 AM
Nope
It's not something you decide
It's something that is evaluated I think
At the time there were only 8 employees
 
Ah, right.
How many people now?
 
19 or 20
 
Now I can kinda see why you know everything about your company from Android to iOS to Windows to sysadmin lol
 
Looks like 21 actually
 
is it your company?
 
user457812
10:30 AM
I think it's sleep time
 
No I just work here
 
Looks like beer time.
Goodnight all.
See you later borrrden, nil, Mutch.
 
Home time for me :p
 
night
 
Bye
 
10:31 AM
yes! figured out why my app was crashing when the home button was pressed
 
HI
i am working on a project to record video
 
hello
 
i am using avfoundation for it
Everything is working fine from recording the frames to saving the video in library
but i am stuck in problem
 
yes?
 
i need to implement zoom feature
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
the only possible way i could think is to somehow manipulate the "sampleBuffer" i get in teh above function
but i am unable to figure out how to do that
 
I have seen this already. In this question, its zooming the preview layer and not the actual frame
both the questions are zooming the preview layer
:(
i need to somehow zoom the actual frame so that it gets appended in the AVAssetWriterInput at the same time
 
darn, im a novice programmer so i don't really know all that much sorry i couldn't help
 
thanks for your efforts @Mutch95 . guys, anybody else know how to manipulate CMSampleBufferRef
???
 
@iOS_DEV, there is some way to record video from CALayer
seen somewhere in wwdc
@iOS_DEV, take a look at wwdc's 2013 video "What’s New in Camera Capture", description says about zoom support
Good daytime to all! Anyone knows, why NSWindow's endSheet:returnCode: method isn't working if the sheet panel is not a keyWindow in 10.9 mavericks? having 2 separate windows, one of them holds the sheet panel via beginSheet:completionHandler:, calling endSheet:returnCode: from the second window and nothing happens, but if i call [sheet makeKeyWindow] - it works. this is kinda weird
 
10:59 AM
0
Q: UIPopover upon UIView

Lionin iOS 7.1, I can able to show popover correctly but in iOS 6.1, It is going behind my UIView. Could you please suggest me to overcome this problem. How can I show UIPopover from UIButton properly? I want to display my popover similar to iOS 7.1 (image) functionality My Code:- UIButton* lang...

 
11:15 AM
anyone have any idea how to stop my app from cancelling music playing from iTunes when i enter my app?
because it really annoys me how it stops my music
 
 
1 hour later…
12:50 PM
@Sega-Zero - thanks for the link. I will sure see that.
 
Im back
 
1:42 PM
hi
 
2:00 PM
Good morning/afternoon/evening
 
When I use addChild for adding a background then a groundType then a man I get them in the right order. When I remove the background and groundtype with removeFromParent and add them back in with addchild in the same order, they appear on screen in the wrong order. Now ordered as man, groundType, background. I understand why the man is first but not why groundtype is before background. I think I misunderstand what happens when you removeFromParent and add in again.
 
 
1 hour later…
3:22 PM
Good morning! Does anyone know why X-code sometimes stop syntax highlighting my code? :/ It happens randomly.
 
it runs out of coffee
 
Have you tried cleaning it?
 
cmd / shift / k
it happens to me now and then, its definitely the coffee
 
I tried to quit and reopen.
 
3:36 PM
Have you tried cleaning and rebuilding?
 
Nothing happened. Then went to some another file and started working out of nowhere.
Crazy and unpredictable!
 
Real men code in TextEdit and copy paste into xcode. it should runs without any warnings!
 
BS. It's just plain stupidity not to use all the features provided by IDE and keep wasting time writing code without auto completion instead of investing that time doing something productive.
 
4:21 PM
Okay, so I'm trying to get Jenkins to run tests
And here is the code I am using:
`export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer/

xcodebuild -target NiknikTests \
-sdk iphonesimulator \
-configuration Debug \
TEST_AFTER_BUILD=YES \
clean build`
But for some reason, it does a clean build, but it doesn't test.
What does the \ mean?
``
 
 
2 hours later…
6:47 PM
@EthenA.Wilson it's just a notation that allows to write single-line command as multi-line text. unix command line feature
 
@Lucy @nil I gave presentation today and everyone liked it.
@DuncanC @ShikhaShah
Boss told me to create a video out of my Demo App so that he can show the client that new stuff and then they might get it to be done in our app.
 
Great! Good going!
 
thanks
you are my best friend
 
user457812
7:29 PM
@Gudiya I don't care about your presentation and stop ping spamming people.
 
You are a very hated person.
 
user457812
I doubt that.
 
Why?
 
user457812
Because I'm not the one who takes pride in abusing people.
 
Is that the only way to become a hated person?
 
user457812
7:32 PM
Nor do I steal people's things.
 
lol
It's not stealing.
 
7:43 PM
Hi
anyone who have some experience with Swift?
 
user457812
Do you have an actual question and does it not belong on Stack Overflow?
 
Congrats Laddu.
Luke, you should write up your question on SO as nil says. Then if you don't get an answer after a reasonable period, post a link to it in a chat room.
 
Hey, @nil, I got everything working so I am now returning the UIImage to the UIViewController. From the code all looks good but image doesn't display. Any ideas what I should look at?
 
user457812
Not really, no.
 
OK. Just thought you might have a hint or two
 
8:52 PM
Hello
 
Small boy is back
 
user457812
'Lo
 
I have eaten many caramels today
You get reputation when you accept your own answer to a question, right?
 
user457812
I don't know
 
user457812
I've never tried posting a question
 
8:57 PM
What lol
I've posted 12 answers and 28 questions
You've posted 68 answers and zero questions
 
user457812
I never have any smart questions to ask, so I don't post questions
 
user457812
Like the Jenkins problem, I've never used Jenkins, so I'd never have a reason to ask it
 
user457812
I wonder if Swift has an equivalent to NSParameterAssert
 
You never have problems when you are programming?
 
user457812
I have problems, they're just nothing someone hasn't asked before.
 
9:00 PM
Oh
Wow, I'm looking through my questions list, and six have more than three hundred views.
One of them has 540 views!
How does that even happen?
 
user2862309
9:16 PM
@nil I am sorry I am intruding and talking about this here, but isn't it better to make special groups of observers and then send notifications to the groups themselves. Then people could overlap in those groups and the Observer knows to notify who he needs to.
 
user2862309
@nil What problems?
 
user457812
I have no idea what the context for that is
 
user2862309
The Observer pattern you were explaining in the Android chat, I saw it and I find it interesting but I am not accepted in the room, I think someone has removed me and I cannot require access.
 
user457812
9:32 PM
You're apparently zigi, so that would be why.
 
user457812
As for observer patterns, the problem isn't with observation but with the pattern being dysfunctional
 
user457812
You don't observe wild animals by going up to them and saying "I'm observing you, so notify me of things"
 
user2862309
So how do you do it then, and yes I have been told that.
 
user457812
By setting things up so you can do something like observe(thisThingThatCanBeObserved) { /* block wherein you receive updates about the thing you're observing */ }
 
user457812
This might mean that under the hood, the observable thing needs to be wrapped in something else that signals when it's updating, but that's implementation details. The point is that the thing being observed is not responsible for its observers.
 
user2862309
9:37 PM
Ok I see your point here, thank you.
 
user2862309
As for the zigy part I don't want to talk about it here cause the guy was on a rampage so most likely I got the bad timing, but I don't mind being out of the Android room, I had some simple questions.
 
user2862309
If you would like to talk about it I prefer not polluting the chat here.
 
user457812
It's not on my list of concerns, so I don't really care.
 
user2862309
Sure thing, thank you for the information though.
 
user457812
11:13 PM
 
user457812
All of my recent spam seems to be following a trend
 
user457812
Each spam email is also loaded with diacritics.
 
user2862309
Interesting, I never got a member enlargement spam. Maybe it is related to something.
 
00:00 - 05:0005:00 - 00:00

« first day (692 days earlier)      last day (1464 days later) »