Last week or so I did some rearranging on my site. For example, I converted some pages into actual blog postings, moved things around so I could choose a more streamlined page layout. After converting my pages (How to unstick a stuck pixel page) to posts, I noticed that the amount of traffic started a steady decline. At this rate, I may be the only viewer to my website
However, that is not stopping the spam bots. I seem to get around 20-30 spam comments a day which is confusing. Either they are posting directly via link or the Google Analytics is failing me, we shall see.
Edit: As it turns out, the plugin I was using to do tracking inserts gave my tracking ID of UA-000000-0 therefor my traffic was not getting logged at all. Started checking into after looking at the traffic logs on my server and seeing traffic.
For logging purposes if you wanted to see which host got what IP when, this will be a good way to do it. Assuming your dhcpd.conf file is generated dynamically via 3rd party software like NetReg for example. All you will need to do is add the following code in your DHCP file:
if known {
log (info, concat ("HOSTNAME: ", host-decl-name," on ",binary-to-ascii (10,8,".", leased-address)," at ", binary-to-ascii (16,8,":", substring (hardware,1,6)))); }
It will log to the DHCP Log file as information for hostname by using their host declaration, their lease address and finally their hardware ethernet address.
The log file before the change (timestamps removed): DHCPDISCOVER from d0:50:56:ac:74:71 via eth0
DHCPOFFER on 208.x.x.75 to d0:50:56:ac:74:71 via eth0
DHCPREQUEST for208.x.x.75(172.18.1.2)from d0:50:56:ac:74:71 via eth0
DHCPACK on 208.x.x.75 to d0:50:56:ac:74:71 via eth0
The log file after adding the function: HOSTNAME: TestPC001 on 208.x.x.75 at d0:50:56:ac:74:71
DHCPDISCOVER from d0:50:56:ac:74:71 via eth0
DHCPOFFER on 208.x.x.75 to d0:50:56:ac:74:71 via eth0
DHCPREQUEST for208.x.x.75(172.18.1.2)from d0:50:56:ac:74:71 via eth0
DHCPACK on 208.x.x.75 to d0:50:56:ac:74:71 via eth0
I recently got a Samsung Omnia phone and I love this thing. Then I decided to play around with .NET programming for windows mobile and decided to write a small alarm app using the accelerometer. The problem was, there was hardly any code about using the accelerometer. That is until I stumbled upon the SDK for Samsung Mobile Phones. The one catch was, it is written in C++, with DLL wrappers written in C#, no VB. So I took the C# wrapper code and converted it over to VB.NET and included it in my application.
If your like me and ran ‘apt-get upgrade’ while running Backtrack 4, you may have noticed that it breaks KDE. When you restart, you are taken to the X screen, where your only options are basically to open an X terminal. After doing some research, I have found a simple fix. You can run the following commands:
Well, last hour or so has been interesting. I was going to my website I was working on http://gadsdenwifi.org and my antivirus popped up a notice saying it deleted a temporary internet file. I shrugged it off (as I had other tabs open and thought it was one of others. After a bit I noticed that my computer was starting to run slow and sluggish. Thats when I noticed acrobat.exe using 800 megs of ram and slowly climbing. Also thats when I noticed sysguard.exe in my process list. No surprise to me some anti spyware program popped up and started running on my computer (spyware protect 2009). Running combo fix took care of that problem. So after fixing the spyware issue, I started playing around with the newly uploaded database information. I then decided to change the test site around just a bit. I uploaded index.php and got a message saying that the file on the server was newer than the last uploaded one, so I went to check it out. Thats when I found this nice little bugger:
Some reason, every index.php file on my webserver had this code enbedded around a few php eco statements, which caused my antivirus to pop up warning me that there was a trojan trying to infest my computer. All infected files have been removed and everything should be normal (I hope).
I was caught in a hail storm at the officemax parking lot (pulled over due to the rain falling so hard that I couldnt see) in Gadsden, AL. I happened to have my camera so I recoreded it.
For an update, I have posted a screenshot of the program I wrote (few hours of sitting down and punching the good ol’ keyboard). The program takes a Wifi Scan text document and converts it into a Google Earth KML file. If you click the image below, you can see the full screen shot of what my program looks like, the tree structure listed in google earth and the information that pops up when you click on said point.
By doing this little project, i’ve learned about writing XML documents and how easy it can be and how big of a pain it could be. Also this project stresses the way I used to code. For example, a 750 KB file with 6,000 data points works flawlessly. Toss in a 10 meg file with 54,000 data points and you will see real quick that handling data is alot different.
Things I’ve Learned:
Redim Preserve statement is a bad bad bad idea if called once per loop. It basically creates an array thats bigger (or smaller), copies the old array to the new array (2x memeory consumption), then destroys the old array.
Better to Add items all at once vs one at a time on List View Boxes (still learning to program this one).
Google Earth is picky when it comes to <document> and <Document> …
This program for the most part is complete, once I fine tune it and get everything running smoothly, I will see about the website side of this project.
Went and saw Unveil play at Dr. Feelgoodz on Friday. Here is a sample of what they play. Sorry for poor audio quality, my camera is not ment to be a video camera nor does it have a filter over the microphone to make the sound quality better.