Why Internet Laws are Detrimental to Americans

Recently the FTC has created new guidelines/restrictions for the internet. These laws especially effect bloggers who review products. Any review of products requires a disclosure of the blogger’s relationship with the product brand, if such a relationship exists. So, if you are a blogger and you review a product, if you received money or something from the product manufacturer, you now MUST disclose that information.

Now, on the outside, this appears to be a good thing. It should lower the amount of dishonesty on the internet, right? The answer is “yes and no”. It will limit Americans from doing this. Americans make up about 5% of the Earth’s population. Did you know that there are more people in China that speak English than there are people in the United States total? My point is, this regulation, along with many others, promotes outsourcing.

It is becoming increasingly difficult for an American to stay afloat in this world. I know, many of the non-Americans out there will say “but you guys have had it good for so long.” I agree, we have. We’ve had it so good because we used to rely on freedom more. Our country could once pride itself on being free. We still have a lot of freedom, don’t get me wrong. The fact that I’m still able to write a blog post like this reflects that I still have freedoms. They are just much more limited now when compared to even 50 years ago.

I may sound like a broken record but corporations run this country. We are losing our country.

Twutils.com

I’ve starting a new website and have almost completed development on the first tool. It’s a site devoted to Twitter tools. I call it Twutils. The first utility is a spam removing tool called Spit Remover. I’ve settled on “Spit” as a good name for Twitter Spam. I’m in the process of moving the site to a new host due to DNS issues on the previous host. A few other ideas I have for Twutils are:
1.) Tweet Scheduler
2.) Follower generator
3.) Unfollow those that don’t follow you (like Huitter.com’s Mutuality.

I’m also planning to keep track of users who are removed with the spit remover. I may use this to show blacklisted spammers. I may generate a list of the most removed spammers, and allow people to remove these people automatically. Or I may just use it to create the biggest spammers list.

Wikipedia: A credible source?

Most people who have attended college in the last few years know that colleges don’t like Wiki used as a source to papers. Their reasoning is sound, because Wikipedia is, after all, community-based. Anyone can make changes to a wiki article.

However, I tend to agree with the open source way of thinking. More eyes on the issue makes it less likely that someone can take advantage of it. Let me explain.

Security is actually a big selling point of open source software. Anyone can look at the source code. This means that anyone could easily see where the software could be exploited. At first, it sounds like open source would be bad for security. All those prying eyes will find all kinds of ways to exploit the software right? Actually the answer is no. Those prying eyes help keep everyone in check. You see, if you contribute to a piece of open source software and you add some malicious code, someone will spot it, correct it, and report you.

The same concept goes for Wikipedia, in my book. If an article makes a false statement, someone will normally find it and correct it. With potentially millions of people editing each article, it becomes increasingly difficult for the article to be biased.

Universities may not accept Wikipedia as a creditable source, but it’s still an excellent choice for finding information. In fact, it’s probably more accurate than most of the citations the schools will accept.

I mean think about it. They will accept a citation from CNN.com or FoxNews.com but won’t accept a citation of Wiki? If anything CNN and Fox are much more biased. So, while I understand that Wikipedia isn’t a concrete source, neither are other websites that are accepted. In fact, most sources are biased. Unless the source tells only the fact, there is probably an opinion mixed in there somewhere. That’s what journalists do. That’s what scientists do. What are the differences between Wikipedia and Encarta? One is maintained by millions of people who review each other’s work. The other is a proprietary medium which is closed source and only a few people can review the contents. I prefer wiki.

Warning: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration

If you’ve seen that error message you’ve probably happened upon a security feature that your shared web hosting provider has enabled. There are a few work-arounds for this error but most require you to have certain privileges on the server that you probably don’t have. Quite frankly, if you are getting these errors you probably don’t have the ability to change these settings yourself.

Rather than try to get the provider to change these settings (let’s face it, they have this enabled for a reason and surely someone else has already tried to get this changed, right?) one can easily get around this with Curl. In most cases, curl will be enabled on the server. So here is the quick and dirty way to get around it:

Create a PHP file and name it anything you want. For the sake of this article we’ll refer to it as curl_functions.php. In this file put the following functions:

<php
function setupMyCurl() {
   $myCurl = curl_init(); 
   $temp = curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1);
   return($myCurl);
}
define("myCurl", setupMyCurl());
function curl_get_contents($url) {
   $temp = curl_setopt(myCurl, CURLOPT_URL, $url);
   return(curl_exec(myCurl));
}
?>

Include or require this file. Then, all you have to do is use the curl_get_contents($url) in your code to pull in the xml to a string. Then use the simplexml_load_string() instead of simplexml_load_file(). This will give you the same results but works around the url fopen feature. If you don’t have curl enabled on your host, GET ANOTHER HOST. 🙂

iTunes University

I have to admit, I wasn’t a fan of iTunes until I got my first Mac Mini. I started listening to one of the radio stations on it. To be exact, I liked the solo piano station. I wasn’t aware of many of the features on iTunes.

Recently I decided to take up iPhone app development. I found a great course on iTunesU. It’s a complete Stanford Univerity course on iPhone development. It is made up of around 20 videos.

So I started to browse through some of the other courses available on iTunesU. Man, I can not explain how excited I was when I started reading through all the available course. I know, most people won’t care about lecture videos. However, I love it. I’m sitting here watching a lecture on Physics from MIT. This is great stuff.

How do I Block and Unblock Internet Sites?

Apparently this is a question many people want asked so I’ll touch on what I use to block/unblock internet sites from my home network. This method will not require one to purchase any additional software or anything. It is designed specifically to be the low cost effective solution.

First of all, your home router controls all of the traffic going to an from your home computers. Some people don’t have routers. The modem, whether it be a DSL, Cable, or dialup modem, handles their routing. These instructions will work for those people as well, but anytime I mention the router, please understand that if there is no router, the modem will be doing all the work.

The router software for various models of routers are different, so it is nearly impossible to have a step-by-step howto for each of them here. Instead, it’s suffice to say that most routers have a block/unblock function. Most even let you time these blocks/unblocks. So one can set up rules as to when certain sites can be viewed.

Refer to your router’s manual for these instructions. It is usually rather easy.

There is a further step that can either be used in conjunction with the router blocks or by itself entirely. This method involves signing up for a free service call OpenDNS.

OpenDNS is a free service that I’ve used for a little over a year. It gives you a great DNS service, plus allows you to do various other interesting things like protect your home network. Basically, all one has to do is sign up for the account and change their DNS settings in the router to the IPs provided by OpenDNS. All future DNS request will go to OpenDNS.

I should probably first explain what DNS is to begin with. DNS stands for Domain Name Server/Service. When you type google.com into your web browser, your computer has no idea what google.com is. It’s oblivious. First it has to query the DNS server. Usually the IP of the DNS server is provided by your ISP. In many cases, the ISP provided DNS server lags behind a bit. You computer asks the DNS server where it can find google.com. The DNS server then responds with the IP address for google.com. Your browser then knows where to fetch the information.

The DNS server configuration can be changed in your router. You will override the ISP defaults and put in the OpenDNS server IPs instead.

OpenDNS updates much faster than typical ISP DNS servers. When you buy a domain name and direct it to your hosting provider, it can take up to 72 hours for the DNS information to propagate across the internet. OpenDNS usually propagates within minutes.

Some of the protection OpenDNS offers is right up there or better than many parental block software. There are automatic settings to make it easy to block pornography or harmful sites. One can also specify sites to block. Anytime a local user tries to access a blocked website, they are told that it is restricted. This is great free service, and I hope this will help you block those unwanted websites, and if you have any questions drop a comment.

Why do Google Search Results Change?

I was recently asked by my wife why Google search results change. I had noticed it before but didn’t spend much time dwelling on it because my first thought was that Google uses many locations and many datacenters to hand out search results. The varying results are differences in the data stored at each location. Depending on which datacenter you are getting results from at any given time, you can see a huge change in results. As an example to this I made a quick video to show how going through a proxy server can make Facebook and youtube unblocked if they’re blocked.  In this video I’m going through a Linux server in Texas at first. Note the total results for the keyword while going through the proxy are 282. By removing the proxy and refreshing the search the number changed dramatically to 635,000 results.

I saw a video explanation of this behavior that stated that Google was a beach, and while I enjoyed the analogy, it isn’t entirely correct. There is a lot happening on the internet, but there’s no way Google can index it all at once, or even catch it all. That’s why they have many data centers, each pulling their own part of the weight. I’d imagine that the synchronization of the data takes time, that is if they actually synchronize the data at all. It may be that Google does this to randomize search results a bit in order to gauge relevancy of each result. At any rate, the keyword results can vary.

Also, after making this video, I captured the packets using wireshark and found that the request from my home internet connection was querying IP 208.67.217.231 and my proxy server is pulling the query from 74.125.159.103. Also neither of the search results were correct. After digging into the other pages of results there is a total of 64 results omitting the repeats. ICHY reports that the keyword has 3,640 competition. So, from what I can see of the data on both sides, ICHY doesn’t report very accurate competition numbers according to their own explanation of the relevant results. Other keywords in their list yielded similar results discrepancies.

Adventures in analog video recording on Linux

Linux does many things well, but the multimedia experience can be lacking without the correct bit of hackery. I mean, some cool things can be done with Linux on the multimedia side, but typically it’ll take a lot of work to learn how it’s done. Mac and Windows make complex things simple, while Linux makes simple things complex.

Back when I purchased my TV tuner card for my PC, I was using Linux as my main OS. I still use it daily but not on my main PC. Only occasionally do I boot to Linux on it. I typically run Windows Server 2008 as I’ve talked about on previous posts. When I bought the tuner I wanted to make sure that it worked under Linux. So, I purchased one that was made specifically for Linux, a PCHDTV 5500.

It has served its purpose as a TV tuner, since I watched a year or so of cable TV in analog on it prior to the digital switch. I have never been able to get the HD side of things to work on it. Either it’s beyond me or my cable company just had all of the channels encrypted. I didn’t spend enough time on it to find out.

Recording analog video in Linux can be FUN. By “fun” I mean the type of fun one has pulling their own toe hairs. Be forewarned, getting a good recording is best done from the command line. I tried many ways. I ended up going with mencoder.

That being said, there’s not much you can’t do with mencoder and ffmpeg from the command line.

I have some VHS recordings I’m converting to AVI and then later on to DVD. I first had to purchase a VCR because, wouldn’t you know it, I didn’t have one that worked.

After that I had to come up with a good way to connect it to my capture card. The card has coax and component inputs. The new VCR didn’t come with any coaxial connections. The capture card had a yellow RCA connection for video. I could use that but then there was the problem with audio. The capture card had a 1/8″ jack for audio. Luckily I had an RCA-to-1/8″ adapter for one of my gadgets (not sure which). I ended up using two sets of RCA’s.

I was amazed I actually got audio and video from it. Here’s where more fun came in. I was running virtualbox in the background. Everything I tried to use to record the video told me that /dev/dsp could not be opened. I went through many hoops trying to troubleshoot that issue. I should have realized it sooner but it was all virtualbox’s fault. Next time I’ll make sure it’s not running when I’m dealing with audio.

After all of those problems were worked out, I was able to use:

mencoder tv:///1 -tv driver=v4l2:width=640:height=480:forceaudio:adevice=/dev/dsp -ovc xvid -xvidencopts bitrate=-750:threads=2 -oac mp3lame -lameopts cbr:br=64:mode=3 -o /home/five/homevid.avi

I’ll try to explain some of what is going on in that command. Mencoder is the program itself. There’s little to be said there. The next part is interesting: tv:///1  That tells mencoder we are using the tv card and that we want to use the composite1 input. Typically it defaults to input=0 or tv:///0, which is the coax TV input. There are three inputs on the card: tv, composite, and s-video. The next part (driver=v4l2) tells mencoder that we want to use Video4Linux2. Then we specify the width and height of the capture. The forceaudio bit was placed there during my troubleshooting. It just forces the use of audio device /dev/dsp. I had tried a couple other devices during my troubleshooting, thus the addition of that option. Then we have the option for output video codec (xvid). I set the bitrate and the number of threads. I actually upped that bitrate considerably later to around 2048. I believe I’ll end up upping it even more for the next vid. I did the same with the audio output bitrate. I set it up to 256.

That should help anyone experiencing some of the pain I went through.

Slow wifi on iPhone 3GS

I bought a new iPhone 3G S yesterday. These things are very nice, and I’m not an Apple fan boy by any stretch. One thing that was bugging me, however, was the slow speed I got a very  high quality landline phone service so I was getting from the wifi. I was getting faster speeds from the 3G network than my home wireless, and this is while I was sitting right next to the router, so it wasn’t a signal problem.

I found the solution to this after reading through many, many forum posts. I saw others were having the same problem as me and were getting responses from people like “reboot the router” or “reset your network settings on the iPhone.” This is all well and good and I’m sure those people meant well but there was a big problem with their responses.

First of all, everyone having this trouble said that the wireless worked fine on their computers but not on the iPhone. Secondly, there aren’t many settings to “reset” inside the iPhone’s network settings. There’s just not anything in there that would cause this type of issue.

The solution to the problem ended up being an advanced setting on the router itself. From what I can tell of the issue and it’s solution, the iPhone’s wifi is just a bit more picky than a standard PC wifi device. Here are the settings I eventually had to change on my Netgear router.iphonewifisettings

The important items here are the fragmentation threshold and the CTS/RTS threshold. Each of these were set to their max value previously. After changing these two settings, my iPhone started working like a champ.

If you are experiencing the same problems with your iPhone or iPod Touch’s wifi, change these settings on your router. Also note, these settings have slightly different names on some routers. Refer to your router’s manual for more info.

Edit: I’ve gone much lower with these number with much success for my less powerful mobile devices. Going too low does seem to cause issues with more powerful computers on the wireless network. Test this out with lower settings and post your success or failures in the comments.
[phpbay]mac mini, 5, “”, “”[/phpbay]

British Comedy at its best: The IT Crowd

I love British comedy. Let me get that out of the way. I especially like a certain brand of humor that is reflected in the actual British accent and a “matter-of-fact” attitude. In American terms, I equate it to Bill Murray’s character in Ghost Busters. He’s very nonchalant about everything. His girlfriend is hovering above her bed in one scene and he’s just calm as can be.

Those type of situations tend to gather the most laughs from me, and British humor normally carries a lot of those situations. So that’s my explanation as to why I love British Humor. Now, in many cases, when a TV show is popular in the UK, we Americans think we can adapt it. The Office, for example was originally a show from the UK. It was probably brilliant there, but I’ve never been a big fan of our version of it.

Our version is good, don’t get me wrong. It’s just that I’m sure their version was much better, and we butchered it. That’s why it’s no surprise to me that the American version of The IT Crowd never took off.

I LOVE The IT Crowd, by the way. It’s one of my all-time favorite TV shows. If not for Youtube.com. I would never have seen it. It’s a shame that we can’t watch it here in the states, with its original cast. I’m sure it wouldn’t be very popular, but the people who like it would LOVE it. Most Americans probably wouldn’t like the show, but there are some of us that would give up 50 channels of our cable access just to be able to watch shows like that.