tag:blogger.com,1999:blog-88324134881625911582024-03-05T17:41:13.040+03:00References notebookReferences pool - Milestones - NotebookUnknownnoreply@blogger.comBlogger298125tag:blogger.com,1999:blog-8832413488162591158.post-3571937766133693142016-08-24T01:18:00.000+03:002016-08-24T01:18:02.808+03:00Update your fork from the original on Github<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"># Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
git checkout master
# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:
git rebase upstream/master</code></pre>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-9104184812497165592016-05-20T01:54:00.002+03:002016-05-20T01:54:56.264+03:00Details over the language for payment gatewayFrom <a href="https://answers.yahoo.com/question/index?qid=20071026124052AATbZpO">https://answers.yahoo.com/question/index?qid=20071026124052AATbZpO</a><br />
<br />
<span style="background-color: white; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 16px;"> </span><span class="ya-q-full-text" id="yui_3_17_2_3_1463697789405_1818" itemprop="text" style="background-color: white; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 16px;">This isn't a project you would write with PHP. You would need to use a higher level language such as C or C++. Something compiled that will be much faster and more robust then PHP. You can power your web based front end with PHP (i.e. user control panel) but the backend stuff, including payment processing, will need to be in the higher level language. You'll also need an enterprise level database as open source databases could never handle a task like this. Basically you're looking at using an Oracle database which is expensive but also designed for this sort of thing.<br /><br />There are no tutorials for this because this is a complex job. It's about as complex as a project can get. That's why you can't find any documentation on it.<br /><br />Your first major issue will be PCI DSS compliance. This is the security practices dictated by the major credit card companies (Visa, MasterCard, Amex, Discover Card, JCB). It dictates how you will secure your data in terms of hardware, software, and practice. It is expensive to do and maintain. You will need to hire a company to certify your compliance on a regularly scheduled basis. Failing your certification can mean you get shut down.<br /><br />Your second major issue will be getting certified by the processing networks. To be a successful payment gateway you must be certified on every processing platform and there are at least 16 of them that I can think of off of the top of my head. Being certified takes about two months for each. You can do them simultaneously but you would be looking at at least a year to be certified on all of them. And each one has a different API so you will need to code your payment gateway to work with all of them.<br /><br />Your third major issue will be the data you store. Not only do you have the PCI DSS issues to deal with, but you will need to capture and store every transaction that runs through your system for years. That kind of data will require tons of storage space (that will also need to be secured).<br /><br />Your fourth major issue will be processing volume. A gateway must be able to perform transactions in a second or less. This means your hardware solutions must be able to scale for heavy traffic especially over the holiday season. It will need to be able to handle hundreds of transactions per second (thousands if you become successful). That is a big reason why you'll need to use a higher level language over PHP.<br /><br />Your fifth major issue is that you will need to create a powerful yet easy to use API for web developers to use to connect to your payment gateway. They need to be able to do everything a credit card terminal can do through code. Documenting that should be fun! ;)<br /><br />Minor issues include:<br /><br />- Making sure you are ECI compliant (Electronic Commerce Indicator is required for all Internet transactions)<br /><br />- Securing all data transfer (SSL)<br /><br />- Offering a user control panel<br /><br />If you want to be successful you will also need to have the following in place:<br /><br />- Anti-fraud tools<br /><br />- Have a reseller program in place<br /><br />My estimations would say it would take 2 - 3 years to build your own payment gateway and get it up and running. That includes being PCI DSS certified, certified on every major processing platform, and to create your API. Costs would be around $250,000 as the developers you would need to write that kind of code will not be cheap plus you will have large infrastructure costs (hardware and software) just to run everything.<br /><br />Now you can see why nobody new enters this market.</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-56516974310042003582016-05-18T15:07:00.001+03:002016-05-18T15:07:54.206+03:00ASP.NET Identity 2.1 Roles Based Authorizationhttp://bitoftech.net/2015/03/11/asp-net-identity-2-1-roles-based-authorization-authentication-asp-net-web-api/Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-81052688273987766732015-09-28T19:18:00.002+03:002015-09-28T19:18:08.803+03:00"Pending Changes” and “Source Control Explorer” missing from Team Explorer in Visual Studio 2013<div style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
To fix the issue simply run the below command in an elevated command prompt as detailed <a href="http://blogs.msdn.com/b/dstfs/archive/2013/11/21/quot-pending-changes-and-source-control-explorer-missing-from-team-explorer-in-visual-studio-2013.aspx?CommentPosted=true#commentmessage" rel="nofollow" style="border: 0px; color: #0c65a5; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;">here</a>.</div>
<pre style="background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" /setup
</code></pre>
<div style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
My understanding is this command forces the recreation (what Microsoft refers to as "merging") of current VS settings into what is apparently a corrupt settings cache. On the surface, this is similar to deleting the directory path <em style="border: 0px; margin: 0px; padding: 0px;">C:\Users\username\AppData\Local\Microsoft\VisualStudio\version</em> and allowing visual studio to recreate it at launch.</div>
<div style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
Recently I found this sometimes occurs when I launch several solutions at once (i.e. I have 1 or more Visual Studio instances loading a solution at the same time). I also have ReSharper, SQL Prompt, VSCommands and TFS Power Tools installed which I'm sure contribute to some degree.</div>
<div style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<strong style="border: 0px; margin: 0px; padding: 0px;">UPDATE:</strong></div>
<div style="background-color: white; border: 0px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
This fix should work for <strong style="border: 0px; margin: 0px; padding: 0px;"><em style="border: 0px; margin: 0px; padding: 0px;">all versions</em></strong> of Visual Studio, however you will need to execute the command in the directory appropriate to your version. For example with Visual Studio 2015 the path would be:</div>
<pre style="background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /setup</code></pre>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-23265476593280079992015-02-20T17:50:00.004+03:002015-02-20T17:50:43.220+03:00.NET serialization performance<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.hanselman.com/blog/ProperBenchmarkingToDiagnoseAndSolveANETSerializationBottleneck.aspx" target="_blank">http://www.hanselman.com/blog/ProperBenchmarkingToDiagnoseAndSolveANETSerializationBottleneck.aspx</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSzOlaURv3gWe_YeersAqHok07eThAWtChZjyj4vy68pqIekR4mMff6XyLW2IPwuq-hsQwKFjN5nHQWvLcHtInT0DmtIbGbnc6S3vhd0KTBxZIL1AAOdZcZC1TK8Z_9USG32fppM0VgGI/s1600/image11_59c45719-4238-4579-9ee0-8ba0fc05f46f.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSzOlaURv3gWe_YeersAqHok07eThAWtChZjyj4vy68pqIekR4mMff6XyLW2IPwuq-hsQwKFjN5nHQWvLcHtInT0DmtIbGbnc6S3vhd0KTBxZIL1AAOdZcZC1TK8Z_9USG32fppM0VgGI/s1600/image11_59c45719-4238-4579-9ee0-8ba0fc05f46f.png" height="280" width="640" /></a></div>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-36007413088805480672015-02-16T16:46:00.000+03:002015-02-16T16:46:17.807+03:00Reactive programming in WPF<a href="http://obtics.codeplex.com/" id="ProjectTitle1" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-family: 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif; font-size: 28.617603302002px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"></a><br />
<div style="background: transparent; border: 0px; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<a href="http://obtics.codeplex.com/" id="ProjectTitle1" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-family: 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif; font-size: 28.617603302002px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
Obtics</div>
</a></div>
<a href="http://obtics.codeplex.com/">http://obtics.codeplex.com</a><div style="background: transparent; border: 0px; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<b style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><br /></b></div>
<div style="background: transparent; border: 0px; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<b style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Project Description</b><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">The object of this project is to create a library that offers Functional Reactive Programming abilities to common .Net languages.</span><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">With FRP your calculations automatically respond to changes in the underlying data. Obtics includes a live Object Linq and Linq to Xml.</span></div>
<div style="background: transparent; border: 0px; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;"><br /></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #2e8bcc; font-family: 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif; font-size: 28.617603302002px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline; word-wrap: break-word;">
<a href="http://clinq.codeplex.com/" id="ProjectTitle1" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-family: 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif; font-size: 28.617603302002px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Continuous LINQ</a></div>
<a href="http://clinq.codeplex.com/">http://clinq.codeplex.com</a></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<b style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Project Description</b><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">Continous LINQ is a .NET Framework 3.5 extension that builds on the LINQ query syntax to create continuous, self-updating result sets. </span><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">In traditional LINQ queries, you write your query and get stale results. With Continuous LINQ, </span><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">you write a query and the results of that query are continuously updated as changes are made to the source collection or items within the source collection. </span><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><br style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;" /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;">CLINQ has tremendous value in GUI development and is especially useful in binding to filtered streams of data such as financial or other network message data.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;"><br /></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<a href="https://rx.codeplex.com/" id="ProjectTitle4" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-family: 'Segoe UI Light', 'Tahoma Light', 'Arial Light', 'Helvetica Light', sans-serif; font-size: 28.617603302002px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Rx (Reactive Extensions)</a></div>
<a href="https://rx.codeplex.com/">https://rx.codeplex.com</a><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;"><br /></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; font-stretch: normal; line-height: 19.0176963806152px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #333333; font-size: 9.5pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers <em style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">represent</strong></em> asynchronous data streams with<a href="http://msdn.microsoft.com/library/dd990377.aspx" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Observables</a>, <em style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">query</strong></em> asynchronous data streams using <a href="http://msdn.microsoft.com/en-us/library/hh242983(v=VS.103).aspx" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">LINQ operators</a>, and <em style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">parameterize</strong></em> the concurrency in the asynchronous data streams using <a href="http://msdn.microsoft.com/en-us/library/hh242963(v=VS.103).aspx" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Schedulers</a>. Simply put, Rx = Observables + LINQ + Schedulers.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; font-stretch: normal; line-height: 19.0176963806152px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #333333; font-size: 9.5pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Whether you are authoring a traditional desktop or web-based application, you have to deal with asynchronous and event-based programming from time to time. Desktop applications have I/O operations and computationally expensive tasks that might take a long time to complete and potentially block other active threads. Furthermore, handling exceptions, cancellation, and synchronization is difficult and error-prone.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; font-stretch: normal; line-height: 19.0176963806152px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #333333; font-size: 9.5pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Using Rx, you can represent multiple asynchronous data streams (that come from diverse sources, e.g., stock quote, tweets, computer events, web service requests, etc., and subscribe to the event stream using the IObserver<t> interface. The IObservable<t> interface notifies the subscribed IObserver<t> interface whenever an event occurs.</t></t></t></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; font-stretch: normal; line-height: 19.0176963806152px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #333333; font-size: 9.5pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Because observable sequences are data streams, you can query them using standard LINQ query operators implemented by the <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable(v=VS.103).aspx" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #2e8bcc; font-size: 12.6666679382324px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Observable </a>extension methods. Thus you can filter, project, aggregate, compose and perform time-based operations on multiple events easily by using these standard LINQ operators. In addition, there are a number of other reactive stream specific operators that allow powerful queries to be written. Cancellation, exceptions, and synchronization are also handled gracefully by using the extension methods provided by Rx.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; font-stretch: normal; line-height: 19.0176963806152px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; color: #333333; font-size: 9.5pt; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Rx complements and interoperates smoothly with both synchronous data streams (IEnumerable<t>) and single-value asynchronous computations (Task<t>).</t></t></span></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<h1 style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin-bottom: 15px !important; margin-left: 0px; margin-right: 0px; margin-top: 20px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;">
<span style="color: #253340; font-family: Segoe UI, Tahoma, Arial, Helvetica, sans-serif;"><span style="font-weight: normal; line-height: 26.0160007476807px;">Bindable LINQ </span></span></h1>
<a href="http://bindablelinq.codeplex.com/">http://bindablelinq.codeplex.com</a></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
(currently not supported)</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; max-width: 700px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13.0080003738403px; line-height: 19.0176963806152px;"><br /></span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-65084627493578018952014-12-14T16:04:00.002+03:002014-12-14T16:04:37.607+03:00HTML Academy<a href="http://htmlacademy.ru/">http://htmlacademy.ru</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-16962656399306241302014-12-11T14:05:00.002+03:002014-12-11T14:05:17.873+03:00SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/<div style="background: rgb(255, 255, 255); border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Make sure you use latest rvm:</div>
<pre class="lang-rb prettyprint prettyprinted" style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">rvm get stable</span></code></pre>
<div style="background: rgb(255, 255, 255); border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Then you can do two things:</div>
<ol style="background: rgb(255, 255, 255); border: 0px; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;">
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="background: transparent; border: 0px; clear: both; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Update certificates:</div>
<pre class="lang-rb prettyprint prettyprinted" style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">rvm osx</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">ssl</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">certs update all</span></code></pre>
</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="background: transparent; border: 0px; clear: both; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Update rubygems:</div>
<pre class="lang-rb prettyprint prettyprinted" style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">rvm rubygems latest</span></code></pre>
</li>
</ol>
<div>
<span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;"><span style="font-size: 14px; line-height: 17.8048000335693px; white-space: pre;"><br /></span></span></div>
<div>
<span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;"><span style="font-size: 14px; line-height: 17.8048000335693px; white-space: pre;"><br /></span></span></div>
<div>
<span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;"><span style="font-size: 14px; line-height: 17.8048000335693px; white-space: pre;">OR</span></span></div>
<div>
<span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;"><span style="font-size: 14px; line-height: 17.8048000335693px; white-space: pre;"><br /></span></span></div>
<div>
<pre class="lang-rb prettyprint prettyprinted" style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">gem sources </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">r https</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">://</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">rubygems</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">org
gem sources </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">a http</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">://</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">rubygems</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">org </span></code></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-53667067787392543682014-12-09T19:59:00.001+03:002014-12-09T19:59:14.598+03:00VirtualBox: access Windows-host shared folders from Ubuntu-guest<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
This is the scenario that you run Windows as your host operating system and Ubuntu in a VirtualBox, and that you want to access a specific Windows folder from Ubuntu.</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
First you have to make sure that have install <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Guest Additions</em>. From the VirtualBox’s menu go to <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Devices → Install Guest Additions…</em>This will mount a virtual CD on your <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">/media/cdrom</em>. Normally this folder’s window will show up. <u style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">As root</u> run the program<em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">VBoxLinuxAdditions.run</em>. When the program completes reboot your VirtualBox.</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
With Guest Additions installed you may now go ahead and define the shared folder(s). From the VirtualBox’s menu go to Devices → Shared Folders. A dialog will show up. In this dialog you can specify which folder from your Windows system you want to share with your Ubuntu. Press the button with the + symbol to add a new shared folder in the list. You will have to specify a Folder Name for each folder you add. Make sure you memorize that name because you will need it very soon.</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
When done with you shared folder(s) specification, you may now go ahead and actually <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">mount</em> these folders from Ubuntu. First you have to create a <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">mounpoint</em>, that is, a directory in your Ubuntu which will reflect the shared folder from Windows:</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
<code style="background: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"># sudo mkdir /media/windows-share</code></div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
Of course you may choose an alternative path for your mountpoint. With your mountpoint created you can now mount the shared folder, like this:</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
<code style="background: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"># sudo mount -t vboxsf <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">folder-name</em> /media/windows-share</code></div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
Where <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">folder-name<strong style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </strong></em>will be the name you assigned for this folder when you were adding it in the shared folders list.</div>
<div style="background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;">
You could use the <em style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">/etc/init.d/rc.local</em> script to execute these commands on startup to have the shared folders automatically mounted every time you start your Ubuntu VirtualBox.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-66688951903754510282014-11-06T16:28:00.003+03:002014-11-06T16:28:37.838+03:00Combined results for serializing / deserialzing a single row of each table in the Northwind database 1,000,000 timesfrom: <a href="https://github.com/ServiceStack/ServiceStack.Text">https://github.com/ServiceStack/ServiceStack.Text</a><br />
<br />
<table style="border-collapse: collapse; border-spacing: 0px; box-sizing: border-box; color: #333333; display: block; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6000003814697px; margin-bottom: 16px; margin-top: 0px; overflow: auto; width: 728px; word-break: normal;"><thead style="box-sizing: border-box;">
<tr style="background-color: white; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><th style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Serializer</th><th style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Size</th><th style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Peformance</th></tr>
</thead><tbody style="box-sizing: border-box;">
<tr style="background-color: white; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Microsoft DataContractSerializer</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">4.68x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">6.72x</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Microsoft JsonDataContractSerializer</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">2.24x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">10.18x</td></tr>
<tr style="background-color: white; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">Microsoft BinaryFormatter</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">5.62x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">9.06x</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">NewtonSoft.Json</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">2.30x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">8.15x</td></tr>
<tr style="background-color: white; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">ProtoBuf.net</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">1x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">1x</td></tr>
<tr style="background-color: #f8f8f8; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; box-sizing: border-box;"><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">ServiceStack TypeSerializer</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">1.78x</td><td style="border: 1px solid rgb(221, 221, 221); box-sizing: border-box; padding: 6px 13px;">1.92x</td></tr>
</tbody></table>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-65081363987268734282014-09-23T19:55:00.002+04:002014-09-23T19:55:44.476+04:00RavenDB tutorial<a href="http://mookid.dk/oncode/archives/1627">http://mookid.dk/oncode/archives/1627</a><br />
<a href="http://mookid.dk/oncode/archives/1652">http://mookid.dk/oncode/archives/1652</a><br />
<a href="http://mookid.dk/oncode/archives/1689">http://mookid.dk/oncode/archives/1689</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-74430363724547583222014-09-11T16:37:00.001+04:002014-09-11T16:37:41.575+04:00Rails on Windows, Part 3/4: MySQL2 gem<iframe allowfullscreen="" frameborder="0" height="270" src="//www.youtube.com/embed/aynVXmpeTNc" width="480"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-40588602790623175522014-09-11T16:22:00.004+04:002014-09-11T20:16:47.998+04:00Installing mysql2 gem on Windows 8 with Ruby2This is what worked for me. Hopefully it’ll help someone else.<br />
<div>
<ul>
<li>Uninstall the 64 bit version of Ruby 2 (apparently, there are lot of libraries that haven’t been tested against 64 bit Ruby on Windows and it can lead to errors) </li>
<li>Download the latest 32 bit Ruby 2 version from here and install </li>
<li>Download the 32 bit version of the DevKit from the same link as above and follow these instructions to have it enhance your previously installed Ruby version </li>
<li>Download the 32 bit MySQL C connector (archive version) from here and unzip it to C:/mysql </li>
<li>Open a command prompt and enter gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:/mysql" </li>
<li>Copy the file “libmysql.dll” from C:/mysql/lib to your Ruby bin folder </li>
<li>Optional: delete C:/mysql</li>
</ul>
Reference: <a href="https://github.com/oneclick/rubyinstaller/issues/191">https://github.com/oneclick/rubyinstaller/issues/191</a><br />
<br />
<b>Note:</b> This solution not always works depending on the environment bit version.<br />
Some other issues are noted below that could help.<br />
<br />
(<a href="http://stackoverflow.com/questions/19014117/ruby-mysql2-gem-installation-on-windows-7">http://stackoverflow.com/questions/19014117/ruby-mysql2-gem-installation-on-windows-7</a>)<br />
<br />
<ol style="background: rgb(255, 255, 255); border: 0px; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;">
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Download the lastest MySQL <a href="http://dev.mysql.com/downloads/file.php?id=450446" style="background: transparent; border: 0px; color: #4a6b82; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Installer</a> for windows 7 32 bits</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Installed the gem with the following command: <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:/Program Files/MySQL/MySQL Connector C 6.1 6.1.2/"'</code></li>
</ol>
<div style="background: rgb(255, 255, 255); border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
One pitfall to be aware of is that I changed the backslashes (\) to normal slashes (/). I've tried the same procedure with backslashes and it didn't work.</div>
<div style="background: rgb(255, 255, 255); border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
The installer already includes the C connectors for MySQL at <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">MySQL Connector C 6.1 6.1.2</code> directory. Therefore, passing only the <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">--with-mysql-dir</code> parameter without the <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">--with-mysql-lib</code> or <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">--with-mysql-include</code> parameters, makes the gem to look at the same directory for the <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">lib</code> and <code style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">include</code>directories</div>
<b>Another source of problem could be using 64 bit connector instead of 32 bit.</b><br />
This may be evident from log files, like here:<br />
<br />
<a href="http://stackoverflow.com/questions/17866003/rails-installing-mysql-error-installing-mysql2-error-failed-to-build-gem-nat">http://stackoverflow.com/questions/17866003/rails-installing-mysql-error-installing-mysql2-error-failed-to-build-gem-nat</a><br />
<br />
<b>This is lastily what helped me after tons of work trying to compile the gem:</b><br />
Download 32 bit version connector and follow instruction like here:<br />
<br />
<a href="https://medium.com/@frontlineutils/installing-the-mysql2-rubyonrails-gem-on-windows-7-8-a028f44d87f3">https://medium.com/@frontlineutils/installing-the-mysql2-rubyonrails-gem-on-windows-7-8-a028f44d87f3</a><br />
<br />
(Optional relevant link:<br />
<a href="http://stackoverflow.com/questions/5732546/mysql2-gem-install-make-error-windows-7">http://stackoverflow.com/questions/5732546/mysql2-gem-install-make-error-windows-7</a>)<br />
<br />
<u>And the last solid solution is just:</u><br />
<div>
<span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px;"><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px;"><br /></span></span></div>
<span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px;">
<b>gem install mysql2 -v '0.3.11'</b></span><br />
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"><span style="font-size: 14px; line-height: 17.8048000335693px;"><b><br /></b></span></span></div>
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"><span style="font-size: 14px; line-height: 17.8048000335693px;">In this case you will get the folowing message after successfull installation:</span></span></div>
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"><span style="font-size: 14px; line-height: 17.8048000335693px;"><br /></span></span></div>
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"></span><br />
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"><span style="font-size: 14px; line-height: 17.8048000335693px;">======================</span></span></div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;">
</span>
<div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;"><span style="font-size: 14px; line-height: 17.8048000335693px;"><br /></span></span></div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;">
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> You've installed the binary version of mysql2.</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> It was built using MySQL Connector/C version 6.0.2.</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> It's recommended to use the exact same version to avoid potential issues.</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"><br /></span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> At the time of building this gem, the necessary DLL files where available</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> in the following download:</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"><br /></span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;">.2-win32.zip/from/pick</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"><br /></span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;"> And put lib\libmysql.dll file in your Ruby bin directory, for example C:\Ruby\</span></div>
<div>
<span style="font-size: 14px; line-height: 17.8048000335693px;">bin</span></div>
</span><br />
<br />
Don't forget to pick up corresponding dll for that connector version.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-33554117741155219852014-06-18T18:24:00.004+04:002014-06-18T18:24:23.913+04:00SetForegroundWindow Win32 API not always works on Windows 7<b>SetForegroundWindows</b> has some remarks usage, which could be found here:<br />
<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539%28v=vs.85%29.aspx</a><br />
<br />
<div style="background: rgb(255, 255, 255); border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
At least one of the following must be true:</div>
<ul style="background: rgb(255, 255, 255); border: 0px; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.804800033569336px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;">
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The process is the foreground process.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The process was started by the foreground process.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The process received the last input event.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">There is no foreground process.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The foreground process is being debugged.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The foreground is not locked.</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">The foreground lock time-out has expired (see SPI_GETFOREGROUNDLOCKTIMEOUT in SystemParametersInfo).</li>
<li style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">No menus are active.</li>
</ul>
<u>Alternative solution is to use <b>AttachedThreadInputAction</b> pattern:</u><div>
<br /></div>
<div>
<b><a href="http://www.shloemi.com/2012/09/solved-setforegroundwindow-win32-api-not-always-works">http://www.shloemi.com/2012/09/solved-setforegroundwindow-win32-api-not-always-works</a></b></div>
<div>
<br /></div>
<div>
<u>Other "classic" approaches using <b>Mutexes </b>and <b>EventWaitHandle</b>:</u></div>
<div>
<br /></div>
<div>
<a href="http://www.codeproject.com/Articles/32908/C-Single-Instance-App-With-the-Ability-To-Restore">http://www.codeproject.com/Articles/32908/C-Single-Instance-App-With-the-Ability-To-Restore</a></div>
<div>
<a href="http://www.codeproject.com/Articles/96359/Mutex-Process-Identifier">http://www.codeproject.com/Articles/96359/Mutex-Process-Identifier</a></div>
<div>
<a href="http://www.codeproject.com/Tips/702830/Single-Instance-Form-Application-in-Csharp">http://www.codeproject.com/Tips/702830/Single-Instance-Form-Application-in-Csharp</a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
VB style approach:</div>
<div>
<br /></div>
<div>
<pre class="lang-cs prettyprint prettyprinted" style="background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">using </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">System</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
using </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">System</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Windows</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Forms</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
using </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Microsoft</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">VisualBasic</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">ApplicationServices</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="com" style="background: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// Add reference to Microsoft.VisualBasic</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
namespace </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">WindowsFormsApplication1</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">class</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Program</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">WindowsFormsApplicationBase</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">public</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Program</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">()</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">this</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">EnableVisualStyles</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">true</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">this</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">IsSingleInstance</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">true</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">this</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">MainForm</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Form1</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">();</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">protected</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">override</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">void</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">OnStartupNextInstance</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">StartupNextInstanceEventArgs</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> e</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
e</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">BringToForeground</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">true</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">STAThread</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">]</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">public</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">static</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">void</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Main</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">string</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[]</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> args</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Program</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">().</span><span class="typ" style="background: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Run</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">args</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">);</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span></code></pre>
</div>
<div>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-25787951583203829522014-03-27T02:04:00.000+04:002014-03-27T02:04:10.710+04:00The hard wayA nice set of light tutorials for some languages:<br />
<a href="http://learncodethehardway.org/">learncodethehardway.org</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-779247037047643612014-03-20T01:36:00.001+04:002014-03-20T01:36:28.033+04:00Interface laws<script async="" class="speakerdeck-embed" data-id="4edd2d618a72e30711008af0" data-ratio="1.77777777777778" src="//speakerdeck.com/assets/embed.js"></script>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-37265222008841602782014-03-20T01:30:00.001+04:002014-03-20T01:30:21.294+04:00CodeKit for web developersThis beautiful application is here: <a href="http://incident57.com/">http://incident57.com</a><br />
<br />
<span style="background-color: white; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;">CodeKit automatically compiles Less, Sass, Stylus, CoffeeScript, Jade, Haml files. It effortlessly combines, minifies and error-checks Javascript. It supports Compass. It even optimizes jpeg, png images, auto-reloads your browser.</span><br />
<br />
More on this could be found here: <a href="http://css-tricks.com/codekit-2-0">http://css-tricks.com/codekit-2-0</a><br />
<br />
<h3>
Windows alternatives</h3>
<a href="http://suse.me/soft/codekit/all">http://suse.me/soft/codekit/all</a><br />
<br />
Check out <a href="http://alphapixels.com/prepros" target="_blank">Prepro</a>, Gulp, <a href="http://gruntjs.com/" target="_blank">Grunt</a><br />
From: <a href="http://css-tricks.com/forums/topic/windows-equivalent-of-codekit">http://css-tricks.com/forums/topic/windows-equivalent-of-codekit</a><br />
<br />
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;">"The <b>Grunt </b>ecosystem is huge and it's growing every day. With literally hundreds of plugins to choose from, you can use Grunt to automate just about anything with a minimum of effort. If someone hasn't already built what you need, authoring and publishing your own Grunt plugin to npm is a breeze"</span><br />
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;"><br /></span>
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;">Quick introduction into Grunt:</span><br />
<a href="https://www.youtube.com/watch?v=6Jhgkp67GxI&feature=youtu.be" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 25.600000381469727px;">https://www.youtube.com/watch?v=6Jhgkp67GxI&feature=youtu.be</a><br />
<br />
(Russian)<br />
<a href="http://www.juev.ru/2013/07/18/codekit-for-windows">http://www.juev.ru/2013/07/18/codekit-for-windows</a><br />
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;"><br /></span>
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;">"<b>Prepros </b>is a web design development tool that does all the heavy lifting needed to preprocess, optimize and test your sites and keeps your workflow supercharged"</span><br />
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;"><br /></span>
<span style="background-color: white; color: #6f5a40; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.600000381469727px;">And others (not free): </span><span style="color: #6f5a40; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="line-height: 25.600000381469727px;"><a href="https://laracasts.com/lessons">https://laracasts.com/lessons</a></span></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-14572281091914697162014-03-14T13:32:00.001+04:002014-03-14T13:32:24.259+04:00The Billion-Dollar Startup Club<a href="http://graphics.wsj.com/billion-dollar-club">http://graphics.wsj.com/billion-dollar-club</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-30601501158689698872014-03-12T13:51:00.002+04:002014-03-12T13:51:23.845+04:00Mobile apps testing<a href="http://www.utest.com/">www.utest.com</a><br />
<a href="http://www.bugtest.ru/">www.bugtest.ru</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-46113464496539783952014-02-20T03:47:00.003+04:002014-02-20T03:47:27.106+04:00Improving .NET Application Performance and Scalability. Machine.config settingsSome useful tips found during tuning of Azure service.<br />
<ul len="225" style="background-color: white; color: #333333; font-family: 'Segoe UI', Arial, Verdana, Tahoma, sans-serif; font-size: 13px; margin: 16px 0px 16px 40px; padding: 0px; position: inherit;">
<li len="23" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="16">maxWorkerThreads</i></li>
<li len="23" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="16">minWorkerThreads</i></li>
<li len="19" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="12">maxIoThreads</i></li>
<li len="21" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="14">minFreeThreads</i></li>
<li len="33" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="26">minLocalRequestFreeThreads</i></li>
<li len="20" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="13">MaxConnection</i></li>
<li len="23" style="margin: 0px; padding: 0px; position: inherit;"><i lang="ru" len="16">executionTimeout</i></li>
</ul>
<a href="http://geekswithblogs.net/StuartBrierley/archive/2009/09/30/tuning-iis---machine.config-settings.aspx">Tuning IIS - machine.config settings</a><br />
<br />
<a href="http://adallow.wordpress.com/2008/12/01/net-20-and-config-maxconnection-values" target="_blank">Net 2.0 and Config MaxConnection Values</a><br />
<br />
<a href="http://support.microsoft.com/kb/821268">http://support.microsoft.com/kb/821268</a><br />
<br />
<a href="http://msdn.microsoft.com/en-us/library/ff649152.aspx" target="_blank">Improving .NET Application Performance and Scalability</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ff647813.aspx" target="_blank">Chapter 17 — Tuning .NET Application Performance</a><br />
<br />
<a href="http://weblogs.asp.net/johnbilliris/archive/2010/06/30/don-t-forget-to-tune-your-application.aspx" target="_blank">Don't forget to tune your application</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-59719117641025629702014-02-03T02:45:00.002+04:002014-02-03T02:45:38.477+04:00Five Tips for Floating Point Programming<a href="http://www.codeproject.com/Articles/29637/Five-Tips-for-Floating-Point-Programming">http://www.codeproject.com/Articles/29637/Five-Tips-for-Floating-Point-Programming</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-10316428242523125912014-01-30T13:45:00.003+04:002014-01-30T13:45:37.548+04:00<a href="https://dl.dropboxusercontent.com/u/8437476/works/doc/mensaje_01.html" target="_blank">PARALLEL ALGORITHMS OVER RED-BLACK TREES</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-24317498346772786612014-01-28T02:25:00.000+04:002014-01-28T02:25:11.661+04:00Challenge sites<div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<a href="http://www.codechef.com/" shape="rect">www.codechef.com</a></div>
<div style="font-family: Tahoma; orphans: 2; text-align: -webkit-auto; widows: 2;">
<a href="http://www.topcoder.com/" shape="rect">www.topcoder.com</a></div>
</div>
<div style="orphans: 2; text-align: -webkit-auto; widows: 2;">
<div dir="ltr" style="font-family: Tahoma; text-align: -webkit-auto;">
<span dir="ltr"><a href="http://e-maxx.ru/algo/" shape="rect" title="http://e-maxx.ru/algo/">e-maxx.ru/algo</a></span></div>
<div dir="ltr" style="text-align: -webkit-auto;">
<div dir="ltr">
<div dir="ltr" style="font-family: Tahoma;">
<span dir="ltr"><a href="http://acm.timus.ru/?locale=ru" shape="rect" title="http://acm.timus.ru/?locale=ru">acm.timus.ru/?locale=ru</a></span></div>
<div dir="ltr" style="font-family: Tahoma;">
<a href="http://www.careercup.com/" style="text-align: -webkit-auto;">www.careercup.com</a></div>
<div dir="ltr">
<span style="font-family: Tahoma;"><a href="http://www.geeksforgeeks.org/">www.geeksforgeeks.org</a></span></div>
</div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-56842176105176191712014-01-09T17:22:00.002+04:002014-01-09T17:22:32.240+04:00Adaptive LINQ<a href="http://www.adaptivelinq.com/">www.adaptivelinq.com</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8832413488162591158.post-73144465791511470552013-12-06T04:10:00.001+04:002013-12-06T04:10:58.218+04:00AgFx Windows Phone App and Data Caching Framework<a href="https://github.com/shawnburke/AgFx">https://github.com/shawnburke/AgFx</a>Unknownnoreply@blogger.com0