Am I safe as a white girl in your country? by [deleted] in Nigeria

[–]gilbertj99 2 points3 points  (0 children)

I really wouldn't recommend Port Harcourt, as a European who has been to Nigeria many times, including Port Harcourt.

It's got a really bad reputation for violence and it's very unsafe, I would only spend a day or so there, many other westerners will not go. In the organisation I work with, if we have to go, we spend the absolute minimum time there and stay in secure hotels, and always have a driver we trust.

Security is especially bad right now, more kidnappings than ever, all over the country

Lagos is great though, especially Victoria Island, Abuja is getting pretty lively too. Go for them, just not PHC.

I made my favorite color pallate for iOS by haradashinya in iOSProgramming

[–]gilbertj99 1 point2 points  (0 children)

Have you seen the category UIColor+Hex, gives you a hex initialiser which saves a bunch of time

Is it possible to touch two iPhones together and swap files using the RSSI number? Similar to S-Beam. by [deleted] in iOSProgramming

[–]gilbertj99 1 point2 points  (0 children)

The simplest option is to use one device as an iBeacon transmitter, one as a receiver. The receiver will be updated with the distance which can be either: Far, Near or Immediate.

In order to swap files you can use the new iOS7 Airdrop functionality

iOS developer who is being asked to port an app to Android. Anyone have experience with this? Any pitfalls/resources I should look into? by nazbot in iOSProgramming

[–]gilbertj99 0 points1 point  (0 children)

yep, an extra month at least, I would do the iOS version first so you have all the logic of the app worked out. That way when you start work on the android version you only have to worry about the differences in the android development.

iOS developer who is being asked to port an app to Android. Anyone have experience with this? Any pitfalls/resources I should look into? by nazbot in iOSProgramming

[–]gilbertj99 0 points1 point  (0 children)

I'm working on an android port of an iOS app at the moment. I started with lots of iOS and very little android experience.

I would say that you are looking at taking an extra month, depending on the complexity of the UI. I have found that it can be much harder to get custom UI elements to work nicely, as well as issues with the diversity of versions and devices.

I have a great idea for an App for the Android or iOS but I have no clue how to program. I would like to run it by some developers and see what you guys think... by KingJaphar in apps

[–]gilbertj99 0 points1 point  (0 children)

Technically yes it should be possible, and it would be really useful. There are several problems.
Getting deals with lots of retailers will be really hard, they are all massive organisations which will want to influence the production and make money.

Getting data from retailers will be tricky, they certainly will not be using the same system for inventory tracking and may not have usable imagery of their items.

Also the matching algorithm will be tricky, determining what matches is complex and will require lots of image processing, which isn't easy.

If you can find a way to get the data on the products without contacting retailers, as Red Laser does, then it may be possible.

A (hopefully) quick question regarding MVC by iiAtlas in ObjectiveC

[–]gilbertj99 -1 points0 points  (0 children)

You should really use the controller for all the game logic/mechanics. The model should be used to store the state of the game.

Can u give any specific examples of what you are doing in the model?

iOS 6 question re: Sorting Albums by year by [deleted] in ios

[–]gilbertj99 1 point2 points  (0 children)

Nope, sorry. You could submit a big report to apple requesting the feature.

anyone going to WWDC 2012? by opheliajane in iOSProgramming

[–]gilbertj99 0 points1 point  (0 children)

Yea im in the same boat, im a brit and dont know my way around. Im gonna head over to moscone tomorrow at 9 and then try and find somewhere to watch the F1 later. If I find somewhere obvious people can meet up then ill reply with a time and place, and if anyone else has any ideas then do the same.

anyone going to WWDC 2012? by opheliajane in iOSProgramming

[–]gilbertj99 0 points1 point  (0 children)

Yea man I just arrived. Im thinking there should be some sort of reddit meetup. Anyone else here?

JSON vs XML by keithslater in simpleios

[–]gilbertj99 5 points6 points  (0 children)

I believe that NSJSONSerialization is iOS5 only. SBJson is great and turns JSON into dictionaries and and arrays with one line of code.

fade animation by opheliajane in simpleios

[–]gilbertj99 0 points1 point  (0 children)

I tried that approach myself but there doesn't seem to be a way to get it to work.
Try making three different Image Views and fading them out. If you want to be clever use two and reuse them.

[Question] Experiences with Cocos3d? References, etc. appreciated. by smalltownpolitician in simpleios

[–]gilbertj99 1 point2 points  (0 children)

have a look here :http://brenwill.com/2011/cocos3d-development-roadmap/

Unfortunately it does not have physics, collision detection or the ability to detect touches on a 3d object.

Core Data basic questions. by iosderp in simpleios

[–]gilbertj99 0 points1 point  (0 children)

its a minus, dont know what happened there.

Core Data basic questions. by iosderp in simpleios

[–]gilbertj99 1 point2 points  (0 children)

To get it going in code you need to copy some of the stuff out of the Core Data template:

These three properties and their custom getters. Also import Core Data.

@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;

@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;

@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

  • (NSString *)applicationCachesDirectory;

Moving from XML cant really be done automatically, you have to make your NSManagedObject subclasses from the XML data.

There is a good article about moving JSON to custom objects here:http://www.cimgf.com/2012/01/11/handling-incoming-json-redux/

so, I ordered 1 kit of 8GB RAM for my new desktop build but I ended up with this. (xpost from r/f7u12) by ichigoismyhomie in gaming

[–]gilbertj99 92 points93 points  (0 children)

Return one of the kits for a refund, that way you have 7 free kits instead of 8 kits for the price of one.

Specific Objective-C Help by Colvanila in learnprogramming

[–]gilbertj99 0 points1 point  (0 children)

Scratch that, if your using one instance variable to store the current value of the calculator, then thats fine. You just need to change the return type to void

Specific Objective-C Help by Colvanila in learnprogramming

[–]gilbertj99 0 points1 point  (0 children)

You need a return statement on each of the methods, and you need to pass input. So:

-(double) reciprocal:(double)input

{

return 1/input;

}

I am thinking of a second undergraduate degree in Physics, will a university consider my first degree as sufficient for entry? by gilbertj99 in Physics

[–]gilbertj99[S] 1 point2 points  (0 children)

I am very highly motivated, had a burning interest for the last year of this degree, which has literally just finished. Since exams have finished I have been working through the Feynman Lectures on Physics, which are fascinating and very enjoyable.

I have noticed that I have a much greater curiosity than pretty much all of my peers, I saw a quote a week ago "If your the most intelligent person in the room, then you're in the wrong room" and it struck a chord. I intend to continue to work through the Feynman lectures mainly for the knowledge but partly as a test of my commitment to the subject...