Hi all
i have a file like this:
term1 term2
term3 term4
term2 term1
term5 term3
..... .....
what i need to do is to remove duplicates in any order they appear, such as:
term1 term2
and
term2 term1
is a duplicate to me.
It is a really long file, so I'm not sure what can be faster.
Does anyone has an idea on how to do this? awk perhaps?
I'm running an application from inside another one for testing pusposes. I want to redirect the output for the tested app to a file, so I can have a log after each test.
Is there to redirect the output of an app to a file from the command line in java?
I'm trying to read a 17MB excel file (2003) with PHPExcel1.7.3c, but it crushes already while loading the file, after exceeding the 120 seconds limit I have.
Is there another library that can do it more efficiently? I have no need in styling, I only need it to support UTF8.
Thanks for your help
I'm using NB6.7 to auto generate an executable jar file for my project, how and where to tell NB to include a certain resource into the result jar file ? I know if I put the resource in the "lib" directory, NB will put it into "dist/lib/", but what I want is to include the resource within the final executable jar, where in NB do I specify that ?
Frank
OK, now I have coded for an implementation of AES-128 :)
It is working fine.
It takes in 128 bits, encrypts and returns 128 bits
So how do i enhance my function so that it can handle more than 128 bits?
How do i make the encryption algorithm handle larger strings?
Can the same algorithm be used to encrypt files? :)
The function definition is
public byte[] Cipher(byte[] input)
{
}
I am trying to implement a windows service that will ping a FTP site and copy its contents once in every 3 houre.
This service has functions to
List all files in the FTP site
Copy one file
Delete the copied file
Repeats step 2 and 3 for all files in the site
Hai, am using c# and wpf
am having my value as a string,
i need to call the string value in my app.config file
for example in app.config file am having my connection string. the username may vary diff time. am having the user name as a globasl string. i need to call that string in my app.config connection string when application startup????
I am creating an HTML document which we are then pushing out to MS Word using a "application/msword" content type. This works so far except that the files open in Word with Web View. Once Normal View is selected all works fine. Is there any way to force Word to open with Normal View instead of Web View?
Hi,
I need to display a thumbnail preview of a folder full of MP4 files.
So, is there a Delphi 7 component which extract a thumbnail image from MP4 files (if MP4 does contain a thumbnail image), or is there a Delphi 7 component which can extract the 1st frame from a MP4 file ?
I need to extract it so I can save it to a .jpg or .png file (to be used again later on).
Any ideas, Thanks.
in my portal i call a pdf file, path looks like
http://www.mysite.com/filespath/books/online_bliss_in_five_simple_steps_1339668056/live/online_dating_bliss_in_five_simple_steps_1339668056.php
for user acceptance i need to reduce this url. then i add a code in .htaccess file. after adding this line only a white page is displaying when i call my portal
the code is
RewriteEngine On
RewriteRule ^book/([A-Za-z0-9-]+_.)/?$ /live/$1.php [NC,L]
please help me
I have made an ActiveX control and have made its .cab file for automatic installation on client machine using Internet Explorer.. It working fine of Windows XP, but on windows Vista and Windows 7 its installation is blocked by UAC (User account control), and when I disable it, all things works fine... I have signed my .cab file with a certificate for development enviornment... What is the way to over come this problem.. I don't want to tell users to disable their UAC module...
In asp.net web application using c#, when we double click on design it will go to code behind page(cs file). but problem here is, when we double click on design its going to script of source file. why it is happening
At a certain time each day, I'd like my browser to pop open a tab to a certain URL.
My goals:
1. be able to set the URL from the scheduled task
2. use the default browser (rather than hard-coding it)
I can't seem to accomplish both of these goals at once. I'll post my partial solutions as answers, but I'm hoping someone will have something better.
I need to read a file in PHP, but I only know the end of the filename, so I need to serch the file in a given directory using wildcards: *filename.wav and then return it to the browser.
Is there a function to do that? or I need to get all the files in the directory and then search one by one?
Thanks for all the comments and help.
Hi,
In my iPhone application, there is a requirement to save a few log files in the phone(files are run-time generated).
Then I have to copy/transfer the files into the pc.
Can anyone suggest the best way to do this.
Pls consider this as a newbee question.
Thanks in advance..
~Dhanesh
Hi all,
Is there a folder in the Domain Directory of Weblogic, where files put inside can be accessed directly from web browser? In other word, I don't have to pack the file in an ear, war file and deploy it to make it accessible?
Thank you very much
Regards
K.
I am running windows server with asp.net websites and sql server 2008 and IIS 6. It is working fine.
Now I need to move my asp.net websites to another windows server and I have hard time setting correct file security for the new server.
Is there any way to compare or move or see difference file security between two servers?
i have one coral draw file and i don't have coral draw software with me.
is this possible to open that file in PSD or convert into PSD or image format.
i search on internet but didn't find any free software or plug in.
Thanks
You can point a single symbol file to gdb with command symbol-file /usr/lib/debug/symbolfile.so
But how to tell gdb to load all symbol-files from given path including subdirectories?
Using Visual Studio 2005
I have list of class files, when i try to run the class files, it showing error as
"a project with output type of class library cannot be started directly"
How to run the class file? How to create a dll file.
Am new to visual studio 2005
Need Help?
i want to know what is a pyc file(python bytecode) i want to know all details,
i want to know about the compiler,
is it a replacement for exe?
does it need to be run by python?
is it as portable as .py file is?
where sould i use this?
tnx
Hey
This is a bit of a weird request but I am trying to set some jvmargs in the log4j.properties file. At present I use ant to for example set some args....
jvmarg value="-Dmail.smtp.socketFactory.port=465"
... but it would be great to group a few of these logging relevant arguments into the .properties file. Does anyone know how to do this?
Thanks in advance!