« first day (119 days earlier)      last day (2184 days later) » 

2:03 AM
Hi, I was wondering if anyone is here to offer some help with NSDateFormatter
 
2:52 AM
@ArtSabintsev wat help do you need?
 
mornings
 
@Shaharyar morning! :)
 
To allow delivery of remote-control events, you must call the beginReceivingRemoteControlEvents method of UIApplication; to turn off delivery of remote-control events, call endReceivingRemoteControlEvents.
remoteControlReceivedWithEvent:
Sent to the receiver when a remote-control event is received.
STILL NOT BEING CALLED ARGH
 
@Shaharyar a game with remote control?
 
nope, just the basic built in controls from the multitasking UI
 
3:08 AM
@Shaharyar oh for ur MPMovieController ?
 
yup absolutely
 
yeah, I got all of that working
but as soon as my app goes into background, I want to be able to use the iPod dock to control video
/ audio from my source
for people who want to continue listening even if their screens are locked
@aimzy
 
@Shaharyar so the background functions not working?
 
@aimzy yes, that's the only thing - even the ipod icon is replaced by my app's icon, only the remoteControlReceivedWithEvent method isn't being called
 
3:15 AM
ohhh....
its not going through the for loop...can help me see whats wrong...cant seem to spot it...



//random the question number
questionRan = 1 + arc4random() % 10;
NSLog(@"Answer: %d", questionRan);

//random it 4 times
for (int i = 0; i<=3; i++) {
int ranNum = 1 + arc4random() % 10;
NSLog(@"Randomed number = %d", ranNum);
NSNumber *myNumber = [NSNumber numberWithInt:ranNum];
//init the array
NSMutableArray *checkRepeatArr = [[NSMutableArray alloc] init];

int j =0;
//check for similiarly created numbers
@shaharyar
 
@aimzy yes?
oh, the for loop
 
@Shaharyar can help me see my abv method... its not going through the for loop..yea
oops not the for loop the while loop
 
is it printing the nslog right before it?
oh,
k
hm
I just wrote some sample code
 
3:35 AM
sample code?
oh made a typo its if (![checkRepeatArr containsObject:myNumber]) ...
 
are you sure the while loop isn't run?
it must at least run once
or
forever if the conditions for j++ don't occur
for (int i = 0; i<3; i++) {
NSLog(@"forLoop");

int j = 0;
while (j<=3) {
NSLog(@"whileLoop");
j++;
}
}
which returns following
2011-08-02 05:37:19.036 iSandbox[15756:207] forLoop
2011-08-02 05:37:19.037 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.038 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.038 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.038 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.039 iSandbox[15756:207] forLoop
2011-08-02 05:37:19.039 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.039 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.040 iSandbox[15756:207] whileLoop
2011-08-02 05:37:19.040 iSandbox[15756:207] whileLoop
@aimzy
 
@Shaharyar how do you create an array with unique random numbers?
 
@aimzy does the array have a fixed size?
any constraints?
 
@Shaharyar the while runs forever...
 
@aimzy that's what I thought
 
3:44 AM
@Shaharyar no limits its a NSMutable array..
 
@aimzy ok, here's what you could do
inside your loop, get new random numbers
but save the current one into a variable
oh wait
 
@Shaharyar i tried this way before... but it wont work cos the currentRandomNum created will not be same as the prevRandomNum created but can be the same as prevPrevRandonNum created... thus all the num will not be unique...
 
@aimzy this should do the trick
NSNumber *currentNumber, *previousNumber;

NSMutableArray *randomNumbers = [[NSMutableArray alloc] init];
int arraySize = 3;

for (int i = 0; i < arraySize; ++i) {
currentNumber = [NSNumber numberWithInt:rand()];

if (currentNumber != previousNumber) {
[randomNumbers addObject:currentNumber];
}

previousNumber = currentNumber;
}

for (NSNumber *num in randomNumbers) {
// checking back
NSLog(@"%d", num);
}
 
ok i will try later n get back...
:)
 
oh crap
don't try that hahaha
@aimzy
NSNumber *currentNumber, *previousNumber;

NSMutableArray *randomNumbers = [[NSMutableArray alloc] init];
int arraySize = 200;
int maxRandomNumber = 10;

for (int i = 0; i < arraySize; ++i) {
currentNumber = [NSNumber numberWithInt:(1 + arc4random() % maxRandomNumber)];

if (![randomNumbers containsObject:currentNumber]) {
[randomNumbers addObject:currentNumber];
}

previousNumber = currentNumber;
}

for (NSNumber *num in randomNumbers) {
// checking back
NSLog([num description]);
}
go with this
 
4:02 AM
@Shaharyar found this
-1
Q: iOS: How do I generate 8 unique random integers?

JulesI need to generate 8 random integers, but they need to be unique, aka not repeated. For example, I want 8 numbers within the range 1 to 8. I've seen arc4random but I'm not sure how to make them unique ? Solution -(NSMutableArray *)getRandomInts:(int)amount from:(int)fromInt to:(int)toInt { ...

which way in tt can i use ?
 
@aimzy what do you mean by tt ?
 
@Shaharyar as in which is the ans to tt ques tt allow unique random numbers to be crated?
created*
 
@aimzy i'm afraid I don't understand what tt means :P
 
@Shaharyar as in tt SO ques..what the right ans...so many comments there i dunno which ans is the correct one..
 
@aimzy oh, that's what you mean
@aimzy it depends on what you're aiming for
do you want an array of random numbers
or do you want some pre-defined numbers to be shuffled?
 
4:20 AM
array of random num @shaharyar
 
@aimzy ok, then you can use my function or the one in the accepted answer, they more or less do the same
 
@Shaharyar ok thanks thanks :D
 
hey @all
anybody knows which permission are we required to set in order to post a string to FB?
 
@aimzy i've even optimized it...
 
along with offline_access and publish_stream?
 
4:25 AM
@Shaharyar,hi
 
@Shaharyar @aimzy @ishhh any idea?
 
@ishhh hi
 
@Shaharyar,do you know how to resize the images taken from iphone camera
@Shaharyar,in my app im selecting pictures using photolibrary.it is working fine.but when selecting the images taken through camera app becomes too slow.
@Shaharyar,also some images are automatically rotationg
@Shaharyar,can u help me
 
@aimzy this will generate numbers from 1 toMaxRandomNumber
NSNumber *randomNumber;

NSMutableArray *randomNumbers = [[[NSMutableArray alloc] init] autorelease];
int toMaxRandomNumber = 5;

while ([randomNumbers count] < toMaxRandomNumber) {
randomNumber = [NSNumber numberWithInt:(1 + (arc4random() % toMaxRandomNumber))];

if (![randomNumbers containsObject:randomNumber]) {
[randomNumbers addObject:randomNumber];
}
}
and automatically add everything to randomNumbers array
and it stops once it's done filling it up to your defined max random number¨
@ishhh never done something like that, sorry
 
@Shaharyar k..thx
 
4:30 AM
@ishhh you can get teh image when the - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo method fires
here you can set the image to whatever you set
 
Hi All
 
hi
 
hi
anybody knows which permission are we required to set in order to post a string to FB?along with offline_access and publish_stream?
 
@aimzy you're welcome, i'm even trying to optimize it more
@aimzy so you can set the start number and the range
 
Atleast reply folks... u know or dont know?
@Shaharyar @aimzy @HCharli @DavidDalcu
 
4:36 AM
@SureshVarma can't help you there.. :-/
 
its fine :)
 
@suresh Tell me your complete detail
you want to get the streme from user wall
and post
 
which permission are we required to set in order to post a string to FB?along with offline_access and publish_stream?
 
right:?
 
i just want to post
 
4:38 AM
@suresh publish_stream
 
@SureshVarma dunno...
 
its already there dude
 
@SureshVarma i am working with the same but no Problem.
 
humm..
 
has anyone ever used remoteControlReceivedWithEvent method ?
 
4:45 AM
@ArunDM Hi
 
@SureshVarma publish_stream is fine enough. What is the error are you getting?
 
no error it jus dont posts to fb
 
What is the XML response from FB api call?
I mean JSON
 
@SureshVarma could you provide your code so that i can resolve your problem
 
4:56 AM
hi @all
 
@KishoreK yep Its json
@kunaliPhoneDeveloper hi
 
dude.. its not that I am directly posting it through iPhone.. I am sending the request to my server from where it sends to the FB
 
@HCharli how r u frnd..??
 
@SureshVarma hmmmmmmm right
@kunaliPhoneDeveloper i am fine
 
Okay. Then check in your server what is the FB response. You may get a clue. Mostly it will have the post id. so you can check the post with the id if its published.
 
4:59 AM
So i think the issue is from my server side and not in my code :)
are you sure publish_stream is the only stuff and we dont require any other permission
 
@SureshVarma YES i am dammmm Sure :)
@KishoreK you right
 
@SureshVarma hi
 
Sam
@SureshVarma hi
@SureshVarma wats up!!
@IphoneDeveloper HI
 
All ios well
 
Sam
@SureshVarma tht COOOL...
 
5:06 AM
@Sam hi
@SureshVarma are mera fb nahi chal raha i ghar se
 
@IphoneDeveloper Hi...Monika ji....Good Morning
 
@HonestSuccess gud morning
 
Sam
@SureshVarma @IphoneDeveloper how can i create global variable which in iphone app
 
@IphoneDeveloper Have you worked with Bluetooth ?
 
@Sam in one file or whole project?
@HonestSuccess nop
 
Sam
5:07 AM
@IphoneDeveloper in whole project
 
@IphoneDeveloper ye aap ne kya remove kiya ?
 
@SureshVarma ab mujhe reply nahi kiya todekhnaa
@Sam app delegate me 1 vairable declare kar do
 
@IphoneDeveloper haan bol
 
@SureshVarma facebook
 
awwww poor gal
 
5:08 AM
bas meraa
ghar pe nai chal rhaaa
 
skype to chal ra hoga na ya wo bhi gya?
aisa kyu par? website na chale aisa thodi hota he
 
@SureshVarma wo hai... lekin office me to chal rha ahi.. aur baki sare fb account open hote ahi gahr se. par mera nahi ho rhaa
:(
 
cache clear karke dekhna
 
Sam
@IphoneDeveloper i declare it but when i allocate any string into appdelegate and i try to use it in any other view controller at tht time tht string bcome nil....thts my problem
 
aisa ho to firefox uninstall karke install karna..
wese error kya deta he :P
inalid uname and password?
 
Sam
5:10 AM
@IphoneDeveloper it my static string
 
@SureshVarma baki logo ka account chalta hai... mera gmail bhi nahi.. maine chrome uninstall bhi kar liyaa
 
error kya he?
 
@SureshVarma error nahi chat ka option hi nahi aata aur.. .kabhi kabhi. pura template hi bigad jata hai
sirf mere account ke liyee.. wo bhi ghar pe :(
 
jarur tune kuch kiya hoga setting me jake
 
@sandy hi,.,
 
5:11 AM
ek kaam kar sare addons uda de
 
Sam
@IphoneDeveloper so any idea..
 
@IphoneDeveloper Hi Dear
 
@sandy kasie ho
 
@IphoneDeveloper acha hu
tum free ho
 
@SureshVarma ok
@sandy kal kya bol rahe the?
 
5:12 AM
free to me bhi hu :P
5 minit aur :D
 
@sandy abhi to free hu
 
@SureshVarma Thanks yar
 
hahahaha
 
@SureshVarma asia thodi naa.. sandy ka kam 5 mins me nahi hota :P
 
@IphoneDeveloper ok drop box check karo
 
5:13 AM
kaisa he dost
 
@SureshVarma mast hu
 
humm sahi he
 
bas project ki finsihing chal rahi hai
 
@IphoneDeveloper rasta batana 5 minit ka kaam he.. manjil tak pohochna bhale 2 din me ho
 
@IphoneDeveloper oye tune open kiya
 
5:14 AM
@sandy pwd kya hai?
 
samji.. me rast batane wala hu.. baki tumko karne ka
pwd matlab hota he password
 
@SureshVarma haa samji
 
inna bhi nai pata
 
@SureshVarma are....
@SureshVarma sandy ka pwd puch rhai hu
 
mail check karo
 
5:15 AM
sandy pwd se khulta he :O
 
@IphoneDeveloper
 
chalo dost log... alvida
oops kabhi alvida na kehna
 
@SureshVarma ha haa
 
fir milenge chalte chalte
 
@SureshVarma ok bye
 
5:16 AM
mera yaar nai aaya yaar aj.. me dukhi hu
 
@SureshVarma kon vijay?
 
haaan :(
 
@sandy nahi aaya mail
 
bechara kaha fas gya hoga..
SO walo ne arrest to nai kar liya hoga na usko :(
 
@SureshVarma ayega .. kal bhi thoda late aya tha
 
5:17 AM
rules pe rules tode ja ra he
usko mera helo bolna.. chal byee
 
@IphoneDeveloper check it now
 
@sandy ha login ho gaya
 
@IphoneDeveloper abhi just upload kiya hai usse download karo
contentRaven_upload wala
 
@IphoneDeveloper mail me auth code hai first time usse dal diyo run karne ke bad
 
5:21 AM
@sandy ok
 
@all good morning :)
@sandy @IphoneDeveloper hiiiiii
 
@dark hi
 
@IphoneDeveloper what[s up
what's
?
 
@dark nothing spl
 
@IphoneDeveloper good @sandy ksa hai ?
 
5:27 AM
@sandy login bhi ho gaya.. ab kya karna hai ?
app ,e
 
@sandy hi
 
@IphoneDeveloper run kara aur dekh
@avinash hi @dark hi
how are u ?
 
@sandy am fine toon suna ksa hai ?
 
@sandy haa dekhaa
 
@sandy f9
 
5:30 AM
@Rani Hi...dear How are you ?
 
@IphoneDeveloper - (void)parser:(NSXMLParser *)parser didStartElement keyviewcontroller me serch kar
 
@IphoneDeveloper do you have any problem ?
 
@sandy aaj free lag rahe ho???
 
@IphoneDeveloper not activated ki place pe keval activated kar dena
@avinash nhi yar
 
@sandy wait
 
5:32 AM
aaj bhi working hi hai
@IphoneDeveloper ok
 
Sam
@dark @IphoneDeveloper i did it by declaring varible in appdelegate..... but when i apply any string into tht variable in appdelegate.m it shows nil when i call tht string avriable fron other view controller
 
@sandy push notification per kaam kiya hai.
 
@avinash karana kya hai
ye bato
 
@Sam did you alloc that variable in viewDidLoadFinishing in app delegate
 
Sam
@dark ya
 
5:34 AM
how you excess that variable
write the code here @Sam
 
Sam
@dark ok
 
@sandy eBuudy jesa local notification show kara hai.
 
@HonestSuccess i am fine and what about u
 
@Rani ek dum mast hu....yaar.
 
@IphoneDeveloper DocumentViewController me viewdidload me aur viewwillapear me commented code ko un comment karo aur run karo
@avinash local notif is differ from push
 
Sam
5:37 AM
In other view controll i call like this.....-:loginAppDelegate *app = [[loginAppDelegate alloc] init];
NSString *add = app.address; so...i apply string like this in appdelegate -: [[NSString alloc] initWitjstring:@"str1"];
@dark tht my code
 
@sandy any idea about this
 
@avinash karna kya hai local ya push
?
 
Sam
@dark i declare varible as address into appdelegate
 
@Sam let me send here the code
 
@IphoneDeveloper beta kha ho
 
5:38 AM
@sandy push
 
Sam
@dark ok
 
@sandy haa
 
that is the problem you have alloc the share variable in new controller which can't take the reference of previosu one
 
@IphoneDeveloper so kiya tumne jo maine kha
 
it point to some new memory location
 
Sam
5:39 AM
@dark ok
 
@IphoneDeveloper keyview list show kar rha hai
 
@sandy keyviewcontroller ?
 
Sam
@dark so how can i solve it
 
@IphoneDeveloper MyKeyViewController
 
@Sam just a sec
 
Sam
5:40 AM
@dark ok
 
@sandy ok
@sandy ha kiya ab?
 
@HonestSuccess what is u r real name
 
@Sam appDelegate =(AppDelegate *)[[UIApplication sharedApplication]delegate];
 
@Rani Jay Shah.....may I know why ?
@Rani and what's your ?
 
@IphoneDeveloper key list dikha tumko?
after login
 
5:44 AM
@HonestSuccess aise hi puchi
 
@sandy wait
 
@Sam and then NSString *add =appDelegate.address
 
@HonestSuccess mine is Raji Nair
 
Sam
@dark ok i try it.....and let u know the result...
 
@Rani ek baat puchu ?
 
5:45 AM
@Sam ok
 
@HonestSuccess ya sure
 
@sandy haa.. dikhi list\
 
@rani,ho
@Rani,hiii
 
@Rani ji Raji ka matlab kya hota hai.....??
 
@Rani,im taking image from photopicker and resizing it
 
5:46 AM
@HonestSuccess Raji ka matlab happiness
 
@IphoneDeveloper tumne document view con me un comment kiya code ko
 
hi@HonestSuccess
 
viewdid load pe aur viewwill apear pe
 
@rani,but how it is taking lot of time to load that image into image view
 
@Anilgupta Hi...Bhaai
@Anilgupta How are you ??
@Rani I think you are female, Right ?
 
5:47 AM
@HonestSuccess FIne
AND u?
 
@rani,do you know a metjod how to make it fast
 
@HonestSuccess ya
 
@Rani ok
@Rani you are from where ?
 
@HonestSuccess ,I hav one more issue?
 
@sandy notactivated ko activate ki ya hai bas... aur kya karnaa hai
 
5:48 AM
@HonestSuccess i am from mumbai
 
@Anilgupta kahiye bhai....issue...
@Rani ok nice city
 
@IphoneDeveloper DocumentViewController me
 
Sam
@dark tht one work properly.... thnk s for it...
 
@sandy ha usme
 
viewdidload aur viewwillapear me commented code ko uncomment karo
 
5:49 AM
@HonestSuccess mujhe row k click event per pickerview open karna hai on the same view
 
@sam any time
 
@HonestSuccess and u are from
 
Sam
@dark same as i can call any method from appdelegate....am i right?
 
@Sam yes
 
@Rani I am basically from Bhavnagar....but doing job in Ahmedabad.
 
5:50 AM
- (void)viewDidLoad {
- (void)viewWillAppear:(BOOL)animated @IphoneDeveloper isme
 
Sam
@dark ok
 
@sandy ha kar diya uncomment ab?
 
@Hi all
 
@HonestSuccess ok
 
@HonestSuccess mujhe row k click event per pickerview open karna hai on the same view
 
5:51 AM
any body knows ics file parsing
 
@IphoneDeveloper ab run karo
 
please update me
 
@Anilgupta ok....
@Anilgupta kya tumne row ki click event ditect kar li hai ??
 
ics file parsing ???
 
5:52 AM
Hello every one
i have one question
 
haa ab
:1149397
 
@HonestSuccess nahi maine abhi sirf custome pickerview ki coding ki hai with table view
 
@sandy ab kya karu?
 
@IphoneDeveloper first key ko activate karo
 
@sandy maximum activation reached
 
5:54 AM
ics file parsing ???
 
@IphoneDeveloper ab doc tab pe jao
 
@Anilgupta are yaar....me ye puch raha hu ki kya tum row detect hui ki nahi wo pata laga sakte ho ki nahi....taki tumhe picker view open karna hai ya nahi vo pata chale..
 
koi file dikhi
pdf
 
@HonestSuccess aap kya mujhe yah batao ge ki hum picker view ko kaise open karen n row click event per or phir picker view k item select karne k baad wah item uss row mei kaise aayega
 
5:55 AM
@sandy dekhi thi usko click kiya to crash ho gai ap
 
@Anilgupta ok...wait
 
@IphoneDeveloper koi nahi fir se karo
 
@HonestSuccess ok
 
aur doc tab pe jao jab file pdf dikhe to
usko select pe jao phir view karo usko
 
@sandy dikhi fir.. ?> aur ye har bar aunthi code managta hai
 
5:56 AM
@Anilgupta pehle apne XIB file me picker view ko drag - n - drop kar do....xib file me karna....apne view me nahi.....
@Anilgupta itna karne ke baad muje ping karna
 
@HonestSuccess jis xib view mei tableview call kiya ussi view mei na ya phir new xib file mei
 
2011-08-02 11:28:36.009 ContentRaven[778:207] array value:(
"<DocList: 0x64a17e0>"
)
2011-08-02 11:28:36.010 ContentRaven[778:207] docArray value:(
"<DocList: 0x64a17e0>"
)
crash ho rhai hai\\
 
@IphoneDeveloper koi copy kar lo
 
@sandy kya copy karo?
 

« first day (119 days earlier)      last day (2184 days later) »