A brief foray into determinism
A deterministic system is one where some piece of information determines another. This is most commonly the case in Math and input-less programming:
def f(x):
return x * x
or
[math]y = f(x) = x^2[/math]
In this example, the result of the function, y, is determined by x. If you know the value of x, you immediately know the value of y. Is the reverse true, however? If you know y, you only know the absolute value of x. x itself could be positive or negative. However, x is still determined from y: x can't be anything. y is determined by x: if you stick in the same x, over and over again, the same y will still pop out. Two possible values of x are determined by y: if you stick in the same y, over and over again, the same two possibilities will pop out.
See Full Post and Comments
Dumb Hack: cycle desktop background in gnome
Cool little feature I wanted but didn't immediately find a solution to (it took a little googling), my Linux desktop background wallpaper now changes and cycles over random images in a specified directory. I also made a few-lines Python script to replicate the functionality of the show desktop button in Gnome's gnome-panel.It's not very feature-complete, but it does what I wanted. For the code and further instructions, check out my repo for it.
And why all the boldness? Stupid SEO that might help someone find this.
See Full Post and Comments
Some problems with C and C++
First off, let me list the two things I love about both C and C++.- They're freaking fast
- You can muck with logical memory directly
If it weren't for these two features, I'm certain the languages would have died long ago.
To get my bias out of the way, I'm a Pythonista at heart, though I have experienced Lisp in all its glory and love it (closures for the win), as well as seen the Perl side and mostly enjoyed it.
Anyway, I think most of my problems in C and C++ can be generalized to their obsession with imperative style programming and static types (and can be generalized further with their lack of abstraction). If you're a die-hard C/C++ fan, you're probably already hating me for spitting on your language, and a typical reply I've heard when I say language X can do something C can't, is that "Wrong, C can do anything."
See Full Post and Comments
mod_security can kiss my ass
So there's been a problem with this blog, both on the comment side and this admin side where I make my posts. Namely, mod_security, an apache module, seems to be installed on my server and I can't disable it.What does mod_security do? It scans all data sent to the server, and rejects any that fit a regex indicating it could be a potential SQL Injection.
Now, this sounds like an okay feature, except the regex it uses is completely retarded. And because of this, I'm leaving my server hosting when it's time to pay again. HostGator here I come.
See Full Post and Comments
Mathematical Induction
I haven't done a math post in a while, so let's talk about mathematical induction. This isn't related to inductive reasoning; it's more akin to deductive reasoning with recursion.Suppose I came to a programmer and asked him to write a function that returns the sum of numbers cubed up to a given number. That is,
[math]sum\_cubes(n) = 1 + 2^3 + 3^3 + ... + n^3[/math]
See Full Post and Comments
Obama's Cowardice
What happened to the Obama of the campaign? People have said he's broken their hearts, since he's not living up to expectations. He promised health care, and what we have now has some accomplishments but still needs work, he promised educational reform, that's nowhere in sight (I love how the Senate Republicans got the pathetic gesture of the Pell Grant increase out of the health care bill to stall it), he promised he'd attempt to improve the economy, but while people call him socialist he just gives money to the very banks that contributed significantly to the problem of the economy. Socialist indeed.He's done some good things, for sure, and he's a better President ethically than Bush. A couple nice things: the FCC is probably going to end up enforcing net neutrality, so Comcast can suck balls, we can do stem cell research again, and (even though he's starting to flounder) his stance on Guantanamo and torture in general is good. But is he unable to multitask at all? Why can't he attack all the problems at once? He's had a full year in office, he's only got until November of 2012 to do more stuff. (I can't really see him getting reelected unless the Repubs throw up someone like Palin or the Democrats in their infinite party-wisdom dictate no one can run against him with the backing of the party.)
He hasn't broken my heart, I've come to expect these sorts of antics. But what's the reason for his actions? Was he like this all along, just another liar and coward in the sea of liars and cowards, using whatever rhetoric and propaganda he could to get votes in the election? Maybe, but I don't really think so. He convinced a lot of intelligent people of his sincerity, and it's really hard to do that without being sincere. If he was that skilled of a manipulator, the Republicans wouldn't have been such a match for him with this latest bill.
See Full Post and Comments
Tao Te Ching Reflections, 14 through 25
14
Look, and it can't be seen.
Listen, and it can't be heard.
Reach, and it can't be grasped.
Above, it isn't bright.
Below, it isn't dark.
Seamless, unnamable,
it returns to the realm of nothing.
Form that includes all forms,
image without an image,
subtle, beyond all conception.
See Full Post and Comments
Recent Posts
2025-03-15
2025-03-03
2025-02-13
2025-01-14
2025-01-10