Tuesday, May 10, 2011

That'll Teach Them Doctors a Thing or Two

Republicans are at it again. This time they're censoring what doctors can say in the examining room. A $500 fine will be assessed against any doctor that asks a patient whether he has guns in the home. The N.R.A. wanted to make asking a felony.

I don't think the law will stand up in court. I think it's amusing. Just when you think you've reached the end of the Republican barrel of stupidity, they pull out the bottom to reveal a tunnel leading down into the center of the earth.
by igor 04:20 4 replies by igor 09:32 0 comments

Not Original

A proverb came to me on waking this morning. "Live in such a manner that you may die with few regrets." But I am not sure it is any better than the efficient carpe diem. Also, it sounds awfully similar to other proverbs I have heard before.

I do not believe it possible to die with no regrets, as some say for dramatic effect. That's hubris, in the first place, because everybody makes mistakes, great or small, in the human existence. Surely if one has no regrets, one would not wish to die at all. That too is a regret.
by igor 04:20 4 replies by igor 09:32 0 comments

Monday, May 9, 2011

A Lack of Writing

One of my disappointments concerning ancient history is the lack of any written record for my closest ancestors from 3,000+ years ago. How did the people in Britain live, for instance? We can only draw general conclusions based on objects and bones that have been dug out of the ground. A great many questions arise which remain unanswered. Who were the heroes, the kings, the generals, the inventors, the priests? What were their names?

It's a pity our ancestors didn't take time out for writing in all the time they spent bludgeoning one another over the head with clubs. Have we strayed much from their ways? Not so much. There's literacy, but many prefer bludgeoning to writing. Literacy is viewed as a means to an end (a job, or more to the point, money). At the library, hordes are using computers, but few are reading any books. Funding for libraries continues to plummet. Soon, public libraries will go the way of the Tudor hospital.

Even the Roman Empire is a disappointment. At the height of their power and security, they chose to continue engaging in invasions, some extremely costly, much like our involvement in Afghanistan. The Romans showed little interest in seafaring or inventions, even though one of their inventors, the aptly named Hero, dabbled with a steam engine. Today also, the primary item on the national agenda is a costly, counter-productive war in which the country stands to gain nothing but debt. Our leaders are unconcerned with scientific research or development. All they care about is bludgeoning their enemies over the head with a club. Their evolution has not progressed beyond the ancient Celts or Romans.
by igor 04:20 4 replies by igor 09:32 0 comments

Stats Mislead

More than half of all net traffic today is composed of automated bots running errands for their masters--spammers, criminals, leaches, hackers, corporations, and spies for corporations and governments. If your stats page indicates you received 1000 visitors today, divide by half, to begin with, to arrive at a slightly more accurate figure. The number of bots may be much higher. Mine is an extremely conservative estimate. The actual number may be closer to seventy percent. I'm not pulling the number out of thin air. Out of curiosity, dedication, determination, or whatever strange whim possesses me, perhaps by channeling the spirit of a watchdog, I have burned the midnight oil many a night analyzing raw server logs.

Few bots identify themselves. Today, these seem rare as unicorns, except for the major search engines. Most disguise themselves as users with a browser. Thus, few are identified by statistical engines. Nevertheless, people often quote me high numbers for their site. Do I expect anyone besides another dedicated admin to believe me? No. And few admins these days go to the trouble of browsing a raw log.

On this site, I believe eighty percent of the visitors are non-human. But that's not so bad. The robot crowd may be smarter on the whole than the humans, based upon some of the lame comments I've received over the years that indicate my readers are reacting to the first phrase, sentence or technical difficulty they encounter rather than reading my posts in their entirety. Heaven forbid that any dungeon crawl user spend more than five minutes of his precious time on solving a problem before pestering me to figure every little thing out for them. Lazybones is a worldwide epidemic. Perhaps catering to the "cheating" crowd attracts a higher proportion of the lazybones. I'll tell you what, when I was fourteen, I did not have the Internet feeding me instant solutions to every difficulty. All I had were my programming manuals, which I read cover to cover, and the computer, and I figured things out on my own, enjoyed it and took pride in it. When one programs, one creates, and the thrill of creation brings one closer to God, in a manner of speaking. Programming is more fun than any game under the Sun, period, end of story. Some users of my regen.bat can't even be troubled to insert REMark statements into the batch. Knock, knock. Anybody home in there?
by igor 04:20 4 replies by igor 09:32 0 comments

Gays More Likely to Have Cancer?

An article in Pink News says gays are more likely to have had cancer than straights.

My own experience in the gay community leads me to think there may be something to that, because the bar scene was important in the pre-Internet days. There were other factors at play encouraging gays to drink up, including feelings caused by social ostracism, such as depression, guilt, shame, confusion--all of which can be rendered into numbness by alcohol. Alcohol is a big risk factor, by itself enough to explain the higher incidence of cancer.

Conditions are improving for gays overall in our society, as noted by Obama and Hilary Clinton, and I think many problems afflicting the gay community will reduce in severity, leading to improved efficiencies, happiness and productivity overall for society in general. People think gay rights are only for gays. They are mistaken. Gay rights will be good for everyone. It means the gay teacher who is great with kids can stay in his job instead of being summarily fired and possibly replaced by a know-nothing. It means the gay couple that take care of one another, take care of their friends, pay their taxes and pay their bills on time are more likely to stay together. Society as a whole reaps the benefits.
by igor 04:20 4 replies by igor 09:32 0 comments

Sunday, May 8, 2011

Uptick in Heroin Use?

This article reports on an uptick in heroin use among young people in Massachusetts. That hints at an increase in the region's misery index. When young people can't find jobs, when they don't have much hope for the future, then drugs of despair, such as smack and meth, gain allure.

Injection drugs--yuck. The thought of such a thing in the year 2011, when information is widely available on the Internet, seems peculiar. Is it a sign of worse things to come? I think most people in the country don't see much reason to hope for a brighter future. When there is an unending exodus of professional jobs, when the standard of living for the middle class is eroding fast, and Republicans wage class warfare against the workers, and our tax money goes to people who hate us in the Middle East, clearly it's a no-brainer that our leaders are no-brainers.

I'm just happy to have been alive during the boom times, the good times, and what could arguably be termed the Golden Age of America, 1980 - 2000. Now that that era is over, a long, steady decline is underway.
by igor 04:20 4 replies by igor 09:32 0 comments

A Bit of Mysticism

If there is a greater power or system, and if it perceives me, and if on occasion I perceive its perceiving, then at such times I feel cherished, as though I am cradled in the arms of the goddess.
by igor 04:20 4 replies by igor 09:32 0 comments

Friday, May 6, 2011

They Don't Know What Time of Day It Is

Reading the views of analysts quoted by Voice of America indicates they don't know what time of day it is. Give more money to Pakistan? More money to Afghanistan? Whose money? China's, clearly. The U.S. government is not making any money. China is financing the war. I'd say Bin Laden's extermination offers a pretext for an early exit.
by igor 04:20 4 replies by igor 09:32 0 comments

Wednesday, May 4, 2011

I Love Teachers

Am I surprised Republicans and their propaganda organ, Fox News, declared war on teachers? No. It's just another one of the lame, counter-productive wars the Republicans wage, in this case against their own countrymen.

I love teachers. I think education and educators are the nation's top resource.

And teachers tend to like me, as well. Here's what one wrote regarding one of my presentations: "Excellent research, preparation and delivery! Nicely dressed & groomed. Nice use of scientific terms. Beautiful pamphlets. You have a talent for teaching and speaking. Get your Ph.D. & come back and teach for the university!"

I liked that so much, I posted it on the bulletin board in my study. My teacher did not have to write all of that. She could have just given me a 100 and been done with it. I think it's indicative that she cared. It's a pity that so many bankers did not care. They spent all their time devising ways to cheat their customers, clients, taxpayers, and shareholders. The current economic situation, the one that Republicans want the workers to suffer for, is the result.

I don't think teachers are overpaid. I think they are overworked. I think bankers are overpaid. Bankers have not been doing a good job. If anyone is lazy, it's the bankers.

Don't mess with the teachers, Republicans. On the other hand--do. I think that issue is going to come back to bite 'em in the next election. At least I hope it does. Seems like the Republicans get away with every type of nonsense under the sun. Voters keep signing up for more abuse.

I think the question of which party to support is simple. Democrats are on the side of the workers, that is, the 99% of the country that performs useful work. Republicans are on the side of those that want to profit at the expense of everybody else. There is overlap. There are exceptions. There are Democrats that vote like Republicans. I don't know whether there are any Republicans that vote like Democrats. The Republican Party tends to run a tight ship. But the general rule applies. That's why I vote straight-ticket Democrat. It's the only thing straight about me. In rare cases where the Democratic ticket is too similar to the Republican ticket on the issues, to the point that both appear identical, I vote Libertarian.
by igor 04:20 4 replies by igor 09:32 0 comments

Monday, May 2, 2011

Bin Laden's Bin Deaden

At least one troublemaker in the world met his end last night. Hats off to the brave soldiers that slew Bin Laden. I'm willing to wager that there are hundreds of millions of people that would have pulled the trigger on Bin Laden, including yours truly. Our newly minted heroes have bragging rights for life, unless sworn to secrecy.

Questioning the legality of the assault does not interest me. If Bin Laden and cohorts were shot in their sleep, fair enough. One need only consider their admitted actions, capabilities, and intentions. They would have done worse. They did not honor the rules of war. Such a policy is not without consequences.

I'm tired of hearing about the radical Islamists. Their political and social views are medieval. Now that Bin Laden's Bin Deaden, I hope we can get the hell out of that lunatic asylum known as the Middle East in the near future and save some money for spending on these United States. The United States is where the United States should focus its attention and resources.
by igor 04:20 4 replies by igor 09:32 0 comments

Sunday, May 1, 2011

New York Daily News on Gay Marriage

I disagreed with a recent opinion piece on the New York Daily News on gay marriage, so I registered in order to leave a comment. Their registration process is lengthy. Twenty questions are asked. They want to know how much money I make, what kind of job I have, and my birthday. Do they really deserve all of that information? In the past, newspapers were content if a letter-writer signed his first and last name, address, city, and state (zip code optional). NY Daily News also had a lengthy checklist for newsletters--every topic under the Sun. Are people still reading emailed newsletters?

I entered a valid email address, received the registration email, clicked on the link, and attempted to log in, only to be denied with an error message: "your email address is invalid." My foot. Looks like the New York Daily News needs to focus more on debugging their computer software and less on political issues that do not concern them. Why are there so many quarrelsome troublemakers in the world that want to interfere in the lives of others? Whatever happened to "live and let live?" In the end, the troublemakers will find solutions for one another.

I gave up on registering. Communicating with fools can be a fool's errand. Sometimes silence is best. My blog is good for venting, as always, if nothing else. And in Google News, I click on that wonderful new feature, "Show Less of..." in order to reduce the number of instances of New York Daily News. Using that feature has already eliminated several other media sources, such as Fox, from the headlines for me.

Bigots that defend DOMA would change their tune in a skinny minute if their own lives were impacted. A taste of their own medicine would do them a world of good. They need to experience firsthand an intrusive law that burrows into their own personal lives and causes them a multitude of hardships. They like pointing the finger at others, but when they point that finger, three are pointing back at them.
by igor 04:20 4 replies by igor 09:32 0 comments

Saturday, April 30, 2011

Using .htaccess to Redirect Renamed or Deleted Web Pages, Forums, and Directories

A web admin may have a good reason for renaming the stray page or directory on a web site, but doing so impacts search engine optimization. One wouldn't wish to greet visitors or search engines accessing old links with a clumsy 404 page. An elegant solution is to redirect access attempts to a new page. For a simple rename, this is easy enough:
redirect 301 /Atheism.html /atheism.html
Any hits on Atheism.html will be redirected to atheism.html. This is clear, economical code, the best choice for a simple scenario like that. But what about the case of deleted forums with variable links, such as /messages/techforum/posts/, followed by many links such as 2009/12/75433.html? A common desire is to redirect many links in a directory to a single directory or file. The 301 technique no longer serves in that scenario.

My solution is to use Apache's RewriteCond command, which requires the following line somewhere near the beginning of your .htaccess file:
RewriteEngine on
With that prerequisite in place, one can then use RewriteCond and RewriteRule to redirect requests for /messages/techforum/post/2009/12/75433.html, for instance, to notice.html:
RewriteCond %{REQUEST_URI} /messages/
RewriteRule ^(.*)$ /notice.html [R=301,L]
REQUEST_URI is an environmental variable with the specific page accessed on the web site, excluding the web site's base url. The RewriteRule drops all text after the base url and replaces it with notice.html, which then should appear on the user's browser.

IP Addresses of Spammers, Hackers, Leaches and Bothersome Bots

This is the list of banned IP addresses for the web site I admin. It is the product of countless hours pouring over my server logs and observing activity from the addresses below. Pay no mind to the date of this blog post. I update this post periodically with my latest blacklist in use on the web sites I admin.

Not all IP addresses listed below are malicious hackers or spammers. I'm an aggressive admin that takes a dim view of bots other than the big three (Google, Bing/MSN, Yahoo) and social media sites like StumbleUpon, Digg and Facebook.

My list bans bots that may be content scrapers or researchers. If they're not human and not related to a major search engine, I don't care what they are. Rule of thumb--if my site gains nothing from the transaction and if the transaction isn't a human being on a browser, ban it as a waste of system resource and a potential liability. At the very least their leaching could reduce the response time of my site for a legitimate human user.

Some humans were observed engaged in non-browser activity, in some cases attempts at modifying or exploiting our site. If a human user isn't using a browser, but an automated script seeking to exploit the site, then they do not need to visit the site at all.

My many and varied bot-traps nail several IP addresses on a weekly basis, but sometimes just for fun and recreation, I scan for bots with my own eyes. My hands-on methodology of banning IP addresses is to examine my server's log file and note the obvious non-human activity. I identify bots based upon their actions and other criteria which I will not reveal here, but anyone who has looked at a raw server log should understand what I am talking about. It is not difficult to determine who is human and who is a bot, because bots are typically very stupid and, well, robot-like in their behavior, which should not come as a surprise. The authors of these bots are not terribly bright either, judging by what I have seen. When I have identified a single IP address, then that is not the end of the story. I want to know if it belongs to an entire neighborhood which is full of bad bots, because this is often the case in my experience, and why ban one single IP when one can ban 255 or more? It is more efficient to shut down bad IP ranges than play the game of one IP address at a time, which could result in a truly massive .htaccess in the end. I research Project Honeypot (I have been a registered user of that site for years and even authored a dark .css style for the web site) and related sites to determine the true nature of an IP address and the neighborhood in which it resides.

I take a dim view of Russia and China. For one thing, these states do not value freedom of speech and do not enshrine democratic principles. Also, our site is English, and I don't envision attracting any Russian or Chinese fans in this lifetime. Unlike some admins, I don't ban the entire region. But if I notice a large number of spammers in an IP address neighborhood in Russia or China, I don't hesitate banning the entire neighborhood rather than bother with singling out individual IP addresses. I'm also skeptical of Poland and the Ukraine based on the many bad bots I've witnessed from those nations. Among all nations, I give China short shrift, because of its poor reputation and poor compliance with standards. When you look up an IP address with WHOIS, Chinese accounts sometimes don't specify a small network neighborhood, but offer a range that may encompass millions of IP addresses rather than just hundreds or thousands. Where China is concerned, if I detect numerous bad bots in a general neighborhood, and China refuses to specify a proper narrow range in WHOIS, then I will not hesitate to ban the millions. With other countries, I take a more refined approach, depending upon my evaluation of the level of corruption in their government. I am reluctant to ban entire neighborhoods in democratic nations, but if an IP range is reserved exclusively for web hosting or what is termed "Direct Allocation," then that is a red flag.

I recommend the .htaccess security measures found on Perishable Press. The .htaccess code found on Perishable Press requires testing and adjustment for specific sites, because it is more complex than a mere Deny-from. However, Jeff's code is valuable and well-worth the effort of refining, because it adds another layer of protection in case attackers slip past the Deny-from barrier. I have integrated some of the intel from his excellent "5G Blacklist 2012" into my own .htaccess, but I do not include those bits here, because the credit for that is his, not mine, and he updates it and has the best version. I recommend visiting his site and merging his intel with mine to make a synthesis. An admin that does so may notice a reduction in leach and spam traffic. My .htaccess is a synthesis of my own work with that of Perishable Press. As for Wizcraft, which I used to recommend, I do not use his intel any longer, because he does not respond to emails, and some of his deny-froms have proven problematic, causing technical issues with Wordpress, for instance. I only use Perishable Press intel and my own. My code is in use on a Wordpress site right now.

Bear in mind that intel is perishable with the changing nature of the Internet, and I'm not sure what the shelf life is. I'll try and keep it updated periodically, but there are no guarantees. Some admins grant a reprieve to addresses on an annual basis. They worry that spammers will relocate, and the IP addresses may then become legit. I don't feel like that is a worthwhile concern for my purposes. I would rather continue blocking address ranges that have a lengthy history of hosting spammers and hackers. Let's say a spammer abandons or gets booted from an IP. The hosting company will rent the IP to somebody else, and chances are that sooner or later they will rent it to another spammer, because they were lax enough to rent to one spammer and are likely to make the same mistake again in pursuit of the almighty dollar. The only good IP addresses are those in use by end-users of an Internet Service Provider and major search engines such as Google. Anything else is questionable at best and likely to be used by spammers sooner or later.

You can pop this baby right into your .htaccess file if you admin an Apache server. Beware of Blogger's word wrap, though, which sometimes creates syntax errors in copied and pasted code. Note that the last Order directive in an .htaccess file will be the one used. If you already have a Limit paragraph in your .htaccess, add the Deny's to it, but use only one Limit container.

If you would like to hire me to harden the security of your WordPress blog, my one-time flat fee is $250. I can do all of the things described here and a bit more that is not. I require a response to emailed questions, payment in advance, and for twenty-four hours, admin access as well as Secure Ftp (SFTP) access to your site. As of 2012, I no longer offer this service, because I do not have the spare time to deal with new customers.

Thursday, April 28, 2011

Infections

I was hit by two nasty, sneaky, time-consuming infections this week. Computer virus and cold virus. One I've licked, the other I haven't kicked. Guess which. Achoo!

There may be hailstones. I have a sturdy umbrella. In adversity, I swim along like a fish upstream. And when I reach the shallows, there will be others. Nature is a superb engineer that has built redundancy into all her systems.
by igor 04:20 4 replies by igor 09:32 0 comments

Tuesday, April 26, 2011

The Old Have It Best

I had been suffering from a cold for a few days, but woke up this morning feeling better. The following reflection wasn't really a dream, but any thought just upon waking could be the conclusion or resolution of a dream, so I classify it as a dream. The quaint language gives me the impression it's paraphrased poetry that I read. Lately I have been reading a book about Shakespeare, "1599", that refers to playwrights flattering the elderly Queen Elizabeth. She was said to have been vain about her appearance even to the end.



Between old and young, the old have it best. The old have seized their days in the Sun. Not disease, poverty or injustice can take those days away from them. Their joys are writ upon the Book of Days forever and ever. The young cannot say which card Fate will turn over next. And if the world ends tomorrow, the old have had the most, while the young barely supped from the cup of life.
by igor 04:20 4 replies by igor 09:32 0 comments

Sunday, April 24, 2011

White Room

A vague dream just before waking had me in a white room with two women who were talking with me about innocuous subjects, one close enough to put her arm around my shoulder, the other watching the two of us from a distance. I didn't know the watcher, but seemed to know the closer one who moved ever closer, becoming affectionate without any concern for the woman watching us. I did not decide how to respond until late, and then I moved away, because it was not the proper time or place and it was not a good idea either.

When I woke up, I concluded she was an attractive fellow student, my age, from school, who had made a point of speaking with me before and after class, piling on enough flattery to make me wonder what she was trying to sell me, until one day when I mentioned in passing but on purpose that I was going to visit a friend and identified the friend with a feminine pronoun, which eliminated her interest. (The friend was only a friend, a point left unmentioned.)

Most students in the nursing program were female, and that's one reason that I'd recommend the study of nursing to any single straight man. However, I'd be careful which school is chosen. Some are wastes of time and money, with too stringent a selection process. I invested a year of study, fees for stupid things like sports I don't play, and outrageous prices for textbooks, with nothing to show for it at the end, despite my straight A's, but dreams like this*.

* I also know about neutrophils, lymphocytes, monocytes, eosinophils, & basophils, remembered by the immortal mnemonic, Never Let Monkeys Eat Bananas.
by igor 04:20 4 replies by igor 09:32 0 comments

Saturday, April 23, 2011

Syrian Virtus

I see something of the ancient Roman virtue in the Syrian protesters who are willing to die for freedom, even marching unarmed into a hail of bullets.

Assad has long since lost whatever credibility he may have once had. He should be recognized all over the world* as a peer of Khadaffy. Whoever the Alawite are, whatever their religion is (and that is by no means clear), their history is bloodstained. Where is the religion whose followers have not committed atrocities? Possibly the Amish.

* with the possible exception of followers of Iran's immoral regime.
by igor 04:20 4 replies by igor 09:32 0 comments

Made in China

This is what Made in China is all about. One day, the U.S. may wish to challenge China, a fascist state made strong by our purchases of its exports. Our good-paying jobs and the jobs of our children were sacrificed in exchange for goods of short duration that are sometimes toxic. Long ago, western leaders succumbed to the siren song of free trade with slave nations in order to satisfy businessmen that saw a potential for short-term profits.

Greed is the main problem with suits. They don't fully appreciate objectives outside of their own personal enrichment. There needs to be a counter-balance coexisting along with the capitalists, a wise governor at the helm that looks ahead twenty years from now. Where was that wise man? He was missing. Instead there was another suit at the helm playing golf with the other suits and doing their bidding.
by igor 04:20 4 replies by igor 09:32 0 comments

Nutrition Info

I use this web site for finding out the nutritional value of any food. I had been eating mangoes every day this week, but became concerned that I might not be getting enough vitamin C. Not all fruits have vitamin C, and I wasn't sure about mangoes. According to the above site, mangoes are rich in vitamin C.

However, I'm not yet satisfied that self.com gives accurate info. A discrepancy exists between the vitamin C content of bananas as reported by Wikipedia and the amount reported by self.com. Which is accurate? I hope for the more optimistic assessment. Also, a search on self.com for "peas" brings up meals with numerous constituent parts, such as "Baby Food, boiled, with peas, carrots, ham, oats," but the results are suspect, as the nutritional value of such meals depend upon the manufacturer, method of preparation, serving size, and the proportions of ingredients.
by igor 04:20 4 replies by igor 09:32 0 comments

Thursday, April 21, 2011

Insecticide

The use of certain household pesticides has been linked to lower working memory capacity in kids.

For an insecticide, I'm partial to boric acid, which has been in use for a very long time and seems safer on the whole than other chemicals. I think that long historical usage by humans is a good indicator as to a substance's safety. If something has only been in use for half a century, then it is unlikely all the effects are known. Boric acid is not difficult to come by. It is sold at many grocery stores and Home Depot in one form or another. It's cheaper than more toxic alternatives. A year's supply for an average family should cost about $8. It is effective against a wide variety of crawling insects.
by igor 04:20 4 replies by igor 09:32 0 comments
techlorebyigor is my personal journal for ideas & opinions