Coder Social home page Coder Social logo

flosstalks's People

Contributors

e2jk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flosstalks's Issues

Prevent spamming of the resource suggestion form

On 6 October 2012, 11445 resources were "suggested", containing only spam.

I've suppressed them using this command:

$ python manage.py shell
>>> from flosstalks_app.models import Resource
>>> for r in Resource.objects.filter(status="SG"):
...    r.delete()

If this happens again, we'll need to take some preventive measures. Question is what? Captcha, removing the whole form, etc?

Use the Ohloh API to retrieve information about new projects

It should be possible to get the following bits of information about new projects:

  • id: Ohloh ID, used for displaying the widgets
  • description
  • homepage_url
  • medium_logo_url

This should probably be done in a custom manage script that will run after each run of the project list update script. It should filter on new projects that don't yet have a Ohloh ID (to prevent overwriting information that was set manually). If the retrieval of information is succesful, the project's status should be changed to Pending (to allow for manual checking of the data, but still display it in the list of projects)

http://meta.ohloh.net/getting_started/
http://meta.ohloh.net/referenceproject/

Series' logo

Add the logo for a series.
Get inspiration by the commit that added logos to projects: e867615

Provide a simple way to deduplicate projects

When a resource handles multiple projects, the updateseries script will only create one Project object.

There should be an easy way in the admin site to create a new project that gets linked to the same resources.

Automatic redirection to a page's default url

The way nice urls is currently implemented, Django's automatic redirection to a page's default url (non-nice) is broken.

Example: Django does this: /r/22 -> /r/22/
See end of nice_url in flosstalks_app/views.py

Do not use a cached page that is for another language

When changing the language, the current page is properly displayed in the new language, however if you navigate to a page that you have already visited, it will be displayed in the previous language.

This is because the caching mechanism doesn't currently differentiate between languages. This should probably done by sending appropriate Vary headers in the request.

Use a Static Site Generator

Django doesn't run fine on my super-low specs webserver.
Since the content is just static, a Static Site Generator (SSG) should to the job in a much better way, just generate the HTML files once and serve them.

Pelican seems to be the most active Python-based SSG currently, let's try this one. http://getpelican.com

retrievefromohloh crashes on project 134 "Hackety Hack!"

When running retrievefromohloh on project 134 Hackety Hack!, a crash occurs:
/admin/flosstalks_app/project/134/

Project 134: Hackety Hack!Traceback (most recent call last):
  File "manage.py", line 26, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/home/emilien/devel/flosstalks/flosstalks_app/management/commands/retrievefromohloh.py", line 48, in handle
    doc = minidom.parseString(data)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1930, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 6, column 2

Probably due to the "!" in the project name.
Check if this issue has been reported against xml.dom.minidom, and in any case account for the exception in the code.

Add caching

In particular to parts that are heavy on the database, such as generating the json for search terms, the list of projects, a serie's detail page, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.