Hi
I'm trying to draw a label on a polygon of an svg file. The problem I'm facing is to find out roughly the center of this polygon to place the label, as the path's coordinates are in svg format and need to be parsed. Is there an easier way to determine the center of an svg polygon (maybe someone can point out a javascript library or a...
Given a string that is to a directory, how can I make sure there's a closing \ character? For example, C:\foo is a directory, and so is C:\foo\. Is there a System.IO.Path method that ensures there's a ending \?
...
Hi Guys,
I'm testing a website on my local machine and I'm wondering what would be the best way to write paths to make sure they work when I upload the site to its final location.
In general I'm a bit confused about paths, and in many cases I have to 'tweak' each path until it works, so wouldn't want to be forced to do the same on a p...
I am using the streamreader to read from a file in the project..
StreamReader stRead = new StreamReader("textfile.txt");
while (!stRead.EndOfStream)
{
CheckBoxList1.Items.Add(stRead.ReadLine());
}
but i get an error:
Could not find file 'c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE...
Hello Every1,
i maintain a sqlite db in my iPhone app so, i was wondering how u could persist a single version and updated one.
its said that if want to make updates to the db u should copy it to the documents folder
on my iPhone simulator the documents folder changes like everytime i open the app
if its copied and changes was made ....
At the moment you can use arguments in you view path, for example user/%/friends where % is an argument (user's ID). But is it possible to use an argument in different way, let's say user-%/friends, so the normal path would look like user-123/friends instead of user/123/friends?
Thank you.
...
Hi All,
I've been programming the iphone for a couple of months now and have 3 apps in the store already.
However, I have not done any kind of graphics programming in the platform.
Given that I'm planning on starting my 5th app (the 4th is under Apple's review) I wanted to ask for some pointers as to where to get information for this ...
is there a uniform way in .NET to get application path (physical) both for windows applications and asp.net applications ??
...
I'm using indexPath.row do determine in which row of my tableview I do something. The title of my cells is containing a number which should be 1 in the first row and 18 in the last row, so I have 18 rows. This works for the first 11 rows, but after that, I have numbers in the title which seem to be generated randomly! Sometimes 16, then ...
I've noticed that when using the Settings object that's created by a Windows Forms application, any spaces in the "Company Name" field of the assembly info are replaced by underscores in the path of the user.config file. For example, in XP the path to the user.config file will be something like:
\Documents and Settings\user\Local Setti...
So I'm pretty new to version control but I'm trying to use Mercurial on my Mac to keep a large Python data analysis program organized. I typically clone my main repository, tweak the clone's code a bit, and run the code on my data. If the changes were successful I commit and eventually push the changes back to my main repository. I gu...
I want to get the folder path from the file who is running the vba-code.
For example: the vba-code is in the file C:\myfolded\file.accdb and I want the vba-code to return C:\myfolded\
Is that possible?
...
Is there a way to check whether files (with either an absolute or relative path) exists? Im using PHP. I found a couple of method but either they only accept absolute or relative but not both. Thanks.
...
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
The above is what I see in index.php of phpMyAdmin.
Isn't it the same as:
<link rel="icon" href="favicon.ico" type="image/x-icon" />
Or say,can you give an example where these two generates different results?
...
I'm on Snow Leopard and installed ruby, rubygems and rails the hivelogic way. When I change to my new jekyll project (~/Documents/blog/jekyll), and run
[jekyll]$jekyll --server-bash
I get:
[jekyll]$jekyll --server-bash: /usr/bin/jekyll: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such fil...
In order to refer to a local DTD when using PHP SimpleXML, I need to convert the absolute path into a file type URI. For example, convert /home/sitename/www/xml/example.dtd to file:///home/sitename/www/xml/example.dtd.
In the example given, it is easy enough, since all that is required is to add the 'file' scheme in front of the path. ...
In my C# app, I am programmatically installing an Oracle client if one is not present, which requires adding a dir to the PATH system environment variable. This all works fine, but it doesn't take effect until the user logs out/in to windows, or reboots. How can I get my app to recognize and use the new PATH var without this step? Eve...
I am trying to work on a Python library that is already installed on my (Ubuntu) system. I checked out that library, edited some files, and wrote a small script to test my changes. Even though I put my script in the same folder as that of the library, it seems Python is using the installed version instead (the one in /usr/share/pyshared/...
Hello,
I use a index.php to control the access of pages.
Here is the mechanism:
Index.php redirects the page to search.php; code: index.php/?page=search
the path of search.php is : pages/search.php, search.php includes header.html, body.html etc.
Now in body.html we call search.php using: index.php/?page=search parameter, and b...
I have read that when including a php file that using a absolute paths has a faster processing time than relative paths.
What would you suggest to use?
include("inlcudes/myscript.php");
or
include("/home/ftpuser/public_html/includes/myscript.php");
or even
set_include_path("/home/ftpuser/public_html/includes");
include("myscript....