First time here? Check out the FAQ!

AaronHuang's profile - activity

2017-09-09 23:07:50 -0500 received badge Notable Question (source)
2017-04-28 04:35:38 -0500 received badge Notable Question (source)
2017-03-23 06:06:57 -0500 received badge Popular Question (source)
2017-03-22 17:42:23 -0500 received badge Good Answer ( source )
2017-03-22 17:42:23 -0500 received badge Enlightened ( source )
2017-03-02 23:18:41 -0500 received badge Scholar ( source )
2017-03-02 23:18:40 -0500 received badge Supporter ( source )
2017-03-02 23:18:14 -0500 commented question Why language code changed by itself?

First, I set `LANGUAGE_CODE = 'zh-tw'` and `LANGUAGES = (('zh-tw', 'Chinese'),)` in `settings.py`. And then, I change the existing `zh-TW` language code in the database table (`repute`, `askbot_post`, `askbot_thread`) to `zh-tw`. It seems to solve the problem.

2017-02-27 17:44:59 -0500 received badge Notable Question (source)
2017-01-27 18:16:15 -0500 received badge Popular Question (source)
2017-01-27 18:15:46 -0500 received badge Popular Question (source)
2017-01-27 09:08:49 -0500 received badge Nice Answer ( source )
2017-01-26 17:40:57 -0500 commented answer How to use SSL Certificates with AskBot?

You're welcome.

2017-01-25 20:40:51 -0500 answered a question How to use SSL Certificates with AskBot?
  1. Follow the tutorial on certbot website depend on your operation system.
    For my nginx on Ubuntu 16.04 it is:

    $ sudo apt-get install letsencrypt

    $ letsencrypt certonly --webroot -w /home/s930029/GospelForum -d ldstw.org -d www.ldstw.org

    This command will obtain a single cert for ldstw.org, www.ldstw.org.

  2. According to How To Secure Nginx with Let's Encrypt on Ubuntu 16.04

Add some code your your nginx configuration.

server {
        . . .

        location ~ /.well-known {
                allow all;
        }

        . . .
}

For my website, it is:

server {
        listen 80;
        server_name ldstw.org www.ldstw.org;
        return    301 https://$server_name$request_uri;
}
server {
        listen 443;
        server_name ldstw.org www.ldstw.org;
        ssl on;
        ssl_certificate /etc/letsencrypt/live/ldstw.org/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/ldstw.org/privkey.pem;
        add_header Strict-Transport-Security max-age=31536000;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        location /.well-known/acme-challenge {
        root /home/s930029/GospelForum;
        }

        location / {
        include         uwsgi_params;
        uwsgi_pass      unix:/home/s930029/GospelForum/askbot.sock;
   }
}

And make sure to use $sudo chwon s930029:www:data askbot.sock after you restart nginx

2017-01-25 10:15:15 -0500 commented answer How to configure Askbot with Nginx and uWSGI?

You're welcome. It takes time to figure these out.

2017-01-25 09:55:04 -0500 received badge Nice Answer ( source )
2017-01-23 07:30:16 -0500 commented answer How to configure Askbot with Nginx and uWSGI?

Sorry, I forgot to tell you that, I use `sudo chown s930029:www-data askbot.sock`

2017-01-22 21:03:12 -0500 commented answer How to configure Askbot with Nginx and uWSGI?

Yes, it's my python virtualenv path.

2017-01-21 07:35:41 -0500 commented answer How to configure Askbot with Nginx and uWSGI?

@gopalraha I have modified my answer.

2017-01-21 07:27:06 -0500 received badge Teacher ( source )
2017-01-20 02:44:18 -0500 answered a question How to configure Askbot with Nginx and uWSGI?

I use uwsgi with nginx

This is my nginx configuration:

server {
        listen 80;
        server_name ldstw.org www.ldstw.org;
        location / {
        include         uwsgi_params;
        uwsgi_pass      unix:/home/s930029/GospelForum/askbot.sock;
   }
}

This is my uwsgi configuration

[uwsgi]
project = askbot
base = /home/s930029
static-map = /m=/home/s930029/GospelForum/static
chdir = %(base)
home = /home/s930029/.virtualenvs/askbot/
wsgi-file = /home/s930029/GospelForum/django.wsgi
master = true
processes = 5
threads = 2

logto = /var/log/uwsgi/%n.log

socket = %(base)/GospelForum/askbot.sock
chmod-socket = 664
setuid  = www-data
setgid = www-data
vacuum = true

My /etc/systemd/system/uwsgi.service

[Unit]
Description=uWSGI Emperor service

[Service]
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown s930029:www-data /run/uwsgi'
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites
Restart=always
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all

[Install]
WantedBy=multi-user.target

For explanation: see https://www.digitalocean.com/communit...

2016-12-31 18:20:42 -0500 received badge Famous Question (source)
2016-12-25 19:23:02 -0500 received badge Editor (source)
2016-12-25 19:07:43 -0500 commented question askbot.utils.pluralization receives wrong language code
2016-12-25 18:56:54 -0500 asked a question Why language code changed by itself?

Someday I found that I cann't voteup for somebody. Although the upvote sign turned green, but his karma doesn't go up.

In settings.py, I have

LANGUAGE_CODE = 'zh-TW'
LANGUAGES = (('zh-TW', 'Chinese'),)

And I found that in the database, the repute table's language code changed by it self to lowercase after some day.

image description

Does anyone know how to fix this?
Why it set the language_code to 'zh-tw' for my language_code is 'zh-TW'?

2016-12-16 03:27:09 -0500 received badge Famous Question (source)
2016-12-15 04:25:26 -0500 received badge Famous Question (source)
2016-12-04 05:05:04 -0500 received badge Student (source)
2016-12-03 08:55:30 -0500 asked a question Error while dockerize askbot from git

I type

git clone https://  github.com/ASKBOT/askbot-devel
cd askbot-devel
docker build -t dockeraskbot .

and then the following errors occurs:

Best match: python-daemon 2.1.2
Processing python-daemon-2.1.2.tar.gz
Writing /tmp/easy_install-3yIJTM/python-daemon-2.1.2/setup.cfg
Running python-daemon-2.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3yIJTM/python-daemon-2.1.2/egg-dist-tmp-6AY3Y1
Traceback (most recent call last):
  File "setup.py", line 122, in <module>
    (**) - With MySQL you have to use MyISAM data backend, because it's the only one that supports Full Text Search."""
  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
 .......
  File "/usr/local/lib/python2.7/posixpath.py", line 122, in dirname
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

The command '/bin/sh -c python setup.py install' returned a non-zero code: 1

How to solve this issue?

2016-12-03 08:55:29 -0500 asked a question Karma stucks at 1

Hi, I installed Askbot 0.10.1
While my answer got accepted, the karma didn't go up.
But I see the Karma change log does change.

https:// s21.postimg.org/u3ma3tetz/image.png
[please delete the space between https and s21]

How to solve this problem?

2016-12-02 01:30:49 -0500 received badge Enthusiast