Sunday, February 27, 2011

Regarding Motivation

This video really makes me think about how I understand what motivates me. I like it because I find that I am not motivated by money like I am by purpose. I feel that this typifies that idea well. Any manager or employee should watch this.
http://www.youtube.com/watch?v=u6XAPnuFjJc

Friday, October 22, 2010

A server client socket example in java

Well I wrote this in eclipse in preparation for a school project, the idea was to write a server that can take and talk to multiple connections at the same time, or send data to a specific client. You must import the package in eclipse to run unless you want to compile from command line.

Download It Here:
http://gitorious.org/simple-server-client-messaging-experiment/simple-server-client-messaging-experiment/trees/master

To start the server: navigate in the package explorer to src> MultiConnectionTests> MultiConnectionServer.java and  right click, run as "Java Application" you may get a firewall warning, just allow it. The server uses the console for its io.

To start a client: navigate in the package explorer to src>Tests>hostageclient.java and right click run as "Java Application". This uses a swing interface for its i/o. It take the ip of the server as a cmdline instruction and assumes localhost if none is given.

Once you have a server and one or many clients open you can start communicating. The client must talk to the server so all you have to do is type into the text box at the bottom of the applet window to send a message to the server. The server however can talk to all clients at once, or one at a time. Each client is given a number when he connects to the server, if you want to talk to a single client, then prefix your message with the space separated client number. EX:

server~$ 1 hi there client one

sends the message "hi there client one" to client 1. If you want to send a message to all clients, you simply dont put a number there.


server~$ hi there all

sends the message "hi there all" to all the clients.

Balling Eh?

Thursday, October 21, 2010

Database Closure and Candidate Key Solver

This program uses sets to determine all the candidate keys and all non trivial closures of a given a list of single letter attributes and a set of functional dependences. Written in c++. As a learning exercise for my database class


TODO:
-make it find canonical covers

get it here, you will not need git to download 
http://gitorious.org/database-closure-and-candidate-key-solver/database-closure-and-candidate-key-solver/trees/master


Colloquium Paper
10/18/10
President Meets Representatives from Vulcan!
In a incredible turn of events the President of the United States as well as the leaders of several other nations have met with the Alien race called the 'Vulcans'. The crucial initial meeting was almost jeopardized by a group of political activists and conspiracy theorists that claimed a rendezvous on the Vulcan's nuclear powered space ship could simply be a clever ruse by the aliens to assassinate or assimilate the leader of the free world and his compatriots. Arguing that the ship's powerful reactor could easily release enough radiation to fry the President, the activists lead a full media assault against the meeting. The various world leader began to suspect the worst upon hearing this news and nearly all but the President refused to attend. While the Vulcan's fair skin, pointy ears and psychic powers might insinuate a bad attitude, their reaction to the activist's theories couldn't have been more compliant and logical. The Vulcans teleported all of their ship's reactor designs directly to the President's Oval Office and gave the President their personal assurance that no harm would come to him or the other leaders. Sources inside the White House claim the the reactor is powered by cold fusion and, stored inside a lead lined cavity in the heart of the ship. Despite the obvious proof from the teleportation device that the Vulcans could easily harm the leaders without an elaborate ruse; there was much concern over the leaders safety and the long term effects of the radiation. Conspiracy theorist Duke Taft argued that the radiation was designed to kill the world leaders in the long run and would simply serve to create mass political instability across the globe after their death. At which time the Vulcans would seize control and experiment on us. There was considerable confusion amongst the various world leaders upon reading Luke's blog post. Undeterred the President reviewed the reactor documents and after discussing them with his Science Staff, he concluded that the ship released about 80 rem of radiation. This number only fueled the activists concerns, but the President, determined to further humanity argued in a golden oratory that a radiation level of less than 100 rem was safe for healthy humans. “My health will remain unaffected by the radiation on this ship. In what is described as a 'threshold' effect my body will naturally repair the damage of the radiation below 100 rem. The long term possibility of cancer is not a danger as well, because of the limited time I will be in the ship. The cancerous effects of this limited dose of radiation would come long after my presidential term, if ever. As a result I have concluded that there is little health risk, the Vulcans and I will meet in their ship on Wednesday”. The activists and world leaders were put at ease by this news excluding the dictators and monarchs as their 'presidential terms' would never end. Regardless of their lack of attendance the negotiations continued as planed. The summit held between the world leaders, led by the President of the United States and the leader of the Vulcan people and the Vulcan High Counsel was reportedly a complete success. Not only did the President return unharmed but it seems that the Vulcans pose no threat to us and have even offed to take several emissaries back to their home world to sample its culture.
If you are looking for a program like artmoney on linux apparently scanmem is a good eqivilent. I have been looking for something like this for some time, so this is very exciting for me. It looks like its got a bit of a learning curve though. Let me know if you know of any, graphical or not programs that do this. GDB seems promising. Its in the ubuntu repo

sudo apt-get install scanmem

Wednesday, June 9, 2010

Yes. It is hypocritical to say "don't copy" when everybody I know is a copyist. I'm certainly on the wrong side of copyright law at least once a day for things like pasting articles into emails. I've been an avid copyist all my life, if it wasn't for mix tapes, my entire adolescence would have been celibate! I can't do my job unless I have the source material around so I scan records and photocopy library books I can't take out. It's how we all learn to do stuff. That's how we are, we are descendents of molecules formed a million years ago because they figured out how to replicate themselves. We have a name for things that don't copy themselves: dead.

-- Cory Doctorow (craphound.com)

Thursday, January 28, 2010

Critique of Nietzsche's Solution to Morality

This is my paper for I wrote for Honors Colloquium. I put it together very late at night so I'm sure its a little scrambled; I really enjoyed reading "On the Genealogy of Morality" and writing it though.

Honors Colloquium

Due 1/27/10

In “On the Genealogy of Morality” Friedrich Nietzsche deduces the root of social conflict by examining the history of morality. Through Nietzsche's prose the reader discovers that the definition of good is essential to morality and equally essential is good's complement, the evil or bad. Nietzsche proceeds to examine the bipartite nature of morality, morality of the weak, or slave morality (evil), and morality of the strong, or master morality (bad); concluding that in embracing weak morality “We have lost our fear of … our love for man.” It is fear of complacency in mankind that leads Nietzsche to the solution: eliminate slave morality. For Nietzsche, weak morality is the product of resentment, held by the plebeians in response to master morality. It is this fundamental resentment, described as scheming cold and calculating, that Nietzsche believes will be terminal. He choses instead to embrace master morality, which he finds superior. I think that Nietzsche's solution, while on the right track, is ultimately untenable. I would argue that the disoperation between master and slave morality is polarizing and pernicious; if humanity is to flourish, we must excise morality entirely from society. In this paper I will first analyze how Nietzsche's argument for strong morality is presented in the allegory of the birds of prey and the sheep and connect it with his thesis (s. 13); then I will link Nietzsche's endorsement of strong morality over weak to his allegory, and extend his metaphor to explain the need to remove morality; and finally I will conclude with the advantages of expulsion of morality, and address the implications. To prove my thesis I must prove that slave and master morality have a disoperational nature and that to remove one morality, both must be removed.

In section 13 Nietzsche exemplifies the differences of slave and master morality through a metaphor. Weak morality is typified the lamb and strong morality, the bird of prey. Early in the allegory a subtle assumption is made by Nietzsche on the reader's behalf; by using animals and in turn the animal kingdom, he insist there is some hierarchical order imposed likening a food chain to society. While this model in many ways persists in society, it is reasonable to argue that the animal kingdom's variant has far less entropy, thus the separation of predator from prey is not a realistic metric for the two moralities. However, Nietzsche examination of society sits on the limit of time, the war over morality, after all, has been waged for thousands of years and its long term affects should be the concern. This is the frame Nietzsche is creating for the reader. The bird's morality, based on the food chain is there from the very beginning, that superiority develops into master morality where the birds represent good. In this long term the reader sees how the lamb's resentment to the birds of prey festers inside, a lack of power eating them; the lambs morality begins to develop from here: “These birds of prey are evil and whoever is least like a bird is most opposite, like a lamb – is good isn't he?” The allegory is designed specifically to mirror the Jew's reactions to the destruction of the temple. Their religion, their morality, developed into a mechanism to cope with their disappointment over those events, a way to wage a silent war with resentment (s. 12). Christianity sprang forth as well. The meek inheriting the earth, or the spiritual superiority of the weak became the calling card of both the Jewish and Christian churches according to Nietzsche. Belief in a savior, resurrection, and in particular the beatitudes are evidence of the kernel of resentment, fundamental to both Judaism and Christianity. It is not the immediate response that is important here though, it is the long term shift in morals towards slave morality.

In slave morality, Nietzsche imagines humans as animals to whom their domestication, their complacency, their contentedness is an end in and of itself; “they construe weakness as a freedom, and their particular mode of existence an accomplishment.” This is Nietzsche's greatest fear, that man would grow tired of himself, a fear articulated in section 12, that “in losing our fear of man we have also lost our love for him ... we are tired of man.” This fear is valid: by enjoying and seeking weakness, society harms its ability to survive. If a true predator came, society would be more than simply weak, it would be unwilling to fight at all. A society becomes its own enemy, its crippling weakness a result of its mentality of resentment towards power. To survive, society must be strong and fit, and Nietzsche's conclusion regarding the elimination of slave morality is an answer, but it is not the best answer.

Seeing the world as good and bad in any context is deceptive. The situation created by the destruction of the Jewish temple is not unique; given morality of any kind the resentment present at the center of religious belief idolizing the weak will propagate again, even if slave morality were removed entirely. If morality as we understand it today, a choice between good and bad, continues to exist in any form, the bipartite system that is created as a result will only serve to repolarize morality, recreating the barriers between slave and master morality, despite attempted advances. Eliminating resentment of the lambs in the allegory would never fully succeed till the bird of prey shed his similar notions; without that action, the lamb would continue to feel the bad of master morality thrust upon him. To excise slave morality without master morality would be unproductive to the society in question. Equally deceptive is morality's cyclical deprecation, its need to follow a downward spiral. Under the influence of morality it will always be a temptation to equate things that are perceived as good, with the form of good itself. To say something is good simply for good's sake places a false value on the thing, giving it a power it should not have. Inherent in that power is deception, and when the necessity arises to adjust that object, the false value created by morality will only hinder the work. Capital punishment, for instance, should be despicable because of the Christian moral code, war an unthinkable impossibility. Only by bending one's perception of good and evil can one see the world in those 'unthinkable' manners. Morality does not stop us from approaching those 'horrible' ideas it lets us embrace them, it teaches us to better skew ourselves rather seeing the world through impartial immoral eyes. In essence, by eliminating morality, in particular the notions of good and bad, society will flourish without the constraints of false value. The only solution is to eliminate morality, to let slave and master morality persist will ensure society's demise.



To remove morality, good and bad and evil, would not adversely affect society. It is the first step to freedom from objects of falsified value and from a system that recursively creates itself. To live in a moral less society does not imply a lack of laws, each law would have a reason for existence detached from the notion of “because it is good”. Laws would be pure and clean, useful and purposeful. A world without morals does not eliminate the possibility of God, but the delusion created by resentment of the strength of the noble would no longer exist. God would no longer exist to serve the meek, but be regarded as an abstraction beyond our understanding. The recognition of morality as a cycle of ill effect by society would spur man to new places, ones undefined by the false notions of good or bad, rather painted with impartiality, and perhaps “a glimpse of something perfect … a man who justifies man himself”.

Saturday, November 21, 2009

Grub 2 In ubuntu 9.10

For how to edit grub2 after a ubuntu 9.10 install:
https://wiki.ubuntu.com/Grub2

the stuff I need (what I usually edit in menu.lst) is now found in /etc/default/grub

Saturday, October 31, 2009

Pioneers

Pioneers! O Pioneers!

COME my tan-faced children,
Follow well in order, get your weapons ready,
Have you your pistols? have you your sharp-edged axes?
Pioneers! O pioneers!

For we cannot tarry here,
We must march my darlings, we must bear the brunt of danger,
We the youthful sinewy races, all the rest on us depend,
Pioneers! O pioneers!

O you youths, Western youths,
So impatient, full of action, full of manly pride and friendship,
Plain I see you Western youths, see you tramping with the foremost,
Pioneers! O pioneers!

Have the elder races halted?
Do they droop and end their lesson, wearied over there beyond the
seas?
We take up the task eternal, and the burden and the lesson,
Pioneers! O pioneers!

All the past we leave behind,
We debouch upon a newer mightier world, varied world,
Fresh and strong the world we seize, world of labor and the march,
Pioneers! O pioneers!

We detachments steady throwing,
Down the edges, through the passes, up the mountains steep,
Conquering, holding, daring, venturing as we go the unknown ways,
Pioneers! O pioneers!

We primeval forests felling,
We the rivers stemming, vexing we and piercing deep the mines
within,
We the surface broad surveying, we the virgin soil upheaving,
Pioneers! O pioneers!

Colorado men are we,
From the peaks gigantic, from the great sierras and the high
plateaus,
From the mine and from the gully, from the hunting trail we come,
Pioneers! O pioneers!

From Nebraska, from Arkansas,
Central inland race are we, from Missouri, with the continental
blood intervein'd,
All the hands of comrades clasping, all the Southern, all the
Northern,
Pioneers! O pioneers!

O resistless restless race!
O beloved race in all! O my breast aches with tender love for all!
O I mourn and yet exult, I am rapt with love for all,
Pioneers! O pioneers!

Raise the mighty mother mistress,
Waving high the delicate mistress, over all the starry mistress,
(bend your heads all,)
Raise the fang'd and warlike mistress, stern, impassive, weapon'd
mistress,
Pioneers! O pioneers!

See my children, resolute children,
By those swarms upon our rear we must never yield or falter,
Ages back in ghostly millions frowning there behind us urging,
Pioneers! O pioneers!

On and on the compact ranks,
With accessions ever waiting, with the places of the dead quickly
fill'd,
Through the battle, through defeat, moving yet and never stopping,
Pioneers! O pioneers!

O to die advancing on!
Are there some of us to droop and die? has the hour come?
Then upon the march we fittest die, soon and sure the gap is fill'd.
Pioneers! O pioneers!

All the pulses of the world,
Falling in they beat for us, with the Western movement beat,
Holding single or together, steady moving to the front, all for us,
Pioneers! O pioneers!

Life's involv'd and varied pageants,
All the forms and shows, all the workmen at their work,
All the seamen and the landsmen, all the masters with their slaves,
Pioneers! O pioneers!

All the hapless silent lovers,
All the prisoners in the prisons, all the righteous and the wicked,
All the joyous, all the sorrowing, all the living, all the dying,
Pioneers! O pioneers!

I too with my soul and body,
We, a curious trio, picking, wandering on our way,
Through these shores amid the shadows, with the apparitions
pressing,
Pioneers! O pioneers!

Lo, the darting bowling orb!
Lo, the brother orbs around, all the clustering suns and planets,
All the dazzling days, all the mystic nights with dreams,
Pioneers! O pioneers!

These are of us, they are with us,
All for primal needed work, while the followers there in embryo wait
behind,
We to-day's procession heading, we the route for travel clearing,
Pioneers! O pioneers!

O you daughters of the West!
O you young and elder daughters! O you mothers and you wives!
Never must you be divided, in our ranks you move united,
Pioneers! O pioneers!

Minstrels latent on the prairies!
(Shrouded bards of other lands, you may rest, you have done your
work,)
Soon I hear you coming warbling, soon you rise and tramp amid us,
Pioneers! O pioneers!

Not for delectations sweet,
Not the cushion and the slipper, not the peaceful and the studious,
Not the riches safe and palling, not for us the tame enjoyment,
Pioneers! O pioneers!

Do the feasters gluttonous feast?
Do the corpulent sleepers sleep? have they lock'd and bolted doors?
Still be ours the diet hard, and the blanket on the ground,
Pioneers! O pioneers!

Has the night descended?
Was the road of late so toilsome? did we stop discouraged nodding
on our way?
Yet a passing hour I yield you in your tracks to pause oblivious,
Pioneers! O pioneers!

Till with sound of trumpet,
Far, far off the daybreak call-hark! how loud and clear I hear it
wind,
Swift! to the head of the army!-swift! spring to your places,
Pioneers! O pioneers!


Back to Leaves of Grass 1891

Monday, October 19, 2009

"Twenty years from now you will be more disappointed with the things you didn't do than the things you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover." -Mark Twain

Wednesday, October 7, 2009

Richard Feynman:

"Science alone of all the subjects contains within itself the lesson of the danger of belief in the infallibility of the greatest teachers of the preceding generation…. As a matter of fact I can also define science another way: Science is the belief in the ignorance of experts."

Thursday, October 1, 2009

Disable password on resume form suspen in Gnome/Ubuntu

Go to the terminal (Applications >> Accessories >> Terminal) and type:
gconf-editor
This will pull up the gnome configurations editor. Out of the left had menu select the Apps folder then gnome power manager sub-folder, then the lock sub-folder. Deselect the 'suspend' key from the right window pane. Thats it.

Tuesday, September 22, 2009

I entirely abandoned the study of letters. Resolving to seek no knowledge other than that of which could be found in myself or else in the great book of the world, I spent the rest of my youth traveling, visiting courts and armies, mixing with people of diverse temperaments and ranks, gathering various experiences, testing myself in the situations which fortune offered me, and at all times reflecting upon whatever came my way so as to derive some profit from it.
--(Descartes, Discourse on the Method)

Thursday, August 27, 2009

Astrophysicists puzzle over planet that's too close to its sun

http://www.latimes.com/news/nationworld/nation/la-sci-planet27-2009aug27,0,5882308.story

Thursday, July 23, 2009

Sister - Sufjan Stevens

What the water wants is hurricanes,
and sailboats to ride on its back.
What the water wants is sun kiss,
and land to run into and back.
I have a fish stone burning my elbow,
reminding me to know that I'm glad
that I have a bottle filled with my old teeth.
They fell out like a tear in the bag.
And I have a sister somewhere in Detroit
She has black hair and small hands.
And I have a kettledrum
I'll hit the earth with you.
And I will crochet you a hat.
And I have a red kite;
I'll put you right in it.
I'll show you the sky


-----

This is a beautiful song, and it reminds me of some sunny days. I like that

Sunday, July 19, 2009

"We get the government we deserve" -- Robert Glennon

Wednesday, May 20, 2009


http://www.cs.hmc.edu/tech_docs/qref/editors/vim_keys.html

Table made available by:

HMC Computer Science Department

Copyright (c) HMC Computer Science Department. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License.''

A List of the Key Commands in Vim

The ^ character denotes holding control then hitting the next key.

Placing a number immediately before any command will repeat that command. For example, typing 4dd will delete the current line and the next 3.





































































































































































































Vim Commands



Action



Command



invoke vimvim filename
save file:w
exit vim:q
command line modeEsc
undou
Search and Replace
search forward / [string]
search backward? [string]
find and replace once:s/[string to be found]/[thing to replace it]
find and replace on line:s/[string]/[string]/g
find and replace globally:%s/[string]/[string]/g
Movement Commands
up one lineup arrow or k
down one linedown arrow or j
right one characterright arrow or l
left one characterleft arrow or h
next word (until first character of next word)w
next word (until end of current word)e
previous wordb
beginning of line0
end of line$
page forward^d
page backward^u
Delete Commands
delete current characterx
delete current character and replace it with one characterr [character]
to end of lined$
entire current linedd
paste what was just deletedp
delete to end of word and put into insert modece
delete to end of line and put into insert modec$

Sunday, May 3, 2009

A good quote and mantra of mine

``I disapprove of what you say, but I will defend to the death your right to say it''
--Voltaire