instruction
stringlengths
27
22.5k
chosen
stringlengths
27
28.2k
rejected
stringlengths
19
24.9k
__index_level_0__
int64
0
10k
<p>When I design parts that must fit in each other, I usually keep in mind that prints are 0.2-0.5 mm wider than expected (depending on material) and I size the parts accordingly.</p> <p>However, sometimes I design the whole part and then I slice it with planes or lines. In these cases I need to push/pull afterwards e...
<p>Unfortunately, 123D Design doesn't have such a feature.</p> <p>You could select multiple surfaces and push/pull them all at the same time though.</p> <p>Remember, your 3D Printer's slicer should have an option to undersize or oversize holes and walls, to help reduce/remove the effect you talk about. It's called s...
<p>AFAICT Push/Pull faces is the closest thing to what you're looking for. eg: <div class="youtube-embed"><div> <iframe width="640px" height="395px" src="https://www.youtube.com/embed/oSkTxuCRLMg?start=38"></iframe> </div></div></p> <p>In OnShape there is an &quot;offset face&quot; command...
413
<p>On the other end of the spectrum, I would be happy if I could install a wiki and share the login credentials between <a href="http://en.wikipedia.org/wiki/WordPress" rel="nofollow noreferrer">WordPress</a> and the wiki. I hacked <a href="http://en.wikipedia.org/wiki/MediaWiki" rel="nofollow noreferrer">MediaWiki</a>...
<p>The tutorial <em><a href="https://bbpress.org/forums/topic/mediawiki-bbpress-and-wordpress-integration/" rel="nofollow noreferrer">WordPress, bbPress &amp; MediaWiki</a></em> should get you on the right track to integrating MediaWiki into your WordPress install. It's certainly going to be a <em>lot</em> easier than ...
<p>My company uses WordPress and MediaWiki internally and we use HTTP_AUTH access control to create a "single sign on". As we add more applications, we simply integrate them into the HTTP_AUTH system where practical. For security, you can run HTTP_AUTH over SSL. The basic steps are:</p> <p>Configure the .htaccess t...
5,382
<p>I'm looking for an online solution for generating .ICO files. I'd like the ICO files to have the ability to have transparency as well.</p> <p>What software or web site do you use to create them?</p> <p>[Update]</p> <p>To clarify, I have an existing image in PNG format, 32 x 32 pixels. I want to generate the ico...
<p>I have found the application <a href="http://icofx.ro/" rel="nofollow noreferrer">IcoFx</a> useful, you can import pretty much any image type to use for icon creation, including PNG's.</p>
<p>I can't imagine drawing icons online. Nowadays icons are usually <em>drawn</em> as vectors, and I'm not aware of any online vector packages.</p> <p>In case you decide to draw off-line instead, I use Xara (www.xara.com) to draw all my computer artwork, and I use Gif Movie Gear to create .ico files. The former is ...
2,974
<p>Got this from some mysql queries, puzzled since error 122 is usually a 'out of space' error but there's plenty of space left on the server... any ideas?</p>
<p>The answer: for some reason Mysql had its tmp tables on the /tmp partition which was limited to 100M, and was filled up by eaccelerator cache to 100M even though eaccel is limited to 16M of usage. Very weird, but I just moved eaccel cache elsewhere and problem solved.</p>
<p>I resolve this issue by increasing my disk size. try df -h to check whether there are enough disk space on your server.</p>
9,355
<p>I assume that <code>char* = "string"</code> is the same to <code>char* = new char[6]</code>. I believe these strings are created on the heap instead of the stack. So do I need to destroy them or free their memory when I'm done using them or do they get destroyed by themselves?</p>
<p>No. You only need to manually free strings when you manually allocate the memory yourself using the <code>malloc</code> function (in C) or the <code>new</code> operator (in C++). If you do not use <code>malloc</code> or <code>new</code>, then the <code>char*</code> or string will be created on the stack or as a comp...
<p>new is always an allocation whereas defining a string inline actually embeds the data in the program itself and cannot be changed (some compilers allow this by a smart trick, don't bother).</p> <p>Some compilers type inline strings so that you cannot modify the buffer.</p> <pre><code>char* const sz1 = "string"; //...
7,475
<p>Is there a way to identify, from within a VM, that your code is running inside a VM?</p> <p>I guess there are more or less easy ways to identify specific VM systems, especially if the VM has the provider's extensions installed (such as for VirtualBox or VMWare). But is there a general way to identify that you are n...
<p>A lot of the research on this is dedicated to detecting so-called "blue pill" attacks, that is, a malicious hypervisor that is actively attempting to evade detection. </p> <p>The classic trick to detect a VM is to populate the ITLB, run an instruction that <strong>must</strong> be virtualized (which necessarily cl...
<p>If it VM does the job well, it should be invisible to the client that it's being virtualized. However, one can look at other clues.</p> <p>I would imagine that looking for known drivers or software specific to the VM environment would be the best possible way.</p> <p>For example, on a VMWare client running Windows...
6,061
<p><a href="https://i.stack.imgur.com/qNWsZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qNWsZ.png" alt="extruded text on flat surface"></a></p> <p>Hey!</p> <p>Pretty new to all this. Wondering how you would approach this problem to have an extruded element on top of a flat surface. I want to av...
<p>welcome to 3DPrinting.</p> <p>To make this easier to talk about, let me call the surface on which you want to print the letters the "tabletop". </p> <p>Looking at your picture, let me guess that you would print the object with the tabletop down. Then everything prints naturally, with no bridging and no overhangs....
<p>One way that I have solved that issue is by model it in openscad and embed the letters in the surface. then with my dual headed printer, print the letters in a different color. No support material is needed in that case.</p>
1,018
<p>I remember back when MS released a forum sample application, the design of the application was like this:</p> <p>/Classes/User.cs /Classes/Post.cs ... /Users.cs /Posts.cs</p> <p>So the classes folder had just the class i.e. properties and getters/setters. The Users.cs, Post.cs, etc. have the actual methods that ac...
<p>If every method is just a static call straight to the data source, then the "Posts" class is really a Factory. You could certainly put the static methods in "Posts" into the "Post" class (this is how CSLA works), but they are still factory methods.</p> <p>I would say that a more modern and accurate name for the "P...
<p>Are you sure the classes aren't partial classes. In which case they really aren't two classes, just a single class spread across multiple files for better readability.</p>
8,252
<p>I am trying to register to a "Device added/ Device removed" event using WMI. When I say device - I mean something in the lines of a Disk-On-Key or any other device that has files on it which I can access...</p> <p>I am registering to the event, and the event is raised, but the EventType propery is different from th...
<p>Well, I couldn't find the code. Tried on my old RAC account, nothing. Nothing in my old backups. Go figure. But I tried to work out how I did it, and I think this is the correct sequence (I based a lot of it on this <a href="http://www.codeproject.com/KB/system/HwDetect.aspx" rel="nofollow noreferrer">article</a>):<...
<p>Oh! Yup, I've been through that, but using the raw Windows API calls some time ago, while developing an ActiveX control that detected the insertion of any kind of media. I'll try to unearth the code from my backups and see if I can tell you how I solved it. I'll subscribe to the RSS just in case somebody gets there ...
6,081
<p>The company I work for makes hardware that communicates to the computer though a serial port. Third party companies write software that communicates with our hardware. </p> <p>There are times when I need to diagnose our hardware. However, a third party software app connects to the serial port when Windows starts up...
<p>You can use the <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx" rel="noreferrer">process explorer</a> tool also from SysInternals to search for open handles. In this case you would want to search for 'Serial' since it uses device names that may not map to com port numbers. (e.g. COM1 is \Dev...
<p><a href="http://technet.microsoft.com/en-us/sysinternals/default.aspx" rel="nofollow noreferrer">Sysinternals</a> has a slew of utilities I find very useful and educational for tracking down what processes are doing to the system.</p> <p>They have a utility that does exactly what you need called <a href="http://tec...
6,361
<p>I'm trying to programmatically restrict the memory consumption of plugins running in a .Net AppDomain, but I can't find any setup parameters for this, nor can I find a way to query an AppDomain to figure out how much memory it is consuming. Any ideas?</p>
<p>Old question, but in the meantime (since .Net framework 4.0) a new solution is available. You will have to enable ARM (Application domain Resource Monitoring). From that point on, you can request information on total consumed processor time, memory usage etc.</p> <p><a href="https://msdn.microsoft.com/en-us/library...
<p>Using the mscoree.CorRuntimeHostClass interop from C:\WINDOWS\Microsoft.NET\Framework\vXXXXXX\mscoree.tlb</p>
4,566
<p>Imagine a DOS style .cmd file which is used to launch interdependent windowed applications in the right order.</p> <p>Example:<br> 1) Launch a server application by calling an exe with parameters.<br> 2) Wait for the server to become initialized (or a fixed amount of time).<br> 3) Launch client application by calli...
<p>Remember that PowerShell can access .Net objects. The Start-Sleep as suggested by <a href="https://stackoverflow.com/questions/49402/creating-batch-jobs-in-powershell#49520">Blair Conrad</a> can be replaced by a call to <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.waitforinputidle.aspx...
<p>To wait 10 seconds between launching the applications, try</p> <pre><code>launch-server-application serverparam1 serverparam2 ... Start-Sleep -s 10 launch-client-application clientparam1 clientparam2 clientparam3 ... </code></pre> <p>If you want to create a script and have the arguments passed in, create a file ca...
7,193
<p>I am wondering if anyone else is experiencing these same issues:</p> <p>My main dev machine is a Dell, running Vista Home Premium and Visual Studio 2008 - both fully patched / up-to-date.</p> <p>There are some quirks, such as the play/pause media controls on my keyboard not working while running Visual Studio 2008...
<p>VS2008 runs fine on my Vista. All service packs (both VS &amp; Vista) are installed.</p> <p>I'm also using a MS keyboard: <a href="http://www.microsoft.com/hardware/mouseandkeyboard/ProductDetails.aspx?pid=094&amp;active_tab=overview" rel="nofollow noreferrer">Laser Desktop 4000</a>.</p>
<p>have you tried doing things in elevated privileges mode? including reinstalling and all...</p>
4,812
<p>I have a javascript function that manipulates the DOM when it is called (adds CSS classes, etc). This is invoked when the user changes some values in a form. When the document is first loading, I want to invoke this function to prepare the initial state (which is simpler in this case than setting up the DOM from t...
<p>Definitely use <code>onload</code>. Keep your scripts separate from your page, or you'll go mad trying to disentangle them later.</p>
<p>My take is the former becauase you can only have 1 window.onload function, while inline script blocks you have an <em>n</em> number.</p>
6,224
<p>I'm using visual studio 2008 and <a href="http://en.wikipedia.org/wiki/ReSharper" rel="noreferrer">ReSharper</a> 4 and it's kind of slow. My machine has 2 GB of RAM, dual core processor and a 7200 rpm hard disk. I know more RAM and a faster hard disk could improve performance, but do you have any tips to improve ReS...
<p><strong>Turn off the annoying RSS reader</strong></p> <ul> <li>Tools, Options, Environment, Startup</li> </ul> <p><strong>Turn off all the animations</strong></p> <ul> <li>Tools, Options, Environment, Animate Environment Tools</li> </ul> <p><strong>Install the <a href="http://msdn.microsoft.com/en-us/vstudio/pro...
<p>I'm having the exact same issue, and from the JetBrains site, it looks like they sort-of know about it but aren't admitting anything. Turning off solution-wide analysis does seem to help quite a bit.</p>
4,359
<p>I was discussing neural networks (NN) with a friend over lunch the other day and he claimed the the performance of a NN written in Java would be similar to one written in C++. I know that with 'just in time' compiler techniques Java can do very well, but somehow I just don't buy it. Does anyone have any experience...
<p>The Hotspot JIT can now produce code <em>faster</em> than C++. The reason is run-time empirical optimization.</p> <p>For example, it can see that a certain loop takes the "false" branch 99% of the time and reorder the machine code instructions accordingly.</p> <p>There's lots of articles about this. If you want ...
<p>In the grand scheme of things, you're debating maybe a 5% performance difference where you'd get several orders of magnitude increase by moving to CUDA or dedicated hardware.</p>
9,016
<p>I am calling a vendor's Java API, and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (CPU at 100% usage). The same app on other servers does not exhibit this behavior. This happens on WebSphere and Tomcat. The environment is tricky to set up so it is diffic...
<p>If you are using Java 5 or later, you can connect to your application using <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html" rel="noreferrer">jconsole</a> to view all running threads. jstack also will do a stack dump. I think this should still work even inside a container like...
<p>For completeness sake: even though my company more or less standardizes on Eclipse we use Netbeans (6 and up) with its <a href="http://profiler.netbeans.org/" rel="nofollow noreferrer">included, free profiler</a> on a daily basis. It works better than the Eclipse TPTP plugin (last checked 3 months ago) and for us it...
3,400
<p>I have a table in SQL Server that I inherited from a legacy system thats still in production that is structured according to the code below. I created a SP to query the table as described in the code below the table create statement. My issue is that, sporadically, calls from .NET to this SP both through the Enter...
<p>I have seen this happen with indexes that were out of date. It could also be a parameter sniffing problem, where a different query plan is being used for different parameters that come in to the stored procedure.</p> <p>You should capture the parameters of the slow calls and see if they are the same ones each time...
<p>Sounds like another query is running in the background that has locked the table and your innocent query is simply waiting for it to finish</p>
8,210
<p>I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the <a href="https://stackoverflow.com/tags">tags</a> I'm interested in.</p> <p>[A quick <a href="http://www.google.com/search?q=rss+merge+reader" rel="nofollow noreferrer">search</a...
<p>Have you heard of <strong><a href="http://pipes.yahoo.com/pipes/" rel="noreferrer">Yahoo's Pipes</a></strong>. </p> <blockquote> <p>Its an interactive feed aggregator and manipulator. List of 'hot pipes' to subscribe to, and ability to create your own (yahoo account required).</p> </blockquote> <p>I played...
<p><a href="http://pipes.yahoo.com/pipes/" rel="nofollow noreferrer">Yahoo Pipes</a>?</p> <p><em>23 minutes later:</em> Aww, I got answer-sniped by @<a href="https://stackoverflow.com/users/1992/bernie-perez">Bernie Perez</a>. Oh well :)</p>
4,679
<p>I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly large amounts of XML data. This seems fairly wasteful from a bandwidth usage standpoint as the response, if zipped, would be smaller by a facto...
<p>I didn't see a native way for WCF to do compression when doing a WCF project recently. I just used the System.IO.Compression namespace and made a quick compressor. Here's the code i used</p> <pre><code>public static class CompressedSerializer { /// &lt;summary&gt; /// Decompresses the specified compressed d...
<p>It should also be noted that you may need to add the mime type to <code>applicationHost.config</code> under <code>&lt;httpCompression&gt;&lt;dynamicTypes&gt;</code> section in addition to enabling compression for the site:</p> <pre><code>&lt;add mimeType="application/soap+msbin1" enabled="true" /&gt; </code></pre> ...
3,129
<p>How can I add horizontal scroll capabilities to the asp.net listbox control?</p>
<p>Example to add horizontal scroll:</p> <pre><code>&lt;asp:ListBox ID="List" runat="server" Height="320px" Width="100%" style="overflow-x:auto;"SelectionMode="Multiple"&gt; &lt;/asp:ListBox&gt; </code></pre> <p>CSS3 overflow-x Property: <a href="http://www.w3schools.com/cssref/css3_pr_overflow-x.asp" rel="nofollow">...
<p>If you are doing it only for display purpose, You can do it in another way by using Textbox with mulitiline property. By appending the text with new line as such!</p> <pre><code> List&lt;Yourclass&gt; result = null; result = Objname.getResult(Parameter1, Parameter2); foreach (Yourclass res in result) ...
6,746
<p>It seems that a Bowden extruder is the most used in all cheap 3D printers by far compared to Direct Drive that is very rare under 500 USD machines. But I haven't understood the reason, since in terms of hardware a direct drive doesn't seem to have any impact on price more than Bowden (correct me if I'm wrong).</p> <...
<p>As I understand it, there's really no good reason for this except &quot;momentum&quot;. At some point in the not too distant past, a Bowden extruder was seen as an &quot;upgrade&quot; over direct drive, which required a bulky toolhead that was seen as limiting speeds.</p> <p>(This perception was at best accurate onl...
<p>Using a bowden extruder allows the manufacturer to place heavy components lower down on the printer frame. This lowers the center of gravity and reduces the amount of movement that the hot end creates when it tracks across the bed.</p> <p>This allows the hot end to move\print faster without having to reinforce the p...
2,080
<p>What is best practice when creating your exception classes in a .NET solution: To derive from <code>System.Exception</code> or from <code>System.ApplicationException</code>?</p>
<p>According to Jeffery Richter in the Framework Design Guidelines book:</p> <blockquote> <p><code>System.ApplicationException</code> is a class that should not be part of the .NET framework.</p> </blockquote> <p>It was intended to have some meaning in that you could potentially catch "all" the application exceptio...
<p>I'm used to do:</p> <pre><code>private void buttonFoo_Click() { try { foo(); } catch(ApplicationException ex) { Log.UserWarning(ex); MessageVox.Show(ex.Message); } catch(Exception ex) { Log.CodeError(ex); MessageBox.Show("Internal error."); } } <...
7,605
<p>If I remove all the ' characters from a SQL query, is there some other way to do a SQL injection attack on the database?</p> <p>How can it be done? Can anyone give me examples?</p>
<p>Yes, there is. An excerpt from <a href="http://en.wikipedia.org/wiki/SQL_injection" rel="noreferrer">Wikipedia</a></p> <p><code>"SELECT * FROM data WHERE id = " + a_variable + ";"</code></p> <p>It is clear from this statement that the author intended a_variable to be a number correlating to the "id" field. Howeve...
<p>It depends on how you put together the query, but in essence yes.</p> <p>For example, in Java if you were to do this (deliberately egregious example):</p> <pre><code> String query = "SELECT name_ from Customer WHERE ID = " + request.getParameter("id"); </code></pre> <p>then there's a good chance you are opening y...
9,729
<p>I have a Robo 3D. However A while ago, the print bed was fractured, and now it has a long crack cutting it in half. The bed still works because it is held together, by the screws holding the bed to the tracks. So I want to continue using it, because it still is fairly good, the heating element works fine, and a repl...
<p>A little chip is fine, but I wouldn't print with that big of a crack. <strong>However</strong>, that doesn't mean you need to spend $80 on a new sheet of glass.</p> <p>Option #1- If you want borosilicate glass, you can get a sheet from either McMaster (about $40+shipping for a 10"x10" piece, less for smaller) or fr...
<p>If your heatbed itself is aluminum/copper/other metal: Get a glass cut and replace it. The current one is probably attached to the heatbed with adhesive glue. If it the adhesive is cyanocrylate based, you can remove by rubbing with acetone. If silicone type, it will come off by some force. Don't worry, you won't dam...
178
<p>I have experience writing console and network client/server applications in C and C++, but I know next to nothing about using the win32 visual API, MFC, Qt, wxWidgets, etc. Where is a good place to start, and what method should I specialize in, so as to be future ready and robust?</p>
<p>This is a rather broad question, as programming GUI applications in Windows can be done in so many ways.</p> <p>There are two main parts to developing any GUI app: the <strong>language</strong> and the <strong>API/framework</strong>. Considering you're interested in learning to build Windows GUI apps, the language ...
<p>For business apps, Windows Forms is very mature. It provides a gentle path from auto-generating a lot for you into allowing fine-grained control and rolling your own. There are tons of high-quality third party controls and a large body of examples, docs, etc out there. It's hard to run into a problem that someone e...
2,636
<p>I'm maintaining a .NET 1.1 application and one of the things I've been tasked with is making sure the user doesn't see any unfriendly error notifications.</p> <p>I've added handlers to <code>Application.ThreadException</code> and <code>AppDomain.CurrentDomain.UnhandledException</code>, which do get called. My probl...
<p>Oh, in Windows Forms you definitely should be able to get it to work. The only thing you have to watch out for is things happening on different threads.</p> <p>I have an old Code Project article here which should help:</p> <p><em><a href="http://www.codeproject.com/KB/exception/ExceptionHandling.aspx" rel="nofollo...
<p><strong>The Short Answer,</strong> <em>Looks like, an exception occurring in Form.Load doesn't get routed to Application.ThreadException or AppDomain.CurrentDomain.UnhandledException without a debugger attached.</em></p> <p><strong>The More accurate Answer/Story</strong> This is how I solved a similar problem. I can...
2,337
<p>A J2ME client is sending HTTP POST requests with chunked transfer encoding.</p> <p>When ASP.NET (in both IIS6 and WebDev.exe.server) tries to read the request it sets the Content-Length to 0. I guess this is ok because the Content-length is unknown when the request is loaded.</p> <p>However, when I read the Reques...
<p>Seems to be official: <a href="http://msdn.microsoft.com/en-us/library/ee960144.aspx" rel="nofollow">Cassini does not support <code>Transfer-Encoding: chunked</code> requests.</a></p> <blockquote> <p>By default, the client sends large binary streams by using a chunked HTTP Transfer-Encoding. <strong>Because t...
<p>That url does not work any more, so it's hard to test this directly. I wondered if this would work, and google turned up someone who has experience with it at <a href="http://bytes.com/forum/thread246706.html" rel="nofollow noreferrer">bytes.com</a>. If you put your website up again, I can see if this really works...
9,455
<p>How do I cast an <code>int</code> to an <code>enum</code> in C#?</p>
<p>From an int:</p> <pre><code>YourEnum foo = (YourEnum)yourInt; </code></pre> <p>From a string:</p> <pre><code>YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString); // The foo.ToString().Contains(&quot;,&quot;) check is necessary for // enumerations marked with a [Flags] attribute. if (!Enum.IsDefined(...
<p>I need two instructions:</p> <pre><code>YourEnum possibleEnum = (YourEnum)value; // There isn't any guarantee that it is part of the enum if (Enum.IsDefined(typeof(YourEnum), possibleEnum)) { // Value exists in YourEnum } </code></pre>
4,913
<p>My print popped out from the bed and glued to the nozzle. As the printer was printing next hour or so, a lot of pla was extruded and formed on the nozzle. </p> <h2>I'm wondering what will be the best way to remove pla from the nozzle without overheating wires?</h2> <p>a remark: was trying to heat the nozzle over 1...
<p>If you grab the blob with a pliers and twist, all or most of it may pop off. If not, heat the extruder up perhaps 10 degrees higher than usual, and wait for the external gunk to soften up and then pull it off.</p> <h3>edit :</h3> <p>Well, if it won't get hot enough, then try using an external source such as a sold...
<p>I would suggests to use a heat gun and carefully warm up the PLA to be soft and remove it carefully like a big piece of Play-Doh. Using the extruder to heat up the PLA don't sound like the best idea, for me, because the inner PLA will be fluid and it could be a bigger mess than it is up to now.</p>
898
<p>If Java application requires certain JRE version then how can I check its availability on Mac OS X during installation?</p>
<p>It should be as simple as looking at /System/Library/Frameworks/JavaVM.framework/Versions/</p> <p>E.g. from my machine:</p> <pre><code>manoa:~ stu$ ll /System/Library/Frameworks/JavaVM.framework/Versions/ total 56 774077 lrwxr-xr-x 1 root wheel 5 Jul 23 15:31 1.3 -&gt; 1.3.1 167151 drwxr-xr-x 3 root wheel ...
<p>This artical may help: <a href="http://developer.apple.com/technotes/tn2002/tn2110.html" rel="nofollow noreferrer">http://developer.apple.com/technotes/tn2002/tn2110.html</a><br /> Summery:</p> <pre><code>String javaVersion = System.getProperty("java.version"); if (javaVersion.startsWith("1.4")) { // New features...
8,876
<p>In the build log I'd like to the start and end time of each project's compilation. Is there any way to get VS to do this?</p>
<p>For VC++ builds you can enable build timing. Go to Tools->Options->Projects and Solutions->VC++ Project settings and choose the option for 'Build Timing'</p>
<p>Not without modifying the actual project file (using a text editor) to add calls in to the MSBuild script targets.</p>
6,866
<p>I'd like to add an extra motor to my board and I'm not sure where I went wrong. The motor will be used to spin a rotating wheel/carriage of potential hot ends to switch to. Because it's just a motor it doesn't need a heatrod or a temperature sensor. </p> <p>I had just a MKS_BASE 1.0 board, so I purchased a RAMPS 1....
<p><code>D35</code>, <code>D37</code>, <code>D17</code> are the pin labels on the Arduino Mega. <em>These do not correspond to pin numbers within Marlin</em>.</p> <p>I believe that <code>D35</code> actually corresponds to marlin pin <code>49</code> and this is the number you should enter in your firmware. You can find...
<p><code>D35</code>, <code>D37</code>, <code>D17</code> are the pin labels on the Arduino Mega. <em>These do not correspond to pin numbers within Marlin</em>.</p> <p>I believe that <code>D35</code> actually corresponds to marlin pin <code>49</code> and this is the number you should enter in your firmware. You can find...
1,421
<p>I am working on a project where I produce an aluminium extrusion cutting list.</p> <p>The aluminium extrusions come in lengths of 5m.</p> <p>I have a list of smaller lengths that need to be cut from the 5m lengths of aluminium extrusions.</p> <p>The smaller lengths need to be cut in the order that produces the le...
<p>This is a classic, difficult problem to solve efficiently. The algorithm you describe sounds like a <a href="http://en.wikipedia.org/wiki/Greedy_algorithm" rel="noreferrer">Greedy Algorithm</a>. Take a look at this Wikipedia article for more information: <a href="http://en.wikipedia.org/wiki/Cutting_stock_problem" r...
<p>The <a href="https://en.wikipedia.org/wiki/Column_generation" rel="nofollow noreferrer">Column generation algorithm</a> will quickly find a solution with the minimum possible waste.</p> <p>To summarize, it works well because it doesn't generate all possible combinations of cuts that can fit on a raw material length....
4,214
<p>Issue: Printing is not continuous.</p> <p>Observation: While printing, the upper layer of the nozzle is leaking. And also the printing is not continuous, the layers are not formed properly.</p> <p>Practices: Alternate nozzle has been fastened, Bed leveling has been checked, Even used the other softwares to print. ...
<p>Grinding is due to attempts to advance filament faster than it can be melted and dispensed. Try one or more of the following:</p> <ul> <li>Raise the head temperature (to meet current throughput demand)</li> <li>Lower the print speed (to reduce throughput demand)</li> <li>Slice for thinner layers (to reduce throughp...
<p>A 0.27 mm layer height is not correct for any printer, any nozzle/hotend, any file, and should never be used as a layer height variable for any FDM printer.</p> <p>Layer height should be a factor of the diameter of your nozzle size. i.e. Your nozzle is 0.4 mm, so depending on your printer, your range of resolutions/...
1,016
<p>I'm using IdeaMaker for slicing my print objects. IdeaMaker start strings have a >T0&lt; standing alone on one line and then >T1&lt; on the next line. What does this accomplish?</p>
<p>T stands for <a href="https://en.wikipedia.org/wiki/G-code#Letter_addresses" rel="nofollow noreferrer">"Tool"</a> and has its origin in the origins of <a href="https://en.wikipedia.org/wiki/G-code#Letter_addresses" rel="nofollow noreferrer"><code>.gcode</code></a> being for other automated machine controls. Dependin...
<p>I'm not sure what it's doing in your case, but the "T" code is there to select the extruder number. T0 would be the first and T1 would be the second extruder in a multi-extruder setup. I found the information at the end of <a href="http://www.makeit-3d.com/wp-content/uploads/RepRapGcodeCheatSheet.pdf" rel="nofollow ...
1,246
<p>There are many SCM systems out there. Some open, some closed, some free, some quite expensive. Which one <em>(please choose only one)</em> would you use for a 3000+ developer organization with several sites (some behind a very slow link)? Explain why you chose the one you chose. (Give some reasons, not just "because...
<ul> <li>For such a huge installation, there are at least the following major requirements: <strong>Data safety</strong>, maturity, robustness, <strong>Scalability</strong>, <strong>price</strong> (a per seat licence vs. open source always makes a huge difference regardless of the price per seat), ease of administratio...
<p>If they're all working on the same product, probably Perforce.</p> <p>If there are lots of smaller projects (2 to 50), I'd run several Subversion (SVN) boxes.</p>
9,119
<h3>Background</h3> <p>Last year, I did an internship in a physics research group at a university. In this group, we mostly used <a href="http://en.wikipedia.org/wiki/LabVIEW" rel="noreferrer">LabVIEW</a> to write programs for controlling our setups, doing data acquisition and analyzing our data. For the first two pur...
<p>The course <a href="http://www.swc.scipy.org/" rel="noreferrer">Software Carpentry</a> is aimed specifically at people doing scientific computing and aims to teach the basics and lessons of software engineering, and how best to apply them to projects.</p> <p>It covers topics like version control, debugging, testing...
<p>I'm no expert in this area, but I've always understood that this is what <a href="http://en.wikipedia.org/wiki/MATLAB" rel="nofollow noreferrer">MATLAB</a> was created for. There is <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11596&amp;objectType=file" rel="nofollow noreferrer"...
5,915
<p>How do I make one? I am kind of a newbie in Windows API. Is there some sort of manual for this sort of thing? I am specifically interested in a Core API. Thank you for any help.</p>
<p>There are three ways of doing scroll bars: A window's scroll bar; a scroll bar control; or a custom control.</p> <p>Windows have scroll bars in the non-client (NC) area. These are part of the window frame, and as such they do not have their own window handle or anything.</p> <p>Scroll bar controls are child windo...
<p>What do you mean with "infinite"?</p> <p>If you mean a scroll bar where the user can never scroll to the ends, you have to handle the scroll bar's position change notifications and reset the position to the middle.</p>
9,735
<p>I was printing an object and it started to drag so I stopped it.</p> <p>Went to move the Z-axis up so I could clear the bed and Z-axis would not budge. I switched the printer off and manually turned the motors to get the Z up. Cleared the bed, switched on and homed the printer. When it came to home the Z, BLTouch de...
<p>extruder clicking means you're getting backed up, grinding.</p> <ul> <li>Make the hotend hotter so you can melt filament 3X faster than expected; most materials have quite a range; aim high.</li> <li>Slow down the cooling fan; a lot of them can cool the hotend.</li> <li>You have a silicone boot on the nozzle? that w...
<p>Changing &quot;Flow&quot; will affect whole print. So even if it helped for the middle part (I doubt), the next it would ruin the print on sides by overextrusion. However: <strong>if sides are printed ok, then why the middle couldn't?</strong> Because walls are printed slower? Indeed, the under-extrusion may quickly...
1,841
<p>I'm not too sure what is going on here, but sometimes a particular file in my repository will change the case of its name. e.g.,:</p> <p>before: <code>File.h</code></p> <p>after: <code>file.h</code></p> <p>I don't really care why this is happening, but this causes git to think it is a new file, and then I have to go...
<p>Since version 1.5.6 there is an <code>ignorecase</code> option available in the <code>[core]</code> section of <code>.git/config</code></p> <p>e.g. add <code>ignorecase = true</code></p> <p>To change it for just one repo, from that folder run:</p> <pre><code>git config core.ignorecase true </code></pre> <p>To ch...
<ol> <li>From the console: git config core.ignorecase true</li> <li>Change file name capitalisation</li> <li>Commit</li> <li>From the console: git config core.ignorecase false</li> </ol> <p>Step 4 fixed problems checking out branches with a different capitalisation.</p>
7,629
<p>I have an ASP.NET webservice with along the lines of:</p> <pre><code>[WebService(Namespace = "http://internalservice.net/messageprocessing")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class ProvisioningService : WebService { [WebMethod] public XmlDocument Proc...
<p>I solved this:</p> <p>The SOAP client <em>request</em> node was picking up the default namespace from:</p> <pre><code>&lt;ProcessMessage xmlns="http://internalservice.net/messageprocessing"&gt; </code></pre> <p>Adding an empty default namespace to the XML sent by the ASP client overrides this behaviour:</p> <pre...
<p>I take it you have access to the Services code, not just the consuming client right?</p> <p>Just pull the namespace out of the XmlDocument as the first part of the method.</p> <p>Something like:</p> <pre><code>XmlDocument changeDocumentNamespace(XmlDocument doc, string newNamespace) { if (doc.DocumentElem...
3,975
<p>Also, how do <code>LEFT OUTER JOIN</code>, <code>RIGHT OUTER JOIN</code>, and <code>FULL OUTER JOIN</code> fit in?</p>
<p>Assuming you're joining on columns with no duplicates, which is a very common case:</p> <ul> <li><p>An inner join of A and B gives the result of A intersect B, i.e. the inner part of a <a href="http://en.wikipedia.org/wiki/Venn_diagram" rel="noreferrer">Venn diagram</a> intersection.</p> </li> <li><p>An outer join o...
<p><strong>in Inner join</strong>, We can retrieve the data where we have the same/related data in different tables</p> <p>SELECT Sname, Tname FROM student s JOIN teacher t ON s.id = t.id;</p> <p>if you also want to get other data information from a different table in that case, we can go for outer join</p> <p>we have...
5,943
<p>The following code doesn't compile with gcc, but does with Visual Studio:</p> <pre><code>template &lt;typename T&gt; class A { public: T foo; }; template &lt;typename T&gt; class B: public A &lt;T&gt; { public: void bar() { cout &lt;&lt; foo &lt;&lt; endl; } }; </code></pre> <p>I get the error:</p> <blockqu...
<p>This changed in <a href="http://gcc.gnu.org/gcc-3.4/changes.html#cplusplus" rel="noreferrer">gcc-3.4</a>. The C++ parser got much more strict in that release -- per the spec but still kinda annoying for people with legacy or multi-platform code bases.</p>
<p>VC doesn't implemented two-phase lookup, while GCC does. So GCC parses templates before they are instantiated and thus finds more errors than VC. In your example, foo is a dependent name, since it depends on 'T'. Unless you tell the compiler where it comes from, it cannot check the validity of the template at all, ...
3,254
<p>Is there a commercially available fume and nano particle extractor for a 3D printer, like the Ultimaker3 extended? I'm looking for a safe solution, to use at home, for around $800. </p>
<p>Following on from Harvey Lim's <a href="https://3dprinting.stackexchange.com/questions/3771/commercially-available-3d-printer-fume-and-ufp-extractor#answer-3977">answer</a>, to give a concrete example of a DIY filter, which uses active carbon, see <a href="https://web.archive.org/web/20200514160332/http://www.3dprin...
<p>To try to answer your question, I found these enclosures on <a href="https://www.3dprintclean.com/store-1/" rel="nofollow noreferrer">3DPrintClean</a>, by browsing the Ultimaker forum. I'm not sure it fits your needs since you did not give any details about which Ultimaker you have, nor the amount of money you are w...
552
<p>A quick glance at the present-day internet would seem to indicate that Adobe Flash is the obvious choice for embedding video in a web page. Is this accurate, or are they other effective choices? Does the choice of ASP.NET as a platform influence this decision?</p>
<p>Flash is certainly the most ubiquitous and portable solution. <a href="http://en.wikipedia.org/wiki/Adobe_Flash#Market_share" rel="noreferrer">98% of browsers</a> have Flash installed. Other alternatives are <a href="http://www.apple.com/quicktime/download/" rel="noreferrer">Quicktime</a>, <a href="http://www.micr...
<p>I have worked for a company that developed a system for distributing media content to dedicated "players". It was web based and used ASP.NET technology and have tried almost every possible media format you can think of and your choice really comes down to asking yourself:</p> <p>does it needs to play directly out o...
2,469
<p>I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.</p> <p>I managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers.</p> <p>What flags/configuration is required to inc...
<p>I believe you need to add the following to the Makefile:</p> <pre><code>CFLAGS += -I/opt/gnu/include LDFLAGS += -L/opt/gnu/lib -R/opt/gnu/lib </code></pre> <p>The -I argument tell gcc where to find the include files. The -L flag tells ld where to find the libraries while linking. The -R flag writes /opt/gnu/lib i...
<p>You can override the path by setting the environmental variable LD_LIBRARY_PATH. However I would suggest changing the system paths as well so you don't have to change the library path for all users. This can be done using crel. </p> <pre><code>crle -l -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/opt/gnu/lib ...
7,020
<p>When <strong>Eclipse</strong> creates a new file (<strong>.c</strong> or <strong>.h</strong> file) in a C project the editor always auto creates a <code>#define</code> at the top of the file like this: If the file is named 'myCFile.c' there will be a <code>#define</code> at the start of the file like this</p> <pre>...
<p>It's to guard against <a href="http://www.fredosaurus.com/notes-cpp/preprocessor/ifdef.html" rel="nofollow noreferrer">multiple definitions</a>.</p>
<p>I think it's a throwback of C include issues, where multiple copies of the source would get included - unless you are meticulous with include chains (One file includes n others). Checking if a symbol is defined and including only if the symbol is defined - was a way out of this.</p>
5,845
<p>Assume that I have a field called <em>price</em> for the documents in Solr and I have that field faceted. I want to get the facets as ranges of values (eg: 0-100, 100-500, 500-1000, etc). How to do it?</p> <p>I can specify the ranges beforehand, but I also want to know whether it is possible to calculate the ranges...
<p>To answer your first question, you can get facet ranges by using the the generic facet query support. <a href="http://wiki.apache.org/solr/SimpleFacetParameters#head-1da3ab3995bc4abcdce8e0f04be7355ba19e9b2c" rel="nofollow noreferrer">Here</a>'s an example:</p> <pre><code>http://localhost:8983/solr/select?q=video&am...
<p>There may well be a better Solr-specific answer, but I work with straight Lucene, and since you're not getting much traction I'll take a stab. There, I'd create a populate a <code>Filter</code> with a <code>FilteredQuery</code> wrapping the original <code>Query</code>. Then I'd get a <code>FieldCache</code> for the ...
5,410
<p>I'm looking for the basic loop like:</p> <pre><code>for(int i = 0; i &lt; MAX; i++) { doSomething(i); } </code></pre> <p>but for Bash.</p>
<p>From <a href="http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html" rel="noreferrer">this site</a>:</p> <pre><code>for i in $(seq 1 10); do echo $i done </code></pre>
<p>I use variations of this all the time to process files...</p> <blockquote> <p>for files in *.log; do echo "Do stuff with: $files"; echo "Do more stuff with: $files"; done;</p> </blockquote> <p>If processing lists of files is what you're interested in, look into the <strong>-execdir</strong> option for <strong>fi...
7,153
<p>Ulimately I just wanted to extract strings from the .rc file so I could translate them, but anything that goes with .rc files works for me.</p>
<p>I'd consider usage of <a href="http://en.wikipedia.org/wiki/Gettext" rel="nofollow">gettext</a> and <a href="http://gnu.cs.pu.edu.tw/software/gettext/manual/html_node/PO-Files.html" rel="nofollow">.PO files</a>, if your program fits GNU license</p> <p>1) I'd suggest extracting from .rc files using state machine alg...
<p><a href="http://resxcrunch.com" rel="nofollow noreferrer">ResxCrunch</a> will be out sometimes soon. It will edit multiple resource files in multiple languages in one single table.</p>
7,709
<p>I've got quite a few GreaseMonkey scripts that I wrote at my work which automatically log me into the internal sites we have here. I've managed to write a script for nearly each one of these sites except for our time sheet application, which uses HTTP authentication. </p> <p>Is there a way I can use GreaseMonkey ...
<p>It is possible to log in using HTTP authentication by setting the "Authorization" HTTP header, with the value of this header set to the string "basic username:password", but with the "username:password" portion of the string Base 64 encoded. </p> <p><a href="http://frontier.userland.com/stories/storyReader$2159" r...
<p>"<a href="http://username:password@host/" rel="nofollow noreferrer">http://username:password@host/</a>" doesn't work on IE, FireFox works ok.</p>
7,160
<p>With the increased power of JavaScript frameworks like YUI, JQuery, and Prototype, and debugging tools like Firebug, doing an application entirely in browser-side JavaScript looks like a great way to make simple applications like puzzle games and specialized calculators.</p> <p>Is there any downside to this other t...
<p>I've written several application in JS including a spreadsheet.</p> <p>Upside:</p> <ul> <li>great language</li> <li>short code-run-review cycle</li> <li>DOM manipulation is great for UI design</li> <li>clients on every computer (and phone)</li> </ul> <p>Downside:</p> <ul> <li>differences between browsers (especi...
<p>My RSS feeds have served me well- I found that Javascript roguelike!</p> <p>It's called <a href="http://www.icculus.org/asciiroth/" rel="nofollow noreferrer">The Tombs of Asciiroth</a>.</p>
3,592
<p>Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? </p> <p>I know <a href="http://forums.msdn.microsoft.com/en-US/msbuild/thread/6e213531-9d88-43ef-8262-fe0e4e7f479a/" rel="nofollow noreferrer">one answer</a> was to install Visual Studio on the build server and just use devenv.exe to...
<p>Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild. </p> <p>The method the Visual Studio team uses to run their MSI builds is with <a href="http://wix.sourceforge.net/" rel="noreferrer">Windows Installer XML</a>. You can learn more about using WiX to dep...
<p>We use <a href="http://wix.sourceforge.net/" rel="nofollow noreferrer">Wix</a> to automate MSI builds for IronPython and IronRuby.</p> <p>EDIT: to clarify, this probably means starting over from scratch when building your installer. While Wix has a mechanism to create a configuration directly from a preexisting MS...
4,444
<p>Here's a problem I've been trying to solve at work. I'm not a database expert, so that perhaps this is a bit sophomoric. All apologies.</p> <p>I have a given database D, which has been duplicated on another machine (in a perhaps dubious manner), resulting in database D'. It is my task to check that database D an...
<p>My first reaction is to suggest duplicating to the other machine again in a non-dubious manner.</p> <p>If that is not an option, perhaps some of the tools available from <a href="http://www.red-gate.com/products/index.htm" rel="nofollow noreferrer">Red Gate</a> could do what you need.</p> <p>(I am in no way afflia...
<p>Use the SQL Compare tools by <a href="http://www.red-gate.com/" rel="nofollow noreferrer">Red Gate</a>. It compares scheamas, and the SQL Data Compare tool compares data. I think that you can get a free trial for them, but you might as well buy them if this is a recurring problem. There may be open source or free...
9,386
<p>I'm building a PHP page with data sent from MySQL.</p> <p>Is it better to have</p> <ul> <li>1 <code>SELECT</code> query with 4 table joins, or</li> <li>4 small <code>SELECT</code> queries with no table join; I do select from an ID</li> </ul> <p>Which is faster and what is the pro/con of each method? I only need o...
<p>You should run a profiling tool if you're truly worried cause it depends on many things and it can vary but as a rule its better to have fewer queries being compiled and fewer round trips to the database.</p> <p>Make sure you filter things as well as you can using your where and join on clauses.</p> <p>But honestl...
<p>Be careful when dealing with a merge table however. It has been my experience that although a single join can be good in most situations, when merge tables are involved you can run into strange situations.</p>
7,926
<p>We want to try Ext JS on new project. Is there any well-known best practice for integrating Ext JS with server side Java (Spring/Hibernate/JS) application? Is DWR a good choice for that?</p>
<p>My team has been using Ext with DWR for almost year a year, and have had nothing but good things to say. If you take this approach, you will end up using DWR's generated JavaScript classes for making your requests to the server. This will often be done in place of using the Ext.Ajax and Ext.data.Connection classes...
<p>It's perfectly fine to build your application using Ext JS/DWR/Spring/Hibernate.</p>
9,628
<p>I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?</p>
<p>In management studio:</p> <ul> <li>Don't do this on a live environment, but to ensure you shrink your dev db as much as you can: <ul> <li>Right-click the database, choose <code>Properties</code>, then <code>Options</code>.</li> <li>Make sure "Recovery model" is set to "Simple", not "Full"</li> <li>Click OK</li> </...
<p>Another option altogether is to detach the database via Management Studio. Then simply delete the log file, or rename it and delete later. </p> <p>Back in Management Studio attach the database again. In the attach window remove the log file from list of files.</p> <p>The DB attaches and creates a new empty log fil...
6,163
<p>How can you determine the performance consequences of your PHP code if you are not familiar with the internals? Are there ways to figure out how your code is being executed (besides simply load testing it)? I am looking for things like memory usage, the execution time for algorithms.</p> <p>Perhaps Joel would say, ...
<p>Use the <a href="http://www.xdebug.org/" rel="nofollow noreferrer">Xdebug</a> extension to profile PHP code.</p>
<p>Even if you are familiar with the internals, you should still load test your assumptions. I like to use the <a href="http://pear.php.net/package/Benchmark" rel="nofollow noreferrer">PEAR Benchmark</a> package to compare different code.</p> <p>If you can isolate your code, you can keep your load testing simple. A ty...
7,385
<p>Is it possible to call a stored procedure from another stored procedure asynchronously?</p> <p><strong>Edit:</strong> Specifically I'm working with a DB2 database. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­</p>
<p>Executive summary: Yes, if your database has a message queue service.</p> <p>You can push a message onto a queue and the queue processor will consume it asynchronously.</p> <ul> <li>Oracle: queues</li> <li>Sql Server: service broker</li> <li>DB2: event broker</li> </ul> <p>For "pure" stored procedure languages (...
<p>It sounds like you need to put some scheduled jobs in place with Cron (or windows equiv). You could use the initial stored proc call to set some kind of flag in the DB, which is then checked periodically by a cron job. If you need to have a specific delay before the 2nd job executes, you should be able to do that by...
4,510
<p>I am wrapping existing C++ code from a <strong>BSD</strong> project in our own custom wrapper and I want to integrate it to our code with as few changes as possible. This code uses <code>fprintf</code> to print to <strong>stderr</strong> in order to log / report errors.</p> <p>I want to redirect this to an alternat...
<p>You can use a similar technique on Windows, you just need to use different words for the same concepts. :) This article: <a href="http://msdn.microsoft.com/en-us/library/ms682499.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms682499.aspx</a> uses a win32 pipe to handle I/O from another process, you...
<p>You mention that you don't want to use a named pipe for internal use; it's probably worth poining out that the documentation for <a href="http://msdn.microsoft.com/en-us/library/aa365152(VS.85).aspx" rel="nofollow noreferrer">CreatePipe()</a> states, <em>"Anonymous pipes are implemented using a named pipe with a uni...
2,924
<p>What things should be kept most in mind when writing cross-platform applications in C? Targeted platforms: 32-bit Intel based PC, Mac, and Linux. I'm especially looking for the type of versatility that Jungle Disk has in their USB desktop edition ( <a href="http://www.jungledisk.com/desktop/download.aspx" rel="noref...
<p>I maintained for a number of years an ANSI C networking library that was ported to close to 30 different OS's and compilers. The library didn't have any GUI components, which made it easier. We ended up abstracting out into dedicated source files any routine that was not consistent across platforms, and used #defi...
<p>Try to write as much as you can with POSIX. Mac and Linux support POSIX natively and Windows has a system that can run it (as far as I know - I've never actually used it). If your app is graphical, both Mac and Linux support X11 libraries (Linux natively, Mac through X11.app) and there are numerous ways of getting ...
5,625
<p>Is there a way to bind a MemoryStream to asp:image control?</p>
<p>Best bet is to create an HttpHandler that would return the image. Then bind the ImageUrl property on the asp:Image to the url of the HttpHandler.</p> <p>Here is some code.</p> <p>First create the HttpHandler:</p> <pre><code>&lt;%@ WebHandler Language="C#" Class="ImageHandler" %&gt; using System.Drawing; using S...
<p>Nope. </p> <p>But you can create a special page to stream that image out. First, you set the URL of the image to the page that performs the streaming, including some url parameters that let you know where to get the image:</p> <pre><code>&lt;img src="GetImage.aspx?filename=foo" ... /&gt; </code></pre> <p>in Get...
6,895
<p>I've tried to remix this model: <a href="https://www.thingiverse.com/thing:90933" rel="nofollow noreferrer">https://www.thingiverse.com/thing:90933</a> (Bauhaus chess set) by scaling it down and inserting little magnet holes into the pieces' underside. My SCAD file looks as follows:</p> <pre><code>difference() { ...
<p>It is interesting that the WTH line and the next line both should remove a cylinder of the same diameter from the same location. Only the height is different.</p> <p>It could be interesting to remove the first King/Queen line and see if there is a change.</p> <p>Have you checked the STL file with another tool, ot...
<p>It is interesting that the WTH line and the next line both should remove a cylinder of the same diameter from the same location. Only the height is different.</p> <p>It could be interesting to remove the first King/Queen line and see if there is a change.</p> <p>Have you checked the STL file with another tool, ot...
1,440
<p>Some people have figured out how to take raw LiDAR data and after going through multiple steps (using LAS tools, converting to digital elevation model (DEM), converting to an STL) getting an STL file that they can then slice and print.</p> <p>Could you write a program that cuts out all of those intermediate steps an...
<p>TL;DR - The problem would <em>appear</em> to be that some of the steps require a bit of manual tinkering in order to complete them successfully - it isn't just a simple question of conversion. So, no (not currently).</p> <p><em>Also, whilst writing this answer, it dawned on me that unless someone has actually manage...
<p>The answer is highly depending on the programming skills of the programmer, but in theory, if all pieces of software exist, they can either be tied together in a workflow process (automated) or directly programmed into a new tool.</p>
1,983
<p>I've been using OpenGL extensions on Windows the <a href="https://stackoverflow.com/questions/14413/using-opengl-extensions-on-windows">painful way</a>. Is GLEW the easier way to go? How do I get started with it?</p>
<p>Yes, the <strong>OpenGL Extension Wrangler Library</strong> (GLEW) is a painless way to use OpenGL extensions on Windows. Here's how to get started on it:</p> <p>Identify the OpenGL extension and the extension APIs you wish to use. OpenGL extensions are listed in the <a href="http://www.opengl.org/registry/" rel="n...
<p>I lost some time, but finally I managed to get GLEW working. I'm using Windows7 (x64), Eclipse CDT and MinGW, and the way is that:</p> <p>Download MSYS (for MinGW) and rember to have MinGW installed correctly (PATH enviroinment variable set correctly): <a href="http://sourceforge.net/projects/mingw/files/MSYS/Base/...
3,803
<p>I recently got an Ender 3 Pro and had a blast with it for the first few days, but then I got greedy for a better print and threw off my calibration with some &quot;upgrades&quot; and ended up with some really nasty elephant's foot. The first 3 mm are all bubbly and uneven as if someone heated it up and squished it s...
<p>The following is from the article &quot;<a href="https://all3dp.com/2/elephant-s-foot-3d-printing-problem-easy-fixes/" rel="nofollow noreferrer">Elephant's Foot - Easy Fixes</a>&quot; on All3DP.com</p> <blockquote> <p>As we’ve explained, elephant’s foot most often occurs as the result of an uncooled first layer. If ...
<p>I have 2 Ender 3 Max printers. Both suffered elephant's foot after the initial setup. After trying virtually every suggestion available on the internet I eventually was able to fix them. Assuming the bed is properly leveled, I feel the most common causes are:</p> <ol> <li>Too much tension on the X-axis guide whee...
2,036
<p>I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data.</p> <p>There's no clear single model (that maps to a table at least) that seems to make sense as the starting...
<p>As Brian said, you can create another model that marshals out the work that needs doing. There is <a href="http://railscasts.com/episodes/121-non-active-record-model" rel="nofollow noreferrer">a great Railscast</a> on how to do this type of thing.</p> <p>HTH</p>
<p>Controllers don't have to be <em>that</em> lightweight.</p> <p>However if you have some calculations that only rely on the model/s then you probably just need some sort of model wrapper for the models to perform the calculation. You can then place that into the API for the view so the view gets the end result.</p>
4,644
<p>Whilst looking to fix a different problem I had I came across this video.</p> <p>It's a filament reel holder, but at 02:40 the person uses a mysterious fluid. I haven't seen anything like this before (though had wondered).</p> <p><a href="https://youtu.be/X6ArZeWYSZE" rel="nofollow noreferrer" title="Mystery clea...
<p><a href="https://i.stack.imgur.com/gMDDx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gMDDx.png" alt="enter image description here"></a></p> <p>That's a filament cleaner/oiler combo. The black bottle is a variety of machine oil. </p> <p>The effect of oilers on prints is heavily disputed in th...
<p>For really long Bowden tubes, some people use Teflon lubricant in a cleaner bead.</p> <p>Never used it myself, since I use a small tube my printer with the stepper on top of one of the Z axis steel rod mounting plates (Anet A8).</p> <p>Off topic, but by cooking and being a vaper, I vouch that organic compounds lea...
1,170
<p>Given a declaration like this:</p> <pre><code>class A { public: void Foo() const; }; </code></pre> <p>What does it mean?</p> <p>Google turns up this:</p> <blockquote> <p>Member functions should be declared with the const keyword after them if they can operate on a const (this) object. If the function is no...
<p>Consider a variation of your class <code>A</code>.</p> <pre><code>class A { public: void Foo() const; void Moo(); private: int m_nState; // Could add mutable keyword if desired int GetState() const { return m_nState; } void SetState(int val) { m_nState = val; } }; const A *A1 = new A(); A *A...
<p>that will cause the method to not be able to alter any member variables of the object</p>
7,145
<p>I need to find out the <strong>external</strong> IP of the computer a C# application is running on. </p> <p>In the application I have a connection (via .NET remoting) to a server. Is there a good way to get the address of the client on the server side?</p> <p><em>(I have edited the question, to be a little more cl...
<p>This is one of those questions where you have to look deeper and maybe rethink the original problem; in this case, "Why do you need an external IP address?"</p> <p>The issue is that the computer may not have an external IP address. For example, my laptop has an internal IP address (192.168.x.y) assigned by the rout...
<p>You can basically parse the page returned by doing a WebRequest of <a href="http://whatismyipaddress.com" rel="nofollow noreferrer">http://whatismyipaddress.com</a></p> <p><a href="http://www.dreamincode.net/forums/showtopic24692.htm" rel="nofollow noreferrer">http://www.dreamincode.net/forums/showtopic24692.htm</a...
9,188
<p>I'm having a problem where the relative dimensional error of cylinders is rapidly increasing as the absolute size decreases. Printing a calibration stack of cylinders of diameters 8, 7, 6, 5, 4, and 3 mm, they come out undersized by 5%, 5.3%, 7%, 8%, 10%, and 13%, respectively, as measured by a digital caliper. Cube...
<p>You should not look at the relative dimensional differences, you should be looking at the absolute differences. Multiplying the undersized dimensions in percentage with the cylinder diameter gives you a value of 0.4 &nbsp;mm for each cylinder give or take a few hundreds. So, basically your printer works very consist...
<p>This problem seems to have mostly gone away - at least any remaining error is within a margin explainable by my cheap/low-quality digital caliper. Since asking the question, I've made a lot of changes that could contribute, but the biggest factor was probably the loose X-axis timing belt and <a href="https://3dprint...
1,266
<p>I need to prevent <a href="http://www.owasp.org/index.php/Session_Fixation" rel="noreferrer">Session Fixation</a>, a particular type of session hijacking, in a Java web application running in JBoss. However, it appears that the standard idiom <a href="http://www.owasp.org/index.php/Session_Fixation_in_Java" rel="nor...
<p><a href="https://jira.jboss.org/jira/browse/JBAS-4436" rel="nofollow noreferrer">This defect</a> (found <a href="http://forum.springframework.org/showthread.php?t=54688" rel="nofollow noreferrer">here</a>) points the way to the solution. The Tomcat instance that runs in JBoss is configured with emptySessionPath="tru...
<p>This problem and the specific case in which it occurs is a problem in Tomcat as well as JBoss. Tomcat shares the emptySessionPath="true" effect (and actually JBoss inherits it from Tomcat).</p> <p>This really seems like a bug in Tomcat and JBoss when you are trying to prevent session fixation attacks but the servle...
2,976
<p>What I'd like to do is something like the following:</p> <pre><code>FooClass.prototype.method = function():String { return "Something"; } var foo:FooClass = new FooClass(); foo.method(); </code></pre> <p>Which is to say, I'd like to extend a generated class with a single method, not via inheritance but via th...
<p>Yes, such a thing is possible.</p> <p>In fact, your example is very close to the solution.</p> <p>Try</p> <pre><code>foo["method"](); </code></pre> <p>instead of</p> <pre><code>foo.method(); </code></pre>
<p>@aib is unfortunately incorrect. Assuming strict mode (the default compiler mode) it is not possible to modify the prototype of non-dynamic class types in ActionScript 3. I'm not even sure that it's possible in non-strict mode.</p> <p>Is wrapping an option? Basically you create a class that takes one of the objects...
2,882
<p>This is a fairly trivial matter, but I'm curious to hear people's opinions on it.</p> <p>If I have a Dictionary which I'm access through properties, which of these formats would you prefer for the property?</p> <pre><code>/// &lt;summary&gt; /// This class's FirstProperty property /// &lt;/summary&gt; [DefaultValu...
<p>I like the second one purely because any avoidance of magic strings/numbers in code is a good thing. IMO if you need to reference a number or string literal in code more than once, it should be a constant. In most cases even if it's only used once it should be in a constant </p>
<p>This isn't answering your question, but I don't think "DefaultValue" means what you think it means. It doesn't set a default value for your property.</p> <p>See <a href="http://support.microsoft.com/kb/311339" rel="nofollow noreferrer">MSDN</a> and <a href="https://stackoverflow.com/questions/43738/defaultvalue-for...
6,574
<p>Is there a way to detect, from within the finally clause, that an exception is in the process of being thrown?</p> <p>See the example below:</p> <pre><code> try { // code that may or may not throw an exception } finally { SomeCleanupFunctionThatThrows(); // if currently executing an exception, exit the...
<p>Set a flag variable, then check for it in the finally clause, like so:</p> <pre><code>boolean exceptionThrown = true; try { mightThrowAnException(); exceptionThrown = false; } finally { if (exceptionThrown) { // Whatever you want to do } } </code></pre>
<p>No I do not believe so. The catch block will run to completion before the finally block.</p> <pre><code>try { // code that may or may not throw an exception } catch { // catch block must exist. finally { SomeCleanupFunctionThatThrows(); // this portion is ran after catch block finishes } </code></pre> <p>...
9,215
<p>I am trying to develop a multimedia site and I am leaning heavily toward Silverlight however Flash is always a main player. I am a Speed and performance type developer. Which Technology will load fastest in the given scenarios? 56k, DSL and Cable?</p>
<p>It all depends on what you're doing: animation, video, calculation, etc? There are <a href="http://www.tobinharris.com/2008/8/30/performance-of-silverlight-vs-flash-vs-javascript-vs-tracemonkey" rel="nofollow noreferrer">some tests that show Silverlight being faster for raw computation</a>, while Flash's graphics en...
<p>Actually, you have to assume that Flash is probably already installed on the user's browser, and SilverLight probably not. So the cost of installing silverlight (though a small download) has to be taken in to consideration as well.</p> <p>Silverlight, however, does have some pretty neat out of the box multimedia su...
9,140
<p>I want to create parts for a 3D printer using OpenSCAD. Having some STL files from the vendor, but nothing else (no technical drawing, no CAD files).</p> <p>Does anybody knows a free tool, that allows me to</p> <ul> <li>measure distances between 2 selected vertices,</li> <li>measure distances between a selected ve...
<p>I suggest Blender. It's not the simplest of tools but it is free and learning it will improve your 3D printing skills. :-) (I write this answer also for future viewers of this question so I start basic).</p> <p>Another answer can be found here, <a href="https://blender.stackexchange.com/q/19772/14005">How do I measu...
<p>Use Meshy &quot;...a WebGL-based tool that does measurements and simple transformations on STL and OBJ files.&quot;: <a href="https://0x00019913.github.io/meshy/" rel="nofollow noreferrer">https://0x00019913.github.io/meshy/</a></p>
472
<p>In an effort to reduce code duplication in my little Rails app, I've been working on getting common code between my models into it's own separate module, so far so good.</p> <p>The model stuff is fairly easy, I just have to include the module at the beginning, e.g.:</p> <pre><code>class Iso &lt; Sale include Sha...
<p>You could pluginize it (use script/generate plugin).</p> <p>Then in your init.rb just do something like:</p> <pre><code>ActiveRecord::Base.send(:include, PluginName::Sendable) ActionController::Base.send(:include, PluginName::SendableController) </code></pre> <p>And along with your self.included that should work ...
<p>If you do go the plugin route, do check out <a href="http://rails-engines.org/" rel="nofollow noreferrer">Rails-Engines</a>, which are intended to extend plugin semantics to Controllers and Views in a clear way. </p>
9,389
<p>I'd like to use a <code>LinqDataSource</code> control on a page and limit the amount of records returned. I know if I use code behind I could do something like this:</p> <pre><code>IEnumerable&lt;int&gt; values = Enumerable.Range(0, 10); IEnumerable&lt;int&gt; take3 = values.Take(3); </code></pre> <p>Does anyone ...
<p>I had this same issue. The way I got round this was to use the Selecting event on the LinqDataSource and return the result manually.</p> <p>e.g.</p> <pre><code>protected void lnqRecentOrder_Selecting(object sender, LinqDataSourceSelectEventArgs e) { DataClassesDataContext dx = new DataClassesDataContext(); ...
<p>I know that if you use a paging repeater or gridview with the linqdatasource it will automatically optimize the number of results returned, but I'm also pretty sure in the datasource wizard you can go to advanced options and limit it to </p> <pre><code>SELECT TOP 3 FROM </code></pre> <p>which should allow you to ...
2,621
<p>There are several ways to iterate over a result set. What are the tradeoff of each?</p>
<p>The canonical way is to use the built-in cursor iterator.</p> <pre><code>curs.execute('select * from people') for row in curs: print row </code></pre> <hr> <p>You can use <code>fetchall()</code> to get all rows at once.</p> <pre><code>for row in curs.fetchall(): print row </code></pre> <p>It can be conv...
<p>There's also the way <code>psyco-pg</code> seems to do it... From what I gather, it seems to create dictionary-like row-proxies to map key lookup into the memory block returned by the query. In that case, fetching the whole answer and working with a similar proxy-factory over the rows seems like useful idea. Come to...
2,301
<p>Most mathematicians agree that:</p> <blockquote> <p>e<sup>πi</sup> + 1 = 0</p> </blockquote> <p>However, most floating point implementations disagree. How well can we settle this dispute?</p> <p>I'm keen to hear about different languages and implementations, and various methods to make the result as close to ze...
<p>It's not that most floating point implementations disagree, it's just that they cannot get the accuracy necessary to get a 100% answer. And the correct answer is that they can't.</p> <p>PI is an infinite series of digits that nobody has been able to denote by anything other than a symbolic representation, and e^X ...
<p>@Ryan Fox <blockquote>In fact, how does one represent i (or j for the engineers) in a conventional programming language?</blockquote></p> <p>Native complex data types are far from unknown. Fortran had it by the mid-sixties, and the OP exhibits a variety of other languages that support them in hist followup. </p> <...
2,348
<p>Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs</p> <p>Does anyone know for sure where these come from, and what they are used for?</p>
<p>Neither GUID is the same GUID as from AssemblyInfo.cs (that is the GUID for the assembly itself, not tied to Visual Studio but the end product of the build).</p> <p>So, for a typical line in the sln file (open the .sln in notepad or editor-of-choice if you wish to see this):</p> <pre><code>Project("{FAE04EC0-301F-...
<p><a href="http://msdn.microsoft.com/en-us/library/bb165951(VS.80).aspx" rel="noreferrer">According to MSDN</a>: </p> <blockquote> <p>[The <code>Project</code>] statement contains the unique project GUID and the project type GUID. This information is used by the environment to find the project file or files...
7,642
<p>I'm using the JFrame plugin with jquery 1.2.6.</p> <p>It works fine in FF3, however it won't display the requested pages in IE 7.</p> <p>The jQuery library and the JFrame plugin are called in the included header.cfm.</p> <p>Page code is here (note: ignore the ColdFusion calls, I don't think they're generating the...
<p>When you have a problem like this, the best way of tracking down the problem is to reduce the page to the minimum necessary to reproduce the problem.</p> <p><em>"Ignore the [x] because I don't think that's the problem"</em> is no good, if you don't think that's the problem, save it to a temporary static page, delet...
<p>I would suggest updating to the newest release of jquery (v 1.3.2). This might be the simplest way to attempt to fix the bug. <a href="http://jquery.com/" rel="nofollow noreferrer">http://jquery.com/</a></p>
9,027
<p>When writing a switch statement, there appears to be two limitations on what you can switch on in case statements.</p> <p>For example (and yes, I know, if you're doing this sort of thing it probably means your <a href="https://en.wikipedia.org/wiki/Object-oriented_programming" rel="noreferrer">object-oriented</a> (...
<p>This is my original post, which sparked some debate... <strong>because it is wrong</strong>:</p> <blockquote> <p>The switch statement is not the same thing as a big if-else statement. Each case must be unique and evaluated statically. The switch statement does a constant time branch regardless of how ...
<p>I suppose there is no fundamental reason why the compiler couldn't automatically translate your switch statement into:</p> <pre><code>if (t == typeof(int)) { ... } elseif (t == typeof(string)) { ... } ... </code></pre> <p>But there isn't much gained by that.</p> <p>A case statement on integral types allows the co...
6,666
<p>One of the things I miss the most in ActionScript is the lack of operator overloading, in particular ==. I kind of work around this issue by adding a "Compare" method to my classes, but that doesn't help in many cases, like when you want to use things like the built in Dictionary.</p> <p>Is there a good way to work...
<p>Nope.</p> <p>But it doesn't hurt to add <code>equals</code> methods to your own classes. I try to never use <code>==</code> when comparing objects (the same goes for <code>===</code>, which is the same thing for objects) since it only checks <em>identity</em> .</p> <p>Sadly all the collections in Flash and Flex a...
<p>Yes it can be done (but be careful, its hacky): <a href="http://filimanjaro.com/2012/operators-overloading-in-as3-javascript-too-%E2%80%93-workaround/" rel="nofollow">http://filimanjaro.com/2012/operators-overloading-in-as3-javascript-too-%E2%80%93-workaround/</a></p> <p>In the tutorial I wrote about +=, -= operato...
7,381
<p>Here is a simplification of my database:</p> <pre>Table: Property Fields: ID, Address Table: Quote Fields: ID, PropertyID, BespokeQuoteFields... Table: Job Fields: ID, PropertyID, BespokeJobFields...</pre> <p>Then we have other tables that relate to the <strong>Quote</strong> and <strong>Job</strong> tables indi...
<p>Create one Message table, containing a unique MessageId and the various properties you need to store for a message.</p> <pre><code>Table: Message Fields: Id, TimeReceived, MessageDetails, WhateverElse... </code></pre> <p>Create two link tables - QuoteMessage and JobMessage. These will just contain two fields each,...
<p>Why not just have both QuoteId and JobId fields in the message table? Or does a message have to be regarding either a quote or a job and not both?</p>
3,998
<p>I have a huge web app that is having issues with memory leak in IE 6.</p> <p>Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy. </p> <p>But if I have a very huge application, where should a start from?</p>
<p>Check out <a href="http://sourceforge.net/projects/ieleak" rel="nofollow noreferrer">Drip</a>. That usually takes the guesswork out of IE memory leaks.</p> <p>If for some reason Drip doesn't find it, take a close look at any JavaScript code that works with events. That is almost always the source of any significa...
<p>Here is how I solved the memory leak problem in IE7. The idea is to dispose/set to null all expando-properties on all DOM nodes at unloading the page. This worked for me. You may find it useful.</p> <pre><code>&lt;!--[if lt IE 8]&gt; &lt;script type="text/javascript"&gt; function disposeAll() { if (window.docu...
4,016
<p>In interpreted programming languages, such as PHP and JavaScript, what are the repercussions of going with an Object Oriented approach over a Procedural approach?</p> <p>Specifically what I am looking for is a checklist of things to consider when creating a web application and choosing between Procedural and Object...
<p>Maybe I'm crazy but worrying about speed in cases like this using an interpretive language is like trying to figure out what color to paint the shed. Let's not even get into the idea that this kind of optimization is entirely pre-mature.</p> <p>You hit the nail on the head when you said 'maintainability'. I'd choos...
<p>I've actually done a small test like this in python on a website I maintain and found that they are almost equivalent in speed, with the procedural approach winning by something like ten-thousandths of a second, but that the OO code was so significantly cleaner I didn't continue the exercise any longer than one iter...
2,520
<p>The SQL Server Express 2008 setup allow you to assign different user account for each service. </p> <p>For a development environment, would you use a domain user, local user, NT Authority\NETWORK SERCVICE, NT Authority\Local System or some other account and why? </p>
<p><strong>Local System</strong> is not recommended, it is an administrator equivalent account and thus can lead to questionable coding that takes advantage of administrator privileges which would not be allowed in a production system since security conscious Admins/DBA's really don't like to run services as admin.</p>...
<p>Whatever it wants to use as default. Changing that is just asking for trouble later.</p>
8,915
<p>Most of time we represent concepts which can never be less than 0. For example to declare length, we write:</p> <pre><code>int length; </code></pre> <p>The name expresses its purpose well but you can assign negative values to it. It seems that for some situations, you can represent your intent more clearly by writ...
<p>“When in Rome, do as the Romans do.”</p> <p>While there is theoretically an advantage in using unsigned values where applicable because it makes the code more expressive, this is simply not done in C#. I'm not sure why the developers initially didn't design the interfaces to handle <code>uints</code> and make the t...
<p>Your two points are good. The primary reason to avoid it is casting, though. Casting makes them incredibly annoying to use. I tried using unisigned variables once but I had to sprinkle casts absolutely everywhere because the framework methods all use signed integers. Therefore, whenever you call a framework method, ...
5,397
<p>Consider this problem: I have a program which should fetch (let's say) 100 records from a database, and then for each one it should get updated information from a web service. There are two ways to introduce parallelism in this scenario:</p> <ol> <li><p>I start each request to the web service on a new Thread. The n...
<p>Option 3 is the best:</p> <p>Use Async IO.</p> <p>Unless your request processing is complex and heavy, your program is going to spend 99% of it's time waiting for the HTTP requests.</p> <p>This is exactly what Async IO is designed for - Let the windows networking stack (or .net framework or whatever) worry about ...
<p>The computer running the program is probably not the bottleneck, so: Remember that the HTTP protocol has a keep-alive header, that lets you send several GET requests on the same sockets, which saves you from the TCP/IP hand shake. Unfortunately I don't know how to use that in the .net libraries. (Should be possible....
3,144
<p>Following on from <a href="https://3dprinting.stackexchange.com/questions/6342/what-level-of-voltage-does-the-creality-ender-3-run-at/6521#comment9993_6521">What level of voltage does the Creality Ender-3 run at?</a></p> <p><a href="https://3dprinting.stackexchange.com/questions/6342/what-level-of-voltage-does-the-...
<p>I own the Ender 3, and it runs on 24V, as this photo of the power supply shows: <a href="https://i.stack.imgur.com/3VrGx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3VrGx.jpg" alt="Ender3 Power supply" /></a></p> <p>From power supply to the board, it uses a 2-wire line connected with a XT60 p...
<p>This answer addresses the input voltage. If you look up the official replacement board at the official Creality store the board features a single pair of connectors next to it says: 12 V / 24 V. So you can either use 12 V, or 24 V, not both. An internal regulator will most probably reduce the voltage anyways. </p> ...
981
<p>I've seen references to curried functions in several articles and blogs but I can't find a good explanation (or at least one that makes sense!)</p>
<p>Currying is when you break down a function that takes multiple arguments into a series of functions that each take only one argument. Here's an example in JavaScript:</p> <pre class="lang-js prettyprint-override"><code>function add (a, b) { return a + b; } add(3, 4); // returns 7 </code></pre> <p>This is a funct...
<p>There is an example of "Currying in ReasonML". </p> <pre><code>let run = () =&gt; { Js.log("Curryed function: "); let sum = (x, y) =&gt; x + y; Printf.printf("sum(2, 3) : %d\n", sum(2, 3)); let per2 = sum(2); Printf.printf("per2(3) : %d\n", per2(3)); }; </code></pre>
5,696
<p><a href="https://electronics.stackexchange.com/questions/244366/how-do-i-tell-if-my-thermistors-are-10k-or-100k">This question</a> was migrated to electronics.SE. To me the migration makes no sense:</p> <ul> <li><p>The question deals with a problem that is relevant to the users of this site</p></li> <li><p>This sit...
<p>The question was migrated because the specific question of "<em>How do I tell if my Thermistors are 10k or 100k?</em>" is going to be best answered by users of Electrical Engineering SE. This also provides the SE network with more appropriate traffic based on the question at hand.</p> <p>However, if the question of...
<p>I don't think the question should be migrated. For EE.SE, the question is just stupidly obvious. Even a fairly inexperienced lab tech. would know how to go about answering that question. It really isn't an electronic engineering question at all.</p> <p>Here, the answer (assuming the question is actually the questio...
32
<p>I have spent ages debugging this problem but I can't figure out what I am doing wrong.</p> <p>I have a Wanhao duplicator i3 (Prusa i3 clone) and until recently I used Wanhao's adapted version of the Cura slicer. But it's quite an old Cura version and I wanted to make use of the improved supports in the new Cura.</p...
<p>This problem is most commonly caused by infill speeds which are too high.</p> <p>Instead of printing lines, the filament is caught on one of the lines of the previous layer, leaves a blob there and only restarts extrusion when it hits the next line. Instead of extruding continuously the filament comes out in blobs ...
<p>I am using the same printer (v1.2) with some upgrades and have been using the latest Ultimaker Cura (4.1) ever since they came out. For the first few prints I used an imported Ultimaker Cura profile, but after 3-4 bad prints I created a new profile from scratch, using a percentage for infill, with no problems at all...
637
<p>Since I'm running a 3D printing facility of an engineering school, students are always wondering how much infill percentage affects the stiffness of the part. I know that it is impossible to get a numerical solution for this question, but maybe there is an option to simulate in software an already sliced model. I ha...
<p>I don't believe that slicing engines create any sort of solid model that would be useful for CAD simulation. When a slicing engine slices a 3D model, it's goal is to spit out the preferred machine paths in G-Code (of some kind). However, I've read a few articles, done some tests, and heard through the grape vine tha...
<p>If you're an engineering class, you may very well print out big cubes of different infils and test them. </p>
266
<p>I have a tree representation of pages in a CMS application. I understand how to persist the tree in the database. However, I don't have a good way to:</p> <p>A) Reorder subpages under a particular parent page.<br> B) Provide a UI implementation that allows the user to change the order.</p> <p>Any suggestions?</p>
<p><a href="http://www.javaworld.com/javaworld/jw-12-2004/jw-1220-toolbox.html" rel="nofollow noreferrer">Write custom appenders for log4j</a></p>
<p>May I suggest that you leverage the existing SyslogAppender?</p>
6,934
<p>I recently installed Windows 2008 Server to replace a crashed hard drive on a web server with a variety of web pages including several classic ASP applications. One of these makes extensive use of file uploads using a com tool that has worked for several years.</p> <p>More information: </p> <p>My users did not pro...
<p>There is a size limit that you will probably need to set - what's the 500 error?</p>
<p>There is a size limit that you will probably need to set - what's the 500 error?</p>
9,519
<p>What is the best way to transparently rewrite a URL over an SSL connection with Apache 2.2?</p> <p>Apache 2 does not natively support multiple name-based virtual hosts for an SSL connection and I have heard that mod_rewrite can help with this. I would like to do something like this:</p> <p>I have set up the server...
<p>Configure a single VirtualHost to serve both secure.example.com and dbadmin.example.com (making it the only *:443 VirtualHost achieves this). You can then use <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" rel="nofollow noreferrer">mod_rewrite</a> to adjust the URI for requests to dbadmin.example.co...
<p>There is apaches mod_rewrite, or you could setup apache to direct <a href="https://dbadmin.example.com" rel="nofollow noreferrer">https://dbadmin.example.com</a> to path/to/example.com/dbadmin on the server</p> <pre><code>&lt;VirtualHost *&gt; ServerName subdomain.domain.com DocumentRoot /home/httpd/htdocs/subdomai...
2,979