Hello.
I have added a simple .gif file into Resources folder in my project.
Now i have created a user control with pictureBox.
How can i add the .gif to pictureBox.Image = new Bitmap (path).
What is the path in this case?
thanx !
I pulled a stupid and accidentally committed a folder named ${env.CATALINA_HOME} to my subversion repo. I tried doing an svn rm /path/to/${env.CATALINA_HOME} but it says "bad substitution" which I'm guessing means that it cant figure out why i'm using ${} notation in the path. I also tried surrounding the path in quotes, to no avail.
Suggestions?
I am running multiple applications with a single Codeigniter system/ folder using the recommended way on the Codeigniter wiki. Each application runs fine and I can link between apps using absolute URLs.
Is there some way I can use or extend the URL helper class (functions like anchor(), redirect()... etc.) to generate links to controllers across applications. I would like to avoid absolute URLs
Thanks!
For assets stored in the 'public' folder of a ruby-on-rails application is it possible to change the 'Content-Type' when running 'script/server'? For example, I am attempting to create an HTML5 application supporting offline mode, and have an 'offline.manifest'. When I run:
curl -I localhost:3000/offline.mainfest
The following header information is returned:
HTTP/1.1 200 OK
...
Content-Type: text/plain
...
However, HTML5 specifications require:
HTTP/1.1 200 OK
...
Content-Type: text/cache-manifest
...
Hi,
I am developing an application in cocoa which needs to copy a folder added to resource to other location in System/library .How can i specify the source and destination path.Looking for a solution
Thanks in advance
I just started django and i want to access images uploaded by a user.
here is my model:
class Food(models.Model):
name = models.CharField(max_length=100)
price = models.DecimalField(max_digits=4, decimal_places=2)
quantity = models.IntegerField(blank=True, null=True)
description = models.CharField(max_length=200)
location = models.CharField(max_length=100)
time = models.DateTimeField()
photo_thumbnail = models.ImageField(upload_to="images")
photo_fullsize = models.ImageField(upload_to="images")
i stored the image in the "images" folder below
the html is this:
img src="{{steak.photo_thumbnail}}"
and
steak.photo_thumbnail = images/steak_and_egg_thumbnail_1.png
here is the error i get:
[06/Jul/2012 19:08:24] "GET /menu/ HTTP/1.1" 200 99
[06/Jul/2012 19:08:24] "GET /menu/images/steak_and_egg_thumbnail_1.png HTTP/1.1" 404 2127
Hi,
I would like to know following: I added the folder "Graphics" into my project and placed one BMP to it. Now I would like to load the image from my code, but I cannot figure out how. I know its simple with resources but is there a way without adding the image into resources? Thanks
I'm using the following code to check the access on selected folder. but it's not working.
private boolean writeAccess(String path){
try {
AccessController.checkPermission(new FilePermission(path, "read,write"));/*,*/
// Has permission
return true;
}
catch (SecurityException e) {
// Does not have permission
return false;
}
}
wt is prblm in it. and is there any other options to check the existance and access on the folders/directories?
I read some tutorials on how to read data from a database.properties file- which basically stored key-value pairs.
What i want to know is, in which folder should I place this file? Is it in the root (ie "src") or within a package... And how do I access this file, if it is placed in "src"- my code will be within a package (and the package's directory will be under src)- so how do I access the properties file, which is in "src", from a class within a package?
Hi,
This is about folder level permissions. We have a document library with break inheritance. While adding folders, sub folders through code, again we coded for break inheritance.
Now the requirement is, when a user/group is added to subfolder permission list, we need to track this event. Which sharepoint event do we use and on what level. Please help.
I have a ClickOnce application that I would like to "re-brand" for multiple clients.
Is there a way, without separate deployments or branched builds, to change the start menu folder/link of the application?
Obviously once it starts and gets the settings it can rebrand everything else from there...
Hi,
I have program which writes to database which folders are full or empty. Now I'm using
bool hasFiles=false;
(Directory.GetFiles(path).Length 0) ? hasFiles=true: hasFiles=false;
but it takes almost one hour, and I can't do anything in this time.
Is there any fastest way to check if folder has any file ?
I want the control component which can provide access to all file sistem like a folder browser dialog but with supprot of which i can select many folders and file. whether there is already such a component in VS 2008 or made by third parties or should I create it myself?
Hi,
I'm using godaddy shared hosting, with IIS7, Integrated mode, and published up a bog standard MVC2 app to dev.lazygekko.com created with Visual Web Developer 2010.
It all works, however when any of the links are clicked, they point to dev.lazygekko.com/dev/..., dev being the folder it is pointing at.
Can anyone shed some light on what I may be doing wrong?
Many thanks.
I have an Admin folder which contains 4-5 aspx pages. I want to that only user with role="admin" can view those files. What settings i need in web.config?
I need to take a file and move it to a windows machine on a specific folder where it is then to be printed automatically. How would I accomplish something like this? Is it possible with PHP?
Hi All,
I am calling a controller method to convert a video file. This process
is called using background_fu job. When the function tries to create a
new folder in rails root it gives error i.e. Permission denied. The
function performs well if not called in background job process.
Can any one point out what can be the trouble.
Thanks in advance,
Anubhaw
i have an asp hyperlink i want to link it to a .doc file found on a shared folder.
i was able to do this in internet explorer but not in firefox:
my code:
hlc.NavigateUrl = @"file:\\direct\upload\file.doc";
I recently upgraded to PHP 5.3 and since then I get (sporadic) error messages which indicate Apache (or may be the cleaner of the session files) has no permissions to the folder where the sessions are stored.
This happens randomly and can't be reproduced with exact steps, which led me to guess it is the session cleaner.
Any one has experience with such errors?
We have a images folder which has about a million images in it.
We need to write a program which would fetch the image based upon a keyword that is entered by the user.
We need to match the file names while searching to find the right image.
Looking for any suggestions.
Thanks
N
Hello guys,
I would like to ask what is the ideal folder structure for a MVC framework that should be able to support multiple installations. For example, I install xyz framework and i run two or more sites based on this single installation of xyz framework rather than installing the framework for each site.
This is probably done in Codeigniter too but i don't know much about CodeIgniter, so i need your suggestions. I know some of you might even have better idea than what is done by CodeIgniter, so please share.
This sounds like a really good idea:
Ageing Icons with Freshness App
Unfortunately the "demo" is Mac only. How would you go about replicating this on Windows?
One approach I can think off is to modify the desktop.ini file within each folder. This would require a service that periodically scans some folders and updates the desktop.ini file. Is this the best way?