I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order when you do something with them. I could use two arrays, but I'm sure theres something better to use. Usually I would just make a helper class that stores the String, or Path, and the boolean and make Objects of this class. I know I could do this, but what's …

Member Avatar
Member Avatar
+0 forum 12

Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to the script to set the directory. How can I do it now?

Member Avatar
Member Avatar
+0 forum 1

My site is giving me a 500 internal error. In the data.php file it is asking for a few things: //db access info $sql_host='';//host $sql_user='';//db user $sql_pass='';//db pass $sql_db='';//db name //path and url $base_path="";//full path to script $main_url="";//url to the script $cookie_url="";//the domain name of your website without http://www The $base_path= is the one it looks like I am having trouble with. Is that the Public path?

Member Avatar
Member Avatar
+0 forum 7

A simple way to find out a Python module's location on your drive.

Member Avatar
Member Avatar
+3 forum 4

Grabs the location and name of the script file itself.

Member Avatar
Member Avatar
-1 forum 3

Hi guys. I'm working on a christmas present for my dad, it's a program that installs 8 Black Keys songs on his computer. I'm having some trouble with it though. I can't figure out how to get the files out of the jar file. I used to access them with `\\src\\package\\filename.fileending` and had no problem but it's not working for some reason now. I'm using the java.nio package to copy the files, and this is my code. (I got the ExportResource method from [this StackOverflow question](http://stackoverflow.com/questions/10308221/how-to-copy-file-inside-jar-to-outside-the-jar)) **The Window Class** package installer; import javax.swing.*; import java.awt.*; @SuppressWarnings("serial") public class InstallerWindow extends …

Member Avatar
Member Avatar
+0 forum 1

Hi all My old old vb5 app does everything I want as far as mpg video goes. Random video and play a random segment. Fast forward and reverse. random groupings of large font, video segments and or pictures and audio I need the code to provide me with the file path. It would be handy to just double click and have my app start play. I did a quick search and couldn't find what I needed.

Member Avatar
+0 forum 0

I am new to svg , I need to draw a inner or outer path for the svg editor generated svg path , i am unable to draw . I tried a lot but i cant . help me.

Member Avatar
Member Avatar
+0 forum 3

Hello I am currently working on a "local" dev wordpress site, where I have a JS file stored with the path as e.g, http://www.devsite.com/websites/wordpress/mysite/wp-content/themes/mtheme/validations.js Currently, am using the relative path e.g. src = "././wp-content/themes/mtheme/validations.js" to load it. However, on the live server, which is maintained by someone else and I have no access, the website is using something similar to the example to load its JS files: http://www.mysite.com/wp-content/themes/mtheme/jquery.js My question is, will my relative path for the dev site work on the live one as well, or do is there a global path which can work on both, whereby I …

Member Avatar
Member Avatar
+0 forum 2

![63e834471f9c1463ee1caed517a7fbf1](/attachments/small/1/63e834471f9c1463ee1caed517a7fbf1.jpg "align-right") I'm working on an a windows phone project where I need to support fully transparent backgrounds in my controls to overlay ontop of dynamic image. I want to use this "new item" path I created to show how many updates an item has. I attached an image showing the effect I'm trying to create. The number needs to be dynamic. I've trying combinding geometries, but I'm having trouble figuring out how to even get started converting both my xaml defined path and text into geometries, and then combinding them with a xor to create the exclusion. It seems …

Member Avatar
Member Avatar
+0 forum 1

Hi Friends! I have tried to find all possible paths between two nodes; #include <iostream> #include <vector> #include <queue> #include <map> #include "fstream" #define max_edges 16 #define MAX_NODES 5 using namespace std; bool isadjacency_node_not_present_in_current_path(int node,vector<int>pathway); int findpaths(int source ,int target ); void display_all_paths_map(); vector<vector<int> >GRAPH(100); vector<int>pathway; map<int,vector<int>> allpathsmap; map<int,vector<int>>:: iterator itapm; typedef pair<int,vector<int>> pairapm; int main() { int origin,destin,source,dest,l_id; ifstream file1 ("Link_ID.txt"); if (! file1.is_open()) { cout << "Error opening file Link_ID.txt"; } //did not include 'return' for(int i=1;i<=max_edges;i++) { file1 >>origin>>destin>>l_id; GRAPH[origin].push_back(destin); } cout<<"(source, dest)\n"; cin>>source>>dest; findpaths(source,dest); display_all_paths_map(); file1.close(); return 0; } //ADJACENCY NODE NOT PRESENT IN CURRENT PATH …

Member Avatar
+0 forum 0

Hi there. I am making an application in VB.Net. In which i am scanning some system folders and on the execution time it gives me the error; E.g, access to the path "C:\any system file" is denied. Is there any code you people have that is edited in to the "form load" so when ever the application is executed, the denied error should be removed upon the form load? Thanks.. the code is as follows [code]Imports System Imports System.ComponentModel Imports System.Diagnostics Imports System.Drawing Imports System.IO Imports System.Runtime.CompilerServices Imports System.Security.Cryptography Imports System.Text Imports Microsoft.VisualBasic Imports Microsoft.VisualBasic.CompilerServices Imports System.Windows.Forms Imports System.Collections.ObjectModel Public …

Member Avatar
Member Avatar
+0 forum 12

Hi, I wanted to know if I could search for a file in the application's folder, just by checking with the `File.Exists` method. I am searching for a DLL file in the app's directory. Thanks in advance, Yuvjeeth

Member Avatar
+0 forum 0

Hi there, I'm working as a Microsoft Dynamics CRM technical consultant in Malaysia for 2 years but I know that I have to move on with something. My current situation is that I've been involved in one project that is on-going (developer-support job). I myself felt that's kinda stagnant as my development role has been decreasing and supporting role being expanded. I personally not into support work as I don't feel sacrifice if I fixed an issue, I'd rather spend my time to develop something based on requirements. Here I'm thinking about extending the border so I'm not limited to …

Member Avatar
Member Avatar
+0 forum 4

These programs are not perfect and very coarcenes but I think it understandable for who are new to learning Graph Theory. I will point directly each problem by using example code. Any questions or idea please post here. Thank you. Here are my programs, we will start with a basic problem: **1) Depth-first Search (DFS) without using marking array.** In this program, I used record "point" for demonstrate Adjacency List of the Graph. program DFS; const fi='DFS.ip'; fo='DFS.op'; ma=100; type point=record //each point mean a vertex of the Graph cn:array[1..ma] of byte; //connected vertices with "point" deg,def:byte; //deg: degree of …

Member Avatar
Member Avatar
+2 forum 1

hello everybody......... for example i want to read a 2014.html or 2014.php file like shown below. http://example.com/myfiles/2014/-dir-/2014.html. i don't want to show full path. how it is possible anybody please help me. Big up for reply.........

Member Avatar
Member Avatar
+0 forum 8

I'll include the codes to compare two .csv files and have to display only the name of the student who has got odd marks in both files (not to display who got same marks in both files) Main code package comparecsv; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class Comparecsv { @SuppressWarnings("empty-statement") public static void main(String[] args) throws FileNotFoundException, IOException { //Input file which needs to be parsed String fileToParse1 = "E://Java Project/SampleCSVFile1.csv"; String fileToParse2 = "E://Java Project/SampleCSVFile2.csv"; Comparecsv obj = new Comparecsv(); List<Student> studentList1 = obj.comparemarks(fileToParse1); List<Student> studentList2 = obj.comparemarks(fileToParse2); for(int i=0;i<studentList1.size();i++) { …

Member Avatar
Member Avatar
+0 forum 7

I downloaded eclipse to my windows 8 computer along with the jdk and when I launch eclipse it tells me that it cannot not find the jre or jdk and that it is not in my current PATH. I have tried setting the path to the jdk folder but it still doesnt seem to solve the problem.

Member Avatar
Member Avatar
+0 forum 6

I have created an application in c#. Following are my concerns. 1) create setup file which includes the ms access db 2) identify the location where this db will be stored 3) use this location as the data source for the application

Member Avatar
Member Avatar
+0 forum 7

**this is my main file:** ExcelAppl = win32com.client.Dispatch('Excel.Application') Workbook = ExcelAppl.Workbooks.Open('excel file path') Sheet = Workbook.Worksheets.Item(1) Sheet1 = Workbook.Worksheets.Item(2) **this is the Python gui:** from Tkinter import * from tkMessageBox import * from tkColorChooser import askcolor import tkFileDialog import MainLibrary root = Tk() root.title("Chrysler Test Framework") root.geometry("800x500") def callback(): file_path = tkFileDialog.askopenfilename(filetypes=[("Excel files","*.xls")]) print "the file path %s",file_path Text_button.insert(INSERT,file_path) MainLibrary.second(str(file_path)) def execute(): execfile("MainLibrary.py") Browse_button = Button(text='Browse', command=callback).pack(side=LEFT, padx=10, pady=20, ipadx=20, ipady=10) Execution_button = Button(text='Convert', command=execute).pack(side=BOTTOM, padx=10, pady=20, ipadx=20, ipady=10) def quit(): root.destroy() quit_button = Button( text='Goodbye!',command=quit, padx = 20).pack(side=RIGHT, padx=10, pady=20, ipadx=20, ipady=10) root.mainloop() This is my query.I need to …

Member Avatar
+0 forum 0

Hello, I have been using StreamWriters for a long and time and it has always worked but now I seem to be getting an Access Denied error while trying to save to the current users Desktop... Dim savePath As String = "C:\Users\Josh\Desktop\EpiPhone\029.csv" Using sw As New StreamWriter(savePath) '...Rest of code... End Using What are the most common problems with Access Denied while writing to the Desktop?

Member Avatar
Member Avatar
+0 forum 4

file sharing has not worked since April. worked for several months w/o much issue before that. Been all over net to find answer, no go. computers see one another, (usually) but still no sharing. people that made the router was willing to help right up to the time I noted that this is a WIRED and NOT a wireless network (workgroup). she then sez that I need to CALL their tech support which I would try if not leary of having to listen to more than several minutes of air. desktop can be xfered but still no sharing. Static IPs …

Member Avatar
Member Avatar
+0 forum 11

this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case

Member Avatar
Member Avatar
+0 forum 16

Hi guys, I have 2 forms which do practical the same thing. They are supposed to show a preview of a file which has been selected from a treeview. However the first form works fine and the second one doesn't. When I look into it the second form produces a path with "$$$$" instead of "\\ ". Ive been over the code a few times trying to figure out what the difference is but with no luck. Heres Form 1 //open tree private void button2_Click(object sender, EventArgs e) { ListDirectory(treeView1,@"C#"); treeView1.ExpandAll(); //empty(); } public TreeNode CreateDirectoryNode(DirectoryInfo directoryInfo) { var directoryNode …

Member Avatar
+0 forum 0

i have a project that it find the shortest bakery in c# . i written a program that save vertex and edge and drowing when opening the program. bu i need a code that find the nearest bakery. please write the needing code below this. i have this vertex.id vertex.x, vertex.y and edge its loaded this Edge edge = edges.ElementAt(i);// get verr please help me

Member Avatar
Member Avatar
+0 forum 1

I have this problem of moving my codes around in my external drive. Everytime I plug the external drive to a new PC, a different drive is assigned and I would have path not found error in my program. I only knew about set_path=app.path which is actually referring to the path where VB6 is installed and not directory of the VB project file that I saved in. Is there any any to set the path to the local path of .vbp or .frm?

Member Avatar
Member Avatar
+0 forum 3

Hello guys, I'm making a website and i have a problem with the images from the css file. I'm using subfolders for the website (www.domain.com/category) and i'm using css sprites for the images and i'm having problems including the images. i don't want to use absolute paths. The path to the images is like this (images/logo.png) and when i navigate to www.domain.com/category the images can't be seen.

Member Avatar
Member Avatar
+0 forum 5

I've decided to try my hand at programming neural networks since I'm in an adaptive critic course. The thing that I want to attempt is a solver for the game located here http://moh97.us/flow/. You basically have to connect like-colored circles together without crossing over any paths and while filling up all the empty squares with a path segment. I've been reading up on Hopfield Networks and I think this is the right network to use since I am essentially going to turn on or off a node (square) depending on these conditions to check: 1) Is square already filled? 2) …

Member Avatar
+0 forum 0

i have downloaded this script , a photo gallery which creates albums, uploads photos, deletes them, i nedd to insert the path of the folder according to this instructions : $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. $files_path="./album/"; // Where does the album start? Anything under the directory the script will read. With Trailing slash $full_server="http://localhost:8080/phAlbum/album"; //Enter the full server path to where the albums start. //With Trailing Slash Can you explain it to me, i want to be sure, eventhough there are comments that explain, is it ok this way? Because when i …

Member Avatar
Member Avatar
+0 forum 3

How could I add a external library to the native c++ lirary path at Ubuntu to be found by #include from source code? I have some couple of sources that I try to include them by all the codes written on my machine thus instead of coping all the library every code I wrote, I plan to define it as a native c++ library that can be rached by all codes with single #include.

Member Avatar
Member Avatar
+0 forum 3

The End.