path

Local paths of files contained in a solution

天涯浪子 提交于 2019-12-11 15:07:38
问题 I need to read in data from a text file that is contained inside of a folder in my solution (It has been added to the solution and is accessible from the Solution Explorer). I know how to access it like this... _prefixParts = PopulateFromFile( @"C:\Users\Owner\Desktop\AoW\AoW\AoW\Utility\Names\namePrefix.txt"); Is there a way to write the file path that is local to the solution? I've tried everything that I can think of and haven't managed to do it. Also, If I were to make that text file an

Phonegap Android Mac - ANT Issue

馋奶兔 提交于 2019-12-11 14:58:29
问题 I want to install phonegap in my Mac, I've already installed and "platform add ios" succesfuly but have some problems with "platform add android" It says "Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path." The SDK is there (and working fine through eclipse) I found in other posts that is a "PATH" issue so I created ".bash_profile" with the correct PATH to "tools" and "platform

Python directory searching and organizing by dict

余生长醉 提交于 2019-12-11 14:48:16
问题 Hey all, this is my first time recently trying to get into the file and os part of Python. I am trying to search a directory then find all sub directories. If the directory has no folders, add all the files to a list. And organize them all by dict. So for instance a tree could look like this Starting Path Dir 1 Subdir 1 Subdir 2 Subdir 3 subsubdir file.jpg folder1 file1.jpg file2.jpg folder2 file3.jpg file4.jpg Even if subsubdir has a file in it, it should be skipped because it has folders in

D3 fisheye on a force graph with markers

ⅰ亾dé卋堺 提交于 2019-12-11 14:36:14
问题 I love the new fisheye plug in (http://bost.ocks.org/mike/fisheye/) but want to get it working on a force graph that uses paths and markers rather than lines. I am new to D3 and so far combining the markers demo, with the fisheye demo has defeated me, I wondered if anyone had been successful and could point me in the right direction. Cheers Ben 回答1: vis.on("mousemove", function() { if (rmbMenuHidden) { fisheye.center(d3.mouse(this)); node .each(function(d) { d.display = fisheye(d); }) .attr(

hardcoded to relative paths

六眼飞鱼酱① 提交于 2019-12-11 14:35:23
问题 I'm working on a project that on the click of a button a random image for a folder I specified will appear in a specific picturebox. Here's what I have already: namespace WindowsFormsApplication12 { public partial class Form1 : Form { Random r = new Random(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { pictureBox1.Image = Image.FromFile(r.Next(3).ToString() + ".jpg"); } } Now how can i add a relative path to this? My hardcoded path is c:

How to get the root path of a web project in java EE

雨燕双飞 提交于 2019-12-11 14:23:19
问题 I'm using java EE for my dynamic web project. And i put sitemap.xml file in the root path. Now i need a path to that file to modify. I try: String path = getClass().getClassLoader().getResource(".").getPath() +"\\sitemap.xml"; but The system cannot find the file specified . I'm using window, what do i need to change when i upload my project to linux hosting? 回答1: The ClassLoader#getResource() only finds classpath resources, not web resources. The sitemap.xml is clearly a web resource. You

angular 4 nested formArray Cannot find control with path: 'segmentRows3 -> 1 -> segmentId3'

試著忘記壹切 提交于 2019-12-11 14:22:10
问题 I cannot push to an array. I have a segment(id, time) that can have one or several people (role, infos). The field are generated dynamically. On load the page shows the fields (see image below). When try to add a segment I get error : ERROR TypeError: Cannot find control with path: 'segmentRows3 -> 1 -> segmentId3' Here is code from the .ts file: addSegment() { let segmentRows3 = this.mySummaryForm.get('segmentRows3') as FormArray; segmentRows3.push(this.fb.array([ this.fb.group({

Is the only way to list the “live” revisions of a particular SVN path “svn log -q -v” plus a filter?

筅森魡賤 提交于 2019-12-11 14:20:12
问题 Is performing an "svn log -q -v" across all revisions against the repository root and then filtering by the desired path really the best (only?) way to do this? We need to find these ranges in order to provide peg revisions to an automated tool and to add supporting detail to our change reporting. I have made a slight optimization to querying the root already: Given a path: protocol://server/repo/a/b/c/d/foo.txt I've already written a script to perform repeated svn log queries up the path:

How to pass a path to a stored procedure?

不想你离开。 提交于 2019-12-11 14:20:06
问题 My question is in my title, I have defined a stored procedure with the following CREATE PROCEDURE [dbo].[sp_doStuff] @path CHAR(256), @databaseName sysname, @backupType CHAR(1) AS BEGIN SET NOCOUNT ON; DECLARE @sqlCommand NVARCHAR(1000) DECLARE @dateTime NVARCHAR(20) SELECT @dateTime = REPLACE(CONVERT(VARCHAR, GETDATE(),111),'/','') + REPLACE(CONVERT(VARCHAR, GETDATE(),108),':','') IF @backupType = 'F' SET @sqlCommand = 'BACKUP DATABASE ' + @databaseName + ' TO DISK = ' + @path +

How can you render a path in several locations?

余生颓废 提交于 2019-12-11 14:18:52
问题 We have a path defined which we would like to render in several hundred different positions during the OnRender override. We know about the PushTransform method on the DC, but that seems to require a new TranslateTransform instance for each render, which means we end up with hundreds of TranslateTransform as well. That just doesn't seem efficient. We've also tried a single TranslateTransform, then just changing it's X and Y locations with each render, but since WPF actually caches the drawing