Friday, May 24, 2013

Making Sudafed from Meth?

Organic chemistry was not my best subject so I don't know for sure the following will work. Also "The Journal of Apocryphal Chemistry" sounds more tongue-in-cheek than serious. However, if true, it does represent a unique reaction to the silliness of drugged war.

A Simple and Convenient Synthesis of Pseudoephedrine From N-Methylamphetamine (PDF)

Thursday, May 23, 2013

Lesbian Couple Cannot Cohabiate in Texas.

Interesting intersection between a "morality clause" in a divorce and a state's refusal to accept gay marriages. I get that the divorce agreement prohibits any romantic partner from staying overnight unless it's a spouse. However, Texas law forbids lesbians from getting married. Kind of hard to claim this does not discriminate against gay pairings.

A judge has ruled that a North Texas lesbian couple can't cohabitate — live together — because of a morality clause in one of the women's divorce papers.

Read the rest here

Thursday, May 16, 2013

Create a chroot sftp account with logging

System: CentOS 5/6

Prerequisites: openssh >5.2

chroot sftp user home directory is /usr/sftp/i-sftp

  1. make sure the entire chroot path is owned by root
    ls -ld /usr
    ls -ld /usr/sftp
    ls -ld /usr/sftp/i-sftp

  2. Add to /etc/ssh/sshd_config
    Match User i-sftp
        ChrootDirectory %h
        ForceCommand internal-sftp -l INFO
        GSSAPIAuthentication no
        PasswordAuthentication no (yes if using password auth)
        PubkeyAuthentication yes (no if keys not allowed)
        AllowTcpForwarding no
        Banner none

  3. For key-based authentication add a .ssh directory and create the authorized_keys file. This must also be owned by root:root
    sudo mkdir -m 0555 /usr/sftp/i-sftp/.ssh
    sudo touch /usr/sftp/i-sftp/.ssh/authorized_keys
    sudo chmod 0444 /usr/sftp/i-sftp/.ssh/authorized_keys

  4. Add the necessary public keys to the authorized_keys file

  5. Create a directory for the log socket
    sudo mkdir -m 0755 /usr/sftp/i-sftp/dev

  6. Add to /etc/rsyslog.conf
    $AddUnixListenSocket /usr/sftp/i-sftp/dev/log
    if $programname == 'sshd' then /var/log/sshd.log
    if $programname == 'sshd' then ~
    if $programname == 'internal-sftp' then /var/log/sshd.log
    if $programname == 'internal-sftp' then ~

  7. restart rsyslog
    sudo service rsyslog restart

Now all sshd and internal-sftp messages will go to /var/log/sshd.log

Don't forget to add sshd.log to logrotate.

Thursday, April 11, 2013

Government Theft 201

From The Fleecing of California's Gun Purchasers

This week, the California State Assembly Appropriations Committee will be considering a measure that demonstrates the absolute worst in government incompetence and thievery. SB 140 (Leno) outright steals money from a fund entirely paid for (and supposedly dedicated to) law-abiding gun owners to fund the Department of Justice’s (DOJ) failed firearms enforcement program.

When originally imposed on California citizens, the DROS fee was mandated to "...be no more than is necessary..." for the California DOJ to perform the specific duties of background checks and registration. However,

For years, the Department has unlawfully over-collected DROS fees from law-abiding gun owners -- gun owners who spent money and time to comply with the law and submit to the background check process. Where the DROS fees should have been lowered years ago to account for the massive surplus (basically, unconstitutionally assessed taxed), the DOJ has stubbornly refused to lower the fees in spite of substantial evidence of their bad faith accounting.

The man who steal with a gun risks being injured by his victim and is usually branded a criminal and outlaw. The man who steals with a pen risks little: He has the power of the state on his side and is often rewarded with public office. The latter is clearly the case here. When the government starts raiding funds it collected in contravention of the law, it becomes an example of exactly why we Americans have guns in the first place.

Wednesday, April 3, 2013

I see Stupid People.

Lets get this straight.

A couple of DeeJays in Florida pulled an April Fools joke by telling thier listeners that a chemical called "dihydrogen monoxide" was coming out of their taps. The more common name for "dihydrogen monoxide" is H2O or just plain water.

Some of the listeners panicked.

Florida country radio morning-show hosts Val St. John and Scott Fish are currently serving indefinite suspensions and possibly worse over a successful April Fools' Day prank. They told their listeners that "dihydrogen monoxide" was coming out of the taps throughout the Fort Myers area. Dihydrogen monoxide is water.

The popular deejays are mainly in all this trouble (potentially of a felony level) because their listeners panicked so much — about the molecular makeup of their drinking water, however unwittingly — that Lee County utility officials had to issue a county-wide statement calming the fears of chemistry challenged Floridians.

Two lesson here. First, the folks listening to that show must have an average IQ somewhere between dumb and dumber. Second, the DA must either be equally stupid or simply evil if he or she even considered pressing charges against the two for telling the truth. Since when is it a crime to tell the truth?

Apparently the two are back on the air and charges are unlikely. That does not absolve the dummies of their stupidity.

Florida DJs May Face Felony for April Fools' Water Joke Worse Than Rubio's

Wednesday, March 27, 2013

Duck Fathers Chicken!

Well, we were warned that if we started down the road of gay marriage, things like this would happen.

Next, the Turducken: Scientists Say a Duck Has Fathered a Chicken

Seriously, this is a little creepy but still a pretty neat application of genetic engineering. In addition I learned a new thing: I'd never even heard of a "turducken" before.

Sunday, March 24, 2013

Let Them Eat Shit.

This self-absorbed bitch illustrates just how out of touch DC is with reality.

Debbie Wasserman Schultz: Sequester nearly starving staffers

Automatic federal cuts are bringing staffers to the brink of starvation, suggested Debbie Wasserman Schultz, at a recent House Legislative Branch Appropriations Subcommittee hearing.

Restaurants on the House side of Congress are increasing in cost so much that aides are being “priced out” of a good meal, she said, as Fox News reported. The comments came by way of a discussion about the impacts of the sequester on lawmakers’ office budgets. Rep. Jim Moran said he may be forced to lay off a staffer — and then Ms. Wasserman Schultz weighed in with her tale of hard times.

Just to clarify: An 8-ounce bowl of Ham and Bean soup at the Cannon Office Building’s carry-out cafĂ© costs $2. A gourmet wrap or sliced bread sandwich sells for about $5. And in the Longworth Building’s sit-down cafeteria, a serving of stuffed chicken, asparagus and mashed potatoes sells for about $7, Fox News finds.

Meanwhile, Ms. Wasserman Schultz’s staffers earn between $60,000 and $160,000 per year, Fox News reports.

Thursday, March 21, 2013

Here is Something a Little Weird

I came across a forum post on a obscure Russian made revolver called by the uninspired name of the "AEK 906". Out of curiosity I searched a bit more and found this page briefly describing the gun in both its 9x18mm and 9x19mm variants. What makes is unusual is, as you can see from the image below, it fires from the bottom chamber rather from the top like a conventional revolver.

Sound familiar?

The weird part in all this is that the AEK 906 was also known as the "Nosorog" which is Russian for "rhinoceros"! I wonder if the folks at Chiappa Firearms knew about that when they named their new revolver the "Rhino".

Wednesday, March 20, 2013

Will no one rid us of this meddling zombie?

New Gun Laws in Colorado

Earlier this month, Colorado Sheriff John Cooke said he would not enforce new state gun laws.

Weld County Sheriff John Cooke won’t enforce new state gun measures expected to be signed into law by Democratic Gov. John Hickenlooper, arguing the proposed firearms restrictions give a "false sense of security."

Yesterday, Colorado Governor John Hickenlooper signed the bills into law. Looks like it is nut up or shut up time in Colorado.