Android

Don't say hi. Don't ask questions. Don't have fun. Don't do an...
Sep 25, 2016 23:26
i am reading the json object via filereader then reading it in a stringbuilder and then converting it to JSONObject (jsonelement) and adding the new element to it via jsonelement.put(""+jsonelement.length, newstuff) ?
Sep 25, 2016 23:23
is it possible to read a json object from a file and append a new element to that object in a file via writer ?
Sep 25, 2016 22:29
=)
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Jul 23, 2016 20:06
guys how do i use stackoverflow.com/a/2134602/2260496 as a service ?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 10, 2016 09:17
:(
May 10, 2016 09:16
@Sippy donk ?
May 10, 2016 09:14
guys need some help here

http://stackoverflow.com/questions/37133502/grouped-scatter-plot-with-multiple-datasets-d3
May 10, 2016 08:04
0
Q: Scatter plot with multiple data sets D3

jayeshkvCurrently i have 3 data-sets in the form of arrays and i would like to keep one of the dataset as an Y-Axis and the rest to be plotted on the scatter plot and as X-Axis range. So far i was able to plot just one dataset in the Y axis and one dataset in the X-Axis. g.selectAll("scatter-dots") ...

May 10, 2016 07:54
lol
May 10, 2016 07:48
guys i need some help with d3
Mar 17, 2016 20:27
0
Q: Failed to find a valid digest in the 'integrity' attribute for resource

jayeshkvI have deployed my EmberJS appication in my linux box (I have followed this Guide for deployment) in /var/www/site and I get a white screen Failed to find a valid digest in the 'integrity' attribute for resource 'http://ip:port/assets/vendor-2ac5f56489f7a9cdc6e33798267618fb.css' with c...

Mar 17, 2016 20:27
Ember ninja's
Mar 16, 2016 17:23
thanks though
Mar 16, 2016 17:23
ah okay
Mar 16, 2016 17:22
@KevinB is there a proper way to use that ? am i doing something wrong ?
Mar 16, 2016 17:14
coz if i use the anchor tag i get the url as localhost:4200/google.com
Mar 16, 2016 17:13
im looking for an updated version of that
Mar 16, 2016 17:13
14
Q: How to link to an external URL with LinkTo with HandelBars

OxnigarthI am currently starting to learn to use Ember.js for web app development. Currently there is something quite basic which I have not yet been able to achieve. Link to an external url like www.google.com or whatever. This is what I have: HTML <body> <script type="text/x-handlebars"> <div>...

Mar 16, 2016 17:13
guys is it possible to link an external URL via link-to in ember or in an anchor tag ?
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Feb 29, 2016 21:09
:P
Feb 29, 2016 21:07
thanks @Kevin
Feb 29, 2016 21:07
i was trying it as d[1][1]
Feb 29, 2016 21:07
should have tried
Feb 29, 2016 21:07
ah nevermind
Feb 29, 2016 21:06
i get list index out of range
Feb 29, 2016 21:05
but it would return the entre list right ?
Feb 29, 2016 21:04
say i want to extract 3030 from itm1, how would i do it
Feb 29, 2016 21:04
is it possible for me to access the individual list item ?
Feb 29, 2016 21:04
guys i have a dictionary of the form
'itm1': [(3030, '14.20')],
'itm2': [(5145, '67.25'), (6860, '29.58'), (6045, '54.19'), (9526, '22.88')]
 
Dec 13, 2015 06:27
again thanks :)
Dec 13, 2015 06:26
thanks @user1952500
Dec 13, 2015 06:26
hope so :)
Dec 13, 2015 06:25
yeah, it is not that detailed ..
Dec 13, 2015 06:24
i mean for reference
Dec 13, 2015 06:24
could you link me to any spark resource ?
Dec 13, 2015 06:24
okay now the count works normal
Dec 13, 2015 06:22
haha ill try
Dec 13, 2015 06:21
yep
Dec 13, 2015 06:20
[u'LA', u'TN', u'England']
Dec 13, 2015 06:20
now the length is 3
Dec 13, 2015 06:20
okay
Dec 13, 2015 06:17
okay i replaced u'' with empty and u` with '
Dec 13, 2015 06:13
thats my city.take(10000)
Dec 13, 2015 06:13
Dec 13, 2015 06:11
10000
Dec 13, 2015 06:10
yep
Dec 13, 2015 06:09
i get PythonRDD[43] at RDD at PythonRDD.scala:43
Dec 13, 2015 06:09
So i did this ne = city.map(lambda x:re.findall("[A-Za-z]+",x,0)[1]) and when i tried to view the elements of ne i get only 2 elements [u'LA', u'TN']
Dec 13, 2015 06:09
oh okay, how do i pass my RDD to that function ?
Dec 13, 2015 06:09
is there a function called findall in pyspark ?