e2jk / flosstalks Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
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?
Should be done by POST (need to find the W3C info about that)
Similar issue to https://code.djangoproject.com/ticket/15863
Apparently this was fixed, but it still seems to appear for FLOSS Talks. Need to investigate more.
Allow to link to the web page where the project's description was taken from (particularly important if not taken from the project's own page)
To prevent depending on external websites
It should be possible to get the following bits of information about new projects:
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/
Use Django's sitemap framework.
Add the logo for a series.
Get inspiration by the commit that added logos to projects: e867615
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.
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
Hide email address on /contact using the API available at http://www.google.com/recaptcha/mailhide/
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.
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
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.
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.
Like line breaks, emphasis, links (maybe?)
Example: vsftpd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.