tag:blogger.com,1999:blog-81967025483948449332024-03-13T20:26:42.927+01:00peter's tech notesPeter A. Pirc's notes about technologyPetrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-8196702548394844933.post-14065993206317395542020-02-19T06:50:00.001+01:002020-02-19T06:51:53.769+01:00How to replace Nitro boots TLS lacesYes, today something completely different! :)<br />
<br />
At the start of the winter session, I noticed that the laces of my boots were attacked by a mouse squad and almost unusable.<br />
<br />
I was searching the internet and managed to found the replacement at the Czech sports shop <a href="https://www.snowboard-zezula.com/" target="_blank">Snowboard Zezula.</a><br />
<br />
But still there didn't found any tutorial on how to replace them, so I made a few pictures of the process, I hope someone finds it useful.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdyhywmNV5aeWlmlyvXkrw1seRF6dx9DRsZdIKgiTDKD7Xiv_BJy-iWn8RWCE1JKlcfDi-XlfMd1N3dCxQagv1lYlHztLsHxagcMx36CIj7Jw4K7ElHjg3k3AGUPAnPlkCCA-ssOqtVXY/s1600/IMG_20200218_185536.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdyhywmNV5aeWlmlyvXkrw1seRF6dx9DRsZdIKgiTDKD7Xiv_BJy-iWn8RWCE1JKlcfDi-XlfMd1N3dCxQagv1lYlHztLsHxagcMx36CIj7Jw4K7ElHjg3k3AGUPAnPlkCCA-ssOqtVXY/s640/IMG_20200218_185536.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Boots before the replacement</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH4QAccHJXggxlimBeRJfyRCnoLaoRFHSqsNbOCIDMUS5KTHwlEn6ee6Oonnoty04VpiU3zrMBnoHSdK_aABpzuFwm7xrtrQ9D_V3UwfTGFkJR5eF_yrWCr8m0gxEUKeLISpWh1W0fsuI/s1600/IMG_20200218_185551.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH4QAccHJXggxlimBeRJfyRCnoLaoRFHSqsNbOCIDMUS5KTHwlEn6ee6Oonnoty04VpiU3zrMBnoHSdK_aABpzuFwm7xrtrQ9D_V3UwfTGFkJR5eF_yrWCr8m0gxEUKeLISpWh1W0fsuI/s640/IMG_20200218_185551.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">First,, with very fin screwdriver remove the laces holder, yes it will stay as-is - I was afraid that it might fall into the pieces</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzLJUkWJYIn2OAKo_mMfpkYAS9DQ5qbnXmo-XCi7LFZ0FsBKW2yuUECoykqDzI3IU3MAgh9CyGaCVhgqZbfXxwpCFq8tt1Au9w4Shnmvr13PWHCLoly8gipjGbIa_OQGQTNSzfm4fNFs/s1600/IMG_20200218_185901.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzLJUkWJYIn2OAKo_mMfpkYAS9DQ5qbnXmo-XCi7LFZ0FsBKW2yuUECoykqDzI3IU3MAgh9CyGaCVhgqZbfXxwpCFq8tt1Au9w4Shnmvr13PWHCLoly8gipjGbIa_OQGQTNSzfm4fNFs/s640/IMG_20200218_185901.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Now it will very easy to remove existing and insert the new laces</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Zb6YGKajI5j3PH5PuX48Sa41Yyycq71Ip_KkDBEsTNBaiUlPBEotqAGwzuX1MY_V6hRmTCY7RhJ570e7xShVrW7QNbb7tR6PyrmEWWs2ebxn5L_EDJ_-pytIZBpRvsoo1TKHZsiU16Y/s1600/IMG_20200218_191757.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Zb6YGKajI5j3PH5PuX48Sa41Yyycq71Ip_KkDBEsTNBaiUlPBEotqAGwzuX1MY_V6hRmTCY7RhJ570e7xShVrW7QNbb7tR6PyrmEWWs2ebxn5L_EDJ_-pytIZBpRvsoo1TKHZsiU16Y/s640/IMG_20200218_191757.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Then just continue removing the old one and instantly replacing it with the new one, that's it.</td></tr>
</tbody></table>
<br />
Have a nice ride!<br />
<div>
<br /></div>
<div>
<br />
<br /></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-55100914695339331592020-02-11T21:06:00.003+01:002020-02-11T21:08:14.728+01:00Cordova / Ionic barcode scaner with native camera previewI just forked the cordova-plugin-qrscanner and added support for standard barcode images (initially, it supports only QR Scanning).<br />
<br />
Comments welcome <a href="https://github.com/papsl/cordova-plugin-qrscanner">https://github.com/papsl/cordova-plugin-qrscanner</a>. It can also be used with <a href="https://ionicframework.com/docs/native/qr-scanner">Ionic Native QR-Scanner</a>.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://cloud.githubusercontent.com/assets/904007/24809138/943a9628-1b8c-11e7-8659-828c8060a9b6.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="800" data-original-width="450" height="400" src="https://cloud.githubusercontent.com/assets/904007/24809138/943a9628-1b8c-11e7-8659-828c8060a9b6.PNG" width="223" /></a></div>
<br />Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com2tag:blogger.com,1999:blog-8196702548394844933.post-64774876458829476512019-11-11T18:12:00.000+01:002019-11-11T18:12:10.166+01:00Mr. Clippy is in a bad moodMade by my youngest, she had no idea why I'm laughing at her creation.<br />
<div>
<br /></div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUoAzFnVYb0Kb50esPppgpn5LKJbP9SFzDSh_5Vkgx9EPLO29O_hOx_koI8RkwwCAumvrKoNU3J20fj8zV0y2YLlgNBjfs94NeVYjUsfY1GuFExIYmWLDufQD4Gf3pqAw2Q3tFg7OQsUY/s1600/IMG_20191111_081403.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUoAzFnVYb0Kb50esPppgpn5LKJbP9SFzDSh_5Vkgx9EPLO29O_hOx_koI8RkwwCAumvrKoNU3J20fj8zV0y2YLlgNBjfs94NeVYjUsfY1GuFExIYmWLDufQD4Gf3pqAw2Q3tFg7OQsUY/s640/IMG_20191111_081403.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Mr. Clippy is in a bad mood today</td></tr>
</tbody></table>
<br />Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-63468323070871383432019-02-15T14:41:00.002+01:002019-02-15T14:41:38.060+01:00Some (n)unit tests run on TFS are failing with System.OutOfMemoryException<div>
Symptom:</div>
<div>
- some tests are failing with "----> System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown." error</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Solution:</div>
<div>
- add "/platform:x64" to VSTest step</div>
<div>
<br /></div>
<div>
Additional info:</div>
<div>
under the hood, TFS is running "vstest.console.exe" and it looks that is run as a 32bit application by default</div>
<div>
<br /></div>
<div>
<br /></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com1tag:blogger.com,1999:blog-8196702548394844933.post-50681246762477187802016-11-28T09:43:00.001+01:002016-11-28T09:45:08.968+01:00Migrating Mercurial (Hg) repository to GIT<div style="background-color: white; box-sizing: border-box; color: #373d49; font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1; font-size: 2.05714rem; line-height: 3rem; margin: 0px 0px 0.21999rem; padding-top: 0.78001rem;">
<span style="font-family: "georgia" , "cambria" , serif; font-size: 14px;">Here a just a few random notes to get you starting with the migration of existing Mercurial Hg repository to GIT without loosing history.</span><br />
<span style="font-family: "georgia" , "cambria" , serif; font-size: 14px;">Read:</span></div>
<ul style="background-color: white; box-sizing: border-box; color: #373d49; font-family: Georgia, Cambria, serif; font-size: 14px; margin-bottom: 0.83999rem; padding-top: 0.16001rem;">
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;"><a href="http://www.mehdi-khalili.com/migrating-from-mercurial-to-git/" style="background: 0px 0px; box-sizing: border-box; color: #a0aabf; cursor: pointer;">http://www.mehdi-khalili.com/migrating-from-mercurial-to-git/</a></li>
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;"><a href="http://guides.beanstalkapp.com/version-control/git-on-windows.html" style="background: 0px 0px; box-sizing: border-box; color: #a0aabf; cursor: pointer;">http://guides.beanstalkapp.com/version-control/git-on-windows.html</a></li>
</ul>
<div style="background-color: white; box-sizing: border-box; color: #373d49; font-family: Georgia, Cambria, serif; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; font-size: 14px; margin-bottom: 1.33999rem; padding-top: 0.66001rem;">
Install:</div>
<ul style="background-color: white; box-sizing: border-box; color: #373d49; font-family: Georgia, Cambria, serif; font-size: 14px; margin-bottom: 0.83999rem; padding-top: 0.16001rem;">
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;">Git Windows client</li>
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;">python install</li>
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;">fast-script (<a href="http://hg-fast-export.sh/" style="background: 0px 0px; box-sizing: border-box; color: #a0aabf; cursor: pointer;">hg-fast-export.sh</a>)</li>
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;">mercurial lib for Python (pip install <a href="https://pypi.python.org/packages/55/c0/167c90e51d2bad39d466950a60c490d02c64128e787ecae6ef293c919763/mercurial-4.0-cp27-cp27m-win32.whl#md5=81b9e77d74907812cba53b811452561e" style="background: 0px 0px; box-sizing: border-box; color: #a0aabf; cursor: pointer;">https://pypi.python.org/packages/55/c0/167c90e51d2bad39d466950a60c490d02c64128e787ecae6ef293c919763/mercurial-4.0-cp27-cp27m-win32.whl#md5=81b9e77d74907812cba53b811452561e</a>)</li>
<li style="box-sizing: border-box; font-feature-settings: 'kern' 1, 'onum' 1, 'liga' 1; margin-left: 1rem;">run in new Git repository (use Git Bash)<br style="box-sizing: border-box;" />– …/fast-export/hg-fast-export.sh -r c:/projects_HG/tfs/pixi-tools.hg/ --force<br style="box-sizing: border-box;" />– git checkout HEAD<br style="box-sizing: border-box;" />Done :)</li>
</ul>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com1tag:blogger.com,1999:blog-8196702548394844933.post-83382253272194989822015-05-05T22:00:00.002+02:002015-05-06T08:00:45.234+02:00How to use Visual Studio’s 2015 Android Emulator in Android Studio or EclipseMicrosoft introduced Android Emulator in <a href="https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx" target="_blank">Visual Studio 2015</a>, which is currently available as Release Candidate, this emulator uses Hyper-V with virtual machines running on Android x86 platform. So emulator is super fast and has a lot of nice features previously known just to Windows Phone emulators, like zooming, easy location mocking, simulating camera with real images, drag and drop APK files etc, ...<br />
<br />
But the best part is, that this great emulator with all its nice features can be also used when developing Android applications with Android Studio or Eclipse. Just with two additional steps:<br />
<div>
<br /></div>
1.) Prepare and run desired VS Android emulator in Visual Studio, for detail read this <a href="http://blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/introducing-visual-studio-s-emulator-for-android.aspx" target="_blank">article</a><br />
<div>
<br /></div>
<div>
2.) Check IP address of Android emulator device Settings \ WiFi \ Advanced\ Ip Address</div>
<div>
<br /></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlFivRQsIxqpbwzFHjMJoYJqfI8LTZwIyLZAoB6WAmY3Z8KRTipmeQkoOphD9Fsdt5Ln-5wSh6iUcZXjoSevd_kuxEqqrgbu-86F8t7dMfKIAWYttltcgdl9b3RSn9XU_AfAimu1gtb_o/s1600/Android-WhatIsMyIP.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlFivRQsIxqpbwzFHjMJoYJqfI8LTZwIyLZAoB6WAmY3Z8KRTipmeQkoOphD9Fsdt5Ln-5wSh6iUcZXjoSevd_kuxEqqrgbu-86F8t7dMfKIAWYttltcgdl9b3RSn9XU_AfAimu1gtb_o/s1600/Android-WhatIsMyIP.png" height="400" width="246" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Getting current IP address of Android device</td></tr>
</tbody></table>
<div>
<br /></div>
<div>
3.) Run Command "ADB connect <i>ipaddress</i>"</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE0L3Wq4OeYvxlKNuAVz4xSRDqB7eg0K4wP6118jyE0Xjg0BPaLLqmROO6R2xjxib3LjBITynnTdjczclJWLQAJRfNoADNcj9v0_bA2VdPQJOkuU-20_nDXGJY8kck81ZaDMcoZtuaHqk/s1600/Android-VS-ConfigureADB.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE0L3Wq4OeYvxlKNuAVz4xSRDqB7eg0K4wP6118jyE0Xjg0BPaLLqmROO6R2xjxib3LjBITynnTdjczclJWLQAJRfNoADNcj9v0_bA2VdPQJOkuU-20_nDXGJY8kck81ZaDMcoZtuaHqk/s1600/Android-VS-ConfigureADB.png" height="208" width="400" /></a></div>
<div>
<br /></div>
<div>
4.) Now VS Android emulator should be available for running and debugging Android applications in either Eclipse or Android Studio.</div>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg99tW9lCcPR0ecdnQz59pCluWchZdxB97E9ca7RC6ZW2iQ-8cgLgDkK_cSdYq7jgTqyz3XrirtBJyQV7cVPyYlR77KNrkD4Vd6yd4mjvxVgiPZXMDMtcxJ_RA7ZeVUE69TzRmAFrxrIag/s1600/Android-Studio-VSEmulator.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg99tW9lCcPR0ecdnQz59pCluWchZdxB97E9ca7RC6ZW2iQ-8cgLgDkK_cSdYq7jgTqyz3XrirtBJyQV7cVPyYlR77KNrkD4Vd6yd4mjvxVgiPZXMDMtcxJ_RA7ZeVUE69TzRmAFrxrIag/s1600/Android-Studio-VSEmulator.png" height="268" width="400" /></a></div>
<br />
Enjoy!</div>
<div>
<br /></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com3tag:blogger.com,1999:blog-8196702548394844933.post-58616150983254343592015-03-05T09:03:00.002+01:002015-03-05T13:43:45.529+01:00How can SQL code behave differently in or outside procedure and about poor error handlingDuring refactoring of very old code, I found a ancient/ugly and in the end even totally wrong error handling script. Interesting is that the developer probably tested it outside of procedure and it did "kind a work" for him, ... :)<br />
<br />
I'll add details later (or much later).<br />
<script src="https://gist.github.com/papsl/fe4186e1339793cd0d36.js"></script><br />Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-3706309190093020362015-03-03T08:57:00.001+01:002015-03-03T08:57:54.790+01:00How can I query remote Microsoft SQL Server using integrated securityHow can I query remote Microsoft SQL Server without setting up linked server and not using hardcoded username and password of course! :)<br />
<br />
<br />
<script src="https://gist.github.com/papsl/949afb082721c4e75046.js"></script>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-77809870801932421682015-01-15T11:18:00.003+01:002015-01-15T11:22:18.973+01:00tSQLt FakeTable fails with error "cannot be renamed because the object participates in enforced dependencies"Table is probably included as part of some "schema binded" view. Use attached script to temporary remove schema binding.<br />
<br />
<b>Error:</b><br />
"[Test] failed: (Error) A .NET Framework error occurred during execution of user-defined routine or aggregate "SuppressOutput":<br />
System.Data.SqlClient.SqlException: Object '[dbo].[SomeTable]' cannot be renamed because the object participates in enforced dependencies."<br />
<br />
<br />
<script src="https://gist.github.com/papsl/30d5f0df925465e41b2e.js"></script>
<a href="https://gist.github.com/papsl/30d5f0df925465e41b2e">Source on GIT</a>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com2tag:blogger.com,1999:blog-8196702548394844933.post-11030197150313450332014-05-14T12:10:00.000+02:002014-05-14T12:32:47.061+02:00How to use Ionic framework with Ripple web browser based emulator<a href="http://ripple.incubator.apache.org/" target="_blank">http://ripple.incubator.apache.org/</a><table cellpadding="0" cellspacing="0" class="tr-caption-container zemanta-img" style="float: right; text-align: right;"><tbody>
<tr><td style="text-align: center;"><div class="zemanta-img">
<a href="http://www.flickr.com/photos/36847464@N04/5350027067" imageanchor="1" style="margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;"><img alt="droid gang" border="0" class="zemanta-img-inserted zemanta-img-configured" src="http://farm6.static.flickr.com/5087/5350027067_711d4be275_n.jpg" height="184" style="border: none; font-size: 0.8em;" width="320" /></a></div>
</td></tr>
<tr><td class="tr-caption zemanta-img-attribution" style="text-align: center;">droid gang (Photo credit: <a href="http://www.flickr.com/photos/36847464@N04/5350027067" target="_blank">valanzola.t</a>)</td></tr>
</tbody></table>
First prepare <a class="zem_slink" href="http://code.google.com/android/" rel="homepage" target="_blank" title="Android">Android</a> platform:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">ionic platform </span><span style="font-family: 'Courier New', Courier, monospace;">add android
ionic </span><span style="font-family: 'Courier New', Courier, monospace;">build android </span><br />
<br />
Install Ripple <a class="zem_slink" href="http://en.wikipedia.org/wiki/Emulator" rel="wikipedia" target="_blank" title="Emulator">emulator</a> with node.js <a class="zem_slink" href="http://npmjs.org/" rel="homepage" target="_blank" title="Npm (software)">NPM</a>.<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">npm install -g ripple-emulator </span><br />
<br />
and run it:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">ripple emulate --path platforms/android/assets/www</span><br />
<br />
<br />
Last step can be also used in ordinary <a class="zem_slink" href="http://www.phonegap.com/" rel="homepage" target="_blank" title="PhoneGap">PhoneGap</a> / Cordova project.<br />
<br />
Links:<br />
- <a href="http://ionicframework.com/getting-started/">Ionic Framework</a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/?px" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_h.png?x-id=bcb4cdb8-48f6-4371-a53e-e0f68b9819a6" style="border: none; float: right;" /></a></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com2tag:blogger.com,1999:blog-8196702548394844933.post-77029620498048203292014-05-01T11:05:00.004+02:002014-05-01T11:18:26.047+02:00Backbone model sample (javascript)<a href="http://backbonejs.org/docs/images/backbone.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://backbonejs.org/docs/images/backbone.png" height="56" width="320" /></a>Following sample script demonstrates all <a href="http://backbonejs.org/" target="_blank">Backbone.js</a> libraray model related functions:<br />
<ul>
<li>attributes</li>
<ul>
<li>setting default values</li>
<li>getting list of attributes</li>
</ul>
<li>constructor</li>
<li>validation </li>
<li>methods</li>
<li>converting to <a class="zem_slink" href="http://en.wikipedia.org/wiki/JSON" rel="wikipedia" target="_blank" title="JSON">JSON</a></li>
</ul>
<div>
<br /></div>
<script src="https://gist.github.com/papsl/11446627.js"></script><br />
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
Additional resources:</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<ul>
<li><a href="http://backbonejs.org/docs/todos.html" target="_blank">Todos</a></li>
</ul>
</div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-79013675000180536622014-04-25T10:34:00.000+02:002014-05-12T14:43:44.373+02:00Chocolatey is incompatible with version 2.1.31022.9038 - How to update nuget client in ChocolateyI become a big fun of <a href="https://chocolatey.org/" target="_blank">Chocolatey</a> lately! :) While installing some tools I received following error:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQ1eJLg1Evyui9p0E0qbbLZXyilRX3XhdetUuhBfjM0stHM4C0cVywgqDv7bnWBYtPD_Zj5lNCwAHHqRLmKIUGRpzgetUMMJ-TyetiSmj5YGts_VULpwIjURU8uHVL9NYtSkjnj4CxTQ/s1600/chocolatey-to-old-nuget.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQ1eJLg1Evyui9p0E0qbbLZXyilRX3XhdetUuhBfjM0stHM4C0cVywgqDv7bnWBYtPD_Zj5lNCwAHHqRLmKIUGRpzgetUMMJ-TyetiSmj5YGts_VULpwIjURU8uHVL9NYtSkjnj4CxTQ/s1600/chocolatey-to-old-nuget.png" height="55" width="400" /></a></div>
<br />
<pre class="brush: plain">Chocolatey (v0.9.8.20) is installing wget and dependencies. By installing you accept the license for wget and each dependency you are installing.
The schema version of 'Microsoft.AspNet.Mvc' is incompatible with version 2.1.31022.9038 of <a class="zem_slink" href="http://nuget.org/" rel="homepage" target="_blank" title="NuGet">NuGet</a>.
Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
</pre>
<br />
<b>Sollution</b>:<br />
<br />
<pre class="brush: plain">cd C:\Chocolatey\chocolateyinstall
nuget update -Self</pre>
<div>
And it should work!<br />
<br /></div>
<script src="https://gist.github.com/papsl/d9b104ef2e79f836f952.js"></script>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com3tag:blogger.com,1999:blog-8196702548394844933.post-38982340886457886432013-08-22T08:36:00.000+02:002013-08-22T08:36:50.959+02:00Powershell: Create Folder/Directory if doesn't existsSimple script for creating new folders.<br />
<br />
<span style="font-family: Courier New, Courier, monospace;"># Create folder if it doesn't exists</span><br />
<span style="font-family: Courier New, Courier, monospace;">function CreteFolder([String]$folderPath)</span><br />
<span style="font-family: Courier New, Courier, monospace;">{</span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>if ((Test-Path $folderPath) -ne $True)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> { New-Item $folderPath -type directory }</span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-27322233071849610742013-07-18T09:09:00.003+02:002013-08-22T08:36:33.591+02:00Powershell: How to get members of AD security groupall - AD security group<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">Get-ADGroupMember all </span><br />
<br />
Displays only "usernames":<br />
<span style="font-family: Courier New, Courier, monospace;">Get-ADGroupMember all | Select SamAccountName</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: inherit;">Snippet for </span><span style="background-color: white;">Iterating</span><span style="background-color: white;"> </span>through <span style="background-color: white;">all </span><span style="background-color: white;">users</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">$Users=Get-ADGroupMember all | Select SamAccountName</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">foreach ($User in $Users)</span><br />
<span style="font-family: Courier New, Courier, monospace;">{</span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>Write-Host $User.SamAccountName</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;">}</span>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-27768384947465591132013-04-06T18:17:00.000+02:002013-04-06T18:24:11.518+02:00Unable to connect to Windows 7 file shareWhile trying to connect to Windows 7 machine (from Mac or PC) over the network I was constantly receving messages:"Unable to connect"<br />
<br />
On "server" machine I noticed following error in event viewer:<br />
<i>Soruce: Srv</i><br />
<i>Event Id:2017</i><br />
<i>"The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations."</i><br />
<i><br /></i>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCBU_vH5cr75BaV6doAXiH6pjmX4xoUb0eEwnR4PaS-ENBdtAYj66iJcJfUL9pKY1uHVgHAbnloNIqjeAc2Ul_eCBWxVQH-7i8hil-gEtmkHqJlHgz2nHdIEHPFEf5D9vc_z1uu9ytets/s1600/Event-2019-The+server+was+unable+to+allocate.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="" border="0" height="277" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCBU_vH5cr75BaV6doAXiH6pjmX4xoUb0eEwnR4PaS-ENBdtAYj66iJcJfUL9pKY1uHVgHAbnloNIqjeAc2Ul_eCBWxVQH-7i8hil-gEtmkHqJlHgz2nHdIEHPFEf5D9vc_z1uu9ytets/s400/Event-2019-The+server+was+unable+to+allocate.png" title="The server was unable to allocate from the system nonpaged pool because the pool was empty." width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The server was unable to allocate from the system nonpaged pool because the pool was empty.</td></tr>
</tbody></table>
<i><br /></i>
<br />
Problem occurs when multiple computers are trying to connect to one Windows 7 "server" machine. Do following procedure:<br />
<br />
<br />
<b>Set the following registry key to ’1':</b><br />
<br />
<i>HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache</i><br />
<br />
<b>and set the following registry key to ’3':</b><br />
<br />
<i>HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size</i><br />
<br />
Restart computer or just "Server" service, fixed! :)<br />
<br />
<br />Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-52568132349532379652012-09-26T09:23:00.000+02:002012-09-27T08:40:14.162+02:00Windows Azure Mobile Services resources<b>Documentation:</b><br />
<br />
<ul>
<li>Check out <a href="http://msdn.microsoft.com/en-us/library/jj710108.aspx">Windows Azure Mobile Services REST API Reference</a> on MSDN</li>
</ul>
<br />
<div>
<br /></div>
<div>
<b>Some useful resources:</b><br />
<br />
<ul>
<li><a href="https://manage.dev.live.com/" target="_blank">Live Connect Developer Center</a> (register your application)</li>
<li><a href="https://www.youtube.com/watch?v=ovDtALgsBuQ">Getting Started with Windows Azure Mobile Services</a> (video form Scott Guthrie)</li>
<li>SDK source and samples on <a href="https://github.com/WindowsAzure/azure-mobile-services">github</a></li>
<li>follow <a href="http://joshtwist/">@joshtwist</a> from Microsoft Azure Mobile Services Team</li>
<li><a href="http://blog.xamarin.com/2012/09/20/xamarin-partners-with-microsoft-to-support-azure-mobile-services-on-android-and-ios/">Xamarin</a> is preparing SDK for iOS and Android</li>
</ul>
<br />
<br />
<b>Samples:</b><br />
<br />
<ul>
<li>Windows 8</li>
<ul>
<li>Simple <a href="https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started/">ToDo</a> tutorial for Windows 8 and Mobile Services</li>
<li><a href="http://windows%208%20how%20to%20upload%20an%20image%20using%20a%20blob%20storage%20sas%20generated%20by%20windows%20azure%20mobile%20services/">Windows 8 How to upload an Image using a Blob Storage SAS generated by Windows Azure Mobile Services</a></li>
</ul>
<li>Android</li>
<ul>
<li><a href="http://chrisrisner.com/Storing-Images-from-Android-in-Windows-Azure-Mobile-Services">Storing Images from Android in Windows Azure Mobile Services</a></li>
</ul>
<li>IOS</li>
<ul>
<li><a href="http://chrisrisner.com/Storing-Images-from-iOS-in-Windows-Azure-Mobile-Services">Storing Images from iOS in Windows Azure Mobile Services</a></li>
</ul>
</ul>
<br />
Don't forget that <a href="https://www.windowsazure.com/en-us/develop/mobile/">Azure Mobile Services</a> are still in beta!<br />
<div>
<br /></div>
</div>
<div class="zemanta-related" style="margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://channel9.msdn.com/posts/Introduction-to-Windows-Azure-Mobile-Services" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="http://i.zemanta.com/109111250_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://channel9.msdn.com/posts/Introduction-to-Windows-Azure-Mobile-Services" style="display: block; height: 80px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Introduction to Windows Azure Mobile Services</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://channel9.msdn.com/Shows/Cloud+Cover/Episode-89-Windows-Azure-Mobile-Services" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="http://i.zemanta.com/109772978_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://channel9.msdn.com/Shows/Cloud+Cover/Episode-89-Windows-Azure-Mobile-Services" style="display: block; height: 80px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Episode 89 - Windows Azure Mobile Services | Windows Azure Cloud Cover Show</a></li>
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://techcrunch.com/2012/08/28/microsoft-launches-windows-azure-mobile-services-a-cloud-backend-for-windows-8-apps-ios-android-windows-phone-support-planned/" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="http://i.zemanta.com/109151367_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://techcrunch.com/2012/08/28/microsoft-launches-windows-azure-mobile-services-a-cloud-backend-for-windows-8-apps-ios-android-windows-phone-support-planned/" style="display: block; height: 80px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Microsoft Launches Windows Azure Mobile Services: A Cloud Backend For Windows 8 And Mobile Apps</a></li>
</ul>
</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/?px" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=0abd5b5c-43ca-4ec0-9b06-21721a39fd95" style="border: none; float: right;" /></a></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com2tag:blogger.com,1999:blog-8196702548394844933.post-81370719195824350802012-08-16T15:37:00.001+02:002012-08-24T08:19:43.126+02:00Visual Studio 2012: System.FormatException: The format of value 'application/json; charset=utf-8' is invalid.After installing <a class="zem_slink" href="http://www.microsoft.com/visualstudio/en-us" rel="homepage" target="_blank" title="Microsoft Visual Studio">Visual Studio</a> 2012 RTM over Visual Studio 2012 RC one of my Web API start failing with error:<br />
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">Server Error in '/' Application.</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">--------------------------------------------------------------------------------</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">The format of value 'application/json; charset=utf-8' is invalid. </span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">Exception Details: System.FormatException: The format of value 'application/json; charset=utf-8' is invalid.</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">Source Error: ...</span></div>
<div>
<br /></div>
<div>
Solution is simple - just update <a class="zem_slink" href="http://nuget.org/" rel="homepage" target="_blank" title="NuGet">NuGet</a> API packages (Microsoft ASP.NET Web API Client, Web API Core, ...) it can be done by UI or runing following command:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">PM>Update-Package</span><br />
<br />
Probably updating to latest version is also good for other packages like EntityFramework, ...<br />
</div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container zemanta-img zemanta-action-dragged" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://en.wikipedia.org/wiki/File:MSVisual_Studio.png" imageanchor="1" style="margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;"><img alt="The Microsoft Visual Studio .NET logo." border="0" class="zemanta-img-inserted" height="75" src="http://upload.wikimedia.org/wikipedia/en/thumb/6/60/MSVisual_Studio.png/300px-MSVisual_Studio.png" style="border: none; font-size: 0.8em;" width="300" /></a></td></tr>
<tr><td class="tr-caption zemanta-img-attribution" style="text-align: center; width: 300px;">The Microsoft Visual Studio .NET logo. (Photo credit: <a href="http://en.wikipedia.org/wiki/File:MSVisual_Studio.png" target="_blank">Wikipedia</a>)</td></tr>
</tbody></table>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/?px" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=df561b65-92ee-436e-992a-581c090dd68b" style="border: none; float: right;" /></a></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-89735154126005642262012-07-27T16:42:00.002+02:002012-08-30T12:25:53.520+02:00Visual Studio C# web application build fails with "Error 46"After rebuild I've got following error:<br />
<br />
"Error 46 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. ..."<br />
<br />
<span style="background-color: white;">Clear</span> build and rebuild didn't help. <b>Deleting all files in Bin folder did help! :)</b><br />
<b><br /></b>
When you are sick of deleting bin folder, just simple add folowing tag to *.csproj:<br />
<br />
<br />
<pre class="lang-cs prettyprint" style="background-color: #eeeeee; 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: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="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;"><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><</span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Target</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Name</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">"AfterBuild"</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Condition</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">"'$(Configuration)'=='Release'"</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">></span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><</span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">RemoveDir</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Directories</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">"$(IntermediateOutputPath)"</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">/></span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"></</span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">Target</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">></span></code></pre>
<br />
<br />
Source:<br />
<a href="http://stackoverflow.com/questions/7388359/mvc3-project-build-fails-because-of-web-config-in-obj-folder">http://stackoverflow.com/questions/7388359/mvc3-project-build-fails-because-of-web-config-in-obj-folder</a>
<br />
<div class="zemanta-related" style="margin-top: 20px; overflow: hidden;">
<h4 class="zemanta-related-title">
Related articles</h4>
<ul class="zemanta-article-ul zemanta-article-ul-image" style="margin: 0; overflow: hidden; padding: 0;">
<li class="zemanta-article-ul-li-image zemanta-article-ul-li" style="background: none; display: block; float: left; font-size: 11px; list-style: none; margin: 2px 10px 10px 2px; padding: 0; text-align: left; vertical-align: top; width: 84px;"><a href="http://paps-tech.blogspot.com/2012/08/visual-studio-2012-systemformatexceptio.html" style="border-radius: 2px; box-shadow: 0px 0px 4px #999; display: block; padding: 2px; text-decoration: none;" target="_blank"><img src="http://i.zemanta.com/noimg_93_80_80.jpg" style="border: 0; display: block; margin: 0; max-width: 100%; padding: 0; width: 80px;" /></a><a href="http://paps-tech.blogspot.com/2012/08/visual-studio-2012-systemformatexceptio.html" style="display: block; height: 80px; line-height: 12pt; overflow: hidden; padding: 5px 2px 0 2px; text-decoration: none;" target="_blank">Visual Studio 2012: System.FormatException: The format of value 'application/json; charset=utf-8' is invalid.</a></li>
</ul>
</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/?px" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=4ce703d6-f538-498d-9af8-46122bdb508a" style="border: none; float: right;" /></a></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-31768618717907454572012-07-24T01:03:00.001+02:002013-08-18T15:03:53.692+02:00Backend as a Service - list of providersList of most used BaaS (Back-end as a Service) providers for mobile application development:<br />
<br />
<ul>
<li><a href="http://www.applicasa.com/About.aspx">Applicasa</a>
</li>
<li><a href="http://www.kinvey.com/">Kinvey</a></li>
<li><a href="http://www.stackmob.com/">Stackmob</a>
</li>
<li><a href="https://www.parse.com/">Parse</a>
</li>
<li><a href="http://www.sencha.com/products/io/">Sencha IO</a>
</li>
<li>https://io.tiggzi.com/secured/database-list (cloud rest database)</li>
<li><a href="https://www.dotcloud.com/">Dotcloud.com</a> (very interesting <a href="http://js.dotcloud.com/">JS cloud</a> for realtime apps)</li>
<li><a href="http://www.azure.com/">Microsoft Azure Mobile Services</a> </li>
<li><a href="http://www.backendless.com/" target="_blank">Backendless</a></li>
<li><a href="http://appery.io/" target="_blank">Appery.io</a></li>
</ul>
<br />
<br />
<a href="http://storageroomapp.com/">Storageroomapp</a> is more content oriented (aka CMS via REST).<br />
<br />
Some articles to read:<br />
<br />
<ul>
<li><a href="http://www.readwriteweb.com/mobile/2012/04/mobile-backend-as-a-service-ec.php">ReadWriteWeb - The Rise of Mobile Cloud Services: BaaS Startups Grow Up (2012-04)</a>
</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.readwriteweb.com/files/files/mobile/appcelerator_q112_cloud.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="325" src="http://www.readwriteweb.com/files/files/mobile/appcelerator_q112_cloud.jpg" width="400" /></a></div>
<div>
<br /></div>
Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com3tag:blogger.com,1999:blog-8196702548394844933.post-20491280741546310662012-07-19T15:01:00.003+02:002012-07-19T15:02:18.526+02:00Enable .config file build configuration transformations in non-web based applicationsNot posible OutOfTheBox in Visual Studio 2010 and not in current Visual Studio 12 RC, but it exists an easy work around in <a href="http://davidsandor.com/post/2011/04/28/Enable-config-file-build-configuration-transformations-in-non-web-based-applications.aspx" style="background-color: white;" target="_blank">David Sandor blog post.</a><br />
<br />Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-30928765555780650382012-04-23T22:45:00.001+02:002012-04-24T06:09:02.263+02:00VirtualBox - error after moving VDI file - Failed to open the hard diskI was running out of disk space, so I needed to move virtual disk drive (VDI file) to another partition. As normally (read: in other virtualization tools) I removed/detached VDI file from virtual machine, moved it to new partition and added to existing virtual machine in this step error occurred:<br />
<br />
"Failed to open the hard <i>disk filepath.vdi</i><br />
Cannot register the hard <i>disk filepath</i> <i>guid </i>because a hard disk <i>different filepath.vdi</i> with UUID <i>guid </i>already exists.guid
"<br />
<br />
<b>Solution:</b><br />
Run following command "vboxmanage internalcommands sethduuid <i>filepath.vdi</i>"<br />
<br />
PS vboxmanage.exe is normally located in "C:\Program Files\Oracle\VirtualBox"Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com13tag:blogger.com,1999:blog-8196702548394844933.post-17565044146149499982012-04-05T22:08:00.003+02:002012-04-05T22:16:20.905+02:00ADT17 bug: "java.lang.NoClassDefFoundError"After successful build of Android application it crashes with error:<br />
<div>
<br /></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">java.lang.NoClassDefFoundError: com.google.android.apps.analytics.GoogleAnalyticsTracker</span></div>
<div>
<br /></div>
<div>
Or some other class. Probably you have installed new ADT17 update. ;)<br />
<br />
Resolution: Move \lib to \libs folder.</div>
<div>
<br /></div>
<div>
More at <a href="http://stackoverflow.com/questions/9857539/noclassdeffounderror-when-googleanalyticstracker-getinstance">stackoverflow.com</a> and <a href="http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17">http://android.foxykeep.com/</a>.</div>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com1tag:blogger.com,1999:blog-8196702548394844933.post-32108763403691956012012-01-17T09:41:00.000+01:002012-01-17T09:41:19.635+01:00Database mail not working - restart/re enable service broker<br />
<div class="MsoNormal">
<span lang="SL"><span style="font-family: inherit;">Situation:</span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: inherit;">- no mail is send</span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: inherit;">- databasemail.exe is missing in taskmanager</span></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><span lang="SL">- in event log "</span>An error occurred in Service Broker internal activation
while trying to scan the user queue 'msdb.dbo.ExternalMailQueue' for its
status. Error: 1222, State: 56. Lock request time out period exceeded. This is
an informational message only. No user action is required.<span style="color: #1f497d;">"</span></span></div>
<div class="MsoNormal">
<span lang="SL" style="color: #1f497d; mso-ansi-language: SL;"><br /></span></div>
<div class="MsoNormal">
<span lang="SL">Try:</span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">ALTER
DATABASE [msdb] SET SINGLE_USER WITH ROLLBACK IMMEDIATE<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">ALTER
DATABASE [msdb] SET DISABLE_BROKER<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">SELECT
is_broker_enabled FROM sys.databases WHERE name = 'msdb' ;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">ALTER
DATABASE [msdb] SET ENABLE_BROKER<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">SELECT
is_broker_enabled FROM sys.databases WHERE name = 'msdb' ;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">ALTER
DATABASE [msdb] SET MULTI_USER <o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">EXEC
msdb.dbo.sysmail_stop_sp;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">EXEC
msdb.dbo.sysmail_help_status_sp;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">EXEC
msdb.dbo.sysmail_start_sp;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">EXEC
msdb.dbo.sysmail_help_status_sp;<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="SL"><span style="font-family: 'Courier New', Courier, monospace;">EXEC
msdb.dbo.sysmail_help_queue_sp @queue_type = 'mail';</span><span style="color: #1f497d;"><o:p></o:p></span></span></div>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-16033899031756641992012-01-05T13:37:00.000+01:002012-01-05T13:51:38.355+01:00How to clean up Word HTML document?<div>When saving word DOCx as HTML file, you'll huge html file with a lot of classes, tags, etc,.. This on-line <a href="http://www.cleanuphtml.com/cleanup.html">Cleanup</a> tool can help you.</div>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0tag:blogger.com,1999:blog-8196702548394844933.post-60043890658831468882011-10-18T10:51:00.000+02:002011-10-18T11:16:35.218+02:00RAISERROR raises error - not expected behavior on SQL 2005<span style="font-weight: bold;">Description:</span><br />We all expect that RAISERROR raises error, but not like this one:<br /><br />Script:<br /><span style="font-family:courier new;">RAISERROR ('Error', 16, 255 );</span><br /><br />Output:<br /><span style=" color: rgb(255, 102, 102);font-family:courier new;" >Invalid value 255 for state. Valid range is from 0 to 127</span><br /><br /><span style="color: rgb(0, 0, 0);">Value for state can be from 0 to 255, according to <a href="http://msdn.microsoft.com/en-us/library/ms178592.aspx">BOL</a></span>:<br />"<span style="font-style: italic;">state</span><br /><span style="font-style: italic;">Is an integer from 0 through 255. Negative values or values larger than 255 generate an error.</span><br /><span style="font-style: italic;">If the same user-defined error is raised at multiple locations, using a unique state number for each location can help find which section of code is raising the errors</span>."<br /><br /><span style="font-weight: bold;">Solution:</span><br />- check SQL Server version (<span style="color: rgb(255, 153, 255);">@@VERSION</span>) and if it's 9.0.1399 (Microsoft Sql Server 2005 RTM) it's really time to apply some service pack. SQL 2005 RTM was released on November 7, 2005! ;)<br /><br /><span style="font-weight: bold;">Links</span>:<br />- <a href="http://sqlserverbuilds.blogspot.com/">http://sqlserverbuilds.blogspot.com/</a> (list of SQL Server builds)<br />- <a href="http://www.microsoft.com/download/en/details.aspx?id=7218">http://www.microsoft.com/download/en/details.aspx?id=7218</a> (Download Microsoft SQL Server 2005 Service Pack 4 RTM)<br />- <a href="http://support.microsoft.com/kb/2507769/">http://support.microsoft.com/kb/2507769/</a> (Cumulative update package 3 for SQL Server 2005 Service Pack 4)<br /><br /><span style="font-weight: bold;">Appendix:</span><br /><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">- </span></span></span>error in German language version:"Der Wert 255 für den Status ist ungültig. Der gültige Bereich liegt zwischen 1 und 127."<br /><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family:'Segoe UI', Verdana, Arial;font-size:13px;" ></span>Petrov plachttp://www.blogger.com/profile/11556547593056253566noreply@blogger.com0