« first day (851 days earlier)      last day (585 days later) » 

04:43
morn
Good Morning
Good Morning
05:08
Good morning
@IshitaSinha hi
05:47
Good morning
05:59
@VishalThakkar hello
kId
kId
06:11
good morning
good morning
06:34
very good morning all :)
07:03
Good Afternoon People :D
07:23
good noon sir...:)
kId
kId
07:48
@MukeshRana nothing else :P
lol
I just marked my attendance :P
kId
kId
how was your trip?
08:24
can anyone please help in json parsing, in react-native?
const obj=JSON.parse(jsonString)
this one I need to parse
I need to retrieve the list of the company codes and to populate dropdown with that.
const arrayObj=obj.body.companies
Okay, u mean directly?
arrayObj.forEach()
Yes
After JSON.parse()
08:28
Okay let me try
08:49
@kId trip? which trip?
09:26
@NarendraJi RN is javascript, NR. JSON = JavaScript Object Notation? So, ya. Directly.
:P
kId
kId
@MukeshRana the pic saw in fb
@IshitaSinha xD
Oh the latest one was a road trip to Mashobra, Narkanda, Rampur, Kalpa Valley, Sangla Valley and Chitkul (The last village between India and Tibet)
kId
kId
ohic
;)
and all this is done within 2 days, lot of driving and I was the only driver
09:35
> adb server is out of date. killing… cannot bind 'tcp:5037' ADB server didn't ACK failed to start daemon
any working solution for this?
I tried
> adb kill-server
> adb start-server
but still nt working
@NarendraJi restart the computer xP
oops
Is that the only fix?
that seems to work always :P
Buying a new one can be another
09:44
:D
Tcp reverse something
kId
kId
@IshitaSinha no
13
A: adb server is out of date. killing... cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * in ubuntu 14.04 LTS

eyal-lezmyYou need to set the path of your SDK's adb into Genymotion. By default, Genymotion uses its own ADB tool (for many reasons). If the both binaries are not compatible (if your Android SDK platform tools or Genymotion has not been updated for a while) this problem happens. To solve it you can defi...

did you try that?
killing emulator did for me
09:46
@IshitaSinha yes, 3 times
emulator was stealing adb
xP
stealing? xD
lol
shall I laugh more loudly?
(Y)
09:54
@Rahul const obj=JSON.parse(jsonString) is throwing error Unexpected identifier "object"
I used somewhat like ---
> fetch('https://api.myjson.com/bins/oe1na')

.then((response) => response.json())
.then((responseJson) => {

console.log(responseJson)
const responseObj = JSON.parse(responseJson);
const arrayObj=responseObj.body.companies;
Lemme try this
23
A: SyntaxError: JSON Parse error: Unexpected identifier "object" (anonymous function)

VisioNMost probably your response is already a JavaScript object and it not required to be parsed. Remove the line var json = JSON.parse(response); and your code should work.

@Rahul becoming jealous of even sentences with "heart" like "my grandma needs a heart transplant" :P
@NarendraJi remove JSON.parse; it's not a string.
removed
now getting error on next line
> undefined is not an object (evaluating 'responseJson.body.companies')
@IshitaSinha I see
@NarendraJi lol. response.body.companies
remove response.json() too
try to log the "response" you're getting in then()
10:01
@IshitaSinha (Y)
@Rahul :'(
@IshitaSinha I already have placed the log. Ain't I?
fetch('api.myjson.com/bins/oe1na')

.then((response) => {

console.log(response)
const arrayObj=response.body.companies;
@NarendraJi what is that statement printing?
ohh
thats printing the response
in a string or a json object?
10:03
string, it seems
@IshitaSinha lemme try this one
yes
then if it is a string do JSON.parse
else simply do response.body
@Rahul :(
@IshitaSinha something weird
> { type: 'default',
status: 200,
ok: true,
statusText: undefined,
headers:
{ map:
{ 'access-control-allow-origin': [ '*' ],
connection: [ 'keep-alive' ],
'access-control-allow-credentials': [ 'true' ],
'content-length': [ '1511' ],
'content-type': [ 'application/json' ],
date: [ 'Tue, 15 May 2018 10:04:18 GMT' ],
server: [ 'nginx/1.5.8' ] } },
url: 'https://api.myjson.com/bins/oe1na',
_bodyInit:
{ _data:
{ size: 1511,
offset: 0,
blobId: 'e51f22e7-2b39-4592-beb6-e5fc987bf70b' } },
_bodyBlob:
{ _data:
object it seems
@NarendraJi oye
10:10
yo
@Rahul that is a reserved keyword
response.json)
Then(r console
Log(r)7
Kar
@IshitaSinha just approving your word
@Rahul what word
@NarendraJi async wait use kar
promise.then is better than async await
10:12
I am newbie
@IshitaSinha every word
beginner
@Rahul no
amateur
then I'm coming to wf
10:12
@IshitaSinha response.json()
yes
did that
@Rahul see? that's not my word
> console.debug(response.json())
One more then
10:13
okay
log is saying { _40: 0, _65: 0, _55: null, _72: null }
@Rahul why are you angry?
@NarendraJi xD
@NarendraJi no re
@IshitaSinha I'm not angry
then? .body()?
@NarendraJi that seems to be the request json
@Rahul you only "approve my word" when you're angry :(
10:15
tch('./api/some.json')
.then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' +
response.status);
return;
}

// Examine the text in the response
response.json().then(function(data) {
console.log(data);
});
}
)
.catch(function(err) {
console.log('Fetch Error :-S', err);
});
We start by checking that the
@NarendraJi ^^
You can use arrows
@IshitaSinha no
fetch(url)
.then((resp) => resp.json()) // Transform the data into json
.then(function(data) {
// Create and append the li's to the ul
})
})
Okay, that data will be the string. right?
10:20
@Rahul my api doesn't return a response.json, it's always a response.text
@NarendraJi no, that data will be json
.then((resp) => resp.json()) // Transform the data into json
so, no need to do JSON.parse() thing?
10:22
🙄🙄🙄
@IshitaSinha okay
@Rahul boo :(
@IshitaSinha ka bae
@Rahul don't laugh at me, I don't know why it's that way. I can show you tonight.
Composit keys add kiya ?
10:23
no
bugs
@IshitaSinha code
I have api wrapper class
You can find in your computer
@Rahul I have one, too
made by Arjun 🙄
10:39
Okay
11:01
@Rahul I want a month-long vacation. I never have enough time with you. :(
Okay
-_-
@Rahul when
and where
Paise nhi h khumane ke liye
@IshitaSinha -_-
After 3 month
We will go
(Y)
11:16
okay
where
maldives is sinking apparently :(
Achha
come home :'(
11:40
Gym
no
come
I miss you
Gym
I'll leave at 8:30
@AnshulTyagi Hii
😒
There are so many bugs
New company new timing
11:51
That I know -_-
When are they giving TP?
No idea
12:16
@curiousMind hey
12:44
:42542218 yes
We already have fish
That's not enough for dinner no
Yes for what?
??
Chicken
Okay
Sure?
Yo
13:46
Hello everyone! Has anyone worked on resizing a bitmap image?
yup
I did
14:17
@curiousMind, plz help me
My image is getting pixelated.

« first day (851 days earlier)      last day (585 days later) »