Git Product home page Git Product logo

ansipants's Introduction

Demozoo

Developer installation

It's possible to run Demozoo a number of different ways, but work has been done to facilitate running it rather smoothly in either Vagrant or Docker.

First, clone this very repository to a folder on your hard drive:

git clone https://github.com/demozoo/demozoo.git
cd demozoo

Vagrant

After installing Vagrant and VirtualBox, bring up Demozoo as follows:

vagrant up

This will download an Ubuntu Jammy64 image, install dependencies, and fetch the latest public export of the Demozoo database. To start up the site:

vagrant ssh
# then within the Vagrant VM:
./manage.py runserver 0.0.0.0:8000

Alternatively you may need to run :

python ./manage.py runserver 0.0.0.0:8000

The site will now be available at http://localhost:8000/.

Docker

Warning

Installation under Docker is experimental and work in progress. Currently front-end assets (CSS and SVG icons) are not built automatically - these must be built manually after installation.

After installing Docker Desktop, you can bring up Demozoo by typing the following:

cp .docker/.env.example .docker/.env
docker-compose up

This will download the postgres:14-bullseye and python:3.10 images and bootstrap the database with data from the latest Demozoo export.

Booting up the first time will take quite a while, as the database import is large, so be patient. The error messages logged from demozoo-web during the import can be ignored. When the import is done, Running the server on http://localhost:8000 should be printed to the console. You should then be able to visit http://localhost:8000 in a web browser of your choice.

The data files from Postgres are by default stored in the .docker/db/pgdata directory. If you want to wipe the database clean, simply delete that folder.

Rebuilding indices for the database

If you want to work with the search feature, you have to rebuild your database indices first:

./manage.py reindex

This will take a long time, but you only need to do it once.

Creating an admin user

All account passwords in the public database export are blanked, so you'll need to create a new account to log in. To create a superuser account:

./manage.py createsuperuser

and enter the account details when prompted.

Batteries not included

The procedure above gives you a basic working Demozoo installation, but several features are unavailable due to needing additional configuration:

  • file uploads (Amazon S3)
  • screenshot processing
  • background tasks (scene.org spidering, fetching screenshots from graphics releases...)

Instructions for these will be forthcoming, at least when someone asks for them :-)

Gasman [email protected] - https://twitter.com/gasmanic

ansipants's People

Contributors

gasman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansipants's Issues

Underline control codes not supported

In the new ansi renderer, what I call "Amiga ansi" - escape codes used in Amiga specific text files are not rendered correctly. Even the Windows commandline does a decent job of this, so perhaps it is possible/relatively easy to implement?

Windows 11 command line:

image

Demozoo currently:

image

Native Amiga:

image

Something wrong with newlines locations

There are some files with mystically wrong newlines locations. Especially, for this board.

For example, there's a file called HOLIC5.ANS. It currently looks in Demozoo like this:
изображение_2021-12-28_223312

However, BedroomLAN's converter can't render it at all for the unknown reason:
HOLIC5

But there are some images from Defacto2, 16colors and other Ansilove-based resources, included Ansilove itself, where everything is totally fine:
image
(this image took from Defacto2, there're some extra lines in the end of the file but the other part looks as it should)

Everything is also OK with the 'type' tool in Windows 10 (I'm sorry for this highlighted 'A'):
image

According on 16colors, this isn't an ansimation. When I'm trying to understand how the code works, there's some code between the latest '·' and '█▀▀▀█' which is the top of the word "BBS":
�[2H�[s
�[u�[0;34m
where � is an escape symbol.

There are some known codes for me - �[0;34m is a blue text, �[s and �[u are something like cursor position manipulations.
BUT �[2H is @!#?@!. There are at least 7 matches of �[2 in this file, but no one gives me any idea what it should be.

There are some more examples in the same BBS. All raw files are available in Defacto2 (MAY BE NSFW).

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.