Deprecating buggy npm packages, dealing with deprecations

It seems several critical npm packages deprecated older releases. Installing the old version of some packages causes npm to print a warning saying the package was deprecated, and to use a newer version of the package. Sometimes the message suggests a way to figure out where the package is being required. Due to the way an npm package can pull in other npm packages, it can be tricky to figure out where the deprecated package version is being used.

Example:

Setting up LibreOffice to access MySQL database with JDBC driver

I wanted to try using LibreOffice Base on Mac OS X to play with a MySQL database. I thought it would be easy, just connect to the database and start doing queries, maybe even pull data into a LibreOffice spreadsheet for advanced data munging. But doing the obvious thing got me messages like "No Java Installation found" and "the driver class com.mysql.jdbc.Driver could not be found". Further, yahoogling with some obvious search phrases turned up nothing.

Upgrading or replacing battery pack, SSD and other parts on Acer C720 Chromebook's

I have owned an Acer C720 Chromebook for a couple years now and in many ways it's the best computer I've ever owned. It's small and light and is easy to carry around anywhere. The keyboard and trackpad are excellent. The screen field-of-view leaves something to be desired, but when viewed head-on the screen looks good and the sound quality is acceptible. I do a lot of writing and software development and web browsing and image editing and related work, and have solutions to do everything (including software development) on the Chromebook.

Examiner.com writers can save their work using this screen-scraper script written for the purpose

I've been writing for Examiner.com for over 7 years, and with the news that they're going to shut down I needed to retrieve over 540 articles to repost them on my own website. Lesson learned - it's better to own your own platform than to write for someone elses platform. Anyway, the result is a Node.js script I'm calling articlescraper. The purpose is to traverse an index page that might be split over multiple pages, then extract the articles from the pages linked from the index.

The demise of examiner.com, what's it mean for citizen journalism?

examiner-logo-blue.jpgIt wasn't that long ago that online news sites began killing off the traditional news services. Many newspapers and magazines have either shut down (costing many cities a vitally necessary check on local government), or else shrank, or else transitioned to an online service. A generation of writers and journalists are under turmoil in a time period where we desperately need a check on the powerful elite.

Fixing 'Enter passphrase for /dev/fd/63' in a Gitlab CI job

gitlab-stacked_wm_no_bg.pngIf you're a Gitlab user you're probably hoping to use Gitlab CI to automate builds and deployments. You probably want to deploy something using rsync, using an SSH key for security. Unfortunately (in my opinion) the official Gitlab documentation is confusing.

Is Node.js / Express scalable? How to grow Node.js app deployment to handle more traffic?

nodejs-dark.pngSince Node.js is billed as being very fast, high performance, application development platform, you might think it automatically "scales" to fill out server resources and satisfy a huge workload. While you can do this with a Node.js application, you have to design the scaling mechanism yourself. With no additional configuration, a Node.js application can saturate a single CPU core and handle as many transactions as that core can sustain.

How does Node.js compare to a traditional MVC platform like Spring?

nodejs-dark.pngNode.js is a young software development platform. It's only about 6 years old, and many software developers are still unsure about where Node.js fits into the landscape. It's JavaScript, which many people pigeon-hole as a browser language, but Node.js doesn't run on browsers but on servers. The question above illustrates a fundamental confusion about what Node.js is, and its role in the world, because it is not an "MVC" but a complete programming platform.

The simple cure if a Wordpress custom content type doesn't display, but gives a 404 page not found

wordpress-logo-stacked-rgb.pngSometimes custom content types stop displaying, on a Wordpress site. In my case, my server had been hacked and everything wiped, so much so that I didn't have a proper database backup but instead raw MySQL data files from which to restore the site.

How to restore a MySQL database and tables from .frm .ibd or .myd raw database files

powered-by-mysql-167x86.pngConsider a situation - you've got a well tuned MySQL database server running some popular websites. The sites are implemented with Drupal and Wordpress, but using MySQL to store the content and settings. You think everything is fine, until one day you look at Google Analytics and are aghast to see zero traffic for the previous two days. You go to the websites and are greeted by a 404 error, with the server saying there's nothing there.

Pages

Subscribe to Front page feed