instruction
stringlengths
27
22.5k
chosen
stringlengths
27
28.2k
rejected
stringlengths
19
24.9k
__index_level_0__
int64
0
10k
<p>I am wondering if anyone can help me achieve a good 3d print using polypropylene. I am trying to print custom insoles for shoes and I'm getting some bad warping/lifting (see image).</p> <p><a href="https://i.stack.imgur.com/ZKi1R.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ZKi1R.jpg" alt="example of w...
<p>You should enable the "brim" functionality of your slicer. This adds additional perimeters to the first layer, expanding the base of the model. The larger surface area gives more adhesion.</p>
<p>One thing that seemed to help is making sure the heated bed was 100C. I was able to do this on my Prusa by turning off the front fan (for the whole print). If I have both the fan on and the heated bed at 100C I get the "Heatbed Thermal Runaway" error.</p> <p>This produced a print that was better but still a bit war...
670
<p>I have a spool of PLA filament where the diameter is visibly inconsistent. So it will only print a meter or two and then start slipping instead of being fed into the nozzle. Is this still useful for anything or can it be salvaged somehow?</p> <p>I can't return it, the shipping costs more than the spool.</p>
<p>In principle you can re-extrude it with a somewhat simpler machine/setup than making filament from scratch, but controlling the diameter is the hard part of making filament - as you can see from how the manufacturer of yours botched it.</p> <p>I would first try insisting on a refund without returning the item unless...
<p>Personally I store all my filament waste in tubs for the day a recycling/reuse solution offers itself. You can &quot;compact&quot; waste prints using hot air which also sticks the whispy pieces together. Someone will eventually come out with a &quot;re-extruder&quot; that simply cooks old filament and then produc...
2,136
<p>In php, I often need to map a variable using an array ... but I can not seem to be able to do this in a one liner. c.f. example:</p> <pre><code>// the following results in an error: echo array('a','b','c')[$key]; // this works, using an unnecessary variable: $variable = array('a','b','c'); echo $variable[$key]; </...
<p>I wouldn't bother about that extra variable, really. If you want, though, you could also remove it from memory after you've used it:</p> <pre><code>$variable = array('a','b','c'); echo $variable[$key]; unset($variable); </code></pre> <p>Or, you could write a small function:</p> <pre><code>function indexonce(&amp;...
<p>Or something like this, if you need the array value in a variable</p> <pre><code>$variable = array('a','b','c'); $variable = $variable[$key]; </code></pre>
3,413
<p>Instead of relying on my host to send an email, I was thinking of sending the email messages using my <strong>Gmail</strong> account. The emails are personalized emails to the bands I play on my show. </p> <p>Is it possible to do it?</p>
<p>Be sure to use <code>System.Net.Mail</code>, not the deprecated <code>System.Web.Mail</code>. Doing SSL with <code>System.Web.Mail</code> is a gross mess of hacky extensions.</p> <pre><code>using System.Net; using System.Net.Mail; var fromAddress = new MailAddress(&quot;from@gmail.com&quot;, &quot;From Name&quot;);...
<p><a href="https://i.stack.imgur.com/xrl3W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xrl3W.png" alt="How to Set App-specific password for gmail" /></a></p> <p>If your Google password doesn't work, you may need to create an app-specific password for Gmail on Google. <a href="https://support.goo...
5,219
<p>Lutz Roeder's Reflector, that is.</p> <p>Its obfuscated.</p> <p><img src="https://i.stack.imgur.com/GHoWj.png" alt="enter image description here"></p> <p>I still don't understand this. Can somebody please explain?</p>
<p>It would have been kind of ironic if it weren't ;-)</p>
<p>Are you allowed to reflect it according to the EULA (if any) ? I would guess not, and not surprised that you can't.</p>
3,330
<p>My project has some money to spend before the end of the fiscal year and we are considering replacing a Sun-Fire-V490 server we've had for a few years. One option we are looking at is the <a href="http://www.sun.com/servers/coolthreads/overview/index.jsp" rel="nofollow noreferrer">CoolThreads</a> technology. All I...
<p>IIRC The coolthreads technology is referring to the fact that rather than just ramping up the clock speed ever higher to improve performance they are now looking at multiple core processors with hyperthreading effectively giving you loads of processors on one chip. Overall the processing capacity available is higher...
<p>It hit me last night that our core processes aren't multi-threaded, but the machine in question does have a bunch of system processes that are. In particular, it acts as an NFS server. It sounds like running hundreds of processes will benefit from all those cores, as well.</p> <p>I'll see if we can get a demo uni...
8,232
<p>I'm not talking about making something that's outright disproportionate of course. I've been working in Blender and I've use Absolute grid Snap to snap my vertices to the grid. The problem is that it (didn't seem) to always work perfectly for centimeters, and seemed to work better for meters. (edit: I've learned wh...
<p>It depends on what you're working on. If you're producing mechanical/functional parts (even if that just means having to connect to one another or to some non-printed part), 3 mm (0.3 cm) error is almost surely going to prevent them from working. Even 0.3 mm error might be a problem.</p> <p>If you're doing standalo...
<p>Welcome to the SE 3D Printing site. Your questions are also welcome, as well as your answers to your questions, and the questions of others.</p> <p>I am not a Blender user. I use CAD systems because most of what I do I want to have a certain dimensional precision.</p> <p>If the problem is as simple as "The overa...
1,368
<p>How can I discover any USB storage devices and/or CD/DVD writers available at a given time (using C# .Net2.0).</p> <p>I would like to present users with a choice of devices onto which a file can be stored for physically removal - i.e. not the hard drive.</p>
<pre><code>using System.IO; DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (DriveInfo d in allDrives) { if (d.IsReady &amp;&amp; d.DriveType == DriveType.Removable) { // This is the drive you want... } } </code></pre> <p>The DriveInfo class documentation is here:</p> <p><a href="http://msdn.microso...
<p>This is a complete module for VB.NET : <br> Imports System.IO <br> Module GetDriveNamesByType <br> Function GetDriveNames(Optional ByVal DType As DriveType = DriveType.Removable) As ListBox <br> For Each DN As System.IO.DriveInfo In My.Computer.FileSystem.Drives <br> If DN.DriveType = DType T...
7,480
<p>I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure: </p> <blockquote> <p>SQLCODE: -1084, SQLSTATE: 57019</p> </blockquote> <p><a href="https://www1.columbia.edu/sec/acis/db2/db2m0/sql1000.htm" ...
<p>Oracle provides a utility called <code>tnsping</code>:</p> <pre><code>R:\&gt;tnsping someconnection TNS Ping Utility for 32-bit Windows: Version 9.0.1.3.1 - Production on 27-AUG-20 08 10:38:07 Copyright (c) 1997 Oracle Corporation. All rights reserved. Used parameter files: C:\Oracle92\network\ADMIN\sqlnet.ora ...
<p>The easiest way is probably to check the <strong>PATH</strong> environment variable of the process that is connecting to the database. Most likely the tnsnames.ora file is in <em>first Oracle bin directory in path</em>..\network\admin. TNS_ADMIN environment variable or value in registry (for the current Oracle home)...
3,170
<p>I'm receiving "Package Load Failure" error when I open VS 2005 after I installed the latest VisualSVN (v. 1.5.2). Anyone facing this error? Is there any tool out there to help identify which package didn't load and/or help unload a specific package?</p>
<p>Installing the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=30402623-93ca-479a-867c-04dc45164f5b" rel="nofollow noreferrer">Visual Studio SDK</a> will install the "Package Load Analyzer" package. This allows you to see what package failed to load and why.</p>
<p>There should be VisualSVN log files in your temp folder (somewhat like "C:\Documents and Settings\\Local Settings\Temp\VisualSVN-2007-06-02-00-01-416.log").</p> <p>Do you see anything in that file that helps?</p>
6,718
<p>I'd like to allow a user to set up an SSH tunnel to a particular machine on a particular port (say, 5000), but I want to restrict this user as much as possible. (Authentication will be with public/private keypair).</p> <p>I know I need to edit the relevant ~/.ssh/authorized_keys file, but I'm not sure exactly what ...
<p>On Ubuntu 11.10, I found I could block ssh commands, sent with and without -T, and block scp copying, while allowing port forwarding to go through. </p> <p>Specifically I have a redis-server on "somehost" bound to localhost:6379 that I wish to share securely via ssh tunnels to other hosts that have a keyfile and wi...
<p>See <a href="http://www.networknewz.com/networknewz-10-20030707AuthenticatingbyPublicKeyOpenSSH.html" rel="nofollow noreferrer">this post on authenticating public keys</a>.</p> <p>The two main things you need to remember are:</p> <ol> <li>Make sure you <code>chmod 700 ~/.ssh</code></li> <li>Append the public key b...
2,956
<p>I searched for this and found <a href="https://stackoverflow.com/users/1632/maudite">Maudite's</a> question about <a href="https://stackoverflow.com/questions/14155/text-editors#14203">text editors</a> but they were all for Windows.</p> <p>As you have no doubt guessed, I am trying to find out if there are any text/...
<p>I haven't used it myself, but another <strong>free</strong> one that I've heard good thing about is <a href="http://smultron.sourceforge.net/" rel="noreferrer">Smultron</a>.</p> <p>In my own research on this, I found this interesting article: <a href="http://mac360.com/index.php/mac360/comments/faceoff_which_is_the...
<p>I like Aptana Studio and Redcar for rails programming.</p>
4,089
<p>We have to connect to a third party SOAP service and we are using WCF to do so. The service was developed using Apache AXIS, and we have no control over it, and have no influence to change how it works. The problem we are seeing is that it expects the requests to be formatted using Web Services Security, so we are ...
<p>Funny you should ask this question. I asked Microsoft how to do this about a year ago. At the time, using .NET 3.0, it was not possible. Not sure if that changed in the 3.5 world. But, no, there was no physical way of adding security to the request and leaving the response empty.</p> <p>At my previous employer we u...
<p>Funny you should ask this question. I asked Microsoft how to do this about a year ago. At the time, using .NET 3.0, it was not possible. Not sure if that changed in the 3.5 world. But, no, there was no physical way of adding security to the request and leaving the response empty.</p> <p>At my previous employer we u...
8,860
<p>Does anybody if the Anycube Mega X comes with a nozzle for 1.75 mm filaments or is it 2.85 mm? I saw online that it works with 1.75 mm filaments but the Cura settings given by the manufacturer had 2.85 mm.</p> <p>I should mention that using a 1.75 mm filament works BUT my designs have clear under-extrusion, which is...
<p>Reading all 49 pages of the manual was fruitless. I'm astonished that there is no reference to the filament diameter used in this printer.</p> <p>From <a href="https://www.3djake.com/anycubic-3d-printer-and-accessories/mega-x" rel="nofollow noreferrer">3dJake's web site</a> comes a confirmation that the printer uses...
<p>This is a well-known problem with Cura. The filament diameter is set to 2.85 mm by default (probably because Ultimaker printers use 2.85 mm filament). This will cause extreme under-extrusion if your printer uses 1.75 mm filament. Simply change the filament diameter to 1.75 mm in Cura's printer definition, and everyt...
1,927
<p>What's the best way to programmatically merge a .reg file into the registry? This is for unit testing; the .reg file is a test artifact which will be added then removed at the start and end of testing.</p> <p>Or, if there's a better way to unit test against the registry...</p>
<p>It is possible to remove registry keys using a .reg file, although I'm not sure how well it's documented. Here's how:</p> <pre><code>REGEDIT4 [-HKEY_CURRENT_USER\Software\&lt;otherpath&gt;] </code></pre> <p>The <code>-</code> in front of the key name tells <code>Regedit</code> that you want to remove the key.</p...
<p>One of the most frustrating things about writing unit tests is dealing with dependencies. One of the greatest things about Test-Driven Development is that it produces code that is decoupled from its dependencies. Cool, huh?</p> <p>When I find myself asking questions like this one, I look for ways to decouple the ...
5,551
<p>How can you reliably and dynamically load a JavaScript file? This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed JavaScript library scripts on demand.</p> <p>The client that uses the component isn't required to load all the library script ...
<p>You may create a script element dynamically, using <a href="http://www.prototypejs.org/" rel="nofollow noreferrer">Prototypes</a>:</p> <pre><code>new Element(&quot;script&quot;, {src: &quot;myBigCodeLibrary.js&quot;, type: &quot;text/javascript&quot;}); </code></pre> <p>The problem here is that we do not know <em>wh...
<p>all the major javascript libraries like jscript, prototype, YUI have support for loading script files. For example, in YUI, after loading the core you can do the following to load the calendar control</p> <pre><code>var loader = new YAHOO.util.YUILoader({ require: ['calendar'], // what components? base: '...
4,153
<p>I am currently in the look for a 3D printer and one major issue I find it the fumes/VOCs that printing can emit. I am not planning to do ABS or similar but I've read from studies that PLA also may emit VOCs. I live in an apartment and I plan to put the printer in my office, in which I work remotely, so I spend 8+ ho...
<p>The VOC issue is overblown. Unless you print constantly, you don't need any air treatment. Often that kind of treatment is installed by people who like DIY for the fun of it, not because it's really needed.</p> <p><a href="https://www.sciencedirect.com/science/article/pii/S0360132319304196" rel="nofollow noreferrer"...
<p>An enclosure without ventilation would definitely not be enough to contain VOCs from my experience with ABS and HIPS (both have relatively strong smells). The fumes will simply seep out of the openings in the enclosure.</p> <p>I put my 3d printer in a bathroom with an exhaust fan. The fan's outlet is IP-controllable...
1,984
<p>I am very close to buying a 3D printer and have started to do some preliminary design work from the things I'd like to make, but I have a question: Which corner of the print bed corresponds to the origin (0,0,0) in slicer software? Is this the same across slicers and printers?</p> <p>The reason I ask this is becaus...
<p>Depending on what kind of printer you have, the build table origin and slicer origin (0,0) are usually either the front left corner, or the center of the build plate. This can be changed by the end-user in most open-source printers. There is no standard or requirement for a particular origin location. The important ...
<p>Normally the home position of the printer is the front left corner of the bed. The slicing software will ask you where this is so you can than position your object anywhere on the bed. The slicing software will make all the necessary adjustments for you. You normally would print the object in the middle of the bed,...
279
<p>I need to check programmatically (in .NET) whether a given user (domain account) is a member of the built-in Administrators group on a current computer (the one where the application gets executed).</p> <p>Is it possible?</p>
<p>I don't know about .Net, but in win32, the easy way is to call IsUserAnAdmin(). If you need more control, you can open the process token and check with CheckTokenMembership for each group you need to check</p> <p><strong>Edit:</strong> See <a href="http://www.pinvoke.net/default.aspx/advapi32/CheckTokenMembership.h...
<p>You could loop the groups like i did in this answer:</p> <p><a href="https://stackoverflow.com/questions/45437/determining-members-of-local-groups-via-c#45458">Determining members of local groups via C#</a></p> <p>After reading some more, the easiest thing would be to use the <code>System.DirectoryServices.Account...
7,550
<p>Can someone explain this result to me. The first test succeeds but the second fails, although the variable tested is changed in the first test.</p> <pre><code>&gt;&gt;&gt; class MyTest(unittest.TestCase): def setUp(self): self.i = 1 def testA(self): self.i = 3 self.assertEqual(self.i...
<p>From <a href="http://docs.python.org/lib/minimal-example.html" rel="noreferrer">http://docs.python.org/lib/minimal-example.html</a> :</p> <blockquote> <p>When a setUp() method is defined, the test runner will run that method prior to each test.</p> </blockquote> <p>So setUp() gets run before both testA and t...
<p>The setUp method, as everyone else has said, runs before every test method you write. So, when testB runs, the value of i is 1, not 3.</p> <p>You can also use a tearDown method which runs after every test method. However if one of your tests crashes, your tearDown method will never run.</p>
9,803
<p>In the STL almost all containers have an erase function. The question I have is in a vector, the erase function returns an iterator pointing to the next element in the vector. The map container does not do this. Instead it returns a void. Anyone know why there is this inconsistancy?</p>
<p>See <a href="http://www.sgi.com/tech/stl/Map.html" rel="noreferrer">http://www.sgi.com/tech/stl/Map.html</a></p> <blockquote> <p>Map has the important property that inserting a new element into a map does not invalidate iterators that point to existing elements. Erasing an element from a map also does not...
<p>I have no idea if this is the answer, but one reason might be with the cost of locating the next element. Iterating through a map is inherently "slow".</p>
7,600
<p>I print my ABS at:</p> <ul> <li>240 °C;</li> <li>with a bedtemp of 80 °C; </li> <li>5 % rectilinear infill;</li> <li>0.25 mm layer height;</li> <li>2 solid layers top and bottom; </li> <li>Fan is completely disabled;</li> <li>0.25 mm extrusion width;</li> <li>50 mm/s perimeter print speed;</li> <li>60 mm/s infill s...
<p>Looking at the infill pattern visible through the tears in the top layer, it looks as if you have unreliable extrusion on the infill layers also.</p> <p>The solid fill layer is lifted and torn, so it is unlikely that one or two more layers of solid fill will make the result better. In my experience, bumps lead to ...
<p>This looks a bit like you may have a level issue with your printer. I've had similar results when my nozzle isn't clean and my bed is slightly off level. When the nozzle isn't clean (inside and out) either the flow rate out is different than what you set it to be due to back pressure or there is material on the nozz...
673
<p>Is there a standard way for a web server to be able to determine a user's timezone within a web page? </p> <p>Perhaps from an HTTP header or part of the <code>user-agent</code> string?</p>
<p>There are no HTTP headers that will report the clients timezone so far although it has been suggested to include it in the HTTP specification.</p> <p>If it was me, I would probably try to fetch the timezone using clientside JavaScript and then submit it to the server using Ajax or something.</p>
<p>There's no such way to figure the timezone in the actual HTML code or any <code>user-agent</code> string, but what you can do is make a basic function getting it using JavaScript.</p> <p>I don't know how to code with JavaScript yet so my function might take time to make.</p> <p>However, you can try to get the actual...
2,234
<p>I'm new at 3D Printing. I made a model of what I want to print using blender, but it's really small with a little system that must be very precise to work.</p> <p>What I have is like a hollow cylinder with a diameter of 11mm, and a thickness of 1mm. This goes inside a counter part, that is carve with the cylinder s...
<p>It is definitively possible to do what you want, but your questions are samewhat problematic:</p> <blockquote> <p>So, I need to know if it's possible to print that cylinder hard enough to work as an axis.</p> </blockquote> <p>"hard enough" is a mysterious quantity. What is the intended application? The load of ...
<p>It is considered good practice to limit your post to one question at a time. The question about hardware and material is too broad to be a good question and I will set that aside.</p> <p>Equally unfortunate, your drawing is ambiguous. I suppose if English is not your native language, I'm not helping things either.<...
854
<p>What is the best way of implementing a cache for a PHP site? Obviously, there are some things that shouldn't be cached (for example search queries), but I want to find a good solution that will make sure that I avoid the 'digg effect'.</p> <p>I know there is WP-Cache for WordPress, but I'm writing a custom solution...
<p>You can use <a href="http://uk3.php.net/manual/en/function.ob-get-contents.php" rel="noreferrer">output buffering</a> to selectively save parts of your output (those you want to cache) and display them to the next user if it hasn't been long enough. This way you're still rendering other parts of the page on-the-fly ...
<p><a href="https://whatcd.github.io/Gazelle/" rel="nofollow noreferrer">Project Gazelle</a> (an open source torrent site) provides a step by step guide on setting up Memcached on the site which you can easily use on any other website you might want to set up which will handle a lot of traffic.</p> <p>Grab down the so...
7,896
<p>The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.</p> <p>I have seen <a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorCPP/index.xml" rel="noreferrer">Refactor!</a> and am cur...
<p>Visual Assist X by Whole Tomato software is not free, but it's absolutely worth the money if you use Visual Studio for C++.</p> <p><a href="http://www.wholetomato.com/" rel="noreferrer">http://www.wholetomato.com/</a></p>
<p>I'm not familiar with the tools you mentioned but the refactoring support for C++ in <a href="http://www.eclipse.org/downloads/packages/" rel="nofollow noreferrer">Eclipse 3.4</a> is getting pretty useful and growing.</p>
3,692
<p>In python, there are some special variables and filenames that are surrounded by double-underscores. For example, there is the</p> <pre><code>__file__ </code></pre> <p>variable. I am only able to get them to show up correctly inside of a code block. What do I need to enter to get double underscores in regular ...
<p>__file__</p> <p>Put a backslash before the first underscore.</p> <p>Like this:</p> <pre><code>\__file__ </code></pre>
<p><code>_\_file__</code> enter this will help you.</p>
7,644
<p>We wanted to test the post process properties of PVA but did not want to print anything. We unloaded the ABS that was in the printer and then started loading some PVA. After the PVA was loaded we let it keep going through the loading process until it pushed all the PVA out and we had our test sample. We then stop...
<p>Run some cleaning filament through the extruder at the printing temperature of your PVA or ABS filament, whichever is greater, until the old stuff has been completely displaced. Then load the new filament until the cleaning filament has been completely displaced.</p> <p>This should be done every time you are switch...
<p>Run some cleaning filament through the extruder at the printing temperature of your PVA or ABS filament, whichever is greater, until the old stuff has been completely displaced. Then load the new filament until the cleaning filament has been completely displaced.</p> <p>This should be done every time you are switch...
922
<p>In JavaScript, what is the best way to determine if a date provided falls within a valid range?</p> <p>An example of this might be checking to see if the user input <code>requestedDate</code> is part of the next valid work week. Note that this is not just checking to see if one date is larger than another as a vali...
<p>This is actually a problem that I have seen come up before a lot in my works and the following bit of code is my answer to the problem.</p> <pre><code>// checkDateRange - Checks to ensure that the values entered are dates and // are of a valid range. By this, the dates must be no more than the // built-in...
<p>So if i understand currenctly, you need to look if one date is bigger than the other.</p> <pre><code>function ValidRange(date1,date2) { return date2.getTime() &gt; date1.getTime(); } </code></pre> <p>You then need to parse the strings you are getting from the UI, with Date.parse, like this:</p> <pre><code>Vali...
9,970
<p>So I've designed a few components in Fusion 360, but I'm kinda new to CAD. I did the tutorials AutoDesk have on YouTube, modelled an Arduino enclosure, a shampoo bottle, a lamp shade, etc. but what I'm doing now isn't as straightforward...</p> <p>Before I used to create solids, but what I'm doing right now is essen...
<p>Ok, let's go down the main two ways to a part, and in practice you usually use both to design for 3D printing. Only for machining, you try to keep to the cutting method only.</p> <ul> <li>Cutting Method</li> <li>Building Method</li> </ul> <h1>Cutting Method</h1> <p>You start with a piece of &quot;stock&quot;. A cube...
<p>After @Trish posted their answer, I went back to my design, and used substractive design, because I watch a lot of machining videos, and instead of the &quot;thicken&quot; feature that kinda did what I wanted, I used the &quot;shell&quot; command that did exactly what I wanted, see below.</p> <p><a href="https://i.s...
1,793
<p>I am new here and would like to work on a project to 3D print a precision prototype. What is the most affordable way to do it? How do I go about it?</p>
<p>[The question ask asked is vague, but since you are new it is understandable.]</p> <p>If you want to build a precision prototype then you have to decide on the level of precision that is necessary. There are different types of 3D printers and services available which give various levels of precision and functionali...
<p>These two videos seem to give a good, general, entry-level introduction to the various technologies and processes that are involved in 3D printing:</p> <ul> <li><a href="https://www.youtube.com/watch?v=3LBTkLsjHGQ" rel="nofollow noreferrer">The Ultimate Beginner's Guide to 3D Printing - Part 1</a></li> <li><a href=...
1,245
<p>How could i implement Type-Safe Enumerations in Delphi in a COM scenario ? Basically, i'd like to replace a set of primitive constants of a enumeration with a set of static final object references encapsulated in a class ? . In Java, we can do something like:</p> <pre><code>public final class Enum { public sta...
<p>What is wrong with native Delphi enums? They are type safe.</p> <pre><code>type TMyEnum = (Item1, Item2, Item3); if MyEnum &lt;&gt; Item1 then... </code></pre> <p>Since Delphi 2005 you can have consts in a class, but Delphi 5 can not.</p> <pre><code>type TMyEnum = sealed class public const Item1 = 0; ...
<p>I think I know why Borland choose not to use type safe enums in the TLB editor. Enums in COM can be different values while Delphi only since Delphi 6 (I think) can do that. </p> <pre><code>type TSomeEnum = (Enum1 = 1, Enum2 = 6, Enum3 = 80); // Only since Delphi 6 </code></pre>
5,040
<p>I noticed foot arches are already digitized, but custom arch supports are usually expensive. PLA and ABS aren't the best material for printing arch supports, especially if they replace the shoe's innersole. </p> <p>Is there a more flexible material for 3D printing that could be used for making custom orthotics?</p...
<p>The standard choice for this would be TPU, <a href="https://en.wikipedia.org/wiki/Thermoplastic_polyurethane" rel="nofollow noreferrer">thermoplastic polyurethane</a>.</p> <blockquote> <p>TPU is a common filament material for use in fused filament fabrication 3D printing due to the fact that it is an elastic thermop...
<p>Armadillo by Ninjatek is perfect with 100&nbsp;% infill and 6 layers 6 walls and 6 the other thing? As a foot pharmacist I can say the cost is associated with the education as pedorthic modalities are different to each person. Ideally it would be easy to 3D print arch supports, but it would also be easy to "hurt" ...
1,346
<p>The following bit of code catches the EOS Exception</p> <pre><code>using (var reader = new BinaryReader(httpRequestBodyStream)) { try { while (true) { bodyByteList.Add(reader.ReadByte()); } } catch (EndOfStreamException) { } } </code></pre> <p>So why do I still receive first-ch...
<p>To avoid seeing the messages, right-click on the output window and uncheck "Exception Messages".</p> <p>However, seeing them happen might be nice, if you're interested in knowing when exceptions are thrown without setting breakpoints and reconfiguring the debugger.</p>
<p>I think the stream is throwing this exception, so your try is scoped to narrow to catch it.</p> <p>Add a few more try catch combos around the different scopes until you catch it where its actually being thrown, but it appears to be happening either at our outside of your using, since the stream object is not create...
8,273
<p>I have a model that contains a cavity, into which I want to insert a piece of metal, so I can use a magnet to stick to the print. How can I introduce a pause into the G-code without manipulating it manually in Ultimaker Cura?</p>
<p>Ultimaker Cura contains "Extensions"; in version 4.1.0, the process is as follows:</p> <ul> <li>Extensions -> Post Processing -> Modify G-code</li> <li>Add a Script -> Pause at height <ul> <li>Choose the one that matches your firmware!</li> </ul></li> <li>Choose the <code>Pause height</code> to match the height th...
<p><a href="/a/10588/">This answer</a> already explains how you insert the G-codes to enable a pause into your model. But, <strong>this will only work if the printer supports the G-codes that are inserted by Cura</strong>. E.g. <a href="/q/11236">this question</a> shows that this does not always work!</p> <p>To pause ...
1,410
<p>I just upgraded the nozzle (to 1 mm) on an Ender 3v2 and want to make a test print. I added a new printer for the new nozzle size.... and can't find a setting for it. Some screenshots on the internet show a nozzle diameter setting in the machine settings, but I do not have that. (<strong>Manage printers</strong> &...
<h1>Mechanical interaction</h1> <h2>Operator induced regular actions</h2> <p>When an operator reaches into the machine and operates something on the bed, this can induce errors that slowly accumulate. The most typical operation would be to remove something from the printbed, cleaning the printbed or swapping the printb...
<p>The only ones I have found are.</p> <p>Manually putting pressure on the bed when removing prints.</p> <p>Removing the bed covering, eg a glass plate</p> <p>Damaging the bed in some way. For example my bed has high spots on it (always has). This means that if I remove the glass plate I use and put it back, it sits sl...
2,149
<p>I am trying to implement a request to an unreliable server. The request is a nice to have, but not 100% required for my perl script to successfully complete. The problem is that the server will occasionally deadlock (we're trying to figure out why) and the request will never succeed. Since the server thinks it is...
<p>You might try <a href="http://search.cpan.org/%7Ebradfitz/LWPx-ParanoidAgent-1.02/lib/LWPx/ParanoidAgent.pm" rel="noreferrer">LWPx::ParanoidAgent</a>, a subclass of LWP::UserAgent which is more cautious about how it interacts with remote webservers.</p> <p>Among other things, it allows you to specify a global timeou...
<p>From what I understand, the timeout property doesn't take into account DNS timeouts. It's possible that you could make a DNS lookup separately, then make the request to the server if that works, with the correct timeout value set for the useragent.</p> <p>Is this a DNS problem with the server, or something else?</p...
9,898
<p>I've been strictly in a C++ environment for years (and specialized statistical languages). Visual Studio until 2001, and Borland since. Mostly specialized desktop applications for clients. </p> <p>I'm not remaining willfully ignorant of it, but over the years when I've dipped into other things, I've spent my time p...
<blockquote> <p>ASP.NET is a web application framework developed and marketed by Microsoft, that programmers can use to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Serve...
<p>Take a look at MS' info for those who don't know or understand the platform.</p> <p><a href="http://www.asp.net/get-started" rel="nofollow noreferrer">http://www.asp.net/get-started</a></p>
4,549
<p>Using the viewer control for display of SQL Reporting Services reports on web page (Microsoft.ReportViewer.WebForms), can you move the View Report button? It defaults to the very right side of the report, which means you have to scroll all the way across before the button is visible. Not a problem for reports that f...
<p>It's kind of a hack, but you can move it in JavaScript. Just see what HTML the ReportViewer generates, and write the appropriate JavaScript code to move the button. I used JavaScript to hide the button (because we wanted our own View Report button). Any JavaScript code that manipulates the generated ReportViewer's H...
<p>I had the same problem and ended up using an extension on Travis Collins answer; As well as changing the table column width I also align the "View Report" button left so that it appears neearer to rest of the controls.</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function() { $(...
4,108
<p>I'm working on building an app to scan directly from TWAIN scanner to a Java applet. I'm already aware of <a href="http://www.gnome.sk/Twain/jtp.html" rel="noreferrer">Morena</a> and <a href="http://asprise.com/product/jtwain/" rel="noreferrer">JTwain</a>, but they cost money. I need free. I could re-invent the whee...
<p>Calling the TWAIN API from anything except C/C++ is going to be a major pain, it relies entirely on complicated C structures that you have to replicate exactly in memory. If you need only fairly basic scanning, you could use something like <a href="https://github.com/twall/jna/" rel="nofollow noreferrer">GitHub site...
<p>I've actually purchased the chestysoft activeX control. Been using it for about 3 years. Works great but as with all ActiveX you are restricted to IE. And this one is 32-bit only. I'm looking into a flash approach now. Since flash can capture from a camera why not from a scanner. If I remember I'll report back ...
3,249
<p>This is a segment of code from an app I've inherited, a user got a Yellow screen of death:</p> <blockquote> <p>Object reference not set to an instance of an object</p> </blockquote> <p>on the line: </p> <pre><code>bool l_Success ... </code></pre> <p>Now I'm 95% sure the faulty argument is <code>ref l_Monitor<...
<p>You sure that one of the properties trying to be accessed on the l_Monitor instance isn't null?</p>
<p>Sprinkle in a few variables for all the property-queries on that (loooooongg) line temporarily. Run the debugger, Check values and Corner the little bug.</p>
7,886
<p>What would be the Master Pages equivalent in the Java web development world? I've heard of Tiles, Tapestry and Velocity but don't know anything about them. Are they as easy to use as Master Pages? </p> <p>I want something as easy as set up one template and subsequent pages derive from the template and override c...
<p>You should also check out <a href="https://facelets.java.net/" rel="nofollow noreferrer">Facelets</a>; there is a <a href="http://www.ibm.com/developerworks/java/library/j-facelets/" rel="nofollow noreferrer">good introductory article</a> on DeveloperWorks.</p> <p>The Facelets <code>&lt;ui:insert/&gt;</code> tag is...
<p>I've used <a href="http://wiki.sitemesh.org/display/sitemesh/Home" rel="nofollow">sitemesh</a> in previous projects and it's pretty easy to set up. Essentially, you create decorators which are equivalents of master pages. You then define which child pages use which decorators. See <a href="http://today.java.net/pub/...
4,515
<p>How do I smooth 3D printed objects? What is the best / common method to do this?</p>
<p>From a general point of view, there are a few things to consider.</p> <p><strong>If you buy a kit</strong>:</p> <p>Pros:</p> <ul> <li>You get some insurance that <em>you have all the parts that you need</em> to get a functional printer - all the electronics, structure, bolts, nuts, screws, washers, wires and so o...
<p>Three great answers have already been posted, and it has been extremely interesting to read them. I shall try not to repeated what has already been said.</p> <p>I have sourced the parts <em>separately</em> for three different printers:</p> <ul> <li>P3Steel (the frame was a kit, mind: <a href="https://3dprinting.stac...
173
<p>Is a home 3D printer capable of printing a good bicycle air pump?</p> <p>I've searched the Internet and there is very limited info on it. Things need to be rigid and very minutious in the valve part of the pump. I could give an example of what I thought in the image <a href="https://i.stack.imgur.com/cFuku.jpg" rel...
<h1>depends</h1> <p>You certainly can print <em>parts</em> of <strong>a</strong> bicycle pump, for example, the outer case and maybe the inner piston, maybe even the housing for the connection valves.</p> <p>However, you cant print the buffer spring or the valves itself. You will have trouble printing the adapters. And...
<p>It should be possible to print such a product. You should be printing this in a tough material at a fine layer resolution and probably need to machine the inside of the cylinder or use grease and use a rubber valve. </p>
1,124
<p>Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both <a href="http://ruby-doc.org/core-2.2.0/Time.html" rel="nofollow noreferrer"><code>Time</code></a> and <a href="http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdo...
<p>If you only need dates (no times), the <a href="http://ruby-doc.org/stdlib-2.2.3/libdoc/date/rdoc/Date.html" rel="nofollow noreferrer"><code>Date</code></a> class in ruby should handle dates before 1970. But it has only a resolution of days. I don't know if there are solutions, if you also need times before 1970 <a ...
<p>You can also check out the section on dates on <a href="http://ruby-doc.org/stdlib/libdoc/date/rdoc/index.html" rel="nofollow noreferrer">ruby-doc.org</a>. I'm still learning Ruby but it sounds like you could use either the <a href="http://ruby-doc.org/stdlib/libdoc/date/rdoc/index.html" rel="nofollow noreferrer">C...
4,770
<p>I have an UP! mini and I am using the UP Studio and ABS 1.75 mm.</p> <p>My prints are always stuck to the rafts and are impossible to remove without destroying the print.</p> <p>I've had a look at the settings on the Up Studio but I don't know which ones to change to improve the situation.</p>
<p>The OpenSCAD <code>surface</code> function will do this. You can feed it a greyscale image or a textfile containing a matrix. Documentation and examples can be found at <a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface" rel="nofollow noreferrer">https://en.wikibooks.org/wi...
<p>FreeCAD can import JPG (and IIRC TIFF and PNG as well) image files and produce a lithophane type height-map based on the brightness of each pixel. I'd be rather surprised if other 3D CAD software aimed at the 3D printing user base couldn't do the same. Most of the common free-to-use 3D CAD packages have Linux vers...
1,955
<p>I'm getting an error when my application starts. It appears to be after it's initialized its connection to the database. It also may be when it starts to spawn threads, but I haven't been able to cause it to happen on purpose.</p> <p>The entire error message is:<br> FATAL ERROR in native method: JDWP NewGlobalRef...
<p>JVMTI is the debugging and profiling protocol. So, I'm guessint it's something peculiar to the environment you are attempting to run your application in.</p>
<p>I'm guessing you are using a native-code&ndash;based database driver (JDBC driver type 1 or 2). And I'm guessing that driver is buggy. If you could provide more information about the driver and your datasource configuration or connection string, it might help determine some answers.</p>
7,558
<p>I'm attempting to model and print a globe. The semi-circular arm that holds the globe has an outer diameter of 98mm and inner diameter of 92mm, so the arm is fairly thin. The arm has a small hole on either end that fits around a protrusion at each pole of the globe to hold it in place. The hole extends into the a...
<p><strong>The flexibility of 3d plastics has a lot to do with the additives manufacturers use</strong>. The same base material with additive X may have very different properties than the one with additive Y.</p> <p>That said, <strong>generally speaking PLA is known to be more rigid</strong> (and brittle) than ABS, b...
<p>Print thinner layers. Also, you did not mention the other dimension of your arm. If you view the globe with the arm to the left, then you have said the thickness in the X direction (left to right) is 6mm. But what about in the Z axis (away from you)? You could make it thicker in that direction to improve its rigidit...
793
<p>I know that MAC OS X 10.5 comes with Apache installed but I would like to install the latest Apache without touching the OS Defaults incase it causes problems in the future with other udpates. So I have used the details located at: <a href="http://diymacserver.com/installing-apache/compiling-apache-on-leopard/" rel=...
<p>Add this to your ~/.bash_profile which means that your architecture is 64-bit ant you’d like to compile Universal binaries.</p> <pre><code>export CFLAGS="-arch x86_64" </code></pre>
<p><a href="http://www.mail-archive.com/dev@httpd.apache.org/msg38674.html" rel="nofollow noreferrer">This page</a> claims that a flag for gcc (<code>maix64</code>) should do the trick. Give it a whirl, and if you need any more help, post back here.</p>
4,544
<p>I am trying to modify this <a href="https://www.thingiverse.com/thing:2516525" rel="noreferrer">thing</a>. It's prints OK, but there are some design choices I don't like, so, since the previous makers uploaded their source files, I tried my hand at Sketchup.</p> <p>My latest round of changes have produced a weird ...
<h1>first issue</h1> <p>bed inclination. it has to be heavy issue :)</p> <p>if you have any other printouts then please reveal them so we could see if it's the problem</p> <h1>next issue</h1> <p>inversion of hole into solid object</p> <p>i would say it's caused by wrong calculation of <a href="https://en.wikipedia...
<p>Looks like you are over extruding.</p> <p>check out this visual guide for example (I like it a lot):</p> <p><a href="http://support.3dverkstan.se/article/23-a-visual-ultimaker-troubleshooting-guide" rel="nofollow noreferrer">http://support.3dverkstan.se/article/23-a-visual-ultimaker-troubleshooting-guide</a></p> ...
722
<p>In my example below I'm using a <code>dijit.form.DateTextBox</code>:</p> <pre><code>&lt;input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='&lt;c:out value="${sessionScope.adminMessageForm.startDate}"/&gt;' /&gt; </code></pre> <p>So for example, if ...
<p>Try overriding the validate method in your markup.</p> <p>This will work (just tested):</p> <pre><code>&lt;input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='&lt;c:out value="${sessionScope.adminMessageForm.startDate}"/&gt;' validate='retur...
<p>My only suggestion is to programmatically remove the dojoType on the server-side or client-side. It is not possible to keep the dojoType and not have it validate. Unless you create your own type that has you logic in it.</p>
3,633
<p>My printer came with a knock off BuildTak like build surface. What can I use to clean it? I don't want to damage it. </p>
<p>For BuildTak, my first recommendation is isopropyl alcohol (aka rubbing alcohol or isopropanol). Readily available just about anywhere basic medical supplies are sold, it cuts though light oils and greases, and dissolves most common build surface adhesives like hairspray or Elmer's glue stick. In fact I often give m...
<p>Besides IPA (80 %), which is one of the best cleaners for general pourpose, 99 % ethanol ("Spiritus") can work as a good substitute.</p> <p>Acetone too can be used on BuildTak and its clones in a pitch without damaging it, as long as it is kept away from the edges, where it could weaken the bond to the aluminium. U...
1,554
<p>I want to build a mini CNC machine and need some lead screws. I was wondering I can simply 3D print some. There are a few 3D models out there but I want to know if printing it in PLA+ has enough strength for a small CNC. Is it possible?</p>
<p>Expanding on some previous comments which are probably enough to warrant an answer:</p> <p>What Trish said is completely right. Leadscrews are readily available parts and any dimensional errors in the leadscrews will be reflected in the output of your CNC machine unless you have some sort of compensation for them. M...
<p>Is it possible? Yes. Is it advisable? <strong>No</strong></p> <p>Lead screws need to be smooth and have little to no stretch and there can be a lot of tension on them. However, 3D prints are quite rough by the way they are made and super weak on tension forces - and not have a good compression withstanding either.</...
1,896
<p>I have a few C# <code>.dll</code> projects which are common to many applications. Currently, I have one big repository. I have each DLL stored as a separate project within the repository and every application project stored as a project within the same repository.</p> <p>I recently switched to Subversion for sourc...
<p>Subversion repositories are typical sub-divided into:</p> <pre><code>branch/ tags/ trunk/ </code></pre> <p>You would either place all of your DLL and application projects into the <strong>trunk</strong> and then use <strong>branch</strong> and <strong>tags</strong> for all of them as necessary too:</p> <pre><code...
<p>if your sub projects can be released at different versions (like controls, web parts, ect...) then it may make sense to build your structure like this:</p> <p><strong>Solution</strong><br> Project 1 </p> <blockquote> <ul> <li>Branch </li> <li>Tags </li> <li>Trunk </li> </ul> </blockquote> <p>Project...
3,638
<p>Looking for a way to read the unique ID / serial# of a USB thumb drive; please note that<br> - I am looking for the value of the manufacturer, not the one Windows allocates for it.<br> - I need to support multiple OS (Windows, Unix, Mac), thus needs to be a Java solution</p> <p>The idea is to be able to distinguish...
<p>I've never tried using it (it's been on my todo list for a good few months now), but there is the "marge" project on java.net:</p> <p><a href="http://marge.java.net/" rel="nofollow noreferrer">http://marge.java.net/</a></p> <p>This should let you connect to bluetooth devices (although I don't think it is 100% feat...
<p>I have never investigated this thoroughly, but from memory the <a href="http://users.frii.com/jarvi/rxtx/" rel="nofollow noreferrer">RXTX</a> library implementation of the javax.comm packages are supposedly very good and now have USB support.</p>
9,896
<p>I'd like to take some time to learn more about dynamic languages built on top of the DLR and I'm not sure which language would be better to learn.</p> <p>Having limited time, I really only have time to look learn one of them.</p> <p>Any opinions on which of the two (Iron Ruby or Iron Python) would be more useful i...
<p>Without getting into the relative merits of the languages (which would be an entire pissing contest in itself), IronPython (stable 1.1.1, beta 2.0) is further along in development than IronRuby (alpha)</p>
<p>As other said, IronPython is more stable and mature, and you can find more samples and lots of regular Python code that you will be able to try out.</p> <p>IronRuby is great but beware: to try it you need to get the code right from the SVN and compile it by yourself. Or you can download the <a href="http://www.code...
6,423
<p>What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?</p> <p>And is there a way to populate the table with a list of key->value pairs without individually calling an add method on the obje...
<pre><code>Map map = new HashMap(); Hashtable ht = new Hashtable(); </code></pre> <p>Both classes can be found from the java.util package. The difference between the 2 is explained in the following <a href="http://www.jguru.com/faq/view.jsp?EID=430247" rel="noreferrer">jGuru FAQ entry</a>.</p>
<pre><code>Hashtable&lt;Object, Double&gt; hashTable = new Hashtable&lt;&gt;(); </code></pre> <p><strong>put values</strong> ...</p> <p><strong>get max</strong></p> <pre><code>Optional&lt;Double&gt; optionalMax = hashTable.values().stream().max(Comparator.naturalOrder()); if (optionalMax.isPresent()) System.out.pr...
4,897
<p>This is my first 3D printer so I'm not entirely sure what could be the cause of this issue.</p> <p>I recently got a SUNLU S8 3D printer and have been trying to print the first test file, however, the layers end up stringy (for lack of a better word -- if anyone knows whether this is called something else, I'd apprec...
<p>In the video, there is this still from <a href="https://youtu.be/bKsGNrEKx9M?t=32" rel="nofollow noreferrer">0:32</a>:</p> <p><a href="https://youtu.be/bKsGNrEKx9M?t=32" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jf2F8.png" alt="enter image description here" /></a></p> <p>The labeling is iPro 8000...
<p>If you look at the video at 37 seconds, it appears to be SLA or DLP.</p> <p>Further reading: <a href="https://www.solidprint3d.co.uk/wp-content/uploads/2019/04/SLA_vs_DLP.pdf" rel="nofollow noreferrer">https://www.solidprint3d.co.uk/wp-content/uploads/2019/04/SLA_vs_DLP.pdf</a></p>
1,877
<p>I'm writing a pretty straightforward <code>e-commerce app</code> in <strong>asp.net</strong>, do I need to use transactions in my stored procedures?</p> <p>Read/Write ratio is about 9:1</p>
<p>Many people ask - do I need transactions? Why do I need them? When to use them?</p> <p>The answer is simple: use them all the time, unless you have a very good reason not to (for instance, don't use atomic transactions for "long running activities" between businesses). The default should always be yes. You are in d...
<p>Use them if:</p> <ol> <li>There are some errors that you may want to test for and catch which won't be caught except by you going out and doing the work (looking things up, testing values, etc.), usually from within a transaction so that you can roll back the whole operation.</li> <li>There are multi-step operation...
8,527
<p>my primary language is spanish, but I use all my software in english, including windows; however I'd like to use speech recognition in spanish.</p> <p>Do you know if there's a way to use vista's speech recognition in other language than the primary os language?</p>
<p>Citation from Vista <a href="http://blogs.msdn.com/speech/archive/2007/09/01/windows-speech-recognition-language-support-in-windows-vista.aspx" rel="nofollow noreferrer">speech recognition blog</a>:</p> <blockquote> <p>In Windows Vista, Windows Speech Recognition works in the current language of the OS. That...
<p>You can install the language pack, but not apply it on your user. Then you might be able to change the language of the speech recognition, although I haven't tried it since I don't have Vista Ultimate.</p>
5,713
<p>At the moment, I am thinking about print fans that cool the plastic when printing. I am not asking about the design of the fanducts, which might be a whole book on its own. I would like to know how to find out the best application of print cooling for a given PLA filament, - that is fan speeds and setup in a slicer ...
<p>Everybody's combination of fan hardware and print settings is different. Unless someone else has the exact same printer and slicer profiles as you, there's no way to really say anything like "use X% for PLA" or whatever. For practical purposes, you just empirically figure it out with test prints based on a few simpl...
<p>I use PLA and both my fans stopped working. I am not techy and couldn't figure out how to fix them so I set up a house fan that blew directly at the motor keeping it cool and it works as good if not better than the fans that came with the 3d printer. You cannot let your motors over heat because your filament will ge...
341
<p>I want to create a custom control in C#. But every time I have to fully redraw my control, it flickers, even if I use double buffering (drawing to an Image first, and blitting that).</p> <p>How do I eliminate flicker when I have to fully redraw?</p>
<p>You could try putting the following in your constructor after the InitiliseComponent call. </p> <pre><code>SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); </code></pre> <p>EDIT:</p> <p>If you're giving this a go, if you can, re...
<p>You say you've tried double buffering, but then you say drawing to an Image first and blitting that. Have you tried setting DoubleBuffered = true in the constructor rather than doing it yourself with an Image?</p>
8,978
<p>Most electronics use micro-controllers like an AVR, but I'm seeing ARM chips in new electronics. ARM chips are said to be more powerful, but in what areas related to 3D printing could this help? What are the features that the AVR struggles with and where an ARM could be better?</p> <p>High Speed movement? Delta pr...
<p>3D printer controllers have to do a lot of stuff very, very fast. Performing kinematics and dynamics calculations while sending many thousands of precisely-synchronized step pulses per second is <em>really, really hard</em>. The 8bit AVR line of microcontrollers used in older 3D printer controllers is basically a la...
<p>AVR processors are 8 bit - thus they can only fetch data from memory 8 bits at a time - while an ARM is 32 bit and can fetch data 32 bits at a time. Position resolution requires a 24 bit value minimum - this means the AVR takes 3 data fetches for the position - whereas the ARM takes 1 data fetch.</p> <p>Worse still...
192
<p>I'm using an identical call to "CryptUnprotectData" (exposed from Crypt32.dll) between XP and Vista. Works fine in XP. I get the following exception when I run in Vista:</p> <pre><code>"Decryption failed. Key not valid for use in specified state." </code></pre> <p>As expected, the versions of crypt32.dll are diffe...
<p>The <a href="http://msdn.microsoft.com/en-us/library/aa380882.aspx" rel="nofollow noreferrer">CryptUnprotectData function</a> documentation states that it usually only works when the user has the same logon credentials as the encrypter.</p> <p>This suggests to me that maybe the key is tied to the user's current tok...
<p>Nice. Hopefully this is my bone-head move of the week! ;-)</p> <blockquote> <p>This suggests to me that maybe the key is tied to the user's current token.</p> </blockquote> <p>That was it. Turns out I was using encrypted data from another machine (the XP one) and trying to decrypt on the Vista machine.</p> <p...
8,977
<p>My voltage at the controller at max load is ~11.4&nbsp;V (heated bed + motors + hotend). Is this normal? </p> <p>I'm measuring 11.8&nbsp;V at the PSU, so 0.4&nbsp;V -> 5&nbsp;W lost in the wires.</p> <p>I have a pretty beefy ~2&nbsp;mm diameter copper wire that's ~1&nbsp;m long. Its area is 2.5&nbsp;mm<sup>2</sup...
<p>Regardless of how the voltage is lowered, you aren't delivering the power to the heating elements that they are designed to deliver. For a resistive heater, the power scales with the square of the voltage.</p> <p>Delivering 11.4&nbsp;V to the heaters will result in the power being <span class="math-container">$11....
<p>Per <a href="https://www.calculator.net/voltage-drop-calculator.html?material=copper&amp;wiresize=6.571&amp;voltage=12&amp;phase=dc&amp;noofconductor=1&amp;distance=6&amp;distanceunit=feet&amp;amperes=18&amp;x=34&amp;y=15" rel="nofollow noreferrer">this website</a> it matches the expectations. Using 13AWG =~ 2.5 mm^...
1,308
<p>I am prototyping some C# 3 collection filters and came across this. I have a collection of products:</p> <pre><code>public class MyProduct { public string Name { get; set; } public Double Price { get; set; } public string Description { get; set; } } var MyProducts = new List&lt;MyProduct&gt; { ...
<p>LINQ turns into method calls like the code you have.</p> <p>In other words, there should be no difference.</p> <p>However, in your two pieces of code you are not calling .ToList in the first, so the first piece of code will produce an enumerable data source, but if you call .ToList on it, the two should be the sam...
<p>Other than the ToList difference, #2 is a lot more readable and natural IMO</p>
2,717
<p>So after a long print the walls in the print begin to weaken and it appears they might not be printed at all. In the upside down picture you can see the weakness where the two pieces are separated. I'm wondering if perhaps reducing my speed and changing the extrusion size from .35 to .45 which is larger than the e...
<p>What you refer to as weak walls in fact are under-extruded walls. This can be caused by multiple sources, but, since the print recovers this most probably is caused by filament that is entangled on the spool (this causes more friction for the extruder and as such less flow, so under-extrusion; like as if the filamen...
<p>A filament tangle is one possibility, one alternative is that you are seeing a jam in the extruder. The trigger for a jam might be excessive retraction, heat soak or some other issue with the heat-break. Less likely, you might have an electrical problem which is position dependant.</p> <p>The extrusion-related issu...
1,405
<p>I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web Service prevents me from publishing successfully (even though it thinks ...
<p>Using the IISReset command line tool will only restart IIS on the local machine, not on a remote server to which you are publishing.</p> <p>Assuming that you are publishing to a Windows 2003 server, I'd suggest trying the slightly less drastic step of stopping and restarting the IIS AppPool in the web site or virtu...
<p>You could use the IISReset command line tool to stop/restart iis. So you could write a simple batch file to stop iis, copy your files, and then restart iis. I'm not sure how to integrate this with the VS publish feature however.</p>
5,594
<p>I have a Monoprice Select Mini v2 and it came with a 256 MB SD card. I have a bunch of 16 GB cards. I have made sure that the new SD card has a FAT32 filesystem. I copy the gcode file onto this card and when I put it in the printer, it can't find any files!</p> <p>And yes, the file is at the root level of the files...
<p>Unfortunately, the answer isn't as simple as that a specific size of SD card works and another size doesn't. The <a href="https://github.com/MarlinFirmware/Marlin/wiki/SD-cards" rel="nofollow noreferrer">Marlin firmware wiki</a> mentions:</p> <blockquote> <p>The SD- or MMC- Card must be formatted as FAT and must ...
<p>The maximum size is 32 GB, however using microSD has a little disadvantage:</p> <ol> <li><p>The microSD adapter and Micro memory are wrong assembled and the chip are unable to be read.</p> <p>Solution: stick with a tape adhesive to keep Micro memory and SD adapter well aligned</p> </li> <li><p>The SD adapter can't b...
785
<p>What is the best way to manage a list of windows (keeping them in order) to be able to promote the next window to the top-level when the current top-level window is closed.<br> This is for a web application, so we're using jQuery Javascript.</p> <p>We'd talked through a few simplistic solutions, such as using an ar...
<blockquote> <p>Can I hook into the Crystal API and simply list all of the properties of every field or something? Please someone tell me that there's an Open Source project somewhere that does this... @:-)</p> </blockquote> <p>There is in fact, such an API. I wrote a VB6 application to do just what you a...
<p>One helpful technique is to output both versions of the report to plain text, then diff those outputs.</p> <p>You could write something using the crystal report component to describe every property of the report, like you described. Then you could output <em>that</em> to text, and diff <em>those</em>. I'm not aw...
4,031
<p><code>GNU sed version 4.1.5</code> seems to fail with International chars. Here is my input file:</p> <pre><code>Gras Och Stenar Trad - From Moja to Minneapolis DVD [G2007DVD] 7812 | X &lt;br&gt; Gras Och Stenar Trad - From Möja to Minneapolis DVD [G2007DVD] 7812 | Y </code></pre> <p>(Note the umlaut in the second...
<p>I think the error occurs if the input encoding of the file is different from the preferred encoding of your environment. </p> <p>Example: <code>in</code> is UTF-8</p> <pre><code>$ LANG=de_DE.UTF-8 sed 's/.*| //' &lt; in X Y $ LANG=de_DE.iso88591 sed 's/.*| //' &lt; in X Y </code></pre> <p>UTF-8 can safely be int...
<p><code>sed</code> is not very well setup for non-ASCII text. However you can use (almost) the same code in <code>perl</code> and get the result you want:</p> <pre><code>perl -pe 's/.*\| //' x </code></pre>
9,295
<p>we have a lot of users running in different shared and solo-owned repositories in Subversion. As part of our work, we do project-shared code and individual work, and we need to control access, ideally on a group basis. Currenly, we use <a href="http://svnmanager.sourceforge.net/" rel="noreferrer">SVNManager</a> to...
<p>I would recommend SVN Access: <a href="http://www.jaj.com/projects/svnaccess/" rel="nofollow noreferrer">http://www.jaj.com/projects/svnaccess/</a> or <a href="http://freshmeat.net/projects/svnaccess/" rel="nofollow noreferrer">http://freshmeat.net/projects/svnaccess/</a> I have used it as is, and have modified it f...
<p>I use KDESVN. Once it's set up it works great, but you only get one chance to set up your branch structure, so plan to create a test repository first.</p>
3,601
<p>I'm using the <a href="http://msdn.microsoft.com/en-us/library/ms178329.aspx" rel="nofollow noreferrer">ASP.NET Login Controls</a> and <a href="http://msdn.microsoft.com/en-us/library/aa480476.aspx" rel="nofollow noreferrer">Forms Authentication</a> for membership/credentials for an ASP.NET web application. It keep...
<p>Use the LoginUrl property for the forms item?</p> <pre><code>&lt;authentication mode="Forms"&gt; &lt;forms defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" timeout="1440" &gt;&lt;/forms&gt; &lt;/authentication&gt; </code></pre>
<p>I found the answer at <a href="http://www.codersource.net/asp_net_forms_authentication.aspx" rel="nofollow noreferrer">CoderSource.net</a>. I had to put the correct path into my web.config file.</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.web&gt; ... &lt;!-- ...
5,308
<p>I don't edit CSS very often, and almost every time I need to go and google the <a href="http://www.w3.org/TR/REC-CSS2/box.html" rel="noreferrer">CSS box model</a> to check whether <code>padding</code> is inside the <code>border</code> and <code>margin</code> outside, or vice versa. (Just checked again and <code>pad...
<p>When working with CSS finally drives you mad the padded cell that they will put you in has the padding on the <em>inside</em> of the walls.</p>
<p>Margin:When you want move the block. Padding: When you want move the items within a block.</p>
5,266
<p>I wanted to show the users Name Address (see <a href="http://www.ipchicken.com" rel="nofollow noreferrer">www.ipchicken.com</a>), but the only thing I can find is the IP Address. I tried a reverse lookup, but didn't work either:</p> <pre><code>IPAddress ip = IPAddress.Parse(this.lblIp.Text); string hostName = Dns.G...
<p>Edit of my previous answer. Try (in vb.net): </p> <pre><code> Dim sTmp As String Dim ip As IPHostEntry sTmp = MaskedTextBox1.Text Dim ipAddr As IPAddress = IPAddress.Parse(sTmp) ip = Dns.GetHostEntry(ipAddr) MaskedTextBox2.Text = ip.HostName </code></pre> <p>Dns.resolve appears to be obsol...
<p>Not all IP addresses need to have hostnames. I think that's what is happening in your case. Try it ouy with more well-known IP/hostname pairs eg:</p> <blockquote> <p>Name: google.com Address: 72.14.207.99</p> <p>Name: google.com Address: 64.233.187.99</p> <p>Name: google.com Address: 64.233.167.99</...
3,839
<p>Wifi support on Vista is fine, but <a href="http://msdn.microsoft.com/en-us/library/bb204766.aspx" rel="nofollow noreferrer">Native Wifi on XP</a> is half baked. <a href="http://msdn.microsoft.com/en-us/library/aa504121.aspx" rel="nofollow noreferrer">NDIS 802.11 Wireless LAN Miniport Drivers</a> only gets you part ...
<p>You kind of have to get a "feel" for what programmers had to do back in the day. The vast majority of the code I work with is older than I am and ran on machines that were "new" when my parents were in high school.</p> <p>Common FORTRAN-isms I deal with, that hurt readability are:</p> <ul> <li>Common blocks</li> <...
<p>Here's another one that has bit me from time to time. When you are working on FORTRAN code make sure you skip all six initial columns. Every once and a while, I'll only get the code indented five spaces and nothing works. At first glance everything seems okay and then I finally realize that all the lines are star...
5,161
<p>What are the main differences (if any) between the box models of IE8 and Firefox3?</p> <p>Are they the same now?</p> <p>What are the other main differences between these two browsers? Can a web developer assume that these two browsers as the same since they (seem to) support the latest web standards?</p>
<p>The Internet Explorer box model has been "fixed" since Internet Explorer 6 so long as your pages are in standard compliants mode.</p> <p>See: <a href="http://en.wikipedia.org/wiki/Quirks_mode" rel="noreferrer">Quirks mode</a> and <a href="http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug" rel="noreferrer...
<p>Things that will always differ between the two (and other browsers) are default values (font sizes in headings, for example). The way they achieve default visuals is often different, as well, such as whether or not they use padding or margin to achieve the indentation in bulleted lists.</p> <p>Something quite posit...
6,727
<p>Let's say I want a way to display just the the center 50x50px of an image that's 250x250px in HTML. How can I do that. Also, is there a way to do this for css:url() references? <p> I'm aware of <em>clip</em> in CSS, but that seems to only work when used with absolute positioning.</p>
<p>One way to do it is to set the image you want to display as a background in a container (td, div, span etc) and then adjust background-position to get the sprite you want. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>div{ width: 50px; height: 50px; background: no-repeat -100px -100px/500% url("https://qce.quantum.ieee.org/2022/wp-content/uploa...
8,208
<p>For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine...</p> <pre><code>&lt;%@OutputCache Duration="600" VaryByParam="*" %&gt; </code></pre> <p>However, if someone posts a comment, I want to clear the cache so that the page is refreshed...
<p>I've found the answer I was looking for:</p> <pre><code>HttpResponse.RemoveOutputCacheItem("/caching/CacheForever.aspx"); </code></pre>
<p><code>HttpRuntime.Close()</code> .. I try all method and this is the only that work for me</p>
3,267
<p>So I am trying to get the XSD-Schema from this object. When I open the File I just get something like this code (snippet):</p> <pre><code>¸†2¡Q·2ºyƒeCã2ï…w ïÀ|¼ðAøä[0Ÿ |&gt;‚|ó‘å2²ºFƒ¼Æò1ùàåcj@Þ`ùиÌ{áÈ;0/|¾ ùÌ'Ÿ„ Á|d½¬¬¯Õ ¯±|l¾…­Œo@Þ`ùиÌ{áÈ;0/|¾ùÌ'Ÿ„ Á|d½œ¬¯Ó ¯±|h\æ­Œo@Þ`ù¸| ßBs¦5–Œ~ôè»­£(™c´“Ç£[yp1:æ'Éc4Jó U...
<p>Three likely culprit:</p> <ul> <li><strong>The file is compressed but your machine can't detect it</strong>. So for example the 3MF model has been zipped, and what you are trying to do is opening the zip archive in the text editor, rather than the file that is in the zip archive. Solution: try to see if common de...
<p>Seems to be your are trying to edit a file with the wrong file editor.</p> <p>If you have Microsoft® Windows® 8.1, you can print directly using the 3MF format included. Simply set the print options in the 3D Print PropertyManager and print to the 3D printer. A preview of the print bed and the model's location withi...
794
<p>I have a page which does quite a bit of work and I don't want the user to be able to navigate away from that page (close browser, hit back button, etc.) without getting a warning. I found that the onbeforeunload event (which I think is IE-specific, which works fine for me as the project uses lots of ActiveX) works g...
<p>Let me guess: the help "icon" is actually a link with a <code>javascript:</code> url? Change it to a real button, a real link, or at least put the functionality in an onclick event handler (that prevents the default behavior). Problem solved.</p> <pre><code>&lt;!-- clicking this link will do nothing. No onbeforeunl...
<p>I have a method that is a bit clunky but it will work in most instances.</p> <p>Create a "Holding" popup page containing a FRAMESET with one, 100% single FRAME and place the normal onUnload and onbeforeUnload event handlers in the HEAD.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script language="Javascript" type...
8,219
<p>Visual Studio solutions contain two types of hidden user files. One is the solution <code>.suo</code> file which is a binary file. The other is the project <code>.user</code> file which is a text file. Exactly what data do these files contain?</p> <p>I've also been wondering whether I should add these files to sour...
<p>These files contain user preference configurations that are in general specific to your machine, so it's better not to put it in SCM. Also, VS will change it almost every time you execute it, so it will always be marked by the SCM as 'changed'. I don't include either, I'm in a project using VS for 2 years and had no...
<p>If you set your executable dir dependencies in <strong>ProjectProperties>Debugging>Environment</strong>, the paths are stored in '.user' files. </p> <p>Suppose I set this string in above-mentioned field: <strong>"PATH=C:\xyz\bin"</strong> This is how it will get stored in '.user' file: </p> <p><code>&lt;LocalDebu...
9,794
<p>We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database.</p> <p>What is the best way to do this without (i...
<p><a href="http://www.maatkit.org/" rel="noreferrer">http://www.maatkit.org/</a> has mk-archiver</p> <blockquote> <p>archives or purges rows from a table to another table and/or a file. It is designed to efficiently “nibble” data in very small chunks without interfering with critical online transaction processing (...
<p>Could you keep two mirrored databases around? Write to one, keep the second as an archive. Switch every, say, 24 hours (or however long you deem appropriate). Into the database that was the archive, insert all of todays activity. Then the two databases should match. Use this as the new live db. Take the archived dat...
9,084
<p>Maybe my understanding of agile development isn't as good as it should be, but I'm curious how an agile developer would potentially use off-the-shelf (OTS) software when the requirements and knowledge of what the final system should be are changing as rapidly as I understand them to (often after each iteration of de...
<h2>Scenario1:</h2> <p>This can occur regardless off the OTS nature of the component. Agile does not mean near-sighted.. you'd need to know the big chunks.. the framework bits and spend thinking time on it beforehand. That said, you can only build to what you know .. Delay only till the last responsible moment.Then yo...
<p>I think I read somewhere that if during an iteration you discover that you have more than 20% more work that you initially thought then you should abandon the sprint and start planning a new one taking into account the additional work.</p> <p>So this would mean replanning with the business to see if they still want...
7,481
<p>I began printing the parts for the Ultrascope DIY telescope designed by the Open Space Agency. See <a href="http://www.openspaceagency.com/ultrascope" rel="noreferrer">http://www.openspaceagency.com/ultrascope</a>.</p> <p>All of the STL files for the 3D printable parts are canted 45 degrees. Brackets, tubes, ever...
<p>The orientation of the part in the STL file depends on the Software that creates the file. I had a software that would export the parts standing upright instead of laying flat. Depending on the CAD software it can be beneficial for the creator of the model to create in in a different orientation as the one you want ...
<p>Layer lines are failure lines.</p> <p>Sometimes I choose to print a part in a weird or sub-optimal orientation just to minimise the load across layer lines when in use.</p> <p>That may mean more support material and longer print time, but a completed part that fails is no use at all.</p>
244
<p>The job at hand:</p> <p>I want to make sure that my website's users view a page before they start a download. If they have not looked at the page but try to hotlink to the files directly they should go to the webpage before the download is allowed.</p> <p>Any suggestions that are better than my idea to send out a ...
<p>Instead of allowing hotlinking to the files, store them outside of a web accessible route. Instead make download requests go to a php script that initiates the download. You can put checks in place to ensure that the requesting page was the one you wanted read.</p>
<p>I was about to suggest the .htaccess referral trick, but it isn't a very secure method. It's easy to make a PHP script, with a custom http-referral added. If you enter the download page there, it will think you come from that page.</p> <p>Is this a relevant problem? Can you tell something about the context of your ...
7,826
<p>I've tried using source control for a couple projects but still don't really understand it. For these projects, we've used TortoiseSVN and have only had one line of revisions. (No trunk, branch, or any of that.) If there is a recommended way to set up source control systems, what are they? What are the reasons a...
<p>I recommend checking out the following from Eric Sink:</p> <p><a href="http://www.ericsink.com/scm/source_control.html" rel="noreferrer">http://www.ericsink.com/scm/source_control.html</a></p> <p>Having some sort of revision control system in place is probably the most important tool a programmer has for reviewing...
<p>Even if you don't branch, you may find it useful to use tags to mark releases.</p> <p>Imagine that you rolled out a new version of your software yesterday and have started making major changes for the next version. A user calls you to report a serious bug in yesterday's release. You can't just fix it and copy over ...
3,438
<p>The new extensions in .Net 3.5 allow functionality to be split out from interfaces.</p> <p>For instance in .Net 2.0</p> <pre><code>public interface IHaveChildren { string ParentType { get; } int ParentId { get; } List&lt;IChild&gt; GetChildren() } </code></pre> <p>Can (in 3.5) become:</p> <pre><code...
<p>I think the judicious use of extension methods put interfaces on a more equatable position with (abstract) base classes.</p> <p><br/> <strong>Versioning.</strong> One advantage base classes have over interfaces is that you can easily add new virtual members in a later version, whereas adding members to an interface...
<p>One problem I can see is that, in a large company, this pattern could allow the code to become difficult (if not impossible) for anyone to understand and use. If multiple developers are constantly adding their own methods to existing classes, separate from those classes (and, God help us all, to BCL classes even), I...
2,957
<p>How are you instrumenting your UI's? In the past I've read that people have instrumented their user interfaces, but what I haven't found is examples or tips on <em>how</em> to instrument a UI.</p> <p>By instrumenting, I mean collecting data regarding usage and performance of the system. A MSDN article on Instrument...
<p>The following blog post gives quite a few good ideas for instrumenting a WPF application: <a href="https://blog.pixelingene.com/2008/08/techniques-for-ui-auditing-on-wpf-apps/" rel="nofollow noreferrer">Techniques for UI Auditing on WPF apps</a>.</p>
<p>I have not yet developed using WPF.. But I would assume that its the same as most other applications in that you want to keep the UI code as light as possible.. A number of design patterns may be used in this such as the obvious <a href="http://en.wikipedia.org/wiki/Model-view-controller" rel="nofollow noreferrer">M...
2,967
<pre><code>public class MyClass { public int Age; public int ID; } public void MyMethod() { MyClass m = new MyClass(); int newID; } </code></pre> <p>To my understanding, the following is true:</p> <ol> <li>The reference m lives on the stack and goes out of scope when MyMethod() exits.</li> <li>The v...
<p>Value-type values for a class <em>have</em> to live together with the object instance in the managed heap. The thread's stack for a method only lives for the duration of a method; how can the value persist if it only exists within that stack?</p> <p>A class' object size in the managed heap is the sum of its value-t...
<p>A variable or other storage location of a structure type is an aggregation of that type's public and private instance fields. Given</p> <pre><code>struct Foo {public int x,y; int z;} </code></pre> <p>a declaration <code>Foo bar;</code> will cause <code>bar.x</code>, <code>bar.y</code>, and <code>bar.z</code> to b...
4,447
<p>In a review for a certain filament I read that somebody recommended &quot;<a href="https://www.amazon.de/gp/customer-reviews/RVMUN4CW9ZLKX/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&amp;ASIN=B01080YND6" rel="nofollow noreferrer">a feeding rate of 105%</a>&quot;.</p> <p>What does he mean, and how could I set this in Cura?</p> <...
<h2>[Extruder] feed rate [modifier] is used synonymous to extrusion multiplier</h2> <p>The feed rate of the extruder is the rate at which filament is pushed (fed) into the hotend. An overwrite value that modifies that rate from the normal rate is in most slicers called &quot;extrusion multiplier&quot;.</p> <p>It is a <...
<p>In the context of the linked source (in German <em>&quot;Die Feeding Rate sollte mit 105 % eingestellt werden&quot;</em>), with <em>&quot;a feeding rate of 105 %&quot;</em> is meant the extrusion multiplier (there is no reference in the source to Cura). This is explained in <a href="https://3dprinting.stackexchange....
2,211
<p>I have been studying the differences between version 2.x and version 4 of the <a href="https://reprap.org/wiki/P3Steel" rel="nofollow noreferrer">P3Steel frames</a> - in particular the AC08 bracket at the top of the frame which secures the top of the smooth bars and threaded rods of the Z axis on both the left and r...
<p>I've just seen this right now, I'm Alvaro Rey, the designer of the p3steel v4 mod. The change was made, because with previous versions with the extruder homed, if you go up in the Z axis, the extruder motor could hit the Z axis top plate. So, in order to avoid that, I just changed the design.</p> <p>The bearing in ...
<p><em>This is mere supposition on my part, and not a definitive answer. This was posted prior to Alvaro's answer.</em></p> <hr /> <p>In response, or - rather - with respect to, to the comments under the question by <a href="https://3dprinting.stackexchange.com/questions/3015/z-axis-top-brackets-of-p3steel-differ-betwe...
420
<p>What does the <code>,</code> operator do in C?</p>
<p>The expression:</p> <pre><code>(expression1, expression2) </code></pre> <p>First <code>expression1</code> is evaluated, then <code>expression2</code> is evaluated, and the value of <code>expression2</code> is returned for the whole expression.</p>
<p>I'm reviving this simply to address questions from @Rajesh and @JeffMercado which i think are very important since this is one of the top search engine hits.</p> <p>Take the following snippet of code for example </p> <pre><code>int i = (5,4,3,2,1); int j; j = 5,4,3,2,1; printf("%d %d\n", i , j); </code></pre> <p>...
7,577
<p>My Flashforge Adventurer 3 is not printing properly. Filament feeder makes repetitive loud thumping noise and not enough filament is extruded. Resulting print (if completed) is not solid.</p> <p>Results vary with filament. Flashforge brand (red) PLA works best. Any other filament fails completely unless I print ...
<p>Advice from another source suggested thoroughly cleaning the feed gear on the bowden extruder. When I looked closely there were plastic flakes all over the mechanism. I used compressed air and a brush to clean it. I also discovered expert mode in the FlashPrint software, which enabled me to slow down the speed at...
<p>I had a lot of thumps lately after I moved my printer location.</p> <p>Turns out my printer wasn't level and the extruder was pushing harder (further down) on different places, causing thumps. This really shows because the calibration is only in 1 spot.</p> <p>I used some printer paper and a bubble level then reca...
1,133
<p>I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others. </p> <p>I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new features in Eclipse 3.4 and would like to use it for my devel...
<p>You can change the 'Target platform' setting to point to the location of an existing set of eclipse 3.3 plugins. This will compile your code against the 3.3 plugins, making sure that they stay compatible no matter which version of eclipse you are using to develop the application. </p> <p>The setting is under Window...
<p>And is it no way how to develop plugin for newer palfrom? Eg.: develop new plugin for 3.5 into 3.4...</p>
5,990
<p>What's the simplest way to connect and query a database for a set of records in C#?</p>
<p>@Goyuix -- that's excellent for something written from memory. tested it here -- found the connection wasn't opened. Otherwise very nice.</p> <pre><code>using System.Data.OleDb; ... using (OleDbConnection conn = new OleDbConnection()) { conn.ConnectionString = "Provider=sqloledb;Data Source=yourServername\\you...
<p>Charge the libraries</p> <pre><code>using MySql.Data.MySqlClient; </code></pre> <p>This is the connection:</p> <pre class="lang-cs prettyprint-override"><code>public static MySqlConnection obtenerconexion() { string server = "Server"; string database = "Name_Database"; string Uid = "User"; string ...
2,335
<p>Why does this happen (circled in red), and how can I fix it? It is making my prints come out horrible.</p> <p>Not shown in the picture, but the option "Coasting" was Enabled:</p> <ul> <li>Coasting Volume 0.064 mm<sup>3</sup></li> <li>Minimum Volume Before Coasting: 0.8</li> <li>Coasting Speed 90%</li> </ul> <hr> ...
<p>If you enable the option "Coasting", the extruder will follow the extrusion path at the end of switching to the next layer or the next section, but will not deposit any material as it uses the build up pressure in the nozzle to deposit the final bits. This shows up in your G-code representation by empty (non-deposit...
<p>I have had a similar thing happen when slicing a large piece that has - in real life - walls of about 2 cm. By scaling it down to 1.5%, this become less than the wall thickness, and the wall was simply omitted by CURA.</p> <p>In my experience, a model showing gaps <em>can</em> have in these locations a thickness le...
951
<p>Does your work environment use Harvest SCM? I've used this now at two different locations and find it appalling. In one situation I wrote a conversion script so I could use CVS locally and then daily import changes to the Harvest system while I was sleeping. The corp was fanatic about using Harvest, despite 80% of t...
<p>Chances are, your company has some sort of contract with CA - are you using a lot of other CA software in-house?</p> <p><strong>Edit:</strong> Guess so!</p>
<p>I have been using HARVEST for the last 4 years and i love it. The kind of support it gives you to control the code movement is really fantastic. We use HARVEST to deploy applications on to Websphere. It also do an amazing work in deploying the plugins into the web server along with the application. When you want to ...
4,579
<p>I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript coding and flash design. Most of the information available seems to focus on one or the other.</p> <p>I didn't find any in...
<p>I've been doing Flash for 9 years and I still find this a difficult thing to get right. </p> <p>There is a balance of power between designers and developers, which will inevitably tip one way or the other. </p> <p>If you work for a developer led studio, then you are lucky, as the designers will be instructed to ma...
<p>On our team everyone uses TortoiseSVN and a Trac instance per project. Designers are using the standard Flash designer to edit .FLAs and developers are using <a href="http://www.flashdevelop.org/community/" rel="nofollow noreferrer">FlashDevelop</a> to manage ActionScript files and debug the project.</p> <p>The too...
4,500
<p>I am having problems manually looping through xml data that is received via an HTTPService call, the xml looks something like this: </p> <pre><code>&lt;DataTable&gt; &lt;Row&gt; &lt;text&gt;foo&lt;/text&gt; &lt;/Row&gt; &lt;Row&gt; &lt;text&gt;bar&lt;/text&gt; &lt;/Row&gt; &lt;/DataT...
<p>The problem lies in this statement</p> <pre><code>event.result.DataTable.Row.length </code></pre> <p><code>length</code> is not a property of <code>XMLList</code>, but a method:</p> <pre><code>event.result.DataTable.Row.length() </code></pre> <p>it's confusing, but that's the way it is.</p> <p><em>Addition:</em...
<p>I would store it in an Xml object and then use its methods to search for the node value you need.</p> <pre><code>var returnedXml:Xml = new Xml(event.result.toString()); </code></pre>
6,219