I have an 'access denied' problem on an ASP.NET web application, where the user uploads an Excel file and I try and write it to a folder. I don't have access to the host except FTP, so I can't set permissions. I thought that ASP.NET would be able to write to a folder that is under the web app root, but it isn't so.
Is there anywhere I can write the file to that doesn't require me to set permissions?
I have this:
app/modules/grid_module.rb
app/modules/grid.html.haml
then in my view:
app/views/layouts/default.html.haml
I want to make a new instance of the grid_module and render it content. Its content is into the grid.html.haml and this file can only use the instance vars set in the grid_module.rb
is this possible to do? (the grid name is just an example, it must be more flexible, to load the html.haml file based on the .rb class)
the grid_module must has access to models too*
like this: User.find_by_id(4)
thanks for help
I have a folder full of files and i want to search some string inside them. The issue is that some files may be zip,exe,ogg,etc.
Can i check somehow what kind of file is it so i only open and search through txt, php, etc files.
I can't rely on the file extension.
I'm doing a little program and I want to distribute using this recipe:
single directory with _main_.py in it
zip this directory and echo #!/usr/bin/env python\n file.zip
making it executable
The problem is that in this package I have also extra files (I'm using pygtk toolkit and I need images and ui xml files). When I try to access these files I have the error that the resource is unavailable (the path that I'm trying to open is something like file.zip/gui/gui.ui ).
How can I handle this situation?
Hey,
I want to include a file to be accessible to any method/function in a PHP class. The file just contains a base-64 encoded variable. How do I do this?
Thanks.
Publishing an open-source project, is it enough to add a LICENCE.txt file to the package or do i need to copy and paste it on top of every project's source file?
On public repository like github or google code i saw mixed things and i'm curious on how this legal aspect should be handled correctly.
How to register a new MIME type in android? I am very much new to android. I need to download a *.ics file from the browser (Email attachment).but the browser response is unsupported file format.Can anyone help me ???
Hi,
I have a small flash project. I created a SWF from the flash sources.
Unfortunately all my flash sources related to the project are deleted.
I left with the SWF file. Is there any way that I can retrieve all the flash source files from the swf file ?
Hi,
I want to create a script that checks an URL and perform an action (download + unzip) when the "Last-Modified" header of the remote file changed. I thought about fetching the header with curl but then I have to store it somewhere for each file and perform a date comparison.
Does anyone have a different idea using (mostly) standard unix tools?
thanks
i want to add to stage a movieclip in another class not the .as file as the same name of .fla file how can i get this.
When i run same code in main.as i get the result but in another class it runs but no result.
Suppose i want to store 3 lines in a file both in python and C++ .
I want to store it like this
aaa
bbb
ccc ..
But i am giving ccc input first then bbb then aaa. How will I traverse the file from bottom to top and also store from bottom to top/?
Say I'm collaborating with someone via a git repository, and there is a particular file that I never want to accept any external changes to.
Is there any way for me to set up my local repo to not complain about a conflicted merge every time I git pull? I'd like to always select my local version when merging this file.
hi,
i have access to the zone file for a tld. How can I extract just the domain names in the fastest possible way?
Any suggestions on how to store them in a database/file? There are millions of them.
http://djaffry.selfip.com:8080/
error is here. i am trying to open a file using
shelve.open("file")
i gave everything in the directory 777 permission with chmod -R 0777. i understand this is unsafe but i did it to see if it was a permissions problem. i am still getting the permission error, however. any idea how i can fix it?
I started a project and added it to hg, but I want to take *.cs file under version control only, so,i have to add bin, obj, sln, suo,_resharper folder etc to ignore pattern, ,how to let hg only monitor certain kind of file like white list? How to do that in Subversion?
When our server comes up we need to check a file to see how the server is configured.
We want to search for the following string inside our /etc/aws/hosts.conf file:
MYSQL_ROLE=master
Then, we want to test whether that string exists and use an if/else statement to run one of two options depending on whether the string exists or not.
What is the BASH syntax for the if statement?
if [ ????? ]; then
#do one thing
else
#do another thing
fi
I am using PHP/Java bridge to run PHP scripts on the Tomcat server. Can someone point me to an example as to how to call my PHP scripts from a Java file.
<?php
class X{
//variables
//functions
}
?>
Now I want to call the member functions of class X using its object via a Java file. How do I do this?
I would like to obtain all the versions of a given file in my SVN repository. For instance, let's say that the file ThirdPartyAssembly.dll was checked 3 times, is there a command that will get me all the version on my HD (e.g. ThirdPartyAssembly.dll.v1, ThirdPartyAssembly.dll.v2, ThirdPartyAssembly.dll.v3, etc.)?
Thanks!
Hi,
I need to save the files which are coming from the server automatically in the client side.
The file comes to the client side to download. At that time I want to save the file automatically without user interaction. Is there any way to do this ?
I've got a situation where an ini file is in memory (in a string variable) and I'd like to read values out of it without writing the ini file data to disk.
Is there any way to do that in VB6? Maybe with a Win API call?
Hi,
given a plain text file, how can I do, using bash, awk, sed, etc, to, at the line number NLINE, add the string STR, just n spaces after the end of the line?
So, for instance, if this is the line NLINE:
date march 13th
for 5 spaces, we get
date march 13th STR
and one gets the modification in a new file.
Thanks
I'd like to use arguments from file as command-line arguments for some commands like gcc or ls.
For example gcc -o output -Wall -Werro
as file consist of:
-o output -Wall -Werro
Used for gcc command-line call.
I want to concatenate the values of two or more keys from a resource file, while assigning value to a control, somthing like
<%$ Resources:LocalizedText, LeadTitle%"
but, getting an error.Is it possible some way to concatenate the value of different keys from a resource file?