Si Dunn

Archive for the ‘SQL’ Category

Jump Start Sinatra – With this book and a little Ruby, you can make Sinatra sing – #programming #bookreview

In Book review, Book reviews, CoffeeScript, How-to, JavaScript, Kindle, Paperback, Rails, Ruby, Ruby on Rails, Ruby programming, Sinatra, SQL, Web apps on April 19, 2013 at 10:57 am

Jump Start Sinatra
Get Up to Speed with Sinatra in a Weekend
Darren Jones
(SitePoint – Kindle, Paperback)

Many Ruby developers love Rails for its power and capabilities as a model-view-controller (MVC) framework. But some of them don’t like Rails’ size, complexity, and learning curve.

Meanwhile, many other Rubyists love Sinatra for its simplicity and ease of learning, plus its ability “to create a fully functional web app in just one file,” says Darren Jones in his new book, Jump Start Sinatra. “There are no complicated setup procedures or configuration to worry about. You can just open up a text editor and get started with minimal effort, leaving you to focus on the needs of your application.”

Jones does not temper his enthusiasm for Sinatra, adding that “there isn’t a single line of bloat anywhere in its source code, which weighs in at fewer than 2,000 lines!”

His 150-page book covers a lot of ground, from downloading and installing Sinatra to building websites, working with SQLite, Heroku, Rack, jQuery, and Git, and even using some CoffeeScript (to avoid “getting our hands dirty writing JavaScript…”). He also shows how to create modular Sinatra applications that use separate classes.

“Sinatra makes it easy–trivial almost–to build sites, services, and web apps using Ruby,” the author states. “A Sinatra application is basically made up of one or more Ruby files. You don’t need to be an expert Rubyist to use Sinatra, but the more Ruby you know, the better you’ll be at building Sinatra apps.”

Jones adds: “Unlike Ruby on Rails, Sinatra is definitely not a framework. It’s without conventions and imposes no file structure on you whatsoever. Sinatra apps are basically just Ruby programs; what Sinatra does is connect them to the Web. Rather than hide behind lots of magic, it exposes the way the Web works by making the key concepts of HTTP verbs and URLs an explicit part of it.”

Jump Start Sinatra is a well-written, appropriately illustrated guide to getting started with this popular free software. Ruby newcomers may wish for a few more how-to steps or code examples. But the counter argument is, if you’re brand-new to Ruby, save Sinatra for later; focus on getting learning Ruby first. 

Darren Jones does not buy into a common assessment that’s often heard when developers are asked their views of Rails vs. Sinatra. “Opinions abound that Sinatra can only be used for small applications or simple APIs, but this simply isn’t true,” he argues. “”While it is a perfect fit for these tasks, Sinatra also scales impressively, demonstrated by the fact that it’s been used to power some big production sites.”

Some of those “big production sites,” according to Wikipedia, include such notables as Apple, LinkedIn, the BBC, the British government, Heroku, and GitHub.

Si Dunn

Spring Data: Modern Data Access for Enterprise Java – #java #bookreview

In Big Data, Book review, Book reviews, Data analysis, Database, Database management, Hadoop, How-to, Java, Kindle, MongoDB, MySQL, NoSQL, Paperback, Relational database management system, SQL on November 26, 2012 at 4:58 pm

Spring Data: Modern Data Access for Enterprise Java
Mark Pollack, Oliver Gierke, Thomas Risberg, Jonathan L. Brisbin and Michael Hunger
(O’Reilly, paperbackKindle)

Big Data keeps getting wider and deeper by the second. And so do the demands for analyzing and profiting from all of those piled-up terabytes.

Meanwhile, the once whiz-bang technology known as the relational database is having a very hard time keeping pace. The sheer amount of data that companies now gather, store, access, and analyze is pushing traditional relational databases to the breaking point.

Many Java developers who are trying to keep these overloaded systems held together with baling wire, also are starting to learn to work with some of the “alternative data stores that are being used in mission-critical enterprise applications,” the authors of Spring Data point out.

A lot of data now is being stored elsewhere and not in relational databases. Yet companies cannot abandon what they have already gathered and invested heavily to access. So they need to keep using and supporting their relational databases, plus some newer, faster, more voracious solutions lumped under the heading “NoSQL databases,” (even though you can query them).

In “the new data access landscape,” the authors note: “there is a revolution taking place, which for data geeks is quite exciting. Relational databases are not dead; they are still central to the operations of many enterprises and will remain so for quite some time. The trends, though, are very clear: new data access technologies are solving problems that traditional relational databases can’t, so we need to broaden our skill set as developers and have a foot in both camps.”

They add: “The Spring Framework has a long history of simplifying the development of Java applications, in particular for writing RDBMS-based data access layers that use Java database connectivity (JDBC) or object-relational mappers.”

Their new book “is intended to give you a hands-on introduction to the Spring Data project, whose core mission is to enable Java developers to use state-of-the-art data processing and manipulation tools but also use traditional databases in a state-of-the-art manner.”

They have organized their 288-page book into six parts and 14 chapters:

Part I – Background

  • Chapter 1 – The Spring Data Project
  • Chapter 2 – Repositories: Convenient Data Access Layers
  • Chapter 3 – Type-Safe Querying Using Querydsl

Part II – Relational Databases

  • Chapter 4 – JPA Repositories
  • Chapter 5 – Type-safe JDBC Programming with Querydsl SQL

Part III – NoSQL

  • Chapter 6 – MongoDB: A Document Store
  • Chapter 7 – Neo4j: A Graph Database
  • Chapter8 – Redis: A Key/Value Store

Part IV – Rapid Application Development

  • Chapter 9 – Persistence Layers with Spring Roo
  • Chapter 10 – REST Repository Exporter

Part V – Big Data

  • Chapter 11 – Spring for Apache Hadoop
  • Chapter 12 – Analyzing Data with Hadoop
  • Chapter 13 – Creating Big Data Pipelines with Spring Batch and Spring Integration

Part 5 – Data Grids

  • Chapter 14 – GemFire: A Distributed Data Grid

“Many of the values that have made Spring the preferred platform for enterprise Java developers deliver particular benefit in a world of fragmented persistence solutions,” states Ron Johnson, creator of Spring Framework. Writing in the book’s foreword, he notes: “Part of the value of Spring is how it brings consistency (without descending to a lowest common denominator) in its approach to different technologies with which it integrates.

“A distinct ‘Spring way’ helps shorten the learning curve for developers and simplifies code maintenance. If you are already familiar with Spring, you will find that Spring Data eases your exploration and adoption of unfamiliar stores. If you aren’t already familiar with Spring, this is a good opportunity to see how Spring can simplify your code and make it more consistent.”

Spring Data definitely is not light reading, but it is well-written, and provides a good blending of procedures, steps, explanations, code samples, screenshots and other illustrations.

Si Dunn

PostgreSQL: Up and Running – Get a well-guided grip on this powerful, free database software – #bookreview

In Book review, Book reviews, Database, Database management, How-to, Kindle, Paperback, PostgreSQL, Programmer, Programming, Software, SQL on September 16, 2012 at 2:46 pm

PostgreSQL: Up and Running
 Regina Obe and Leo Hsu
(O’Reilly,
paperbackKindle)

PostgreSQL is both a powerful open source database system and a very flexible application platform.

“PostgreSQL allows you to write stored procedures and functions in several programming languages, and the architecture allows you the flexibility to support more languages,” this book’s two authors point out.

Indeed: “You can have functions written in several different languages participating in one query.”

Release 9.2 of PostgreSQL hit the web Sept. 10, 2012. Regina Obe’s and Leo Hsu’s fine, 145-page introduction to PostgreSQL focuses on Release 9.1, but describes major 9.2 features, too. And their book definitely can be used to get you up and running. It describes “the unique features of PostgreSQL that make it stand apart from other databases…”, and shows “how to use these features to solve real world problems.”

PostgreSQL is not for every database user, the writers emphasize. “PostgreSQL was designed from the ground up to be a server-side database. Many people do use it on the desktop similarly to how they use SQL Server Express or Oracle, but just like those, it cares about security management and doesn’t leave this up to the application connecting to it. As such, it’s not ideal as an imbeddable database, like SQLite or Firebird.”

It also “does a lot and a lot can be daunting,” they concede. “It’s not a dumb data store; it’s a smart elephant. If all you need is a key value store or you expect your database to just sit there and hold stuff, it’s probably overkill for your needs.”

But after years of using PostgreSQL, the two writers remain unabashed fans. “Each update,” they state in their book, “treats us to new features, eases usability, brings improvements in speed, and pushes the envelope of what is possible with a database. In the end, you will wonder why you ever used any other relational database, when PostgreSQL does everything you could hope for—and does it for free.”

By the way, users of PostgreSQL 8.3 or older need to upgrade ASAP, Regina Obe and Leo Hsu urge. Release 8.3 “will be reaching end-of-life in early 2013,” making support increasingly difficult and expensive.

Si Dunn

The Data Journalism Handbook – Get new skills for a new career that’s actually in demand – #bookreview

In Book review, Book reviews, business, Data journalism, Data science, Data scientist, Google, Graphics, How-to, Journalism, Kindle, Microsoft Office, Programming, Python programming, R programming, Rails, Ruby, Social media, SQL on August 17, 2012 at 9:54 am

The Data Journalism Handbook: How Journalists Can Use Data to Improve the News
Edited by Jonathan Gray, Liliana Bounegru, and Lucy Chambers
(O’Reilly, paperbackKindle)

Arise, ye downtrodden, unemployed newspaper and magazine writers and editors yearning to be working again as journalists. Data journalism apparently is hiring.

Data journalism? I didn’t know, either, until I read this intriguing and hopeful collection of essays, how-to reports, and case studies written by journalists now working as, or helping train, data journalists in the United States and other parts of the world.

Data journalism, according to Paul Bradshaw of Birmingham City University, combines “the traditional ‘nose for news’ and ability to tell a compelling story with the sheer scale and range of digital information now available.”

Traditional journalists should view that swelling tide of information not as a mind-numbing, overwhelming flood but ”as an opportunity,” says Mirko Lorenz of Deutsche Welle. “By using data, the job of journalists shifts its main focus from being the first ones to report to being the ones telling us what a certain development actually means.”

He adds: “Data journalists or data scientists… are already a sought-after group of employees, not only in the media. Companies and institutions around the world are looking for ‘sense makers’ and professionals who know how to dig through data and transform it into something tangible.”

So, how do you transform yourself from an ex-investigative reporter now working at a shoe store into a prizewinning data journalist?

A bit of training. And, a willingness to bend your stubborn brain in a few new directions, according to this excellent and eye-opening book.

Yes, you may still be able to use the inverted-pyramid writing style and the “five W’s and H” you learned in J-school. But more importantly, you will now need to show you have some good skills in (drum roll, please)…Microsoft Excel.

That’s it? No, not quite.

Google Docs, SQL, Python, Django, R, Ruby, Ruby on Rails, screen scrapers, graphics packages – these are just a few more of the working data journalists’ favorite things. Skills in some these, plus a journalism background, can help you become part of a team that finds, analyzes and presents information in a clear and graphical way.

 You may dig up and present accurate data that reveals, for example, how tax dollars are being wasted by a certain school official, or how crime has increased in a particular neighborhood, or how extended drought is causing high unemployment among those who rely on lakes or rivers for income.

You might burrow deep into publically accessible data and come up with a story that changes the course of a major election or alters national discourse.

Who are today’s leading practitioners of data journalism? The New York Times, the Texas Tribune, the Chicago Tribune, the BBC, Zeit Online, and numerous others are cited in this book.

The Data Journalism Handbook grew out of MozFest 2011 and is a project of the European Journalism Centre and the Open Knowledge Foundation.

This book can show you “how data can be either the course of data journalism or a tool with which the story is told—or both.”

If you are looking for new ways to use journalism skills that you thought were outmoded, The Data Journalism Handbook can give you both hope and a clear roadmap toward a possible new career.

Si Dunn

New Books for Windows Phone 7 & 7.5 and Microsoft SQL Server 2012 T-SQL – #bookreview

In .NET, Book review, Book reviews, C#, Database, Developer, HTML5, Microsoft, Microsoft SQL Server, Paperback, Programmer, Programming, Software, SQL, T-SQL, Windows Phone on August 1, 2012 at 3:06 pm

Microsoft Press recently has released two new books, one for developers who work with Windows Phone 7 & 7.5 and the other for newcomers to Microsoft SQL Server 2012 T-SQL. 

Windows Phone 7 Development Internals
Andrew Whitechapel
(Microsoft Press, paperback, Kindle)

Andrew Whitechapel’s hefty new 809-page development internals guidebook focuses on Windows Phone 7 design and architecture and helps you learn best practices for building Windows Phone 7 applications. It is illustrated with numerous screenshots, code examples, and other illustrations.

The book “covers the breadth of application development for the Windows Phone platform, both the major 7 and 7.1/7.5 versions and the minor 7.1.1 version,” Whitechapel writes.

Windows Phone 7 Development Internals is aimed at experienced .NET developers who are familiar with Microsoft Silverlight and want to dig into Windows Phone’s platform design and API surface.

“The Windows Phone 7 release only supports C#,” Whitechapel notes, “and although support for Visual Basic was introduced with the 7.1 SDK, this book focuses purely on C# and XAML.”

In each of the 20 chapters, several features are introduced, and Whitechapel provides “one or more sample [Silverlight] applications and walks you through the significant code (C# and XAML).”

The book’s author is a senior program manager for the Windows Phone Application Platform.

#

Microsoft SQL Server 2012 T-SQL Fundamentals
Itzik Ben-Gan
(Microsoft Press, paperback, Kindle)

Transact-SQL, more commonly known as T-SQL, is the Microsoft SQL Server dialect of the ISO and ANSI standards for SQL. T-SQL code is used to query and modify data in SQL Server 2012.

Itzik Ben-Gan, one of the leading experts on T-SQL, emphasizes that his new book “covers fundamentals [and] is mainly aimed at T-SQL practitioners with little or no experience.” But others who have some T-SQL experience also can find it helpful for filling in gaps in knowledge. The book also is recommended for database administrators, business intelligence (BI) practitioners, report writer, analysts, architects, and SQL Server power users who have “just started working with SQL Server and need to write queries and develop code using Transact-SQL.”

Microsoft SQL Server 2012 T-SQL Fundamentals is structured into 10 chapters. The first chapter provides “Background to T-SQL Querying and Programming. Chapters 2 through 8 examine “various aspects of querying and modifying data.” Chapter 9 looks at concurrency and transactions, and Chapter 10 provides an overview of programmable objects.

The book’s one appendix shows you how to “get started and set up your environment so that you have everything you need to get the most out of this book.” The major discussions include: “Getting Started with SQL Database”; “Installing an On-Premises Implementation of SQL Server”; “Downloading Source Code and Installing the Sample Database”; “Working with SQL Server Management Studio”; and “Working with SQL Server Books Online.”

#

Si Dunn

Training Kit (Exam 70-462): Administering Microsoft SQL Server 2012 Databases – #bookreview #mcsa

In Book review, Book reviews, How-to, Microsoft, Microsoft Certified Solutions Associate, Paperback, Software, SQL, Training on July 28, 2012 at 9:14 am

Training Kit (Exam 70-462): Administering Microsoft SQL Server 2012 Databases
Orin Thomas, Peter Ward, and boB Taylor
(Microsoft Press, paperback with CD)

Exam 70-462 is one of three required examinations you must pass to get a Microsoft Certified Solutions Associate (MCSA) certification for Microsoft SQL Server 2012.

This well-structured, 593-page book is designed for self-paced training and includes a CD with practice tests. The CD offers several testing modes to choose from and hundreds of test questions. The text is amply illustrated with screenshots, bullet points and numbered steps, and each lesson concludes with a lesson summary and lesson review. Answers to the lesson review questions are at the back of the book, and explanations also are provided for why the incorrect answers are wrong.

The book’s introduction covers such topics as system requirements, practice setup instructions, errata and book support links, and how to prepare for the exam.

The book’s 12 chapters focus on the following topics:

  1. Planning and Installing SQL Server 2012
  2. Configuring and Managing SQL Server Instances
  3. Configuring SQL Server 2012 Components
  4. Migrating, Importing, and Exporting
  5. SQL Server Logins, Roles, and Users
  6. Securing SQL Server 2012
  7. Mirroring and Replication
  8. Clustering and AlwaysOn
  9. Troubleshooting SQL Server 2012
  10. Indexes and Concurrency
  11. SQL Server Agent, Backup, and Restore
  12. Code Case Studies

The authors caution that you should consider this study guide just “one part of your exam preparation plan. You require meaningful, real-world experience with SQL Server 2012 to pass this exam.”

They also recommend using Hyper-V, a feature of Windows Server 2008, Windows Server 2008 R2, Widows Server 2012, and certain editions of Windows 8, “[t]o minimize the time and expense of configuring physical computers for this training kit. You can use other virtualization software instead, but the instructions are written assuming that you are using a solution that supports 64-bit operating systems hosted as virtual machines.”

Si Dunn

Microsoft SQL Server 2012 Pocket Consultant – Just add LARGE pocket – #bookreview #sxswi #in

In Book reviews, Kindle, Microsoft, Paperback, Programmer, Programming, Server, Software, SQL, System administration, Technology, Uncategorized on March 10, 2012 at 1:41 pm

Microsoft© SQL Server© 2012 Pocket Consultant
By William P. Stanek
(Microsoft Press,
paperback, list price $39.99; Kindle edition, list price $31.99)

Yes, you will need a big pocket to carry around this 558-page “practical, portable guide.”

It’s intended for: (1) SQL Server administrators; (2) those making the transition to administrator status; and (3) anyone with SQL Server responsibility in a company that is upgrading from older versions to the newest, Microsoft SQL Server 2012.

If your pockets aren’t big enough to do the job, put it in a bag, stick it on a shelf near your workstation, or store it in digital format so you can read it on your mobile device. In other words, get it – whether you are experienced with SQL Server 2012 or still in the process of learning it.

The book is well-written and well-structured. And it is reasonably well-illustrated with screenshots, code samples, tables, notes, tips, lists and step-by-step instructions. It also has been given some good editing: At the time of this review, the book’s errata page showed no confirmed issues.

The author, William R. Stanek, is the series editor for Microsoft’s “Pocket Consultant” books. He has written more than 100 books, and he has more than 20 years’ experience in advanced programming and systems management.

His latest “Pocket Consultant” work is structured into four parts with a total of 12 chapters and a nicely detailed, 23-page index.

Part 1 is titled “Microsoft SQL Server 2012 Essentials.” The chapters are:

  • Chapter 1, Managing Your SQL Servers
  • Chapter 2, Managing SQL Server Services and Clients

Part 2 is “Microsoft SQL Server 2012 Management and Security.” Its chapters are:

  • Chapter 3, Implementing Policy-Based Management
  • Chapter 4, Configuring and Tuning Your SQL Servers
  • Chapter 5, Tuning and Linking Your SQL Servers
  • Chapter 6, Database Administration Essentials
  • Chapter 7, Implementing SQL Server 2012 Security

Part 3 is titled “Microsoft SQL Server 2012 Data Management.” The chapters are:

  • Chapter 8, Manipulating Schemas, Tables, and Views
  • Chapter 9, Using Indexes, Constraints, and Partitions

Part 4 is “Microsoft SQL Server 2012 Optimization, Maintenance, and Recovery.” The chapters are:

  • Chapter 10, Automating and Maintaining SQL Server 2012
  • Chapter 11, SQL Server 2012 Backup and Recovery
  • Chapter 12, SQ: Server 2012 Profiling and Monitoring

The author assumes that you are “fairly familiar with SQL commands and stored procedures as well as the Windows user interface.” He urges that if you are new to SQL and Microsoft SQL Server 2012, pick up a few other books, too. There is, he notes, “simply no way that one book can do it all.”

#

Si Dunn is a novelist, screenwriter, freelance book reviewer, and former software technical writer and software/hardware QA test specialist. His latest book is Dark Signals, a Vietnam War memoir available soon in paperback. He also is the author of a detective novel, Erwin’s Law, a novella, Jump, and several other books and short stories.

Follow

Get every new post delivered to your Inbox.

Join 1,338 other followers