Posts

android - Failed to resolve: com.mcxiaoke.volley:library:1.0.19 -

i wanted integrate volly library, got same error error:(15, 13) failed resolve: com.mcxiaoke.volley:library:1.0.19 here build.gradle : http://pastebin.com/ff3n8vfe someone faced issue before? see many projects using without problems :( thanks helping i met problems, you, maybe should add this! allprojects { repositories { jcenter() } }

Change MenuItem dynamically in Android? -

i have set of menuitems in actionbar , webview used display webpage part of .net project, when user login webapplication, there possibility change menuitem dynamically? i'm not sending request server. there way capture latest url has been loaded webview , compare other parameter? you have override onprepareoptionmenu inorder update menu item. see below piece of code: @override public boolean onprepareoptionsmenu(menu menu) { menuitem menuitem = (menuitem) menu.finditem(r.id.---); //your code........... }

Passing list of objects from Grails controller to iReport generated Jasper report -

can please me started on generating reports grails? let's have book domain class , want pass list of books ireport generated jasper report. need in order generate report lists book titles , authors? this: class book{ string author string title } def listbooks = { def books = book.list() chain(controller:'jasper',action:'index',model:[data:books],params:params) } what need on grails side , on ireport side? little resources jasper noobs.

c - Can't Understand Glib Error -

i making use of glib 2.0 framework. after time, c program outputs error: glib-critical **: g_hash_table_foreach_remove_or_steal: assertion `version == hash_table->version' failed can tell me means in general? google hasnt helped much. thank you a google search text provided produced: this indicates did g_hash_table_remove() (or g_hash_table_insert(), g_hash_table_replace() or similar) while iterating on same hash table. didn't spot happen. taken here . hopefully, have enough information find error in code.

ruby - Displaying Current User in view through a polymorphic association -

i attempting display current users name once logged in. therefore @ top of page "logged in patrick". have polymorphic association set whereby every user signs either player or coach. the polymorphic association under label or :tennis_player both coach , player play tennis. the code view below. <div class="container"> <header> <div class="logo"> <%= link_to(image_tag 'tennis_ball.png', :width => 100, :height => 100) %> </div> <div class="slogan"> <h3>setfortennis</h3> </div> <div id="user_nav"> <% if current_user? %> logged in <%= @current_user %> <%= link_to "log out", log_out_path %> <% else %> <%= link_to "sign up", sign_up_path %> or <%= link_to "log in", log_in_path %> <% end %> </div...

Rally Tool - API -

we have used qc tool till now, start using rally tool. as qc system of testing results, used extract data using macro designed based on api's. now time has come work on rally , design such tool. me understand how connect rally , extract data in excel format using programming language(especially vb script). first interest find out whether rally has api's qc used have, connecting , extracting data it? #!/usr/bin/env ruby # ruby script print out names of workspaces user has access to. # more api info: https://github.com/rallytools/rallyresttoolkitforruby # invoke 3 arguments: 'https://rally1.rallydev.com' 'username@domain.com' 'mypassword' require 'rally_api' @rally = rallyapi::rallyrestjson.new( :base_url => argv[0].end_with?('/slm') ? "#{argv[0]}" : "#{argv[0]}/slm", :username => "#{argv[1]}", :password => "#{argv[2]}", :version ...

java - How to inject a path into a type="file" field using JavaScript -

i'm having problem sending path file type="file" field (file upload scenario) handles bit weird. i'm using webdriver java , not wish use 3rd party tools such autoit. please note trying element.sendkeys not work, field default opens os browse-to-file type window cannot handled webdriver. you can see below how looks like: <input type="file" size="40" name="filename"> this not expand further , represents field + browse button! the solution found out how work above scenario (without sendkeys , autoit) javascript injection, have no idea how that. thanks, vivian thanks comments guys! the solution, sendkeys indeed, after generating retarded xpath in human history firepath. be careful, previous attempts didn't work xpath used before "//input..." , though valid, sending keys browse button, xpath-wise same element field (what sorcery this?). so yeah, has problems file upload forms via webdriver...