RSS Feed for linux linux

#DBHangops for 5/15/13 — Filesystems, monitoring, settings, Oh my!

  • May 13, 2013 12:36

Here’s the recording!

Heyo!

Now that we’ve gone through the Percona Live MySQL Conference and Expo review and had an amazing turnout to talk about it, it’s time to open up the discussion around things that DBAs want to talk about and need to be conscientious of. Join us on Wednesday at 12:00pm PDT (19:00 GMT) to take part in the discussion and share your knowledge and experience with the following topics:

  • Filesystems and MySQL — Which do you use and why?
    • Do you handle I/O alignment? How do you do it?
    • Scheduler changes?
  • Nagios checks! — Any new checks you’ve added recently?
  • The worst settings in MySQL that you always change
  • What are the most important variables to you, and what do you set them to?
  • What will be important variables in 5.6 that you should set?

Be sure to check out the #DBHangops twitter search, the DBHangops Twitter Feed, or this blog post get a link for the google hangout tomorrow!

Looking forward to seeing you all there!

2013 MySQL Conference and Expo — a #DBHangOps Review

  • April 30, 2013 23:12

Hey everybody!

The Percona Live MySQL Conference and Expo just wrapped up last week and we’re looking to get some conference in review talk from everyone! Talk about your favorite sessions, new things you learned, and your overall opinion of the conference!

Hop online Wednesday at 12:00pm PDT (19:00 GMT) to join the discussion and share your experience from the 2013 Percona Live: MySQL Conference and Expo.

Be sure to watch this twitter search or this blog post get a link for the google hangout tomorrow!

Some talks that were specifically called out:

#DBHangOps 3/27/13!

  • March 25, 2013 20:17

Hi everyone!

Here’s a video of this week’s #DBHangOps:

March 27th at 12:00pm PDT (19:00 GMT) is when the next #DBHangOps is gonna go down. Check out the twitter search and hop on the google hangout to contribute some discussion! This week’s topics are:

Catch all of ya on the google hangout! :)

#DBHangOps 02/27/13 <3

  • February 26, 2013 19:35

EDIT: Video from today’s #DBHangOps!

Hey there peeps!

February 27th at 12:00pm PST it is! Check back here for more info and keep a watchful eye on the twitter search (and feel free to join the conversation!). The topics we’re looking to cover this week are:

Looking forward to seeing all of you DBAs on the google hangout! :)

Got a fun #DBHangOps planned for this week, Wednesday 02/13/12 at 12:00pm PST. Be sure to hit up this blog post tomorrow or check this twitter search to grab the link to join the Google Hangout.
Looking to bump this to either February 20th or February 27th.

#DBHangOps on 1/30/13 \o/

  • January 29, 2013 12:52

UPDATE: Here’s the recording, enjoy!

Hello everybody!

#DBHangOps coming at you this week, Wednesday 1/30/12 at 12:00pm PST. Be sure to check out this blog post tomorrow or check this twitter search to grab the link to join the Google Hangout.

This week’s topics were:
* bug fixes in recent versions
* Plugins
** authorization plugins (e.g. LDAP)
** audit plugin API — http://dev.mysql.com/doc/refman/5.5/en/writing-audit-plugins.html
*** state transitions of records in MySQL with a plugin?
* InnoDB Status variables from twitter — https://github.com/twitter/mysql/wiki/InnoDB-Status-Variables
* Table alters/schema changes
** Twitter patch for non-blocking alter table (throws a different error than “lock_wait_timeout”) — https://github.com/twitter/mysql/wiki/Change-History#wiki-5.5.28.t8
** Schemanator from Etsy — http://codeascraft.etsy.com/2013/01/11/schemanator-love-child-of-deployinator-and-schema-changes/
** Online Table Alter in Oracle MySQL 5.6 — https://blogs.oracle.com/mysqlinnodb/entry/innodb_full_text_search_performance
** Twitter MySQL management tools — https://github.com/jeremycole/mysql_management_tools
* Troubleshooting queries book link — http://www.amazon.com/MySQL-Troubleshooting-What-When-Queries/dp/1449312004/ref=sr_1_1?ie=UTF8&qid=1359579540&sr=8-1&keywords=mysql+sveta+troubleshooting

#DBHangOps on 01/16/13!

  • January 15, 2013 16:36

Update: Recording!

Finally, the end of year madness is over and we’re in a fresh new year. That must mean it’s time to get back into #DBHangops! Tune in on Wednesday, 1/16/13 at 5:00pm PST to get in on the fun and share your experiences.

Check back on this blog post tomorrow or check this twitter search to grab the link to join the Google Hangout.

Topics for this weeks hangout include:
* triggers: maintenance, problems, etc.
* Oracle MySQL utilities (similar to Percona toolkit)
** Slideshow of MySQL utilities
* Database caching and cache expiration
* InnoDB log file size
** http://www.mysqlperformanceblog.com/2011/04/04/innodb-flushing-theory-and-solutions/
** http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/
** http://www.mysqlperformanceblog.com/2011/09/18/disaster-mysql-5-5-flushing/
* one-liners
* Geoff’s shameful plug about a MySQL client patch he wrote! — https://gist.github.com/4508084

#DBHangOps 11/28/12

  • November 28, 2012 13:52

Now that the thanksgiving holiday is over, it seems like the perfect time to have another #DBHangOps. If you’re interested, check this twitter search or check back on my blog here for a link to the google hangout.

Items currently on our agenda for today:
* Data corruption!
* Monitoring — what do you monitor, why, etc.
* Query killing — do you kill queries in production regularly, or in emergencies?
* Fun or useful configurations

Looking forward to chatting about MySQL stuff today!
Fun time hitting these topics this week. Check out the recording:

#DBHangOps

  • November 7, 2012 21:29

Woooo, just wrapped up another night of #DBHangOps, check out the video:

For those of you who aren’t familiar with this awesome series of videos, it’s a bi-weekly meeting of MySQL DBAs via a Google Hangout to simply talk about databases (specifically MySQL). The discussions range anywhere from silly stories to awesome learnings and even little gotchas to know about when working with MySQL operationally. If you’re interested in catching when the next #DBHangops will happen, check MySQL planet for a blog post about it, or check this twitter search.

We look forward to talking with you!

Deploy image files to Amazon Web Services

  • June 2, 2011 12:08

Just pushed a copy of the script I’ve been working on for a couple weeks to github. The goal of the script is to push an image file containing an operating system to Amazon’s Web Services Elastic Compute Cloud so you can run the image through Amazon’s service. A lot of the development of this was based around existing documentation and blogs written by many other posters, so I finally synthesized all this information into a “simple” BASH shell script that automates the process. Take a look at it at the following link!

https://github.com/geoffreyanderson/linuxImage2AWS-EBS

I’ll be sure to beef this entry up a little more about what information I referenced to develop the script and probably more on its use!

XSL to extract DOCX comments into plain text

  • April 25, 2011 19:29

So..this was an impromptu project I slapped together in about 20 minutes to extract comments out of a DOCX file. I ended up doing this because I stored answers to lab questions as comments in a DOCX and one of the graders I work with needed the comments in plain text….so I recalled the XSL for converting DOCX to LaTeX from my last post and wrote up a new stylesheet to extract comments. Hereeee it is!

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" version="1.0"
    xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    <xd:doc scope="stylesheet">
        <xd:desc>
            <xd:p><xd:b>Created on:</xd:b> Apr 25, 2011</xd:p>
            <xd:p><xd:b>Author:</xd:b> Geoffrey Anderson</xd:p>
            <xd:p><xd:b>E-mail:</xd:b> geoff@geoffreyanderson.net</xd:p>
            <xd:p><xd:b>Website:</xd:b> http://geoffreyanderson.net</xd:p>
        </xd:desc>
    </xd:doc>

    <xsl:variable name="newline">
        <xsl:text>
        </xsl:text>
    </xsl:variable>
    <xsl:template match="/">
        <xsl:for-each select="/w:comments/w:comment">
################
# Comment #<xsl:number value="position()" format="1"/> #
################
<xsl:for-each select="w:p">
<xsl:value-of select="$newline" />
<xsl:for-each select="w:r">
<xsl:value-of select="w:t"/>
</xsl:for-each>
</xsl:for-each>

----

</xsl:for-each>
    </xsl:template>
</xsl:stylesheet>


The bad indenting is intentional so that you get output without weird tabbing/formatting. To use this (under Ubuntu, at least) simply unzip the DOCX file:

$ unzip someWordDoc.docx -d someWordDocDir/


And run the above XSL against the comments.xml file under the “word” directory:

$ xsltproc convertDocxCommentsToPlainText.xsl someWordDocDir/word/comments.xml


By doing this, you’ll get output similar to the following:

################
# Comment #1   #
################

        text of the first comment

----

################
# Comment #2   #
################

        text of the second comment

----


Cheers!