A few days ago I ran into some very odd behavior. Even though I was setting my usernames and passwords via Docker secrets (so the same file on the db container and the app container), MySQL was throwing Access Denied errors at me. Thankfully all the frustrating details of my troubleshooting have left me, but I thought I would share both the problem, and the solution.
Be running multiple MySQL containers, and their associated application containers, on the same Docker network.
If you use FirewallD to manage your firewall rules, and you include a `forward-port` tag in your zone file that is missing the `to-port` or `to-addr` parameters, Docker will refuse to start.
<?xml version="1.0" encoding="utf-8"?> <zone target="DROP"> <description>public zone.</description> <service name="ssh" /> <forward-port port="51820" protocol="udp" /> </zone>
Will cause this output when you try to start Docker:
## The Problem
Over the years, one of my biggest frustrations when working with Open Source projects, has been learning how to communicate (get help, suggest features, etc.) in each different community.
Every community has a different style of communication. Some simply use GitHub issues for everything. Others have multiple mailing lists, discussion forums, and IRC channels.
Quite often, I've posted a question and been told I posted it in the wrong location. Usually politely, but it always has a negative effect on my interactions with that community.
Today I found out that Amazon's unlimited cloud drive storage plan for Prime members is going away. I found out via Hacker News, judging from the comments there, a lot of people were abusing the heck out of the plan. Unfortunately, Amazon has chosen to implement pricyer plans than they really should. I have a relatively small amount of data to back up, but it will still cost me about 3 times as much as it did before. Say goodbye to a budget...
This is just my notes on the subject of granting access to a S3 bucket to an AWS IAM User. Figuring it out was much harder than it should have been...
Today, for the first time, I received notice from Comcast that I was nearing my 1024GB data limit. 10 days after the month began. When they first notified me that they would be enforcing that limit, I wasn't too annoyed. 1024GB is a pretty decent amount of data. Certainly it's much better than the unenforced 250GB they had shown on my account before. Unfortunately, they did not make clear, one key piece of information. Upload data counts against the data limit.
It took me a while to figure out how to modify or add a user picture from inside a custom module. Google was not much help. So here's the answer I found, hope it helps someone.
First, you need an actual Drupal file object. Something you could reference a file id from. Like $newbieFile->fid.
I referenced modules/user/user.module and includes/file.inc to figure this out.
I've been using Observium at work to collect and graph SNMP logs for a couple years now. A while back the graphs started showing "Draw Error" instead of the actual graph. I poked at it a bit, but never got it fixed. I wasn't too worried since I want to use the ELK Stack for most of what Observium does in the future. Today, though, a coworker came and asked about Observium. So I decided to poke at it some more.
For the past couple weekends I've spent a few hours seeing if I could build a new personal site using Drupal 8. D8 recently released it's first couple release candidates, and set an official launch date. (November 19, 2015)
So far I've only created the very basics of a site. Nothing worth making public. Of course, I've also spent very little time on the project. That said, here are my initial thoughts.
Installation is just as easy as D7. No changes that I noticed.
As I'm writing this, Guardians of the Galaxy is pre-ordered on Amazon. When it comes out, I'll get the full movie on a physical Blu-Ray disc. When I stick that disc in my computer's Blu-Ray drive, open up my Blu-Ray player program, and hit play... I'm going to get nothing. The app is going to pop up a message saying that I need to pay more money to upgrade the app so it can get past the DRM on my movie.
That's right, a legitimate customer cannot watch the Blu-Ray he legitimately purchased.
Net Neutrality has been something of a major topic in some of the areas of the internet I visit. Unfortunately, I have yet to see anyone truly address the actual cause of the issue.
So, first, what is the issue?
Big internet service providers, currently, can limit the traffic of various companies. So Comcast could force Netflix's traffic to be slow. The ISP's want to take advantage of this, and charge companies like Netflix lots of money to keep their traffic fast.
This article describes the DRM that Microsoft is forcing onto the new Xbox One. And it's brought into focus why all DRM is evil. Not just annoying, but evil.
Changing the value of an attribute in an LDAP directory via php generally uses the ldap_mod_replace function. Something like:
$newvals = array('attribute' => 'value); ldap_mod_replace($ldap_connection, $dn, $newvals);
The problem I ran into was when the attribute was a boolean type. I kept getting:
ldap_mod_replace(): Modify: Invalid syntax
I've found it incredibly useful to be able to just start typing in an input box, and have a long table get pared down to only what I'm looking for. See Drupal's Module Filter for an example. Since I have an app I'm working on that will eventually need similar functionality, I wrote a quick proof of concept. It's rough, and I have no idea how well it will perform on large tables. But it might come in handy. Visit it on GitHub: https://gist.github.com/4028731
Right, so a blog post I read the other day mentioned the Terminator Terminal Emulator. It sounded nice, so I thought I'd try it.
One of my current projects requires authenticating against an LDAP directory. I initially assumed that you would get the password from the directory, then compare it with the user supplied password. That's the wrong way.
The correct way is simpler. Just try to bind the user to the LDAP directory. If it works, you have the correct password, if it doesn't, the password or username is wrong.
As you can see, I have migrated my personal blog to this site. It's now here: Personal Blog. I tried a couple methods, I used Feeds and was able to easily import posts, but I couldn't figure out how to get the comments as well. After a bit of searching, I found the Wordpress Migrate module. And it worked quite well.
NOTE: Before you try this, go here. I haven't tested the answer, but you likely have to compile some stuff to get LDAP auth working bug free. So, don't use the instructions below they are old and unlikely to work.
Just a quick note about enabling LDAP Authentication on Ubuntu 11.10.
It's a great day for Drupal Devs everywhere, the latest major version upgrade was finally released this morning! :D
First, Merry Christmas! It's that time of year! Remember that it isn't all about the presents and money, Christmas is a great time to remember that Jesus was born to save us all. That's where the real joy of these Holidays comes from. :D
So, I've been doing a lot of my Drupal development at work on Windows XP. For some reason Drupal was running extremly slow. After searching off and on for a few days, I finally stumbled across the right key words to find this: http://drupal.org/node/348202
Solution: increase realpath_cache_size in php.ini to something larger. I set it to 20M. I might make it bigger, we'll see. But at least Drupal is usable for now.
Oh, and I should note that when I am developing on Linux or on my server, Drupal is plenty fast. So this was a problem specific to my WAMP install.
My current project at work is creating a map of campus using Google Maps API. So far the experience has been decent. It's taken me about two weeks to get most of it working. Could have been less, but there were a few things I had to do to work around the API's limitations. So, here are a few of the pro's and con's I've found.
I just upgraded my graphics card. I had been using an onboard GeForce 8200, but my brother had a Radeon 4350 HD that he wasn't using. So I brought it home with me, and installed it tonight. Here are some impressions between my Vista 32 bit install, and my Ubuntu Lucid Lynx install.
Hey! Yet again, DavidReagan.net get's a new look. Drupal Gardens is giving away free beta keys to their Drupal site building service. I signed up for one, and a few days later they were nice enough to send one to me. It's pretty impressive what they've created. They make the creation of a Drupal site practically painless. Go check out this video. I'm definitely looking forward to seeing what else they add as time goes by.