Tuesday, 18 February 2014

How To Install Git on Ubuntu 12.04

What the Red Means

The lines that the user needs to enter or customize will be in red in this tutorial! 

The rest should mostly be copy-and-pastable.


About Git


Git is a distributed version control system released to the public in 2005. The program allows for non-linear development of projects, and can handle large amounts of data effectively by storing it on the local server. 

This tutorial will cover two ways to install Git.

How to Install Git with Apt-Get


Installing Git with apt-get is a quick and easy process. The program installs on the virtual private server with one command:
sudo apt-get install git-core

After it finishes downloading, you will have Git installed and ready to use.

How to Install Git from Source


If you are eager to download the most recent version of Git, it is generally a good idea to install it from the source. 

Quickly run apt-get update to make sure that you download the most recent packages to your VPS.
sudo apt-get update

Prior to installing Git itself, download all of the required dependancies:
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essential

Once they are installed, you can download the latest version of Git from the google code page.
wget https://git-core.googlecode.com/files/git-1.8.1.2.tar.gz

After it downloads, untar the file and switch into that directory:
tar -zxf git-1.8.1.2.tar.gz
cd git-1.8.1.2

If you want to do a global install, install it once as yourself and once as root, using the sudo prefix:
make prefix=/usr/local all
sudo make prefix=/usr/local install

If you need to update Git in the future, you can use Git itself to do it.
git clone git://git.kernel.org/pub/scm/git/git.git

How to Setup Git


After Git is installed, whether from apt-get or from the source, you need to copy your username and email in the gitconfig file. You can access this file at ~/.gitconfig. 

Opening it following a fresh Git install would reveal a completely blank page:
sudo nano ~/.gitconfig

You can use the follow commands to add in the required information.
git config --global user.name "NewUser"
git config --global user.email newuser@example.com

You can see all of your settings with this command:
git config --list

If you avoid putting in your username and email, git will later attempt to fill it in for you, and you may end up with a message like this:
[master 0d9d21d] initial project version
 Committer: root 
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

See More


This tutorial covered how to install Git on your virtual private server. Stay tuned for a second tutorial on Git Basics. 

Monday, 17 February 2014

Dependency Injection with AngularJS

Book Description

Dependency injection facilitates better testing by allowing us to mock dependencies in testing environments so that we only test one thing at a time. It also enables us to write more maintainable code by decoupling our objects from their implementations. The motivation for using it inAngularJS is to make it easier to transparently load mocked objects in tests.

This book is a practical manual to get you started on dependency injection. It will also take you along the road to creating testable and reusable code. Ensuring productivity and stability are the two most important things that you will learn.

Dependency Injection with AngularJS will introduce you to AngularJS using a simple sample project. By portraying different ways of developing code modules, it will show you the advantages of dependency injection. This will lead to the ability to create reusable components that can easily be tested.

Book Details

Publisher:Packt Publishing
By:Alex Knol
ISBN:978-1-78216-656-6
Year:
Pages:78
Language:English
File size:3.9 MB
File format:PDF

eBook

Download:Dependency Injection with AngularJS

Paper Book

Buy:Dependency Injection with AngularJS

Online Book

Read:Dependency Injection with AngularJS

Saturday, 15 February 2014

HTML5: The Missing Manual, 2nd Edition

The Book That Should Have Been in the Box


HTML5: The Missing Manual, 2nd Edition
QR code - HTML5: The Missing Manual, 2nd Edition
QR Code

Programming iOS 7, 4th Edition

Programming iOS 7, 4th Edition

Book Description

If you're grounded in the basics of Objective-C and Xcode, this practical guide takes you through the components you need for building your owniOS apps. With examples from real apps and programming situations, you'll learn how to create views, manipulate view controllers, and use iOS frameworks for adding features such as audio and video.

New iOS 7 topics covered include asset catalogs, snapshots, template images, keyframe and spring view animation, motion effects, tint color, fullscreen views and bar underlapping, background downloading and app refresh, Text Kit, Dynamic Type, speech synthesis, and many others. Example projects are available on GitHub.

Book Details

Publisher:O'Reilly Media
By:Matt Neuburg
ISBN:978-1-44937-234-7
Year:
Pages:930
Language:English
File size:13.3 MB
File format:PDF

eBook

Download:Programming iOS 7, 4th Edition

Paper Book

Buy:Programming iOS 7, 4th Edition

Online Book

Read:Programming iOS 7, 4th Edition

Friday, 14 February 2014

Easily Install Minecraft on Ubuntu

minecraft
Looking for an easy way to install and launch Minecraft on Ubuntu? Minecraft Installer makes installing, setting up and using the famous sandbox game a total cinch.
The unofficial tool, made by Cody Garver and Cassidy James, is not as featured as other similar installer/launcher apps, like the popular (but now defunct) Mini Minecraft Launcher, so you won’t find support for backing up games or taking screenshots.
But what it lacks in fluff it makes up for in ease of use; just install the app, open it up, log-in, and away you go.
There’s even a Unity Quicklist with links to common Minecraft resources.
unity minecraft
Minecraft Installer – Unity Quicklist with Links to Resources
Minecraft Installer fetches all of the core files from Mojang’s servers so you don’t need to worry about getting anything dodgy; everything is above-board, legal, and wrapped in convenience.
installer
A PPA provides packages for Ubuntu 12.04 through 13.04:
sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update && sudo apt-get install minecraft-installer
Once installed simply run the app, enter (or register) your Minecraft details and you’re all set.

Lightweight Linux Notes App ‘Springseed’ Adds Category Support, Better Dropbox Sync

Bgb-HCqCcAAPrcv.png-large
It describes itself as a ‘simply awesome’ note-taking app, but development on Springseed has been ‘simply slow’. Today it has received its first update in over six months.
Made by the folks over at Mintcode, Springseed provides a clean, clutter-free canvas for quickly creating, sorting and categorising notes, thoughts, pictures and other snippets of information. It is able to sync saved notes between computers using Dropbox, though this feature is optional and a Dropbox account is not required to use the app.

Version 1.1

Version 1.1 of the nimble JavaScript app sees a total top-to-bottom code rewrite, better performance, and a handful of minor new features.
It’s now possible to resize the application window – something the initial release didn’t support, much to many users’ chagrin.
Notebooks now support ’Categories’ – a new feature which I’m mentally renaming ‘chapters’. Categories allow notes to be grouped under a specific title. For example, a ‘Holiday’ notebook may have ‘vacation ideas’, ‘costs‘ and ‘activities‘ categories. Just click the ‘+’ icon next to the Notebook title in the sidebar to add a category.
For organisational ease, the app supports drag and drop of notes between notebooks and categories.

Change log:

  • Drag and drop notes between notebooks
  • Add categories to notes/notebooks
  • Improved performance
  • Improved Dropbox sync reliability 
  • Ability to resize window
  • Bug fixes
Springseed is an open-source application and available as a free download from the project website.

gNewSense 3.1 Released, Available to Download

gnusense 3.0
gNewSense may no longer be based off of Ubuntu, but the Free Software Foundation-backed Linux distribution remains an important mile-marker of progress within the open-source community. 
‘For FOSS purists, Linux doesn’t come any purer than gNewSense’
Built with entirely free and open-source software, gNew features no non-free software by default, no repositories containing non-free software, and no proprietary drivers or binary blogs blobs in the kernel.
For FOSS purists, Linux doesn’t come any purer than gNewSense.

‘Minor Update’

Version 3.1 is a very minor update to the 3.0 release made last summer that adds the Network Manager utility to the live CD image; ensures that the correct repository is enabled during installation; and no longer suggests Debian’s non-free repository in the ‘expert installer’.

Download gNewSense 3.1

Those already running the latest gNewSense are advised to point their software sources to the correct repositoryprior to updating. Details on how to do this are listed in the release announcement.
For everyone else looking to experience the fringe benefits of unfiltered FOSS ideology, a copy of gNewSense 3.1 can be downloaded from the official project website linked below – just don’t expect all of your hardware to work out of the box.