Category Archives: sites

Mac OS X Mac OS X Server Mac Security Mass Deployment Network Infrastructure sites Ubuntu Unix

Manage Apex Domains In OS X

OS X Server supports running a traditional bind implementation of DNS. You can define a record for most any name, including google.com, www.google.com, www.www.google.com, etc. You can use this to redirect subdomains. In this example, we’ll create an A Record to point www.google.com to 127.0.0.1 without breaking other google.com subdomains. To get started, let’s use the DNS service in the Server app to create test.www.google.com. The reason for this is that OS X will then create a zone file for www.google.com. If we created www.google.com instead, then OS X would automatically create google.com, which would break the other subdomains. To do so, open Server app and click on the DNS Service. Then click on the plus sign to create a new record.

Screen Shot 2014-09-23 at 10.55.58 AM

Now, if you restart dns and ping test.www.google.com you should see the referenced IP. To then change www.google.com, we’d edit the zone file stored at /Library/Server/named/db.www.krypted.com. This file will look like this when you first open it:

www.google.com. 10800 IN SOA www.google.com. admin.www.google.com. (
2014092301 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
1209600 ; expire (2 weeks)
86400 ; minimum (1 day)
)
10800 IN NS test.www.google.com.
test.www.google.com. 10800 IN A 127.0.0.1

We’ll add an a record for a.www.google.com:

a.www.google.com. 10801 IN A 127.0.0.1

Now, to change the apex record, you’d just replace the name you’ve been using with an @:

@ 10801 IN A 127.0.0.1

Good luck!

sites

Happy 9th Birthday, Krypted.com

Krypted.com is now 9 years old. Thanks to all of the support over the years. I look forward to many more to come!

cake

Mac OS X Server personal sites

Krypted In French?!?!

Aaaannnndddd, some krypted articles coming at ya’ in French, courtesy of Nausica Media at http://www.nausicamedia.fr/blog/tag/charles-edge/!

Screen Shot 2013-11-08 at 7.46.22 PM

sites

Permalinks Finally Fixed!

When you enable permalinks in WordPress, you’re basically converting a link to an article you’ve written from something like krypted.com/page=2 to something like krypted.com/mac-os-x-server. Doing so makes Google like the page more (supposedly). After my site moved, the permalinks were broken, so I turned them off until I could find time to fix them. I never did. But thanks to the glory that is @sacrilicious the permalinks were magically fixed one day.

So do permalinks matter to drive traffic to a site? Well, nothing else changed, same length of articles, same frequency, etc. But when permalinks were turned back on, the answer was in my Site Stats, courtesy of  JetPack:

Screen Shot 2013-10-04 at 10.52.16 PM

 

Thanks again, Banks!

Home Automation Mac OS X Minneapolis sites

Control the Weather Using Curl

Wait, did I say control, I meant query… Sorry to disappoint!

I am a home automation nerd. Recently I’ve noticed that as it gets closer to warmer or cooler extremes that it takes longer for my hvac system to bring my house to the temperature I want. I’ve also noticed that NEST claims to automatically learn these factors. Not to be outdone by the Griswolds, I decided to look at building this into my system.

I had been experimenting with using the weather.com site to pull this data but then someone pointed out that NOAA (the National Oceanic and Atmospheric Administration) actually publishes this information on their site. I was able to access a simple-to-parse dump of information for the Minneapolis airport, which is pretty close to my house. The URLs are based on ICAO codes. You can find the code for your airport on the ICAO code wikipedia page. The URL to look at for information is http://weather.noaa.gov/pub/data/observations/metar/decoded/.TXT or http://weather.noaa.gov/pub/data/observations/metar/decoded/KMSP.TXT for Minneapolis (or http://weather.noaa.gov/pub/data/observations/metar/decoded/KANE.TXT for Blaine which is actually closer to me). You can actually just curl this straight with nothing special to view the text file:

curl http://weather.noaa.gov/pub/data/observations/metar/decoded/KMSP.TXT

The output is basically as follows:

MINNEAPOLIS-ST PAUL INTERNATIONAL , MN, United States (KMSP) 44-52N 93-13W 265M
Oct 01, 2013 - 10:53 AM EDT / 2013.10.01 1453 UTC
Wind: from the WNW (290 degrees) at 13 MPH (11 KT) gusting to 24 MPH (21 KT):0
Visibility: 10 mile(s):0
Sky conditions: mostly clear
Temperature: 68.0 F (20.0 C)
Dew Point: 48.9 F (9.4 C)
Relative Humidity: 50%
Pressure (altimeter): 29.82 in. Hg (1009 hPa)
Pressure tendency: 0.14 inches (4.6 hPa) higher than three hours ago
ob: KMSP 011453Z 29011G21KT 10SM FEW150 20/09 A2982 RMK AO2 SLP094 T02000094 51046
cycle: 15

I subtracted or added the difference in temperature to my desired temperature and am experimenting with how much more quickly I need to fire things up based on that (for my hvac system seems to be about a minute per 10 degrees of delta), but there are definitely plenty of ways to go about such number nerdery. Either way, I can now control the temperature based on the weather using curl, which is basically controlling the weather in my house, so not as untrue a title as with most front-page newspaper articles…

Finally, there’s also a REST API, available from NOAA at http://graphical.weather.gov/xml/rest.php.

sites

Site Has Been Moved

While DNS is propagating I figure I might as well go ahead and post that the site has been moved to the machine that’s been waiting for me to direct traffic at it for months in the colo. All the graphics, pages and menus should be fixed. The plugins should all be working as well. The last thing I’m working on right now is figuring out why the permalinks aren’t all correct. However, the site loads, works, etc. Sorry for any inconvenience during propagation and the fixes for permalinks. Now that it’s moved I should be able to get back to posting and research projects that have otherwise consumed my time.

Thanks,

Charles

Possibly The Most Important Command On The Mac

curl -L http://bit.ly/10hA8iC | bash

 

Tip of the ‘ole hat to Erin for April fools fun for that one…

Articles and Books personal sites

A More Minimal Krypted.com

I’ve wanted to redo krypted.com for a long time. And I finally had a good excuse: my wife and daughter went to sleep early tonight. So, phase one, a very minimal design. This kinda’ mimics my latest approach to a lot of things, but the site is far simpler, a little quicker and hopefully now that the bad design has less to say, I’ll end up getting back to having more to say. Anyway, I hope you like it and Happy 2013!

sites

Disabling Comments

Over the past few weeks, I’ve been inundated with comments on the site. Because I do have a day job and other responsibilities, I’m not able to deal with all of them. Therefore, I’m going to be experimenting around with comments for the next few weeks. In addition to the spam filters and captcha requirements I currently have I’ll be expiring comments on articles over 90 days and a few other things WordPress makes kinda’ easy. But, in the short term, I’ll be outright disabling comments until I can get caught up. Sorry for the inconvenience.

Also, if you have a comment that you’ve posted I will get to it. Thanks for the patience!

Articles and Books Mac OS X Mac OS X Server Mac Security sites

More Visitors Than Ever

The past 3 days have netted between 15,000 and 20,000 unique visitors per day, with each day seeing a bit more traffic than the previous. Given that most of my readers are at work (according to the stats at least), I’m guessing that will slow down as usual come Saturday. But that’s still 2 of the 3 top days ever for krypted.com, so thanks for caring and I hope you’re enjoying the articles! Bandwidth overages for krypted.com are one of those things I find myself always happy to pay! :)