this is probably strangely accurate.
(via laurapoythress)
It seems like Google is doing a ridiculous amount of promotion for free advertising. I wonder if their sales are down.
This is probably one of those times when I should be using snipplr or something.. Oh well.
LOAD DATA LOCAL INFILE ‘/your_file.csv’
INTO TABLE your_table
FIELDS TERMINATED BY ‘,’
LINES TERMINATED BY ‘\n’
(field1, filed2, field3);
(Source: daniweb.com)
Trying to combine mod_rewrite directives in .htaccess when you have AllowOverride None in the vhost config.. doesn’t work.
AllowOverride All ftw.
After some problems and frustrations, I finally just wiped out my mac, took it to the Apple store and asked them to reinstall the OS for me. I didn’t have a Lion disc and didn’t feel like paying for one, soo.. yeah. Anyway, I’m sitting at the salon waiting on my wife while she gets a haircut, I have about half an hour of battery left so I decided to configure this “new” mac as quickly as possible.
Here’s what I got done in about 30 minutes. I’ll update this list with changes I make to it throughout the rest of the week, both so I have a list of what to do with new machines in the future and in the hope that someone else will gain something out of seeing what I work with.
The first 30 minutes
Things I did later
When I first started learning about web development I read every page of HTML Goodies I could. I even saved some of the pages to floppy disc so that I could go back to them when my mom was on the phone. (See kids, there was this thing called dial up…)
Lately, I’ve been looking for good tutorial sites to supplement official documentation. I’m learning some more advanced development techniques myself as well as mentoring a few people. SitePoint and A List Apart used to be my go to for development questions, but they really haven’t been cutting it the past couple of years. (Though the ALA archives are an awesome resource, especially in the CSS world.)
I’ve heard of them before, but it’s only been in the past few weeks that I’ve really paid any attention to the TutsPlus network. In short, they’ve blown me away. They cover everything from code and design to visual effects and music production. And it’s not just your standard PHP and Javascript. You can expect to see tutorials and articles on brand new services, framesworks and cutting edge techniques.
I love them and I’m seriously considering paying the $9 / month for premium content.
Keeping track of all your personal passwords is a pain. Even more so when you’re working with a team. Using KeePassX on a network folder that everyone can get to makes life a hell of a lot better.
And the pro tip? Use keyboard shortcuts! CMD+b will give you the username. CMD+c will give you the password. CMD+i will give you the URL. And CMD+u will open the URL in your browser of choice.
Lion and Apache VirtualHosts -
Apparently OS X Lion not only comments out the virtualhosts link by default, but also drops it inside of a conditional. It will throw you if you’re not thinking about looking for something like that.
Backbone’s description of Model.save is backwards. Save is PUT and edit is POST. In addition, I just found out PHP doesn’t have a clean way of accessing PUT variables. Here’s how you do it.
This is just cool