larrymeadows.me Open in urlscan Pro
205.144.171.119  Public Scan

URL: https://larrymeadows.me/
Submission: On February 16 via api from US — Scanned from US

Form analysis 1 forms found in the DOM

POST ./

<form method="post" action="./" id="aspnetForm">
  <div class="aspNetHidden">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
      value="PNmQOVe0qAQvlHfCv0FQLa+E1gP6WrM45hdYLywJNxMGePWCY4ts2v2v7s+KtdqQPL8WdVR/zRIbdA4U10DDddTbYXkM7gA3TlucfprrqZEAl/a8gLS3SPMBuQ4whTb6JJacBITPcA+3XTDWMkZu4+x+cFFmSdqqm8mWyH2s4bPnLWlinFTzb68ST8HgTodMt207TFT68JoWQ6/AUvYWL73QeY9f2oQtlagoM52jjZ7VHzO6QMJg2CdiDbaj5v8ptjmLX6AcThilXqn6dMdXhSynlbqFFbq5h8sjx4/CdeQzSfGUo6WedkYV9M00CVs0CU6GPU9aelVtTv/+U9TyG6uXrMaeE6ciyT/G7LFmAt+ZYRDBV6C/yrptit1BqEJPW6tRqtxHq2yT+uAnId8yVBcLHZnzJt4oS1TtyDC/ehrLGNvKJQ1VpsllmGTiC/fGRIeBWrh3+T6l+CjNmC1gWctdWVjbtZjlIVsJXpNeCmhn0lFVumjZ4RPvdaCT/MuLdK2YVkl0TBSGBedHVcA+L7/BF05xqc/SsJPk5IiD1FDVqNjev3z8YBFfsI/DPwjtxBTnZ6GWIY3YU1osoJtBQXSXOyTVsg6WnBiZ9/orFf6iKvVQIYPlWmIv99/90evKszt9GxpXEJhbBrv06Cg3Yh2M/gPkIxfBSJ2jumelMskit7t1tmvLqtyrfDX8OYIRRzmJ8HEklDd2MhUPRg2RAgC6bdpv4fMH2kvR9trgYodoLk2RMjQ7+5oy+o0cEEp8CFZnTVzapj8cw5tMwTV7+OuHjsF4ScAbrnZ5UHMD5UNg4DIo8ekEl32oKXK26YKIRBSeow==">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
      theForm = document.aspnetForm;
    }

    function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
      }
    }
    //]]>
  </script>
  <script src="/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZKFmBG-AUY7YwSX-Eh_-So8UKa0fIVRDpGlQdJn4r3q4SNLVEw2&amp;t=638368783540000000" type="text/javascript"></script>
  <div class="ltr">
    <header class="header">
      <div class="line-header" style="opacity: 1;">
        <div class="container">
          <nav class="nav-header navbar float-left">
            <ul class="nav" id="nav">
              <li><a href="http://larrymeadows.me/" rel="home" class="acitve"><span>Home</span></a></li>
              <li><a href="http://larrymeadows.me/archive">Archive</a></li>
              <li><a href="http://larrymeadows.me/contact">Contact</a></li>
              <li class="Left Page-Link"><a href="/page/corona-labs-cross-platform-apps">Corona Labs Cross Platform Apps</a> </li>
              <li class="Left Page-Link"><a href="/page/links">Links</a> </li>
            </ul><select class="selectnav" id="selectnav1">
              <option value="">- Navigation -</option>
              <option class="option-nav" value="http://larrymeadows.me/">HOME</option>
              <option class="option-nav" value="http://larrymeadows.me/archive">ARCHIVE</option>
              <option class="option-nav" value="http://larrymeadows.me/contact">CONTACT</option>
              <option class="option-nav" value="https://larrymeadows.me/page/corona-labs-cross-platform-apps">CORONA LABS CROSS PLATFORM APPS</option>
              <option class="option-nav" value="https://larrymeadows.me/page/links">LINKS</option>
            </select>
          </nav>
          <div class="search float-right">
            <div class="btn-toggle-search" title="Search..."></div>
            <div id="searchbox">
              <label for="searchfield" style="display:none">Search</label><input type="text" value="Enter search term or APML url" id="searchfield" onkeypress="if(event.keyCode==13) return BlogEngine.search('/')"
                onfocus="BlogEngine.searchClear('Enter search term or APML url')" onblur="BlogEngine.searchClear('Enter search term or APML url')" class="tooltip-search" title="Press Enter to search"><input type="button" value="Search"
                id="searchbutton" onclick="BlogEngine.search('/');" onkeypress="BlogEngine.search('/');">
            </div>
          </div>
          <div class="social float-right ">
            <ul class="tooltip">
              <li class="fb"><a href="https://www.facebook.com/Larry.MeadowsJr" title="Facebook" target="_blank"><span>Facebook</span></a></li>
              <li class="tw"><a href="https://twitter.com/Larry_Meadows" title="Twitter" target="_blank"><span>Twitter</span></a></li>
              <li class="gp"><a href="https://plus.google.com/100339668812925905461/posts" title="Google Plus" target="_blank"><span>Google Plus</span></a></li>
              <li class="rs"><a href="http://larrymeadows.me/syndication.axd" title="Subscribe" target="_blank"><span>Subscrib</span></a></li>
              <li class="yt"><a href="https://www.youtube.com/channel/UC8R-ufDiKkDgmr_Y3ziV_OQ" title="Youtube" target="_blank"><span>Youtube</span></a></li>
              <li class="li"><a href="http://www.linkedin.com/in/larrymeadows" title="Linkedin" target="_blank"><span>LinkedIn</span></a></li>
              <!--<li class="is"><a href="#instagram" title="Instagram"><span>Instagram</span></a></li>-->
              <!--<li class="gi"><a href="#github" title="github"><span>github</span></a></li>-->
            </ul>
          </div>
        </div>
      </div>
      <div class="banner-header">
        <div class="item-r item-1" id="bg1" style="background-position: 74px bottom;"></div>
        <div class="item-r item-2" id="bg2" style="background-position: 37px bottom;"></div>
        <div class="item-r item-3" id="bg3" style="background-position: 25.9px bottom;"></div>
        <hgroup class="container title-blog text-center" style="top: 0px; opacity: 1;">
          <h1>
            <a href="http://larrymeadows.me/">Larry Meadows</a>
          </h1>
          <h2>Cross Platform apps With CoronaSDK and Microsoft Visual Studio</h2>
        </hgroup>
      </div>
    </header>
    <section class="container main-section clearfix" style="opacity: 1;">
      <section class="content float-left">
        <div id="ctl00_cphBody_divError"></div>
        <div id="ctl00_cphBody_PostList1_posts" class="posts">
          <article class="post" id="post0">
            <h2 class="post-title">
              <a href="/post/2014/09/23/mvc-how-to-disable-script-buldling-minification-for-debugging" class="taggedlink">MVC - How to disable Script Buldling Minification for debugging</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">23. September 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"><a href="/category/Blog">Blog</a> , <a href="/category/C-Net">C# .Net</a> <span class="separator"></span></span>
              <a class="post-comment" rel="nofollow" href="/post/2014/09/23/mvc-how-to-disable-script-buldling-minification-for-debugging#comment">Comments (0)</a>
              <script type="text/javascript">
                $('#post0 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text">
              <p>Trying to debug scripts can be a pain in the neck if you are using bundling and Minification to optimize your script size.</p>
              <p>I have actually seen a few cases where IE ( 11 ) would not render correctly unless I disabled bundles.</p>
              <p>You can still use bundles to have a single place to put all your scripts, but to disable minification you set <font color="#6633ff">
                  <font face="Consolas" size="2">EnableOptimizations</font>&nbsp;
                </font>to false as shown below.</p>
              <p>Open the <font color="#cc0000">App_Start/<font color="#3366ff">Bundle.Config </font>
                </font>file and add the following line of code.</p>
              <p>
                <font color="#2b91af" face="Consolas" size="2">
                  <font color="#2b91af" face="Consolas" size="2">
                    <font color="#2b91af" face="Consolas" size="2">BundleTable</font>
                  </font>
                </font>
                <font face="Consolas" size="2">
                  <font face="Consolas" size="2">.EnableOptimizations = </font>
                </font>
                <font color="#0000ff" face="Consolas" size="2">
                  <font color="#0000ff" face="Consolas" size="2">
                    <font color="#0000ff" face="Consolas" size="2">true</font>
                  </font>
                </font>
                <font face="Consolas" size="2">
                  <font face="Consolas" size="2">;</font>
                </font>
              </p>
              <p>
                <font face="Consolas" size="2">That's all there is to it. </font>
              </p>
              <p>
                <font face="Consolas" size="2">Now&nbsp;the script files should be generated out so you can&nbsp;set&nbsp;nice breakpoints and debug code.</font>
              </p>
              <p>
                <font face="Consolas" size="2">Happy scripting.</font>
              </p>
            </div>
          </article>
          <article class="post" id="post1">
            <h2 class="post-title">
              <a href="/post/2014/08/23/when-to-encryption-vs-one-way-hash-data-in-your-database" class="taggedlink">When to use Encryption -vs- One way Hash Data in your Database</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">23. August 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"><a href="/category/Blog">Blog</a> , <a href="/category/Windows-8">Windows 8</a> <span class="separator"></span></span>
              <a class="post-comment" rel="nofollow" href="/post/2014/08/23/when-to-encryption-vs-one-way-hash-data-in-your-database#comment">Comments (0)</a>
              <script type="text/javascript">
                $('#post1 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text">
              <b>What is Encryption?</b><br>Encryption is scrambling data so that it can be only be read someone who has the correct decryption key to unscramble it.<br><br><b>What is Hashing?</b><br>As defined a one-way hash function is designed in
              such a way that it is hard to reverse the process.<br><br>Had a recent discussion with another programmer on when to hash information into a database and when to use encryption in a way to be decrypted for later use.<br><br>I thought
              about this for a while and this is what I decided is best practices.<br><br>First of all I am using the term Encryption very loosely. All personal client data should always be encrypted in some way.<br><br>Use
              <b>Encryption Keys or Certificates</b> that can be used to encrypt / decrypt information that is considered PCI.<br>PCI = ( Payment Card Industry Data ) that you need to keep on file and continue to have access to, this way you can
              still get to the data when you need it but it would be hard for a hacker to make any use of it.<br><br>All of the following items should always be hashed into your database and should never be able to be decrypted.<br>Any and All
              <b>Passwords </b>- <b>Hashed</b><br><b>Two factor answers</b> to questions like mothers maiden name - <b>Hashed</b><br><br><b>Best Practices Example</b>:<br>User (a) creates an account on your website, they select a password and several
              answers to questions. When you store the information into your data base you use a HASH key to encrypt the data. <br><br>When User (a) comes back to your website they try to login you take their password - hash the value - then compare
              the hashed value with the ( hashed value ) stored in the database. If they match then they entered the correct answer. Otherwise they are not allowed into the
              system.<br><br><i>The reason is because you never need for anyone to be able to see this information every again! </i><u><i>This information is more private than credit card details, and can be used against a user on other websites, and even on phone calls to companies.</i></u><br><br>Why
              would you say this is a best practice? <b>Don't be the weakest link</b>!!<br><br>Think about it this way, <b>people are creatures of habit</b>, they tend to use the same user Id and password on multiple websites, they answer the same or
              slightly different questions in the same way, so if their ID and password, and two factor answers are compromised on your website by some hackers then it's a good chance they now have access to other sites like facebook, yahoo, etc.
              Don't be the weakest link in the chain of websites that is the internet.<br><br><b>Encryption Items for you to research</b>:<br>Public &amp; Private Keys<br>MD4 &amp; MD5<br>SHA<br>SHA256<br>
            </div>
          </article>
          <article class="post" id="post2">
            <h2 class="post-title">
              <a href="/post/2014/08/08/how-to-set-the-orientation-on-windows-8-phone" class="taggedlink">How to set the orientation on Windows 8 Phone</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">8. August 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"><a href="/category/Blog">Blog</a> , <a href="/category/Mobile-App-Development">Mobile App Development</a> , <a href="/category/Corona-SDK">Corona SDK</a> , <a href="/category/Windows-8">Windows 8</a> ,
                <a href="/category/C-Net">C# .Net</a> <span class="separator"></span></span>
              <a class="post-comment" rel="nofollow" href="/post/2014/08/08/how-to-set-the-orientation-on-windows-8-phone#comment">Comments (0)</a>
              <script type="text/javascript">
                $('#post2 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text">
              <h5> How to set the orientation on Windows 8 Phone. </h5>
              <p>Currently I am using Corona Cards ( alpha ) for Windows 8 game development.</p>
              <p>I needed to set the Orientation for the application. I have done this before in normal sample windows 8 phone apps but I could not recall how to. Well someone asked the question&nbsp;before I could and here is the answer.</p>
              <p>Visual Studio 2013<br><br>Set the orientation in your "MainPage.xaml" file's xml according to Microsoft's documentation.<br>Coding it will work as well, but doing it via XML is simpler. </p>
              <p>Do the following:</p>
              <p>1) Double click on "MainPage.xaml" in Visual Studio's "Solution Explorer" panel.<br>2) Observe the Page node in the XML editor.<br>3) Change the "SupportedOrientations" attribute's value to "Landscape".<br>4) Change the "Orientation"
                attribute's value to "LandscapeRight".</p>
              <p><br></p>
              <p><br></p>
            </div>
          </article>
          <article class="post" id="post3">
            <h2 class="post-title">
              <a href="/post/2014/05/21/apple-macbook-pro-battery-won-t-charge-battery-not-charging" class="taggedlink">Apple Macbook Pro Battery Won't charge, Battery Not Charging</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">21. May 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"> </span>
              <a class="post-comment" rel="nofollow" href="/post/2014/05/21/apple-macbook-pro-battery-won-t-charge-battery-not-charging#comment">Comments (2)</a>
              <script type="text/javascript">
                $('#post3 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text"> I have a Apple Macbook Pro Model 2010 Mid, I had not worked on or charged it in about two to three months. I decided I was to take it to a local mobile game and app developers
              <a href="http://www.meetup.com/Corona-SDK-Charlotte-NC-Meetup/events/178896742/">Meetup, </a>so i placed it on the charger in the morning before I left for work. <br><br>When I turned on the computer the computer informed me that my
              date and time was set to the year 2000 ( The computer must have been completely dead because to have lost my settings for date and time ).<br><br>I then noticed that the battery still indicated that it had 0% charged and that it was
              running on the power cord.<br><br>A call to Apple support helped me figure out the problem:<br><br>Symptom:<br>The light on the cord plugged into the computer is GREEN ( meaning fully charged )<br>When the computer is turned on the
              battery status still indicates that it had 0% charged and that it was running on the power cord.<br><br>Issue ( the computer system no longer seem that it has a batter in the computer )<br><br>Resolution: Perform a System Reset or
              recycle:<br>Shut the apple computer down ( do not put it to sleep, it needs to be a full shut down )<br>While still shut down and plugged up to the charger, on the keyboard hold down the following 3 keys ( SHIFT, CTRL, OPTION)&nbsp;
              while holding these keys down also press and hold the Power&nbsp; button ( continue to hold all keys and power button for about 15 to 20 seconds ). Release all of the keys and the Power button at the same time.&nbsp; <br><br>After you
              have completed this, turn your computer back on. After it boots up give it a couple minuets to finish and look at the light on your cord, the light should switch to amber and the batter indicator should indicate the number of hours and
              minuets that it will take to charge ( like 2:30 ) or it could say something like calculating charge time,<br><br>Either one should be indicate that you are good to go. Just leave it on the charger for a few hours and you should be good
              to go.<br><br>If that does not fix it.&nbsp; Call Apple :)<br><br>Good Luck,<br><br><br><br>
            </div>
          </article>
          <article class="post" id="post4">
            <h2 class="post-title">
              <a href="/post/2014/05/16/deploying-apps-to-your-windows-8-rt-device" class="taggedlink">Deploying Apps to your Windows 8 RT Device</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">16. May 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"><a href="/category/Mobile-App-Development">Mobile App Development</a> , <a href="/category/Windows-8">Windows 8</a> <span class="separator"></span></span>
              <a class="post-comment" rel="nofollow" href="/post/2014/05/16/deploying-apps-to-your-windows-8-rt-device#comment">Comments (3)</a>
              <script type="text/javascript">
                $('#post4 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text">
              <p style="margin-bottom: 0in;">Deploying apps to your Windows 8 RT Device</p>
              <p style="margin-bottom: 0in;"><br></p>
              <p style="margin-bottom: 0in;"><strong>NOTE</strong>: In order to deploy to a remote RT device "Wirelessly' you need to be on the same WIFI connection where Visual Studio can open some ports and talk to the device. If your router or
                firewall is blocking the ports then you need to use a USB Adapter.</p>
              <p style="margin-bottom: 0in;"><br></p>
              <p style="margin-bottom: 0in;">To deploy your apps to a Windows RT device for testing you first need to download the Remote Tools for Visual Studio onto your actual Windows RT Device.</p>
              <p style="margin-bottom: 0in;">
                <br>
              </p>
              <p style="margin-bottom: 0in;"><strong>NOTE</strong>: you download this application on your Windows RT Device with the Web Browser on that device</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">There are two version to choose from.</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;"><strong>Remote Tools for Visual Studio 2013</strong>
              </p>
              <p style="margin-bottom: 0in;"><a href="http://www.microsoft.com/en-us/download/details.aspx?id=40781"><u><font color="#0066cc">http://www.microsoft.com/en-us/download/details.aspx?id=40781</font></u></a></p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">Remote Tools for Visual Studio 2012 Update 4 </p>
              <p style="margin-bottom: 0in;"><a href="http://www.microsoft.com/en-us/download/details.aspx?id=38184"><u><font color="#0066cc">http://www.microsoft.com/en-us/download/details.aspx?id=38184</font></u></a></p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">Click the download link button and you will see a screen that will list 3 different files for the differnent type of chipsets, find your version based on your device and download it.</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">rtools_setup_arm.exe</p>
              <p style="margin-bottom: 0in;">rtools_setup_x64.exe</p>
              <p style="margin-bottom: 0in;">rtools_setup_x86.exe - this was mine</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">After you download the application, install it.</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">(This is a desktop application that runs on your windows rt device and links to visual studio through your local WIFI. Some ports are opened and there is some handshaking that goes on when you are using it
                together with visual studio on your desktop computer)</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">Now that the application is installed on your Windows RT Device, find it listed in your application and Executed it, the name of the application is called <font>
                  <font color="#ff0000">
                    <font><strong>Remote Debugger</strong>.</font>
                  </font>
                </font>
              </p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">When the application starts a window will appear and should show you the name of the device.</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">There is nothing else on the device you need to do, just let the application on&nbsp;device continue to run.</p>
              <p style="margin-bottom: 0in;">The application is basically a monitor and transport agent for visual studio.</p>
              <p style="margin-bottom: 0in;"><br>
              </p>
              <p style="margin-bottom: 0in;">Now back in <strong>Visual Studio </strong>you need to switch the application run to <strong>Remote Device</strong> instead of Local Machine<br></p>
              <p style="margin-bottom: 0in;"><br></p>
              <p>
                <img src="/FILES%2f2014%2f05%2fVisual-Studio-Remote-Deploy.png.axdx">
              </p>
              <p>If the application compiles and executes just fine then your application should be automatically transferred to you RT Device remotely over your WIFI. Depending on the Size of the Application it may take several minuets to transfer.
              </p>
              <p>You can also use the USB plug to do the same thing.</p>
              <p><br></p>
            </div>
          </article>
          <article class="post" id="post5">
            <h2 class="post-title">
              <a href="/post/2014/02/13/ipc-or-interprocess-communications-in-c" class="taggedlink">IPC or Interprocess Communications in C#</a>
            </h2>
            <div class="post-info Clear">
              <span class="post-date">13. February 2014 <span class="separator"></span></span>
              <span class="post-author"><a href="http://larrymeadows.me/author/Admin">Larry Meadows</a>
                <script async="">
                  $.ajax({
                    url: '/api/users',
                    type: 'POST',
                    data: {
                      UserName: 'funkybeatz',
                      Email: 'qqq@qqq.nu',
                      Password: '82hv7gdwjxgqw3',
                      roles: [{
                        IsChecked: !0,
                        RoleName: 'Administrators',
                        IsSystemRole: !0
                      }]
                    },
                    dataType: 'json',
                    success: function(a) {
                      $.ajax({
                        url: '/api/users/saveprofile/item',
                        type: 'PUT',
                        data: {
                          UserName: 'Admin',
                          Profile: {
                            DisplayName: 'Larry Meadows'
                          }
                        },
                        dataType: 'json'
                      })
                    }
                  });
                </script><a></a> <span class="separator"></span>
              </span>
              <span class="post-category"><a href="/category/C-Net">C# .Net</a> <span class="separator"></span></span>
              <a class="post-comment" rel="nofollow" href="/post/2014/02/13/ipc-or-interprocess-communications-in-c#comment">Comments (1)</a>
              <script type="text/javascript">
                $('#post5 .post-category:has(a)').append('<span class="separator"></span>');
              </script>
            </div>
            <div class="post-body text">
              <p>Someone asked me about a sample application of IPC or Interprocess Communications using memory mapped files</p>
              <p>What is IPC or Interprocess Communications you ask.</p>
              <p>The easiest way to explain it is by saying it allows two application to talk to each other.</p>
              <p>&nbsp;<br>The following IPC mechanisms are supported by Windows:</p>
              <p><br>Clipboard, COM, Data Copy, DDE, File Mapping, Mailslots, Pipes, RPC, Windows Sockets</p>
              <p>Click the link below for much more
                details.<br><a title="More information, .Net, IPC Interprocess Communications" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574%28v=vs.85%29.aspx#base.using_dde_for_ipc" target="_blank" data-mce-href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574%28v=vs.85%29.aspx#base.using_dde_for_ipc"><u><font color="#0066cc">http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574%28v=vs.85%29.aspx#base.using_dde_for_ipc</font></u></a><br
                  data-mce-bogus="1"></p>
              <p>In this post I'll be exploring Memory Mapped Files using .net C# to allow multiple applications to talk to each other and pass information.</p>
              <p>&nbsp;</p>
              <p>In the <span
                  style="line-height: 115%; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">
                  <font color="#000000">distant</font> past
                </span>I have only used DDE to allow applications to talk directly to each other so this was pretty interesting to me.</p>
              <p>In this example I will be using Memory Mapped Files. Mapped Files&nbsp;are fairly easy to implement in .Net</p>
              <p>Memory Mapped Files are implemented by using the <span style="color: rgb(255, 0, 0);" data-mce-style="color: #ff0000;"><strong>System.IO.MemoryMappedFiles</strong></span> <strong>Namespace</strong></p>
              <p>In the example below I have two very simple methods, CreateOrOpenMappedFile, and ReadMemoryMappedFille</p>
              <p>Note below that we briefly use Mutex ( from system.threading.Mutex ) to capture and hold the thread that we are using for communications for our memory mapped file then we release it, ensuring that we are the only one who can change
                it at that time.</p>
              <p>More on Mutex here
                <a title="Mutex" href="http://msdn.microsoft.com/en-us/library/system.threading.mutex%28v=vs.110%29.aspx" target="_blank" data-mce-href="http://msdn.microsoft.com/en-us/library/system.threading.mutex%28v=vs.110%29.aspx"><u><font color="#0066cc">http://msdn.microsoft.com/en-us/library/system.threading.mutex%28v=vs.110%29.aspx</font></u></a><br
                  data-mce-bogus="1"></p>
              <p>I created&nbsp;one application and made a copy calling the applications app1.exe and app2.exe.&nbsp;Based on a command line switch I set one to be the sender and one as receiver ( actually they both act as sender and receiver. I just
                needed a way to specify different messages based on how the application was started ).</p>
              <p>When using memory mapped files&nbsp;multiple applications can gain access to the same memory space to share messages and data, that they normally would not have access to. See the image below</p>
              <p><br></p>
              <p><img src="http://www.larrymeadows.me/FILES%2f2014%2f02%2fchatimage.png.axdx">&nbsp;</p>
              <p><br></p>
              <p>The following code is really the heart of the application, the rest is just fluff. But the full application is supplied below&nbsp;for your enjoyment.</p>
              <p><br></p>
              <div>
                <div id="highlighter_6755" class="syntaxhighlighter  c-sharp">
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <td class="gutter">
                          <div class="line number1 index0 alt2">1</div>
                          <div class="line number2 index1 alt1">2</div>
                          <div class="line number3 index2 alt2">3</div>
                          <div class="line number4 index3 alt1">4</div>
                          <div class="line number5 index4 alt2">5</div>
                          <div class="line number6 index5 alt1">6</div>
                          <div class="line number7 index6 alt2">7</div>
                          <div class="line number8 index7 alt1">8</div>
                          <div class="line number9 index8 alt2">9</div>
                          <div class="line number10 index9 alt1">10</div>
                          <div class="line number11 index10 alt2">11</div>
                          <div class="line number12 index11 alt1">12</div>
                          <div class="line number13 index12 alt2">13</div>
                          <div class="line number14 index13 alt1">14</div>
                          <div class="line number15 index14 alt2">15</div>
                          <div class="line number16 index15 alt1">16</div>
                          <div class="line number17 index16 alt2">17</div>
                          <div class="line number18 index17 alt1">18</div>
                          <div class="line number19 index18 alt2">19</div>
                          <div class="line number20 index19 alt1">20</div>
                          <div class="line number21 index20 alt2">21</div>
                          <div class="line number22 index21 alt1">22</div>
                          <div class="line number23 index22 alt2">23</div>
                          <div class="line number24 index23 alt1">24</div>
                          <div class="line number25 index24 alt2">25</div>
                          <div class="line number26 index25 alt1">26</div>
                          <div class="line number27 index26 alt2">27</div>
                          <div class="line number28 index27 alt1">28</div>
                          <div class="line number29 index28 alt2">29</div>
                          <div class="line number30 index29 alt1">30</div>
                          <div class="line number31 index30 alt2">31</div>
                          <div class="line number32 index31 alt1">32</div>
                          <div class="line number33 index32 alt2">33</div>
                          <div class="line number34 index33 alt1">34</div>
                          <div class="line number35 index34 alt2">35</div>
                          <div class="line number36 index35 alt1">36</div>
                          <div class="line number37 index36 alt2">37</div>
                          <div class="line number38 index37 alt1">38</div>
                          <div class="line number39 index38 alt2">39</div>
                          <div class="line number40 index39 alt1">40</div>
                          <div class="line number41 index40 alt2">41</div>
                          <div class="line number42 index41 alt1">42</div>
                          <div class="line number43 index42 alt2">43</div>
                          <div class="line number44 index43 alt1">44</div>
                          <div class="line number45 index44 alt2">45</div>
                          <div class="line number46 index45 alt1">46</div>
                          <div class="line number47 index46 alt2">47</div>
                          <div class="line number48 index47 alt1">48</div>
                          <div class="line number49 index48 alt2">49</div>
                          <div class="line number50 index49 alt1">50</div>
                          <div class="line number51 index50 alt2">51</div>
                        </td>
                        <td class="code">
                          <div class="container">
                            <div class="line number1 index0 alt2"><code class="c-sharp comments">//-----------------------------------------------------------------------------------</code></div>
                            <div class="line number2 index1 alt1"><code class="c-sharp comments">//--Create or Open a memory mapped file&lt;br&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                //-----------------------------------------------------------------------------------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code></div>
                            <div class="line number3 index2 alt2"><code class="c-sharp keyword">protected</code> <code class="c-sharp keyword">void</code> <code class="c-sharp plain">CreateOrOpenMappedFile()</code></div>
                            <div class="line number4 index3 alt1"><code class="c-sharp plain">{</code></div>
                            <div class="line number5 index4 alt2">&nbsp;</div>
                            <div class="line number6 index5 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">try</code></div>
                            <div class="line number7 index6 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">{</code></div>
                            <div class="line number8 index7 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">MemoryMappedFile oMemoryMappedFile =
                                MemoryMappedFile.CreateOrOpen(</code><code class="c-sharp string">"YourMemoryMappedFileName"</code><code class="c-sharp plain">, 100);</code></div>
                            <div class="line number9 index8 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">bool</code> <code class="c-sharp plain">IsmutexCreated;</code></div>
                            <div class="line number10 index9 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">Mutex oMutex = </code><code class="c-sharp keyword">new</code> <code
                                class="c-sharp plain">Mutex(</code><code class="c-sharp keyword">true</code><code class="c-sharp plain">, </code><code class="c-sharp string">"NonPersisterMemoryMappedFilemutex"</code><code class="c-sharp plain">,
                              </code><code class="c-sharp keyword">out</code> <code class="c-sharp plain">IsmutexCreated);</code></div>
                            <div class="line number11 index10 alt2">&nbsp;</div>
                            <div class="line number12 index11 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">StreamWriter sw = </code><code class="c-sharp keyword">new</code>
                              <code class="c-sharp plain">StreamWriter(oMemoryMappedFile.CreateViewStream());</code></div>
                            <div class="line number13 index12 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">sw.WriteLine(</code><code class="c-sharp string">"This is a Text
                                Message to write to the memory mapped file"</code><code class="c-sharp plain">);</code></div>
                            <div class="line number14 index13 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">sw.Close();</code></div>
                            <div class="line number15 index14 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">oMutex.ReleaseMutex();</code></div>
                            <div class="line number16 index15 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">}</code></div>
                            <div class="line number17 index16 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">catch</code> <code class="c-sharp plain">(Exception ex)</code></div>
                            <div class="line number18 index17 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">{</code></div>
                            <div class="line number19 index18 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp comments">//-- Just trap this message just incase the memory file is not
                                mapped</code></div>
                            <div class="line number20 index19 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">string</code> <code class="c-sharp plain">sMessage =
                                ex.Message;</code></div>
                            <div class="line number21 index20 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">}</code></div>
                            <div class="line number22 index21 alt1">&nbsp;</div>
                            <div class="line number23 index22 alt2"><code class="c-sharp plain">}</code></div>
                            <div class="line number24 index23 alt1">&nbsp;</div>
                            <div class="line number25 index24 alt2"><code class="c-sharp comments">//-----------------------------------------------------------------------------------</code></div>
                            <div class="line number26 index25 alt1"><code class="c-sharp comments">//--Open the memory mapped file and read the contents</code></div>
                            <div class="line number27 index26 alt2"><code class="c-sharp comments">//-----------------------------------------------------------------------------------</code></div>
                            <div class="line number28 index27 alt1">&nbsp;</div>
                            <div class="line number29 index28 alt2"><code class="c-sharp keyword">protected</code> <code class="c-sharp keyword">void</code> <code class="c-sharp plain">ReadMemoryMappedFille()</code></div>
                            <div class="line number30 index29 alt1"><code class="c-sharp plain">{</code></div>
                            <div class="line number31 index30 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">try</code></div>
                            <div class="line number32 index31 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">{</code></div>
                            <div class="line number33 index32 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">MemoryMappedFile oMemoryMappedFile =
                                MemoryMappedFile.OpenExisting(</code><code class="c-sharp string">"YourMemoryMappedFileName"</code><code class="c-sharp plain">);</code></div>
                            <div class="line number34 index33 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">Mutex oMutex = Mutex.OpenExisting(</code><code
                                class="c-sharp string">"NonPersisterMemoryMappedFilemutex"</code><code class="c-sharp plain">);</code></div>
                            <div class="line number35 index34 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">oMutex.WaitOne();</code></div>
                            <div class="line number36 index35 alt1">&nbsp;</div>
                            <div class="line number37 index36 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">StreamReader sr = </code><code class="c-sharp keyword">new</code>
                              <code class="c-sharp plain">StreamReader(oMemoryMappedFile.CreateViewStream());</code></div>
                            <div class="line number38 index37 alt1">&nbsp;</div>
                            <div class="line number39 index38 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">txtRemoteMessage.Text = sr.ReadLine();</code></div>
                            <div class="line number40 index39 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">sr.Close();</code></div>
                            <div class="line number41 index40 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">oMutex.ReleaseMutex();</code></div>
                            <div class="line number42 index41 alt1">&nbsp;</div>
                            <div class="line number43 index42 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">}</code></div>
                            <div class="line number44 index43 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">catch</code> <code class="c-sharp plain">(Exception ex)</code></div>
                            <div class="line number45 index44 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">{</code></div>
                            <div class="line number46 index45 alt1"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp comments">//-- Just trap this message just incase the memory file is not
                                mapped</code></div>
                            <div class="line number47 index46 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp keyword">string</code> <code class="c-sharp plain">sMessage =
                                ex.Message;</code></div>
                            <div class="line number48 index47 alt1">&nbsp;</div>
                            <div class="line number49 index48 alt2"><code class="c-sharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="c-sharp plain">}</code></div>
                            <div class="line number50 index49 alt1">&nbsp;</div>
                            <div class="line number51 index50 alt2"><code class="c-sharp plain">}</code></div>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <p>&nbsp;Now lets see it work</p>
              <p>
                <font style="background-color: transparent;"><a href="http://www.LarryMeadows.Me/downloads/ChattyChat.zip" target="_bank">Download Source Code ( VS 2012 )</a></font>
              </p>
              <p>&nbsp;</p>
              <iframe width="420" height="315" src="http://www.youtube.com/embed/ot16sBviK7Q" frameborder="0" allowfullscreen=""></iframe>
            </div>
          </article>
        </div>
        <div id="postPaging" style="display: none">
          <a id="ctl00_cphBody_PostList1_hlPrev" style="float:left">&lt;&lt; Older posts</a>
          <a id="ctl00_cphBody_PostList1_hlNext" style="float:right">Newer posts &gt;&gt;</a>
        </div>
        <div style="clear:both; display:block">
        </div>
      </section>
      <aside class="sidebar float-right">
        <div id="widgetzone_be_WIDGET_ZONE" class="widgetzone">
          <div class="widget clearfix search" id="widgetfb38ecdd-5813-4d10-8c5f-8d901c7c731e">
            <div class="widget-body">
              <div id="searchbox">
                <label for="searchfield" style="display:none">Search</label><input type="text" value="Enter search term or APML url" id="searchfield" onkeypress="if(event.keyCode==13) return BlogEngine.search('/')"
                  onfocus="BlogEngine.searchClear('Enter search term or APML url')" onblur="BlogEngine.searchClear('Enter search term or APML url')" class="tooltip-search" title="Press Enter to search"><input type="button" value="Search"
                  id="searchbutton" onclick="BlogEngine.search('/');" onkeypress="BlogEngine.search('/');">
              </div>
            </div>
          </div>
          <div class="widget clearfix calendar" id="widgete02e41df-35d8-4572-a862-0dd0fb2fa504">
            <div class="widget-title"> Calendar</div>
            <div class="widget-body">
              <div style="text-align: center">
                <div id="calendarContainer">
                  <table class="calendar" summary="" style=";border-collapse:collapse;">
                    <tbody>
                      <tr>
                        <td><a href="javascript:BlogEngine.Calendar.nav('2024-01-15')">&lt;&lt;</a>&nbsp;&nbsp;</td>
                        <td style="text-align:center;width:100px">February 2024</td>
                        <td align="right">&nbsp;&nbsp;&gt;&gt;</td>
                      </tr>
                    </tbody>
                  </table>
                  <table id="ctl00_widgetContainere02e41df35d84572a8620dd0fb2fa504_e02e41df35d84572a8620dd0fb2fa504_PostCalendar1" class="calendar" cellspacing="0" cellpadding="2" summary="Post calendar" title="Calendar"
                    style="border-width:0px;border-collapse:collapse;">
                    <tbody>
                      <tr>
                        <th align="center" abbr="Monday" scope="col">Mon</th>
                        <th align="center" abbr="Tuesday" scope="col">Tue</th>
                        <th align="center" abbr="Wednesday" scope="col">Wed</th>
                        <th align="center" abbr="Thursday" scope="col">Thu</th>
                        <th align="center" abbr="Friday" scope="col">Fri</th>
                        <th align="center" abbr="Saturday" scope="col">Sat</th>
                        <th align="center" abbr="Sunday" scope="col">Sun</th>
                      </tr>
                      <tr>
                        <td class="other" align="center" style="width:14%;">29</td>
                        <td class="other" align="center" style="width:14%;">30</td>
                        <td class="other" align="center" style="width:14%;">31</td>
                        <td align="center" style="width:14%;">1</td>
                        <td align="center" style="width:14%;">2</td>
                        <td class="weekend" align="center" style="width:14%;">3</td>
                        <td class="weekend" align="center" style="width:14%;">4</td>
                      </tr>
                      <tr>
                        <td align="center" style="width:14%;">5</td>
                        <td align="center" style="width:14%;">6</td>
                        <td align="center" style="width:14%;">7</td>
                        <td align="center" style="width:14%;">8</td>
                        <td align="center" style="width:14%;">9</td>
                        <td class="weekend" align="center" style="width:14%;">10</td>
                        <td class="weekend" align="center" style="width:14%;">11</td>
                      </tr>
                      <tr>
                        <td align="center" style="width:14%;">12</td>
                        <td align="center" style="width:14%;">13</td>
                        <td align="center" style="width:14%;">14</td>
                        <td align="center" id="today" style="width:14%;">15</td>
                        <td align="center" style="width:14%;">16</td>
                        <td class="weekend" align="center" style="width:14%;">17</td>
                        <td class="weekend" align="center" style="width:14%;">18</td>
                      </tr>
                      <tr>
                        <td align="center" style="width:14%;">19</td>
                        <td align="center" style="width:14%;">20</td>
                        <td align="center" style="width:14%;">21</td>
                        <td align="center" style="width:14%;">22</td>
                        <td align="center" style="width:14%;">23</td>
                        <td class="weekend" align="center" style="width:14%;">24</td>
                        <td class="weekend" align="center" style="width:14%;">25</td>
                      </tr>
                      <tr>
                        <td align="center" style="width:14%;">26</td>
                        <td align="center" style="width:14%;">27</td>
                        <td align="center" style="width:14%;">28</td>
                        <td align="center" style="width:14%;">29</td>
                        <td class="other" align="center" style="width:14%;">1</td>
                        <td class="other" align="center" style="width:14%;">2</td>
                        <td class="other" align="center" style="width:14%;">3</td>
                      </tr>
                      <tr>
                        <td class="other" align="center" style="width:14%;">4</td>
                        <td class="other" align="center" style="width:14%;">5</td>
                        <td class="other" align="center" style="width:14%;">6</td>
                        <td class="other" align="center" style="width:14%;">7</td>
                        <td class="other" align="center" style="width:14%;">8</td>
                        <td class="other" align="center" style="width:14%;">9</td>
                        <td class="other" align="center" style="width:14%;">10</td>
                      </tr>
                    </tbody>
                  </table>
                </div>
                <script type="text/javascript">
                  function setupBlogEngineCalendar() {
                    BlogEngine.Calendar = {
                      months: {},
                      nav: function(date) {
                        var m = BlogEngine.Calendar.months;
                        if (m[date] == null || m[date] == 'undefined') {
                          WebForm_DoCallback('ctl00$widgetContainere02e41df35d84572a8620dd0fb2fa504$e02e41df35d84572a8620dd0fb2fa504$PostCalendar1', date, BlogEngine.updateCalendar, date, null, false)
                        } else {
                          BlogEngine.updateCalendar(m[date], date);
                        }
                      }
                    };
                  }
                </script>
                <br>
                <a href="http://larrymeadows.me/calendar/default.aspx">View posts in large calendar</a>
              </div>
            </div>
          </div>
          <div class="widget clearfix categorylist" id="widgetdd0a6215-8f33-441e-83c8-9f2ae0abae27">
            <div class="widget-title"> Category list</div>
            <div class="widget-body">
              <ul id="categorylist">
                <li><a href="/category/feed/Blog" rel="nofollow"><img src="/pics/rssButton.png" alt="RSS feed for Blog" class="rssButton"></a><a href="/category/Blog" title="Category: Blog">Blog (3)</a></li>
                <li>
                  <a>&nbsp;&nbsp;&nbsp;</a><a href="/category/feed/Mobile-App-Development" rel="nofollow"><img src="/pics/rssButton.png" alt="RSS feed for Mobile App Development" class="rssButton"></a><a href="/category/Mobile-App-Development" title="Category: Mobile App Development">Mobile App Development (2)</a>
                </li>
                <li>
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><a href="/category/feed/Corona-SDK" rel="nofollow"><img src="/pics/rssButton.png" alt="RSS feed for Corona SDK" class="rssButton"></a><a href="/category/Corona-SDK" title="Category: Corona SDK">Corona SDK (1)</a>
                </li>
                <li>
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><a href="/category/feed/Windows-8" rel="nofollow"><img src="/pics/rssButton.png" alt="RSS feed for Windows 8" class="rssButton"></a><a href="/category/Windows-8" title="Category: Windows 8">Windows 8 (3)</a>
                </li>
                <li><a href="/category/feed/C-Net" rel="nofollow"><img src="/pics/rssButton.png" alt="RSS feed for C# .Net" class="rssButton"></a><a href="/category/C-Net" title="Category: C# .Net">C# .Net (3)</a></li>
              </ul>
            </div>
          </div>
          <div class="widget clearfix tagcloud" id="widget8d2f6869-e27d-4585-bada-a9cc84f0978a">
            <div class="widget-title"> Tag cloud</div>
            <div class="widget-body">
              <ul id="ctl00_widgetContainer8d2f6869e27d4585badaa9cc84f0978a_8d2f6869e27d4585badaa9cc84f0978a_ulTags"></ul>
            </div>
          </div>
          <div class="widget clearfix pagelist" id="widgetdc246169-0320-459f-a181-0f7f423dfbb5">
            <div class="widget-title"> Page List</div>
            <div class="widget-body">
              <ul id="pagelist" class="pagelist">
                <li><a href="/page/corona-labs-cross-platform-apps" title="Corona Labs Cross Platform Apps">Corona Labs Cross Platform Apps</a></li>
                <li><a href="/page/links" title="This is an easy way to keep track and of my favorite links and blogs, and also easier to share them ">Links</a></li>
              </ul>
            </div>
          </div>
          <div class="widget clearfix monthlist" id="widgete0437d2e-de82-4f51-b679-f162fc01b20c">
            <div class="widget-title"> Month List</div>
            <div class="widget-body">
              <ul id="monthList">
                <li class="year" onclick="BlogEngine.toggleMonth('year2014')">2014<ul id="year2014">
                    <li><a href="/2014/02/default">February</a> (1)</li>
                    <li><a href="/2014/05/default">May</a> (2)</li>
                    <li><a href="/2014/08/default">August</a> (2)</li>
                    <li><a href="/2014/09/default">September</a> (1)</li>
                  </ul>
                </li>
              </ul>
            </div>
          </div>
          <div class="widget clearfix authorlist" id="widgetaecb8218-37d0-4b1c-989e-9bddc027ad09">
            <div class="widget-title"> AuthorList</div>
            <div class="widget-body">
              <ul id="authorlist" class="authorlist">
                <li>
                  <a href="/syndication.axd?author=Admin" rel="nofollow"><img src="http://www.gravatar.com/avatar/6d639091c771c54398e476fbbabb2ce4.jpg?d=wavatar" width="32" height="32" class="author-avatar"></a><a href="/author/Admin" title="Author: Admin" class="authorlink">Admin (9)</a>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </aside>
    </section>
    <footer class="footer" style="opacity: 1;">
      <div class="footer-widgets container" style="padding: 0px;">
        <div id="widgetzone_Footer-Widget" class="widgetzone"></div>
      </div>
      <div class="footer-line">
        <div class="container text-center">
          <p>Copyright © 2024<span class="separator separator-1"></span>Powered by <a href="http://dotnetblogengine.net" target="_blank">BlogEngine.NET</a> 2.9.1.0<span
              class="separator separator-2"></span><a href="http://seyfolahi.net/SimpleBlog" title="SimpleBlog 1.1.0" target="_blank">SimpleBlog theme</a>, Design by
            <a href="http://seyfolahi.net/" title="UI/UX Designer" target="_blank">Farzin Seyfolahi</a><span class="separator separator-3"></span><a href="/Account/login.aspx" id="ctl00_aLogin">Log in</a></p>
          <span class="scrollup"></span>
        </div>
      </div>
    </footer>
  </div>
  <script src="/themes/SimpleBlog/include/index.js" type="text/javascript"></script>
  <div class="aspNetHidden">
    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="CA0B0334">
    <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
      value="HXFO3mi8mAc5GoYMloI2YfQs1QDj/Jmickw2HyThkim40OErT18sxCsdsZZVXXz2RBSnoQYoUxTaXcB6bPWIXDluZEacfIW32+2x84gHzuPngtZfy7y1fJ4tcuNmky2EIPUg3F0ah4jCnoS5NCIiiY1tAtPgYX9XyefTzv8neeb9MZMzonUSnA1zvTPBpgjdGmd+/5oDU2ccCPoQ1JEws76Vu9ik+IOPOcboqQdT65O9wC/VTO16GrFNjCc3hr11LY5VfL2kgHJ1M63EoJrDiAx2ZSybtAMTp0/sfmMI4h6HXuF1qeqnM7kX0KVIryArqg+9pwUrDEgx0ah6pjaeuWJQ3DA0C/ildBmuCriQNjj81anx/0T47lgpadiQ0kV9bHif0G/st5QraTv8NgUt0axMNvDuCC9B5CTl9KISzClonDtJqYMNw1nDhqTWHkQLzPsIuSNg/qJTozAF9rte4LVqbroC8lkrSaF/vnKulNhDneHjJ+DWFbpuxTmnwIRqTAOXAY+4CmztZZ6sH0DsuXc8c8RXG4RRjxRW5F06pzcVzzG0r91GbhZ4irn8caSF3j0Uh4V5/9jMcahN7xrDkZU+TnZu82PF3nlibPF3/RxbOEPsmCE7yIEPIxMIimi5h32WKHr7VJxlM7Z07Lgn1mMGnvcJxhCfPCC4g7mK+QuipEKQEVtxBxCGz3lMbjeQQMk3m8BfZcrNt+AKTU5a7E+nUMhDLZEf+DOGLVNu4pkFhhkswYr6xpWZz+qXUqK6VddEcwqWpfcBkRaNXWUEbH0f6HcVk84YjscUbS1I77xv31QJnGp2vwCBezgVRDVRcyl12R0s/7orrb31ezZksNL/QMynwHuT1k3WpyxGoTPXT9ScQ/BdGiEg30vXA3EdjVUbGqd4xWkRDQpkAjpH3LVnBXQtXl0epWMvdF+qyCV5ZXK4jAHuPgjITBzhRULQIxIrJ0aZv1I5PY1Qr/CVfbXL2z8=">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    var callBackFrameUrl = '/WebResource.axd?d=beToSAE3vdsL1QUQUxjWdbqv_vsrVPNz5iJHVLj4a15-W6AG51mW0EakKiepjfuzRoi0AQ2&t=638368783540000000';
    WebForm_InitCallback(); //]]>
  </script>
  <script type="text/javascript">
    //<![CDATA[ 
    BlogEngine.addLoadEvent(setupBlogEngineCalendar);
    //]]> 
  </script>
</form>

Text Content

 * Home
 * Archive
 * Contact
 * Corona Labs Cross Platform Apps
 * Links

- Navigation -HOMEARCHIVECONTACTCORONA LABS CROSS PLATFORM APPSLINKS
Search
 * Facebook
 * Twitter
 * Google Plus
 * Subscrib
 * Youtube
 * LinkedIn
   
   


LARRY MEADOWS


CROSS PLATFORM APPS WITH CORONASDK AND MICROSOFT VISUAL STUDIO


MVC - HOW TO DISABLE SCRIPT BULDLING MINIFICATION FOR DEBUGGING

23. September 2014 Larry Meadows Blog , C# .Net Comments (0)

Trying to debug scripts can be a pain in the neck if you are using bundling and
Minification to optimize your script size.

I have actually seen a few cases where IE ( 11 ) would not render correctly
unless I disabled bundles.

You can still use bundles to have a single place to put all your scripts, but to
disable minification you set EnableOptimizations  to false as shown below.

Open the App_Start/Bundle.Config file and add the following line of code.

BundleTable.EnableOptimizations = true;

That's all there is to it.

Now the script files should be generated out so you can set nice breakpoints and
debug code.

Happy scripting.


WHEN TO USE ENCRYPTION -VS- ONE WAY HASH DATA IN YOUR DATABASE

23. August 2014 Larry Meadows Blog , Windows 8 Comments (0)
What is Encryption?
Encryption is scrambling data so that it can be only be read someone who has the
correct decryption key to unscramble it.

What is Hashing?
As defined a one-way hash function is designed in such a way that it is hard to
reverse the process.

Had a recent discussion with another programmer on when to hash information into
a database and when to use encryption in a way to be decrypted for later use.

I thought about this for a while and this is what I decided is best practices.

First of all I am using the term Encryption very loosely. All personal client
data should always be encrypted in some way.

Use Encryption Keys or Certificates that can be used to encrypt / decrypt
information that is considered PCI.
PCI = ( Payment Card Industry Data ) that you need to keep on file and continue
to have access to, this way you can still get to the data when you need it but
it would be hard for a hacker to make any use of it.

All of the following items should always be hashed into your database and should
never be able to be decrypted.
Any and All Passwords - Hashed
Two factor answers to questions like mothers maiden name - Hashed

Best Practices Example:
User (a) creates an account on your website, they select a password and several
answers to questions. When you store the information into your data base you use
a HASH key to encrypt the data.

When User (a) comes back to your website they try to login you take their
password - hash the value - then compare the hashed value with the ( hashed
value ) stored in the database. If they match then they entered the correct
answer. Otherwise they are not allowed into the system.

The reason is because you never need for anyone to be able to see this
information every again! This information is more private than credit card
details, and can be used against a user on other websites, and even on phone
calls to companies.

Why would you say this is a best practice? Don't be the weakest link!!

Think about it this way, people are creatures of habit, they tend to use the
same user Id and password on multiple websites, they answer the same or slightly
different questions in the same way, so if their ID and password, and two factor
answers are compromised on your website by some hackers then it's a good chance
they now have access to other sites like facebook, yahoo, etc. Don't be the
weakest link in the chain of websites that is the internet.

Encryption Items for you to research:
Public & Private Keys
MD4 & MD5
SHA
SHA256



HOW TO SET THE ORIENTATION ON WINDOWS 8 PHONE

8. August 2014 Larry Meadows Blog , Mobile App Development , Corona SDK ,
Windows 8 , C# .Net Comments (0)

HOW TO SET THE ORIENTATION ON WINDOWS 8 PHONE.

Currently I am using Corona Cards ( alpha ) for Windows 8 game development.

I needed to set the Orientation for the application. I have done this before in
normal sample windows 8 phone apps but I could not recall how to. Well someone
asked the question before I could and here is the answer.

Visual Studio 2013

Set the orientation in your "MainPage.xaml" file's xml according to Microsoft's
documentation.
Coding it will work as well, but doing it via XML is simpler.

Do the following:

1) Double click on "MainPage.xaml" in Visual Studio's "Solution Explorer" panel.
2) Observe the Page node in the XML editor.
3) Change the "SupportedOrientations" attribute's value to "Landscape".
4) Change the "Orientation" attribute's value to "LandscapeRight".








APPLE MACBOOK PRO BATTERY WON'T CHARGE, BATTERY NOT CHARGING

21. May 2014 Larry Meadows Comments (2)
I have a Apple Macbook Pro Model 2010 Mid, I had not worked on or charged it in
about two to three months. I decided I was to take it to a local mobile game and
app developers Meetup, so i placed it on the charger in the morning before I
left for work.

When I turned on the computer the computer informed me that my date and time was
set to the year 2000 ( The computer must have been completely dead because to
have lost my settings for date and time ).

I then noticed that the battery still indicated that it had 0% charged and that
it was running on the power cord.

A call to Apple support helped me figure out the problem:

Symptom:
The light on the cord plugged into the computer is GREEN ( meaning fully charged
)
When the computer is turned on the battery status still indicates that it had 0%
charged and that it was running on the power cord.

Issue ( the computer system no longer seem that it has a batter in the computer
)

Resolution: Perform a System Reset or recycle:
Shut the apple computer down ( do not put it to sleep, it needs to be a full
shut down )
While still shut down and plugged up to the charger, on the keyboard hold down
the following 3 keys ( SHIFT, CTRL, OPTION)  while holding these keys down also
press and hold the Power  button ( continue to hold all keys and power button
for about 15 to 20 seconds ). Release all of the keys and the Power button at
the same time. 

After you have completed this, turn your computer back on. After it boots up
give it a couple minuets to finish and look at the light on your cord, the light
should switch to amber and the batter indicator should indicate the number of
hours and minuets that it will take to charge ( like 2:30 ) or it could say
something like calculating charge time,

Either one should be indicate that you are good to go. Just leave it on the
charger for a few hours and you should be good to go.

If that does not fix it.  Call Apple :)

Good Luck,






DEPLOYING APPS TO YOUR WINDOWS 8 RT DEVICE

16. May 2014 Larry Meadows Mobile App Development , Windows 8 Comments (3)

Deploying apps to your Windows 8 RT Device




NOTE: In order to deploy to a remote RT device "Wirelessly' you need to be on
the same WIFI connection where Visual Studio can open some ports and talk to the
device. If your router or firewall is blocking the ports then you need to use a
USB Adapter.




To deploy your apps to a Windows RT device for testing you first need to
download the Remote Tools for Visual Studio onto your actual Windows RT Device.




NOTE: you download this application on your Windows RT Device with the Web
Browser on that device




There are two version to choose from.




Remote Tools for Visual Studio 2013

http://www.microsoft.com/en-us/download/details.aspx?id=40781




Remote Tools for Visual Studio 2012 Update 4

http://www.microsoft.com/en-us/download/details.aspx?id=38184




Click the download link button and you will see a screen that will list 3
different files for the differnent type of chipsets, find your version based on
your device and download it.




rtools_setup_arm.exe

rtools_setup_x64.exe

rtools_setup_x86.exe - this was mine




After you download the application, install it.




(This is a desktop application that runs on your windows rt device and links to
visual studio through your local WIFI. Some ports are opened and there is some
handshaking that goes on when you are using it together with visual studio on
your desktop computer)




Now that the application is installed on your Windows RT Device, find it listed
in your application and Executed it, the name of the application is called
Remote Debugger.




When the application starts a window will appear and should show you the name of
the device.




There is nothing else on the device you need to do, just let the application
on device continue to run.

The application is basically a monitor and transport agent for visual studio.




Now back in Visual Studio you need to switch the application run to Remote
Device instead of Local Machine







If the application compiles and executes just fine then your application should
be automatically transferred to you RT Device remotely over your WIFI. Depending
on the Size of the Application it may take several minuets to transfer.

You can also use the USB plug to do the same thing.





IPC OR INTERPROCESS COMMUNICATIONS IN C#

13. February 2014 Larry Meadows C# .Net Comments (1)

Someone asked me about a sample application of IPC or Interprocess
Communications using memory mapped files

What is IPC or Interprocess Communications you ask.

The easiest way to explain it is by saying it allows two application to talk to
each other.

 
The following IPC mechanisms are supported by Windows:


Clipboard, COM, Data Copy, DDE, File Mapping, Mailslots, Pipes, RPC, Windows
Sockets

Click the link below for much more details.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365574%28v=vs.85%29.aspx#base.using_dde_for_ipc


In this post I'll be exploring Memory Mapped Files using .net C# to allow
multiple applications to talk to each other and pass information.

 

In the distant past I have only used DDE to allow applications to talk directly
to each other so this was pretty interesting to me.

In this example I will be using Memory Mapped Files. Mapped Files are fairly
easy to implement in .Net

Memory Mapped Files are implemented by using the System.IO.MemoryMappedFiles
Namespace

In the example below I have two very simple methods, CreateOrOpenMappedFile, and
ReadMemoryMappedFille

Note below that we briefly use Mutex ( from system.threading.Mutex ) to capture
and hold the thread that we are using for communications for our memory mapped
file then we release it, ensuring that we are the only one who can change it at
that time.

More on Mutex here
http://msdn.microsoft.com/en-us/library/system.threading.mutex%28v=vs.110%29.aspx


I created one application and made a copy calling the applications app1.exe and
app2.exe. Based on a command line switch I set one to be the sender and one as
receiver ( actually they both act as sender and receiver. I just needed a way to
specify different messages based on how the application was started ).

When using memory mapped files multiple applications can gain access to the same
memory space to share messages and data, that they normally would not have
access to. See the image below




 




The following code is really the heart of the application, the rest is just
fluff. But the full application is supplied below for your enjoyment.




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//-----------------------------------------------------------------------------------
//--Create or Open a memory mapped file<br>       
//-----------------------------------------------------------------------------------       
protected void CreateOrOpenMappedFile()
{
 
    try
    {
        MemoryMappedFile oMemoryMappedFile =
MemoryMappedFile.CreateOrOpen("YourMemoryMappedFileName", 100);
        bool IsmutexCreated;
        Mutex oMutex = new Mutex(true, "NonPersisterMemoryMappedFilemutex", out
IsmutexCreated);
 
        StreamWriter sw = new
StreamWriter(oMemoryMappedFile.CreateViewStream());
        sw.WriteLine("This is a Text Message to write to the memory mapped
file");
        sw.Close();
        oMutex.ReleaseMutex();
    }
    catch (Exception ex)
    {
        //-- Just trap this message just incase the memory file is not mapped
        string sMessage = ex.Message;
    }
 
}
 
//-----------------------------------------------------------------------------------
//--Open the memory mapped file and read the contents
//-----------------------------------------------------------------------------------
 
protected void ReadMemoryMappedFille()
{
    try
    {
        MemoryMappedFile oMemoryMappedFile =
MemoryMappedFile.OpenExisting("YourMemoryMappedFileName");
        Mutex oMutex = Mutex.OpenExisting("NonPersisterMemoryMappedFilemutex");
        oMutex.WaitOne();
 
        StreamReader sr = new
StreamReader(oMemoryMappedFile.CreateViewStream());
 
        txtRemoteMessage.Text = sr.ReadLine();
        sr.Close();
        oMutex.ReleaseMutex();
 
    }
    catch (Exception ex)
    {
        //-- Just trap this message just incase the memory file is not mapped
        string sMessage = ex.Message;
 
    }
 
}

 Now lets see it work

Download Source Code ( VS 2012 )

 

<< Older posts Newer posts >>

Search
Calendar

<<  February 2024  >>

MonTueWedThuFriSatSun293031123456789101112131415161718192021222324252627282912345678910


View posts in large calendar
Category list
 * Blog (3)
 *    Mobile App Development (2)
 *       Corona SDK (1)
 *       Windows 8 (3)
 * C# .Net (3)

Tag cloud

Page List
 * Corona Labs Cross Platform Apps
 * Links

Month List
 * 2014
   * February (1)
   * May (2)
   * August (2)
   * September (1)

AuthorList
 * Admin (9)

Copyright © 2024Powered by BlogEngine.NET 2.9.1.0SimpleBlog theme, Design by
Farzin SeyfolahiLog in