[Chugalug] OT maybe, python and apache
wes at the-wes.com
Sat Nov 17 19:02:26 UTC 2012
he was just explaining a bit about why it is the way it is. you should use
whatever works for you. once it works, don't mess with it!
without making backups that is. this is a good time to extol the virtues of
good backups. when you screw something up, as we all inevitably do, they
suddenly become PRICELESS! in the early stages, it would be great to get
into the habit of copying any files you're about to modify. I put a date on
anything that's only mine (on my own system) and on a shared system, I
include my name.
cp .bashrc .bashrc.2012-11-17
actually, the example I randomly chose above reminds me to raise another
point that I hope you never have to struggle with. when modifying login
related things, KEEP YOUR CURRENT SESSION GOING. immediately after saving,
start a new SSH session or virtual terminal on the host and make sure you
can still get in. if not, you can always switch back to the session you
still have open and fix it.
don't learn the hard way! I did. and it sucked.
On Sat, Nov 17, 2012 at 6:52 PM, Garrett Gaston <garrett85 at hotmail.com>wrote:
> Thanks. I've never understood why there are seemingly so many paths to
> programs in Linux. Coming from windows everything is C:\Program
> So are you saying that I should use #!/usr/bin/enc python3 or am I
> misunderstanding you? I'M going to give it a try, and no I actually hadn't
> got this working yet.
> > Date: Sat, 17 Nov 2012 09:14:31 -0800
> > From: danlyke at flutterby.com
> > To: chugalug at chugalug.org
> > Subject: Re: [Chugalug] OT maybe, python and apache
> > On Tue, 13 Nov 2012 10:21:38 -0600
> > Garrett Gaston <garrett85 at hotmail.com> wrote:
> > > a book and it's actually showing "#!/usr/bin/env python" but I
> > > decided to use what I got with the which command "which python3"
> > > -> /usr/bin/python3
> > I'm assuming that you've got this working now, but I wanted to note:
> > It used to be that we specified which interpreter we wanted with
> > #!/usr/bin/python or #!/usr/local/bin/python or #!/opt/run/python
> > or ... well ... you get the picture.
> > The problem was that when you tried to share a script file with someone
> > they'd say "Hey, I don't have "/opt/run/python" on my computer,
> > what'sup?"
> > This got even worse when you had dueling source control checkins. I
> > make it point to my favorite Python interpreter, check it in, you check
> > out the latest software, it breaks your build, you fix it to your
> > interpreter, check it in, after two or three rounds of that we're on to
> > passive-aggressive solutions like poisoning your lunch, or fouling up
> > your romantic entanglements, or kneecapping the starters in your
> > favorite sports leagues.
> > Finally, someone said "Hey, let's make /usr/bin/env find and run the
> > appropriate interpreter from the path, and if people want to
> > run /yargh/really/my/funky/build/python then they can change that in
> > their own personal environment and not inflict it on the rest of us."
> > Hope this helps explain things a bit.
> > Dan
> > _______________________________________________
> > Chugalug mailing list
> > Chugalug at chugalug.org
> > http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> Chugalug mailing list
> Chugalug at chugalug.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chugalug