﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0"><channel xml:base="http://codepaste.net/recent"><title>CodePaste.NET</title><link>http://codepaste.net/feed</link><description>Paste and Link .NET Code</description><lastBuildDate>Wed, 10 Mar 2010 18:58:35 -0800</lastBuildDate><item><guid isPermaLink="false">yxf2zk</guid><link>http://codepaste.net/yxf2zk</link><title>code</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;var&lt;/span&gt; SearchColM = &lt;span class="kwrd"&gt;new&lt;/span&gt; Ext.grid.ColumnModel([
    {id: &lt;span class="str"&gt;'info'&lt;/span&gt;, dataIndex: &lt;span class="str"&gt;'info'&lt;/span&gt;, header: &lt;span class="str"&gt;"URL"&lt;/span&gt;, width:33, renderer:renderIcon },
    {dataIndex: &lt;span class="str"&gt;'name'&lt;/span&gt;, header: &lt;span class="str"&gt;'Opportunity Name'&lt;/span&gt;, width:33},
    {dataIndex: &lt;span class="str"&gt;'accountid'&lt;/span&gt;, header: &lt;span class="str"&gt;'End User Company'&lt;/span&gt;, width:33},
    {dataIndex: &lt;span class="str"&gt;'new_oracleid'&lt;/span&gt;, header: &lt;span class="str"&gt;'Contract Number'&lt;/span&gt;, width:33},
    {dataIndex: &lt;span class="str"&gt;'new_clientbatchquartername'&lt;/span&gt;, header: &lt;span class="str"&gt;'Client Batch Quarter'&lt;/span&gt;, width:33},
    {dataIndex: &lt;span class="str"&gt;'new_renewalamountusd'&lt;/span&gt;, header: &lt;span class="str"&gt;'Renewal Amount'&lt;/span&gt;, width:33},
    {dataIndex: &lt;span class="str"&gt;'opportunityid'&lt;/span&gt;, header: &lt;span class="str"&gt;'GUID'&lt;/span&gt;, width:33}
]);
&amp;nbsp;
cm.defaultSortable = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
&amp;nbsp;
SearchGrid = &lt;span class="kwrd"&gt;new&lt;/span&gt; Ext.grid.GridPanel({
        id: &lt;span class="str"&gt;'SearchGrid'&lt;/span&gt;,
    title: &lt;span class="str"&gt;'Search'&lt;/span&gt;,
    ds: SearchDataStore,
    cm: SearchColM,
    &lt;span class="rem"&gt;//viewConfig: { allowFill: true },&lt;/span&gt;
    enableColumnMove: &lt;span class="kwrd"&gt;false&lt;/span&gt;,
    enableColumnResize: &lt;span class="kwrd"&gt;false&lt;/span&gt;,
    &lt;span class="rem"&gt;//loadMask: true,&lt;/span&gt;
    &lt;span class="rem"&gt;//plugins: filters,&lt;/span&gt;
    height:330,
    width:700,        
    renderTo:&lt;span class="str"&gt;'SearchBoxDiv'&lt;/span&gt;
});
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 18:24:56 -0800</pubDate></item><item><guid isPermaLink="false">ra999v</guid><link>http://codepaste.net/ra999v</link><a10:author><a10:name>ludjer</a10:name></a10:author><title>GUIApplet </title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;import&lt;/span&gt; javax.swing.JApplet;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.awt.Graphics;
&lt;span class="rem"&gt;/**&lt;/span&gt;
&lt;span class="rem"&gt; * This class extends applet and creates a new instance of FrameGUI&lt;/span&gt;
&lt;span class="rem"&gt; * @author Darren&lt;/span&gt;
&lt;span class="rem"&gt; */&lt;/span&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; GUIApplet &lt;span class="kwrd"&gt;extends&lt;/span&gt; JApplet
{
    &lt;span class="rem"&gt;/**&lt;/span&gt;
&lt;span class="rem"&gt;     * initiates the applet&lt;/span&gt;
&lt;span class="rem"&gt;     */&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; init()
    {
        FrameGUI gui = &lt;span class="kwrd"&gt;new&lt;/span&gt; FrameGUI();
&amp;nbsp;
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.add(gui);
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setSize(500, 500);
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setVisible(&lt;span class="kwrd"&gt;true&lt;/span&gt;);
    }
    &lt;span class="rem"&gt;/**&lt;/span&gt;
&lt;span class="rem"&gt;     * Used to paint the graphics g&lt;/span&gt;
&lt;span class="rem"&gt;     * @param g graphics&lt;/span&gt;
&lt;span class="rem"&gt;     */&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; paint(Graphics g)
    {
        &lt;span class="kwrd"&gt;super&lt;/span&gt;.paint(g);
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 15:39:20 -0800</pubDate></item><item><guid isPermaLink="false">fxcv9a</guid><link>http://codepaste.net/fxcv9a</link><a10:author><a10:name>ludjer</a10:name></a10:author><title>FrameGUI class</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class="rem"&gt;//imports&lt;/span&gt;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.awt.BorderLayout;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.awt.event.ActionEvent;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.awt.event.ActionListener;
&lt;span class="kwrd"&gt;import&lt;/span&gt; javax.swing.JPanel;
&lt;span class="kwrd"&gt;import&lt;/span&gt; javax.swing.JButton;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.awt.Color;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class="rem"&gt;// FrameGUI inherits from JPanel and implements ActionListener&lt;/span&gt;
&lt;span class="rem"&gt;// this allows the program to listen for button clicks&lt;/span&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; FrameGUI &lt;span class="kwrd"&gt;extends&lt;/span&gt; JPanel  &lt;span class="kwrd"&gt;implements&lt;/span&gt; ActionListener
{
    &lt;span class="kwrd"&gt;private&lt;/span&gt; JButton btnSetToBlack,btnSetToBlue;
    &lt;span class="kwrd"&gt;private&lt;/span&gt; BorderLayout layout;
&amp;nbsp;
    &lt;span class="rem"&gt;//constructor&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; FrameGUI()
    {
        &lt;span class="rem"&gt;//instantiate a new BorderLayout with 50 pixel gaps between&lt;/span&gt;
        &lt;span class="rem"&gt;// components of the layoutManager&lt;/span&gt;
        layout = &lt;span class="kwrd"&gt;new&lt;/span&gt; BorderLayout(50,50);
        &lt;span class="rem"&gt;//set the FrameGUI's layout to the layout defined above&lt;/span&gt;
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setLayout(layout);
&amp;nbsp;
        &lt;span class="rem"&gt;//instantiate the 2 buttons&lt;/span&gt;
        btnSetToBlack = &lt;span class="kwrd"&gt;new&lt;/span&gt; JButton(&lt;span class="str"&gt;"BLACK"&lt;/span&gt;);
        btnSetToBlue = &lt;span class="kwrd"&gt;new&lt;/span&gt; JButton(&lt;span class="str"&gt;"BLUE"&lt;/span&gt;);
&amp;nbsp;
        &lt;span class="rem"&gt;//add the 2 buttons to FrameGUI (specifying position)&lt;/span&gt;
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.add(btnSetToBlack, BorderLayout.WEST);
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.add(btnSetToBlue, BorderLayout.EAST);
        &lt;span class="rem"&gt;//here, the component you are required to make will be added to the gui&lt;/span&gt;
        &lt;span class="rem"&gt;// adding your component --&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.add(&lt;span class="kwrd"&gt;new&lt;/span&gt; DrawComponent(), BorderLayout.CENTER);
&amp;nbsp;
        &lt;span class="rem"&gt;//action listeners assigned to buttons (to listen for user actions)&lt;/span&gt;
        btnSetToBlack.addActionListener(&lt;span class="kwrd"&gt;this&lt;/span&gt;);
        btnSetToBlue.addActionListener(&lt;span class="kwrd"&gt;this&lt;/span&gt;);
&amp;nbsp;
        &lt;span class="rem"&gt;//default colours, visiblity and size of frameGUI defined here&lt;/span&gt;
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setBackground(Color.GRAY);
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setVisible(&lt;span class="kwrd"&gt;true&lt;/span&gt;);
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.setSize(800,600);
    }
&amp;nbsp;
    &lt;span class="rem"&gt;//actionPerformed(ActionEvent event) allows event information to be processed&lt;/span&gt;
    &lt;span class="rem"&gt;//below the event source is checked (i.e. what button was pressed) and the&lt;/span&gt;
    &lt;span class="rem"&gt;//background colour is changed accordingly&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; actionPerformed(ActionEvent event)
    {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (event.getSource() == btnSetToBlack) &lt;span class="kwrd"&gt;this&lt;/span&gt;.setBackground(Color.BLACK);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (event.getSource() == btnSetToBlue) &lt;span class="kwrd"&gt;this&lt;/span&gt;.setBackground(Color.BLUE);
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 15:38:14 -0800</pubDate></item><item><guid isPermaLink="false">jxgsj7</guid><link>http://codepaste.net/jxgsj7</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
function GetRegistryData(RootKey: HKEY; Key, Value: string): variant;
var
  Reg: TRegistry;
  RegDataType: TRegDataType;
  DataSize, Len: integer;
  s: string;
label cantread;
begin
  Reg := nil;
  try
    Reg := TRegistry.Create(KEY_QUERY_VALUE);
    Reg.RootKey := RootKey;
    if Reg.OpenKeyReadOnly(Key) then begin
      try
        RegDataType := Reg.GetDataType(Value);
        if (RegDataType = rdString) or
           (RegDataType = rdExpandString) then
          Result := Reg.ReadString(Value)
        else if RegDataType = rdInteger then
          Result := Reg.ReadInteger(Value)
        else if RegDataType = rdBinary then begin
          DataSize := Reg.GetDataSize(Value);
          if DataSize = -1 then goto cantread;
          SetLength(s, DataSize);
          Len := Reg.ReadBinaryData(Value, PChar(s)^, DataSize);
          if Len &amp;lt;&amp;gt; DataSize then goto cantread;
          Result := s;
        end else
cantread:
      except
        s := '';
        Reg.CloseKey;
        raise;
      end;
      Reg.CloseKey;
    end else
  except
    Reg.Free;
    raise;
  end;
  Reg.Free;
end;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 14:39:04 -0800</pubDate></item><item><guid isPermaLink="false">euuad2</guid><link>http://codepaste.net/euuad2</link><title>dsfgd</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
gdf
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 13:53:57 -0800</pubDate></item><item><guid isPermaLink="false">u5t4r3</guid><link>http://codepaste.net/u5t4r3</link><title>Console Redirection of output</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Diagnostics;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.IO;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text;
&amp;nbsp;
&lt;span class="kwrd"&gt;namespace&lt;/span&gt; ConsoleRedirectionOfOutputForReal
{
    &lt;span class="kwrd"&gt;class&lt;/span&gt; Program
    {
        &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main(&lt;span class="kwrd"&gt;string&lt;/span&gt;[] args)
        {
            &lt;span class="rem"&gt;//Console.WriteLine("hello");&lt;/span&gt;
            &lt;span class="rem"&gt;//Console.WriteLine("hello {0}", "world");&lt;/span&gt;
&amp;nbsp;
            IMessageWriter messageWriter = &lt;span class="kwrd"&gt;new&lt;/span&gt; MessageWriter();
&amp;nbsp;
            messageWriter.WriteLine(&lt;span class="str"&gt;"hello"&lt;/span&gt;);
            messageWriter.WriteLine(&lt;span class="str"&gt;"hello {0}"&lt;/span&gt;, &lt;span class="str"&gt;"world"&lt;/span&gt;);
&amp;nbsp;
            Console.WriteLine(&lt;span class="str"&gt;"**** Here is the captured output ****"&lt;/span&gt;);
            Console.Write(messageWriter.GetAllCapturedMessages());
            Console.WriteLine(&lt;span class="str"&gt;"*************************************"&lt;/span&gt;);
&amp;nbsp;
            Console.ReadLine();
        }
&amp;nbsp;
&amp;nbsp;
    }
&amp;nbsp;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MessageWriter : IMessageWriter
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;readonly&lt;/span&gt; StringBuilder _allMessages = &lt;span class="kwrd"&gt;new&lt;/span&gt; StringBuilder();
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Write(&lt;span class="kwrd"&gt;string&lt;/span&gt; format, &lt;span class="kwrd"&gt;params&lt;/span&gt; &lt;span class="kwrd"&gt;object&lt;/span&gt;[] args)
        {
            &lt;span class="kwrd"&gt;var&lt;/span&gt; msg = &lt;span class="kwrd"&gt;string&lt;/span&gt;.Format(format, args);
&amp;nbsp;
            Console.WriteLine(msg);
            _allMessages.AppendLine(msg);
        }
&amp;nbsp;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; WriteLine(&lt;span class="kwrd"&gt;string&lt;/span&gt; format, &lt;span class="kwrd"&gt;params&lt;/span&gt; &lt;span class="kwrd"&gt;object&lt;/span&gt;[] args)
        {
            &lt;span class="kwrd"&gt;var&lt;/span&gt; msg = &lt;span class="kwrd"&gt;string&lt;/span&gt;.Format(format, args);
&amp;nbsp;
            Console.WriteLine( msg);
            _allMessages.AppendLine(msg);
        }
&amp;nbsp;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; GetAllCapturedMessages()
        {
            &lt;span class="kwrd"&gt;return&lt;/span&gt; _allMessages.ToString();
        }
    }
&amp;nbsp;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;interface&lt;/span&gt; IMessageWriter
    {
        &lt;span class="kwrd"&gt;void&lt;/span&gt; Write(&lt;span class="kwrd"&gt;string&lt;/span&gt; format, &lt;span class="kwrd"&gt;params&lt;/span&gt; &lt;span class="kwrd"&gt;object&lt;/span&gt;[] args);
        &lt;span class="kwrd"&gt;void&lt;/span&gt; WriteLine(&lt;span class="kwrd"&gt;string&lt;/span&gt; format, &lt;span class="kwrd"&gt;params&lt;/span&gt; &lt;span class="kwrd"&gt;object&lt;/span&gt;[] args);
        &lt;span class="kwrd"&gt;string&lt;/span&gt; GetAllCapturedMessages();
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 13:09:55 -0800</pubDate></item><item><guid isPermaLink="false">pzj7rr</guid><link>http://codepaste.net/pzj7rr</link><a10:author><a10:name>benbois</a10:name></a10:author><title>20100310 o4k linux32 03</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
**************************************************
ERROR: ERROR: Missing files
in function: remove_Files_Without_Sourcedirectory
**************************************************
&amp;nbsp;
**************************************************
ERROR: Saved logfile: /home/leon/OOo4Kids_compilation/trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/deb/logging/de/log_O4K090_de.log
**************************************************
Wed Mar 10 21:52:26 2010 (00:10 min.)
ERROR: The following files could not be found: 
ERROR: File not found: libcairo.so.2
ERROR: File not found: cairocanvas.uno.so
... cleaning the output tree ...
... removing directory /tmp/ooo4kidspackaging/i_258921268254336 ...
&amp;nbsp;
**************************************************
ERROR: ERROR: Missing files
in function: remove_Files_Without_Sourcedirectory
**************************************************
&amp;nbsp;
**************************************************
ERROR: Saved logfile: /home/leon/OOo4Kids_compilation/trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/deb/logging/en-US/log_O4K090_en-US.log
**************************************************
Wed Mar 10 21:52:26 2010 (00:10 min.)
dmake:  Error code 255, while making 'openoffice_en-US.deb'
Running processes: 0
&amp;nbsp;
1 module(s): 
    instsetoo_native
need(s) to be rebuilt
&amp;nbsp;
Reason(s):
&amp;nbsp;
ERROR: error 65280 occurred while making /home/leon/OOo4Kids_compilation/trunk/instsetoo_native/util
&amp;nbsp;
Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from instsetoo_native"
&amp;nbsp;
rmdir /tmp/4TgDPLCZ7j
&amp;nbsp;
real    251m45.861s
user    224m8.084s
sys    17m8.916s
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 13:09:25 -0800</pubDate></item><item><guid isPermaLink="false">1mkzhn</guid><link>http://codepaste.net/1mkzhn</link><a10:author><a10:name>VJ</a10:name></a10:author><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Generic;
&amp;nbsp;
&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Core.Types
{
    &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
    &lt;span class="rem"&gt;/// A simple 3D vector type&lt;/span&gt;
    &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Vector
    {
        &lt;span class="preproc"&gt;#region&lt;/span&gt; Constructors
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Initializes a new instance of the &amp;lt;see cref="Vector"/&amp;gt; class.&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="x"&amp;gt;The x axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="y"&amp;gt;The y axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="z"&amp;gt;The z axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; Vector(&lt;span class="kwrd"&gt;double&lt;/span&gt; x, &lt;span class="kwrd"&gt;double&lt;/span&gt; y, &lt;span class="kwrd"&gt;double&lt;/span&gt; z)
        {
            X = x;
            Y = y;
            Z = z;
        }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Initializes a new instance of the &amp;lt;see cref="Vector"/&amp;gt; class.&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="x"&amp;gt;The x axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="y"&amp;gt;The y axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; Vector(&lt;span class="kwrd"&gt;double&lt;/span&gt; x, &lt;span class="kwrd"&gt;double&lt;/span&gt; y)
            : &lt;span class="kwrd"&gt;this&lt;/span&gt;(x, y, 0.00)
        {
        }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Initializes a new instance of the &amp;lt;see cref="Vector"/&amp;gt; class.&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;param name="x"&amp;gt;The x axis&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; Vector(&lt;span class="kwrd"&gt;double&lt;/span&gt; x)
            : &lt;span class="kwrd"&gt;this&lt;/span&gt;(x, 0.00, 0.00)
        {
        }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Initializes a new instance of the &amp;lt;see cref="Vector"/&amp;gt; class.&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; Vector()
            : &lt;span class="kwrd"&gt;this&lt;/span&gt;(0.00, 0.00, 0.00)
        {
        }
&amp;nbsp;
        &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
&amp;nbsp;
        &lt;span class="preproc"&gt;#region&lt;/span&gt; Public Properties
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Gets or sets the X axis&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;value&amp;gt;X&amp;lt;/value&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;double&lt;/span&gt; X
        { get; set; }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Gets or sets the Y axis&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;value&amp;gt;Y&amp;lt;/value&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;double&lt;/span&gt; Y
        { get; set; }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Gets or sets the Z axis&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;value&amp;gt;Z&amp;lt;/value&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;double&lt;/span&gt; Z
        { get; set; }
&amp;nbsp;
        &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
&amp;nbsp;
        &lt;span class="preproc"&gt;#region&lt;/span&gt; Private Variables
        &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
    }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 13:06:21 -0800</pubDate></item><item><guid isPermaLink="false">33mar5</guid><link>http://codepaste.net/33mar5</link><title>Código para incluir o jogo</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;="text/javascript"&lt;/span&gt; &lt;span class="attr"&gt;src&lt;/span&gt;&lt;span class="kwrd"&gt;="swfobject.js"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;
&amp;lt;script type=&lt;span class="str"&gt;"text/javascript"&lt;/span&gt;&amp;gt;
swfobject.embedSWF(&lt;span class="str"&gt;"FutebolDeBotao_RadioGlobo.swf"&lt;/span&gt;, &lt;span class="str"&gt;"FutebolDeBotao"&lt;/span&gt;, &lt;span class="str"&gt;"636"&lt;/span&gt;, &lt;span class="str"&gt;"711"&lt;/span&gt;, &lt;span class="str"&gt;"10.0.0"&lt;/span&gt;, &lt;span class="str"&gt;"url=[SUBISTITUIR PELA URL CORRETA]&amp;amp;ranking=[SUBISTITUIR PELA URL CORRETA]"&lt;/span&gt;, 
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 13:03:13 -0800</pubDate></item><item><guid isPermaLink="false">aq4vcm</guid><link>http://codepaste.net/aq4vcm</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
ddsd
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 12:49:24 -0800</pubDate></item><item><guid isPermaLink="false">9dde87</guid><link>http://codepaste.net/9dde87</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
@Override
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; postVisit(Contract node)
{
    &lt;span class="rem"&gt;// check if we already processed this node&lt;/span&gt;
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!mVisitedNodes.containsKey(node))
    {
        IntermediateNode tmpNode = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (node &lt;span class="kwrd"&gt;instanceof&lt;/span&gt; DataSourceContract&amp;lt;?, ?&amp;gt;)
        {
            tmpNode = &lt;span class="kwrd"&gt;new&lt;/span&gt; IntermediateNode(IntermediateNode.OperationType.DataSource, (Contract) node);
    &amp;gt;&amp;gt;&amp;gt;     tmpNode.mAttributes.put(&lt;span class="str"&gt;"filepath"&lt;/span&gt;, ((DataSourceContract&amp;lt;?, ?&amp;gt;) node).getFilePath());
        }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 12:28:52 -0800</pubDate></item><item><guid isPermaLink="false">4erjeb</guid><link>http://codepaste.net/4erjeb</link><a10:author><a10:name>couellet</a10:name></a10:author><title>Basic encrypt/decrypt </title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Scramble(&lt;span class="kwrd"&gt;this&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; input)
        {
            &lt;span class="kwrd"&gt;var&lt;/span&gt; bytes = Encoding.Default.GetBytes(input);
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; encryptor = algorithm.CreateEncryptor();
            &lt;span class="kwrd"&gt;var&lt;/span&gt; outputBytes = encryptor.TransformFinalBlock(bytes, 0, bytes.Length);
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; output = &lt;span class="str"&gt;""&lt;/span&gt;;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i = 0; i &amp;lt; outputBytes.Length; i++)
                output += outputBytes[i].ToString(&lt;span class="str"&gt;"x2"&lt;/span&gt;);
&amp;nbsp;
            &lt;span class="kwrd"&gt;return&lt;/span&gt; output;
        }
&amp;nbsp;
&amp;nbsp;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Unscramble(&lt;span class="kwrd"&gt;this&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; input)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (input == &lt;span class="kwrd"&gt;null&lt;/span&gt;)
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;null&lt;/span&gt;;
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; bytes = input.HexToBytes();
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; decryptor = algorithm.CreateDecryptor();
            &lt;span class="kwrd"&gt;var&lt;/span&gt; outputBytes = decryptor.TransformFinalBlock(bytes, 0, bytes.Length);
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; output = Encoding.Default.GetString(outputBytes);
            &lt;span class="kwrd"&gt;return&lt;/span&gt; output;
        }
&amp;nbsp;
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;byte&lt;/span&gt;[] HexToBytes(&lt;span class="kwrd"&gt;this&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; input)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (input == &lt;span class="kwrd"&gt;null&lt;/span&gt;)
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;null&lt;/span&gt;;
&amp;nbsp;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; len = input.Length;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; bytes = &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;byte&lt;/span&gt;[len / 2];
            
            &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i = 0; i &amp;lt; len; i += 2)
                bytes[i/2] = Convert.ToByte(input.Substring(i, 2), 16);
            
            &lt;span class="kwrd"&gt;return&lt;/span&gt; bytes;
        }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 10:12:13 -0800</pubDate></item><item><guid isPermaLink="false">2ge8b7</guid><link>http://codepaste.net/2ge8b7</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
t
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 09:41:21 -0800</pubDate></item><item><guid isPermaLink="false">yp8ne5</guid><link>http://codepaste.net/yp8ne5</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
/* prácica realizada por Martín Canoura Martínez NP:50.414*/
&amp;nbsp;
/*-nombre ape  ps1_exp
&amp;nbsp;
-comentarios apellidos nombre y numero de expe
&amp;nbsp;
-clase cadena de caracteres 2 atributos puntero a cadena y atributo longitud
-constructor(defecto y parametro) constructor copia y destructor
-sobrecarga operador+  static para llevar cuenta de cuantos objetos o instancias de cadena tenemos
-hacer main y probar ,en constructor mensaje para ver cuando se ejecuta.
*/
&amp;nbsp;
&amp;nbsp;
#include&amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include&amp;lt;iostream.h&amp;gt;
&amp;nbsp;
class cadena 
{
    private:
          char *cad; // puntero a cadena de caracteres
          //int longitud; // longitu de la cadena
   // static int contador; // contador de objetos cadena
    public:
      cadena(); //constructor por defecto
      cadena(char *c); // constructor
      cadena(const cadena &amp;amp;op); // constructor copia
      ~cadena(); // destructor
       void asignar(char *dest);
       char *leer(char *c);
       cadena operator+(cadena cad);
};
&amp;nbsp;
cadena::cadena() : cad(NULL){cout &amp;lt;&amp;lt; "llamada al constructor por defecto\n";}
&amp;nbsp;
cadena :: cadena(char *c){
    
    cad= new char[strlen(c)+1]; // reserva memoria para cadena
    strcpy(cad,c);
    cout &amp;lt;&amp;lt; "llamada al constructor por parametros\n";
}
&amp;nbsp;
cadena::cadena(int longitud){ // para crear cadenas de longitud long
    cad = new char[longitud +1];
    cad[0] = 0;
}
&amp;nbsp;
cadena::cadena(const cadena &amp;amp;op){
 cad = new char[strlen(op.cad)+1];
 strcpy(op, op.cad);
cout &amp;lt;&amp;lt; "llamada la constructor copia\n";
}
&amp;nbsp;
cadena::~cadena(){// destructor
    delete[] cad;
}
&amp;nbsp;
void cadena::asignar(char *dest){
    delete[] cad;
    cad=new char[strlen(dest)+1];
    strcpy(cad,dest);
}
&amp;nbsp;
char *cadena::leer(char *c){
    strcpy(c,cad);
    return c;
}
&amp;nbsp;
cadena cadena :: operator+ (const cadena &amp;amp;c) //sobrecarga del operador suma
{
    cadena aux;
    aux.longitud=longitud+c.longitud;
    aux=new char [aux.longitud + 1];
    strcpy(aux.ch,ch);
    strcat(aux.ch,c.ch);
    return aux;
} 
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
int main(){
&amp;nbsp;
    cadena cadena1("cadena de prueba");
    cadena cadena2(cadena1);
    cadena *cadena3;
    char c[256];
    cadena1.asignar("otra cadena diferente");
    cadena3=new cadena("cadena de prueba 3");
&amp;nbsp;
    //ver resultado
     cout &amp;lt;&amp;lt; "cadena 1:"&amp;lt;&amp;lt; cadena1.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 2:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 3:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
delete cadena3;
     
return 0;
&amp;nbsp;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 09:19:58 -0800</pubDate></item><item><guid isPermaLink="false">z91ngi</guid><link>http://codepaste.net/z91ngi</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
/* prácica realizada por Martín Canoura Martínez NP:50.414*/
&amp;nbsp;
/*-nombre ape  ps1_exp
&amp;nbsp;
-comentarios apellidos nombre y numero de expe
&amp;nbsp;
-clase cadena de caracteres 2 atributos puntero a cadena y atributo longitud
-constructor(defecto y parametro) constructor copia y destructor
-sobrecarga operador+  static para llevar cuenta de cuantos objetos o instancias de cadena tenemos
-hacer main y probar ,en constructor mensaje para ver cuando se ejecuta.
*/
&amp;nbsp;
&amp;nbsp;
#include&amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include&amp;lt;iostream.h&amp;gt;
&amp;nbsp;
class cadena 
{
    private:
          char *cad; // puntero a cadena de caracteres
          //int longitud; // longitu de la cadena
   // static int contador; // contador de objetos cadena
    public:
      cadena(); //constructor por defecto
      cadena(char *c); // constructor
      cadena(const cadena &amp;amp;op); // constructor copia
      ~cadena(); // destructor
       void asignar(char *dest);
       char *leer(char *c);
       cadena operator+(cadena cad);
};
&amp;nbsp;
cadena::cadena() : cad(NULL){cout &amp;lt;&amp;lt; "llamada al constructor por defecto\n";}
&amp;nbsp;
cadena :: cadena(char *c){
    
    cad= new char[strlen(c)+1]; // reserva memoria para cadena
    strcpy(cad,c);
    cout &amp;lt;&amp;lt; "llamada al constructor por parametros\n";
}
&amp;nbsp;
cadena::cadena(int longitud){ // para crear cadenas de longitud long
    cad = new char[longitud +1];
    cad[0] = 0;
}
&amp;nbsp;
cadena::cadena(const cadena &amp;amp;op){
 cad = new char[strlen(op.cad)+1];
 strcpy(op, op.cad);
cout &amp;lt;&amp;lt; "llamada la constructor copia\n";
}
&amp;nbsp;
cadena::~cadena(){// destructor
    delete[] cad;
}
&amp;nbsp;
void cadena::asignar(char *dest){
    delete[] cad;
    cad=new char[strlen(dest)+1];
    strcpy(cad,dest);
}
&amp;nbsp;
char *cadena::leer(char *c){
    strcpy(c,cad);
    return c;
}
&amp;nbsp;
cadena cadena:: operator+(cadena cad){
    cadena cadena2("hola");
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
int main(){
&amp;nbsp;
    cadena cadena1("cadena de prueba");
    cadena cadena2(cadena1);
    cadena *cadena3;
    char c[256];
    cadena1.asignar("otra cadena diferente");
    cadena3=new cadena("cadena de prueba 3");
&amp;nbsp;
    //ver resultado
     cout &amp;lt;&amp;lt; "cadena 1:"&amp;lt;&amp;lt; cadena1.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 2:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 3:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
delete cadena3;
     
return 0;
&amp;nbsp;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 08:58:26 -0800</pubDate></item><item><guid isPermaLink="false">gjbs6k</guid><link>http://codepaste.net/gjbs6k</link><a10:author><a10:name>hhhh</a10:name></a10:author><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
/* prácica realizada por Martín Canoura Martínez NP:50.414*/
&amp;nbsp;
/*-nombre ape  ps1_exp
&amp;nbsp;
-comentarios apellidos nombre y numero de expe
&amp;nbsp;
-clase cadena de caracteres 2 atributos puntero a cadena y atributo longitud
-constructor(defecto y parametro) constructor copia y destructor
-sobrecarga operador+  static para llevar cuenta de cuantos objetos o instancias de cadena tenemos
-hacer main y probar ,en constructor mensaje para ver cuando se ejecuta.
*/
&amp;nbsp;
&amp;nbsp;
#include&amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include&amp;lt;iostream.h&amp;gt;
&amp;nbsp;
class cadena {
    private:
          char *cad; // puntero a cadena de caracteres
          //int longitud; // longitu de la cadena
   // static int contador; // contador de objetos cadena
    public:
      cadena(); //constructor por defecto
      cadena(char *c); // constructor
      cadena(const cadena &amp;amp;op); // constructor copia
      ~cadena(); // destructor
       void asignar(char *dest);
       char *leer(char *c);
};
&amp;nbsp;
cadena::cadena() : cad(NULL){cout &amp;lt;&amp;lt; "llamada al constructor por defecto\n";}
&amp;nbsp;
cadena :: cadena(char *c){
    
    cad= new char[strlen(c)+1]; // reserva memoria para cadena
    strcpy(cad,c);
    cout &amp;lt;&amp;lt; "llamada al constructor por parametros\n";
}
&amp;nbsp;
cadena::cadena(int longitud){ // para crear cadenas de longitud long
    cad = new char[longitud +1];
    cad[0] = 0;
}
&amp;nbsp;
cadena::cadena(const cadena &amp;amp;op){
 cad = new char[strlen(op.cad)+1];
 strcpy(op, op.cad);
cout &amp;lt;&amp;lt; "llamada la constructor copia\n";
}
&amp;nbsp;
cadena::~cadena(){// destructor
    delete[] cad;
}
&amp;nbsp;
void cadena::asignar(char *dest){
    delete[] cad;
    cad=new char[strlen(dest)+1];
    strcpy(cad,dest);
}
&amp;nbsp;
char *cadena::leer(char *c){
    strcpy(c,cad);
    return c;
}
&amp;nbsp;
&amp;nbsp;
int main(){
&amp;nbsp;
    cadena cadena1("cadena de prueba");
    cadena cadena2(cadena1);
    cadena *cadena3;
    char c[256];
    cadena1.asignar("otra cadena diferente");
    cadena3=new cadena("cadena de prueba 3");
&amp;nbsp;
    //ver resultado
     cout &amp;lt;&amp;lt; "cadena 1:"&amp;lt;&amp;lt; cadena1.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 2:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
     cout &amp;lt;&amp;lt; "cadena 3:"&amp;lt;&amp;lt; cadena2.leer(c) &amp;lt;&amp;lt;endl;
delete cadena3;
     
return 0;
&amp;nbsp;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 08:46:38 -0800</pubDate></item><item><guid isPermaLink="false">xwqr4n</guid><link>http://codepaste.net/xwqr4n</link><a10:author><a10:name>benbois</a10:name></a10:author><title>20100310 o4k linux32 02</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
&amp;nbsp;
It was created by pixman configure 0.12.0, which was
generated by GNU Autoconf 2.61.  Invocation command line was
&amp;nbsp;
  $ ./configure --enable-static=yes --enable-shared=no CFLAGS=-march=i486 -fPIC
&amp;nbsp;
## --------- ##
## Platform. ##
## --------- ##
&amp;nbsp;
hostname = lubuntu
uname -m = i686
uname -r = 2.6.31-17-generic
uname -s = Linux
uname -v = #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009
&amp;nbsp;
/usr/bin/uname -p = unknown
/bin/uname -X     = unknown
&amp;nbsp;
/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
&amp;nbsp;
PATH: .
PATH: /home/leon/OOo4Kids_compilation/trunk/solver/0.9/unxlngi6.pro/bin
PATH: .
PATH: /home/leon/OOo4Kids_compilation/trunk/solenv/unxlngi6/bin
PATH: /home/leon/OOo4Kids_compilation/trunk/solenv/bin
PATH: /home/leon/OOo4Kids_compilation/trunk/solenv/unxlngi6/bin
PATH: /home/leon/OOo4Kids_compilation/trunk/solenv/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: NO_JAVA_HOME/bin
PATH: NO_JAVA_HOME/bin
&amp;nbsp;
&amp;nbsp;
## ----------- ##
## Core tests. ##
## ----------- ##
&amp;nbsp;
configure:2011: checking for a BSD-compatible install
configure:2067: result: /usr/bin/install -c
configure:2078: checking whether build environment is sane
configure:2121: result: yes
configure:2149: checking for a thread-safe mkdir -p
configure:2188: result: /bin/mkdir -p
configure:2201: checking for gawk
configure:2231: result: no
configure:2201: checking for mawk
configure:2217: found /usr/bin/mawk
configure:2228: result: mawk
configure:2239: checking whether make sets $(MAKE)
configure:2260: result: yes
configure:2500: checking for gcc
configure:2527: result: ccache gcc
configure:2765: checking for C compiler version
configure:2772: ccache gcc --version &amp;gt;&amp;amp;5
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
&amp;nbsp;
configure:2775: $? = 0
configure:2782: ccache gcc -v &amp;gt;&amp;amp;5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c
++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included
-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-l
inux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) 
configure:2785: $? = 0
configure:2792: ccache gcc -V &amp;gt;&amp;amp;5
gcc: '-V' option must have argument
configure:2795: $? = 1
configure:2818: checking for C compiler default output file name
configure:2845: ccache gcc -march=i486 -fPIC  -Wl,-rpath,'$$ORIGIN:$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack conftest.c  &amp;gt;&amp;amp;5
configure:2848: $? = 0
configure:2886: result: a.out
configure:2903: checking whether the C compiler works
configure:2913: ./a.out
configure:2916: $? = 0
configure:2933: result: yes
configure:2940: checking whether we are cross compiling
configure:2942: result: no
configure:2945: checking for suffix of executables
configure:2952: ccache gcc -o conftest -march=i486 -fPIC  -Wl,-rpath,'$$ORIGIN:$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack conftest.c  &amp;gt;
&amp;amp;5
configure:2955: $? = 0
configure:2979: result: 
configure:2985: checking for suffix of object files
configure:3011: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:3014: $? = 0
configure:3037: result: o
configure:3041: checking whether we are using the GNU C compiler
configure:3070: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:3076: $? = 0
configure:3093: result: yes
configure:3098: checking whether ccache gcc accepts -g
configure:3128: ccache gcc -c -g  conftest.c &amp;gt;&amp;amp;5
configure:3134: $? = 0
configure:3233: result: yes
configure:3250: checking for ccache gcc option to accept ISO C89
configure:3324: ccache gcc  -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:3330: $? = 0
configure:3353: result: none needed
configure:3382: checking for style of include used by make
configure:3410: result: GNU
configure:3435: checking dependency style of ccache gcc
configure:3526: result: gcc3
configure:3619: checking build system type
configure:3637: result: i686-pc-linux-gnu
configure:3659: checking host system type
configure:3674: result: i686-pc-linux-gnu
configure:3696: checking for a sed that does not truncate output
configure:3752: result: /bin/sed
configure:3755: checking for grep that handles long lines and -e
configure:3829: result: /bin/grep
configure:3834: checking for egrep
configure:3912: result: /bin/grep -E
configure:3928: checking for ld used by ccache gcc
configure:3995: result: /usr/bin/ld
configure:4004: checking if the linker (/usr/bin/ld) is GNU ld
configure:4019: result: yes
configure:4024: checking for /usr/bin/ld option to reload object files
configure:4031: result: -r
configure:4049: checking for BSD-compatible nm
configure:4098: result: /usr/bin/nm -B
configure:4102: checking whether ln -s works
configure:4106: result: yes
configure:4113: checking how to recognize dependent libraries
configure:4299: result: pass_all
configure:4545: checking how to run the C preprocessor
configure:4585: ccache gcc -E  conftest.c
configure:4591: $? = 0
configure:4622: ccache gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4628: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pixman"
| #define PACKAGE_TARNAME "pixman"
| #define PACKAGE_VERSION "0.12.0"
| #define PACKAGE_STRING "pixman 0.12.0"
| #define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
| #define PACKAGE "pixman"
| #define VERSION "0.12.0"
| /* end confdefs.h.  */
| #include &amp;lt;ac_nonexistent.h&amp;gt;
configure:4661: result: ccache gcc -E
configure:4690: ccache gcc -E  conftest.c
configure:4696: $? = 0
configure:4727: ccache gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4733: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pixman"
| #define PACKAGE_TARNAME "pixman"
| #define PACKAGE_VERSION "0.12.0"
| #define PACKAGE_STRING "pixman 0.12.0"
| #define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
| #define PACKAGE "pixman"
| #define VERSION "0.12.0"
| /* end confdefs.h.  */
| #include &amp;lt;ac_nonexistent.h&amp;gt;
configure:4771: checking for ANSI C header files
configure:4801: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4807: $? = 0
configure:4906: ccache gcc -o conftest -march=i486 -fPIC  -Wl,-rpath,'$$ORIGIN:$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack conftest.c  &amp;gt;
&amp;amp;5
configure:4909: $? = 0
configure:4915: ./conftest
configure:4918: $? = 0
configure:4935: result: yes
configure:4959: checking for sys/types.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for sys/stat.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for stdlib.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for string.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for memory.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for strings.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for inttypes.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for inttypes.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for stdint.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:4959: checking for unistd.h
configure:4980: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:4986: $? = 0
configure:5002: result: yes
configure:5029: checking dlfcn.h usability
configure:5046: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:5052: $? = 0
configure:5066: result: yes
configure:5070: checking dlfcn.h presence
configure:5085: ccache gcc -E  conftest.c
configure:5091: $? = 0
configure:5105: result: yes
configure:5138: checking for dlfcn.h
configure:5146: result: yes
configure:5275: checking for C++ compiler version
configure:5282: ccache g++ --version &amp;gt;&amp;amp;5
g++ (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
&amp;nbsp;
configure:5285: $? = 0
configure:5292: ccache g++ -v &amp;gt;&amp;amp;5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c
++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included
-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-l
inux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) 
configure:5295: $? = 0
configure:5302: ccache g++ -V &amp;gt;&amp;amp;5
g++: '-V' option must have argument
configure:5305: $? = 1
configure:5308: checking whether we are using the GNU C++ compiler
configure:5337: ccache g++ -c   conftest.cpp &amp;gt;&amp;amp;5
configure:5343: $? = 0
configure:5360: result: yes
configure:5365: checking whether ccache g++ accepts -g
configure:5395: ccache g++ -c -g  conftest.cpp &amp;gt;&amp;amp;5
configure:5401: $? = 0
configure:5500: result: yes
configure:5525: checking dependency style of ccache g++
configure:5616: result: gcc3
configure:5641: checking how to run the C++ preprocessor
configure:5677: ccache g++ -E  conftest.cpp
configure:5683: $? = 0
configure:5714: ccache g++ -E  conftest.cpp
conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory
configure:5720: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pixman"
| #define PACKAGE_TARNAME "pixman"
| #define PACKAGE_VERSION "0.12.0"
| #define PACKAGE_STRING "pixman 0.12.0"
| #define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
| #define PACKAGE "pixman"
| #define VERSION "0.12.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include &amp;lt;ac_nonexistent.h&amp;gt;
configure:5753: result: ccache g++ -E
configure:5782: ccache g++ -E  conftest.cpp
configure:5788: $? = 0
configure:5819: ccache g++ -E  conftest.cpp
conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory
configure:5825: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pixman"
| #define PACKAGE_TARNAME "pixman"
| #define PACKAGE_VERSION "0.12.0"
| #define PACKAGE_STRING "pixman 0.12.0"
| #define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
| #define PACKAGE "pixman"
| #define VERSION "0.12.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include &amp;lt;ac_nonexistent.h&amp;gt;
configure:5918: checking for g77
configure:5948: result: no
configure:5918: checking for xlf
configure:5948: result: no
configure:5918: checking for f77
configure:5948: result: no
configure:5918: checking for frt
configure:5948: result: no
configure:5918: checking for pgf77
configure:5948: result: no
configure:5918: checking for cf77
configure:5948: result: no
configure:5918: checking for fort77
configure:5948: result: no
configure:5918: checking for fl32
configure:5948: result: no
configure:5918: checking for af77
configure:5948: result: no
configure:5918: checking for xlf90
configure:5948: result: no
configure:5918: checking for f90
configure:5948: result: no
configure:5918: checking for pgf90
configure:5948: result: no
configure:5918: checking for pghpf
configure:5948: result: no
configure:5918: checking for epcf90
configure:5948: result: no
configure:5918: checking for gfortran
configure:5948: result: no
configure:5918: checking for g95
configure:5948: result: no
configure:5918: checking for xlf95
configure:5948: result: no
configure:5918: checking for f95
configure:5948: result: no
configure:5918: checking for fort
configure:5948: result: no
configure:5918: checking for ifort
configure:5948: result: no
configure:5918: checking for ifc
configure:5948: result: no
configure:5918: checking for efc
configure:5948: result: no
configure:5918: checking for pgf95
configure:5948: result: no
configure:5918: checking for lf95
configure:5948: result: no
configure:5918: checking for ftn
configure:5948: result: no
configure:5975: checking for Fortran 77 compiler version
configure:5982:  --version &amp;gt;&amp;amp;5
./configure: line 5983: --version: command not found
configure:5985: $? = 127
configure:5992:  -v &amp;gt;&amp;amp;5
./configure: line 5993: -v: command not found
configure:5995: $? = 127
configure:6002:  -V &amp;gt;&amp;amp;5
./configure: line 6003: -V: command not found
configure:6005: $? = 127
configure:6013: checking whether we are using the GNU Fortran 77 compiler
configure:6032:  -c  conftest.F &amp;gt;&amp;amp;5
./configure: line 6033: -c: command not found
configure:6038: $? = 127
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
| 
|       end
configure:6055: result: no
configure:6061: checking whether  accepts -g
configure:6078:  -c -g conftest.f &amp;gt;&amp;amp;5
./configure: line 6079: -c: command not found
configure:6084: $? = 127
configure: failed program was:
|       program main
| 
|       end
configure:6100: result: no
configure:6129: checking the maximum length of command line arguments
configure:6241: result: 1572864
configure:6253: checking command to parse /usr/bin/nm -B output from ccache gcc object
configure:6358: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:6361: $? = 0
configure:6365: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \&amp;gt; 
conftest.nm
configure:6368: $? = 0
configure:6420: ccache gcc -o conftest -march=i486 -fPIC  -Wl,-rpath,'$$ORIGIN:$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack conftest.c co
nftstm.o &amp;gt;&amp;amp;5
configure:6423: $? = 0
configure:6461: result: ok
configure:6465: checking for objdir
configure:6480: result: .libs
configure:6572: checking for ar
configure:6588: found /usr/bin/ar
configure:6599: result: ar
configure:6668: checking for ranlib
configure:6684: found /usr/bin/ranlib
configure:6695: result: ranlib
configure:6764: checking for strip
configure:6780: found /usr/bin/strip
configure:6791: result: strip
configure:7389: checking if ccache gcc supports -fno-rtti -fno-exceptions
configure:7407: ccache gcc -c -march=i486 -fPIC  -fno-rtti -fno-exceptions conftest.c &amp;gt;&amp;amp;5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:7411: $? = 0
configure:7424: result: no
configure:7439: checking for ccache gcc option to produce PIC
configure:7671: result: -fPIC
configure:7679: checking if ccache gcc PIC flag -fPIC works
configure:7697: ccache gcc -c -march=i486 -fPIC  -fPIC -DPIC conftest.c &amp;gt;&amp;amp;5
configure:7701: $? = 0
configure:7714: result: yes
configure:7742: checking if ccache gcc static flag -static works
configure:7770: result: yes
configure:7780: checking if ccache gcc supports -c -o file.o
configure:7801: ccache gcc -c -march=i486 -fPIC  -o out/conftest2.o conftest.c &amp;gt;&amp;amp;5
configure:7805: $? = 0
configure:7827: result: yes
configure:7853: checking whether the ccache gcc linker (/usr/bin/ld) supports shared libraries
configure:8833: result: yes
configure:8900: checking dynamic linker characteristics
configure:9504: result: GNU/Linux ld.so
configure:9528: checking how to hardcode library paths into programs
configure:9553: result: immediate
configure:9567: checking whether stripping libraries is possible
configure:9572: result: yes
configure:10374: checking if libtool supports shared libraries
configure:10376: result: yes
configure:10379: checking whether to build shared libraries
configure:10400: result: no
configure:10403: checking whether to build static libraries
configure:10407: result: yes
configure:10501: creating libtool
configure:11094: checking for ld used by ccache g++
configure:11161: result: /usr/bin/ld
configure:11170: checking if the linker (/usr/bin/ld) is GNU ld
configure:11185: result: yes
configure:11236: checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries
configure:12182: result: yes
configure:12199: ccache g++ -c -g -O2  conftest.cpp &amp;gt;&amp;amp;5
configure:12202: $? = 0
configure:12358: checking for ccache g++ option to produce PIC
configure:12642: result: -fPIC
configure:12650: checking if ccache g++ PIC flag -fPIC works
configure:12668: ccache g++ -c -g -O2  -fPIC -DPIC conftest.cpp &amp;gt;&amp;amp;5
configure:12672: $? = 0
configure:12685: result: yes
configure:12713: checking if ccache g++ static flag -static works
configure:12741: result: yes
configure:12751: checking if ccache g++ supports -c -o file.o
configure:12772: ccache g++ -c -g -O2  -o out/conftest2.o conftest.cpp &amp;gt;&amp;amp;5
configure:12776: $? = 0
configure:12798: result: yes
configure:12824: checking whether the ccache g++ linker (/usr/bin/ld) supports shared libraries
configure:12850: result: yes
configure:12917: checking dynamic linker characteristics
configure:13469: result: GNU/Linux ld.so
configure:13493: checking how to hardcode library paths into programs
configure:13518: result: immediate
configure:19747: checking for getisax
configure:19803: ccache gcc -o conftest -march=i486 -fPIC  -Wl,-rpath,'$$ORIGIN:$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack conftest.c  
&amp;gt;&amp;amp;5
/tmp/ccAy8RAp.o: In function `main':
conftest.c:(.text+0x1c): undefined reference to `getisax'
configure:19809: $? = 0
configure:19827: result: yes
configure:19837: checking whether byte ordering is bigendian
configure:19870: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:19876: $? = 0
configure:19908: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
conftest.c: In function 'main':
conftest.c:29: error: 'not' undeclared (first use in this function)
conftest.c:29: error: (Each undeclared identifier is reported only once
conftest.c:29: error: for each function it appears in.)
conftest.c:29: error: expected ';' before 'big'
configure:19914: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pixman"
| #define PACKAGE_TARNAME "pixman"
| #define PACKAGE_VERSION "0.12.0"
| #define PACKAGE_STRING "pixman 0.12.0"
| #define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
| #define PACKAGE "pixman"
| #define VERSION "0.12.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_GETISAX 1
| /* end confdefs.h.  */
| #include &amp;lt;sys/types.h&amp;gt;
| #include &amp;lt;sys/param.h&amp;gt;
| 
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|  not big endian
| #endif
| 
|   ;
|   return 0;
| }
configure:20054: result: no
configure:20073: checking for inline
configure:20099: ccache gcc -c -march=i486 -fPIC  conftest.c &amp;gt;&amp;amp;5
configure:20105: $? = 0
configure:20123: result: inline
configure:20173: checking for perl
configure:20204: result: /usr/bin/perl
configure:20221: checking for -fvisibility
configure:20238: ccache gcc -c -march=i486 -fPIC -Wall  conftest.c &amp;gt;&amp;amp;5
configure:20244: $? = 0
configure:20262: result: yes
configure:20266: checking for -xldscope (Sun compilers)
configure:20283: ccache gcc -c -march=i486 -fPIC -Wall -fvisibility=hidden  conftest.c &amp;gt;&amp;amp;5
conftest.c:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Need'
configure:20289: $? = 1
configure: failed program was:
| 
| #if defined(__SUNPRO_C) &amp;amp;&amp;amp; (__SUNPRO_C &amp;gt;= 0x550)
| #else
| error Need Sun Studio 8 for visibility
| #endif
| int main () { return 0; }
| 
configure:20307: result: no
configure:20314: checking whether to use MMX intrinsics
configure:20335: ccache gcc -c -march=i486 -fPIC -Wall -fvisibility=hidden -mmmx -Winline  conftest.c &amp;gt;&amp;amp;5
configure:20341: $? = 0
configure:20379: result: yes
configure:20400: checking whether to use SSE2 intrinsics
configure:20427: ccache gcc -c -march=i486 -fPIC -Wall -fvisibility=hidden -msse2 -mmmx -msse2 -Winline  conftest.c &amp;gt;&amp;amp;5
conftest.c: In function 'main':
conftest.c:12: warning: 'a' is used uninitialized in this function
conftest.c:12: warning: 'b' is used uninitialized in this function
configure:20433: $? = 0
configure:20469: result: yes
configure:20496: checking whether to use VMX/Altivec intrinsics
configure:20518: ccache gcc -c -march=i486 -fPIC -Wall -fvisibility=hidden -maltivec -mabi=altivec  conftest.c &amp;gt;&amp;amp;5
cc1: error: unrecognized command line option "-maltivec"
cc1: error: unrecognized command line option "-mabi=altivec"
configure:20524: $? = 1
configure: failed program was:
| 
| #if defined(__GNUC__) &amp;amp;&amp;amp; (__GNUC__ &amp;lt; 3 || (__GNUC__ == 3 &amp;amp;&amp;amp; __GNUC_MINOR__ &amp;lt; 4))
| error "Need GCC &amp;gt;= 3.4 for sane altivec support"
| #endif
| #include &amp;lt;altivec.h&amp;gt;
| int main () {
|     vector unsigned int v = vec_splat_u32 (1);
|     v = vec_sub (v, v);
|     return 0;
| }
configure:20562: result: no
configure:20638: checking for pkg-config
configure:20656: found /usr/bin/pkg-config
configure:20668: result: /usr/bin/pkg-config
configure:20697: checking pkg-config is at least version 0.9.0
configure:20700: result: yes
configure:20711: $PKG_CONFIG --exists --print-errors "gtk+-2.0"
configure:20714: $? = 0
configure:20724: checking for GTK
configure:20731: $PKG_CONFIG --exists --print-errors "gtk+-2.0"
configure:20734: $? = 0
configure:20747: $PKG_CONFIG --exists --print-errors "gtk+-2.0"
configure:20750: $? = 0
configure:20825: result: yes
configure:20996: creating ./config.status
&amp;nbsp;
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
&amp;nbsp;
This file was extended by pixman config.status 0.12.0, which was
generated by GNU Autoconf 2.61.  Invocation command line was
&amp;nbsp;
  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 
&amp;nbsp;
on lubuntu
&amp;nbsp;
config.status:690: creating pixman-1.pc
config.status:690: creating pixman-1-uninstalled.pc
config.status:690: creating Makefile
config.status:690: creating pixman/Makefile
config.status:690: creating pixman/pixman-version.h
config.status:690: creating test/Makefile
config.status:690: creating config.h
config.status:967: executing depfiles commands
&amp;nbsp;
## ---------------- ##
## Cache variables. ##
## ---------------- ##
&amp;nbsp;
ac_cv_build=i686-pc-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_inline=inline
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='ccache gcc'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=i486 -fPIC'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='ccache g++'
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_GTK_CFLAGS_set=
ac_cv_env_GTK_CFLAGS_value=
ac_cv_env_GTK_LIBS_set=
ac_cv_env_GTK_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-rpath,'\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'' -Wl,-noinhibit-exec -Wl,-z,noexecstack'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_f77_compiler_gnu=no
ac_cv_func_getisax=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_CPP='ccache gcc -E'
ac_cv_prog_CXXCPP='ccache g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC='ccache gcc'
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_f77_g=no
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (l
t_ptr) \&amp;amp;\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_lib_dlsearch_path_spec='/usr/lib /lib /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/lib/alsa-lib /usr/local/lib '
lt_cv_sys_lib_search_path_spec='/usr/lib /lib /usr/local/lib'
lt_cv_sys_max_cmd_len=1572864
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"yes"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[     ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[     ][     ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*
\\)\$/  {\"\\2\", (lt_ptr) \\&amp;amp;\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
pkg_cv_GTK_CFLAGS='-D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr
/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '
pkg_cv_GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontco
nfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  '
&amp;nbsp;
## ----------------- ##
## Output variables. ##
## ----------------- ##
&amp;nbsp;
ACLOCAL='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run aclocal-1.10'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run automake-1.10'
AWK='mawk'
CC='ccache gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-march=i486 -fPIC -Wall -fvisibility=hidden'
CPP='ccache gcc -E'
CPPFLAGS=''
CXX='ccache g++'
CXXCPP='ccache g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DEP_CFLAGS=''
DEP_LIBS=''
DSYMUTIL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
F77=''
FFLAGS=''
GREP='/bin/grep'
GTK_CFLAGS='-D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/includ
e/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '
GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -l
gobject-2.0 -lgmodule-2.0 -lglib-2.0  '
HAVE_GTK_FALSE='#'
HAVE_GTK_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,-rpath,'\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'' -Wl,-noinhibit-exec -Wl,-z,noexecstack'
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
LT_VERSION_INFO='12:0:12'
MAKEINFO='${SHELL} /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/missing --run makeinfo'
MMX_CFLAGS='-mmmx -Winline'
NMEDIT=''
OBJEXT='o'
PACKAGE='pixman'
PACKAGE_BUGREPORT='"sandmann@daimi.au.dk"'
PACKAGE_NAME='pixman'
PACKAGE_STRING='pixman 0.12.0'
PACKAGE_TARNAME='pixman'
PACKAGE_VERSION='0.12.0'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
PIXMAN_VERSION_MAJOR='0'
PIXMAN_VERSION_MICRO='0'
PIXMAN_VERSION_MINOR='12'
PKG_CONFIG='/usr/bin/pkg-config'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
SSE2_CFLAGS='-mmmx -msse2 -Winline'
STRIP='strip'
USE_MMX_FALSE='#'
USE_MMX_TRUE=''
USE_SSE2_FALSE='#'
USE_SSE2_TRUE=''
USE_VMX_FALSE=''
USE_VMX_TRUE='#'
VERSION='0.12.0'
VMX_CFLAGS=''
ac_ct_CC='ccache gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
&amp;nbsp;
## ----------- ##
## confdefs.h. ##
## ----------- ##
&amp;nbsp;
#define PACKAGE_NAME "pixman"
#define PACKAGE_TARNAME "pixman"
#define PACKAGE_VERSION "0.12.0"
#define PACKAGE_STRING "pixman 0.12.0"
#define PACKAGE_BUGREPORT ""sandmann@daimi.au.dk""
#define PACKAGE "pixman"
#define VERSION "0.12.0"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define HAVE_GETISAX 1
#define USE_MMX 1
#define USE_SSE2 1
&amp;nbsp;
configure: exit 0
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 08:21:40 -0800</pubDate></item><item><guid isPermaLink="false">5rov9w</guid><link>http://codepaste.net/5rov9w</link><a10:author><a10:name>hjjji</a10:name></a10:author><title>mgnjng</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
/* prácica realizada por Martín Canoura Martínez NP:50.414*/
&amp;nbsp;
/*-nombre ape  ps1_exp
&amp;nbsp;
-comentarios apellidos nombre y numero de expe
&amp;nbsp;
-clase cadena de caracteres 2 atributos puntero a cadena y atributo longitud
-constructor(defecto y parametro) constructor copia y destructor
-sobrecarga operador+  static para llevar cuenta de cuantos objetos o instancias de cadena tenemos
-hacer main y probar ,en constructor mensaje para ver cuando se ejecuta.
*/
&amp;nbsp;
&amp;nbsp;
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;iostream.h&amp;gt;
&amp;nbsp;
clase cadena
{
    private:
          cha *cad; // puntero a cadena de caracteres
          int long; // longitu de la cadena
    static int contador; // contador de objetos cadena
    public:
      cadena(); //constructor por defecto
      cadena(char *c); // constructor
      cadena(const cadena &amp;amp;cad,); // constructor copia
      ~cadena(); // destructor
       void asignar(char *dest);
       char *leer(char *c);
};
&amp;nbsp;
cadena::cadena() : cad(NULL){cout &amp;lt;&amp;lt; "llamada al constructor por defecto\n"}
&amp;nbsp;
cadena :: cadena(char *c){
    
    cad= new char[strlen(c)+1]; // reserva memoria para cadena
    strcpy(cad,c);
    cout &amp;lt;&amp;lt; "llamada al constructor por parametros\n";
}
&amp;nbsp;
cadena::cadena(int long){ // para crear cadenas de longitud long
    cad=new char[long+1];
    cad[0]=0;
}
&amp;nbsp;
cadena::cadena(const cadena &amp;amp;cad){
 cad=new char[strlen(cad.cad)+1];
 strcpy(cad, cad.cad);
 cout &amp;lt;&amp;lt; "llamada la constructor copia\n";
}
&amp;nbsp;
cadena::~cadena(){// destructor
    delete[] cad;
}
&amp;nbsp;
void cadena::asignar(char *dest){
    delete[] cad;
    cad=new char[strlen(dest)+1];
    strcpy(cad,dest);
}
&amp;nbsp;
char *cadena::leer(char *c){
    strcpy(c,cad);
    return c;
}
&amp;nbsp;
&amp;nbsp;
int main(){
&amp;nbsp;
    cadena cadena1("cadena de prueba");
    cadena cadena2(cadena1);
    cadena *cadena3;
    char c[256];
     
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 08:10:39 -0800</pubDate></item><item><guid isPermaLink="false">o3cet2</guid><link>http://codepaste.net/o3cet2</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&amp;nbsp;
&amp;lt;&lt;span class="html"&gt;Grid&lt;/span&gt; &lt;span class="attr"&gt;x:Name&lt;/span&gt;&lt;span class="kwrd"&gt;="LayoutRoot"&lt;/span&gt; &lt;span class="attr"&gt;Background&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt; &lt;span class="attr"&gt;RenderTransformOrigin&lt;/span&gt;&lt;span class="kwrd"&gt;="0.5,0.5"&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Grid.RenderTransform&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;TransformGroup&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;ScaleTransform&lt;/span&gt;/&amp;gt;
         &amp;lt;&lt;span class="html"&gt;SkewTransform&lt;/span&gt;/&amp;gt;
         &amp;lt;&lt;span class="html"&gt;RotateTransform&lt;/span&gt;/&amp;gt;
         &amp;lt;&lt;span class="html"&gt;TranslateTransform&lt;/span&gt; &lt;span class="attr"&gt;X&lt;/span&gt;&lt;span class="kwrd"&gt;="1.5"&lt;/span&gt; &lt;span class="attr"&gt;Y&lt;/span&gt;&lt;span class="kwrd"&gt;="0.5"&lt;/span&gt;/&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;TransformGroup&lt;/span&gt;&amp;gt;
   &amp;lt;/&lt;span class="html"&gt;Grid.RenderTransform&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="135,75,131,31"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="5"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFFFE83A"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.741"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFE5CD3C"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="1"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFFFE000"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFFFE632"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.422"&lt;/span&gt;/&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
   &amp;lt;/&lt;span class="html"&gt;Ellipse&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Grid&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="203,169,0,206"&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="105"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="2"&lt;/span&gt; &amp;gt;
         &amp;lt;&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFCACACA"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.931"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF353535"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="1"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.897"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.862"&lt;/span&gt;/&amp;gt;
            &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
      
      &amp;lt;/&lt;span class="html"&gt;Ellipse&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="20,32,0,43"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="2"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="32"&lt;/span&gt; &lt;span class="attr"&gt;Fill&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF953834"&lt;/span&gt;/&amp;gt;
&amp;nbsp;
&amp;nbsp;
   
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="10"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="23,36,0,0"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;VerticalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Top"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="11"&lt;/span&gt; &lt;span class="attr"&gt;Fill&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
&amp;nbsp;
&amp;nbsp;
   
   &amp;lt;/&lt;span class="html"&gt;Grid&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Grid&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="0,169,194,206"&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Right"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="105"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="2"&lt;/span&gt; &amp;gt;
         &amp;lt;&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFCACACA"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.931"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF353535"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="1"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.897"&lt;/span&gt;/&amp;gt;
               &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt; &lt;span class="attr"&gt;Offset&lt;/span&gt;&lt;span class="kwrd"&gt;="0.862"&lt;/span&gt;/&amp;gt;
            &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;Ellipse.Fill&lt;/span&gt;&amp;gt;
      
      &amp;lt;/&lt;span class="html"&gt;Ellipse&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="20,32,0,43"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="2"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="32"&lt;/span&gt; &lt;span class="attr"&gt;Fill&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF953834"&lt;/span&gt;/&amp;gt;
&amp;nbsp;
&amp;nbsp;
   
      &amp;lt;&lt;span class="html"&gt;Ellipse&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="10"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="23,36,0,0"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;VerticalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Top"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="11"&lt;/span&gt; &lt;span class="attr"&gt;Fill&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
&amp;nbsp;
&amp;nbsp;
   
   &amp;lt;/&lt;span class="html"&gt;Grid&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Path&lt;/span&gt; &lt;span class="attr"&gt;Data&lt;/span&gt;&lt;span class="kwrd"&gt;="M52.5,1 C80.942665,1 104,24.057335 104,52.5 C104,55.1665 103.79735,57.785667 103.40661,60.342941 L103.2149,61.5 L103.19563,61.383644 C98.891785,37.289375 77.831749,19 52.5,19 C27.168251,19 6.1082172,37.289375 1.8043742,61.383644 L1.7850964,61.5 L1.593395,60.342941 C1.2026531,57.785667 1.0000007,55.1665 1,52.5 C1.0000007,24.057335 24.057335,1 52.5,1 z"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="62.5"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="203,128,0,0"&lt;/span&gt; &lt;span class="attr"&gt;Stretch&lt;/span&gt;&lt;span class="kwrd"&gt;="Fill"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="3"&lt;/span&gt; &lt;span class="attr"&gt;UseLayoutRounding&lt;/span&gt;&lt;span class="kwrd"&gt;="False"&lt;/span&gt; &lt;span class="attr"&gt;VerticalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Top"&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Left"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="105"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFCACACA"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF353535"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF953834"&lt;/span&gt;/&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
   &amp;lt;/&lt;span class="html"&gt;Path&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Path&lt;/span&gt; &lt;span class="attr"&gt;Data&lt;/span&gt;&lt;span class="kwrd"&gt;="M52.5,1 C80.942665,1 104,24.057335 104,52.5 C104,55.1665 103.79735,57.785667 103.40661,60.342941 L103.2149,61.5 L103.19563,61.383644 C98.891785,37.289375 77.831749,19 52.5,19 C27.168251,19 6.1082172,37.289375 1.8043742,61.383644 L1.7850964,61.5 L1.593395,60.342941 C1.2026531,57.785667 1.0000007,55.1665 1,52.5 C1.0000007,24.057335 24.057335,1 52.5,1 z"&lt;/span&gt; &lt;span class="attr"&gt;HorizontalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Right"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="62.5"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="0,130,189,0"&lt;/span&gt; &lt;span class="attr"&gt;Stretch&lt;/span&gt;&lt;span class="kwrd"&gt;="Fill"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="3"&lt;/span&gt; &lt;span class="attr"&gt;UseLayoutRounding&lt;/span&gt;&lt;span class="kwrd"&gt;="False"&lt;/span&gt; &lt;span class="attr"&gt;VerticalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Top"&lt;/span&gt; &lt;span class="attr"&gt;Width&lt;/span&gt;&lt;span class="kwrd"&gt;="105"&lt;/span&gt; &lt;span class="attr"&gt;RenderTransformOrigin&lt;/span&gt;&lt;span class="kwrd"&gt;="0.167,0.84"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Path.RenderTransform&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;TransformGroup&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;ScaleTransform&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;SkewTransform&lt;/span&gt; &lt;span class="attr"&gt;AngleY&lt;/span&gt;&lt;span class="kwrd"&gt;="-12"&lt;/span&gt; &lt;span class="attr"&gt;AngleX&lt;/span&gt;&lt;span class="kwrd"&gt;="-25"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;RotateTransform&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;TranslateTransform&lt;/span&gt;/&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;TransformGroup&lt;/span&gt;&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;Path.RenderTransform&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFCACACA"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF353535"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF953834"&lt;/span&gt;/&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
      
   &amp;lt;/&lt;span class="html"&gt;Path&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="html"&gt;Path&lt;/span&gt; &lt;span class="attr"&gt;Data&lt;/span&gt;&lt;span class="kwrd"&gt;="M49.750385,-19.951162 C78.193047,-19.951162 104,24.057335 104,52.5 C104,55.1665 103.79735,57.785667 103.40661,60.342941 L103.2149,61.5 L103.19563,61.383644 C98.891785,37.289375 77.831749,19 52.5,19 C27.168251,19 6.1082172,37.289375 1.8043742,61.383644 L1.7850964,61.5 L1.593395,60.342941 C1.2026531,57.785667 1.0000007,55.1665 1,52.5 C1.0000004,40.364826 2.4475915,8.2588024 9.4695053,-0.54324716 C13.289322,-5.3314323 17.945026,-9.4233732 23.215677,-12.59813 C30.965246,-17.266056 40.044247,-19.951162 49.750385,-19.951162 z"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="83.105"&lt;/span&gt; &lt;span class="attr"&gt;Margin&lt;/span&gt;&lt;span class="kwrd"&gt;="270,0,265,94.5"&lt;/span&gt; &lt;span class="attr"&gt;Stretch&lt;/span&gt;&lt;span class="kwrd"&gt;="Fill"&lt;/span&gt; &lt;span class="attr"&gt;Stroke&lt;/span&gt;&lt;span class="kwrd"&gt;="Black"&lt;/span&gt; &lt;span class="attr"&gt;StrokeThickness&lt;/span&gt;&lt;span class="kwrd"&gt;="3"&lt;/span&gt; &lt;span class="attr"&gt;UseLayoutRounding&lt;/span&gt;&lt;span class="kwrd"&gt;="False"&lt;/span&gt; &lt;span class="attr"&gt;VerticalAlignment&lt;/span&gt;&lt;span class="kwrd"&gt;="Bottom"&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
         &amp;lt;&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FFCACACA"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF353535"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="White"&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="html"&gt;GradientStop&lt;/span&gt; &lt;span class="attr"&gt;Color&lt;/span&gt;&lt;span class="kwrd"&gt;="#FF953834"&lt;/span&gt;/&amp;gt;
         &amp;lt;/&lt;span class="html"&gt;RadialGradientBrush&lt;/span&gt;&amp;gt;
      &amp;lt;/&lt;span class="html"&gt;Path.Fill&lt;/span&gt;&amp;gt;
      
   &amp;lt;/&lt;span class="html"&gt;Path&lt;/span&gt;&amp;gt;
&amp;nbsp;
&amp;nbsp;
   
&amp;lt;/&lt;span class="html"&gt;Grid&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 07:16:56 -0800</pubDate></item><item><guid isPermaLink="false">x5xem8</guid><link>http://codepaste.net/x5xem8</link><a10:author><a10:name>benbois</a10:name></a10:author><title>20100310 o4k linux32 01</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
 ccache gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAN_DISABLE_DEPRECATED -march=i486 -fPIC -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-compose.lo -MD -MP -MF .deps/libpixman_1_la-pixman-compose.Tpo -c pixman-compose.c -o libpixman_1_la-pixman-compose.o
mv -f .deps/libpixman_1_la-pixman-compose.Tpo .deps/libpixman_1_la-pixman-compose.Plo
/bin/bash ../libtool --tag=CC   --mode=compile ccache gcc -DHAVE_CONFIG_H -I. -I..    -DPIXMAN_DISABLE_DEPRECATED -march=i486 -fPIC -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-compose-accessors.lo -MD -MP -MF .deps/libpixman_1_la-pixman-compose-accessors.Tpo -c -o libpixman_1_la-pixman-compose-accessors.lo `test -f 'pixman-compose-accessors.c' || echo './'`pixman-compose-accessors.c
 ccache gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAN_DISABLE_DEPRECATED -march=i486 -fPIC -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-compose-accessors.lo -MD -MP -MF .deps/libpixman_1_la-pixman-compose-accessors.Tpo -c pixman-compose-accessors.c -o libpixman_1_la-pixman-compose-accessors.o
mv -f .deps/libpixman_1_la-pixman-compose-accessors.Tpo .deps/libpixman_1_la-pixman-compose-accessors.Plo
/bin/bash ../libtool --tag=CC   --mode=compile ccache gcc -DHAVE_CONFIG_H -I. -I..    -DPIXMAN_DISABLE_DEPRECATED -march=i486 -fPIC -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-pict.lo -MD -MP -MF .deps/libpixman_1_la-pixman-pict.Tpo -c -o libpixman_1_la-pixman-pict.lo `test -f 'pixman-pict.c' || echo './'`pixman-pict.c
 ccache gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAN_DISABLE_DEPRECATED -march=i486 -fPIC -Wall -fvisibility=hidden -MT libpixman_1_la-pixman-pict.lo -MD -MP -MF .deps/libpixman_1_la-pixman-pict.Tpo -c pixman-pict.c -o libpixman_1_la-pixman-pict.o
pixman-pict.c:1961:22: error: sys/auxv.h: No such file or directory
pixman-pict.c: In function 'detectCPUFeatures':
pixman-pict.c:1978: warning: implicit declaration of function 'getisax'
pixman-pict.c:1979: error: 'AV_386_CMOV' undeclared (first use in this function)
pixman-pict.c:1979: error: (Each undeclared identifier is reported only once
pixman-pict.c:1979: error: for each function it appears in.)
pixman-pict.c:1981: error: 'AV_386_MMX' undeclared (first use in this function)
pixman-pict.c:1983: error: 'AV_386_AMD_MMX' undeclared (first use in this function)
pixman-pict.c:1985: error: 'AV_386_SSE' undeclared (first use in this function)
pixman-pict.c:1987: error: 'AV_386_SSE2' undeclared (first use in this function)
make[2]: *** [libpixman_1_la-pixman-pict.lo] Error 1
make[2]: Leaving directory `/home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0/pixman'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leon/OOo4Kids_compilation/trunk/cairo/unxlngi6.pro/misc/build/pixman-0.12.0'
make: *** [all] Error 2
dmake:  Error code 2, while making '../unxlngi6.pro/misc/build/so_built_so_pixman'
&amp;nbsp;
ERROR: Error 65280 occurred while making /home/leon/OOo4Kids_compilation/trunk/cairo/pixman
rmdir /tmp/svElnuDMVd
leon@lubuntu:~/OOo4Kids_compilation/trunk/cairo$ svn up
At revision 484.
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 03:49:35 -0800</pubDate></item><item><guid isPermaLink="false">ko7s4z</guid><link>http://codepaste.net/ko7s4z</link><title>Create multiple IIS HTTPS sites with hostheaders</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
c:\windows\system32\inetsrv\appcmd set site /site.name:"&amp;lt;IIS Site name&amp;gt;" /+bindings.[protocol='https',bindingInformation='*:443:&amp;lt;host header name&amp;gt;']
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 02:41:52 -0800</pubDate></item><item><guid isPermaLink="false">syqn3z</guid><link>http://codepaste.net/syqn3z</link><title>matrixsumprodus</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
#include &amp;lt;fstream&amp;gt;
using namespace std;
ifstream in("matrix.in");
ofstream out("matrix.out");
int main()
{
    int n,m,v[20][20],i,j,s=0,p=1;
    in&amp;gt;&amp;gt;n&amp;gt;&amp;gt;m;
    for (i=0;i&amp;lt;n;i++)
    {
      for (j=0;j&amp;lt;m;j++)
        {
            in&amp;gt;&amp;gt;v[i][j];
            s+=v[i][j];
            p*=v[i][j];
      }
    }
    for (i=0;i&amp;lt;n;i++)
    {
      for (j=0;j&amp;lt;m;j++)out&amp;lt;&amp;lt;v[i][j]&amp;lt;&amp;lt;" ";
      out&amp;lt;&amp;lt;endl;
    }
    out&amp;lt;&amp;lt;endl;
    out&amp;lt;&amp;lt;s&amp;lt;&amp;lt;" "&amp;lt;&amp;lt;p;
    return 0;
}    
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 00:10:48 -0800</pubDate></item><item><guid isPermaLink="false">223na1</guid><link>http://codepaste.net/223na1</link><title>teststrata</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; test_getStratumFromASite_should_onlyGetStratumFromTheSite()
    {
        HibernateUtil.beginUnitOfWork();
        IStratumRepo stratumRepo = RepositoryFactory.getSTRATUM_REPO();
        ISite[] sites = {
                &lt;span class="kwrd"&gt;new&lt;/span&gt; Site(),
                &lt;span class="kwrd"&gt;new&lt;/span&gt; Site()
        };
        &lt;span class="rem"&gt;//This number has no importance besides being &amp;gt; 1&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; numStrataPerSite = 10;
&amp;nbsp;
        &lt;span class="rem"&gt;// Add sites&lt;/span&gt;
        sites[0].setName(&lt;span class="str"&gt;"Site 0"&lt;/span&gt;);
        sites[1].setName(&lt;span class="str"&gt;"Site 1"&lt;/span&gt;);
        ISiteRepo siteRepo = RepositoryFactory.getSITE_REPO();
        siteRepo.insertEntity(sites[0]);
        siteRepo.insertEntity(sites[1]);
&amp;nbsp;
        &lt;span class="rem"&gt;//Add strata&lt;/span&gt;
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0; i &amp;lt; sites.length; i++)
        {
            &lt;span class="rem"&gt;// Insert the strata into the sites&lt;/span&gt;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; j = 0; j &amp;lt; numStrataPerSite; j++)
            {
                IStratum stratum = &lt;span class="kwrd"&gt;new&lt;/span&gt; Stratum();
                sites[i].addStratum(stratum);
                &lt;span class="rem"&gt;//stratumRepo.insertEntity(stratum);&lt;/span&gt;
                siteRepo.updateEntity(sites[i]);
            }
        }
&amp;nbsp;
        HibernateUtil.endUnitOfWork();
&amp;nbsp;
        &lt;span class="rem"&gt;//Make sure that only the correct strata are returned per site&lt;/span&gt;
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0; i &amp;lt; sites.length; i++)
        {
            &lt;span class="rem"&gt;//Retrieve the site from the database again to make sure the copy&lt;/span&gt;
            &lt;span class="rem"&gt;//is just not being read from memory&lt;/span&gt;
            ISite copiedSite = sites[i];&lt;span class="rem"&gt;// siteRepo.getItemById(sites[i].getID());&lt;/span&gt;
            &lt;span class="rem"&gt;//List&amp;lt;IStratum&amp;gt; strata = stratumRepo.getStrataBySite(copiedSite);&lt;/span&gt;
&lt;span class="rem"&gt;//            assertTrue(&lt;/span&gt;
&lt;span class="rem"&gt;//                    "Strata size: " + strata.size() + " should be " + numStrataPerSite,&lt;/span&gt;
&lt;span class="rem"&gt;//                    strata.size() == numStrataPerSite);&lt;/span&gt;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; (IStratum stratum : strata)
            {
                &lt;span class="rem"&gt;//assertTrue(stratum.getName().equals(copiedSite.getName()));&lt;/span&gt;
            }
&amp;nbsp;
        }
        HibernateUtil.rollbackUnitOfWork();
    }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 00:06:16 -0800</pubDate></item><item><guid isPermaLink="false">yskoyp</guid><link>http://codepaste.net/yskoyp</link><title>matrix</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
#include &amp;lt;fstream&amp;gt;
using namespace std;
ifstream in("matrix.in");
ofstream out("matrix.out");
int main()
{
    int n,m,v[20][20],i,j;
    in&amp;gt;&amp;gt;n&amp;gt;&amp;gt;m;
    for (i=0;i&amp;lt;n;i++)
    {
      for (j=0;j&amp;lt;m;j++)
        in&amp;gt;&amp;gt;v[i][j];
    }
    for (i=0;i&amp;lt;n;i++)
    {
      for (j=0;j&amp;lt;m;j++)out&amp;lt;&amp;lt;v[i][j]&amp;lt;&amp;lt;" ";
      out&amp;lt;&amp;lt;endl;
    }
    return 0;
}    
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Wed, 10 Mar 2010 00:02:45 -0800</pubDate></item><item><guid isPermaLink="false">srvjhz</guid><link>http://codepaste.net/srvjhz</link><a10:author><a10:name>Chronic Masturbator</a10:name></a10:author><title>Bleh</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
wWUNIQUEWw
is available
    
7:11 pm
Im moving out for Ã  month..so i wont be on..if you really need me..heres my number..1(630)687-3951. CIAO..take it easy -Erik Silva
1d and 6h ago Comment
EviL WaLdO510     7:11 pm
EviL WaLdO510 (7:11:12 PM):
take a step back. and leave the girl alone.
EviL WaLdO510 (7:11:16 PM):
i know what is going on.
EviL WaLdO510 (7:12:02 PM):
if you really are the man you say. you would face to me. and consult the problems you have.
EviL WaLdO510 (7:12:06 PM):
do i make myself clear?
wWUNIQUEWw     7:12 pm
wWUNIQUEWw (7:12:19 PM):
ok
wWUNIQUEWw (7:12:34 PM):
i want tod
wWUNIQUEWw (7:12:43 PM):
slap the whole world
wWUNIQUEWw (7:12:54 PM):
fuck every pussy out there
EviL WaLdO510     7:13 pm
EviL WaLdO510 (7:13:24 PM):
are you serious..
wWUNIQUEWw     7:13 pm
wWUNIQUEWw (7:13:57 PM):
starting with your pussy
EviL WaLdO510     7:14 pm
EviL WaLdO510 (7:14:21 PM):
what..the.fuck
wWUNIQUEWw     7:14 pm
wWUNIQUEWw (7:14:50 PM):
theoritically speakkng everyone has a pussy
wWUNIQUEWw (7:15:00 PM):
i have a pussu
wWUNIQUEWw (7:15:10 PM):
you have a pussy
EviL WaLdO510     7:15 pm
EviL WaLdO510 (7:15:34 PM):
wow.
EviL WaLdO510 (7:15:53 PM):
your totally fucked in the head.
EviL WaLdO510 (7:16:21 PM):
my calculations prove. your 110% messed up. and corrupted.
wWUNIQUEWw     7:16 pm
wWUNIQUEWw (7:16:50 PM):
i fucked your pussy
wWUNIQUEWw (7:16:56 PM):
already
wWUNIQUEWw (7:17:07 PM):
smh! -.-
EviL WaLdO510     7:18 pm
EviL WaLdO510 (7:18:15 PM):
your so cool
EviL WaLdO510 (7:19:24 PM):
im serious
EviL WaLdO510 (7:19:34 PM):
you must have everything
wWUNIQUEWw     7:20 pm
wWUNIQUEWw (7:20:44 PM):
i do haha
wWUNIQUEWw (7:20:54 PM):
have everything
EviL WaLdO510     7:24 pm
EviL WaLdO510 (7:24:06 PM):
yep torturing young teenagers. you all old. working in a bare minimum wage job. no college education. no future plans. no self esteem. no respect for others. and a complete and crazy person with a mental disability.
EviL WaLdO510 (7:24:35 PM):
im not afraid of you...
wWUNIQUEWw     7:25 pm
wWUNIQUEWw (7:25:35 PM):
hahaha your a stupid skid
EviL WaLdO510     7:25 pm
EviL WaLdO510 (7:25:46 PM):
try me punk.
wWUNIQUEWw     7:25 pm
wWUNIQUEWw (7:25:50 PM):
i played you waldo
EviL WaLdO510     7:26 pm
EviL WaLdO510 (7:26:23 PM):
small 5 year olds have better game than you.
EviL WaLdO510 (7:26:30 PM):
i dont even have to prove anything
EviL WaLdO510 (7:26:37 PM):
thats how stuff is..
wWUNIQUEWw     7:27 pm
wWUNIQUEWw (7:27:08 PM):
im perfectly fine and sane..i have so much bordom i make up all this shit..im rich i have a good life..im concited and ive banged alot of pussy
EviL WaLdO510     7:27 pm
EviL WaLdO510 (7:27:44 PM):
i wasnt asking about your social life. was i?
wWUNIQUEWw     7:27 pm
wWUNIQUEWw (7:27:50 PM):
im playing mind tricks and im a senior btw
EviL WaLdO510     7:28 pm
EviL WaLdO510 (7:28:29 PM):
omg your so smart! you know mind tricks and reverse physcology like your the only human being that knows how.
EviL WaLdO510 (7:28:40 PM):
how ever should i do?
wWUNIQUEWw     7:30 pm
wWUNIQUEWw (7:30:15 PM):
well obviosly your a stupid ignorrant bc you believed me
wWUNIQUEWw (7:30:17 PM):
lolll
wWUNIQUEWw     7:30 pm
wWUNIQUEWw (7:30:30 PM):
im a deviant manipulator nub
wWUNIQUEWw (7:30:37 PM):
GTFO
EviL WaLdO510     7:30 pm
EviL WaLdO510 (7:30:47 PM):
yep whatever you say. or do i take things into consideration?
EviL WaLdO510 (7:31:18 PM):
im always skeptic of you. your a impulsive, and you have the mind of a young child
EviL WaLdO510 (7:31:28 PM):
wanting everybody to play along with your game
EviL WaLdO510 (7:31:36 PM):
guess what. i dont wanna play your stupid game
wWUNIQUEWw     7:32 pm
wWUNIQUEWw (7:32:05 PM):
hahaha your catching on ;) h
EviL WaLdO510     7:32 pm
EviL WaLdO510 (7:32:14 PM):
shut your fucken trap.
wWUNIQUEWw     7:32 pm
wWUNIQUEWw (7:32:37 PM):
hahaha stfu nun
EviL WaLdO510     7:33 pm
EviL WaLdO510 (7:33:16 PM):
my god its hard trying to be a pacifist if your stupidicity keeps bugging every body.
EviL WaLdO510 (7:33:28 PM):
you ignorant little sob.
wWUNIQUEWw     7:33 pm
wWUNIQUEWw (7:33:46 PM):
ahaha chilll fuck
wWUNIQUEWw (7:33:52 PM):
chillllllllll
EviL WaLdO510     7:33 pm
EviL WaLdO510 (7:33:58 PM):
oh so now i need to chill?
wWUNIQUEWw     7:34 pm
wWUNIQUEWw (7:34:08 PM):
go get some air skid
EviL WaLdO510     7:34 pm
EviL WaLdO510 (7:34:32 PM):
oh..yes...your right your always right!
EviL WaLdO510     7:34 pm
EviL WaLdO510 (7:34:38 PM):
...not.
EviL WaLdO510 (7:34:46 PM):
who are you to tell me what to do?
EviL WaLdO510 (7:34:53 PM):
you cant even take care of yourself
wWUNIQUEWw     7:35 pm
wWUNIQUEWw (7:35:13 PM):
then fuck off then,its that simple ;) h
EviL WaLdO510     7:35 pm
EviL WaLdO510 (7:35:46 PM):
that in no way relates to the freakin discussion i told you.
EviL WaLdO510 (7:35:54 PM):
now your just begging to find a way out.
EviL WaLdO510 (7:36:05 PM):
go torture yourself, until you die then
EviL WaLdO510 (7:36:10 PM):
you fucken scumbag
EviL WaLdO510 (7:36:23 PM):
no insult is worth naming you.
EviL WaLdO510 (7:36:35 PM):
because you are we define as a outcast
EviL WaLdO510     7:42 pm
EviL WaLdO510 (7:42:49 PM):
why so serious?
EviL WaLdO510 (7:43:26 PM):
where did all the fun we were having went?
wWUNIQUEWw     7:43 pm
wWUNIQUEWw (7:43:51 PM):
well party on tommorrow
EviL WaLdO510     7:43 pm
EviL WaLdO510 (7:43:52 PM):
i thought you liked this type of exploitation. being on the spot
wWUNIQUEWw     7:43 pm
wWUNIQUEWw (7:43:56 PM):
im on ipod
EviL WaLdO510     7:44 pm
EviL WaLdO510 (7:44:07 PM):
oh snap! hes on an ipod.
EviL WaLdO510 (7:44:16 PM):
geeze looweeze im so happy
EviL WaLdO510     7:46 pm
EviL WaLdO510 (7:46:45 PM):
oh and by the way. it doesnt have to mean that every female you hear/see/meet you have to her intoi there pants. jesus crist thats like being a covicted killer and denying it.
EviL WaLdO510 (7:46:55 PM):
so please keep your comments to yourself..
EviL WaLdO510 (7:47:02 PM):
and in your pants..
wWUNIQUEWw     8:00 pm
wWUNIQUEWw (8:00:33 PM):
dude illl talk smack to you when i get on laptop
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 20:27:52 -0800</pubDate></item><item><guid isPermaLink="false">8sk31g</guid><link>http://codepaste.net/8sk31g</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;stdlib.h&amp;gt;
#define MAX 100
int afisare(int a[],int dim)
{
 int i;
 for(i=0;i&amp;lt;dim;i++)
 {
                  
  printf("a[%d]=%d",i,a[i]);                 
                   }
                      
}
&amp;nbsp;
int main()
{
    int a[MAX],i,dim;
printf("Introduceti numarul de elemente:");
scanf("%d",&amp;amp;dim);
    for(i=0;i&amp;lt;dim;i++)
    {
                      printf("Introd numarul: ");
                      scanf("%d",&amp;amp;a[i]);
                      afisare(a,dim);
                      //printf("numerele tastate sunt:a[%d]=%d\n",i,a[i]);
                      }   
                                         
     system("PAUSE");
 return 0;
    
    
    
    
    
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 14:02:09 -0800</pubDate></item><item><guid isPermaLink="false">yfmqc2</guid><link>http://codepaste.net/yfmqc2</link><a10:author><a10:name>Barry Forrest</a10:name></a10:author><title>TopShelf</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Xterprise.Clarity.Ars.BusTerminal
{
    &lt;span class="kwrd"&gt;using&lt;/span&gt; System;
    &lt;span class="kwrd"&gt;using&lt;/span&gt; System.ServiceModel;
    &lt;span class="kwrd"&gt;using&lt;/span&gt; Xterprise.Clarity.Ars.Commands.ForInventory;
    &lt;span class="kwrd"&gt;using&lt;/span&gt; Xterprise.Clarity.Ars.Contracts;
&amp;nbsp;
    &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
    &lt;span class="rem"&gt;/// Controls the services which are hosted as wcf endpoints.&lt;/span&gt;
    &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; HostService
    {
        &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; endPoint = &lt;span class="str"&gt;@"net.tcp://localhost:8002"&lt;/span&gt;;
&amp;nbsp;
        &lt;span class="kwrd"&gt;private&lt;/span&gt; ServiceHost inventoryHost;
        &lt;span class="kwrd"&gt;private&lt;/span&gt; ServiceHost lookupHost;
        &lt;span class="kwrd"&gt;private&lt;/span&gt; IInventoryCommands inventoryPublisher;
        &lt;span class="kwrd"&gt;private&lt;/span&gt; ILookupOperations lookupProvider;
&amp;nbsp;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; HostService(IInventoryCommands inventory, ILookupOperations lookup)
        {
            inventoryPublisher = inventory;
            lookupProvider = lookup;
        }
&amp;nbsp;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Start()
        {
            Logger.Information(&lt;span class="str"&gt;"Starting inventory host"&lt;/span&gt;);
            inventoryHost = &lt;span class="kwrd"&gt;new&lt;/span&gt; ServiceHost(inventoryPublisher, &lt;span class="kwrd"&gt;new&lt;/span&gt; Uri(endPoint));
            inventoryHost.Open();
            Logger.Information(&lt;span class="str"&gt;"Inventory host started"&lt;/span&gt;);
            Console.WriteLine(&lt;span class="str"&gt;"Inventory host started"&lt;/span&gt;);
&amp;nbsp;
            Logger.Information(&lt;span class="str"&gt;"Starting Lookup host"&lt;/span&gt;);
            lookupHost = &lt;span class="kwrd"&gt;new&lt;/span&gt; ServiceHost(lookupProvider.GetType(), &lt;span class="kwrd"&gt;new&lt;/span&gt; Uri(endPoint));
            lookupHost.Open();
            Logger.Information(&lt;span class="str"&gt;"Lookup host started"&lt;/span&gt;);
        }
&amp;nbsp;
        &lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span class="rem"&gt;/// Closes the services.&lt;/span&gt;
        &lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Stop()
        {
            Logger.Information(&lt;span class="str"&gt;"Stopping inventory host"&lt;/span&gt;);
            inventoryHost.Close();
            Logger.Information(&lt;span class="str"&gt;"Stopping lookup host"&lt;/span&gt;);
            lookupHost.Close();
        }
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 13:34:29 -0800</pubDate></item><item><guid isPermaLink="false">ga4c2o</guid><link>http://codepaste.net/ga4c2o</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
echo $form-&amp;gt;create(array (
    'action' =&amp;gt; 'add'
));
echo $form-&amp;gt;input('1.Human.0.surname');
echo $form-&amp;gt;input('1.Human.0.prename');
echo $form-&amp;gt;input('1.Phonetype.0.phonetype', array (
    'type' =&amp;gt; 'radio'
));
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 12:23:07 -0800</pubDate></item><item><guid isPermaLink="false">6axrx9</guid><link>http://codepaste.net/6axrx9</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
Array
(
    [1] =&amp;gt; Array
        (
            [Human] =&amp;gt; Array
                (
                    [0] =&amp;gt; Array
                        (
                            [surname] =&amp;gt; 
                            [prename] =&amp;gt; 
                        )
&amp;nbsp;
                )
&amp;nbsp;
            [Phonetype] =&amp;gt; Array
                (
                    [0] =&amp;gt; Array
                        (
                            [phonetype] =&amp;gt; 
                        )
&amp;nbsp;
                )
&amp;nbsp;
        )
&amp;nbsp;
)
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 12:22:22 -0800</pubDate></item><item><guid isPermaLink="false">nv54uq</guid><link>http://codepaste.net/nv54uq</link><a10:author><a10:name>Scytale</a10:name></a10:author><title>Movie List</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
** Movies SD **
&amp;nbsp;
8mm
A Christmas Story
A Night at the Roxbury
A Time To Kill
About a Boy
Alien
Alien 3
Aliens
American Beauty
Armageddon
Army of Darkness
As Good as It Gets
Assault on Precinct 13
Austin Powers - International Man of Mystery
Austin Powers - The Spy Who Shagged Me
Bad Boys
Bad Santa
Batman Begins
Beaches
Behind the Mask
Bend it Like Beckham
Big Hit, The (1998)
Black Snake Moan
Blade
Blade 2
Blades of Glory
Blues Brothers, The
Boondock Saints
Bourne Ultimatum
Braveheart
Breakfast at Tiffany's
Breakfast Club
Can't Hardly Wait
Candyman
Cape Fear
Casino
Cell, The
Chasing Amy
Cheerleader Ninjas
Chronicles of Riddick, The
Constantine
Cruel Intentions
Dawn of the Dead
Desperado
Deuce Bigalow Male Gigolo
Dirty Dancing
Disturbia
Dodgeball - A True Underdog Story
Doors, The
Dumb and Dumber
Encino Man
Eraser
Ferris Bueller's Day Off
First Wive's Club
Flatliners
Footloose
From Dusk Till Dawn
Full Metal Jacket
Garden State
Good Girl, The
Good Will Hunting
Goodfellas
Goonies, The
Grease
Happy Gilmore
Haunted World of El Superbeasto, The
Hauru no ugoku shiro
Heat
Heathers
High Fidelity
Hostel
Hot Fuzz
How to Lose a Guy in 10 Days
Idiocracy
Independence Day
Interview With the Vampire
Jackass Number Two
Jay and Silent Bob Strike Back
Jurassic Park
Jurassic Park 3
Kill Bill Vol 1
Kill Bill Vol 2
Knight's Tale
Land of the Dead
Lethal Weapon
Lethal Weapon 2
Lethal Weapon 3
Lethal Weapon 4
Lilo and Stitch
Lock, Stock and Two Smoking Barrels
Lord of the Rings - The Fellowship of the Ring
Lord of the Rings - The Return of the King
Lord of the Rings - The Two Towers
Lord of War
Lost Boys
Love Actually
Mallrats
Meaning of Life, The
Million Dollar Baby
Minority Report
Monsters, Inc
Monty Python and the Holy Grail
MoviesSD.txt
Mr Brooks
Mummy Returns, The
Napoleon Dynamite
Nick and Norah's Infinite Playlist
Orgazmo
Pirates of the Caribbean - At World's End
Pirates of the Caribbean - Dead Man's Chest
Pirates of the Caribbean - The Curse of the Black Pearl
Pitch Black
Planes, Trains, and Automobiles
Planet Terror
Predator 2
Pretty In Pink
Pump up the Volume
Requiem for a Dream
Ring, The
Roadhouse
Rush Hour
Saw
Say Anything
Scarface
Scent of a Woman
Shawshank Redemption
Shining, The
Shrek
Shrek 2
Signs
Silence of the Lambs
Sixteen Candles
Sleepers
Sleepless in Seattle
So I Married An Axe Murderer
Spiderman
St Elmos Fire
Starship Troopers
Stepmom
Suicide Kings
Superbad
The Descent
The Last American Virgin (1982)
The Lost World - Jurassic Park
The Matchmaker (1997)
The Outsiders
Thing, The
TMNT
True Romance
Under the Tuscan Sun
Valley Girl
Walking Tall
War of the Worlds
Whale Rider
You've Got Mail
Young Guns 2
&amp;nbsp;
** Movies HD **
&amp;nbsp;
28 Days Later
30 Days of Night
300
A Clockwork Orange
A History of Violence
Afro Samurai
Afro Samurai Resurrection
Beowulf (2007)
Big Stan
Black Hawk Down
Blade
Blade Runner
Boondock Saints
Can't Hardly Wait
Chasing Amy
Clerks
Clerks 2
Constantine
Crank
Crank High Voltage
Dark Knight, The
Departed, The
DOA Dead or Alive
Dogma
El laberinto del fauno
Equilibrium
Event Horizon
Fall, The
Fight Club
From Dusk Till Dawn
Gladiator
Hangover, The
Harold and Kumar go to White Castle
Harry Potter and the Chamber of Secrets
Harry Potter and the Goblet of Fire
Harry Potter and the Half Blood Prince
Harry Potter and the Order of the Phoenix
Harry Potter and the Prisoner of Azkaban
Harry Potter and the Sorcerer's Stone
Heat
Hellboy
Hellboy 2 The Golden Army
Hitman
Incredible Hulk, The
Indiana Jones and the Last Crusade
Iron Man
Leon
Man On Fire
Matrix, The
MoviesHD.txt
Mr Brooks
Mummy, The
Napoleon Dynamite
Perfume - The Story of a Murderer
Predator
Prestige, The
Pulp Fiction
Raiders of the Lost Ark
Rambo
Reign of Fire
Reservoir Dogs
Robocop
Se7en
Serenity
Silence of the Lambs
Sin City
Sleepy Hollow
Snakes on a Plane
Star Trek
Swingers
Terminator 2 - Judgment Day
Terminator 3 - Rise of the Machines
Terminator, The
Three Kings
Tombstone
Tropic Thunder
True Romance
Underworld
Underworld Evolution
V for Vendetta
Van Helsing
Wanted
Watchmen
X-Men
X-Men Origins Wolverine
X2
Young Guns
Young People Fucking
Zombieland
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 11:59:52 -0800</pubDate></item><item><guid isPermaLink="false">x8foie</guid><link>http://codepaste.net/x8foie</link><a10:author><a10:name>JanL</a10:name></a10:author><title>Bubblesort Hamster (Imperativ)</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="rem"&gt;/* bubblesort v2.0 aufgabe 28 */&lt;/span&gt;
&amp;nbsp;
&lt;span class="rem"&gt;// eine kachel fressen und gefressene körner zurückgeben&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt; kachelFressen(&lt;span class="kwrd"&gt;int&lt;/span&gt; koerner) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt;(;kornDa();koerner++)
        nimm();
    &lt;span class="kwrd"&gt;return&lt;/span&gt; koerner;
}
&lt;span class="rem"&gt;// kachel für kachel fressen und gezählte körner ins array schreiben&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt;[] koernerEinlesen() {
    &lt;span class="kwrd"&gt;int&lt;/span&gt;[] kachel = &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;int&lt;/span&gt;[12];
    kachel[10]=1;
    &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; x=0;vornFrei();kachel[x]=kachelFressen(0),x++)
        vor();        
    &lt;span class="kwrd"&gt;return&lt;/span&gt; kachel;        
}
&lt;span class="rem"&gt;// eingelesene kacheln sortieren und tauschvorgänge zählen+speichern, anschliessend sortiertes array zurückgeben&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt;[] bubbleSort(&lt;span class="kwrd"&gt;int&lt;/span&gt;[] kachel,&lt;span class="kwrd"&gt;int&lt;/span&gt; x) {
    &lt;span class="kwrd"&gt;while&lt;/span&gt;(kachel[10]&amp;gt;0) 
        &lt;span class="kwrd"&gt;for&lt;/span&gt;(x=0,kachel[11]+=kachel[10],kachel[10]=0;x&amp;lt;9;x++)
            kachel[10]+=arrayTauschen(kachel,x,x+1);
    &lt;span class="kwrd"&gt;return&lt;/span&gt; kachel;
}
&lt;span class="rem"&gt;// kacheln neu legen mithilfe des sortierten array und gespeicherte tauschvorgänge zurückgeben&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt; kachelnSchreiben(&lt;span class="kwrd"&gt;int&lt;/span&gt;[] kachel) {
    linksUm();
    linksUm();
    &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; x=9;x&amp;gt;=0&amp;amp;&amp;amp;vornFrei();vor(),x--)
        &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0;i&amp;lt;kachel[x];i++)
            gib();
    &lt;span class="kwrd"&gt;return&lt;/span&gt; kachel[11]-1;
}
&lt;span class="rem"&gt;// 2 positionen des arrays vertauschen wenn a &amp;gt; b ist und tauschvorgang zurückgeben&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt; arrayTauschen(&lt;span class="kwrd"&gt;int&lt;/span&gt;[] kachel,&lt;span class="kwrd"&gt;int&lt;/span&gt; a,&lt;span class="kwrd"&gt;int&lt;/span&gt; b) {
    &lt;span class="kwrd"&gt;int&lt;/span&gt; ausgelagert=0;
    &lt;span class="kwrd"&gt;if&lt;/span&gt;(kachel[a]&amp;gt;kachel[b]) {
        ausgelagert=kachel[b];
        kachel[b]=kachel[a];
        kachel[a]=ausgelagert;
        &lt;span class="kwrd"&gt;return&lt;/span&gt; 1;
    }
    &lt;span class="kwrd"&gt;return&lt;/span&gt; 0;
}
&lt;span class="rem"&gt;////////////-&amp;gt; MAIN&lt;/span&gt;
&lt;span class="rem"&gt;// reihe sortieren und tauschvorgänge wiedergeben&lt;/span&gt;
&lt;span class="kwrd"&gt;void&lt;/span&gt; main() {
    schreib(&lt;span class="str"&gt;"Es wurden "&lt;/span&gt; + kachelnSchreiben(bubbleSort(koernerEinlesen(),0)) + &lt;span class="str"&gt;" Tauschvorgänge durchgeführt."&lt;/span&gt;);
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 11:53:00 -0800</pubDate></item><item><guid isPermaLink="false">cfte6h</guid><link>http://codepaste.net/cfte6h</link><title>Movie List</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
Movies SD
8mm
A Christmas Story
A Night at the Roxbury
A Time To Kill
About a Boy
Alien
Alien 3
Aliens
American Beauty
Armageddon
Army of Darkness
As Good as It Gets
Assault on Precinct 13
Austin Powers - International Man of Mystery
Austin Powers - The Spy Who Shagged Me
Bad Boys
Bad Santa
Batman Begins
Beaches
Behind the Mask
Bend it Like Beckham
Big Hit, The (1998)
Black Snake Moan
Blade
Blade 2
Blades of Glory
Blues Brothers, The
Boondock Saints
Bourne Ultimatum
Braveheart
Breakfast at Tiffany's
Breakfast Club
Can't Hardly Wait
Candyman
Cape Fear
Casino
Cell, The
Chasing Amy
Cheerleader Ninjas
Chronicles of Riddick, The
Constantine
Cruel Intentions
Dawn of the Dead
Desperado
Deuce Bigalow Male Gigolo
Dirty Dancing
Disturbia
Dodgeball - A True Underdog Story
Doors, The
Dumb and Dumber
Encino Man
Eraser
Ferris Bueller's Day Off
First Wive's Club
Flatliners
Footloose
From Dusk Till Dawn
Full Metal Jacket
Garden State
Good Girl, The
Good Will Hunting
Goodfellas
Goonies, The
Grease
Happy Gilmore
Haunted World of El Superbeasto, The
Hauru no ugoku shiro
Heat
Heathers
High Fidelity
Hostel
Hot Fuzz
How to Lose a Guy in 10 Days
Idiocracy
Independence Day
Interview With the Vampire
Jackass Number Two
Jay and Silent Bob Strike Back
Jurassic Park
Jurassic Park 3
Kill Bill Vol 1
Kill Bill Vol 2
Knight's Tale
Land of the Dead
Lethal Weapon
Lethal Weapon 2
Lethal Weapon 3
Lethal Weapon 4
Lilo and Stitch
Lock, Stock and Two Smoking Barrels
Lord of the Rings - The Fellowship of the Ring
Lord of the Rings - The Return of the King
Lord of the Rings - The Two Towers
Lord of War
Lost Boys
Love Actually
Mallrats
Meaning of Life, The
Million Dollar Baby
Minority Report
Monsters, Inc
Monty Python and the Holy Grail
MoviesSD.txt
Mr Brooks
Mummy Returns, The
Napoleon Dynamite
Nick and Norah's Infinite Playlist
Orgazmo
Pirates of the Caribbean - At World's End
Pirates of the Caribbean - Dead Man's Chest
Pirates of the Caribbean - The Curse of the Black Pearl
Pitch Black
Planes, Trains, and Automobiles
Planet Terror
Predator 2
Pretty In Pink
Pump up the Volume
Requiem for a Dream
Ring, The
Roadhouse
Rush Hour
Saw
Say Anything
Scarface
Scent of a Woman
Shawshank Redemption
Shining, The
Shrek
Shrek 2
Signs
Silence of the Lambs
Sixteen Candles
Sleepers
Sleepless in Seattle
So I Married An Axe Murderer
Spiderman
St Elmos Fire
Starship Troopers
Stepmom
Suicide Kings
Superbad
The Descent
The Last American Virgin (1982)
The Lost World - Jurassic Park
The Matchmaker (1997)
The Outsiders
Thing, The
TMNT
True Romance
Under the Tuscan Sun
Valley Girl
Walking Tall
War of the Worlds
Whale Rider
You've Got Mail
Young Guns 2
&amp;nbsp;
Movies HD
28 Days Later
30 Days of Night
300
A Clockwork Orange
A History of Violence
Afro Samurai
Afro Samurai Resurrection
Beowulf (2007)
Big Stan
Black Hawk Down
Blade
Blade Runner
Boondock Saints
Can't Hardly Wait
Chasing Amy
Clerks
Clerks 2
Constantine
Crank
Crank High Voltage
Dark Knight, The
Departed, The
DOA Dead or Alive
Dogma
El laberinto del fauno
Equilibrium
Event Horizon
Fall, The
Fight Club
From Dusk Till Dawn
Gladiator
Hangover, The
Harold and Kumar go to White Castle
Harry Potter and the Chamber of Secrets
Harry Potter and the Goblet of Fire
Harry Potter and the Half Blood Prince
Harry Potter and the Order of the Phoenix
Harry Potter and the Prisoner of Azkaban
Harry Potter and the Sorcerer's Stone
Heat
Hellboy
Hellboy 2 The Golden Army
Hitman
Incredible Hulk, The
Indiana Jones and the Last Crusade
Iron Man
Leon
Man On Fire
Matrix, The
MoviesHD.txt
Mr Brooks
Mummy, The
Napoleon Dynamite
Perfume - The Story of a Murderer
Predator
Prestige, The
Pulp Fiction
Raiders of the Lost Ark
Rambo
Reign of Fire
Reservoir Dogs
Robocop
Se7en
Serenity
Silence of the Lambs
Sin City
Sleepy Hollow
Snakes on a Plane
Star Trek
Swingers
Terminator 2 - Judgment Day
Terminator 3 - Rise of the Machines
Terminator, The
Three Kings
Tombstone
Tropic Thunder
True Romance
Underworld
Underworld Evolution
V for Vendetta
Van Helsing
Wanted
Watchmen
X-Men
X-Men Origins Wolverine
X2
Young Guns
Young People Fucking
Zombieland
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 11:50:58 -0800</pubDate></item><item><guid isPermaLink="false">dnru7w</guid><link>http://codepaste.net/dnru7w</link><title>josh.</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;void&lt;/span&gt; AccountDB::build( ifstream &amp;amp;s )
{
    Account * accounts;
    AccountNumber temp;
    &lt;span class="kwrd"&gt;while&lt;/span&gt;( s.good() )
    {
        s &amp;gt;&amp;gt; temp;
        &lt;span class="kwrd"&gt;if&lt;/span&gt;( s.good() )
        {
            accounts = &lt;span class="kwrd"&gt;new&lt;/span&gt; Account();
            accounts-&amp;gt;setId( temp );
            s &amp;gt;&amp;gt; accounts;
            accountMap.insert( pair&amp;lt;AccountNumber,Account*&amp;gt;(accounts-&amp;gt;getAcctNum(), accounts));
        }
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 11:39:48 -0800</pubDate></item><item><guid isPermaLink="false">7duda4</guid><link>http://codepaste.net/7duda4</link><a10:author><a10:name>Robert.Eberhart</a10:name></a10:author><title>Centering a window in JavaScript</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="rem"&gt;//centering popup&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; centerPopup(){
&lt;span class="rem"&gt;//request data for centering&lt;/span&gt;
&lt;span class="kwrd"&gt;var&lt;/span&gt; windowWidth = document.documentElement.clientWidth;
&lt;span class="kwrd"&gt;var&lt;/span&gt; windowHeight = document.documentElement.clientHeight;
&lt;span class="kwrd"&gt;var&lt;/span&gt; popupHeight = $(&lt;span class="str"&gt;"#popupContact"&lt;/span&gt;).height();
&lt;span class="kwrd"&gt;var&lt;/span&gt; popupWidth = $(&lt;span class="str"&gt;"#popupContact"&lt;/span&gt;).width();
&lt;span class="rem"&gt;//centering&lt;/span&gt;
$(&lt;span class="str"&gt;"#popupContact"&lt;/span&gt;).css({
&lt;span class="str"&gt;"position"&lt;/span&gt;: &lt;span class="str"&gt;"absolute"&lt;/span&gt;,
&lt;span class="str"&gt;"top"&lt;/span&gt;: windowHeight/2-popupHeight/2,
&lt;span class="str"&gt;"left"&lt;/span&gt;: windowWidth/2-popupWidth/2
});
&lt;span class="rem"&gt;//only need force for IE6&lt;/span&gt;
&amp;nbsp;
$(&lt;span class="str"&gt;"#backgroundPopup"&lt;/span&gt;).css({
&lt;span class="str"&gt;"height"&lt;/span&gt;: windowHeight
});
&amp;nbsp;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 10:29:10 -0800</pubDate></item><item><guid isPermaLink="false">ghpuc9</guid><link>http://codepaste.net/ghpuc9</link><a10:author><a10:name>Fahad mansoor</a10:name></a10:author><title>me code</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
# include &amp;lt;iostream&amp;gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;using&lt;/span&gt; &lt;span class="kwrd"&gt;namespace&lt;/span&gt; std;
&lt;span class="kwrd"&gt;int&lt;/span&gt; length(&lt;span class="kwrd"&gt;int&lt;/span&gt; &amp;amp;x);   &lt;span class="rem"&gt;/*array size function  */&lt;/span&gt;
&lt;span class="kwrd"&gt;int&lt;/span&gt; main ( &lt;span class="kwrd"&gt;int&lt;/span&gt; argc, &lt;span class="kwrd"&gt;char&lt;/span&gt; * argv[])
{
    &lt;span class="kwrd"&gt;char&lt;/span&gt; cont=&lt;span class="str"&gt;'y'&lt;/span&gt;;
&lt;span class="kwrd"&gt;while&lt;/span&gt; (cont==&lt;span class="str"&gt;'y'&lt;/span&gt; || cont==&lt;span class="str"&gt;'Y'&lt;/span&gt; )
{   &lt;span class="kwrd"&gt;int&lt;/span&gt; len=0;
    length(len);   &lt;span class="rem"&gt;//size get&lt;/span&gt;
&amp;nbsp;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; mode[len],maxmode=0,finalmode=0;
    &lt;span class="kwrd"&gt;double&lt;/span&gt; average=0,sum=0,median=0;  &lt;span class="rem"&gt;//declarations&lt;/span&gt;
    &lt;span class="kwrd"&gt;double&lt;/span&gt; a[len],temp=0;
&amp;nbsp;
    cout&amp;lt;&amp;lt;&lt;span class="str"&gt;"Please Enter you array as you like"&lt;/span&gt;&amp;lt;&amp;lt;endl;
    &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i =0 ;i &amp;lt;= len-1; i++)
        {
        cin&amp;gt;&amp;gt;a[i];
        }
    cout&amp;lt;&amp;lt;endl;
    &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i&amp;lt;=len-1 ; i++)
        {
            cout&amp;lt;&amp;lt;a[i]&amp;lt;&amp;lt;&lt;span class="str"&gt;"\t"&lt;/span&gt;;
        }
        cout&amp;lt;&amp;lt;&lt;span class="str"&gt;"sorting........"&lt;/span&gt;&amp;lt;&amp;lt;endl;
&amp;nbsp;
        &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i&amp;lt;=len-1 ; i++)
        {
            &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; j = 0 ; j&amp;lt;=len-2 ; j++)
              {
                  &lt;span class="kwrd"&gt;if&lt;/span&gt; (a[j+1]&amp;lt;a[j])
                  {
                  temp=a[j+1];
                  a[j+1] = a[j]; &lt;span class="rem"&gt;//Sorting part&lt;/span&gt;
                  a[j] = temp;
                  cout&amp;lt;&amp;lt;&lt;span class="str"&gt;". "&lt;/span&gt;;
                  }
&amp;nbsp;
&amp;nbsp;
             }
&amp;nbsp;
        }
          cout&amp;lt;&amp;lt; endl;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i&amp;lt;=len-1 ; i++)
        {
            cout&amp;lt;&amp;lt;a[i]&amp;lt;&amp;lt;&lt;span class="str"&gt;"\t"&lt;/span&gt;;
                  sum=sum+a[i];
        }
&amp;nbsp;
         average=sum/(len-1);
        cout &amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&lt;span class="str"&gt;"The largest Number is "&lt;/span&gt;;
        cout&amp;lt;&amp;lt;a[len-1]&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;
        cout &amp;lt;&amp;lt;&lt;span class="str"&gt;"The average / mean is "&lt;/span&gt;;
        cout&amp;lt;&amp;lt;average&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;
&amp;nbsp;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; ( ((len)%2 == 0))
        {
           median=(&lt;span class="kwrd"&gt;double&lt;/span&gt;)( a[(len-1)/2] + a[((len-1)/2) +1] )/2; &lt;span class="rem"&gt;/* mean for even and odd*/&lt;/span&gt;
&amp;nbsp;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;
        median = a[((len-1)/2)+1];
        cout &amp;lt;&amp;lt;&lt;span class="str"&gt;"The Median is "&lt;/span&gt;;
        cout&amp;lt;&amp;lt;median&amp;lt;&amp;lt;endl&amp;lt;&amp;lt;endl;
&amp;nbsp;
          &lt;span class="rem"&gt;/* Mode part starts here  As a side note i know this is&lt;/span&gt;
&lt;span class="rem"&gt;             an extremely lame/complex for this problem algo but its&lt;/span&gt;
&lt;span class="rem"&gt;             the first thing that came to my mind */&lt;/span&gt;
&amp;nbsp;
      &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i &amp;lt;=len-1 ; i++)
        {
            mode [i] = 0;   &lt;span class="rem"&gt;//initiazlize with zero as  every number is atleast one time  present in a sorted/unsorted list&lt;/span&gt;
        }
&amp;nbsp;
        &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i &amp;lt;=len-1 ; i++)
        {        &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; j = 0 ; j &amp;lt;=len-1 ; j++)
                 {    &lt;span class="kwrd"&gt;if&lt;/span&gt; (a[i] == a[j])
                         {
                               mode[i]=mode[i]+1;
                               &lt;span class="rem"&gt;/*Basically it just does somthing complex exmple&lt;/span&gt;
&lt;span class="rem"&gt;                                for  a(1)  it will compare  it (a[1]) to all the elements and if a(1) is eqaul to any e&lt;/span&gt;
&lt;span class="rem"&gt;                                lement , it will increment 1 in mode[1] for each time the if returns true */&lt;/span&gt;
                                cout &amp;lt;&amp;lt;&lt;span class="str"&gt;" ."&lt;/span&gt;;
                         }
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
                  }
&amp;nbsp;
&amp;nbsp;
        }
        cout&amp;lt;&amp;lt;endl;
        maxmode = mode[0];
        &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i &amp;lt;=len-1 ; i++)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (mode[i] &amp;gt;= maxmode)
            {
                        maxmode = mode[i];
                        finalmode = i;
            }
&amp;nbsp;
        }
&amp;nbsp;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; ( &lt;span class="kwrd"&gt;int&lt;/span&gt; i = 0 ; i&amp;lt;=len-1 ; i++)
        {
            cout&amp;lt;&amp;lt;mode[i]&amp;lt;&amp;lt;&lt;span class="str"&gt;"\t"&lt;/span&gt;;
&amp;nbsp;
        }
&amp;nbsp;
&amp;nbsp;
        cout &amp;lt;&amp;lt;endl&amp;lt;&amp;lt;&lt;span class="str"&gt;"The Mode is "&lt;/span&gt;&amp;lt;&amp;lt;a[finalmode] &amp;lt;&amp;lt;&lt;span class="str"&gt;" Which is repeated  "&lt;/span&gt;&amp;lt;&amp;lt;maxmode&amp;lt;&amp;lt; &lt;span class="str"&gt;" times"&lt;/span&gt;&amp;lt;&amp;lt;endl;
&amp;nbsp;
        cout&amp;lt;&amp;lt;&lt;span class="str"&gt;"Do You want to continue Press y to continue"&lt;/span&gt;&amp;lt;&amp;lt;endl;
        cin&amp;gt;&amp;gt;cont;
}&lt;span class="rem"&gt;//while end&lt;/span&gt;
&amp;nbsp;
         system (&lt;span class="str"&gt;"pause"&lt;/span&gt;);
&amp;nbsp;
}
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; length(&lt;span class="kwrd"&gt;int&lt;/span&gt; &amp;amp;x)
{
    cout&amp;lt;&amp;lt;&lt;span class="str"&gt;"How many elements do you have??"&lt;/span&gt;&amp;lt;&amp;lt;endl;
    cin&amp;gt;&amp;gt;x;
&amp;nbsp;
}
&amp;nbsp;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 10:17:07 -0800</pubDate></item><item><guid isPermaLink="false">esiw2t</guid><link>http://codepaste.net/esiw2t</link><a10:author><a10:name>jaras</a10:name></a10:author><title>SimpleStack</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SimpleStack&amp;lt;T&amp;gt;
{
    &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Node&amp;lt;V&amp;gt;
    {
        &lt;span class="kwrd"&gt;public&lt;/span&gt; Node&amp;lt;V&amp;gt; Next;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; V Item;
    }
&amp;nbsp;
    &lt;span class="kwrd"&gt;private&lt;/span&gt; Node&amp;lt;T&amp;gt; head;
&amp;nbsp;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; SimpleStack()
    {
        head = &lt;span class="kwrd"&gt;new&lt;/span&gt; Node&amp;lt;T&amp;gt;();
    }
&amp;nbsp;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Push(T item)
    {
        Node&amp;lt;T&amp;gt; node = &lt;span class="kwrd"&gt;new&lt;/span&gt; Node&amp;lt;T&amp;gt;();
        node.Item = item;
        node.Next = head.Next;
        head.Next = node;
    }
&amp;nbsp;
    &lt;span class="kwrd"&gt;public&lt;/span&gt; T Pop()
    {
        Node&amp;lt;T&amp;gt; node = head.Next;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (node == &lt;span class="kwrd"&gt;null&lt;/span&gt;)
            &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;default&lt;/span&gt;(T);
        head.Next = node.Next;
        &lt;span class="kwrd"&gt;return&lt;/span&gt; node.Item;
    }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 09:22:08 -0800</pubDate></item><item><guid isPermaLink="false">7r97jb</guid><link>http://codepaste.net/7r97jb</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0;i&amp;lt;10;i++)
{
Console.WriteLine(&lt;span class="str"&gt;"Hello"&lt;/span&gt;);
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 08:23:45 -0800</pubDate></item><item><guid isPermaLink="false">7jvdtv</guid><link>http://codepaste.net/7jvdtv</link><a10:author><a10:name>Jozef Izso</a10:name></a10:author><title>ASP.NET MVC Validation - Rules in JSON</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
{
   &lt;span class="str"&gt;"Fields"&lt;/span&gt;:[
      {
         &lt;span class="str"&gt;"FieldName"&lt;/span&gt;:&lt;span class="str"&gt;"Name"&lt;/span&gt;,
         &lt;span class="str"&gt;"ReplaceValidationMessageContents"&lt;/span&gt;:&lt;span class="kwrd"&gt;true&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationMessageId"&lt;/span&gt;:&lt;span class="str"&gt;"Name_validationMessage"&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationRules"&lt;/span&gt;:[
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"Meno musí mať 5 až 40 znakov."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
                  &lt;span class="str"&gt;"minimumLength"&lt;/span&gt;:0,
                  &lt;span class="str"&gt;"maximumLength"&lt;/span&gt;:40
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"stringLength"&lt;/span&gt;
            },
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"The Name field is required."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
&amp;nbsp;
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"required"&lt;/span&gt;
            }
         ]
      },
      {
         &lt;span class="str"&gt;"FieldName"&lt;/span&gt;:&lt;span class="str"&gt;"Email"&lt;/span&gt;,
         &lt;span class="str"&gt;"ReplaceValidationMessageContents"&lt;/span&gt;:&lt;span class="kwrd"&gt;true&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationMessageId"&lt;/span&gt;:&lt;span class="str"&gt;"Email_validationMessage"&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationRules"&lt;/span&gt;:[
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"Zadali ste nesprávny e-mail."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
                  &lt;span class="str"&gt;"pattern"&lt;/span&gt;:&lt;span class="str"&gt;"^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$"&lt;/span&gt;
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"regularExpression"&lt;/span&gt;
            },
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"Zadajte váš e-mail."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
&amp;nbsp;
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"required"&lt;/span&gt;
            }
         ]
      },
      {
         &lt;span class="str"&gt;"FieldName"&lt;/span&gt;:&lt;span class="str"&gt;"Text"&lt;/span&gt;,
         &lt;span class="str"&gt;"ReplaceValidationMessageContents"&lt;/span&gt;:&lt;span class="kwrd"&gt;true&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationMessageId"&lt;/span&gt;:&lt;span class="str"&gt;"Text_validationMessage"&lt;/span&gt;,
         &lt;span class="str"&gt;"ValidationRules"&lt;/span&gt;:[
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"Správa musí mať 5 až 140 znakov."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
                  &lt;span class="str"&gt;"minimumLength"&lt;/span&gt;:0,
                  &lt;span class="str"&gt;"maximumLength"&lt;/span&gt;:140
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"stringLength"&lt;/span&gt;
            },
            {
               &lt;span class="str"&gt;"ErrorMessage"&lt;/span&gt;:&lt;span class="str"&gt;"The Text field is required."&lt;/span&gt;,
               &lt;span class="str"&gt;"ValidationParameters"&lt;/span&gt;:{
&amp;nbsp;
               },
               &lt;span class="str"&gt;"ValidationType"&lt;/span&gt;:&lt;span class="str"&gt;"required"&lt;/span&gt;
            }
         ]
      }
   ],
   &lt;span class="str"&gt;"FormId"&lt;/span&gt;:&lt;span class="str"&gt;"form0"&lt;/span&gt;,
   &lt;span class="str"&gt;"ReplaceValidationSummary"&lt;/span&gt;:&lt;span class="kwrd"&gt;false&lt;/span&gt;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 07:37:01 -0800</pubDate></item><item><guid isPermaLink="false">yhsaa4</guid><link>http://codepaste.net/yhsaa4</link><title>LIDL</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;import&lt;/span&gt; java.io.*; 
&amp;nbsp;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; DecList 
{ 
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; main(String[]args) 
    { 
    
      FileOutputStream p; 
     File AudioFile = &lt;span class="kwrd"&gt;new&lt;/span&gt; File( &lt;span class="str"&gt;"k523jsyt2idjh.d03"&lt;/span&gt; ); 
      &lt;span class="kwrd"&gt;long&lt;/span&gt; length = AudioFile.length(); 
      &lt;span class="kwrd"&gt;try&lt;/span&gt; 
      { 
      
      
         FileInputStream fstream = &lt;span class="kwrd"&gt;new&lt;/span&gt; FileInputStream( &lt;span class="str"&gt;"k523jsyt2idjh.d03"&lt;/span&gt; ); 
         p = &lt;span class="kwrd"&gt;new&lt;/span&gt; FileOutputStream( &lt;span class="str"&gt;" Dekrypt.au "&lt;/span&gt; ); 
         
         &lt;span class="kwrd"&gt;byte&lt;/span&gt; [] barray = &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;byte&lt;/span&gt; [( &lt;span class="kwrd"&gt;int&lt;/span&gt; )length]; 
         &lt;span class="kwrd"&gt;byte&lt;/span&gt; [] dec = &lt;span class="kwrd"&gt;new&lt;/span&gt; &lt;span class="kwrd"&gt;byte&lt;/span&gt; [( &lt;span class="kwrd"&gt;int&lt;/span&gt; )length]; 
         &lt;span class="kwrd"&gt;int&lt;/span&gt; offset = 0; 
         &lt;span class="kwrd"&gt;int&lt;/span&gt; numRead = 0; 
         &lt;span class="kwrd"&gt;while&lt;/span&gt; ((offset &amp;lt; barray.length) &amp;amp;&amp;amp; ((numRead = fstream.read(barray, offset, barray.length - offset))&amp;gt;= 0)) 
         { 
            offset += numRead; 
         } 
         
         &lt;span class="kwrd"&gt;if&lt;/span&gt; (offset&amp;lt; barray.length) 
         { 
            &lt;span class="kwrd"&gt;throw&lt;/span&gt; &lt;span class="kwrd"&gt;new&lt;/span&gt; IOException( &lt;span class="str"&gt;" fel "&lt;/span&gt; ); 
      
         } 
         fstream.close(); 
         
         EncryptDecrypt solution = &lt;span class="kwrd"&gt;new&lt;/span&gt; EncryptDecrypt(); 
         dec = solution.decryptDataUsingMethod1( &lt;span class="str"&gt;"53cr3t@55sw0rd"&lt;/span&gt; , barray); 
         p.write(dec); 
         p.close(); 
         } 
         &lt;span class="kwrd"&gt;catch&lt;/span&gt; (Exception e) 
         { 
            System.err.println( &lt;span class="str"&gt;"File input error"&lt;/span&gt; ); 
         } 
         
&amp;nbsp;
      
      
      
&amp;nbsp;
&amp;nbsp;
     
     
&amp;nbsp;
    } 
} 
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 05:50:54 -0800</pubDate></item><item><guid isPermaLink="false">1s5tm2</guid><link>http://codepaste.net/1s5tm2</link><title>Sort</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;for&lt;/span&gt;(i = 0; i &amp;lt; 20 - 1; i++)
        &lt;span class="kwrd"&gt;for&lt;/span&gt;(j = i; j &amp;lt; 20; j++)
            &lt;span class="kwrd"&gt;if&lt;/span&gt;(a[i] &amp;gt; a[j])
            {
                &lt;span class="kwrd"&gt;int&lt;/span&gt; temp = a[i];
                a[i] = a[j];
                a[j] = temp;
            }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 05:24:03 -0800</pubDate></item><item><guid isPermaLink="false">utj6v1</guid><link>http://codepaste.net/utj6v1</link><a10:author><a10:name>rock</a10:name></a10:author><title>rock</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="html"&gt;div.wrap {&lt;/span&gt; 
&lt;span class="html"&gt;  width:1000; 
 } 
&amp;nbsp;
  div,div.content,div.wrap  {&lt;/span&gt; 
&lt;span class="html"&gt;  background-color:transparent; 
 } 
&amp;nbsp;
  body  {&lt;/span&gt; 
&lt;span class="html"&gt;  background-image:url("http://i832.photobucket.com/albums/zz249/image_023/01/rock.jpg"); 
 background-position:Center Center; 
 background-attachment:fixed; 
 background-repeat:no-repeat; 
 border-width:0px; 
 border-style:Solid; 
 } 
&amp;nbsp;
  div#header, div#googlebar, div#topnav, ul.profileUserAlbum li, div.content, div.module, div.contentTop, div.blurbsModule h3, div.companiesModule li.moduleItem, div.blogsModule h3, div.calendarModule h3, div.friendSpaceModule h3, div.schoolsModule li.moduleItem, div.networkingModule li.moduleItem, div.interestsModule li, ul.profileUserAlbum li, div.photo, div.profileHeaderModule, div.profileDemographics, div.contentMid, div.detailsModule li, div.commentsModule h3,  div.commentsModule ul.moduleList li, div.commentsModule div.userComment, div.blurbsModule, h3.moduleHead span, div.profileDemographics, ul.profileUserInfo, div.userComment, li.odd, div.moduleBody, div.moduleList, div.moduleHead, h3.moduleHead, h3.moduleHead span span  {&lt;/span&gt; 
&lt;span class="html"&gt;  background-color:transparent; 
 border:none; 
 border-width:0 px; 
 } 
&amp;nbsp;
  div.module  {&lt;/span&gt; 
&lt;span class="html"&gt;  border-style:Solid; 
 border-width:1px; 
 border-color:#000000; 
 } 
&amp;nbsp;
  div.content  {&lt;/span&gt; 
&lt;span class="html"&gt;  border-style:Solid; 
 border-width:1px; 
 border-color:#000000; 
 } 
&amp;nbsp;
  div[class~="moduleTop"],
                    div[class~="moduleTop"] div,
                    div[class~="moduleBottom"],
                    div[class~="moduleBottom"] div {&lt;/span&gt; 
&lt;span class="html"&gt;  background-color:transparent; 
 background-image:none; 
 font-size:0px; 
 } 
&amp;nbsp;
  div[class~="moduleTop"] div div,
                    div[class~="moduleBottom"] div div {&lt;/span&gt; 
&lt;span class="html"&gt;  background-image:none; 
 } 
&amp;nbsp;
  div[class~="moduleTop"] div div {&lt;/span&gt; 
&lt;span class="html"&gt;  height:5px; 
 border-top:none; 
 } 
&amp;nbsp;
  div[class~="moduleBottom"] div div {&lt;/span&gt; 
&lt;span class="html"&gt;  border-bottom:none; 
 } 
&amp;nbsp;
  div[class~="moduleMid"] {&lt;/span&gt; 
&lt;span class="html"&gt;  border-left:none; 
 } 
&amp;nbsp;
  div[class~="moduleMid1"] {&lt;/span&gt; 
&lt;span class="html"&gt;  border-right:none; 
 } 
&amp;nbsp;
  .pmp_topleft {&lt;/span&gt; 
&lt;span class="html"&gt;  position:absolute; top: 0px; left: 0px; 
 } 
&amp;nbsp;
  div.contentTop {&lt;/span&gt; 
&lt;span class="html"&gt;  background-image:url("http://i832.photobucket.com/albums/zz249/image_023/01/header.gif"); 
 padding-top:20px; 
 background-repeat:no-repeat; 
 background-position:top left; 
 } 
&amp;nbsp;
  table, tr, td, li, p, div, div.moduleBody, div.commentsModule p.datePosted, span.count {&lt;/span&gt; 
&lt;span class="html"&gt;  color:#000000; 
 font-size:8pt; 
 font-family:Verdana; 
 } 
&amp;nbsp;
   h3.moduleHead, h3.moduleHead span  {&lt;/span&gt; 
&lt;span class="html"&gt;  color:#000000; 
 font-size:10pt; 
 font-family:Verdana; 
 font-weight:bold; 
 } 
&amp;nbsp;
   div.blurbAboutMe h4, div.blurbLikeToMeet h4, div.interestsModule li h4, div.detailsModule li strong {&lt;/span&gt; 
&lt;span class="html"&gt;  color:#000000; 
 font-size:8pt; 
 font-family:Verdana; 
 font-weight:bold; 
 } 
&amp;nbsp;
  div.basicInfoDetails h2 {&lt;/span&gt; 
&lt;span class="html"&gt;  color:#000000; 
 font-size:12pt; 
 font-family:Verdana; 
 font-weight:bold; 
 } 
&amp;nbsp;
  a:active, a:visited, a:link, div.moduleBody a:active, div.moduleBody a:visited  {&lt;/span&gt; 
&lt;span class="html"&gt;  color:#AA2222; 
 font-size:8pt; 
 font-family:Verdana; 
 } 
&amp;nbsp;
  a:hover, div.moduleBody a:hover  {&lt;/span&gt; 
  &lt;span class="attr"&gt;color:&lt;/span&gt;&lt;span class="kwrd"&gt;#CC2222&lt;/span&gt;; 
 &lt;span class="attr"&gt;font-size:&lt;/span&gt;&lt;span class="kwrd"&gt;8pt&lt;/span&gt;; 
 &lt;span class="attr"&gt;font-family:&lt;/span&gt;&lt;span class="kwrd"&gt;Verdana&lt;/span&gt;; 
 &lt;span class="html"&gt;}&lt;/span&gt;
&amp;nbsp;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 04:51:33 -0800</pubDate></item><item><guid isPermaLink="false">reh1md</guid><link>http://codepaste.net/reh1md</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Connect()
{
&lt;span class="kwrd"&gt;try&lt;/span&gt;
{
Int32 port = 11115;
TcpClient client = &lt;span class="kwrd"&gt;new&lt;/span&gt; TcpClient(txtIPaddr.Text, port);
&lt;span class="rem"&gt;// ipAddr is a string containing the ip address of the server&lt;/span&gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;string&lt;/span&gt; message = (&lt;span class="str"&gt;"IS ANYBODY THERE?"&lt;/span&gt;);
Byte[] data = System.Text.Encoding.ASCII.GetBytes(message);
&amp;nbsp;
NetworkStream stream = client.GetStream();
&amp;nbsp;
stream.Write(data, 0, data.Length);
&amp;nbsp;
&amp;nbsp;
&lt;span class="rem"&gt;// Receive the response&lt;/span&gt;
&amp;nbsp;
&lt;span class="rem"&gt;// Buffer to store the response&lt;/span&gt;
data = &lt;span class="kwrd"&gt;new&lt;/span&gt; Byte[256];
&amp;nbsp;
&lt;span class="rem"&gt;// String to store the response ASCII representation&lt;/span&gt;
String responseData = String.Empty;
&amp;nbsp;
Int32 bytes = stream.Read(data, 0, data.Length);
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes);
&amp;nbsp;
txtConsole.Text = (responseData);
&amp;nbsp;
client.Close();
}
&lt;span class="kwrd"&gt;catch&lt;/span&gt;(ArgumentNullException e)
{
MessageBox.Show(&lt;span class="str"&gt;"Argument null exception: "&lt;/span&gt; + e.Message);
}
&lt;span class="kwrd"&gt;catch&lt;/span&gt;(SocketException ee)
{
MessageBox.Show(&lt;span class="str"&gt;"Socket exception: "&lt;/span&gt; + ee.Message);
}
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 04:44:22 -0800</pubDate></item><item><guid isPermaLink="false">18qwqy</guid><link>http://codepaste.net/18qwqy</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; StartServer()
{
&lt;span class="kwrd"&gt;try&lt;/span&gt;
{
IPAddress myIP = IPAddress.Parse(&lt;span class="str"&gt;"127.0.0.1"&lt;/span&gt;);
Int32 port = 11115;
&amp;nbsp;
&lt;span class="rem"&gt;// Set up a TCP Listener&lt;/span&gt;
TcpListener server = &lt;span class="kwrd"&gt;new&lt;/span&gt; TcpListener(myIP, port);
&amp;nbsp;
&lt;span class="rem"&gt;// Start listening for client request&lt;/span&gt;
server.Start();
&amp;nbsp;
&lt;span class="rem"&gt;// Buffer for reading data&lt;/span&gt;
Byte[] bytes = &lt;span class="kwrd"&gt;new&lt;/span&gt; Byte[256];
String data = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
&amp;nbsp;
&lt;span class="kwrd"&gt;while&lt;/span&gt;(&lt;span class="kwrd"&gt;true&lt;/span&gt;)
{
&lt;span class="rem"&gt;// Perform a blocking call to accept request&lt;/span&gt;
TcpClient client = server.AcceptTcpClient();
&amp;nbsp;
txtConsole.Text = &lt;span class="str"&gt;"Client connected"&lt;/span&gt;;
&amp;nbsp;
data = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
&amp;nbsp;
&lt;span class="rem"&gt;// Get a stream for reading and writing&lt;/span&gt;
NetworkStream stream = client.GetStream();
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; i;
&amp;nbsp;
&lt;span class="rem"&gt;// loop to receive all the data sent by the client&lt;/span&gt;
&lt;span class="kwrd"&gt;while&lt;/span&gt; ((i = stream.Read(bytes, 0, bytes.Length)) != 0)
{
data = System.Text.Encoding.ASCII.GetString(bytes, 0, i);
&amp;nbsp;
txtConsole.Text = (String.Format(&lt;span class="str"&gt;"Received: {0}"&lt;/span&gt;, data));
&amp;nbsp;
&lt;span class="kwrd"&gt;byte&lt;/span&gt;[] msg = System.Text.Encoding.ASCII.GetBytes(data);
&amp;nbsp;
&lt;span class="rem"&gt;// Send back a response&lt;/span&gt;
stream.Write(msg, 0, msg.Length);
&amp;nbsp;
txtConsole.Text = (String.Format(&lt;span class="str"&gt;"Sent: {0}"&lt;/span&gt;, data));
}
&amp;nbsp;
&lt;span class="rem"&gt;// Shutdown and close connection&lt;/span&gt;
client.Close();
}
}
&lt;span class="kwrd"&gt;catch&lt;/span&gt;(Exception e)
{
MessageBox.Show(e.Message);
}
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 04:42:45 -0800</pubDate></item><item><guid isPermaLink="false">w7yixz</guid><link>http://codepaste.net/w7yixz</link><a10:author><a10:name>benjo</a10:name></a10:author><title>tree js</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="rem"&gt;/**************************************************************************&lt;/span&gt;
&lt;span class="rem"&gt;    Copyright (c) 2001-2003 Geir Landr? (drop@destroydrop.com)&lt;/span&gt;
&lt;span class="rem"&gt;    JavaScript Tree - www.destroydrop.com/hjavascripts/tree/&lt;/span&gt;
&lt;span class="rem"&gt;    Version 0.96    &lt;/span&gt;
&lt;span class="rem"&gt;&lt;/span&gt;
&lt;span class="rem"&gt;    This script can be used freely as long as all copyright messages are&lt;/span&gt;
&lt;span class="rem"&gt;    intact.&lt;/span&gt;
&lt;span class="rem"&gt;**************************************************************************/&lt;/span&gt;
&amp;nbsp;
&lt;span class="rem"&gt;// Arrays for nodes and icons&lt;/span&gt;
&lt;span class="kwrd"&gt;var&lt;/span&gt; nodes            = &lt;span class="kwrd"&gt;new&lt;/span&gt; Array();;
&lt;span class="kwrd"&gt;var&lt;/span&gt; openNodes    = &lt;span class="kwrd"&gt;new&lt;/span&gt; Array();
&lt;span class="kwrd"&gt;var&lt;/span&gt; icons            = &lt;span class="kwrd"&gt;new&lt;/span&gt; Array(6);
&amp;nbsp;
&lt;span class="rem"&gt;// Loads all icons that are used in the tree&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; preloadIcons() {
    icons[0] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[0].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/arrow_right.png"&lt;/span&gt;;
    icons[1] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[1].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/arrow_right.png"&lt;/span&gt;;
    icons[2] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[2].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/arrow_down.png"&lt;/span&gt;;
    icons[3] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[3].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/arrow_down.png"&lt;/span&gt;;
    icons[4] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[4].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/blank.png"&lt;/span&gt;;
    icons[5] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Image();
    icons[5].src = &lt;span class="str"&gt;"http://www.waterfrontbathrooms.com/img/blank.png"&lt;/span&gt;;
}
&lt;span class="rem"&gt;// Create the tree&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; createTree(arrName, startNode, openNode) {
    nodes = arrName;
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodes.length &amp;gt; 0) {
        preloadIcons();
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (startNode == &lt;span class="kwrd"&gt;null&lt;/span&gt;) startNode = 0;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (openNode != 0 || openNode != &lt;span class="kwrd"&gt;null&lt;/span&gt;) setOpenNodes(openNode);
    
        
    
        &lt;span class="kwrd"&gt;var&lt;/span&gt; recursedNodes = &lt;span class="kwrd"&gt;new&lt;/span&gt; Array();
        addNode(startNode, recursedNodes);
    }
}
&lt;span class="rem"&gt;// Returns the position of a node in the array&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; getArrayId(node) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt;nodes.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; nodeValues = nodes[i].split(&lt;span class="str"&gt;"|"&lt;/span&gt;);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodeValues[0]==node) &lt;span class="kwrd"&gt;return&lt;/span&gt; i;
    }
}
&lt;span class="rem"&gt;// Puts in array nodes that will be open&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; setOpenNodes(openNode) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt;nodes.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; nodeValues = nodes[i].split(&lt;span class="str"&gt;"|"&lt;/span&gt;);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodeValues[0]==openNode) {
            openNodes.push(nodeValues[0]);
            setOpenNodes(nodeValues[1]);
        }
    } 
}
&lt;span class="rem"&gt;// Checks if a node is open&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; isNodeOpen(node) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt;openNodes.length; i++)
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (openNodes[i]==node) &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
    &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;
}
&lt;span class="rem"&gt;// Checks if a node has any children&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; hasChildNode(parentNode) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt; nodes.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; nodeValues = nodes[i].split(&lt;span class="str"&gt;"|"&lt;/span&gt;);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodeValues[1] == parentNode) &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
    }
    &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;
}
&lt;span class="rem"&gt;// Checks if a node is the last sibling&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; lastSibling (node, parentNode) {
    &lt;span class="kwrd"&gt;var&lt;/span&gt; lastChild = 0;
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt; nodes.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; nodeValues = nodes[i].split(&lt;span class="str"&gt;"|"&lt;/span&gt;);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodeValues[1] == parentNode)
            lastChild = nodeValues[0];
    }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (lastChild==node) &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
    &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;
}
&lt;span class="rem"&gt;// Adds a new node to the tree&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; addNode(parentNode, recursedNodes) {
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i = 0; i &amp;lt; nodes.length; i++) {
&amp;nbsp;
        &lt;span class="kwrd"&gt;var&lt;/span&gt; nodeValues = nodes[i].split(&lt;span class="str"&gt;"|"&lt;/span&gt;);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (nodeValues[1] == parentNode) {
            
            &lt;span class="kwrd"&gt;var&lt;/span&gt; ls    = lastSibling(nodeValues[0], nodeValues[1]);
            &lt;span class="kwrd"&gt;var&lt;/span&gt; hcn    = hasChildNode(nodeValues[0]);
            &lt;span class="kwrd"&gt;var&lt;/span&gt; ino = isNodeOpen(nodeValues[0]);
&amp;nbsp;
            &lt;span class="rem"&gt;// Write out line &amp;amp; empty icons&lt;/span&gt;
            &lt;span class="kwrd"&gt;for&lt;/span&gt; (g=0; g&amp;lt;recursedNodes.length; g++) {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (recursedNodes[g] == 1) document.write(&lt;span class="str"&gt;"&amp;lt;img src=\"http://www.waterfrontbathrooms.com/img/line.gif\" align=\"absbottom\" alt=\"\" /&amp;gt;"&lt;/span&gt;);
                &lt;span class="kwrd"&gt;else&lt;/span&gt;  document.write(&lt;span class="str"&gt;"&amp;lt;img src=\"http://www.waterfrontbathrooms.com/img/empty.gif\" align=\"absbottom\" alt=\"\" /&amp;gt;"&lt;/span&gt;);
            }
&amp;nbsp;
            &lt;span class="rem"&gt;// put in array line &amp;amp; empty icons&lt;/span&gt;
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (ls) recursedNodes.push(0);
            &lt;span class="kwrd"&gt;else&lt;/span&gt; recursedNodes.push(1);
&amp;nbsp;
            &lt;span class="rem"&gt;// Write out join icons&lt;/span&gt;
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (hcn) {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (ls) {
                    document.write(&lt;span class="str"&gt;"&amp;lt;a href=\"javascript: oc("&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;", 1);\"&amp;gt;&amp;lt;img id=\"join"&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;"\" src=\"http://www.waterfrontbathrooms.com/img/"&lt;/span&gt;);
                         &lt;span class="kwrd"&gt;if&lt;/span&gt; (ino) document.write(&lt;span class="str"&gt;"arrow_down.png"&lt;/span&gt;);
                        &lt;span class="kwrd"&gt;else&lt;/span&gt; document.write(&lt;span class="str"&gt;"arrow_right.png"&lt;/span&gt;);
                    document.write(&lt;span class="str"&gt;"\" align=\"absbottom\" alt=\"Open/Close node\" /&amp;gt;&amp;lt;/a&amp;gt;"&lt;/span&gt;);
                } &lt;span class="kwrd"&gt;else&lt;/span&gt; {
                    document.write(&lt;span class="str"&gt;"&amp;lt;a href=\"javascript: oc("&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;", 0);\"&amp;gt;&amp;lt;img id=\"join"&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;"\" src=\"http://www.waterfrontbathrooms.com/img/"&lt;/span&gt;);
                        &lt;span class="kwrd"&gt;if&lt;/span&gt; (ino) document.write(&lt;span class="str"&gt;"arrow_down.png"&lt;/span&gt;);
                        &lt;span class="kwrd"&gt;else&lt;/span&gt; document.write(&lt;span class="str"&gt;"arrow_right.png"&lt;/span&gt;);
                    document.write(&lt;span class="str"&gt;"\" align=\"absbottom\" alt=\"Open/Close node\" /&amp;gt;&amp;lt;/a&amp;gt;"&lt;/span&gt;);
                }
            } &lt;span class="kwrd"&gt;else&lt;/span&gt; {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (ls) document.write(&lt;span class="str"&gt;"&amp;lt;img src=\"http://www.waterfrontbathrooms.com/img/joinbottom.gif\" align=\"absbottom\" alt=\"\" /&amp;gt;"&lt;/span&gt;);
                &lt;span class="kwrd"&gt;else&lt;/span&gt; document.write(&lt;span class="str"&gt;"&amp;lt;img src=\"http://www.waterfrontbathrooms.com/img/join.gif\" align=\"absbottom\" alt=\"\" /&amp;gt;"&lt;/span&gt;);
            }
&amp;nbsp;
            &lt;span class="rem"&gt;// Start link&lt;/span&gt;
            document.write(&lt;span class="str"&gt;"&amp;lt;a href=\""&lt;/span&gt; + nodeValues[3] + &lt;span class="str"&gt;"\" onmouseover=\"window.status='"&lt;/span&gt; + nodeValues[2] + &lt;span class="str"&gt;"';return true;\" onmouseout=\"window.status=' ';return true;\"&amp;gt;"&lt;/span&gt;);
            
            &lt;span class="rem"&gt;// Write out folder &amp;amp; page icons&lt;/span&gt;
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (hcn) {
                document.write(&lt;span class="str"&gt;"&amp;lt;img id=\"icon"&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;"\" src=\"http://www.waterfrontbathrooms.com/img/blank.png"&lt;/span&gt;)
                    &lt;span class="kwrd"&gt;if&lt;/span&gt; (ino) document.write(&lt;span class="str"&gt;"open"&lt;/span&gt;);
                document.write(&lt;span class="str"&gt;"\" align=\"absbottom\" alt=\"\" width=\"1\" height=\"1\" /&amp;gt;"&lt;/span&gt;);
            } &lt;span class="kwrd"&gt;else&lt;/span&gt; document.write(&lt;span class="str"&gt;"&amp;lt;img id=\"icon"&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;"\" src=\"http://www.waterfrontbathrooms.com/img/blank.png\" align=\"absbottom\" alt=\"\" width=\"1\" height=\"1\" /&amp;gt;"&lt;/span&gt;);
            
            &lt;span class="rem"&gt;// Write out node name&lt;/span&gt;
            document.write(nodeValues[2]);
&amp;nbsp;
            &lt;span class="rem"&gt;// End link&lt;/span&gt;
            document.write(&lt;span class="str"&gt;"&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;"&lt;/span&gt;);
            
            &lt;span class="rem"&gt;// If node has children write out divs and go deeper&lt;/span&gt;
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (hcn) {
                document.write(&lt;span class="str"&gt;"&amp;lt;div id=\"div"&lt;/span&gt; + nodeValues[0] + &lt;span class="str"&gt;"\""&lt;/span&gt;);
                    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!ino) document.write(&lt;span class="str"&gt;" style=\"display: none;\""&lt;/span&gt;);
                document.write(&lt;span class="str"&gt;"&amp;gt;"&lt;/span&gt;);
                addNode(nodeValues[0], recursedNodes);
                document.write(&lt;span class="str"&gt;"&amp;lt;/div&amp;gt;"&lt;/span&gt;);
            }
            
            &lt;span class="rem"&gt;// remove last line or empty icon &lt;/span&gt;
            recursedNodes.pop();
        }
    }
}
&lt;span class="rem"&gt;// Opens or closes a node&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; oc(node, bottom) {
    &lt;span class="kwrd"&gt;var&lt;/span&gt; theDiv = document.getElementById(&lt;span class="str"&gt;"div"&lt;/span&gt; + node);
    &lt;span class="kwrd"&gt;var&lt;/span&gt; theJoin    = document.getElementById(&lt;span class="str"&gt;"join"&lt;/span&gt; + node);
    &lt;span class="kwrd"&gt;var&lt;/span&gt; theIcon = document.getElementById(&lt;span class="str"&gt;"icon"&lt;/span&gt; + node);
    
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (theDiv.style.display == &lt;span class="str"&gt;'none'&lt;/span&gt;) {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (bottom==1) theJoin.src = icons[3].src;
        &lt;span class="kwrd"&gt;else&lt;/span&gt; theJoin.src = icons[2].src;
        theIcon.src = icons[5].src;
        theDiv.style.display = &lt;span class="str"&gt;''&lt;/span&gt;;
    } &lt;span class="kwrd"&gt;else&lt;/span&gt; {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (bottom==1) theJoin.src = icons[1].src;
        &lt;span class="kwrd"&gt;else&lt;/span&gt; theJoin.src = icons[0].src;
        theIcon.src = icons[4].src;
        theDiv.style.display = &lt;span class="str"&gt;'none'&lt;/span&gt;;
    }
}
&lt;span class="rem"&gt;// Push and pop not implemented in IE&lt;/span&gt;
&lt;span class="kwrd"&gt;if&lt;/span&gt;(!Array.prototype.push) {
    &lt;span class="kwrd"&gt;function&lt;/span&gt; array_push() {
        &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0;i&amp;lt;arguments.length;i++)
            &lt;span class="kwrd"&gt;this&lt;/span&gt;[&lt;span class="kwrd"&gt;this&lt;/span&gt;.length]=arguments[i];
        &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;this&lt;/span&gt;.length;
    }
    Array.prototype.push = array_push;
}
&lt;span class="kwrd"&gt;if&lt;/span&gt;(!Array.prototype.pop) {
    &lt;span class="kwrd"&gt;function&lt;/span&gt; array_pop(){
        lastElement = &lt;span class="kwrd"&gt;this&lt;/span&gt;[&lt;span class="kwrd"&gt;this&lt;/span&gt;.length-1];
        &lt;span class="kwrd"&gt;this&lt;/span&gt;.length = Math.max(&lt;span class="kwrd"&gt;this&lt;/span&gt;.length-1,0);
        &lt;span class="kwrd"&gt;return&lt;/span&gt; lastElement;
    }
    Array.prototype.pop = array_pop;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 03:04:53 -0800</pubDate></item><item><guid isPermaLink="false">y31mpc</guid><link>http://codepaste.net/y31mpc</link><a10:author><a10:name>benjo</a10:name></a10:author><title>menu verticale</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt; &lt;span class="attr"&gt;class&lt;/span&gt;&lt;span class="kwrd"&gt;="left-nav"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
     &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt; &lt;span class="attr"&gt;class&lt;/span&gt;&lt;span class="kwrd"&gt;="head"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;h2&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;echo&lt;/span&gt; $this-&amp;gt;__(&lt;span class="str"&gt;'Men&amp;amp;ugrave;'&lt;/span&gt;) &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;h2&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
           &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ul&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="left-nav"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
           &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;li&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;a&lt;/span&gt; &lt;span class="attr"&gt;href&lt;/span&gt;="&amp;&lt;span class="attr"&gt;lt&lt;/span&gt;;?&lt;span class="attr"&gt;php&lt;/span&gt; &lt;span class="attr"&gt;echo&lt;/span&gt; $&lt;span class="attr"&gt;this-&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;getUrl('') &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;"&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Homepage&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;a&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;li&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;foreach&lt;/span&gt; ($this-&amp;gt;getStoreCategories() &lt;span class="kwrd"&gt;as&lt;/span&gt; $_category): &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
            &lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;echo&lt;/span&gt; $this-&amp;gt;drawItem($_category) &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;endforeach&lt;/span&gt; &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ul&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php
&amp;nbsp;
&lt;span class="rem"&gt;/* Get active categories */&lt;/span&gt;
$_main_categories=$this-&amp;gt;getStoreCategories();
&amp;nbsp;
&lt;span class="rem"&gt;/* Get the category that you are in at the moment */&lt;/span&gt;
$_default_category=$this-&amp;gt;getCurrentCategory();
&amp;nbsp;
&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="menu"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php
&lt;span class="kwrd"&gt;if&lt;/span&gt; ($_main_categories):
&lt;span class="rem"&gt;/* Ciclo attraverso categorie */&lt;/span&gt;
$contatore = 1;
&lt;span class="kwrd"&gt;foreach&lt;/span&gt; ($_main_categories &lt;span class="kwrd"&gt;as&lt;/span&gt; $_main_category):
&lt;span class="kwrd"&gt;if&lt;/span&gt;($_main_category-&amp;gt;getIsActive()):
   
$cur_category=Mage::getModel(&lt;span class="str"&gt;'catalog/category'&lt;/span&gt;)-&amp;gt;load($_main_category-&amp;gt;getId());
$layer = Mage::getSingleton(&lt;span class="str"&gt;'catalog/layer'&lt;/span&gt;);
$layer-&amp;gt;setCurrentCategory($cur_category);
&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
   
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt; &lt;span class="attr"&gt;class&lt;/span&gt;&lt;span class="kwrd"&gt;="navhead"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;echo&lt;/span&gt; $this-&amp;gt;getCurrentCategory()-&amp;gt;getName();&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
   
&lt;span class="rem"&gt;&amp;lt;!---/* Prendo le sottocategorie e loop. */--&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php $_categories=$this-&amp;gt;getCurrentChildCategories()&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;if&lt;/span&gt;($_categories-&amp;gt;&lt;span class="kwrd"&gt;count&lt;/span&gt;()):
&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt; &lt;span class="attr"&gt;class&lt;/span&gt;&lt;span class="kwrd"&gt;="navcontent"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ul&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php
    $conta_key = 0;
&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt; &lt;span class="kwrd"&gt;foreach&lt;/span&gt; ($_categories &lt;span class="kwrd"&gt;as&lt;/span&gt; $_category):&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php
&lt;span class="kwrd"&gt;echo&lt;/span&gt; &lt;span class="str"&gt;'
&amp;lt;script type="text/javascript"&amp;gt;
var Tree'&lt;/span&gt;.$contatore.&lt;span class="str"&gt;' = new Array;
&amp;lt;/script&amp;gt;
&amp;nbsp;
&amp;lt;script type="text/javascript"&amp;gt;
Tree'&lt;/span&gt;.$contatore.&lt;span class="str"&gt;'['&lt;/span&gt;.$conta_key.&lt;span class="str"&gt;']  = "'&lt;/span&gt;.$conta_key.&lt;span class="str"&gt;'|0|'&lt;/span&gt;.$_category-&amp;gt;getName().&lt;span class="str"&gt;'|'&lt;/span&gt;.$this-&amp;gt;getCategoryUrl($_category).&lt;span class="str"&gt;'";
&amp;lt;/script&amp;gt;
'&lt;/span&gt;;
&amp;nbsp;
&lt;span class="rem"&gt;// Incremento variabili&lt;/span&gt;
$conta_key += 1;
&lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;&amp;nbsp;
&amp;lt;? &lt;span class="kwrd"&gt;if&lt;/span&gt;($_category-&amp;gt;getIsActive()): ?&amp;gt;
&amp;nbsp;
&amp;lt;?php
$cur_subcategory=Mage::getModel(&lt;span class="str"&gt;'catalog/category'&lt;/span&gt;)-&amp;gt;load($_category-&amp;gt;getId());
$layer = Mage::getSingleton(&lt;span class="str"&gt;'catalog/layer'&lt;/span&gt;);
$layer-&amp;gt;setCurrentCategory($cur_subcategory);
?&amp;gt;&amp;lt;ul id=&lt;span class="str"&gt;"left-nav"&lt;/span&gt;&amp;gt;
&amp;lt;a href=&lt;span class="str"&gt;""&lt;/span&gt; title=&lt;span class="str"&gt;""&lt;/span&gt; alt=&lt;span class="str"&gt;""&lt;/span&gt;&amp;gt;&amp;lt;img src=&lt;span class="str"&gt;"arrow_right.png"&lt;/span&gt; alt=&lt;span class="str"&gt;""&lt;/span&gt; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;li &lt;span class="kwrd"&gt;class&lt;/span&gt;=&lt;span class="str"&gt;"subcat"&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span class="str"&gt;"&amp;lt;?php echo $this-&amp;gt;getCategoryUrl($_category)?&amp;gt;"&lt;/span&gt;&amp;gt;&amp;lt;?php echo $_category-&amp;gt;getName()?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
 &amp;lt;? endif;?&amp;gt;
    
 &amp;lt;?endforeach?&amp;gt;
&amp;lt;!---&lt;span class="rem"&gt;/* Fino loop attraverso sotto-categorie */&lt;/span&gt;/--&amp;gt;
&amp;nbsp;
 &amp;lt;/ul&amp;gt;
 &amp;lt;/div&amp;gt;
    
 &amp;lt;?endif;?&amp;gt; &amp;lt;!---&lt;span class="rem"&gt;/* Fine se vi sono child categorie */&lt;/span&gt;/--&amp;gt;
    
 &amp;lt;?php
    
 endif; &lt;span class="rem"&gt;/* Fine se la cateroria superiore è attiva */&lt;/span&gt;
 /*
echo &lt;span class="str"&gt;'
&amp;lt;script type="text/javascript"&amp;gt;
&amp;lt;!--
    createTree(Tree'&lt;/span&gt;.$contatore.');
&lt;span class="rem"&gt;//--&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;script&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
';
*/
// Incremento variabili
$contatore += 1;
 
 endforeach; /* Fine ciclo attraverso le categorie superiori */
 &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt;
 &lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php &lt;span class="kwrd"&gt;endif&lt;/span&gt;; &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt; &lt;span class="rem"&gt;&amp;lt;!---/* Fine se ci sono categorie *//--&amp;gt;&lt;/span&gt;
 &lt;span class="asp"&gt;&amp;lt;?&lt;/span&gt;php $layer-&amp;gt;setCurrentCategory($_default_category);  &lt;span class="asp"&gt;?&amp;gt;&lt;/span&gt; &lt;span class="rem"&gt;&amp;lt;!---/* Setta la categoria di ritorno *//--&amp;gt;&lt;/span&gt;
     
 &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;div&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 03:03:15 -0800</pubDate></item><item><guid isPermaLink="false">dtxcgf</guid><link>http://codepaste.net/dtxcgf</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;stdio.h&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;stdlib.h&amp;gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; main(&lt;span class="kwrd"&gt;void&lt;/span&gt;)
{
    printf(&lt;span class="str"&gt;"%s"&lt;/span&gt;, &lt;span class="str"&gt;"\nEnter a number between 1 and 100 to test it's primality (numbers above 99 will be parsed):"&lt;/span&gt;);
    
    &lt;span class="kwrd"&gt;char&lt;/span&gt; numberString[3];
    fgets(numberString, 3, stdin);
    
    &lt;span class="kwrd"&gt;int&lt;/span&gt; number = atoi(numberString);
    
    &lt;span class="kwrd"&gt;int&lt;/span&gt; iterate = 2, numbersUpTo = 0, primeNumbers[100], primeIterate = 0;
    primeNumbers[0] = 0;
    
    &lt;span class="kwrd"&gt;while&lt;/span&gt;(numbersUpTo != number)
    {
        &lt;span class="kwrd"&gt;if&lt;/span&gt;(iterate != numbersUpTo)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt;(numbersUpTo % iterate == 0)
            {
                ++numbersUpTo;
                iterate = 2;
            }
            &lt;span class="kwrd"&gt;else&lt;/span&gt;
                ++iterate;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;
        {
            primeNumbers[primeIterate] = numbersUpTo;
            ++primeIterate, ++numbersUpTo;
            iterate = 2;    
        }
    }
    
    &lt;span class="kwrd"&gt;if&lt;/span&gt;(primeNumbers[0] == 0)
        printf(&lt;span class="str"&gt;"%s"&lt;/span&gt;, &lt;span class="str"&gt;"There were no prime numbers.\n"&lt;/span&gt;);
    &lt;span class="kwrd"&gt;else&lt;/span&gt;
    {
        iterate = 0;
        &lt;span class="kwrd"&gt;while&lt;/span&gt;(iterate != primeIterate)
        {
            printf(&lt;span class="str"&gt;"%d%s"&lt;/span&gt;, primeNumbers[iterate], &lt;span class="str"&gt;", "&lt;/span&gt;);
            ++iterate;  
        }
        printf(&lt;span class="str"&gt;"%s%d"&lt;/span&gt;, &lt;span class="str"&gt;"are all prime numbers under "&lt;/span&gt;, number);
    }
    
&lt;span class="kwrd"&gt;return&lt;/span&gt; 0;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 02:33:09 -0800</pubDate></item><item><guid isPermaLink="false">hbzhnd</guid><link>http://codepaste.net/hbzhnd</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;stdio.h&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;stdlib.h&amp;gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; main(&lt;span class="kwrd"&gt;void&lt;/span&gt;)
{
    printf(&lt;span class="str"&gt;"%s"&lt;/span&gt;, &lt;span class="str"&gt;"\nEnter a number between 1 and 100 to test it's primality (numbers above 99 will be parsed):"&lt;/span&gt;);
    
    &lt;span class="kwrd"&gt;char&lt;/span&gt; numberString[3];
    fgets(numberString, 3, stdin);
    
    &lt;span class="kwrd"&gt;int&lt;/span&gt; number = atoi(numberString);
    
    &lt;span class="kwrd"&gt;int&lt;/span&gt; iterate = 2, numbersUpTo = 0, primeNumbers[100], primeIterate = 0;
    primeNumbers[0] = 0;
    
    &lt;span class="kwrd"&gt;while&lt;/span&gt;(numbersUpTo != number)
    {
        &lt;span class="kwrd"&gt;if&lt;/span&gt;(iterate != numbersUpTo)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt;(numbersUpTo % iterate == 0)
            {
                ++numbersUpTo;
                iterate = 2;
            }
            &lt;span class="kwrd"&gt;else&lt;/span&gt;
                ++iterate;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;
        {
            primeNumbers[primeIterate] = numbersUpTo;
            ++primeIterate, ++numbersUpTo;
            iterate = 2;    
        }
    }
    printf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, primeIterate);
    &lt;span class="kwrd"&gt;if&lt;/span&gt;(primeNumbers[0] == 0)
        printf(&lt;span class="str"&gt;"%s"&lt;/span&gt;, &lt;span class="str"&gt;"There were no prime numbers.\n"&lt;/span&gt;);
    &lt;span class="kwrd"&gt;else&lt;/span&gt;
    {
        iterate = 0;
        &lt;span class="kwrd"&gt;while&lt;/span&gt;(iterate != primeIterate)
        {
            printf(&lt;span class="str"&gt;"%d%s"&lt;/span&gt;, primeNumbers[iterate], &lt;span class="str"&gt;", "&lt;/span&gt;);
            ++iterate;  
        }
        printf(&lt;span class="str"&gt;"%s%d"&lt;/span&gt;, &lt;span class="str"&gt;"are all prime numbers under "&lt;/span&gt;, number);
    }
    
&lt;span class="kwrd"&gt;return&lt;/span&gt; 0;
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 02:32:29 -0800</pubDate></item><item><guid isPermaLink="false">mhycrx</guid><link>http://codepaste.net/mhycrx</link><a10:author><a10:name>Abhilash</a10:name></a10:author><title>Javascript : Selectbox Functions</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="rem"&gt;// ===================================================================&lt;/span&gt;
&lt;span class="rem"&gt;// Author: Matt Kruse &amp;lt;matt@mattkruse.com&amp;gt;&lt;/span&gt;
&lt;span class="rem"&gt;// WWW: http://www.mattkruse.com/&lt;/span&gt;
&lt;span class="rem"&gt;//&lt;/span&gt;
&lt;span class="rem"&gt;// NOTICE: You may use this code for any purpose, commercial or&lt;/span&gt;
&lt;span class="rem"&gt;// private, without any further permission from the author. You may&lt;/span&gt;
&lt;span class="rem"&gt;// remove this notice from your final code if you wish, however it is&lt;/span&gt;
&lt;span class="rem"&gt;// appreciated by the author if at least my web site address is kept.&lt;/span&gt;
&lt;span class="rem"&gt;//&lt;/span&gt;
&lt;span class="rem"&gt;// You may *NOT* re-distribute this code in any way except through its&lt;/span&gt;
&lt;span class="rem"&gt;// use. That means, you can include it in your product, or your web&lt;/span&gt;
&lt;span class="rem"&gt;// site, or any other form where the code is actually being used. You&lt;/span&gt;
&lt;span class="rem"&gt;// may not put the plain javascript up on your site for download or&lt;/span&gt;
&lt;span class="rem"&gt;// include it in your javascript libraries for download. &lt;/span&gt;
&lt;span class="rem"&gt;// If you wish to share this code with others, please just point them&lt;/span&gt;
&lt;span class="rem"&gt;// to the URL instead.&lt;/span&gt;
&lt;span class="rem"&gt;// Please DO NOT link directly to my .js files from your site. Copy&lt;/span&gt;
&lt;span class="rem"&gt;// the files to your server and use them there. Thank you.&lt;/span&gt;
&lt;span class="rem"&gt;// ===================================================================&lt;/span&gt;
&amp;nbsp;
&lt;span class="rem"&gt;// HISTORY&lt;/span&gt;
&lt;span class="rem"&gt;// ------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// April 20, 2005: Fixed the removeSelectedOptions() function to &lt;/span&gt;
&lt;span class="rem"&gt;//                 correctly handle single selects&lt;/span&gt;
&lt;span class="rem"&gt;// June 12, 2003: Modified up and down functions to support more than&lt;/span&gt;
&lt;span class="rem"&gt;//                one selected option&lt;/span&gt;
&lt;span class="rem"&gt;/*&lt;/span&gt;
&lt;span class="rem"&gt;DESCRIPTION: These are general functions to deal with and manipulate&lt;/span&gt;
&lt;span class="rem"&gt;select boxes. Also see the OptionTransfer library to more easily &lt;/span&gt;
&lt;span class="rem"&gt;handle transferring options between two lists&lt;/span&gt;
&lt;span class="rem"&gt;&lt;/span&gt;
&lt;span class="rem"&gt;COMPATABILITY: These are fairly basic functions - they should work on&lt;/span&gt;
&lt;span class="rem"&gt;all browsers that support Javascript.&lt;/span&gt;
&lt;span class="rem"&gt;*/&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// hasOptions(obj)&lt;/span&gt;
&lt;span class="rem"&gt;//  Utility function to determine if a select object has an options array&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; hasOptions(obj) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (obj!=&lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; obj.options!=&lt;span class="kwrd"&gt;null&lt;/span&gt;) { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// selectUnselectMatchingOptions(select_object,regex,select/unselect,true/false)&lt;/span&gt;
&lt;span class="rem"&gt;//  This is a general function used by the select functions below, to&lt;/span&gt;
&lt;span class="rem"&gt;//  avoid code duplication&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; selectUnselectMatchingOptions(obj,regex,which,only) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (window.RegExp) {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (which == &lt;span class="str"&gt;"select"&lt;/span&gt;) {
            &lt;span class="kwrd"&gt;var&lt;/span&gt; selected1=&lt;span class="kwrd"&gt;true&lt;/span&gt;;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; selected2=&lt;span class="kwrd"&gt;false&lt;/span&gt;;
            }
        &lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (which == &lt;span class="str"&gt;"unselect"&lt;/span&gt;) {
            &lt;span class="kwrd"&gt;var&lt;/span&gt; selected1=&lt;span class="kwrd"&gt;false&lt;/span&gt;;
            &lt;span class="kwrd"&gt;var&lt;/span&gt; selected2=&lt;span class="kwrd"&gt;true&lt;/span&gt;;
            }
        &lt;span class="kwrd"&gt;else&lt;/span&gt; {
            &lt;span class="kwrd"&gt;return&lt;/span&gt;;
            }
        &lt;span class="kwrd"&gt;var&lt;/span&gt; re = &lt;span class="kwrd"&gt;new&lt;/span&gt; RegExp(regex);
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(obj)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;obj.options.length; i++) {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (re.test(obj.options[i].text)) {
                obj.options[i].selected = selected1;
                }
            &lt;span class="kwrd"&gt;else&lt;/span&gt; {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (only == &lt;span class="kwrd"&gt;true&lt;/span&gt;) {
                    obj.options[i].selected = selected2;
                    }
                }
            }
        }
    }
        
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// selectMatchingOptions(select_object,regex)&lt;/span&gt;
&lt;span class="rem"&gt;//  This function selects all options that match the regular expression&lt;/span&gt;
&lt;span class="rem"&gt;//  passed in. Currently-selected options will not be changed.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; selectMatchingOptions(obj,regex) {
    selectUnselectMatchingOptions(obj,regex,&lt;span class="str"&gt;"select"&lt;/span&gt;,&lt;span class="kwrd"&gt;false&lt;/span&gt;);
    }
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// selectOnlyMatchingOptions(select_object,regex)&lt;/span&gt;
&lt;span class="rem"&gt;//  This function selects all options that match the regular expression&lt;/span&gt;
&lt;span class="rem"&gt;//  passed in. Selected options that don't match will be un-selected.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; selectOnlyMatchingOptions(obj,regex) {
    selectUnselectMatchingOptions(obj,regex,&lt;span class="str"&gt;"select"&lt;/span&gt;,&lt;span class="kwrd"&gt;true&lt;/span&gt;);
    }
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// unSelectMatchingOptions(select_object,regex)&lt;/span&gt;
&lt;span class="rem"&gt;//  This function Unselects all options that match the regular expression&lt;/span&gt;
&lt;span class="rem"&gt;//  passed in. &lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; unSelectMatchingOptions(obj,regex) {
    selectUnselectMatchingOptions(obj,regex,&lt;span class="str"&gt;"unselect"&lt;/span&gt;,&lt;span class="kwrd"&gt;false&lt;/span&gt;);
    }
    
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// sortSelect(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//   Pass this function a SELECT object and the options will be sorted&lt;/span&gt;
&lt;span class="rem"&gt;//   by their text (display) values&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; sortSelect(obj) {
    &lt;span class="kwrd"&gt;var&lt;/span&gt; o = &lt;span class="kwrd"&gt;new&lt;/span&gt; Array();
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(obj)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;obj.options.length; i++) {
        o[o.length] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option( obj.options[i].text, obj.options[i].value, obj.options[i].defaultSelected, obj.options[i].selected) ;
        }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (o.length==0) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    o = o.sort( 
        &lt;span class="kwrd"&gt;function&lt;/span&gt;(a,b) { 
            &lt;span class="kwrd"&gt;if&lt;/span&gt; ((a.text+&lt;span class="str"&gt;""&lt;/span&gt;) &amp;lt; (b.text+&lt;span class="str"&gt;""&lt;/span&gt;)) { &lt;span class="kwrd"&gt;return&lt;/span&gt; -1; }
            &lt;span class="kwrd"&gt;if&lt;/span&gt; ((a.text+&lt;span class="str"&gt;""&lt;/span&gt;) &amp;gt; (b.text+&lt;span class="str"&gt;""&lt;/span&gt;)) { &lt;span class="kwrd"&gt;return&lt;/span&gt; 1; }
            &lt;span class="kwrd"&gt;return&lt;/span&gt; 0;
            } 
        );
&amp;nbsp;
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;o.length; i++) {
        obj.options[i] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);
        }
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// selectAllOptions(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//  This function takes a select box and selects all options (in a &lt;/span&gt;
&lt;span class="rem"&gt;//  multiple select object). This is used when passing values between&lt;/span&gt;
&lt;span class="rem"&gt;//  two select boxes. Select all options in the right box before &lt;/span&gt;
&lt;span class="rem"&gt;//  submitting the form so the values will be sent to the server.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; selectAllOptions(obj) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(obj)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;obj.options.length; i++) {
        obj.options[i].selected = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
        }
    }
    
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// moveSelectedOptions(select_object,select_object[,autosort(true/false)[,regex]])&lt;/span&gt;
&lt;span class="rem"&gt;//  This function moves options between select boxes. Works best with&lt;/span&gt;
&lt;span class="rem"&gt;//  multi-select boxes to create the common Windows control effect.&lt;/span&gt;
&lt;span class="rem"&gt;//  Passes all selected values from the first object to the second&lt;/span&gt;
&lt;span class="rem"&gt;//  object and re-sorts each box.&lt;/span&gt;
&lt;span class="rem"&gt;//  If a third argument of 'false' is passed, then the lists are not&lt;/span&gt;
&lt;span class="rem"&gt;//  sorted after the move.&lt;/span&gt;
&lt;span class="rem"&gt;//  If a fourth string argument is passed, this will function as a&lt;/span&gt;
&lt;span class="rem"&gt;//  Regular Expression to match against the TEXT or the options. If &lt;/span&gt;
&lt;span class="rem"&gt;//  the text of an option matches the pattern, it will NOT be moved.&lt;/span&gt;
&lt;span class="rem"&gt;//  It will be treated as an unmoveable option.&lt;/span&gt;
&lt;span class="rem"&gt;//  You can also put this into the &amp;lt;SELECT&amp;gt; object as follows:&lt;/span&gt;
&lt;span class="rem"&gt;//    onDblClick="moveSelectedOptions(this,this.form.target)&lt;/span&gt;
&lt;span class="rem"&gt;//  This way, when the user double-clicks on a value in one box, it&lt;/span&gt;
&lt;span class="rem"&gt;//  will be transferred to the other (in browsers that support the &lt;/span&gt;
&lt;span class="rem"&gt;//  onDblClick() event handler).&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; moveSelectedOptions(from,to) {
    &lt;span class="rem"&gt;// Unselect matching options, if required&lt;/span&gt;
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length&amp;gt;3) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; regex = arguments[3];
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (regex != &lt;span class="str"&gt;""&lt;/span&gt;) {
            unSelectMatchingOptions(from,regex);
            }
        }
    &lt;span class="rem"&gt;// Move them over&lt;/span&gt;
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(from)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;from.options.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; o = from.options[i];
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (o.selected) {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(to)) { &lt;span class="kwrd"&gt;var&lt;/span&gt; index = 0; } &lt;span class="kwrd"&gt;else&lt;/span&gt; { &lt;span class="kwrd"&gt;var&lt;/span&gt; index=to.options.length; }
            to.options[index] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option( o.text, o.value, &lt;span class="kwrd"&gt;false&lt;/span&gt;, &lt;span class="kwrd"&gt;false&lt;/span&gt;);
            }
        }
    &lt;span class="rem"&gt;// Delete them from original&lt;/span&gt;
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=(from.options.length-1); i&amp;gt;=0; i--) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; o = from.options[i];
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (o.selected) {
            from.options[i] = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
            }
        }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; ((arguments.length&amp;lt;3) || (arguments[2]==&lt;span class="kwrd"&gt;true&lt;/span&gt;)) {
        sortSelect(from);
        sortSelect(to);
        }
    from.selectedIndex = -1;
    to.selectedIndex = -1;
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// copySelectedOptions(select_object,select_object[,autosort(true/false)])&lt;/span&gt;
&lt;span class="rem"&gt;//  This function copies options between select boxes instead of &lt;/span&gt;
&lt;span class="rem"&gt;//  moving items. Duplicates in the target list are not allowed.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; copySelectedOptions(from,to) {
    &lt;span class="kwrd"&gt;var&lt;/span&gt; options = &lt;span class="kwrd"&gt;new&lt;/span&gt; Object();
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (hasOptions(to)) {
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;to.options.length; i++) {
            options[to.options[i].value] = to.options[i].text;
            }
        }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(from)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=0; i&amp;lt;from.options.length; i++) {
        &lt;span class="kwrd"&gt;var&lt;/span&gt; o = from.options[i];
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (o.selected) {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (options[o.value] == &lt;span class="kwrd"&gt;null&lt;/span&gt; || options[o.value] == &lt;span class="str"&gt;"undefined"&lt;/span&gt; || options[o.value]!=o.text) {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(to)) { &lt;span class="kwrd"&gt;var&lt;/span&gt; index = 0; } &lt;span class="kwrd"&gt;else&lt;/span&gt; { &lt;span class="kwrd"&gt;var&lt;/span&gt; index=to.options.length; }
                to.options[index] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option( o.text, o.value, &lt;span class="kwrd"&gt;false&lt;/span&gt;, &lt;span class="kwrd"&gt;false&lt;/span&gt;);
                }
            }
        }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; ((arguments.length&amp;lt;3) || (arguments[2]==&lt;span class="kwrd"&gt;true&lt;/span&gt;)) {
        sortSelect(to);
        }
    from.selectedIndex = -1;
    to.selectedIndex = -1;
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// moveAllOptions(select_object,select_object[,autosort(true/false)[,regex]])&lt;/span&gt;
&lt;span class="rem"&gt;//  Move all options from one select box to another.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; moveAllOptions(from,to) {
    selectAllOptions(from);
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length==2) {
        moveSelectedOptions(from,to);
        }
    &lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length==3) {
        moveSelectedOptions(from,to,arguments[2]);
        }
    &lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length==4) {
        moveSelectedOptions(from,to,arguments[2],arguments[3]);
        }
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// copyAllOptions(select_object,select_object[,autosort(true/false)])&lt;/span&gt;
&lt;span class="rem"&gt;//  Copy all options from one select box to another, instead of&lt;/span&gt;
&lt;span class="rem"&gt;//  removing items. Duplicates in the target list are not allowed.&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; copyAllOptions(from,to) {
    selectAllOptions(from);
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length==2) {
        copySelectedOptions(from,to);
        }
    &lt;span class="kwrd"&gt;else&lt;/span&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (arguments.length==3) {
        copySelectedOptions(from,to,arguments[2]);
        }
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// swapOptions(select_object,option1,option2)&lt;/span&gt;
&lt;span class="rem"&gt;//  Swap positions of two options in a select list&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; swapOptions(obj,i,j) {
    &lt;span class="kwrd"&gt;var&lt;/span&gt; o = obj.options;
    &lt;span class="kwrd"&gt;var&lt;/span&gt; i_selected = o[i].selected;
    &lt;span class="kwrd"&gt;var&lt;/span&gt; j_selected = o[j].selected;
    &lt;span class="kwrd"&gt;var&lt;/span&gt; temp = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);
    &lt;span class="kwrd"&gt;var&lt;/span&gt; temp2= &lt;span class="kwrd"&gt;new&lt;/span&gt; Option(o[j].text, o[j].value, o[j].defaultSelected, o[j].selected);
    o[i] = temp2;
    o[j] = temp;
    o[i].selected = j_selected;
    o[j].selected = i_selected;
    }
    
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// moveOptionUp(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//  Move selected option in a select list up one&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; moveOptionUp(obj) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(obj)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=0; i&amp;lt;obj.options.length; i++) {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (obj.options[i].selected) {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (i != 0 &amp;amp;&amp;amp; !obj.options[i-1].selected) {
                swapOptions(obj,i,i-1);
                obj.options[i-1].selected = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
                }
            }
        }
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// moveOptionDown(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//  Move selected option in a select list down one&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; moveOptionDown(obj) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(obj)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (i=obj.options.length-1; i&amp;gt;=0; i--) {
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (obj.options[i].selected) {
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (i != (obj.options.length-1) &amp;amp;&amp;amp; ! obj.options[i+1].selected) {
                swapOptions(obj,i,i+1);
                obj.options[i+1].selected = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
                }
            }
        }
    }
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// removeSelectedOptions(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//  Remove all selected options from a list&lt;/span&gt;
&lt;span class="rem"&gt;//  (Thanks to Gene Ninestein)&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; removeSelectedOptions(from) { 
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(from)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (from.type==&lt;span class="str"&gt;"select-one"&lt;/span&gt;) {
        from.options[from.selectedIndex] = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        }
    &lt;span class="kwrd"&gt;else&lt;/span&gt; {
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=(from.options.length-1); i&amp;gt;=0; i--) { 
            &lt;span class="kwrd"&gt;var&lt;/span&gt; o=from.options[i]; 
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (o.selected) { 
                from.options[i] = &lt;span class="kwrd"&gt;null&lt;/span&gt;; 
                } 
            }
        }
    from.selectedIndex = -1; 
    } 
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// removeAllOptions(select_object)&lt;/span&gt;
&lt;span class="rem"&gt;//  Remove all options from a list&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; removeAllOptions(from) { 
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!hasOptions(from)) { &lt;span class="kwrd"&gt;return&lt;/span&gt;; }
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;var&lt;/span&gt; i=(from.options.length-1); i&amp;gt;=0; i--) { 
        from.options[i] = &lt;span class="kwrd"&gt;null&lt;/span&gt;; 
        } 
    from.selectedIndex = -1; 
    } 
&amp;nbsp;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="rem"&gt;// addOption(select_object,display_text,value,selected)&lt;/span&gt;
&lt;span class="rem"&gt;//  Add an option to a list&lt;/span&gt;
&lt;span class="rem"&gt;// -------------------------------------------------------------------&lt;/span&gt;
&lt;span class="kwrd"&gt;function&lt;/span&gt; addOption(obj,text,value,selected) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (obj!=&lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; obj.options!=&lt;span class="kwrd"&gt;null&lt;/span&gt;) {
        obj.options[obj.options.length] = &lt;span class="kwrd"&gt;new&lt;/span&gt; Option(text, value, &lt;span class="kwrd"&gt;false&lt;/span&gt;, selected);
        }
    }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Tue, 09 Mar 2010 00:08:49 -0800</pubDate></item><item><guid isPermaLink="false">ehdsux</guid><link>http://codepaste.net/ehdsux</link><a10:author><a10:name>Nana</a10:name></a10:author><title>tribalwars planner</title><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;stdio.h&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;math.h&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;vector&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;queue&amp;gt;
&lt;span class="preproc"&gt;#include&lt;/span&gt; &amp;lt;algorithm&amp;gt;
&amp;nbsp;
&lt;span class="kwrd"&gt;using&lt;/span&gt; &lt;span class="kwrd"&gt;namespace&lt;/span&gt; std;
&amp;nbsp;
&lt;span class="kwrd"&gt;struct&lt;/span&gt; att
{
  att(&lt;span class="kwrd"&gt;int&lt;/span&gt; _x, &lt;span class="kwrd"&gt;int&lt;/span&gt; _y) { x = _x; y = _y; step.clear(); earliest_time = -9999999; }
  &lt;span class="kwrd"&gt;int&lt;/span&gt; x;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; y;
  vector&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; step;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; earliest_time;
};
&amp;nbsp;
&lt;span class="kwrd"&gt;struct&lt;/span&gt; def
{
  def(&lt;span class="kwrd"&gt;int&lt;/span&gt; _x, &lt;span class="kwrd"&gt;int&lt;/span&gt; _y, &lt;span class="kwrd"&gt;int&lt;/span&gt; _weight, &lt;span class="kwrd"&gt;int&lt;/span&gt; _target_time) { x = _x; y = _y; weight = _weight; target_time = _target_time; }
  &lt;span class="kwrd"&gt;int&lt;/span&gt; x;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; y;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; weight;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; target_time;
};
&amp;nbsp;
&lt;span class="kwrd"&gt;struct&lt;/span&gt; match
{
  match(&lt;span class="kwrd"&gt;int&lt;/span&gt; _att, &lt;span class="kwrd"&gt;int&lt;/span&gt; _def, &lt;span class="kwrd"&gt;int&lt;/span&gt; _step, &lt;span class="kwrd"&gt;double&lt;/span&gt; _time) { att = _att; def = _def; step = _step; time = _time; }
  &lt;span class="kwrd"&gt;int&lt;/span&gt; att;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; def;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; step;
  &lt;span class="kwrd"&gt;double&lt;/span&gt; time;
  &lt;span class="kwrd"&gt;bool&lt;/span&gt; operator &amp;lt; (&lt;span class="kwrd"&gt;const&lt;/span&gt; match &amp;amp; _match) &lt;span class="kwrd"&gt;const&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; time &amp;lt; _match.time; }
};
&amp;nbsp;
vector&amp;lt;pair&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;, &lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; &amp;gt; ignore;
vector&amp;lt;att&amp;gt; attacker;
vector&amp;lt;def&amp;gt; defender;
vector&amp;lt;match&amp;gt; matchup;
vector&amp;lt;match&amp;gt; result;
&lt;span class="kwrd"&gt;int&lt;/span&gt; G[1000][1000], H[1000][1000], del[1000][1000];
&lt;span class="kwrd"&gt;int&lt;/span&gt; res;
&amp;nbsp;
&lt;span class="kwrd"&gt;void&lt;/span&gt; Flow(&lt;span class="kwrd"&gt;int&lt;/span&gt; n)
{
  &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
    &lt;span class="kwrd"&gt;int&lt;/span&gt; checked[1000] = {0};
    &lt;span class="kwrd"&gt;int&lt;/span&gt; from[1000] = {0};
    queue&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; Q;
    Q.push(0);
    checked[0] = 1;
    &lt;span class="kwrd"&gt;while&lt;/span&gt; (!Q.empty()) {
      &lt;span class="kwrd"&gt;int&lt;/span&gt; now = Q.front();
      Q.pop();
      &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;n; i++)
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (!checked[i] &amp;amp;&amp;amp; G[now][i]-H[now][i]&amp;gt;0) {
          checked[i] = 1;
          from[i] = now;
          Q.push(i);
        }
    }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (!checked[1]) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
    res ++;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; now = 1;
    &lt;span class="kwrd"&gt;while&lt;/span&gt; (now&amp;gt;0) {
      &lt;span class="kwrd"&gt;int&lt;/span&gt; prev = from[now];
      H[prev][now] ++;
      H[now][prev] --;
      now = prev;
    }
  }
}
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; revert(&lt;span class="kwrd"&gt;int&lt;/span&gt; a, &lt;span class="kwrd"&gt;int&lt;/span&gt; b)
{
  res --;
  H[0][a] --; H[a][b] --; H[b][1] --;
  H[a][0] ++; H[b][a] ++; H[1][b] ++;
}
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; main2()
{
  attacker.clear();
  defender.clear();
  matchup.clear();
  result.clear();
  res = 0;
  &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
    &lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0;
    scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;x);
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (x==-1) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; y;
    scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;y);
    att new_att = att(x, y);
    &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
      &lt;span class="kwrd"&gt;int&lt;/span&gt; step = 0;
      scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;step);
      &lt;span class="kwrd"&gt;if&lt;/span&gt; (step == -1) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
      &lt;span class="kwrd"&gt;if&lt;/span&gt; (step == -2) {
        &lt;span class="kwrd"&gt;int&lt;/span&gt; day, hour, minute, second;
        scanf(&lt;span class="str"&gt;"%d %d %d %d"&lt;/span&gt;, &amp;amp;day, &amp;amp;hour, &amp;amp;minute, &amp;amp;second);
        new_att.earliest_time = day*86400+hour*3600+minute*60+second;
        &lt;span class="kwrd"&gt;break&lt;/span&gt;;
      }
      new_att.step.push_back(step);
    }
    attacker.push_back(new_att);
  }
  &lt;span class="kwrd"&gt;if&lt;/span&gt; (attacker.size() == 0) &lt;span class="kwrd"&gt;return&lt;/span&gt; -1;
  &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
    &lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0;
    scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;x);
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (x==-1) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; y;
    scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;y);
    &lt;span class="kwrd"&gt;int&lt;/span&gt; weight, target_day, target_hour, target_minute, target_second;
    scanf(&lt;span class="str"&gt;"%d %d %d %d %d"&lt;/span&gt;, &amp;amp;weight, &amp;amp;target_day, &amp;amp;target_hour, &amp;amp;target_minute, &amp;amp;target_second);
    def new_def = def(x, y, weight, target_day*86400+target_hour*3600+target_minute*60+target_second);
    defender.push_back(new_def);
  }
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;attacker.size(); i++)
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; j=0; j&amp;lt;attacker[i].step.size(); j++)
      &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; k=0; k&amp;lt;defender.size(); k++) {
        &lt;span class="kwrd"&gt;int&lt;/span&gt; dist_x = attacker[i].x - defender[k].x;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; dist_y = attacker[i].y - defender[k].y;
        &lt;span class="kwrd"&gt;double&lt;/span&gt; dist = sqrt(dist_x*dist_x+dist_y*dist_y);
        &lt;span class="kwrd"&gt;double&lt;/span&gt; timer = defender[k].target_time - (&lt;span class="kwrd"&gt;int&lt;/span&gt;)(attacker[i].step[j]*dist*60+0.5);
        &lt;span class="kwrd"&gt;int&lt;/span&gt; ok = 1;
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; l=0; l&amp;lt;ignore.size(); l++) {
          &lt;span class="kwrd"&gt;if&lt;/span&gt; (ignore[l].first&amp;lt;=timer &amp;amp;&amp;amp; timer&amp;lt;=ignore[l].second) ok = 0;
        }
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (timer &amp;lt; attacker[i].earliest_time) ok = 0;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (!ok) &lt;span class="kwrd"&gt;continue&lt;/span&gt;;
        matchup.push_back(match(i, k, attacker[i].step[j], timer));
      }
  sort(matchup.begin(), matchup.end());
  &lt;span class="rem"&gt;// input part ends here&lt;/span&gt;
&amp;nbsp;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; N = 2 + attacker.size() + defender.size();
  &lt;span class="kwrd"&gt;double&lt;/span&gt; min_res = 9999999.999;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; weight_sum = 0;
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;defender.size(); i++)
    weight_sum += defender[i].weight;
  res = 0;
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;N; i++)
    &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; j=0; j&amp;lt;N; j++)
      G[i][j] = H[i][j] = del[i][j] = 0;
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;attacker.size(); i++)
    G[0][2+i] = 1;
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;defender.size(); i++)
    G[2+attacker.size()+i][1] = defender[i].weight;
  &lt;span class="kwrd"&gt;int&lt;/span&gt; last = -1;
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;matchup.size(); i++) {
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (i&amp;gt;0) {
      G[2+matchup[i-1].att][2+attacker.size()+matchup[i-1].def] = 0;
      &lt;span class="kwrd"&gt;if&lt;/span&gt; (H[2+matchup[i-1].att][2+attacker.size()+matchup[i-1].def])
        revert(2+matchup[i-1].att, 2+attacker.size()+matchup[i-1].def);
    }
    &lt;span class="kwrd"&gt;while&lt;/span&gt; (res &amp;lt; weight_sum &amp;amp;&amp;amp; last &amp;lt; (&lt;span class="kwrd"&gt;int&lt;/span&gt;)matchup.size() - 1) {
      last ++;
      G[2+matchup[last].att][2+attacker.size()+matchup[last].def] = 1;
      del[2+matchup[last].att][2+attacker.size()+matchup[last].def] = matchup[last].step;
      Flow(N);
    }
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (res == weight_sum &amp;amp;&amp;amp; last &amp;gt; -1 &amp;amp;&amp;amp; min_res &amp;gt; matchup[last].time-matchup[i].time) {
      min_res = matchup[last].time-matchup[i].time;
      result.clear();
      &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; j=0; j&amp;lt;attacker.size(); j++)
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; k=0; k&amp;lt;defender.size(); k++)
          &lt;span class="kwrd"&gt;if&lt;/span&gt; (H[2+j][2+attacker.size()+k]) {
            &lt;span class="kwrd"&gt;int&lt;/span&gt; dist_x = attacker[j].x - defender[k].x;
            &lt;span class="kwrd"&gt;int&lt;/span&gt; dist_y = attacker[j].y - defender[k].y;
            &lt;span class="kwrd"&gt;double&lt;/span&gt; dist = sqrt(dist_x*dist_x+dist_y*dist_y);
            result.push_back(match(j, k, del[2+j][2+attacker.size()+k], defender[k].target_time - (&lt;span class="kwrd"&gt;int&lt;/span&gt;)(del[2+j][2+attacker.size()+k]*dist*60+0.5)));
          }
    }
&lt;span class="rem"&gt;//    printf("%d %d %d %d %f %f %f\n", i, last, res, weight_sum, matchup[last].time, matchup[i].time, matchup[last].time - matchup[i].time);&lt;/span&gt;
  }
  sort(result.begin(), result.end());
  &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0; i&amp;lt;result.size(); i++) {
    &lt;span class="kwrd"&gt;double&lt;/span&gt; timer = result[i].time;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; day = timer/86400; timer -= day*86400;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; hour = timer/3600; timer -= hour*3600;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; minute = timer/60; timer -= minute*60;
    &lt;span class="kwrd"&gt;int&lt;/span&gt; second = timer/1; timer -= second*1;
    printf(&lt;span class="str"&gt;"%2d %02d:%02d:%02d %03d|%03d -&amp;gt; %03d|%03d (%02d)\n"&lt;/span&gt;, day, hour, minute, second, attacker[result[i].att].x, attacker[result[i].att].y, defender[result[i].def].x, defender[result[i].def].y, result[i].step);
  }
  &lt;span class="kwrd"&gt;return&lt;/span&gt; 0;
}
&amp;nbsp;
&lt;span class="kwrd"&gt;int&lt;/span&gt; main()
{
  &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
    ignore.clear();
    &lt;span class="kwrd"&gt;while&lt;/span&gt; (1) {
      &lt;span class="kwrd"&gt;int&lt;/span&gt; d1, h1, m1, s1, d2, h2, m2, s2;
      scanf(&lt;span class="str"&gt;"%d"&lt;/span&gt;, &amp;amp;d1);
      &lt;span class="kwrd"&gt;if&lt;/span&gt; (d1==-1) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
      scanf(&lt;span class="str"&gt;"%d %d %d %d %d %d %d"&lt;/span&gt;, &amp;amp;h1, &amp;amp;m1, &amp;amp;s1, &amp;amp;d2, &amp;amp;h2, &amp;amp;m2, &amp;amp;s2);
      ignore.push_back(pair&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;, &lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt;(d1*86400+h1*3600+m1*60+s1, d2*86400+h2*3600+m2*60+s2));
    }
    &lt;span class="kwrd"&gt;int&lt;/span&gt; res = main2();
    &lt;span class="kwrd"&gt;if&lt;/span&gt; (res == -1) &lt;span class="kwrd"&gt;break&lt;/span&gt;;
    printf(&lt;span class="str"&gt;"\n"&lt;/span&gt;);
  }
}
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Mon, 08 Mar 2010 22:41:30 -0800</pubDate></item><item><guid isPermaLink="false">xhqe7h</guid><link>http://codepaste.net/xhqe7h</link><title /><description>&lt;pre&gt;&lt;pre class="csharpcode"&gt;
package PathFinder{
    //(x ^ (x &amp;gt;&amp;gt; 31)) - (x &amp;gt;&amp;gt; 31) Math.abs
    
    public class CPathFinder {
        public function CPathFinder():void {
            trace ("PathFinder Constructor")
            init();
            
            
        }
        
        //set the map if  a square is walkable or not 
        public  function setMap(Map:Array):void{
        
            walkability=Map;
            
        }
        private function makeDimArray(firstArray:int,secArray:int):Array {
            var vArray:Array=new Array();
            for (var i:int=0; i&amp;lt;firstArray; i++) {
                //trace("i"+i);
                vArray[i]=new Array(secArray);
            }
            return vArray;
        }
        //Declare constants
        private var MultFak:int=4;//2exp6=64
        private var halfSquare:int=8;
        private const mapWidth:int = 128, mapHeight:int = 128, tileSize:int = 16, numberPeople:int = 500;
        private var onClosedList:int = 1;
        private const notfinished:int = 0, notStarted:int = 0;// path-related constants
        private const found:int = 1, nonexistent:int = 2; 
        private const walkable:int = 0, unwalkable:int = 1;// walkability array constants
        private var walkability:Array;
        private var openList:Array=new Array(mapWidth*mapHeight+2);//1 dimensional array holding ID# of open list items
        private var whichList:Array;//2 dimensional array used to record 
        //whether a cell is on the open list or on the closed list.
        private var openX:Array=new Array(mapWidth*mapHeight+2);//1d array stores the x location of an item on the open list
        private var openY:Array=new Array(mapWidth*mapHeight+2);//1d array stores the y location of an item on the open list
        private var parentX:Array;//2d array to store parent of each cell (x)
        private var parentY:Array;//2d array to store parent of each cell (y)
        private var Fcost:Array=new Array(mapWidth*mapHeight+2);//1d array to store F cost of a cell on the open list
        private var Gcost:Array;//2d array to store G cost for each cell.
        private var Hcost:Array=new Array(mapWidth*mapHeight+2);//1d array to store H cost of a cell on the open list
        private var pathLength:Array=new Array(numberPeople+1);//stores length of the found path for critter
        private var pathLocation:Array=new Array(numberPeople+1);//stores current position along the chosen path for critter
        public var pathBank:Array=new Array(numberPeople+1);
        //Path reading variables  
        private var pathStatus:Array=new Array(numberPeople+1);
        private var xPath:Array=new Array(numberPeople+1);
        private var yPath:Array=new Array(numberPeople+1);
        
        
        private function init():void {
            //Create needed arrays
            
            walkability=makeDimArray(mapWidth,mapHeight);
            whichList=makeDimArray(mapWidth+1,mapHeight+1);
            parentX=makeDimArray(mapWidth+1,mapHeight+1);
            parentY=makeDimArray(mapWidth+1,mapHeight+1);
            Gcost=makeDimArray(mapWidth+1,mapHeight+1);
        }
        //-----------------------------------------------------------------------------
        // Name: FindPath
        // Desc: Finds a path using A*
        //-----------------------------------------------------------------------------
        
        public function FindPath( pathfinderID:int, startingX:int,  startingY:int,
                                  targetX:int,  targetY:int):int {
            
            
            var onOpenList:int=0, parentXval:int=0, parentYval:int=0,
                a:int=0, b:int=0, m:int=0, u:int=0, v:int=0, temp:int=0, corner:int=0, numberOfOpenListItems:int=0,
                addedGCost:int=0, tempGcost:int = 0, path:int = 0,
                tempx:int, pathX:int, pathY:int, cellPosition:int,
                newOpenListItemID:int=0;
            
            //1. Convert location data (in pixels) to coordinates in the walkability array.
            var startX:int = startingX//&amp;gt;&amp;gt;MultFak;//go shift it with &amp;lt;&amp;lt;4
            var startY:int = startingY//&amp;gt;&amp;gt;MultFak;//go shift it with &amp;lt;&amp;lt;4
            targetX = targetX//&amp;gt;&amp;gt;MultFak;//go shift it with &amp;lt;&amp;lt;4
            targetY = targetY//&amp;gt;&amp;gt;MultFak;//go shift it with &amp;lt;&amp;lt;4
            
            //2.Quick Path Checks: Under the some circumstances no path needs to
            //be generated ...
            
            //If starting location and target are in the same location...
            if (startX == targetX &amp;amp;&amp;amp; startY == targetY &amp;amp;&amp;amp; pathLocation[pathfinderID] &amp;gt; 0) {
                return found;
            }
            if (startX == targetX &amp;amp;&amp;amp; startY == targetY &amp;amp;&amp;amp; pathLocation[pathfinderID] == 0) {
                return nonexistent;
            }
            
            //If target square is unwalkable, return that it's a nonexistent path.
            if (walkability[targetX][targetY] == unwalkable) {
                xPath[pathfinderID] = startingX;
                yPath[pathfinderID] = startingY;
                return nonexistent;
            }
            
            
            //3.Reset some variables that need to be cleared
            if (onClosedList &amp;gt; 10000000) //reset whichList occasionally (/10...)
            {
                for (var x:int = 0; x &amp;lt; mapWidth; x++) {
                    for (var y:int = 0; y &amp;lt; mapHeight; y++) {
                        whichList [x][y] = 0;
                    }
                }
                onClosedList = 10;
            }
            
            onClosedList = onClosedList+2;//changing the values of onOpenList and onClosed list is faster than redimming whichList() array
            onOpenList = onClosedList-1;
            pathLength [pathfinderID] = notStarted;//i.e, = 0
            pathLocation [pathfinderID] = notStarted;//i.e, = 0
            Gcost[startX][startY] = 0;//reset starting square's G value to 0
            
            
            //4.Add the starting location to the open list of squares to be checked.
            numberOfOpenListItems = 1;
            openList[1] = 1;//assign it as the top (and currently only) item in the open list, which is maintained as a binary heap (explained below)
            openX[1] = startX ;
            openY[1] = startY;
            
            //5.Do the following until a path is found or deemed nonexistent.
            do
            {
                //trace ("1")
                //6.If the open list is not empty, take the first cell off of the list.
                //    This is the lowest F cost cell on the open list.
                if (numberOfOpenListItems != 0)
                {
                    
                    //7. Pop the first item off the open list.
                    parentXval = openX[openList[1]];
                    parentYval = openY[openList[1]]; //record cell coordinates of the item
                    whichList[parentXval][parentYval] = onClosedList;//add the item to the closed list
                    
                    //    Open List = Binary Heap: Delete this item from the open list, which
                    //  is maintained as a binary heap. For more information on binary heaps, see:
                    //    http://www.policyalmanac.org/games/binaryHeaps.htm
                    numberOfOpenListItems = numberOfOpenListItems - 1;//reduce number of open list items by 1    
                    
                    //    Delete the top item in binary heap and reorder the heap, with the lowest F cost item rising to the top.
                    openList[1] = openList[numberOfOpenListItems+1];//move the last item in the heap up to slot #1
                    v = 1;
                    
                    //    Repeat the following until the new item in slot #1 sinks to its proper spot in the heap.
                    do
                    {
                        //trace ("2")
                        u = v;        
                        if (((u+1)&amp;lt;&amp;lt;1) &amp;lt;= numberOfOpenListItems) //if both children exist
                        {
                            
                            //Check if the F cost of the parent is greater than each child.
                            //Select the lowest of the two children.
                            if (Fcost[openList[u]] &amp;gt;= Fcost[openList[u&amp;lt;&amp;lt;1]]) 
                                v = u&amp;lt;&amp;lt;1;
                            if (Fcost[openList[v]] &amp;gt;= Fcost[openList[(u+1)&amp;lt;&amp;lt;1]]) 
                                v = (u+1)&amp;lt;&amp;lt;1;    
                            
                        }
                        else
                        {
                            if (u&amp;lt;&amp;lt;1 &amp;lt;= numberOfOpenListItems) //if only child #1 exists
                            {
                                //Check if the F cost of the parent is greater than child #1    
                                if (Fcost[openList[u]] &amp;gt;= Fcost[openList[u&amp;lt;&amp;lt;1]]) 
                                    v = u&amp;lt;&amp;lt;1;
                            }
                        }
                        
                        
                        if (u != v) //if parent's F is &amp;gt; one of its children, swap them
                        {
                            
                            temp = openList[u];
                            openList[u] = openList[v];
                            openList[v] = temp;            
                        }
                        else
                            
                            break; //otherwise, exit loop
                        
                    }
                    while (1);//reorder the binary heap
                    
                    
                    //7.Check the adjacent squares. (Its "children" -- these path children
                    //    are similar, conceptually, to the binary heap children mentioned
                    //    above, but don't confuse them. They are different. Path children
                    //    are portrayed in Demo 1 with grey pointers pointing toward
                    //    their parents.) Add these adjacent child squares to the open list
                    //    for later consideration if appropriate (see various if statements
                    //    below).
                    for (b = parentYval-1; b &amp;lt;= parentYval+1; b++){
                        for (a = parentXval-1; a &amp;lt;= parentXval+1; a++){
                            //trace ("3")
                            //    If not off the map (do this first to avoid array out-of-bounds errors)
                            if (a != -1 &amp;amp;&amp;amp; b != -1 &amp;amp;&amp;amp; a != mapWidth &amp;amp;&amp;amp; b != mapHeight){
                                
                                //    If not already on the closed list (items on the closed list have
                                //    already been considered and can now be ignored).            
                                if (whichList[a][b] != onClosedList) { 
                                    
                                    //    If not a wall/obstacle squar
                                    if (walkability [a][b] != unwalkable) { 
                                        
                                        //    Don't cut across corners
                                        corner = walkable;    
                                        if (a == parentXval-1) 
                                        {
                                            if (b == parentYval-1)
                                            {
                                                if (walkability[parentXval-1][parentYval] == unwalkable
                                                    || walkability[parentXval][parentYval-1] == unwalkable) 
                                                    ;//corner = unwalkable;
                                            }
                                            else if (b == parentYval+1)
                                            {
                                                if (walkability[parentXval][parentYval+1] == unwalkable
                                                    || walkability[parentXval-1][parentYval] == unwalkable) 
                                                    ;//corner = unwalkable; 
                                            }
                                        }
                                        else if (a == parentXval+1)
                                        {
                                            if (b == parentYval-1)
                                            {
                                                if (walkability[parentXval][parentYval-1] == unwalkable 
                                                    || walkability[parentXval+1][parentYval] == unwalkable) 
                                                    ;//corner = unwalkable;
                                            }
                                            else if (b == parentYval+1)
                                            {
                                                if (walkability[parentXval+1][parentYval] == unwalkable 
                                                    || walkability[parentXval][parentYval+1] == unwalkable)
                                                ;//    corner = unwalkable; 
                                            }
                                        }    
                                        if (corner == walkable) {
                                            
                                            //    If not already on the open list, add it to the open list.            
                                            if (whichList[a][b] != onOpenList) 
                                            {    
                                                
                                                //Create a new open list item in the binary heap.
                                                newOpenListItemID = newOpenListItemID + 1; //each new item has a unique ID #
                                                m = numberOfOpenListItems+1;
                                                openList[m] = newOpenListItemID;//place the new open list item (actually, its ID#) at the bottom of the heap
                                                openX[newOpenListItemID] = a;
                                                openY[newOpenListItemID] = b;//record the x and y coordinates of the new item
                                                
                                                //Figure out its G cost
                                                
                                                if (((a-parentXval) ^ ((a-parentXval) &amp;gt;&amp;gt; 31)) - ((a-parentXval) &amp;gt;&amp;gt; 31) == 1 
                                                    &amp;amp;&amp;amp; ((b-parentYval) ^ ((b-parentYval) &amp;gt;&amp;gt; 31)) - ( b-parentYval&amp;gt;&amp;gt; 31) == 1){
                                                    addedGCost = 14;//cost of going to diagonal squares    
                                                }
                                                else    
                                                    addedGCost = 10;//cost of going to non-diagonal squares                
                                                Gcost[a][b] = Gcost[parentXval][parentYval] + addedGCost;
                                                
                                                //Figure out its H and F costs and parent
                                                Hcost[openList[m]] = 10*(((a - targetX) ^ ((a - targetX) &amp;gt;&amp;gt; 31)) - ((a - targetX) &amp;gt;&amp;gt; 31)
                                                    + ((b - targetY) ^ ((b - targetY) &amp;gt;&amp;gt; 31)) - ((b - targetY) &amp;gt;&amp;gt; 31));
                                                Fcost[openList[m]] = Gcost[a][b] + Hcost[openList[m]];
                                                parentX[a][b] = parentXval ; parentY[a][b] = parentYval;    
                                                
                                                //Move the new open list item to the proper place in the binary heap.
                                                //Starting at the bottom, successively compare to parent items,
                                                //swapping as needed until the item finds its place in the heap
                                                //or bubbles all the way to the top (if it has the lowest F cost).
                                                while (m != 1) //While item hasn't bubbled to the top (m=1)    
                                                {
                                                    //Check if child's F cost is &amp;lt; parent's F cost. If so, swap them.    
                                                    if (Fcost[openList[m]] &amp;lt;= Fcost[openList[m&amp;gt;&amp;gt;1]])
                                                    {
                                                        temp = openList[m&amp;gt;&amp;gt;1];
                                                        openList[m&amp;gt;&amp;gt;1] = openList[m];
                                                        openList[m] = temp;
                                                        m = m&amp;gt;&amp;gt;1;
                                                    }
                                                    else
                                                        break;
                                                }
                                                numberOfOpenListItems = numberOfOpenListItems+1;//add one to the number of items in the heap
                                                
                                                //Change whichList to show that the new item is on the open list.
                                                whichList[a][b] = onOpenList;
                                            }
                                                
                                                //8.If adjacent cell is already on the open list, check to see if this 
                                                //    path to that cell from the starting location is a better one. 
                                                //    If so, change the parent of the cell and its G and F costs.    
                                            else //If whichList(a,b) = onOpenList
                                            {
                                                
                                                //Figure out the G cost of this possible new path
                                                if ( ((a-parentXval) ^ ((a-parentXval) &amp;gt;&amp;gt; 31)) - ((a-parentXval) &amp;gt;&amp;gt; 31) == 1 
                                                    &amp;amp;&amp;amp; ((b-parentYval) ^ ((b-parentYval) &amp;gt;&amp;gt; 31)) - ((b-parentYval) &amp;gt;&amp;gt; 31) == 1)
                                                    addedGCost = 14;//cost of going to diagonal tiles    
                                                else    
                                                    addedGCost = 10;//cost of going to non-diagonal tiles                
                                                tempGcost = Gcost[parentXval][parentYval] + addedGCost;
                                                
                                                //If this path is shorter (G cost is lower) then change
                                                //the parent cell, G cost and F cost.         
                                                if (tempGcost &amp;lt; Gcost[a][b]) //if G cost is less,
                                                {
                                                    parentX[a][b] = parentXval; //change the square's parent
                                                    parentY[a][b] = parentYval;
                                                    Gcost[a][b] = tempGcost;//change the G cost            
                                                    
                                                    //Because changing the G cost also changes the F cost, if
                                                    //the item is on the open list we need to change the item's
                                                    //recorded F 
                                                    for (x = 1; x &amp;lt;= numberOfOpenListItems; x++) //look for the item in the heap
                                                    {
                                                        if (openX[openList[x]] == a &amp;amp;&amp;amp; openY[openList[x]] == b) //item found
                                                        {
                                                            Fcost[openList[x]] = Gcost[a][b] + Hcost[openList[x]];//change the F cost
                                                            
                                                            //See if changing the F score bubbles the item up from it's current location in the heap
                                                            m = x;
                                                            while (m != 1) //While item hasn't bubbled to the top (m=1)    
                                                            {
                                                                //Check if child is &amp;lt; parent. If so, swap them.    
                                                                if (Fcost[openList[m]] &amp;lt; Fcost[openList[m&amp;gt;&amp;gt;1]])
                                                                {
                                                                    temp = openList[m&amp;gt;&amp;gt;1];
                                                                    openList[m&amp;gt;&amp;gt;1] = openList[m];
                                                                    openList[m] = temp;
                                                                    m = m&amp;gt;&amp;gt;1;
                                                                }
                                                                else
                                                                    break;
                                                            } 
                                                            break; //exit for x = loop
                                                        } //If openX(openList(x)) = a
                                                    } //For x = 1 To numberOfOpenListItems
                                                }//If tempGcost &amp;lt; Gcost(a,b)
                                                
                                            }//else If whichList(a,b) = onOpenList    
                                        }//If not cutting a corner
                                    }//If not a wall/obstacle square.
                                }//If not already on the closed list 
                            }//If not off the map
                        }//for (a = parentXval-1; a &amp;lt;= parentXval+1; a++){
                    }//for (b = parentYval-1; b &amp;lt;= parentYval+1; b++){
                    
                }//if (numberOfOpenListItems != 0)
                    
                    //9.If open list is empty then there is no path.    
                else
                {
                    path = nonexistent; break;
                }  
                
                //If target is added to open list then path has been found.
                if (whichList[targetX][targetY] == onOpenList)
                {
                    path = found; break;
                }
                
            }
            while (1);//Do until path is found or deemed nonexistent
            
            //10.Save the path if it exists.
            if (path == found)
            {
                
                //a.Working backwards from the target to the starting location by checking
                //    each cell's parent, figure out the length of the path.
                pathX = targetX; pathY = targetY;
                do
                {
                    //Look up the parent of the current cell.    
                    tempx = parentX[pathX][pathY];        
                    pathY = parentY[pathX][pathY];
                    pathX = tempx;
                    
                    //Figure out the path length
                    pathLength[pathfinderID] = pathLength[pathfinderID] + 1;
                }
                while (pathX != startX || pathY != startY);
                
                //b.Resize the data bank to the right size in bytes
                //pathBank[pathfinderID] = (int*) realloc (pathBank[pathfinderID],
                //pathLength[pathfinderID]*8);
                //for (var i:int=0;i&amp;lt;pathBank.length;i++)
                pathBank[pathfinderID]=new Array ((pathLength[pathfinderID]&amp;lt;&amp;lt;3));
                //c. Now copy the path information over to the databank. Since we are
                //    working backwards from the target to the start location, we copy
                //    the information to the data bank in reverse order. The result is
                //    a properly ordered set of path data, from the first step to the
                //    last.
                pathX = targetX ; pathY = targetY;
                cellPosition = pathLength[pathfinderID]&amp;lt;&amp;lt;1;//start at the end    
                do
                {
                    cellPosition = cellPosition - 2;//work backwards 2 integers
                    pathBank[pathfinderID] [cellPosition] = pathX;
                    pathBank[pathfinderID] [cellPosition+1] = pathY;
                    
                    //d.Look up the parent of the current cell.    
                    tempx = parentX[pathX][pathY];        
                    pathY = parentY[pathX][pathY];
                    pathX = tempx;
                    
                    //e.If we have reached the starting square, exit the loop.    
                }
                while (pathX != startX || pathY != startY);    
                
                //11.Read the first path step into xPath/yPath arrays
                ReadPath(pathfinderID,startingX,startingY,1);
                
            }
            return path;
        }
        
        //13.If there is no path to the selected target, set the pathfinder's
        //    xPath and yPath equal to its current location and return that the
        //    path is nonexistent.
        //==========================================================
        //READ PATH DATA: These functions read the path data and convert
        //it to screen pixel coordinates.
        public function  ReadPath(pathfinderID:int,currentX:int,currentY:int,
                                  pixelsPerFrame:int):void
        {
            /*
            ;    Note on PixelsPerFrame: The need for this parameter probably isn't
            ;    that obvious, so a little explanation is in order. This
            ;    parameter is used to determine if the pathfinder has gotten close
            ;    enough to the center of a given path square to warrant looking up
            ;    the next step on the path.
            ;     
            ;    This is needed because the speed of certain spri*/
            var ID:int = pathfinderID; //redundant, but makes the following easier to read
            
            //If a path has been found for the pathfinder    ...
            if (pathStatus[ID] == found)
            {
            
            //If path finder is just starting a new path or has reached the 
            //center of the current path square (and the end of the path
            //hasn't been reached), look up the next path square.
            if (pathLocation[ID] &amp;lt; pathLength[ID])
            {
            //(x ^ (x &amp;gt;&amp;gt; 31)) - (x &amp;gt;&amp;gt; 31)
            //if just starting or if close enough to center of square
            if (pathLocation[ID] == 0 || 
            (((currentX - xPath[ID]) ^ ((currentX - xPath[ID]) &amp;gt;&amp;gt; 31)) - ((currentX - xPath[ID]) &amp;gt;&amp;gt; 31) &amp;lt; pixelsPerFrame 
            &amp;amp;&amp;amp; ((currentY - yPath[ID]) ^ ((currentY - yPath[ID]) &amp;gt;&amp;gt; 31)) - ((currentY - yPath[ID]) &amp;gt;&amp;gt; 31) &amp;lt; pixelsPerFrame))
            pathLocation[ID] = pathLocation[ID] + 1;
            }
            
            //Read the path data.        
            xPath[ID] = ReadPathX(ID,pathLocation[ID]);
            yPath[ID] = ReadPathY(ID,pathLocation[ID]);
            
            //If the center of the last path square on the path has been 
            //reached then reset.
            if (pathLocation[ID] == pathLength[ID]) 
            {
            if (((currentX - xPath[ID]) ^ ((currentX - xPath[ID]) &amp;gt;&amp;gt; 31)) - ((currentX - xPath[ID]) &amp;gt;&amp;gt; 31) &amp;lt; pixelsPerFrame 
            &amp;amp;&amp;amp; ((currentY - yPath[ID]) ^ ((currentY - yPath[ID]) &amp;gt;&amp;gt; 31)) - ((currentY - yPath[ID]) &amp;gt;&amp;gt; 31) &amp;lt; pixelsPerFrame) //if close enough to center of square
            pathStatus[ID] = notStarted; 
            }
            }
            
            //If there is no path for this pathfinder, simply stay in the current
            //location.
            else
            {    
            xPath[ID] = currentX;
            yPath[ID] = currentY;
            }
            }
            
            
            //The following two functions read the raw path data from the pathBank.
            //You can call these functions directly and skip the readPath function
            //above if you want. Make sure you know what your current pathLocation
            //is.
            
            //-----------------------------------------------------------------------------
            // Name: ReadPathX
            // Desc: Reads the x coordinate of the next path step
            //-----------------------------------------------------------------------------
            private var x:int;
            public function  ReadPathX(pathfinderID:int,pathLocation:int):int
            {
            
            if (pathLocation &amp;lt;= pathLength[pathfinderID])
            {
            
            //Read coordinate from bank
            x = pathBank[pathfinderID] [(pathLocation&amp;lt;&amp;lt;1)-2];
            
            //Adjust the coordinates so they align with the center
            //of the path square (optional). This assumes that you are using
            //sprites that are centered -- i.e., with the midHandle command.
            //Otherwise you will want to adjust this.
        //    x = (x&amp;lt;&amp;lt;MultFak) + halfSquare;
            
            }
            return x;
            }    
            
            
            //-----------------------------------------------------------------------------
            // Name: ReadPathY
            // Desc: Reads the y coordinate of the next path step
            //-----------------------------------------------------------------------------
            private var y:int;
            public function  ReadPathY(pathfinderID:int,pathLocation:int):int
            {
            
            if (pathLocation &amp;lt;= pathLength[pathfinderID])
            {
            
            //Read coordinate from bank
            y = pathBank[pathfinderID] [(pathLocation&amp;lt;&amp;lt;1)-1];
            
            //Adjust the coordinates so they align with the center
            //of the path square (optional). This assumes that you are using
            //sprites that are centered -- i.e., with the midHandle command.
            //Otherwise you will want
        //    y = (y&amp;lt;&amp;lt;MultFak) + halfSquare;
            
            }
            return y;
            }
            
            }
            
            
            
            
            
            
            
            }
&lt;/pre&gt;&lt;/pre&gt;</description><pubDate>Mon, 08 Mar 2010 19:13:21 -0800</pubDate></item></channel></rss>