LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Bash arrays as Python lists (sort of)

Posted 08-08-2015 at 12:38 PM by HMW
Updated 08-08-2015 at 12:44 PM by HMW

If you have some experience with higher level programming languages (such as Python for instance), you have undoubtedly came across lists and arrays.

There are arrays in Bash too, but there is a pitfall when you delete items from an array in Bash; the index disappears with the item!

First, consider this example with a list in Python:
Code:
>>> myList = ['foo', 'bar', 'baz']
>>> myList
['foo', 'bar', 'baz']
>>> del myList[0]
...
HMW
Member
Posted in Uncategorized
Views 195 Comments 0 HMW is offline
Old

DB Cluster Utils - a Python script for managing a MySQL cluster

Posted 10-28-2014 at 05:26 AM by Pyplate

I've been working on some code to manage a cluster of MySQL servers. I'm calling it DB Cluster Utils, and you can take a look at it in Github: https://github.com/Pyplate/db-cluster-utils. I've written documentation for it which you can see at http://banoffeepiserver.com/mysql/py...ement-utility/.

It's pretty basic at the moment, but it does everything I need. I can start and stop replication, demote the master server and promote a slave, and a few other...
LQ Newbie
Posted in Uncategorized
Views 672 Comments 0 Pyplate is offline
Old

Pyplate now uses WSGI instead of CGI

Posted 07-10-2014 at 02:09 AM by Pyplate

I've updated Pyplate again. This time the UI hasn't changed much, but I've done a lot of work under the hood. I've added a bunch of fixes which should make Pyplate much more secure.

I've also switched moved away from CGI amd updated Pyplate to use WSGI. This has made a huge difference to the page load time of dynamic pages. Performance with static pages hasn't really changed.

There's now a simple web server supplied with Pyplate. It's a little slower than Nginx...
LQ Newbie
Posted in Uncategorized
Views 741 Comments 0 Pyplate is offline
Old

New beta version of Pyplate CMS

Posted 05-17-2014 at 02:08 PM by Pyplate

I've made a lot of improvements to Pyplate. New posts can now be saved to a drafts folder before they are published, and they can also be previewed while in the draft area.

I've added a page to the UI where you can export and import the database to XML files. This makes it easier to display the database in a human readable form. You can edit the XML files and re-import them to make changes to the database.

Pyplate now uses a comment template and a sharing template...
LQ Newbie
Posted in Uncategorized
Views 837 Comments 0 Pyplate is offline
Old

Pyplate CMS now works with Nginx

Posted 04-04-2014 at 12:56 PM by Pyplate

Pyplate.com has been on line for almost a week now, and I've had a good response. Several people have used the beta version of Pyplate to build simple web sites. One or two installation issues have come up, so I've updated the installation script.

I've also written a new installation script for anyone who wants to use Pyplate with Nginx. See www.pyplate.com/install-pyplate for more information. I've only published this today, so I'm still looking for beta testers.
...
LQ Newbie
Posted in Uncategorized
Views 920 Comments 0 Pyplate is offline

  



All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration