Skip to content


Ubuntu Kung Fu: Tips, Tricks, Hints, and Hacks (Pragmatic Bookshelf)

 

Ubuntu Kung Fu: Tips, Tricks, Hints, and Hacks

Ubuntu Kung Fu: Tips, Tricks, Hints, and Hacks

First I would like to say thanks to O’reilly and the good people at Pragmatic Bookshelf, for allowing me to read and review Ubuntu Kung Fu: Tips, Tricks, Hints, and Hacks. I absolutely loved the book, and I am going to recommend it to everyone I know who uses Ubuntu.

 

The book was written for version 8.04 of Ubuntu, but will work great with 8.10 too! While reading and reviewing the book, you ought to have a machine nearby to test the hacks and hints. They are absolutely amazing. There are over 300 tips in the book, and each is a gem in its own right. The tips range rom optimizing the speed of your machine, to GUI hacks, hardware, messing with media, security enhancements, and system administration.

The table of contents is really great too! First it list each hack/tip in order of the book, then it shows you the tips organized into groups of topics, system admin, security, etc. Also each tip has information on getting to the next tips that are related. 

Truly this book is for anyone who is using Ubuntu who hasn’t been working with the code directly and would like to know more about the OS and what it can do. 

Just after reading the first few tips I was able to reduce the boot times on my laptop from minute and twenty seconds to under thirty seconds. I was also able to accurately graph the results of these changes by installing and using bootchart, a tip from the Ubuntu Kung Fu book.

If you are looking for a good book to help you enhance your understanding of Linux and Ubuntu, this is the book, get it now at Amazon, or from the Pragmatic Bookshelf.

Posted in Books, Linux, Ubuntu. Tagged with , , , , , , , , .

WordPress 2.7 Delayed, beta available

The good folks at WordPress are working hard to get all the bugs out of the WordPress release coming, but they have worked out enough to make a Beta 2 that you can download from WordPress.org.

The expected release date is now the end of Novemeber.

Posted in Uncategorized.

Book Review: RESTful PHP (Packt Publishing)

This weekend I had the opportunity to read RESTful PHP, by Samisa Abeysinghe, published by Packt Publishing. The book is short, about 200 pages, but full of great information about what REST is, how it is used, how it is supposed to be used and how to use it with PHP.

The book assumes you have a working knowledge of PHP, and how to install extensions (or use existing ones). The concepts are clear and concise. Samisa is direct, but explains the reasons for why code is the way it is, or explains what can be done different.

The books runs through many examples using Yahoo! and Amazon APIs. Most of the book could be called a manual for use of CURL and SimpleXML, as well as some DOM work. Although you will not need to know any of those things before picking up this book.

In a short seven chapters Samisa explains what rest is, who uses it, why it is used, and what you can do with it. Samisa walks you through consuming (or using) REST APIs and also how to setup your own APIs using the REST style and architecture.

I would recommend this book to any beginning and middle tiers PHP developer as it is a quick reference to REST and APIs that you know you already want to be working with.

Posted in Uncategorized.

Weekend Report

Things have been mighty quiet here. I have been working on getting setup with more publishers so I can read and  review more books on Open Source and Programming with you. I have also been working with friends to establish some partnerships to hopefully get a chance to write reviews for video games as well. All in all things are moving quite nicely on all fronts.

This weekend looks to be packed with a lot of fun. Tonight I am attending a party to get some free software, probably nothing OS, but hey free is free. The company hosting the party is also giving us free tickets to the Jazz game, I don’t much care for basketball, but again free is free.

Gears of War 2 released today, so I will of course be getting knee deep in some Locust blood, can’t wait to chainsaw in an upward fashion. You can find me on Xbox Live as “ut dragon”, I hope to be changing that soon.

Finally I have a slew of books that should be hitting the PO Box this weekend. I know for sure I am getting RESTful PHP (Packt Publishing), I should also be getting Ubuntu Kung Fu (O’reilly), as well as Clean Code: A Handbook of Agile Software Craftsmanship(InformIT), and PHP 6:  A Beginner’s Guide (McGraw-Hill). This will make for some great reading and growth in the peronsal category.

Posted in Books, Games, Xbox Live. Tagged with , , , , , , .

KVM 78 Released

It looks like the guys over at Red Hat / Qumranet have released version 78 of KVM over the weekend. The wiki still hasn’t been updated with the change log ( I will post them as soon as I know them ). You can download it from SourceForge

Posted in Uncategorized.

One Week To Go

Back on September 27th Matt Mullenweg, founder of WordPress and Automattic, stopped by Provo, Utah for WordCamp. What a great event! One of the things Matt talked about while there with us in Provo, was WordPress 2.7 and some of the great features coming to the system, including but not limited to:

Well we are now just 1 week away from WordPress 2.7 hitting the streets and being ready for deployment. Are you ready for the update? Have you backed up your data? If not I would get to it.

Posted in Uncategorized.

Why PacktPub?

Over the last year I have read and reviewed a lot of books by Packt Publishing, and I wanted to share one of the reasons (aside from the awesome books) why I have chosen to work with Packt Publishing.

From PacktPub.com

Packt Open Source Project Royalty Scheme

Packt believes in Open Source. When we sell a book written on an Open Source project, we pay a royalty directly to that project. As a result of purchasing one of our Open Source books, Packt will have given some of the money received to the Open Source project.

In the long term, we see ourselves and yourselves, as customers and readers of our books, as part of the Open Source ecosystem, providing sustainable revenue for the projects we publish on. Our aim at Packt is to establish publishing royalties as an essential part of the service and support business model that sustains Open Source.

It’s this kind of commitment from a publisher that really separates the wheat form the chaff.  I feel good when I read a book that is written by Packt because I know that I am, at least in some part, giving back to a community that has given so much to us.

Posted in Books. Tagged with , .

Book Review: Expert Python Programming (PacktPub)

Expert Python Programming by Tarek Ziade (PacktPub.com)

Expert Python Programming by Tarek Ziade (PacktPub.com)

Expert Python Programming was not what I was expecting to get from a book about Python. I am not a savvy python programmer yet, and in my quest to become one I picked this book up to read. It certainly is not for beginners, and I mean that. If you are not comfortable you may wish to skip it, if you are daring and have the basics of programming down then you can slip this one into your collection.

Tarek Ziade presents, for the most part, best practices and design patterns. Chapters 8 through 14 really are just that, explaining how to be a really great python programmer. From Test-driven design, to Optimization he covers all the bases and if the suggestions and steps are followed even the worst of programmers (no matter the language) could become an expert programmer.

Chapters 2 and 3 literally blew my mind, I mean that! The concepts aren’t earth shattering, but they are really good and indepth. I am glad I had the chance to review the book and read those chapters as they gave me some great insight to the language of Python. 

Overall this book has really opened my eyes to the powers of Python and even more how to be a better programmer in general. Thanks Tarek!

You can pick up this novel of awesome at Amazon.com, or check out more details on the book at PacktPub.com.

Posted in Books, Code, Coding, Python. Tagged with , , , , .

Josso & PHP

I recently had the pleasure, if you would like to call it that, to implement JOSSO with PHP at my work. I quickly learned a few things about the process of setting up Josso with PHP, that aren’t well documented, and as such I am going to share my findings.

Downloading
Let’s start with downloading the PHP library for Josso. Most people will head straight to the SF.net repository for Josso and look for the PHP link. Well, let me save you the headache, it ain’t there. The PHP library is stored inside of the josso main package (currently josso-1.7.zip as of this writing). The main package by-the-way is 80+ MB. You are looking for roughly 30Kb of files inside that zip.

Inside the zip you will find tons of files, and folders . Let me guide you to where the PHP files are: (after unzipping)

\josso-1.7\josso\core\src\plugins\php\php

No, the double php is not a typo. Inside of that directory you will find three class files, a config file, a couple of login/logout views, the security check, and the josso file. Be forewarned there is also a nusoap directory, and this thing will cause some headache if you are not prepared.

Installation
Unless you have full control of your server that you are installing the JOSSO + PHP interface on, you will not have access to add Josso to the php.ini file to make is autoload on every single page. For this I really suggest using a MVC with Front Controller setup. This allows you to force the user through a single point to access any part of your site, and thus eliminates the need to make Josso autoload for every single php file on your site.

SOAP
Finally I want to talk about Josso’s implementation of SOAP. On their PHP site they write:

In case of using PHP5 be sure of disabling the native SOAP support in order to avoid conflicts with the SOAP API used by JOSSO.

That is 100% completely not needed. Here is why. The SOAP class they do use doesn’t touch the SOAP class from PHP, and as such it can simply have all references changed. I simply loaded all the files from Josso into Eclipse and did a find and replace on soapclient (the actual class that conflicts) and renamed it to josso_soapclient. There were only a handful of places to change this, maybe 10. Once they were renamed the Josso + PHP experience was quite simple.

Example Scripts
Lastly I want to quickly mention that when you load the sample scripts provided by Josso, you will get errors. Apparently some of the methods have changed since they wrote the Josso examples. I have submitted my changes to the Josso project, and I hope that they will be included as they only make sense. So if you get errors, just go into the code and look to see if 1) the method exists anywhere, and 2) find a similar method and call it.

Conclusion
I don’t want to sound as though I am bagging on Josso at all, instead I am just letting people know the problems I had, and how I fixed them. The rest of the setup was really quite simple. For Single Sign-on, Josso is great.

Update
So another small annoyance I found while using Josso was that when you send a bad login to Josso, Josso will hijack your user experience. I was passing the “josso_back_to” string, and I couldn’t think why it wouldn’t send the user back. It turns out that Josso only uses the “josso_back_to” string when there is a valid login, and a second parameter of “josso_on_error” is required for bad logins (or errors).

Posted in Code, PHP. Tagged with , .

Book Review: Learning FreeNas (PacktPub)

Packt Publishing has done it again! Another great book about technology that matters. This time I am talking about FreeNAS. If you are like me and you have oodles of movies, music, pictures and just plain data that you want to keep safe and secure, and possibly free up some space on your main PC or laptop, then you really need to know about FreeNAS. There is no better way to know about FreeNAS than to read Learning FreeNAS from Packt Publishing.

Continued…

Posted in Books.