<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1142853464853141759</id><updated>2011-07-29T01:50:29.213-07:00</updated><category term='felsefe'/><category term='business'/><category term='me'/><category term='picture'/><category term='java'/><category term='python'/><category term='basketball'/><category term='engineering'/><category term='books'/><category term='poetry'/><category term='OOP'/><category term='UML'/><category term='music'/><category term='şiir'/><category term='vim'/><category term='resim'/><category term='chinese'/><category term='c programming'/><title type='text'>hck * 賀</title><subtitle type='html'>/* just a comment to this world... */</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-1712785647140888134</id><published>2010-08-29T11:13:00.000-07:00</published><updated>2010-12-14T03:04:59.042-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='business'/><title type='text'>A little bit about Steve Wozniak</title><content type='html'>&lt;div&gt;(@listening: "Dream Theater - Through Her Eyes")&lt;/div&gt;&lt;div&gt;Why people (especially the managers with non-engineering background) tend to have the fallacies such as "Nothing is impossible"? If you are a "marketing" company, this might be more obvious. Because, none would like to listen about impossibilities --even myself:) However, sometimes, there is the reality. Sometimes, technology's ability is not enough to provide whatever the wildness needs. If you have read the book "iWoz" by Steve Wozniak, you will get me more precisely; especially in the parts that he talks about the "success" of Apple II and the invisible "failure" of Apple III. Back then, "Apple was going to be a marketing company". Steve Wozniak's book is highly recommended to anyone who is interested in engineering, humanity, finance, relationships, luck or whatever there is in your life at the moment! &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-1712785647140888134?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/1712785647140888134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=1712785647140888134' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1712785647140888134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1712785647140888134'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2010/08/big-companies-big-feelings-and-little.html' title='A little bit about Steve Wozniak'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-8328942712988336637</id><published>2009-04-07T22:30:00.000-07:00</published><updated>2009-04-07T22:42:18.461-07:00</updated><title type='text'>Firefox speed up</title><content type='html'>Type about:config in address bar.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;network.http.pipelining  //value:true&lt;br /&gt;&lt;/b&gt;&lt;b&gt;network.http.pipelining.maxrequests&lt;/b&gt; &lt;span style="font-weight: bold;"&gt; //value:30&lt;/span&gt;&lt;br /&gt;&lt;b&gt;network.http.proxy.pipelining  //value:true&lt;br /&gt;&lt;/b&gt;&lt;b&gt;network.dns.disableIPv6  //value:true (ignores IPv6 protocol)&lt;br /&gt;&lt;/b&gt;&lt;b&gt;plugin.expose_full_path //value:true (uses plugins' address, not names)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;Add new preference (not delay during loading web page):&lt;b&gt;&lt;br /&gt;preference name: &lt;/b&gt;&lt;b&gt;nglayout.initialpaint.delay&lt;br /&gt;type: integer&lt;br /&gt;value: 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;New preference (refresh web page for each 5 secs):&lt;b&gt;&lt;br /&gt;preference name: &lt;/b&gt;&lt;b&gt;content.notify.backoffcount&lt;br /&gt;type: integer&lt;br /&gt;value: 5&lt;br /&gt;&lt;/b&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;New preference (loads submenus quickly):&lt;b&gt;&lt;br /&gt;preference name: &lt;/b&gt;&lt;b&gt;ui.submenuDelay&lt;br /&gt;type: integer&lt;br /&gt;value: 0&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;Restart firefox!&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-8328942712988336637?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/8328942712988336637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=8328942712988336637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/8328942712988336637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/8328942712988336637'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2009/04/firefox-speed-up.html' title='Firefox speed up'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-5775799129125807017</id><published>2009-02-02T23:21:00.000-08:00</published><updated>2010-05-08T06:36:13.092-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Useful VIM commands</title><content type='html'>&gt;&gt;&gt; Edit configuration file: /etc/vim/vimrc&lt;br /&gt;&lt;br /&gt;//searh foo and replace with bar (% is meaning all lines)&lt;br /&gt;&lt;code&gt;:%s/foo/bar/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//search for the next instance of foo&lt;br /&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;/foo&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//undo&lt;br /&gt;&lt;code&gt;:u&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//go to first/last line&lt;br /&gt;&lt;code&gt;gg / [shift]+g&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//go to 8th line&lt;br /&gt;&lt;code&gt;8 [shift]+g&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//copy whole line&lt;br /&gt;&lt;code&gt;yy / :ny "n:line number&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//copy from current position to the end of file&lt;br /&gt;&lt;code&gt;:y$&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//copy 3 lines after current position&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;3yy&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//copy range of lines&lt;br /&gt;&lt;code&gt;:1,5y&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//delete whole line&lt;br /&gt;&lt;code&gt;dd / n&lt;span style="font-family:Georgia,serif;"&gt;d "n: line number&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//delete from current position to the end of file&lt;br /&gt;&lt;code&gt;d$&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//delete ange of lines&lt;br /&gt;&lt;code&gt;:1,5d&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//word completion on i-mode&lt;br /&gt;&lt;code&gt;[ctrl]+n&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//copy a region of text in i-mode&lt;br /&gt;&lt;code&gt;v {move cursor} y&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//cut a region of text in i-mode&lt;br /&gt;&lt;code&gt;v {move cursor} &lt;span style="font-family:Georgia,serif;"&gt;x&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;//paste -before the cursor&lt;br /&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;P&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;//paste -after the cursor&lt;br /&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;p&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;//paste -after the cursor&lt;br /&gt;&lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;p&lt;br /&gt;&lt;br /&gt;//correct indentation&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;1) :set filetype=xml&lt;br /&gt;2) :filetype indent on&lt;br /&gt;3) :e&lt;br /&gt;4) gg=G&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-5775799129125807017?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/5775799129125807017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=5775799129125807017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/5775799129125807017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/5775799129125807017'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2009/02/useful-vim-commands.html' title='Useful VIM commands'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-8312474801437428817</id><published>2009-01-03T18:53:00.000-08:00</published><updated>2009-01-07T10:18:21.171-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='felsefe'/><title type='text'>INDUCTIVE REASONING and NON-DEDUCTIVE LOGIC IN MATHEMATICS</title><content type='html'>&lt;div style="text-align: justify;"&gt;Induction, as a method of generalization of knowledge, is important concept for both philosophy and mathematics. Sometimes it serves the same way for philosophy and math, sometimes it does not. Here, I am going to talk about how inductive reasoning serves for mathematics and when it does not.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Mathematical induction is really nothing like empirical induction, but is instead a deductive technique[1]; it is unambiguously a form of deduction. Mathematical induction, with a common example, always says that if a generalization is true for k point, then it must be true for k+1 point. However, what I suggest is more simple; everyone may guess that math must obviously be inductive, because when we are doing math, what we want to do is to find out more general expressions, which is infinite, through more specific cases, which is only one. For example, “every even number can be divided by 2” gives an impression of how come we are sure that a very big even number will not break this rule? This comes from the logic of mathematical induction. Because, if we prove that the smallest even number is 2 and we comprehend that every even number after 2 is also divisible by 2 –even we did not examine this rule for every even number after 2 –actually we do not have to. This is how our knowledge of an infinite set of unexamined cases can be as certain as the conclusion of a valid deduction, quite unlike the conclusion of an ordinary induction. Thus, mathematical induction, one mathematical rule, works on ad infinitum. Then, mathematics itself is giving the idea of inductive reasoning in point of its working style. &lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As for why mathematics suggest more inductive instead of deductive is a bit about philosophy history[2]. Francis Bacon, as the establisher of inductive knowledge method, abnegates deductive reasoning because it’s being absolute cogitation method. On the contrary, Hegel, as a pure idealist, supports deductive reasoning, because he claims that the only way for idealism is deductive reasoning. As we can see from this historical conflict, inductive reasoning came into more prominence in mathematics; mathematics has nothing to do with idealist way on the road. &lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;No wonder mathematics is lawlike, especially when it is on the way of induction; but sometimes it does not work. For example, it does not give any idea about Riemann Hypothesis[3] is true.  So, for this kind of advanced mathematics, mathematics has to be created a new concept to catch some evidence about its correctness. This new concept is called non-deductive logic, which does not really stand for inductive logic –but still have some taste inside.  This basically stand for logical probability as James Franklin mentioned in late 80’s[4]. Actually, he says that “Occurrence of non-deductive login in math is a big embarrassment”. &lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Various inductive principles obviously give results and are not simply dismissed as pragmatic or heuristic. Yet we can suppose that they are not principles of logic, but they work because of natural laws. However, this is not available in mathematical case. Because we accept that mathematics is true in all worlds; any principles guiding the relation between hypothesis and evidence in mathematics can only be logical. Thus consideration of a mathematical example reveals what can be lost sight of in the search for laws: laws or no laws, non-deductive logic is still needed to make inductive inferences.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So far, as from both cases, inductive reasoning and non-deductive logic, viewpoint on mathematics is also changing. It is just like the case that Newton Physics gives enough understanding to our macro-world, but Quantum Physics still works better in advanced case such as for micro-worlds or some specific cases for macro-world. Non-deductive logic or logical probability is a necessity for problems kind of Riemann Hypothesis. But, even now, we are not sure that it gives enough understanding about it or not. And probably, we will not be sure; because this will not be the last case.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;________________________&lt;br /&gt;[1] : Mathematical Induction and Induction in Mathematics, p.3, http://www.psych.northwestern.edu/~rips/documents/mathinduct3.pdf&lt;br /&gt;[2] : http://www.matematikcafe.net/tumdengelim-tumevarim-tarihsel-gelisimi-t-3195.html&lt;br /&gt;[3] : http://en.wikipedia.org/wiki/Riemann_hypothesis&lt;br /&gt;[4] : James Franklin, Non-deductive Logic in Mathematics, Brit. J. Phil. Sd. 38 (1987), p.1&lt;br /&gt;http://www.earlham.edu/~peters/courses/logsys/math-ind.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-8312474801437428817?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/8312474801437428817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=8312474801437428817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/8312474801437428817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/8312474801437428817'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2009/01/inductive-reasoing-and-non-deductive.html' title='INDUCTIVE REASONING and NON-DEDUCTIVE LOGIC IN MATHEMATICS'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-6137354377507891318</id><published>2008-09-15T15:54:00.000-07:00</published><updated>2008-09-15T15:58:11.072-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='basketball'/><category scheme='http://www.blogger.com/atom/ns#' term='me'/><title type='text'>"Failure"</title><content type='html'>"I miss more than 9000 shots in my career.&lt;br /&gt;   I've lost almost 300 hundred games.&lt;br /&gt;      26 times, I've been trusted to take the game in one shot. -And missed.&lt;br /&gt;         I've failed over and over and over again in my life.&lt;br /&gt;&lt;br /&gt;            That is why I'll succeed!"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-6137354377507891318?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/6137354377507891318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=6137354377507891318' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/6137354377507891318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/6137354377507891318'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/09/failure.html' title='&quot;Failure&quot;'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-3794625315506071355</id><published>2008-09-14T22:42:00.000-07:00</published><updated>2008-09-14T22:53:02.376-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c programming'/><title type='text'>Power of 2: 2^n</title><content type='html'>It is good to know that we use bitwise operator (&lt;&lt;) in order to calculate power of 2 (2^n). In a one byte system, we represent 1 as 00000001 and when we shift right-most one to left by one, that is 00000010 means 2.&lt;br /&gt;&lt;br /&gt;If go on to shift, we will see that it just takes one more power of 2. So, basically we can say that 1 &lt;&lt; n (must have no space between) notation calculates the power of n as 2^n. A simple function implementation in C is like: &lt;br /&gt;&lt;blockquote&gt;unsigned int power(unsigned int pow) {&lt;br /&gt;        int result=1 &lt;&lt; pow;&lt;br /&gt;        return result;&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-3794625315506071355?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/3794625315506071355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=3794625315506071355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/3794625315506071355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/3794625315506071355'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/09/power-of-2-2n.html' title='Power of 2: 2^n'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-1221485357909164216</id><published>2008-08-05T16:37:00.000-07:00</published><updated>2008-08-06T06:00:30.849-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c programming'/><title type='text'>C'de system("pause")'un performans maliyeti</title><content type='html'>&lt;div style="text-align: justify;"&gt;C'de system("pause") kullanımı programın çıkış yapana kadar beklemesine dayanır. Bundan dolayıdır ki, programda bu ibareyi eklemeyenler (ya da eklemeyi unutanlar) -özellikle Linux harici bir sistemde- programın derlenmesiyle birlikte çıkış yaptığını göreceklerdir.&lt;br /&gt;&lt;br /&gt;Peki gerçekte bu system("pause")'un işletim sistemine olan etki-tepkisi ve maliyeti nedir? Yazılan programda system("pause") satırı işletim sisteminde şunları gerçekleşir:&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: justify;"&gt;&lt;li&gt;Programı askıya al&lt;/li&gt;&lt;li&gt;İşletim sistemine tekrar çağır&lt;/li&gt;&lt;li&gt;Yeni bir işletim sistemi shell'i aç (işletim sistemini alt-işlem olarak yenile)&lt;/li&gt;&lt;li&gt;PAUSE komutunu bul&lt;/li&gt;&lt;li&gt;Komutu çalıştırmak için belleği düzenle&lt;/li&gt;&lt;li&gt;Belleği tekrar düzenle&lt;/li&gt;&lt;li&gt;İşletim sistemi shell'inden çık&lt;/li&gt;&lt;li&gt;Programı tekrar çağır ve çalıştır&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: justify;"&gt;Görülüyor ki system("pause") komutunun işletim sistemine ve CPU'ya maliyeti ağır. Bu her ne kadra küçük programlarda kendini belli etmese de büyük bellek ve CPU gerektiren programlarda özellikle multi-thread denilen çoklu işlemleri aynı anda yapan programlarda kullanıldığında büyük bir performans arkı yaratacaktır. Onun içindir ki, C kütüphanesinde hali hazırda tanımlanmış olan getchar() kullanarak system("puase") işlemini hacklemek akla gelen ilk çözümleren olabilir. Şöyle ki:&lt;br /&gt;&lt;blockquote&gt;int main(int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;int dogs;&lt;br /&gt;printf("Kaç köpeğiniz var?\n");&lt;br /&gt;scanf("%d", &amp;amp;dogs);&lt;br /&gt;printf("%d köpeğiniz var!\n", dogs);&lt;br /&gt;system("PAUSE");&lt;br /&gt;return 0;&lt;br /&gt;}&lt;/blockquote&gt;Bu program şu şekilde de yazılabilir:&lt;br /&gt;&lt;blockquote&gt;&lt;stdio.h&gt;&lt;stdlib.h&gt;&lt;stdio.h&gt;&lt;stdlib.h&gt;&lt;stdio.h&gt;&lt;stdlib.h&gt;int main(int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;int dogs;&lt;br /&gt;printf("How many dogs you have?\n");&lt;br /&gt;scanf("%d", &amp;amp;dogs);&lt;br /&gt;printf("So you have %d dog(s)!\n", dogs);&lt;br /&gt;getchar();&lt;br /&gt;getchar();&lt;br /&gt;return 0;&lt;br /&gt;}&lt;/stdlib.h&gt;&lt;/stdio.h&gt;&lt;/stdlib.h&gt;&lt;/stdio.h&gt;&lt;/stdlib.h&gt;&lt;/stdio.h&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-1221485357909164216?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/1221485357909164216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=1221485357909164216' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1221485357909164216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1221485357909164216'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/08/cde-systempauseun-performans-maliyeti.html' title='C&apos;de system(&quot;pause&quot;)&apos;un performans maliyeti'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-9050976509495721860</id><published>2008-06-06T01:58:00.000-07:00</published><updated>2008-06-06T02:03:02.976-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music'/><title type='text'>800</title><content type='html'>&lt;div style="text-align: center;"&gt;aşk geldi, damarlardaki kanım gibi oldu&lt;br /&gt;varlık boşalıp, her tarafım dost eliyle doldu&lt;br /&gt;zapteyledi bütün ensai vücudumu.&lt;br /&gt;kaldı kâvi bir namı bana, baki&lt;br /&gt;&lt;br /&gt;şu koskoca alemde yalnız bir kulum&lt;br /&gt;aşk olmasa hiçbir işe gelmezdi gün ışığı&lt;br /&gt;&lt;br /&gt;aşk geldi, damarlardaki kanım gibi oldu&lt;br /&gt;varlık boşalıp, her tarafım dost eliyle doldu&lt;br /&gt;zapteyledi bütün ensai vücudumu.&lt;br /&gt;kaldı kâvi bir namı bana, baki&lt;br /&gt;&lt;br /&gt;ya sana varmak ya bana varman&lt;br /&gt;ya bana gitmeden yanıma kalman&lt;br /&gt;yasını tutmasam, yaşına varsam&lt;br /&gt;karanlık doğmadan, ışığa kalsam&lt;br /&gt;hayal hiç ölçülmez, ne boyu ne de eni&lt;br /&gt;kaya kürür, gönül yakar hep, koru benim&lt;br /&gt;hayata seninle dayanırım her nefes diken&lt;br /&gt;diken ne derttir gülüm, canın sağ olsun da senin&lt;br /&gt;aşkın yok nispeti, bir anda bağlanır kısmetin&lt;br /&gt;her düğüm çözülür, çek hasreti&lt;br /&gt;havadaki kasvet birazcık benden&lt;br /&gt;karadaki ben değil, havadaki bazen&lt;br /&gt;uçan bir kuş, bazen kaybolan bir kumum&lt;br /&gt;koskoca alemde yalnız bir kulum&lt;br /&gt;kolkola gezmek her can ile suç mu&lt;br /&gt;tamam o zaman, benim bu alemde en suçlu&lt;br /&gt;&lt;br /&gt;baktım göğe masmavi, bastığım yer hâki&lt;br /&gt;gördüğüm diyar çok, görmediğimse gani gani&lt;br /&gt;nefes alıp veren bu can da çaresiz kalınca&lt;br /&gt;özlemim büyük, yolum uzun, ben de bir karınca&lt;br /&gt;yanan gönül akan suda, o yolun en sonunda&lt;br /&gt;dostum bende solur, eğer dostum benle kalırsa&lt;br /&gt;dostun senle yaşar, dostun eğer senle ölürse&lt;br /&gt;bir çiçek olup açar belki tekrardan doğunca&lt;br /&gt;her açan senin gülün, hergünse benim günüm&lt;br /&gt;gözyaşı insan külüyse, her yakan insan sözü&lt;br /&gt;kıvılcım sözün özüyse, ayrılık yakar gözü&lt;br /&gt;tek gören gönül gözüyse, kelamım gönül sözüm&lt;br /&gt;yalnızlıktan galip çıkmaktır irfan hiç olmadan&lt;br /&gt;irfan çıktığın her seferden dönmek hasret ekmeden&lt;br /&gt;ektiysen de ders almaktır hasret filizlenmeden&lt;br /&gt;ekmediysen gönül almaktır seferin bitmeden&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-9050976509495721860?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/9050976509495721860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=9050976509495721860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9050976509495721860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9050976509495721860'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/06/800.html' title='800'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-2012942188223087376</id><published>2008-05-12T08:53:00.000-07:00</published><updated>2008-08-06T05:54:26.886-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='felsefe'/><title type='text'>Goodman paradoksu (Nelson Goodman's Paradox)</title><content type='html'>&lt;div style="text-align: justify;"&gt;Üniversitede bu dönem seçmeli olarak aldığım felsefeyle ilgili bir ders için  araştırma yaparken bir şey fark ettim; araştırma yaptığım dilin öncelik sırası değişmişti. Daha düne kadar web tarayıcımın anasayfası Türkiye Google'ına ayarlıyken, bugün varsayılan (aslında iGoogle varsayılan -yani İngilizce'ye) ayarlı. Bu elbetteki çok dikkat çekici bir şey değil; ama alışkanlıklarımın değişmesi konusunda biraz titizim sanırım.&lt;br /&gt;&lt;br /&gt;Tabi ki bunun da bir nedeni var ve çok basit: araştırma ağının İngilizce için daha geniş olması. Uluslararasılaşma ya da daha güzel adıyla -diyelim- küreselleşmenin bir sorunsalı sanırsam :)&lt;br /&gt;&lt;br /&gt;Bu aşamada başka bir şey daha fark ettim; bazı temel konuların hala Türkçe sitelerimizde irdelenmemiş olması. Yani araştırma yaparken "gerçekten" istediğinizi bulamıyorsunuz. Bunun yerine bölük pörçük birkaç bilgi ya da çoğu iyi yapılmamış çeviriler.&lt;br /&gt;&lt;br /&gt;Neyse, ben Türkçe'mize ve sevgilili ilgililere bir katkı yapmak maksadıyla burda felsefe alanında aslında çok temel olan ancak nedense hala Türkçe sitelerimizde bölük pörçük bilgilerle geçiştirilmiş bir paradoksu açıklamaya çalışacağım: Nelson Goodman'ın tümevarım mantığıyla ilgili meşhur paradoksu...&lt;br /&gt;&lt;br /&gt;Goodman'ın paradoksuna giriş yapmadan bazı kavramları açıklamaya çalışayım ilk önce. Goodman'ın paradoksu daha çok tümevarımın geçerliliğine yapılmış bir eleştiri olduğu için ilk önce genel-geçer tümevarım mantığımızı açıklayalım. Bu genel tümevarım mantığımızda kural şu:&lt;br /&gt;&lt;blockquote&gt;"Büyük ve sınırlı gözlemler çerçevesinde bütün A'lar B ise, bir sonraki A'ya yönelik gözlemimiz için beklentimiz yine A'nın B olması yönünde olacaktır."&lt;/blockquote&gt;Bu aşamadan sonra yavaş yavaş Goodman'ın tanımlamalarına giriş yapacağım. Paradoksun orijinal güzelliğinin ve anlaşılırlılığının bozulması için Goodman'ın kilit sıfatlarını İngilizce olarak kullanacağım. İşte başlıyoruz...&lt;br /&gt;&lt;blockquote&gt;"A, eğer belli bir zamandan önce ilk olarak gözlemlenmiş ve green ise; A, grue'dur. Aksi takdirde, yani A, eğer bu belli zaman öncesinde hiç gözlemlenmemişse; A, blue'dur."&lt;br /&gt;&lt;br /&gt;"A, eğer belli bir zamandan önce ilk olarak gözlemlenmiş ve blue ise; A, bleen'dir. Aksi takdirde, yani A, eğer bu belli zaman öncesinde hiç gözlemlenmemişse; A, bleen'dir."&lt;/blockquote&gt;Bu aşamada grue ve bleen'in renk olmadığını belirtelim. Burda ana nokta, hangisinin belli bir zamandan önce ya da sonra gözlemlendiğiyle ilgili. Çünkü, sıfatlarımız buna göre değişiyor. Bundan dolayı bu iki sıfatı "renklenk" olarak adlandıralım ve "renk" ile "renklenk" arasındaki ilişkiyi aşağıdaki grafikle açıklayalım.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_gnv-rNtGTtk/SCh5AdJ_0SI/AAAAAAAAAF0/Vzkwx77BIbY/s1600-h/goodman_paradoks.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_gnv-rNtGTtk/SCh5AdJ_0SI/AAAAAAAAAF0/Vzkwx77BIbY/s320/goodman_paradoks.gif" alt="" id="BLOGGER_PHOTO_ID_5199538818532757794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Şunu da belirtmek gerekir ki, gözlem sonucu elde edilmiş bilgi "belli zamanın aşmasıyla" değişmeyecektir. Yani, A, grue ise, sonsuza dek grue olarak kalacaktır.&lt;br /&gt;&lt;br /&gt;Şimdi bu paradoksal hala gelmeye başlamış özel durumumuzu genel-geçer tümevarım mantığımızla açıklamaya çalışalım.&lt;br /&gt;&lt;blockquote&gt;"Büyük ve sınırlı gözlemler çerçevesinde bütün A'lar grue ise, bir sonraki A'ya yönelik gözlemimiz için beklentimiz yine A'nın grue olması yönünde olacaktır."&lt;/blockquote&gt;Ama, bir dakika!!! Ya, gözlem anımız paradoksumuzda "belli bir zaman" anından sonraya kayıyorsa??? Örneğin, felsefeyle oynamayı seven bir milyoner arkadaşımız, bize gözlemlerimizin doğruluyla ilgili bir oyun oynamayı öneriyor ve sonunda büyük ödül var. Soru ise şu: "Yeşil A ile ilgili bir gözlem yap ve bu aşamada "belli bir zaman" sınırı 2000 yılı olsun. A grue mü yoksa bleen mi?" Şimdi, gözlemimizi 31 Aralık 1999 tarihinde, gece yarısına saniyeler kala yaptığımızı varsayalım. Doğal olarak A, yeşil renkte olduğu için grue renklenkte olacak. Peki bundan sonraki yeşil A gözlemlerimizde A'yla ilgili beklentimiz ne olacak? Grue tabii ki.&lt;br /&gt;&lt;br /&gt;Ancak eğer gözlemlerimizi yapmadan önce kabul ettiğimiz tümevarım kuralımıza bakarsak, A için blue demek zorunluluğunu göreceğiz. Neden mi? Çünkü, 2000 yılının sonrasına göre A, tekrar ilk gözlemlenmiş konumuna düşecek ve bu durum tümevarım kuralımıza göre A'yı blue yapacak...&lt;br /&gt;&lt;br /&gt;A'nın rengi gözlemin yapıldığı ana göre değiştiği için gözlemin kanıtlanması olanaksızlaşacak. Çünkü 2000 yılı öncesi ve sonrasına göre iki tümevarımsal kanıt var gibi gözüküyor. Sizce cevap ne? A, grue mu, blue mu? Bilene büyük ödü l :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Kaynak:&lt;br /&gt;www.princeton.edu/~grosen/puc/phi203/goodman.html&lt;br /&gt;http://www.encyclopedia.com/doc/1O87-Goodmansparadox.html&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-2012942188223087376?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/2012942188223087376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=2012942188223087376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/2012942188223087376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/2012942188223087376'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/05/goodman-paradoksu-nelson-goodmans.html' title='Goodman paradoksu (Nelson Goodman&apos;s Paradox)'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_gnv-rNtGTtk/SCh5AdJ_0SI/AAAAAAAAAF0/Vzkwx77BIbY/s72-c/goodman_paradoks.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-6059420367307925776</id><published>2008-04-22T11:32:00.000-07:00</published><updated>2008-08-06T05:58:32.243-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='OOP'/><title type='text'>Advices about using access modifiers in Java</title><content type='html'>&lt;ul&gt;&lt;li&gt;Public: For those methods that are necessary to use an object. Note that attributes should &lt;strong&gt;never&lt;/strong&gt; be public. If other objects need access to attributes, create getters and declare them as &lt;span style="font-family:courier new;"&gt;final&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Protected: Best reserved specifically for subclass use. I do not declare anything as protected unless I know that a subclass absolutely needs it. In general, I do not declare methods and attributes as protected in the chance that a subclass may need it sometime in the future. If my design does not justify it explicitly, I declare                            everything that is not in the public interface as &lt;span style="font-family: courier new;"&gt;private&lt;/span&gt;.                         &lt;/li&gt;&lt;li&gt;Private: For all methods not in the public interface and not designed for use by subclasses.&lt;/li&gt;&lt;li&gt;Package Protected: Like protected this level is best reserved specifically for subclass use. However, package protected acts more restrictive than protected. A subclass appearing outside of the class's package will not be able to access package protected features. Package protected is useful if you want to open features to your subclasses but want to restrict access to those who might not understand the full design or consequences of using a feature. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-6059420367307925776?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/6059420367307925776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=6059420367307925776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/6059420367307925776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/6059420367307925776'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/04/advices-about-using-access-modifiers-in.html' title='Advices about using access modifiers in Java'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-5993712147157419929</id><published>2008-04-18T13:05:00.000-07:00</published><updated>2010-08-30T01:51:16.035-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Why understanding bytecode is important ?</title><content type='html'>Because, if the bytecode instructions sucks, then your debugging, doing performance and memory usage tuning is going to suck, too...&lt;br /&gt;&lt;br /&gt;Because, when you know about bytecode, you can implement more efficient and performance-able codes...&lt;br /&gt;&lt;br /&gt;More about this : &lt;a href="http://www-128.ibm.com/developerworks/ibm/library/it-haggar_bytecode/"&gt;here&lt;/a&gt; ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-5993712147157419929?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/5993712147157419929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=5993712147157419929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/5993712147157419929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/5993712147157419929'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/04/why-understanding-bytecode-is-important.html' title='Why understanding bytecode is important ?'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-1358172670450798266</id><published>2008-04-15T09:44:00.000-07:00</published><updated>2008-04-15T09:49:48.438-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='books'/><title type='text'>Love Knot</title><content type='html'>&lt;span style="font-style: italic;"&gt;"In the old days a love-sick sailor might send the object of his affections a length of fishline loosely tied in a true-lover's knot.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;If the knot was send back as it came the relationship was static. If the knot returned home snugly drawn up the passion was reciprocated. But if the knot was capsized -tacit advice to ship out."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;...from Annie Proulx's 'The Shipping News', p-2006, p.13&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-1358172670450798266?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/1358172670450798266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=1358172670450798266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1358172670450798266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1358172670450798266'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/04/love-knot.html' title='Love Knot'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-1336880975639582302</id><published>2008-03-31T07:26:00.000-07:00</published><updated>2008-03-31T07:28:08.279-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML'/><category scheme='http://www.blogger.com/atom/ns#' term='OOP'/><title type='text'>Good UML Terms Examples : Association, Aggregation, Composition</title><content type='html'>Association:&lt;br /&gt;1. Create a folder called "Links"&lt;br /&gt;2. create a shortcut inside this folder and link it to www.yahoo.com&lt;br /&gt;3. create another shortcut instide this folder and link it to www.google.com&lt;br /&gt;4. Ask your friend to do the same on another machine using same links (www.yahoo.com and www.google.com)&lt;br /&gt;5. Delete the "Links" folder, and open your browser to check if www.yahoo.com and www.google.com still exist or not ;)&lt;br /&gt;&lt;br /&gt;Briefly, Association is a relationship where all the objects have different lifecycles. There is no owner.&lt;br /&gt;&lt;br /&gt;Aggregation:&lt;br /&gt;1. Create a file called file.txt&lt;br /&gt;2. make a simple application to open the file.txt (rw), but don't program it close the connection.&lt;br /&gt;3. Run an instance of this application (it should work ok and can open the file for rw)&lt;br /&gt;4. Keep the first instance, and run another instance of this application (In theory it should complain that it can't open the file in rw mode because it is already used by other application).&lt;br /&gt;5. Close the 2 instances (make sure you close the connection).&lt;br /&gt;&lt;br /&gt;From the above application, we knew that the Application and the file has a separate lifecycles, however this file can be opened only by one application simuletanously (there is only one parent at the same time, however, this parent can move the child to another parent or can make it orphan).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Composition:&lt;br /&gt;1. Open a new Document name it as test.txt&lt;br /&gt;2. Write this sentence in iside this document "This is a composition".&lt;br /&gt;3. Save the document.&lt;br /&gt;4. Now, delete this document.&lt;br /&gt;&lt;br /&gt;This is what is called composition, you can't move the sentence "This is a composition" from the document because its lifecycle is linked to the parent (the document).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-1336880975639582302?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/1336880975639582302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=1336880975639582302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1336880975639582302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/1336880975639582302'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/03/good-uml-terms-examples-association.html' title='Good UML Terms Examples : Association, Aggregation, Composition'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-409644194739114119</id><published>2008-03-16T20:11:00.000-07:00</published><updated>2008-03-16T20:14:41.735-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='şiir'/><category scheme='http://www.blogger.com/atom/ns#' term='chinese'/><category scheme='http://www.blogger.com/atom/ns#' term='resim'/><category scheme='http://www.blogger.com/atom/ns#' term='picture'/><category scheme='http://www.blogger.com/atom/ns#' term='poetry'/><title type='text'>A Chinese ancient poetry (300BC): THE MOUNTAIN SPIRIT</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://features-temp.cgsociety.org/gallerycrits/80841/80841_1171250284_large.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://features-temp.cgsociety.org/gallerycrits/80841/80841_1171250284_large.jpg" alt="" border="0" /&gt;&lt;/a&gt; There seem to be a man in the deep mountain,&lt;br /&gt;Clad in creeping vine and girded with ivy,&lt;br /&gt;With a charming look and a becoming smile.&lt;br /&gt;Do you admire me for my lovely form?&lt;br /&gt;She rides a red leopard - striped lynxes follwing behind -&lt;br /&gt;Her chariot of magnolia arrayed with banners of cassia,&lt;br /&gt;Her cloak made of orchids and her girdle of azalea,&lt;br /&gt;Calling sweet flowers for those dear in her heart.&lt;br /&gt;I live in a bamboo grove, the sky unseen;&lt;br /&gt;The road hither is steep and dangerous; I arrive alone and late.&lt;br /&gt;Alone I stand on the mountain top&lt;br /&gt;While the clouds gather beneath me.&lt;br /&gt;All gloomy and dark is the day;&lt;br /&gt;The east wind drifts and god sends down rain.&lt;br /&gt;Waiting for the divine one, I forget to go home.&lt;br /&gt;The year is late. Who will now bedeck me?&lt;br /&gt;I pluck the larkspur on the mountain side,&lt;br /&gt;The rocks are craggy; and the vines tangled.&lt;br /&gt;Complaining of the young lord, sadly I forget to go home.&lt;br /&gt;You, my lord, are thinking of me; but you have no time.&lt;br /&gt;The man in the mountain, fragrant with sweet herb,&lt;br /&gt;Drinks from the rocky spring, shaded by pines and firs.&lt;br /&gt;You, my lord, are thinking of me, but then you hesitate.&lt;br /&gt;The thunder rumbles and the rain darkens;&lt;br /&gt;The gibbons mourn, howling all the night;&lt;br /&gt;The wind whistles and the trees are bare.&lt;br /&gt;I am thing of the young lord; I sorrow in vain.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-409644194739114119?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/409644194739114119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=409644194739114119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/409644194739114119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/409644194739114119'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/03/chinese-ancient-poetry-300bc-mountain.html' title='A Chinese ancient poetry (300BC): THE MOUNTAIN SPIRIT'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-9044482027487806267</id><published>2008-03-12T01:59:00.000-07:00</published><updated>2008-03-12T02:02:43.101-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Puzzle --python</title><content type='html'>here is an interesting puzzle in python code. better to give a try. enjoy!!!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.jorendorff.com/toys/puzzle.html" target="_blank"&gt;http://www.jorendorff.com/toys/puzzle.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-9044482027487806267?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/9044482027487806267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=9044482027487806267' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9044482027487806267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9044482027487806267'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/03/puzzle-python.html' title='Puzzle --python'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-9011927427827594009</id><published>2008-03-09T13:10:00.000-07:00</published><updated>2008-03-09T23:13:27.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music'/><title type='text'>Barış Manço * 2023'te umarım ...</title><content type='html'>&lt;object height="355" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/xi9oaf3UQfE"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/xi9oaf3UQfE" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-9011927427827594009?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/9011927427827594009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=9011927427827594009' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9011927427827594009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/9011927427827594009'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/03/bar-mano-2023te-umarm.html' title='Barış Manço * 2023&apos;te umarım ...'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1142853464853141759.post-3958047286814978933</id><published>2008-03-09T12:59:00.000-07:00</published><updated>2008-03-09T13:01:10.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music'/><title type='text'>Amazing performance from Angela Aki</title><content type='html'>&lt;object height="355" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/PWFq7_tNyh0"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/PWFq7_tNyh0" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1142853464853141759-3958047286814978933?l=hckir.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hckir.blogspot.com/feeds/3958047286814978933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1142853464853141759&amp;postID=3958047286814978933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/3958047286814978933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1142853464853141759/posts/default/3958047286814978933'/><link rel='alternate' type='text/html' href='http://hckir.blogspot.com/2008/03/amazing-performance-from-angela-aki.html' title='Amazing performance from Angela Aki'/><author><name>hck (賀)</name><uri>http://www.blogger.com/profile/02286993576527647140</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp3.blogger.com/_gnv-rNtGTtk/R9Q0hgDnwhI/AAAAAAAAAE4/yePEMOui_Tg/S220/IMG_1426.JPG'/></author><thr:total>0</thr:total></entry></feed>
