LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

My Python CMS now supports SQLite

Posted 01-11-2014 at 11:33 PM by Pyplate
Updated 01-11-2014 at 11:35 PM by Pyplate
Tags cms, python, sqlite

I've taken a break from working on my Raspberry Pi site because I've been spending time developing the Python CMS that I wrote to power the site. Meta data about each post is now stored in an SQLite database. The content is still stored in files separate from the database.

I've also extended the backend to include a UI a little bit like Wordpress. It's now possible to upload themes and switch to them in the admin area. The admin area now has pages for managing the cache, adding...
LQ Newbie
Posted in Uncategorized
Views 465 Comments 0 Pyplate is offline
Old

Raspberry Pi temperature logger written in Python

Posted 09-24-2013 at 04:45 PM by Pyplate

I wrote a Python script to read temperatures from a DS18B20 and log the temperatures in an SQLite database. I used Google charts to display data from the database in a chart on a web page. You can see how I set this up here: http://raspberrywebserver.com/cgiscr...rature-logger/
LQ Newbie
Posted in Uncategorized
Views 723 Comments 0 Pyplate is offline
Old

Working on a login system for my CMS

Posted 06-18-2013 at 02:07 PM by Pyplate
Updated 06-18-2013 at 02:08 PM by Pyplate (Fixed a typo)
Tags cms, cookies, python

I got the load balancer working pretty easily. The changes to apache2.conf are pretty straight forwards.

I'll do a detailed write up on that at some point, but in the mean time, here are two sites that have useful information on load balancing:
https://blogs.oracle.com/oswald/entr...balancing_with
http://www.rackspace.com/knowledge_c...comment-242370

I haven't put the load balancer in place yet because I'm not getting enough...
LQ Newbie
Posted in Uncategorized
Views 532 Comments 0 Pyplate is offline
Old

CIDR to Netmask conversion with Python (convert short netmask to long, dotted format)

Posted 09-03-2010 at 05:43 AM by bittner (Notes on Linux)
Updated 09-03-2010 at 10:20 AM by bittner

When you write scripts dealing with setting up or analyzing network interfaces you will eventually run into the task of converting a netmask from one format into another.

Typically, the setup of an ethernet TCP/IP network interface consists of an IP address, a netmask, and a broadcast address. Unfortunately for you as a novice, the two tools ifconfig and ip show the same (or similar) information in a different format.

Quote:
$ /sbin/ifconfig
eth0 Link
...
LQ Newbie
Posted in Uncategorized
Views 5918 Comments 0 bittner is offline

  



All times are GMT -5. The time now is 01:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration