• Blog Theme

    Announcements blog theme
    3
    1 Votes
    3 Posts
    835 Views
    SchamperS
    @Scuzz look at you all doing things and stuff.
  • How to Upgrade Ghost

    General Computing ghost blog upgrade how to
    1
    2 Votes
    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.
  • Blog post for my internship

    Development and Coding internship blog
    1
    4 Votes
    1 Posts
    541 Views
    SchamperS
    My boss kept nagging me to make a short blog post about my internship project, so I did. Some of you might know that I’m having trouble getting feedback on my work, so I put in some comments about that in this post. Android application development I’ve been working on the Projectcampus Android application since September, and I must say I’ve learned a lot about Android and personally think the application is coming along nicely. ​​​It all started as a very simple list of hardcoded data, but gradually grew to make use of various Android components such as a Content Provider, Authenticator, Sync Adapter and even custom views. Besides these components I’ve learned about using various mainstream libraries such as Retrofit, OkHttp, Glide, Butterknife, Eventbus, Crashlytics and the Android Support Library. ​ Retrofit powers the REST communication with the Projectcampus backend in combination with EventBus. EventBus is exactly what it sounds like, an event bus. This makes it possible to launch a REST request from anywhere in the application and also to allow any part of the application to receive any REST response. EventBus is also used for other inner-application communication. Glide is an image loading and caching library used for the various images used throughout the application. All of the networking is backed by OkHttp.​ Butterknife is a view “injection” library for Android and is used to reduce the amount of boilerplate code. Crashlytics is used to report crashes and errors. The Android Support Library is used for a couple of things like Material support for API levels below 21, Toolbar and new Swipe Refresh Layout. ​ In the current structure, all REST request events are handled by a Retrofit client. This client posts all the results to the event bus. A database service listens to all the response events and writes these to the database through a content provider. Any fragment or activity subscribed to the affected URI’s will be automatically updated through the magic of cursor loaders. ​ I’ve also made sure to improve performance where I can. Making use of the View holder pattern, reducing layout XML complexity and depth and reducing overdraw are a few examples I can currently think of. I’m sure there are parts in my code that can be refactored to be more performant, but that’s hard to determine when you’re the only person looking at the code. ​ The application is also configurable at build time using gradle. There are several properties that can be set to configure the application, most important being the URLs and client ID for the API. There are also properties to disable certain features of the application. ​ All in all I’m fairly happy with the current state of the application. However, I also feel like it could be a lot better and further along if I had occasional feedback. A very large portion of my time has been spend redoing something I did the previous week. On the other hand, I’m also kind of proud of myself that I’ve managed to put together the application in its current state all by myself. [image: iqFWO8C.png]
  • 1 Votes
    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!