|
I am wondering why the following command wouldn't work:
sudo find . -name index.htm | xargs -0 sudo sed -i 's/pattern1/pattern2/g'
When ran the two commands separately, they worked as expected, find found all the files I was needing to change, and sed...
Started by Paul on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Are there any spaces in the directory or file names? .
You didn't use the -print0 option with find.
|
|
I have about 120 machines on a off site location, with a 40mbit connection to the home office. Most of the internet usage should be connections to other companies networks via web + citrix but i know many ppl so surf the internet (Plus the usual copying...
Started by EKS on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
You can then use this to investigate your network traffic... .
This can be run from a live CD so no need to install and you can setup a router between your users and the "citrix thing" .
Ok, if you have a spare machine, look at doing something like PFSense .
|
|
I've been looking around for a hosting provider. In the process I ran into one that seemed to have a clear preference for apache 1.3. Considering that 1.3 was released something like 11 years ago, I am unclear why someone would have such a preference....
Started by sysadmin1138 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Remember that apache2 wasn't "generally" production quality/flexibility until 2.2, at least that was the view of the major Linux ... .
There are some old discontinued modules that haven't been ported, and sometimes the config needs to be rewritten for 2.2 .
|
Ask your Facebook Friends
|
Has anyone heard whether there is another version of Core Python Programming coming out that will focust on Python 3000?
Answer Snippets (Read the full thread at stackoverflow):
So far the only 3.0 books I know of are:
http://www.qtrac.eu/py3book.html
and
http://www.swaroopch.com/notes/Python_en:Table_of_Contents
I met Wesley after the last BayPIGgies... .
It is a great book.
Perhaps email Wesley?
I'd like to see Core Python updated also .
|
|
This is really the first thing that I have written in python. I come from Java background. I don't want to just learn how to program java code with Python syntax. I want to learn how to program in a pythonic paradigm.
Could you guys please comment on ...
Started by Justin Nelson - jjnguy on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's what jumps out at me:
def transformFactorList(factorList): oldsize = len(factorList) factorList = [f for f in factorList if f != 2] num2s = oldsize - len(factorList) if num2s == 0: return [] if num2s == 1: return [2]+factorList return ['2 ^ %s'... .
|
|
When I type ab -c 2 -n 100 (myurl.com)
and have top up... my cpus on apache average 10% an average of 15-20% load on top
My requests per a second is pretty low... or is it?
Requests per second: 3.47 [#/sec] (mean)
How should I go about optimizing this...
Started by DFischer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
You....
Generally 3.4 requests per second isn't stellar but Apache Bench may be limited by the host it's running on .
If your page is making connections to your database etc, the load your seeing may be related more to your database performance than Apache .
|
|
I saw this thread but wanted to confirm:
http://stackoverflow.com/questions/1801197/how-to-convert-nsnumber-objects-for-computational-purposes
So basically anytime you want to deal with these objects you have to unpack their ivars, and then pack them ...
Started by nickthedude on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So basically anytime you want to deal with these objects you have to unpack... .
Actually, I avoid them at all times, unless I'm going to be rolling them into Core Data or something .
I avoid NSNumbers when I'm going to have to perform arithmetic on a variable .
|
|
We are deploying django application, I found in the documentation that it is recommended to use WSGI appoach for doing that.
Before deploying I wanted to know, why it is recommended over other two approaches i.e. using mod_python and fastcgi...
Thanks...
Started by Software Enthusiastic on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not sure specifically what was wrong, but we couldn't get it built properly... .
We couldn't get fast_cgi built for our combination of Apache, Red Hat and Python .
It doesn't offer the daemon feature.
It's slower and harder to configure.
We tried mod_python.
|
|
Was wondering can you fit a manifold with external wastgate and screamer pipe to a non turbo car
Started by raver2011 on
, 13 posts
by 9 people.
Answer Snippets (Read the full thread at 106owners):
Re: was wondering why? Re: was wondering Originally Posted by LW93 why? coz am buying bits at a time for my car and was just wondering if it would ....
Re: was wondering it wont do anything though? Re: was wondering Lol.
|
|
Was wondering about corsair h100 coolers i was wondering if this is cooler HTML Code: http://www.newegg.com/Product/Product.aspx?Item=N82E16835181017&Tpk=corsairs%20h100
is compatible with a AM3+ CPU
Started by loztxoul on
, 11 posts
by 7 people.
Answer Snippets (Read the full thread at popularasians):
|