• Kodi addons

    3
    3 Posts
    220 Views
    ScuzzS
    I installed genesis. Seems really useful although I have only watched a few episodes of Dr who. The other one uses torrents and downloads then to the sdcard. I don’t think mine is big enough to handle them. I. Can’t remember what size if have.
  • Today I have more time to lose than you'll ever have

    4
    4 Posts
    575 Views
    AlmostA
    Ah nice. I didn’t even think of mapping midi to key inputs. Full disclosure: I did’t like Amelie.
  • Who is upgrading to Windows 10?

    windows 10 upgrade
    16
    16 Posts
    2k Views
    theDaftDevT
    I had to force the install since it was taking forever to begin automatically. I think the whole thing is pretty neat. Would like to try Cortana as well, but the french speech recognition isn’t a thing yet :(
  • Virtual Desktops

    7
    7 Posts
    968 Views
    AlmostA
    Not a huge fan of win+number. It’s an awkward hand position, it doesn’t help when I have > 10 windows (which might be a bit abnormal, admittedly), and it makes me think about which position the program I want is in (Yes, I know it’s simple and I can look at my task bar, but it’s still an amount of cognizant effort which is general something you want to avoid when designing a UI). 4 finder sliding would be the same effort if I had one desktop per app, which I wouldn’t. Chrome and coding would each have their own since they take a lot of screen real estate. Slack, telegram, terminal would all be on the same desktop. Anything else would be on a 4th. Plus, generally most of my time is on the web browser so if I then had code to its right, chat to its left, and everything else 2 to the left, it would be an average of like 1.5 swipes to get to what I want and a real max of 3. With tabbing it would probably have the same average, but a real max of 10. The number version would have an average of 1 and a max of 1, but takes more thought and doesn’t work with large numbers of open programs. Lastly, I think the 4 finger swipe is the most natural hand position.
  • Oculus Rift press conference in a nutshell

    5
    5 Posts
    557 Views
    theDaftDevT
    @Almost @Scuzz said: I’m.pretty sure its edited to make it look shit. Well they just made a compilation of the most ‘cringeworthy’ moments I guess, though the crowd sounds weren’t edited. As for your example almost (I only checked the 4m37s bit) there is no difference with the vid posted above… right?
  • Setting up Flask to work with Nginx

    flask nginx python uwsgi
    1
    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.
  • 5 Posts
    893 Views
    JellyformeJ
    Thanks, I needed this post. The name icon was annoying.
  • How to Upgrade Ghost

    ghost blog upgrade how to
    1
    1 Posts
    492 Views
    ScuzzS
    Usually the upgrade process for various web based software is very simple. Enter a few commands over SSH, run a script or even upgrade via an admin control panel. Upgrading the Ghost blogging platform is very similar. In this post I will run you through a very quick way of upgrading Ghost to the latest version. How to Upgrade a Ghost Blog Before you upgrade any software it is always recommended to backup all your data. Luckily Ghost has a simple way of backing up. Log into your blog admin control panel and then go to Settings > Labs. Now click the export button. This will download a .JSON file. This file can be used to restore your blog. It is also recommended that you backup your images and theme in your \ghost\content\ directory. This can be done by logging into your server via FTP, SFTP or any other method of accessing your server for file transfers. SSH into your server CD \to\ghost\installation\folder wget http://allaboutghost.com/updateghost chmod +x updateghost ./updateghost The script will run and once it has finished you can now run ghost with your preferred method. At BitBangers we like to run our Ghost blog with Forever. So to get our blog up and running again we need to enter the following command. NODE_ENV=production forever start index.js If the script has run correctly you should have a fully update Ghost instance running. Below is the contents of the updateghost script. #!/bin/bash # Written by Andy Boutte and David Balderston of howtoinstallghost.com, ghostforbeginners.com and allaboutghost.com # updateghost.sh will update your current ghost install to the latest version without you losing any content if [ -f config.js ] then echo `whoami` # Make temporary directory and download latest Ghost. mkdir temp cd temp curl -L -O https://ghost.org/zip/ghost-latest.zip unzip *.zip cd .. # Make database backups. for file in content/data/*.db; do cp "$file" "${file}-backup-`date +%Y%m%d`"; done # Copy the new files over. yes | cp temp/*.md temp/*.js temp/*.json . rm -R core yes | cp -R temp/core . yes | cp -R temp/content/themes/casper content/themes npm install --production # Delete temp folder. rm -R temp echo "You can now start Ghost with npm, forever or whatever else you use." else echo "Please cd to your Ghost directory." fi Thanks to HowToInstallGhost for proving the script and instructions.
  • Google Inbox Invite Giveaway!

    google inbox invite giveaway
    11
    11 Posts
    2k Views
    ScuzzS
    I have 5 more to giveaway!
  • How to install Ghost blogging platform on Linux

    ghost blog how to install
    1
    1 Posts
    1k Views
    ScuzzS
    How to install Ghost on linux This tutorial will show you how to install and run Ghost on a Debian based Linux server. This guide presumes you have Node.js and NPM installed and running correctly. First of all you will need to download the Ghost software: curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip Then you will need to unzip the Ghost software, we will unzip it to a ghost directory: unzip -uo ghost.zip -d ghost Now you will need to go into the ghost directory: cd ghost Once you are inside the ghost directory you will need to install all the dependencies that Ghost requires to run: npm install --production Once it has installed you can now go ahead and run the Ghost software: npm start To see your blog you will need to open http://127.0.0.1:2368 in your web browser. You can sign in to your control panel by visiting http://127.0.0.1:2368/ghost. Hopefully this has been useful to someone. Ghost is extremely easy to set up and install. There are other configuration option available for Ghost, such as SSL, an Nginx reverse proxy and running Ghost forever. I will write a separate tutorial for these later on; they are just as easy to set up!
  • Google Domains - Invites

    google domains invites
    2
    2 Posts
    730 Views
    LeoL
    yo, hit ya homie up with one. -> [email protected]
  • Messed something up in Git? Here's a flowchart on how to fix it!

    git flowchart
    1
    1 Posts
    514 Views
    SchamperS
    [image: git-pretty.png] Source: http://justinhileman.info/article/git-pretty/
  • Remove all the posts you hate from facebook

    remove unwanted facebook posts
    3
    3 Posts
    824 Views
    ScuzzS
    It used to be called http://unbaby.me/. Kinda get an abortion website feel from that url
  • 1 Posts
    430 Views
    ScuzzS
    Today I was tasked with upgrading some Windows 7 Home Premium PCs to Windows 7 Ultimate. For some reason the installer will not let you upgrade from Home premium to Ultimate and it tries to force you to do a clean install. I managed to find a way around this by editing some registry keys. Open Regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion And change: EditionID from HomePremium to Enterprise and ProductName from Windows 7 HomePremium to Enterprise Then re run your upgrade and everything should run as you expected! Original Blog Post
  • Sending Emails with Python and Mailgun

    python mailgun emails
    2
    2 Posts
    1k Views
    S
    Requests really does make HTTP usage so easy in Python; I came across and used it last week.
  • Show off your PC / Laptop

    show off laptop
    8
    8 Posts
    1k Views
    1
    @Scuzz Like your wall paper though.
  • How to recover Grub

    recover grub
    1
    1 Posts
    468 Views
    ScuzzS
    I have recently had some issue with kernal panics and Elementary OS not booting correctly, giving me a BusyBox screen with limited commands. The first time round i saw this i managed to fix it by booting into a live CD of Elementary OS and using the fsck /dev/sdax command. This seemed to fix it until i did a sudo apt-get dist-upgrade. This completely broke my install, I chose to start again with a fresh install of Elementary OS. Once it had fully installed and i had removed the live CD, i rebooted my laptop only to find that Grub had broke too. This meant that i was unable too boot into any operating system that I had installed on my laptop. How to recover from File Not Found: Grub Rescue I found a nice little tool that will automate the recovery of Grub and the boot partition. It is called boot-repair. Boot into a live CD of Ubuntu or any of its derivatives Install boot-repair sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install boot-repair Run boot-repair boot-repair Click the “Recommended repair” button and let boot-repair do it’s magic. Once the completion screen has been displayed it should be OK to reboot. You should now have a working Grub boot menu!
  • 1 Posts
    570 Views
    ScuzzS
    While I am setting up Node.js and NPM for a project I am currently working on I think it would be best to document my installations setups. I have already posted a quick How to Install Nginx and i think Node.js and NPM are the next logical items to write about. Installing Node.js sudo apt-get update sudo apt-get install nodejs This will install whatever version is currently in the repository, this will probably not be the latest and we will need to upgrade. Once the installation is complete you should have a working version of Node.js and NPM. NPM is Node Package Manager and it is used to install different node packages. It can also be used to upgrade itself and Node.js. How to upgrade NPM If NPM is not installed with the Node.js install then you will need to install NPM via apt-get. sudo apt-get install npm sudo npm update npm -g This command will upgrade NPM to the latest version, the -g is a global option so unless you are a root user you will need to use the sudo command. Once NPM has been fully update you can use it to update Node.js. How to upgrade Node.js via NPM sudo npm install -g n sudo n stable This will install the latest version Node.js. After these commands have run you will have a fully working and up to date Node.js and NPM.
  • Looking to build a new PC?

    3
    3 Posts
    881 Views
    SchamperS
    @Scuzz Also pound.
  • Atom.io

    4
    4 Posts
    1k Views
    SchamperS
    Recently became available for Windows as well. http://blog.atom.io/2014/07/09/hello-windows.html
Online Users