Posts

Why do android docs want me to import play services as a project and not as a lib? -

i going use google play services in android application. have no problem there, have theoretical question... in google docs api says must import project source sdk, , not *.jar file lib ( google play services setup docs ). this fine, find more natural add reference *.jar file in there. my question therefore is: there reason google says must this? if not i'd rather reference *.jar file. thanks, jason google play service contains resources (layout, images, etc.) cannot included in jar file. linked way framework compute xml resources of project give them unique ids. this why have import library project instead of including jar dependency.

search page that allow user to select between three types using php mysql -

i have search page include 3 types of search , want filter search upon selecting types type 1 : newest members type 2 : specialization type 3 : name specialization table: specialization_id specialization_name members table : user_id first_name last_name specialization registered_date but problem first type work fine second show members not selected specialization the first query specialization selecting secialization drop list the second join between sepcialization table , members tables can me ???? search.php //************for specialization droplist***************************// function specializationquery(){ $specdata = mysql_query("select * specialization"); while($recordjob = mysql_fetch_array($specdata)){ echo'<option value="' . $recordjob['specialization_id'] . '">' . $recordjob['specialization_name'] . '</option>'; } } $outputlist = ""; //*****...

perl - Attributes exchange using Net::OpenID::Consumer -

my $csr = net::openid::consumer->new( ua => lwp::useragent->new, consumer_secret => '123456xxx', required_root => "http://www.myopenidsample.net/", ); $openid = "https://me.yahoo.com"; $claimed_id = $csr->claimed_identity($openid); if ($claimed_id){ $check_url = $claimed_id->check_url( delayed_return => 1, return_to => "http://www.myopenidsample.net/response.cgi", trust_root => "http://www.myopenidsample.net/", ); print $q->redirect($check_url); } how attributes such email, firstname, lastname, , country? how append following parameters url? openid.ext1.mode fetch_request openid.ext1.required country,email,firstname,lastname,language openid.ext1.type.country http://axschema.org/contact/country/home openid.ext1.type.email http://axschema.org/contact/email openid.ext1.type.firstname http://axsch...

objective c - Strange Bug in iOS 6 UINavigationController -

Image
i have found strange bug in ios. when use uinavigationcontroller , push other controllers, titleview shifted right how many controllers pushed it's looks this: my code simple: self.navigationitem.title = @"test title"; in second case, controller has 5th in viewcontrollers stack. controller in cases same. i using appearance uibarbuttonitem , in appdelegate. [[uibarbuttonitem appearance] setbackbuttontitlepositionadjustment:uioffsetmake(-1000, 0) forbarmetrics:uibarmetricsdefault]; i fix trick =) [[uibarbuttonitem appearancewhencontainedin:[uinavigationbar class], nil] settitletextattributes:@{uitextattributefont: [uifont systemfontofsize:0.1]} forstate:uicontrolstatenormal];

java - Is it possible to use MathML to describe data tables? -

i'm using jeuclid library rendering mathml script. want display data tables using mathml . i googled results describe mtable examples showing describing matrices. so, i'm puzzled whether possible. in our current framework, it's not possible use other resources except graphics object of jpanel or mathml script. so, please point me in right direction. links examples highly appreciated. mtable not matrices (in particular not add parenthesis around data) used vertical alignment layouts such tables , aligned equations.

java - Converting Vertex[] to graph -

i making pacman game , working on ghosts ai. planning on using dijkstra's algorithm pathfinding. problem when game loaded vertexes graph stored in matrix. trying assign each vertex of edges this for(int x = 0; x<40; x++) { for(int y = 0; y<40; y++) { vertex vertex = map[x][y]; vertex.adjacencies = new edge[]{new edge(map[x-1][y], 1), new edge(map[x+1][y], 1), new edge(map[x][y-1], 1), new edge(map[x][y+1], 1)}; } } the problem throws array out of bounds exception. how fix without putting in tons of if statements check if current vertex on edge of graph. one easy way include non-traversable border around edges. for example, if actual map 40x40, can declare 42x42 array. rows 0 , n non-traversable, columns 0 , n. you'd still need handle cylindrical travel of pacman between left , right sides.

objective c - Is it possible single Box App to authenticate different iOS apps? -

the whole idea authenticate app , app lite , app iphone , app iphone lite single box.com app id , return user right app redirected user authorization/authentication web site. my conclusion till leads using different app id, because of lack of option add different redirect url's , respectively possibility [box-api] recognize right caller application. will work if try embed auth url in uiwebview , handle response webview? we don't support use case, , you'll need separate app ids