John Manko

thoughts, code, and everything else cool

The Solution to Our Economic Problems is Not More Government

Everyone I know is having some form of economic hardship (wages, taxes, etc). Some blame politicians, others capitalism, and some terrorism and the uncertainty of national security. Some just consider “the economy” a super-natural being that’s guided by some mysterious force of which we’re in a continual struggle to find the “economic answer.”

Whatever your target, the real problem it that most really only look at patching the problem, masking with more legislation, more social programs (universal health care), more war (Iran). What if, just what if, we all turned our heads toward the source of the problems instead of trying to legislate or bomb them away? What if we all realized that it is too much government involvement (and I’m not advocating an anarchist society, but a small government, limited in power, that enforces the Constitution to maximize personal freedom) leads to big government, which leads to a lessening of economic, physical, and mental freedoms.

That, of course, would require us to educate ourselves, rejecting bullshit news organizations like Fox News or CNN or MSNBC, who’s “reporting” is politically motivated and geared towards entertaining us, rather than informing us. After all, they are in the business of television ratings, competing for the same air time as MTV’s Jackass and Paris Hilton’s My New BFF.

So, this is your homework, the friends and family I care about:
Read the following, to start, and the rest I leave up to you. If you have any questions, please ask me, and if I don’t have an answer I can help you research:

The Big Takeover(Rolling Stone Magazine) by MATT TAIBBI
http://www.rollingstone.com/politics/story/26793903/the_big_takeover

President Jackson’s Veto Message Regarding the Bank of the United States; July 10, 1832
http://avalon.law.yale.edu/19th_century/ajveto01.asp

THE STATE OF THE NATION by Andrew Jackson
http://xroads.virginia.edu/~cap/jackson/jack~1.htm

The Creature from Jekyll Island by Edward Griffin
http://www.amazon.com/Creature-Jekyll-Island-Federal-Reserve/dp/0912986395/ref=ntt_at_ep_dpi_1

End The Fed
http://www.amazon.com/End-Fed-Ron-Paul/dp/0446549193/ref=pd_sim_b_2

And for those interested, contact your representative to support HR 1207 – Federal Reserve Transparency Act of 2009
http://www.govtrack.us/congress/bill.xpd?bill=h111-1207

posted by john in Politics & Law and have No Comments

G20 Police Attack Pitt Students

posted by john in Civil Liberties and have No Comments

A Case Against JPA

Here are some numbers for JPA generated queries verses a custom formatted one:

Based on the following query:

em.createQuery(" SELECT object(o) FROM INTERNALIPADDRESSBINDING o WHERE o.internalIpAddress.ipAddress = :ip AND o.macAddress.macAddress = :mac AND o.bindTimestamp = :bind ")

JPA generated query based on Entity classes and foreign keys:

SELECT t0.ID,
       t0.BINDTIMESTAMP,
       t0.MACADDRESS_MACADDRESS,
       t0.internalIpAddress_ipAddress
FROM   INTERNALIPADDRESSBINDING t0,
       MACADDRESS t2,
       INTERNALIPADDRESS t1
WHERE  ((
         ((t1.IPADDRESS ='4.4.4.4') AND (t2.MACADDRESS = 'ZZ:ZZ:ZZ:ZZ:ZZ:ZZ'))
         AND
         (t0.BINDTIMESTAMP = '2009-09-22 15:01:53.0')
        )
        AND
        (
         (t1.IPADDRESS =t0.internalIpAddress_ipAddress)
         AND
         (t2.MACADDRESS = t0.MACADDRESS_MACADDRESS)
        )
       );

 Empty set (20.53 sec)

My query:

SELECT t0.ID,
       t0.BINDTIMESTAMP,
       t0.MACADDRESS_MACADDRESS,
       t0.INTERNALIPADDRESS_IPADDRESS
FROM   INTERNALIPADDRESSBINDING t0
WHERE  t0.INTERNALIPADDRESS_IPADDRESS = '4.4.4.4'
   AND t0.MACADDRESS_MACADDRESS = 'ZZ:ZZ:ZZ:ZZ:ZZ:ZZ'
   AND t0.BINDTIMESTAMP = '2009-09-22 15:01:53.0';

 Empty set (1.35 sec)
posted by john in Java and have No Comments

Scripting SVN Repo Creation in Gentoo

I wrote a script to ease the creation of subversion repositories in Gentoo.  This script assumes the existence of three files:

authz         - Standard svn authorization file,
                located svn root conf directory,
                used for all repos.
passwd        - Standard passwd file, and
                is used for all repos.
svnserve.conf - Template file (points back to
                authz & passwd), copied to each
                newly created repo conf
                directory.

Here is the script:


#! /bin/bash
REPO_ROOT=/var/svn

echo -n "New Repository Name: "
read -e REPO_NAME

if [ "$REPO_NAME" = "" ]; then
 echo "A valid repository name must be entered.  Cannot create repository.";
 exit;
fi

REPO_PATH=$REPO_ROOT/$REPO_NAME

if [ -e $REPO_PATH ]; then
 echo "The file or directory ($REPO_PATH) already exists.  Cannot create repository.";
 exit;
fi

svnadmin create $REPO_PATH
cp $REPO_ROOT/conf/svnserve.conf $REPO_PATH/conf/
rm $REPO_PATH/conf/authz
rm $REPO_PATH/conf/passwd
chown -R svn:svnusers $REPO_PATH
chmod -R g+w $REPO_PATH
chmod -R o-rwx $REPO_PATH
/etc/init.d/svnserve restart

echo $REPO_PATH has been created!
posted by john in Linux and have No Comments

Back in Business

I finally set this site up again.  I hope I can keep the posts going (ie, time).  Look for weekly posting, especially re music and coding.  ;)  enjoy.

btw, I can’t stop sneezing.

posted by john in Thoughts and have No Comments