Use
du
> du .
> du . -h
-h option provides human readable format
Use
du
> du .
> du . -h
-h option provides human readable format
In your home directory, 3 files have a special meaning to Bash, allowing you to set up your environment automatically when you log in and when you invoke another Bash shell, and allow you to execute commands when you log out.
These files may exist in your home directory, but that depends largely on the Linux distro you’re using and how your sysadmin (if not you) has set up your account. If they’re missing, Bash defaults to /etc/profile.
You can easily create these files yourself using your favorite texteditor. They are:
Bash allows 2 synonyms for .bash_profile : .bash_login and .profile. These are derived from the C shell’s file named .login and from the Bourne shell and Korn shell files named .profile. Only one of these files is read when you log in. If .bash_profile isn’t there, Bash will look for .bash_login. If that is missing too, it will look for .profile.
.bash_profile is read and executed only when you start a login shell (that is, when you log in to the system). If you start a subshell (a new shell) by typing bash at the command prompt, it will read commands from .bashrc. This allows you to separate commands needed at login from those needed when invoking a subshell.
However, most people want to have the same commands run regardless of whether it is a login shell or a subshell. This can be done by using the source command from within .bash_profile to execute .bashrc. You would then simply place all the commands in .bashrc.
captured at here
In .bashrc,
define your own alias as follow:
————
alias cdma=’cd /usr/local/projects/wcdma/’
Two main reasons why dedicated IP is needed:
1. better search engine
- many different opinions on this, but it looks that dedicated IP seems to be helpful for search engine result
2. SSL support
- e-commerce website needs SSL which requires a unique IP address.
One note is that webfaction.com does not provide dedicated IP but private IP address.
Private IP address is a bit different from dedicated IP.
If you typed http://64.233.187.99/ into your web browsers address bar you would see Goggle’s web site come up. This is their dedicated IP address and no one else’s.
Private IP address does not support the above (#1) but it can support SSL (#2).
When I have been surfing around django sites, I saw many webfaction service advertised.
For my new project, I just started to search for web hosting service and finally decided to go with Webfaction.
The major concern I had in choosing webfaction was limited disk space and bandwidth.
However, I realized that anyway my website will have low traffic and need less amount of disk space in the beginning.
The positive perspectives were
1. many positive reviews and happy customers
2. the most django-friendly service, easy setup and they can also support mod_python (most other sites seem to support fastcgi only)
3. it has subversion support
This is beginning and I don’t know much about running the website. But let’s see how it works out!
I found an interesting python development method that can be done from a usb drive.
portableapps.com has many interesting apps:
1. commandprompt portable
2. notepad++ portable
3. sumatrapdf portable
4. putty portable
5. winscp portable
etc.
After installing portablepython
execute
SPE-Portable.exe
open manage.py
and run (F9) with argument “runserver”
1.
In settings.py
EMAIL_HOST = ‘localhost’
EMAIL_PORT = 1025
EMAIL_HOST_USER = ”
EMAIL_HOST_PASSWORD = ”
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = ‘testing@example.com’
2. Execute
$python -m smtpd -n -c DebuggingServer localhost:1025
Nothing will happen until you send email.
3.
$python manage.py shell
>>>from django.core.mail send_mail
>>>send_mail(‘subject’, ‘body’,'from@example.com’,['youremail@gmail.com'])
This will display the mail.
Copy template files under
contrib/comments/templates/comments
into your default template directory.
Change your template files. Template loader will find files first at your default template directory.
Then,
import datetime