Links to My Coldfusion Tests
I’ve recently set up a small ColdFusion server on Bluedragon 7.
You can get to the test page here http://raavin.blogsite.org/machblog
Filed under Web Development | Comment (0)My Development Setup
This is incomplete but this is pretty much my setup
Machine
——-
24″ iMac 2.16 Intel core duo, 2Gig ram
OS
—
OSX + Parallels with Windows XP Pro
Editors
——-
Eclipse 3.2
CFeclipse Plugin
Aptana
Radrails
Textmate
TextWrangler
Version Control
—————
CVS & Subversion
Testing
——-
Selenium
Application Servers
——————-
Coldfusion 8
Bluedragon 7
Ruby on Rails
SVN on OSX Finally
It took a while but finally I got it figured out. After the initial install (which you can do your own search for) I had to do a few more things in the terminal.
While in the home directory…
$svnadmin create svnrepo
Edit the created ~/svnrepo/conf/passwd file with your chosen username and password
Uncomment the following lines in svnserve.conf
auth-access = write
password-db = passwd
$svnserve -d -r ~/svnrepo
That’s it. You now have a working svn repository at svn://localhost
Filed under Web Development | Comment (0)Calculating Distance Using Only Velocity
Question:
Is it possible to calculate the position of an object relative to two or three other objects, using only the velocity of the object relative to the other two or three?
One of the problems when looking at the velocity of an object in relation to another object is that we come at it from a ‘MiddleWorld‘ point of view. To us, velocity is the result of how far an object travels from or to another object multiplied by the time it takes. We think of the velocity of light like this too. We can see light travel from one MiddleWorld object to another so we think of the ‘velocity’ as being only an indicator which gives us information about the relationship between the objects. But what if we take another perspective. What if we lived in a universe where we thought of velocity as the ‘object’ and thought of ‘MiddleWorld objects’ as things you calculated?
Filed under Uncategorized | Comment (0)Set Domain to Rails Folder on Hostmonster
To set main domain to your rails folder on your Hostmonster account, do the following.
1. ssh into your account
2. Rename your public_html folder to public_html_old
username@domain.com [~]# mv public_html public_html_old |
3. Create a link to your rails/public folder called public_html
username@domain.com [~]# ln -s ~/route/to/app/public public_html |
Now the public_html@ link will be treated as if it is the old public_html folder. It’s one of the wonders of *nix.
note: This gives some grief when creating subdomains, showing “Application error Rails application failed to start properly”. I think it’s reading the dispatch files by default rather than doing the subdomain. I’ll have to look into it a bit more. If you only need your main domain though, this works nicely.
Filed under Web Development | Comment (0)Selfishness and the Art of Living
Selfishness and living. Some of us seem better at one than the other but I believe they they are inextricably linked. One cannot exist without the other. Selfishness is at the core of everything. It’s chemistry, it’s energy. It’s at the very base of existence. Competition is selfishness but it’s also the way of things. The difference between humans and pure energy is that we believe we have some choice. Generally, we chose to live with others. Why?Think of anything that you do from day to day. You can chose anything, from the most apparently inconsequential right up to the path you have chosen in education, work and relationships and at its very centre you can trace the driving force down to selfishness. The need for us do do things which satisfy our own needs above the needs of any other entity in the universe. Even this text serves my own purposes. Anything that someone else might gain from it is, unfortunately, just a happy coincidence.
Selfishness. The term itself brings up negative connotations. Selfishness opposes selflessness, an goal toward which surely all good people head. Yet understanding the natural selfish inclinations we have can help us to direct it in a way that is beneficial to those other than the self. To try to suppress our selfishness is possibly a futile goal and could be sapping the motivation and drive to take action. I will attempt to describe how the two are actually different paths to the one. How selfishness is actually the driving motivation for all human action and interaction. In order to grasp this concept it might be useful to look at an example of a common action which might be construed normally as selflessness. We will start with a simple example. One which doesn’t delve to deeply into moral motivations. Making a cup of tea for your partner in the morning. What is the possible motivation for this act. It seems fairly simple. One possible one could be simply doing something nice for a person who you care about. Another might be that to wait for your partner to make their own tea could slow you down and take time away from the ‘important’ things that you have to do that day. Both motivations lead to the same result. The tea is made and everyone is happy. Lets take on the latter reasoning first as this would seem to have a much closer correlation to selfishness. I could not agree more. When taking into consideration the tasks that need to be completed in the day, one has to make a decision about priorities. What is the best order of events which suit my greater needs. If the coming events take place at work then there is nothing I can do to complete the allotted tasks until I arrive at work. The doors don’t open until x o’clock, therefore at this moment it is a lesser priority. I desire a cup of coffee and I am aware that my partner will desire a cup of tea. We both need to get ready and it will add only the smallest amount of energy to make a cup of tea at the same time so as to facilitate both a speedier exit to complete the subsequent tasks and will also invoke a pleasurable outcome from my partner which will make me feel better, more comfortable. If I make myself a cup of coffee and no tea for my partner, there will be time added the partner makes theirs plus the negative consequences of the displeasure of my partner. Therefore the choice is easy. Make the tea and relax. In the earlier scenario, the person makes the tea purely out of ’selflessness’. Here the motivation is more complex. What would drive someone to commit this selfless act. I would argue that the basic principal is the same. On possibly a less conscious level the person wishes to gain from the act. What could the person possibly be looking to gain from this. Probably some of the same things as the first person. The ’selfless’ person does it for the love of the other. Here we have a gain. Love. The feeling of safety that comes in numbers. The ’selfless’ person might do it because they know that they would do it for them. So there is a reciprocal understanding whereby each works for the other and each’s needs are met with the least amount of effort. This is a different slant on what one might usually associate with selfishness. Normally we would say that a selfish person would just make themselves a cup of coffee in spite of the needs or desires of the other. I believe that this is a distortion of the meaning of the word. This is a case where the individual feels that they need no other’s assistance or approval to get things done. The selfish person uses the assistance of others to get things done and takes into consideration the implications of their action to get the best possible outcomes for themselves in any particular situation, while priming the way for an easier path when the next event takes place.
The selfless person has developed the art of selfishness to the point where these are not conscious decisions but ones which facilitate personal needs with the least possible emotional effort. One might ask, if people are all so selfish, then why aren’t people just out killing each other. Well, in answer to that, they are. All over the world they are. People give a myriad of reasons for this from personal grievances right through to religion but kill each other they do and for the same reason that causes people to love. Selfishness. This is the key. The thing is that selfishness is our primal drive. It is the thing that is at the base of every decision we make.
But there is a mechanism whereby we can get what we want without killing each other. Compromise. Compromise is the tool of the most skilled artisan of selfishness. When wielded with care it is the tool that returns the most net gain in the majority of situations. How does compromise fit into this scenario when it seems to fly in the face of selfishness? Again you need to come back to the fact that the prime goal of humans is to fulfill their needs. Facilitation of those needs can often be achieved by coming to a compromise with another person. Perhaps the task can be done quicker and easier with two people. Perhaps you are incapable of completing the task at all on your own. This is where the art of compromise comes in. Fulfilling your own needs with the least possible effort. Certain compromises may seem to not be an even balance of gain over loss. One might agree to something where they seem to be doing more work or giving up more than the other person. Not to worry, the imbalance won’t last for long. There are not many situations where the balance isn’t forthcoming. That doesn’t mean that both parties are necessarily happy about it. Each party involved in the compromising contract is looking for something. If not a gain at least an even trade. Usually, in the case of the even trade, the balance is swayed in the direction of one of the parties, at least in perception, in the form of emotional debt or in ‘credit’ built with a third party. The credit of which I speak is the belief of the third party that I am a person of worth, who might justify a good deed sometime in the future. Of course, the third party succumbs to the same rules as the others and undoubtedly will be looking for a return in the future. These compromises are a transaction where perception can be the loose change at the bottom of the couch that makes everything worth it. It’s like playing the stock market, pride forcing up the value of your commodities. This is the fundamental basis of human relationships. The compromise is just an expansion of the basic unit of selfishness. The power of two. Working together, each looking for the greatest gain for the least possible work. The good work throwing in that extra credit for good measure. Nothing is for free. We may not feel it but it is there, the money is in the meter and I don’t plan on going anywhere until it’s run out even if I have to stand here for an hour doing absolutely nothing. Nothing. That is the goal, to get as close to doing nothing as possible.
Filed under Philosophy | Comment (0)Questions and Answers
I am getting this down because I need to. This is the beginnings of my writing. I have put it off for long enough. I began thinking about life and other things, I don’t know when. I suppose it was only seven or so years ago. Before that I think I just went through life or life went through me. Maybe I had the beginnings of it before then, but I can’t be sure. I never really applied myself to it until then. Now I can’t stop. My mind is constantly filled with notions, possibilities. A free flowing exchange of ideas, like a chemical reaction. Ideas of the way the world, the universe is, should be. I have my own ideas. I have been too lazy to really study the ideas of others. It seems easier to get together my own ideas then try to prove them later by taking what I want from those that have already been accepted by the public. I think that this has served me well up until now. Sometimes learning too much, I think, can stop one from thinking for themselves. This is why I think I have chosen now. I was just watching a documentary on Satre. I’ve heard his name and knew he was a philosopher. I had also heard of existentialism before but never really knew what it meant. That is why I am here. I think some if those ideas may tie in with my own. What is so amazing about these ideas? They are ones which have floated around my feeble brain for years. The idea that we are selfish beings. This is just one of my concepts. Yes mine. Maybe I am a philosopher. I need to write this down to find out if I really am. Whether my thoughts have any meaning. Are my thoughts worth anything to anyone else? Who knows. What a powerful thing they are to me. They drive me insane from day to day.
I was just called to duty. A duty that I love but just one of the many duties of existence which breaks the flow of my thoughts. The ones which I have trouble grasping, holding onto. My son is a driving force in my life. Why? That seems obvious and it is. The thing is I want to know what drives us to think the way we do. Why do we love? What drives me to even want to know. The mind, the world, the universe is so complex. It would be easier to let it just happen. Many do. Go through it without even a thought about why. The questions, the possibilities are the things which drive me insane. Insane in short bursts. The thing which drives me to habitually blurt out unfinished questions and affirmations then struggle to think about the subject, any subject which might flow from that inspiration. My mind is a trap. A trap from which there is no escape. I don’t want to. I want to live forever in the hope that one day I might understand……something. Not the sort of understanding that comes from hearing a recitation of how an internal combustion engine works. The sort of understanding that comes from knowing. Just knowing something. Intangible, but truly understanding something as fact without knowing the details. I think that this is the key for me. I want to know and I want to know it all. I don’t need wealth, although it would be nice. It would be nice because maybe it would allow me the time to get to understand why I am here. Whether we are just meaningless. I think I am going mad. Maybe writing all of this down will fend off the inevitable. I can see myself huddled in a corner with just tiny sparks of the meanings of everything flashing off constantly in my head. Everything in the universe passing through my thoughts at once and unable to hold onto any of it. Maybe this is something that I almost wish for myself sometimes. To know for a certainty even a tiny bit the way things are. To know that what I know is not the misunderstandings of someone else just spinning around and repeated in my imaginings, but the truth. That is what I am here for. The truth. That is what I want to know. Why? Not how. When, is a fact. Who, is a fact. How, can be known, even if difficult, but why? That is something that we could ask forever with no answer. To know for yourself is the only way. You cannot know by reading this or anything else but I think that that is what I want. Yes I think so. Ultimately. But I hope that understanding even a part of those other questions might help. Maybe they will just help me to understand what my question is. But I start here. Yes, here.
Filed under Uncategorized | Comment (0)On The Iraq War
copied and pasted from my posts on PhysicsForums)
Ahhh, mmmmmm, errrrr. I have a hard time dealing with the hardcore, pro-war stance.
“A world court, world government or any international body restricting the activities of the USA in protecting its citizens and interests is a complete anathema to me.”
I don’t think that anyone believes otherwise. The debatable point is whether Iraq posed a direct threat to US citizens to protect against.
“In all matters, the USA will try to proceed in a manner agreeable to the 45 nations who supported us in the war.”
I know Australia’s one but the vast majority of the population of Oz wouldn’t agree. The US also has unilateral agreements with other nations which effectively exempt them from being accused of war crimes. Who is manipulating the UN and does the US really care if they do things which are agreeable? (I also marched in a 100,000 protest)
“The Palestinians must have a secure and economically viable homeland. Israel must help economically and be much less rigid in its policies. An economic partnership of Palestine, Jordan, Lebanon and Israel would be a wonderful thing.”
Agreed.
“N. Korea is not an immediate threat to the USA. It is an immediate threat to its neighbors, who must act in their own self-interest to avoid preemptive action by the USA.”
Huh???
“Iran, with some covert help from the USA, is likely to align itself with the USA once it achieves a totally secular government.”
What the…???
“Well Zero, I would like to agree with you. Other peoples, however, have interests in violent opposition to our interests. What course of action do we follow when peaceful means fail?”
I’m in shock and awe???
I don’t usually resort to this and I know that this is not an argument which holds much water, but you are obviously on drugs. Or maybe it’s me and your post is all just an hallucination. Seriously, wake up and smell the public opinion.
In answer to the original questions
Will the Iraqi people be free to decide the fate of their oil?
Of course not. The majority of oil will go to the US under rules set down by the US. After they put US contractors in, they will probably change the food for oil program into a oil for rebuilding program.
“Do they have the right to have it traded in EU Dollars after the ‘rebuild’?”
Seems like a fair question. Why anyone should think they they should trade in US dollars is beyond me. The US does not own the world, even though they might hold them to ransom
“Who should be the ones deciding?”
After the disaster of the war, that’s a difficult question to answer. Iraq will probably be split into a whole heap of political factions, but should free elections be held then it would be logical that the new Iraqi government do it.
——–
I was actually saying that saying he was on drugs wasn’t an argument, but the drug induced reference was based on the quotes I posted. Have a look at them again. You mustn’t have read them the first time. The comments range from extreme fantasy to completely missed irony.
I don’t agree with terrorism. It is a horrible thing. The US government is out and proud about it though under the guise of a war against it. It is a frustrating and all too real joke. If the US directed the money they are putting into this war into more helpful programs, maybe we wouldn’t have come to this. We could have won the hearts and minds of the Iraqi people long ago. Maybe they would have had the courage to overthrow the government themselves. At the risk of sounding melodramatic, the US is flexing it’s muscles to make the rest of the world terrified. What ever you do don’t cross the US decision makers. They are nuts. If I was a conspiricy theorist I would almost say that the US government is deliberately putting the US at risk in order to justify it’s gradual taking over of the rest of the world. But I’m not, so I won’t
——–
It’s very unlike me to resort to name calling. This situation unfortunately reduces me to a childlike state. I sit in complete wonderment at how this situation has arisen for any other reason than American financial interests.
I saw today that the coalition troops had found a store of chemicals. If the footage they showed was this store, it was basically a shed with 20 or so 44 gallon drums. The soldiers wore gas masks but not chemical suits. How bad could it actually be.
The WOMD are simply not there. Even if they were, it would seem that there is no way that the Iraqis could deliver them. The Al Samoud missiles that were destroyed before the beginning of the conflict had a range, from memory, 13kms beyond the maximum allowed under the UN charter.
I saw some footage this morning of Basra, where locals were cheering on the coalition troops. Thank god someone is happy.
I am no supporter of dictatorships. Especially tyrranical dictatorships, but that is not the reason this war has been waged. It has been waged because the US government is not interested in working with Islamic states to become self sustaining without having control over them, so they need to set up a base within the middle east. The fact that they are weak, that Saddam was not particularly liked by his neighbours, and that they have heaps of oil, is a huge bonus as well.
If American people want to believe that they are not complicit in an empire building project, or recognise it and think it’s a good idea, that is a sad thing. It is also of grave concern to anyone who actually values freedom.
Like I said before, don’t cross the US.
Filed under Physics, Uncategorized | Comment (0)Socialism Seven
I don’t agree. Needs and wants are different I admit but somewhere in there lies the majority of things that, as far as material possessions and services go, I think you can fit most in. Like I said, some things you need to compromise on. We already supply and administer most of these things to an extent just the need stuff isn’t enough and the want stuff is owned by capitalists.
About the other bit. I’ve read the Tao Te Ching too. Like most things of philosophical/religious I find some stuff that is good and some stuff that is bad. The bible, the Koran, different buddhist texts, all suffer from the same affliction. This one I don’t agree with, unless it is meant to be sarcastic.
Here is another translation
Not praising the worthy prevents contention,
Not esteeming the valuable prevents theft,
Not displaying the beautiful prevents desire.
In this manner the sage governs people:
Emptying their minds,
Filling their bellies,
Weakening their ambitions,
And strengthening their bones.
If people lack knowledge and desire
Then they can not act;
If no action is taken
Harmony remains.
…just for interests sake.
It actually reminds me of a bit of a part in the Koran when one of Mohammeds desciples (is that the term??) says that their women are going off tap and mohammed says that they should go home and sort them out. Maybe if Mohammed hadn’t given women their rights, to not be treated like the slaves of men, to have the right of inheritance and start women thinking like they had any rights at all, there wouldn’t have been any problem in the first place. But he gave them something that was rightfully theirs and the women felt like they had some control. Mohammed probably, wasn’t trying to take back what he had given them, or say that it was OK to beat women. It could be interpreted that he wanted peace and the result of what he had done was unexpected. That’s how people work though. You can’t keep people in ignorance just so they don’t desire. You have to put all old texts in the context of the time. I’m an athiest, but if Mohammed was really the prophet of god and saw that some people had not progressed any further in creating peace and equality in the world, I’m sure he’d be pissed. I’m sure the same could probably be said of Lao Tse. Siddhartha Gautama, being a spoiled rich kid that abandoned his wife and child ’cause life got a bit too real and never lifted a finger for the rest of his life, I’m not so sure about.
This one’s probably applicable to the Anarchic topic
Let your community be small, with only a few people;
Keep tools in abundance, but do not depend upon them;
Appreciate your life and be content with your home;
Sail boats and ride horses, but don’t go too far;
Keep weapons and armour, but do not employ them;
Let everyone read and write,
Eat well and make beautiful things.
Live peacefully and delight in your own society;
Dwell within cock-crow of your neighbours,
But maintain your independence from them.
and this to the socialist
Honest people use no rhetoric;
Rhetoric is not honesty.
Enlightened people are not cultured;
Culture is not enlightenment.
Content people are not wealthy;
Wealth is not contentment.
So the sage does not serve himself;
The more he does for others, the more he is satisfied;
The more he gives, the more he receives.
Nature flourishes at the expense of no one;
So the sage benefits all men and contends with none.