<?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>exec &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/exec/</link>
	<description>Feed of posts on WordPress.com tagged "exec"</description>
	<pubDate>Fri, 25 Dec 2009 09:46:12 +0000</pubDate>

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

<item>
<title><![CDATA[Executing Code Containing User Input]]></title>
<link>http://erayizgin.wordpress.com/2009/12/05/executing-code-containing-user-input/</link>
<pubDate>Sat, 05 Dec 2009 17:40:50 +0000</pubDate>
<dc:creator>erayizgin</dc:creator>
<guid>http://erayizgin.wordpress.com/2009/12/05/executing-code-containing-user-input/</guid>
<description><![CDATA[Another concern when dealing with user data is the possibility that it may be executed in PHP code o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Another concern when dealing with user data is the possibility that it may be executed in PHP code or on the system shell. PHP provides the eval() function, which allows arbitrary PHP code within a string to be evaluated (run). There are also the system(), passthru() and exec() functions, and the backtick operator, all of which allow a string to be run as a command on the operating system shell.</p>
<p>Where possible, the use of all such functions should be avoided, especially where user input is entered into the command or code. An example of a situation where this can lead to attack is the following command, which would display the results of the command on the web page.</p>
<p><span style="font-size:xx-small;">echo &#8216;Your usage log:&#60;br /&#62;&#8217;;<br />
$username = $_GET['username'];<br />
passthru(“cat /logs/usage/$username”);</span></p>
<p><strong>passthru()</strong> runs a command and displays the output as output from the PHP script, which is included into the final page the user sees. Here, the intent is obvious, a user can pass their username in a GET request such as usage.php?username=andrew and their usage log would be displayed in the browser window.</p>
<p>But what if the user passed the following URL?</p>
<p><span style="font-size:xx-small;"><strong>usage.php?username=andrew;cat%20/etc/passwd</strong></span></p>
<p>Here, the username value now contains a semicolon, which is a shell command terminator, and a new command afterwards. The %20 is a URL-Encoded space character, and is converted to a space automatically by PHP. Now, the command which gets run by passthru() is,</p>
<p><span style="font-size:xx-small;">cat /logs/usage/andrew;cat /etc/passwd</span></p>
<p>Clearly this kind of command abuse cannot be allowed. An attacker could use this vulnerability to read, delete or modify any file the web server has access to. Luckily, once again, PHP steps in to provide a solution, in the form of the escapeshellarg() function. <strong>escapeshellarg()</strong> escapes any characters which could cause an argument or command to be terminated. As an example, any single or double quotes in the string are replaced with \&#8217; or \”, and semicolons are replaced with \;. These replacements, and any others performed by escapeshellarg(), ensure that code such as that presented below is safe to run.</p>
<p><span style="font-size:xx-small;">$username = escapeshellarg($_GET['username']);<br />
passthru(“cat /logs/usage/$username”);</span></p>
<p>Now, if the attacker attempts to read the password file using the request string above, the shell will attempt to access a file called “/logs/usage/andrew;cat /etc/passwd”, and will fail, since this file will almost certainly not exist.</p>
<p>It is generally considered that eval() called on code containing user input be avoided at all costs; there is almost always a better way to achieve the desired effect. However, if it must be done, ensure that strip_tags has been called, and that any quoting and character escapes have been performed.</p>
<p>Combining the above techniques to provide stripping of tags, escaping of special shell characters, entity-quoting of HTML and regular expression-based input validation, it is possible to construct secure web scripts with relatively little work over and above constructing one without the security considerations. In particular, using a function such as the _INPUT() presented above makes the secure version of input acquisition almost as painless as the insecure version PHP provides.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[fork-ing and exec-ing in linux - Back to the Basics]]></title>
<link>http://geekwentfreak.wordpress.com/2009/12/01/fork-exec-and-pipes-back-to-the-basics/</link>
<pubDate>Tue, 01 Dec 2009 02:37:03 +0000</pubDate>
<dc:creator>Ravi Teja G</dc:creator>
<guid>http://geekwentfreak.wordpress.com/2009/12/01/fork-exec-and-pipes-back-to-the-basics/</guid>
<description><![CDATA[Creating a new Process: A process is program in execution. It includes program code application data]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>Creating a new Process:</h2>
<p>A process is program in execution. It includes</p>
<ul>
<li> program code</li>
<li> application data</li>
<li> system data including file descriptors, etc.</li>
</ul>
<p>New processes are created in linux using the fork() system call. A call to fork() will create a completely separate sub-process which will be exactly the same as the parent. The process that initiates the call to fork is called the parent process. The new process created by fork is called the child process.</p>
<p>Linux &#8216;fork&#8217; duplicates process and copies complete process state:</p>
<ul>
<li> program + app data + system data</li>
<li> including file descriptors,etc.</li>
</ul>
<p>The two processes then start execution from where fork is returned. The child gets a copy of the parent&#8217;s text and memory space. They do not share the same memory. Hence they are two different processes but have identical process statees. Process Id(PID) uniquely identifies a process. Thus parent and child process have different PID. fork() system call returns an integer to both the parent and child processes:</p>
<ul>
<li> 0 to Child process</li>
<li> Positive number(PID of child created) to the Parent process</li>
</ul>
<p>So from the return value of fork(), the executing process can find out if it is parent or child. Enough theory, lets get into action.<br />
(<strong>note</strong>: fork() is declared in &#60;unistd.h&#62;)</p>
<pre class="brush: objc;">
#include &#60;stdio.h&#62;
#include &#60;unistd.h&#62;
int main()
{
	int pid=-1;
	printf(&#34;Starting execution!\n&#34;);
	pid=fork();
	if(pid==0){					//if fork returns 0, it is child process
		printf(&#34;In child process. pid of child is %d\n&#34;,getpid());
		printf(&#34;Do child process stuff here\n&#34;);
	}
	else if (pid&#62;0) {				//if fork returns +ve number, it is in parent process
		printf(&#34;In parent process. pid of parent is %d\n&#34;,getpid());
		wait();
		printf(&#34;Child finished execution\n&#34;);
		printf(&#34;Do parent process stuff here\n&#34;);
	}
	else {						//if return value is -ve, fork has failed to create new process
		printf(&#34;error\n&#34;);
	}
	printf(&#34;%d is exiting\n&#34;,getpid());
	return 0;
}
</pre>
<p>wait() system call blocks the calling process until one of its child processes exits or a signal is received. Thus parent process waits until child finishes its work. getpid() system call returns the PID of calling process.</p>
<h3 style="text-align:center;">Parent forks<a href="http://geekwentfreak.wordpress.com/files/2009/12/proce21.jpeg"><img class="aligncenter size-full wp-image-97" title="proce2" src="http://geekwentfreak.wordpress.com/files/2009/12/proce21.jpeg" alt="" width="241" height="205" /></a></h3>
<h3 style="text-align:center;">After fork, parent and child are identical. Except return values from fork</h3>
<h3 style="text-align:center;"><a href="http://geekwentfreak.wordpress.com/files/2009/12/proce31.jpeg"><img class="aligncenter size-full wp-image-91" title="proce3" src="http://geekwentfreak.wordpress.com/files/2009/12/proce31.jpeg" alt="" width="468" height="193" /></a>Since data are different, program execution differs</h3>
<p style="text-align:center;"><a href="http://geekwentfreak.wordpress.com/files/2009/12/proce4.jpeg"><img class="aligncenter size-full wp-image-92" title="proce4" src="http://geekwentfreak.wordpress.com/files/2009/12/proce4.jpeg" alt="" width="468" height="193" /></a></p>
<h2>Running a new Process:</h2>
<p>A call to exec() system call, replaces the current process with that of new executable passed to it as an argument. The replaced process undergoes following modifications:</p>
<blockquote><p>code                 -&#62;   replaced by new program<br />
data                  -&#62;   reinitialised<br />
system data     -&#62;   partly retained</p></blockquote>
<p>There are different flavours of exec(). We discuss execl() here.</p>
<ul>
<li> int execl( const char *path, const char *arg, &#8230;);</li>
</ul>
<pre class="brush: objc;">
#include &#60;stdio.h&#62;
#include &#60;unistd.h&#62;
int main()
{
int pid=fork();
if(pid==0){
	printf(&#34;In child %d\n&#34;,getpid());
	execl(&#34;/bin/ls&#34;,&#34;ls&#34;,&#34;-l&#34;,(char *)0);
	printf(&#34;Do child process stuff here&#34;);
}
else if (pid&#62;0) {
	printf(&#34;In parent %d\n&#34;,getpid());
	wait();
	printf(&#34;Child finished execution\n&#34;);
	printf(&#34;Do parent process stuff here\n&#34;);
}
else {
	printf(&#34;error\n&#34;);
}
return 0;
}
</pre>
<p>Here the child process is replaced with ls. You can notice that &#8220;Do child process stuff here&#8221; is not printed instead output of ls command is printed out.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Execução de programa do sistema com PHP]]></title>
<link>http://diogobesson.wordpress.com/2009/11/30/execucao-de-programa-do-sistema-com-php/</link>
<pubDate>Mon, 30 Nov 2009 10:57:51 +0000</pubDate>
<dc:creator>diogobesson</dc:creator>
<guid>http://diogobesson.wordpress.com/2009/11/30/execucao-de-programa-do-sistema-com-php/</guid>
<description><![CDATA[O PHP me assusta. Além de ser fácil e prático, também é uma das linguagens de programação mais compl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>O PHP me assusta.</p>
<p>Além de ser fácil e prático, também é uma das linguagens de programação mais completas.</p>
<p>Rodou <a target="_blank" title="tópico sobre threads no PHP" href="http://groups.google.com/group/listaphp/browse_thread/thread/7f39b13a6821f88b">um tópico</a> no <a target="_blank" title="Grupo de discussão de PHP" href="http://groups.google.com/group/listaphp">grupo de discussão do php</a> que tratava da execução de comandos e programas no servidor através do PHP. Isso <a target="_blank" href="http://www.newtonwagner.net/php/rodando-processos-em-background-com-php/">pode ser misturado com o (&#38;) do Linux</a> para você obter uma simulação de threads, executando assim diversos comandos em tarefas separadas.</p>
<p>Pode também ser <a target="_blank" title="Tutorial Cron" href="http://www.tutorzone.com.br/index.php?ind=reviews&#38;op=entry_view&#38;iden=373">misturando com o Cron, para assim você ter execuções agendadas</a>. Scripts que executam scripts, scripts que fazem manutenções no banco de dados ou qualquer outra coisa que sua imaginação desejar.</p>
<p>Eu sugiro que você comece pelo <a target="_blank" href="http://www.php.net/manual/pt_BR/book.exec.php">manual de execução de programas do PHP</a>. Assim você terá uma visão geral do assunto, porém sempre lembrando que a estrutura e as regras de segurança serão definidas pelo sistema operacional dentro do qual os scripts serão executados.</p>
<p>Isso acontece porque o PHP necessita do interpretador, diferenciando-se do Java que roda dentro de uma máquina virtual.</p>
<p>Logo você irá perceber que há mais de uma forma para realizar essa execução de tarefas, pois algumas funções antigas evoluíram para outras um pouco mais avançadas, mas no final das contas é tudo facilitado pela API do PHP que garante integração e facilidade no call dessas funcionalidades estruturais.</p>
<p>Estude também sobre a <a target="_blank" href="http://www.php.net/manual/pt_BR/function.exec.php">função exec()</a>, a mais fácil e simples de todas, na minha opinião pessoal.</p>
<p>Depois, vá avançando <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Olha só essa aqui: A <a target="_blank" href="http://www.php.net/manual/pt_BR/function.shell-exec.php">função shell_exec()</a>, bem mais completa. Dá pra fazer <a target="_blank" href="http://groups.google.com/group/phpavancado/browse_thread/thread/d151b6e41f8a2913?pli=1">umas coisas alucinógenas</a> com ela&#8230;</p>
<p>Essa função tem um atalho (shortcut) no interpretador do PHP. <a target="_blank" href="http://www.php.net/manual/pt_BR/language.operators.execution.php">Se você usar o comando com craze (`)</a> no script PHP, ele tentará ser executado dentro do Shell. Isso <a target="_blank" href="http://www.php.net/manual/pt_BR/ini.sect.safe-mode.php#ini.safe-mode">dá um problema com safe_mode ativado</a>, mas é só <a target="_blank" href="http://www.linhadecodigo.com.br/Artigo.aspx?id=1090">desativar</a> dentro do PHP.ini que fica tudo em casa&#8230;.</p>
<p>Se você quiser manipular uns processos de execução de comandos com ponteiros de entradas e saídas (ui!!!) tente o <a target="_blank" href="http://www.php.net/manual/pt_BR/function.proc-open.php">proc_open()</a>. É um passo a mais no nível de dificuldade, mas pode ser útil em algumas situações.</p>
<p>Nunca precisei usar, mas é sempre bom saber pra que serve, certo?</p>
<p>um abraço,</p>
<p>Diogo Besson</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Obvious, but . . . ]]></title>
<link>http://unkategorized.wordpress.com/2009/11/26/obvious-but/</link>
<pubDate>Fri, 27 Nov 2009 00:36:20 +0000</pubDate>
<dc:creator>Kathryn Ciano</dc:creator>
<guid>http://unkategorized.wordpress.com/2009/11/26/obvious-but/</guid>
<description><![CDATA[Krauthammer railed Holder for his &#8220;failure is not an option&#8221; attitude re KSM&#8217;s civ]]></description>
<content:encoded><![CDATA[Krauthammer railed Holder for his &#8220;failure is not an option&#8221; attitude re KSM&#8217;s civ]]></content:encoded>
</item>
<item>
<title><![CDATA[TV, styrelsemöte och fantastiskt nätverkande!]]></title>
<link>http://johantrouve.wordpress.com/2009/11/19/tv-styrelsemote-och-fantastiskt-natverkande/</link>
<pubDate>Thu, 19 Nov 2009 23:02:07 +0000</pubDate>
<dc:creator>johantrouve</dc:creator>
<guid>http://johantrouve.wordpress.com/2009/11/19/tv-styrelsemote-och-fantastiskt-natverkande/</guid>
<description><![CDATA[Förvånas över TV´s prioriteringar. Har varit med om att TV bjudits in till möten med Al Gore, interv]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Förvånas över TV´s prioriteringar. Har varit med om att TV bjudits in till möten med Al Gore, intervjuer med Stephen Odell, presskonferenser om kollektivtrafiken , fullsatt Scandinavium med spännande personer på scen mm mm, men de kommer inte. Idag blir jag kontaktad och tillfrågad om en intervju då jag har deltagit i en julkalender där det ges klimattips i varje lucka och jag är en av tipsarna!!?</p>
<p>Hade ett bra styrelsemöte där vi tog upp ett antal strategiska för handelskammaren framöver. Roligt med en engagerad styrelse och vi har mycket på gång. Kapitalförsörjningsområdet, ungdomsarbetslösheten, 200 000 nya jobb, medlemsnytta, Kina och hållbar stadsutveckling var några av frågorna som diskuterades. Det saknas inte uppgifter för en organisation som handelskammaren.</p>
<p>Avslutade dagen med att deltaga på vår nätverkskväll med Exec, med ca 100 deltagare. Först lyssnade vi till &#8220;fiskarpôjken&#8221; från Öckerö, Christer Olsson, som höll ett insprirerande föredrag om ledarskap i förändring. Passade bra då samtliga deltagare är unga vd:ar från små och medelstora företag i vår region. Bl a fick vi klart för oss att ett företag behöver både struktur och kultur, samt att kulturen trumfar strukturen. På en 10-gradig skala kan man sätta betyg på dessa olika områden. Har man en 8:a på strukturen och en 6:a på kulturen så blir det 48% effektivitet i organisationen, allt enligt boken &#8220;From good to great&#8221;. Jag slås av det fantastiska nätverkandet som vi skapar i dessa grupper. Jag fick en hel mängd nya idéer om vår framtida utveckling och alla utbytte tankar, idéer, visitkort, som i slutändan bidrar till fler och bättre affärer som i sin tur ger tillväxt. Anmäl er i något av våra många nätverk, om ni inte redan är med!</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Dynamic Queries, Stored Procedures and SQL Injections]]></title>
<link>http://chillicode.wordpress.com/2009/10/28/dynamic-queries-stored-procedures-and-sql-injections/</link>
<pubDate>Wed, 28 Oct 2009 09:21:05 +0000</pubDate>
<dc:creator>msvmuthu</dc:creator>
<guid>http://chillicode.wordpress.com/2009/10/28/dynamic-queries-stored-procedures-and-sql-injections/</guid>
<description><![CDATA[As every one knows that Ad hoc dynamic queries are prone to SQL Injection attacks, I am not going to]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>As every one knows that Ad hoc dynamic queries are prone to <a href="http://technet.microsoft.com/en-us/library/ms161953.aspx" target="_blank">SQL Injection</a> attacks, I am not going to touch that. But there is still some confusion hanging over usage of dynamic sql with in a stored procedure. This is what I thought of blogging about.</p>
<p><span style="text-decoration:underline;">Point 1</span>: Using dynamic SQL with in stored procedure are prone to SQL Injection attack.</p>
<p>Other disadvantages of using dynamic SQL includes:</p>
<ol>
<li>Not readable and there for un maintainable code.</li>
<li>Execution path is not saved there fore every time a stored procedure is run execution path is calculated again and again.</li>
</ol>
<ol>But there are cases when we might need to use dynamic queries inside a stored procedure. What have to be done in this case?</ol>
<ol>To demonstrate the sql injection attacks and to give a sample how to avoid this, I created a table named test with just one column [name].</ol>
<ol>
<blockquote><p><span style="text-decoration:underline;">Table Definition</span></p>
<p>USE [ASPNETDEV]<br />
GO<br />
/****** Object:  Table [dbo].[test1]    Script Date: 10/28/2009 15:14:07 ******/<br />
SET ANSI_NULLS ON<br />
GO<br />
SET QUOTED_IDENTIFIER ON<br />
GO<br />
CREATE TABLE [dbo].[test](<br />
    [name] [nchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL<br />
) ON [PRIMARY]</p></blockquote>
<p>Insert the below values in to the table.</ol>
<ol>
<blockquote><p>insert into test values (&#8216;muthu&#8217;);</p>
<p>insert into test values (&#8216;muthu1&#8242;);</p></blockquote>
</ol>
<p><strong><span style="text-decoration:underline;">Case 1: Procedure using static query </span></strong></p>
<blockquote><p>create procedure testsi<br />
(@name nvarchar(10))<br />
as<br />
select * from test where [name]=@name</p></blockquote>
<p>when we execute the above procedure with normal parameters (‘muthu’) it brings just 1 row.</p>
<blockquote><p><strong>exec</strong> testsi &#8216;muthu&#8217;</p></blockquote>
<p>Now I give a value that introduces SQL injection as below</p>
<blockquote><p><strong>exec </strong>testsi <strong><em>&#8216;muthu&#8221;;drop table test;&#8211;&#8217;&#8217;select * from test;&#8217;</em></strong></p></blockquote>
<p>When you look in to the value passed to the parameter <em>@name ; </em>you can very well see the SQL injection in the form of &#8216;’<em>;drop table test;—. </em>As you see, this  just closes the single quote and drops the table test. Well this is sql injection.</p>
<p>But to our surprise executing this does not drop the table and promptly brings in one row.</p>
<blockquote><p>muthu</p></blockquote>
<p>Because what we passed is just a value for the column [name] and obviously we don’t have any row in the table [test] with the column [name] having value <strong><em>&#8216;muthu&#8221;;drop table test;&#8211;&#8217;&#8217;select * from test;&#8217;</em></strong></p>
<p><strong><span style="text-decoration:underline;">Case 2: Procedure with dynamic Query</span></strong> </p>
<blockquote><p>create procedure testsid<br />
(@name nvarchar(1000))<br />
as<br />
declare @sql as nvarchar(1000)<br />
<strong>set @sql=&#8217;select * from test where [name]=&#8221;&#8217; + @name + &#8221;&#8221;<br />
</strong>print @sql<br />
execute (@sql)</p></blockquote>
<p>The line given in bold is the place where we use dynamic query.</p>
<p>Now lets execute this procedure using our SQL Injection value.</p>
<blockquote><p><strong>exec</strong> <strong><em>testsid</em></strong> <span style="color:#ff0000;">&#8216;muthu&#8221;;drop table test;&#8211;&#8217;&#8217;select * from test;&#8217;</span></p></blockquote>
<p>Opps! Now the table is lost.</p>
<p>when you see the “Messages” tab in the Management Studio to your surprise it will be as follows:</p>
<blockquote><p><strong>select * from test where [name]=&#8217;muthu&#8217;;drop table test;&#8211;&#8217;select * from test;&#8217; </strong></p>
<p>(1 row(s) affected)</p></blockquote>
<p>When you separate the statement using semicolon you will get 2 statements as follows; never mind the third one is commented.</p>
<ol>
<li>select * from test where [name]=&#8217;muthu&#8217;;</li>
<li>drop table test;</li>
<li>&#8211;&#8217;select * from test;&#8217;</li>
</ol>
<p>So this is SQL injection and this doesn’t just disappear if you use stored procedure.</p>
<p><strong><span style="text-decoration:underline;">Case 3: Procedure with dynamic query and avoiding SQL injection</span></strong></p>
<p>However Microsoft has introduced a new way to run dynamic queries from the stored procedure using <a href="http://technet.microsoft.com/en-us/library/ms188001.aspx" target="_blank">sp_executesql</a>.</p>
<blockquote><p><span style="text-decoration:underline;"><strong>From <a href="http://msdn.microsoft.com/en-us/library/ms175170.aspx" target="_blank">MSDN</a>:</strong></span></p>
<p>To execute a string, we recommend that you use the sp_executesql stored procedure instead of the EXECUTE statement. Because this stored procedure supports parameter substitution, sp_executesql is more versatile than EXECUTE; and because <strong>sp_executesql generates execution plans that are more likely to be reused by SQL Server, sp_executesql is more efficient than EXECUTE.</strong></p>
<p>&#160;</p>
</blockquote>
<p>Please refer to the SQL server 2008 books online to get more information about this sp_executesql.</p>
<blockquote><p>alter procedure testside<br />
(@name nvarchar(1000))<br />
as<br />
declare @sql as nvarchar(1000)<br />
declare @ParamDefinition nvarchar(500)<br />
<span style="color:#0000ff;"><strong>set @ParamDefinition = N&#8217;@name nvarchar(1000)&#8217;<br />
</strong></span>set @sql=&#8217;select * from test where [name]=@name&#8217;</p>
<p><strong>exec <span style="color:#ff0000;">sp_executesql</span> @sql, <span style="color:#0000ff;">@ParamDefinition</span>,@name </strong></p>
<p>print @sql</p></blockquote>
<p>In the above procedure we create a dynamic parameterized  query and we pass the query, the parameter definition and the value for the parameter to sp_excutesql procedure.</p>
<blockquote><p><strong>exec</strong> testside &#8216;muthu&#8221;;drop table test;&#8211;&#8217;&#8217;select * from test;&#8217;</p></blockquote>
<p>Even though we run the procedure with SQL Injection values to our surprise the table test does not get dropped.</p>
<p>But remember just using sp_executesql will not avoid sql injection attacks. It must be used sensibly. For example an example as follows is still susceptible to sql injection.</p>
<blockquote><p><span style="text-decoration:underline;"><strong>How not to use sp_executesql?</strong></span></p>
<p>create procedure testsides<br />
(@name nvarchar(1000))<br />
as<br />
declare @sql as nvarchar(1000)<br />
declare @ParamDefinition nvarchar(500)<br />
set @ParamDefinition = N&#8217;@name nvarchar(1000)&#8217;<br />
<span style="color:#ff0000;">set @sql=&#8217;select * from test where [name]=&#8221;&#8217; + @name + &#8221;&#8221;<br />
</span>exec sp_executesql @sql, @ParamDefinition,@name</p>
<p>print @sql</p></blockquote>
<p>Even though the procedure uses “sp_executesql” it is still prone to SQL injection because it does not use parameterized query.</p>
<p>But there are times when one cannot use parameterized queries, in this case there is no way but to use dynamic query. But in this case one must take extra-ordinary steps to validate the data. This <a href="http://msdn.microsoft.com/en-us/magazine/cc163523.aspx" target="_blank">article</a> may help further understanding.</p>
<p><span style="text-decoration:underline;">Update:</span></p>
<p>A <a href="http://www.thetechherald.com/article.php/200944/4682/Researcher-discloses-SQL-Injection-flaw-on-barackobama-com-Update-2">live example </a>for sql injection attack: Barackobama.com!</p>
<p><a href="http://www.thetechherald.com/article.php/200944/4682/Researcher-discloses-SQL-Injection-flaw-on-barackobama-com-Update-2"></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Look east, StanChart exec tells Turkey]]></title>
<link>http://ayhanyilmaz.wordpress.com/2009/10/17/look-east-stanchart-exec-tells-turkey/</link>
<pubDate>Sat, 17 Oct 2009 22:45:20 +0000</pubDate>
<dc:creator>ayhanyilmaz</dc:creator>
<guid>http://ayhanyilmaz.wordpress.com/2009/10/17/look-east-stanchart-exec-tells-turkey/</guid>
<description><![CDATA[TAYLAN BİLGİÇ ISTANBUL &#8211; Hürriyet Daily News The wealth of the world is shifting from the west]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>TAYLAN BİLGİÇ<br />
ISTANBUL &#8211; Hürriyet Daily News<br />
The wealth of the world is shifting from the west to the east, according to Mike Rees, CEO of wholesale banking at Standard Chartered. ‘Turkey should look east for foreign investment,’ he says, adding that the UK bank most active in Asia, Africa and the Middle East can help it do so. The bank is waiting for regulatory approval to upgrade its presence in Turkey</p>
<div class="wp-caption alignleft" style="width: 258px"><img class=" " src="http://www.hurriyetdailynews.com/images/2009_10_16/look-east-stanchart-exec-tells-turkey-2009-10-16_l.jpg" alt="Mike Rees" width="248" height="166" /><p class="wp-caption-text">Mike Rees</p></div>
<p>&#8216;What we will bring is a unique advantage in helping Turkey look to the east,&#8217; Mike Rees says. &#8216;This is different from what other European banks can offer.&#8217;<br />
The names of many banking giants were engraved in the memories of people everywhere during the global turmoil of the past year, but Standard Chartered Bank, or SCB, a lender with operations in more than 70 countries, is not among those names.</p>
<p>Mike Rees, the chief executive officer of wholesale banking at SCB, said the “boring approach” of “firm focus on the fundamentals of banking” is the reason, but positioning itself in the world’s fastest growing markets also helped. Though based in the U.K., SCB is barely known by the common man in the West, but in Asia, Africa and the Middle East, it is a long-established financial behemoth.</p>
<p>“The tag ‘emerging markets’ was invented by those sitting in the west and looking east,” said Rees, speaking to Hürriyet Daily News &#38; Economic Review on a busy day in Istanbul during the annual summit of the International Monetary Fund and the World Bank Group. “What we are trying to be is the leading international bank in Asia, Africa and the Middle East. That is a broader definition.”</p>
<p>For Rees and SCB, the crisis heralds the rising economic power of the east over west. “All the hard work we have done in the past decade has allowed us to position ourselves in exactly the right place,” he said, smiling.</p>
<p>SCB’s robust growth during the worst days of the crisis – illustrated in a pretax profit of $4.8 billion last year, compared to $4 billion in 2007 – depends much on the bank’s “boring approach,” Rees said. “This is part of our DNA. We got reminded of it through the Asian crisis, which showed the importance of playing to you strength,” he said. “That’s why you haven’t heard much about us in the past year, and that is a good thing.”</p>
<p>SCB’s pretax profit in the first half of 2009 stood at above $2.8 billion.</p>
<p>For Rees, “longevity” lies in the fundamentals of banking. “Banking is a long-term relationship. And we are only successful if our clients are,” he said. “Last year we celebrated 150 years of continuous presence in India and China. This year, we celebrated our 150th year in Singapore and Hong Kong.”</p>
<p>“We focus very hard on our balance sheet and manage it conservatively,” he said. “Globally, we have an assets-to-deposits ratio of 78.4 percent [as of the first half of 2009], which means we have more customer deposits on our balance sheet than customer assets. Probably, it is only HSBC and us that are like that.”</p>
<p>The global financial paradox:</p>
<p>Reflecting on the global crisis, Rees described the key problem as “an increasingly globalized economy supported by a financial industry that becomes increasingly domestic.”</p>
<p>“When I talk to [executives of] multinational corporations, they voice worries about how banks will provide international financing for them,” Rees said. “Because governments that own banks now are forcing them to focus on domestic economies. Thus, a number of things get down squeezed, such as short-term trade finance and access of multinationals to international capital.”</p>
<p>Another dimension is the change the world is going through. “In 10, 20, or 30 years, the east will become increasingly dominant, while the west will become secondary,” Rees said. “Just look at China. They are pouring investments into Africa, especially into commodity-related industries. Indian companies are also investing around the world. There is considerable capital flow out of the Middle East.”</p>
<p>In accordance with such a trend, Rees said Turkey should “look east” for investment, not west. “But bear in mind that your market is the west. But the west does not have money anymore. If you track back and look where big infrastructure investments [to Turkey] are coming from, you will see that this is a sustainable trend.”</p>
<p>As a bridge between east and the west, can Istanbul really become a global financial center, as the government envisages? “Many governments have such plans, as they see an opportunity,” Rees said. “But one has to go back in history for a proper context. Why did London, Shanghai, Hong Kong and Singapore become financial centers? Because they have a heritage of being major global trade centers.”</p>
<p>Financing tends to develop around trade and Istanbul certainly has such a heritage, according to Rees. Thus, he thinks that Istanbul has to “build itself as a logistics and trade city first” and as a financial center next.</p>
<p>Waiting for green light:</p>
<p>SCB’s mantra is to become a “local bank in local markets” in the east, as “over time, four or five local banks dominate 80 percent of any market and foreign banks get squeezed out.” In the west, it aims to be able to “service flows into those markets.”</p>
<p>But in Turkey, the lender is still “in the middle.” SCB has had a presence in Turkey since 1985. In 1990, it had problems and sold some of its branch networks, only to reopen a representative office in December 2003 again. It currently has nine permanent staff based in Istanbul, led by Ethem Tuncel, the CEO of SCB Turkey.</p>
<p>“Turkey sits in the middle for us,” Rees told the Daily News. “We had bids for Oyakbank and Denizbank, but the prices were inflated. [Others] were paying European valuation levels for what is essentially an emerging market.”</p>
<p>“We continue to look for opportunities, but haven’t seen any yet,” he said. “In the meantime, we are pushing hard with regulators to upgrade our representative office to be a branch. In the short term, getting such a license is the alternative strategy.”</p>
<p>After 23 banks went bankrupt during the 2001 crisis, the Banking Regulation and Supervision Agency imposed strict rules on obtaining a license. As years passed, at least five local and some foreign institutions, including SCB, are waiting to obtain such licenses.</p>
<p>“What we will bring is a unique advantage in helping Turkey look to the east,” Rees said. “This is different from what other European banks can offer.”</p>
<p>The Turkish public may not know much about SCB, but this is not the case regarding Turkish banks. “Ask them, they will remember us,” Rees said. “They will remember that through the Asian crisis we never cut our limits with them. SCB supported them in their bad times.”</p>
<p>With a network that covers half of the Muslim world, SCB is also involved in the booming area of Islamic banking products and services. “The secular world also needs it as Islamic banking is a huge opportunity,” Rees said. “The problem with it is that there are no universally accepted rules. There’s no international Islamic banking. You cannot do a [sukuk] issue in Malaysia and sell it in Indonesia, for example. In the absence of a globally accepted set of rules, it essentially is a domestic market.” He said the Islamic board of scholars at SCB “helped Indonesia, Hong Kong and Singapore write their rules.”</p>
<p>Reminded of political concerns in Turkey related to Islamic banking, Rees said this problem exists in other countries, too. “Turkey is not that far out in line, but other countries are moving a bit quicker.”</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[T-SQL: Using result of a dynamic SQL query in a variable or table]]></title>
<link>http://smehrozalam.wordpress.com/2009/10/14/t-sql-using-result-of-a-dynamic-sql-query-in-a-variable-or-table/</link>
<pubDate>Wed, 14 Oct 2009 10:27:10 +0000</pubDate>
<dc:creator>Syed Mehroz Alam</dc:creator>
<guid>http://smehrozalam.wordpress.com/2009/10/14/t-sql-using-result-of-a-dynamic-sql-query-in-a-variable-or-table/</guid>
<description><![CDATA[Although, not a recommended practice, but sometimes we have to write our queries using dynamic SQL. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Although, not a recommended practice, but sometimes we have to write our queries using dynamic SQL. In such situations, it is generally needed to fetch the result (scalar or tabular) of dynamic SQL into the main (non-dynamic) query. This is not straight forward because dynamic SQL runs in its own scope and we cannot access the variables defined in main query. This post presents a few approaches to consume the result of a dynamic SQL query:</p>
<p><strong>sp_ExecuteSql stored procedure</strong></p>
<p>This is the most generic and powerful method of invoking dynamic SQL since it allows us to write a parameterized dynamic query with input/output parameters. Here’s a simple example of using <a href="http://msdn.microsoft.com/en-us/library/aa933299%28SQL.80%29.aspx">sp_executesql</a> to consume the result of a dynamic SQL query:</p>
<pre class="brush: sql;">

declare @today datetime
exec sp_executesql
    N'Select @internalVariable = GetDate()', --dynamic query
    N'@internalVariable DateTime output', --query parameters
    @internalVariable = @today output --parameter mapping
select @today
</pre>
<p><strong>Table variables and Temporary tables</strong></p>
<p>This method is used when we want to get a tabular result set from our dynamic query. Here’s an example to get the result of a dynamically created SQL query by using table variables:</p>
<pre class="brush: sql;">

declare @myTable table
(
    DatabaseName nvarchar(256),
    DatabaseID int,
    CreateDate datetime
)

insert into @myTable
    exec (N'select name, database_id, create_date from sys.databases') --dynamic query

select * from @myTable
</pre>
<p>Here’s the same example that uses a temporary table to fetch the result set of a dynamic SQL query:</p>
<pre class="brush: sql;">

create table #myTable
(
    DatabaseName nvarchar(256),
    DatabaseID int,
    CreateDate datetime
)

insert into #myTable
    exec (N'select name, database_id, create_date from sys.databases') --dynamic query

select * from #myTable
drop table #myTable
</pre>
<p>Since temporary tables have physical existence so we can refer to the temporary table inside our dynamic SQL query as well. Here’s an example illustrating this technique:</p>
<pre class="brush: sql;">

create table #myTable
(
    DatabaseName nvarchar(256),
    DatabaseID int,
    CreateDate datetime
)

--dynamic query
exec sp_executesql
    N'insert into #myTable
        select name, database_id, create_date from sys.databases'

select * from #myTable
drop table #myTable
</pre>
<p>Temporary tables or Table variables can also be used to fetch the result of a stored procedure. Notice that for saving this result, the columns of table variable/temporary table must match with the result of stored procedure. That is, we need to take &#8220;ALL&#8221; the columns. Here&#8217;s an example that grabs the result set from a stored procedure into a table variable.</p>
<pre class="brush: sql;">

declare @myTable table
(
    ServerName nvarchar(256),
    NetworkName nvarchar(256),
    Status nvarchar(4000),
    ID int,
    Collation nvarchar(256),
    ConnectTimeOut int,
    QueryTimeOut int
)

insert into @myTable
    exec sp_helpserver

select * from @myTable
</pre>
<p>Also, here&#8217;s an example to get result of a stored procedure using temporary table:</p>
<pre class="brush: sql;">

create table #myTable
(
    ServerName nvarchar(256),
    NetworkName nvarchar(256),
    Status nvarchar(4000),
    ID int,
    Collation nvarchar(256),
    ConnectTimeOut int,
    QueryTimeOut int
)

insert into #myTable
    exec sp_helpserver

select * from #myTable
drop table #myTable
</pre>
<p>Thats all from me. Let me know if you have any more solutions.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Dica rápida: Executar um arquivo batch através do PHP]]></title>
<link>http://tidoc.wordpress.com/2009/10/13/dica-rapida-executar-um-arquivo-batch-atraves-do-php/</link>
<pubDate>Tue, 13 Oct 2009 18:50:46 +0000</pubDate>
<dc:creator>Fernando Libório</dc:creator>
<guid>http://tidoc.wordpress.com/2009/10/13/dica-rapida-executar-um-arquivo-batch-atraves-do-php/</guid>
<description><![CDATA[Uma dica rápida pra quem está tentando executar um arquivo .bat usando o php. Dê permissão ao usuári]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Uma dica rápida pra quem está tentando executar um arquivo .bat usando o php. Dê permissão ao usuário do apache ou IIS para executar o cmd.exe, feito isso, chame o seu bat usando como ponte  prompt de comando: <em><strong>exec(&#8220;cmd.exe \c arquivo.bat&#8221;)</strong></em></p>
<p>Lembre-se que seu script batch não deve ter interação com o usuário <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Abrasss</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Wordpress plugins Execute in PHP]]></title>
<link>http://sadhas.wordpress.com/2009/10/06/wordpress-plugins-execute-in-php/</link>
<pubDate>Tue, 06 Oct 2009 11:09:46 +0000</pubDate>
<dc:creator>Sathasivam</dc:creator>
<guid>http://sadhas.wordpress.com/2009/10/06/wordpress-plugins-execute-in-php/</guid>
<description><![CDATA[The Exec-PHP plugin executes PHP code in posts, pages and text widgets. Features: Executes PHP code ]]></description>
<content:encoded><![CDATA[The Exec-PHP plugin executes PHP code in posts, pages and text widgets. Features: Executes PHP code ]]></content:encoded>
</item>
<item>
<title><![CDATA[findgrep: Rekursive Textsuche (shell script)]]></title>
<link>http://linuxnetz.wordpress.com/2009/10/03/findgrep0-2/</link>
<pubDate>Sat, 03 Oct 2009 11:23:17 +0000</pubDate>
<dc:creator>linuxnetzer</dc:creator>
<guid>http://linuxnetz.wordpress.com/2009/10/03/findgrep0-2/</guid>
<description><![CDATA[Ende Juli veröffentlichte ich das Skript &#8220;findgrep&#8221;, das mit Hilfe von &#8220;find]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Ende Juli veröffentlichte ich das Skript &#8220;findgrep&#8221;, das mit Hilfe von &#8220;find&#8221; und &#8220;grep&#8221; Verzeichnisse rekursiv nach Textmustern durchsucht.</strong></p>
<div class="wp-caption alignleft" style="width: 136px"><a href="http://commons.wikimedia.org/wiki/File:Lupe_kl.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/5/50/Lupe_kl.jpg" alt="Für Lizenz: Bild klicken" width="126" height="126" /></a><p class="wp-caption-text"> Lizenz:Creative Commons Attribution ShareAlike 3.0; (click pic for details)</p></div>
<p>Der dazu erschienene Artikel (samt Skript für die bash) hat sich inzwischen zu einem der meistaufgerufenen Artikel  dieses Blogs gemausert. Auch bei den Suchanfragen, über die dieses Blog gefunden wird, stehen Ausdrücke wie &#8220;find und grep rekursiv&#8221; oft ganz oben auf der Hitliste. Bevor ich das Skript zusammengeschustert hatte, war ich auch eine gute Weile mit Recherche beschäftigt, ohne auf die Schnelle eine passende Lösung zu finden.</p>
<p>Deshalb habe ich das Skript in den letzten Wochen auf meinem Klapprechner  überarbeitet. Das Resultat, &#8220;findgrep Version 0.2&#8243; kann weiter unten heruntergeladen werden.</p>
<div id="attachment_804" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-804" title="findgrep4_start" src="http://linuxnetz.wordpress.com/files/2009/09/findgrep4_start1.png" alt="findgrep v4: Verzeichnisse rekursiv nach Text durchsuchen" width="448" height="270" /><p class="wp-caption-text">findgrep v 0.2: Verzeichnisse rekursiv nach Text durchsuchen</p></div>
<p><strong>Verbesserungen:</strong></p>
<ul>
<li>Die gefilterten Ergebnisse werden ja in einer Textdatei (Variable $SAVEFILE) gespeichert. War diese Datei jedoch unterhalb des Suchverzeichnisses angesiedelt, suchte sich findgrep einen Wolf, da es die bereits gefundenen Ergebnisse erneut als Treffer anzeigte. Dieser Bug wurde behoben.</li>
<li>Bisher musste der Nutzer nach jedem Start des Programms den Suchpfad angeben. Zusätzlich hat der Nutzer nun die Möglichkeit, durch &#8220;ENTER&#8221; das Standardverzeichnis zu bestätigen (Standard: /var/log)  Zum Ändern einfach die Variable $SEARCHDIR im Skript anpassen.</li>
<li>Sowohl bei der Auswahl als auch bei der Präsentation der Ergebnisse wurde das Programm grafisch anschaulicher aufpoliert</li>
<li>findgrep zeigt nun die Anzahl der gefundenen Matches an</li>
</ul>
<div id="attachment_814" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-814" title="findgrep4_resultss" src="http://linuxnetz.wordpress.com/files/2009/09/findgrep4_resultss1.png" alt="findgrep: Suche nach &#34;warning&#34; in /var/log beendet ..." width="450" height="276" /><p class="wp-caption-text">findgrep: Suche nach &#34;warning&#34; in /var/log beendet ...</p></div>
<p><strong><span style="color:#000000;">Download findgrep v 0.2:</span> </strong>Bitte <a href="http://tinyurl.com/ybpxs3s" target="_blank">hier klicken</a> und mit copy und paste holen. Rechtsklick und &#8220;Speichern unter &#8230;&#8221; funktioniert nicht.</p>
<p><strong></strong>Das Skript ist für Ubuntu getestet. Manche Versionen von grep kennen die Option &#8220;color&#8221; nicht und brechen das Skript mit Fehlermeldung ab. Äh, ach ja: Der nette junge Herr oben bin nicht ich. Ich fand das Bild nur passend zum Thema und habe es auf <a href="http://commons.wikimedia.org/wiki/Main_Page">Wikimedia </a>gefunden.</p>
<p><a href="http://linuxnetz.wordpress.com/?s=findgrep">Alle findgrep Artikel</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[GM's Volt Exec Self-Discharges]]></title>
<link>http://pkrf1end.wordpress.com/2009/10/01/gms-volt-exec-self-discharges/</link>
<pubDate>Thu, 01 Oct 2009 22:14:26 +0000</pubDate>
<dc:creator>pkrf1end</dc:creator>
<guid>http://pkrf1end.wordpress.com/2009/10/01/gms-volt-exec-self-discharges/</guid>
<description><![CDATA[Bob Kruse, who recently led a critical Chevrolet Volt team and devised the automaker&#8217;s long-te]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div style="margin-bottom:10px;border:1px solid #ccc;width:202px;height:142px;background-image:url('http://images.websnapr.com/?size=s&#38;url=http://detnews.com/article/20090930/AUTO01/909300326/GM-s-top-electric-car-exec-quits');"></div>
<p>Bob Kruse, who recently led a critical Chevrolet Volt team and devised the automaker&#8217;s long-term electric vehicle strategy, has resigned months before the vehicle&#8217;s debut. </p>
<blockquote><p><em>Kruse&#8217;s resignation, effective today, comes at a crucial time for General Motors Co., which is banking on the Volt to change public perceptions of the company and also help meet</em></p></blockquote>
<p>Source:<br /><a href='http://detnews.com/article/20090930/AUTO01/909300326/GM-s-top-electric-car-exec-quits'>http://detnews.com/article/20090930/AUTO01/909300326/GM-s-top-electric-car-exec-quits</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ANZ hires former Westpac exec]]></title>
<link>http://bankingandfinances.wordpress.com/2009/09/28/anz-hires-former-westpac-exec-2/</link>
<pubDate>Mon, 28 Sep 2009 20:52:38 +0000</pubDate>
<dc:creator>bankingandfinances</dc:creator>
<guid>http://bankingandfinances.wordpress.com/2009/09/28/anz-hires-former-westpac-exec-2/</guid>
<description><![CDATA[THE ANZ Bank has recruited veteran banker Phil Chronican to drive the Australian strategy of the ban]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> THE ANZ Bank has recruited veteran banker Phil Chronican to drive the Australian strategy of the bank in a hiring coup that has been described as a &#8220;an adrenalin shot&#8221; that will boost momentum for the domestic banking business.</p>
<p> Mr Chronican, 52, left Westpac in June after a 27-year career at the bank that ended after Gail Kelly beat him to the chief executive position after his close ally David Morgan retired. He was Westpac&#8217;s head of institutional banking, after previously serving as chief financial officer. </p>
<p> Mr Chronican will become the Australian chief executive of ANZ reporting directly to chief executive Mike Smith, and fills the void left when Brian Hartzer defected to be head of retail banking at the Royal Bank of Scotland earlier this year. </p>
<p> Mr Chronican will start his job in November. He is understood to have been on a short list of three for the position. </p>
<p> &#8220;I have had my eye on him for some time,&#8221; Mr Smith said. </p>
<p> &#8220;I have known Phil a long time and he will be the right sort of mix for our organisation. </p>
<p> &#8220;We have rebuilt the management team and I just felt that he would fit very well.&#8221; </p>
<p> Mr Chronican&#8217;s appointment to a primarily retail banking position has surprised some observers, given his most recent focus on institutional business.</p>
<p>  But Mr Smith said Mr Chronican had a diversity of experience, after working across the banking spectrum at Westpac. </p>
<p> &#8220;At Westpac he was primarily involved in corporate and institutional banking but he has been a long-term banker,&#8221; he said. </p>
<p> &#8220;He has come up through the retail side, through the corporate side, through the finance side. He is like me, he has done a bit of everything.&#8221; </p>
<p> One of Mr Chronican&#8217;s first duties will be to increase ANZ&#8217;s share of the new mortgage market, which along with traditional rival NAB, has ground to a halt. </p>
<p> Westpac and CBA now account for almost 70 per cent of all new home loans. </p>
<p> UBS analyst Jonathan Mott said Mr Chronican&#8217;s appointment was a good move that would help reinvigorate ANZ&#8217;s retail business and distribution networks that could improve the mortgage market share. </p>
<p> &#8220;Phil brings with him a reputation as one of Australia&#8217;s leading bankers following his extended career at Westpac,&#8221; Mr Mott said. </p>
<p> &#8220;We believe that his skills and experience will provide an adrenalin boost to ANZ&#8217;s Australian operations which have lost momentum in recent times since the exit of Brian Hartzer.&#8221; </p>
<p> The market is starting to pay attention to ANZ&#8217;s strategy of diversifying its business geographically by focusing on growth in Asia and has given the thumbs up to its $1.9 billion purchase last week of wealth management business ING, but the Australian retail business is generally perceived as the group&#8217;s weak spot. </p>
<p> ANZ has market share of about 13 per cent in retail banking. </p>
<p> With Mr Chronican now named, the last major executive Mr Smith has to fill a team it has taken almost two years to build is the ANZ chief information officer. </p>
<p> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ANZ hires former Westpac exec]]></title>
<link>http://bankingandfinances.wordpress.com/2009/09/28/anz-hires-former-westpac-exec/</link>
<pubDate>Mon, 28 Sep 2009 20:52:03 +0000</pubDate>
<dc:creator>bankingandfinances</dc:creator>
<guid>http://bankingandfinances.wordpress.com/2009/09/28/anz-hires-former-westpac-exec/</guid>
<description><![CDATA[THE ANZ Bank has recruited veteran banker Phil Chronican to drive the Australian strategy of the ban]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> THE ANZ Bank has recruited veteran banker Phil Chronican to drive the Australian strategy of the bank in a hiring coup that has been described as a &#8220;an adrenalin shot&#8221; that will boost momentum for the domestic banking business.</p>
<p> Mr Chronican, 52, left Westpac in June after a 27-year career at the bank that ended after Gail Kelly beat him to the chief executive position after his close ally David Morgan retired. He was Westpac&#8217;s head of institutional banking, after previously serving as chief financial officer. </p>
<p> Mr Chronican will become the Australian chief executive of ANZ reporting directly to chief executive Mike Smith, and fills the void left when Brian Hartzer defected to be head of retail banking at the Royal Bank of Scotland earlier this year. </p>
<p> Mr Chronican will start his job in November. He is understood to have been on a short list of three for the position. </p>
<p> &#8220;I have had my eye on him for some time,&#8221; Mr Smith said. </p>
<p> &#8220;I have known Phil a long time and he will be the right sort of mix for our organisation. </p>
<p> &#8220;We have rebuilt the management team and I just felt that he would fit very well.&#8221; </p>
<p> Mr Chronican&#8217;s appointment to a primarily retail banking position has surprised some observers, given his most recent focus on institutional business.</p>
<p>  But Mr Smith said Mr Chronican had a diversity of experience, after working across the banking spectrum at Westpac. </p>
<p> &#8220;At Westpac he was primarily involved in corporate and institutional banking but he has been a long-term banker,&#8221; he said. </p>
<p> &#8220;He has come up through the retail side, through the corporate side, through the finance side. He is like me, he has done a bit of everything.&#8221; </p>
<p> One of Mr Chronican&#8217;s first duties will be to increase ANZ&#8217;s share of the new mortgage market, which along with traditional rival NAB, has ground to a halt. </p>
<p> Westpac and CBA now account for almost 70 per cent of all new home loans. </p>
<p> UBS analyst Jonathan Mott said Mr Chronican&#8217;s appointment was a good move that would help reinvigorate ANZ&#8217;s retail business and distribution networks that could improve the mortgage market share. </p>
<p> &#8220;Phil brings with him a reputation as one of Australia&#8217;s leading bankers following his extended career at Westpac,&#8221; Mr Mott said. </p>
<p> &#8220;We believe that his skills and experience will provide an adrenalin boost to ANZ&#8217;s Australian operations which have lost momentum in recent times since the exit of Brian Hartzer.&#8221; </p>
<p> The market is starting to pay attention to ANZ&#8217;s strategy of diversifying its business geographically by focusing on growth in Asia and has given the thumbs up to its $1.9 billion purchase last week of wealth management business ING, but the Australian retail business is generally perceived as the group&#8217;s weak spot. </p>
<p> ANZ has market share of about 13 per cent in retail banking. </p>
<p> With Mr Chronican now named, the last major executive Mr Smith has to fill a team it has taken almost two years to build is the ANZ chief information officer. </p>
<p> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[NYT Co. retracts exec options, issues correction (AP)]]></title>
<link>http://marketsnewss.wordpress.com/2009/09/20/nyt-co-retracts-exec-options-issues-correction-ap/</link>
<pubDate>Sun, 20 Sep 2009 23:46:32 +0000</pubDate>
<dc:creator>marketsnewss</dc:creator>
<guid>http://marketsnewss.wordpress.com/2009/09/20/nyt-co-retracts-exec-options-issues-correction-ap/</guid>
<description><![CDATA[NEW YORK (AP) &#8212; The New York Times Co. issued an unusual correction Friday to fix a mistake th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>NEW YORK (AP) &#8212; The New York Times Co. issued an unusual correction Friday to fix a mistake that indicated the newspaper publisher&#8217;s board of directors didn&#8217;t know the company&#8217;s rules governing executive compensation.</p>
<p>The admission involved stock option awards and other incentives handed out in the past 19 months to Janet Robinson and Arthur Sulzberger Jr., the Times Co.&#8217;s top two executives. In addressing the problems, the company took steps <!--more-->to ensure both Robinson, the company&#8217;s chief executive, and Sulzberger, its longtime chairman, will still have a chance to make almost as much money as the board originally intended. </p>
<p> <a href="http://wbusinessnews.blogspot.com/2009/08/nashville-based-prison-operator-cca.html" rel="bookmark" title="Nashville-based prison operator CCA will get new CEO">Nashville-based prison operator CCA will get new CEO</a><a href="http://marketsnewss.wordpress.com/2009/07/15/heritage-oil-up-on-talk-of-shell-making-bid/" rel="bookmark" title="Heritage Oil up on talk of Shell making bid">Heritage Oil up on talk of Shell making bid</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ökad medlemsnytta och snabba tåg]]></title>
<link>http://johantrouve.wordpress.com/2009/09/14/okad-medlemsnytta-och-snabba-tag/</link>
<pubDate>Mon, 14 Sep 2009 20:46:56 +0000</pubDate>
<dc:creator>johantrouve</dc:creator>
<guid>http://johantrouve.wordpress.com/2009/09/14/okad-medlemsnytta-och-snabba-tag/</guid>
<description><![CDATA[Idag hade vi ett internt möte om hur vi kan öka medlemsnyttan, bl a genom att bli mer glokala. Det i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Idag hade vi ett internt möte om hur vi kan öka medlemsnyttan, bl a genom att bli mer glokala. Det innebär att de rapporter vi tar fram inom det politiska området skall vara möjliga att bryta ner på regional nivå. Det innebär att fakta kan användas för Sjuhärad, Skaraborg och Fyrbodal. Jag tror att vi även skulle kunna ha fler medlemsmöten i aktuella frågor. Ytterligare en idé är att &#8220;turnera&#8221; med ett antal av våra kompetenser, så att vi lokalt kan stödja och hjälpa till med att utveckla lokala företag. Inte minst sprida vilka kompetenser som finns inom handelskammaren. Vi ska testa ett antal olika nya grepp så får vi utvärdera det efteråt, inga fler utredningar&#8230;.från ord till handling!</p>
<p>Hade möte med två av våra duktiga mentorer imorse. Två härliga entrepenörer som har varit med och startat och utvecklat många företag. Fantastiska personer som är goda inspiratörer för våra nätverksdeltagare i Exec. Vi har en mentor på en grupp av 10-12 personer och med så bra mentorer är jag övertygad om att dessa personer utvecklas och får nya värdefulla kontakter.</p>
<p>Utredningen om höghastighetståg kom idag. Intressant att utredaren Malm föreslår tåg som går över 300 km/timme, mellan Stockholm-Göteborg/Malmö. För oss är länken mellan Göteborg-Jönköping via Landvetter flygplats och Borås viktigast. Trist att det ska ta så lång tid innan utbyggnaden är färdig. Sverige är för långsamma!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Twitter Hires More Exec Firepower]]></title>
<link>http://ecommercesnews.wordpress.com/2009/09/04/twitter-hires-more-exec-firepower/</link>
<pubDate>Fri, 04 Sep 2009 00:34:25 +0000</pubDate>
<dc:creator>ecommercesnews</dc:creator>
<guid>http://ecommercesnews.wordpress.com/2009/09/04/twitter-hires-more-exec-firepower/</guid>
<description><![CDATA[Twitter is really trying to become the company that everyone has it pegged to be, or at least it see]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>
<p><img src="http://www.marketingpilgrim.com/wp-content/uploads/2009/06/Twitter-Bird-Goofy.jpg" alt="Twitter Hires More Exec Firepower" /></p>
<p> Twitter is really trying to become the company that everyone has it pegged to be, or at least it seems that way by their hiring tactics as of late. While the media daily predicts the emergence / unfettered growth / imminent doom of the micro-blogging service daily (are you sick of it yet?) Twitter goes about its merry way showing signs of brilliance (rapid growth) and signs of “WTF?!” (outages).</p>
<p> The latest attempt to move to the next level, according to TechCrunch, is the hiring of Feedburner co-founder and CEO Dick Costolo as the new COO of Twitter. Costolo left Google in July after spending enough time with Feedburner’s new owners to watch them drop the ball. What makes this hire significant (aside from Costolo being an early investor in Twitter) according to TC’s Michael Arrington is</p>
<p> Costolo, who is also an early Twitter investor, is someone who has actual experience building scalable infrastructures, which Twitter sorely needs. The company hasn’t launched any new features in recent memory, and continues to have regular downtime. In fact, Twitter’s inability to build features and keep the service live is a serious competitive disadvantage. Costolo can presumably fix all that.</p>
<p> So here we are living out another day in the never ending soap opera of hope and flame-outs that is Twitter. From the confusion of “How does thing work for business?” to the predictions that the service is woefully undervalued and underhyped and all stops in between, everyone wants in on the Twitter phenomenon. Fortunately, it looks like Twitter is taking notice as well by hiring the likes of Costolo. They recently hired Google’s top legal ace as well.</p>
<p> So Twitter is still busy in the background trying to get the right people on the bus. Stay tuned as something is likely to change or be predicted in the next 15 seconds or so that will keep everyone busy for another short period of time.</p>
<p><img src="http://www.marketingpilgrim.com/wp-content/uploads/2009/08/trackur-icon.jpg" alt="Twitter Hires More Exec Firepower" /></p>
<p> Social Media Monitoring in Just 60-Seconds. Guaranteed!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[An interesting tale of filehandles]]></title>
<link>http://qwandor.wordpress.com/2009/08/17/an-interesting-tale-of-filehandles/</link>
<pubDate>Mon, 17 Aug 2009 10:25:06 +0000</pubDate>
<dc:creator>qwandor</dc:creator>
<guid>http://qwandor.wordpress.com/2009/08/17/an-interesting-tale-of-filehandles/</guid>
<description><![CDATA[I just found an interesting bug, so I thought it might be worthwhile to share it with these intertub]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I just found an interesting bug, so I thought it might be worthwhile to share it with these intertubes to prevent other people from making the same mistake.</p>
<p>I was just transferring some more music onto my iPhone with <a href="http://amarok.kde.org/">Amarok</a> while at the same time listening to music. I wanted to listen to a particular track (from a Moby album I bought recently), so stopped and switched to that, but Amarok would not play it and complained about the sound device being busy. This seemed rather odd as it had just been playing fine until I tried to change tracks. Wanting to get to the bottom of this, I checked who had what open:<br />
<code><br />
andrew@rata:~$ sudo lsof /dev/snd/*<br />
lsof: WARNING: can't stat() fuse.sshfs file system /media/iphone<br />
      Output information may be incomplete.<br />
COMMAND   PID   USER   FD   TYPE DEVICE SIZE NODE NAME<br />
timidity 4162   root    6u   CHR  116,1      4973 /dev/snd/seq<br />
kmix     4511 andrew   10u   CHR  116,0      5260 /dev/snd/controlC0<br />
ssh      5605 andrew   16u   CHR  116,0      5260 /dev/snd/controlC0<br />
ssh      5605 andrew   33r   CHR 116,33      4954 /dev/snd/timer<br />
ssh      5605 andrew   39u   CHR 116,16      5236 /dev/snd/pcmC0D0p<br />
ssh      5605 andrew   41u   CHR  116,0      5260 /dev/snd/controlC0<br />
sshfs    5609 andrew   16u   CHR  116,0      5260 /dev/snd/controlC0<br />
sshfs    5609 andrew   33r   CHR 116,33      4954 /dev/snd/timer<br />
sshfs    5609 andrew   39u   CHR 116,16      5236 /dev/snd/pcmC0D0p<br />
sshfs    5609 andrew   41u   CHR  116,0      5260 /dev/snd/controlC0<br />
</code><br />
I should point out at this point that the way I get Amarok to sync music to my (jailbroken) iPhone is to <a href="http://fuse.sourceforge.net/">FUSE</a>-mount the iPhone via SFTP over the network, so that is why SSH was running. But on with the story.</p>
<p>SSH had my sound device open‽ What? That seemed very odd. I wondered whether perhaps there was some new SSH feature I had not heard about to forward sound over the network connection (as it can do for GUI applications using X11), but there I could find no mention of such a feature in the manpage or via Google, nor any possible reason why it might want to open a sound device. I asked <a href="http://blog.cons.org.nz/" rel="friend met colleague">lorne</a>, and he was equally confused, but suggested a few things to check.</p>
<p>After a bit of poking around I discovered that I could not replicate this behaviour by mounting the filesystem myself, only when Amarok did it. This prompted a realisation of what must be happening: when Amarok launches <tt>sshfs</tt> to mount the iPhone filesystem, it presumably does a <tt>fork</tt> and <tt>exec</tt> to start the new process. But when you do this, the new process inherits all the open file handles of the parent process. Amarok of course had the sound device open to play the music I was listening to originally, so <tt>sshfs</tt> and subsequently <tt>ssh</tt> ended up with the same device file open. Amarok must then have closed it and tried to reopen it when I switched tracks, and this failed because the other processes it had launched still had it open. Of course.</p>
<p>So, lesson of the day: when you <tt>fork</tt>, remember to close any excess files before you <tt>exec</tt>. Especially if they are device files or other special files.</p>
<p>I should probably file a bug report for Amarok, but I am not sure that I can be bothered.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Bank exec breaks his silence]]></title>
<link>http://bankingandfinances.wordpress.com/2009/08/16/bank-exec-breaks-his-silence/</link>
<pubDate>Sun, 16 Aug 2009 15:25:02 +0000</pubDate>
<dc:creator>bankingandfinances</dc:creator>
<guid>http://bankingandfinances.wordpress.com/2009/08/16/bank-exec-breaks-his-silence/</guid>
<description><![CDATA[STEVE Targett came to the ANZ Bank with a strong international banking pedigree and hopes of becomin]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> STEVE Targett came to the ANZ Bank with a strong international banking pedigree and hopes of becoming the bank&#8217;s next chief executive.</p>
<p> Instead, the career banker left the institution just three years later with his reputation shredded and his corporate career in Australia virtually finished. </p>
<p> &#8220;You Google my name and it&#8217;s all there,&#8221; Targett says in his first interview since his bitter exit from the bank on June 7, 2007. &#8220;It&#8217;s something I have to live with but it just seems unfair. </p>
<p> &#8220;ANZ are first class at spinning issues to the media. </p>
<p> &#8220;It&#8217;s pretty much impossible for me to get a job in Australia, which may or may not be a bad thing.&#8221; </p>
<p> Targett is now in the fight of his life to save his reputation, locked in a multi-million-dollar legal battle with ANZ. </p>
<p> &#8220;You take on a big organisation and the largest legal firms won&#8217;t touch you,&#8221; he told The Australian. &#8220;Most global search firms won&#8217;t touch you and so on, because ANZ are a big, important wallet to them. </p>
<p> &#8220;It&#8217;s a very lonely place at the moment. I&#8217;ve taken on a very tough path.&#8221; </p>
<p> Targett is suing ANZ for allegedly misleading and deceptive conduct and breach of contract. </p>
<p> He claims the bank misled him about the state of the institutional business and that he was lured away from a top job in Britain with the alleged promise he might succeed former ANZ chief executive John McFarlane. Targett missed out on the chief executive role, which went to HSBC Asia-Pacific boss Mike Smith, who joined after Targett left. </p>
<p> His departure from ANZ in June 2007 was bittersweet. Only a few weeks later Targett&#8217;s son Matt was competing in Australian swimming events in his quest to go to the Olympic Games. </p>
<p> For two years Targett has stayed silent about his unceremonious departure. He is now ready to tell his side of the story. </p>
<p> Targett describes ANZ&#8217;s culture as &#8220;a little too collaborative&#8221;, &#8220;clubby&#8221; and &#8220;lacking discipline&#8221;. </p>
<p> From the outside, ANZ appeared to be hitting all the right notes. At the time, it was the darling of the banking sector, delivering stunning profit numbers year after year. </p>
<p> But Targett offers a different perspective. </p>
<p> &#8220;I felt that going into an economic downturn, the culture at ANZ would have been a problem, because it was an ill-disciplined business culture,&#8221; he says. &#8220;Lots of meetings, lots of talk, lots of people feeling good about each other. Not enough discussions on clients, deals and competitors. </p>
<p> &#8220;I just felt it lacked a little bit of a hard edge, but you weren&#8217;t popular for saying that.&#8221; </p>
<p> For Targett, the career-ending moment came on April 26. </p>
<p> McFarlane let it be known publicly that he was unhappy with the performance of the institutional business. Handing down his final interim profit, McFarlane said the result would have been an &#8220;absolute stunner&#8221; if not for an inferior performance by the institutional division. </p>
<p> &#8220;At the time I knew my career at ANZ was over,&#8221; Targett says, but adds that ANZ chairman Charles Goode remained supportive. </p>
<p> Targett is keen to set the record straight on a number of facts. For one, he insists he was not sacked. </p>
<p> Targett claims he initiated the separation, and sought to leave the bank on terms he claims had been agreed to before he joined ANZ.</p>
<p>  He also defends the performance of the institutional business under his watch, saying that on average he &#8220;exceeded the net profit-after-tax target that was given to me on a stretch basis over the three-year period, without any new investment in the business&#8221;. </p>
<p> Targett says McFarlane didn&#8217;t see him as ANZ&#8217;s next chief executive, and they had &#8220;very different leadership styles&#8221;. </p>
<p> &#8220;He probably knows that I would have changed a lot of things that he did, whereas &#8212; and this is only a guess &#8212; he would have preferred Brian Hartzer as his internal replacement,&#8221; Targett says. &#8220;I think he saw Brian as a better candidate and a smoother transition.&#8221; </p>
<p> McFarlane and Targett differed over more than just banking matters. &#8220;You&#8217;ve read in the press (that) John liked things like feng shui,&#8221; Targett says. &#8220;He loved that sort of stuff. I guess I am a different person. It worked for him but it wasn&#8217;t for me. </p>
<p> &#8220;I didn&#8217;t need to see the feng shui consultant come around and put little elephants in the corner of my office and tell me to give money to 10 beggars in 10 days and the like, otherwise I would have bad luck. I&#8217;m not that sort of person.&#8221; </p>
<p> Had he ascended to the top job at ANZ, Targett says he would have made changes, including the Asian strategy. </p>
<p> &#8220;ANZ have talked a lot about growth in Asia but they&#8217;re trying to grow on a shoestring,&#8221; he said. </p>
<p> &#8220;I would have either focused on getting only a few countries right or really trying to acquire something of scale. </p>
<p> &#8220;I actually think the only way ANZ can succeed in Asia is to acquire something cheaply.&#8221; </p>
<p> Targett says that because the internal focus was on earnings growth there were &#8220;a lot of short cuts taken&#8221; in terms of processes, back office and technology spend. </p>
<p> &#8220;I would have had a decent go to try to fix that because you run too much operational risk if you don&#8217;t spend adequate investment dollars and constantly try to cut corners and grow your revenue line,&#8221; he says. </p>
<p> &#8220;However, to say that money needed to be spent on technology and processes and sorting out the back office, can indicate that people before you haven&#8217;t done things thoroughly, so I think gaining the right levels of investment to address these problems would have been a hard sell to the board.&#8221; </p>
<p> He also says ANZ&#8217;s wealth management strategy needs an overhaul when the ING joint venture agreement expires &#8212; &#8220;unwinding the joint venture with ING and upgrading the Private Bank&#8221;. </p>
<p> </p>
<p> <!--more--> </p>
<p> <a href="http://bankingandfinances.wordpress.com/2009/08/16/anz-ran-unacceptable-risks/" rel="bookmark" title="ANZ &#8216;ran unacceptable risks&#8217;">ANZ &#8216;ran unacceptable risks&#8217;</a><a href="http://ecommercesnews.wordpress.com/2009/07/15/free-webinar-tap-into-the-hidden-economic-stimulus/" rel="bookmark" title="Free Webinar: Tap Into the Hidden Economic Stimulus">Free Webinar: Tap Into the Hidden Economic Stimulus</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Redirection on unix]]></title>
<link>http://oraclespin.wordpress.com/2009/08/15/redirection-on-unix/</link>
<pubDate>Sun, 16 Aug 2009 01:18:13 +0000</pubDate>
<dc:creator>Amin Jaffer</dc:creator>
<guid>http://oraclespin.wordpress.com/2009/08/15/redirection-on-unix/</guid>
<description><![CDATA[Redirecting stdout and stderr ls &gt; file &#8211; redirect output to file ls 2&gt; err &#8211; redi]]></description>
<content:encoded><![CDATA[Redirecting stdout and stderr ls &gt; file &#8211; redirect output to file ls 2&gt; err &#8211; redi]]></content:encoded>
</item>
<item>
<title><![CDATA[Tour De France for Wall Street Exec]]></title>
<link>http://successories.wordpress.com/2009/08/12/tour-de-france-for-wall-street-exec/</link>
<pubDate>Wed, 12 Aug 2009 13:30:12 +0000</pubDate>
<dc:creator>successories</dc:creator>
<guid>http://successories.wordpress.com/2009/08/12/tour-de-france-for-wall-street-exec/</guid>
<description><![CDATA[The race goes not always to the swift but to those who keep running. You have powers you never dream]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_572" class="wp-caption alignleft" style="width: 243px"><a href="http://www.successories.com/product/motivational+posters/motivational+posters/essence+of+.../persistence+framed+motivational+poster.do?sortby=bestSellers&#38;s_cid=WP_Post"><img class="size-full wp-image-572" title="Runner" src="http://successories.wordpress.com/files/2009/08/runner1.jpg" alt="The race goes not always to the swift but to those who keep running. You have powers you never dreamed of. You are capable of doing things you never thought possible. There are no limitations on what you can do." width="233" height="256" /></a><p class="wp-caption-text">The race goes not always to the swift but to those who keep running. You have powers you never dreamed of. You are capable of doing things you never thought possible. There are no limitations on what you can do.</p></div>
<p>If this doesn’t inspire you to get off your you know what, I don’t know what will. Evelyn Stevens was a typical wall street exec, before getting on a bike one day and discovering she had an incredible hidden talent. This week she is competing in the Tour De France with under a year of formal training under her belt, a feat that is as extraordinary as it is unusual.  Read her story, as profiled in the <a href="http://online.wsj.com/article/SB10001424052970204908604574334741597350028.html" target="_blank">Wall Street Journal</a> and get inspired to think outside your comfort zone and try something, you may not find your way to being an elite athlete, but you may find your hidden talent, and more importantly have some fun!</p>
<p class="MsoNormal" style="text-align:center;">
<p class="MsoNormal" style="text-align:center;"><a href="http://www.successories.com/?s_cid=WP_Link" target="_self">Successories</a> on <a href="http://www.twitter.com/successories" target="_blank">Twitter</a> and <a href="http://www.facebook.com/successories" target="_blank">Facebook</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SocGen exec named in inside trade case]]></title>
<link>http://bankingandfinances.wordpress.com/2009/08/09/socgen-exec-named-in-inside-trade-case/</link>
<pubDate>Sun, 09 Aug 2009 12:43:20 +0000</pubDate>
<dc:creator>bankingandfinances</dc:creator>
<guid>http://bankingandfinances.wordpress.com/2009/08/09/socgen-exec-named-in-inside-trade-case/</guid>
<description><![CDATA[JEAN-PIERRE Mustier, the highflying banker who headed Societe Generale&#8217;s investment banking ar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> JEAN-PIERRE Mustier, the highflying banker who headed Societe Generale&#8217;s investment banking arm when the French bank was rocked by a trading scandal in 2008, is stepping down after being named in an insider-trading investigation.</p>
<p> The inquiry by France&#8217;s stockmarket regulator into alleged insider trading by Mr Mustier did not relate to the &#8364;4.9 billion ($8.4bn) trading scandal, according to the bank, which gave no further details of the investigation. </p>
<p> Mr Mustier rejected the insider trading allegations, SocGen added. A lawyer for Mr Mustier, Jean Veil, said the &#8220;probe has absolutely nothing to do with the (Jerome) Kerviel affair&#8221;, referring to the trading scandal. </p>
<p> As part of its insider-trading probe, the French stockmarket watchdog wants to determine whether Mr Mustier knew that the sub-prime mortgage crisis would hit the bank hard when he sold half of the SocGen shares he owned on August 21, 2007, a person familiar with the probe said.</p>
<p> By selling some SocGen shares before the bank disclosed sub-prime related losses, the market watchdog suspects that Mr Mustier may have locked in gains of between &#8364;50,000 and &#8364;200,000, the person said. </p>
<p> Mr Mustier already had been expected to leave the bank by year&#8217;s end. Still, the regulator&#8217;s probe marks an unfortunate close to the 22-year career of a man who once was expected to end up with the bank&#8217;s top job. The son of a surgeon, Mr Mustier joined SocGen in 1987 and took over the corporate and investment-bank division in 2003. </p>
<p> He led a largely successful push to make SocGen a top player in the cutting edge niche of equity derivatives and certain areas of fixed income. </p>
<p> Last year, however, Mr Mustier became the point man in answering questions about the bank&#8217;s shocking twin announcements that were made on January 2008: for &#8364;2.05 billion in writedowns on mortgage securities or credit exposure and, more significantly, a &#8364;4.9bn trading loss racked up at the hands of trader Jerome Kerviel. </p>
<p> In the wake of the trading scandal, Mr Mustier had offered his resignation, but it had been rejected on the grounds that he needed to help SocGen get back on-track. In subsequent months, the bank had put Mr Mustier in charge of the asset-management and investor-services division. </p>
<p> In its statement yesterday, SocGen also said that Robert Day, a non-executive director, was also under investigation by the French regulator for alleged insider trading, and that he had also rejected the allegations. </p>
<p> The bank said the proceedings against Mustier and Day came in the wake of an investigation, started in 2008, into the bank&#8217;s financial information disclosure and the trading of its shares. </p>
<p> &#8220;In view of the ongoing (inquiry), Jean-Pierre Mustier has decided, in the interest of the group, to anticipate his departure and has tendered his resignation, which has been accepted,&#8221; the bank said in the statement. </p>
<p> As recently as last Wednesday, when SocGen announced second-quarter earnings that were better than expected, Mr Mustier had fielded questions from analysts about the group&#8217;s asset management and investor services activities. </p>
<p> The French regulator wasn&#8217;t available for comment.</p>
<p> <!--more--> </p>
<p> <a href="http://bankingandfinances.wordpress.com/2009/07/14/regulators-send-a-message/" rel="bookmark" title="Regulators send a message">Regulators send a message</a><a href="http://ecommercesnews.wordpress.com/2009/07/15/facebook-working-to-amp-up-ad-opps/" rel="bookmark" title="Facebook Working to Amp Up Ad Opps">Facebook Working to Amp Up Ad Opps</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mit find und grep Ordner rekursiv nach Textstrings durchsuchen (shell script)]]></title>
<link>http://linuxnetz.wordpress.com/2009/07/24/findgrep/</link>
<pubDate>Fri, 24 Jul 2009 14:23:51 +0000</pubDate>
<dc:creator>linuxnetzer</dc:creator>
<guid>http://linuxnetz.wordpress.com/2009/07/24/findgrep/</guid>
<description><![CDATA[Wie kann man ein komplettes Verzeichnis mit allen darunterliegenden Dateien nach einem bestimmten Te]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h3>Wie kann man ein komplettes Verzeichnis mit allen darunterliegenden Dateien nach einem bestimmten Textmuster durchsuchen?</h3>
<p><strong> </strong></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://commons.wikimedia.org/wiki/File:Lupe_kl.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/5/50/Lupe_kl.jpg" alt="Quelle: Wikimedia" width="140" height="140" /></a></dt>
</dl>
</div>
<h6 style="text-align:center;">Bild Lizenz: Creative Commons Attribution ShareAlike 3.0 &#8212;&#8212;&#8211; Quelle: wikimedia.org</h6>
<h6><span style="text-decoration:underline;">Update 18.9.2009:</span> Kein Artikel auf diesem Blog wird inzwischen so häufig aufgerufen wie dieser. Auch das Skript wird täglich heruntergeladen. Deshalb mache ich mich gerade daran, das Skript weiter zu verbessern. So stay tuned!</h6>
<p>Unter Linux macht dies eine Kombination von find und grep möglich. Im folgenden Beispiel soll im kompletten Verzeichnis /etc bis hinunter zur letzten Datei (find /etc -type f) nach dem Begriff &#8220;ssid&#8221; gesucht werden.  Dabei soll Groß- und Kleinschreibung keine Rolle spielen (grep -i).  Außerdem sollen Fehlermeldungen unterdrückt werden (2&#62;/dev/null). Möglich macht dies folgender Befehl:</p>
<blockquote><p>find /etc -type f -exec grep -i ssid /dev/null {} \; 2&#62; /dev/null</p></blockquote>
<p><strong>Schade nur, dass man sich solche Befehlsmonster schwer merken kann.</strong> Abhilfe schaftt hier ein kleines Skript, dass ich &#8220;findgrep&#8221; genannt habe. Das Skript zeigt die Suchergebnisse farbig an und speichert die gefundenen Ergebnisse in einer Textdatei zur späteren Nachbearbeitung.  Und so sieht das Skript im Einsatz aus:</p>
<p><img class="aligncenter size-full wp-image-657" title="findgrep1" src="http://linuxnetz.wordpress.com/files/2009/07/findgrep11.png" alt="findgrep1" width="450" height="157" /><img class="aligncenter size-full wp-image-658" title="findgrep2" src="http://linuxnetz.wordpress.com/files/2009/07/findgrep2.png" alt="findgrep2" width="450" height="168" /><span style="color:#008000;"><strong> </strong></span></p>
<p>Um das Skript einzusetzen, muss die weiter unten folgende  Datei <strong>findgrep.doc</strong> einfach in eine reine Textdatei mit dem Namen &#8220;findgrep&#8221; umgewandelt werden und in einem Verzeichnis abgelegt werden, die in der Variable PATH enthalten ist. Nun noch die Datei ausführbar machen:</p>
<blockquote><p>sudo chmod +x /pfad/zu/findgrep</p></blockquote>
<p>Der umständliche Weg über die .doc Datei wird gewählt, da WordPress &#8211; wie schon oft gesagt -  das doppelte Minuszeichen (&#8211;) bei Befehlsoptionen falsch anzeigt und das Skript ohne manueller Nachbesserung nicht einsatzfähig ist.</p>
<p><span style="color:#008000;"><strong>Und hier das Skript zum Download:</strong></span></p>
<p><a href="http://linuxnetz.wordpress.com/files/2009/07/findgrep.doc">http://linuxnetz.wordpress.com/files/2009/07/findgrep.doc</a></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
