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

I'm trying to search on how to store the image in a local folder and save its path and filename in ms access using vb.net but a lot of topic makes it more confusing for me. I'm just a student and working on my baby thesis. I'm currently building an employee's record and salary statement system where all values in registration form will be save in my database(ms access) including picture of the employee but i don't know how to start. Can anyone help me with my problem? I'm using vs 2005 with ms access 2003. Thanx in advance :)

Member Avatar
Member Avatar
+0 forum 2

why their is a difference between os.getenv('PATH') and sys.path ?

Member Avatar
Member Avatar
+0 forum 3

When the button is clicked, I want the file (it's a XPS document) to be opened in windows. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar
Member Avatar
+0 forum 3

When the button is clicked, I want the file to be opened. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar
Member Avatar
+0 forum 5

Hello Community, I was wondering if there is a way to make a spark effect the follows a path using WPF. Please Help...

Member Avatar
+0 forum 0

Hello Community, I was wondering if there is a way to to use the webbrowser to download a file silently without the download file dialog coming up. What i want is to use `Browser.Navigate("Download Path")` and i don't want the file dialog to show up i want it to just download the file to a path of my choice (eg. `My.Settings.Path`). Please Help...

Member Avatar
Member Avatar
+0 forum 7

Hello Community, I was wondering if there is a way to restrict sub directories from accessing the parent directory (the main directory where all my website file are stored) and from having any interaction with the previous folders (so once there in the child folder they can't leave it eg. using *../*) Is there a way doing this using PHP or .htaccess? Please help...

Member Avatar
Member Avatar
+0 forum 7

Hi,I am an asp.net developer working on c# language I WANT TO GENERATE A DIFFERENT URL PATH FOR A PARTICULAR PATH FOR EG: my website url is www.abc.com when i used to write this url on webbrowser my page will get open. But i want to generate a duplicate url of www.abc.com like www.dfre4647/58fdrf43f and when i copy this url and make run on webbrowser, my same page gets open as it was open on run www.abc.com. The duplicate url should generate on linkbutton or on button click. On every click different url path gets generate but on running it …

Member Avatar
+0 forum 0

Hello! I am having trouble getting the abspath when entering only an executable file. How can I fix this to return the full abspath? I am taking user input and opening a process (application). Here is my code: file = "/" + arr[2] + ".exe" print(file) path = os.path.abspath(file) print(path) subprocess.Popen(path) localtime = time.asctime(time.localtime(time.time())) print(arr[2] + " opened at " + localtime + "\n") When args[2] = 'firefox', this is outputted: firefox.exe C:\firefox.exe Traceback (most recent call last): File "C:\Python33\lib\subprocess.py", line 1090, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified Any suggestions? Thanks!

Member Avatar
Member Avatar
+0 forum 2

Dear all, how i can fetch image path in input field. when i update form the image path has lost their path so it is not updated so please do some help. thanks

Member Avatar
Member Avatar
+0 forum 3

Hi everyone. I have not done any type of coding in some years and can use some help with a simple yet frustrating task. I am trying to allow registered users to upload a "profile" photo to the server and insert the path into the database. I would like to do this as a "record update" in coldfusion with the session variable MM_Username as the primary key. Can someone please help me with a code sample.

Member Avatar
Member Avatar
+0 forum 12

Warning: include(funck.inc.php): failed to open stream: No such file or directory in C:\xampp\htdocs\search\index.php on line 2 Warning: include(): Failed opening 'funck.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\search\index.php on line 2 help plz what i have to change

Member Avatar
Member Avatar
+0 forum 5

Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, help is appreciated!

Member Avatar
Member Avatar
+0 forum 6

I have a question in SCJP text book by Kathy Sierra and Bert Bates in Development chapter. Q. Given the default classpath: /foo And the directory structure: foo | test | xcom |--A.class |--B.java And these two files as mentioned in the code snippet section. Amongst the choice, 1. javac -classpath . xcom/B.java 2.javac -classpath xcom:. B.java Correct answer is option 1. But my doubt is that isn't option 2 going to perform same operation? If not, what is the difference between the two syntax?

Member Avatar
Member Avatar
+0 forum 1

Hi :). I use this code to create a file: #include <cstdlib> #include <fstream> using namespace std; int main () { ofstream file("main/articles/giraffe/article.txt", ios::out); file.close (); return 0; } How can I simplify **create path of folders** (on **unix system**) "main/articles/giraffe/" - if folder "main" doesn't exist? With using standard system libraries only. Thanks :).

Member Avatar
Member Avatar
+0 forum 6

i have to create a graph for my project i found an example that was working and followed it first time with graph. i wrote my code got no errors but when i run the code this is what i am getting i don't understand it can some one help me please i am in crunch mode. Exception in thread "main" java.lang.NullPointerException at Main.GetAllAdjcentNodes(Main.java:69) at Main.Dijkstras(Main.java:101) at Main.main(Main.java:184) here is the code import java.util.ArrayList; import java.util.HashMap; import java.util.ArrayDeque; public class Main { public static ArrayList<node> Nodes = new ArrayList<node>(); public static HashMap<String,Integer> NodesIndex = new HashMap<String,Integer>(); public static ArrayList<edge> Edges …

Member Avatar
Member Avatar
+0 forum 8

Sorry for my english.. Im trying to make a program that show the shortest route of this nodes using BFS algorithm.. ![115](/attachments/large/3/115.JPG "115") i tried to print the prev array which shows the shortest route but somehow it doesnt appear on console when running.. how to fix it? btw, is there any much simple algorithm than these one? thanks. > #include <stdio.h> > #include <queue> > #include <conio.h> > using namespace std; > > int nodes, edges, src, dest; > int graph[100][100], color[100],distance[100],prev[100]; > const int WHITE = 0; > const int GRAY = 1; > const int BLACK = …

Member Avatar
Member Avatar
+0 forum 4

So, even thou I have searched throughout the forums, I couldn't get a clear answer, maybe perhaps I'm a noob @ Python. As a beginner, I don't know much about Python, and it's frustrating to search the net and not find the actual answer. So, I'm working on this project, and I stumbled upon this thing: what I want to to is to open the command line(I'm working in Windows 7 ultimate) from a Python file, change the directory, of whatever is there, like, from the start cd c:\\ to the actual c: directory. Next step comes from the user, …

Member Avatar
Member Avatar
+0 forum 3

hi everyone, i encounter problem when trying to create a form page to upload images to images folder and imagelocation will store information for the pathname where the image will be located ( will be used for display image in future) the code below does not have any error when i trying to upload a image, but the images does not seems to appear in images folder and did not insert new row in mysql. appreciate if you could advice me where went wrong? sorry i am really new to php. [CODE] <?php // Require the database connection: require ('./includes/config.inc.php'); …

Member Avatar
Member Avatar
+0 forum 6

Dear respected senior php web developer i m new to php webdeveloping and hoping for a good coder one day inshaALLAH SIR i have problem with my image hosting script [url]http://pashtoaudio.com/tahir/upload.php[/url] is for uploading images and [url]http://pashtoaudio.com/tahir/photos.php[/url] is for displaying all uploaded images how ever i want to show there small thumbs i put everything correct in <img scr=""> tag but still my images thumbs not loading pelase help me thanks! i m giving my exact code for showing images thumbs here is the code. [CODE] <html> <head> <title>PHP Photo Hosting Script</title> <link rel="stylesheet" type="text/css" href="main.css" /> </head> <body> <?php …

Member Avatar
Member Avatar
+0 forum 4

hi i just started php, my code works on ie, bit when i open the webpage on firefox and chrome the image does not display?, can anyone help [CODE] $car = "C:\wamp\www\porche.jpg"; $banner = "<img src=\"$car\" "; $banner .= "width=\"380\" height=\"110\" border=\"0\" >"; echo($banner); [/CODE]

Member Avatar
Member Avatar
+0 forum 3

how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site.

Member Avatar
Member Avatar
+0 forum 1

what is the use of [code]unix-stream("path/to/file");[/code] I can't seem to find it anywhere.

Member Avatar
Member Avatar
+0 forum 1

I want to be able to launch a program using the system command that is located in the same directory as my program, is there an easy way to do this, without having use the getpath function and store it under a variable? Thanks

Member Avatar
Member Avatar
+0 forum 1

Hey very simple problem. I've been searching the site to see if I did anything wrong and I had to fail because I still get the wrong results (semantic error). Problem #1: Every time I use fopen with the "w" (or write) mode the file with whatever name given is not created which brings us to the second problem. Problem #2: Correct me if I am wrong (syntax might of changed due to updates), but as I know according to Dave Mark's "Learn C on the Mac" he specifies as filename paths as the following: All of the following are …

Member Avatar
Member Avatar
+0 forum 3

This is a continuation of problems with the program posted here: [URL="http://www.daniweb.com/software-development/python/threads/372311"]http://www.daniweb.com/software-development/python/threads/372311[/URL] I started thinking there was something wrong with my statement to open the csv file, using the reader. [CODE]reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb')) [/CODE] I put a test statement above the open statement and the test worked the way it was supposed to but when I move it below the open statement, it no longer works. Then, I ran [CODE]if os.path.exists('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv'): print 100 else: print 2[/CODE] and got the else branch. I don't see why it would …

Member Avatar
Member Avatar
+0 forum 1

a browse and submit button when pick the image and submit , the image name goes to my SQL table and the image it self that the customer pick it copied to my "upload" folder :( my problem is that i only see the image name , so my issue is that i can't upload that image to a Folder :S the code is : [CODE]<?php require_once('Connections/dalilack.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) …

Member Avatar
Member Avatar
+0 forum 6

The End.