Categories
Programming

PHP library for database version control

DBV is a library for PHP that helps manage changes to your database. Various open source projects do this in different ways. You can go the simple route of manually keeping a series of SQL files that must be executed in order. One big downside is needing to remember the conventions and following them. Plus, you must keep track of which patches have been applied.

You can automate updates and tie them to release numbers. This is how Expression Engine does it. You just need to manage your release numbers.

Another way to do it is to write a PHP script that detects the database state and executes ALTER statements as necessary. I made a solution like that from scratch before.

It looks like DBV is more sophisticated than any of these solutions.

dbv.php: Database version control, made easy!

Make sure you and your team always have the same schema structure for tables, views, procedures, etc.

Create changeset scripts and queries, commit them to your source control system, and share them with your team.

New changeset scripts are highlighted, so you know your database is in need of an update.

Something wrong with a changeset script? Fix it directly in the application interface.

Not using MySQL, or any other of the bundled DBMS adapters? Writing your own is as easy as pie!

Categories
Entertainment

Chevy Chase gone from Community

The writing has been great on this show, but it’s probably run its course.

Chevy Chase is off Community, effective immediately

While reports say that the decision was mutual, Chevy Chase has made a deal with NBC to leave Community and never come back. Chase had filmed the majority of the fourth season’s episodes, but there is no word yet on how the absence of his character, Pierce Hawthorne, will be addressed. Everyone who enjoyed his voicemails and borderline racist behavior will miss him dearly. (via Deadline)

Categories
News

Big piracy clampdown coming

Sounds like a backdoor version of SOPA. So, can we expect a retaliation from Anonymous?

One week left before US faces clamp down on piracy • The Register

As Americans settle in for the Thanksgiving weekend of food and family, filesharing traffic traditionally shows a modest rise. But those downloading content may look back on this holiday as the last golden weekend of piracy if the major ISPs have anything to do with it.

Next week AT&T, Cablevision, Comcast, Time Warner Cable and Verizon will be signing up to a monitoring system run by the Center for Copyright Information (CCI). This organization will check for the IP addresses engaged in peer to peer or torrent downloading of copyrighted material and alert ISPs.

Categories
Psychology

Success is perseverance

It seems like the will to persevere relies on confidence. I remember reading Derren Brown arguing that confidence is indistinguishable from pretending to be confident. And so, could success be even simpler: just pretend like you’ll figure it out eventually.

Is the secret to success as simple as just not giving up?

We all know intelligence is important, creativity is important… but how much do these types of natural talent control really what you can achieve in life?

In ~95% of cases, they don’t.

Categories
News

Archos GamePad is an interesting form factor

This is an interesting form factor showing up for Android devices. It’s essentially a clone of a PSP with a touch screen. It must appeal to people wanting to run emulators because the choice of games for Android is sparse.

Latest ARCHOS tablets availability: ARCHOS 80XS, GamePad, Arnova Familypad and 7h G3 | ARCTABLET NEWS

Latest products releases with the ARCHOS GamePad, ARCHOS 80 XS (Gen10), Arnova 7h G3 and Arnova FamilyPad haven’t yet appeared in stores. Some offers for these tablets are showing as pre-orders, let’s hope they’ll hit the shelves before Christmas.