« first day (330 days earlier)      last day (3653 days later) » 
00:00 - 14:0014:00 - 21:00

14:00
@Anilkumar collapsing ?
like this ?
counter--;
after that line the if condition should be there
what about the dispatch block ?
yes dispatch block too
if counter == 0 {
dispatch// main thread
reload
}
like this ?
14:05
yes
lol, let me try
it doesnt work :( the data that is received is not in order and is stored randomly each time. Have you got a clue what might be wrong ?
it will be random
you dont know which request ends at the last
have to apply sorting yourself if you want it to be same
14:21
What this does, it fetches some data from the backend and stores it in a local database. When reloadData on the tableView is called, it queries this information to display. However, for some of the objects, no data is saved.
so randomness is the least of my problems
many places it can go wrong
if data comes from web correctly
does it store into db correctly
it retrieves it from db correctly
this is how the API call function looks like
so i have to call this for every element in the array that i showed you earlier
once all requests are finished, tableview must be updated
debugging only might help
:)
thanks for the help anyway !
i cant find where the issue could be like that
14:49
posted on February 13, 2014 by Johann

    Featured iPhone Development Resources,iOS Development Libraries,Objective-C,Open Source iOS Libraries And Tools     Featured iPhone Development Resources,iOS Development Libraries,Objective-C,Open Source iOS Libraries And Tools I’ve mentioned a few libraries enhancing the UIColor class to help find that right color when designing an app suc

 
2 hours later…
16:47
aey bhai
lmao
same here :P
17:02
@pe60t0, that code doesn't do what you think it does!
I know, but I am very confused now... would you be able to give me a hand ?
first thing, read about blocks and variable capturing
My problem is that I want to put inside a queue a method call with a completion block. Once the block is finished, I want to return from the queue
not before
I have read almost everything I could find about blocks, still cant find my way around it
queue is not an execution context that you can return from, so that sentence didn't make much sense to me
then you should know the first issue
make sure you read about capturing varables in blocks
Basically, I want to call a web server N times, and once ALL calls have finished, do something (update the UI). I am getting the callbacks from the service in a completion block. So the logic I was following was to create a queue for each web service call, and once all of them have finished, "return" to the main thread. Makes sense ?
switch back to the main thread*
17:12
Can you explain how counter works in i.sstatic.net/hVBZn.png ?
this was Kabira's idea, im not too sure about it
Okk, then just try to understand that code. you have already read about blocks, so you should be able to understand the first issue
lol
@radical counter serves as a flag to go to the main queue, once the api call has finished. Its missing the __block keyword though
what will __block change?
17:19
@Nestor hello
it just makes the variable accessible from within the block's scope. you can modify it there
:)
it is still accessible, but currently it makes a copy of the variable, so inside the block, counter will have the value that it had at the time of capture
so, yeah, use __block
this code was just pseudo, in the one i used the variable had the __block in front
this is not the problem
bada detail mey samjhata hai radical :D
mishra ji
17:22
@pe60t0, asking people to debug and not providing the proper code, good way to waste other people's time!
kaise ho
anyway, there are race conditions too
@Destro still alive by the grace of god
this was more of a "design" question. I am not asking for debugging, just the idea of how to do it
good what abt ur doc @PiyushMishra
17:23
okay.. then you need to read about multi threading
read about how to synchronize
@Destro ruk mere bhai market se free mey itna kaam karwa chuka hun ki image ki band baj gayi hai, dont want that you face the same situation :)
hahaha
kabira sudhar ja star marna band kar
star marna hai to mishra ji ke comment pe maaro :P
I have read about multithreading, I know the basics, this is just a problem that I have now, and I am looking for a help. If you would like to help, please do so, otherwise telling me to go "read about multithreading" is of no use to anyone @radical
17:26
destro ek mast chiz padega ?
tere ko lagta hai woh mana karega :D
padha
7 hours ago, by PiyushMishra
@ManishDubey http://www-304.ibm.com/services/learning/ites.wss/us/en?pageType=course_descript‌​ion&courseCode=WU506#1
this is a basic problem in synchronization
load older transcripts me jaa upar
iss message tak
17:27
ha ha ha
You didn't share the correct code, you didn't try to understand the code that you are using, .. that makes me less inclined to delve deeper
How can I share the correct code if I my program isnt working the way I expect it :D I wouldnt be asking questions otherwise :D
:D
tu bach gaya kabira
bach gya ?
Well, because your implementation is the issue.
17:29
ok.. ownership
@PiyushMishra itni jaan pehchaan hai to humara bhi kahi karwa do
bhai job chhod
css tak pahuch :P
well exactly, and my question is about how to implement it properly, not about syntax or multithreading concepts lol
lol
the implementation issue is about multi threading concepts
17:30
haha okay :D
like i said, your implementation has race conditions
thanks for wasting my time :D
no problem!
@Destro pehley khud ka kuch ho jaye toh paka se :D
17:31
radical meri tare ban rha hai
thode time me meri tareh logo ko sunane lagega :P
heh how so?
@radical why not many people ask question from you now :P
mere se bhi nhi poochte ab :D
I didn't mean to be rude, but i'm not feeling keen on doing somebody else's homework esp when they don't care enough to even try to understand it
lol
thats just your own opinion mate :D which is so far away from reality
radical meri app bana de bhai mera mann nahi hai wo app karne ka :P
17:33
baaki rooms me khaatir daari hoti hai :P
kal kis k saath date pe jaa rhe ho @PiyushMishra :P
mishra aur uski tanhayi aksar ye baatien karte hai ki raghu romeo na hota to kaisa hota
@Kabira chodh aye hum woh galiyan
hahaha
dialogue mast maara yaar
kisne mishraji ne ya meine?
piyush
tera bhi acha tha
17:36
dil behlane k liye bol diya :P
@radical howz ur unity?
haven't tried in ages. I will try a little 3d project, but not with Unity
@Destro, are you using it?
dekh kitni mehengai hogyi hai @Destro
lol
@Kabira, when are you doing that platformer?
nope @radical still far away from it
17:43
monday, i believe
cool
Destro, okk
actually i want to learn but i dnt have time
kotak kotak
:D
football football
acha ek help kr
i have views added as subview into cell
how to update the data into cell without datasource methods
17:54
first tell me how will u get the index of the cell of whose subview data u want to update ?
cell.contentView addSubview : view1 (tag->100(sample))
cell.contentview addSubview : view2 (tag- > 101)
: view3 (tag -> 102)
all cells data needs to be updated
create a method to update data inside subview
call that method accordingly
oOlala :P
kya solution diya hai
lol
jaisa tera question waiisa solution :P
but y r u dng this i feel u r nt dng it in a right way @Kabira
18:09
krta hn kuch jugaad
mera bhi kar de kuch jugaad
cell for row me view laga aur haath k haath data set kar de us view ke andar ja ke
@PiyushMishra programming kar rhe ho ya chod diya wo bhi?
@Destro koshish karunga agar ho gayi toh kuch kaam hai kya mere liye :D
:D
bhai aapko afford karna mere bas ki baat nahi :P
filhal toh jamil can afford me :D
18:31
ho kya tum dono ?
H2CO3 yaad hai ?
yup
nominated himself for moderator
itna criticized hua..
account delete maar diya
105 K rep .. :P
lol
18:33
yeh
Is it possible to undo again? Might he would come back again
But do not say to me to try :)
dont know
mishra g is in love
@Exception bhai woh toh theek hai par tum kaun :)
haha
jamil
18:41
wut?
@Exception ha ha toh ek naam rakho na
@Kabira btao isko bhai
tu hi krle apni taareef
hahahaa
mast time tha
popeye the sailor man :D
timon and pumba
aur delhi me baarish bhi ho gyi :P
hagooona matata
raat k 12 baje valentine man jaaye aisa mausam hai
SO par hi manayega valentine
hahhaaa
18:57
lol
jamil ka wait ker raha ha ;p bhai
abhi time ki kami hai
calcium ki bhi ha
chawan prash ki bhi
aur revital ki to sakht zaroorat hai
jiyo jee bhar k
 
1 hour later…
20:29
@Kabira hello
posted on February 13, 2014 by Android Developers

By Magnus Hyttsten, Google Developer Relations Google Play services 4.2 has now been rolled out to the world, and it’s packed with much-anticipated features such as the brand new Cast API and the updated Drive API. In addition to these blockbuster announcements, we are also launching a slightly less visible but equally important new API — a new way to connect client APIs and mana

00:00 - 14:0014:00 - 21:00

« first day (330 days earlier)      last day (3653 days later) »