Rebuilding the blog

Well, I can't help myself. I have to try something new and am giving up on Wordpress. Instead, I am going to use a static web creator. There is nothing wrong with Wordpress. I just see so many more benefits of static web sites. Only issue is that I do need to move my content over. Plus editing is currently in a Virtual Box

Benefits are:

  • No Mysql backend
  • No PHP
  • HTML is much more Secure
  • One less application layer to worry about.
  • I may be able to host on S3
  • No more tweaks to make it fast.
  • I don't have to use a free or paid WP hosting plan.
  • As with any site that is self-hosted, you own all rights to the content. None of this "Right to use your content royalty free in perpetuity"

Of the Static generators, I have tried Pelican, and now Jekyel. Pelican appealed to my python programmer side of me. However, whatever is simple and one will do, is always the best.

Still need to do updates, however, my chores and MBA studies are getting the way. I have to leave the blog with things to do. Also, I have my business site to redo, and my college website to do. I probably will be using nanoc for my business site.


This semester has been an education in plagiarism. As a student, it is important to be aware of how plagiarism is defined. It is one pothole that is easy to fall into even if you are trying your best to avoid it. The old saw that you cannot be called on for plagiarism if you sight your material is not correct. The rule that I was told was that if your work contained more than 30% material that was similar, wither it was cited or not, is considered plagiarized.  Two or more sentences was  major plagiarism. A big shock to me was recycling your own work with citing is considered plagiarism.
My advice, as a student: subscribe to a plagiarism checker.  This post is considered 5% unoriginal by mechanical means.

Zabbix mysql tunning

Over the past six months, I have search search to find how to make my Zabbix installation work well. As it was, nobody wanted to use it because it was too slow. I was about to move to postgres which was something I did not want to do.

Of all the changes made, these two seemed to work the best:

  • Innodb_buffer_pool_size = 512MB</li>
  • Innodb_log_file_size = 256MB</li>
    For Innodb_log_file_size I am using  1G as the value.

    A good read:

Geek Poetry

A friend sent this to me. A fun bit of poetry:



Tiger, Tiger burning bright
Like a geek who works all night
What new-fangled bit or byte
Could ease the hacker's weary plight?

To the most despised collections' cast
We'll bid a fond farewell at last
With generics' burning spear
The need for cast will disappear

While Iterators have their uses
They sometimes strangle us like nooses
With enhanced-for's deadly ray
Iterator's kept at bay

When from the collections ints are drawn
Wrapper classes make us mourn
When Tiger comes, we'll shed no tears
We'll autobox them in the ears

The int-enum will soon be gone
Like a foe we've known too long.
With type safe-enum's mighty power
Our foe will bother us no more

And from the constant interface
We shall inherit no disgrace
With static import at our side
Our joy will be unqualified

As for noble metadata
I'll have to sing its praises later
Its uses are so numerous
To give their due, I'd miss the bus

O joyless nights, o joyless days
Our programs cluttered with arrays
With varargs here, we needn't whine;
We'll simply put the args inline

Tiger, Tiger burning bright
Like a geek who works all night
What new-fangled bit or byte
Could ease the hacker's weary plight?

Moodle SQL for users online

This works for Postgresql:

select count(*) from mdl_user where
mdl_user.lastaccess > (date_part('epoch'::text, now())::bigint - 300);


select firstname,lastname  from mdl_user where
mdl_user.lastaccess > (date_part('epoch'::text, now())::bigint - 300)
order by 2,1;

Moodle SQL

Handy queries for Moodle.

Count number of users who are are in courses:

select count(distinct ra.userid) from mdl_role_assignments ra,mdl_context c
where and c.contextlevel=50

Show users who are users in Moodle, but not  in a class:

select * from mdl_user where not exists (select * from mdl_user_lastaccess where =;

Number of users who have classes:

select count(distinct ra.userid) from mdl_role_assignments ra,mdl_context c
where and c.contextlevel=50</div>

Jesusita Fire

Some vids I took from SBCC. The fire is close by. In the morning, I hope my friends still have their homes.