<?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>syntax &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/syntax/</link>
	<description>Feed of posts on WordPress.com tagged "syntax"</description>
	<pubDate>Sun, 29 Nov 2009 07:45:09 +0000</pubDate>

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

<item>
<title><![CDATA[How to post source code on Wordpress]]></title>
<link>http://ilea.wordpress.com/2009/11/29/how-to-post-source-code-on-wordpress/</link>
<pubDate>Sun, 29 Nov 2009 00:04:17 +0000</pubDate>
<dc:creator>Razzor</dc:creator>
<guid>http://ilea.wordpress.com/2009/11/29/how-to-post-source-code-on-wordpress/</guid>
<description><![CDATA[As I said in another post, I will post predominantly IT content.These days I started to learn the Ja]]></description>
<content:encoded><![CDATA[As I said in another post, I will post predominantly IT content.These days I started to learn the Ja]]></content:encoded>
</item>
<item>
<title><![CDATA[Semantische Pfade]]></title>
<link>http://mojamalarevolucja.wordpress.com/2009/11/28/semantische-pfade/</link>
<pubDate>Sat, 28 Nov 2009 23:05:40 +0000</pubDate>
<dc:creator>Lara</dc:creator>
<guid>http://mojamalarevolucja.wordpress.com/2009/11/28/semantische-pfade/</guid>
<description><![CDATA[Indem wir Zeichen setzen, aneinanderreihen, Sätze oder Programme schreiben, Sinn erzeugen prägen sic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><img class="aligncenter" title="04022009207" src="http://mojamalarevolucja.files.wordpress.com/2009/02/04022009207.jpg?w=500&#038;h=375" alt="04022009207" width="500" height="375" /></p>
<p style="text-align:center;">Indem wir Zeichen setzen, aneinanderreihen, Sätze oder Programme schreiben, Sinn erzeugen prägen sich Spurrillen, über die die nächsten Bedeutungen hinweggleiten oder in sie hinein rutschen.</p>
<p style="text-align:center;"><strong><a href="http://www.google.de/search?hl=de&#38;q=Frauen+England&#38;btnG=Suche&#38;meta=" target="_blank">1</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Deutschland&#38;btnG=Suche&#38;meta=" target="_blank">2</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Niederlanden&#38;btnG=Suche&#38;meta=" target="_blank">3</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Israel&#38;btnG=Suche&#38;meta=" target="_blank">4</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+USA&#38;btnG=Suche&#38;meta=" target="_blank">5</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Balkan&#38;btnG=Suche&#38;meta=" target="_blank">6</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Ukraine&#38;btnG=Suche&#38;meta=" target="_blank">7</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Polen&#38;btnG=Suche&#38;meta=" target="_blank">8</a> <a href="http://www.google.de/search?hl=de&#38;q=Frauen+Russland&#38;btnG=Suche&#38;meta=" target="_blank">9</a></strong></p>
<p style="text-align:center;"><img class="aligncenter" title="040220092091" src="http://mojamalarevolucja.files.wordpress.com/2009/02/040220092091.jpg?w=500&#038;h=666#38;h=666" alt="040220092091" width="500" height="666" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[In the Mail]]></title>
<link>http://evepheso.wordpress.com/2009/11/27/in-the-mail/</link>
<pubDate>Sat, 28 Nov 2009 00:02:11 +0000</pubDate>
<dc:creator>Mike Aubrey</dc:creator>
<guid>http://evepheso.wordpress.com/2009/11/27/in-the-mail/</guid>
<description><![CDATA[Many thanks to Brill for providing me with a copy of Stéphanie J Bakker&#8217;s The Noun Phrase in A]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Many thanks to <a href="http://www.brill.nl/product_id30699.htm" target="_blank">Brill</a> for providing me with a copy of Stéphanie J Bakker&#8217;s <em><a href="http://www.amazon.com/gp/product/9004177221?ie=UTF8&#38;tag=a029e-20&#38;linkCode=as2&#38;camp=1789&#38;creative=390957&#38;creativeASIN=9004177221">The Noun Phrase in Ancient Greek: A Functional Analysis of the Order and Articulation of NP Constituents in Herodotus </a></em>(ASCP 15; Leiden: Brill, 2009).</p>
<p>I actually received it a couple weeks ago, but I&#8217;ve been too busy to post lately. I&#8217;m about half way through the book thus far and have thoroughly enjoyed it. The first half of the book is a discussion of word order within the noun phrase and the second half deals with the function of the Greek article within the noun phrase. Part II is particularly excellent and unmatched in the literature on Ancient Greek. You can expect a full two or three part review probably toward the end of December or early January.</p>
<p>Wow, this is a great book.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Accordance &amp; Syntax]]></title>
<link>http://evepheso.wordpress.com/2009/11/27/accordance-syntax/</link>
<pubDate>Fri, 27 Nov 2009 23:28:33 +0000</pubDate>
<dc:creator>Mike Aubrey</dc:creator>
<guid>http://evepheso.wordpress.com/2009/11/27/accordance-syntax/</guid>
<description><![CDATA[As someone who has a highly vested interest in syntax databases, I&#8217;m excited to hear David Lan]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>As someone who has a highly vested interest in syntax databases, I&#8217;m excited to hear <a href="http://www.accordancebible.com/Sneak-Previewing-Syntactical-Searching" target="_self">David Lang say</a> that Syntax databases will be coming to the next version of Accordance.</p>
<p>I will be giving a presentation at <a href="http://www.bibletechconference.com/speakers.htm" target="_blank">BibleTech: 2010</a> on the very subject of Syntax databases currently titled &#8220;Greek Syntax Databases: Retrospect &#38; Prospects&#8221; in which I&#8217;ll examine, compare and critique the two currently available syntax databases: Opentext.org &#38; Cascadia Syntax Graphs and then also (hopefully) present some of my own work on representing Greek syntax. Currently the abstract isn&#8217;t yet up, but this is a good summary. I&#8217;ve been hoping to do something like this for some time, so I&#8217;m looking forward to the conference. Much of my presentation has been brewing for at least 14 months, though very little has showed up here on my blog.</p>
<p>I definitely look forward to seeing what Accordance has to offer when they release their next version and may very well consider looking into getting it if I like what I see.</p>
<p>&#8230;and I&#8217;m always willing to do a review copy&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Erkenntnisse des Tages]]></title>
<link>http://ayekat.wordpress.com/2009/11/28/erkenntnisse-des-tages-2/</link>
<pubDate>Fri, 27 Nov 2009 23:14:53 +0000</pubDate>
<dc:creator>ayekat</dc:creator>
<guid>http://ayekat.wordpress.com/2009/11/28/erkenntnisse-des-tages-2/</guid>
<description><![CDATA[Erkenntnis 1 Mein AGAIN-Projekt entwickelt sich voran. Oder zumindest tut es das in der Theorie: Ein]]></description>
<content:encoded><![CDATA[Erkenntnis 1 Mein AGAIN-Projekt entwickelt sich voran. Oder zumindest tut es das in der Theorie: Ein]]></content:encoded>
</item>
<item>
<title><![CDATA[C# - RichTextBox Syntax Highlighting]]></title>
<link>http://millz12.wordpress.com/2009/11/26/c-richtextbox-syntax-highlighting/</link>
<pubDate>Thu, 26 Nov 2009 13:09:12 +0000</pubDate>
<dc:creator>millz12</dc:creator>
<guid>http://millz12.wordpress.com/2009/11/26/c-richtextbox-syntax-highlighting/</guid>
<description><![CDATA[There&#8217;s a few different methods to make your application apply syntax highlighting, this metho]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There&#8217;s a few different methods to make your application apply syntax highlighting, this method below works for me, and although there&#8217;s many better, and more efficient ways it can be done, this is simple. Really simple.</p>
<p>First off, you need a reference for RegularExpressions -</p>
<p><code>using System.Text.RegularExpressions;</code></p>
<p>&#8230;and you&#8217;ll need to create a Rich Text Box, and either a button or menu item &#8211; you can have this working on a timer or a &#8216;TextChanged&#8217; function, but it requires a bit more work, and can get very messy with large sections of text.</p>
<p>We need to declare regular expression strings to a variable that we&#8217;ll be searching for, it&#8217;s easiest to place it in the &#8216;global declaration&#8217; area.. So right after:</p>
<p><code> public partial class Form1 : Form<br />
{</code></p>
<p>Create your variable declaration:</p>
<p><code><br />
public Regex keyWordsBlue = new Regex("if &#124;then &#124;else &#124;fi &#124;true &#124;while &#124;do &#124;done &#124;set &#124;export &#124;bool &#124;break &#124;case &#124;class &#124;const &#124;for &#124;foreach &#124;goto &#124;in &#124;void &#124;if\n&#124;then\n&#124;else\n&#124;fi\n&#124;true\n&#124;while\n&#124;do\n&#124;done\n&#124;set\n&#124;export\n&#124;bool\n&#124;break\n&#124;case\n&#124;class\n&#124;const\n&#124;for\n&#124;foreach\n&#124;goto\n&#124;in\n&#124;void\n");<br />
</code></p>
<p>This is basically saying anything between the quotes, delimited by a pipe(&#124;) symbol will get highlighted.</p>
<p>I&#8217;ve picked some common protected function words in Unix for my example. Since I don&#8217;t want *every* occurance of this to be highlighted, i&#8217;ve made it so the word requires a space or a return (new line \n) character after it, which 99% of the time it will have.</p>
<p>The next bit will apply the highlighting. Personally I prefer to have this in a button, or menu item &#8211; if you want this to run on &#8216;TextChanged&#8217; or via a timer, you&#8217;ll need to edit it ever so slightly.</p>
<p>Remember to create this in a seperate function, so you can call it from different places as/when required.</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode">
        <span class="kwrd">private</span> <span class="kwrd">void</span> ApplySyntaxHighlighting()
        {

            <span class="rem">// Select all and set to black so that it's 'clean'</span>
            rtbText.SelectAll();
            rtbText.SelectionColor = Color.Black;

            <span class="rem">// Then unselect and scroll to the end of the file</span>
            rtbText.ScrollToCaret();
            rtbText.Select(rtbText.Text.Length, 1);

            <span class="rem">// Start applying the highlighting... Set a value to selPos</span>
            <span class="kwrd">int</span> selPos = rtbText.SelectionStart;

            <span class="kwrd">foreach</span> (Match keyWordMatch <span class="kwrd">in</span> keyWordsBlue.Matches(rtbText.Text))
            {
                // Select the word..
                rtbText.Select(keyWordMatch.Index, keyWordMatch.Length);
                // Change it to blue
                rtbText.SelectionColor = Color.Blue;
                // Set it to bold for this example
                rtbText.SelectionFont = <span class="kwrd">new</span> Font(rtbText.SelectionFont, FontStyle.Bold);
                // Move cursor back to where it was
                rtbText.SelectionStart = selPos;
                // Change the default font color back to black.
                rtbText.SelectionColor = Color.Black;
            }
        }</pre>
<p>Now, in your button or menu item, you need to call the function with &#8220;ApplySyntaxHighlighting();&#8221; &#8211; i.e.</p>
<p><code><br />
private void applySyntaxHighlightingToolStripMenuItem_Click(object sender, EventArgs e)<br />
{<br />
ApplySyntaxHighlighting();<br />
}<br />
</code></p>
<p>Once you&#8217;ve added some different regular expression strings, it should start looking a bit like this:</p>
<p><img src="http://img28.imageshack.us/img28/9161/unixhighlightexample.png" alt="Example" /></p>
<p>P.S &#8211; The expression I used for the comment line was:</p>
<p><code><br />
public Regex keyWordsGreenComment = new Regex(@"\#.*?\n");<br />
</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[new syntax ! for vb 2010]]></title>
<link>http://myxjulius.wordpress.com/2009/11/24/new-syntax-for-vb-2010/</link>
<pubDate>Tue, 24 Nov 2009 15:33:53 +0000</pubDate>
<dc:creator>Xjulius</dc:creator>
<guid>http://myxjulius.wordpress.com/2009/11/24/new-syntax-for-vb-2010/</guid>
<description><![CDATA[http://msdn.microsoft.com/en-us/magazine/ee358704.aspx]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://msdn.microsoft.com/en-us/magazine/ee358704.aspx">http://msdn.microsoft.com/en-us/magazine/ee358704.aspx</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[wordpress] Insert source codes in your blog with automatic syntax highlighting]]></title>
<link>http://nixtricks.wordpress.com/2009/11/23/wordpress-insert-source-codes-in-your-blog-with-automatic-syntax-highlighting/</link>
<pubDate>Tue, 24 Nov 2009 00:36:38 +0000</pubDate>
<dc:creator>kousik</dc:creator>
<guid>http://nixtricks.wordpress.com/2009/11/23/wordpress-insert-source-codes-in-your-blog-with-automatic-syntax-highlighting/</guid>
<description><![CDATA[In order to do language specific syntax highlighting of your source code, replace &#8220;your code g]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In order to do language specific syntax highlighting of your source code, replace &#8220;your code goes here&#8221; by your actual code:</p>
<div style="border:1px dotted black;padding:1em;">[<code>sourcecode language="css"]<br />
Your code here<br />
[/sourcecode]</code></div>
<p>See an example <a href="http://nixtricks.wordpress.com/2009/10/09/bash-ssh-to-remote-server-accessible-only-through-a-central-server/">here</a>.</p>
<p>For available language options refer to the link below.</p>
<p><strong>Reference:</strong> <a href="http://en.support.wordpress.com/code/posting-source-code/" target="_blank">WordPress Support</a>.</p>
<p>Reference</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[History of Java programming language]]></title>
<link>http://sourcecodejava.wordpress.com/2009/11/23/history-of-java-programming-language/</link>
<pubDate>Mon, 23 Nov 2009 21:16:30 +0000</pubDate>
<dc:creator>thaufan</dc:creator>
<guid>http://sourcecodejava.wordpress.com/2009/11/23/history-of-java-programming-language/</guid>
<description><![CDATA[Java is an object-oriented programming language developed by James Gosling and colleagues at Sun Mic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:left;"><strong>Java</strong> is an object-oriented programming language developed by James Gosling and colleagues at Sun Microsystems in the early 1990s. Unlike conventional languages which are generally designed either to be compiled to native (machine) code, or to be interpreted from source code at runtime, Java is intended to be compiled to a bytecode, which is then run (generally using JIT compilation) by a Java Virtual Machine.</p>
<p style="text-align:left;">The language itself borrows much syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java is only distantly related to JavaScript, though they have similar names and share a C-like syntax.</p>
<p style="text-align:left;">Java was started as a project called &#8220;Oak&#8221; by James Gosling in June 1991. Gosling&#8217;s goals were to implement a virtual machine and a language that had a familiar C-like notation but with greater uniformity and simplicity than C/C++. The first public implementation was Java 1.0 in 1995. It made the promise of &#8220;Write Once, Run Anywhere&#8221;, with free runtimes on popular platforms. It was fairly secure and its security was configurable, allowing for network and file access to be limited. The major web browsers soon incorporated it into their standard configurations in a secure &#8220;applet&#8221; configuration. popular quickly. New versions for large and small platforms (J2EE and J2ME) soon were designed with the advent of &#8220;Java 2&#8243;. Sun has not announced any plans for a &#8220;Java 3&#8243;.</p>
<p style="text-align:left;">In 1997, Sun approached the ISO/IEC JTC1 standards body and later the Ecma International to formalize Java, but it soon withdrew from the process. Java remains a proprietary de facto standard that is controlled through the Java Community Process. Sun makes most of its Java implementations available without charge, with revenue being generated by specialized products such as the Java Enterprise System. Sun distinguishes between its Software Development Kit (SDK) and Runtime Environment (JRE) which is a subset of the SDK, the primary distinction being that in the JRE the compiler is not present.</p>
<p style="text-align:left;"><strong>Philosophy</strong> <ins><ins></ins></ins></p>
<p style="text-align:left;">There were five primary goals in the creation of the Java language:</p>
<p>1. It should use the object-oriented programming methodology.<br />
2. It should allow the same program to be executed on multiple operating systems.<br />
3. It should contain built-in support for using computer networks.<br />
4. It should be designed to execute code from remote sources securely.<br />
5. It should be easy to use by selecting what was considered the good parts of other object-oriented languages.</p>
<p>To achieve the goals of networking support and remote code execution, Java programmers sometimes find it necessary to use extensions such as CORBA, Internet Communications Engine, or OSGi.<!--more--></p>
<p><strong>Object orientation</strong></p>
<p>The first characteristic, object orientation (&#8220;OO&#8221;), refers to a method of programming and language design. Although there are many interpretations of OO, one primary distinguishing idea is to design software so that the various types of data it manipulates are combined together with their relevant operations. Thus, data and code are combined into entities called objects. An object can be thought of as a self-contained bundle of behavior (code) and state (data). The principle is to separate the things that change from the things that stay the same; often, a change to some data structure requires a corresponding change to the code that operates on that data, or vice versa. This separation into coherent objects provides a more stable foundation for a software system&#8217;s design. The intent is to make large software projects easier to manage, thus improving quality and reducing the number of failed projects.</p>
<p>Another primary goal of OO programming is to develop more generic objects so that software can become more reusable between projects. A generic &#8220;customer&#8221; object, for example, should have roughly the same basic set of behaviors between different software projects, especially when these projects overlap on some fundamental level as they often do in large organizations. In this sense, software objects can hopefully be seen more as pluggable components, helping the software industry build projects largely from existing and well-tested pieces, thus leading to a massive reduction in development times. Software reusability has met with mixed practical results, with two main difficulties: the design of truly generic objects is poorly understood, and a methodology for broad communication of reuse opportunities is lacking. Some open source communities want to help ease the reuse problem, by providing authors with ways to disseminate information about generally reusable objects and object libraries.</p>
<p><strong>Platform independence</strong></p>
<p>The second characteristic, platform independence, means that programs written in the Java language must run similarly on diverse hardware. One should be able to write a program once and run it anywhere.</p>
<p>This is achieved by most Java compilers by compiling the Java language code &#8220;halfway&#8221; to bytecode (specifically Java bytecode)—simplified machine instructions specific to the Java platform. The code is then run on a virtual machine (VM), a program written in native code on the host hardware that interprets and executes generic Java bytecode. Further, standardized libraries are provided to allow access to features of the host machines (such as graphics, threading and networking) in unified ways. Note that, although there&#8217;s an explicit compiling stage, at some point, the Java bytecode is interpreted or converted to native machine instructions by the JIT compiler.</p>
<p>There are also implementations of Java compilers that compile to native object code, such as GCJ, removing the intermediate bytecode stage, but the output of these compilers can only be run on a single architecture.</p>
<p>Sun&#8217;s license for Java insists that all implementations be &#8220;compatible&#8221;. This resulted in a legal dispute with Microsoft after Sun claimed that the Microsoft implementation did not support the RMI and JNI interfaces and had added platform-specific features of their own. In response, Microsoft no longer ships Java with Windows, and in recent versions of Windows, Internet Explorer cannot support Java applets without a third-party plug-in. However, Sun and others have  made available Java run-time systems at no cost for those and other versions of Windows.</p>
<p>The first implementations of the language used an interpreted virtual machine to achieve portability. These implementations produced programs that ran more slowly than programs compiled to native executables, for instance written in C or C++, so the language suffered a reputation for poor performance. More recent JVM implementations produce programs that run significantly faster than before, using multiple techniques.</p>
<p>The first technique is to simply compile directly into native code like a more traditional compiler, skipping bytecodes entirely. This achieves good performance, but at the expense of portability. Another technique, known as just-in-time compilation (JIT), translates the Java bytecodes into native code at the time that the program is run which results in a program that executes faster than interpreted code but also incurs compilation overhead during execution. More sophisticated VMs use dynamic recompilation, in which the VM can analyze the behavior of the running program and selectively recompile and optimize critical parts of the program. Dynamic recompilation can achieve optimizations superior to static compilation because the dynamic compiler can base optimizations on knowledge about the runtime environment and the set of loaded classes. JIT compilation and dynamic recompilation allow Java programs to take advantage of the speed of native code without losing portability.</p>
<p>Portability is a technically difficult goal to achieve, and Java&#8217;s success at that goal has been mixed. Although it is indeed possible to write programs for the Java platform that behave consistently across many host platforms, the large number of available platforms with small errors or inconsistencies led some to parody Sun&#8217;s &#8220;Write once, run anywhere&#8221; slogan as &#8220;Write once, debug everywhere&#8221;.</p>
<p>Platform-independent Java is however very successful with server-side applications, such as Web services,  servlets, and Enterprise JavaBeans, as well as with Embedded systems based on OSGi, using Embedded Java environments.</p>
<p><strong>Automatic garbage collection</strong></p>
<p>One idea behind Java&#8217;s automatic memory management model is that programmers should be spared the burden of having to perform manual memory management. In some languages the programmer allocates memory to create any object stored on the heap and is responsible for later manually deallocating that memory to delete any such objects. If a programmer forgets to deallocate memory or writes code that fails to do so in a timely fashion, a memory leak can occur: the program will consume a potentially arbitrarily large amount of memory. In addition, if a region of memory is deallocated twice, the program can become unstable and may crash. Finally, in non garbage collected environments, there is a certain degree of overhead and complexity of user-code to track and finalize allocations.</p>
<p>In Java, this potential problem is avoided by automatic garbage collection. The programmer determines when objects are created, and the Java runtime is responsible for managing the object&#8217;s lifecycle. The program or other objects can reference an object by holding a reference to it (which, from a low-level point of view, is its address on the heap). When no references to an object remain, the Java garbage collector automatically deletes the unreachable object, freeing memory and preventing a memory leak. Memory leaks may still occur if a programmer&#8217;s code holds a reference to an object that is no longer needed—in other words, they can still occur but at higher conceptual levels.</p>
<p>The use of garbage collection in a language can also affect programming paradigms. If, for example, the developer assumes that the cost of memory allocation/recollection is low, they may choose to more freely construct objects instead of pre-initializing, holding and reusing them. With the small cost of potential performance penalties (inner-loop construction of large/complex objects), this facilitates thread-isolation (no need to synchronize as different threads work on different object instances) and data-hiding. The use of transient immutable value-objects minimizes side-effect programming.</p>
<p>Comparing Java and C++, it is possible in C++ to implement similar functionality (for example, a memory management model for specific classes can be designed in C++ to improve speed and lower memory fragmentation considerably), with the possible cost of extra development time and some application complexity. In Java, garbage collection is built-in and virtually invisible to the developer. That is, developers may have no notion of when garbage collection will take place as it may not necessarily correlate with any actions being explicitly performed by the code they write. Depending on intended application, this can be beneficial or disadvantageous: the programmer is freed from performing low-level tasks, but at the same time loses the option of writing lower level code.</p>
<p><strong>Syntax</strong></p>
<p>The syntax of Java is largely derived from C++. However, unlike C++, which combines the syntax for structured, generic, and  object-oriented programming, Java was built from the ground up to be virtually fully object-oriented: everything in Java is an object with the exceptions of atomic datatypes (ordinal and real numbers, boolean values, and characters) and everything in Java is written inside a class.</p>
<p><strong>Applet</strong></p>
<p>Java applets are programs that are embedded in other applications, typically in a Web page displayed in a Web browser.</p>
<p>// Hello.java<br />
import java.applet.Applet;<br />
import java.awt.Graphics;</p>
<p>public class Hello extends Applet {<br />
public void paint(Graphics gc) {<br />
gc.drawString(&#8220;Hello, world!&#8221;, 65, 95);<br />
}<br />
}</p>
<p>This applet will simply draw the string &#8220;Hello, world!&#8221; in the rectangle within which the applet will run. This is a slightly better example of using Java&#8217;s OO features in that the class explicitly extends the basic &#8220;Applet&#8221; class, that it overrides the &#8220;paint&#8221; method and that it uses import statements.</p>
<p>&#60;!&#8211; Hello.html &#8211;&#62;<br />
&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;Hello World Applet&#60;/title&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;applet code=&#8221;Hello&#8221; width=&#8221;200&#8243; height=&#8221;200&#8243;&#62;<br />
&#60;/applet&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</p>
<p>An applet is placed in an HTML document using the &#60;applet&#62; HTML element. The applet tag has three attributes set: code=&#8221;Hello&#8221; specifies the name of the Applet class and width=&#8221;200&#8243; height=&#8221;200&#8243; sets the pixel width and height of the applet. (Applets may also be embedded in HTML using either the object or embed element, although support for these elements by Web browsers is inconsistent.</p>
<p><strong>Servlet</strong></p>
<p>Java servlets are server-side Java EE components that generate responses to requests from clients.</p>
<p>// Hello.java<br />
import java.io.*;<br />
import javax.servlet.*;</p>
<p>public class Hello extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response)<br />
throws ServletException, IOException<br />
{<br />
response.setContentType(&#8220;text/html&#8221;);<br />
PrintWriter pw = response.getWriter();<br />
pw.println(&#8220;Hello, world!&#8221;);<br />
pw.close();<br />
}<br />
}</p>
<p>The import statements direct the Java compiler to include all of the public classes and interfaces from the java.io and javax.servlet packages in the compilation. The Hello class extends the GenericServlet class; the GenericServlet class provides the interface for the server to forward requests to the servlet and control the servlet&#8217;s lifecycle.</p>
<p>The Hello class overrides the service(ServletRequest, ServletResponse) method defined by the Servlet interface to provide the code for the service request handler. The service() method is passed a ServletRequest object that contains the request from the client and a ServletResponse object used to create the response returned to the client. The service() method declares that it throws the exceptions ServletException and IOException if a problem prevents it from responding to the request.</p>
<p>The setContentType(String) method in the response object is called to set the MIME content type of the returned data to &#8220;text/html&#8221;. The getWriter() method in the response returns a PrintWriter object that is used to write the data that is sent to the client. The println(String) method is called to write the &#8220;Hello, world!&#8221; string to the response and then the close() method is called to close the print writer, which causes the data that has been written to the stream to be returned to the client.</p>
<p><strong>Swing application</strong></p>
<p>Swing is the advanced graphical user interface library for the Java SE platform.</p>
<p>// Hello.java<br />
import javax.swing.*;</p>
<p>public class Hello extends JFrame {<br />
Hello() {<br />
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);<br />
add(new JLabel(&#8220;Hello, world!&#8221;));<br />
pack();<br />
}</p>
<p>public static void main(String[] args) {<br />
new Hello().setVisible(true);<br />
}<br />
}</p>
<p>The import statement directs the Java compiler to include all of the public classes and interfaces from the javax.swing package in the compilation. The Hello class extends the JFrame class; the JFrame class implements a window with a title bar with a close control.</p>
<p>The Hello() constructor initializes the frame by first calling the setDefaultCloseOperation(int) method inherited from JFrame to set the default operation when the close control on the title bar is selected to WindowConstants.DISPOSE_ON_CLOSE—this causes the JFrame to be disposed of when the frame is closed (as opposed to merely hidden), which allows the JVM to exit and the program to terminate. Next a new JLabel is created for the string &#8220;Hello, world!&#8221; and the add(Component) method inherited from the Container superclass is called to add the label to the frame. The pack() method inherited from the Window superclass is called to size the window and layout its contents.</p>
<p>The main() method is called by the JVM when the program starts. It instantiates a new Hello frame and causes it to be displayed by calling the setVisible(boolean) method inherited from the Component superclass with the boolean parameter true. Note that once the frame is displayed, exiting the main method does not cause the program to terminate because the AWT event dispatching thread remains active until all of the Swing top-level windows have been disposed.</p>
<p><strong>Look and feel</strong></p>
<p>The default look and feel of GUI applications written in Java using the  Swing toolkit is very different from native applications. It is possible to specify a different look and feel through the pluggable look and feel system of Swing. Clones of Windows, GTK and Motif are supplied by Sun. Apple also provides an Aqua look and feel for Mac OS X. Though prior implementations of these look and feels have been considered lacking, Swing in Java SE 6 addresses this problem by using more native widget drawing routines of the underlying platforms. Alternatively, third party toolkits such as wx4j or SWT may be used for increased integration with the native windowing system.</p>
<p><strong>Lack of OO purity and facilities</strong></p>
<p>Java&#8217;s primitive types are not objects. Primitive types hold their values in the stack rather than being references to values. This was a conscious decision by Java&#8217;s designers for performance reasons. Because of this, Java is not considered to be a pure object-oriented programming language. However, as of Java 5.0, autoboxing enables programmers to write as if primitive types are their wrapper classes, and freely interchange between them for improved flexibility. Java designers decided not to implement certain features present in other OO languages, including:</p>
<p>* multiple inheritance<br />
* operator overloading<br />
* class properties<br />
* tuples</p>
<p><strong>Java Runtime Environment</strong></p>
<p>The Java Runtime Environment or JRE is the software required to run any application deployed on the Java Platform. End-users commonly use a JRE in software packages and Web browser plugins. Sun also distributes a superset of the JRE called the Java 2 SDK (more commonly known as the JDK), which includes development tools such as the Java compiler, Javadoc, and debugger.</p>
<p style="text-align:left;"><span style="font-size:xx-small;">Above article originally from wikipedia.org. Above article is available under GNU Free Documentation License.</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Truth in Advertising?]]></title>
<link>http://writingqueen.wordpress.com/2009/11/22/truth-in-advertising/</link>
<pubDate>Sun, 22 Nov 2009 18:51:44 +0000</pubDate>
<dc:creator>almarose</dc:creator>
<guid>http://writingqueen.wordpress.com/2009/11/22/truth-in-advertising/</guid>
<description><![CDATA[Find sample blogs on a gazillion topics at Alpha Inventions I&#39;ll have what she&#39;s having The ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:right;"><em><span style="color:#990000;">Find sample blogs on a gazillion topics at</span></em><span style="color:#990000;"> </span><a href="http://alphainventions.com/" target="_blank"><strong>Alpha Inventions</strong></a></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<div id="attachment_1212" class="wp-caption aligncenter" style="width: 462px"><img class="size-full wp-image-1212" title="VintageKnittingAdWithBorder" src="http://writingqueen.wordpress.com/files/2009/11/vintageknittingadwithborder.jpg" alt="Vintage Knitting Ad" width="452" height="515" /><p class="wp-caption-text">I&#39;ll have what she&#39;s having</p></div>
<h2><span style="font-weight:normal;"><span style="color:#990000;">The Risk-Free Trial? Guilty</span></span></h2>
<div id="attachment_1216" class="wp-caption alignright" style="width: 260px"><a href="http://s287.photobucket.com/albums/ll135/Xx_rebeldiamonds_xX/"><img class="size-full wp-image-1216 " title="VintageGarden250px" src="http://writingqueen.wordpress.com/files/2009/11/vintagegarden250px.jpg" alt="Vintage Garden" width="250" height="289" /></a><p class="wp-caption-text">Vintage Garden, by Xx_rebeldiamonds_xX</p></div>
<p>Last summer I bit on a &#8220;risk-free trial&#8221; for an<span style="color:#990000;"> </span><a href="http://en.wikipedia.org/wiki/Acai#As_a_dietary_supplement" target="_blank"><span style="color:#993300;"><strong><span style="color:#990000;">açaí-berry</span></strong></span></a> formula and a <a href="http://en.wikipedia.org/wiki/Colon_cleansing" target="_self"><span style="color:#993300;"><strong><span style="color:#990000;">colon-cleanse</span></strong><strong><span style="color:#990000;"> detox</span></strong></span></a><span style="color:#990000;"> </span>product, both in capsule form. I was aware of the risks of a &#8220;risk-free trial.&#8221; The strategy is similar to that used by publishers such as <a href="https://www.bottomlinesecrets.com/store/pubs/sub_blp.html?sk=9ATZ&#38;sid=S020907G1A" target="_blank"><span style="color:#990000;"><strong>Bottom Line Books</strong></span></a> and <a href="http://www.rodale.com/" target="_blank"><span style="color:#990000;"><strong>Rodale Books</strong></span></a>, which let you &#8220;examine a book free for thirty days,&#8221; during which you could doubtless read the book and send it back, keeping the bonus gift, usually a small but useful guide to Growing Healing Herbs in a Sunny Window, or perhaps Homemade Garden-Pest Repellents.</p>
<div class="mceTemp">(At least I suppose that <em>reading</em> a book doesn&#8217;t violate the rules for <em>examining</em> it. Or are you just supposed to check the binding, count the pages to make sure they&#8217;re all there, and verify that the book is printed on <a href="http://www.greenlinepaper.com/" target="_blank">recycled paper</a> and that no animals were harmed in the research, writing, printing, or distribution?)</div>
<div id="attachment_1222" class="wp-caption alignright" style="width: 260px"><a href="http://writingqueen.wordpress.com/files/2009/11/girlwithstockings.jpg"><img class="size-full wp-image-1222 " title="GirlWithStockings" src="http://writingqueen.wordpress.com/files/2009/11/girlwithstockings.jpg" alt="" width="250" height="400" /></a><p class="wp-caption-text">I lost 12 pounds</p></div>
<p>In any event, I was quick to read the fine print on my &#8220;risk-free trial&#8221; of açaí-berry formula and colon-cleanse detox product. I needed to return the bottles containing the &#8220;unused product&#8221; to an address in Florida <em>within ten days of my receiving them</em>, which the company estimated at three days after shipping. Otherwise, my credit card would be charged $89.95 per month until cancellation.</p>
<p>Usually, it&#8217;s a miracle if my mail gets <em>opened </em>within ten days of receipt, but the phrase <em>risk-free trial </em>sets off warning bells. So&#8230; an unprecedented TWO days after receiving the product, I extracted my ten-day supply from each bottle and sent the remainder via USPS Priority Mail to the Florida address. <em>Even so, my credit card was charged $89.95.</em></p>
<p>Astonishingly, the charge was removed without my having to make so much as a phone call. I&#8217;ve heard from other victims, however, that such charges can be very sticky.</p>
<p>You are actually at risk the minute you divulge your credit-card information, which is required for the &#8220;minimal shipping charge&#8221; of $1.95 or whatever.  If you must take the risk-free-trial risk, consider using a temporary (prepaid) credit card and keep the balance very low or cancel it altogether. Or not. Consult your legal professional.</p>
<p>By the way (and DO consult your healthcare professional before trying this regimen), I lost 12 pounds in two months on the colon-cleanse detox capsules.</p>
<p style="padding-left:30px;"><em>Next: Truth in Advertising, Your Just Deserts — &#8220;Get the Smooth, Flawless, Young-Looking Skin You Deserve&#8221;</em></p>
<h2><span style="color:#990000;">Below: I thought there was missing text, but it&#8217;s just Silly Syntax</span></h2>
<p>From an <a href="http://www.azdhs.gov/" target="_blank">Arizona Department of Health Services</a> Report&#8230;</p>
<p style="padding-left:30px;"><em>Neurological Effects [of exposure to hydrogen sulfide in sewer gas]:<br />
Ataxia, choreoathetosis, dystonia, inability to stand in one 20-month-old child</em></p>
<p style="padding-left:30px;"><em><br />
</em></p>
<div id="attachment_1221" class="wp-caption aligncenter" style="width: 486px"><a href="http://www.zgravweb.net/2aholiday_store_home.html"><img class="size-full wp-image-1221" title="AnnagrammaticaSaleAd_2_Nov2009" src="http://writingqueen.wordpress.com/files/2009/11/annagrammaticasalead_2_nov2009.jpg" alt="" width="476" height="225" /></a><p class="wp-caption-text">Holiday Store ** Random Cards of Kindness</p></div>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[Tip] GoLang, syntax highlighting para VIM]]></title>
<link>http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/</link>
<pubDate>Thu, 19 Nov 2009 12:43:25 +0000</pubDate>
<dc:creator>Chema</dc:creator>
<guid>http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/</guid>
<description><![CDATA[GoLang logo Translate to:English Un truco rápido. Si estais acostumbrados a usar VIM, es casi seguro]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_128" class="wp-caption alignnone" style="width: 230px"><a href="http://robleshermoso.wordpress.com/files/2009/11/go-logo-black.png"><img class="size-full wp-image-128" title="GoLang logo" src="http://robleshermoso.wordpress.com/files/2009/11/go-logo-black.png" alt="GoLang logo" width="220" height="77" /></a><p class="wp-caption-text">GoLang logo</p></div>
<p><strong>Translate to</strong>:<a href="http://www.google.com/translate_c?hl=en&#38;langpair=es%7Cen&#38;u= http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/">English</a></p>
<p>Un truco rápido. Si estais acostumbrados a usar VIM, es casi seguro que tengais activo el resalto de sintaxis según el tipo de fichero.</p>
<p>Como <a href="http://golang.org" target="_blank">GoLang</a> está todavía en fase experimental, tu copia de VIM no reconocerá el formato *.go, y por tanto no te resaltará su sintaxis.</p>
<p>Los chicos de <strong>GoLang</strong> piensan en todo y han creado un fichero de sintaxis para VIM, Kate, Xcode y Emacs.</p>
<p>Para activarlo en VIM, hay que hacer lo siguiente:</p>
<ol>
<li>Crear/modificar el archivo ~/.vimrc y añadir las siguientes líneas:
<div style="background-color:lightyellow;width:500px;border:solid #ffff80 1px;margin:5px;padding:4px;"><code>au BufRead,BufNewFile *.go set filetype=go<br />
au! Syntax go source &#60;ruta-raiz-de-golang&#62;/misc/vim/go.vim</code></div>
</li>
<li>Modificamos &#8220;&#60;ruta-raiz-de-golang&#62;&#8221; con la ruta de GOROOT.</li>
<li>Guardamos y listo.</li>
</ol>
<p>Ya os costará menos echarle un vistazo a los ficheros .go</p>
<p>Que aproveche!</p>
<p><strong>Actualización</strong>: para Kate es muy fácil, basta con copiar el fichero &#8216;$(GOROOT)/misc/kate/go.xml&#8217; a /usr/share/apps/katepart/syntax<br />
<strong>Translate to</strong>:<a href="http://www.google.com/translate_c?hl=en&#38;langpair=es%7Cen&#38;u= http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/">English</a><br />
<img class="alignleft size-full wp-image-74" title="Menefante" src="http://robleshermoso.wordpress.com/files/2009/11/menefante.gif" alt="Menefante" width="16" height="16" /><a title="GoLang, syntax highlighting para VIM" href="http://meneame.net/submit.php?url=http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/">Menéame</a> <img title="Twitter" src="http://robleshermoso.wordpress.com/files/2009/11/icn_twitter.png" alt="Twitter" width="16" height="16" /><a title="http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/" href="http://twitthat.com/go?title=GoLang, syntax highlighting para VIM&#38;url=http://robleshermoso.wordpress.com/2009/11/19/tip-golang-syntax-highlighting/">Twitter</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Can't the subject and verb just get along?]]></title>
<link>http://otterosenkrantz.wordpress.com/2009/11/16/cant-the-subject-and-verb-just-get-along/</link>
<pubDate>Mon, 16 Nov 2009 20:26:11 +0000</pubDate>
<dc:creator>Otte Rosenkrantz</dc:creator>
<guid>http://otterosenkrantz.wordpress.com/2009/11/16/cant-the-subject-and-verb-just-get-along/</guid>
<description><![CDATA[Subject-verb agreement           This syntax issue can really bedevil writers, especially students w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Subject-verb agreement</p>
<p>          This syntax issue can really bedevil writers, especially students who are still struggling a little with the myriad of rules and regs. Perhaps part of the problem with this guideline is the word “agreement.” We all know the meaning of &#8220;agree&#8221; as in “You and I will never agree,” or “We will agree to disagree,” but when we talk about subject-verb agreement, we&#8217;re actually talking about something entirely different. In this case “agree” means matching subjects and verbs according to number. That is, when you have a <em>singular</em> subject, you have to match it with a <em>singular</em> verb: <em>The dog runs</em>. When you have a <em>plural</em> subject, you must have a <em>plural</em> verb form: <em>The dogs run</em>.</p>
<p>In short sentences we can hear the problem: <em>The dogs runs</em> just doesn’t sound right so we can usually make the necessary changes to <em>The dogs run.</em></p>
<p>There are, however, three problems that can crop up:</p>
<ul>
<li>Prepositional phrases</li>
<li>Indefinite pronouns</li>
<li>Reversed sentence order</li>
</ul>
<p> Prepositional phrases consist of words that slip in between the subject and the verb. <em>The dogs in the mudroom is dirty. </em>The noun “mudroom” may be singular making us think, perhaps, that the following verb “is” should be singular as well. But the subject is “dogs.” Take out the prepositional phrase <em>in the mudroom</em> and we’re left with the sentence <em>The dogs is dirty, </em>which is clearly not correct. The correct verb should be “are” as in “<em>The dogs in the mudroom are dirty</em>.”</p>
<p>We only need to remember one thing about indefinite pronouns: if a word has one of these endings: <em>everybody</em>, <em>everyone</em>, <em>anyone</em>, <em>anything</em>, etc., it is singular. We can also include <em>each</em>, <em>either</em>, and <em>neither</em> in this group.</p>
<ul>
<li><em>Everyone is</em> going…</li>
<li><em>Each is</em> taking the train…</li>
<li>If <em>anyone comes</em> later…</li>
</ul>
<p>The normal pattern for English sentence order is subject-verb. There are, however, a few cases where this order is reversed. For instance:</p>
<p>          <em>There are dogs in the kitchen. </em> The standard order would be <em>Dogs are there in the kitchen.</em> Or some such version that places the subject and verb in the standard order.</p>
<p><em>          Where are they? </em>Or: <em> They are where?</em></p>
<p><em>          </em>We would not write or say <em>There is dogs in the kitchen, </em>or <em>They is where?</em></p>
<p><em>          Easy this is, yes?</em></p>
<p><em>          </em>Thank you Yoda, but not always.</p>
<p><em> </em></p>
<p><em> </em></p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Craptastic!]]></title>
<link>http://nursemichael.wordpress.com/2009/11/16/craptastic/</link>
<pubDate>Mon, 16 Nov 2009 06:06:09 +0000</pubDate>
<dc:creator>nursemichael</dc:creator>
<guid>http://nursemichael.wordpress.com/2009/11/16/craptastic/</guid>
<description><![CDATA[That&#8217;s my new word.  I learned it today watching a comercial for South Park, to which I though]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>That&#8217;s my <a title="Urban Dictionary Craptastic" href="http://www.urbandictionary.com/define.php?term=craptastic">new word</a>.  I learned it today watching a comercial for South Park, to which I thought, &#8220;this is brilliant&#8230; &#8216;craptastic.&#8217;&#8221;</p>
<p>It means:</p>
<blockquote><dt><a title="Webster Craptastic" href="http://www3.merriam-webster.com/opendictionary/newword_display_recent.php?id=4502">craptastic (adjective) </a><strong>:</strong> the opposite of fantastic, expressing how phenomenally bad something is. </dt>
<dd>That movie was craptastic. </dd>
</blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP: foreach]]></title>
<link>http://spic.wordpress.com/2009/11/15/php-foreach/</link>
<pubDate>Sun, 15 Nov 2009 21:16:28 +0000</pubDate>
<dc:creator>sCp</dc:creator>
<guid>http://spic.wordpress.com/2009/11/15/php-foreach/</guid>
<description><![CDATA[Wenn man mit foreach() arbeitet, sollte man vorher prüfen ob das Array überhaupt einen Eintrag hat. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Wenn man mit <a href="http://de.php.net/manual/de/control-structures.foreach.php">foreach()</a> arbeitet, sollte man vorher prüfen ob das Array überhaupt einen Eintrag hat. Das habe ich nun einfach mit der Funktion <a href="http://de.php.net/manual/de/function.count.php">count()</a> realisiert.</p>
<p><code>if(count($arr) &#62;= 1) {<br />
foreach ($arr as $value) {<br />
echo "Value: $value\n";<br />
}<br />
}</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Greek and English Relative Clauses]]></title>
<link>http://evepheso.wordpress.com/2009/11/13/greek-and-english-relative-clauses/</link>
<pubDate>Sat, 14 Nov 2009 07:51:47 +0000</pubDate>
<dc:creator>Mike Aubrey</dc:creator>
<guid>http://evepheso.wordpress.com/2009/11/13/greek-and-english-relative-clauses/</guid>
<description><![CDATA[Though both require relative clauses to begin with a relative pronoun, Greek and English are typolog]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Though both require relative clauses to begin with a relative pronoun, Greek and English are typologically distinct in that one employs the pronoun with the gap strategy (English) and the other only needs the pronoun (Greek): a man who Chris saw [GAP] vs. <span style="font-family:gentium;font-size:medium;">τὸ ποτήριον ὃ ἐγὼ μέλλω πίνειν</span> (the cup that I am about to drink [no gap]).</p>
<p>The English Gap is implicitly necessary for our processing of the grammatical relation of relative pronouns (in this case the Object relation), whereas in Greek, grammatical relations are marked by morphology* rather than structural relations/word order.</p>
<p><span style="font-size:x-small;">*This is not to say that English doesn&#8217;t have <em>some</em> morphological marking occurring on it&#8217;s pronouns, but this morphology is not the central marker of grammatical relations. Grammatical relations are centrally marked by structural position within the clause. Hence when English speakers hear relative clauses they consciously notice the Gap position where the Object would typically appear.<br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Perl Syntax in one image]]></title>
<link>http://nicolas314.wordpress.com/2009/11/13/perl-syntax-in-one-image/</link>
<pubDate>Fri, 13 Nov 2009 15:22:50 +0000</pubDate>
<dc:creator>nicolas314</dc:creator>
<guid>http://nicolas314.wordpress.com/2009/11/13/perl-syntax-in-one-image/</guid>
<description><![CDATA[I recently had to switch back to Perl programming &#8212; after 10+ years of carefully avoiding it. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I recently had to switch back to Perl programming &#8212; after 10+ years of carefully avoiding it. For some reason it brought back to my mind the kind of image found below. It took me 30 years to realize Franquin&#8217;s characters are all Perl programmers.</p>
<p><img class="alignleft size-full wp-image-87" title="jurons-gaston4" src="http://nicolas314.wordpress.com/files/2009/11/jurons-gaston4.jpg" alt="jurons-gaston4" width="450" height="293" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[UICTiL: Brad Hoot &amp; Álvaro Recio]]></title>
<link>http://bilingualismresearch.com/2009/11/12/uictil-brad-hoot-alvaro-recio/</link>
<pubDate>Thu, 12 Nov 2009 16:32:13 +0000</pubDate>
<dc:creator>brlab</dc:creator>
<guid>http://bilingualismresearch.com/2009/11/12/uictil-brad-hoot-alvaro-recio/</guid>
<description><![CDATA[Tomorrow we will have a student session of TiL featuring our own Brad Hoot (UIC Ph.D. student) and v]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Tomorrow we will have a student session of TiL featuring our own Brad Hoot (UIC Ph.D. student) and visiting student Álvaro Recio (University of Salamanca Ph.D. student).  Brad Hoot will present &#8220;An Optimality Theoretic Analysis of Focus in Spanish and English&#8221;.  His presentation will be conducted in English.  Álvaro Recio will present &#8220;Las propiedades argumentales de los complementos del nombre en español&#8221; (see abstract below), and his presentation will be given in Spanish.</p>
<p>As always the talk will be at 3 in 1750 University Hall with light refreshments provided.</p>
<p>Álvaro Recio (University of Salamanca)                    UIC TiL Fall 2009</p>
<p>Abstract<br />
Las propiedades argumentales de los complementos del nombre en español</p>
<p> Son muchos los autores que en las últimas décadas han puesto de relieve el paralelismo existente entre la estructura interna del sintagma nominal y del sintagma verbal. No todos los modificadores realizan la misma aportación al significado de un sintagma, ni tienen idénticas propiedades formales ni gozan del mismo estatuto sintáctico. <!--more-->De la misma manera que el verbo posee una red argumental que le permite seleccionar determinado tipo de complementos, ciertos sustantivos, bien por herencia deverbal, bien por su propia semántica interna, seleccionan igualmente complementos argumentales. En consecuencia, en el interior de los grupos nominales, de forma paralela a las oraciones, también es preciso distinguir entre argumentos y adjuntos. Si bien en otras lenguas, fundamentalmente inglés, italiano y francés, se han dedicado  numerosos estudios al respecto, en el ámbito hispánico apenas se han esbozado unas pautas generales de clasificación de estos complementos, por lo que se revela necesario un análisis exhaustivo y profundo aplicado al español.</p>
<p> El objetivo de esta charla es presentar las características generales de un proyecto que trata de ahondar en la estructura interna del sintagma nominal en castellano, en los llamados complementos argumentales del sustantivo. Para ello, se expondrán los rasgos fundamentales que permiten determinar qué clases de sustantivos pueden seleccionar argumentos en español, cuál es la estructura de estos y qué tipo de vínculo los enlaza con el núcleo nominal, pues parece que no todos los argumentos tienen el mismo peso dentro del sintagma: el de mayor relieve temático podría ser considerado el “sujeto” del sintagma nominal.</p>
<p> Especial atención se dedicará a las subordinadas sustantivas que se vinculan a un nombre a través de una preposición (por ejemplo, la idea de comprar un coche o el problema de que los alumnos no estudien), ya que muchos aspectos de su funcionamiento están todavía desatendidos. Una rigurosa descripción de los modificadores del sustantivo no puede ignorar este tipo de construcciones y requiere analizar las características de los núcleos que las aceptan, el carácter argumental o no de la oración, así como la elección del modo correspondiente en el verbo subordinado.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Speech!]]></title>
<link>http://whosoeverdesires.wordpress.com/2009/11/10/speech/</link>
<pubDate>Wed, 11 Nov 2009 02:08:59 +0000</pubDate>
<dc:creator>Michae! Magree, SJ</dc:creator>
<guid>http://whosoeverdesires.wordpress.com/2009/11/10/speech/</guid>
<description><![CDATA[Have you ever noticed just how many things are left out when you speak?  We drop subjects all the ti]]></description>
<content:encoded><![CDATA[Have you ever noticed just how many things are left out when you speak?  We drop subjects all the ti]]></content:encoded>
</item>
<item>
<title><![CDATA[John Irving on writing &amp; America]]></title>
<link>http://richardgilbert.wordpress.com/2009/11/09/john-irving-on-writing-america/</link>
<pubDate>Mon, 09 Nov 2009 02:10:02 +0000</pubDate>
<dc:creator>Richard Gilbert</dc:creator>
<guid>http://richardgilbert.wordpress.com/2009/11/09/john-irving-on-writing-america/</guid>
<description><![CDATA[Novelist John Irving holds forth on Big Think on an array of writing issues in short videos excerpte]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Novelist John Irving holds forth on <a href="http://bigthink.com/johnirving/">Big Think</a> on an array of writing issues in short videos excerpted from a long interview. He discusses his working habits—eight to nine hours a day writing in longhand in lined notebooks, seven days a week—and the deep rifts in America that trouble him. He talks about using post-it notes, the long process of revision, achieving syntactical unity throughout a long work, and the glory of the long, lavishly detailed, plotted, visual nineteenth-century novels of Dickens, Hardy, Melville, and Hawthorne. The tidbits are worth a listen.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Meaning-Text Theory]]></title>
<link>http://brainwave.opencog.org/2009/11/08/meaning-text-theory/</link>
<pubDate>Sun, 08 Nov 2009 04:58:49 +0000</pubDate>
<dc:creator>linasv</dc:creator>
<guid>http://brainwave.opencog.org/2009/11/08/meaning-text-theory/</guid>
<description><![CDATA[During some recent reading, it struck me that a useful framework for thinking about and talking abou]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>During some recent reading, it struck me that a useful framework for thinking about and talking about sentence generation is the MTT or &#8220;meaning-text theory&#8221; of Igor Mel&#8217;cuk, <em>et al </em> Here is one readable reference:</p>
<p>Igor A. Mel&#8217;čuk and Alain Polguère, (1987) &#8220;A Formal Lexicon in Meaning-Text Theory&#8221;, Computational Linguistics, vol. 13, pp. 261-275.</p>
<p><a href="http://portal.acm.org/citation.cfm?id=48160.48166" target="_blank">portal.acm.org/citation.cfm?id=48160.48166</a><br />
<a href="http://www.aclweb.org/anthology/J/J87/J87-3006.pdf" target="_blank">www.aclweb.org/anthology/J/J87/J87-3006.pdf</a></p>
<p>Within the context of that theory, the output of the Stanford parser is strictly at the SSynR or &#8220;surface syntactic representation&#8221; level, while, as a general rule Relex attempts to generate the DSynR or &#8220;Deep syntactic representation&#8221; structure.  Some of what I&#8217;ve been trying to do with opencog is towards the &#8220;SemR&#8221; structure, as described in that paper.</p>
<p>The more I read about MTT, the more it seems to capture some of what we are trying to do (defacto are doing) with NLP within opencog.  In particular, the MTT concept of a &#8220;lexical function&#8221; (which is not really described in that paper??) could be a particularly strong way of guaranteeing correct syntactic output for <a href="http://opencog.org/wiki/SegSim">segsim</a>, <a href="https://launchpad.net/nlgen">nlgen</a> or <a href="http://www.louisiana.edu/~bal2277/NLGen2.doc">NLGen2</a><br />
<span style="color:#888888;"><br />
</span></p>
<p>&#8211; Linas Vepstas</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Postando código-fonte formatado no wordpress]]></title>
<link>http://diogobesson.wordpress.com/2009/11/06/postando-codigo-fonte-formatado-no-wordpress/</link>
<pubDate>Fri, 06 Nov 2009 20:03:53 +0000</pubDate>
<dc:creator>diogobesson</dc:creator>
<guid>http://diogobesson.wordpress.com/2009/11/06/postando-codigo-fonte-formatado-no-wordpress/</guid>
<description><![CDATA[Ao começar este post, eu me lembrei de uma situação onde uma amiga havia questionado ingenuamente o ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ao começar este post, eu me lembrei de uma situação onde uma amiga havia questionado ingenuamente o conceito de <strong>código-fonte.</strong> Para os leigos, portanto, forneço a citação do Dicionário Eletrônico Houaiss (v.1.0.5a):</p>
<p><strong>código-fonte</strong></p>
<p><span style="color:#ff9900;">n substantivo masculino </span><br />
<span style="color:#993300;">Rubrica: informática.</span><br />
sistema de símbolos utilizado para codificar o programa-fonte</p>
<p><strong>E programa-fonte?</strong></p>
<p><span style="color:#ff9900;">n substantivo masculino </span><br />
<span style="color:#993300;">Rubrica: informática.</span><br />
programa de computador em sua forma original, anotado pelo programador em uma linguagem-fonte, antes de ser codificado em instruções de linguagem de máquina</p>
<p><strong>E linguagem-fonte?</strong></p>
<p><span style="color:#ff9900;">n substantivo feminino </span><br />
<span style="color:#993300;">Rubrica: informática.</span><br />
linguagem em que um programa de computador está originalmente escrito, antes de ser codificado em linguagem de máquina</p>
<p>Em minhas palavras, o código-fonte é uma linguagem humanamente inteligível que, quando utilizada corretamente por um programador, pode ser transformada em uma linguagem que os computadores entendam a fim de executar alguma tarefa dentro de um programa de informática.</p>
<p>Voltando ao tema deste post, muitas vezes eu tive que reproduzir aqui neste weblog algum código-fonte de exemplo. Para destaca-lo do restante do texto, modifiquei a cor de todo bloco que representasse essa codificação.</p>
<p>Assim, eu usava:</p>
<p><span style="color:#0000ff;">class Pessoa extends Humano {</span></p>
<p><span style="color:#0000ff;">private $nome;</span></p>
<p><span style="color:#0000ff;">private $sexo;</span></p>
<p><span style="color:#0000ff;">public setNome($nome){</span></p>
<p><span style="color:#0000ff;">$this-&#62;nome = $nome;<br />
</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p><span style="color:#0000ff;">public setSexo($sexo){</span></p>
<p><span style="color:#0000ff;">$this-&#62;sexo = $sexo;</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p>porém, ele ficaria muito mais legal, se eu fizesse isso aqui:</p>
<pre class="brush: php;">

class Pessoa extends Humano {

private $nome;

private $sexo;

public setNome($nome){

$this-&#62;nome = $nome;

}

public setSexo($sexo){

$this-&#62;sexo = $sexo;

}

}
</pre>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<h3>Gostei! Como faz?</h3>
<p>O wordpress tem um recurso legal chamado SyntaxHighlighter, que faz com que seu código seja mostrado de uma maneira mais acessível aos programadores.</p>
<p>Eu desconhecia esse truque até que entrei no <a title="blog do Giolvani de Matos" href="http://giolvani.wordpress.com/" target="_blank">blog do Giolvani</a> e decidi que era hora de deixar a preguiça de lado e começar a fazer alguma coisa mais consistente pra ajudar o povo que me visita.</p>
<p>Então, encontrei esse tutorialzinho dentro do Codex e gostaria de compartilhar com vocês. O link é:</p>
<p><a title="Codex Syntax Highlight WordPress Posting Source Code" href="http://en.support.wordpress.com/code/posting-source-code/" target="_blank">http://en.support.wordpress.com/code/posting-source-code/</a></p>
<p>Para transformar, é fácil:</p>
<p>digite o código-fonte dentro da seguinte estrutura:</p>
<p>&#160;</p>
<p><span style="color:#ff0000;">[ sourcecode language=</span>"<span style="color:#0000ff;">sua linguagem</span>" <span style="color:#ff0000;">]</span><br />
<span style="color:#0000ff;">seu código fonte</span><br />
<span style="color:#ff0000;">[ /sourcecode ]</span></p>
<p><span style="color:#ff0000;"><br />
</span></p>
<p><span style="color:#008000;">EM TEMPO </span>-&#62; coloquei espaços em branco após os colchetes intencionalmente para que ele pudesse aparecer na íntegra dentro deste post. Na prática você deve remover os espaços em branco de dentro das tags, ou seja, após o &#8220;[" e antes do "]&#8220;.</p>
<h3>Dicas úteis:</h3>
<p>No lugar de <span style="color:#0000ff;">sua linguagem</span>, você deve especificar sobre qual linguagem de programação o highlight se refere, pois existem diversos code-standards para diferentes tipos de linguagem.</p>
<p>Os parâmetros suportados são:</p>
<ul>
<li>actionscript3</li>
<li>bash</li>
<li>csharp</li>
<li>cpp</li>
<li>css</li>
<li>delphi</li>
<li>diff</li>
<li>groovy</li>
<li>javascript</li>
<li>java</li>
<li>javafx</li>
<li>perl</li>
<li>php</li>
<li>text</li>
<li>powershell</li>
<li>python</li>
<li>ruby</li>
<li>scala</li>
<li>sql</li>
<li>vb</li>
<li>xml</li>
</ul>
<p>Caso nenhum parâmetro seja especificado, o pseudo bbcode do wordpress vai assumir que você quer apenas fazer um texto simples sem highlight, ou seja, o valor default desse parâmetro é igual a &#8220;text&#8221;.</p>
<p>Os outros parâmetros opcionais são:</p>
<ul>
<li><code>autolinks</code> (true/false) — Transforma todas as URLs do seu código-fonte em clicáveis. O valor default é <span style="color:#0000ff;">true</span>.</li>
<li><code>collapse</code> (true/false) — Se <span style="color:#0000ff;">true</span>, o bloco de código será comprimido (fechado, resumido, collapsed) quando a página carregar, exigindo que o visitante clique para expandir e melhor visualizar. É ótimo para códigos gigantescos. O valor default é <span style="color:#0000ff;">false</span>.</li>
<li><code>firstline</code> (número) — Use isso para personalizar o valor numérico da linha inicial da sua numeração. O valor default é 1.</li>
<li><code>gutter</code> (true/false) — Se <span style="color:#0000ff;">false</span>, os números das linhas que aparecem no lado esquerdo serão escondidos. O valor default é <span style="color:#0000ff;">true</span>.</li>
<li><code>highlight</code> (números das linhas separados por vírgulas) — Você pode listar os números das linhas que você quer destacar, por exemplo: &#8220;5, 55, 1578&#8243;.</li>
<li><code>htmlscript</code> (true/false) — Se <span style="color:#0000ff;">true</span>, qualquer HTML/XML do seu código, ficarão em destaque. É bem útil quando você está misturando linguagens dentro de seu script, como é exemplo de uso ter um código PHP inserido dentro de um contexto HTML. O valor default é <span style="color:#0000ff;">false</span> e funcionará somente com algumas linguagens específicas.</li>
<li><code>light</code> (true/false) — Se <span style="color:#0000ff;">true</span>, a numeração das linhas e a barra de ferramentas ficarão ocultas. É útil quando você quer postar algo pequeno, como somente 1 ou 2 linhas de código. Isso deixa a visibilidade da sua página bem mais limpa e agradável. O valor default é <span style="color:#0000ff;">false</span>.</li>
<li><code>ruler</code> (true/false) — Se <span style="color:#0000ff;">true</span>, uma régua de posicionamento de caracteres será mostrada no topo da sua codificação. O valor default é <span style="color:#0000ff;">false</span>.</li>
<li><code>toolbar</code> (true/false) — Se <span style="color:#0000ff;">false</span>, a barra de ferramentas que mostra botões utilitário quanto você posiciona o mouse em cima do código não será mostrada. O valor default é <span style="color:#0000ff;">true</span>.</li>
<li><code>wraplines</code> (true/false) — Se <span style="color:#0000ff;">true</span>, a quebra automática de linhas será desabilitada, o que causará o aparecimento de uma barra de rolagem para códigos com linhas muito longas. O valor default é <span style="color:#0000ff;">false</span>.</li>
</ul>
<p>Com isso, o visual dos nossos blogs do wordpress ficarão muito melhor. A partir desse post, estarei adotando essa boa prática.</p>
<p>&#160;</p>
<p>um abraço ao visitante.</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Friday Flapdoodle]]></title>
<link>http://outspokenomphaloskeptic.wordpress.com/2009/11/06/friday-flapdoodle/</link>
<pubDate>Fri, 06 Nov 2009 16:13:13 +0000</pubDate>
<dc:creator>MDS</dc:creator>
<guid>http://outspokenomphaloskeptic.wordpress.com/2009/11/06/friday-flapdoodle/</guid>
<description><![CDATA[I&#8217;d just like to say &#8216;thank you&#8217; to everyone who visited The Outspoken Omphaloskep]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;d just like to say &#8216;thank you&#8217; to everyone who visited The Outspoken Omphaloskeptic yesterday.  I&#8217;m not sure how or why it happened, but yesterday the site received the most traffic of any day since its navel-gazing inception.  There were over 30% more visitors than on the previous busiest day.  Less than ten of yesterdays hits were generated by links from other sites or search engine results.  That means most of you visitors have chosen to land on this site.  For those of you who keep coming back, I&#8217;ll try to make sure that doing so is worth your while.</p>
<p>On a somewhat related note, I&#8217;ve noticed two tendencies in myself since I started posting to this blog.  The first is something that I&#8217;m sure is very common: I tend to read, watch, look at or otherwise experience things and part of my brain is saying “Hey, I could post about that.”  Though relatively frequent this new tendency to consider the possibility of turning everyday experiences into omphaloskeptic fodder doesn&#8217;t amount to a full-blown obsession on my part.  Instead it simply provides an additional filter for my thinking, it gives me another reason to pause and reflect on things.  That&#8217;s got to be a good thing, right?    At any rate, I&#8217;m not too bothered by the possibility that The Outspoken Omphaloskeptic has subjective or introspectively self-indulgent tendencies.   This blog was, as the title might suggest, conceived with precisely those tendencies in mind.  Yes, I post with the hope that I might strike a chord amongst visitors, but I&#8217;m not trying to claim my experience of life or my views are universal.     That would just be boring.   Besides, if I become too introverted in my postings visitor numbers will quickly dwindle to zero and I will be, essentially, sending myself e-mail.   I can do that without a website.</p>
<p>The second tendency I&#8217;ve noticed is that I have a major inability to proofread and edit when I&#8217;m writing for the Omphaloskeptic.   Normally, these are things I&#8217;m pretty good at and I can&#8217;t figure out what my problem is when it comes to writing this blog.   A few people have suggested that it has something to do with trying to edit on screen, but that&#8217;s how I do all my editing.  Maybe its just sheer excitement and an accompanying eagerness to get my posts published that combine to result in the slipping of my standards.  I&#8217;m not sure.</p>
<p>I&#8217;ve had to stop revisiting postings after I&#8217;ve published them because I&#8217;m filled with self-disgust and shame at some of the obvious mistakes that I find, mistakes I don&#8217;t make elsewhere.   It doesn&#8217;t seem to matter how many times I proofread a posting or even if I sit on it over night and read it again immediately before publishing, some evil demon in me takes over and indulges his desire to make me look like a fool with only a rudimentary knowledge of spelling, grammar, syntax and diction.  This wouldn&#8217;t matter so much if I didn&#8217;t refuse to edit the posts once they&#8217;ve been up for more than a few minutes.   Doing so just strikes me as dishonest for some reason; I&#8217;d rather live with mistakes that make me literally cringe.   I think the best course of action may be for me to avoid revisiting items once I&#8217;ve posted them.   Does anyone else have this problem?  Do you have any tips for overcoming it?  Is this some sort of karmic payback for all the ink I&#8217;ve spilled correcting the writings of others?</p>
<p>This is the longest posting I&#8217;ve done yet for a Friday and I feel its appropriately inconsequential even if it isn&#8217;t light-hearted.  My brain doesn&#8217;t want to cooperate and, as it is Friday, I&#8217;m going to give in to its demands and go lay on the floor with my dogs until my wife and mother-in-law return with supplies for our dinner.</p>
<p>Thanks again to all of you who have been regular visitors to the site.  The fact that some of you choose to read some the flapdoodle I spill is bemusing and vaguely edifying.  As ever, comments are welcome and feel free to send the Omphaloskeptic&#8217;s URL along to anyone who might be interested.   You could even let me know how many mistakes you can find in this posting if you like.</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
