I am working to make a basic file database, but I couldnt find the true codes. Can anyone help me to save an exe file to sql database after read, download and use when I need it? With Delphi
I need some help with priviligies in centos
I have a file in
home/admin/public_html/generate.php
that I want to do some filecopy with using php copy function
When I set the file to chown admin:admin generate.php I can access the file but I cannot execute the php copy command because I don't have the proper rights.
When I set the file to root:root generate.php I cant access the file beacuse its under admin user folder home/admin/public_html/generate.php
how do I solve please, thankful for any help.
Bottom line is that I want my generate.php which is owned by admin:admin to be able to copy files from sources outside its home dir and to other home dirs
I am using CENTOS
I want a copy of SQL Server transaction log file for "raw" analysis. What is the safest way to get a copy of that file without shutting down the database and disturbing the existing log/backups/backup schedules and just about everything.
FYI, Its a SQL Server 2000 database server and I can see the log file (its about 4GB in size) and I cannot copy it as is; I get the "access denied" error when copying from explorer or command line.
I'm trying to make a deep copy of an object, including a GregorianCalendar instance. I'm always wary of using clone() and it doesn't seem to have been overridden here, so I'm just doing the copy field by field. Ideally, there'd be a copy constructor, which I could use like so:
GregorianCalendar newCalendar = new GregorianCalendar(oldCalendar);
Unfortunately I can't find any such functionality in the API and am stuck trying to figure out which fields I need to get an exact copy. So, to make a copy of one of these calendars, how would you do it? Am I missing some simple shortcut here?
I'm implementing an FTP-like protocol in Linux kernel 2.4 (homework), and I was under the impression that if a file is open for writing any subsequent attempt to open it by another thread should fail, until I actually tried it and discovered it goes through.
How do I prevent this from happening?
PS: I'm using open() to open the file.
I'm building a social networking type site that will be storing large chunks of text that's entered by users, such as blog entries and private messages. As such, these will be entered once, with minimal revisions, but many reads by multiple users over time. I'm using MySQL, by the way.
My concerns are:
Storing large blocks of text on the database will fill the database to capacity eventually.
I read somewhere that storing user text in flat files is a security risk? (The filenames will be generated dynamically by the PHP, not by the user.)
Storing them as text files may cause them to become out of sync if I ever have to reinitialize the database and restore it from backups.
What are all your thoughts and advice, pros and cons?
Is there a way to say, for instance, don't create an entry in IIS logs for specific file types? The shear size of our logs today makes it difficult and cumbersome to filter them after the fact; we're only interested in logging managed requests - can this be done OOTB?
I'm looking to create a macro in Excel 2007 which will do the following:
copy the formatting and values from a sheet called 'report',
insert this into a new workbook, naming the file with the value in 'B9' and appending the word 'report' to this
when copying the data into a new workbook, the formatting of the original should be retained, but cell contents pasted as values rather than formulas
prior to saving the file with the above name, the user will be prompted to choose their folder
at the end, a message will be displayed alerting the user that the file has been saved successfully
Any assistance would be much appreciated. Thanks.
I have attempted to do this, but my experience with VBA is limited. Here is what I have done so far...
Application.DisplayAlerts = False
Worksheets("Report").Copy
With ActiveSheet.UsedRange
.Value = .Value
End With
ActiveSheet.DrawingObjects.Delete
Set wbNew = ActiveWorkbook
wbNew.SaveAs Application.GetSaveAsFilename
wbNew.Close True
Application.DisplayAlerts = True
I want to search for the occurrence of string1 OR string2 OR string3, etc. in a file, and print only those lines (to stdout or a file, either one). How can I easily do this in bash?
Hi, I am new to python.
I am trying to extract the text between that has specific text file:
----
data1
data1
data1
extractme
----
data2
data2
data2
----
data3
data3
extractme
----
and then dump it to text file so that
----
data1
data1
data1
extractme
---
data3
data3
extractme
---
Thanks for the help.
I am getting a a InputStream from getResourceAsStream(), and I managed to read from the file by passing the returned InputStream to a BufferedReader.
Is there any way I can write to the file as well?
Hi,
I'm writing an application that will ship in two versions: Android and PC version.
Is there a simple way to access files from the shared code?
Using java.io is simple, but I don't know how to access android resources or assets using it. And I can't write methods that operate on FileInputStreams instead, because some files contain references to another ones, so I need a way to access them from the method code.
Any suggestions?
{if $loggedin}
{literal}
{include file="allhead.html"}
{/literal}
{else}
{literal}
{include file="allhead1.html"}
{/literal}
{/if}
How do I include the code contained into an HTML file in a smarty .tpl file? I've tried different solutions on various forums, but none work.
In Java how can I take the data of my file on my display screen?
I want to use data in my file and also want that data to be displayed on my output screen when I execute my program. Can any body please help by providing me such example in Java language. Thank you!
I have a build.bat file which uses %1 internally... so you might call:
build 1.23
I wanted it to read the parameter from a separate file, so I tried putting "1.23" in version.txt and doing:
build < version.txt
But it doesn't work. Isn't this how piping works? Is what I want possible and if so how?
So I have a .dat file that just holds a list of names, each name is on a new line. I am having a day of complete mental blanks but how would I go about getting those names out of the file and puting them into a array.
Thanks for any help
When I copy a database from one server to another via backup and restore, I find I have to recreate the users in the database. I can't login as them right after the copy - I get cannot open default database, when the database that was just copied is the default database. Why is this? The logins exist on the target copy server.
lst1 = ['one', 2, 3]
// What is the best way of the following -- or is there another way?
lst2 = list(lst1)
lst2 = lst1[:]
import copy
lst2 = copy.copy(lst1)
I have seen many websites triggering a file save-as dialog on a page with existing HTML content. How do they do this?
I know about setting the right headers such as Content-disposition etc. but when I do that, the content of the page does not load, and immediately the file download is triggered...
so I have a structure like
struct GetResultStructure
{
int length;
char* ptr;
};
I need a way to make a full copy of it meaning I need a copy to have a structure with new ptr poinnting on to copy of data I had in original structure. Is It any how possible? I mean any structure I have which contains ptrs will have some fields with its lengths I need a function that would copy my structure coping all ptrs and data they point to by given array of lengthes... Any cool boost function for it? Or any way how to create such function?
VMware vSphere 4
SAN storage with multiple data-stores
No vCenter
I shut-down a virtual machine and using the data-store browser did a copy/paste to copy the VM to a new datastore with additional space. The filecopy performance was very poor, and due to time constraints I decided to cancel the copy task. However the copy task showing in the vsphere client can not be cancelled; the cancel option is disabled.
Currently I am not able to start the machine in it's original location as the disk files are locked for the copy. How can I abort the copy? I tried deleting the target directory but this did not abort the copy task.
how can i copy part of the specific string to the another place
example
(aaa),(ddd),(fff),(fff),#p
copy (ddd) to the side of the p
(aaa),(fff),(fff),#p,(ddd) //before copyin add comma
copy (fff) to side of the (ddd)
(aaa),(fff),#p,(ddd),(fff) //string lenght always same