<?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-3529217204632979498</id><updated>2012-01-08T18:16:09.000+02:00</updated><category term='servletcontext'/><category term='show/hide'/><category term='cheat sheet'/><category term='password change'/><category term='javascript'/><category term='display'/><category term='swing'/><category term='j2se'/><category term='jtabbedpane'/><category term='printwriter'/><category term='maven'/><category term='dbunit maven java'/><category term='export'/><category term='open source'/><category term='game engine'/><category term='commons-beanutils'/><category term='jar'/><category term='commands'/><category term='css'/><category term='opengl'/><category term='intellij xml xsl'/><category term='plugin'/><category term='javaone'/><category term='spring'/><category term='class'/><category term='sun'/><category term='windows'/><category term='servlet'/><category term='textarea'/><category term='solaris'/><category term='taskkill'/><category term='wget'/><category term='database'/><category term='apache'/><category term='linux'/><category term='iş görüşmeleri'/><category term='commandline'/><category term='cv'/><category term='java'/><category term='mysql'/><category term='php'/><category term='sorting'/><category term='jstl'/><category term='spring security'/><category term='servletconfig'/><category term='oyun motorları'/><category term='intellij'/><category term='intellij java'/><category term='oracle'/><category term='unix'/><category term='div'/><category term='administration'/><category term='jboss'/><category term='mod_rewrite'/><category term='collections'/><category term='textarea manipulation'/><category term='classpathcomplete'/><category term='j2ee'/><title type='text'>Halil Karaköse</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6325488479796801367</id><published>2012-01-08T18:07:00.003+02:00</published><updated>2012-01-08T18:16:09.013+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Mysql Backup and Restore</title><content type='html'>&lt;b style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;u&gt;Backup&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;You can use mysqldump to create a simple backup of your database using the following syntax.&lt;/div&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;mysqldump -u [username] -p [password] [databasename] &amp;gt; [backupfile.sql]&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Following is an example of a database backup command:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;mysqldump -u mysql_user -p mysql_pass &lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;clipbucket &lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;&amp;gt; clipbucket.sql&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: courier new,courier,mono;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Restore&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;The dump file retrieved from from &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mysqldump &lt;/span&gt;command can be restored using &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mysql&lt;/span&gt; command. Following is the general format of restore command:&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;mysql -u [username] -p [password] [database_to_restore] &amp;lt; [backupfile]&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Following is an example of a database restore command:&lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;mysql -u mysql_user -p mysql_pass &lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;clipbucket_2 &lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;&amp;lt; &lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;clipbucket&lt;/span&gt;&lt;span style="font-family: courier new,courier,mono; font-size: small;"&gt;.sql&lt;/span&gt; &lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: courier new,courier,mono;"&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: transparent; border: medium none; color: black; font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; overflow: hidden; text-align: left; text-decoration: none;"&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/3529217204632979498-6325488479796801367?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6325488479796801367/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6325488479796801367' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6325488479796801367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6325488479796801367'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2012/01/mysql-backup-and-restore.html' title='Mysql Backup and Restore'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2134987172139971121</id><published>2011-02-02T13:49:00.002+02:00</published><updated>2011-02-03T10:28:33.538+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><title type='text'>Solaris: How To Disable/Enable Desktop GUI</title><content type='html'>To disable the GUI on startup, run the following command:&lt;br /&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&gt;/usr/dt/bin/dtconfig -d&lt;/div&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&gt;&lt;span style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Restart the system using init 6 and you will see that GUI will no longer start automatically.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;To enable it again, use the following command:&lt;br /&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&gt;/usr/dt/bin/dtconfig -e&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Times, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;You may just want to start desktop manager without enabling it. Use the following command to start desktop manager, without restarting Solaris:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;/etc/init.d/dtlogin start&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: 'Courier New',Courier,monospace;"&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/3529217204632979498-2134987172139971121?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2134987172139971121/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2134987172139971121' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2134987172139971121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2134987172139971121'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2011/02/solaris-how-to-disableenable-desktop.html' title='Solaris: How To Disable/Enable Desktop GUI'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-7775707692577965362</id><published>2011-01-08T16:20:00.001+02:00</published><updated>2011-01-08T16:21:40.334+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>When is my table last analyzed?</title><content type='html'>&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Following query shows the latest analysis time of tables in Oracle: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;SELECT distinct stattype_locked, table_name, last_analyzed &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;FROM dba_tab_statistics&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;WHERE owner = 'HR' order by last_analyzed desc;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-7775707692577965362?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/7775707692577965362/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=7775707692577965362' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7775707692577965362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7775707692577965362'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2011/01/when-is-my-table-last-analyzed.html' title='When is my table last analyzed?'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-1027017381071282813</id><published>2010-10-08T11:32:00.001+03:00</published><updated>2010-10-08T11:33:23.619+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><title type='text'>Solaris: How To Download File In Command Prompt</title><content type='html'>wget command is used to download files in unix based operating systems. But in Solaris the command does not seem to exist:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# wget&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;wget: not found&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: inherit;"&gt;Actually it exists in the file system. But it just isn't added into PATH by default. The location of command is &lt;/span&gt;&lt;span style="font-family: inherit;"&gt;/usr/sfw/bin/wget. &lt;span style="font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Following is a usage example of wget in Solaris.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# /usr/sfw/bin/wget google.com&lt;br /&gt;--2010-10-08 11:15:20--&amp;nbsp; http://google.com/&lt;br /&gt;Resolving google.com... 74.125.87.99, 74.125.87.104&lt;br /&gt;Connecting to google.com|74.125.87.99|:80... connected.&lt;br /&gt;HTTP request sent, awaiting response... 301 Moved Permanently&lt;br /&gt;Location: http://www.google.com/ [following]&lt;br /&gt;--2010-10-08 11:15:20--&amp;nbsp; http://www.google.com/&lt;br /&gt;Resolving www.google.com... 74.125.87.104, 74.125.87.99&lt;br /&gt;Reusing existing connection to google.com:80.&lt;br /&gt;HTTP request sent, awaiting response... 302 Found&lt;br /&gt;Location: http://www.google.com.tr/ [following]&lt;br /&gt;--2010-10-08 11:15:20--&amp;nbsp; http://www.google.com.tr/&lt;br /&gt;Resolving www.google.com.tr... 74.125.87.104, 74.125.87.99&lt;br /&gt;Reusing existing connection to google.com:80.&lt;br /&gt;HTTP request sent, awaiting response... 200 OK&lt;br /&gt;Length: unspecified [text/html]&lt;br /&gt;Saving to: `index.html.2'&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ &amp;lt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] 9,005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --.-K/s&amp;nbsp;&amp;nbsp; in 0.01s&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;2010-10-08 11:15:20 (685 KB/s) - `index.html.2' saved [9005] &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-1027017381071282813?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/1027017381071282813/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=1027017381071282813' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1027017381071282813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1027017381071282813'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2010/10/solaris-how-to-download-file-in-command.html' title='Solaris: How To Download File In Command Prompt'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6265885457888885316</id><published>2010-08-16T09:26:00.001+03:00</published><updated>2010-08-16T21:16:07.855+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbunit maven java'/><title type='text'>Use DbUnit With Maven</title><content type='html'>&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;dbunit is a useful tool for populating test data into databases on the fly. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;It is also useful to use this tool to populate application configuration information.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;This article demonstrates how to use dbunit with maven.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;We require jdbc drivers for our database. Assuming we are using oracle, dbunit plugin's dependency configuration will be as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;com.oracle&amp;lt;/groupId&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;ojdbc14&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;10.2.0.2.0&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;We also need connection information for our database. We'll use following connection information in our dbunit configuration:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;host: jdbc:oracle:thin:@localhost:1521:XE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;username: hr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;password: hr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;driver: oracle.jdbc.driver.OracleDriver &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Putting it all together, following is an example configuration for dbunit:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;lt;plugin&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;dbunit-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.0-beta-3&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataTypeFactoryName&amp;gt;org.dbunit.ext.oracle.OracleDataTypeFactory&amp;lt;/dataTypeFactoryName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;driver&amp;gt;oracle.jdbc.driver.OracleDriver&amp;lt;/driver&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;username&amp;gt;hr&amp;lt;/username&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;password&amp;gt;hr&amp;lt;/password&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;jdbc:oracle:thin:@localhost:1521:XE&amp;lt;/url&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;src&amp;gt;src/test/resources/sample-data.xml&amp;lt;/src&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;CLEAN_INSERT&amp;lt;/type&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;schema&amp;gt;HR&amp;lt;/schema&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;skip&amp;gt;${skipTests}&amp;lt;/skip&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transaction&amp;gt;true&amp;lt;/transaction&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;com.oracle&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;ojdbc14&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;10.2.0.2.0&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;br /&gt;&amp;lt;/plugin&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Based on this configuration, our dataset file resides in src/test/resources/sample-data.xml file. This file contains our test data.&lt;/span&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt; Execute following command to persist the data inside sample-data.xml into the database.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;gt; mvn dbunit:operation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Yet, we don't know how to prepare and/or what to put inside sample-data.xml. &lt;/span&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;If you have a ready to use database, you may not need to prepare sample-data.xml file from scratch. &lt;/span&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;There is another command to export database tables into a dataset file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;gt; mvn dbunit:export&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Upon invoking this command, a new file will be generated under &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;target/dbunit/export.xml&lt;/span&gt; which will contain all your test data. You can, later, use this file to reinitialize your test database using "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mvn dbunit:operation&lt;/span&gt;" command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;&lt;u&gt;&lt;span style="font-size: large;"&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Additional Resources:&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Maven DBUnit Plugin Homepage:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;a href="http://mojo.codehaus.org/dbunit-maven-plugin/"&gt;http://mojo.codehaus.org/dbunit-maven-plugin&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;DBUnit Getting Started Guide:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.dbunit.org/howto.html"&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;http://www.dbunit.org/howto.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;DBUnit Best Practices:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;a href="http://www.dbunit.org/bestpractices.html"&gt;http://www.dbunit.org/bestpractices.html&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6265885457888885316?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6265885457888885316/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6265885457888885316' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6265885457888885316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6265885457888885316'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2010/08/use-dbunit-with-maven.html' title='Use DbUnit With Maven'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2694152201151085690</id><published>2009-11-11T08:16:00.004+02:00</published><updated>2009-11-11T08:18:37.934+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intellij java'/><title type='text'>Intellij IDEA 9 Community Edition Çıktı</title><content type='html'>&lt;br&gt;&lt;br /&gt;Intellij, version 9 ile beraber community edition ve ultimate edition olarak dagitilmaya başladi:&lt;br /&gt;&lt;a href="http://blogs.jetbrains.com/idea/2009/10/intellij-idea-open-sourced/"&gt;http://blogs.jetbrains.com/idea/2009/10/intellij-idea-open-sourced/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Community edition'ı asagidaki linkten ucretsiz olarak indirebilirsiniz:&lt;br /&gt;&lt;a href="http://www.jetbrains.com/idea/nextversion/free_java_ide.html?utm_source=IDEA_BLOG&amp;amp;utm_media=Anouncement&amp;amp;utm_campaign=IDEA9_CE"&gt;http://www.jetbrains.com/idea/nextversion/free_java_ide.html?utm_source=IDEA_BLOG&amp;amp;utm_media=Anouncement&amp;amp;utm_campaign=IDEA9_CE&lt;/a&gt;&lt;br /&gt;&lt;p/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-2694152201151085690?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2694152201151085690/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2694152201151085690' title='3 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2694152201151085690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2694152201151085690'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2009/11/intellij-idea-9-community-edition-ckt.html' title='Intellij IDEA 9 Community Edition Çıktı'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-7396110297298115579</id><published>2009-06-10T21:27:00.007+03:00</published><updated>2011-01-08T16:23:23.461+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='spring security'/><title type='text'>Obtaining Information About The Current User In Spring Security</title><content type='html'>The details of the           principal currently interacting with the application is stored inside &lt;code class="classname"&gt;SecurityContextHolder&lt;/code&gt;. Spring Security uses an             &lt;code class="interfacename"&gt;Authentication&lt;/code&gt; object to represent this information. Use the following code           block -from anywhere in your application- to obtain the name and the password of the currently           authenticated user:&lt;br /&gt;&lt;pre class="programlisting"&gt;&lt;span style="font-family: courier new; font-size: 85%;"&gt;&lt;span style="font-size: 130%;"&gt;Authentication authentication = SecurityContextHolder.getContext().getAuthentication();&lt;br /&gt;UserDetails principal = (UserDetails) authentication.getPrincipal();&lt;br /&gt;String username = principal.getUsername();&lt;br /&gt;String password = principal.getPassword();&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-7396110297298115579?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/7396110297298115579/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=7396110297298115579' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7396110297298115579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7396110297298115579'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2009/06/obtaining-information-about-current.html' title='Obtaining Information About The Current User In Spring Security'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-1025422986955768125</id><published>2009-04-06T14:19:00.007+03:00</published><updated>2010-10-08T11:34:07.809+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Oracle XE'de HTTP Portu Nasıl Değiştirilir?</title><content type='html'>Oracle XE, standart olarak 8080 no'lu HTTP portu olarak kullanır. Bu portu JBoss ve Tomcat de HTTP portu olarak kullandığı için, Oracle ile beraber bir application server çalıştırmak için, ya application server'in ya da Oracle'in HTTP portunun değiştirilmesi gerekiyor.&lt;br /&gt;&lt;br /&gt;Oracle'de bu portu değiştirmek icin &lt;span style="font-family: courier new;"&gt;dbms_xdb.sethttpport()&lt;/span&gt; fonksiyonunu kullanabilirsiniz. Database'e system kullanıcısıyla giriş yaptıktan sonra aşağıdaki şekilde çalıştırabilirsiniz:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;EXEC dbms_xdb.sethttpport(8090);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-1025422986955768125?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/1025422986955768125/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=1025422986955768125' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1025422986955768125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1025422986955768125'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2009/04/oracle-xede-http-portu-nasl.html' title='Oracle XE&apos;de HTTP Portu Nasıl Değiştirilir?'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-3813623687337759393</id><published>2009-03-31T21:48:00.012+03:00</published><updated>2009-06-10T21:35:25.573+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='intellij'/><title type='text'>Intellij Knows How To "Extract Method"</title><content type='html'>Intellij has a great refactoring feature called "Extract Method". You can convert a code piece into a method using this feature. In this process, Intellij can handle all method parameters and return values. You can use this feature first by selecting the code piece you wish to convert to method, and press CTRL+ALT+M.&lt;br /&gt;&lt;br /&gt;I will explain what impressed me most about this feature using following example. In the following code, I am not comfortable with the first try/catch block and I want to hide this dirty code inside a method.&lt;br /&gt;&lt;pre  style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; line-height: 100%; background-color: rgb(255, 255, 255);font-family:monospace;"&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 1 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;public&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;static&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;void&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; main(String[] args) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 2 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        Connection conn = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;null&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 3&lt;br /&gt;4 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(128, 128, 128); background-color: rgb(255, 255, 255); font-style: italic;"&gt;//I am not comfortable with following try/catch block&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 5 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;try&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 6 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;            Class.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-style: italic; color: rgb(204, 0, 0);"&gt;forName(&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"com.mysql.jdbc.Driver"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 7 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;        } &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;catch&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt; (ClassNotFoundException e) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 8 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;            e.printStackTrace();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; 9 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;            System.&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold; font-style: italic;"&gt;out.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;println(&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"Driver not found"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;10 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;            &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(204, 0, 0);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;11 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;12&lt;br /&gt;13 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;try&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;14 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            conn = DriverManager.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-style: italic;"&gt;getConnection(&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;15 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;                    &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"jdbc:mysql://localhost/petshop"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;,&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt; "root"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"changeme"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;16 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            Statement statement = conn.createStatement();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;17 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        } &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;catch&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; (SQLException e) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;18 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            e.printStackTrace();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;19 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;20 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;21 &lt;/span&gt;&lt;/pre&gt; To achieve this, position the cursor over 5th line and press CTRL+W. By the way, this is another nice Intellij feature called "Incremental Select" :).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_fe7_T7JnM0I/SdJqDJhJQWI/AAAAAAAAAFk/5vOj6DT6d8s/s1600-h/select-code.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 182px;" src="http://2.bp.blogspot.com/_fe7_T7JnM0I/SdJqDJhJQWI/AAAAAAAAAFk/5vOj6DT6d8s/s1600/select-code.JPG" alt="" id="BLOGGER_PHOTO_ID_5319430712205066594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, press CTRL+ALT+M. Notice that, the return type of the method is boolean. Click OK and  see what we'll get:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_fe7_T7JnM0I/SdJqV-4_dpI/AAAAAAAAAF0/CiE3f8kffPY/s1600-h/extract-method.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 279px;" src="http://3.bp.blogspot.com/_fe7_T7JnM0I/SdJqV-4_dpI/AAAAAAAAAF0/CiE3f8kffPY/s1600/extract-method.JPG" alt="" id="BLOGGER_PHOTO_ID_5319431035769812626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Following is the refactored version of our code. Let's see what happened. Intellij put the code inside a method which returns boolean and wrapped the method call inside an if statement. This was the only possible solution which wouldn't violate the flow of program:).&lt;br /&gt;&lt;br /&gt;&lt;pre  style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; line-height: 100%; background-color: rgb(255, 255, 255);font-family:monospace;"&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 1 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;public&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;static&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;void&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; main(String[] args) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 2 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        Connection conn = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;null&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 3&lt;br /&gt; 4 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(128, 128, 128); background-color: rgb(255, 255, 255); font-style: italic;"&gt;//I am comfortable now&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 5 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;if&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; (&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-style: italic;"&gt;lookupClass(&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;)) &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 6&lt;br /&gt;7 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;try&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 8 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            conn = DriverManager.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-style: italic;"&gt;getConnection(&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 9 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;                    &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"jdbc:mysql://localhost/petshop"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;,&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt; "root"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"changeme"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;10 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            Statement statement = conn.createStatement();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;11 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        } &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;catch&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; (SQLException e) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;12 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            e.printStackTrace();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;13 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;14 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;15&lt;br /&gt;16 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;private&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;static&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;boolean&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; lookupClass() {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;17 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;try&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;18 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            Class.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-style: italic;"&gt;forName(&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"com.mysql.jdbc.Driver"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;19 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        } &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;catch&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; (ClassNotFoundException e) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;20 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            e.printStackTrace();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;21 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            System.&lt;/span&gt;&lt;span style="color: rgb(102, 14, 122); background-color: rgb(255, 255, 255); font-weight: bold; font-style: italic;"&gt;out.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;println(&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"Driver not found"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;22 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;            &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;true&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;23 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;24 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;false&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;25 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;26 &lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-3813623687337759393?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/3813623687337759393/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=3813623687337759393' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3813623687337759393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3813623687337759393'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2009/03/intellij-knows-how-to-extract-method.html' title='Intellij Knows How To &quot;Extract Method&quot;'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_fe7_T7JnM0I/SdJqDJhJQWI/AAAAAAAAAFk/5vOj6DT6d8s/s72-c/select-code.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-3639316835772724973</id><published>2009-01-25T14:36:00.012+02:00</published><updated>2009-01-25T17:02:04.356+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='swing'/><category scheme='http://www.blogger.com/atom/ns#' term='jtabbedpane'/><title type='text'>The Easiest Java Tab Implementation With Close Button</title><content type='html'>Unfortunately, the current implementation of JTabbedPane class in Swing API does not contain a close button. You have to implement this feature by yourself. Here, I have a simple &lt;a href="http://java.sun.com/javase/6/docs/api/javax/swing/JTabbedPane.html"&gt;&lt;span style="font-family:courier new;"&gt;JTabbedPane&lt;/span&gt;&lt;/a&gt; implementation with a close button. I used &lt;a href="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/metal/MetalIconFactory.html"&gt;&lt;span style="font-family:courier new;"&gt;MetalIconFactory.InternalFrameCloseIcon&lt;/span&gt;&lt;/a&gt; class in the close button. Because this is a private inner class, you need to use &lt;a href="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/metal/MetalIconFactory.html#getInternalFrameCloseIcon%28int%29"&gt;&lt;span style="font-family:courier new;"&gt;MetalIconFactory.getInternalFrameCloseIcon(int iconSize)&lt;/span&gt;&lt;/a&gt;. Check the following screenshots to see how a JTabbedPane and a CloseButtonTabbedPane looks like:&lt;br /&gt;&lt;br /&gt;A tabbed pane with default JTabbedPane implementation, shows up as below:&lt;br /&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_fe7_T7JnM0I/SXxtuoKSBtI/AAAAAAAAAFE/35j-613CAJM/s1600-h/jtabbedpane-without-close-button.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: left; cursor: pointer; width: 254px; height: 202px;" src="http://3.bp.blogspot.com/_fe7_T7JnM0I/SXxtuoKSBtI/AAAAAAAAAFE/35j-613CAJM/s400/jtabbedpane-without-close-button.png" alt="" id="BLOGGER_PHOTO_ID_5295227909702813394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;A tabbed pane with CloseButtonTabbedPane implementation, shows up as below:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_fe7_T7JnM0I/SXxuSOVwTvI/AAAAAAAAAFM/Zpb8qTq7kis/s1600-h/jtabbedpane-with-close-button.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: left; cursor: pointer; width: 263px; height: 186px;" src="http://3.bp.blogspot.com/_fe7_T7JnM0I/SXxuSOVwTvI/AAAAAAAAAFM/Zpb8qTq7kis/s400/jtabbedpane-with-close-button.png" alt="" id="BLOGGER_PHOTO_ID_5295228521246904050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a style="font-family: georgia;" href="http://tailmaster.googlecode.com/svn-history/r7/trunk/src/main/java/tailmaster/gui/CloseButtonTabbedPane.java"&gt;Click here to download the source code of CloseButtonTabbedPane here&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The advantages of this implementation is:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You don't need an image for close button. Instead you use an image provided by Java API.&lt;/li&gt;&lt;li&gt;Everything you need is packaged inside just 1 class.&lt;/li&gt;&lt;/ul&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/3529217204632979498-3639316835772724973?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/3639316835772724973/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=3639316835772724973' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3639316835772724973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3639316835772724973'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2009/01/easiest-tab-implementation-with-close.html' title='The Easiest Java Tab Implementation With Close Button'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_fe7_T7JnM0I/SXxtuoKSBtI/AAAAAAAAAFE/35j-613CAJM/s72-c/jtabbedpane-without-close-button.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-8726058438342881658</id><published>2008-11-04T09:16:00.007+02:00</published><updated>2011-01-08T16:23:48.095+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spring'/><category scheme='http://www.blogger.com/atom/ns#' term='spring security'/><title type='text'>How To Disable Corcurrent Logins in Spring-Security</title><content type='html'>&lt;span style="font-family: arial;"&gt;Add the          following listener to your &lt;/span&gt;&lt;code class="filename" style="font-family: arial;"&gt;web.xml&lt;/code&gt;&lt;span style="font-family: arial;"&gt; file to keep Spring Security updated about         session lifecycle events:    &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;&amp;lt;listener&amp;gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&amp;lt;listener-class&amp;gt; org.springframework.security.ui.session.HttpSessionEventPublisher &amp;lt;/listener-class&amp;gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&amp;lt;/listener&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then add the following line to your application context file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;  &amp;lt;http&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;lt;concurrent-session-control max-sessions="1" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&amp;lt;/http&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This prevents concurrent logins. A second login will cause the first to be invalidated. To prevent a second login, use following configuration:&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  &amp;lt;http&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;lt;concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true"/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;lt;/http&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The second login will then be rejected.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-8726058438342881658?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/8726058438342881658/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=8726058438342881658' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8726058438342881658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8726058438342881658'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/11/how-to-disable-corcurrent-logins-in.html' title='How To Disable Corcurrent Logins in Spring-Security'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6413426605447341253</id><published>2008-10-11T20:50:00.026+03:00</published><updated>2008-10-11T23:03:23.632+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intellij xml xsl'/><title type='text'>Create XSL Document Using An Existing XML Document</title><content type='html'>To create an xml schema document(XSL), you should know &lt;a href="http://www.w3schools.com/xsl"&gt;XSL specification&lt;/a&gt;. But, thank goodness, there is another time saving option. Intellij IDEA does the job for us, without any effort. Intellij IDEA is capable of generating XSL documents from existing XML files. Assuming that we have such an XML document as follows:&lt;br /&gt;&lt;pre  style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; line-height: 100%; background-color: rgb(255, 255, 255);font-family:monospace;"&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;table&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;Name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;String&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;Surname&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;String&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;Birthday&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;name&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); font-weight: bold;"&gt;Date&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;type&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;column&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239); font-weight: bold;"&gt;table&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); background-color: rgb(239, 239, 239);"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Because we don't have an XSD file for our XML file, Intellij complains about this and  cannot make syntax-highlighting. Let's resolve this issue. Go to Tools/Generate Xml Schema From Document menu option:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_fe7_T7JnM0I/SPDq_hoEGqI/AAAAAAAAAEE/HRGEA9OrBZo/s1600-h/xms-to-xsl.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; cursor: pointer;" alt="" src="http://1.bp.blogspot.com/_fe7_T7JnM0I/SPDq_hoEGqI/AAAAAAAAAEE/HRGEA9OrBZo/s1600/xms-to-xsl.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, change the filename to "xml-format.xsd" and change the value of "Detect enumerations limit" to any value less than 3. This is because, we have 3 &lt;span style="font-family:courier new;"&gt;column&lt;/span&gt; regions in the XML document and the values inside the &lt;span style="font-family:courier new;"&gt;column&lt;/span&gt; tags are not enumerations. If we don't change this value to something lower than 3, xsd generator will interpret the values inside the &lt;span style="font-family:courier new;"&gt;column&lt;/span&gt; tag as enumerations, and generate the xsd file based on this interpretation. So, change it to 1, for example. Then click OK.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_fe7_T7JnM0I/SPD44uJSSxI/AAAAAAAAAEc/GD9q1Yp4a9I/s1600-h/generate.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5255974418484710162" style="cursor: pointer;" alt="" src="http://3.bp.blogspot.com/_fe7_T7JnM0I/SPD44uJSSxI/AAAAAAAAAEc/GD9q1Yp4a9I/s1600/generate.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You will get the following XSD document as a result:&lt;br /&gt;&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&amp;gt;&lt;br /&gt;&amp;lt;xs:element name="table" type="tableType"/&amp;gt;&lt;br /&gt;&amp;lt;xs:complexType name="columnType"&amp;gt;&lt;br /&gt;&amp;lt;xs:sequence&amp;gt;&lt;br /&gt;&amp;lt;xs:element type="xs:string" name="name"/&amp;gt;&lt;br /&gt;&amp;lt;xs:element name="type"&amp;gt;&lt;br /&gt;&amp;lt;xs:simpleType&amp;gt;&lt;br /&gt;  &amp;lt;xs:restriction base="xs:string"&amp;gt;&lt;br /&gt;    &amp;lt;xs:enumeration value="String"/&amp;gt;&lt;br /&gt;    &amp;lt;xs:enumeration value="Date"/&amp;gt;&lt;br /&gt;  &amp;lt;/xs:restriction&amp;gt;&lt;br /&gt;&amp;lt;/xs:simpleType&amp;gt;&lt;br /&gt;&amp;lt;/xs:element&amp;gt;&lt;br /&gt;&amp;lt;/xs:sequence&amp;gt;&lt;br /&gt;&amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;&amp;lt;xs:complexType name="tableType"&amp;gt;&lt;br /&gt;&amp;lt;xs:sequence&amp;gt;&lt;br /&gt;&amp;lt;xs:element type="columnType" name="column" maxOccurs="unbounded" minOccurs="0"/&amp;gt;&lt;br /&gt;&amp;lt;/xs:sequence&amp;gt;&lt;br /&gt;&amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;&amp;lt;/xs:schema&amp;gt;&lt;/pre&gt;&lt;br /&gt;You can also change the format of the generated XSD document, using "Design Type" area in "Generate Schema From Instance Document" dialog box. There are 3 available choices:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_fe7_T7JnM0I/SPD2J0JGk7I/AAAAAAAAAEU/4HhJQAsd_No/s1600-h/generate.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5255971413617447858" style="cursor: pointer;" alt="" src="http://4.bp.blogspot.com/_fe7_T7JnM0I/SPD2J0JGk7I/AAAAAAAAAEU/4HhJQAsd_No/s1600/generate.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But we are not done yet. We should tell our XML document the location of its schema document(XSD) which we just created before. Assuming that, our XML and XSD files are on the same path, change the first line of the XML as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; line-height: 100%;"&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;table&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 255); background-color: rgb(239, 239, 239);"&gt;xmlns:xsi=&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 128, 0); background-color: rgb(239, 239, 239);"&gt;"http://www.w3.org/2001/XMLSchema-instance"&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;       &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 255); background-color: rgb(239, 239, 239);"&gt;xsi:noNamespaceSchemaLocation=&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 128, 0); background-color: rgb(239, 239, 239);"&gt;"xml-format.xsd"&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;Name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;String&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;Surname&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;String&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;Birthday&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;name&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold; background-color: rgb(255, 255, 255);"&gt;Date&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;type&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;column&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;br /&gt;&lt;!--&lt;/span--&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 128); background-color: rgb(239, 239, 239);"&gt;table&lt;/span&gt;&lt;span style="background-color: rgb(239, 239, 239);"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;Now, our xml editor is able to make syntax-highlighting, using the newly generated XSD file.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_fe7_T7JnM0I/SPEGHySTZfI/AAAAAAAAAEk/p8D65Lp9PVo/s1600-h/ctrl_space.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_fe7_T7JnM0I/SPEGHySTZfI/AAAAAAAAAEk/p8D65Lp9PVo/s1600/ctrl_space.png" alt="" id="BLOGGER_PHOTO_ID_5255988970945471986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And now, Ctrl+Space works also. We may not write erronous XML files any more:).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6413426605447341253?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6413426605447341253/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6413426605447341253' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6413426605447341253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6413426605447341253'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/10/create-xsl-document-using-existing-xml.html' title='Create XSL Document Using An Existing XML Document'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_fe7_T7JnM0I/SPDq_hoEGqI/AAAAAAAAAEE/HRGEA9OrBZo/s72-c/xms-to-xsl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-8457360069877562492</id><published>2008-10-09T17:14:00.002+03:00</published><updated>2008-10-09T17:31:43.947+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>NLS_DATE_FORMAT Kullanımı</title><content type='html'>&lt;span style="font-weight: bold; font-family: arial;"&gt;&lt;/span&gt;SQL&gt; select sysdate from dual;&lt;br /&gt;&lt;br /&gt;SYSDATE&lt;br /&gt;----------&lt;br /&gt;09/10/2008&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss';&lt;br /&gt;&lt;br /&gt;Oturum değiştirildi.&lt;br /&gt;&lt;br /&gt;SQL&gt; select sysdate from dual;&lt;br /&gt;&lt;br /&gt;SYSDATE&lt;br /&gt;-------------------&lt;br /&gt;2008-10-09 17:27:38&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-8457360069877562492?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/8457360069877562492/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=8457360069877562492' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8457360069877562492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8457360069877562492'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/10/nlsdateformat-kullanm.html' title='NLS_DATE_FORMAT Kullanımı'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-7463264522981755894</id><published>2008-09-30T22:13:00.008+03:00</published><updated>2009-06-10T21:35:52.819+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intellij'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>A Nice Maven Feature In Intellij 8</title><content type='html'>There is a useful maven feature in Intellij 8. As you know, maven doesn't download the sources.jar files of the libraries into the local repository, by default. You can download the sources.jar files of the dependencies of the project by just one click of a button. First open the Maven view in Intellij. Then press the "Download artifacts" button from the toolbar:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_fe7_T7JnM0I/SOJ-rMfTh2I/AAAAAAAAAD8/Q3nznFvuSB8/s1600-h/intellij-idea-maven-download.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: left; cursor: pointer;" src="http://4.bp.blogspot.com/_fe7_T7JnM0I/SOJ-rMfTh2I/AAAAAAAAAD8/Q3nznFvuSB8/s400/intellij-idea-maven-download.png" alt="" id="BLOGGER_PHOTO_ID_5251899396019423074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;Actually this feature also exists in Intellij IDEA v7 but I can't make it work. Probably, there is a bug. Please inform me, if there is anyone who can use the feature in version 7.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-7463264522981755894?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/7463264522981755894/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=7463264522981755894' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7463264522981755894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7463264522981755894'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/09/nice-maven-feature-in-intellij-8.html' title='A Nice Maven Feature In Intellij 8'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_fe7_T7JnM0I/SOJ-rMfTh2I/AAAAAAAAAD8/Q3nznFvuSB8/s72-c/intellij-idea-maven-download.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-5602122016676474860</id><published>2008-08-17T21:08:00.012+03:00</published><updated>2008-08-20T00:51:51.221+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intellij'/><title type='text'>Intellij Knows Swing</title><content type='html'>As I use Intellij more and more, I get more and more suprised, more and more excited.&lt;br /&gt;&lt;br /&gt;Yesterday, I was trying to change the cursor in a swing project, using setCursor() method. I expected &lt;code&gt;Cursor.W_RESIZE_CURSOR&lt;/code&gt; would return a &lt;code&gt;java.awt.Cursor&lt;/code&gt; object and coded as below. But something was wrong with my code:&lt;br /&gt;&lt;br /&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_fe7_T7JnM0I/SKhvktKmIvI/AAAAAAAAAC8/9oeioQNDT0I/s1600/intellij-knows-swing-1.png" alt="" id="BLOGGER_PHOTO_ID_5235557243208213234" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;...And immediately, Intellij told me what was wrong with my code:). I should have called &lt;code&gt;Cursor.getPreferredCursor()&lt;/code&gt;. I applied Intellij's suggestion, and the error was corrected. My intelligent IDE again saved me to search for example codes on the internet:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://4.bp.blogspot.com/_fe7_T7JnM0I/SKhvq_4C5xI/AAAAAAAAADE/jsroFH6LYjk/s1600/intellij-knows-swing-2.png" alt="" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-5602122016676474860?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/5602122016676474860/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=5602122016676474860' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/5602122016676474860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/5602122016676474860'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/08/intellij-knows-java.html' title='Intellij Knows Swing'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_fe7_T7JnM0I/SKhvktKmIvI/AAAAAAAAAC8/9oeioQNDT0I/s72-c/intellij-knows-swing-1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-8127593743792741706</id><published>2008-08-04T09:15:00.009+03:00</published><updated>2010-10-08T11:33:47.268+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='collections'/><category scheme='http://www.blogger.com/atom/ns#' term='sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='commons-beanutils'/><title type='text'>How To Sort Collections Using commons-beanutils?</title><content type='html'>&lt;div&gt;Hi everybody,&lt;/div&gt;&lt;div&gt;Following is another simple way of sorting collections using commons-beanutils package:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Assume that we have an object as below:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;public class User {&lt;br /&gt;private long userId;&lt;br /&gt;private String  userName;&lt;br /&gt;private String password;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;And we want to sort based on userName field. We can use BeanComparator  class of commons-beanutils package as below to sort the list:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;ArrayList&lt;user&gt; list = new ArrayList&lt;user&gt;();&lt;/user&gt;&lt;/user&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;//...&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;//add User object inside the list.&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;//...&lt;/div&gt;&lt;div style="font-family: courier new; font-weight: bold;"&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;Collections.sort(list, new BeanComparator("&lt;span style="color: red;"&gt;userName&lt;/span&gt;"));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that, we passed the name of the field to be sorted, as the parameter, to BeanComparator class constructor. We accomplished sorting of a collection using just one line of code:).&lt;br /&gt;&lt;br /&gt;Download commons-beanutils from &lt;a href="http://commons.apache.org/beanutils"&gt;http://commons.apache.org/beanutils&lt;/a&gt;.&lt;br /&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/3529217204632979498-8127593743792741706?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/8127593743792741706/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=8127593743792741706' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8127593743792741706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8127593743792741706'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/08/how-to-sort-collections.html' title='How To Sort Collections Using commons-beanutils?'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-7070197261939137920</id><published>2008-07-28T18:17:00.000+03:00</published><updated>2008-08-16T18:18:02.821+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>JBoss server'a IP numarası ile erişim</title><content type='html'>Lokal makinemizde çalışan jboss'a http://localhost:8080 adresiyle erişebiliyoruz. Ama http://127.0.0.1:8080 adresiyle denediğimizde, şeklinde erişemeyiz. Bununla beraber uzaktaki bir istemci de ip numaramızı bilmesine rağmen erişim problemi yaşayacaktır. IP numarası ile erişimi aktive etmek için Jboss'u "-b" parametresiyle başlatmamız gerekmektedir. Bu durumda kullanacağımız komut aşağıdaki gibi olacaktır.&lt;br /&gt;&lt;br /&gt;&gt; run.bat -b 0.0.0.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-7070197261939137920?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/7070197261939137920/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=7070197261939137920' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7070197261939137920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7070197261939137920'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/07/jboss-servera-ip-numaras-ile-eriim.html' title='JBoss server&apos;a IP numarası ile erişim'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2879137969213862517</id><published>2008-07-27T13:34:00.003+03:00</published><updated>2008-08-16T18:15:41.256+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>JBoss'u baska bir domain ile başlatmak</title><content type='html'>Standart Jboss kurulumu &lt;span style="font-weight: bold;"&gt;"default"&lt;/span&gt; adli server instance'ı başlatmaktadır. Başka bir server instance'i başlatmak için &lt;span style="font-weight: bold;"&gt;"-c"&lt;/span&gt; parametresini kullanmalıyız. Örneğin standart kurulumda gelen, &lt;span style="font-weight: bold;"&gt;"minimal"&lt;/span&gt; adli server'ı başlatmak için aşağıdaki komutu kullanmalıyız:&lt;br /&gt;&lt;br /&gt;&gt; run.bat -c minimal&lt;br&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-2879137969213862517?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2879137969213862517/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2879137969213862517' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2879137969213862517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2879137969213862517'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/07/jbossu-baska-bir-domain-ile-balatmak.html' title='JBoss&apos;u baska bir domain ile başlatmak'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-3924709397828897361</id><published>2008-06-21T21:08:00.004+03:00</published><updated>2008-06-21T21:15:40.691+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jstl'/><title type='text'>JSTL Reference</title><content type='html'>Following document is a good resource about JSTL for java web developers.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.manning-source.com/books/bayern/bayern_apxA.pdf"&gt;http://www.manning-source.com/books/bayern/bayern_apxA.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This document can also be found in &lt;b&gt;Shawn Bayern&lt;!-- InstanceEndEditable --&gt;&lt;/b&gt;'s book &lt;span style="font-weight: bold;"&gt;JSTL In Action&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-3924709397828897361?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/3924709397828897361/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=3924709397828897361' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3924709397828897361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3924709397828897361'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/06/jstl-reference.html' title='JSTL Reference'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-3316962161203732175</id><published>2008-05-22T09:40:00.000+03:00</published><updated>2008-06-07T19:50:24.904+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='textarea manipulation'/><category scheme='http://www.blogger.com/atom/ns#' term='textarea'/><title type='text'>Javascript ile TEXTAREA'ya metin eklemek</title><content type='html'>Javascript kullanarak, bir &lt;span style="font-family:courier new;"&gt;HTML&lt;/span&gt; sayfasındaki &lt;span style="font-family:courier new;"&gt;TEXTAREA&lt;/span&gt;'da cursor'un bulunduğu yere nasıl text eklendiğini bulmak için yaklaşık 1 saat araştırdım. Basit gibi görünen bu işlemi, en sonunda, Alex King'in blogunda buldum. Yazıya, &lt;a href="http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript"&gt;http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript&lt;/a&gt; adresinden inceleyebilirsiniz. İlginçtir ki, Alex King de bu fonksiyona PhpMyAdmin'de raslamış.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-3316962161203732175?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/3316962161203732175/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=3316962161203732175' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3316962161203732175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3316962161203732175'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/05/textareaya-metin-eklemek.html' title='Javascript ile TEXTAREA&apos;ya metin eklemek'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6198348871829372235</id><published>2008-05-21T19:48:00.000+03:00</published><updated>2008-06-07T19:49:28.312+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cheat sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Cheat Sheet</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_fe7_T7JnM0I/SEq774pHlYI/AAAAAAAAACk/iZvEVfT10hg/s1600-h/php_cheat_sheet.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_fe7_T7JnM0I/SEq774pHlYI/AAAAAAAAACk/iZvEVfT10hg/s400/php_cheat_sheet.png" alt="" id="BLOGGER_PHOTO_ID_5209182556498924930" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6198348871829372235?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6198348871829372235/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6198348871829372235' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6198348871829372235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6198348871829372235'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/05/php-cheat-sheet.html' title='PHP Cheat Sheet'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_fe7_T7JnM0I/SEq774pHlYI/AAAAAAAAACk/iZvEVfT10hg/s72-c/php_cheat_sheet.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-358515649889450378</id><published>2008-05-20T19:46:00.000+03:00</published><updated>2008-06-07T19:48:05.737+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cheat sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Mysql Cheat Sheat</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_fe7_T7JnM0I/SEq7epSctAI/AAAAAAAAACc/Bw3oJVfweD8/s1600-h/mysql_cheat_sheet.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_fe7_T7JnM0I/SEq7epSctAI/AAAAAAAAACc/Bw3oJVfweD8/s400/mysql_cheat_sheet.png" alt="" id="BLOGGER_PHOTO_ID_5209182054161101826" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-358515649889450378?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/358515649889450378/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=358515649889450378' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/358515649889450378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/358515649889450378'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/06/mysql-cheat-sheat.html' title='Mysql Cheat Sheat'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_fe7_T7JnM0I/SEq7epSctAI/AAAAAAAAACc/Bw3oJVfweD8/s72-c/mysql_cheat_sheet.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6563253777258115842</id><published>2008-05-19T19:44:00.000+03:00</published><updated>2008-06-07T19:46:01.518+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cheat sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='mod_rewrite'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Apache mod_rewrite Cheat Sheet</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_fe7_T7JnM0I/SEq7LWS7wZI/AAAAAAAAACU/lJrCzDPexHI/s1600-h/mod_rewrite_cheat_sheet.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_fe7_T7JnM0I/SEq7LWS7wZI/AAAAAAAAACU/lJrCzDPexHI/s400/mod_rewrite_cheat_sheet.png" alt="" id="BLOGGER_PHOTO_ID_5209181722645348754" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6563253777258115842?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6563253777258115842/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6563253777258115842' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6563253777258115842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6563253777258115842'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/05/apache-modrewrite-cheat-sheet.html' title='Apache mod_rewrite Cheat Sheet'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_fe7_T7JnM0I/SEq7LWS7wZI/AAAAAAAAACU/lJrCzDPexHI/s72-c/mod_rewrite_cheat_sheet.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2003007818179536327</id><published>2008-05-18T19:42:00.000+03:00</published><updated>2008-06-07T19:44:10.147+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='cheat sheet'/><title type='text'>Javascript Cheat Sheet</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_fe7_T7JnM0I/SEq6og0uxRI/AAAAAAAAACM/vdXwHdw4cyY/s1600-h/javascript_cheat_sheet.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_fe7_T7JnM0I/SEq6og0uxRI/AAAAAAAAACM/vdXwHdw4cyY/s400/javascript_cheat_sheet.png" alt="" id="BLOGGER_PHOTO_ID_5209181124176037138" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-2003007818179536327?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2003007818179536327/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2003007818179536327' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2003007818179536327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2003007818179536327'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/06/javascript-cheat-sheet.html' title='Javascript Cheat Sheet'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_fe7_T7JnM0I/SEq6og0uxRI/AAAAAAAAACM/vdXwHdw4cyY/s72-c/javascript_cheat_sheet.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-3408326965600252245</id><published>2008-05-17T13:59:00.003+03:00</published><updated>2008-05-17T14:04:34.621+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cheat sheet'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>CSS Cheat Sheet</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_fe7_T7JnM0I/SC67bWDZjQI/AAAAAAAAACE/2f2Vd-vKxTE/s1600-h/css_cheat_sheet.png"&gt;&lt;br /&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_fe7_T7JnM0I/SC67bWDZjQI/AAAAAAAAACE/2f2Vd-vKxTE/s400/css_cheat_sheet.png" alt="CSS Cheat Sheet" id="BLOGGER_PHOTO_ID_5201300698110201090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_fe7_T7JnM0I/SC6682DZjPI/AAAAAAAAAB8/__0JxDdlOtU/s1600-h/css_cheat_sheet.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-3408326965600252245?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/3408326965600252245/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=3408326965600252245' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3408326965600252245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/3408326965600252245'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/05/css-cheat-sheet.html' title='CSS Cheat Sheet'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_fe7_T7JnM0I/SC67bWDZjQI/AAAAAAAAACE/2f2Vd-vKxTE/s72-c/css_cheat_sheet.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-5716698893404576656</id><published>2008-05-01T15:42:00.001+03:00</published><updated>2008-05-05T22:50:32.670+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iş görüşmeleri'/><category scheme='http://www.blogger.com/atom/ns#' term='cv'/><title type='text'>İş Görüşmesine Katılacaklara Taktikler</title><content type='html'>Aşağıda, katılmış olduğum iş görüşmelerinde sıkça karşılaştığım soruları ve tavsiyelerimi yayınlıyorum.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Soru&lt;/span&gt;: Şirketimize katkıda bulunabileceğinizi düşünüyor musunuz?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Cevap&lt;/span&gt;: Düşünmeseydim buraya gelmezdim.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Soru&lt;/span&gt;: Bize kısaca kendinizden bahseder misiniz?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Cevap&lt;/span&gt;: Sadece iyi yönlerinizden bahsetmeyin. Hem iyi yönlerinizden hem de kötü yönlerinizden bahsetmeniz uygun olur. Motivasyonumu çabuk kaybederim, çabuk sinirlenirim, takıntılarım vardır gibi şeyler söylemeyin:). Eğer gerçekten bu tür problemleriniz varsa da, "Kişisel Gelişim" konulu yayınlardan faydalanabilirsiniz.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Soru:&lt;/span&gt; Geleceğe dair hedeflerin nelerdir?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Cevap:&lt;/span&gt; Bu soruyu cevaplamak size kalmış:). Böyle bir soruya karşı hazırlıklı olun.&lt;br /&gt;&lt;br /&gt;Ayrım yapmadan bütün teknoloji şirketlerine cv'nizi gönderdiniz. Aşağıdaki soruya karşı hazırlıklı olmalısınız:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Soru&lt;/span&gt;: Neden bizim şirketimizi tercih ettiniz?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Cevap&lt;/span&gt;: Bütün teknoloji şirketlerine cv'mi yolladım. Sizin bir özelliğiniz yok pek tercih edilecek bir cevap değil.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-5716698893404576656?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/5716698893404576656/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=5716698893404576656' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/5716698893404576656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/5716698893404576656'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/03/i-grmeleri.html' title='İş Görüşmesine Katılacaklara Taktikler'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6504980782669703081</id><published>2008-04-26T16:37:00.008+03:00</published><updated>2008-04-26T17:36:02.237+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='div'/><category scheme='http://www.blogger.com/atom/ns#' term='display'/><category scheme='http://www.blogger.com/atom/ns#' term='show/hide'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Javascript İle Gizleme/Gösterme</title><content type='html'>HTML sayfamızdaki herhangi bir alanın gizlenmesi ya da görünür hale gelmesini &lt;span style="font-weight: bold;font-family:courier new;" &gt;display&lt;/span&gt;özelliğini kullanarak yapabiliriz.&lt;br /&gt;Alanın gizlenmesi için bu özelliğin değerini &lt;span style="font-weight: bold;font-family:courier new;" &gt;display: none&lt;/span&gt; şeklinde değiştirmeliyiz.&lt;br /&gt;Gizli bir alanın görünür hale gelmesi için bu özelliğin değerini &lt;span style="font-weight: bold;font-family:courier new;" &gt;display: block&lt;/span&gt; şeklinde değiştirmeliyiz.&lt;br /&gt;&lt;br /&gt;Aşağıdaki örnekte &lt;span style="font-weight: bold;"&gt;new_artist_region&lt;/span&gt; alanı görünmezdir:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;span id="new_artist_region" style="display: none;"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;input name="new_artist" type="text"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Aşağıdaki örnekte ise &lt;span style="font-weight: bold;"&gt;new_artist_region&lt;/span&gt; alanı görünür durumdadır:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;span id="new_artist_region" style="display: block;"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;input name="new_artist" type="text"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Aşağıda ise, javascript kullanarak bir alanın nasıl görünür/görünmez hale geldiğini görüyoruz:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;script language="Javascript"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    function showhide(area_id){&lt;br /&gt;       var area = document.getElementById(area_id);&lt;br /&gt;       if (area.style.display == "block") area.style.display = "none";&lt;br /&gt;       else if (area.style.display == "none") area.style.display = "block";&lt;br /&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;input type="checkbox" name="new_artist" onclick="showhide('new_artist')"&amp;gt;New Artist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;span id="new_artist" style="display: none"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;input type="text" name="new_artist"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6504980782669703081?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6504980782669703081/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6504980782669703081' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6504980782669703081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6504980782669703081'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/javascript-ile-gizleme-gsterme.html' title='Javascript İle Gizleme/Gösterme'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-701352844275404081</id><published>2008-04-25T11:28:00.000+03:00</published><updated>2008-04-26T16:44:05.680+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='export'/><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>How To Export Query Results In Mysql</title><content type='html'>Use &lt;span style="font-weight: bold;"&gt;"INTO OUTFILE"&lt;/span&gt; directive in your queries to export data from mysql into a text file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; select * from videos order by artist INTO OUTFILE "c:\videos.csv"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Query OK, 3269 rows affected (0.05 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Use  &lt;span style="font-weight: bold;font-family:courier new;" &gt;"&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-weight: bold;"&gt;FIELDS TERMINATED BY"&lt;/span&gt; &lt;/span&gt;directive to determine delimiter between fields.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; select * from videos order by artist INTO OUTFILE "c:\videos.csv"&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;FIELDS TERMINATED BY "|";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Query OK, 3269 rows affected (0.06 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If  you do not specify absolute  path in  &lt;span style="font-weight: bold;"&gt;"INTO OUTFILE"&lt;/span&gt; directive, the file will be recorded in current database's path. For example, assume that mysql is installed in &lt;span style="font-weight: bold;"&gt;"D:\dev\mysql"&lt;/span&gt; and the current database is &lt;span style="font-weight: bold;"&gt;"video_db"&lt;/span&gt;; then the path of videos.csv would be &lt;span style="font-weight: bold;"&gt;"D:\dev\mysql\data\video_db"&lt;/span&gt;.&lt;span style="font-weight: bold;font-family:courier new;" &gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-701352844275404081?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/701352844275404081/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=701352844275404081' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/701352844275404081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/701352844275404081'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/how-to-export-query-results-in-mysql.html' title='How To Export Query Results In Mysql'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-7123413114003401564</id><published>2008-04-24T00:25:00.000+03:00</published><updated>2008-04-26T16:44:44.073+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password change'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>How To Change MySql Root Password</title><content type='html'>&lt;span style="font-weight: bold;"&gt;In this example, I am going to change mysql root account's password from 1234 to 123456 using SQL. The queries are so self-explanatory. So, there is no need to describe them.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;D:\dev\xampp\mysql\bin&gt;mysql -u root -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Enter password: ****&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Your MySQL connection id is 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Server version: 5.0.51a Source distribution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; use mysql;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Database changed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; update user set password=PASSWORD("123456") where User="root";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Query OK, 2 rows affected (0.03 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Rows matched: 2  Changed: 2  Warnings: 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; flush privileges;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Query OK, 0 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; quit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Bye&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;D:\dev\xampp\mysql\bin&gt;mysql -u root -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Enter password: ******&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Your MySQL connection id is 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Server version: 5.0.51a Source distribution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mysql&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-7123413114003401564?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/7123413114003401564/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=7123413114003401564' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7123413114003401564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/7123413114003401564'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/how-to-change-mysql-root-password.html' title='How To Change MySql Root Password'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2146644292703915333</id><published>2008-04-14T13:18:00.001+03:00</published><updated>2008-04-26T00:32:38.595+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Some Mysql-Specific Commands</title><content type='html'>Following is a list of some of mysql specific commands that I frequently use. You should be connected to mysql server through the command-line to execute the commands.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;show databases;&lt;/span&gt;&lt;br /&gt;Display the list of databases hosted by the mysql server&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;use db;&lt;/span&gt;&lt;br /&gt;Selects the database to be working on.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;desc table;&lt;/span&gt;&lt;br /&gt;Describes the metadata of the table;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;show tables;&lt;/span&gt;&lt;br /&gt;Display tables of the selected database&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;source test.sql;&lt;/span&gt;&lt;br /&gt;execute an SQL script file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-2146644292703915333?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2146644292703915333/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2146644292703915333' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2146644292703915333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2146644292703915333'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/some-mysql-specific-commands.html' title='Some Mysql-Specific Commands'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-8734087833033318773</id><published>2008-04-08T17:12:00.012+03:00</published><updated>2008-04-25T22:57:49.616+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='taskkill'/><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='administration'/><title type='text'>How To Kill A Process In Windows: TASKKILL</title><content type='html'>&lt;span style="font-weight: bold; text-decoration: underline;"&gt;What is taskkill?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;To kill a process in Windows using command-line use &lt;span style="font-weight: bold;"&gt;TASKKILL&lt;/span&gt; command.&lt;br /&gt;&lt;br /&gt;If you know the name of the process use &lt;span style="font-weight: bold;"&gt;/im&lt;/span&gt; switch. Following command terminates Windows Media Player:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-weight: bold; color: rgb(102, 102, 102);"&gt;taskkill /im wmplayer.exe&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you know the process id, use &lt;span style="font-weight: bold;"&gt;/pid&lt;/span&gt; switch. Following command terminates the process identified by PID=1545:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-weight: bold; color: rgb(102, 102, 102);"&gt;taskkill /pid 1545&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you want to kill the parent process and its child processes, namely tree-kill, use &lt;span style="font-weight: bold;"&gt;/t&lt;/span&gt; switch. Following command terminates the process identified by PID=1545:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-weight: bold;"&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;taskkill /t /pid 1545&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;If you want to force the process to be terminated, use &lt;span style="font-weight: bold;"&gt;/f&lt;/span&gt; switch. Following command terminates the process forcefully:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-weight: bold; color: rgb(102, 102, 102);"&gt;taskkill /f /pid 1545&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-8734087833033318773?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/8734087833033318773/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=8734087833033318773' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8734087833033318773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8734087833033318773'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/how-to-kill-process-in-windows.html' title='How To Kill A Process In Windows: TASKKILL'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-1299839037757610004</id><published>2008-04-05T22:23:00.010+03:00</published><updated>2008-04-06T10:58:11.721+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='j2se'/><category scheme='http://www.blogger.com/atom/ns#' term='printwriter'/><title type='text'>Why Doesn't PrintWriter Work?</title><content type='html'>Even though you may call method &lt;code style="font-weight: bold;"&gt;PrintWriter.println(), &lt;/code&gt;you may not get any output. This is because &lt;code style="font-weight: bold;"&gt;PrintWriter&lt;/code&gt; is auto-flush off by default. Check the code below:&lt;br /&gt;&lt;br /&gt;&lt;pre  style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; margin-right: 10px; line-height: 100%; background-color: rgb(255, 255, 255);font-family:monospace;"&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 1 &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;public&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;class&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; Test {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 2 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;public&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;static&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;void&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; main(String[] args) {&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 3 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        OutputStream out1 = System.&lt;/span&gt;&lt;span style="color: rgb(102, 14, 122); background-color: rgb(255, 255, 255); font-weight: bold; font-style: italic;"&gt;out;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 4 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        PrintWriter out = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;new&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; PrintWriter(out1);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 5 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        out.println(&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"hello"&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 6 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        System.&lt;/span&gt;&lt;span style="color: rgb(102, 14, 122); background-color: rgb(255, 255, 255); font-weight: bold; font-style: italic;"&gt;out.&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;println(&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;"text is about to be flushed."&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 7 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;        out.flush();&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 8 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;    }&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt; 9 &lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;The output is as follows:&lt;br /&gt;&lt;pre style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; margin-right: 10px; line-height: 100%; background-color: rgb(255, 255, 255); font-family: monospace;"&gt;text is about to be flushed.&lt;br /&gt;hello&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;To enable auto-flush, you must initialize PrintWriter as follows:&lt;br /&gt;&lt;pre  style="border: 0.01mm solid rgb(0, 0, 0); padding: 4px; margin-right: 10px; line-height: 100%; background-color: rgb(255, 255, 255);font-family:monospace;"&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt;PrintWriter out = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 128); background-color: rgb(255, 255, 255); font-weight: bold;"&gt;new&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255);"&gt; PrintWriter(out1, true);&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-1299839037757610004?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/1299839037757610004/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=1299839037757610004' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1299839037757610004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/1299839037757610004'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/04/beware-when-using-printwriter.html' title='Why Doesn&apos;t PrintWriter Work?'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-2301765496391415257</id><published>2008-03-26T18:18:00.017+02:00</published><updated>2008-03-26T21:41:23.586+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='open source'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='game engine'/><category scheme='http://www.blogger.com/atom/ns#' term='oyun motorları'/><category scheme='http://www.blogger.com/atom/ns#' term='opengl'/><title type='text'>Java Tabanlı Oyun Motorları</title><content type='html'>Bu aralar bol bol boş vaktim var. Ben de, çok merak edip de şimdiye kadar ilgilenemediğim, değişik değişik konularla zamanımı değerlendiriyorum. Şu anda java tabanlı açık kaynak kodlu oyun motorlarını araştırıyorum. Bir yandan da OpenGL ve DirectX'i araştırıyorum. Google'da "java game engine" araması sonucu bulduğum bazı sonuçları aşağıda yayınlıyorum.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Java Monkey Engine:  &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.jmonkeyengine.com/"&gt;http://www.jmonkeyengine.com/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;EasyWay: &lt;/span&gt;&lt;br /&gt;&lt;a href="http://easyway.sourceforge.net/joomla/index.php"&gt;http://easyway.sourceforge.net/joomla/index.php&lt;/a&gt;&lt;br /&gt;Adı üstünde kullanımı ve öğrenimi &lt;span style="font-weight: bold;"&gt;kolay &lt;/span&gt;bir oyun motoru. Şimdilik sadece 2 boyutlu oyunlar yapılabiliyor. 3 boyut desteği yok. Tam ekran ve pencere desteği var. Applet desteği sıradaki versiyonla beraber geliyor. Bir an önce oyun programlamaya başlamak istiyorum diyorsanız, seçiminiz bu olsun. Sitedeki tutorial'leri okuduktan sonra kendi oyununuzu yazmaya başlayabilirsiniz.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OctLight: &lt;/span&gt;&lt;br /&gt;&lt;a href="https://jge.dev.java.net/"&gt;https://jge.dev.java.net/&lt;/a&gt;&lt;br /&gt;OctLight öncelikle online oyun geliştirilmesi amacıyla tasarlanmış. Fakat normal oyunlar da geliştirilebiliyor. Proje'nin şimdilik çok eksiği var. Yaklaşık bir senedir güncelleme görmemiş.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Golden T Game Engine: &lt;/span&gt;&lt;br /&gt;&lt;a href="http://goldenstudios.or.id/products/GTGE/"&gt;http://goldenstudios.or.id/products/GTGE/&lt;/a&gt;&lt;br /&gt;GTGE ile de 2 boyutlu oyunlar hazırlanabiliyor. Tam ekran, pencere ve applet desteği var. Sitesinde onlarca örnek oyunu kaynak koduyla beraber indirebilirsiniz. &lt;/span&gt;&lt;span style="font-size:100%;"&gt;Bu proje, &lt;/span&gt;&lt;span style="font-size:100%;"&gt;EasyWay'den daha aktif bir proje. Sadece forumlarında bile, EasyWay'den çok daha fazla post mevcut.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;JGame&lt;/span&gt;:&lt;br /&gt;&lt;a href="http://www.13thmonkey.org/%7Eboris/jgame/"&gt;http://www.13thmonkey.org/~boris/jgame/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Şimdilik hangisi daha kullanışlı ben de bilmiyorum. Zaman içinde bu gönderiyi güncelleyeceğim.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-2301765496391415257?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/2301765496391415257/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=2301765496391415257' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2301765496391415257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/2301765496391415257'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/03/java-tabanl-oyun-motorlar.html' title='Java Tabanlı Oyun Motorları'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-309949485947713825</id><published>2008-03-23T12:17:00.003+02:00</published><updated>2008-03-23T12:20:51.403+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='sun'/><category scheme='http://www.blogger.com/atom/ns#' term='javaone'/><category scheme='http://www.blogger.com/atom/ns#' term='j2ee'/><title type='text'>Online JavaOne Seminerleri</title><content type='html'>Aşağıdaki adresten, şimdiye kadar yapılmış olan JavaOne seminerlerini izleyebilir ve sunum dosyalarını indirebilirsiniz.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://developers.sun.com/learning/javaoneonline/index.jsp"&gt;http://developers.sun.com/learning/javaoneonline/index.jsp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sitede, aklınıza gelebilecek her türlü konuda görsel, işitsel içerik mevcut:).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-309949485947713825?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/309949485947713825/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=309949485947713825' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/309949485947713825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/309949485947713825'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/03/online-javaone-seminerleri.html' title='Online JavaOne Seminerleri'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-4696139197586709806</id><published>2008-03-20T12:12:00.026+02:00</published><updated>2008-03-20T13:07:42.823+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='servletcontext'/><category scheme='http://www.blogger.com/atom/ns#' term='j2ee'/><category scheme='http://www.blogger.com/atom/ns#' term='servletconfig'/><category scheme='http://www.blogger.com/atom/ns#' term='servlet'/><title type='text'>ServletContext ile ServletConfig Arasındaki Fark</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: georgia;"&gt;ServletContext, uygulamaya ait parametrelere erişmek için kullanılır. 1 uygulamada, 1 ServletContext objesi bulunur. Bu parametreler, web.xml dosyasında, aşağıdaki gibi saklanır:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;param-name&amp;gt;logfile_path&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;param-value&amp;gt;\logs\log.txt&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: georgia;"&gt;ServletConfig, ait olduğu servlet'e ait parametreleri barındırır. Uygulama içindeki her servlet'in 1 ServletConfig objesi vardır. Bu parametreler, web.xml'de aşağıdaki gibi saklanır.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;servlet-name&amp;gt;myServlet&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;servlet-class&amp;gt;MyServlet&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;       &amp;lt;param-name&amp;gt;About the Servlet&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;       &amp;lt;param-value&amp;gt;This is my servlet.&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   &amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-4696139197586709806?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/4696139197586709806/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=4696139197586709806' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/4696139197586709806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/4696139197586709806'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/03/servletcontext-ile-servletconfig.html' title='ServletContext ile ServletConfig Arasındaki Fark'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-6377948155704238954</id><published>2008-03-15T22:46:00.005+02:00</published><updated>2008-03-26T20:45:37.497+02:00</updated><title type='text'>Halil'in Dönüşü</title><content type='html'>Evet arkadaşlar, Nisan 2007'de başladığım askerlik vazifemi bugün itibariyle bitirdim:). Darısı askerliğini henüz yapmamış arkadaşlarımız başına:)&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_fe7_T7JnM0I/R-ZMH2MlmgI/AAAAAAAAAAo/Ujpz6AOyTwM/s1600-h/Resim-386.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_fe7_T7JnM0I/R-ZMH2MlmgI/AAAAAAAAAAo/Ujpz6AOyTwM/s320/Resim-386.jpg" alt="" id="BLOGGER_PHOTO_ID_5180912119027440130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-6377948155704238954?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/6377948155704238954/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=6377948155704238954' title='2 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6377948155704238954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/6377948155704238954'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2008/02/dndm.html' title='Halil&apos;in Dönüşü'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_fe7_T7JnM0I/R-ZMH2MlmgI/AAAAAAAAAAo/Ujpz6AOyTwM/s72-c/Resim-386.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3529217204632979498.post-8020903378523480764</id><published>2006-11-02T01:25:00.005+02:00</published><updated>2008-04-04T01:46:33.309+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intellij'/><category scheme='http://www.blogger.com/atom/ns#' term='jar'/><category scheme='http://www.blogger.com/atom/ns#' term='class'/><category scheme='http://www.blogger.com/atom/ns#' term='plugin'/><category scheme='http://www.blogger.com/atom/ns#' term='classpathcomplete'/><title type='text'>My First Intellij Plugin: Classpath Complete</title><content type='html'>I have just released my first open-source Intellij plugin. The plugin is hosted in &lt;a href="http://www.jetbrains.com/idea/"&gt;Intellij&lt;/a&gt;'s web site: &lt;a href="http://plugins.intellij.net/plugin/?id=1214"&gt;http://plugins.intellij.net/plugin/?id=1214&lt;/a&gt;. This is an alpha release. There are a couple of missing features that I am planning to implement soon.&lt;br /&gt;&lt;br /&gt;The source code can be downloaded &lt;a href="http://plugins.intellij.net/files/sourceCode/Classpath_Complete_1214.zip"&gt;&lt;span style="text-decoration: underline;"&gt;here&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;text-decoration: underline;"&gt;What the plugin does:&lt;/span&gt;&lt;br&gt;&lt;br /&gt;There are plenty of jar files around that a java developer should be aware of. Sometimes, we need some classes but we may not know which jar files contain these classes. In the build process, if the jar files does not exist in the classpath of java projects, the compiler throws "cannot resolve symbol" errors for classes which cannot be found in the classpath. My plugin comes into play in this situation. The plugin finds all the jar files on all of the drives of the computer. Then it finds the classes inside the jar files. The information is saved in &lt;span style="font-weight: bold;"&gt;Intellij IDEA&lt;/span&gt;'s configuration file. This process needs to be done only once. After the plugin is initialized, you can search the missing classes using a dialog box, to find which jar file contains the class and later add the jar to the project's classpath.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3529217204632979498-8020903378523480764?l=halilkarakose.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://halilkarakose.blogspot.com/feeds/8020903378523480764/comments/default' title='Kayıt Yorumları'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3529217204632979498&amp;postID=8020903378523480764' title='0 Yorum'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8020903378523480764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3529217204632979498/posts/default/8020903378523480764'/><link rel='alternate' type='text/html' href='http://halilkarakose.blogspot.com/2006/11/my-first-intellij-plugin-classpath.html' title='My First Intellij Plugin: Classpath Complete'/><author><name>Halil Karaköse</name><uri>http://www.blogger.com/profile/07278908958838027723</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_fe7_T7JnM0I/R4iegveipqI/AAAAAAAAAAY/mGghqAnakFQ/S220/Untitled-9.gif'/></author><thr:total>0</thr:total></entry></feed>
