Author Archives: JT

WordPress Woes – The Difference Between Preview and Publish

When I’m not working on my Rails app (which is most of the time now), one of the things I do is help out with technical stuff for my wife’s business.  (She makes handmade cards focused on pastoral care.  It’s really neat.  Check it out at Weavino Cards.)


I set her up with WooCommerce and she started putting up card designs.  Like most card folks, she wanted to show the design then give people an option to buy multiple cards at a varying per-card price.  WooCommerce has a built-in way to do this using their variable product feature.  It’s really quite simple.  You can set up attributes on a per-product or global basis, tie those attributes to the “variable product” type, assign different prices to each product, and you’re done.

Except it didn’t work.

She got a global “quantity” attribute set up, created a product and pricing using that attribute, saved a draft, and clicked Preview.  What came up was a box with “Select Option” where the quantity selection was supposed to go, but no actual quantities.  After some frustration with it, she asked me to help.

Google searches suggested all sorts of helpful things.  Maybe the variations didn’t have a price (they did).  Maybe they were out of stock (they weren’t).  Maybe a custom filter needed to be added to make it work.  I tried that, set up a per-product attribute, and success!  However, global attributes still didn’t work.

Now I’m frustrated (and slightly cursing WooCommerce and WordPress).  Into Firebug I go.  I don’t know Javascript that well, so it’s a pretty entertaining thing.  Let’s just say I spend enough time to respect the code they wrote but not enough time to understand it.

One last Google search.  Someone mentions that publishing the product will show the global attribute.  No…  it couldn’t be…  but it is.  Publish the product, and there are all the options.



How I’m starting – Heroku and Rails tutorials

Like I mentioned before, I have very little web programming experience.  I wrote a little bit of HTML back in the 90′s for class projects of “build a personal webpage”.  A couple of years ago I started a project that used a bit of JavaScript and very, very poorly done CSS.  But most of my coding these days is done in System Verilog, a bit of Perl, and the occasional Ruby script.

Oh, and I know nothing about setting up and administering a web server.

Learning Rails

I’ve heard that Rails is still pretty popular for web stuff, and I’m at least familiar with looking at Ruby code, so I decided to go with that.  First step, find some tutorials to help me understand how to use the language and start to put together an architecture for my application.  The tutorials are pretty easy to find, and I’m sure there are a ton out there, but here’s where I’m starting:

- Rails Girls Guides is a program intended to “give tools and a community for women to understand technology and to build their ideas.”  While I’m obviously not their target market, I found their tutorials to be pretty helpful, and their reference app gives a good start into understanding Rails.

- RailsGuides has a lot more detail than Rails Girls Guides, and the reference apps have a lot more detail.  I haven’t worked through all of their stuff yet, but it seems to be a solid introduction into MVC (Model – Controller – View) design.

Publishing on the Web

Most of the initial work I’m doing will be on my laptop.  Eventually, I’ll want to move it to the web where others can see it.  I’ll need a server for that.  Enter Heroku.

Heroku is a Platform as a Service company that provides application hosting across a variety of languages.  They manage everything, and I just get to use it!  The obvious benefit to me is that I don’t have to figure out how to set up and administer a stable hosting platform.  It’s super easy to move my application code from my laptop to their servers.  Basically just a Git command (Git is a system to manage source code changes.  While I don’t know it specifically, I’m familiar with revision control so it won’t be difficult to pick up.) It’s also free for very small applications, like mine is likely to be for a while.  On the negative side, the cost goes up pretty quickly as you scale, and you give up a lot of control.  In the end, it lets me focus on all the other things I need to learn, so I’ll take it.

Anything you want to know?  Leave a comment below.  I’ll reply to all of them!


I’m building a web app!

I frequently wonder what it would be like to start a business, but I never had an idea of what I would do.

Now I have that idea.

My wife recently decided to open an Etsy shop for handmade greeting cards.  She’s been making them for years and has gotten very encouraging feedback about them.  She’s at a point in her life where she has some time available, so she decided to see whether she could make a business selling her cards.  It’s exciting to watch.

I have the aesthetic ability of a fallen tree limb, so I won’t be much help there.  I am working on a website for her (Etsy is expensive), and hope to convince her to let me use her customers as a marketing lab.  Thinking about her business and running into a very old post on Hacker News, I realized there was something else I could do, and that it could be helpful for others as well.

Once her business gets an order, she’ll need to an invoice (WooCommerce will probably do this for her), a packing list, and a shipping label.  All of this could be done on paper or with Word/GoogleDocs/whatever, but it’s basically the same information on each document.  So I’m going to create a web app to do basically that.

I hope.

It’ll certainly be some work.  Most of my programming is done in SystemVerilog, which is about as far away from web programming as you can get.

Anyway, my plan is to document as much as I can about both the technical and business sides of this project here.  Leave a comment if there’s anything you’re particularly interested in hearing about.


This week in running (09-08-2013)

I’m getting into some of my longest mileage weeks since my target race is about seven weeks out.  The plan I’m following calls for three 20-mile long runs, and this week was my first one.

There’s always a tension when I get to this part of my training cycle.  On one hand, I want to be sure I’m well rested for my weekly long run.  On the other, I still want to make some progress on speed.  Since I was still a little tired from my half marathon trial a couple weeks ago, I kept most of my paces on the slow side and focused on mileage.

It’s still very hot and humid in Austin, which I’m sure is affecting my pace.  It also means I start my long runs early to avoid the sun beating down on me as much as I can.

Next week is a down week, and I’ll take 12 miles out of my schedule.  I’m looking forward to it!


Stats for this week:

Total mileage – 53.6 miles

Avg. pace – 9:38

Longest run – 20 mi.

Weeks until marathon – 7