Posts

Showing posts from March, 2010

C++ Struct function body calling another structs function, same module -

i attempting make chess module using chesspiece struct , chessgame struct. using xcode 6.1.1. here header file , function in question in chess.cpp. error, "use of undeclared identifier 'initchesspiece' did mean 'chesspiece::initchesspiece'?. if make change says error, 'call non-stack member function without object argument.' finally, if make line, game.pieces[i].initchesspiece(game.pieces[i], color, piece, x, y); linker throws error: undefined symbols architecture x86_64: "chesspiece::initchesspiece(chesspiece, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, unsigned int, unsigned int)", referenced from: readchessgame(chessgame&, std::__1::basic_string, std::__1::allocator > const&) in chess.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) #ifndef chess_h #define chess_h #in...

eclipse - Aspectj for anotations with classes not working -

below code not complied correctly aspectj import org.springframework.context.annotation.conditioncontext; import org.springframework.context.annotation.conditional; import org.springframework.context.annotation.configuration; import org.springframework.context.annotation.configurationcondition; import org.springframework.context.annotation.importresource; import org.springframework.core.type.annotatedtypemetadata; @configuration @conditional(conditionalconfiguration.condition) @importresource("/com/example/context-fragment.xml") public class conditionalconfiguration { static class condition implements configurationcondition { @override public configurationphase getconfigurationphase() { return configurationphase.parse_configuration; } @override public boolean matches(conditioncontext context, annotatedtypemetadata metadata) { // load context-fragment.xml if system property defined ...

java - Can't figure out this NoClassDefFoundError - class should exist at runtime? -

as far i've been concerned, or seen in practice, error when referenced class can't found @ runtime. i'm pretty sure tap gets created initialization of menuscreen, might doing wrong. first attempt @ menu, or having multiple screens @ in libgdx. this first section of menuscreen class, initialized in androidlauncher.java ( initalize(new menuscreen(new tap()), config); ) public class menuscreen extends game implements screen { ... game g; public menuscreen(game g) { create(); this.g = g; } and relevant pieces of tap.java public class tap extends game implements actionlistener, screen { ... public tap() { create(); } i can't seem figure out why won't work. missing obvious? i've tried few different things, part don't have enough understanding yet make real changes. thanks. edit: stack trace 12-15 22:42:35.614: e/androidruntime(16426): fatal exception: main 12-15 22:42:35.614: e/androidruntime(16426): ...

excel - Comparing two sheets - difference write to sheet 3 -

here thing: have 2 sheets (approx 10k rows in both) - compare them - if there match (based on column b - nothing, if there isn´t - value in sheet2 not in sheet 1 - write columns(a,b,c,d) sheet3) - problem is, first row in sheet 1 equal maybe 3rd row in sheet2. how can achieve that? is possible check row row according values in column b? thanks i have created workbook following criteria: sheet1: column | column b | column c | column d | column e ------------------------------------------------------ 111024 961207 value1 data fake 11 111027 961209 value2 data b fake 22 111030 961211 value3 data fake 33 ... ... ... and sheet 2 copy of sheet 1 couple of rows missing. then opened visual basic editor ( alt + f11 ) , added module, wrote following macro: sub compare() sheets(3).activate 'go sheet 3 cells.clear 'and clear previous results range("a1").select '...

How to pass customized request to controller in spring mvc? -

generally, when user's form submitted, request passed spring controller. and controllers shaped testcontroller(httpservletrequest request, httpservletresponse response) i want pass " myhttpsevletrequest, myhttpservletresponse " not " httpsevletrequest, httpservletresponse ". is possible? want know possible, , how? in technique. don't "no need to that, alternative way here" any answer appreiciated. thank you. i dont know how directly know workaround intend done. you can use spring aop methodbeforeadvice , afterreturningadvice hold of request , response objects before , after enter/leave action method. kind of request response interceptor doing. in can write transformer method take standard request , response object input , output custom request , response object(your custom class should implement httpservletrequest interface) , override request , reponse objects custom objects.

javascript - PhoneGap show downloaded image in iframe -

i have phonegap application in need download images offline usage , show inside iframe. possible , need corhttpd ( https://github.com/floatinghotpot/cordova-httpd ) serve assets locally? i have been trying store files on file system when try show (even without being inside iframe), doesn't show. seem loaded (can seen in network console in remote debugging), though, (of course) without headers. after spending more , more time on , settings gapdebug correctly remote debug application, able solve problem giving {responsetype: "arraybuffer"} to angularjs's $http.get method config parameter described here . able images arraybuffer correctly , there base64 encode them added inside html stored offline. suitable solution case @ least..

MouseListener on editable JavaFX ComboBox -

mouseevent not working javafx combobox when set editable. working on non editable combobox. there way set mouseevent on editable combobox? package editablecombobox; import javafx.application.application; import javafx.event.eventhandler; import javafx.scene.scene; import javafx.scene.control.combobox; import javafx.scene.input.mouseevent; import javafx.scene.layout.stackpane; import javafx.stage.stage; public class editablecombobox extends application { @override public void start(stage primarystage) { combobox combo = new combobox(); combo.seteditable(true); combo.setonmousepressed(new eventhandler<mouseevent>() { //adding mouseevent on combobox @override public void handle(mouseevent event) { system.out.println("mouse pressed!!!"); } }); stackpane root = new stackpane(); root.getchildren().add(combo); scene scene = new scene(root, 300, 250); primarystage.setscene(scene); primaryst...

Get the height of dynamically added LinearLayouts in Android -

i working in android application , adding linear layout dynamically in scollview. want height of each linear layout added dynamically . below code , xml. linearlayout layout = (linearlayout) findviewbyid(r.id.subscrolllinearlayout); layoutinflater inflater = (layoutinflater) getsystemservice(context.layout_inflater_service); list<string> msemplog = new arraylist<string>(); msemplog.add("test1"); msemplog.add("test2"); msemplog.add("test3"); msemplog.add("test4"); msemplog.add("test5"); msemplog.add("test6"); msemplog.add("test7"); msemplog.add("test8"); (int = 0; < msemplog.size(); i++) { linearlayout service_row = (linearlayout) inflater.inflate( r.layout.tesffff, null); textview dd = ((textview) service_row.findviewbyid(r.id.test1)); dd.settext(msemplog.get(i)); dd.settag(i); ((text...

Detect incoming email notification in android -

can detect notification when there incoming email in android ? is there solution, tutorial, or sample code can try? thanks try implements notificationlistenerservice. here official documentation https://developer.android.com/reference/android/service/notification/notificationlistenerservice.html and can take question notificationlistenerservice implementation

html - why does image hyperlink has no border in Chrome, Firefox, Safari and Opera -

is there reason why current browsers did not support image hyperlink border. i noticed before default should have border. it support: img { border: 3px solid red; display: block; } { border: 3px solid green; display: inline-block; } <a href="#"> <img src="http://placehold.it/350x150" /> </a> <img src="http://placehold.it/350x150" type="submit" />

how to set property in .properties file before spring come into picture? -

i have password coming command line argument before initializing/instantiating bean in ioc container want set password 1 key in .properties file. spring same property .properties file instantiate datasource object. how can that? please help. project.properties # db info jdbc.driver=org.hsqldb.jdbcdriver jdbc.url=jdbc:hsqldb:db/myapp jdbc.user=sa jdbc.password= jdbc.maxconnections=25 spring beans.xml <bean id="propertyconfigurer" class="org.springframework.beans.factory.config.propertyplaceholderconfigurer"> <property name="location"> <value>classpath:project.properties</value> </property> </bean> <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource"> <property name="driverclassname"><value>${jdbc.driver}</value></property> <property name="url"><value>${jdbc.url...

linux - Cannot connect to EC2 Instance through HTTP -

i'm having trouble accessing website through http ec2 instance. i've tried changing security setting allowing http on port 80, still doesn't work. ssh working fine. issue? this embarrassing, reason couldn't connect ec2 instance because node js app never started server me listen on port 80. adding simple snippet of code var server = app.listen(8080, function () { var host = server.address().address var port = server.address().port console.log('example app listening, host, port) }) along shell command redirecting fixed issue. iptables -t nat -a prerouting -p tcp --dport 80 -j redirect --to 8080

Access Mongodb from windows which installed in ubundu server -

this question has answer here: do visual tools exist mongodb (for windows)? [closed] 8 answers is there open source gui tool access mongodb installed on ubuntu server windows machine administrative , development tasks? there plenty of options available @ following link http://docs.mongodb.org/ecosystem/tools/administration-interfaces/ .i prefere robomongo

c# - MEF InheritedExport metadata -

i have experience simple usage of mef. want know how best following done. i have interface class [inheritedexport] public interface ibaseview { } i have multiple implementation classes following: [partcreattionpolicy(partcreationpolicy.nonshared), exportmetadata("displayname", "simpleview") public class simpleview : ibaseview { //implementation } somewhere else, need enumerate displayname metadata exports present in container. (to show user). means not want create export, inspect type's metadata. how do this? have checked exportfactory comes mef 2? helps creating export instances dynamically. refer this msdn article exportfactory, , stack overflow answer on how use mef . you can access metadata factory without creating export.

Passing Variables from AngelScript to C++ -

i want pass variable angelscript c++. managed pass functions angelscript c++ , vice versa. can pass variables c++ angelscript, can't figure out how other way round. manual didn't me or have overseen part. can please give me hint? edit: as mentioned in comment here managed do. in test.as file: int add(int a, int b) { print("hello world, i'm angelscript\n"); multi(5, 13); print("c " + c + "\n"); return (a + b); } my test.cpp file: int multi(int x, int y) { int z = x * y; cout << "x aus dem skript: " << x << endl; cout << "y aus dem skript: " << y << endl; printf("ergebnis von multi x * y: %d\n", z); return z; } void print(string &msg) { printf("%s", msg.c_str()); } int _tmain(int argc, _tchar* argv[]) { int r; int c = 42; asiscriptengine *engine = ascreatescriptengine(angelscript_version); ...

android - Redrawing a Fragment after it becomes visible -

i have menufragment extends fragment support package. menufragment can call fragment settingsfragment . in settingsfragment use switch 'es enable or disable functionalities. if functionality disabled button specific functionality should not shown in menufragment , if enabled should shown. my problem oncreate , oncreateview , onresume , etc. arent called when go menufragment after changed settings in settingsfragment . have restart app before changes have made taking effect in menufragment . is idea set callback settingsfragment menufragment , call invalidate() on menufragment 's main content everytime change switch in settingsfragment or there better solution out there? edit i tried use callback redraw fragment noticed calling invalidate() nothing. not force view redrawn... im wondering if have replace menufragment menufragment force oncreate called. the menuactivity : public class menuactivity extends navigationactivity { private fragment...

java - DynamoDB - Object to AttributeValue -

i'm aware of dynamodbmapper in case can't use because don't know attributes beforehand. i have json , it's parsed map of objects using jackson parser: map<string, object> userdata = mapper.readvalue(new file("user.json"), map.class); looping through each attribute, how can convert value attributevalue given dynamodb attributevalue supports boolean, string, number, bytes, list, etc. is there efficient way this? there library already? naive approach check if each value of type boolean/string/number/etc. , call appropriate attributevalue method, e.g: new attributevalue().withn(value.tostring()) - gives me long lines of if, else if finally figured out looking @ how aws parses json basically, code: item item = new item().withjson("document", jsonstr); map<string,attributevalue> attributes = internalutils.toattributevalues(item); return attributes.get("document").getm(); very neat.

activex-combobox for name column in excel -

Image
i have excel sheet use record casual worker data. out of 6 columns, options can chosen through data validation not change , therefore not problem.(range of days worked/overtime, etc). the 1 thing need name column activex combobox can make use of autofill , have ability add new names time. unlike data validation can dragged , copied down range of cells (i have no more 100 casual workers), unsure how combobox every new row of name column contains combobox. please advise. if don't mind using form control combobox instead of activex, here example worked up. used months instead of names, because don't know names want use. concept same. it adds months list items in code, although array of values, , loop instead. sake of simplicity of demonstrating programmatically adding comboboxes cells, hard coded 12 months. also, populated rows 2 20 sake of example. tested: sub addcomboboxes() dim sheet string dim newname string dim lrow long 'dim lastrow long ...

objective c - JSON Data Not Parsed in iOS -

i newbie in ios development. want parse json data webservices have written folliwing code - (void)viewdidload { nsurl * url=[nsurl urlwithstring:[nsstring stringwithformat:@"http://www.janvajevu.com/webservice/latest_post.php?page=%d",pagenum]]; dispatch_async(kbgqueue, ^{ data = [nsdata datawithcontentsofurl: url]; [self performselectoronmainthread:@selector(fetcheddata:) withobject:data waituntildone:yes]; }); } -(void)fetcheddata:(nsdata *)responsedata { if (responsedata.length > 0) { nserror* error; self.json= [nsjsonserialization jsonobjectwithdata:responsedata options:kniloptions error:&error]; if ([[_json objectforkey:@"data"] iskindofclass:[nsarray class]]) { nsarray *arr = (nsarray *)[_json objectforkey:@"data"]; [self.navuarray addobjectsfromarray:arr]; [self.navutable reloaddata]; nslog(@"json data %@",self.navuarray); } self.navutable.hidden=false; } her...

mysql - SQL: UPDATE from a complex select -

in phone system scenario have 2 tables. table1 composed by: customer_id , call_duration , calldate , skip_billing . table2 composed by: customer_id , bonus_seconds . table1 stores calls customers , table2 stores bonus_seconds represents free conversation time allowed defined customer(ie: customer 1 first 40 cumulative seconds free). i have write query update table1 according condition explained below: set skip_billing within calls defined free in table2. so first need group customer_id , iterate on calls, incrementing cumulative variable(cumsec) on call_duration , set skip_billing accordingly. table1 example is: |sqlid |customer_id |billsec | skipbill| |0 |1 |12 | 1 |<--need set 1 due cume=12 customer_id=1 |1 |1 |10 | 1 |<--need set 1 due cume=22 customer_id=1 |2 |1 |15 | 1 |<--need set 1 due cume=37 customer_id=1 |3 |1 |8 | 0 |<--nop(no operation) due cu...

sorting - Sort by field values in MySQL Query -

i have mysql table named tbl_posts columns title,category,timestamp . title category timestamp cat animal 2014-12-12 05:54:49 rose flower 2014-12-12 05:54:50 apple fruit 2014-12-12 05:54:51 dog animal 2014-12-12 05:54:52 i want mysql query sort according category. when search category 'animal', cat , dog wants show first , after append other categories too. desired output follows title category timestamp dog animal 2014-12-12 05:54:52 cat animal 2014-12-12 05:54:49 rose flower 2014-12-12 05:54:50 apple fruit 2014-12-12 05:54:51 thanks in advance. select distinct y.* my_table x join my_table y on y.category = x.category order y.title = 'dog' desc , y.category; or that

actionscript 3 - How to access sprite sheet as3 -

i new action script 3, please tell me how access each image inside sprite sheet class as3 or other reference project kindly provide me. also step step process access these images inside custom class. thanks in advance. there's bit of work involved when comes sprite sheets. there frameworks , libraries this. it depends on technique use display things (regular displayobjects, blitting, starling, ...) you should have sprite sheet bitmapdata object, either loading loader or embedding it. (how works not within scope of question, assume) from there, code such sheet: cut pieces. create second bitmapdata object, character or whatever. bitmapdata display. example of bitmap object. what use copypixels() copy portions of sprite sheet character bitmapdata. methods takes rectangle (among other things) parameter specifies portion of source bitmapdata (that's sprite sheet) should copied. what have change sections copied depending on want achieve. maybe there's s...

javascript - Track click on social plugin -

i'm stuck on seems simple. i have track click event on social sharing plugins (twitter, facebook, google+), doesn't matter wether page shared or not, want know difference between shares , clicks. far, 1 works twitter because can bind click event. it seems fb , g+ track actual share. know of solution? on facebook, can subscribe edge events, here´s information need (including possible events): https://developers.facebook.com/docs/reference/javascript/fb.event.subscribe/ information on how include in google analytics can found here, example: google analytics event tracking onclick code i believe google+ button clicks added automatically, can use advanced options of button generator, there´s js callback function: https://developers.google.com/+/web/+1button/

javascript - Countdown clock works properly offline but doesnt work online -

i have countdown clock on front page displays when view html file offline on server doesnt work. on server displays clock random numbers scattered across page. here index.html. clock div called dw_clock . in hero section i've tried changing positioning of stylesheets in header. i've tried putting css in html code still have issues. made file 2 style sheets see if google chrome 'inspect element' see flipclock.css doesnt seem see it, normal style.css . <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <!-- ================================= stylesheets ================================= --> <!-- bootstrap --> <link rel="stylesheet" href="css/bootstrap.min.css" /> <!-- web fonts --> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=lato:100,300,...

javascript - How to change browser bar url without reload -

i have website generates following url on home page in browser bar: http://example.com/int/bdf/eng/ i want change following without reloading page: http://example.com is there ie8+ solution available? i know window.history.pushstate("", "", ""); how use it? or better use htaccess file? according w3c standards can use location hash property. for example url this: http://www.example.com/test.htm#part2 the location.hash value be: "#part2" , here jsfiddle shows how can use that.

c++ - Qt 4.7 - glTexSubImage2D returns GL_INVALID_OPERATION -

i'm using qglwidget draw own picture via opengl in qt 4.7.2. use opengl because want stretch image fast , less cpu usage. for have 3 methods. 1 initialize opengl environment, 1 update image data different thread , 1 draw image itself. the problem in updateimage method call of gltexsubimage2d() return gl_invalid_operation error. tried debug gdebugger 1 error. if context 1 of program see texture size 0x0, after call of gltexsubimage2d(); init opengl void class::openglinit(void){ qglcontext* context = const_cast<qglcontext *>(qglcontext::currentcontext()); if (!context) { qdebug() << "can not current opengl context"; return; } context->makecurrent(); glgentextures(1,&texture); glbindtexture(gl_texture_2d, texture); glpixelstorei(gl_unpack_alignment, 1); gltexparameteri(gl_texture_2d, gl_texture_min_filter, gl_linear); gltexparameteri(gl_texture_2d, gl_texture_mag_filter, gl_linear); gltexparameteri(gl_te...

php xcopy giving 0 files copied -

i trying xcopy in php, cant seem work, did try going down route of psexec copy command didn’t work either. i have tried shell_exec,exec , passthru seem giving same error 0 files copied, yet if same command via command line files copy perfectly, cant permissions issue, must issue code, if can point out problem grateful when execute via command line works: c:\users\xante>xcopy c:\wamp\www\xcopy\copythis.bat \\testmachine\c$\xcopied c:\wamp\www\xcopy\copythis.bat 1 file(s) copied when execute same command via php output: array ( [0] => 0 file(s) copied) xcopy "c:\wamp\www\xcopy\copythis.bat" "\\testmachine\c$\xcopied\" this php code: $host="testmachine"; $execute = ('xcopy "c:\\wamp\www\xcopy\copythis.bat" "\\\"$host"\c$\xcopied\\"'); exec($execute,$output); print_r ($output)."<br />"; echo $execute; turns out wamp bit awkward , iss...

php - .htaccess redirect root to one file, all other files to another -

i have 2 domains using same webspace, originaldomain.com , newdomain.com i have placed .htaccess file @ root of newdomain.com if visitors go it, shows (but masks) url of: originaldomain.com/script.php i can similar using following rules: options +followsymlinks rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewriterule ^$ http://www.originaldomain.com/script.php [p] however, style sheets, images , javascript not loading. assume 1 of 2 things: they not applicable mod_rewrite rule , not found when originaldomain.com/item1.jpg being searched @ newdomain.com/item1.jpg all files may subject having php file stuffed before name, originadomain.com/item.jpg being looked @ newdomain.com/portfolio.phpimage1.jpg i'm looking create situation where: if visits newdomain.com/?variables masks , loads originaldomain.com/script.php?variables if visits www.newdomain.com/?variables masks , loads originaldomain.com/script.php?variables all other file re...

Include_In_Parent option for ElasticSearch and NEST library -

i using elasticsearch , nest .net library implementing search functionality needed in our app. in model, have type contains nested objects per below. [elastictype(name = "x")] public class x { [elasticproperty(includeinall = false, index = fieldindexoption.notanalyzed)] public string id { get; set; } [elasticproperty(type = fieldtype.nested)] public list<y> ys { get; set; } } any queries executed against x executed against list of ys. highlight hits in nested objects , based on https://github.com/elasticsearch/elasticsearch/issues/5245 . however, in order use proposed workaround, include_in_parent option should true nested object. how can option enabled using nest library? there elasticproperty property (i haven’t found obvious one) or other way so? thank you apparently can done using fluent syntax. above case code be: .addmapping<x>(m => m .properties(p => p .nestedobject<y>(n => n ...

tfs - How to Reassign Work Items in Visual Studio Online? -

Image
using visual studio online (free 2 users) & visual studio 2013, can create work items , edit them both in visual studio online web access , visual studio 2013. but when edit work item in visual studio online can not reassign other member in project. in visual studio 2013 can. note: on work item creation members shown selection. the new identity control deployed sprint 74 release. can start typing name or part of name & click search. on time, you'll have used (mru) list built-up people commonly assign work items to. new identity control released in future visual studio update experience match. brian harry has additional comments in december 2nd visual studio online update blog post . that's blog subscribe in addition new features blog available here: http://www.visualstudio.com/news/release-archive-vso

proxy - No internet in terminal -

similar questions 1 on net, failed solve problem after consulting them :( i trying sudo apt-get update on kubuntu 14.04 laptop, , ton of w: failed fetch http://... wicked happened resolving ... (-5 - no address associated hostname) messages also, ping google.com gives ping: unknown host google.com i can connect internet through firefox... it related proxy issue i saw suggestions add statements export http_proxy=http://username:pass@proxy_url:port/ .bashrc don't know proxy_url exactly. checking website http://aruljohn.com/details.php , can see port number have not available next proxy server please help! this seems related dns service. check content of /etc/resolv.conf in file should have nameserver xxx.yy.zz.www nameserver xxx.yy.zz.www if don't have lines beginning nameserver, should add there. use address provider gave or use public, example google dns 8.8.8.8. if have entries here, try ping them. if not responding add google dns ser...

jira rest api - Hit http url using python getting IOError -

i tried hitting below import urllib second_query="http://example.com" pw = urllib.urlopen(second_query) pw = pw.read() print pw i trying hit jira api - http://example.com getting following error traceback (most recent call last): file "abc.py", line 7, in <module> pw = urllib.urlopen(second_query) file "/abc/xyz/pqr/thirdparty/python/2.6/lib/python2.6/urllib.py", line 87, in urlopen return opener.open(url) file "/abc/xyz/pqr/thirdparty/python/2.6/lib/python2.6/urllib.py", line 203, in open return getattr(self, name)(url) file "/abc/xyz/pqr/thirdparty/python/2.6/lib/python2.6/urllib.py", line 358, in open_http return self.http_error(url, fp, errcode, errmsg, headers) file "/abc/xyz/pqr/thirdparty/python/2.6/lib/python2.6/urllib.py", line 371, in http_error result = method(url, fp, errcode, errmsg, headers) file "/abc/xyz/pqr/thirdp...

design patterns - Java multi-type method parameter? -

i wonder if possible require java method parameter of type finite set of types. example - using library 2 (or more) types have common methods, lowest common ancestor in type hierarchy object. mean here: public interface { void mymethod(); } public interface b { void mymethod(); } ... public void usemymethod(a a) { // code duplication } public void usemymethod(b b) { // code duplication } i want avoid code duplication. think of this: public void usemymethod(a|b obj){ obj.mymethod(); } there similar type of syntax in java already. example: try{ //fail } catch (illegalargumentexception | illegalstateexception e){ // use e safely here } obviously not possible. how can achieve designed code using such type of uneditable type hierarchy ? you write interface myinterface single method mymethod . then, each type want consider part of finite set, write wrapper class, this: class wrapper1 im...

android - Adapter not working with listview -

i want display icons in listview. here adapter public class iconadapter extends baseadapter { private int[] iconlist; private context context; public iconadapter(int[] iconlist, context contex) { this.iconlist = iconlist; this.context = context; } @override public int getcount() { return 0; } @override public object getitem(int position) { return null; } @override public long getitemid(int position) { return 0; } @override public view getview(int position, view convertview, viewgroup parent) { imageview mimageview = new imageview(context); mimageview.setbackgroundresource(iconlist[position]); return mimageview; } } this how set adapter int[] iconlist = new int[]{r.drawable.ic_action_content_new, r.drawable.ic_color_lens_black_48dp}; holder.mlistview.setadapter(new iconadapter(iconlist, context)); the problem listview doesn't display anythi...

How can I utilize Yahoo Weather API in android -

Image
i want develop app using yahoo weather api android. want current , forecast weather details. i have tried different sources (e.g.: https://github.com/survivingwithandroid/weatherlib , getting error weatherlib api android , unable execute activity in android weatherlib ) , getting different errors m unable resplve. there can proper tutorial or guide! error: -17 08:50:48.961 3168-3168/com.survivingwithandroid.weather e/androidruntime﹕ fatal exception: main process: com.survivingwithandroid.weather, pid: 3168 java.lang.runtimeexception: unable start activity componentinfo{com.survivingwithandroid.weather/com.survivingwithandroid.weather.mainactivity}: java.lang.nullpointerexception: attempt invoke interface method 'boolean java.util.list.isempty()' on null object reference @ android.app.activitythread.performlaunchactivity(activitythread.java:2298) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2360) @ android.app.activi...