Posts

Showing posts from April, 2011

c# - Passing Model to Web API results in null value -

when try pass value web api using windows forms client this: sessionmodel s = new sessionmodel() { sessionid = "123456" }; using (var client = new httpclient()) { client.baseaddress = new uri("http://localhost:49584/"); client.defaultrequestheaders.accept.clear(); client.defaultrequestheaders.accept.add(new mediatypewithqualityheadervalue("application/json")); client.defaultrequestheaders.authorization = new authenticationheadervalue("bearer", txttoken.text.trim()); try { httpresponsemessage response = await client.postasjsonasync("api/account/depositaccounts", s); response.ensuresuccessstatuscode(); // throw if not success code. if (response.issuccessstatuscode) { messagebox.show("results", "success!", messageboxbuttons.ok, messageboxicon.information); } } catch (httprequestexception ex) { messagebox.show(ex.message); } } and api controller code this: [httppost] [...

c# - How to update PictureBox from BackgroundThread? -

i'm doing expensive calculations in background thread , need able assign picturebox1.image after each cycle of calculations. use using delegates, been long time , things don't seem work way anymore. i tried putting assignment in workercompleted event handler, can't figure out how restart backgroundworker1. i've been @ day , feel enormously frustrated, use easy do. this relevant part of code: using system; using system.globalization; using system.collections.generic; using system.drawing; using system.io; using system.windows.forms; using knowncolorspalette; namespace color_visualizer { public partial class form1 : form { static cultureinfo m_culture = cultureinfo.currentculture; double[,][] distances = new double[3000, 3000][]; fastpixel m_fp; public form1() { initializecomponent(); windowstate = formwindowstate.maximized; this.picturebox1.loadcompleted += new system.componen...

ios - pod install fails with error: error:1006706B:elliptic curve routines -

i have 2 macs both date os x , xcode. on one, can install cocoapods , pods specified in project's podfile. other fails: pod install --verbose preparing updating local specs repositories creating shallow clone of spec repo master https://github.com/cocoapods/specs.git $ /opt/local/bin/git clone https://github.com/cocoapods/specs.git master --depth=1 cloning 'master'... error: error:1006706b:elliptic curve routines:ec_gfp_simple_oct2point:point not on curve while accessing https://github.com/cocoapods/specs.git/info/refs?service=git-upload-pack fatal: http request failed [!] unable add source url https://github.com/cocoapods/specs.git named master . can try adding manually in ~/.cocoapods/repos or via pod repo add . /library/ruby/gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/sources_manager.rb:48:in rescue in find_or_create_source_with_url' /library/ruby/gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/sources_...

android - Play store silent auto-update of running app -

i'm working on app used on android tv sets tablets mounted on walls. cycles through online content set elsewhere. running 24/7, cycling through , displaying content. devices have auto-updates enabled. question is... device download , install app update if app running in foreground? i've set broadcast receiver restart app after update happens. don't know if update while app running. yes, automatically update, if in foreground. but warned, when update occurs, android close app if in foreground , not automatically relaunch it. if app needs run time, you'll need relaunch following update.

odbc - udl file with classic asp ADODB.RecordSet count is 0 but should be higher -

i working on classic asp adodb.recordset count 0 should higher (i.e. there should 1 or more records returned query). how can tell if recordset opened? recordset uses udl file connect database. udl has "test connection" button, , button works. this functionality working years, has stopped working. suspect udl connection bad, how verify that? code: set con1=createobject("adodb.connection") set rs_a1=createobject("adodb.recordset") con1.cursorlocation = aduseclient con1.open "file name=c:\winnt\udl_dlls\f1.udl" strsql = "select * session_mvrecord_long session = '" & strrssession & "'" rs_a1.open strsql,con1 'set filter ourrecord1 record-- rs_a1.filter ="ourrecord1status <> '' or ourrecord1yr <> '' or ourrecord1key <> ''" rs_a1.movelast rs_a1.movefirst if rs_a1.recordcount <= 0 then%> 'do stuff

Foreach loop converting error in C# -

this question has answer here: iterate multi-dimensional array nested foreach statement 11 answers i brushing , reviewing of c# notes. i'm running 1 of examples first time , getting error: cannot convert type double double[] error . me, code looks good, don't know why it's not converting. why line causing error? class program { static void main(string[] args) { double[,] list1; int r = 5, c = 10; list1 = new double[r, c]; for(int = 0; < r; i++) for(int j = 0; j<c; j++) list1[i,j] = convert.todouble(console.readline()); foreach (double [] in list1) // -- line giving me error -- { foreach (double j in i) console.writeline(j); } console.read(); ...

java - Show JDBC ResultSet in HTML in JSP page using MVC and DAO pattern -

i'm implementing mvc using jsp , jdbc. have imported database class file jsp file , show data of db table. don't know how should return resultset java class jsp page , embed in html. how can achieve this? in designed mvc approach, jsp file should not contain line of java code , servlet class should not contain line of jdbc code. assuming want show list of products in webshop, following code needs created. a product class representing real world entity of product, should javabean . public class product { private long id; private string name; private string description; private bigdecimal price; // add/generate getters/setters/c'tors/equals/hashcode boilerplate. } a dao class nasty jdbc work , returns nice list<product> . public class productdao { private datasource datasource; public productdao(datasource datasource) { this.datasource = datasource; } public list<product> list() throws s...

javascript - Update shape position with Canvas and NodeJS -

using nodejs , socket.io, i'm making quick canvas app moves shape across screen. data appear on clients. each square timestamped determine draw order. below client.html. says "cannot set property lastupdate" of undefined. how considered undefined? tried defining many times @ top. what's wrong? <!doctype html> <html lang="en"> <head> <script src="/socket.io/socket.io.js"></script> <script> "use strict"; var canvas; var ctx; var socket; //var lastupdate = new date().gettime(); /*var square = { lastupdate: new date().gettime(), x: 0, y: 0, height: 100, width: 100 };*/ // //var person = {name: 'user' + (math.floor((math.random() * 1000)) + 1)}; //var user = 'user' + (math.floor((math.random() * 1000)) + 1); //var user = object.keys(something name); //var user = object.keys(user); //function ...

how to plot extensive list of variables in excel using perl -

i trying plot more 100 variables on x-axis in excel using perl. although code works fine not x-axis variables listed in graph alternates. please me in if can plot required x-axis points on graph. following code excerpt: my $chart = $workbookphase2->add_chart(type => 'column', embedded => 1); # configure chart. $chart->add_series( categories => '=pnc!$c$2:$c$100', values => '=pnc!$h$2:$h$100', ); $chart->set_x_axis(num_font => { bold => 1, italic => 1 }); # insert chart worksheet (with offset). $worksheetphase2->insert_chart('c4', $chart, 55, 14); thanks!

shell - How pipe to zsh read? -

with bash fine: $ yes | bash -c 'read -sn 1 -p "[y/n] " response ; echo $response' y but zsh have trouble: $ yes | zsh -c 'read -sk 1 "response?[y/n] " ; echo $response' [y/n] when -k option used, zsh's read command read terminal unless instructed otherwise. documented in appropriate section of zshbuiltins manpage. pipe supplying standard input script, has no effect on attempts read terminal. you can add -u 0 call read tell read standard input (file descriptor 0) when other options (such -k ) cause read elsewhere.

.htaccess - Httaccess rewrite rules with pictures -

here rewrite script (.htaccess) options +followsymlinks rewriteengine on rewriterule ^(action|ajax|api|uploads)(.*)$ - [l] rewritecond %{script_filename} !-d rewritecond %{script_filename} !-f rewriterule ^.*$ ./index.php now have url: http://domain.tld/uploads/users/1/pictures/1443563069.jpg the picture exist, can't load it. rewrite rule not ok? try code in root .htaccess: options +followsymlinks rewriteengine on rewritecond %{the_request} /(action|ajax|api|uploads) [nc] rewriterule ^ - [l] rewritecond %{script_filename} !-d rewritecond %{script_filename} !-f rewriterule ^ index.php [l] using %{the_request} because request_uri changes /index.php in last rule.

system verilog - Unbounded (infinite) repetitions in transitions for covergroup bins -

how can define coverage bin transition might have many repetitions in it? i'm trying this: bins st = (2=> 3[* 1:$] => 2); of course, doesn't work. simulators give error messages when compiling line. edit: simulators complain $ symbol, don't recognize "unbounded maximum". when writing sequences, legal use consecutive repetition operator [* 1:$] . hope next version of systemverilog makes legal covergroups too. as crude workaround, substituted $ large number works fine case. bins st = (2=> 3[* 1:1000] => 2); systemverilog transition bins not designed handle simple transitions. more complex should modeled using cover directive, or combination of sequence . triggered () method , covergroup .

mysql - How to do Inner Join with multiple rows return Json in php -

i have 2 table 1 wich has mulitple rows in reference other table. questions_table: id | value_question --------- 1 | "first question" 2 | "second question" responses_table: id | question_id| value_response | is_true ------------------------------------------- 1 | 1 | sfu | true 2 | 1 | ubc | false 3 | 2 | bu | true 4 | 2 | ri | false i know wich best practice return each rows questions_table in json php : [ { "value_question": "first question", "responses": [ {"value_response": "sfu", "is_true": "true"}, {"value_response": "ubc", "is_true": "false"} ], }, { "value_question": "first question", "responses": [ {"value_response": "sfu", "is_true": "true"}...

css - page shoud not scroll when using sidenav and toolbar together in angular material -

Image
when use md-sidenav without having md-toolbar, ok. means that, opening sidnav perform correctly image below. but when add toolbar before sidenav or before section containing sidenav, upon opening sidenav page find scroll , sidenav not fill entire page's height(image below), while should same before. toolbar height size add height of page. complete code @ plnkr here main part of code: <div ng-controller="appctrl" layout="column" layout-fill> <md-toolbar> <div class="md-toolbar-tools" layout="row" style="background-color:crimson"> ... </div> </md-toolbar> <section layout="row" flex> <md-sidenav class="md-sidenav-left md-whiteframe-z2" md-component-id="left" md-is-locked-open="$mdmedia('gt-md')"> ... </md-sidenav> <md-content flex layout-padding...

algorithm - Convert Branch and Bound loop to use Java Stream API -

i have simple branch , bound algorithm works on variant of traveling salesman problem , thought fun try , convert use java 8 stream api. i'm having difficult time figuring out how without relying on side effects, however. initial code int bound = integer.max_value; list<location> bestpath = null; while(!queue.isempty()) { node curr = queue.poll(); //bound exceeds best, bail if (curr.getbound() >= bound) { return bestpath; } //have complete path, save if(curr.getpath().size() == locations.size()) { bestpath = curr.getpath(); bound = curr.getbound(); continue; } //incomplete path - add possible next steps set<location> unvisited = new hashset<>(locations); unvisited.removeall(curr.getpath()); (location l : unvisited) { list<location> newpath = new arraylist<>(curr.getpath()); newpath.add(l); node newnode = new node(newpath, getboundforpath(new...

Python save arbitrarily nested list to CSV -

i have list composed of strings, integers, , floats, , nested lists of strings, integer, , floats. here example data = [ 1.0, 'one', [1, 'two'], [1, 'two', ['three', 4.5]], ['one', 2, [3.4, ['five', 6]]] ] i want each item of list written line in csv file. so, given above data, file this: 1.0 1 1,two 1,two,three,4.5 one,2,3.4,five,6 there lots of resources how write list file, have not seen independently of nestedness of list. i'm sure come involving many loops, etc, have more elegant solution? edit: best thing have come convert each item in list string, remove characters ("[", "]", etc). attach item strings, , write result file: string = '' in data: line = str(i).replace("[","") line = line.replace("]","") line = line.replace("'","") line = line.replace(" ",...

jquery ajax load more button with multiple instances -

how use code multiple times on same page? im displaying data grabbed ajax , each 1 has own comment box "show more comments" button. its if press "show more comments" button, each comment box updated - instead of 1 clicked. i think i'll need modify jquery/ajax code: $( document ).on( 'click', '.loadmore', function () { $(this).text('loading...'); var ele = $(this).parent('li'); $.ajax({ url: 'loadmore.php', type: 'post', data: { page:$(this).data('page'), }, success: function(response){ if(response){ ele.hide(); $(".news_list").append(response); } } }); }); html/php: <div id="container"> <ul class="news_list"> <?php $query=mysql_query("select * `comments` order `id` asc limit 0 , $resultsperpage"); while($data=mysql_...

vector - Error when I push back a pair in C++ -

i've been trying compile program should push string , float pair on vector: typedef std::pair<string, float> prediction; std::vector<prediction> predictions; ( int = 0 ; < output.size(); i++ ) { std::vector<int> maxn = argmax(output[i], 1); int idx = maxn[0]; predictions.push_back(std::make_pair(labels_[idx], output[idx])); } return predictions; however, every time try compile this, error: error: no matching member function call 'push_back' predictions.push_back(std::make_pair(labels_[idx], output[idx])); i few other warnings saying things like candidate function not viable: no known conversion 'pair<[...], typename __make_pair_return > &>::type>' 'const pair<[...], float>' 1st argument _libcpp_inline_visibility void push_back(const_reference __x); and candidate function not viable: no known conversion 'pair<[...], typename __make_pair_return > ...

javascript - :focus pseudo selector style not being removed when a new tab is opened , even though blur event is fired -

i working on nav menu contains external url links, there focus styles associated navigation menu , menu item gets background when focused. if item, anchor points external link, clicked, opens new tab , displays page represented external link. problem that, though new tab opened when user comes original tab, can still see background behind clicked nav menu item. there no :active styles associated menuitem. i created example in js fiddle enumerate problem: https://jsfiddle.net/bc5yu44v/2/ <body> <a id="selectme" href="www.google.com" target="_blank" onblur="changetext()">clcik here</a> </body> here can see after new tab opened clicking anchor tag , anchor tag not loose :focus style, can see text changed , indicating onblur event fired. can body point me on how remove :hover style?, possible using pseudo selector or can achieved writing js , toggling classes?. have restriction of not using jquery too. have ...

ruby on rails - Is it possible to insert new keys in middle of anchor array using YAML? -

i have yaml file anchor array this. sammy: &as - - c and want add new key, in following manner: mobile: <<: *as # want add new element in between & c # i.e. # new mobile should # b c is possible? note: i'm using ysets retrieve these keys in app. no not possible. reason anchored element, alias as refers to, has mapping according specification merge keys . and element (i.e. value sammy ) sequence, not mapping, not going work. this reason why checking: sammy: &as - - c mobile: <<: *as online gives error. the way around like: sammy: &as 1: 3: c mobile: <<: *as 2: b and use values of mobile sorted keys.

string.h not necessary in a C code -

i'm coding in c , realize program : #include <stdio.h> int main(int argc, char *argv[]) { char name[100]; printf("what's name "); scanf("%s", name); printf(hi %s, nic meet !", name); return 0; } the problem realized without string.h, program work when it's not supposed because there string. can explain me why works? you used printf() , scanf() in code. both declared in stdio.h . "there string" not imply "string.h must included". "refer data type or function declared in string.h" does.

html - Why can't I select inside these input boxes? -

i'm building dummy form in codepen , in middle row wanted have 2 input boxes next each other taking 50% each in row. able this, however, cannot click inside either input box start typing. way can start typing in each input start @ first box , press 'tab'. suggestions? html: <div class="wrapper"> <h1>application philadelphia eagles</h1> <h2><strong>position:</strong> wide receiver</h2> <p>an attempt @ input label floats</p> <form class="form-container"> <div class="form-tr"> <div class="tc-100"><input type="text"></div> </div> <div class="form-tr"> <div class="tc-50 flt-l"><input type="text"></div> <div class="tc-50 flt-r"><input type="text"></div> </div> <div class="form-tr"...

How to install Open MPI with Cuda-Aware MPI in Linux Debian -

i installing open mpi v1.8.8 cuda v7.5 on linux debian. have tested cuda , works, tested openmpi , works too. when try combine them program, meet error: cannot find cuda.h file . scenario: my program source code include these .h file include "cuda.h" include "mpi.h" i run command: mpicc <filepath> -o test , error appear: cuda.h: no such file or directory #include "cuda.h"` omp_info give me : mca:mpi:base:param:mpi_built_with_cuda_support:value:false i have googled , , followed methods found: ./configure --with-cuda ./configure --with-cuda=/usr/local/cuda-7.5 ( source link : http://mirror.its.dal.ca/openmpi/faq/?category=buildcuda ) after that, remake , remake install open mpi. run: mpicc or mpirun, compiler give me error : mpirun error mca: base: component find: unable open /usr/local/lib/openmpi/mca_mpool_sm i set soft link : ln -s /usr/local/cuda/include /usr/include ( describe in link : building cuda-aware openmpi on ub...

python - function vowel_count that take a string as inputs count the number of occurrence and prints the occurrence -

i need print number of vowel occurrences in string. able count , print them in 1 line having issue print 'a,e,i,o , u' respectively on occurrence. not allowed use built in function. can 1 please guide or let me know missing. below code. vowels = 'aeiou' def vowel_count(txt): vowel in vowels: print (txt.count(vowel),end ='') return it print occurrence not able add in front of it. lets pass le tour de france should print a,e,i,o , u appear , respectively ,1,3,0,1,1 times . please let me know if thing unclear, thanks. using list comprehension, following can achieved: vowels = 'aeiou' def vowel_count(txt): counts = map(txt.count, vowels) return ", ".join(vowels) + " appear, respectively, " + ",".join(map(str, counts)) + " times"

javascript - yacal.js next/back button removes jquery event listener -

i using yacal.js build calendar. here javascript , css yacal.js (its site because couldn't find cdn it) for project, trying make when user clicks on date, ajax request sent php page date , php page gets row database matching date. all of works fine... when click next/back button (the 2 buttons @ top of calendar change months) removes jquery event: $("a.day").click(function() { why happening? or can fix it? <!doctype html> <html> <head> <title>calendar</title> <!-- latest compiled , minified css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <link rel="stylesheet" href="http://wxrunning.com/tests/jquery.yacal.css"> </head> <body> <div id="calendartemplate"></div> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min...

vagrant - How to reuse class in Puppet -

i have puppet class class project::classname( $program_name = '', $command = '' ) { .... } and i'm using this class { 'project::classname': program_name => 'programe_name', command => 'ls /dev/' } this works fine, when used twice this class { 'project::classname': program_name => 'programe_name', command => 'ls /dev/' } class { 'project::classname': program_name => 'programe_name2', command => 'ls /dev/' } vagrant provision giving me error error: duplicate declaration: class[project::classname] declared in file .. so question how can reuse class? thank you! you need understand difference of class , defined types. classes vs defined types classes not thought of in ‘object oriented’ meaning of class. means machine belongs particular class of machine. instance, generic webserver class. include class part of node needed built g...

ruby on rails - Sign in user without creating multiple users in rspec -

using rspec , devise, i'm able sign in user run tests. however, i've come across problem method because using before :each causing multiple users created, causes tests break. should change method of testing? or change method of signing in user? campaign_controller_spec.rb before :each @user = factorygirl.create(:user) sign_in :user, @user @business = factorygirl.create(:business, user: @user) end describe "get #index" before :each factorygirl.create(:active_campaign, business: @business) factorygirl.create(:inactive_campaign, business: @business) end "no status or type filter" :index # <- line 22 of error expect(assigns(:campaigns).size).to eq 2 end 'status filter' :index, status: 'active' expect(assigns(:campaigns).size).to eq 1 end end campaigns_controller.rb def index # current user's campaigns @campaigns = current_user.business.campa...

ios9 - plugin com.apple.GameCenterUI.GameCenterMatchmakerExtension invalidated -

since ios 8.0 multiplayer game play works smoothly gamecenter api. in ios 9.0 when tested found matchmaker @ middle stopped, multiplayer not working , following error shown. plugin com.apple.gamecenterui.gamecentermatchmakerextension invalidated how solve issue?

html - Layered CSS SVG masks not working -

i working on project have apply 2 svg masks div. used blend large header image background on right , left side. the following html code using: <div class="banner inner-slider"> <ul class="bx-slider"> <li class="mask" style="background-image: url('http://placehold.it/1440x610'); background-size: cover; background-position: center center;"> <div class="slide clearfix bigwrapper"> <div class="col-md-1"></div> <div class="col-md-6 text-left"> <h1>sample header</h1> <p>this sample header text. wee! isn't fun?</p> </div> </div> </li> </ul> </div> my css follows: .mask { -webkit-mask-image: url('../images/mask-right.png'),url('../images/mask-left.png');...

couchbase nodes RAM is getting full frequently -

we have 4 node cluster, 24 gb ram, out of 18gb has been given couchbase 0 replicaion. have approx 10m of records in cluster ~2.5m/hour , expire old items. ram usage ~72gb getting full every ~12 days, , need restart cluster fix this. after restart again ram usage ~20gb. can please understand reason it. fyi : auto compaction set 40% fragment level , meta data purge interval set 1 day, -- reduced 2 hours. didn't help. under scenarios high memory allocation churn couchbase can experience memory fragmentation, cause effects describing. addressed in 4.x release switching jemalloc on non-windows oses , using tcmalloc agressive decommit on windows. suggest download rc version of couchbase 4 ( http://www.couchbase.com/nosql-databases/downloads#couchbase_server ) , give try see if fixes issue.

r - converting mddyy date to date -

i have date column in .csv spreadsheet generated in inquisit. the format mddyy , 13th of july 71315 . r recognizes integer. can recommend way convert iso 8601 date format? since mention day 2 numbers, use little sprintf() magic add zeros out front. as.date(sprintf("%06d", 71315), "%m%d%y") # [1] "2015-07-13" the sprintf() call here adds zeros 6 characters , turn character vector, as.date() accept it. sprintf("%06d", 71315) # [1] "071315"

javascript - Trouble getting data from JSON with ReactJS -

i have json file this, named data.json { "link_template": "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit={num-results}&country={country-code}", "links": { "alternate": "http://www.rottentomatoes.com/movie/box-office/", "self": "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit=20&country=us" }, "movies": [ { "abridged_cast": [ { "characters": [ "dominic toretto" ], "id": "162652472", "name": "vin diesel" }, { "characters": [ "brian o'conner" ], "id": "162654234", "name": "paul walker" }, { "characters": [ ...

lambda - What's the right way to check null or check exceptions in a chained statement in Java 8? -

for example code: list<class> classes = stream.of("java.lang.object", "java.lang.integer", "java.lang.string") .map(classname -> class.forname(classname)) .collect(collectors.tolist()); this code runs fine now. but, assume have empty list in stream , have tons of operations stream. nullpointer exceptions , etc. find it's hard try-catch kind of statement. what's right way handle exception this? you not need check nulls. if have empty stream operations skipped: stream.of("hello") .filter(e => "world".equals(e)) // empties stream .foreach(system.out::println); // no nullpointer, no output exception handling possible in mapper: list<class<?>> classes = stream.of("java.lang.object", "java.lang.integer", "java.lang.string") .map(classname -> { try { return...

php - Elements in array without keys mixed with elements with keys -

i've stumbled upon function today: public function rules() { return [ ['status', 'default', 'value' => self::status_active], ['status', 'in', 'range' => [self::status_active, self::status_deleted]], ]; } i don't understand construction: ['status', 'default', 'value' => self::status_active] how's first 2 entries have value, , third has key , value. php language allows? this nothing new. key optional. can find similar case in first example of php documentation arrays. here is. <?php $fruits = array ( "fruits" => array("a" => "orange", "b" => "banana", "c" => "apple"), "numbers" => array(1, 2, 3, 4, 5, 6), "holes" => array("first", 5 => "second", "third") ); ?> http://php.net/manual/en/fu...

email - PHP mail function is not working on Hostgator -

this question has answer here: php mail function doesn't complete sending of e-mail 22 answers i have use mail function in project. when host project on hostgator, doesn't work. when host on other server, works fine. can't understand problem. if know answer please explain or suggest me link can understand beginning. thank you. here code. $to_address = "test@somedomain.com"; $subject = "this goes in subject line of email!"; $message = "this body of email.\n\n"; $message .= "more body: variable.\n"; $headers = "from: test@somedomain.com\r\n"; mail("$to_address", "$subject", "$message", "$headers"); supposing on hostgator.in & specially mentioned hostgator, not allow mail sending if domains other 1 on have hosted site. either sender or receiver's mail...

php - How long does ignore_user_abort(true); persist? -

i made script shouldn't return browser (not echo, print or interruptions of code blank space, ?> <? , , uses ignore_user_abort(true); avoid that, once browser window closed, process stops. thus once script launched, should go till end. the script designed newsletter, , sends 1 email each 5 seconds, respect spam policies of provider, through mail(); said that, what's happening after 20 minutes working (the total emails 1002 ), script "collapses", no error returned. hence question: there life time limit scripts running ignore_user_abort(true); ? edit following suggestion of hanky (here below) put line: set_time_limit(0); but issue persists so whilst ignore_user_abort(true); prevent script stopping after visitor browses away page, set_time_limit(0); remove time limit. can change php memory_limit in php.ini or setting php_value memory_limit 2048m in .htaccess file. in order list default max_execution time can run echo ini_get('...

r - How to convert .plt file to csv file and also attributes are missing? -

first converted .plt file .txt file imported in r. but when try read text file, error: `20081023025304` <- read.table("c:/users/admin/desktop/dataset/final_geolife trajectories 1.3/geolife trajectories 1.3/data/000/trajectory/20081023025304.plt", header=true, quote="\"") error in read.table("c:/users/admin/desktop/dataset/final_geolife trajectories 1.3/geolife trajectories 1.3/data/000/trajectory/20081023025304.plt", : more columns column names view(`20081023025304`) error in view : object '20081023025304' not found i having 7 attributes in datasets getting 5 attributes , error. want full attributes can analyze process. geolife trajectory wgs 84 altitude in feet reserved 3 0,2,255,my track,0,0,2,8421376 0 39.984702,116.318417,0,492,39744.1201851852,2008-10-23,02:53:04 39.984683,116.31845,0,492,39744.1202546296,2008-10-23,02:53:10 39.984686,116.318417,0,492,39744.1203125,2008-10-23,02:53:15 39.984688,116.318385,0,492,39744...

wpf - Xamdatagrid IsReadOnly binding is not working -

xaml: <igdp:field name="range" label="range (>=)" width="auto"> <igdp:field.settings> <igdp:fieldsettings allowedit="true" editortype="{x:type igeditors:xamnumericeditor}" editastype="{x:type sys:double}"> <igdp:fieldsettings.editorstyle> <style targettype="{x:type igeditors:xamnumericeditor}"> <setter property="isreadonly" value="{binding dataitem.isreadonly}" /> </style> </igdp:fieldsettings.editorstyle> </igdp:fieldsettings> ...