Tuesday, April 26, 2011
Reddit user dheretic nails it
In an article from Reuters, House Speaker Representative John Boehner suggested that oil subsidies "ought" to end. Reddit user dheretic indicates the reason why Boehner would swerve into such Republican contrary waters by quoting one sentence from the article. He then predicts what will most likely happen if Boehner's advice is taken seriously.
"Boehner also suggested that Obama could lose the 2012 election if gas prices do not decline."
Hi, I just explained this move with one sentence from the article.
1. Just threaten to consider cutting oil subsidies.
2. Oil companies bitch and moan and pitch a fit and the futures exchange goes insane about prices, sending PpB skyrocketing unlike anything we've seen since OPEC used the Oil Weapon in the 70s.
3. Gasoline prices in the US approach the world average.
4. Americans go nuts because they can't get their fix (oh, and incidentally, underfunded public transportation and public institutions like fire/police/municipal first responders take a big thick one up the behind, too-- unsustainable big government, right?)
5. Fox News gives it a fancy name like Obama's Oil Blunder and claim he's trying to create an underclass unable to resist his communist fascism or whatever. The rest of the idiot box crowd report on Fox News' outrageousness instead of doing any mental heavy lifting because, to be honest, they are completely unused to effort at this point.
6. GOP: Why does Obama hate industry?
7. Forbes Magazine and WSJ: Why u do this Obama?
8. Obama: "Completely reasonable response implicating GOP using facts and logic."
9. GOP & ETC: "OMG USE SOME TACT RESPECT CIVILITY YOU FUCKING HITLER CLONE FROM KENYA"
10. Obama caves in the name of bipartisanship. Oil prices stay high.
11. 2012 goes to whatever mouthbreather wins the GOP primaries this time around.
12. OIL PRICES MAGICALLY GO DOWN EVEN THOUGH AT NO POINT WERE THE SUBSIDIES CUT
Welcome to American politics. Enjoy your stay, and don't mind that full feeling you have in your colon...that's a completely natural by-product of rich people fucking you in the ass. They know what they're doing, and they like it when you clench tight with impotent rage.
Tuesday, April 19, 2011
Collapse
Take it with a grain of salt, of course, but...
I found Michael Ruppert's movie Collapse compelling.
He bases his superficially paranoid argument primarily on the mounting evidence supporting the Peak Oil theory from the 50s and 70s that was derided as leftist/environmentalist hysteria at the time.
He answers the questions about why it has taken so long for the predicted effects of Peak Oil to begin to become manifestly apparent in the world economies, and expounds on the implications of a world with the ostensibly diminishing instances of accessible oil reserves.
I found Michael Ruppert's movie Collapse compelling.
He bases his superficially paranoid argument primarily on the mounting evidence supporting the Peak Oil theory from the 50s and 70s that was derided as leftist/environmentalist hysteria at the time.
He answers the questions about why it has taken so long for the predicted effects of Peak Oil to begin to become manifestly apparent in the world economies, and expounds on the implications of a world with the ostensibly diminishing instances of accessible oil reserves.
Labels:
economics,
Michael Ruppert,
oil,
politics
Friday, March 25, 2011
When life gives you snozberries you make Haterade
And then the disembodied voice of Teddy Long is all, "I know you been drinkin' that haterade, playa!"
That Gucci Mane song is the jam, though.
We are the music makers,
And we are the dreamers of dreams,...
Apparently.
Monday, March 21, 2011
Re: Re: The PATRIOT Act is unconstitutional
On Mon, Mar 21, 2011 at 12:20 PM, Congressman Lamar Smith wrote:
You clearly do not have any idea what is vital to the protection of our civil liberties.
I will no longer recognize you as my representative.
You must be recalled.
You, Mr. Smith, are a tyrant, and a traitor.
-Nels
The PATRIOT Act is vital to our intelligence community's ability to track terrorists. The three expiring provisions of the PATRIOT Act are the roving wiretap authority, the authority to obtain certain business records held by third parties, and the definition of a "lone wolf" terrorist. These specific intelligence-gathering procedures comply with constitutional protections and have been consistently upheld by the courts. I am confident that Congress has crafted these laws to protect both our civil liberties and our national security.You are incorrect, Representative Smith. The infringement of my constitutional rights as a citizen of the US to due process under the law in hopes of deterring a "lone wolf" terrorist, is not only foolish, it is a slap in the face of justice.
You clearly do not have any idea what is vital to the protection of our civil liberties.
I will no longer recognize you as my representative.
You must be recalled.
You, Mr. Smith, are a tyrant, and a traitor.
-Nels
Labels:
Lamar Smith,
politics
Tuesday, February 22, 2011
Temporary Google Groups post stand-in
Using Google Groups is frustrating.
I tried to reply to an earlier discussion on database switching in
Sequel, but it seems that I somehow sent an e-mail to the author,
instead.
I tried to post the following to the sequel-talk discussion group, but two days have passed, and I still do not see my post in on the group page.
Original post:
Update: Alright! It posted!
I tried to reply to an earlier discussion on database switching in
Sequel, but it seems that I somehow sent an e-mail to the author,
instead.
I tried to post the following to the sequel-talk discussion group, but two days have passed, and I still do not see my post in on the group page.
Original post:
The following gist demonstrates my problem.
https://gist.github.com/838034
Please know that I realize that this will work if I were to just leave
the Test.db alone. But then the Test.db would still be left with the
original db, even though I explicitly set the Sequel::Model.db, which
is not acceptable.
Also know that I realize that the whole Sequel::Model::descendants
monkey-patch thing is god-awful wrong, but it's the only way I found
to access the db of every defined model. Again, this wouldn't be a
problem if setting the Sequel::Model.db would actually change the
database of the models classes inheriting from Sequel::Model.
Can anyone perhaps offer a solution to this dilemma?
Update: Alright! It posted!
Friday, February 18, 2011
Ruby v. Python
I'm gonna lose 80% of my 10 readers with this.
Update: Well, my friend Chuck over at evilchuck.com pointed out that my original post is a completely pointless comparison, since both interpreters are doing practically nothing.
He is absolutely right. If this were used as a "benchmark test" it would be laughable. Well I included the time stats, so I guess I asked for it.
Here is a little test program for generating N sets of random hex strings 17 characters long and then decoding the sets one at a time.
Ruby code:Blargh:
Python version:Running it from my bash shell produces:
Just for fun, I tried running the ruby code with Ruby 1.9. This isn't fair since I am not going to go to the trouble of installing Python 3.0.1, but it doesn't matter. Ruby 1.9 is significantly faster than 1.8.7, but still can't beat Python 2.6 for this particular test.
These tests are not intended to be benchmarks of any kind. True benchmarking is a science in which I have not educated myself very well. I just wanted to get a feel for some of the differences in Python and Ruby idioms and a rough comparison of their execution time. My guess is that if anyone were to take a close look at the code used in this post, they'd be able to point out several flaws and mistakes that would affect the overall statistics.
Update 2: Thought I'd try JRuby, and...
$ uname -aPartially [ via reddit ]
Darwin peregrine 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
$ python --version; time (python -c "print ''.join([chr(int(x, 16)) for x in '54 59 20 66 6f 72 20 74 68 65 20 75 70 76 6f 74 65'.split()])")
Python 2.6.1
TY for the upvote
real 0m0.039s
user 0m0.014s
sys 0m0.015s
$ ruby --version; time (ruby -e "puts '54 59 20 66 6f 72 20 74 68 65 20 75 70 76 6f 74 65'.split.map{|a|a.to_i(16)}.pack('c*')")
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
TY for the upvote
real 0m0.012s
user 0m0.002s
sys 0m0.003s
$
Update: Well, my friend Chuck over at evilchuck.com pointed out that my original post is a completely pointless comparison, since both interpreters are doing practically nothing.
He is absolutely right. If this were used as a "benchmark test" it would be laughable. Well I included the time stats, so I guess I asked for it.
Here is a little test program for generating N sets of random hex strings 17 characters long and then decoding the sets one at a time.
Ruby code:Blargh:
$ time ( ruby test.rb 500 )And here's a test for some python code that I hacked together that is probably really crappy but seems to do the job.
wnATVthnfLdBCQguVr
[ Large output elided. ]
jPgUoj1VtucFgrt7iv
real 0m0.051s
user 0m0.030s
sys 0m0.005s
$ [ With n = 5000 ]
VyiKEjdJhjMKHPRqpP
[ Larger output elided. ]
Uh3 Wsg2 HUbAAe04J
real 0m0.461s
user 0m0.293s
sys 0m0.017s
$ [ With n = 50000 ]
yKfTGOrtCJTtyWvWJk
[ Even larger output elided. ]
QkxCNYwEFVund6H8kz
real 0m3.991s
user 0m3.238s
sys 0m0.136s
$ time ( ./test.rb 100000 -q )
real 0m6.531s
user 0m6.183s
sys 0m0.114s
$ time ( ./test.rb 1000000 -q )
real 1m42.502s
user 1m17.887s
sys 0m2.240s
$
Python version:Running it from my bash shell produces:
$ time ( ./test.py 500 )Clearly, Python is much faster than Ruby for large sample sizes. At 1M, Ruby finishes in 1m43s real and 2.24s sys. Python finishes in 43.5s real and 0.565s sys.
lFy 7ZGqT1Oc BT31
[ Elision. ]
fnpLoKCaYFWL9U9SE
real 0m0.089s
user 0m0.047s
sys 0m0.024s
$ time ( ./test.py 5000 )
Hqa2g4iX6Nw8Nzua5
[ Elision. ]
ofMMAG WnxUEP0RVC
real 0m0.345s
user 0m0.282s
sys 0m0.030s
$ time ( ./test.py 50000 )
kVgC4etTXn5vxrLzV
[ Elision. ]
ot8PSkiWyn1KTitXT
real 0m3.402s
user 0m2.647s
sys 0m0.108s
$ time ( ./test.py 100000 -q )
real 0m4.403s
user 0m4.241s
sys 0m0.064s
$ time ( ./test.py 1000000 -q )
real 0m43.506s
user 0m42.172s
sys 0m0.565s
Just for fun, I tried running the ruby code with Ruby 1.9. This isn't fair since I am not going to go to the trouble of installing Python 3.0.1, but it doesn't matter. Ruby 1.9 is significantly faster than 1.8.7, but still can't beat Python 2.6 for this particular test.
$ time ( ruby19 test.rb 1000000 -q )I was curious, so I tried to isolate the decoding part of the two versions. Here's what I found:
real 0m49.606s
user 0m47.847s
sys 0m0.764s
$
$ ruby19 test.rb 1000000 -qLooks like the decode method written in Python is executing at least 3 seconds faster.
user system total real
16.750000 0.310000 17.060000 ( 17.843644)
$ ./test.py 1000000 -q
1 function calls in 14.241 CPU seconds
Ordered by: internal time, call count
ncalls tottime percall cumtime percall filename:lineno(function)
1 14.241 14.241 14.241 14.241 test.py:18(decode)
$
These tests are not intended to be benchmarks of any kind. True benchmarking is a science in which I have not educated myself very well. I just wanted to get a feel for some of the differences in Python and Ruby idioms and a rough comparison of their execution time. My guess is that if anyone were to take a close look at the code used in this post, they'd be able to point out several flaws and mistakes that would affect the overall statistics.
Update 2: Thought I'd try JRuby, and...
$ time ( jruby test.rb 1000000 -q )Wow.
real 0m28.038s
user 0m29.531s
sys 0m1.310s
$
Labels:
bullshit,
code,
programming,
python,
ruby
Wednesday, February 02, 2011
Speaking of movie posters
I missed these when he posted them to his tumblr back in December, but just look at these gorgeous prints of Olly Moss' spin on Star Wars movie posters for each in the holy trilogy.

Missed this on Wired, too. Why didn't someone I follow tweet these? (Yes, I'm rolling my eyes at myself right now.)
I only just now found out about these from a rather well-done combo version linked on Reddit.
And speaking of Olly Moss, this:
Missed this on Wired, too. Why didn't someone I follow tweet these? (Yes, I'm rolling my eyes at myself right now.)
I only just now found out about these from a rather well-done combo version linked on Reddit.
And speaking of Olly Moss, this:
Subscribe to:
Posts (Atom)