The DLink 2553 Wireless Access Point has the option of logging to a syslog server.
I configured on of my Linux machines to receive the syslog messages.
To make this happen I need to configure the linux machine to listen for and log messages and then configure the WAP to send them. I used a Mandriva 2010.1 machine which is using rsyslog as opposed to syslog so there are a few differences from what you may google. Rsyslog is in the process of removing all command line switches and replacing them with config file directives so the often googled add -r to syslog does not work.
The file /etc/rsyslog.d/00_common.conf has most of the rsyslog directives in it. In this file I found the following two lines and uncommented them.
$ModLoad imudp.so
$UDPServerRun 514
This enabled the UDP server on port 514. Then make sure that your firewall allows inbound packets on that port. I restarted the rsyslog server with the following command.
service rsyslogd restart
Now I logged into the DLink and entered the IP address of the linux machine and clicked apply.
Once it restarted I logged into one of the mobile machines and checked the log on the linux machine and to my happiness I saw some log messages.
Oct 11 15:23:34 192.168.1.21 hostapd: [Wireless]Group key update success:STA 00:16:FF:C2:E8:FF
Now I want to be able to send all of the Wireless messages to a separate file.
Skispcs
Monday, October 11, 2010
Sunday, July 25, 2010
Konus Spotting Scope Review
Up for review today is the Konus Spotting Scope 20-60x 80mm which I purchased from Midway USA on sale for $198.00. Midway has some of the best prices around and I have good experiences both of the times I have had to contact customer service.
A decent spotting scope is a necessity for high power rifle shooting. The Konus scope has been talked about quite a bit with an assortment of good reviews, and Jim Owens seems to like it.
The Konus has a variable zoom from 20x to 60x and an 80mm objective lens with a sun shade. It weighs just under four pounds and is about 17" long. Here is the picture of the box that the scope comes packaged in.
Once you open the box you can see the carrying case that comes with the scope. The carrying case is kind of thin and nothing special but it helps keep everything together.
Unzipping the carrying case reveals the scope itself and the accessories that come with it. Included are a camera adapter and a plastic table top tripod.
The tripod works acceptably on the table but it is a bit wobbly and apt to tip over. I will be looking for a replacement tripod in the near future but the included one works for now.
When I first started to use the scope, the zoom adjustment was VERY tight and was difficult to turn. The eyepiece would come unscrewed from the force of turning the zoom. After a few minutes of use and turning the zoom and tightening the eyepiece, the tightness has appeared to go away and it is adjusting smoothly for now. I hope that it stays this way.
The scope also comes with a camera adapter for taking pictures. It screws on to the eyepiece and allows you to adjust the zoom even when installed.
Once I had it unpacked and setup and finished playing with the adjustments, I settled in to shoot and try it out. Overall I was impressed with the optics and the quality of the image. Even when the zoom was cranked all the way up the image was clear and color was close to normal. Having only used this scope two times now I would not hesitate to recommend it to some one else as long as you plan on getting another tripod.
I had intended to take pictures with my camera attached but I forgot to bring the camera to range so I took a few shots with my cell phone camera. I am hesitant to put them up since they were taken with a shaky cell phone but I will put one up and post another image that was taken by another reviewer with a better camera.
Shaky cell phone camera shot.
200 meter shot from a review on Inland Shooters.
A decent spotting scope is a necessity for high power rifle shooting. The Konus scope has been talked about quite a bit with an assortment of good reviews, and Jim Owens seems to like it.
The Konus has a variable zoom from 20x to 60x and an 80mm objective lens with a sun shade. It weighs just under four pounds and is about 17" long. Here is the picture of the box that the scope comes packaged in.
Once you open the box you can see the carrying case that comes with the scope. The carrying case is kind of thin and nothing special but it helps keep everything together.
Unzipping the carrying case reveals the scope itself and the accessories that come with it. Included are a camera adapter and a plastic table top tripod.
The tripod works acceptably on the table but it is a bit wobbly and apt to tip over. I will be looking for a replacement tripod in the near future but the included one works for now.
When I first started to use the scope, the zoom adjustment was VERY tight and was difficult to turn. The eyepiece would come unscrewed from the force of turning the zoom. After a few minutes of use and turning the zoom and tightening the eyepiece, the tightness has appeared to go away and it is adjusting smoothly for now. I hope that it stays this way.
The scope also comes with a camera adapter for taking pictures. It screws on to the eyepiece and allows you to adjust the zoom even when installed.
Once I had it unpacked and setup and finished playing with the adjustments, I settled in to shoot and try it out. Overall I was impressed with the optics and the quality of the image. Even when the zoom was cranked all the way up the image was clear and color was close to normal. Having only used this scope two times now I would not hesitate to recommend it to some one else as long as you plan on getting another tripod.
I had intended to take pictures with my camera attached but I forgot to bring the camera to range so I took a few shots with my cell phone camera. I am hesitant to put them up since they were taken with a shaky cell phone but I will put one up and post another image that was taken by another reviewer with a better camera.
Shaky cell phone camera shot.
200 meter shot from a review on Inland Shooters.
Thursday, March 25, 2010
Stock Refinishing with Tru Oil
Not too long ago I bought one of the Civilian Marksmanship specials. The specials are remanufactured M1 Garands with new barrels and new stocks. Once mine arrived I was rather pleased with how it looked, however I needed to do something with the stock as it was essentially bare wood when I got it. I decided to use Birchwood Casey's Tru Oil on this project.
Unfortunately I did not take any pictures before I started so I will use some proxy pictures that hopefully will serve the purpose.
On the right is a picture of the CMP special from the CMP website. You can see that the wood looks nice but it needs some finish. After receiving mine I took all of the furniture off and used a bit of 400 grit paper to smooth out a few rough places and then give it a light sanding overall.
Then I blew all the dust off with my compressor and then used a tack cloth to remove anything else.
Seeing as how I failed to take pictures of my stock before refinishing, I am going to shoe some pictures of a box that I made for my wife not too long ago. I made a small jewelry type box out of mahogany and I used Tru Oil to finish it.
The piece on the left is this picture is raw mahogany that I had cut to form one side of the box. I sanded it with 200 and then 400 grit paper to smooth it out. Then after cleaning it and wiping it down I applied the first coat of Tru Oil. I used a piece of cheese cloth folded up into a pad and applied a light coat. I stress the light coat part. You do not want to put this on too heavy. It would probably be a good idea to do this in a dust free environment.
The piece on the right has had one coat of Tru Oil applied to it.
The first coat will probably soak right in but keep it light and spread the oil into the wood grain. The first coat will probably need to dry for at least 2 to 3 hours depending on the humidity.
Once the first coat is dry you will need to buff it out with some steel wool. I usually use OO or medium grade steel wool depending on the branding. In the picture on the right the steel wool grades from the left are coarse, medium, and fine. This brand of steel wool the medium is about OO and the fine was close to OOOO steel wool.
You do not need to push hard when buffing the finish, just some light pressure should be fine.
After buffing out the finish I used the compressor to blow out the dust and wool particles and used a tack cloth to clean up the surface. Then I applied a second coat of Tru Oil. You will find that the second coat will use less oil than the first coat so go sparingly at first.
In the picture on the left you can compare the raw mahogany to a piece with two coats of Tru Oil on it.
For my Garand I used three coats of Tru Oil. Some people will say that you need to use more. I have seen some nice rifles that have used six to eight coats but I was pleased with finish after three and at the time I was tired of buffing it with steel wool and I wanted to get out and shoot it!!!!
On the right is a picture of my Garand with the three coats of Tru Oil. You can see that it has a nice satin finish and the Tru Oil really made the grain pop.
And now since I know you want to see it is a picture of the box that I made for my wife. With this I went to six coats of Tru Oil. If you click on the picture and look close you can see that not all of the grain is filled in. You could go even further if you wanted and continue applying coats and buffing until all of the grain is filled but I kind of like the way it looks.
You can put a really nice finish on your gun stock with Birchwood Casey's Tru Oil. There is a little bit of work required with the prep work and buffing. If you take your time and plan carefully you can end up with some nice looking furniture.
Unfortunately I did not take any pictures before I started so I will use some proxy pictures that hopefully will serve the purpose.
On the right is a picture of the CMP special from the CMP website. You can see that the wood looks nice but it needs some finish. After receiving mine I took all of the furniture off and used a bit of 400 grit paper to smooth out a few rough places and then give it a light sanding overall.
Then I blew all the dust off with my compressor and then used a tack cloth to remove anything else.
Seeing as how I failed to take pictures of my stock before refinishing, I am going to shoe some pictures of a box that I made for my wife not too long ago. I made a small jewelry type box out of mahogany and I used Tru Oil to finish it.
The piece on the left is this picture is raw mahogany that I had cut to form one side of the box. I sanded it with 200 and then 400 grit paper to smooth it out. Then after cleaning it and wiping it down I applied the first coat of Tru Oil. I used a piece of cheese cloth folded up into a pad and applied a light coat. I stress the light coat part. You do not want to put this on too heavy. It would probably be a good idea to do this in a dust free environment.
The piece on the right has had one coat of Tru Oil applied to it.
The first coat will probably soak right in but keep it light and spread the oil into the wood grain. The first coat will probably need to dry for at least 2 to 3 hours depending on the humidity.
Once the first coat is dry you will need to buff it out with some steel wool. I usually use OO or medium grade steel wool depending on the branding. In the picture on the right the steel wool grades from the left are coarse, medium, and fine. This brand of steel wool the medium is about OO and the fine was close to OOOO steel wool.
You do not need to push hard when buffing the finish, just some light pressure should be fine.
After buffing out the finish I used the compressor to blow out the dust and wool particles and used a tack cloth to clean up the surface. Then I applied a second coat of Tru Oil. You will find that the second coat will use less oil than the first coat so go sparingly at first.
In the picture on the left you can compare the raw mahogany to a piece with two coats of Tru Oil on it.
For my Garand I used three coats of Tru Oil. Some people will say that you need to use more. I have seen some nice rifles that have used six to eight coats but I was pleased with finish after three and at the time I was tired of buffing it with steel wool and I wanted to get out and shoot it!!!!
On the right is a picture of my Garand with the three coats of Tru Oil. You can see that it has a nice satin finish and the Tru Oil really made the grain pop.
And now since I know you want to see it is a picture of the box that I made for my wife. With this I went to six coats of Tru Oil. If you click on the picture and look close you can see that not all of the grain is filled in. You could go even further if you wanted and continue applying coats and buffing until all of the grain is filled but I kind of like the way it looks.
You can put a really nice finish on your gun stock with Birchwood Casey's Tru Oil. There is a little bit of work required with the prep work and buffing. If you take your time and plan carefully you can end up with some nice looking furniture.
Thursday, March 11, 2010
Email Content Type
I have a Drupal 6.15 instance that uses the SimpleNews(6.x-1.0) and Mimemail(6.x-1.0-alpha1) modules.
When I send a newsletter and receive it in Outlook 2007 I receive a poorly formatted text email with an html attachment. What I want is for the html attachment to be the email.
At first glance this is a client side problem with the client(Outlook) not interpreting the content-type correctly. But it is not real important if that is correct or not because I cannot expect all of the customers to change their email clients just for me. So I need to change something on the server side to force this to appear correctly in the email clients of the customers.
The content type I am seeing the received email is
I read some forums and dug around in the Mimemail module code and decided to change the module to force the content type to multipart/mixed.
To do this added an extra line to mimemail.inc at line 321
After sending a few test emails this seems to have addressed the problem. There may be a better or more correct way to address this but it works for now.
UPDATE:
There was an update to the Mimemail Module that invalidates the line number I mentioned before.
The new version is 6.x-1.0-alpha2 dated 24 March 2010.
The following line is the last line and the return from the function mimemail_html_body
What you want to do is force the mime type just before the function returns. So just prior to the return set the mimetype with the following line.
When I send a newsletter and receive it in Outlook 2007 I receive a poorly formatted text email with an html attachment. What I want is for the html attachment to be the email.
At first glance this is a client side problem with the client(Outlook) not interpreting the content-type correctly. But it is not real important if that is correct or not because I cannot expect all of the customers to change their email clients just for me. So I need to change something on the server side to force this to appear correctly in the email clients of the customers.
The content type I am seeing the received email is
Content-Type: multipart/alternative; charset="utf-8";
I read some forums and dug around in the Mimemail module code and decided to change the module to force the content type to multipart/mixed.
To do this added an extra line to mimemail.inc at line 321
$content_type = 'multipart/mixed'; return mimemail_multipart_body($parts, "$content_type; charset=utf-8");
After sending a few test emails this seems to have addressed the problem. There may be a better or more correct way to address this but it works for now.
UPDATE:
There was an update to the Mimemail Module that invalidates the line number I mentioned before.
The new version is 6.x-1.0-alpha2 dated 24 March 2010.
The following line is the last line and the return from the function mimemail_html_body
return mimemail_multipart_body($parts, "$content_type; charset=utf-8");
What you want to do is force the mime type just before the function returns. So just prior to the return set the mimetype with the following line.
$content_type = 'multipart/mixed';
Thursday, March 4, 2010
Leupold Mark AR Review
I have been in the market for some decent optics for my flat-top AR. With the economy the way it is I initially tried to keep the cost down and crashed and burned with the NCStar Mark III. Thankfully Midway USA made the recovery much easier with their no hassle return policy. After that experience I put aside some money for a little while until I was able to save up enough to order a Leupold Mark AR from Optics Planet with a coupon. I also purchased a one-piece Burris Scope Mount from Midway to go with the scope.
The Leupold Mark AR comes in a 1.5-4x20 model and a 3-9x40 model. You can buy it in Duplxe or Mildot reticles and the lenses are coated with Leupold's Multicoat 4 System. This system is supposed to result in increased brightness, contrast, and clarity. The view through the scope looked good to me although I did have some issues making out 22 cal holes at 100yds.
The elevation knob is adjustable in 1/2 moa increments and includes a built in bullet drop compensator calibrated for the M193 round. A 55gr bullet at 3200fps. Leupold offers the ability to purchase a custom calibrated compensator for the load of your choice.
I mounted the scope to my AR using a Burris one piece mount. This particular mount is really intended for AR platforms with shorter stocks. I was very impressed with the amount of eye-relief that this scope offered. The optics were clear and easy to see.
I didn't have a lot of time this day so I got it sighted in and then started firing 3 round groups starting at 9x. 3 at 9x, 3 at 8x and so on down to 3x. You can see the results here 21 shots at 100yds. Not the best shooting in the world but I am happy to report that I did not have any real change in the point of Impact like I did with the NCStar. The next chance I get I will take some of my handloads out and practice for a little while. Even though the Leupold and the mount together were about four times the cost of the NCStar, there is a noticeable difference in the quality and I think it was worth saving up to purchase.
The Leupold Mark AR comes in a 1.5-4x20 model and a 3-9x40 model. You can buy it in Duplxe or Mildot reticles and the lenses are coated with Leupold's Multicoat 4 System. This system is supposed to result in increased brightness, contrast, and clarity. The view through the scope looked good to me although I did have some issues making out 22 cal holes at 100yds.
The elevation knob is adjustable in 1/2 moa increments and includes a built in bullet drop compensator calibrated for the M193 round. A 55gr bullet at 3200fps. Leupold offers the ability to purchase a custom calibrated compensator for the load of your choice.
I mounted the scope to my AR using a Burris one piece mount. This particular mount is really intended for AR platforms with shorter stocks. I was very impressed with the amount of eye-relief that this scope offered. The optics were clear and easy to see.For the real test I used some more of the Black Hills 55 gr ammo that I got on sale back before the election of '08. I bought a whole lot at the time, one because I got a good deal, two because I was under the impression that Black Hills was some good stuff. I have gone through quite a lot of this in the past few years and I have not been impressed. It is supposed to be 3200fps but I have had it chrono from 2800 to about 3120 and everywhere in between. Not the most accurate in the world but it was cheap and good for plinking.
I didn't have a lot of time this day so I got it sighted in and then started firing 3 round groups starting at 9x. 3 at 9x, 3 at 8x and so on down to 3x. You can see the results here 21 shots at 100yds. Not the best shooting in the world but I am happy to report that I did not have any real change in the point of Impact like I did with the NCStar. The next chance I get I will take some of my handloads out and practice for a little while. Even though the Leupold and the mount together were about four times the cost of the NCStar, there is a noticeable difference in the quality and I think it was worth saving up to purchase.Thursday, February 25, 2010
My Heart, My Choice
Canadian Politician comes to the United Stated for Health Care.
Source
Source
'My heart, my choice,' Williams says, defending decision for U.S. heart surgery
By Tara Brautigam (CP) – 22 hours ago
An unapologetic Danny Williams says he was aware his trip to the United States for heart surgery earlier this month would spark outcry, but he concluded his personal health trumped any public fallout over the controversial decision.
In an interview with The Canadian Press, Williams said he went to Miami to have a "minimally invasive" surgery for an ailment first detected nearly a year ago, based on the advice of his doctors.
"This was my heart, my choice and my health," Williams said late Monday from his condominium in Sarasota, Fla.
"I did not sign away my right to get the best possible health care for myself when I entered politics."
The 60-year-old Williams said doctors detected a heart murmur last spring and told him that one of his heart valves wasn't closing properly, creating a leakage.
He said he was told at the time that the problem was "moderate" and that he should come back for a checkup in six months.
Eight months later, in December, his doctors told him the problem had become severe and urged him to get his valve repaired immediately or risk heart failure, he said.
His doctors in Canada presented him with two options - a full or partial sternotomy, both of which would've required breaking bones, he said.
He said he spoke with and provided his medical information to a leading cardiac surgeon in New Jersey who is also from Newfoundland and Labrador. He advised him to seek treatment at the Mount Sinai Medical Center in Miami.
That's where he was treated by Dr. Joseph Lamelas, a cardiac surgeon who has performed more than 8,000 open-heart surgeries.
Williams said Lamelas made an incision under his arm that didn't require any bone breakage.
"I wanted to get in, get out fast, get back to work in a short period of time," the premier said.
Williams said he didn't announce his departure south of the border because he didn't want to create "a media gong show," but added that criticism would've followed him had he chose to have surgery in Canada.
"I would've been criticized if I had stayed in Canada and had been perceived as jumping a line or a wait list. ... I accept that. That's public life," he said.
"(But) this is not a unique phenomenon to me. This is something that happens with lots of families throughout this country, so I make no apologies for that."
Williams said his decision to go to the U.S. did not reflect any lack of faith in his own province's health care system.
"I have the utmost confidence in our own health care system in Newfoundland and Labrador, but we are just over half a million people," he said.
"We do whatever we can to provide the best possible health care that we can in Newfoundland and Labrador. The Canadian health care system has a great reputation, but this is a very specialized piece of surgery that had to be done and I went to somebody who's doing this three or four times a day, five, six days a week."
He quipped that he had "a heart of a 40-year-old, so that gives me 20 years new life," and said he intends to run in the next provincial election in 2011.
"I'm probably going to be around for a long time, hopefully, if God willing," he said.
"God forbid for the Canadian public I won't be around longer than ever."
Williams also said he paid for the treatment, but added he would seek any refunds he would be eligible for in Canada.
"If I'm entitled to any reimbursement from any Canadian health care system or any provincial health care system, then obviously I will apply for that as anybody else would," he said.
"But I wrote out the cheque myself and paid for it myself and to this point, I haven't even looked into the possibility of any reimbursement. I don't know what I'm entitled to, if anything, and if it's nothing, then so be it."
He is expected back at work in early March.
Thursday, February 18, 2010
Content Negotiation Apache Style
If the apache server is configured to allow it, you can turn on per directory Content Negotiation with an htaccess file.
Contents of .htaccess file
The permissions of the .htaccess file should be readable
Apache instructions for Content Negotiation
Contents of .htaccess file
Options All +MultiViewsThe permissions of the .htaccess file should be readable
-rw----r-- 1 owner group 24 2010-03-08 19:48 .htaccessApache instructions for Content Negotiation
Subscribe to:
Posts (Atom)









