<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>pol-ang &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/pol-ang/</link>
	<description>Feed of posts on WordPress.com tagged "pol-ang"</description>
	<pubDate>Sat, 11 Oct 2008 13:03:13 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[słownik pol-ang (kolekcje, HashMap)]]></title>
<link>http://wmichal.wordpress.com/?p=59</link>
<pubDate>Mon, 14 Apr 2008 21:43:16 +0000</pubDate>
<dc:creator>wmichal</dc:creator>
<guid>http://wmichal.pl.wordpress.com/2008/04/14/slownik-pol-ang/</guid>
<description><![CDATA[import java.util.*;
import java.io.*;
public class AngPol {
public static void main(String args[]) {]]></description>
<content:encoded><![CDATA[<p>import java.util.*;<br />
import java.io.*;</p>
<p>public class AngPol {</p>
<p>public static void main(String args[]) {<br />
Scanner abc = new Scanner(System.in).useDelimiter("\n");<br />
Slownik dic = new Slownik();<br />
String input = "";</p>
<p>while (true) {<br />
if (abc.hasNext()) {<br />
input = abc.next();<br />
}<br />
if (input.matches("^([^!]+)")) {<br />
System.out.println(dic.get(input.split(" ")[0]));<br />
}<br />
else if (input.matches("^!remove\\s(.+)?")) {<br />
dic.remove(input.split(" ")[1]);<br />
}<br />
else if (input.matches("^!add\\s(.+)?\\s(.+)?")) {<br />
dic.add(input.split(" ")[1], input.split(" ")[2]);<br />
}<br />
else if (input.matches("^!exit")) {<br />
dic.exit();<br />
break;<br />
}<br />
}<br />
}<br />
}</p>
<p>class Slownik {</p>
<p>private Map&#60;String, String&#62; slowniczek = new HashMap&#60;String, String&#62;();</p>
<p>public void add(String pol, String eng) {<br />
slowniczek.put(pol, eng);<br />
}</p>
<p>public boolean remove(String slowko) {<br />
if (slowniczek.containsKey(slowko)) {<br />
slowniczek.remove(slowko);<br />
return true;<br />
}<br />
else if (slowniczek.containsValue(slowko)) {<br />
for ( String xyz : slowniczek.keySet() ) {<br />
if (slowniczek.get(xyz).equals(slowko)) {<br />
slowniczek.remove(xyz);<br />
return true;<br />
}<br />
}<br />
}<br />
return false;<br />
}</p>
<p>public String get(String slowko) {<br />
if (slowniczek.containsKey(slowko)) {<br />
return slowniczek.get(slowko);<br />
}<br />
else if (slowniczek.containsValue(slowko)) {<br />
for ( String xyz : slowniczek.keySet() ) {<br />
if (slowniczek.get(xyz).equals(slowko)) {<br />
return xyz+"\n";<br />
}<br />
}<br />
}<br />
return "Nie ma takiego słówka w bazie\n";<br />
}</p>
<p>//potrzebne do exit() i nie tylko ...:<br />
FileInputStream plik;<br />
BufferedReader input;<br />
BufferedWriter output;</p>
<p>public void exit() {<br />
try {<br />
input.close();<br />
output = new BufferedWriter(new FileWriter("ang-pol.dic"));<br />
for ( String xyz : slowniczek.keySet() ) {<br />
output.write(xyz + " " + slowniczek.get(xyz) + "\n");<br />
}<br />
output.close();<br />
}<br />
catch (IOException e) {<br />
System.out.println("Coś nie tak z zapisem lub odczytem!! Pokombinuj jeszcze raz...\n");<br />
System.exit(0);<br />
}<br />
}</p>
<p>public Slownik() {<br />
try {<br />
plik = new FileInputStream("ang-pol.dic");<br />
input = new BufferedReader(new InputStreamReader(new DataInputStream(plik)));<br />
String linia;<br />
while ((linia = input.readLine()) != null) {<br />
String slowo[] = linia.split(" ");<br />
if (slowo.length == 2) {<br />
slowniczek.put(slowo[0], slowo[1]);<br />
}<br />
}<br />
}<br />
catch (IOException e) {<br />
System.out.println("Coś nie tak z zapisem lub odczytem!! Pokombinuj jeszcze raz...\n");<br />
System.exit(0);<br />
}<br />
}</p>
<p>}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Scripts on Wordpress]]></title>
<link>http://sangwal.wordpress.com/?p=11</link>
<pubDate>Sat, 01 Mar 2008 00:16:28 +0000</pubDate>
<dc:creator>sangwal</dc:creator>
<guid>http://sangwal.pl.wordpress.com/2008/03/01/scripts-on-wordpress/</guid>
<description><![CDATA[Today I tried to put my javascript code into a post on WordPress. To my dismay, it simply did not w]]></description>
<content:encoded><![CDATA[<p>Today I tried to put my javascript code into a post on Wordpress. To my dismay, it simply did not work on it. Moreover, to my surprise it is found that Wordpress strips all the &#60;script&#62; tags and leaves almost nothing behind. Whatever was left was of no avail. Anyway, if you need to translate Polish words into English, you can search the 'Pol-Ang Słownik' (Polish to English dictionary, <a href="http://slownik.freehostia.com/">http://slownik.freehostia.com</a>) or alternatively you may place the search box on your web pages (and even allow visitors to your pages to search Polish words). To put the search box into your pages, simply copy and paste the following code into your page:</p>
<div style="border:solid;overflow:scroll;width:40em;font-family:courier;height:20em;border-width:2px;">&#60;!-- begin code: Pol-Ang dictionary(http://slownik.freehostia.com) search box --&#62;<br />
&#60;script type="text/javascript" src="http://slownik.freehostia.com/ajax-searchbox.js"&#62;<br />
&#60;/script&#62;<br />
&#60;script type="text/javascript"&#62;<br />
var color_entry = 'green';<br />
var color_def = 'black';<br />
var color_owner = 'gray';<br />
var color_ex = 'gray';<br />
var size_owner = '80%';<br />
var size_ex = '80%';<br />
&#60;/script&#62;<br />
&#60;title&#62;&#60;/title&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;div style=<br />
"width:200pt;border:solid;border-width:1;border-color:blue;"&#62;<br />
&#60;div id="ajax_error"&#62;&#60;/div&#62;<br />
&#60;div style=<br />
"background:lightblue;border-bottom:solid;border-width:1;text-align:center"&#62;<br />
&#60;h1 style='display:inline;font-size:90%;font-family:sans-serif;'&#62;<br />
Pol-Ang Slownik (Polish-English)<br />
&#60;/h1&#62;<br />
&#60;form name="jax_search_form" id="jax_search_form"&#62;<br />
&#60;input type="text" name="ajax_search_word" onkeypress=<br />
"return checkEnter(event);"&#62; &#60;input type="button" name=<br />
"search_button" value="Search" onclick=<br />
"ajaxFunction()"&#62;&#60;br&#62;<br />
&#60;h1 style=<br />
'display:inline; font-weight:normal;font-size:70%'&#62;<br />
&#60;a href="http://slownik.freehostia.com" mce_href="http://slownik.freehostia.com" &#62;<br />
&#60;/h1&#62;<br />
&#60;/form&#62;<br />
&#60;/div&#62;<br />
&#60;div id="ajax_contents"&#62;&#60;/div&#62;<br />
&#60;/div&#62;<br />
&#60;!-- end of code: Pol-Ang dictionary<br />
(http://slownik.freehostia.com) search box --&#62;</div>
<div></div>
<p>Free free to experiment with the code to change the layout of the text box. Cheers!</p>
<p>PS: I see quotes (" and ') have been altered by Wordpress, or atleast it displays them all altered, but internally keeps the original. If it the case, change them to normal quotes.</p>
<p>To see how the search box looks like, please see <a target="_blank" href="http://slownik.freehostia.com/test-search-box.php" title="Search box Pol-Ang Slownik">here</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Did you mean this, this or that?]]></title>
<link>http://sangwal.wordpress.com/?p=8</link>
<pubDate>Sun, 17 Feb 2008 00:08:33 +0000</pubDate>
<dc:creator>sangwal</dc:creator>
<guid>http://sangwal.pl.wordpress.com/2008/02/17/did-you-mean-this-this-or-that/</guid>
<description><![CDATA[The Pol-Ang (http://slownik.freehostia.com) Polish English Dictionary is getting better. There is no]]></description>
<content:encoded><![CDATA[<p>The Pol-Ang (<a href="http://slownik.freehostia.com/">http://slownik.freehostia.com</a>) Polish English Dictionary is getting better. There is now added support for <strong>'Did you mean?'</strong> feature. As per site, there is no need to worry about the correct spellings. Just type the word and it will display words closely matching the search word. Best wishes!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Pol-Ang, Polish-English (Polsko-Angielski) Dictionary]]></title>
<link>http://sangwal.wordpress.com/?p=6</link>
<pubDate>Sun, 27 Jan 2008 22:44:16 +0000</pubDate>
<dc:creator>sangwal</dc:creator>
<guid>http://sangwal.pl.wordpress.com/2008/01/27/pol-ang-polish-english-polsko-angielski-dictionary/</guid>
<description><![CDATA[Pol-Ang, Polish to English dictionary with around 25,000 words is online at http://slownik.freehosti]]></description>
<content:encoded><![CDATA[<p>Pol-Ang, Polish to English dictionary with around 25,000 words is online at <a href="http://slownik.freehostia.com/">http://slownik.freehostia.com</a>. It has search facility that can find patterns in the headwords and hence can help solve crossword puzzles. More information about pattern matching is available at the dictionary website <a href="http://slownik.freehostia.com/">http://slownik.freehostia.com</a>. Although the results are not comprehensive but it is still worth using. So far access to it is absolutely free. I enjoy using it and hope you'll also like it! Best wishes.</p>
]]></content:encoded>
</item>

</channel>
</rss>
