Tuesday, June 26, 2012

I have setup the testing server(production server) when community_csdt is moved to a different directory. 
I started working on thumbnail of projects. 

What to do next:
1. finish thumbnail
2. remove errors in user's friends and comments


Friday, June 22, 2012

Finally set up everything correctly and got Patrick's original community running on 128.213.11.151 for testing.


NOTE:
In Patrick's doc:  
 / docs / installation / pyramid.installation.txt
** Initial Setup
In step 6) Install ezPyCrypto library manually (Pycrypto 2.3)
sub-step 1)
The link downloads Pycrypto-2.3, NOT ezPyCrypto.
You can download ezPyCrypto here:
                                   http://freenet.mcnabhosting.com/ezPyCrypto/
                   Then follow sub-step 2)-4). 
                   I downloaded and installed both Pycrypto-2.3 and ezPyCrypto. 

Tuesday, June 19, 2012


Work log June 13 - June 19


I tried to setup the community site on Windows on my desktop. MySQL worked well. However, I got all kinds of errors when I installed python packages. Thus, I got errors when I local tested the community site. 


Here is what I did: 
Download community_csdt tree from https://github.com/electricity345/community.csdt
Installation on Windows:
1 Install mySQL:

* Download MySQL Installer for Windows:
http://www.mysql.com/downloads/
       I also tried the 'MySQL server only'. Installation failed twice.
     * Install 
     * On configuration page, leave current password BLANK, and set new password '12345678'. Patrick used '12345' here. Edit passwd="12345678" in models/database.py correspondingly. 
     * Follow Patrick's community.csdt/docs/installation/config.mySQL.txt:
        **Creating the database (2)-(4)
        (4) init.sql is in community_csdt/community_csdt/config/db
2. Install Pyramid:
     http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/install.html
  1. Install, or find Python 2.6 for your system.
  2. Install the Python for Windows extensions. Make sure to pick the right download for Python 2.6 and install it using the same Python installation from the previous step.
  3. Install latest setuptools distribution into the Python you obtained/installed/found in the step above: download ez_setup.py and run it using the python interpreter of your Python 2.6 installation using a command prompt:
    c:\> c:\Python26\python ez_setup.py
    
  4. Use that Python’s bin/easy_install to install virtualenv:
    c:\> c:\Python26\Scripts\easy_install virtualenv
    
  5. Use that Python’s virtualenv to make a workspace:
    c:\> c:\Python26\Scripts\virtualenv --no-site-packages env
    
  6. Switch to the env directory:
    c:\> cd env
    
  7. (Optional) Consider using Scripts\activate.bat to make your shell environment wired to use the virtualenv.
  8. Use easy_install pointed at the “current” index to get Pyramid and its direct dependencies installed:
    c:\env> Scripts\easy_install pyramid
* Follow Patrick's community.csdt/docs/installation/pyramid.installation.txt:
        **Initial setup (6)-(9)

Problems during initial setup: 

1. **Initial setup (3): errors in easy_install packages. 
2.                           (6): could not find ezPyCrypto.py in Pycrypto-2.3 as instructed.
3.                           (9): pserve development.ini --reload
                                      error: pkg_resources.DistributionNotFound: community-csdt


UPDATE: 
1. Install MySQL-python for windows, because I actually installed Python2.7: 
    http://www.codegood.com/archives/129



What to do next:
Setup the community using a Linux development server. 
Implement the "friends" and "comments" of users. 

Tuesday, June 12, 2012



Work log June 6 - June 12


1. Finished learning basic HTML and CSS.
2. Read through Patrick's existing source code, and got familiar with the basic layout. We encounter 404 errors of "friends" and "comments" of users, because those parts are not implemented yet.  
3. Finished SQLAlchemy + URL Dispatch Wiki Tutorial.


What to do next:
Implement the "friends" and "comments" of users. 
Finish ZODB+Traversal Wiki tutorial, if time allows.

Thursday, June 7, 2012

Resources for web development beginner and/or Pyramid beginner

For web development basics:
1. http://jimmy-li.net/blog/programming/how-to-get-started-in-web-development/
This blog provides a roadmap and lists useful resources on how to start developing webs.

2. As mentioned in the blog, it is important to leart HTML and CSS, no matter what frame work you choose.
http://htmldog.com/ provides step by step tutorial.

For Pyramid beginner:
1. Start with the documentation: http://docs.pylonsproject.org/en/latest/docs/pyramid.html. Install Pyramid and learn how to write the simplest application.

2. Read more on creating Pyramid project, and follow the tutorials: SQLAlchemy + URL Dispatch Wiki Tutorial, and ZODB + Traversal Wiki Tutorial.


Tuesday, June 5, 2012

Work log May 28 - June 5

My work is to add new features to and modify the CSDT website, which was built in Python using the Pyramid framework. Pyramid is a relatively new Python framework as part of the Pylons Project. Pyramid was created around December 2010, while another popular Python framework Django was developed in 2005.

1. I installed Pyramid on my local desktop for development and learned how to write the simplest Pyramid application. However, it took more time to understand why we use those functions and how those functions work, such as application configuation.

2. Next, I read more about the Pyramid documentation, and got familiar with topics: create Pyramid project, startup, request processing, and URL Dispatch.

3. Since I am a web development beginner, I am also learning HTML and CSS with guide at http://htmldog.com.


What to do next:
I plan to follow the SQLAlchemy+URL Dispatch Wiki and ZODB+Traversal Wiki tutorials to practice building websites using Pyramid.