October 27, 2016
This short tutorial will show you how to setup a custom domain with SSL and Medium.com with CloudFlare.
To start, you of course must own the domain, let’s call it example.com.
Suppose you want your Medium blog to have the address blog.example.com, to differentiate it between your main site.
If you have your DNS configured to point to CloudFlare (highly recommended so traffic doesn’t always hit your server directly), then it’s a little trickier than Medium.com’s default instructions, which are posted here:
As stated in the article, the first step is to fill out a form, and someone from the support team will get back to you with configuration details.
When you get a response, login to your CloudFlare account and click the DNS tab:
There are 2 types of records you have to add, CNAME and A Records.
We will start with CNAME.
You will get a name-value pair that looks like:
The email will tell you that you can enter the name as <token>.blog.example.com OR just <token>.blog. I have found the latter to work.
You will enter the CNAME record as follows:
Finally, you will receive a list of A Records to add. These should be added under the “Value” column. The “Name” column should just be “blog”.
And that’s it! Easy peasy.
Go to comments
March 19, 2016
This is an annoucement along with free and discount coupons for my new course, SQL for Marketers: Dominate data analytics, data science, and big data
More and more companies these days are learning that they need to make DATA-DRIVEN decisions.
With big data and data science on the rise, we have more data than we know what to do with.
One of the basic languages of data analytics is SQL, which is used for many popular databases including MySQL, Postgres, Microsoft SQL Server, Oracle, and even big data solutions like Hive and Cassandra.
I’m going to let you in on a little secret. Most high-level marketers and product managers at big tech companies know how to manipulate data to gain important insights. No longer do you have to wait around the entire day for some software engineer to answer your questions – now you can find the answers directly, by yourself, using SQL.
Do you want to know how to optimize your sales funnel using SQL, look at the seasonal trends in your industry, and run a SQL query on Hadoop? Then join me now in my new class, SQL for marketers: Dominate data analytics, data science, and big data!
P.S. If you haven’t yet signed up for my newsletter at lazyprogrammer [dot] me, you’ll want to do so before Monday, especially if you want to learn more about deep learning, because I have a special announcement coming up that will NOT be announced on Udemy.
Here’s the coupons:
FREE coupon for early early birds:
EARLYBIRD (Sold out)
If the first coupon has run out, you may still use the 2nd coupon, which gives you 70% off:
#aws #big data #cassandra #Data Analytics #ec2 #hadoop #Hive #Microsoft SQL Server #MySQL #Oracle #Postgres #S3 #spark #sql #sqlite Go to comments
November 23, 2015
My brand-spanking new blog software told me that this title was too long: GoDaddy vs. BlueHost vs. DreamHost vs. Hostgator vs. Namecheap
Read all the way to the end if you want to find out who I chose, why it took me so long to choose, and for some nice discount buttons.
If you noticed, there’ve been some subtle changes on this site lately.
In actuality, the site has gone through a complete overhaul. I tried my hardest to create my own WordPress theme to be exactly like the old theme (which was hosted on Tumblr), with a few enhancements.
So as you probably already know, WordPress needs to be hosted on paid servers that have PHP installed. The typical players are GoDaddy et al. (the ones listed above, except for Namecheap). For the somewhat technical, your site needs to live on boxes like these:
I moved all of my domain names to Namecheap from GoDaddy awhile ago when I read about some of their shady business practices (they initially supported SOPA).
So I’m browsing around, basically just price-shopping. I know all these companies have bad reviews for poor customer service. I try to do my due diligence by noting the percentage of downtime and cPanel features. But really I just want a good price on hosting so I can test out new sites cheaply and efficiently.
Most of these guys have a 1-3 year discount rate, something like $6.99/month if you sign up for 3 years. Then it goes up to $11.99/month after that.
I’m not going to list the exact prices here because they are always changing, but approx. $5+ to approx. $10+ after the discount period is typical. The problem is, most of these sites don’t post their non-discount rate.
As a sidenote, I’ve noticed lately that a lot of sites, including banks, who you’d think would be more professional, have a lot of footnotes. Like this.1
And then, nothing on the page actually explains what it refers to. It’s like saying, “read the fine print if you want to understand how we’re going to fuck you”, and then just excluding that fine print, in hopes you’ll just forget about it.
Alright, lemme talk to their support guys to tally up what everyone’s non-discounted rate is. This helped me narrow down my options a little bit. HostGator’s support was very unhelpful. I partly wrote this post to tell you not to use HostGator. After some time doing this it hit me… Namecheap offers hosting.
I’ve been using Namecheap for years for my domains, and I’ve found their user interface and support to be above par. I look up their rate for shared web hosting and to my surprise, it’s $19.88 for the first year. After this discount period, it goes up to $78.88, which is $6.57 / month, which is way better than what everyone I mention above provides.
If you use the coupon code COOLDAYS you can get 20% off, which means you’ll only pay $15. This is basically just above $1 / month. I think (not 100% sure) the coupon code only lasts until the end of November, so get that shit now.
And since Namecheap sucks at advertising their hosting, which is why I almost signed up for an inferior service instead of theirs, I am going to post some buttons here in case you’re looking for a new domain, web hosting, and a free WhoIsGuard (so people can’t stalk you on the net, since by default your full name, address, and email are shown when someone looks you up).
Full disclosure, these are referral links, so buying from these links helps me too and helps keep this site up. =)
It’s entirely possible I haven’t covered a really awesome, cheap web host in this post, so if I missed something, please let me know in the comments below.
#bluehost #cheap web hosting #coupon code #dreamhost #godaddy #hostgator #namecheap #web hosting Go to comments
November 17, 2015
I get this error frequently when I use the PHPMailer library, i.e. for a WordPress site.
The strange thing is, this will work on your localhost but not on the remote server.
It is not a problem with PHPMailer, or WordPress, or your mail server.
It is a problem with your hosting configuration (I’m using Namecheap for hosting but I assume you have cPanel installed).
How to fix:
- Log into cPanel, and under the “Mail” section, choose “MX Entry”.
- Add MX records as shown below. (I’m using Zoho as my mail server, and their addresses are mx.zoho.com and mx2.zoho.com)
#hosting #php #phpmailer #smtp #wordpress Go to comments
February 23, 2015
display: flex; /* probably just need here and below */
#center #css #div #vertically align Go to comments
December 3, 2014
Fiddled around with this for way too long, because with the instructions you get from Namecheap, you will end up in an infinite redirect loop using mydomain.com instead of www.mydomain.com.
First, to get to the correct page, go to My Account -> Manage Domains -> Modify Domain and choose “All Host Records”.
Then, instead of how Namecheap tells you to do it, where you have 2 entries like this:
You instead have these 3 entries:
See the image below.
#heroku #namecheap #url forwarding Go to comments