path

Define the file path from the file name in R

梦想的初衷 提交于 2019-12-24 01:19:57
问题 I know that I can find file name from full file path in R, but is there a way to define the path to the file just from the file name? Think about such scenario: you store the data file in the cloud (e.g. Dropbox) so the path for this file is slightly different at your home: read.table("path/user1/data.dat") and work: read.table("path/user2/data.dat") . Therefore, every time you want to read.table() you have to change one element of the path to match either you work or home path (on Mac OS X

Can't execute Ruby file using Powershell

↘锁芯ラ 提交于 2019-12-24 01:14:24
问题 I want to execute a ruby file using windows 10 powershell. In my powershell terminal, when I type ruby test.rb I receive ruby: The term 'ruby' is not recognized as the name of the cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + ruby test.rb +Category Info :ObjectNotFound: (ruby:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

MySQL - Load Data Infile with variable path

此生再无相见时 提交于 2019-12-24 01:01:34
问题 I'm having a problem with setting a variable path for putting data into my table. This is how i build my path: SET @path1 = CONCAT('C:/Projekte/Metrics/DXL_CSV_EXPORT_DATA/', YEAR(NOW()), '_', MONTH(NOW()), '_', DAY(NOW()), '%', '/_','BeMiko/');` Every day another Folder is created on the server. I want to automatically import the information from the .csv files from inside these folders each day. I import data from files with: LOAD DATA INFILE path... IGNORE INTO TABLE table1 FIELDS

Java environment variables set correctly, but java is not finding the jars

眉间皱痕 提交于 2019-12-24 01:00:45
问题 Summary Java environment variables correctly set, as seen from echo-ing them. However, jars are only seen when explicitly included with javac command. Details This is not specifically related to graphics and OpenGl, certain the problem is related to classpaths, ie the importing of third-party jar files. Using Windows XP SP3, JDK 1.7.0_13 On Windows xp, the system environment variables PATH/JAVA_HOME/CLASSPATH have been set/added-to to include these directories: C:\Documents and Settings

Relative paths in PHP not working on server [closed]

走远了吗. 提交于 2019-12-24 00:59:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 months ago . Background info: I've been developing a self hosted Facebook app on my own server (localhost) and have everything all working. Recently, I uploaded my files to my shared hosting online server (hostgator) and an odd bug popped up. My require_once() functions seem to ignore relative paths on the hostgator server.

Neo4j k-shortest paths with cost property

核能气质少年 提交于 2019-12-24 00:56:40
问题 We are using Neo4J 2.0 embedded; we have a Graph with around 1 Million of Nodes, and 50 Million of relationships; we have to find N shortestPath but with a well known cost property We saw that there is no such method in GraphAlgo class of neo4j and we were thinking to use Chyper, but when run this query START startNode = node(269604), endNode = node(269605) MATCH path=(startNode)-[:CAR_MAIN_NODES_RELATION*]->(endNode) RETURN path AS shortestPath, reduce(cost=0, rel in relationships(path) |

Having a map with paths how to compare tham to given path?

▼魔方 西西 提交于 2019-12-24 00:51:33
问题 We have map of boost path to string pairs like name:location (absolute location paths a la usr/myfolder/ ). We are given with some location a la usr/myfolder/mysubfolder/myfile . How to find which of maps location fit to given url most? Example we have a map like which we can resort if we need: service1:myfolder/ service2:myfolder/mysubfolder/ service3:myfolder/myothersubfolder/ service4:myfolder/mysubfolder/myfile We are given value myfolder/mysubfolder/myfile/blablabla/ (path). We want to

WPF Path : How to Draw this in XAML?

橙三吉。 提交于 2019-12-24 00:42:13
问题 I want to create a custom GroupBox with non rectangular header like in the following picture : As you see, the content of the header must be parametrable, so image, title and background can be entered in xaml. Thanks in advance. Thank you for your answer. Actually i want to use this design in a custom groupbox, so in your answer if i dont't set width and height of the grid (width=150 height =30) the shape components become separated, So i want the shape to be in a unique Body, so it will be

Process a set of files from a source directory to a destination directory in Python

笑着哭i 提交于 2019-12-24 00:23:23
问题 Being completely new in python I'm trying to run a command over a set of files in python. The command requires both source and destination file (I'm actually using imagemagick convert as in the example below). I can supply both source and destination directories, however I can't figure out how to easily retain the directory structure from the source to the destination directory. E.g. say the srcdir contains the following: srcdir/ file1 file3 dir1/ file1 file2 Then I want the program to create

Getting relative path from absolute path in PowerShell

梦想与她 提交于 2019-12-24 00:19:51
问题 The problem You have an absolute path, but you want it to be relative to another path. Example: P:/SO/data/database.txt --> Now we want the filename to be relative to: P:/SO/team/lists/ ../../data/database.txt I have already found the Stack Overflow question How to convert absolute path to relative path in PowerShell? . One answer links to an already developed Cmdlet, but this one didn't work for me. And the trick using Set/Get-Location requires the paths to exist. 回答1: The solution I found