• I made an 8-ball

    Development and Coding
    2
    2 Votes
    2 Posts
    535 Views
    FireladF
    Saw this and I had to play around with it. Here’s results: [image: AcdGDS4.png] [image: 18gm70f.png] Turns out I’m not gay… LOL
  • Hardcore Gamer is Here (Well, almost hardcore)

    Introductions
    19
    1 Votes
    19 Posts
    2k Views
    AntuA
    Hey, welcome to BB. I occasionally lurk this forum, including the bathrooms. btw web design is fun. I used to do it a bit to practice CSS, but I eventually moved on to writing scripts. I have a long list of todos, study-wise.
  • Origin ID Thread

    Pinned Gaming origin
    9
    0 Votes
    9 Posts
    1k Views
    FireladF
    Firelad
  • Steam ID Thread

    Pinned Gaming steam
    14
    0 Votes
    14 Posts
    2k Views
    FireladF
    Firelad
  • BitBangermobiles

    The lounge cars
    6
    0 Votes
    6 Posts
    799 Views
    S
    [image: Lancaster_Gate_tube.jpg] Tube crew report in. There is however have a nice 2012 Mitsubishi Evo 10 RS parked in my drive, if only it were mine. I’ll get some pictures tomorrow.
  • Hey folks!

    Introductions
    6
    1 Votes
    6 Posts
    840 Views
    LyetaL
    @Firelad said: @Lyeta said: do not encourage him to proliferate You can’t force him. :P Oh yes i can i know where choob sleeps
  • OHG Reunion...

    Introductions
    9
    0 Votes
    9 Posts
    1k Views
    NyleaN
    Sonic missed you very much. Welcome.
  • Mazda MX5 flash to pass mod

    The lounge mazda mx5 miata eunos flashtopass
    3
    1 Votes
    3 Posts
    989 Views
    ScuzzS
    10/10 would read again.
  • [spoilers] Monument Valley

    Gaming
    2
    1 Votes
    2 Posts
    484 Views
    ScuzzS
    Link for the lazy It’s currently £0.49 on the UK Play store.
  • [Challenge] BB Gets Drunk

    Development and Coding
    3
    2 Votes
    3 Posts
    566 Views
    AlmostA
    Really minor improvement, but in order to remove that extra if (numStillWanted > 0) we could consider any alcohol that we don’t have as inventory that belongs to no one. To make this work in the code, we just add a line outside the outer loop: have = have.concat(wanted.select(cur => new AlcoholInventoryItem(null, cur.Name, cur.Quantity)); With this, we’re assured that we will never be left with numStillWanted > 0 after the inner loop because in the case where no one has any of the alcohol we want, our inventory consists of alcohol that belongs to no one that has exactly the quantity we want.
  • Jurassic World Trailer

    The lounge
    4
    1 Votes
    4 Posts
    658 Views
    ScuzzS
    ! spoiler text here
  • Heroes of the Storm Closed Beta

    Gaming heroes of the s beta
    3
    1 Votes
    3 Posts
    603 Views
    SchamperS
    @CoDeZmAsTeR0800 generally your beta progress gets wiped.
  • 1,000th post

    The lounge
    6
    4 Votes
    6 Posts
    1k Views
    A
    congrats nerd
  • The Walking Dead

    The lounge walking dead
    7
    3 Votes
    7 Posts
    1k Views
    LeoL
    rick why u so craaay
  • Setting up Flask to work with Nginx

    General Computing flask nginx python uwsgi
    1
    1 Votes
    1 Posts
    459 Views
    ScuzzS
    After struggling for a few hour last night to get a working hello world with Flask and Nginx I think I should get a little guide up to make it a bit more clear. There are a few tutorials on various blog sites but non of them seemed to work correctly. Some had conflicting information and other had bits of code or config files that did not seem relevant. Even the Flask documentation was hard to understand and didn’t seem to work. I assume that you already have Nginx, Python and pip installed. Flask Flask is a lightweight web framework for Python. It is based on Werkzeug and Jinja 2. It is easy to install and run. You must have python and pip installed first before you can install Flask. To install you just run pip install Flask from your command line. For a quick demo, create a hello.py and copy in the following code: from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run() Then type python hello.py and visit http://localhost:5000 to see your first Flask hello world app. More information can be found on the Flask Website I have installed Flask in a virtual environment. To do this you will need to run pip install virtualenv. Create your directory for you app and run virtualenv venv, venv can be any name you want but I kept it simple. To activate the virtual environment run source venv/bin/activate. This will activate your virtual environment. From here you will install Flask with the same command as above, pip install Flask. If you have created the hello.py file from above you should be able to run this from within the virtual environment and check http://localhost:5000 to see it running. Run deactivate from within the virtual environment to deactivate it. uWSGI Nginx is a web server that serves static files. It is unable to serve a python application. This is where uWSGI comes in. You will require build-essential and python-dev for uWSGI. Run pip install uwsgi to install uWSGI. Open up your config file in the sites-available directory inside your Nginx installation and copy in the following: server { listen 80; server_name localhost; charset utf-8; client_max_body_size 75M; location / { try_files $uri @yourapplication; } location @yourapplication { include uwsgi_params; uwsgi_pass unix:/var/www/demoapp/demoapp_uwsgi.sock; } } Changing the path to your apps path. You will no need to create the .ini file for you application. Create a yourapp.ini file in the directory your application is located in. Copy in the following: [uwsgi] #application's base folder base = /var/www/demoapp #python module to import app = hello module = %(app) home = %(base)/venv pythonpath = %(base) #socket file's location socket = /var/www/demoapp/%n.sock #permissions for the socket file chmod-socket = 666 #the variable that holds a flask application inside the module imported at line #6 callable = app #location of log files logto = /var/log/uwsgi/%n.log Make sure to change the paths to be the correct paths for your app location. Create the log file directory. Now run uwsgi --ini /path/to/your/yourapp.ini. Now if you open your domain name that is linked to your app you should see that the app has loaded and “Hello World!” is displayed. This is a quick and dirty memory dump on what I did last night to get it running on my server. Hopefully it is easy enough to follow and is useful to some people.
  • Norwegian Wood

    The lounge norwegian wood haruki murakami
    6
    1 Votes
    6 Posts
    738 Views
    LyetaL
    I didnt read it or watch movie I didnt even know it existed till just now Your challenged your bs call and read whole damned post >> And i dun wanna read this book now or watch movie x.x
  • A Song of Ice and Fire chapter summaries

    The lounge chapter overview summary
    1
    -1 Votes
    1 Posts
    423 Views
    ScuzzS
    I have recently been meaning to finish off A Feast for Crows. I have read roughly half the book but that was some time a go. I can’t really remember what has happened. The Tower of the Hand has wonderful chapter summaries for every chapter of every book in the Song of Ice and Fire series. I have been thinking of a better way to read the chapter summaries off their website as reading them in on a PC or tablet via a web browser can be quite tiring on the eyes and sometimes quite difficult to navigate. I have created a PDF version of the chapter summaries of A Feast for Crows from The Tower of the Hand. This will allow people to add it to their kindles and ebook reader apps on their phones and tablets. Making it a lot better and easier to read. Hopefully I can create the PDF files for the other books too. A Feast for Crows chapter summary
  • What's up yall?

    Introductions
    5
    2 Votes
    5 Posts
    805 Views
    LeoL
    yooooooooooooooooooooooooooooo whaddap doe
  • Destiny on PS3 Y'all???

    Gaming
    8
    0 Votes
    8 Posts
    889 Views
    AntuA
    I played it awhile back when it first came out for about a few weeks. After level 20 it becomes a chore to try and level up, not to mention you have to whore your friendlist out for raids. I also got addicted and had 3 characters at lv28 after I stopped. lol It was totally overhyped. The older footage of the game looked much better – like it actually had a story.
  • Minecraft Server

    Gaming minecraft
    13
    3 Votes
    13 Posts
    2k Views
    SkyhijinxS
    @GoaNy Sweet. I’ll try to get on during my lunch break.