I am using cat *.txt to merge multiple txt files into one, but I need each file to be on a separate line.
What is the best way to merge files with each file appearing on a new line?
Hi Guys,
How do you generally proceed for your package installations on Linux, for packages that are not part of your distrib's repos?
On my side I am used to install in /opt. But since, I saw this doc on the Internet: http://www.pathname.com/fhs/. Now I am confused: apparently /usr/local would be also a possibility.
What is the difference between both? Any best practices to share?
Thanks
SirFabel
Does anybody have directions for getting Eclipse (Galileo), PyDev, and Virtualenv working together? I'm specifically trying to run Pinax but any instructions are fine.
I thought I had it (and even blogged everything but the final step - interactive debugging) and still there is no solution. I'm specifically on OS X but any answer should be sufficient. This is the best resource I've found so far:
http://blog.vlku.com/index.php/2009/06/10/djangoeclipse-with-code-complete-screencast/
I would like to have a mapping which maps two string into one string. For example: map["MainServer","Status"] return "active". What is the best way to do it in Java. Should I use HashMap which include another HashMap as its elements?
We have a system that has some bash scripts running besides Java code. Since we are trying to "Test Everything That Could Possibly Break" and those bash scripts may break, we want to test them. The problem is it is hard to test the scripts.
Is there a way or a best practice to test bash scripts?
Or should we quit using bash scripts and look for alternative solutions that are testable?
What is the best way to document system requirements? I currently use Use Cases to document requirements which does not include technical details (unless required) so that it is understood by the stakeholders.
Are there any other document formats for capturing system requirements which are also user friendly?
I am loading a website using a WebBrowser's Navigate function, and I want the browser to load the page with a cookie I've given it.
The following code doesn't work:
wb.Navigate(url, null, null, "Cookie: " + cookie + "\n");
What am I doing wrong? Will I have to use InternetSetCookie? This doesn't seem like the best solution.
Thanks!
I have an Executors.newFixedThreadPool(1) that I send several different tasks to (all implementing Runnable), and they get queued up and run sequentially correct? What is the best way to only allow one of each task to be either running or queued up at one time? I want to ignore all tasks sent to the ExecutorService that are already in the queue.
Hi,
If there is a tool for analyzing memory leaks in a c++ COM Object, please provide a link here
If no such tool exist, what would be the best way to handle memory leaks ?
Thank You
Dim x AS New URI("http://www.example.com/test//test.asp")
Dim rel AS New URI("http://www.example.com/xxx/xxx.asp")
Console.Writeline(x.MakeRelativeUri(rel).Tostring())
In here output is:
../../xxx/xxx.asp
Which looks correct almost all web servers will process the two of the following as same request:
http://www.example.com/test//test.asp
http://www.example.com/test/test.asp
What's the best way to fix this behaviour is there any API to do this, or shall manually create a new URI and remove all // in the path?
What OpenGL / GLUT reference is the best around?
Ideally I'm looking for something with C++ sample code to help me learn OpenGL as well as details about the APIs similar to what MSDN provides for .net programming.
If there isn't a one stop shop, then please list the set of references I should use and what the strengths of each one is.
Thanx!
I would like to make server that listen on UDP port 162 (SNMP trap) and then forwards this traffic to multiple clients. Also important is that the source port & address stays same (address spoofing).
I guess that best tool for this would be Twisted or Scapy or mybe vanilla sockets,
only I can't find anything in the documentation for Twisted about source address spoofing/forging.
What would you recommend me to do?
Edit:added bounty
Hi there!
I would like to cancel the mandatory of a field of my current schema. How can I accomplish that with a symfony migration?
Thanks in advance,
Best regards!
I have written a thread which I've started using the start method but I'm not able to know when the thread has done executing the method and destroy the thread object.
_ProgressThread = New Thread(AddressOf ExecProc)
_ProgressThread.IsBackground = False
_ProgressThread.Start()
//the flow of execution should come here only after the thread has executed the method
//but its coming and executing this line after the thread has started.
_ProgressThread = Nothing
What is the best method. Please help.
Hello,
I'm building an app to store files on my s3 account. I use Rails 3.0.0beta
A lot of files can be uploaded at the same time, and the cost (from a performance point of view) of an upload is quite heavy, my app will be busy handling uploads all the time!
Maybe a solution is to upload directly to s3, but I still need a submit to my app, at least to store the file's name.
I'm wondering what is the best solution?
I know:
I have to sign the applet so it can read files
How to parse XML files
My Questions would be:
Should I keep the XML file in the .jar or separate?
Are there some best practices tutorials? if so please link me
I know a little bit of regex, but not mutch. What is the best way to get just the number out of the following html. (I want to have 32 returned). the values of width,row span, and size are all different in this horrible html page. Any help?
<td width=14 rowspan=2 align=right><font size=2 face="helvetica">32</font></td>
Hi,
how can I deploy an mvc application, without publishing the aspx view files. Is there a way to publish the generated dll assemblies?
In the project file is an option "MvcBuildViews", which builds these dll files. But they are build in a temp directory and not used in the publishment process. Is there a way to include these files?
best regards
I've generally implemented sequence number generation using database sequences in the past.
e.g. Using Postgres SERIAL type http://neilconway.org/docs/sequences/
I'm curious though as how to generate sequence numbers for large distributed systems where there is no database. Does anybody have any experience or suggestions of a best practice for achieving sequence number generation in a thread safe manner for multiple clients?
I'd like to know the best way to create online calculator for stock options such as this site
http://www.sitmo.com/live/OptionVanilla.html
I can see it uses CGI, and I like to learn what other ways to achieve the same goals using other languages.
If anyone has experience building it and can freelance, I'd like to know as well.
Our site is running on LAMP.
I need to convert HTML documents into valid XML, preferably XHTML. What's the best way to do this? Does anybody know a toolkit/library/sample/...whatever that helps me to get that task done?
To be a bit more clear here, my application has to do the conversion automatically at runtime. I don't look for a tool that helps me to move some pages to XHTML manually.
hello,
I read your topic about jpeg progressive and AS3,
I didn't test anything..
But, did you find a good solution for this problem?
with a rendering like jpeg progressive?
thank you for your response
Best regard