Posts

Showing posts from May, 2010

chisel - Searching for Riscv Documentation -

i'm looking documentation risc v rocket tile "nasti" interface protocol (acquire, grant, ...) communicates l1 network. thanks. probably here you'll find useful information: https://github.com/sergeykhbr/riscv_vhdl/ file rocket_soc/rocketlib/types_rocket.vhd implements common function , documented signals of bridge "tilelink" "amba axi (nasti)" bus (line 555). file rocket_soc/rocketlib/tilelink/axibridge.vhd bridge itself.

Excel VBA Find a row in another sheet, then change a cell in the same row -

i know there lots of questions this, couldn't of them work me. i'm putting print button on print sheet. when clicked take order number (which on print sheet), find on orders sheet put text ,"printed" column in same row of order. i've solved printing part no problems there. couldn't of codes work. i'm newb. please consider answers :) sub macro1() ' ' macro1 macro ' 'activesheet.printout dim ws1 worksheet, ws2 worksheet dim acell range, bcell range dim lrow long set ws1 = sheets("sprs"): set ws2 = sheets("etÝket") set acell = ws1.columns(1).find(what:="26182-2" _ , lookin:=xlvalues, lookat:=xlwhole, searchorder:=xlbyrows, _ searchdirection:=xlnext, matchcase:=false) thisworkbook.worksheets("sprs").range(acell).value = "printed" end sub in click buttons function print add like: thisworkbook.works...

Database stuck in executing query or slow SQL Server -

update : tried re-creating table in same database , able run select statement fine. tried select * [unnik].[dbo].[leads] with(nolock) order id desc ; which works. temporary solution want know going on? we have database server has 50 plus databases in it. more 50gb of size morning there 1 database running slow or not responding in query. this database doesn't work. others works fine , database small 20,000 records only. when run query like select * [unnik].[dbo].[leads] order id desc; it stuck in executing query status circle progress animation. even limiting 1 query doesn't show anything. select top 1 * [unnik].[dbo].[leads] order id desc; what problem? no expert in database trouble shooting. php developer , of knowledge know in database queries related php scripting. tried inserting record in database , works fine. select statement doesn't work or queries has viewing.

scala - how to conditionally pass a message to a specific next stage (among other stages)? -

consider simple scenario when depending on attribute of message passing through, want processed specific next stage , continue on. [source[actionmessage]] ~> [flow[actionmessage, enrichedactionmessage]] ~> (eam: enrichedactionmessage => eam.actiontype match { case actiona => eam ~> flow[enrichedactionmessage, reactiona] ~> sink[reactiona] case actionb => eam ~> flow[enrichedactionmessage, reactionb] ~> sink[reactionb] case actionc => eam ~> flow[enrichedactionmessage, reactionc] ~> sink[reactionc] }) how achieve conditional routing stage graph stage ? this answer based on akka-stream version 2.4.2-rc1 . api can different in other versions. dependency can consumed sbt : librarydependencies += "com.typesafe.akka" %% "akka-stream" % "2.4.2-rc1" use partition component: val shape = graphdsl.create() { implicit b ⇒ import graphdsl.implicits._ val first = b.add(sink.foreac...

android - How to share String among multiple modules? -

i have 3 modules: mod1 , mod2 , mod3 . module mod1 has dependencies mod2 , mod3 . i want have 1 string (in particular useragent because 3 modules http-talk server , 3 should have same user agent set) shared among 3 modules. if "one string" want make common other modules, in strings.xml file(not string value in .java file), can create common module say, mode0 , including string values want make common other modules in it's strings.xml file. can add mode0 dependency other modules. maybe not best way but, hope useful!

javascript - Docusign / Salesforce: Sending an envelope from a Salesforce custom object gives an error message 'no contacts on record' -

i want send envelope directly salesforce (custom) object without end user action required other hitting button 'send docusign'. but on hitting button 'send docusign' error: 'there no contacts on salesforce record sending from. add 1 or more contacts record , try again'. , can go salesforce. of course there no contacts defined on object in salesforce. object related account , contacts , there contacts stored. why isn't working correctly? can me? more info: when change 'var oco = "send";' 'var oco = "tag";' seems work. docusign page using correct template , salesforce database data filled out correctly. can't issue? the other thing doesn't seem change recipients (list) defined in template recipients defined in 'var crl'. can cause of problem? more info: var crl = "email~{!customobject__c.e_mail__c};lastname~signername;role~signer 2;email~me@home.com;lastname~myname;role~signer 1;loaddef...

html - Footer is not displaying in full page width using Bootstrap 3 -

i checked bootstrap.min.css , width:100% not mentioned navbar , navbar-inverse , navbar-fixed-top classes still displaying 100% width header section. <nav class="navbar navbar-inverse navbar-fixed-top" > <div class="container"> <div > <h3>free area</h3> </div> </div> </nav> similarly want display footer in 100% width according page width. used below css , html code not displaying 100% width footer. how can make footer displays in entire width of page? css footer { margin: 0px 0; background:#006699; } html <footer> <div class="container"> <div class="row "> <div class="col-md-6 col-sm-6"> <h3>section area 01</h3> <ul> <li><a href="#">link1</a></li> <li><a...

Running Selenium WebDriver test in parallel with NUnit3 -

i using parallelizable attribute of nunit3 run selenium webdriver tests, test running sequential. number of worker default 4 machine. have 2 fixtures below: [testfixture] [parallelizable(parallelscope.fixtures)] public class seleniumtest1 { [test] public void is_title_correct() { iwebdriver driver = new firefoxdriver(); driver.navigate().gotourl("http://www.google.nl"); string actualtitle = driver.title; string expectedtitle = "google"; assert.areequal(expectedtitle, actualtitle, "title not correct"); driver.quit(); } } how can run in parallel, can open 2 browsers @ once? it depends unit test runner using run tests. have problem without solution yet. give idea how proceed further... if using (1) visual studio nunit test adapter - it's not supporting nunit 3 yet; (2) resharper unit test runner latest version (10) ...

node.js - Equivalent to NodeJS buffer() in PHP -

i'm facing following problem. need convert following nodejs code php can't find php function gets job done. nodejs code: var secret = 'how today?'; new buffer(secret, 'hex'); new buffer(secret, 'base64'); returns this <buffer 1e 8c 1a ad ec a8 ba da 1d 6b 2f> i've looked @ php pack() doesn't seem job done. any appreciated!

ios - Regenerating a Provisioning Profile -

i hope can me this... situation: regenerating provisioning profile still using same developer certificates , app id: what happen app using previous provisioning profile installed users' device when provisioning profile regenerated in apple developer center? app still behave or no longer run? if app regenerated provisioning profile being installed device app previous provisioning profile installed, considered update or new install? thank in advance! as of questions #1, app work long as: the old provision profile has not yet expired. the device udid included in provision profile (relevant developer certificate) as of question #2: as long both apps has same bundle id considered update. if both apps not have same bundle id, considered new install. if old app deleted before installing new one, considered new install.

c++ - Eigen - Check if matrix is Positive (Semi-)Definite -

i'm implementing spectral clustering algorithm , have ensure matrix (laplacian) positive semi-definite. a check if matrix positive definite (pd) enough, since "semi-" part can seen in eigenvalues. matrix pretty big (nxn n in order of thousands) eigenanalysis expensive. is there check in eigen gives bool result in runtime? matlab can give result chol() method throwing exception if matrix not pd. following idea, eigen returns result without complaining lll.llt().matrixl() , although expecting warning/error. eigen has method ispositive , due bug unusable systems old eigen version. you can use cholesky decomposition (llt), returns eigen::numericalissue if matrix negative, see documentation . example below: #include <eigen/dense> #include <iostream> #include <stdexcept> int main() { eigen::matrixxd a(2, 2); << 1, 0 , 0, -1; // non semi-positive definitie matrix std::cout << "the matrix is" <...

javascript - How can i print my jquery variable value in to a div however i got my value in variable named as count -

i have selector structure that <span class="pr_count">characters <a class="cont"> </a></span> and have function gets value when check in console didn't print in html selector var count = $("#cout_text").text().length ; $(".pr_count .cont").html("characters" '+' count); you have syntax error. + operand must not surrounded quotes. try this: $(".pr_count .cont").html("characters " + count);

c# - EO WevBrowser Page cache issue -

i using eo webview inside windows load html page. page seems cache though using following in page. how can make sure page loads hard refresh each time? i have added context menu item in windows form "pagerefresh", runs commandids.reloadnocache on selecting menu item. how make happen on page load. <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" /> <meta http-equiv="pragma" content="no-cache" /> i have following code add menu item pagerefresh, works fine, want happen user triggering menu item. private void webview_beforecontextmenu(object sender, beforecontextmenueventargs e) { e.menu.items.clear(); e.menu.items.add(new...

javascript - HighCharts, Multiple Series, Async Drillup event -

i have highchart 3 series i'm using drilldown event asynchronously data each drilldown series. i've got working fine because can use drilldown event's, e.point s determine if single series, or multiple series being drilled down into. thus, can keep track of i'm @ in sequence using drilldownlevel counter. my issue on drillup event, event e not seem have attribute tells me if i'm drilling single or multiple series, drilldownlevel count gets decremented wrongly. this i'm doing on drilldown if ( !e.points ) { // single series being drilled down chart.addsingleseriesasdrilldown(e.point, data.series[seriesindexes[e.point.color]]); chart.hideloading(); chart.applydrilldown(); drilldownlevel++; lastdrilldowntype = 0; } else { // multiple series being drilled down chart.addsingleseriesasdrilldown(e.point, data.series[seriesdrilldowneventcount]); seriesdrilldowneventcount++; if (seriesdrilldowneventcount === 3...

can bus - How i can calculate stuffbits in standard CAN 2.0A data frame -

i have 1 can standard 2.0a frame contain 8 bytes of data. e.g can frame data "00 ca 22 ff 55 66 aa df" (8 bytes) want check how many stuff bits add in can frame(bit stuffing). standers formula calculate worst case bit stuffing scenario following: 64+47+[(34+64-1)/4] ->64 :: data bits , 47 :: overhead bits 2.0a how calculate real stuffed bits in sample can message ?? comment, suggestion warmly welcome. there no way mathematically "calculate" stuffed bits. need construct frame (on bit level), traverse bits, , count. read more bit stuffin @ link below. https://en.wikipedia.org/wiki/can_bus#bit_stuffing basic principle: 1. contruct can frame on bit level 2. start @ frame start bit. when 5 consecutive bits of same polarity found insert bit of opposite polarity. 3. continue crc delimeter (crc delimeter excluded)

LDAP Python Query differing results from built in linux tool ldapquery -

i'm having issues retrieving attributes ldap server using python ldap script. first off, can pull using linux command ldapsearch if run ldapsearch -lll uid=user , not specify host want hit, not of attributes want. however, if run ldapsearch -lll -h ldaphost uid=user of attributes available. i'm chalking 1 ldap server having more attributes need. anyway, python script...here's script i'm executing: # initialize , bind con = ldap.initialize('ldaphost') con.simple_bind_s() # run query against directory basedn = "basedn" searchscope = ldap.scope_subtree retrieveattributes = none searchfilter = uid=user res = con.search_s(basedn, searchscope, searchfilter, retrieveattributes) print res when run python script, output exact same list of attributes achieved when execute ldapsearch -lll uid=user ...it's python script not connecting desired host , pulling attributes ldap host give me. is there additional piece need add script speci...

angular - Why is that i can't inject the child component values into parent component? -

hie...i having child component has form.i trying inject form values of child parent. getting control group not able values.i have made plunker demo here http://plnkr.co/edit/i5fer6nhdqutt7rjrvya?p=preview onsubmit(value) { console.log(this.app.addressform.value); console.log('you submitted value: ', value); } this how getting value of child form have mentioned providers in parent component...somebody please tell me how form values of child component when entered it? after having @ plunkr, see several possibilities here: you can directly reference child component address 1 using viewchild annotation. see answer angular2 : no provider string! (child -> string) in [array in parent @component({ (...) }) export class appcomponent { @viewchild(address) address:address; // app property (...) } you can use address property when click on submit button have access addressform property of address component. do want define , manage controls within...

javascript - Coordinated pie chart and bar chart in D3.js -

i have brush coordinated bar chart. when brush moved , resized bar chart shows filtered bars. in same page have pie chart isn't coordinated bar chart , brush, want be. want pie chart updates content according filtered values. how can that? this code, followed plnkr link can see i've done far: <script type="text/javascript"> var margin = { top: 20, right: 20, bottom: 70, left: 40, mid: 20 }, w = 750 - margin.left - margin.right, h = 300 - margin.top - margin.bottom; var barpadding = 1; var padding = 20; var miniheight = 60; var selected; var svg = d3.select(".outer-wrapper .chart").append("svg") .attr("width", w + margin.left + margin.right) .attr("height", h + margin.top + margin.mid + miniheight + margin.bottom) .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); var barsgroup = svg.a...

ruby on rails - capistrano output - what are [ -L ...] commands? -

i have rails 4 app deployed capistrano. in output there bunch of commands running not understand @ all. i'm trying figure out why of them fail, real problem don't know doing @ all. here typical example: debug [8020adb4] running /usr/bin/env [ -l ~/apps/spo/releases/20160205133156/public/assets ] spo@dev.platform.spisales.com debug [8020adb4] command: [ -l ~/apps/spo/releases/20160205133156/public/assets ] debug [8020adb4] finished in 0.013 seconds exit status 1 (failed). i know /usr/bin/env run program, have no idea part trying do: [ -l ~apps/spo/releases/20160205133156/public/assets ] something this: /usr/bin/env mkdir easy understand, running mkdir. if can explain these [ -l ...] commands doing appreciate it! the square brackets alternative syntax test command. which test run depends on expression give, in case checks whether ~/apps/spo/releases/20160205133156/public/assets exists , symbolic link. from man test : -l file file ex...

r - Convert a string of integers from input to array of integers -

i have string of integers input text box (in shiny) this: input[["var1"]] "1,2,3,4" i want convert numeric vector like: values <- c(1,2,3,4) any highly appreciated. thanks, yes did make attempt earlier, , solved now. please find answer below. a <- "1,2,3,4" [1] "1,2,3,4" input_values <- as.numeric(unlist(strsplit(a,","))) input_values [1] 1 2 3 4 thanks @ananda, regards, ravijeet

mysql - php database data saving -

Image
i making sign form using php when click on register button, saves 1,1 in email , password fields instead of given email , password. <?php include("connection.php") ?> <?php $email=isset($_post['email']); $password=isset($_post['password']); if(isset($_post['register'])) { $q= "insert admin (email, password) values ('$email', '$password')"; $qr=mysqli_query($con, $q); if($qr) { echo "data added sucessfully"; } else { die(); } } ?> <!doctype html> <html> <head> <title>log in</title> </head> <body> <form method="post" action=""> <input type="email" name="email"> <br> <input type="password" name="password"> <br> <button type="submit" name="register" value="register">register</bu...

numpy - hard code exact float values in python -

this overkill problem, curious answer. i have matrix of np.float32 values want put code. it's 50x3 want put in source directly - it's not change often. it's little sensitive rounding, want encode data exactly if possible. there way in source while preserving matrix format? i'm thinking along lines of putting [[0xc45b36f3, ...],...] , somehow encoding np.float32 . if chose encode integer values, do: int_data = np.array([[0xc45b36f3, ...],...], dtype=np.uint32) floats = int_data.view(np.float32)

c# - Why my second ObservableCollection is getting update? -

i have two observablecollections filled items (that items observablecollecions filled other types of object) of same type. _treeviewbase - first observablecollection 'base' data. _tvdata - second observablecollection should store 'needed' items, have treeview itemsource binded tvdata. function fillaliastreeview used fill _treeviewbase data not paste code here. when @ begining of program assign _treeviewbase _tvdata in loadsidebar() function ok. both of observablecollection storing data. but when search ( , tvdata modified in searchbox_textchanged() ) it's seems _treeviewbase modified. how possible? did made major mistake in code? my class ( full code ) : public partial class sidebar : page, inotifypropertychanged { private observablecollection<connectionmodel> _treeviewbase; private observablecollection<connectionmodel> _tvdata ; public sidebar() { treeviewbase = new observablecollection<connection...

android - SearchView hints not showing for single character typed -

i'm working on android application written in scala uses android.support.v7.widget.searchview inside action bar that's overridden android.support.v7.widget.toolbar . in app, need enable search suggestions searchview . so, every time detect query change, check see if suggestions need updated (code below). if suggestions need updated call made backend , android.database.matrixcursor created contains search suggestions , set on searchview s suggestions adapter (code below). the problem i'm having search hints not show when typing single character. typing 2 or more characters in search box works perfectly. i've tried android:searchsuggestthreshold set 0 , 1 in xml config , same result (like option being ignored): search hints showing multiple input characters, not showing single character. am missing in config/initialisation of searchview ? option other android:searchsuggestthreshold can set? i've spent last few hours on looking alternative options c...

java - Helpful error messages in jersey -

i implementing restful webapp in jersey on grizzly 2 server , have following class. @path("/faulttree") public class faulttreeresource { @get @produces(mediatype.text_plain) public string sendgetjson(@queryparam("treeid") string treeid) { return "you requested fault tree number "+treeid; } } if go http://localhost:8080/faulttree message "request failed", because forgot query parameter. behavior makes sense in production. however, during development more helpful error message. how can enable helpful error messages or @ least logging in jersey? the sendgetjson-method isn't executed (according eclipse debugger), logging there not option. when want enable logging in grizzly add following code above call startserver(): logger l = logger.getlogger("org.glassfish.grizzly.http.server.httphandler"); l.setlevel(level.fine); l.setuseparenthandlers(false); consolehandler ch = new consolehandler(); ch....

ios - accessoryButtonTappedForRowWithIndexPath not called on Detail accessory touch -

Image
i have uitableview uitableviewcellaccessorytype.detaildisclosurebutton cannot call accessorybuttontappedforrowwithindexpath when detail icon tapped. parent view inherits uitableviewdelegate , uitableviewdatasource , linked delegate , datasource of table in ib. here cellforrowatindexpath func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell { let cell:uitableviewcell = self.resultsview.dequeuereusablecellwithidentifier("cell")! uitableviewcell if self.tableitems.count == 0 { cell.textlabel?.text = "no results found." } else { //cell.accessoryview = cell.accessorytype = uitableviewcellaccessorytype.detaildisclosurebutton cell.textlabel?.text = self.tableitems[indexpath.row] } return cell } and accessorybuttontappedforrowwithindexpath func tableview(tableview: uitableview, accessorybuttontappedforrowwithindexpath indexpath: nsindexpath) { ...

function - PHP: Should I pass in and return these variables? -

i'm working on converting wip php application object oriented architecture, i've found current project oop practices make easier. while refactoring code bit came upon question elementary, alas i'm not sure of answer. i have section (aka 'snippet') of code--the code contained in "generatedbsetobjects()" function of first code sample--that feel should put function (ie. subroutine), outlined in first sample. want put separate function block 2 reasons: simplify main code body create function can unit tested however, creates problem. because program has 2 large scope variables, need return 2 values @ once (which no big deal, common topic: see this ). question have though is: since restructuring code in object-oriented fashion, might there more efficient way this? maybe haven't considered? or best pass in , return variables? because $numdbsets , $dbsets[] global scope not sure should here. index.php after //-------------------------prima...

d3.js - AngularJS: None scope functions in a directive seem not to be isolated -

i have problem multiple instances of same directive on same page in jsfiddle example. each directive has own sort button , draws small bar chart d3. , button should sort corresponding directive. use directive show multiple barcharts on same page, different data sets. the problem sort button sorts last directive (no matter how many there) , uses data of scope. other charts stay same. scope seems isolated data not function. think missed scopes have no idea why behaviour this. hints? this return of directive looks like: return { restrict : "e", transclude: true, scope : { "data" : "=" }, template : "<div><button ng-click='func()'>sort</button></div>", link: function (scope, element, attrs) { init(element, scope); scope.func = function() { scope.data...

sql - Single Sign On With ASP.NET Identity Framework -

this question has been asked many times, , quick search came lot of results. haven’t gotten satisfactory answer yet. have 2 web applications ( , may have more in future) app1 .net 4 silverlight application , app2 node.js/angular application. both applications have different domains. www.app1.com , www.app2.com app1 hosted in iis , app2 not in iis now, have implement single sign on feature support these applications. looking asp.net identity available in .net 4.5. questions 1. thought of creating new mvc 5 application using .net 4.5 serve sso site. if possible wanted use our own sql server maintain credentials. not sure how share authentication ticket/cookie between sites. have done before using forms authentication had use same machine key on websites. .net applications. new identity framework , owin , different types of applications not sure. before jump , start developing wanted know recommended approach, , if yes, can point me in right direction. article help. 2.seco...

how to make an virtual chat bot in java? -

i want make chat bot in java don't know how start? i've tried following code not need. in program had write every possibilities of questions. if 1 have solution please me. import java.io.*; public class chatbot { public static void main(string[]args) throws ioexception { string hel = new string("hello"); string hel1 = new string("hello"); string hel2 = new string("hello"); string hel3 = new string("hii"); string hel4 = new string("hiii"); string hel5 = new string("hii"); string hel6 = new string("hiii"); bufferedreader br = new bufferedreader(new inputstreamreader(system.in)); system.out.println("what name?"); string name = br.readline(); system.out.println("hello "+name+".."); string hellorep = br.readline(); if(hellorep .equals(hel)) { system.out.println("hello there......

git: timezone and timestamp format -

from git can timestamp: "2011-10-04 12:58:36 -0600" but there way show as: "2011-10-04 06:58:36" so want rid of -0600 timezone offset. how can this? thanks. if ask git log, can try , select correct form from git log --date={relative,local,default,iso,rfc} --date=local seems best candidate

Can't get Spark to work on IPython Notebook in Windows -

i have installed spark on windows 10 box, , installation works fine pyspark console. have tried configure ipython notebook work spark installation. have made following imports os.environ['spark_home'] = "e:/spark/spark-1.6.0-bin-hadoop2.6" sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/bin") sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/python") sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/python/pyspark") sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/python/lib") sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/python/lib/pyspark.zip") sys.path.append("e:/spark/spark-1.6.0-bin-hadoop2.6/python/lib/py4j-0.9- src.zip") sys.path.append("c:/program files/java/jdk1.8.0_51/bin") this works fine creating sparkcontext , code like sc.parallelize([1, 2, 3]) but when write following file = sc.textfile("e:/scripts.sql") words = sc.count() i following erro...

git - Where are Github files/references in a project under Github source control? -

let me explain situation. had asp.net project packages entityframework6.1.1 . . myproject app_data . . myproject.sln under source control in github. copied project files onto machine. want put project on other machine under source control in tfs. problem somehow visual studio knows/thinks project under source control in github , doesn't let me add tfs (the option tfs there when right-click solution not there). yet, i've looked through source files , can't find references github. be? want rid of them. after copy (the files) new location delete .git directory. it's hidden make sure can see hidden files , folders in folder options

java - Why we can't call servlet constructor instead of init method to initialize the config parameters? -

this question has answer here: servlet constructor , init() method 1 answer why can not call servlet constructor instead of init method initialize config parameters? by specification : the lifecycle of servlet controlled container in servlet has been deployed. when request mapped servlet, container performs following steps. if instance of servlet not exist, web container loads servlet class. 1.1. creates instance of servlet class. 1.2. initializes servlet instance calling init method. initialization covered in creating , initializing servlet. invokes service method, passing request , response objects. service methods discussed in writing service methods.

ruby on rails - Searchkick Elastic Search where condition like behavior -

using rails 4.2 searchkick , elasticsearch, have conditions set find users: where_data = { region: "north america" } results = person.search( query, where: where_data ) this works expected , finds person when person.region "north america". but there other situations person has multiple regions, including north america: "africa; north america". in these cases person not found. how can customize data or calls operate more like in sql, , find matching instances of full string? to search person region contains "north america", first try: person.search "north america", fields: [:region] if doesn't work, try adding person model: class person < activerecord::base searchkick word_middle: [:region] and (after reindex) person.search "north america", fields: [:region], match: :word_middle if still doesn't work, suggest making :region collection in es (please let me know if interested...

dynamic - jQuery Mobile inject external page using URL with jquery -

im try inject in index other pages "profile.html" or "contact.html". pages want keep in memory , user can go back, , others dont. pages want load in main index page <\div>. can give code example? something that what describe problem, default way how jquery-mobile loads "pages" dom. lets build example: index.html header referencesto jquery, jquery-mobile etc. div data-role="page" > #index div data-role-"page" > #page1 page2.html div data-role="page" > #page2 page3.html header references jquery, jquery-mobile etc. div data-role="page" > #page3 what happen when link x y ? open index.html the fist div data-role="page" displayed in case #index pages inside of dom (#index, #page1) link index.html(#index) #page1 nothing loaded the page #page1 shown pages inside of dom (#index, #page1) link index.html page2.html the first div data-r...

Regex for find command to match files with a non-empty file extension -

i have series of files want clean .log files have been rotated. examples: error.log access.log error.log-2016-02-05 access.log.1 debug.log debug.log--2 regex matching of log files with: find . -regextype posix-extended -regex '^.*.log.*' how can match files have characters after *.log? replace last occurrence of .* .+ . * matches 0 or more instances of previous character. + matches 1 or more instances. you need escape . before log \ , otherwise match character rather literal period. in summary, use this: find . -regextype posix-extended -regex '^.*\.log.+' a few other adjustments might useful: you don't want match files empty filenames, should switch first .* .+ (thanks, jan!). you don't want allow files file extension .log. (a single . character after .*log ), should switch final .+ \..+ . this give final command: find . -regextype posix-extended -regex '^.+\.log\..+'

ios - Trying to send geoJSON file to iTunesConnect -

i'm trying upload "routing app coverage file" itunesconnect. message "your file couldnt saved, try again or contact us". the file contents below.. i've checked contents on geojsonlint , seem correct. { "type": "multipolygon", "coordinates": [ [[ [-75.767212,39.702961], [-76.25061,36.85545], [-78.491821,38.030786], [-78.200684,39.187562], [-77.774963,39.626846], [-75.767212,39.702961] ] ]] } does filename have special? there problem? this may others. solved me, simply, had couple of spaces, 1 @ beginning, , @ end.

c# - How select the gender in registration form by selenium 2.0? -

i want create bot, registrate accounts in gmail. have problem selecting month of birth. i'm programming on c# using selenium 2.0. source code of "complicated" part. <legend><strong id="birthdaylabel">birthday</strong></legend> <label id="month-label" class="month"> <span aria-invalid="true" class=" form-error" id="birthmonth"><div aria-activedescendant=":0" title="birthday" aria-haspopup="true" tabindex="0" aria-expanded="false" style="-moz-user-select: none;" role="listbox" class="goog-inline-block goog-flat-menu-button jfk-select"><div aria-posinset="0" aria-setsize="12" role="option" id=":0" class="goog-inline-block goog-flat-menu-button-caption">month</div><div aria-hidden="true" class="goog-inl...

Android app programming- not sure why findViewByID does the following: -

this code works: public static class placeholderfragment extends fragment { public placeholderfragment() { } @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { view rootview = inflater.inflate(r.layout.fragment_detail, container, false); intent intent = getactivity().getintent(); string weather = intent.getstringextra(intent.extra_text); if(weather != null) { textview textviewweather=(textview)rootview.findviewbyid(r.id.weathertext); textviewweather.settext(weather); but if replace, in line (textview)rootview.findviewbyid(r.id.weathertext); rootview findview() or getactivity , returns null next line creates run time fatal error halts program. i don't understand why. thought context activity?! i'm confused,and can't find answer via android developer,so here am... thanks in advance whoever helps!! ...