I need to convert UNC paths to file:/// URLs, e.g.
\\fileserver\share\dir\some file.ext --> file://///fileserver/share/dir/some%20file.ext
Is there some built-in function for this?
I'm programming an app in which one of the ViewControllers is showing an UIScrollView that shows an image.
I'd like to load an image (pushpin in png format) and draw it (and delete it) in some points of the UIScrollView image.
I'd also would like to draw bezier paths in that image (and deleting them).
I've programmed several apps but this is…
Hi,
I have a problem with my code.
I want to create a XML file like this:
<name>myName<name>
<x>myX<x>
<y>myY<y>
<z>myZ<z>
but my file is:
<name>myName<name><x>myX<x><y>myY<y><z>myZ<z>
Can i have this text formatting?
This is my code:
…
I have a .NET solution which was badly organised, so I moved some projects around to appropriate folders. In the solution, I simply fixed the paths to the new locations, and everything is working in my working copy.
I used AnkhSVN to commit the solution to the repository, which worked out fine as well.
However, when I look in the repo…
By click context menu:Properties-C/C++ General-Path and Symbols
I've added mysql.h into the Includes path under language GNU C++,
and also added libmySQL.dll to the Library Paths.
But it still can't find mysql.h :
#if USE_MYSQL
#include <mysql.h>
#endif
Is there something I'm missing out?
If I copy all the files from the debug folder and paste it somewhere it stops working gives me a sandbox error. ( I am not using any absolute paths) and everything seems to be fine in debug folder. Any Ideas?
It's a actionscript project in flex builder.
All I want is really absolutely basic 2D drawing stuff e.g. rectangles, circles, paths, curves, béziers and so on. I don't need all the 3D model meshes with all this texturing and lighting. Is there a good learning resource for a fast startup programming just for fun?
I am trying to run django on osx 10.7 (lion) with apache mod_wsgi and virtualenv.
My site works if I use the django testing server:
(baseline)otter:hello mathew$ python manage.py runserver
but it doesn't work when I run apache. The core of the error seems to be
Library not loaded: libmysqlclient.16.dylib
I think its to do…
Given a directed graph with weighted edges, what algorithm can be used to give a sub-graph that has minimum weight, but allows movement from any vertex to any other vertex in the graph (under the assumption that paths between any two vertices always exist).
Does such an algorithm exist?
Hi,
Stupid Monday morning basic/noob question...
Is Page_Load generally called for an ASP.Net MVC app?
We just have one page, Default.aspx.cs - which only seems to be called for / and not for any sub-paths, so I dont think it is generally called...
Thanks,
Chris
It might have something to do with library and other paths, but every time I build/compile software in DRS which uses a bought component like TMS controls the TMS controls keep getting recompiled, too.
How do I stop that?
Someone posted something similar but it didn't really solve the problem.
I want to move all my static files (images, javascript, css) to an Amazon S3 bucket when I deploy my app, as well as rewrite those paths in my app, is there a simple way to accomplish this? or am I in for a huge amount of work here?
Just had an interesting case.
My software reported back a failure caused by a path being longer than MAX_PATH.
The path was just a plain old document in My Documents, e.g.:
C:\Documents and Settings\Bill\Some Stupid FOlder Name\A really ridiculously long file thats really very very very..........very long.pdf
Total length 269…
I'm writing a shell script which will rsync files from remote machines, some linux, some macs, to a central backup server. The macs have folders on the root level containing aliases of all files/folders which need to be backed up. What is a terminal command I can use to resolve the path to the files/folders the aliases point to?…
Hi,
What are some suggested "paths" for getting better at drawing in code in Cocoa? I think at this point, that's my biggest weakness. Is drawing in code something general, or Cocoa-specific?
Thanks!
- Jason
Hi All,
I have a customized OpenFileDialog (VS2008, C#, Windows Forms) with a ComboBox. The ComboBox will have a list of paths which the user can select.
My question, is there a way I can change the directory in Open File Dialog to point to the path in the combobox selected item.
InitialDirectory works only before I open the…
I use this method to get file extension,
public string ReturnExtension(string fileExtension)
{
switch (fileExtension)
{
case ".doc":
case ".docx":
return "application/ms-word";
}
}
When i compile it i got the error BaseClass.ReturnExtension(string)': not…
I'm creating a config file to hold configuration/properties settings for my project that frequently change, such as file paths. What's the standard name/extension for such a file? (e.g. in Java I've used config.xml, in VB.NET I've used App.config...)
I'm going to index a BDB with keys that look a lot like directory paths ('/foo/bar', '/foo/baz', etc, with levels of slashes generally < 10).
Does anybody have any experience with using a Btree prefix comparison routine[1] for this? Are the savings worthwhile? Any references to experience papers on this subject?
[1]…
Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?
I have a controller with @RequestMapping for root path "/". There are other controllers with say a @RequestMapping of "/test" etc. My application seems to be mapping correctly for paths like /appname/test, but if I add a trailing slash to the path, like so "/appname/test/ then it maps to the controller that has the…
I need to get list of files on some drive with paths that matches specific pattern, for example FA\d\d\d\d.xml where \d is digit (0,1,2..9). So files can have names like FA5423.xml.
What is the most efficient name to do this?
hello friends,
i have
public jsonresult update(studentinfo s)
{
for(i=0;i>0;i++)
{
var x = // i am getting some x so i am checking again
if( x != null)
{
var updateuser = student.update(s.student,"","");
**return json(updateuser.ToString());** // if i keep it here i am…
In IIS 5 one of the directories off the root has a leading underscore. All files under the directory are unreachable (404) from the browser. I have verified that the paths are correct.
Other javascript files outside the directory comedown fine.
Any thoughts?
Example:…
Commonly movable type will publish HTML files which contains absolute path, but if I want to host the site under different domain(e.g., both HTTP and HTTPS), it is very inconvenient.
So is there a way to change all the paths to resource of my site to absolute ones?
…