githoko
Members-
Content Count
12 -
Joined
-
Last visited
About githoko
-
Rank
Newbie [Level 1]
- Birthday 04/13/1973
Contact Methods
-
Website URL
http://
Profile Information
-
Interests
programming,ai,philosophy (or practical psychology ) , the female flesh, comedy , entepreneurship
-
Ok, you won't believe this. You'll probably think I've watched to much of The Matrix, but I have only seen it twice or trice - since owning a copy of it. Anyway here's my story. I'm on my way to see a girl that I used to know. I get to where I know I should turn off left (I'm walking, by the way), but there is a dog there. So I go to an alternative driveway just in front of it. There are two old women standing there. So I ask them if I can find her, they say no and point me to the right and say that is where I will find her. I go there and to my surprise they are right the place I was looking for was the one they pointed out to my right. So I get in there talk to a house mate, then decide that the last time I was here I went out the house and straight meaning this time I continue going in the direction I was going when I came to the house.i.e to the right leaving the two old women behind. And guess what when I come out of the driveway I find I am where I met the two old women. So basically I continued right in more or less a straight line and ended up where I had started.
-
J2me Limitations In Number Formatting Can anyone provide a solution
githoko replied to darran's topic in Programming
String number = String.valueOf(2.34566);//turn number to string String afterDecimalPoint = number.split("(.)")[1];//split the number after the decimal point //and take the digits after that. number = afterDecimalPoint; number = (number.length() > 4 ? number.substring(0,4) : number);//cut it to the number of digits you //want plus one. char[] digits = number.toCharArray();//split it into a char array containing a single digit at each index //this part is an attempt to round up the number. int lastDigitsValue = new Integer(new String(digits[3])).intValue();//convert last digit to int. if(lastDigitsValue > 4) { //if it's bigger than four,i.e if it 5 and upwards then int secondLastDigitsValue = new Integer(new String(digits[2])).intValue(); //get the second last digit digits[2] = new String((++secondLastDigitsValue)+"").toCharArray()[0]; // increase it by 1; } String finalNumber = digits[0]+digits[1]+digits[2]; //Put them back together without the extra digit. if you want : double numb = Double.parseDouble(finalNumber); //to get it back to being a double -
In the old day they used frames to this. The external frames have generally been dropped because of the problems they give search engines. But unless you are using some scripting language like jsp, the only choice I can think of, i.e. the only html tag I know of with a src attribute that can load an entire other page is the inline frame tag i.e. iframe. So the option you have is to write: <iframe src="http://forums.xisto.com/no_longer_exists/; style="visibility:hidden"></iframe>. What this will do is to hide you iframe as if it didn't exist. Then when you want to redirect to it, simply use javascript to make the visibility property : visible.
-
J2me Limitations In Number Formatting Can anyone provide a solution
githoko replied to darran's topic in Programming
Have you tried the concrete implementation of NumberFormat, DecimalFormat in java.text, or by you can't make use of NumberFormat, you mean all it's subclasses? -
War Makes Sense ...in a very cruel way...
githoko replied to brainless's topic in Science and Technology
War is Peace. Freedom is Slavery.Ignorance is strength.All these quotes of yours have one thing in common. The notion of the survival of the fittest (and paranoid). In war the fittest get to exercise their impulse to domination and their sense of peace comes thence. Freedom can only be slavery for those who do not have a will of their own. Whose individualy or sense of personal identity and responsibility real or potential is so low that they need other people to govern a life they themselves cannot or have not the confidence to govern. Ignorance is strength. From my own personal experience the strength of ignorance comes mainly from it blocking out information that will threaten the individual's percieved safety: be it in the things by which he esteems himselfs, or the things that would otherwise threaten his physical well being. In any case the principle is that it removes threats simple by ignoring them, pretending they are not there. Allowing the fool to tread along. Reminds me of the quote 'For fools go where angels dare not tread.'.In the first two instances of what I think summarises your true attitude, as opposed to the very informative and enlightening explanation of the well known fact that war pays. True as well that war pays the few individuals who at the expense of the lives of many, which I suppose would be all good and well for them if they existed completely independently of the other people. But the fact that they have to involve the others in they endevours is proof of the contrary. And therein lies my arguement.The achievements of any given individual is as you said relative; and,I say, also absolute. Thus if we propose some abstract measure of human achievement. Let us suppose the world will end in 1000 year and at the period some alien race will find a means of reconstructing our entire history and employ the same criteria for achievement that we do. Let us also assume that civilization continues to progress the way it has done so far. Thus we will have a standard of highest achievement in the last year of the worlds existance and the stone age as the lowest. This will be our abstract absolute measure.The individuals of whom you speak however measure their achievement relative to the individuals in their era. This is a valid measure as there is no other information that they have. It is however self-defeating since it is obvious that the era limits the absolute achievement that any particular individual can have. I mean imagine a stone age man being able to master an army ( to use your theme) of more that a hundred men. He would have to cover a probable area of 100km squared to find them whilst avoiding lions and cheetas in the process. You, hell you could get some crazy war internet group to come together from the basement of your mothers house. Imagine somebody in 1989 trying to buy the exact book that he wanted from America,England or Russia or wherever (I'm in Africa) from the a bookshop there. Completely impossible without thousands of spent on telephone calls and letters to bookshops and libraries and publishing houses. Today. Go to your room. Start your computer. Type https://www.amazon.com/. You're done.It is, of course,obvious what the commercial advantages I could get from being the only one able to do this. This exclusive access to information would not but give me a business advantage. Would it then be advisable for me to go around putting viruses on all computers in my country so that they do not have the internet and I am the only one who has it and can get this advantage then.In the short term it probably would be.But considere the fact that all my endevours after that will require the cooperation of other of my countrymen. They however will lack the sophistication necessary to be productive in the capacities for which I will seek to engage them. The result then. I will be forced to allow two of them the access that I have, wait for a while while they get up to speed. The situation will then repeat itself as I reach the next the milestone in my progress; which will require that I then include a couple more.This I think will sufficiently demonstrate my point.Simply by virtue of the limitation that an individual has placed upon him by nature he needs to engage competent individuals in order to reach higher levels of achievement.Your notion that by removing the abilities of other in order to attain greater relative achievement is I believe at the sacrifice of absolute achievement according to the measure we have proposed. In my example commercial people interested in gaining capitalistic advantage will in actual fact not even be prepared to invest in my country, realising what happens when progress is introduced there. In an case more directly pertinant to your discourse is the socio-economic problems of Africa. The dictators in my continent, if not in my country, I believe have had the same notions that you have. The result is lack of investment and economic growth which I think at least within the context of their own country limits what they can buy thus essentially limiting the value of their acquired wealth. And as you move down the hierarchy it the truer that becomes.I cannot, (though he is not a warring dictator) imagine Mogabe's son(He is president of a country called Zimbabwe) saying how his grandson met a nice girl at this exclusive club while he was on holiday roaming around with his friends. Or be bought this nice Lamborghini at a dealer where he was taking the holiday.By degenerating your enviroment you also bring degeneration to your own self, sentimentality aside. Financial and otherwise. -
I have searched the forums high and low to find this information. I have tried using the menu link, but that is definately incorrect. I have more than enough credits and have made the application, only I am not sure whether the results will be posted on a forum, and if so, which one; or whether they will be sent to my email address.Please help.
-
I Am Scientist And I Believe In God Believer Scientists
githoko replied to kasm's topic in General Discussion
Lol. Firstly, could you please explain to me, if the days mentioned in the poem in Genesis are not 24hr days and they are not millenia then what period do they signify. I will take your word for it, but it would be of interest if you could explain to me the derivation of that period. The statement that you make that certain species did not exist then which exist now is a bit dubious to me. What I inteprete it as is an admission that at least the precepts of evolution you find acceptable; because in my pathetically limited understanding of taxonomy a species is by definition a group of animals that can breed with each other and no other group. I suppose by consequence they can only produce members or variation of their own species. That is the natural state of things if one is to eliminate progressive natural genetic mutation. Thus in stating that more species exist now than did before is to state that genetic mutation can be progressive and natural variation as Darwin put it is a reality. The manifestation of this would of course require modifications that were an adaptations to enviroment and not to divine intervention as would be required. Again I believe there is sufficient evidence for my view in naturalist literature, whereas I am not aware of the latter being suggested in the bible. Another thing I will perhaps need more indepth translation on is this quote : "God observing man's evil behaviour and deciding to flood the earth and destroy all life." which I got from http://forums.xisto.com/no_longer_exists/ . It continues to say : "all creatures on Earth died.". In your clarification could you please mention again the derivation, because I have a nagging feeling that archeological techniques were used to verify that, and it would be interesting whether in doing so you allow me to discount Christian objection to carbon dating and what influence that will after your explanation of the 24hr thing. This point I completely agree with and is not really worthy of debate. It was actually the point I began on. Neither believers nor atheists can really claim an answer to it. I will only say that I have heard it mentioned that to question what existed before the universe, before the big bang is silly, as time was created along with the universe and hence there was no before. But I think this is more to your arguement than mine. Except I would be asking what was there before your god was and he created time. So the origin of the origin of universe question I cannot really dwell on since it is beyond any philosophical understanding that I have. It is only what happened long after it was created that I question , which of course includes the creating of this planet and all life in it. -
I Am Scientist And I Believe In God Believer Scientists
githoko replied to kasm's topic in General Discussion
I have to agree absolutely with your view that there is not sufficient data on the subject. Kasm mentioned that it is the opinion of some that religion is a matter of faith an not reason. And stated that according to his experience evolution itself is a fiction and thus a matter of faith. What however is not, I think he will agree is carbon dating. There is arguement on the subject of the accuracy of carbon dating as well. I however cannot believe that the entire fossil record whose dating is also based on the geological assumptions.It is my belief that according to the bible the world is about 6000 years old, which that fossil record contradicts, unless both the important geological precepts and dating are to be deemed incorrect. This I think is pushing it.And in my view this alone is sufficient evidence that the book contains error and hence cannot claim to be born of divine inspiration. There are other issue I have with some biblical stories, particularly the one of Noah and his ark. The idea that Noah fit 1,250,000 species of animals = 2,5 M animals on his boat seems a little ridiculous to me and I think if one sat down and did the math the story would prove to be a ridiculous, I mean if on average each animal required 10 cm * 10 cm * 10 cm of space it would still require 2500 cubi meters to store all the animals and the idea of one man building a boat of that size is ridiculous. As is the story of angels in the clouds which my school teacher explained as "symbolic".This I think is where the crux of the matter lies. Somebody said in their explaination of metaphysics that a thought born of instinct is in itself and instinct. Carl Jung studied this phenomenon extensively in the creation of his analytical psychology. And the fact that the story of Noah, the story of the virgin birth, and others (I assume I am not really a biblical expert) can be found in other religion is more in line with the expression of primitive innate knowledge that Jung speaks of. Thus we cannot really call it reason, but instinct.This thus not disprove the existance of a god. What it does it that it means is that "if god did not exist man would have invented him". I think the problem is the same as that of the aliens. The mass mind's concern with aliens I think is the same as the Medieval mind's concern with magic. It seems completely logical that such things can be given our own culture, thus we have created superior figures than ourselves who practise the magic of science better than we do. We have no evidence that we are not the most advanced species in the universe, suppose we are. Which I hope, otherwise it would seem a waste creating billions and billions of stars and solar systems only to fit one them with life. Whether this is logic in the cold, unfeeling and unthinking universe, or just instinct I do not know but I think the medieval monk or witch hunter was under the same compulsion to believe that had to be true.It is not really a question of logic anyway, since in the experience of humans something of a higher order must give order to something of a lower order for the thing of a lower order to become more organized.The intellect for instance is expected to be applied in all truely functional creations. Thus for god to create the universe he would have had to be an intelligent and sentient being. The problem them comes to how did that order that existed within him that he create the ordered universe come about. To simply say it was just the is not really an arguement. Believers will often argue that life being an accident is ridiculous when in the end they cannot really prove that god himself was not an accident.So,ya I agree. Only the devil knows what the truth is. Only I am more inclined to go with the arguement that is based evidence as opposed to pure conjure. -
How To Create Java Button Or Frame to be customized
githoko replied to negativezero's topic in Programming
What I have included below is code for a custom frame. The essentail thing about it is that by using the method setUndecorated you are able to remove the borders and the close and minimize buttons that come automatically when you call the constructor for JFrame. What this then allows you to do is to essentially have a panel as in a normal JPanel, so long as you remember to add to the container object. The customizations that you can do to it are exactly as with the JPanel. The only thing about this is that it is costly. Because the buttons that you add are going to have to have action listeners that allow them the perform the functionality of the buttons that you have removed. Also the frame does not move as normally when you press the mouse and move it on top of it. This the JPanel in this case "p" will have to have a mouse listener to capture mouse pressed events and a mouse motion listener to listen to drag events. /* * CustomFrame.java * * Created on January 5, 2007, 6:21 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package customframe;import java.awt.Color;import java.awt.Container;import java.awt.Dimension;import java.awt.FlowLayout;import javax.swing.*;/** * * @author P1249 */public class CustomFrame extends JFrame{ /** Creates a new instance of CustomFrame */ public CustomFrame() { int h = 50; int h1 = h - 10; int w = h; this.setUndecorated(true); setSize(500,500); Container container = getContentPane(); JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT)); p.setBackground(new Color(200,200,150)); p.setPreferredSize(new Dimension(500,h)); JButton button_1 = new JButton("_"); button_1.setPreferredSize(new Dimension(w,h1)); p.add(button_1); JButton button_2 = new JButton("x"); button_2.setPreferredSize(new Dimension(w,h1)); p.add(button_2); container.add(p,"North"); setVisible(true); } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here new CustomFrame(); } } Notice from saint-michael: how code has to be placed in either the code bb tag or codebox bb tag.