<?xml version="1.0" encoding="windows-1252"?>
<node id="295576" title="ambrus" created="2003-10-01 07:47:44" updated="2011-12-23 06:37:48">
<type id="15">
user</type>
<author id="295576">
ambrus</author>
<data>
<field name="doctext">
&lt;!-- location:latitude=47.31.00.0,longitude=19.07.00.0 --&gt;&lt;!-- Hungary --&gt;
&lt;!-- birthday:1985/07/20 --&gt;
&lt;!-- email:ambrus@math.bme.hu --&gt;
&lt;!-- kw: Budapest, Hungary --&gt;

&lt;p&gt;
&lt;b&gt;Image:&lt;/b&gt; &lt;!-- tree falling sideways --&gt; gravitational anomaly, somewhere in France, August 2007.

&lt;p&gt;
Favourite pentomino pattern:
&lt;TABLE border="5" cellspacing="0"&gt;
&lt;COLGROUP span="10" width="25"&gt;&lt;/COLGROUP&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#8000c0" colspan="2"&gt;&lt;TD bgcolor="#ffff81" colspan="5"&gt;&lt;TD bgcolor="#40ff40" colspan="3"&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#8000c0" colspan="1"&gt;&lt;TD bgcolor="#80c000" colspan="3"&gt;&lt;TD bgcolor="#4040ff" colspan="4"&gt;&lt;TD bgcolor="#0080c0" colspan="1"&gt;&lt;TD bgcolor="#40ff40" colspan="1"&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#8000c0" colspan="1"&gt;&lt;TD bgcolor="#00c080" colspan="2"&gt;&lt;TD bgcolor="#80c000" colspan="2"&gt;&lt;TD bgcolor="#4040ff" colspan="1"&gt;&lt;TD bgcolor="#0080c0" colspan="3"&gt;&lt;TD bgcolor="#40ff40" colspan="1"&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#8000c0" colspan="1"&gt;&lt;TD bgcolor="#81ffff" colspan="1"&gt;&lt;TD bgcolor="#00c080" colspan="2"&gt;&lt;TD bgcolor="#c00080" colspan="1"&gt;&lt;TD bgcolor="#ff4040" colspan="1"&gt;&lt;TD bgcolor="#0080c0" colspan="1"&gt;&lt;TD bgcolor="#ff81ff" colspan="1"&gt;&lt;TD bgcolor="#c08000" colspan="2"&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#81ffff" colspan="2"&gt;&lt;TD bgcolor="#00c080" colspan="1"&gt;&lt;TD bgcolor="#c00080" colspan="2"&gt;&lt;TD bgcolor="#ff4040" colspan="1"&gt;&lt;TD bgcolor="#ff81ff" colspan="3"&gt;&lt;TD bgcolor="#c08000" colspan="1"&gt;
&lt;TR height="25"&gt;&lt;TD bgcolor="#81ffff" colspan="2"&gt;&lt;TD bgcolor="#c00080" colspan="2"&gt;&lt;TD bgcolor="#ff4040" colspan="3"&gt;&lt;TD bgcolor="#ff81ff" colspan="1"&gt;&lt;TD bgcolor="#c08000" colspan="2"&gt;
&lt;/TABLE&gt;

&lt;p&gt;
&lt;a href="http://www.math.bme.hu/~ambrus/sc/"&gt;My homepage&lt;/a&gt; doesn't have anything interesting on it.

&lt;p&gt;
Here's an old listing of [http://www.math.bme.hu/~ambrus/pu/fav.html|some books I like].

&lt;P&gt;To determine if a number is odd or even, the worst way is:
&lt;code&gt;
$odd=0;{local($SIG{__WARN__},$^W)=(sub{$odd++})x2;+{1..abs($n)}};
&lt;/code&gt;

&lt;P&gt;
There are several completely different programming concepts called a &lt;strong&gt;select statement&lt;/strong&gt;.  They are
&lt;ul&gt;
&lt;li&gt;
The select system call in unix, which is the most common way a process can wait for events and give up the process's claim on CPU.  Its prototype is &lt;C&gt;int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);&lt;/c&gt;.  It also has a perl interface: the select builtin function which has three or four arguments.
&lt;li&gt;
The one-argument select function of perl, which selects a filehandle to be the default filehandle, so that unqalified print operations and a few special variables would refer to it.  This accidentally has the same name as the previously mentioned select function, and can only be distinguished by the number of arguments.
&lt;li&gt;
The select special command in bash-like shells, which is a loop construct that prints a simple text-based menu and reads user input.
&lt;li&gt;
The SELECT construct in the SQL language.
&lt;li&gt;
The SELECT special statement in newer dialects of BASIC, which is similar to pascal or scheme &lt;em&gt;case&lt;/em&gt; statements.  It dispatches between multiple choices comparing a single value to different constants for each branch.  In earlier BASICs, the ON ... GOTO construct was used instead.
&lt;li&gt;
It is not a statement, but smalltalk and ruby have a select method which filter elements from a list, similarly to perl's builtin function grep.  Also both maple and mathematica have functions called select and Select resp., and these serve the same purpose.
&lt;li&gt;
Also not a statement, but HTML has a select element that is a form control displaying a dropdown list.  Related to this, the CGI perl module has a Select function and method, and the WWW::Mechanize module has a [id://701312|select] method.  (One could say though that this has the same etimology as the select statement in shells.)  
&lt;li&gt;
However, HTML DOM also has a select event (unrelated to the select element) and HTML has a corresponding onselect attribute, which is called when the user changes the selection in a text input field.
&lt;li&gt;
The Magma computer algebra system has a select keyword which it uses in the [http://magma.maths.usyd.edu.au/magma/htmlhelp/text10.htm|conditional expression].
&lt;/ul&gt;

&lt;P&gt;
Ok, after all this rant, here's something that's actually useful to know. The formulae to solve the quadratic equation&lt;br&gt;
&lt;i&gt;a&lt;/i&gt; &lt;i&gt;x&lt;/i&gt;^2 + &lt;i&gt;b&lt;/i&gt; &lt;i&gt;x&lt;/i&gt; + &lt;i&gt;c&lt;/i&gt; = 0&lt;br&gt;
are:&lt;br&gt;
&lt;i&gt;x&lt;/i&gt;_1 = -(&lt;i&gt;b&lt;/i&gt; + sgn(&lt;i&gt;b&lt;/i&gt;) sqrt(&lt;i&gt;b&lt;/i&gt;^2 - 4 &lt;i&gt;a&lt;/i&gt; &lt;i&gt;c&lt;/i&gt;))/(2 &lt;i&gt;a&lt;/i&gt;)&lt;br&gt;
&lt;i&gt;x&lt;/i&gt;_2 = &lt;i&gt;c&lt;/i&gt;/(&lt;i&gt;a&lt;/i&gt; &lt;i&gt;x&lt;/i&gt;_1)

&lt;p&gt;
Perl Quiz of The Week #21 (20040805): Task scheduling.  [http://article.gmane.org/gmane.comp.lang.perl.qotw.discuss/2005|my solution] [http://article.gmane.org/gmane.comp.lang.perl.qotw.quiz-of-the-week/102|discussion].
&lt;p&gt;
Perl Quiz of the Week Expert #22 (20040825): Word ladder.  [http://article.gmane.org/gmane.comp.lang.perl.qotw.discuss/2118|my solution] [http://article.gmane.org/gmane.comp.lang.perl.qotw.quiz-of-the-week/109|discussion].


</field>
<field name="lasttime">
2013-05-24 09:21:51</field>
<field name="experience">
18307</field>
<field name="user_scratchpad">
358307</field>
<field name="imgsrc">
371752</field>
<field name="timeformat">
</field>
<field name="numwriteups">
2611</field>
<field name="location">
Budapest</field>
<field name="timezone">
Europe/Rome</field>
<field name="codewrapoff">
</field>
<field name="codewraplength">
</field>
<field name="codeautowrap">
on</field>
<field name="codeprefix">
</field>
<field name="codebig">
on</field>
</data>
</node>
