instruction stringlengths 27 22.5k | chosen stringlengths 27 28.2k | rejected stringlengths 19 24.9k | __index_level_0__ int64 0 10k |
|---|---|---|---|
<p>can anybody recommend some really good resources for how to get Apache authenticating users with Kerberos.</p>
<p>Background reading on Kerberos would also be useful </p>
<p>Thanks</p>
<p>Peter</p>
| <p>mod_auth_kerb is a good start: <a href="http://modauthkerb.sourceforge.net/" rel="nofollow noreferrer">http://modauthkerb.sourceforge.net/</a>. If you need Active Directory support, look here: <a href="http://support.microsoft.com/?id=555092" rel="nofollow noreferrer">http://support.microsoft.com/?id=555092</a>.</p>... | <p>I found mod_auth_spnego also quite okay, as it can use SSPI on windows instead of requiring MIT Kerberos. <a href="http://sourceforge.net/projects/modgssapache/" rel="nofollow noreferrer">mod_spnego</a></p>
| 6,504 |
<p>I'm starting to work with my model almost exclusively in WCF and wanted to get some practical approaches to versioning these services over time. Can anyone point me in the right direction?</p>
| <p>There is a good writeup on <a href="http://blogs.msdn.com/craigmcmurtry/archive/2006/07/23/676104.aspx" rel="noreferrer">Craig McMurtry's WebLog</a>. Its from 2006, but most of it is still relevant.</p>
<p>As well as a decision tree to walk through the choices, he shows how to implement those changes using Windows ... | <p>While not an instant answer for you, I found the book <a href="https://rads.stackoverflow.com/amzn/click/com/0596101627" rel="nofollow noreferrer" rel="nofollow noreferrer">Learning WCF</a> very useful; in it there's a small section on versioning (which is similar to Craig McMurtry's advice posted by Espo). If you'... | 5,762 |
<p>I've already asked this question somewhere else but unfortunately I had little luck.</p>
<p>So... my Ender 3 Pro extruder just started skipping steps, as in the gears (and the gear pinion) will rotate but the filament won't flow. It all started when I changed PLA filament to a new roll; I thought it might have been... | <p>So, after some day of yelling and disassembling, I figured out what was the issue. As many were suggesting, I indeed had an issue with the tubing lifting from the nozzle. it was lifting, so PLA was slowly infiltrating where it wasn't supposed to be to the point it created a blockage, resulting in skipping.</p>
<p>H... | <p>I my case helps reducing printing speed, from 100% to 80%.
Looks like the filament is cooling noozle to fast.
In some large prints at the begining (on first layers) I'm reducing speed to 60%.
This looks like the background temperature is not the same in the center and at the borders.</p>
| 1,631 |
<p>I've encountered multiple third party .Net component-vendors that use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a <strong>Licenses.licx</strong> is created - with what appears to be <em>just</em> the assembly full n... | <p>Almost everything about .Net licensing is explained <a href="http://www.developer.com/net/csharp/article.php/3074001" rel="noreferrer">here</a>. No need to rewrite, I think.</p>
<p>It is better to exclude license files from project in source control, if you can. Otherwise, editing visual components may be pain in t... | <p>This was a good article on the topic: <a href="http://www.textcontrol.com/en_US/blog/archive/20091015/">Click Here</a></p>
<p>In order to deploy an application with licensed components like TX Text Control, the EXE file must be licensed properly.</p>
<p>The .NET licensing mechanism recommends to add the licenses t... | 7,442 |
<p>In C# WinForms, what's the proper way to get the backward/forward history stacks for the System.Windows.Forms.WebBrowser?</p>
| <p>Check out <a href="http://www.bsalsa.com/downloads.html" rel="nofollow noreferrer">http://www.bsalsa.com/downloads.html</a>. This is a series of Delphi components (free source code, you can see an example of this here: <a href="http://staruml.cvs.sourceforge.net/staruml/staruml/staruml/components/plastic-components/... | <p>It doesn't look like it's possible.</p>
<p>My suggestion would be to catch the <strong>Navigated</strong> event and maintain your own list. A possible problem with that is when the user clicks <em>back</em> in the browser, you don't know to unwind the stack.</p>
| 7,836 |
<p>I've searched on the Internet for comparisons between <a href="http://en.wikipedia.org/wiki/F_Sharp_%28programming_language%29" rel="noreferrer">F#</a> and <a href="http://en.wikipedia.org/wiki/Haskell_%28programming_language%29" rel="noreferrer">Haskell</a> but haven't found anything really definitive. What are the... | <p>Haskell is a "pure" functional language, where as F# has aspects of both imperative/OO and functional languages. Haskell also has lazy evaluation, which is fairly rare amongst functional languages.</p>
<p>What do these things mean? A pure functional language, means there are no side effects (or changes in shared st... | <p>Well, for one I'd say a main advantage is that F# compiles against the .NET platform which makes it easy to deploy on windows. I've seen examples which explained using F# combined with ASP.NET to build web applications ;-)</p>
<p>On the other hand, Haskell has been around for waaaaay longer, so I think the group of... | 6,674 |
<p>So I was listening to the latest Stackoverflow podcast (<a href="https://blog.stackoverflow.com/2008/08/podcast-19/">episode 19</a>), and Jeff and Joel talked a bit about scaling server hardware as a website grows. From what Joel was saying, the first few steps are pretty standard:</p>
<ol>
<li>One server running b... | <p>A reasonable setup supporting an "average" web application might evolve as follows:</p>
<ol>
<li>Single combined application/database server</li>
<li>Separate database on a different machine</li>
<li>Second application server with DNS round-robin (poor man's load balancing) or, e.g. <a href="http://www.danga.com/pe... | <p>If your interested in caching and using .Net, look into the <a href="http://msdn.microsoft.com/en-us/library/cc309103.aspx" rel="nofollow noreferrer">application caching block</a> in enterprise library (of course use this along with the other points above).</p>
| 5,714 |
<p>I have been developing web/desktop applications for about 6 years now. During the course of my career, I have come across application that were heavily written in the database using stored procedures whereas a lot of application just had only a few basic stored procedures (to read, insert, edit and delete entity rec... | <p>I'm in the object oriented architects camp. It's not necessarily a crime to put code in the database, as long as you understand the caveats that go along with that. Here are some:</p>
<ol>
<li>It's not debuggable</li>
<li>It's not subject to source control</li>
<li>Permissions on your two sets of code will be diffe... | <p>Well, this one is difficult. As a programmer, you'll want to avoid TSQL and such "Database languages" as much as possible, because they are horrendous, difficult to debug, not extensible and there's nothing you can do with them that you won't be able to do using code on your application.</p>
<p>The only reasons I s... | 4,286 |
<p>Does .NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this?</p>
| <p>.NET 4 has a <a href="http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx" rel="noreferrer">BigInteger</a> class</p>
<blockquote>
<p>Represents an arbitrarily large signed integer.</p>
<p>The BigInteger type is an immutable type that represents an arbitrarily large integer whose value in ... | <p>Mono has a public BigInteger implementation already:</p>
<p><a href="http://www.go-mono.com/docs/index.aspx?link=T:Mono.Math.BigInteger" rel="nofollow noreferrer">http://www.go-mono.com/docs/index.aspx?link=T:Mono.Math.BigInteger</a></p>
<p>You can just grab the Mono.Security assembly to use it; since its a Mono c... | 4,502 |
<p>I know I did something stupid. I just had to have a SLA 3d printer. The issue being I live in a one bedroom apartment. In the months of owning it I have made lots of amazing pieces, I also for the first time in my life have not only allergies, but sever allergies. I thought I had the flu, and has been most of the la... | <p>First things first: Resin is very aggressive. It can very easily make you hypersensitive, even to the fumes of it. So step 1 is easy:</p>
<h2>Limit exposure</h2>
<p>Wear gloves when working with resin. As you live with your printer in the same room, bottle up the resin right after use and only open it during use to ... | <p>One of the options you have would be to create a negative pressure in your working area. This would be accomplished by installing a fan with the flow direction to the outside. The inside portion of the fan should have ducting that terminates near your printer. You could place your printer in something elaborate, or ... | 1,265 |
<p>Real strange.</p>
<p>I cannot find a tool that enables one to display a SVN repository in graphical form.<br />
I would like the ability to see changes in revision / time , branch / time graphs.</p>
<p>Does anyone know of one. <strong>Ideally it would be platform neutral or even better web based</strong>.</p>
<p>Sol... | <p><a href="http://www.atlassian.com/software/fisheye/" rel="noreferrer">Fisheye</a>, from Atlassian, looks at an SVN repository and can show you a few graphs. Also provides a handy web interface for blame, diff, etc.</p>
<p>for example, some sample images at <a href="http://fisheye2.atlassian.com/chart/~charttype=Pie... | <p>You could also try <a href="http://mpy-svn-stats.berlios.de/" rel="nofollow noreferrer">MPY SVN STATS</a>. <a href="http://mpy-svn-stats.berlios.de/zope-stats/" rel="nofollow noreferrer">Here</a> is an example graph for Zope.</p>
| 3,407 |
<p>I've got a combo-box that sits inside of a panel in Flex 3. Basically I want to fade the panel using a Fade effect in ActionScript. I can get the fade to work fine, however the label of the combo-box does not fade. I had this same issue with buttons and found that their fonts needed to be embedded. No problem. ... | <p>Hmm, I am not sure why that isn't working for you. Here is an example of how I got it to work:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="fx.play([panel])">
<mx:Style>
@font-face {
... | <p>Thanks for your help.
Had exactly the same problem.
The trick is in the embedding the "bold" version of the font you are using.
Even though the font in your ComboBox isn't set to Bold ...</p>
| 3,900 |
<p>I'm looking at improving the performance of some SQL, currently CTEs are being used and referenced multiple times in the script. Would I get improvements using a table variable instead? (Can't use a temporary table as the code is within functions).</p>
| <p>You'll really have to performance test - There is no Yes/No answer. As per Andy Living's post above links to, a CTE is just shorthand for a query or subquery. </p>
<p>If you are calling it twice or more in the same function, you might get better performance if you fill a table variable and then join to/select from ... | <p><strong>Advantages of CTE</strong></p>
<p>CTE can be termed as 'Temporary View' used as a good alternative for a View in some cases.
The main advantage over a view is usage of memory. As CTE's scope is limited only to its batch, the memory allocated for it is flushed as soon as its batch is crossed. But once a view... | 7,777 |
<p>I've been using StructureMap recently and have enjoyed the experience thoroughly. However, I can see how one can easily get carried away with interfacing everything out and end up with classes that take in a boatload of interfaces into their constructors. Even though that really isn't a huge problem when you're us... | <p>The main problem with dependency injection is that, while it gives the appearance of a loosely coupled architecture, it really doesn't.</p>
<p>What you're really doing is moving that coupling from the compile time to the runtime, but still if class A needs some interface B to work, an instance of a class which impl... | <p>Another item I wrestle with is <em>where should I use dependency injection?</em> Where do you take your dependency on StructureMap? Only in the startup application? Does that mean all the implementations have to be handed all the way down from the top-most layer to the bottom-most layer?</p>
| 4,809 |
<p>I have an element which may contain very big amounts of data, but I don't want it to ruin the page layout, so I set <code>max-height: 100px</code> and <code>overflow:auto</code>, hoping for scrollbars to appear when the content does not fit. </p>
<p>It all works fine in Firefox and IE7, but IE8 behaves as if <code>... | <p>This is a really nasty bug as it affects us heavily on Stack Overflow with <code><pre></code> code blocks, which have <code>max-height:600</code> and <code>width:auto</code>.</p>
<p>It is logged as a bug in the final version of IE8 with no fix.</p>
<p><a href="http://connect.microsoft.com/IE/feedback/ViewFee... | <p>I found this :
<a href="https://perishablepress.com/maximum-and-minimum-height-and-width-in-internet-explorer/" rel="nofollow">https://perishablepress.com/maximum-and-minimum-height-and-width-in-internet-explorer/</a></p>
<blockquote>
<p>This method has been verified in IE6 and should also work in IE5. Simply cha... | 2,931 |
<p>Word wrap is one of the must-have features in a modern text editor.</p>
<p>How word wrap be handled? What is the best algorithm for word-wrap?</p>
<p>If text is several million lines, how can I make word-wrap very fast?</p>
<p>Why do I need the solution? Because my projects must draw text with various zoom level ... | <p>Here is a word-wrap algorithm I've written in C#. It should be fairly easy to translate into other languages (except perhaps for <code>IndexOfAny</code>).</p>
<pre class="lang-cs prettyprint-override"><code>static char[] splitChars = new char[] { ' ', '-', '\t' };
private static string WordWrap(string str, int wid... | <p>@ICR, thanks for sharing the C# example.</p>
<p>I did not succeed using it, but I came up with another solution. If there is any interest in this, please feel free to use this:
<em><a href="https://web.archive.org/web/20160403050733/http://johan.andersson.net/2010/11/03/wordwrap-function-in-c/" rel="nofollow norefe... | 3,819 |
<p><code>std::swap()</code> is used by many std containers (such as <code>std::list</code> and <code>std::vector</code>) during sorting and even assignment.</p>
<p>But the std implementation of <code>swap()</code> is very generalized and rather inefficient for custom types.</p>
<p>Thus efficiency can be gained by ove... | <p>The right way to overload <code>std::swap</code>'s implemention (aka specializing it), is to write it in the same namespace as what you're swapping, so that it can be found via <a href="https://en.cppreference.com/w/cpp/language/adl" rel="noreferrer">argument-dependent lookup (ADL)</a>. One particularly easy thing ... | <p>While it's correct that one shouldn't generally add stuff to the std:: namespace, adding template specializations for user-defined types is specifically allowed. Overloading the functions is not. This is a subtle difference :-)</p>
<blockquote>
<p>17.4.3.1/1
It is undefined for a C++ program to add declaratio... | 3,265 |
<p>So I get that most of you are frowning at me for not currently using any source control. I want to, I really do, now that I've spent some time reading the questions / answers here. I am a hobby programmer and really don't do much more than tinker, but I've been bitten a couple of times now not having the 'time m... | <p>Eric Sink has a great <a href="http://www.ericsink.com/scm/source_control.html" rel="noreferrer">series of posts</a> on source control basics. His company (Sourcegear) makes a source control tool called Vault, but the how-to is generally pretty system agnostic.</p>
| <p>If you are using Subversion, you check out your files <em>once</em> . Then, whenever you have made big changes (or are going to lunch or whatever), you <em>commit</em> them to the server. That way you can keep your old work flow by pressing F5, but every time you <em>commit</em> you save a copy of all the files in t... | 9,265 |
<p>I'm attempting to create a dataset based on the properties of an object. For example, I have an instance of a Person class with properties including ID, Forename, Surname, DOB etc. Using reflection, I'm adding columns to a new dataset based on the object properties:</p>
<pre><code>For Each pi As PropertyInfo In per... | <p>Here's your answer, in VB. This may be overkill for your purposes, but it also might be useful to some other folks.</p>
<p>First off, here's the code to find out if you're dealing with a Nullable type:</p>
<pre><code>Private Function IsNullableType(ByVal myType As Type) As Boolean
Return (myType.IsGenericType)... | <p>@Mendelt Siebenga: You can only call GetType on the value property if the variable is not set to null; otherwise, you'll get an exception.</p>
<p>What you want to do is use the "GetValueOrDefault" property and call GetType on that, since you are guaranteed it will not be null. Example:</p>
<pre><code>Dim i As Null... | 5,711 |
<p>My application is using <strong>Dojo 1.1.1</strong> on an <em>SSL-only</em> website. It is currently taking advantage of <code>dijit.ProgressBar</code> and a <code>dijit.form.DateTextBox</code>.</p>
<p>Everything works fabulous in <em>Firefox 2 & 3</em>, but as soon as I try the same scripts in <em>IE7</em> the... | <p>After reviewing the JavaScript sourcecode for Dijit, I thought it was likely the error results from an "insecure" refrence to a dynamically generated IFRAME. Note there are two versions of the script file, the uncompressed represents the original source (dijit.js.uncompressed.js) and the standard (dijit.js) has been... | <p>If your page is loading files from a non-https URL Firefox should tell you the same thing. Instead of an error the lock symbol at the bottom (in the status bar) should be crossed out. Are you sure that is not the case?</p>
<p>If you see the symbol, click on it and check which files are "unsecure".</p>
| 8,441 |
<p>Sometimes I notice that if I manually command a single axis movement (typically Z, when I want better access to the extruder), I observe that several channels move together (and they maybe move slower than I expect). After one 'coupled' movement, subsequent commands have the result I'm expecting.</p>
<p>What happen... | <p>This is easily explained - it's the stepper motors getting powered up. Stepper motors even if not moving are constantly powered up and actively hold the position they are in exactly at the stepping point where they are.</p>
<p>If you power down the machine or if the board disables the stepper drivers to save energy... | <p>This is easily explained - it's the stepper motors getting powered up. Stepper motors even if not moving are constantly powered up and actively hold the position they are in exactly at the stepping point where they are.</p>
<p>If you power down the machine or if the board disables the stepper drivers to save energy... | 624 |
<p>I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content. </p>
<p>Here's a paired down example of my template to illustrate the problem.</p>
<pre><code><div style="... | <p>Your simplest answer lies in the next version of css (3), which currently no browser supports.</p>
<p>For now you are relegated to calculating heights in javascript and setting them on the left side. </p>
<p>If the navigation is so important to be positioned in such a way, run it along the top.</p>
<p>you could a... | <p>@hoyhoy</p>
<p>If a designer can make this work in html, then he can have this design. If he is a true master of web design, he will realize that this is a limitation of the media, as video is not possible in magazine ads.</p>
<p>If he would like to simulate weight by giving the 2 columns equal importance, than ch... | 5,624 |
<p>I bought some heating block cotton to insulate the exposed surface of my hot end. I thought the yellow as double-sticky but it appears to be Kapton.</p>
<p>What can I use to attach it to the extruder?</p>
<p><a href="https://i.stack.imgur.com/9FFOY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co... | <p>Kapton tape would be the logical material. It's unfortunate that your vendor did not supply that as a separate item, rather than sticking it to the "cotton" (I'm guessing not actually cotton, as things might get a bit scorching for cotton, so I'm assuming some type of ceramic fiber or the like.)</p>
| <p>Not quite the answer to the question but closely related, so I venture. I use ordinary wool thread to insulate the hot end. I just wrap it carefully so it is covered everywhere. Very low cost, very effective. Wool can handle even the hottest extrusion temperatures easily.</p>
| 641 |
<p>Is there any way to get the ID of the element that fires an event?</p>
<p>I'm thinking something like:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready... | <p>In jQuery <code>event.target</code> always refers to the element that triggered the event, where <code>event</code> is the parameter passed to the function. <a href="http://api.jquery.com/category/events/event-object/" rel="noreferrer">http://api.jquery.com/category/events/event-object/</a></p>
<pre><code>$(documen... | <p>I'm working with </p>
<blockquote>
<p>jQuery Autocomplete</p>
</blockquote>
<p>I tried looking for an <code>event</code> as described above, but when the request function fires it doesn't seem to be available. I used <code>this.element.attr("id")</code> to get the element's ID instead, and it seems to work fine.... | 7,061 |
<p>I want to write a front-end to an application written in C/C++. </p>
<p>I use Solaris 10 and plan to port the application to some other architectures (Windows first).</p>
| <p>I'd recommend taking a look at <a href="http://www.wxwidgets.org/" rel="nofollow noreferrer">wxWidgets</a> to provide some cross platform UI widgets that will work on Solaris and Windows.</p>
| <p>I use <a href="http://www.wxwidgets.org/" rel="nofollow noreferrer">wxWidgets</a> myself. It makes good use of the C++ language features and uses smart pointers, so object and memory management is not that hard. In fact, it feels like writing in a scripting language.</p>
<p>Coupled with a dialog editor/code generat... | 4,921 |
<p><strong>My setup</strong></p>
<ul>
<li>Ender 3</li>
<li>Creality glass bed</li>
<li>Creality 3D BL Touch auto bed levelling kit v1</li>
<li>Creality 3D silent mainboard v4.2.7</li>
<li>OctoPrint running on a Raspberry Pi 4 connected over USB (with the 5 V pin covered with a piece of tape to prevent powering the main... | <p>Had similar problems. I even did a 10x10 grid just to find out that my printing bed wasn't actually flat.</p>
<p>It actually had dips in it.</p>
<p>I would have to look up the command, but I actually just lowered the nozzle by 0.050 mm at a time. Eventually it got too low, and then I backed it off in even smaller ... | <p>I had the exact same issue as you and had done all the fixes you mentioned. The only thing that solved it for me was to make sure the model in the slicing software was flat to the "bed".</p>
<p>I use Cura and it has a "flat the bed" option which I only discovered due to a model that was slightly ... | 1,937 |
<p>I would like to find out safe ways of implementing three dimensional arrays of integers in C++, using pointer arithmetic / dynamic memory allocation, or, alternatively using <code>STL</code> techniques such as vectors.</p>
<p>Essentially I want my integer array dimensions to look like:</p>
<pre><code>[ x ][ y ][ z... | <p>Have a look at the Boost <a href="http://www.boost.org/doc/libs/release/libs/multi_array" rel="noreferrer">multi-dimensional array</a> library. Here's an example (adapted from the Boost documentation):</p>
<pre><code>#include "boost/multi_array.hpp"
int main() {
// Create a 3D array that is 20 x 30 x 4
int x =... | <p>Pieter's suggestion is good of course, but one thing you've to bear in mind is that in case of big arrays building it may be quite slow. Every time vector capacity changes, all the data has to be copied around ('n' vectors of vectors).</p>
| 8,798 |
<p>What is the best source of free Vista style graphics for application development? I want <strong>32x32</strong> and <strong>16x16</strong> that I can use in a Winforms application.</p>
| <p>If you're using Visual Studio Professional or above, you've got a zip file of icons in your VS path under <code>Common7\VS2008ImageLibrary</code>. Some of the images use the Vista style.</p>
| <p>Best place I've found for commercial toolbar icons etc is <a href="http://glyfx.com" rel="nofollow noreferrer">glyfx.com</a>.</p>
| 5,837 |
<p>I'm looking for the specific density of the GEL-LAY and LAYWOO 3D materials by manufacturer CC Products.</p>
<p>It isn't noted on their website or on the spool or the box the spools came in. I've looked for hours on Google and various websites, from resellers to people who tested it, without being able to find it.<... | <p>I can't provide the end answer, but if you already have the material, you should be able to measure this yourself quite simply.</p>
<p>Measure and cut a sample of filament, and weigh it. For example, a 10 meter length with a 1.75 mm diameter will have a volume of:</p>
<blockquote>
<p>v = pi * r<sup>2</sup> * l</... | <p>Indeed, the properties of this filament are kept rather secret, so to find out what the density is, you need to either contact the filament supplier or the manufacturer for accessing the data sheet or calculate this yourself. The answer below expands on the "<em>calculate it yourself</em>".</p>
<p>Density is define... | 1,094 |
<p>I am using a new Prusa i3 MK3S 3D printer kit. I print lots of things using PLA and PETG. </p>
<p>After a week of great performance I noticed that when printing some objects with PETG filament I often encountered a problem when there's <strong>intense stringing, infill gaps, artifacts, the object sometimes detach... | <p>230 °C is way too cool for PETG and will result in underextrusion unless you print really slow, and poor bonding. Underextrusion in turn leads to stringing because of pressure build-up. I print PETG at 250 °C.</p>
| <p>You might try printing with Prusa's recommended settings. They tend to be hotter and slower than I expected.</p>
<p>I have made several pet-G prints with the same machine you have. </p>
| 1,373 |
<p>The .Net generated code for a form with the "DefaultButton" attribute set contains poor javascript that allows the functionality to work in IE but not in other browsers (Firefox specifcially). </p>
<p>Hitting enter key does submit the form with all browsers but Firefox cannot disregard the key press when it happens... | <p>I use this function adapted from codesta. [Edit: the very same one, I see, that scares you! Oops. Can't help you then.]</p>
<p><a href="http://blog.codesta.com/codesta_weblog/2007/12/net-gotchas---p.html" rel="nofollow noreferrer">http://blog.codesta.com/codesta_weblog/2007/12/net-gotchas---p.html</a>.</p>
<p>Y... | <p>For this particular issue, the reason is because javascript generated by
ASP.NET 2.0 has some IE only notation: event.srcElement is not availabe in
FireFox (use event.target instead):</p>
<pre><code>function WebForm_FireDefaultButton(event, target) {
if (!__defaultFired && event.keyCode == 13 && !... | 7,264 |
<p>What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a rule of thumb to avoid collisions my professor said that:</p>
<pre><code>function Hash(key)
return key mod PrimeNumber
end... | <p>There's no such thing as a “good hash function” for universal hashes (ed. yes, I know there's such a thing as “universal hashing” but that's not what I meant). Depending on the context different criteria determine the quality of a hash. Two people already mentioned SHA. This is a cryptographic hash and it isn't at a... | <p>I highly recommend the SMhasher GitHub project <a href="https://github.com/rurban/smhasher" rel="nofollow noreferrer">https://github.com/rurban/smhasher</a> which is a test suite for hash functions. The fastest state-of-the-art non-cryptographic hash functions without known quality problems are listed here: <a href=... | 5,491 |
<p>I just received an old 3D printer from one of my school teachers. I have no idea whatsoever as to which brand it is, no instruction manual attached to it, or any other info about it. </p>
<p>How can I find some information about it? </p>
<p>Some links would be very useful. Remember when giving advice that I know... | <p>Here are some further details on:</p>
<ul>
<li>The control board, and;</li>
<li>The stepper motors</li>
</ul>
<h2>Control board</h2>
<p>The electronics board has this marking:</p>
<p><a href="https://i.stack.imgur.com/Ui1WV.png" rel="nofollow noreferrer" title="EJE Electronics Gubbel Engineering"><img src="https... | <p>As far as I can see on the pictures - the main board shall be capable to upload Marlin software and run smoothly.</p>
<p>If you connect power and PC/Mac over the USB connection, then using <a href="http://www.pronterface.com" rel="nofollow noreferrer">Pronterface</a> you can validate mechanical movements of the pri... | 945 |
<p>I'm tired of being in the middle of typing something, having a pop-up with a question appear, and hitting enter before reading it... (it also happens with some windows that are not pop-ups)</p>
<p>Do you know if there's some setting I could touch for this not to happen?</p>
| <p>I believe you can add something like:</p>
<pre><code><%@ Import Namespace="RootNamespace.SubNamespace1" %>
</code></pre>
<p>At the top of the page.</p>
| <p>What you're looking for is the <a href="http://msdn.microsoft.com/en-us/library/eb44kack(v=VS.80).aspx" rel="nofollow noreferrer" title="MSDN">@Import page directive</a>.</p>
| 4,139 |
<p>I have two collections of the same object, <code>Collection<Foo> oldSet</code> and <code>Collection<Foo> newSet</code>. The required logic is as follow:</p>
<ul>
<li>if <code>foo</code> is in(*) <code>oldSet</code> but not <code>newSet</code>, call <code>doRemove(foo)</code></li>
<li>else if <code>foo<... | <p>Apache's commons.collections library has a CollectionUtils class that provides easy-to-use methods for Collection manipulation/checking, such as intersection, difference, and union.</p>
<p>The org.apache.commons.collections.CollectionUtils API docs are <a href="http://commons.apache.org/proper/commons-collections/j... | <p>For a set that small is generally not worth it to convert from an Array to a HashMap/set. In fact, you're probably best off keeping them in an array and then sorting them by key and iterating over both lists simultaneously to do the comparison.</p>
| 4,341 |
<p>Does anyone know why when using BindingUtils on the selectedItem property of a ComboBox you get the following warning? Any ideas how to resolve the issue?</p>
<p>The binding still works properly, but it would be nice to get rid of the warning.</p>
<pre><code>warning: multiple describeType entries for 'selectedItem... | <p>It is better to override the property in question and declare it final.</p>
| <p>Here is the code. It is basically a copy of BindingUtils.bindProperty that is setup for a ComboBox so that both the combo box and the model are updated when either of the two change.</p>
<pre><code>public static function bindProperty2(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false):C... | 2,784 |
<p>I've created a custom exception for a very specific problem that can go wrong. I receive data from another system, and I raise the exception if it bombs while trying to parse that data. In my custom exception, I added a field called "ResponseData", so I can track exactly what my code couldn't handle.</p>
<p>In cust... | <p>You shouldn't fill <code>.Message</code> with debug information, but rather with a concise, helpful piece of text.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.exception.message.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.exception.message.aspx</a></p>
<blockquote>
<p><str... | <p>I don't understand the question -- you're extending System.Exception, and you already added the Elmah field. That's where it belongs -- as a public property of the exception itself.</p>
| 7,122 |
<p>Currently I am using a 12 volts, 20 amperes power supply (Model S-240-12) </p>
<p><a href="https://i.stack.imgur.com/fraEVm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fraEVm.jpg" alt="enter image description here"></a></p>
<p>The stepper motors and the extruder need 5 amp, and the heated be... | <p>Changing the PSU with one with a higher amperage will <em><strong>not</strong></em> make the bed heat up any faster unless the PSU is underrated for the amperage required and the voltage is dropping as a result of the load. This can be checked by measuring the output voltage with a multimeter (when the PSU is loaded... | <p>May I recommend an alternative approach, which does not require any change of hardware? The time required to heat the bed is not huge, so either via USB from your computer or from the front panel, instruct your printer to heat the bed first, while you're setting everything else up (loading gcode files, changing fi... | 891 |
<p>I tried to follow a couple of googled up tutorials on setting up mod_python, but failed every time. Do you have a good, step-by step, rock-solid howto?</p>
<p>My dev box is OS X, production - Centos.</p>
| <p>There are two main ways of running Python on Apache. The simplest would be to use CGI and write normal Python scripts while the second is using a web framework like Django or Pylons.</p>
<p>Using CGI is straightforward. Make sure your Apache config file has a cgi-bin set up. If not, follow their documentation (<a h... | <p>The problem for me wasn't in Apache set up, but in understanding how mod_apache actually uses the .py files. Module-level statements (including those in a <code>if __name__=='__main__'</code> section) are <em>not</em> executed--I assumed that the stdout from running the script at the commandline would be what the se... | 2,709 |
<p>I need to do some emulation of some old DOS or mainframe terminals in Flex. Something like the image below for example.</p>
<p><img src="https://i.stack.imgur.com/qFtvP.png" alt="alt text"></p>
<p>The different coloured text is easy enough, but the ability to do different background colours, such as the yellow bac... | <p>Use <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html" rel="nofollow noreferrer"><code>TextField.getCharBoundaries</code></a> to get a rectangle of the first and last characters in the areas where you want a background. From these rectangles you can construct a rectangle th... | <p>The font is fixed width and height, so making a background bitmap dynamically isn't difficult, and is probably the quickest and easiest solution. In fact, if you size it correctly there will only be one stretched pixel per character.</p>
<p>Color the pixel (or pixels) according to the background of the character.<... | 8,545 |
<p>One may not always know the <code>Type</code> of an object at compile-time, but may need to create an instance of the <code>Type</code>. </p>
<p>How do you get a new object instance from a <code>Type</code>?</p>
| <p>The <code>Activator</code> class within the root <code>System</code> namespace is pretty powerful.</p>
<p>There are a lot of overloads for passing parameters to the constructor and such. Check out the documentation at: </p>
<blockquote>
<p><a href="http://msdn.microsoft.com/en-us/library/system.activator.createi... | <p>I can across this question because I was looking to implement a simple CloneObject method for arbitrary class (with a default constructor)</p>
<p>With generic method you can require that the type implements New().</p>
<pre><code>Public Function CloneObject(Of T As New)(ByVal src As T) As T
Dim result As T = No... | 2,317 |
<p>Is there a way to disable entering multi-line entries in a Text Box (i.e., I'd like to stop my users from doing ctrl-enter to get a newline)?</p>
| <p>I was able to do it on using KeyPress event.
Here's the code example:</p>
<pre><code>Private Sub SingleLineTextBox_ KeyPress(ByRef KeyAscii As Integer)
If KeyAscii = 10 _
or KeyAscii = 13 Then
'10 -> Ctrl-Enter. AKA ^J or ctrl-j
'13 -> Enter. AKA ^M or ctrl-m
K... | <p>not entirely sure about that one, you should be able to remove the line breaks when you render the content though, or even run a vbscript to clear it out, you just need to check for chr(13) or vbCrLf.</p>
| 3,947 |
<p>Does anyone know of papers/books/etc. that document patterns for databases? For example, one common rule of thumb is that every table should have a primary key and that the key should be <a href="http://en.wikipedia.org/wiki/Surrogate_key" rel="noreferrer">devoid of information content</a>. So I was wondering if a... | <p>Specifically, regarding keys: I strongly disagree with the strange idea that keys must be without meaning. In general, I consider a database a collection of facts; as soon as you start adding arbitrary numbers (like generated keys) and other irrelevant information into it, it should be a warning sign. I recommend <a... | <p>To answer exactly: <a href="http://www.amazon.com/s/ref=nb_ss_b/102-6537774-4068964?url=search-alias%3Dstripbooks&field-keywords=database+design+patterns&x=0&y=0" rel="nofollow noreferrer">yes</a>. There are s*-tons of info written on 'good' database design. Although youe example rule of thumb is certa... | 6,601 |
<p>What techniques or tools are recommended for finding broken links on a website?</p>
<p>I have access to the logfiles, so could conceivably parse these looking for 404 errors, but would like something automated which will follow (or attempt to follow) all links on a site.</p>
| <p>For Chrome Extension there is <a href="https://chrome.google.com/webstore/detail/hexometer-tool/hikinokpbcadaepfkacpnkhbdjfpfcgc" rel="nofollow noreferrer">hexometer</a></p>
<p>See <a href="http://www.kevinfreitas.net/extensions/linkchecker/" rel="nofollow noreferrer">LinkChecker</a> for Firefox.</p>
<p>For Mac OS... | <p>Your best bet is to knock together your own spider in your scripting language of choice, it could be done recursively along the lines of:</p>
<pre><code>// Pseudo-code to recursively check for broken links
// logging all errors centrally
function check_links($page)
{
$html = fetch_page($page);
if(!$html)
... | 9,126 |
<p>If I need to test out some of the components of a RAMPS 1.4 based 3D Printer, can I only plug some of them into the board (not all of them) and test them out?</p>
<p>I'd like to test out the NEMA 17 motors without testing the heated bed or extruder. Is this safe and why?</p>
| <p>If by components you mean motors, fans, or heated bed, then yes. This is even suggested in the <a href="http://reprap.org/wiki/RAMPS_1.4#Final_Setup" rel="noreferrer">Final Setup</a> instructions on the RAMPS wiki.</p>
<blockquote>
<p>If you think you may have mistakes (in your setup) you can install only one ste... | <p>Yes, you can. By leaving components unplugged you would simply have some pins powered that are not in use. But even with all your components plugged in, you would still have some unused, powered pins on your board, so I wouldn't think too hard about that. In some cases it might be needed to mount e.i. fans to cool y... | 169 |
<p>Problem (simplified to make things clearer):</p>
<ul>
1. there is one statically-linked static.lib that has a function that increments:
<pre><code>
extern int CallCount = 0;
int TheFunction()
{
void *p = &CallCount;
printf("Function called");
return CallCount++;
}
</code></p... | <p>My hunch was that, as you suspected, unmanaged DLLs are loaded in the context of the process and not in the context of the AppDomain, so any static data in unmanaged code is shared among AppDomains.</p>
<p><a href="http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/98cbabe0-33d6-4775-a3a7-04e71b7498... | <p>In short, maybe. AppDomains are purely a managed concept. When an AppDomain is instantiated it doesn't map in new copies of the underlying DLLs, it can reuse the code already in memory (for example, you wouldn't expect it to load up new copies of all the System.* assemblies, right?)</p>
<p>Within the managed wor... | 9,837 |
<p>Jquery has a great language construct that looks like this:</p>
<pre><code>$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</code></pre>
<p>As you might guess this, once the document has loaded, binds a custom function to the onClick event of all <strong><em>... | <p>Prototype 1.6 provides the <a href="http://prototypejs.org/api/document/observe" rel="nofollow noreferrer">"dom:loaded"</a> event on document:</p>
<pre><code>document.observe("dom:loaded", function() {
$$('a').each(function(elem) {
elem.observe("click", function() { alert("Hello World"); });
});
});... | <pre><code>Event.observe(window, 'load', function() {
Event.observe(element, 'click', function() {
alert("Hello World!");
});
});
</code></pre>
<p>Of course you need to "select" the elements first in Prototype. </p>
| 7,222 |
<p>I don't understand what's wrong with my G-code. I have set the printing temperature to 195 °C but when I try to print, the target temperature is always 0 °C and printing never starts.</p>
<p><a href="https://i.stack.imgur.com/hkB6E.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hkB6E.jpg" alt="en... | <p>I got the same problem today and after a lot of troubleshooting (following the answers here) I found out that the <strong>issue was the connection to the hotbed</strong>. After I clean out the connection to the hotbed the printer started working as usual. The debugging logic was that <strong>the printer heats up the... | <p>Double check the physical connection to the heating element and the thermistor that go in the hot end. Those wires and crimps aren't great. I had one fail on me out of the box with my A8. Re-crimping did the trick.</p>
| 1,219 |
<p>Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been touting the idea of the Web as the next desktop OS, customers are coming to expect the software runn... | <p>At <a href="http://smartbear.com" rel="nofollow noreferrer">my company</a> we have enterprise installations ranging into the thousands of seats. If we implemented an auto-upgrade, our customers would mutiny!</p>
<p>Large installations have peculiar issues that don't apply to small ones. For example, with 2000 use... | <p>One of the primary reasons to implement an application as a web application is that you get automatic upgrades for free. Why would users be getting prompted for upgrades on a web app?</p>
<p>For Windows applications, the "update is available, do you want to upgrade?" functionality is provided by Microsoft using Cl... | 7,234 |
<p>The leaving your wireless network open question reminded me of this.</p>
<p>I typically share the root drive on my machines across my network, and tie login authorization to the machines NT ID, so there is at least some form of protection.</p>
<p>My question, how easy is it to gain access to these drives for ill g... | <p>If this is a home network with no wifi or secured wifi, it's probably not an issue. Your isp will almost certainly prevent anyone from trying anything via the larger web.</p>
<p>If you have open wifi, then there's a little more cause for concern. If it's properly secured so that some authentication is required, y... | <p>I can't answer the main question, but do keep in mind that Windows, by default, is always sharing the roots of your drives. Try:</p>
<pre><code>\\yourmachine\c$
</code></pre>
<p>(And then try not to freak out.)</p>
| 5,298 |
<p>I'm getting a pet bird soon, and I know that off-gassing from heating PTFE above 300 °C creates noxious fumes, which are bird-killer<sup>1</sup>. To try to prevent even the chance of that I'm replacing my hotend with an all-metal one. I have an E3D v6 1.75 mm, which I noticed still uses a PTFE tube at the ... | <p>First of all, we need to discuss the failure mode and what can be done. LEt's do a</p>
<h2>Failure mode 1: coolend-fan stops working.</h2>
<p>Let's assume the coolend-fan for whatever reason (cut cable, defect fan, burnt board...) stops working. As a result, the coolend starts to rise in temperature, as it doesn't d... | <p>It is doubtful that small PTFE inside hotend could produce that kind of dangerous gas leak.
But another thing should be considered: the PTFE tube inside hotend WILL degrade over time and will need replacement.</p>
<p>For last several years I had numerous experiments with all kind of solutions including my own desig... | 1,607 |
<p>On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts with separate log files. We cannot seem to separate the php <code>error_log</code> between virtual hosts.</p>
<p>Overriding this setting in the <code><Location></code> of the <code>httpd.conf</code> does not seem to do anything.</p>
... | <p>To set the <em>Apache</em> (<em>not the PHP</em>) log, the easiest way to do this would be to do:</p>
<pre><code><VirtualHost IP:Port>
# Stuff,
# More Stuff,
ErrorLog /path/where/you/want/the/error.log
</VirtualHost>
</code></pre>
<p>If there is no leading "/" it is assumed to be relative.</p>... | <p>My Apache had something like this in httpd.conf. Just change the ErrorLog and CustomLog settings </p>
<pre><code><VirtualHost myvhost:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /opt/web
ServerName myvhost
ErrorLog logs/myvhost-error_log
CustomLog logs/myvhost-access_log ... | 2,267 |
<p>How do you randomly select a table row in T-SQL based on an applied weight for all candidate rows?</p>
<p>For example, I have a set of rows in a table weighted at 50, 25, and 25 (which adds up to 100 but does not need to), and I want to select one of them randomly with a statistical outcome equivalent to the respec... | <p>Dane's answer includes a self joins in a way that introduces a square law. <code>(n*n/2)</code> rows after the join where there are n rows in the table.</p>
<p>What would be more ideal is to be able to just parse the table once.</p>
<pre><code>DECLARE @id int, @weight_sum int, @weight_point int
DECLARE @table TABLE ... | <p>The <em>"incrementally carrying a an accumlating[sic] weight sum"</em> part is expensive if you have a lot of records. If you also already have a wide range of scores/weights (ie: the range is wide enough that most records weights are unique. 1-5 stars probably wouldn't cut it), you can do something like this to p... | 8,279 |
<p>Ok, so I'm an idiot. </p>
<p>So I was working on a regex that took way to long to craft. After perfecting it, I upgraded my work machine with a blazing fast hard drive and realized that I never saved the regex anywhere and simply used RegexBuddy's autosave to store it. Dumb dumb dumb. </p>
<p>I sent a copy of ... | <p>On my XP box, it was in the registry here:</p>
<pre><code>HKEY_CURRENT_USER\Software\JGsoft\RegexBuddy3\History
</code></pre>
<p>There were two REG_BINARY keys called <strong>Action0</strong> and <strong>Action1</strong> that had hex data containing my two regexes from the history.</p>
<p><img src="https://i.stac... | <p>It depends on the OS, of cause, but on Windows I would guess the application data directory. I can't remember the path on xp but on vista it's something like this:</p>
<p>C:\Users\ <em>user name</em> \AppData\</p>
<p>And then it would probably be here:</p>
<p>C:\Users\ <em>user name</em> \AppData\roaming</p>
| 7,885 |
<p>I have a asp.net 2.0 web site with numerous asp:DropDownList controls.
The DropDownList control contains the standard info city, state, county etc... info.
In addition to the standard codes the site also has custom codes that the users can configure themselves.
For example a animal dropdown may contain the values Do... | <p>I solved this exact same problem just two days ago. First, I moved the code that set the SelectedValue to a PreRender handler for the DropDownList. Then, I add logic to first check to see if the value is in the drop down list. If not, I add it.</p>
<p>Here's my code. ddSpecialty is my drop-down list, populated with... | <p>Try this: </p>
<pre><code>if (ddl.Items.Contains(new ListItem(selectedFacility)))
ddl.SelectedValue = selectedFacility;
</code></pre>
| 5,952 |
<p>I have a basic CRUD form that uses PageMethods to update the user details, however the Validators don't fire off, I think I need to manually initialize the validators and check whether the validation has passed in my javascript save method. Any ideas on how to do this?</p>
| <p>Ok so I finally solved this: You need to call <code>Page_ClientValidate()</code> in your Save javascript method and If it returns true continue with the save, the <code>Page_ClientValidate()</code> initiates the client side validators, See code below:</p>
<pre><code> function Save()
{
var clientVal... | <p>what are you using for development? VS 2008 supposedly has better JS debugging, haven't tried it yet. </p>
<p>For Ajax you can use the Sys.Debug obj</p>
| 6,759 |
<p>I am looking for a more technical explanation than the OS calls the function.</p>
<p>Is there a website or book?</p>
| <p>The .exe file (or equivalent on other platforms) contains an 'entry point' address. To a first approximation, the OS loads the relevant sections of the .EXE file into RAM, and then jumps to the entry point.</p>
<p>As others have said, this entry point will not be 'main', but will instead be a part of the runtime li... | <p><a href="http://books.google.com/books?id=wZoQyVi5f60C&printsec=frontcover&dq=expert+c%2B%2B%2Fcli&ei=MKylSPz2JJOaigHlkLn7BA&sig=ACfU3U36tvex7dO7wVyGtuy1arcJuU3N0g" rel="nofollow noreferrer">Expert C++/CLI</a> (check around page 279) has very specific details of the different bootstrap scenarios for ... | 3,339 |
<p>I wanted to "emulate" a popular flash game, Chrontron, in C++ and needed some help getting started. (NOTE: Not for release, just practicing for myself)</p>
<pre>
Basics:
Player has a time machine. On each iteration of using the time machine, a parallel state
is created, co-existing with a previous state. One of the... | <p>What you should do is first to read and understand the "fixed time-step" game loop (Here's a good explanation: <a href="http://www.gaffer.org/game-physics/fix-your-timestep" rel="nofollow noreferrer">http://www.gaffer.org/game-physics/fix-your-timestep</a>).</p>
<p>Then what you do is to keep a list of list of pair... | <p>After briefly glossing over the description, I think you have the right idea, I would have a state object that holds the state data, and place this into a linked list...I don't think you need parallel threads...</p>
<p>as far as the graphics API, I have only used opengl, and can say that it is pretty powerful and h... | 9,880 |
<p>Is there a good way to find out which exceptions a procedure/function can raise in Delphi (including it's called procedures/functions)? </p>
<p>In Java you always have to declare which exceptions that can be thrown, but this is not the case in Delphi, which could lead to unhandled exceptions. </p>
<p>Are there any... | <p>(Edit: It is now obvious that the question referred <em>only</em> to design-time checking.)</p>
<p>New answer:</p>
<p>I cannot state whether there are any tools to check this for you. Pascal Analyzer, for one, does not.</p>
<p>I <em>can</em> tell you, however, that in most Delphi applications, even if there was a... | <p>Finalization sections of units can raise exceptions too. These will slip by I think... and are also somewhat problematic.</p>
<p>I think Delphi IDE has a build-in "stack trace" or "stack tree" something like.</p>
<p>This question reminds me of Skybuck's TRussianRoulette game... google it, it's co... | 9,817 |
<p>What is currently the best way to get a favicon to display in all browsers that currently support it?</p>
<p>Please include:</p>
<ol>
<li><p>Which image formats are supported by which browsers.</p></li>
<li><p>Which lines are needed in what places for the various browsers.</p></li>
</ol>
| <p>I go for a belt and braces approach here. </p>
<p>I create a 32x32 icon in both the <code>.ico</code> and <code>.png</code> formats called <code>favicon.ico</code> and <code>favicon.png</code>. The icon name doesn't really matter unless you are dealing with older browsers.</p>
<ol>
<li>Place <code>favicon.ico</cod... | <p>The answer to this question has become <a href="https://stackoverflow.com/a/48969053/7343159">complicated enough</a> that the best way is to just use a tool like RealFaviconGenerator, which lets you upload a png/jpg and then generates favicons and code to cover all the platforms for you: <a href="https://realfavicon... | 5,776 |
<p>I just acquired a new Creality Ender 5 Pro. It was assembled very easily. Today I tried my first print - the Dog demo that came on the MicroSD just to see how it worked. It is a 2.5 hour print.</p>
<p>While I was preheating there was a thermal runaway error while I was feeding the filament up through the tube. I res... | <p>Since I have been unable to find a way to fix the E3D V6 clone hotend I have instead replaced it with a Creality Mk 8 that I had on-hand, which has so far worked flawlessly.</p>
<p>I am assuming that the improved performance is related to the use of a shorter nozzle and/or the Bowden tube butting directly against th... | <p>I had issues with my all metal hot-end where I got heat creep. I ended up doing e-steps, PID tune, and ensuring my speed wasn't too slow either. Is your printer in an enclosure? I found that mine being in an enclosure caused the hotend to not cool sufficiently, so I had to lower the hot bed temp by 10 degrees and th... | 2,170 |
<p>I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:</p>
<ul>
<li>learn the ins and out of C in Visual Studio</... | <p>well you can use visual studio just fine take a look at here man
<a href="http://www.daniweb.com/forums/thread16256.html" rel="noreferrer">http://www.daniweb.com/forums/thread16256.html</a></p>
<p>Go to View Menu select Solution Explorer or CTRL+ ALT +L</p>
<p>Then Select The project that your are developing and r... | <p>Visual Studio or Express do consider .c files as C code, but the compiler will keep giving warnings, and irritating suggestions which you do not require, in the debugger. Gives an indication that Visual C++, as the name suggests is optimized for C++ development for the Windows Operating system, which was originally ... | 4,823 |
<p>Every time I start a print, midway during printing, my printer starts to under extrude.</p>
<p>I tried lots of different models every time the problem occurs.</p>
<p>What should I do about this?</p>
| <p>This is some kind of filament stuck in the hotend tube problem. Just like "heat creep" as mentioned above. PTFE pipes should be checked, all parts should be carefully cleaned. I also add checking the extruder (gears, tightness) to the list. The plastic extruder can structurally loosen or break over time. I... | <p>If everything is stock on the machine and all other setting are properly configured, this is most likely <a href="https://all3dp.com/2/3d-printer-heat-creep/" rel="nofollow noreferrer">heat creep</a>. This is caused when the PFTE tubing is not properly set within the hot end itself leaving a small gap. As filament... | 1,926 |
<p>What GUI should use to run my JUnit tests, and how exactly do I do that? My entire background is in .NET, so I'm used to just firing up my NUnit gui and running my unit tests. If the lights are green, I'm clean. </p>
<p>Now, I have to write some Java code and want to run something similar using JUnit. The JUnit doc... | <p>Eclipse is by-far the best I've used. Couple JUnit with a <a href="http://www.eclemma.org/" rel="nofollow noreferrer">code coverage</a> plug-in and Eclipse will probably be the best unit-tester.</p>
| <p>Why you need a GUI runner? Can't you just run the tests from the IDE itself?</p>
<p>In .Net we have <a href="http://testdriven.net/" rel="nofollow noreferrer">TestDriven.net</a>, in Java there must be something equivalent. You can check out <a href="http://en.wikipedia.org/wiki/IntelliJ_IDEA" rel="nofollow noreferr... | 8,360 |
<p>Is there any way to convert a bmp image to jpg/png without losing the quality in C#? Using Image class we can convert bmp to jpg but the quality of output image is very poor. Can we gain the quality level as good as an image converted to jpg using photoshop with highest quality?</p>
| <pre><code>var qualityEncoder = Encoder.Quality;
var quality = (long)<desired quality>;
var ratio = new EncoderParameter(qualityEncoder, quality );
var codecParams = new EncoderParameters(1);
codecParams.Param[0] = ratio;
var jpegCodecInfo = <one of the codec infos from ImageCodecInfo.GetImageEncoders() with m... | <p>You can try:</p>
<pre><code>Bitmap.InterpolationMode = InterpolationMode.HighQualityBicubic;
</code></pre>
<p>and</p>
<pre><code>Bitmap.CompositingQuality = CompositingQuality.HighQuality;
</code></pre>
<p>Which does keep the quality fairly high, but not the highest possible.</p>
| 6,303 |
<p>Given the Marlin Firmware what is the difference between the following lines of code:</p>
<blockquote>
<p>G4 S20</p>
</blockquote>
<p>and</p>
<blockquote>
<p>G4 P2000</p>
</blockquote>
| <p>The answer is that <strong><em>it depends on the type of firmware</em></strong> you are using.</p>
<p>Let us look at the documentation of <a href="https://reprap.org/wiki/G-code#G4:_Dwell" rel="nofollow noreferrer"><code>G4</code></a> to find that <code>G4</code> is valid for all the listed firmware types:
<a href=... | <p>The code <code>G4</code> refers to <em>dwell</em>. (From what I'm seeing, it can be written as either <code>G4</code> or <code>G04</code>). <code>P</code>is the length of dwell time, usually in milliseconds. The parameter <code>S</code> seems to be invalid, because the only inputs are <code>X</code> (seconds), <code... | 1,092 |
<p>The system default polygon fill mode in current device context is <code>ALTERNATE</code> (as I've learned from the Petzold book on Windows programming) and this one is used in <a href="http://msdn.microsoft.com/en-us/library/ms533274(VS.85).aspx" rel="nofollow noreferrer"><code>Polygon</code></a> Win32 function unle... | <p>I don't know the answer off the top of my head, but you could try finding out by retrieving the fill mode before and after the call. If it's not different, it's either not been changed, or was changed then changed back.</p>
| <p>I looked at the reference source and FillPolygon without a fill mode simply calls FillPolygon with a fill mode of alternate.</p>
<p>FillPolygone with a fill mode calls a method named GdipFillPolygonI, but I can't find anything about that method.</p>
| 7,454 |
<p>For standard ABS and PLA filament, most distributors recommend storing the filament in an airtight bag. Does not doing this actually make print quality worse? I have left mine in the open for a year and have had no noticeable problems.</p>
| <p>It makes a difference where I live, and I'm not in a particularly humid climate (California). When printing with wet filament, you'll sometimes hear it popping and see steam coming out of the extruder (it's usually only this extreme with nylon). With most other filaments, when they're wet, the extruded filament wi... | <p>I haven't had any other issues storing it in the open, but keeping it in an airtight environment (especially if you live in a humid environment) keeps it moisture free, which can effect print quality. Manufacturers recommend this to help keep filament dry.</p>
| 107 |
<p>I'm building a Kossel Mini, and I'm stuck on the extruder motor holder.</p>
<p>My Kossel came without instructions, I was given a set of instructions by a friend (the "Kossel Build Guide" by Blomker industries). I also found some instructions on the net. However, my components are different from those in the build... | <p>Have a look at the image provided in this seller's part description. it probably says more than my words could (which would also only rely on images - your parts just looked like I saw them somewhere before). </p>
<p><a href="http://de.aliexpress.com/item/3D-printer-parts-right-hand-bowden-Extruder-kit-set-no-motor... | <p>The extruder is an MK8 derivative, <em>I think</em>.</p>
<p>After a <em>lot</em> of searching, the closest that I could find (with an assembly diagram) is this product which has more or less the same parts as yours (apart from the small black bolt and sleeve - used as the axis - which you don't have): <a href="http... | 220 |
<p>My printer will feature LM8UU bearings/threaded rods for the z-axis and bronze sinter bushings on the x- and y-Axis.</p>
<p>As also, but not only, written here <a href="http://reprap.org/wiki/Lubrication" rel="nofollow">http://reprap.org/wiki/Lubrication</a>, I know that one should:<br>
- use machine oil for sinte... | <p>A mid-weight PTFE grease like the popular Superlube will work in all the cases you mention (bearings, screws, and sintered bushings). 3D printer service conditions are quite light-duty as far as lubricants are concerned. You really just need to keep everything a little bit "wet" with oil or grease and performance wi... | <p>I needed to grease up my machine and had no access to specialist materials. So I researched, and ended up using Vaseline. </p>
<p>I now have a small tub of it as part of my machine maintenance kit.</p>
| 243 |
<p>I'm not sure how else to describe it. There's probably a name for this but I just don't know it. But the bottom few layers came out great, but the rest came out kind of like a triscuit. Below are pics of my print and settings. I am using a delta style printer. Can someone tell me what this issue is called and how to... | <p>The phenomenon you experience is called <strong>under-extrusion</strong>. Under-extrusion is the effect of extruding lesser filament than required for the print. The result of under-extrusion (depending on the amount of under-extrusion) can be described as <a href="/q/8741/">spongy</a> prints, gaps in prints/layers,... | <p>Just to add to the already made answers:</p>
<p>Check out <strong>heat-creep!</strong></p>
<p>When heat from the hot-end creeps up in the filament, it melts and blocks the extrusion (more or less severely), and under extrusion results.</p>
<p>It's basic characteristic is that the print <strong>starts out great</s... | 1,297 |
<p>Can somebody give me a complete and working example of calling the <code>AllocateAndInitializeSid</code> function from C# code?</p>
<p>I found <a href="http://msdn.microsoft.com/en-us/library/aa375213(VS.85).aspx" rel="nofollow noreferrer">this</a>: </p>
<pre><code>BOOL WINAPI AllocateAndInitializeSid(
__in P... | <p>Using <a href="http://www.codeplex.com/clrinterop" rel="nofollow noreferrer">P/Invoke Interop Assistant</a>:</p>
<pre><code> [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct SidIdentifierAuthority {
/// BYTE[6]
[System... | <p>For Platform Invoke www.pinvoke.net is your new best friend!</p>
<p><a href="http://www.pinvoke.net/default.aspx/advapi32/AllocateAndInitializeSid.html" rel="nofollow noreferrer">http://www.pinvoke.net/default.aspx/advapi32/AllocateAndInitializeSid.html</a></p>
| 8,080 |
<p>how can i create an application to read all my browser (firefox) history?
i noticed that i have in </p>
<p>C:\Users\user.name\AppData\Local\Mozilla\Firefox\Profiles\646vwtnu.default</p>
<p>what looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really what is used to store de history inf... | <p>I believe <code>places.sqlite</code> is the one you should be looking into for history (Firefox 3). Below are a couple of Mozilla wiki entries that have some info on the subject.</p>
<ul>
<li><a href="https://wiki.mozilla.org/Mozilla2:Unified_Storage" rel="noreferrer">Mozilla 2: Unified Storage</a></li>
<li><a href... | <p>The <a href="https://addons.mozilla.org/en-US/firefox/addon/5817" rel="nofollow noreferrer">Firefox SQLite Manager Addon</a> is a great tool. If you wish to learn about the Firefox Places design and DB schema visit <a href="https://developer.mozilla.org/en/Places" rel="nofollow noreferrer">Mozilla Places</a>.</p>
| 7,760 |
<p>I just wonder a bit whether or not GDI+ is still a technology worth using, especially in a .net sense.</p>
<p>Granted, GDI+ is still THE technology to handle Images in Windows, but it is also unmanaged code (obviously). Now, after discovering that GDI+ is actually not supported on ASP.net¹, I just wonder: Is it act... | <p>It's still a technology worth using. There are lots of Windows Forms and unmanaged apps around that use GDI+ that either won't be upgraded, or that will be upgraded, but that don't need more advanced rendering capabilities. GDI+ is a good bolt-on solution for older applications, and for new applications written in W... | <blockquote>
<p>Blockquote
there are plenty of other graphics libraries out there, faster and/or higher quality / fewer system dependencies...</p>
</blockquote>
<p>Could u list some of them libraries that could be used instead of GDI+ with C++ ?</p>
| 4,279 |
<p><em>Disclaimer: I'm stuck on TFS and I hate it.</em></p>
<p>My source control structure looks like this:</p>
<ul>
<li>/dev</li>
<li>/releases</li>
<li>/branches</li>
<li>/experimental-upgrade</li>
</ul>
<p>I branched from dev to experimental-upgrade and didn't touch it. I then did some more work in dev and merge... | <p>@Ben</p>
<p>You can actually do a full delete in TFS, but it is highly not recommended unless you know what you are doing. You have to do it from the command line with the command tf destroy</p>
<pre><code>tf destroy [/keephistory] itemspec1 [;versionspec]
[itemspec2...itemspecN] [/stopat:versionspec] ... | <p>@Nick: No changes have been made to this just yet. I may have to delete it and re-branch (however you really can't fully delete in TFS)</p>
<p>And I have to disagree... branching is absolutely a good practice for experimental changes. Shelving is just temporary storage that will get backed up if I don't want to ... | 6,400 |
<p>Should we really close this question: <a href="https://3dprinting.stackexchange.com/questions/10200/3d-printer-part-clones-from-china-legality">3d printer part clones from china - legality</a>..? </p>
<p>Are legal questions on topic? We have a legal section in the <a href="https://3dprinting.meta.stackexchange.com... | <p><strong>I say allow them.</strong> </p>
<p>To let you know what's out there, I work at <a href="http://hyrel3d.com" rel="nofollow noreferrer">Hyrel</a>. </p>
<p>Our printers can take <a href="https://www.youtube.com/watch?v=B0lvN-aPYHI" rel="nofollow noreferrer">spindle (milling) heads and additional axes</a>, and... | <p>This is a tricky one, as 3d printers are starting to be bundled with lasers. Note those kits will totally blind you. 3d printers are being bundled with everything, really if you look at the things <a href="http://diabasepe.com/" rel="nofollow noreferrer">http://diabasepe.com/</a> is making. (Cool guys btw)</p>
<p>H... | 67 |
<p>I have a Tronxy P802M (very similar to the Anet A8, but using a Melzi2.0V5 board) that seems to work fine (I just finished building, and axes movement and the integrated display work) but when I try to connect to the printer from my Simplify3D on Windows 10, I get the following:</p>
<pre><code>[...]
Connected to ... | <p>The <a href="https://www.simplify3d.com/support/faq/#faq-4630" rel="nofollow noreferrer">Simplify3D support site</a> mentions to disable the "wait for startup command" option in the firmware configuration for S3D.</p>
<p>This allows me to make a rudimentary connection to control the printer, however e.g. during the... | <p>Try changing your port in the control menu. By default, mine is set to <code>COM 1</code> and I have to change it to <code>COM 3</code>.</p>
| 498 |
<p>What is current state of the art for enabling OpenID login in Ruby on Rails applications? This is a community wiki with up-to-date answers to this question.</p>
<h2>Authlogic</h2>
<p>The most advanced authentication solution seems to be <a href="http://github.com/binarylogic/authlogic" rel="noreferrer">Authlogic</a... | <p>Check out this <a href="http://railscasts.com/episodes/68-openid-authentication" rel="nofollow noreferrer">Railscast on OpenId</a> for more info. I'm not sure if/how it might work alongside restful_authentication, but might be a good resource. (I haven't watched it yet)</p>
| <p>Keep an eye on <a href="http://jimneath.org/2008/09/09/bort-base-rails-application/" rel="nofollow noreferrer">Bort</a>. It is a base rails application which already has restful_authentication setup among other things. The guy doing it is planning on adding OpenID.</p>
| 9,244 |
<p>This has happened a few times whenever I print with the white PLA (Hatchbox 1.75 mm). It seems that the print job produces smooth sidewalls for most of the part but at a certain point and above, the walls become rough as if the alignment is off or something. I've attached a picture to show the issue. Does anybody ha... | <p>If you want to change settings on some area of your part check out <a href="http://slic3r.org/blog/modifier-meshes" rel="nofollow noreferrer">modifier meshes in Slic3r</a>.</p>
<p>It looks like to0 much heat is delivered when solid infill starts and some melting occurs. See <a href="https://all3dp.com/common-3d-pri... | <p>Slic3r has an option of</p>
<pre><code>Solid infill threshold area
</code></pre>
<p>which is the area that when you pass it (and start printing smaller than it), the infill becomes solid.</p>
<p>If you set it to a smaller number (or 0), then your infill won't become solid and the problem will vanish.</p>
<p>Sou... | 527 |
<p>I'm working on a database for a small web app at my school using <code>SQL Server 2005</code>.<br>
I see a couple of schools of thought on the issue of <code>varchar</code> vs <code>nvarchar</code>:</p>
<ol>
<li>Use <code>varchar</code> unless you deal with a lot of internationalized data, then use <code>nvarchar</... | <p>Always use nvarchar. </p>
<p>You may never need the double-byte characters for most applications. However, if you need to support double-byte languages and you only have single-byte support in your database schema it's really expensive to go back and modify throughout your application. </p>
<p>The cost of migrat... | <p>If you are using <code>NVARCHAR</code> just because a system stored procedure requires it, the most frequent occurrence being inexplicably <code>sp_executesql</code>, and your dynamic SQL is very long, you would be better off from performance perspective doing all string manipulations (concatenation, replacement etc... | 5,583 |
<p>In Java, you often see a META-INF folder containing some meta files. What is the purpose of this folder and what can I put there?</p>
| <p>From <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html" rel="noreferrer">the official JAR File Specification</a> (link goes to the Java 7 version, but the text hasn't changed since at least v1.3):</p>
<blockquote>
<h2>The META-INF directory</h2>
<p>The following files/directories in the MET... | <p>You have MANIFEST.MF file inside your META-INF folder. You can <strong>define optional or external dependencies</strong> that you must have access to.</p>
<p><strong>Example:</strong></p>
<p>Consider you have deployed your app and your container(at run time) found out that your app requires a newer version of a li... | 9,560 |
<p>I have a heavily modified DiscoEasy 200 from Dagoma, see picture:</p>
<p><a href="https://i.stack.imgur.com/XVfL4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XVfL4.jpg" alt="enter image description here"></a></p>
<p>The heatbed is mounted on 4 springs, on top of the original plate. I made su... | <p>Did you check if your bed is parallel to the gantry? </p>
<p>It can happen that after leveling one side and moving to the other the adjustment there puts the first side out of alignment - I level my bed by doing some couple turns</p>
| <p>As I understand your question:</p>
<ol>
<li>You manually go through a leveling process and have it set up well.</li>
<li>You allow the printer to "auto-level". </li>
<li>You print, and the right side is too low by about 0.1mm. </li>
</ol>
<p>Is it possible that the filament (which is on the left side) pulls up on... | 1,251 |
<p>I'm trying to convert a multipage color tiff file to a c# CompressionCCITT3 tiff in C#. I realize that I need to make sure that all pixels are 1 bit. I have not found a useful example of this online.</p>
| <p>You need this conversion as CCITT3 and CCITT4 don't support color (if I remember right).</p>
| <p>I saw the above code, and it looked like it was converting every pixel with manual logic.</p>
<p>Would this work for you?</p>
<p>Imports System.Drawing.Imaging</p>
<p>'get the color tif file</p>
<p>Dim bmpColorTIF As New Bitmap("C:\color.tif")</p>
<p>'select the an area of the tif (will grab all frames)</p>
<p... | 6,624 |
<p>I need to develop some programs for mobile devices but haven't decided the platform to build upon. I'm looking for Palm or Pocket PC devices that have Touch screen and Wi-Fi connection and are cheep because I'll need to buy several of them. </p>
<p>I don't really need camera, mp3 players, video players, pdf readers... | <p><strong>Windows Mobile</strong><br>
It supports C#, and Visual Studio comes with the mobile SDK. So if you know C# you probably already have the tools you need. And in spite of the iPhone/iPodTouch buzz, the Windows Mobile deployment is still 10X greater.</p>
| <p>Windows Mobile and CE used to suck, really, really badly. These days however it's definitely passable and worth checking out, especially if you code C#.
Just remember that it is the baby brother of the full framework and has nowhere near enough toys and throws a lot of NotImplementedExceptions. :)</p>
| 6,123 |
<p>I have a Glade GUI description file with a <code>GtkTreeView</code> in a <code>GtkHBox</code> in a window; and there's a handler for the <code>row_activated</code> signal. Now, Glade has automatically set the "events" property (inherited from <code>GtkWidget</code>) of that treeview to some value (<code>GDK_POINTER_... | <p>It's a bug in glade, it always sets the event property of widgets it create. It has no notion of the default value of a property so it always sets it.</p>
| <p>Doesn't this mask indicate the events you're willing to receive? In this case, you'll probably want to receive notification that the user has clicked or double-clicked an item in the GtkTreeView, and you'll want to register callbacks to handle these events.</p>
| 9,008 |
<p>How do I make <a href="http://logging.apache.org/log4net/index.html" rel="noreferrer">Log4net</a> only log Info level logs? Is that even possible? Can you only set a threshold? </p>
<p>This is what I have, and it logs Info and above as I would expect. Is there anything i can do to make it only log info?</p>
<pre c... | <p>Within the definition of the appender, I believe you can do something like this:</p>
<pre class="lang-xml prettyprint-override"><code><appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="INFO"... | <p>you can use log4net.Filter.LevelMatchFilter.
other options can be found at
<a href="http://www.beefycode.com/post/log4net-tutorial-pt-7-filters.aspx" rel="nofollow noreferrer">log4net tutorial - filters</a></p>
<p>in ur appender section add</p>
<pre class="lang-xml prettyprint-override"><code><filter type="log4... | 2,786 |
<p>Is there a way to collect (e.g. in a List) multiple 'generic' objects that don't share a common super class? If so, how can I access their common properties?</p>
<p>For example:</p>
<pre><code>class MyObject<T>
{
public T Value { get; set; }
public string Name { get; set; }
public MyObject(string n... | <p>I don't think it is possible in C#, because MyObject is not a baseclass of MyObject. What I usually do is to define an interface (a 'normal' one, not generic) and make MyObject implement that interface, e.g.</p>
<pre><code>interface INamedObject
{
string Name {get;}
}
</code></pre>
<p>and then you can use the ... | <p>The best way would be to add a common base class, otherwise you can fall back to reflection.</p>
| 7,473 |
<p>How does a stack overflow occur and what are the best ways to make sure it doesn't happen, or ways to prevent one, particularly on web servers, but other examples would be interesting as well?</p>
| <h2>Stack</h2>
<p>A stack, in this context, is the last in, first out buffer you place data while your program runs. Last in, first out (LIFO) means that the last thing you put in is always the first thing you get back out - if you push 2 items on the stack, 'A' and then 'B', then the first thing you pop off the stac... | <p>Considering this was tagged with "hacking", I suspect the "stack overflow" he's referring to is a call stack overflow, rather than a higher level stack overflow such as those referenced in most other answers here. It doesn't really apply to any managed or interpreted environments such as .NET, Java, Python, Perl, PH... | 4,577 |
<p>We have the question <a href="/q/24886">is there a performance difference between <code>i++</code> and <code>++i</code> <strong>in C</strong>?</a></p>
<p>What's the answer for C++?</p>
| <p>[Executive Summary: Use <code>++i</code> if you don't have a specific reason to use <code>i++</code>.]</p>
<p>For C++, the answer is a bit more complicated.</p>
<p>If <code>i</code> is a simple type (not an instance of a C++ class), <a href="https://stackoverflow.com/a/24887/194894">then the answer given for C ("N... | <p><code>++i</code> is faster than <code>i++</code> because it doesn't return an old copy of the value.</p>
<p>It's also more intuitive:</p>
<pre><code>x = i++; // x contains the old value of i
y = ++i; // y contains the new value of i
</code></pre>
<p><a href="http://ideone.com/ivrj9b" rel="nofollow">This C exam... | 4,454 |
<p>If I set my prints on the window sill (indoors) will the sunlight still be able to cure the resin? The problem with setting them outside is the wind knocking them over.</p>
| <p>The glass will block most of the uv light; but not all. It will depend on the type of light that the resin is sensitive to; in order to determine if it will continue to cure behind a glass window in direct sunlight. Some resins also sensitive to blue light. You will need to look at the material data sheet for the re... | <p>Yes.</p>
<p>I frequently leave models made on a Saturn printer with Elegoo gray resin on a surface in the sun to slow cure them. If properly cleaned their finish is indistinguishable from models rapid cured in a UV chamber.</p>
<p>It should be noted that I only do this with small models that are Table top miniature ... | 1,600 |
<p>I'm trying to setup CruiseControl.net at the moment. So far it works nice, but I have a Problem with the MSBuild Task.</p>
<p>According to the <a href="http://confluence.public.thoughtworks.org/display/CCNET/MsBuild+Task" rel="noreferrer">Documentation</a>, it passes CCNetArtifactDirectory to MSBuild. But how do I ... | <p>The CCNetArtifactDirectory is passed to the MSBuild by default, so you dont need to worry about it. MSBuild will place the build output in the "bin location" relevant to the working directory that you have specified.</p>
<pre><code><executable>c:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable... | <p>Parameters like <code>CCNetArtifactDirectory</code> are passed to external programs using environment variables. They are available in the external program but they aren't inside <code>CCNET</code> configuration. This often leads to confusion.</p>
<p>You can use a preprocessor constant instead: </p>
<pre><code><... | 2,327 |
<p>What would be a good tag to use for doing business/making profit with a 3D printer?</p>
| <p>I'd suggest two different tags:</p>
<ul>
<li><p>[monetization]: For selling, or profiting from printing, or from printing machines</p></li>
<li><p>[financing] (or [costs]): For calculating the cost of materials and machines, including operational expenses.</p></li>
</ul>
| <p>I would propose something as [business] or [commercial-use] as opposed to [personal-use] to differentiate between these posibilites.</p>
| 11 |
<p>What tools are useful for automating clicking through a windows form application? Is this even useful? I see the testers at my company doing this a great deal and it seems like a waste of time.</p>
| <p>Check out <a href="https://github.com/TestStack/White" rel="nofollow noreferrer">https://github.com/TestStack/White</a> and <a href="http://nunitforms.sourceforge.net/" rel="nofollow noreferrer">http://nunitforms.sourceforge.net/</a>. We've used the White project with success.</p>
| <p>There's a couple out there. They all hook into the windows API to log item clicks, and then reproduce them to test.</p>
<p>We're now mostly web based (using WatiN), but we used to use Mercury Quicktest. </p>
<p>Don't use Quicktest, it's awful for a tremendously long list of reasons.</p>
| 3,355 |
<p>I'm just starting to design some embedded devices, and am looking for resources.</p>
<p>What I want to be able to do is to connect a GPS receiver to a lightweight SBC or mini-ITX, x86-based computer, and track a remote-controlled vehicle's location/progress.</p>
<p>Ideally, this could morph into building some hobb... | <p><a href="http://www.openembedded.org" rel="nofollow noreferrer">OpenEmbedded</a> is a good place to go to get started. A lot of embedded products use ARM and other processors, so cross-compiling is a big deal. <a href="http://buildroot.uclibc.org/" rel="nofollow noreferrer">Buildroot</a> is another resource for bu... | <p>Some people here have suggested devices like the gumstix - embedded devices which cost $149 without GPS. I don't understand that bit. A off-the-shelf TomTom comes with running Linux on ARM, built-in GPS, lots of flash, battery and screen. It's hard to beat the price advantage that comes with mass production. For you... | 8,185 |
<p>I just recently upgraded my Printrbot Simple Metal with a heated bed (and longer x-axis). I looked up some tutorials, and all of them placed the thermistor as in the picture on the left below, so I did too. However, the design of the heat plate seems to strongly suggest thermistor placement as in the picture on the ... | <p>You are correct about the walls. Using a <em>Solidify</em> object modifier is probably your best bet. A low <em>Thickness:</em> value (<em>0.1</em> is probably good) helps keep the walls thin but strong. You can monitor the thickness while you adjust the value from <em>Wireframe</em> view.</p>
<p><a href="https://i... | <blockquote>
<p>What are the things that i have to watch out for when 3d printing? </p>
</blockquote>
<p><a href="https://blender.stackexchange.com/q/7910/2816">non manifold geometry</a> : geometry that can not exist in the real world. </p>
<p>It's a good idea to check if the dimensions of your mesh are correct b... | 306 |
<p>I think it's best that I explain what my issue is before I explain how I arrived here. I have a Tronxy x5s with a stock board that I am repairing for the sake of repairing, even though I know I should probably just spring for a new board. It's the principle of the thing. </p>
<ul>
<li>The extruder thermistor accura... | <p>Thermal expansion is opening a connection somewhere. It might not be one of your solderings, but if you shorted the board bad enough to fry pins, it could have cooked something somewhere else, and putting current through it is heating up the spot enough to break the connection. Either somewhere else in/on the board,... | <p>I am having the same issue so in the firmware instead of changing to an empty pin, I swapped pins 6 and 7 so the nozzle temp would read from the bed temp plug on the board. Now the nozzle temp is reading properly i went into configurations.h line 291 and changed the 1 to 999 and on line 295 i changed the value to 60... | 998 |
<p>Here is the sequence of my Gcode, printed in mid-air:</p>
<pre><code>Print (E20)
Retract (E-20)
Dwell (G4 10,000)
Move away (E0)
Print (E20)
</code></pre>
<p>See the path on the printscreen below:
<a href="https://i.stack.imgur.com/rbYqY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rbYqY.png"... | <p>Since you retracted the filament (very far), but stay at elevated temperature for almost 2 minutes, this must be left-over residue inside the nozzle/throat that is stuck to the wall that becomes liquid and oozes out of the nozzle because gravity pulls it downwards.</p>
<p><a href="https://3dprinting.stackexchange.c... | <p>Since you retracted the filament (very far), but stay at elevated temperature for almost 2 minutes, this must be left-over residue inside the nozzle/throat that is stuck to the wall that becomes liquid and oozes out of the nozzle because gravity pulls it downwards.</p>
<p><a href="https://3dprinting.stackexchange.c... | 1,106 |
<p>What are the biggest pros and cons of <a href="http://incubator.apache.org/thrift/" rel="noreferrer">Apache Thrift</a> vs <a href="http://code.google.com/apis/protocolbuffers/" rel="noreferrer">Google's Protocol Buffers</a>?</p>
| <p>They both offer many of the same features; however, there are some differences:</p>
<ul>
<li>Thrift supports 'exceptions'</li>
<li>Protocol Buffers have much better documentation/examples</li>
<li>Thrift has a builtin <code>Set</code> type</li>
<li>Protocol Buffers allow "extensions" - you can extend an external pr... | <p>It's also important to note that not all supported languages compair consistently with thrift or protobuf. At this point it's a matter of the modules implementation in addition to the underlying serialization. Take care to check benchmarks for whatever language you plan to use.</p>
| 9,472 |
<p>When trying to print parts that should contain certain sized holes, e.g. for screws, how to achieve that they are sized correctly?</p>
<p>Is it possible to calibrate the printer perfectly, so it prints holes correctly sizes in all common sizes (e.g. starting at 2mm diameter)? Or is it better to design the holes lar... | <p><a href="http://hydraraptor.blogspot.nl/2014/06/why-slicers-get-dimensions-wrong.html" rel="nofollow noreferrer">The reason holes come out undersized is generally the slicer</a>, so calibrating the printer itself cannot solve the issue (without making other things worse). The output of the printer is exactly what it... | <p>Make sure you know what purpose the holes are to serve. If they are <em>clearance</em> holes , i.e. designed so that the screw or bolt slides thru easily, then there's nothing wrong with a slight oversize.<br>
If you want a <em>tappable</em> hole, i.e. either drive threads for a machine screw or self-tap with wood/... | 458 |
<p>Is the firts time that I saw this movement after the printing has finishig and causes the nozzle crashes to the printed part and I noticed due the part is 14x8 and the nozzle is to near and below to the border of the shape. I supposed that some scripts has changed but, seems to be everything ok.</p>
<p>this is the ... | <p>You can use:</p>
<pre><code>G91
G1 Z10
</code></pre>
<p><code>G91</code> make the printer use ralative positioning, while <code>G1 Z10</code> would move the gantry up of 10mm, reagrdless of its actual position.</p>
<p>In order to understand what's going on, you could experiment with the position of those lines in... | <p>There is something fundamentally wrong with your z-motor drive if both screws are dropping the gantry at all.</p>
<p>Try a couple experiments.<br>
Write a quick script to move the head somewhere up high, then terminate without the X-homing command. See if the z-axis moves. Ditto for X-home but not motor disable.... | 828 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.