Category Archives: tech
Google OAuth 403 Response
OAuth::getLastResponse() to my error logs (this is PHP code, and you need to call OAuth::enableDebug() before you make the request to get this output) so I could see that I was getting the following back from Google:
GData
sslRequired
SSL is required to perform this operation.
Closer inspection shows that for one of the google endpoints, I had a prefix of http:// rather than https://. Those single-character bug fixes that take hours to find are my favourite!
Speaking at DayCamp for Developers
My own talk is “Time and Money”; both are pretty important concepts to have a handle on when you are in business, either as a freelancer or when starting or helping to start a bigger business. Even as an employee, these are really important concepts to understand; most of what I learned about business I learned working with business people in the jobs I had beforehand.
Time is important because we need to figure out how much we have and how to share it around. Money is important because we all like to get paid. I’ll be sharing my own tactics for keeping both of them under control so I hope you’ll join us!
Mercurial “Not At A Branch Head” Error
hg tag
not at a branch head
Continue reading
SQL Joins with On or Using
USING and ON. Continue reading Using lrnja.net Custom URL Shortener with Bit.ly
- First: register your domain
- Log in to your registrar’s control panel and add an A record*
- That’s it! In about 24 hours, you’ll be able to shorten with your domain
* or a CNAME if you want to use a subdomain of an existing domain.
Bit.ly has excellent instructions here: lrnja.net/bitlydomain
The Tree Command
tree command to illustrate the file and directory layout of the project. I love this little command and use it frequently, but it isn’t very well known so here’s a quick example. Continue reading Tracking Your Domain with Bit.ly
Inner vs Outer Joins on a Many-To-Many Relationship
Continue reading
Simple Regular Expressions by Example
As with most things, it’s pretty easy when you know how, so here’s my one-step-at-a-time approach to regex (stolen from my ZCE preparation tutorial slides). Let’s begin at the very beginning: regular expressions have delimiters, usually a slash character, and these contain a pattern that describes a string.
| pattern | notes |
|---|---|
/b[aeiou]t/ |
Matches “bat”, “bet”, “bit”, “bot” and “but” Also matches “cricket bat”, “bitter lemon” |
