Posts

Showing posts from May, 2012

sql - EF 5 + Azure + MigrationFirst overrides database name. Why? -

i created database in azure setting own custom name. created ef 5 code first entities , added migrations. on application startup called these 2 lines: database.defaultconnectionfactory = new sqlconnectionfactory(connectionstring); database.setinitializer(new migratedatabasetolatestversion<mydatacontext, myconfiguration>()); connection string taken straight azure: server=tcp:xxx.database.windows.net,1433;database=dbname;user id=yyy;password=zzz;trusted_connection=false;encrypt=true;connection timeout=30; on fist call expected database dbname filled tables according poco schema. instead new database generated complete namespace name of context: myservice.business.entity.mycontext why migration not accept database name specified in connection string? you can specify database name or connection string name in constructor of dbcontext: public class mydatacontext : dbcontext { public mydatacontext: base("dbnameorconntectionstringnamehere

AngularJS $http error function never called -

i have simple code : $http.get("/api/test") .success(function (data, status, headers, config) { console.log(data); return data; }).error(function (data, status, headers, config) { alert("error"); return status; }); it works fine, error function never called, when return 404 (not found) server... in case calls 'success' function status = 404... is correct? thanks fiddler: request http://localhost:41234/api/test http/1.1 host: localhost:41234 connection: keep-alive accept: application/json, text/plain, */* x-requested-with: xmlhttprequest user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.22 (khtml, gecko) chrome/25.0.1364.172 safari/537.22 referer: http://localhost:41234/ accept-encoding: gzip,deflate,sdch accept-language: pt-br,pt;q=0.8,en-us;q=0.6,en;q=0.4 accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.3 cookie: asp.net_sessionid=bd1b3rib5j4beub0xbuhb1hm; formsauthentication=xxxxx respo

azure - Service Bus Brokered VS Relayed Messaging -

i have question confusing me differences between types of service bus, brokered messaging , relayed messaging? not looking development perspective want understand more concept , differences between them. thank you. service bus relay , service bus brokered messaging both mechanisms developing distributed , hybrid applications. however, target different development , access patterns. service bus (sb) relay provides simple & secure way service remoting , i.e., enables securely expose service hosted on private cloud external clients. case service remoting scenarios, clients explicitly invoke methods exposed "relayed" service. primary advantage of sb relay service can exposed without requiring changes firewall settings or intrusive changes corporate network infrastructure. sb brokered messaging on other hand provides durable messaging platform components such queues, topics , subscriptions. these can used implement complex patterns such publish-subscribe ,

ruby on rails - Is it possible to see if there is a parameter whose name matches a given regex? -

i'm speaking of param name, not value. couldn't find on that. i'd know if there paramater name matches /[a-za-z]+_page/. value not relevant. is possible? try following: params.keys.any? { |key| key.match /[a-za-z]+_page/ }

asp.net - MVC4 issue with showing multiple partial views on a single View -

i have been struggling problem no avail. using mvc4 have 3 models wish show on single view via partial views. single view comprised of 3 partial views (3 numerated list tables). can 1 model display in view, can't figure out how display other 2. here have view controller: [allowanonymous] public actionresult dashboard() { //database.setinitializer<alertscontext>(null); database.setinitializer<memberuserscontext>(null); //database.setinitializer<clubscontext>(null); //alertscontext db = new alertscontext(); memberuserscontext db = new memberuserscontext(); //clubscontext db = new clubscontext(); //db.memberusers.tolist() return view(db.memberusers.tolist()); } this have model view (to compile remove 2 aren't under @model ienumerable statement: @model ienumerable<gmc.models.memberusers> <div class="dashboard_alerts"> @html.partial(&quo

jquery - building a list and sending to an AJAX method -

i building list array pass via ajax using data parameter. everything looks when write out list console, ajax method doesn't it. for (i = 0; < carlist.length; i++) { var cardata = { "data": { "carid": '"' + carlist[i] + '"', "passengercar": "true", "automatic":"true" } }; console.log(cardata); } $.ajax({ datatype: "json", data: cardata .... am doing improper? thanks var cardata = {}; (i = 0; < carlist.length; i++) { cardata["data_"+i] = { carid : carlist[i], passengercar: true, automatic : true }; } $.ajax({ url : 'someurl.php', datatype: 'json', //expects returned data server json data : cardata }).done(function(data) { console.log(data); });

choosing wcf security mode -

i going work on wcf service expose our catalog information several external organization access. authenticate/authorize them using simple table in end contains login information. (right there one, grow down line) should using wcf message transport credential scenario? thoughts/suggestions welcome. matter how access our wcf service? using vs2012. given clients may not using wcf or windows, recommend using wshttpbinding, allows use message security , attach username , passwords request. on host can use custom password validator verify credentials against database. see http://msdn.microsoft.com/en-us/library/aa702565.aspx more information on that. ssl additional option if want transport secured.

Google Custom Search sort attribute issue -

i having problems using sort attribute within gcs request. whenever use sort targeting pagemap element returns 0 results. check out below. missing or misunderstanding something? request without sort: http://www.google.com/cse?cx=010537259921960391009:s7pan_vavqu&output=xml_no_dtd&q=fire+more:pagemap:course request sort: http://www.google.com/cse?cx=010537259921960391009:s7pan_vavqu&output=xml_no_dtd&q=fire+more:pagemap:course&sort=course-coursenumber:a you didn't enable sort option. read how in: http://support.google.com/customsearch/bin/answer.py?hl=en&answer=2549537

email - Proper formatting of "from" in php mail() function -

i want have "from" part of php generated email company name. apparently makes spam filters sad. so, code is... $mail->fromname = 'company name <some_email@domain.com>'; my issue gmail , aol keep returning these emails , part looks this... from: "company name <some_email@domain.com>" <> any thoughts "<>" @ end? the <> at end of "company name <some_email@domain.com>" <> indicates address interpreted containing associated name part,with no real email address. try generating address 'company name' <some_email@domain.com> or some_email@domain.com (company name) edit: possible reason problem mailer using separate fields name part , address part of header. if so: $mail->from = "some_email@domain.com"; $mail->fromname = "company name"; should solve problem.

c# - DataGridView will not update unless the application is restarted -

working in visual studio 2012 c#; , i'm trying implement datagridview. using part of program add records access database, datagridview uses populate information. i used integrated setup, takes away lot of work far making connection. works fine, datagridview won't show recent changes database unless close application , restart it. once app restarted, works fine , list populates correctly. i've tried refreshing database changing data source null actual source, , neither have worked far. ideas? can provide code needed. edit: code requested: public void frmviewbook_load(object sender, eventargs e) { datagridview1.datasource = null; datagridview1.datasource = this.accdb.book; this.booktableadapter.fill(this.accdb.book); } if doing updating manually , not using built-in capabilities of gridview need call databind() .

c++ - Borland error that works in Microsoft: Couldn't find a match for 'ifstream::open' -

i want read in text file has name: abc.txt the text file contains simple a, b, , c, each on own line. when compile using microsoft compiler, compiles no problem @ , output expect (see below): a b c (blank line here) here's borland compile line i'm using: bcc32 -w -ebor.exe main.cpp here's main.cpp file i'm using: main.cpp #include <iostream> #include <fstream> #include <string> void printout(const std::string &file); int main(void) { printout("abc.txt"); return 0; } void printout(const std::string &file) { std::ifstream words; std::string str; words.open(file); while(!words.eof()) { std::getline(words, str); std::cout << str << "\n"; } words.close(); } the exact error i'm getting in borland follows: error e2285 main.cpp 17: not find match 'ifstream::open(const std::string)' in function printout(const std::string &) i'm getting warning,

java - How to create a regex that replaces two or more consecutive identical characters with only two? -

assuming have twitter message similar following: "hoot, soooooo coooool!!!" i want come java regex string.replaceall result in following: "hoot, cool!" i started , have tried permuting following without success: original.replaceall("(.)\\1+", "$1"); does know how come regex greedily reduce several consecutive characters 2 characters? solution must not reduce 2 repeating characters 1 (e.g. word hoot should not reduce hot). if need replace 2+ characters two, can modify expression, this: original.replaceall("(.)\\1+", "$1$1"); however, there not enough information in regex make exception "soooooo" , trim "so" , opposed "soo" . here demo on ideone .

php - How to execute module bootstrap resources present inside another module's bootstrap in Zend Framework 1? -

i bootstrapping application zend_application_module_bootstrap inside various module directories. how can require resource inside module's bootstrap executed first? // app/modules/user/bootstrap.php class user_bootstrap extends zend_application_module_bootstrap { protected function _inituser() { } } // app/modules/author/bootstrap.php class author_bootstrap extends zend_application_module_bootstrap { protected function _initauthor() { $this->bootstrap('user'); // fatal: resource matching 'user' not found } } i've decided use plugins achieve fine-grained functionality, execution order cannot managed properly, therefore making module bootstraps poor choice place code dependencies. used referenced answer below base decision: load /execute module based bootstraps each module in order

android urlconnection forces ssl -

Image
i trying connect server on port 8080 androidhttpclient forcing not on 8080 use ssl. offending code url url = new url("http", "google.com", 8080, ""); httpurlconnection urlconnection = (httpurlconnection) url.openconnection(); urlconnection.setrequestmethod("get"); urlconnection.setrequestproperty("accept", "*/*"); urlconnection.connect(); and charles log. note url field using "https://" now when change port 80: url url = new url("http", "google.com", 80, ""); httpurlconnection urlconnection = (httpurlconnection) url.openconnection(); urlconnection.setrequestmethod("get"); urlconnection.setrequestproperty("accept", "*/*"); urlconnection.connect(); everything works fine: i have no idea why forces ssl when not on port 80. had similar issue androidhttclient defaulthttpclient. seems issue android.

osx - Writing to derived data in an archived app -

i produced .aiff file in app , it's in derived data folder, somewhere deep in /library. when run app in xcode works fine. when archive it, program crashes when tries write. how solve this? need learn use core data or there easy fix? are trying write current working directory? (if you're trying [foo writetofile:@"output.aiff" …] , are.) when run within xcode, cwd build products directory within deriveddata application's bundle gets created. when run outside of xcode, cwd root of startup disk, not ordinarily have write access , should never touch without explicit orders , permission user (via open panel or similar). either way, cwd wrong place put things. you should run save panel , write file in completion handler the url save panel has you . if want stash file in constant directory, ask nsfilemanager for caches folder in the user domain (~/library/caches), tell create folder inside folder name main bundle's bundleidentifier , write

c# - Object reference not set to an instance of an object using ( READTOEND) -

i have following code download txt file using ftp , write file. ftp = (ftpwebrequest)webrequest.create("ftp://" + ftphost + ftpdir + "/sapvalidobjects.txt"); ftp.method = webrequestmethods.ftp.downloadfile; ftp.usebinary = false; ftp.credentials = new networkcredential(ftpuserid, ftppwd); ftpwebresponse response = (ftpwebresponse)ftp.getresponse(); stream sresponse = response.getresponsestream(); streamreader srsapcostobjects = new streamreader(sresponse); m_swsapcostcentres.write(srsapcostobjects.readtoend()); m_swsapcostcentres.close(); response.close(); m_swsapcostcentres = new streamwriter(properties.settings.default.sapint + @"\sapcostcentres" + ".txt"); in reason throws exception @ m_swsapcostcentres.write(srsapcostobjects.readtoend()); am not sure why,some 1 please guide me. i guess issue file trying write exists , opened application. try delete file: properties.settings.default.sapint + @"\sapcos

hashmap - Clojure 2d list to hash-map -

i have infinite list that: ((1 1)(3 9)(5 17)...) make hash map out of it: {:1 1 :3 9 :5 17 ...) basically 1st element of 'inner' list keyword, while second element value. not sure if not easier @ creation time, create list use: (iterate (fn [[a b]] [(computation a) (computation b)]) [1 1]) computation of (b) requires (a) believe @ point (a) not keyword... whole point of 1 can access value (b) given (a). any ideas appreciated... --edit-- ok figured out: (def my-map (into {} (map #(hash-map (keyword (str (first %))) (first (rest %))) my-list))) the problem is: not seem lazy... goes forever though haven't consumed it. there way force lazy? in order lazy, computer have linear scan of input sequence each time key requested, @ least if key beyond has been scanned far. naive solution scan sequence every time, this: (defn get-val [coll k] (some (fn [[a b]] (when (= k a) b)) coll)) (get-val '((1 1)(3 9)(5 17)) 3) ;=>

Apache HTTPClient doesn't allow more than 1500 reusable connections -

i'm using apache httpclient (4.2.2) / java7 open many reusable connections tomcat 7 server (to simulate many users repeatedly hitting service). both client , server on ubuntu 12 (but different machines). made sure systctl.conf , limits.conf allow scenario. this works 1500 simulated users / connections. connections reused expected. somewhere between 1500 , 1600 simulated users however, connections no longer reused , closed/ re-opend time. why might case? i don't think problem on server side when start multiple simulation clients on different machines against same server, server has no problems reusing connections long each client doesn't go beyond 1500 connections. there can various reasons why connections not longer being re-used depending on configuration of connection manager or server side configuration. easiest way find out reason run httpclient context logging on described in 'context logging connection management / request execution' example i

What's the best programming language for learning machine learning? -

i have professional software development background c/c++/java. learning machine learning, best programming language learning machine learning? r? remember andrew ng mentioned programming language learning machine learning in open course machine learning, didn't catch that. catch that? people use following sets r matlab / octave python java scala python initial prototyping , can check results fast. in long run runs slower compiled languages java but libraries http://scikit-learn.org/stable/ make life great using python people use scala there many libraries picking up if go below link there description of pros , cons of each http://www.kaggle.com/forums/t/3642/what-tools-do-people-generally-use-to-solve-problems/21728 happy learning

Small CSS image not displayed correctly -

i'm having problem displaying small image using css. i'm trying show icon sized picture (the picture has few pixel border isn't edge edge) image isn't centered when it's displayed , part of being hidden right , bottom shadows of surrounding box. of shadows think image small, shadows of box can't ignored in sizing. here's css. ideas? .delete_button { background: url('trash_can.png'); background-repeat: no-repeat; width: 20px; height: 24px; display: inline; } try this, adjusting background-position values until image positioned correctly: .delete_button { background: url('trash_can.png'); background-repeat: no-repeat; width: 20px; height: 24px; display: inline; background-position : -3px -4px; } expanding on little further, might want try add small images 1 icon image in matrix style. can select image want using width, height , background-position. allow icons loaded @ once sing

data structures - Adding element to front of linked list in C -

i'm following stanford cs ed library tutorial on linked lists. trying add new list front of linked list, , it's not working based on printout length function defined below. #include <stdio.h> #include <stdlib.h> //build new struct node //node has value , points next node struct node{ int value; struct node *next; }; //declare new struct node contains 3 nodes (head, middle, tail) struct node *build123(){ struct node *head, *middle, *tail = null; head = malloc(sizeof(struct node)); middle = malloc(sizeof(struct node)); tail = malloc(sizeof(struct node)); head->value = 3; head->next = middle; middle->value = 5; middle->next = tail; tail->value = 9; tail->next = null; return head; }; //declare function length , variable counter calculate size of list int length(struct node *head) { int count = 0; struct node *iterator = head; while (iterator != null) { count++;

javascript - A horizontal chart with Ordinal scale yscale, but instead of pure flat names > a tree structure< -

i in middle of project. project include design of marketing dashboard using javascript , amazing d3.js. need horizontal chart ordinal scale, instead of pure flat name have tree structure. instead of text design tree vertical labels... requirement : when end user click on 1 node corresponded bar(s) collapse 1 bar (off course value of bar sum of children bars.) in order histogram, bars must start same x. distance bar bar, in vertical direction, should same. the following “toy” program shows above vertical label out . unfortunately in order achieve desirable layout have added “dummy node” . not solution because cannot figure out, how make “node collapse function”. thank time. <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <script type="text/javascript" src="d3/d3.v3.js"></script> <style> .node { font: 11px sans-serif; } .l

jquery - WebUrlLoaderClient : Synchronous request timed out after 10 -

i've been developing android application using phonegap. in app use xmlrpcrequest request. when make request, maybe due slow connection, request timed out , following error e/weburlloaderclient(574): synchronous request timed out after 10 seconds 0th try is there anyway "catch" error, or maybe increase timeout time?? i have same problem since updated phonegap 2.8.1, version using? not seem listen ajax argument timeout @ all: var dataobj = { 'value': whatever'}; //navigator.notification.alert(json.stringify(dataobj)); $.ajax({ type: 'post', url: url, async: false, data: json.stringify(dataobj), datatype: 'json', timeout: 25000, contenttype: 'application/json; charset=utf-8', crossdomain: true, xhrfields: { withcredentials: true }, beforesend: function(xhr)

cocoa touch - ipad modalviewcontroller when dismissed does not go to the viewdidappear of the mainviewcontroller -

Image
hi have modalview controller pops on main menu after user logs in. used additional roles needs saved on userdefaults. modal gets dismissed doesn't go through -viewdidappear method after. had programmed after choosing role, load whole main menu populated data based off of role. used "presentviewcontroller:rolevc" instead of modal decided not use anymore cannot modify size of vc (i want display modal style). anyway, presentviewcontroller, parent vc goes through -viewdidappear works me before. i'm not sure how force go through viewdidappear again after dismissing modal. here's screens make more understandable. this what's inside viewdidappear of main menu. (....will direct traffic vc) if([[nsuserdefaults standarduserdefaults] objectforkey:@"role"] == nil){ /*uiviewcontroller *rolevc = [storyboard instantiateviewcontrollerwithidentifier:@"sbidroleviewcontroller"]; [self presentviewcontroller:rolevc animated:yes compl

python - Unable to process this regular expression -

i have following "greeksymbols.txt" Α α alpha Β β beta Γ γ gamma Δ δ delta Ε ε epsilon Ζ ζ zeta Η η eta Θ θ theta Ι ι iota Κ κ kappa Λ λ lambda Μ μ mu Ν ν nu Ξ ξ xi Ο ο omicron Π π pi Ρ ρ rho Σ σ sigma Τ τ tau Υ υ upsilon Φ φ phi Χ χ chi Ψ ψ psi Ω ω omega i trying convert anki plain text file tab delimeter. converting each row 2 cards front symbol (in uppercase or lowercase) , name. have following. #!/usr/local/bin/python import re pattern = re.compile(r"(.)\s+(.)\s+(.+)", re.unicode) input = open("./greeksymbols.txt", "r") output = open("./greeksymbolsformated.txt", "w+") line = input.readline() while line: string = line.rstrip() m = pattern.match(string) if m: output.write(m.group(1) + "\t" + m.group(3) + "\n") output.write(m.group(2) + "\t" + m.group(3) + "\n") else: print("i unable process line '" + string + &

java - MultiKeyMap vs. Map with Map values -

what benefits of using multikeymap vs. using map map values in matters of performance (any maybe readability, in opinion)? when use multy key map, single lookup done in underlying hashmap while if go using map map values have perform @ least 2 lookups find element looking for. also note may use generics map of map-s , may specify key-s , values types, while multikeymap can not that. why using map of map-s bit "safer" in aspect.

c# - NFC Software developement kit NFC wrapper sample -

when open nfc wrapper sample code on desktop 32 bit operating system program works stating "scm_nfc.dll loaded". when tried on laptop 64 bit operating system states "nfc wrapper not found sure file scm_nfc.dll present in search path. can tell me whats wrong? on configuration manager of visual studio make sure choose x86 target platform. program needs runs 32bit application path resolved.

sql - mysql count distinct positive values but count all -1 values in table and give total? -

i have table called ptb_profile_views looks this: id | profile_id | viewed_profile_id 1 2 6 2 2 6 3 3 6 4 -1 6 5 -1 6 i have been trying count positive values in 'profile_id' once distinct values , count -1 values many times appear following query: function check_profile_views3() { global $connection; global $_session; $query = " select id,profile_id,viewed_profile_id count ptb_profile_views profile_id > 0 group profile_id union /*shows -1 profile id's*/ select id,profile_id,viewed_profile_id ptb_profile_views profile_id <= 0"; $check_profile_views_set3 = mysql_query($query, $connection); confirm_query($check_profile_views_set3); return $check_profile_views_set3; } so end result 2, 3, -1, -1 but instead of echoing out actual values them selves want query count of values. so... 2, 3, -1, -1 = total of 4 i trying call query

sql - I need to set as foreign key which refers to one of the composite primary key in other table -

i have 3 tables composite primary keys, need set foreign key refers 1 of primary key in other table. ie, table 1 : merchant(mid,mname,addid,..) pk(mid ,addid) . table 2 : address(addid,name..) pk(addid) table 3 : store(storeid,addid,mid,storename,..) pk(storeid,addid,mid) mid in table store foreign key primary key mid of merchants table, addid in tbl store foreign key primary key in table address. how relationship set in sql server management studio express using gui? your constraints work this, i.e. in cascading style: alter table store add constraint fk_store_merchant foreign key (mid, addid) references merchant (mid,addid) alter table merchant add constraint fk_merchant_address foreign key (addid) references address (addid) not sure how in gui, run query window.

html5 - SVG is rendering differently in Firefox -

working on svg render chart. click here view svg chart when view chart in google chrome or internet explorer getting 2 groups expected. when render on mozilla firefox , first group getting rendered. unable trace out. pleas me :) your problem setting no useful width , height on <svg> , no viewbox. result ends 150px tall 300px wide (the default replaced elements size in css) , clips off outside that. @ least that's happens in browsers following svg spec here, ie , chrome not.

Executing Neo4j Cypher Query (by Java) Using existing Dataset -

i directly made neo4j dataset using neo4j console ("localhost:7474") (as knew "graph.db") wanna execute cypher query (by java) using data. i saw example https://github.com/neo4j/neo4j/blob/master/community/cypher/src/test/java/org/neo4j/cypher/javacompat/javaquery.java i wanna use way directly use existing data. how can this? if using neo4j in embedded mode i.e. runs within same jvm application, can access using: graphdatabaseservice graphdb = new graphdatabasefactory().newembeddeddatabase(dbpath) where dbpath path database created using webadmin. can find path in neo4j install directory/conf/neo4j-server.properties (the property name org.neo4j.server.database.location) once have instantiated graphdb, can execute cypher queries described in http://docs.neo4j.org/chunked/stable/tutorials-cypher-java.html if not using neo4j in embedded mode , want connect existing server running on port 7474, can use java rest binding: https://github

FusionCharts PHP with Ajax -

i'm using fusioncharts free populate chart. in main.php: <html> <head> <script language="javascript" src="fusioncharts/fusioncharts.js" ></script> <script language="javascript"> function ajax(divid) { if (window.xmlhttprequest) xmlhttp=new xmlhttprequest(); else xmlhttp=new activexobject("microsoft.xmlhttp"); xmlhttp.onreadystatechange=function() { if (xmlhttp.readystate==4 && xmlhttp.status==200) document.getelementbyid(divid).innerhtml=xmlhttp.responsetext; } return xmlhttp; } function detailedchart(couid) { xmlhttp = ajax("detaileddiv"); xmlhttp.open("get", "getdetailedresult.php?couid=" + couid, true); xmlhttp.send(null); }

How can I know bluetooth is enabled or not on Windows phone 8? -

i can use connectionsettingstask access bluetooth settings, how can know whether bluetooth's enabled after task completed? i checked windows phone marketplace, found app can that, example: http://www.windowsphone.com/en-us/store/app/quick-settings/2a2cbaa7-6d75-420c-ae14-2339618da43e thanks! it's suggestion,this using, sure there better ways private async void findpaired() { windows.networking.proximity.peerfinder.start(); try { var peers = await windows.networking.proximity.peerfinder.findallpeersasync(); bth = true; //boolean variable } catch (exception ex) { if ((uint)ex.hresult == 0x8007048f) { bth = false; } } } an error 0x8007048f indicated if bluetooth turned off. working me without problems. more information visit link good luck mate (:

dependencies - algorithm to resolve version scope based dependency -

i have problem on dependency algorithm, dependency similar maven dependency, except it's strict version scope based. for example: component a, version 1 depends on: component b, version 1~3; , component c, version 2~3 component d, version 1 depends on: component b, version 2~4; , component c, version 1~2 now, want dependencies when want install component a, version 1 , component d, version 1. because depend on component b,c need correct algorithm correct version of b , c further more, may need upgrade component , d. example, have below new versions: component a, version 2 depends on: component b, version 3~5; , component c, version 4~5 component a, version 3 depends on: component b, version 6~7; , component c, version 4~5 component d, version 2 depends on: component b, version 3~4; , component c, version 3~4 now need algorithm correct version of , d can upgrade , dependencies. 1 problem here component a, version 3 , component d, version 2 has dependency conflict of

Debug ndk Jni that is a prt of Android application -

i have application partly written in c++ , compiled through ndk, part located on separate jni folder. question is: can debug c++ code part of application? can start debug on sdk , after jump breakpoint on jni code? yes, here how curtesy of martin hejna

Android Google Analytics connection to service failed -

i've implemented google analytics (v2) android app. while ago code managed send data profile (v2) succesfully. refuses connect service: 04-09 14:42:49.911: w/gav2(8576): thread[main,5,main]: need call initialize() , in fallback mode start dispatch. 04-09 14:42:49.921: i/gav2(8576): thread[main,5,main]: exceptionreporter created, original handler com.android.internal.os.runtimeinit$uncaughthandler 04-09 14:42:50.051: d/libegl(8576): loaded /system/lib/egl/libegl_mali.so 04-09 14:42:50.061: d/libegl(8576): loaded /system/lib/egl/libglesv1_cm_mali.so 04-09 14:42:50.061: d/libegl(8576): loaded /system/lib/egl/libglesv2_mali.so 04-09 14:42:50.120: d/openglrenderer(8576): enabling debug mode 0 04-09 14:42:50.190: w/iinputconnectionwrapper(8576): showstatusicon on inactive inputconnection 04-09 14:42:54.881: i/gav2(8576): thread[gathread,5,main]: connecting analytics service 04-09 14:42:54.891: i/gav2(8576): thread[gathread,5,main]: connect: bindservice returned false intent { act=c

html - Anchor Tag Not working -

Image
i have 2 anchor tag below <a href="www.exx.com" target="_blank"> annualbudget</a> when click above anchor tag ,its not gone correct url( for it's gone mydomainname/www.exx.com ). same time below anchor tag working , go correct url . <a href="https://www.exx.com" target="_blank"> annualbudget</a> why www not worked https worked ? , how can solve issue ? update : the url entered user in textbox .so how can check ? try putting "http://" in front. i.e. <a href="http://www.exx.com" target="_blank">annualbudget</a> "www" not protocol/scheme. https or http protocols. absolute urls have have "scheme" in front, see details urls on wikipedia . alternatively, work: <a href="//www.exx.com" target="_blank">annualbudget</a> update 1: since comment input comes user, let m

XSLT from 2 XMLs -

i'm new xslt advanced program. have doubt in making xslt 2 different xml files. below 2 xml files have. ahk-authors.xml <?xml version="1.0" encoding="utf-8"?> <chapters> <chapter no="1"> <head-4>by j. r. weeramantry</head-4> </chapter> <chapter no="2"> <head-4>by ernest yang<footnote id="ahk-02.1.fn0" prefix="*"> <footnote-para>i acknowledge , express gratitude assistance provided colleagues, mr. kevin hong , ms. sharon leung, in preparation of chapter. errors , omissions own. </footnote-para> </footnote> </head-4> </chapter> <chapter no="3"> <head-4>by david bateson , edmund wan</head-4> </chapter> <chapter no="4"> <head-4>by timothy hill , mark lin</head-4> </cha