Posts

R won't let me open saved file, says "no such file or directory" -

i started using r couple of weeks ago, i'm new student in research group uses program. my supervisor gave me file ending .idx open in r , work on. able open yesterday, took me 45 minutes! thought i'd figured out how yesterday, again today r telling me file doesn't exist. yesterday used list.files , file.exists , file magically seemed exist. please can tell me how reopen saved files r on console? r won't let me open saved file, says “no such file or directory” it sounds don't have working directory set directory contains file in question. try typing getwd() @ r command prompt , see path returns. chances are, it's not path file is. in case, can either move file r's current working directory, or can type setwd("/path/to/the/file") @ r command prompt set path (obviously, /path/to/the/file should replaced path directory containing file).

php - Laravel 5.5 package phpunit tests can't change namespace -

it's taken bit of troubleshooting figure out what's going on. given what's happening, feel might case of "you're doing wrong." i'm developing package laravel 5.5. pull package application , run units tests. put methods , properties in testcase.php (the base class) reduce redundancy. change namespace minimize chance of conflicts. when that, world explodes. when enter $ phpunit or vendor/bin/phpunit terminal looks it's something, goes clean command prompt $ . having said that, if put namespace tests\* right world. what expected way test package? let me know what, if anything, more helpful in describing issue.

html - Navbar menu dropdown not working (won't drop down when clicked) -

when on mobile or when resize browser navbar dropdown menu not dropping down when clicked. have put navbar code here elaborating issue. in advance help! <nav class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="mynavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="mynavbar"> <ul class="nav navbar-nav navbar-right"> <li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li>...

python - How to programmatically check eps file version? -

i want check programmatically (without opening adobe app) if eps file compatible illustrator version 8 or 10. preferably using python or bash script. portable esp files 7-bit ascii lines less 256 characters long. lines can terminated of following combinations of characters: cr, lf, cr lf, or lf cr. i don't know flavors of eps different versions of illustrator can read, first line of formatted file should contain looks this:      %!ps-adobe-3.0 epsf-3.0 according version 3.0 of encapsulated postscript file format specification in chapter 2 guidelines creating eps files . see chapter 3 titled guidelines importing eps files . so @ least partially answer question, read first line of file , check epsf version says is.

php - Symfony's DomCrawler does not find a specific tag -

i'm using domcrawler data google play page , works in 99% of cases, except stumbled upon page can not find specific div. check html code , there. code is $autoloader = require __dir__.'\vendor\autoload.php'; use symfony\component\domcrawler\crawler; $app_id = 'com.balintinfotech.sinhalesekeyboardfree'; $response = file_get_contents('https://play.google.com/store/apps/details?id='.$app_id); $crawler = new crawler($response); echo $crawler->filter('div[itemprop="datepublished"]')->text(); when run specific page php fatal error: uncaught invalidargumentexception: current node list empty. however, if use other id, desired result. page breaks domcrawler as correctly figured out, doesn't happen in english version, in spanish one. one difference spot comment user saying නියමයි ඈ . there seems bothering crawler there. if replace null characted ( \x00 ) empty string, correctly gets you're looking for: <?...

Css Bootstrap 4 - how to have vertical tabs on wider screens and horizontal on smaller -

i trying make tabs vertical on wider screens , horizontal on smaller screens, not sure how can achieve that. have tried adding flex-md-column , flex-lg-column nav tabs: <ul class="nav nav-tabs flex-md-column flex-lg-column" id="mytab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="info-tab" data-toggle="tab" href="#info" role="tab" aria-controls="info" aria-expanded="true"><i class="ion-compose"></i> info</a> </li> <li class="nav-item"> <a class="nav-link" id="stats-tab" data-toggle="tab" href="#stats" role="tab" aria-controls="stats"><i class="ion-arrow-graph-up-right"></i> statistics</a> </li> <li class="nav-item"> <a class="nav-link...

c - First time creating Stack.One line is printing twice.Why? -

i have updated previous code said there 1 last problem. don't know why there line keeps on printing twice when run code. and line is: printf("\nenter values of x:"); and code is: #include <stdio.h> #include<stdlib.h> typedef struct node{ int a; struct node* next; }node; node* create(node* s) { s=null; printf("\n empty stack created\n"); return s; } node* insert(node* s,int x) { if (s==null) { s=malloc(sizeof(node)); s->a=x; s->next=null; } else { node* temp=malloc(sizeof(node)); temp->a=x; temp->next=s; s=temp; } return s; } node* print(node* s) { while(s!=null) { printf("%d",s->a); s=s->next; } return s; } node* delete(node* s) { node* s1; if(s==null) { printf("trying delete empty list"); } else { s1=s->next; printf("element deleted %d",s->a); s->next=null; free(s); } return s1; } node...