December 2016

Weekly review: Week ending November 25, 2016

December 1, 2016 - Categories: review, weekly

We had our family portrait in the same place we had a family portrait in 2013. This time, John V. was able to join us, so everyone was here. We also took advantage of everyone’s presence to have a family meeting, since there are quite a few decisions to make and things to do. I’ve volunteered to take on some of the paperwork and maintenance, since it’ll be easier for me than for my sisters. Time to learn about Philippine taxes!

The UP Singing Ambassadors graced us with Christmas carols, love songs, and a few songs for the kids at the party in Adphoto. Some of my godparents and my barkada made it to the party, too, so I caught up with them there. A- slept through most of the party, and W- took care of her.

Lots of cooking! My mom set me up with access to a local account, so we’ve been picking up groceries and making dinners. Best way to spend a vacation, I think. We’ve been doing a combination of our favourite meals and new recipes we want to explore. W- made couscous chicken and stuffed pork tenderloin, while I made a lasagna with bechamel sauce. Kathy normally cooks, so we’re glad to let her and the family have a bit more breathing room. Home-cooked meals are the best for times like these.

W- and I swapped our demonetized Philippine pesos for new currency, so that’s sorted out. My mom’s been helping me with the paperwork for getting government-issued IDs, too. Started working on Canada visa paperwork for my parents. There’s an online process now, so that’s more convenient than sending all the documents by mail. Yay!

A- has gotten quite comfortable with my family. When she’s in a good mood, she lets her Lolo or Tito John G. carry her, and she’s waved and smiled at my mom too. She often pulls herself up to standing, although she’s still quite wobbly, so we make sure to stay near. She also likes wiping the counter with a washcloth, which we enthusiastically encourage. She was a little jetlagged. In the beginning, she woke up at 4 AM or so. She seems to have adapted now, getting up at around 7:30 or 8. This is earlier than she used to wake up in Toronto, but she goes to bed earlier too, so it all works out.

Life is good.

2016-12-01a-week-ending-2016-11-25-journal-weekly output

Blog posts

Sketches

Focus areas and time review

  • Business (0.0h – 0%)
  • Relationships (12.4h – 7%)
  • Discretionary – Productive (0.7h – 0%)
    • Drawing (0.0h)
    • Emacs (0.4h)
    • Coding (0.0h)
      • ☑ Renew domains
    • Sewing (0.0h)
    • Writing (0.2h)
    • ☑ Exchange demonetized cash
    • ☑ Sort through clothes
    • ☑ Sort out bank accounts
  • Discretionary – Play (0.5h – 0%)
  • Personal routines (13.9h – 8%)
  • Unpaid work (81.9h – 48%)
    • Childcare (78.5h – 46% of total)
  • Sleep (58.6h – 34% – average of 8.4 per day)

2016-12-05 Emacs News

December 7, 2016 - Categories: emacs-news

Links from reddit.com/r/emacs, /r/orgmode, /r/spacemacs, Hacker News, planet.emacsen.org, Youtube, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

2016-12-12 Emacs News

December 14, 2016 - Categories: emacs-news

Links from reddit.com/r/emacs, /r/orgmode, /r/spacemacs, Hacker News, planet.emacsen.org, Youtube, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

Weekly review: Week ending December 2, 2016

December 15, 2016 - Categories: review, weekly

The pool party with the Valdezcos was a busy one despite a morning that started out gray and drizzly. The kids were in the pool as soon as the sun came out. W- and I were in the kitchen making Momofuku-style pork buns, which turned out to be so yummy. He also made Vietnamese bun with calamansi at some point during the week, and that was delicious too.

A- spent a lot of time with us in the kitchen. She also got comfortable with being held by Papa and John G., both of whom quickly figured out how to bounce her for her maximum amusement. Yay! Mission accomplished: A- comfy with people who are not us. We also discovered that A- likes green mango. Whee! She’s also been learning how to put things back into containers, which is a totally awesome development.

I enjoyed playing with G* and A*. They were fascinated by A- and graciously shared their toys with her, needing just the occasional prompt to be gentle with A- or to keep small things away from her. They’re both quite verbal, and I was relieved to find out that I could keep up a running commentary with on-demand word definitions and explanations. I had been worried that our generally quiet nature might affect A-‘s exposure to words, but we’ll probably be okay.

The kids opened their gifts early so that Ching and John V. could be part of it before they flew back to California. It was nice being all together for a week, and we hope to coordinate vacations with them in the future.

We had lunch with a few of my godparents: a beautiful spread of cold cuts, cheese, bread, and a few nicely cooked steaks. They cooed over the kids, commiserated over various health issues, and discussed politics at length. W- and I swapped off every so often, since A- was sleepy. Then we headed back home with the kids while everyone else took care of other errands.

I started working on lots of paperwork: helping my parents with their Canadian visa applications, accessing my Philippine bank accounts, learning more about estate planning… There was a surprising amount of paper involved in updating our local bank accounts, but that’s just life.

I wrapped up the week by freezing lots of lumpia for Saturday’s party with the barkada. So much cooking, yay! Best vacation ever.

Blog posts

Sketches

Focus areas and time review

  • Business (0.1h – 0%)
    • Build (0.1h – 100% of Business)
  • Relationships (17.9h – 10%)
  • Discretionary – Productive (14.0h – 8%)
    • Drawing (2.4h)
    • Emacs (1.8h)
    • Coding (0.0h)
      • ☑ Renew domains
      • ☑ Fix Mysql issue
    • Sewing (0.0h)
    • Writing (0.0h)
  • Discretionary – Play (2.0h – 1%)
  • Personal routines (8.1h – 4%)
  • Unpaid work (66.5h – 39%)
    • Childcare (54.4h – 32% of total)
  • Sleep (59.4h – 35% – average of 8.5 per day)

Weekly review: Week ending December 9, 2016

December 15, 2016 - Categories: review, weekly

We hosted a get-together at Kathy’s house for my friends. W- and I made a double batch of pork buns, Papa brought bibingka and other desserts, and we had green mangoes and bagoong too. It was nice chatting with everyone and seeing how they are now. It feels just as easy to chat with them as it did when back then, and it’s great to see people figuring out ways of life that fit them better.

We also went to Tim Ho Wan for more of G* and A*’s favourite shrimp dumplings. There was nearly too much food, but W- and I managed to finish all those scrumptiously soft pork buns ordered. In the name of research, of course. So much yum. I wonder how they make that dough…

It was a bit of a mad scramble to pack all our luggage. We ended up taking a balikbayan box because of all the gifts and hand-me-downs. W- was amazing at wrangling everything while I took care of A-.

The flights back went pretty smoothly. We managed to get lounge access in NAIA, so that covered snacks and a place to stretch out a bit. Switching to the child meal instead of the baby meal worked out okay. I gave A- the bits she wanted, such as rice and eggs, and I polished off the leftovers. This also meant that I could eat a little something while W- held A-, then we could swap while he ate, and then we swapped again so that I could eat my main meal.

We had a six-hour layover in Incheon airport. A- enjoyed crawling around the play area on the fourth floor. There were recliners in the rest area, and we all got some sleep – even A-! It was pretty good. That made the 13-hour flight back to Toronto a lot more manageable. We took a cab home because of the luggage and the cold weather. It turns out car seats aren’t required in public utility vehicles, including taxis, so I just held A- on the way home.

We spent the next few days restocking the fridge and settling back into our household routines. Our trip reminded us how nice it is to keep congee and banchan on hand, so we’ve been cooking that. Yum yum!

A- was almost completely flipped in terms of day and night, and with the short sunlight hours, I hardly got to see any sun for the first little while. I managed to get us to the appointment with the pediatrician for the second half of the flu vaccine, though. Kathy’s hand-me-down snowsuit certainly came in handy – it was -5C and A- had outgrown everything else!

I submitted my business taxes. Nice to get that out of the way. I noticed I made a mistake in the quick tax calculation for HST last year, so I amended both my HST return and my T2. I also managed to squeeze in a little consulting (one report and a small tweak to my code).

I’ve been prioritizing sleep and important tasks over writing or drawing in my journal, at least while jet lag makes our schedule awkward and unpredictable. We have a few daytime appointments next week, and then things should probably settle down a bit.

Blog posts

Sketches

Focus areas and time review

  • Business (5.0h – 2%)
    • Earn (0.8h – 16% of Business)
    • Build (4.2h – 83% of Business)
      • ☑ Filed taxes and amended previous tax returns
    • Connect (0.0h – 0% of Business)
  • Relationships (8.1h – 4%)
    • ☑ Do second part of flu vaccine
    • ☑ Made biscotti
  • Discretionary – Productive (1.8h – 1%)
    • Drawing (0.8h)
    • Emacs (1.0h)
  • Discretionary – Play (3.0h – 1%)
  • Personal routines (11.9h – 7%)
  • Unpaid work (60.7h – 36%)
    • Childcare (49.8h – 29% of total)
  • Sleep (49.0h – 29% – average of 7.0 per day)

Trip notes

December 15, 2016 - Categories: philippines, travel

We’re still jet-lagged from our trip to the Philippines to visit family and friends. Winter’s short, cold days have been making it difficult to use sunshine to help reset A-‘s circadian rhythm. Ah well! She’ll adapt eventually. We managed to get through a few daytime appointments that we had already scheduled, and now we have a more flexible schedule.

It was an excellent trip, easily my favourite of all our trips back. We stayed at Kathy’s house, acquainted ourselves with the local supermarkets, and took over her kitchen. W- discovered a nice pork bun recipe. I even managed to make a couple of lasagnas – my first time to make bechamel sauce. It was such a treat: plenty of people to eat experimental food, and other people doing all the cleanup. Also: no road trips, plenty of time to relax and take care of A-… We got to be homebodies while spending time with family. Whee! My kind of thing.

All of us were there, as my eldest sister Ching and her husband John also flew in from the US for a week. We got the requisite family photos done, of course. It was great seeing John and Kathy raise their family, and seeing my parents in their roles as grandparents, too. We got a sense of family life over there. Good stuff! A- got pretty comfortable with my parents and with John and Kathy, which was awesome. Yay!

I enjoyed playing with G* and A*, who were so excited about meeting their cousin A-. It was like a preview of life with toddlers and preschoolers. Lots of good practice in redirection, guidance, running commentaries, dispute resolution, word definition, explanation, and safety and sanity preservation. I think we’ll be okay.

The rhythm of the day worked out nicely. We were up at 7 or so because of jet lag. I had a relaxed breakfast, planned cooking, picked up groceries, had lunch, hung out with people / did paperwork, took care of A-, cooked dinner, and then retired back to our room for the evening routine.

I took care of some paperwork while I was there, and we exchanged our demonetized bills before the deadline. I also helped my parents with their Canada visa application. I learned a bit more about estate planning, too. There’s more to do, of course.

I caught up with my barkada, and it was good to get a sense of where they are today. It’s interesting to notice the aspects that have stayed the same and the aspects that have changed a lot.

Speaking of change, A- learned a lot. She’s now quite good at creeping around on her hands and knees, and has also been pulling herself up to stand with support. She likes walking when we’re holding her, too. She tried lots of food while we were in the Philippines, and she turned out to like green mangoes. As I mentioned, she’s gotten more comfortable with other people, although she still often wants me or W- in particular. She seems a lot chattier now, babbling and waving her arms excitedly. She also seems more flexible in terms of sleep. She’s slept in a small airplane bassinet and on recliners, although she usually still needs to nurse before she’s ready to drop off.

Time is double-edged, and my parents are both dealing with health issues. Still, I feel less anxious about my parents now. They have pretty good plans and coping mechanisms, and it’s all part of life. My sister is also dealing with her own challenges. We’re happy to help out however we can.

We picked Korean Air because of its reputation for baby-friendliness, and we were satisfied with the experience. The bassinet was roomy enough for A- to hang out in, and she even napped in it a few times. She wasn’t a fan of the baby meals, but then she’s not into commercial baby purees in general anyway. The child meal worked out well, though, since she could eat some of it and I didn’t mind eating the rest. The play areas and rest areas in Incheon were a pleasant places to spend a few hours waiting for connecting flights.

The only wrinkle was that we lost A-‘s ocular prosthesis during an otherwise awesome trip to Manila Ocean Park. No worries, that’s why we have an oops fund. We’ll try out the less expensive clear conformer first before considering replacing the painted shell, as she won’t be eligible for funding a replacement painted shell for another 1.5 years or so. If the clear conformer works out, it’ll be easier to let her go play and do stuff, since the impact of losing it will be smaller.

Other little notes:

  • Didn’t use my dress shoes or socks. I can leave them behind next time.
  • Should probably copy photos from people’s phones/cameras a day or two before leaving.
  • I wonder how Tim Ho Wan makes those buns…
  • W- is super awesome! The trip would have been very different without him.
  • It was nice to spend time with everyone.

Good trip, and good to be back.

Monthly review: November 2016

December 18, 2016 - Categories: monthly, review

A- has gotten so much better at controlling her hands: gently patting the cat, grasping food with her thumb and index finger, taking things out of containers and putting them back in… She laid claim to one of the sets of Duplo that we were going to give to her cousins, and had lots of fun exploring the different shapes. She’s been gradually shifting to using her fingers instead of her mouth, although the occasional thing still gets tasted, of course.

A- has also been working on her gross motor skills, getting the hang of creeping around everywhere on her hands and knees (so much more efficient than crawling on her tummy!), and even pulling herself up to stand with our help. She’s more expressively vocal now, babbling with different intonations based on her mood. She likes staying close to me or to W-, but she’s happy to spend time with other people once she has warmed up to them. She met the rest of my family on our trip to the Philippines – yay! She tried out many new foods, and seems to be a fan of sour tastes and chunkier textures. She’s an awesome 9-month-old!

A-‘s cardiologist said that the hole in her heart continues to get better, but they still need to monitor the muscle bundle developing in her right ventricle to see if they need to operate on it. We’ll follow up with another exam in February.

A-‘s head was getting too big for her old prosthetic eye, which kept popping out. Eventually it popped out in a crowded place where we couldn’t find it even after searching multiple times. Oh well, we knew something like that would happen eventually – that’s why we’d set aside an oops fund! We’ll try replacing it with a less-expensive clear conformer first, and we’ll wait until she’s eligible for funding for another painted prosthetic eye.

As for us, the first half of the month was about preparing for the trip, and the second half was about enjoying it. The trip worked out beautifully – like a staycation, but with family and friends I hadn’t seen in years. We cooked, ate, hung out, and took care of things – some bank-related stuff, and my parents’ Canadian visa application too. There’s more paperwork to be done, of course, but at least we got started.

I managed to squeeze in a bit of coding: turning over the add-on I’d been working on, and doing some data scraping for a friend. Didn’t get much writing or coding done while we were away, of course, but that’s all cool.

Life is good.

Blog posts

Sketches

Time

Time tracking slightly messed up by trip. Personal time way down, travel/family time way up, as expected. Sleep surprisingly the same – actually, slight increase, because I didn’t track sleep well during the flight. Hmm…

Category Last month % This month % Diff h/wk Diff h/wk
Unpaid work 42.8 47.6 4.8 77.4 8.0
Discretionary – Family 1.9 6.3 4.4 10.2 7.4
Unpaid work – Childcare 35.1 37.0 1.8 60.2 3.1
Discretionary – Play 0.8 1.7 0.9 2.7 1.5
Business – Connect 0.0 0.4 0.3 0.6 0.5
Business – Build 0.1 0.2 0.0 0.3 0.1
Sleep 31.9 32.0 0.0 52.0 0.0
Discretionary – Productive 3.1 2.8 -0.4 4.5 -0.6
Business – Earn 2.8 0.6 -2.2 1.0 -3.6
Discretionary – Social 3.4 0.3 -3.2 0.5 -5.3
Personal 13.1 8.3 -4.7 13.6 -7.9

Weekly review: Week ending December 16, 2016

December 18, 2016 - Categories: review, weekly

The forecast called for a lot of snowfall, so we suited up and got groceries before that happened. We made a respectable array of Korean side-dishes (banchan), and we had bibimbap all week. It was awesome. There were so many options, we had to practically empty the fridge every time we assembled a meal. I started setting up two portions of sides at dinner – one in a bowl, one in a food container – and that made breakfast bibimbap so much easier, since I could just empty the container into a bowl, top it with rice, and reheat the whole thing. Yep, that’s going to go into our regular rotation of recipes.

I took A- to the ocularist for a clear conformer. It’s less expensive than a painted scleral shell, so we don’t have to worry as much about her losing it. Her skull has grown a fair bit in the last few months, so the new conformer does a better job of supporting the growth of her eye socket and filling it in. She seems to be okay with it, although she’s been popping it out every other day or so. I’ll ask them if we need another fitting.

W- has been working on setting up a play area in the front part of the living room. That way, A- can hang out on the main floor. Little by little, we’re reshaping the house to fit our changing life. I’ve been decluttering her room, too, putting aside the clothes she has outgrown. I thought about scavenging sewing materials from the pile, but I don’t think I’ll have time to sew soon, and I still have a backlog anyway. So the clothes can go to other places: friends, Facebook groups, or Value Village if no one needs them.

I’m not too keen on Value Village as a donation destination, but since I’m rather less keen on Salvation Army and the other options are a bit out of our usual errand routes, Value Village will do. I suppose that even if clothes end up as recycled fabric, that’s still better than them ending up in landfill. I’d like to eventually clear my time and pipeline so that I can upcycle some of the outgrown things into small and useful things around the house, but I’m not going to hold on to things just in case.

Speaking of errands, A- and I made it downtown together with W-. He had something to return to MEC, and he wanted to check out some of the shops in the Eaton Centre. I didn’t get anything, but it was a pleasant enough outgoing just as it was. We visited W-‘s mom while we were downtown, and she got to see A- practise standing and walking with help.

I’ve been slowly working through my backlog. I posted a bunch of journal entries I’d written on my phone, and I did some consulting before the contractor shutdown over the holidays. We’ve mostly settled down into a routine of two naps and a decently long sleep, so I feel more confident about using the naps and a little of her long sleep to take care of stuff.

Since we were slightly jet lagged and kept waking up early in the morning, I decided to do more household chores with A- around. That way, we could take advantage of cheaper off-peak electricity rates. It’s not the same as focusing on her and playing with her most of the day, but then again, it’s probably good for her to see us doing chores and even to get involved here and there. It’s easy to keep her interested and engaged while we’re doing laundry or peeling potatoes. Some recipes give me plenty of time and flexibility to play with A-, while others can be safely interrupted when A- needs attention. I want to figure out a good set of things that work well, and then we can add to that as she becomes more independent or even more able to help.

Small, continuous improvements…

Blog posts

Sketches

Focus areas and time review

  • Business (2.1h – 1%)
    • Earn (1.7h – 82% of Business)
    • Build (0.2h – 11% of Business)
      • ☑ Amend last year’s tax return
    • Connect (0.1h – 6% of Business)
  • Relationships (5.3h – 3%)
    • ☑ Take A for second part of flu vaccine
    • ☑ File insurance claim for clear conformer
  • Discretionary – Productive (3.1h – 1%)
    • Drawing (1.9h)
    • Emacs (0.1h)
    • Coding (0.3h)
    • Sewing (0.0h)
    • Writing (0.1h)
    • ☑ Make ACB spreadsheet for Canadian index
  • Discretionary – Play (0.2h – 0%)
  • Personal routines (11.8h – 7%)
  • Unpaid work (69.0h – 41%)
    • Childcare (60.8h – 36% of total)
  • Sleep (76.4h – 45% – average of 10.9 per day)

Using categories to organize your Org agenda

December 18, 2016 - Categories: emacs, org

D.C. Toedt wanted to share this tip for Org Mode agenda organization:

I’ve just discovered that it helps to add a :CATEGORY: property to the top-level, non-TODO heading that identifies the project.  Using your example:

* Project ABC
  :PROPERTIES:
  :CATEGORY: ABC
  :END:

** TODO A task related to Project ABC
** TODO Another task related to ABC
*** TODO Subtask
SCHEDULED: 

In my bog-standard org-mode setup, this results in “ABC” being displayed in the far-left column of the agenda instead of just “todo” (which seems to be the default). This is great — it means that, in the text of the “Subtask” todo entry itself, I don’t need to include a reminder of what project the todo entry is associated with.

Here’s an agenda mockup to illustrate the point, augmented with a “default” entry from my own to-do list:

  todo:       Scheduled:  Follow up on expense reimbursement request
  ABC:        Scheduled:  Subtask

This also allows filtering the agenda by the category.


Thanks for sharing, D.C.!

The category actually defaults to the first part of your filename.org, so todo.org becomes todo, organizer.org becomes organizer, etc. I keep an organizer.org, routines.org, business.org, etc. Keeping my routine tasks in routines.org allows me to filter them with a custom agenda command like:

            ("w" "Weekly review" agenda ""
             ((org-agenda-span 7)
              (org-agenda-log-mode 1)) "~/Dropbox/agenda/this-week.html")

            ("W" "Weekly review sans routines" agenda ""
             ((org-agenda-span 7)
              (org-agenda-log-mode 1)
              (org-agenda-tag-filter-preset '("-routine"))) "~/Dropbox/agenda/this-week-nonroutine.html")

so that I can see all the tasks (including routine tasks) in my regular weekly review, and just the special stuff in a separate view. You can see the whole definition of org-agenda-custom-commands in my Emacs configuration.

Update 2016-12-18: Oops! I just remembered that filtering by -routine is actually made possible by the #+FILETAGS: :routine: I have in routines.org, which has the additional benefit of allowing me to mark tasks in other files as routine by adding the :routine: tag to them. You can, however, still use categories to filter your agenda. < (org-agenda-filter-by-category) in an agenda view will filter by category, or use a match filter like CATEGORY="routines" to match on the category. Also, it turns out you can set up category icons by customizing org-agenda-category-icon-alist – hmm…

D.C.’s tip is handy if you want to keep those groups of tasks in one file, but still want that kind of visual indication in your agenda (and the ability to filter by it).

Have fun!

2016-12-19 Emacs News

December 21, 2016 - Categories: -Uncategorized, emacs, emacs-news

Links from reddit.com/r/emacs, /r/orgmode, /r/spacemacs, Hacker News, planet.emacsen.org, Youtube, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

Weekly review: Week ending December 23, 2016

December 26, 2016 - Categories: review, weekly

A- has been hard at work devising little games for herself – amusement and exercise all together. She spent an afternoon clapping and blowing happy raspberries, and then graduated to moving my hands to clap instead. She practised putting things on top of other things: blocks on a book, orange segments on W-‘s hand, bubble wrap on top of a very patient cat. She took stuff out of and put stuff into laundry baskets.

She’s gotten more comfortable with wandering a little away from me. Sometimes, when I’m in the kitchen, she creeps over to the living room and plays with a small collection of toys that we keep on a low shelf.

Her growing independence and ability to entertain herself meant that we were able to do a lot of cooking: another hunk of roast beef, an array of banchan, two pizzas, congee, and even a side-by–by- side comparison of Glico Premium and Vermont curry. (Glico was spicier and Vermont was sweeter; both had nice depth.)

We’ve also been figuring out our sleep and home routines. During her first awake period, we have breakfast and play a little. Depending on how much sleep I got, I might share her first nap with her. Then we have lunch, do chores (usually folding laundry), and go for a walk. After a snack, she has another nap while I write or play on my phone. More play time, then dinner, which is easy with a well-stocked fridge. Then we hang out with W-. She might get an evening snack depending on how things go. Then bath time and bedtime for her – maybe 8 or 9 in the evening, and sometimes earlier. After I settle her into bed, I can usually get 2-3 hours of discretionary time in the evening. I’ve even been able to catch up with my ledger, write posts, and make an adjusted cost base spreadsheet. (Although it turned out I’d wasted some effort – I’d forgotten that I had already made a spreadsheet like that a couple of years ago, which I found only when I started an index of important files. That’s why I need an index!)

W-‘s been busy, too. He spent some time painting, finishing, and lighting the front part of the living room in order to turn it into a new play area for her. It took a while to find a shade of paint that he liked. So many different kinds of neutrals out there! The results look great, though, and with the new flood lights he bought from Home Depot, the space feels much more usable. I snagged a set of elephant decals that were marked down to $2, and they make A-‘s room look a lot more fun and nursery-ish.

Little improvements!

Blog posts

Sketches

Focus areas and time review

  • Business (0.9h – 0%)
    • Earn (0.0h – 0% of Business)
    • Build (0.4h – 47% of Business)
    • Connect (0.5h – 52% of Business)
  • Relationships (0.7h – 0%)
    • ☑ Download low-res pictures from FB
  • Discretionary – Productive (5.4h – 3%)
    • Drawing (3.1h)
    • Emacs (0.8h)
      • ☑ Investigate effort filtering in Org Mode
    • Coding (0.5h)
      • ☑ Fix quantifiedawesome account deletion
      • ☑ Fix Yahoo account
      • ☑ Tweak tracking interface
    • ☑ Make ACB spreadsheet for US
    • ☑ Set up individually encrypted files
    • Sewing (0.0h)
    • Writing (0.1h)
  • Discretionary – Play (4.3h – 2%)
  • Personal routines (13.9h – 8%)
  • Unpaid work (89.0h – 52%)
    • Childcare (73.4h – 43% of total)
  • Sleep (53.8h – 32% – average of 7.7 per day)

2016-12-26 Emacs News

December 26, 2016 - Categories: emacs-news

Links from reddit.com/r/emacs, /r/orgmode, /r/spacemacs, Hacker News, planet.emacsen.org, Youtube, the changes to the Emacs NEWS file, and emacs-devel.

Past Emacs News round-ups

Fixed paragraph breaks in WordPress, no more wall of text

December 29, 2016 - Categories: blogging, development, wordpress

While trying out the “after” filter I just added to my blog, I noticed that my paragraph breaks were missing. I hadn’t noticed it for a while because I’ve been building up my weekly and monthly reviews from sketches instead of blog posts. How embarrassing!

(Then A- woke up and it was time for lunch, so I was a bit frazzled. But W- stepped in and took care of her, hooray!)

I saw the paragraph breaks in WordPress’ visual editor, but not the exported HTML, which just kept whitespace in between the paragraphs instead of breaking them up with tags. It happened even when I created a new post through the web interface, so it wasn’t org2blog’s fault.

I checked if the paragraph issue happened on a new install. It didn’t.

I checked if the paragraph issue happened with all the plugins deactivated. It didn’t. Aha! (Note to self: I really should set up a dev environment again…)

I turned the plugins on one by one, and I narrowed it down to the NextGen Gallery plugin. It worked after I updated that.

Anyway, things should be readable again. Hooray!

Filtering WordPress posts after a certain date

December 29, 2016 - Categories: wordpress

I wanted to make it easy to link people to a chronological view of my weekly reviews after becoming a parent, so I added this code to the functions.php in my custom WordPress theme.

function sacha_tweak_query() {
    if ($_REQUEST['after'] && preg_match('/^[-0-9]+$/', $_REQUEST['after']))  { 
        set_query_var('date_query', array('column' => 'post_date', 'after' => $_REQUEST['after'], 'inclusive' => true));
    }
    if ($_REQUEST['bulk']) {
        set_query_var('posts_per_page', -1);
    }
}

add_action('pre_get_posts', 'sacha_tweak_query');

It checks for HTTP query variables of the form after=2016-02-22 and bulk=1. If it sees an “after” filter, it updates the query to show only posts after that date. Bulk gets you all the entries on one page. (… Please use this wisely. =) )

Using the pre_get_posts action lets me make the functionality available across all the archive pages (tag, category, date) without adding special code to each of them. Neat!