I’ve had one heck of a week at work. I was given a fresh server and was told to install PHP, mysql, GIT, and everything on it that’s required for my application so my app could function and be secure. I had to do this via SSH. One thing that I’m not very good at. Thank god I am surrounded by guys who rock at it and have more SSH experience than me. One thing I quickly learned: Aliases are freakin’ awesome.
At work, I’ve got two applications that has multiple database connections for security reasons. I’ve been running into a weird issue with Laravel and transactions and rollbacks not firing on the secondary database. I thought it was something I did, but it’s actually Laravel.
As I wait in queue for a Live Chat session on Fandago and kind of failing getting into this Valentine’s Day movie and trying not to get sucked into Hana Kimi (again), I decided I at least start this blog. It’s a topic that I’ve been meaning to blog about for awhile:
What’s better for a runner? A Garmin or the Apple Watch? Dun dun duuuuunnn.
I’m a blonde. And this blonde doesn’t really do a whole lot of new sites on her machine. When I
Ever needed away to detect when a user copies and pastes something into your web application? I ran into this scenario where people were coping and pasting from Microsoft Word and when I tried to export the information using PHPWord, it would corrupt. Now, most of the special MS Word characters I was able to figure out how to replace when I was running the export except bullet points. They were going to be the death of me. I came up with another solution before the export. What if I run a check to see if bullet points were pasted in a textarea??
I can’t take credit for this, but I wanted to share this quick PHP tip (and make sure I have it for later too of course). Ever run into a situation where you needed to alphabetize a multidimensional array by one of the inner values? Well I have and I found the solution based on a StackOverflow (PROGRAMMER’S BEST FRIEND) thread.
Over the years, I’ve done a gazillion races. From 5Ks, to a gazillion half marathons, to marathons. My first race as a runner was a 10K trail run in 2009. In 2010, I completed my first half marathon in Coeur d’ Alene. After that, I was addicted to that distance. It became my favorite distance. It still is really.
The following year, in 2011, my sister started to race. Like me, her first race was a trail run. She started out at a 5K and then later on that year, we did our first half in Seattle together. In October of that year, I completed my first full in Portland alone. Two years later (and my sister’s wedding), my sister and I (along with a friend) completed the Portland Marathon. It was my second one and my sister’s and our friend’s first. My sister and I spent the summer weekends training and running across the city. Sometime within those years, I did complete a couple of duathalons.
Yea yea. I know. I haven’t posted anything (besides a dev blog) since July. Well honestly. It’s been busy and I’m still kind of pissed at how my summer panned out. I was supposed to have another marathon under my belt and finally complete my first tri. Nope. Didn’t happen.
This is a follow up to PHPWord I wrote a blog about I wrote last year. I’ve had to use it a couple different times since then. While this plugin is pretty powerful, there are a few kinks that need to be worked out–especially if you are exporting a lot of text that was put in by users. I have been known to say that sometimes developing is like being a psychic. You need to prep the site in how you feel like the users should put in the information. Sometimes I’m good at it. Sometimes I’ve failed. This time, I didn’t think something through while programming a form.
I write this post very very depressed and pissed at the situation. Tomorrow is the tri and I won’t be participating. Why? Oh I had a shitty week.
Lets start with last Sunday. Got into another accident in the parking lot of Albertsons. My poor poor car. Grrrrrr. Still figuring out that issue. Fast forward a couple days to Tuesday.. I take off on my bike to see if my bike will fit into my mothers car. Get a couple miles away from my parents house and suddenly wake up in an ambulance. Turns out that my bike isn’t meant for think dirt. The wheel got caught and I went down. Broke my brand spanking new helmet. *sighs* All within race week. Soooooooo I won’t be doing either the tri or marathon. After all that hard work. I’m more than a little pissed at the situation. At least we get to still go down to San Fran. Just won’t be racing.
Yes. I should have wrote this ages ago. Yes. I have been busy. To be fair, I started a post, finished it and then WordPress kicked me out and didn’t save my draft. TT_TT I wasn’t happen and gave up re-writing it.
To sum up my training: well I’m still at it. That’s good right? I’ve done 3 races so far. Two halfs and one 12K. Two by myself and one with Tink. Bloomsday, Coeur d’Alene, Windemere. And what happened?
I PR’ed at the ones I did alone (Bloomsday & Coeur d’Alene). They were only each by mere minutes, BUT it was a PR.
Annnnd I’m back in the Pacific Northwest. Am I glad? Yes. I love my town. Lets just say my body is still very confused and I am cold…. Going from 80+ degree weather back to 50 will do that. Oh well. It was bound to happen.
I will admit that I wanted to blog every day, but the wifi/cell service down there was horrible. Annnnd Wordpress on an iPad didn’t corporate nicely so I gave up. I even had a draft saved. It didn’t help that I didn’t have a whole lot of time either. I ran most of the days–even if we walked for like 5 hrs a day at Universal and Disneyworld. So guess who lost weight? This girl!
Anywho, here’s the recap of the days: