Posts

Showing posts from May, 2020

Completing a Book Inventory Management System

Image
In this conclusion to a 12-part article series on building a book inventory management system with the scaffolding feature of Ruby on Rails, we'll finish the View Book User and Edit Book User stories. This article is excerpted from chapter three of the book  Practical Rails Projects , written by Eldon Alameda (Apress; ISBN: 1590597818). Completing the View Book User Story The View Book user story also needs some cleaning up before George is happy. The code created by the scaffolding displays the values of all database columns directly to the user. This means, for example, that the publisher’s ID is shown instead of the publisher’s name. We’ll fix this and also add code that displays the authors of the book and the book cover. Changing the View First, change app/views/admin/book/show.rhtml as follows: <dl> <dt>Title</dt> <dd><%= @book.title %></dd> <dt>Publisher</dt> <dd><%= @book.publisher.name %></dd> ...

Oracle Supporting HP Itanium Again, Finally

Image
After losing to HP in a breach-of-contract lawsuit at the beginning of last month, Oracle this week announced that it would comply with the court ruling. The software giant will keep developing its database and applications to run on HP's Itanium servers. But that's not the end of the story. For those who haven't been keeping up with the case, Oracle and Hewlett-Packard signed a contract in late September of 2010 that explicitly stated the two companies would continue to support each other's products as they had in the past. Following this, some time in 2011, Oracle said that it would stop supporting HP's Itanium-based servers. This apparently took HP by surprise, and the hardware maker sued for breach of contract. The judge in the case agreed, and ordered Oracle to keep supporting the HP/UX servers featuring Intel's Itanium chip. Oracle was not happy about this; in an objection to the judge's ruling, the database maker complained about the “unprecedent...

SSH Case Studies: Gateway Hosts

Image
             In this tenth part of a nineteen-part article series on the secure shell, we'll study the issues related to using SSH in an environment that requires outgoing connections to go through a proxy server or gateway host, as you would commonly find in the corporate world. This article is excerpted from chapter 11 of the book  SSH, The Secure Shell: The Definitive Guide, Second Edition , written by Daniel J. Barrett, Richard E. Silverman and Robert G. Byrnes (O'Reilly; ISBN-10: 0596008953). 11.4 Connecting Through a Gateway Host              All along we’ve assumed that your outgoing connectivity is unlimited: that you can establish any outgoing TCP connection you desire. Even our discussions of firewalls have assumed that they restrict only incoming traffic. In more secure (or simply more regimented) environments, this might not be the case: in fact, you might not have direct IP connectivity at all...

Beginning PHP 5 and MySQL: From Novice to Professional

Image
             PHP 5 is large step forward from earlier versions. When I first started playing around with it, I saw the release as a case of the Emperor's New Clothes. Then I recoded a script that I did in PHP4. It used XML. What was a long painful exercise in PHP4, was almost effortless in PHP 5. After having done a similar exercise in C# for ASP.NET, the light went on. PHP 5 isn't good-- it's great! PHP 5 is the ideal language for web development today. The conundrum: as an Open Source language, it doesn't have same level of support and documentation as the Microsoft supported languages. What you need is a good book to walk you through the coding concepts, to stand there as a language reference and to give you supplemental information on related topics: databases, security, installatation, To fill this role is "Beginning PHP 5 and MySQL From Novice to Professional" from Apress. By : Mike DeWolfe              If...

MariaDB, a MySQL Alternative, Opens Foundation

Image
If you're looking for a good alternative to MySQL, you might want to check out MariaDB. This fork of the popular open source database management system now boasts a foundation to spread the word on how it can help users looking for something tasty that doesn't come with a side of Oracle. So what's the specific purpose of this new foundation? According to its website, "the MariaDB Foundation exists to improve database technology, including standards implementation, interoperability with other databases, and building bridges to other types of database such as transactional and NoSQL. To deliver this the Foundation provides technical work in reviewing, merging, testing, and releasing the MariaDB product suite. The Foundation also provides infrastructure for the MariaDB project and the user and developer communities." So why, exactly, does this matter? Why is MariaDB worth considering as an alternative to MySQL? To understand that, we need to go back in time. Mich...

Web Application Development with PHP 4.0

Image
Published by: New Riders Reading through the intro for this book, I have to admit it sounded extremely good. I've grown tired of reading through the basics of PHP and this book promised to skip the basics and jump right into the advanced aspects of the language. The titles of every chapter sounded very intriguing. I really hate to write a bad review about something a lot of people put so much work into, but that's exactly what I am doing now. I started reading with much excitement, almost right away they're talking about basic PHP info (at least info I thought was basic). A couple chapters later I am still waiting for it to get good.. Over half way through the book and I am really starting to feel like I have completely wasted my money. By the time I got to the last chapter (hacking the core of PHP) I only had enough enthusiam to quickly scan through it and put it on my book shelf simply to get it out of the way. By Tobias Ratschiller and Till Gerken I can't even ...

Advanced PHP Programming - George Schlossnagle

Image
So you've built couple of websites, are comfortable looking up things in the PHP manual, tackled and conquered working with databases and SQL, turned your hand to Object Oriented Programming and found it "Cool", written and read flat files, and can code a web form in your sleep. Feeling pretty comfortable PHP are you? But haven't you felt like you want to do more? Go to the next level? But you didn't know what you were looking for never mind the the correct questions to ask? If so "Advanced PHP Programming" is for you. It opens up your eyes and a whole new world with a lingo all it's own. This book is for the intermediate to senior programmer who wants to expand their knowledge base for enterprise level applications. Php Book Reviews -   George Schlossnagle For example - Part I covers coding style, design patterns and OOP, templating and Smarty, Bash scripting, Unit testing, CVS and group projects, and writing an API. And that is just the b...