I have been using Process.Start to launch executables (.exe) files. Now I need to execute a .pl file with some arguments. can I still use Process.Start or I need a different approach?
My SSIS package has logging configured with a SSIS log provider for text files, which works fine, but each time the package is run the log appends to the end of the log file. I want it to truncate the file and only keep the log from the most recent execution of the package, but I don't see an option anywhere to do that.
I've tried both file usage types (Existing file and New file) in the File Connection manager with the same results.
I've been getting an error recently while debugging an ASP.NET application in Visual Studio 2008:
'Error connecting to undo manager of source file XYZ'
Any idea how I can get rid of the error?
I have a text file that looks like this:
value1
value2
value3
There are 32 million lines. Each line is terminated by a \n. The fields are not enclosed or delimited with any characters. I'm trying to import it into MySQL using this code, but it is not working:
LOAD DATA LOCAL INFILE 'data.txt'
INTO TABLE `table`
FIELDS TERMINATED BY ''
ENCLOSED BY ''
LINES TERMINATED BY '\n'
(`column1`)
Can anyone tell me what I'm doing wrong?
Hi, If I want to display an image in my webpage and its src is a file outside context root.
At the IDE, the image is shown to be loaded.
But when I test the web page, nothing displayed.
How can I config weblogic server to allow the image to be displayed. If not is there anyway to run around this problem.
Thanks a lot.
Heres the scenario:
User comes to my website and opens a webpage with some javascript functionality.
User edits the data through javascript
User clicks on a save button to save the data, thing is, it seems like they shouldn't need to download this data because its already in javascript on the local machine.
Is it possible to save data from javascript (executing from a foreign webpage) without downloading a file from the server?
Any help would be much appreciated!
Hi,
Searched through net, could't find a way to read/write file metadata using C or C++, however, there are tools available for this, and also there are API's in C# and Java to do this. But I want to do it from scratch in C or C++.
For example, read/write image metadata.
Have found out that there are three formats in which metadata is written to files. EXIF, IPTC and XMP.
Thanks.
I have big file with utf16le (BOM) encoding.
Is it possible to convert it to usual UTF8 by python?
Something like
file_old = open('old.txt', mode='r', encoding='utf_16_le')
file_new = open('new.txt', mode='w', encoding='utf-8')
text = file_old.read()
file_new.write(text.encode('utf-8'))
http://docs.python.org/release/2.3/lib/node126.html (-- utf_16_le UTF-16LE)
Not working. Can't understand "TypeError: must be str, not bytes" error.
python 3
Hi everyone,
OK I'm creating an app in MonoDevelop for Ubuntu Linux, but the compiled file is always a windows exe, I've set it to compile as a Linux Binary but I'm confused, can anyone shed any light on how to get a proper Linux way of opening the program?
Thanks
I am using Apache Common Logging in Desktop Application.
private static final Log log = LogFactory.getLog(Utils.class);
How can I direct, Apache Common Logging to write to disc log file, when I perform
log.error(null, exp);
Thanks.
I'm serving a file from Lighttpd whose name contains space-characters. I'm using mimetype "application/octet-stream"
When I download this in Chrome, it works perfectly. But when I download in Firefox, the filename is truncated at the first space.
Is this to do with the mimetype? With some other lightty config? Or maybe something to do with the kind of space-character I'm using?
Is it possible to combine multiple PHP files via the command line and create an HTML file?
For example, this will save the rendered version of a single PHP file as HTML:
php /path/to/my/file/filename.php > /path/to/my/file/test.html
I need it to combine multiple files, but I can't seem to get it it to work. Ideally, it would be something like this:
php /path/to/my/file/filename.php + /path/to/my/file/filename2.php + /path/to/my/file/filename3.php > /path/to/my/file/test.html
Is this possible? If so, how?
Hi all,
does anyone know if it is possible to do a file upload using the BITS protocoll? The protocol is HTML1.1, so in theory it should be possible.
Any ideas are appriciated.
Thanks,
. Ivar
I am being asked to make a "download" button that downloads the contents of a textarea on the same page as a file, with the browser's "Save As" dialog showing up. Copy/paste would do the job just fine, but it is a "requirement".
Right now, I am just posting the contents of the textarea to the server, which echos them back with "Content-disposition: attachment" slapped on. Is there a way to do this with just client-side Javascript?
I've got main folder:
c:\test
And there I have 2 folders: Movies and Photos.
Photos has three folders with files with the same structure: People, Animals and Buildings. I'm trying this code:
Directory.Move(@"c:\test\Movies", @"c:\test\Test");
I get exception:
File already exists
I wish to load and use a font to a desktop application in C#. It's that possible without installing the font on the system?
It's a kind of question like this but not from a DLL. I want to load from font file.
Hi,
I am changing our build system in order to handle cross-compiling and packaging.
It is a common thing to ship dependencies' DLLs but CMake's FindXXX modules(./configure checks) don't provide the path to these DLLs but only to .a files. I quickly looked inside the .a libs and they all seem to contain the DLL's name.
What would be a proper way of extracting them from the .a file on a Linux build machine?
When I am deploying certain vendor EAR file to Sun App Server, I encountered a connection timeout errror. I thought the reason might be proxy settings need to be defined so I actually defined the following
-Dhttp.proxyHost=hostname
-Dhttp.proxyPassword=password
-Dhttp.proxyPort=8080
-Dhttp.proxyUser=username
After setting these and restart domain then redeploy I encountered 407 error.
Anyone have any idea what could be the issue here?
Hello,
I want to be able to read any random RSS/ATOM XML file. That would mean I would not not know the tags, start the loop and the fields. How do I go about doing it in PHP.
Thanks
Jean
Hi, I'm using Gunplot to create a figure in the metapost format, after which I'm converting to eps via the command line:
mpost --sprologues=3 -soutputtemplate=\"%j-%c.eps\" myfigu.mp
to get myfigu-0.eps.
I would like to know the resolution of such an eps file. How do I proceed? Is the eps thus created has a fixed resolution?
Thanks a lot
I wrote a foreach loop for my datagridview to write all rows to txt file.
I have a problem as it adds 2 empty lines at the end, as 1 row is full of empty cells after adding/reading to datagrid view.
Is there any way to omit the last line or delete it in txt?
foreach (DataGridViewRow item in this.DB.Rows)
{
foreach (DataGridViewCell item2 in item.Cells)
{
if(item2.Value != null)
filewrite.Write(item2.Value.ToString() + " ");
}
filewrite.WriteLine("");
}
Does anybody know where i can find a list of Adobe icons? Not for the programs themselves but the recognized file types. ie: http://blogs.adobe.com/typblography/cs5icons/CS5_file_swf.png
Or does anyone know where the .ico might be stored on a windows 7 machine?
style.css - Original File
.box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px; }
style.css - In Firebug CSS Console
.box { -moz-border-radius:8px 8px 8px 8px; padding:10px; }
How can I force Firebug to show my -webkit css styles as well?
Thanks for your help!