Its been a long time since I've needed to crack open an .htaccess file...
What is the simplest way to 404 prevent access to a specific file extension though out the entire site?
Hi
I've a php file which processes a query and returns an array.
How do i get these and array and parse them and display them using ajax.
I call the file using ajax. Its used to display the matching products while typing a text box with the price...
responseText doesn't return anything...
Is there a way to restrict the user to a folder on the server when they choose to browse for a file using the input type=file button?
for example: If you have images you want the user to choose from that only exist in the server's image folder to prevent them from search for and uploading their own images.
What does Error 3112 indicate when compacting an MDB file?
The Error description is "Records can't be read; no read permission on 'xyz123.mdb'"
There is a known issue with the Compact function on some versions of Access MDBs. Is the solution in this case to run the Microsoft utility JETCOMP.EXE on this file?
What are the other possible causes of this error?
Is there a way to create a dump/export/save a temporary MySQL table into a file on disk(.sql file that is, similar to one that is created by mysqldump)?
Hi ,
Can HTML code be attached to HTML page like CSS file ?
So that if part of HTML code is replicated in all pages , I can put it in one file and then easly modify it .
Thanks,
Ahmed.
I need to read the data out of database and then save them in to a txt file, how can i do that in Ruby on rails? is there any file management system in ruby on rails?
Thanks
I have opened assembly with reflector and saved some .resources files to my hard drive. There is some bitmaps in there, how can I get them from saved .resources file?
I'd like to save them as image (.bmp) file via code or some program.
I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field.
Posting text fields is straightforward, there's an example right there in the net/http rdocs, but I can't figure out how to post a file along with it.
Net::HTTP doesn't look like the best idea. curb is looking good.
I'd like to make a click event fire on an <input type="file"> tag programmatically.
Just calling click() doesn't seem to do anything or at least it doesn't pop up a file selection dialog.
I've been experimenting with capturing events using listeners and redirecting the event, but I haven't been able to get that to actually perform the event like someone clicked on it.
I want display the content of doc file in a textarea for my project using PHP as it is means line break, font size etc.
Any code or how to do it. And i will be fetching that doc file from database.
Hi,
FOund the following on: http://mike.murraynet.net/2009/08/23/parsing-the-verisign-zone-file-with-os-x/
Can unix-masters have a look at it and see if its the best possible way to gather the unique domainsnames in a zone file?
For .NET domains:
grep “^[a-zA-Z0-9-]+ NS .” net.zone|sed “s/NS .//”|uniq netdomains.txt
For .COM domains:
grep “^[a-zA-Z0-9-]+ NS .” com.zone|sed “s/NS .//”|uniq comdomains.txt
For .EDU domains:
grep “^[a-zA-Z0-9-]+ NS .” edu.zone|sed “s/NS .//”|uniq edudomains.txt
Hello,
I want to extract only the files inside a folder of a tar file
Example:
Contents of tar file:
/home/parent_dir/child_dir/
I want to extract only the files inside child_dir to another directory
Thanks,
SB
I have some files that I'd like to delete the last newline if it is the last character in a file. 'od -c' shows me that the command I run does write the file with a trailing new line:
0013600 n t > \n
I've tried a few tricks with sed but the best I could think of isn't doing the trick:
sed -e '$s/\(.*\)\n$/\1/' abc
Any ideas how to do this?
hi all,
I have a functionality where a user is given file to download.
It works fine. BUT -
1. How to know whether user has downloaded a file or cancelled it?
2. After downloading I wat to redirect current page to another one that is also not happening.
Please let me know if any one of you have any idea about it.
(I am doing it in Joomla)
Regards,
Shahu
I have tried to do the following, but the web-service is NOT REST and does not take multi-part. What do I do in order to POST the image?
@response = RestClient.post('http://www.postful.com/service/upload',
{:upload => {
:file => File.new("#{@postalcard.postalimage.path}",'rb')
}
},
{"Content-Type" => @postalcard.postalimage.content_type,
"Content-Length" => @postalcard.postalimage.size,
"Authorization" => 'Basic xxxxxx'
} # end headers
) #close arguments to Restclient.post
I want to search for a line in a file, using regex, inside a Perl script.
Assuming it is in a system with grep installed, is it better to:
call the external grep through an open() command
open() the file directly and use a while loop and an if ($line =~ m/regex/)?
What is a "Visual Studio SharePoint Package file" (.package)? I am trying to extract some data and this is the only file that looks large enough to contain what I'm after.
I would like to move a file or folder from one place to another within the same repository without having to use Repo Browser to do it, and without creating two independent add/delete operations. Using Repo Browser works fine except that your code will be hanging in a broken state until you get any supporting changes checked in afterwards (like the .csproj file for example).
Update: People have suggested "move" from the command line. Is there a TortoiseSVN equivalent?
We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users who do not have the functional idea of the webforms.So i was thinking of adding a help file in my project.Is there any special component or javascript ? will it be a good option if i go with form by form or a single help file ?
I have a Silverlight application that reads its content from an XML file. User can enter data and It'll be stored in SQL database. How can I read the data from SQL database and store it into an XML file ?
Thanks,