
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Andrea Soto's Blog</title>
	<atom:link href="http://www.yuibox.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuibox.com</link>
	<description>...just another Blog ^.^</description>
	<pubDate>Thu, 20 Nov 2008 19:47:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Supernatural - Flyleaf</title>
		<link>http://www.yuibox.com/2008/11/20/supernatural-flyleaf/</link>
		<comments>http://www.yuibox.com/2008/11/20/supernatural-flyleaf/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 19:41:32 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/?p=53</guid>
		<description><![CDATA[I dedicate this song to Larry&#8230; It is always hard to lose someone we love  
Song: SuperNatural Group: Flyleaf

Her headaches
Constant
Increasing in pain with each passing day
She can&#8217;t even manage to stand on her own
It&#8217;s gotten so bad
Now you think of saying
There&#8217;s no use in praying
Still she bows her head so she can say,
&#8220;Thank you [...]]]></description>
			<content:encoded><![CDATA[<p>I dedicate this song to Larry&#8230; It is always hard to lose someone we love <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><span id="more-53"></span>Song: <strong>SuperNatural </strong>Group: <strong>Flyleaf</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Sq09D7FqYT4&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/Sq09D7FqYT4&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><em>Her headaches<br />
Constant<br />
Increasing in pain with each passing day<br />
She can&#8217;t even manage to stand on her own<br />
It&#8217;s gotten so bad</p>
<p>Now you think of saying<br />
There&#8217;s no use in praying<br />
Still she bows her head so she can say,<br />
&#8220;Thank you for just one more day.&#8221;</p>
<p>Supernatural patience<br />
Graces her face<br />
And her voice never raises<br />
All because of a love<br />
Never let go of<br />
Never let go of</p>
<p>He has every reason to throw up his fists<br />
In the face of his God who let his mother die<br />
Through all the prayer and tears<br />
She still passed in pain anyway</p>
<p>Now you think of saying<br />
There&#8217;s no use in praying<br />
Still he bows head so he can say,<br />
&#8220;Thank you for ending her pain.&#8221;</p>
<p>Supernatural patience<br />
Graces his face<br />
And his voice never raises<br />
It&#8217;s all because of a love<br />
Never let go of<br />
Never let go of</p>
<p>He is teaching me<br />
What love really means</p>
<p>Supernatural patience<br />
Graces his face<br />
And his voice never raises<br />
It&#8217;s all because of a love<br />
Never let go of</p>
<p>Yes it&#8217;s supernatural patience<br />
Graces his face<br />
And his voice never raises<br />
All because of a love<br />
Never let go of<br />
Never let go of</p>
<p>He is teaching me<br />
What love truely means</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/11/20/supernatural-flyleaf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ideas!</title>
		<link>http://www.yuibox.com/2008/10/10/ideas/</link>
		<comments>http://www.yuibox.com/2008/10/10/ideas/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 20:58:16 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/?p=51</guid>
		<description><![CDATA[I havent post in a while because&#8230;&#8230;&#8230;&#8230;.I HAVE NO IDEA WHAT TO POST.  My little tiny bit of code pieses, no one likes it :(.
So I just need sugestions of what to do because I ran out  
post more code or screencast about&#8230;.. or guides about&#8230;. or personal pictures or &#8230;I dont know&#8230;HELP!!!!!!!
]]></description>
			<content:encoded><![CDATA[<p>I havent post in a while because&#8230;&#8230;&#8230;&#8230;.I HAVE NO IDEA WHAT TO POST.  My little tiny bit of code pieses, no one likes it :(.</p>
<p>So I just need sugestions of what to do because I ran out <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>post more code or screencast about&#8230;.. or guides about&#8230;. or personal pictures or &#8230;I dont know&#8230;HELP!!!!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/10/10/ideas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ODBC Link Server in MS SQL</title>
		<link>http://www.yuibox.com/2008/07/17/odbc-link-server-in-ms-sql/</link>
		<comments>http://www.yuibox.com/2008/07/17/odbc-link-server-in-ms-sql/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 05:34:06 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/?p=39</guid>
		<description><![CDATA[
Here is how you link you ODBC server. Just open SQL Management Studio-&#62; New Query and type this:
EXEC sp_addlinkedserver
@server = &#8216;MyServer&#8217;, &#8212; the name of your linkserver
@srvproduct = &#8221;,
@provider = &#8216;MSDASQL&#8217;, &#8212; This is the default for ODBC server, for more info please reffer to MS Site
@datasrc = &#8216;lotus&#8217; &#8211;DSN name
GO

This code will just add [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="yuibox" src="http://www.yuibox.com/yuibox/img/logo.png" alt="yuibox" width="100" height="82" /></p>
<p>Here is how you link you ODBC server. Just open SQL Management Studio-&gt; New Query and type this:</p>
<p>EXEC sp_addlinkedserver</p>
<p>@server = &#8216;MyServer&#8217;, &#8212; the name of your linkserver</p>
<p>@srvproduct = &#8221;,</p>
<p>@provider = &#8216;MSDASQL&#8217;, &#8212; This is the default for ODBC server, for more info please reffer to MS Site</p>
<p>@datasrc = &#8216;lotus&#8217; &#8211;DSN name</p>
<p>GO<br />
<span id="more-39"></span><br />
This code will just add the server to your Link Servers list.In order to ensure it executed succesfully you can try this:</p>
<p>EXEC sp_tables_ex &#8216;MyServer&#8217;<br />
go</p>
<p>EXEC sp_tables_ex @table_server = &#8216;MyServer&#8217;<br />
go</p>
<p>SELECT * FROM OPENQUERY(MyServer, &#8216;SELECT * FROM TableName&#8217;)<br />
go</p>
<p>If it has user and password use this:</p>
<p>EXEC sp_addlinkedsrvlogin<br />
@rmtsrvname = &#8216;MyServer&#8217;,<br />
@useself = false,<br />
@locallogin = NULL,<br />
@rmtuser = &#8216;yuibox&#8217;,<br />
@rmtpassword = rawr<br />
GO</p>
<p>Hope it helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/07/17/odbc-link-server-in-ms-sql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8230; everything happens for a reason.</title>
		<link>http://www.yuibox.com/2008/04/22/everything-happens-for-a-reason/</link>
		<comments>http://www.yuibox.com/2008/04/22/everything-happens-for-a-reason/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 23:50:09 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/?p=32</guid>
		<description><![CDATA[Hello!,
Sorry I was not able to post much this month. Many important things happened this month and it took me out of surprise.
Like Kevin from Diggnation.com says&#8230; &#8220;MOVING ON!&#8230;&#8221;
It almost the end of the month, hence, I was thinking new ideas for this little blog for the upcoming month. Which are the following:

screencast
forum
flash game tutorials
more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="float: right; border: 0;" src="http://www.yuibox.com/yuibox/img/logo.png" alt="yuibox" width="100" height="82" />Hello!,</p>
<p>Sorry I was not able to post much this month. Many important things happened this month and it took me out of surprise.</p>
<p>Like Kevin from Diggnation.com says&#8230; &#8220;MOVING ON!&#8230;&#8221;</p>
<p>It almost the end of the month, hence, I was thinking new ideas for this little blog for the upcoming month. Which are the following:</p>
<p><span id="more-32"></span></p>
<p>screencast</p>
<p>forum</p>
<p>flash game tutorials</p>
<p>more tutorials?..etc..</p>
<p>I cant think of something else :&#8217;(</p>
<p>Any ideas are totally welcome! <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also!, I will be attending edmonton twitter event! which is this May 10th at the <a class="external" title="http://www.threebananas.ca/" rel="external nofollow" href="http://www.threebananas.ca/" target="blank">Three Bananas Cafe</a> in Churchill Square downtown at noon. Hope so see lots of new faces there <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> For more info go <a title="edmonton tweetup" href="http://edmontontweetup.wik.is/" target="_blank">here!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/04/22/everything-happens-for-a-reason/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Java - Querying an LDAP Directory</title>
		<link>http://www.yuibox.com/2008/04/17/java-querying-an-ldap-directory/</link>
		<comments>http://www.yuibox.com/2008/04/17/java-querying-an-ldap-directory/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 07:28:55 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/?p=31</guid>
		<description><![CDATA[(All credit to my sensei, Eric Enright)
Yesterday I spent a lot of time figuring out how to go about getting a user&#8217;s group membership information out of Active Directory, Java style. Since Active Directory is essentially a glorified LDAP server, you can connect to it through JNDI, treating it like any other database: connect to it, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="float: right; border: 0;" src="http://www.yuibox.com/yuibox/img/logo.png" alt="yuibox" width="100" height="82" />(All credit to my sensei, Eric Enright)</p>
<p>Yesterday I spent a lot of time figuring out how to go about getting a user&#8217;s group membership information out of Active Directory, Java style. Since Active Directory is essentially a glorified LDAP server, you can connect to it through JNDI, treating it like any other database: connect to it, query it, and process your results. The below code will run over all user accounts, printing out their full LDAP DN, their email address, and their logon name.</p>
<p><span id="more-31"></span></p>
<p>[source:java]</p>
<p>import java.util.Hashtable;<br />
import javax.naming.*;<br />
import javax.naming.directory.*;</p>
<p>public class Main {</p>
<p>    // Connection information.  If connecting to Active Directory, the user<br />
    // name should be of the form DOMAIN\\user.<br />
    private static String SERVER   = &#8220;ldap://dc-1:389&#8243;;<br />
    private static String AUTHTYPE = &#8220;simple&#8221;;<br />
    private static String USER     = &#8220;myuser&#8221;;<br />
    private static String PASSWORD = &#8220;mypassword&#8221;;<br />
    <br />
    // Search filter to use.  This filter restricts us to only look at entries<br />
    // which are human users.<br />
    private static String FILTER = &#8220;(&amp;(objectCategory=person)(objectClass=user))&#8221;;<br />
    <br />
    // The base directory.<br />
    private static String BASE = &#8220;DC=larlyn,DC=com&#8221;;</p>
<p>    public static void main(String[] args) {<br />
        // Create and populate our connection environment.<br />
        Hashtable env = new Hashtable();<br />
        env.put(Context.INITIAL_CONTEXT_FACTORY, &#8220;com.sun.jndi.ldap.LdapCtxFactory&#8221;);<br />
        env.put(Context.PROVIDER_URL, SERVER);<br />
        env.put(Context.SECURITY_AUTHENTICATION, AUTHTYPE);<br />
        env.put(Context.SECURITY_PRINCIPAL, USER);<br />
        env.put(Context.SECURITY_CREDENTIALS, PASSWORD);</p>
<p>        try {<br />
            // Bind to the LDAP server.<br />
            DirContext ctx = new InitialDirContext(env);</p>
<p>            System.out.println(&#8221;Login successful&#8221;);<br />
            <br />
            // Perform the search<br />
            SearchControls constraints = new SearchControls();<br />
            constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);<br />
            NamingEnumeration results = ctx.search(BASE, FILTER, constraints);<br />
            <br />
            while (results != null &amp;&amp; results.hasMoreElements()) {<br />
                SearchResult result = (SearchResult)results.next();<br />
                String dn = result.getName() + &#8216;,&#8217; + BASE;<br />
                String[] searchattrs = {&#8221;mail&#8221;, &#8220;sAMAccountName&#8221;};<br />
                <br />
                Attributes attrs = ctx.getAttributes(dn, searchattrs);</p>
<p>                // Print out information in the form of:<br />
                // DN: [attr...]<br />
                if (attrs != null) {<br />
                    System.out.print(dn + &#8220;: &#8220;);</p>
<p>                    for (int i = 0; i &lt; searchattrs.length; ++i) {<br />
                        Attribute attr = attrs.get(searchattrs[i]);<br />
                        <br />
                        if (attr != null) {<br />
                            for (NamingEnumeration e = attr.getAll(); e.hasMore();)<br />
                                System.out.print((String)e.nextElement() + &#8221; &#8220;);<br />
                        }<br />
                    }<br />
                    <br />
                    System.out.println();<br />
                }<br />
            }</p>
<p>            ctx.close();<br />
        } catch (AuthenticationException e) {<br />
            System.out.println(&#8221;Login failed: &#8221; + e.getMessage());<br />
        } catch (Exception e) {<br />
            e.printStackTrace();<br />
        }<br />
    }<br />
    <br />
}[/source]</p>
<p>Yesterday I spent a lot of time figuring out how to go about getting a user&#8217;s group membership information out of Active Directory, Java style. Since Active Directory is essentially a glorified LDAP server, you can connect to it through JNDI, treating it like any other database: connect to it, query it, and process your results. The below code will run over all user accounts, printing out their full LDAP DN, their email address, and their logon name.</p>
<p>[source:java]</p>
<p>eenright@ws2:~/src (41)&gt; java Main<br />
Login successful<br />
CN=Eric Enright,OU=Administrative Staff,DC=larlyn,DC=com: xxxx@larlyn.com eenright<br />
CN=Some Girl,OU=Windsor,OU=All Offices,DC=larlyn,DC=com: xxxx@larlyn.com sgirl<br />
CN=Some Guy,OU=Edmonton,OU=All Offices,DC=larlyn,DC=com: xxxx@larlyn.com sguy [/source]</p>
<p>For group membership, one would want to include &#8220;memberOf&#8221; in searchattrs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/04/17/java-querying-an-ldap-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Comunication Between Bluetooths through COMs in C# Part I</title>
		<link>http://www.yuibox.com/2008/04/01/comunication-between-bluetooths-through-coms-in-c-part-i/</link>
		<comments>http://www.yuibox.com/2008/04/01/comunication-between-bluetooths-through-coms-in-c-part-i/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 15:50:17 +0000</pubDate>
		<dc:creator>Yui</dc:creator>
		
		<category><![CDATA[yuibox]]></category>

		<guid isPermaLink="false">http://www.yuibox.com/2008/04/01/comunication-between-bluetooths-through-coms-in-c-part-i/</guid>
		<description><![CDATA[I was trying to send information, strings, files and the most important, custom packets between 2 bluetooth. One listening and the other one sending(Master &#60;-&#62; Slave). In order to test this in an easy way, both bluetooh are connected to a Serial Port, in this case, COM1 and COM2. In order to test this in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.yuibox.com/yuibox/img/logo.png" alt="yuibox" align="right" border="0" height="82" width="100" />I was trying to send information, strings, files and the most important, custom packets between 2 bluetooth. One listening and the other one sending(Master &lt;-&gt; Slave). In order to test this in an <strong>easy </strong>way, both bluetooh are connected to a Serial Port, in this case, COM1 and COM2. In order to test this in 1 single computer and avoid the hassle, I Connected a <a href="http://en.wikipedia.org/wiki/Null_modem" title="RS 232 or Null Modem Adapter" target="_blank">Null Modem Adapter or RS-232 Serial Cable</a>. I wired one COM port into another, so both will be connected together, transmitting and receiving in the same line cross linked (TX, similar to RX).</p>
<p>This tutorial will show the first step to start a connection and to get the general idea of how this puppy works <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In Part I of this tutorial I will explain how to send a simple string and receive it <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> easy ne? ^.^ we all love baby steps <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Requirements :  - Null Modem Adapter</p>
<p>- VS.NET 2005 (or any other C# compiler)</p>
<p>- Basic Knowledge of C#</p>
<p>- and lots of time and patient <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-30"></span> First of all, Here is how my serial ports currently work:</p>
<p><strong>COM1 </strong>-&gt;  Is my Master,in order words, this COM will <strong>send </strong>information to the listener.</p>
<p><strong>COM2</strong>-&gt; Is my Slave. This COM will <strong>receive </strong>information form the sender.</p>
<p>Create 1 Window App project and a Console Project: 1.- C# Project COM! and 2.- C# Project COM2<br />
<strong>1.- C# Project COM1: Master</strong></p>
<p>Opens Serial Port COM1, sends string and closes port</p>
<p>[code lang="c++"]</p>
<p>using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.IO;<br />
using System.IO.Ports;</p>
<p>public partial class Form1 : Form<br />
{</p>
<p>SerialPort m_port; //class member, so it can be access by any other class function ^.^</p>
<p>public Form1()<br />
{<br />
InitializeComponent();</p>
<p>//SerialPort(string portname, int baudrate, Parity parity, int dataBits, StopBits stopbits)</p>
<p>m_port = new SerialPort(&#8221;COM1&#8243;, 9600, Parity.None, 8, StopBits.One);<br />
m_port.Open();//Opens the port <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>}</p>
<p>private void btnPrint_Click(object sender, EventArgs e)<br />
{<br />
m_port.Write(&#8221;Hello COM2 from COM1 !&#8221;); // Writes to port</p>
<p>}</p>
<p>private void Form1_Closed(object sender, EventArgs e)<br />
{<br />
m_port.Close();//and closes port after its done <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>}<br />
}</p>
<p>[/code]</p>
<p><strong>2.- C# Project COM2: Slave</strong></p>
<p>Opens COM2 and reads the information that is in the buffer, in other words, receive whatever COM1 is sending <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[code lang="c++"]</p>
<p>class SerialPortProgram<br />
{<br />
// Create the serial port with basic settings<br />
private SerialPort port = new SerialPort(&#8221;COM2&#8243;,<br />
9600, Parity.None, 8, StopBits.One);</p>
<p>[STAThread]</p>
<p>static void Main(string[] args)<br />
{<br />
// Instatiate this class<br />
new SerialPortProgram();<br />
}</p>
<p>private SerialPortProgram()<br />
{<br />
Console.WriteLine(&#8221;Incoming Data:&#8221;);<br />
port.DataReceived += new  SerialDataReceivedEventHandler(port_DataReceived);//When received data will jump tp the port_DataReceived function                        port.Open();//opens the port <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Application.Run();<br />
}<br />
private void port_DataReceived(object sender, SerialDataReceivedEventArgs e)<br />
{<br />
Console.WriteLine(port.ReadExisting());//Prints in console the information that is in the buffer, in other words, the information that he is receiving</p>
<p>}<br />
}</p>
<p>[/code]</p>
<p>Done!</p>
<p>Run the COM2 Project then COM1 and send the information along. <img src='http://www.yuibox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Simple eh? ^.^</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yuibox.com/2008/04/01/comunication-between-bluetooths-through-coms-in-c-part-i/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
