linux

Linux Commands (From Emails)

A quick one that has been coming up a lot via email. This is for those just learning Linux and trying out the Raspberry Pi.

Question

How do I rename a folder or file in Linux for the command line?

Answer

The command ‘mv’ can move files and folder, this includes change there names.

Question

How do I change directory on the Linux shell?

Same as in DOS/Windows, use the ‘cd’ command.

Question

How do I know what folder I am in?

The command ‘pwd’ command is your friend. It stands for ‘Print Working Directory’.

Question

Why doesn’t ‘LS’ or ‘DIR’ work?

Commands in Linux (*nix) are case sensitive, try lower case.

Linux – now for hardcore Windows users

That’s right, you read it correctly.
Actually, its a headline I noticed popping up at the moment.
It seems that a few tech sites have just realised you can use the live CD part of Linux to make repairs to  Windows.

I have been carrying a live disk in my bag of tricks for about ten years now. I have removed thousands of forgotten Windows passwords, backed up thousands of terabytes of data, check many a hard disk and RAM.
Not only that but some viruses can screw up the partitions of a disk which can prevent recover from Windows media. Well Linux booted and the partitions where removed and the drive cleaned.

Point is, if your not already carrying this magic tool. Get yourself over to Ubuntu’s website or a derivative and grab yourself a live disk.
Its free and can save millions of hours in time.

My first ever Android game

I have just released my first ever Android game. It takes the now missed Flappy Birds run style game and recreates it with a fish.

I originally wasn’t going to release the game for public use, but a number of friends wanted it and it seemed the easiest way to manage the updates.

I am planning to add Google Game integration for leader boards in the future and increasing level of difficulty.

You can get it here free: https://play.google.com/store/apps/details?id=com.deltawolf7.flappyfish

Let me know what you think and I will continue to improve the game and add my own original spins.

Scrambled Eggs – A Short Story

I have just released the first of many stories have have written. I have never shared these with anyone and I have only ever done it for my own amusement.

I can’t say I am very good at writing, but I am happy to share with anyone who wants to read it.

The story is about a woman named Jane and her want to leave life. The ways she thinks about going and the final end.

** PLEASE NOT, THIS  IS NOT SUITABLE FOR CHILDREN**

http://www.booksie.com/other/short_story/deltawolf7/scrambled-eggs 

Mono.Data.Sqlite for .NET 4.0/4.5

Hello,

Me again.. I have been working on a few projects of late that require a .net application to work both on Windows and Linux. I found to my surprise that Mono has a bug under Windows that causes the following error when ran under .net 4.0/4.5.

Unhandled Exception: System.TypeLoadException: Inheritance security rules
violated by type: 'Mono.Data.Sqlite.SqliteConnectionHandle'. Derived types must
either match the security accessibility of the base type or be less accessible.
   at Mono.Data.Sqlite.SQLite3.Open(String strFilename, SQLiteOpenFlagsEnum
flags, Int32 maxPoolSize, Boolean usePool)
   at Mono.Data.Sqlite.SqliteConnection.Open()

Anyway long story short, if you are trying to use Sqlite3 and the Mono.Data.Sqlite.dll, you may want to download this altered version with the bug fix included.

I have not done anything fancy, just downloaded the Mono source and recompiled the Mono.Data.Sqlite.dll with the correct assembly attributes to run under .net 4.0/4.5.

This is nothing new and is a known bug, but I thought I would share since I was not able to find a recompiled version online with the fix included.

http://www.deltasblog.co.uk/downloads/Mono.Data_.Sqlite.zip