<?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-6177236581378461454</id><updated>2012-02-01T03:56:51.437-08:00</updated><category term='Python'/><category term='virtualization'/><category term='PKI'/><category term='PostgreSQL'/><category term='Linux'/><category term='security'/><category term='Opera'/><category term='WID'/><category term='maven'/><category term='Ubuntu'/><category term='eclipse'/><category term='Spring'/><category term='Windows'/><category term='Oracle'/><category term='SVN'/><category term='Java'/><category term='multimedia'/><category term='Xfce'/><title type='text'>alterTableOrEgo</title><subtitle type='html'>Some mainly software/software development stuff I deal with at times.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-6086978537956876675</id><published>2012-02-01T03:49:00.001-08:00</published><updated>2012-02-01T03:52:27.718-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>How to quickly call a stored procedure in Spring</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;If your procedure does not take parameters nor return any values (or you're not interested), do just that:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;DataSource dataSource = getDataSourceSomehowMostProbablyFromYourSpringContext();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;SimpleJdbcCall theProcedureCall = new SimpleJdbcCall(dataSource).withProcedureName("myproc");&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;That's it&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-6086978537956876675?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/6086978537956876675/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2012/02/how-to-quickly-call-stored-procedure-in.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6086978537956876675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6086978537956876675'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2012/02/how-to-quickly-call-stored-procedure-in.html' title='How to quickly call a stored procedure in Spring'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-8364519257384648349</id><published>2012-01-28T11:38:00.001-08:00</published><updated>2012-02-01T03:53:01.542-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><title type='text'>Windows 98 SE under VMware Player</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;What you need:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Win 98 SE CD (obviously...)&lt;/li&gt;&lt;li&gt;SoundBlaster PCI 128 drivers&lt;/li&gt;&lt;li&gt;some of the unofficial Win98 Service Packs (e.g. http://exuberant.ms11.net/98sesp.html or - I guess Polish only - http://www.softmania.pl/program-1252-nieoficjalny_service_pack_plus_dla_windows_98_se.html)&lt;/li&gt;&lt;li&gt;VMware Tools - windows.iso, take it from e.g. http://packages.vmware.com/tools/esx/5.0/index.html&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Remarks:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;do not use USB 2.0 - uncheck it in VM's settings. see http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1011734&lt;/li&gt;&lt;li&gt;install SB PCI 128 drivers to have sound working&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;img height="1" width="1" src="https://blogger.googleusercontent.com/tracker/6177236581378461454-8364519257384648349?l=altertableorego.blogspot.com" /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-8364519257384648349?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/8364519257384648349/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2012/01/windows-98-se-under-vmware-player.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/8364519257384648349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/8364519257384648349'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2012/01/windows-98-se-under-vmware-player.html' title='Windows 98 SE under VMware Player'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-4968216626902306203</id><published>2011-11-18T03:18:00.001-08:00</published><updated>2011-11-18T03:19:42.915-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Python 2.7 under Ubuntu Lucid</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;The latest 2.x version available is 2.6.5.&lt;/p&gt;&lt;p&gt;1. Add ppa:pythoneers/lts PPA&lt;/p&gt;&lt;p&gt;2. &lt;code&gt;sudo apt-get install python2.7&lt;/code&gt;&lt;/p&gt;&lt;p&gt;To add some more packages use eggs. E.g. download &lt;/p&gt;&lt;p&gt;&lt;a title='http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg' href='http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg'&gt;http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg&lt;/a&gt;&lt;/p&gt;&lt;p&gt;and &lt;/p&gt;&lt;p&gt;&lt;code&gt;sudo sh setuptools-0.6c11-py2.7.egg&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-4968216626902306203?l=altertableorego.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-4968216626902306203?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/4968216626902306203/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2011/11/latest-2.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4968216626902306203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4968216626902306203'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2011/11/latest-2.html' title='Python 2.7 under Ubuntu Lucid'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-6555011464963069068</id><published>2011-03-12T09:12:00.001-08:00</published><updated>2011-11-18T03:21:49.621-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>Use svn-clean safely</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;That is, suppose you have some useful stuff in your project sources "root" directory, e.g. it looks like that:&lt;/p&gt;&lt;p&gt;&lt;code&gt;frontend&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;backend&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;api&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;.metadata&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;some-makeshift-file-with-useful-content-you-do-not-want-to-be-removed&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Now you want to use svn-clean script, which is a part of subversion-tools Debian package (see e.g. &lt;a title='http://packages.debian.org/search?keywords=subversion-tools' href='http://packages.debian.org/search?keywords=subversion-tools'&gt;http://packages.debian.org/search?keywords=subversion-tools&lt;/a&gt;). If you invoke it like that:&lt;/p&gt;&lt;p&gt;&lt;code&gt;svn-clean .&lt;/code&gt;&lt;/p&gt;&lt;p&gt;you'll lose your eclipse workspace and that useful file with a lenghty name. So:&lt;/p&gt;&lt;p&gt;&lt;code&gt;find -maxdepth 1 -mindepth 1 -type d -name "[a-zA-Z]*" -exec svn-clean {} \;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-6555011464963069068?l=altertableorego.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-6555011464963069068?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/6555011464963069068/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2011/03/use-svn-clean-safely.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6555011464963069068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6555011464963069068'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2011/03/use-svn-clean-safely.html' title='Use svn-clean safely'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-2517673239536942125</id><published>2011-03-11T06:55:00.001-08:00</published><updated>2011-03-11T06:57:35.345-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>How to resolve Subversion merge conflicts using kdiff3</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;p&gt;export SVN_MERGE=/path/to/the/script/below/mergewrap.sh&lt;/p&gt;&lt;p&gt;&lt;code&gt;#!/bin/sh&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;# mergewrap.sh&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;kdiff3  $1 $2 $3 -o $4&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;Now let's merge something and wait until SVN client detects a conflict and asks you what to do - then choose "l" for "launch external tool to resolve conflict":&lt;/p&gt;&lt;p&gt;&lt;code&gt;svn merge -c17218 ^/src/trunk&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;code&gt;--- Merging r17218 into 'backend':&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;U    backend/src/main/resources/default.properties&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;Conflict discovered in 'backend/pom.xml'.&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;Select: (p) postpone, (df) diff-full, (e) edit,&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;        (mc) mine-conflict, (tc) theirs-conflict,&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;        (s) show all options: l&lt;/code&gt;&lt;/p&gt;&lt;p&gt;When you are done with the merge, have saved the file and closed kdiff3, you are asked the same question again. Now you can answer "r" for "accept merged version of file". That's it.&lt;/p&gt;&lt;p&gt;They say you can also set merge-tool-cmd configuration property, but somehow it did not work for me. SVN_MERGE did.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-2517673239536942125?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/2517673239536942125/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2011/03/how-to-resolve-subversion-merge.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2517673239536942125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2517673239536942125'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2011/03/how-to-resolve-subversion-merge.html' title='How to resolve Subversion merge conflicts using kdiff3'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-255004994757263681</id><published>2011-01-26T06:01:00.001-08:00</published><updated>2011-02-03T04:19:02.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Downloading JAR from Maven repository to local repo</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;AFAIR there is no way to specify classifier (e.g. sources) and you'd better give the full plugin name as version 2.0 does not have that functionality, But quite useful sometimes to quickly have the dependency installed locally:&lt;/p&gt;&lt;p&gt;&lt;code&gt;mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -Dartifact=junit:junit:3.8.1 -DrepoUrl=http://download.java.net/maven/2&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-255004994757263681?l=altertableorego.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-255004994757263681?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/255004994757263681/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2011/01/downloading-jar-from-maven-repository.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/255004994757263681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/255004994757263681'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2011/01/downloading-jar-from-maven-repository.html' title='Downloading JAR from Maven repository to local repo'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-5910169438981266939</id><published>2011-01-13T04:16:00.001-08:00</published><updated>2011-01-13T04:16:36.506-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Installing JAR in a local Maven repo</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;&lt;a target='_blank' title='They say:' href='http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html'&gt;They say&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;mvn install:install-file -Dfile=&amp;lt;path-to-file&amp;gt; -DgroupId=&amp;lt;group-id&amp;gt; \&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;    -DartifactId=&amp;lt;artifact-id&amp;gt; -Dversion=&amp;lt;version&amp;gt; -Dpackaging=&amp;lt;packaging&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;p/&gt;&lt;p&gt;so...&lt;/p&gt;&lt;p/&gt;&lt;p&gt;&lt;code&gt;mvn install:install-file -Dfile=junit-4.9b1.jar -DgroupId=junit \&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;    -DartifactId=junit -Dversion=4.9b1 -Dpackaging=jar&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-5910169438981266939?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/5910169438981266939/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2011/01/installing-jar-in-local-maven-repo.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/5910169438981266939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/5910169438981266939'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2011/01/installing-jar-in-local-maven-repo.html' title='Installing JAR in a local Maven repo'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-3220613006961514759</id><published>2010-11-05T14:48:00.001-07:00</published><updated>2010-11-05T14:48:56.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PostgreSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Adjusting PostgreSQL sequence</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;Sometimes (hopefully not in production) you have "low" sequence values but "high" identifiers in the respective table. That usually results in primary key violation on an attempt to insert a new row.&lt;/p&gt;&lt;p&gt;So - if you really do not want to delete the data, you should make the sequence have those "high" values, ideally max(id_from_the_table) + 1.&lt;/p&gt;&lt;p&gt;In PostgreSQL it turns out to be much more elegant than in Oracle, where you can either come up with some PL/SQL FOR loop or use DDL ALTER SEQUENCE statements. The examples have been copied from &lt;/p&gt;&lt;p&gt;http://www.postgresql.org/docs/current/static/functions-sequence.html&lt;/p&gt;&lt;p&gt;&lt;code&gt;SELECT setval('foo', 42);           Next nextval will return 43&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;SELECT setval('foo', 42, true);     Same as above&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;SELECT setval('foo', 42, false);    Next nextval will return 42&lt;/code&gt;&lt;/p&gt;&lt;p/&gt;&lt;p/&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-3220613006961514759?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/3220613006961514759/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2010/11/adjusting-postgresql-sequence.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3220613006961514759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3220613006961514759'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2010/11/adjusting-postgresql-sequence.html' title='Adjusting PostgreSQL sequence'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-786714463790121243</id><published>2010-10-10T07:46:00.001-07:00</published><updated>2010-10-10T07:49:28.644-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>How to convert a collection of MonkeyAudio (ape) files to Ogg Vorbis on Ubuntu 10.04</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;OK, I have got some quite old backups of my audio CDs in APEs (created under Windows years ago). Would like to have them in Oggs of fairly low quality so that they do not take too much space. That page looks promising:&lt;/p&gt;&lt;p&gt;&lt;a title='http://lossless2lossy.sourceforge.net/' href='http://lossless2lossy.sourceforge.net/'&gt;http://lossless2lossy.sourceforge.net/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It states you will need oggenc and MAC for such a conversion.&lt;/p&gt;&lt;p&gt;So...&lt;/p&gt;&lt;p&gt;1. For oggenc (a part of vorbis-tools)&lt;/p&gt;&lt;p&gt;&lt;code&gt;sudo apt-get install vorbis-tools&lt;/code&gt;&lt;/p&gt;&lt;p&gt;2. And the MAC thingy? Well... seems there were some licensing problems with that and it is no longer in the official repos. So download it from&lt;/p&gt;&lt;p&gt;&lt;a title='http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb' href='http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb'&gt;http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb&lt;/a&gt;&lt;/p&gt;&lt;p&gt;(as stated in &lt;a title='http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/' href='http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/'&gt;http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu/&lt;/a&gt; which seems to be the root here, see also &lt;a title='https://bugs.launchpad.net/ubuntu/+bug/119412' href='https://bugs.launchpad.net/ubuntu/+bug/119412'&gt;https://bugs.launchpad.net/ubuntu/+bug/119412&lt;/a&gt; for the license problems discussion; even some PPA repo is mentioned there)&lt;/p&gt;&lt;p&gt;and install, e.g. by means of GDebi or&lt;/p&gt;&lt;p&gt;&lt;code&gt;sudo dpkg -i mac-3.99-u4_b3-1_i386.deb&lt;/code&gt; &lt;/p&gt;&lt;p&gt;3. Download lossless2lossy:&lt;/p&gt;&lt;p&gt;&lt;a title='http://sourceforge.net/projects/lossless2lossy/files/' href='http://sourceforge.net/projects/lossless2lossy/files/'&gt;http://sourceforge.net/projects/lossless2lossy/files/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;4. Put it somewhere in your PATH (~/bin for example) and...&lt;/p&gt;&lt;p&gt;&lt;code&gt;chmod u+x ~/bin/lossless2lossy-v1.21 &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;ln -s ~/bin/lossless2lossy-v1.21 ~/bin/lossless2lossy&lt;/code&gt;&lt;/p&gt;&lt;p&gt;5. Convert the whole stuff, saving intermediary wav files to /tmp and not retaining them&lt;/p&gt;&lt;p&gt;&lt;code&gt;lossless2lossy ogg vbr 1 ~/music/ape /tmp ~/music/ogg nosave&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Quite recently support for MonkeyAudio has been added to ffmpeg - to be checked...&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-786714463790121243?l=altertableorego.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-786714463790121243?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/786714463790121243/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2010/10/how-to-convert-collection-of.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/786714463790121243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/786714463790121243'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2010/10/how-to-convert-collection-of.html' title='How to convert a collection of MonkeyAudio (ape) files to Ogg Vorbis on Ubuntu 10.04'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-1767617631535308960</id><published>2010-05-14T05:31:00.001-07:00</published><updated>2010-05-14T05:32:47.408-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Eclipse Data Tools Platform - getting nicer</title><content type='html'>Did not use to use it since it seemed inferior to more specialised tools. But I can see in &lt;a href="http://www.blogger.com/www.eclipse.org/galileo"&gt;Galileo&lt;/a&gt; (3.5 that is) it behaves much better and is suitable for many tasks involving just reviewing and/or editing data. Especially not BLOBS - haven't tried out the current DTP support for them though.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In preferences, under General/Data Manegement/SQL Editor on "General" tab you can set what "Execute current text" should mean. I do not like the default "Execute current line" but the other choices "between delimiters" and "between blank lines" are much better. Alt+s in SQL scrapbook and I have my query executed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-1767617631535308960?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/1767617631535308960/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2010/05/eclipse-data-tools-platform-getting.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1767617631535308960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1767617631535308960'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2010/05/eclipse-data-tools-platform-getting.html' title='Eclipse Data Tools Platform - getting nicer'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-3419955476397430803</id><published>2010-05-04T21:33:00.000-07:00</published><updated>2010-10-03T15:56:34.079-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Opera'/><title type='text'>FlashGot-like download by means of wget in Opera under Linux</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;To have Opera behave similar way as Firefox with FlashGot http://flashgot.net/ - that is, to have wget download files:&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Edit ~/.opera/menu/standard_menu_1.ini file (&lt;strong&gt;note: Opera must not run!&lt;/strong&gt;)&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;&lt;li&gt;In section [Link Popup Menu]&lt;br/&gt;add the following line:&lt;br/&gt;Item, "Download by wget"="Execute program, "xterm +132 -e wget -P/home/username/downloads","%l""&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;br/&gt;Inspiration: http://www.linux.com/archive/feature/59457&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-3419955476397430803?l=altertableorego.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-3419955476397430803?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/3419955476397430803/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2010/05/flashgot-like-download-by-means-of-wget.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3419955476397430803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3419955476397430803'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2010/05/flashgot-like-download-by-means-of-wget.html' title='FlashGot-like download by means of wget in Opera under Linux'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-9071842543682700882</id><published>2010-05-02T14:00:00.001-07:00</published><updated>2010-05-02T14:00:50.138-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>How to get a value of an XML element from XMLType in Oracle</title><content type='html'>&lt;strong&gt;EXTRACTVALUE&lt;/strong&gt; method:&lt;br /&gt;&lt;strong&gt;EXTRACTVALUE&lt;/strong&gt;(XMLTYPE_instance,XPath_string) or&lt;br /&gt;&lt;strong&gt;EXTRACTVALUE&lt;/strong&gt;(XMLTYPE_instance,XPath_string, namespace_string)&lt;br /&gt;e.g.&lt;br /&gt;&lt;blockquote&gt;select extractvalue(details, '/SomeDoc/SomeDetail')&lt;br /&gt;from SomeTable&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-9071842543682700882?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/9071842543682700882/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2010/05/how-to-get-value-of-xml-element-from.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/9071842543682700882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/9071842543682700882'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2010/05/how-to-get-value-of-xml-element-from.html' title='How to get a value of an XML element from XMLType in Oracle'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-4095318539743465403</id><published>2009-06-16T12:45:00.000-07:00</published><updated>2009-06-16T12:48:42.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PKI'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>How to get X.509 certificate from CMS/PKCS#7 signature</title><content type='html'>&lt;span style="font-family:courier new;"&gt;openssl pkcs7 -in signaturefile.sig -inform DER -print_certs -text&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-4095318539743465403?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/4095318539743465403/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/06/how-to-get-x509-certificate-from.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4095318539743465403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4095318539743465403'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/06/how-to-get-x509-certificate-from.html' title='How to get X.509 certificate from CMS/PKCS#7 signature'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-6351986397318921546</id><published>2009-06-13T16:32:00.000-07:00</published><updated>2009-06-13T16:35:49.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Xfce'/><title type='text'>Display a command result in new Xfce terminal window</title><content type='html'>&lt;p&gt;Sometimes you just want to display a result, as for ls:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;xfce4-terminal  -H -e ls&lt;/span&gt;&lt;/p&gt;&lt;p&gt;But sometimes it makes sense to display results continuosly, like for htop or elinks:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;xfce4-terminal  -e htop&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-6351986397318921546?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/6351986397318921546/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/06/display-command-result-in-new-xfce.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6351986397318921546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6351986397318921546'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/06/display-command-result-in-new-xfce.html' title='Display a command result in new Xfce terminal window'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-1236437287839800490</id><published>2009-06-13T14:06:00.000-07:00</published><updated>2009-06-13T14:38:03.992-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>How to get executable shell scripts from Subversion repository</title><content type='html'>&lt;p&gt;All you have to do is to set svn:executable property on the file&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;svn propset svn:executable on somescript.sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;svn commit&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Especially important when done on Windows (SVN client should set this automatically if executable file is being added to version control on Linux)&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-1236437287839800490?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/1236437287839800490/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/06/how-to-get-executable-shell-scripts.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1236437287839800490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1236437287839800490'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/06/how-to-get-executable-shell-scripts.html' title='How to get executable shell scripts from Subversion repository'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-4114868870357063083</id><published>2009-06-13T03:00:00.001-07:00</published><updated>2009-06-13T03:11:26.450-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>Keyboard shortcut for "Add to version control" in eclipse</title><content type='html'>&lt;p&gt;I am really fed up with right-clicking and choosing "Add to version control". I defined a keyboard shortcut then. &lt;/p&gt;&lt;p&gt;Press Ctrl Shift L twice. On "Keys" preference page find "Add to version control", preferably using the relevant search box. When - "In windows". I chose "Ctrl+Shift+Alt+C" so that it won't interfere with anything (I hope).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-4114868870357063083?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/4114868870357063083/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/06/keyboard-shortcut-for-add-to-version.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4114868870357063083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/4114868870357063083'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/06/keyboard-shortcut-for-add-to-version.html' title='Keyboard shortcut for &quot;Add to version control&quot; in eclipse'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-628514412499472207</id><published>2009-05-22T01:41:00.000-07:00</published><updated>2009-05-22T01:50:17.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>End-of-line characters conversion between Windows and Linux</title><content type='html'>Just started to work for a project where the majority of the people use Windows. Quick fix for ^M occuring in shell scripts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sudo aptitude install tofrodos&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and then&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;find . -name '*.sh' | xargs dos2unix -d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(could be with exec, but for a small number of files it does not really matter)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-628514412499472207?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/628514412499472207/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/05/end-of-line-characters-conversion.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/628514412499472207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/628514412499472207'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/05/end-of-line-characters-conversion.html' title='End-of-line characters conversion between Windows and Linux'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-2557143626741742899</id><published>2009-05-09T10:44:00.000-07:00</published><updated>2009-05-09T10:50:48.325-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>A cryptographic hash of an empty byte array does exist. Honestly.</title><content type='html'>An hour or so spent and finally the reason found - no data. That test proves it in a way:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;    @Test&lt;br /&gt;    public void testNullDigest() throws Exception {&lt;br /&gt;        MessageDigest md = MessageDigest.getInstance("SHA1");&lt;br /&gt;        System.out.println(ArrayUtils.toString(md.digest(new byte[0])));&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The output:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;{-38,57,-93,-18,94,107,75,13,50,85,-65,-17,-107,96,24,-112,-81,-40,7,9}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Exactly the same as the one I was getting. In particular, different from the expected one (suprise). I should make some constant ;-/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-2557143626741742899?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/2557143626741742899/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/05/cryptographic-hash-of-empty-byte-array.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2557143626741742899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2557143626741742899'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/05/cryptographic-hash-of-empty-byte-array.html' title='A cryptographic hash of an empty byte array does exist. Honestly.'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-7970300182369546362</id><published>2009-05-02T03:48:00.000-07:00</published><updated>2009-05-02T04:34:25.574-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Quick search in Midnight Commander</title><content type='html'>Just press Alt+s and then start typing the name.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-7970300182369546362?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/7970300182369546362/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/05/quick-search-in-midnight-commander.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/7970300182369546362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/7970300182369546362'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/05/quick-search-in-midnight-commander.html' title='Quick search in Midnight Commander'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-3685849817581833667</id><published>2009-05-02T03:32:00.000-07:00</published><updated>2009-05-02T03:39:30.508-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Prune unnecessary log4j dependencies in maven</title><content type='html'>If you want to use the newest log4j with maven build, you may notice a few dependencies you may not want to include if you just want to have plain ordinary logging without JMX or mail support.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;dependency&amp;gt;&lt;br /&gt; &amp;lt;groupId&amp;gt;log4j&amp;lt;/groupId&amp;gt;&lt;br /&gt; &amp;lt;artifactId&amp;gt;log4j&amp;lt;/artifactId&amp;gt;&lt;br /&gt; &amp;lt;version&amp;gt;1.2.15&amp;lt;/version&amp;gt;&lt;br /&gt; &amp;lt;exclusions&amp;gt;&lt;br /&gt;  &amp;lt;exclusion&amp;gt;&lt;br /&gt;   &amp;lt;groupId&amp;gt;javax.jms&amp;lt;/groupId&amp;gt;&lt;br /&gt;   &amp;lt;artifactId&amp;gt;jms&amp;lt;/artifactId&amp;gt;&lt;br /&gt;  &amp;lt;/exclusion&amp;gt;&lt;br /&gt;  &amp;lt;exclusion&amp;gt;&lt;br /&gt;   &amp;lt;groupId&amp;gt;javax.mail&amp;lt;/groupId&amp;gt;&lt;br /&gt;   &amp;lt;artifactId&amp;gt;mail&amp;lt;/artifactId&amp;gt;&lt;br /&gt;  &amp;lt;/exclusion&amp;gt;    &lt;br /&gt;  &amp;lt;exclusion&amp;gt;&lt;br /&gt;   &amp;lt;groupId&amp;gt;com.sun.jdmk&amp;lt;/groupId&amp;gt;&lt;br /&gt;   &amp;lt;artifactId&amp;gt;jmxtools&amp;lt;/artifactId&amp;gt;&lt;br /&gt;  &amp;lt;/exclusion&amp;gt;&lt;br /&gt;  &amp;lt;exclusion&amp;gt;&lt;br /&gt;   &amp;lt;groupId&amp;gt;com.sun.jmx&amp;lt;/groupId&amp;gt;&lt;br /&gt;   &amp;lt;artifactId&amp;gt;jmxri&amp;lt;/artifactId&amp;gt;&lt;br /&gt;  &amp;lt;/exclusion&amp;gt;    &lt;br /&gt; &amp;lt;/exclusions&amp;gt;&lt;br /&gt;&amp;lt;/dependency&amp;gt;&lt;br /&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/6177236581378461454-3685849817581833667?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/3685849817581833667/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/05/prune-unnecessary-log4j-dependencies-in.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3685849817581833667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3685849817581833667'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/05/prune-unnecessary-log4j-dependencies-in.html' title='Prune unnecessary log4j dependencies in maven'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-2531539189113449027</id><published>2009-04-30T05:14:00.001-07:00</published><updated>2009-04-30T05:16:48.240-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>View all Subversion commiters</title><content type='html'>Do you want to see everyone who checked something in to SVN repo?&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn log | egrep 'r[0-9]* '  | cut -f2 -d '|' | sort -u&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-2531539189113449027?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/2531539189113449027/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/04/view-all-subversion-commiters.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2531539189113449027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2531539189113449027'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/04/view-all-subversion-commiters.html' title='View all Subversion commiters'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-188806702724827804</id><published>2009-03-24T08:21:00.000-07:00</published><updated>2009-03-24T08:23:59.519-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Xfce'/><title type='text'>Templates in Thunar (Create document...)</title><content type='html'>Just put the template file in ~/Templates and that's it. &lt;a href="http://stalefries.googlepages.com/howtosnautilustemplates"&gt;Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-188806702724827804?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/188806702724827804/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/03/templates-in-thunar-create-document.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/188806702724827804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/188806702724827804'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/03/templates-in-thunar-create-document.html' title='Templates in Thunar (Create document...)'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-38500480966605457</id><published>2009-03-03T04:06:00.000-08:00</published><updated>2010-01-02T04:08:23.957-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WID'/><title type='text'>How to change the default WPS password in Websphere Integration Developer</title><content type='html'>Here is &lt;span style="font-weight: bold;"&gt;the &lt;/span&gt;file&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;~/.eclipse/ibm.websphere.integration.developer_7.0.0_1741360425/configuration/.settings&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/com.ibm.wbit.runtime.core.prefs&lt;/span&gt; &lt;br /&gt;and that context is to be changed:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;security.user.wps_61=admin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;security.password.wps_61={xor}PjsyNjE\=&lt;/span&gt;&lt;br /&gt;For password encoding &lt;a href="http://robertmaldon.blogspot.com/2006/07/recovering-passwords-from-websphere.html"&gt;that entry&lt;/a&gt; might be helpful.&lt;br /&gt;UPDATE: From now on you do not have to enter  embedded WebSphere user/password every time you start WID. For Windows, the directory and file can somewhere in WID61\configuration\.settings\com.ibm.wbit.runtime.core.prefs. I think it could be in similar place on Linux, but that depends on your user's write rights to WID directory. I should have issued a proper umask prior to the installation apparently - but when you read installation docs few months after the installation, such things happen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-38500480966605457?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/38500480966605457/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/03/how-to-chenge-default-ws-password.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/38500480966605457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/38500480966605457'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/03/how-to-chenge-default-ws-password.html' title='How to change the default WPS password in Websphere Integration Developer'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-3579715112873810635</id><published>2009-03-02T02:53:00.000-08:00</published><updated>2009-03-02T03:02:56.032-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Oracle not starting after system reinstallation</title><content type='html'>&lt;span style="font-family: georgia;"&gt;After formatting root partition and installation of Xubuntu 8.10 instead of Kubuntu 8.04 (but preserving /home) Oracle failed to start:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;oracle[SID]: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ERROR:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ORA-12547: TNS:lost contact&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Enter user-name: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The solution was to install libaio1:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sudo aptitude install libaio1&lt;/span&gt;&lt;br /&gt;Well, somewhat natural consequence of the decision  not to automatically reinstall all the packages present in my previous Hardy installation...&lt;br /&gt;&lt;a href="Relevant%20Oracle%20forums%20entry"&gt;http://forums.oracle.com/forums/thread.jspa?messageID=2797706&amp;amp;tstart=0&lt;/a&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/6177236581378461454-3579715112873810635?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/3579715112873810635/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/03/oracle-not-starting-after-system.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3579715112873810635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3579715112873810635'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/03/oracle-not-starting-after-system.html' title='Oracle not starting after system reinstallation'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-9036691166017522108</id><published>2009-02-27T12:34:00.000-08:00</published><updated>2009-02-27T12:40:23.762-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Splitting and joining large files</title><content type='html'>&lt;span style="font-family: courier new;"&gt;cd /music/Pearl Jam/Ten&lt;br /&gt;mkdir tmpoceans&lt;br /&gt;# split the file&lt;br /&gt;split -b 400k 07\ -\ Oceans.ogg tmpoceans/07\ Oceans.ogg.&lt;br /&gt;# check the created parts&lt;br /&gt;ls -1 &lt;/span&gt;&lt;span style="font-family: courier new;"&gt;tmpoceans&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;07 Oceans.ogg.aa&lt;br /&gt;07 Oceans.ogg.ab&lt;br /&gt;07 Oceans.ogg.ac&lt;br /&gt;07 Oceans.ogg.ad&lt;br /&gt;# split it back&lt;br /&gt;cat 07\ Oceans.ogg.* &gt; 07\ Oceans.ogg&lt;br /&gt;# and play&lt;br /&gt;ogg123 &lt;/span&gt;&lt;span style="font-family: courier new;"&gt;07\ Oceans.ogg&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;a href="http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/"&gt;http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.johnrockefeller.net/?p=195"&gt;&lt;span style="font-family: georgia;"&gt;http://www.johnrockefeller.net/?p=195&lt;/span&gt;&lt;/a&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/6177236581378461454-9036691166017522108?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/9036691166017522108/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/splitting-and-joining-large-files.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/9036691166017522108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/9036691166017522108'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/splitting-and-joining-large-files.html' title='Splitting and joining large files'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-8953236434594850816</id><published>2009-02-24T07:36:00.000-08:00</published><updated>2009-02-24T07:38:14.875-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Xfce'/><title type='text'>Thunar - single click instead of the default double</title><content type='html'>Edit/Preferences/Behaviour/&lt;br /&gt;Single click to activate items&lt;br /&gt;&lt;br /&gt;http://xfce.jakilinux.org/viewtopic.php?id=19&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-8953236434594850816?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/8953236434594850816/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/thunar-single-click-instead-of-default.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/8953236434594850816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/8953236434594850816'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/thunar-single-click-instead-of-default.html' title='Thunar - single click instead of the default double'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-1477236874460832472</id><published>2009-02-23T12:53:00.000-08:00</published><updated>2009-04-30T05:37:36.507-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>Subversion - repository URL of working copy</title><content type='html'>&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:georgia;"&gt;That tiny script is useful when you've got a few branches and dir names do not reflect those in the repo, eg. branch1, branch2 vs http://oursvnrepo/importantproject/branches/{somefeature,anotherfature} (quite possible in large projects with frequently created branches). Yes, it could be a bit more elegant and discover when the parameter is not a directory, but anyway:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# !/bin/bash&lt;br /&gt;# usage:&lt;br /&gt;# svnpath - SVN repo URL for current dir&lt;br /&gt;# svnpath dirname - svn repo URL for given dir&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;if [ -z "$1" ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  grep '//' .svn/entries | head -n1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  grep '//' "$1"/.svn/entries | head -n1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;fi&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&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/6177236581378461454-1477236874460832472?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/1477236874460832472/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/subversion-repository-url-of-working.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1477236874460832472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/1477236874460832472'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/subversion-repository-url-of-working.html' title='Subversion - repository URL of working copy'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-3473132987419503364</id><published>2009-02-23T12:22:00.000-08:00</published><updated>2009-02-23T12:27:10.804-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Other users' Oracle sessions</title><content type='html'>&lt;span style="font-family: courier new;"&gt;select process, program, osuser, sid, serial#,&lt;br /&gt;BLOCKING_SESSION_STATUS, SECONDS_IN_WAIT, lockwait, status&lt;br /&gt;from v$session&lt;br /&gt;where type = 'USER'&lt;br /&gt;and nvl(osuser, 'nomycurrentuser') != 'mycurrentuser'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-3473132987419503364?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/3473132987419503364/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/other-users-oracle-sessions.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3473132987419503364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/3473132987419503364'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/other-users-oracle-sessions.html' title='Other users&apos; Oracle sessions'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-7337492530923002664</id><published>2009-02-23T12:21:00.000-08:00</published><updated>2009-02-23T12:22:41.500-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Where are Oracle trace files written</title><content type='html'>&lt;span style="font-family: courier new;"&gt;select value from v$parameter&lt;br /&gt;where name like '%user_dump%'&lt;br /&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/6177236581378461454-7337492530923002664?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/7337492530923002664/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/where-are-oracle-trace-files-written.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/7337492530923002664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/7337492530923002664'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/where-are-oracle-trace-files-written.html' title='Where are Oracle trace files written'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-2520579772191819399</id><published>2009-02-20T05:53:00.000-08:00</published><updated>2009-02-20T05:59:21.331-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Useful SQL+ commands, part 1</title><content type='html'>Useful for "reports"&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;set linesize 200&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;set pages 0 -- effectively switches off any headers&lt;/span&gt;&lt;br /&gt;Useful for displaying long columns - not only LONG but e.g. XMLType&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;set long 10000 -- ... or so&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-2520579772191819399?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/2520579772191819399/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/useful-sql-commands-part-1.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2520579772191819399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/2520579772191819399'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/useful-sql-commands-part-1.html' title='Useful SQL+ commands, part 1'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-6903408651986385102</id><published>2009-02-20T04:09:00.000-08:00</published><updated>2009-02-20T05:08:25.828-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Import Oracle dump into an existing schema</title><content type='html'>&lt;ol&gt;&lt;li&gt;First drop all sequences for a user:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;declare&lt;br /&gt;cursor cr is select sequence_name from user_sequences;&lt;br /&gt;begin&lt;br /&gt; for c in cr loop&lt;br /&gt;   execute immediate 'drop sequence ' || c.sequence_name;&lt;br /&gt; end loop;&lt;br /&gt;end;&lt;br /&gt;/&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Import dump file&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;impdp  appadmin/password directory=dmpdir dumpfile=appadmin.dmp SCHEMAS=appadmin table_exists_action=replace&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:georgia;"&gt;It uses non-standard directory dmpdir instead of the default one DATA_PUMP_DIR, to create it run sth like:&lt;/span&gt;&lt;br /&gt;CREATE OR REPLACE DIRECTORY dmpdir as '/opt/oracle/dmp'&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;from an account with proper privs (CREATE ANY DIRECTORY, "/ as sysdba" has got it &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;definitely)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-6903408651986385102?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/6903408651986385102/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/import-oracle-dump-into-existing-schema.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6903408651986385102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/6903408651986385102'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/import-oracle-dump-into-existing-schema.html' title='Import Oracle dump into an existing schema'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6177236581378461454.post-196272244301084906</id><published>2009-02-20T03:34:00.000-08:00</published><updated>2009-02-24T07:38:45.909-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Xfce'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Mocp output in Xfce panel</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:georgia;"&gt;Get Generic Monitor for the Xfce4 panel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo aptitude install xfce4-genmon-plugin # or equivalent&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Create a script generating your output, e.g.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; echo "mocp -i | egrep 'SongTitle|Artist' | cut -d":" -f2" &gt; ~/bin/mocpinfo4panel&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:georgia;"&gt;Add Generic monitor to Xfce panel and input the script name into Command field, probably also change label to "mocp" or "now playing" or "what I could listen to if I didn't forgot my earphones" (well, perhaps a bit excessive)&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6177236581378461454-196272244301084906?l=altertableorego.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://altertableorego.blogspot.com/feeds/196272244301084906/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://altertableorego.blogspot.com/2009/02/mocp-output-in-xfce-panel.html#comment-form' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/196272244301084906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6177236581378461454/posts/default/196272244301084906'/><link rel='alternate' type='text/html' href='http://altertableorego.blogspot.com/2009/02/mocp-output-in-xfce-panel.html' title='Mocp output in Xfce panel'/><author><name>alterTableOrEgo</name><uri>http://www.blogger.com/profile/03685268078293775386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
