The following image is taken from wordle by analyzing the word frequency of the project titles.
From the above image we can observe that the count of projects are more for Detection, Classification and Recognition if we ignore the words prediction and learning.
This wikipedia page contains the list of statistical data types(simple and aggregate data types) along with permissible statistics. This page is very informative in understanding the characteristics of data being examined and for applying statistical methods.
If you are a developer and if you are like me who compiles/interprets the program using command prompt, If you are invoking command prompt and if you are navigating all the way to the location of the folder that contains the program, then this is a cool tip for you.
Instead of ”Type cmd in run” and navigate to whatever folder the program is located in.
Do this:
Navigate directly to the folder where the program is located.(Note: Dont use cmd, just navigate directly).
Click Shift button on your keyboard and then Click the right mouse button holding the shift button. Context menu will open now. In the context menu, click
“Open command window here“.
Here is the screenshot.
I hope this saves some time for you.
Do you have a cool tip to share, then post it here in the comment box.
To download pyflakes, visit pypi.python.org/pypi/pyflakes and click the link under File and download the file. Uncompress it. Then type python setup.py install in the command prompt by navigating to the setup.py file in the pyflakes folder.
Now if you run your python program using PyFlakes, it will not run. You will get an error message like this:
pyflakes is not recognized as an internal or external program, operable program or batch file.
Follow the procedure written by Abhi in the hyperlink mentioned below.
When you complete the tasks mentioned in the page 47 and 48. When you try to run the command
1
python manage.py syncdb
If you get this error
1
Error:No module named coltrane
Solution:
Follow these steps:
If you are using windows 7 operating system. Then open the Python IDLE and do the following
1
import sys
1
2
if"C:\\YourProjectFolder"notinsys.path
sys.path.append("C:\\YourProjectFolder")
If you are confused, here is the screenshot.
Now run python manage.py syncdb again.
If you still get this error, then the possible solution is:
Solution:
You folder structure should be like this:
You have to create the coltrane folder inside the cms folder. Open you cms folder, you will notice another cms folder, you have to create the coltrane folder beside that folder like this:
If you are practicing the code from the book Practical Django Projects with the Django version 1.4, then you will get some errors due to version change. The second edition of the Practical Django Projects is updated for Django 1.1. The latest version of Django at the time of writing this post is Django 1.4.
You can find the complete source code for Django 1.4 at github: Chapter 3
These are the following errors for Chapter 3. You can find the solutions below the error description.
Chapter 3:
Error Description 1:
No FlatPage matches the given query.
Solution: If you get this error, then the error is not with the version. You have to include a forward slash at the end of the page that you requested. If you remember, in the regular expression you defined in the URLConf(urls.py), you used $ after /
In regular expressions, $ means end of the string. If you want to request a page in this case you put a / at the end of the page path.
For example: Instead of requesting
1
127.0.0.1:8000/admin
which will raise the error,
request the page in this manner.
1
127.0.0.1:8000/admin/
Error Description 2:
No module named search
Solution:
If you get this error, then the problem is with the code given in the book due to the version change.
The author tells us to add the following code in the urls.py file.
1
(r'^search/$','cms.search.views.search')
Change it to
1
(r'^search/$','search.views.search')
Notice that we have removed the cms. In django-1.4 version, cms is not necessary.
Error Description 3:
In the chapter 3, when you create the SearchKeyword model and as per the instructions of the book, if you add ‘cms.search’ in the INSTALLED_APPS in the settings.py file in the cms directory and run python manage.py syncdb. You will get this error:
Error: No module names search
Solution:
Instead of adding
1
'cms.search'
in the INSTALLED_APPS in the settings.py file, simply add
1
'search'
Now run python manage.py syncdb.
Error Description 4:
Import Error at /admin/
No module named search.models
Solution:
The author asks us to create admin.py file with some code. He din’t mention the location of the admin.py file. Here our goal is to display the SearchKeyword in the admin interface. So create the admin.py file in the search directory.