instruction stringlengths 27 22.5k | chosen stringlengths 27 28.2k | rejected stringlengths 19 24.9k | __index_level_0__ int64 0 10k |
|---|---|---|---|
<p>PTFE tubes are typically delivered coiled up. And because they are quite stiff, they always want to spring back to their original curvy shape, making them harder to route properly.</p>
<p>Is there a way to straighten them out?</p>
| <p>I just plugged the ends of tube and soaked it in real warm water for 5 minutes then stretched it out on a table. That helped then the hard part I spooling it up against the arch and soaked it again. This seem to work the best. </p>
| <p>I just plugged the ends of tube and soaked it in real warm water for 5 minutes then stretched it out on a table. That helped then the hard part I spooling it up against the arch and soaked it again. This seem to work the best. </p>
| 487 |
<p>How can I split long commands over multiple lines in a batch file?</p>
| <p>You can break up long lines with the caret <code>^</code> as long as you remember that the caret and the newline following it are completely removed. So, if there should be a space where you're breaking the line, include a space. <em>(<a href="https://stackoverflow.com/a/21000752/157247">More on that below.</a>)</em... | <p>Though the carret will be preferable way to do this here's one more approach using macro that constructs a command by the passed arguments:</p>
<pre><code>@echo off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
set "{{=setlocal enableDelayedExpansion&... | 9,452 |
<p>I first want to say <strong>thank you</strong> for taking the time to read this. I've been trying to print out some parts for another project of mine. These parts use up around 70% of the bed so they are fairly large, unlike the smaller trinkets and things I normally print.</p>
<p>However, I have yet been able to pr... | <p>You mentioned a noticeable 'clunk' when it shifts, are you sure it isn't a physical obstruction? You said you checked that all axis run smoothly but are you sure you checked the full extents of the printable area?</p>
<p>Watch carefully when the issue happens, are any of the cables getting snagged on the machine or ... | <p>Not sure if you're still actively working on this but my setup mirrors yours almost perfectly, I added an all metal extruder, Micro Swiss hotend, a BLTouch, yellow bed springs and Capricorn tube and got great results but needed more cooling so I changed to the Hero Me Gen 5 using 2 5015 blowers and a Noctua 40x20 fa... | 1,825 |
<p>Do you have any advice/rules on selecting a multiplier to use in a (multiplicative) hash function. The function is computing the hash value of a string.</p>
| <p>You want to use something that is relatively prime to the size of your set. That way, when you loop around, you won't end up on the same numbers you just tried.</p>
| <p>Historically 33 seems like a popular choice, and it tends to work pretty well. No one knows why though. For more details, <a href="http://www.cse.yorku.ca/~oz/hash.html" rel="nofollow noreferrer">look here</a></p>
| 3,757 |
<p>My Anet A8 reads as 120ish degrees Celsius, but it is set to 200 degrees. I don't know if it is reading the wrong temperature because it still pushes out plastic when I force it. It will climb up and then go back down. I don't know if the hot end it broke or if the thermistor is broke.</p>
| <h2>You are sitting on a fire risk!</h2>
<p>If you are using the stock/original firmware, you should <em><strong>immediately stop printing</strong></em>. The stock firmware of the Anet A8 has no <a href="https://3dprinting.stackexchange.com/questions/8466/what-is-thermal-runaway-protection">thermal runaway protection</... | <p>Without any other information, the highest odds are that the fan is blowing on the hot end. If the temp drops when the fan is on, and rises when the fan is off, then simply re-position the fan nozzle. If that's not the problem, check the thermistor. If that's not it, check the termination (tighten the screws... | 1,247 |
<p>Can you convert a 3D printer to a laser engraver?</p>
<p>If so is there a specific thing I have to buy?</p>
| <p>Yes, one can convert a 3D printer into a Laser Engraver, and it isn't even all that problematic.</p>
<ul>
<li>You'd need to acquire a laser diode. These are usually not available with a lot of power - certainly not the hundreds of Watts that come from a proper CO2 laser - but depending on your printer, it might be p... | <p>Probably a laser... and a mount for the laser. Then connect its power supply to be switched by the extruder supply/signal. Also, there would be no need for any Z-axis movement, beyond setting the correct height of the laser device.</p>
<p>However, unless you are handy with DIY, messing about with microcontrollers an... | 2,043 |
<p>Suppose you have the following EJB 3 interfaces/classes:</p>
<pre><code>public interface Repository<E>
{
public void delete(E entity);
}
public abstract class AbstractRepository<E> implements Repository<E>
{
public void delete(E entity){
//...
}
}
public interface FooRepository&l... | <p>I tried it with a pojo and it seems to work. I had to modify your code a bit.
I think your interfaces were a bit off, but I'm not sure.</p>
<p>I assumed "Foo" was a concrete type, but if not I can do some more testing for you.</p>
<p>I just wrote a main method to test this.
I hope this helps!</p>
<pre><code>publi... | <p>Can you write a unit test against your FooRepository class just using it as a POJO. If that works as expected then I'm not familiar with any reason why it would function differently inside a container.</p>
<p>I suspect there is something else going on and it will probably be easier to debug if you test it as a POJ... | 3,559 |
<p>There must be a trick to doing a good job of applying Kapton tape on a printer bed plate…</p>
<p>We built a Bukobot and even with a great deal of care ended up with bubbles under the tape and occasional overlaps. I'd appreciate any pointers.</p>
| <p>There are several things you could try without spending much but even PLA will warp on an unheated bed. I had a Legacy Kossel that I switched to an acrylic bed and had many issues with warping and prints pulling off the bed. </p>
<p>Some cheap things to try would be...</p>
<ol>
<li>Adding a brim to the print.</l... | <p>Try a dilute solution of PVA glue (approx. 5:1 water:PVA) applied to the bed or the BuildTak like sheet and allowed to dry.
Keep the ambient temperature as high as possible (but not so high as to soften any plastic on the printer obviously).
Big brims help - consider adding them to the model rather than just apply... | 148 |
<p>We have a collection of commercial MFC/C++ applications which we sell using <a href="http://www.roguewave.com/products/stingray.php" rel="nofollow noreferrer">Stingray Objective Toolkit</a>, we have source code license and have ported it in the past to Solaris/IRIX/HP-UX/AIX using <a href="http://en.wikipedia.org/wi... | <p>Yes, we haved moved away from Stingray. It depends on what Stingray components you are using. For the grid control, you can use the free MFC gridcontrol from www.codeproject.com or the commercial one from <a href="http://www.bcgsoft.com/" rel="nofollow noreferrer">http://www.bcgsoft.com/</a>. The free one is OK but ... | <p>I have been using Stingray for last eight years or so, and have looked at moving off it a couple of times. So far, I've decided against, principally because I have ported a version to Windows CE & Mobile and don't see much else giving the same solution on this platform. While Stingray isn't perfect, they have ... | 9,649 |
<p>I have a small local network. Only one of the machines is available to the outside world (this is not easily changeable). I'd like to be able to set it up such that ssh requests that don't come in on the standard port go to another machine. Is this possible? If so, how?</p>
<p>Oh and all of these machines are runni... | <p>Another way to go would be to use ssh tunneling (which happens on the client side).</p>
<p>You'd do an ssh command like this:</p>
<pre><code>ssh -L 8022:myinsideserver:22 paul@myoutsideserver
</code></pre>
<p>That connects you to the machine that's accessible from the outside (myoutsideserver) and creates a tunne... | <p>You can use Port Fowarding to do this. Take a look here:</p>
<p><a href="http://portforward.com/help/portforwarding.htm" rel="nofollow noreferrer">http://portforward.com/help/portforwarding.htm</a></p>
<p>There are instructions on how to set up your router to port forward request on this page:</p>
<p><a href="htt... | 6,705 |
<p>Following advice I read elsewhere, I have covered my (heated) print bed with blue painter's tape, and before each print I apply an Elmer's purple washable glue stick to improve bed adhesion.</p>
<p>After the print finishes and I remove the part from the bed, the bottom is covered with a white residue. I'm fairly ce... | <p>Elmer's Purple Gluestick is pretty much based on PVA with a water-indicator. It is a water-soluble material. Tossing the piece into a water bin and brushing it with a toothbrush should remove everything.</p>
| <p>I have two different makes of masking tape. The print stick so well to one of them that I end up ripping the tape up to get it off and the bottom of the print has the tape suck to it. The other roll was the complete opposite, nothing would stick to it. I ended up using the non-stick tape and applied a diluted (30% P... | 1,293 |
<p>I have an html file with an unordered list. I want to show the list items horizontally but still keep the bullets. No matter what I try, whenever I set the style to inline to meet the horizontal requirement I can't get the bullets to display.</p>
| <p>The best option I saw in other answers was to use <code>float:left;</code>. Unfortunately, it doesn't work in IE7 which is a requirement here<sup>*</sup> — you still lose the bullet. I'm not really keen on using a background image either.</p>
<p>What I'm gonna do instead (that no one else suggested, hence the... | <p>You can use following code</p>
<pre class="lang-css prettyprint-override"><code>li {
background-image: url(img.gif) no-repeat center left;
padding-left: 20px;
display: inline;
}
</code></pre>
| 5,463 |
<p>In the Full .NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this:</p>
<pre><code>Color blended = Color.FromArgb(alpha, color);
</code></pre>
<p>or</p>
<pre><code>Color blended = Color.FromArgb(alpha, red, green , blue);
</code></pre>
<p>However in the Compac... | <p>Apparently, it's not quite that simple, but <a href="http://blogs.msdn.com/chrislorton/archive/2006/04/07/570649.aspx" rel="nofollow noreferrer">still possible</a>, if you have Windows Mobile 5.0 or newer.</p>
| <blockquote>
<p>Apparently, it's not quite that
simple, but still possible, if you
have Windows Mobile 5.0 or newer.</p>
</blockquote>
<p>Wow...definitely not worth it if I have to put all that code in (and do native interop!)
Good to know though, thanks for the link.</p>
| 3,533 |
<p>The <a href="http://www.cvsnt.org/manual/html/commit-files.html#syntax" rel="nofollow noreferrer">cvsnt manual</a> provides a detailed list of parameters than can be passed to the postcommand module, but none of them specify the file name.</p>
<p>Is anybody aware of an option not listed here that would provide the ... | <p>The answer (thanks to an answer to a different question by <a href="https://stackoverflow.com/questions/86515/does-anyone-know-the-cvs-command-line-options-to-get-the-details-of-the-last-ch#213003">Sally</a>) is to not use the postcommand file, but use the <a href="http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_18.ht... | <p>Doesn't the %c parameter pass in the command issued (including the files being committed)?</p>
| 3,690 |
<p>There are numerous libraries providing Linq capabilities to C# code interacting with a MySql database. Which one of them is the most stable and usable on Mono?</p>
<p>Background (mostly irrelevant): I have a simple C# (.Net 2.0) program updating values in a MySql database. It is executed nightly via a cron job and ... | <p>The only (free) linq provider for MySql is <a href="http://code2code.net/DB_Linq/" rel="nofollow noreferrer">DbLinq</a>, and I believe it is a long way from production-ready.</p>
<p>There is also <a href="http://www.devart.com/mysqlnet/" rel="nofollow noreferrer">MyDirect.Net</a> which is commercial, but I have hea... | <p>at this time you cannot use linq to sql, you might look into a third party linq mysql provider or linq to entities. linq to sql only works for sql server databases.</p>
| 6,364 |
<p>App needs to run on the .Net Compact Framework v.3.5. Video can be any format, but I do need to be able to know when it's finished playing, so I can start another one.</p>
<p>I'm hoping for a method that doesn't involve unmanaged code, if possible.</p>
| <p>You need to embed it using ActiveX Hosting. There is an <a href="http://msdn.microsoft.com/en-us/library/aa446515.aspx" rel="nofollow noreferrer">MSDN tutorial</a> on it (note there is a <a href="http://blog.opennetcf.com/ctacke/2008/08/14/BugInMSDNActiveXHostingCode.aspx" rel="nofollow noreferrer">bug in the MS-pu... | <p>Silverlight is coming to windows mobile 6, its in super elite beta right now, maybe get in on that action.</p>
| 8,183 |
<p>I'm looking for a filament that is strong, doesn't crack and doesn't break easily and is impact resistant. I'm currently using PLA and it's strong, but, I'm looking for something that doesn't snap or break when dropped.</p>
| <p>You can definitely use glue - however you can also brush some of the liquid resin along the edges of the two pieces, push them together and cure them, this will fuse them together.</p>
<p>You don't need much, and you need to watch for drip out while curing (don't your fingers in it)</p>
| <p>You can definitely use glue - however you can also brush some of the liquid resin along the edges of the two pieces, push them together and cure them, this will fuse them together.</p>
<p>You don't need much, and you need to watch for drip out while curing (don't your fingers in it)</p>
| 1,731 |
<p>VMware ESX, ESXi, and VirtualCenter are supposed to be able to support HTTP PUT uploads since version 3.5. I know how to do downloads, that's easy. I've never done PUT before.</p>
<p>Background information on the topic is here: <a href="http://communities.vmware.com/thread/117504" rel="nofollow noreferrer">http://c... | <p>In the <a href="http://www.codeplex.com/vitoolkitextensions" rel="nofollow noreferrer">VI Toolkit Extensions</a> use Copy-TkeDatastoreFile. It will work with binaries.</p>
| <p>You should have a look at the <code>Send-PoshCode</code> function in the <a href="http://PoshCode.org/" rel="nofollow noreferrer">PoshCode</a> cmdlets script module ... it uses a POST, not a PUT, but the technique is practically identical. I don't have PUT server I can think of to test against, but basically, set y... | 9,151 |
<p>I'm trying to create web applications that use JavaScript. I'd like to be able to use animation in these applications. I've tried to use basic JavaScript, but I've decided that the best thing to do is to use a library (such as <a href="http://en.wikipedia.org/wiki/Yahoo!_UI_Library" rel="nofollow noreferrer">YUI</... | <p>I have found <a href="http://en.wikipedia.org/wiki/MooTools" rel="nofollow noreferrer">MooTools</a> to be pretty slick for animations, just a little smoother than jQuery. </p>
<p>I generally prefer jQuery, which I find to be a little more intuitive (in my head anyway), but I would use MooTools if slick animation i... | <p>JQuery has animation, but I don't know what it is like on a Mac (I don't have a mac). If things are going slow, then you are probably making the animations too complicated. Remember, JavaScript is a slow language, and DOM is not designed for animation, so try to limit yourself with respect to the number of animation... | 5,120 |
<p>Is there any way to test what kind your filament is? There are no labels on the spools and I don't know whether they are ABS or PLA.</p>
<p>I got the plastic with the printer, which is no longer sold (Solidoodle 2). Since I bought it on eBay that is probably why it has unprofessional filament. The plastic filament ... | <p>ABS dissolves in acetone, you could try clipping a small section and leave it in some acetone for a few minutes and if it begins to dissolve it's safe to assume that it's ABS, if not then you'll know that it's not.</p>
<p>This won't confirm that it is PLA, only whether it's ABS or not.</p>
| <p><a href="http://www.boedeker.com/burntest.htm" rel="nofollow noreferrer">Using The Burn Test to Identify Plastic Materials</a> is one way. From the link:</p>
<blockquote>
<p>To initially determine whether a material is thermoplastic (meltable)
or thermoset (non-meltable) type, heat a metal or glass stirring rod
unti... | 545 |
<p>Here are a few possibilities to get the conversation started:</p>
<ol>
<li>Escape all input upon initialization.</li>
<li>Escape each value, preferably when generating the SQL.</li>
</ol>
<p>The first solution is suboptimal, because you then need to unescape each value if you want to use it in anything other than ... | <p>as @Rob Walker states, parameterized queries are your best bet. If you're using the latest and greatest PHP, I'd highly recommend taking a look at <a href="http://us3.php.net/pdo" rel="noreferrer">PDO</a> (PHP Data Objects). This is a native database abstraction library that has support for a wide range of databas... | <p>I've always used the first solution because 99% of the time, variables in <code>$_GET</code>, <code>$_POST</code>, and <code>$_COOKIE</code> are never outputted to the browser. You also won't ever mistakenly write code with an SQL injection (unless you don't use quotes in the query), whereas with the second solution... | 6,927 |
<p>this kind of follows on from another <a href="https://stackoverflow.com/questions/41290/file-access-strategy-in-a-multi-threaded-environment-web-app">question</a> of mine.</p>
<p>Basically, once I have the code to access the file (will review the answers there in a minute) what would be the best way to <strong>test<... | <p>In .NET, <code>ThreadPool</code> threads won't return without setting up <code>ManualResetEvent</code>s or <code>AutoResetEvent</code>s. I find these overkill for a quick test method (not to mention kind of complicated to create, set, and manage). Background worker is a also a bit complex with the callbacks and such... | <p>Your idea should work fine. Basically you just want to spawn a bunch of threads, and make sure the ones writing the file take long enough to do it to actually make the readers wait. If all of your threads return without error, and without blocking forever, then the test succeeds.</p>
| 6,289 |
<p>The MySQL manual at <a href="http://web.archive.org/web/20160504181056/https://dev.mysql.com/doc/refman/5.1/en/rename-database.html" rel="noreferrer">MySQL</a> covers this.</p>
<p>Usually I just dump the database and reimport it with a new name. This is not an option for very big databases. Apparently <code>RENAME {... | <p>For <strong>InnoDB</strong>, the following seems to work: create the new empty database, then rename each table in turn into the new database:</p>
<pre><code>RENAME TABLE old_db.table TO new_db.table;
</code></pre>
<p>You will need to adjust the permissions after that.</p>
<p>For scripting in a shell, you can use... | <p>Really, the simplest answer is to export your old database then import it into the new one that you've created to replace the old one. Of course, you should use <a href="http://en.wikipedia.org/wiki/PhpMyAdmin" rel="nofollow noreferrer">phpMyAdmin</a> or command line to do this.</p>
<p><strong>Renaming and Jerry-ri... | 9,267 |
<p>I am trying to achieve better performance for my Java SWT application, and I just found out it is possible to use OpenGL in SWT. It seems there are more than one Java binding for OpenGL. Which one do you prefer?</p>
<p>Note that I have never used OpenGL before, and that the application needs to work on Windows, Lin... | <p><a href="http://www.opengl.org/resources/bindings/" rel="noreferrer" title="opengl.org">JOGL</a></p>
<p>My reasons can be quoted off the previously linked site:</p>
<blockquote>
<p>JOGL provides full access to the APIs in the OpenGL 2.0 specification as well as nearly all vendor extensions, and integrates with t... | <p>We've had lots of luck at work using JOGL. The new 2.0 version is at <a href="http://jogamp.org/" rel="nofollow">http://jogamp.org/</a> (the last "old" version is at <a href="http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/" rel="nofollow">http://download.java.net/media/jogl/builds/archive/jsr-231-... | 9,196 |
<p>I have more than one OpenID as I have tried out numerous. As people take up OpenID different suppliers are going to emerge I may want to switch provinders. As all IDs are me, and all are authenticated against the same email address, shouldn't I be able to log into stack overflow with any of them and be able to hit... | <p>I think each site that implements OpenID would have to build their software to allow multiple entries for your OpenID credentials. However, just because a site doesn't allow you to create multiple entries doesn't mean you can't swap out OpenID suppliers.</p>
<h2>How to turn your blog into an OpenID</h2>
<p>STEP 1... | <p>Doesn't using multiple open-id providers sort of undermine the point of open id?</p>
| 2,666 |
<p>What's the difference between struct and class in .NET?</p>
| <p>In .NET, there are two categories of types, <em>reference types</em> and <em>value types</em>.</p>
<p>Structs are <em>value types</em> and classes are <em>reference types</em>.</p>
<p>The general difference is that a <em>reference type</em> lives on the heap, and a <em>value type</em> lives inline, that is, wherev... | <p>Every variable or field of a primitive value type or structure type holds a unique instance of that type, including all its fields (public and private). By contrast, variables or fields of reference types may hold null, or may refer to an object, stored elsewhere, to which any number of other references may also exi... | 3,408 |
<p>I need to validate an integer to know if is a valid enum value.</p>
<p>What is the best way to do this in C#?</p>
| <p>You got to love these folk who assume that data not only always comes from a UI, but a UI within your control!</p>
<p><code>IsDefined</code> is fine for most scenarios, you could start with:</p>
<pre><code>public static bool TryParseEnum<TEnum>(this int enumValue, out TEnum retVal)
{
retVal = default(TEnum)... | <p>I found this <a href="http://www.cambiaresearch.com/c4/52a7e5fe-c7fc-49ab-b21d-37e6194687f3/Convert-Integer-To-Enum-Instance-in-csharp.aspx" rel="nofollow noreferrer">link</a> that answers it quite well. It uses:</p>
<pre><code>(ENUMTYPE)Enum.ToObject(typeof(ENUMTYPE), INT)
</code></pre>
| 3,457 |
<p>Most people complain about the filament not sticking on build plate but mine is vice versa. At first it used to be very good. When I removed the magnetic bed the project would come off easily but for a few days it is like I glue it to the bed with epoxy. It is impossible to remove and when I remove the black project... | <p>Had this problem on my second print. The nozzle was too close to the bed. The only way I got it all off was to heat the bed. Then the PLA became a bit softer and came off pretty fast.</p>
| <p>This usually happens when your nozzle is too close to bed during the first layer.<br>
Quick fix is <strong>redo bed levelling</strong>.<br>
Clean your build surface.<br>
Watch you first layer
<a href="https://i.stack.imgur.com/PAC4o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PAC4o.jpg" al... | 1,670 |
<p>I'd like to talk about site building a little bit. We have now been in public Beta for almost a year now and I feel that we've learned a lot about what audience we have here on Stack Exchange. However, we've got a little ways to go before we can make it out of Beta.</p>
<h1>The Stats</h1>
<ul>
<li><em>Questions pe... | <p>Well we need to attract more members! Personally I know a lot of people that can help us attract more. Myself I run a facebook group with 6k members called 3d printing hobbyists. That said I am also friends with the admins of the other and larger groups. </p>
<p>If I had some good promo material I could probably ge... | <p>Well we need to attract more members! Personally I know a lot of people that can help us attract more. Myself I run a facebook group with 6k members called 3d printing hobbyists. That said I am also friends with the admins of the other and larger groups. </p>
<p>If I had some good promo material I could probably ge... | 37 |
<p>I have <a href="https://ultimaker.com/en/products/ultimaker-2-plus" rel="noreferrer" title="Ultimaker 2+">Ultimaker 2+ 3D Printer</a> and I need to print a piece that doesn't fit within the build volume of the printer. Even though it would fit I'd still need to print it in two parts because I'll need to fit some equ... | <p>If the equipment has to be removable, then there's no point in trying to make a one-piece object in the first place. So it looks like you have two problems. The first is to decide what's the best way to split your container to facilitate both putting the equipment inside & removing it; the second is how to latc... | <p>Thanks for your reply all. I think I have a solution for my need. Here are some figures!</p>
<p><a href="https://i.stack.imgur.com/BfZmN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BfZmN.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/BfyZt.png" rel="no... | 526 |
<p>We currently maintain a suit of MFC applications that are fairly well designed, however the user interface is beginning to look tired and a lot of the code is in need quite a bit of refactoring to tidy up some duplication and/or performance problems. We make use of quite a few custom controls that handle all their ... | <p>In my company, we are currently using Qt and are very happy with it.</p>
<p>I personnally never had to move a MFC-app into using the Qt framework, but here is something which might be of some interest for you :</p>
<p><strike><a href="http://www.qtsoftware.com/products/appdev/add-on-products/catalog/3/Windows/qtwi... | <p>It's a tricky problem, and I suspect that the answer depends on how much time you have. You will get a much better result if you port your custom controls to Qt - if you use the QStyle classes to do the actual drawing then you'll end up with theme-able code right out of the box.</p>
<p>In general, my advice would b... | 4,728 |
<p>I am planning on getting a 3D printer soon and I was just wondering, what do you do with 3D prints that either failed or were prototypes that you no longer want?<br>
I tried looking online but the closest I got was effects on environment, turning prints back into filament, or restarting a failed print half-way, none... | <p>The "obvious" answer is re-grinding the prints and making more filament. Unfortunately, this isn't yet a very economical or simple operation. A decent filament extruder capable of holding acceptable diameter tolerances is around $1000, and even then they can be pretty fidgety to operate. You have to have a LOT of vo... | <p>If you have a few friends you could pitch in and use a recycling service like <a href="https://www.terracycle.com/en-US/zero_waste_boxes/3d-printing-materials" rel="nofollow noreferrer">Terracycle</a> where you can send your failed prints, rafts and scraps. No affiliation with Terracycle, it's just a service that I ... | 304 |
<p>What's the best way to implement authentication over WCF?</p>
<p>I'd prefer to not use WS-* as it needs to be transport independent.</p>
<p>Should I "roll my own"? Is there any guidance for doing that (articles/blog posts)?<br>
Or is there some way to <em>(and should I)</em> use the built in ASP.NET Membership and... | <p>Message based authentication, which is WS-Security based, is what you're looking for and is definitely supported by basicHttpBinding and netTcpBinding. I think you are making the mistaken assumption that only WsHttpBinding will support WS-Security, which is inaccurate. </p>
<p>The WS bindings are for WS-* element... | <p>Why should WS-* be transport dependant?</p>
<p>The whole point of the WS-* specifications is that they are part of the message, and hence transport independent.</p>
| 3,779 |
<p>I've just bought <strong>Anycubic i3 Mega</strong> printer and trying to level it.
So far I've printed test object and 2 others but looks like there are problems with leveling.</p>
<p>I want to make image of 5 small one layer squares(one in each corner and one in center). Looking for recommendations of <strong>simp... | <p>You are probably looking for something like <a href="https://www.thingiverse.com/thing:2479352" rel="nofollow noreferrer">this</a>:</p>
<p><img src="https://cdn.thingiverse.com/renders/0f/68/62/46/9f/646e9a4ee9ff75a7f0cacb396a0b7ed4_preview_featured.jpg" alt="leveling print object"></p>
<p>Note this is for large b... | <p>One of the most accessible modelling tools has to be <a href="https://www.tinkercad.com/" rel="nofollow noreferrer">tinkercad</a>. Everything is done in the browser, and it even works (to an extent) on a tablet. </p>
<p>I wouldn't recommend getting too attached to it, since it is fairly limited. As an introduction ... | 995 |
<p>I'm struggling to find out an enclosed 3D printer that allow to load the common 1 kg filament bobbins. Most of the enclosed ones accept only proprietary bobbins (like Dremel or Flashforge).</p>
<p>Do these bobbins ( = 1 kg) rely on a specific standard I can search for?
How to filter out the printers that match my re... | <h1>There are standards for spools/bobbins/reels</h1>
<p>Looking for standards for spools, I started at Alibaba and then came to an actual European manufacturer or retailer of reels: <a href="https://www.hafner-spools.com/en/products/spools/spools-for-3d-printer/" rel="nofollow noreferrer">Häfner</a>. They manufacture ... | <p>QIDI Tech makes a series of enclosed printers, which would narrow your search a bit. I own an X-Max model which has an internal spool spindle as standard equipment, along with an "ordinary" external mount. The internal spindle will take a standard one kilogram spool. It's considered good practice when prin... | 2,203 |
<p>I really need to see some honest, thoughtful debate on the merits of the currently accepted <strong><em>enterprise application</em></strong> design paradigm.</p>
<p>I am not convinced that entity objects should exist.</p>
<p>By entity objects I mean the typical things we tend to build for our applications, like "P... | <p>I think it comes down to how complicated the "logic" of the application is, and where you have implemented it. If all your logic is in stored procedures, and all your application does is call those procedures and display the results, then developing entity objects is indeed a waste of time. But for an application ... | <p>I think that you are just used to writing a specific kind of application, and solving a certain kind of problem. You seem to be attacking this from a "database first" perspective. There are lots of developers out there where data is persisted to a DB but performance is not a top priority. In lots of cases putting... | 3,918 |
<p>Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that. </p>
| <p><a href="http://www.websupergoo.com" rel="nofollow noreferrer">ABCPDF </a>can do it </p>
| <p>Depends on what platform you are on</p>
<p>Windows - Websupergoo's ABC PDF</p>
<p><a href="http://www.websupergoo.com/" rel="nofollow noreferrer">http://www.websupergoo.com/</a></p>
<p>*nix - Prince XML
<a href="http://www.princexml.com/overview/" rel="nofollow noreferrer">http://www.princexml.com/overview/</a></... | 5,332 |
<p>For the past few weeks, I've been trying to learn about just how email works. I understand the process of a client receiving mail from a server using POP pretty well. I also understand how a client computer can use SMTP to ask an SMTP server to send a message. However, I'm still missing something...</p>
<p>The w... | <p>The SMTP server at Gmail (which accepted the message from Thunderbird) will route the message to the final recipient.</p>
<p>It does this by using DNS to find the MX (mail exchanger) record for the domain name part of the destination email address (hotmail.com in this example). The DNS server will return an IP addr... | <p>Step 2 to 3 (i.e. Gmail to Hotmail) would normally happen through SMTP (or ESMTP - extended SMTP).</p>
<p>Hotmail doesn't send anything to a client via POP3. It's important to understand some of the nuances here. The client contacts Hotmail via POP3 and requests its mail. (i.e. the client initiates the discussion).... | 5,274 |
<p>I'm looking for a Java library for SWIFT messages. I want to</p>
<ul>
<li>parse SWIFT messages into an object model</li>
<li>validate SWIFT messages (including SWIFT network validation rules)</li>
<li>build / change SWIFT messages by using an object model</li>
</ul>
<p>Theoretically, I need to support all SWIFT me... | <p>Have you looked at <a href="http://wife.sourceforge.net/" rel="noreferrer">WIFE</a>? We use that in our application which translates SWIFT messages to an internal XML format and back again. We haven't had any problems with it. Also, it's licensed under the LGPL, so you can hack it up if you need to. Check it out... | <p>I can not really help you out with a Java implementation. Microsoft of course, have their own Biztalk adapter for ISO15022 and 20022. And they will actually do the validation fairly well. But as you say you are actually looking for a java solution. </p>
<p>You might find, as I did when I researched this 6 years ag... | 4,482 |
<p>I have an array of objects that when another object hits one of them, the object will be removed. I have removed it from the stage using removeChild() and removed from the array using splice(), but somehow the object is still calling some of its functions which is causing errors. How do I completely get rid of an ob... | <p>You need to make sure that the display object you're removing:</p>
<ul>
<li>has no listeners registered on the stage, e.g. you need to call <code>stage.removeEventListener(...)</code> for any corresponding <code>stage.addEventListener(...)</code></li>
<li>doesn't have a listener for the <code>Event.ENTER_FRAME</cod... | <p>Is the object in question a MovieClip, and does it have a timeline playing?
If so you will need to stop it before removing.
Also keep in mind that storing a reference to the object in any way (although most commonly in an Event listener) will keep it from getting garbage collected. This includes any references to f... | 9,447 |
<p>After doing a lot of research, I've decided I want to purchase a Creality CR-10S as my first 3D printer. I'm trying to locate a reputable, local seller. Other than Amazon, which seems to have a bit of a mark-up on price, I'm finding several websites that seem to be located outside of the US. Can anyone direct me to ... | <p>I’ve bought two printers (CR-10S and Ender 2)from Tiny Machines in Houston Texas. They unbox them from China and assemble them and make a test print. You get a checklist of the tests performed. They will also flash a bootloader and updated Marlin for $10.</p>
<p>Yeah, you’ll pay more but if you spend any time in... | <p>My friend found an Ender 3, basically the same thing as a cr-10, at Best Buy. I wouldn't be surprised if you came across a cr-10s there as well. Keep in mind if you are going to buy one, to also get a warranty as printers can come damaged and break later. It is better to be safe rather than sorry.</p>
| 838 |
<p>I purchased two DQ542MA drivers in order to run two NEMA 17 steppers. After about five days of use I noticed that the green indicator light had gone out on both drivers. </p>
<p>The DQ542MA driver running my NEMA 23 High Torque stepper was still running and it has been connected to that stepper for five months now.... | <p>There are a lot of problems with the CH340 chipset drivers to be found on 3D SE and various forums on the internet. To use this cheap CH340 chip that is used by a number of Arduino compatible (clone) boards to provide USB connectivity (a USB bus converter chip that converts USB bus signals to serial interface) you n... | <p>What Cura version do you have?
Cura only works with the Anet A8 via USB on versions 2.3 and lower according to this <a href="https://www.thingiverse.com/groups/anet-a8-prusa-i3/forums/general/topic:12212" rel="nofollow noreferrer">page</a>. The page is from thingiverse(A 3d printing forum + print files page)</p>
| 940 |
<p>I'm using <a href="http://www.c6software.com/Products/PopBox/" rel="nofollow noreferrer">PopBox</a> for magnifying thumbnails on my page.
But I want my website to work even for users which turned javascript off.</p>
<p>I tried to use the following HTML code:</p>
<pre><code><a href="image.jpg">
<img ... | <p>Just put the onclick on the a-tag:</p>
<pre><code><a href="image.jpg onclick="Pop()"; return false;"><img ...></a>
</code></pre>
<p>Make sure to return <code>false</code> either at the end of the function (here <code>Pop</code>) or inline like in the above example. This prevents the user from bei... | <p>The <code>href</code> attribute is not required for anchors (<code><a></code> tags), so get rid of it...</p>
<pre><code> <a id="apic001" href="pic001.png"><img src="tn_pic001.png"></a>
<script type="text/javascript">
document.getElementById("apic001").removeAttribute("href");
</s... | 8,901 |
<p>Can someone tell me how to get path geometry from a WPF FlowDocument object? Please note that I do <strong>not</strong> want to use <code>FormattedText</code>. Thanks.</p>
| <p>A <code>FlowDocument</code> can be viewed in any number of ways, but a <code>Path</code> is a fixed shape. I think maybe you really want some simplified, visual-only form of a <code>FlowDocument</code>'s contents.</p>
<p>In that case you might try converting the <code>FlowDocument</code> to an XPS <code>FixedDocum... | <p>Can you use </p>
<blockquote>
<p>ChildVisual = VisualTreeHelper.GetChild(Visual yourVisual)</p>
</blockquote>
<p>Dunno if you can take a Visual and turn it into a path geometry.. </p>
| 9,139 |
<p>I'm having a lot of difficulty removing support material without damaging the print.</p>
<p><img src="https://i.imgur.com/EVtUHms.jpg" alt="Support material">
<img src="https://i.imgur.com/8akiidF.jpg" alt="Support marterial"></p>
<p>Are there any tips/tricks to doing this or is it just a case of sanding, cutting,... | <h2>Print/material specific settings</h2>
<p>If you are printing <em><strong>too hot with too less distance</strong></em>, <em><strong>the support just fuses to the print object</strong></em>. Extra cooling, lower print temperature and support distance should be in balance to create easy to remove support structures wi... | <p>It is recommended that you try "tree support" in the "experimental" module of settings.Also,before removing the support, blowing with a hot air gun to soften the support material connected to the model may achieve good results.</p>
| 1,185 |
<p>I'm pretty new in the 3D printing world, and there are some doubts that have come my way and I've not been able to find anywhere.</p>
<p>Usually, I'm going to try to print pieces bigger than the bed of my Elegoo Mars Pro (which is 115 x 65 x 150 mm, so it's pretty small). Everywhere I try to look at this they are ta... | <p>I don't think it is the thermistor degrading. To answer your question directly, all my thermistors have failed because the tiny wire has broken off, and generally the fail is “hard” not soft.</p>
<p>It is more likely you’re experiencing absorbed humidity in the filament from it being out on the spool too long. this ... | <p>It is indeed possible that the thermistor is broken (yet not sure). I am aware of two types of issues with thermistors:</p>
<ol>
<li><p>The contact (soldering) is broken, usually due to the temperature extreme variations. The thermistor will indicate the maximum temperature in case of PTC or minimum temperature in c... | 1,728 |
<p>Is there a Perl module that allows me to view diffs between actual and reference output of programs (or functions)? The test fails if there are differences.</p>
<p>Also, in case there are differences but the output is OK (because the functionality has changed) I want to be able to commit the actual output as future... | <p>Perl has excellent utilities for doing testing. The most commonly used module is probably Test::More, which provides all the infrastructure you're likely to need for writing regression tests. The prove utility provides an easy interface for running test suites and summarizing the results. The Test::Differences modul... | <p>I tend to use more of the Test::Simple and Test::More functionality. I looked at PerlUnit and it seems to provide much of the functionality which is already built into the standard libraries with the Test::Simple and Test::More libraries.</p>
| 9,186 |
<p>Is there a way to specify a child's initial window position in Qt?</p>
<p>I have an application that runs on Linux and Windows and it looks like the default behavior of Qt lets the Window Manager determine the placement of the child windows. </p>
<p>On Windows, this is in the center of the screen the parent is o... | <p><a href="http://doc.qt.io/qt-4.8/qwidget.html#geometry-prop" rel="nofollow noreferrer">Qt Widget Geometry</a></p>
<p>Call the move(x, y) method on the child window before show(). The default values for x and y are 0 so that's why it appears in the upper left-hand corner.<br>
You can also use the position of the par... | <p>Generally, I'd recommend not forcing window positions unless your application has some very special windowing requirements. It's the window manager's job to determine where new windows are put and most of them do a good job. If MetaCity isn't picking a good position, then that's its problem.</p>
<p>If you do your o... | 5,039 |
<p>It looks like <a href="http://brew.qualcomm.com/brew/" rel="nofollow noreferrer">BREW</a> 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?</p>
| <p>It is possible, but you will have to link lua interpreter source code to your application source code and wrap BREW API functions in order to use them from lua scripts.</p>
<p>Check out <a href="http://luaforge.net/projects/luabrew" rel="nofollow noreferrer">LuaBREW</a> project as an example of approach I briefly e... | <p>We don't wait BREW 4.0. We are writing our LuaBREW implementation right now.</p>
| 9,671 |
<p>In Cura Slicer, is it possible to change the direction that the filament is laid down when making the top layer?</p>
<p><a href="https://i.stack.imgur.com/6AIdx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6AIdx.png" alt="enter image description here" /></a></p>
<p>For example, in the above pic... | <p>Yes. Set "Top Surface Skin Layers" (roofing layers) to at least 1 and "Top Surface Skin Line Directions" to 0 or 90 as appropriate (instead of 45 and 135).</p>
| <h2>Yes with a few tricks:</h2>
<p>You could turn the item by 45°, then all layers are turned to follow the local X and Y-axis of the body itself, but not the global X and Y of the printer - there'll be a 45° conversion between the items local coordinates and the printers global ones.</p>
<p>Or you could choose a diffe... | 2,084 |
<p>I am having problems submitting forms which contain UTF-8 strings with Ajax. I am developing a <a href="http://en.wikipedia.org/wiki/Apache_Struts" rel="noreferrer">Struts</a> web application which runs in a <a href="http://en.wikipedia.org/wiki/Apache_Tomcat" rel="noreferrer">Tomcat</a> server. This is the environm... | <p>have you tried adding the following before the call :</p>
<pre><code>$.ajaxSetup({
scriptCharset: "utf-8" ,
contentType: "application/json; charset=utf-8"
});
</code></pre>
<p>The options are explained <a href="http://docs.jquery.com/Ajax/jQuery.ajax#toptions" rel="noreferrer">here</a>.</p>
<p>contentTy... | <p>I see this problem a lot.
The meta doesn't work always in your PHP data operations, so just type this at the beginning:</p>
<pre><code><?php header('Content-type: text/html; charset=utf-8'); ?>
</code></pre>
| 4,952 |
<p><strong>What mechanisms do you know that prevent your site from being abused by anonymous spammers.</strong></p>
<p>For example, let's say that I have a site where people can vote something. But I <em>don't</em> want someone to spam something all the way to the top. So I found (a) creating an account and only allow... | <p>The big thing I've noticed is that whatever you do, you want your system to be unique. You want an attacker to have to tailor their automation program for your specific site, rather than just throw a pre-existing script at it that will work almost anywhere. It doesn't even have to be cryptographically secure; it j... | <p>stackoverflow has a few features that help with this; I think the single most useful step you can take is disabling the ability of anonymous users and new accounts to vote. This way, no one can sign up for hundreds of accounts and use their one vote to overpower other users. I'd say requiring a few posts or member... | 6,347 |
<p>I'm going to 3D print a part that needs to meet certain strength requirements, due to its usages. I know how strong a particular plastic (eg. comrpessive/tensile/shear strength) is when dealt with in a solid chunk, but not when it is 3D printed. What is a good way to estimate the change?</p>
| <p>I have a bunch of solutions to this problem but I'm always looking for additional ideas. I usually start by slicing as much as possible off with a hobby knife. The more than can be removed before sanding the better.</p>
<p>For big prints I like big <a href="http://rads.stackoverflow.com/amzn/click/B001449TPS">gener... | <p>I've noticed if I'm printing too close too the bed or if the bed isn't level to nozzle across the whole bed the supports will leave marks on the print where the print was 'smushed' by the nozzle being slightly closer on that side. Also, in Simplify3d you can increase the vertical and horizontal distance between the ... | 110 |
<p>I'm fairly new to 3D printing but I'm getting the steam up and I chug out pieces without much hassle. One thing though is that I have the impression that sometimes, parts are easily broken, and I suspect bad adhesion between layers.</p>
<p>I'm printing eSun PLA at 208 °C (212 °C first layer), bed at 50&nb... | <p>I think the reason why the large cylinder is breaking much easier than the smokestack would is because of leverage. If you print the same cylinder at a much smaller scale it might be more difficult to break it. Think of taking a wooden stick, if you try to snap it by holding both hands near the center, it would be d... | <p>From my experience the most profound difference is in the material. Especially with eSun PLA that I have used over 10 spools I have found huge inconsistencies. In one spool the printing adhesion was fine on other spools it was very very bad. My first advise is try another branded filament, I would recomend Colorfabb... | 745 |
<p>Which type of filament material(s) is safe to use as an in-wall box for regular, 120v wiring? For instance, an electrical outlet box.</p>
<p>In case it matters, location is the state of Washington, USA.</p>
| <h1>Safety is not the same as legality</h1>
<p>Something might be perfectly safe, but it doesn't make it legal to do or allowed to use. Parking your car over double-yellow lines is one example that is perfectly safe but violates the traffic codes.</p>
<p>Any 3D printed box would violate for example <a href="https://app... | <p>I haven't tested the commercial "blue boxes" used to hold 120/240 V electrical outlets, switches, and splices to see how they behave when heated. As such, this argument is based on intuition, which is intrinsically flawed as a logic device. Never-the-less, I think the no extruded molten plastic (FFF) 3D print... | 1,562 |
<p>My dad called me today and said people going to his website were getting 168 viruses trying to download to their computers. He isn't technical at all, and built the whole thing with a WYSIWYG editor.</p>
<p>I popped his site open and viewed the source, and there was a line of Javascript includes at the bottom of th... | <p>Try and gather as much information as you can. See if the host can give you a log showing all the FTP connections that were made to your account. You can use those to see if it was even an FTP connection that was used to make the change and possibly get an IP address.</p>
<p>If you're using a prepacked software lik... | <p>We had been hacked from same guys apparently! Or bots, in our case. They used SQL injection in URL on some old classic ASP sites that nobody maintain anymore. We found attacking IPs and blocked them in IIS. Now we must refactor all old ASP.
So, my advice is to take a look at IIS logs first, to find if problem is in ... | 2,510 |
<p>I've actually solved this, but I think its still a useful question which I don't think is easy to answer with existing questions.</p>
<p>As soon as I'd built my ANET-A8 (Prusa i3 DIY kit), I found I was having problems with the extruder crashing into the bed. Although I thought I'd adjusted the bed leveling OK, the... | <p>I assume you did everything according to the instructions but here is a checklist of what could be possibly wrong:</p>
<ol>
<li>Friction - check if you can rotate/move parts without lot of resistance</li>
<li>Screws - check if screws on couplings are tight and they don't slide over a shaft or thread</li>
<li>Stepst... | <p>From <a href="http://3daddict.com/anet-3d-printer-common-mistakes-fix/" rel="nofollow noreferrer">http://3daddict.com/anet-3d-printer-common-mistakes-fix/</a></p>
<p>The motor shaft and the threading rod must have space between them in the flexible coupler.</p>
<p>That means unlocking the coupler from the motor sh... | 427 |
<p>I need to to print natural nos. 1,2,...n such that the parent process prints all odd numbers and the child process prints all even numbers, and all of this needs to be done using POSIX signals. How would I go about accomplishing this?</p>
<p>The output should be:</p>
<p>Parent : 1<br>
Child : 2<br>
Parent : 3<br>... | <p>I think this homework assignment was given to you to make you try a lot of solution and conclude by yourself that <strong>signals are not a good synchronisation technique</strong>.</p>
<p>This an invaluable lesson, remember it well and use semaphores from now on! :)</p>
| <p>I think this homework assignment was given to you to make you try a lot of solution and conclude by yourself that <strong>signals are not a good synchronisation technique</strong>.</p>
<p>This an invaluable lesson, remember it well and use semaphores from now on! :)</p>
| 5,587 |
<p>I want to catch the NavigationService.Navigating event from my Page, to prevent the user from navigating forward. I have an event handler defined thusly:</p>
<pre><code>void PreventForwardNavigation(object sender, NavigatingCancelEventArgs e)
{
if (e.NavigationMode == NavigationMode.Forward)
{
e.Can... | <p>Create your own function to execute an OS command through the <a href="http://www.computerhope.com/shutdown.htm" rel="nofollow noreferrer">command line</a>?</p>
<p>For the sake of an example. But know where and why you'd want to use this as others note.</p>
<pre><code>public static void main(String arg[]) throws IOE... | <p>On Windows Embedded by default there is no shutdown command in cmd.
In such case you need add this command manually or use function ExitWindowsEx from win32 (user32.lib) by using JNA (if you want more Java) or JNI (if easier for you will be to set priviliges in C code).</p>
| 4,523 |
<p>We are investigating using CruiseControl.NET as both a Continues Integration build provider, as well as automating the first part of our deployment process.</p>
<p>Has anyone modified CruiseControl.NET's dashboard to add custom login and user roles (IE, Separate out access to forcing a build to only certain individ... | <p>Why do you need to? Do you really need to limit users in the way with an integration server. I think that's why CC.Net doesn't have that sort of support built in.</p>
<p>You can always see who forced a build, and control it that way.</p>
<p>I find that continuous integration works best with regular builds and regu... | <p>@Keith:</p>
<p>We are leveraging CC.NET to both run a CI build, as well as being able to use the Force Build feature to do a Build + Deploy. That is why we want hands off the dashboard.</p>
<p>I found this morning that I was able to place CCNET in a virtual directory within another web app, This allowed me to setu... | 3,871 |
<p>I got embroiled in a discussion about DOM implementation quirks yesterday, with gave rise to an interesting question regarding Text.splitText and Element.normalise behaviours, and how they should behave.</p>
<p>In <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html" rel="nofollow norefer... | <p>I was on the DOM Working Group in the early days; I'm sure we <em>meant</em> for textNode to contain the new joined value, but if we didn't <em>say</em> it in the spec, it's possible that <em>some</em> implementation <em>might</em> create a new node instead of reusing textNode, though that would require more work fo... | <p>While it would seem like a reasonable assumption, I agree that it is not explicityly made clear in the specification. All I can add is that the way I read it, one of either <code>textNode</code> or it's new sibling (i.e. return value from <code>splitText</code>) would contain the new joined value - the statement spe... | 4,989 |
<p>I've just received my Ender 3v2 and tried multiple SD cards, all have been formatted to FAT32 with no luck. Under the Print selection, all I get is the back button. I looked and I have the V4.2.2 and the firmware is up to date, Showing 1.0.2 unless this is not right and this is why I'm having this issue. Even when p... | <p>Abd to follow along with J Boughtons advice, I've noticed if the word "end" is in the first file, it won't read any of the files.</p>
| <p>I have the same issue but whilst none of these worked for me they have worked for other people:</p>
<ul>
<li>Make sure the name of the G-code file begins with a letter or number</li>
<li>Make sure the G-code is not in a subfolder</li>
<li>Make sure the name of the G-code file is less than or equal to 8 characters lo... | 1,906 |
<p>Given a 3D boolean array representing voxels, how can it be converted to a 3D-printer-ready file?</p>
<p>The end-goal I would like to achieve is to print the 3D shape that the numpy array represents (<code>True</code> coding for <em>fill this voxel</em>, <code>False</code> for <em>leave it empty</em>).</p>
<p>For ... | <p>I agree with the use of OpenSCAD, but since it is difficult to program in OpenSCAD, I would use <a href="https://github.com/SolidCode/SolidPython" rel="nofollow noreferrer">SolidPython</a>, which is a front end for OpenSCAD with the full programming capability of Python.</p>
<p>In the alternative, you could use any... | <p>Try voxelfuse.</p>
<pre><code> from voxelfuse.voxel_model import VoxelModel
from voxelfuse.mesh import Mesh
from voxelfuse.primitives import generateMaterials
if __name__=='__main__':
sponge = [
[
[1, 1, 1],
[1, 0, 1],
[1, 1, 1]
],
[... | 1,343 |
<p>I'm trying to attach an instance of UIScrollbar component to a dynamic text field inside of an instance of a class that is being made after some XML is loaded. The scroll bar component is getting properly attached, as the size of the slider varies depending on the amount of content in the text field, however, it won... | <p>You might try adding the scrollbar once your textfield is initialized from a separate function similar to this:</p>
<pre><code>private function assignScrollBar(tf:TextField, sb:UIScrollBar):void {
trace("assigning scrollbar");
sb.move(tf.x + tf.width, tf.y);
sb.setSize(15, tf.height);
sb.direction =... | <p>Have you tried putting the UI scrollbar onto the stage, binding it to the textfield at design time, and then calling update() during the loaded event?</p>
<p>I have had some <em>interesting</em> experiences in the past with dynamically creating UIScrollbars at runtime.</p>
| 8,115 |
<p>I'm building a website that requires very basic markup capabilities. I can't use any 3rd party plugins, so I just need a simple way to convert markup to HTML. I might have a total of 3 tags that I'll allow.</p>
<p>What is the best way to convert <code>==Heading==</code> to <code><h2>Heading</h2></code>, ... | <p>It's not really a simple problem, because if you're going to display things back to the user, you'll need to also sanitise the input to ensure you don't create any <a href="http://en.wikipedia.org/wiki/Cross-site_scripting" rel="nofollow noreferrer">cross site scripting</a> vulnerabilities.</p>
<p>That said, you co... | <p>This really depends on the Wiki syntax you're using as there are several different ones. Obviously the wiki software has this functionality somewhere; if you can't find a software package that does this for you, you could start looking for the relevant code in your wiki software.</p>
| 6,802 |
<p>It seems to me that the size of hole in the nozzle shouldn't matter in and of itself. If you program in the layer height and line width, then the same amount of plastic has to be extruded, no matter what size the hole is in the nozzle. </p>
<p>Of course I understand that, mechanically, the best results are got with... | <p>CNC kitchen tested various extrusion widths with various nozzles and in fact there's no difference, only the line width matters.
<a href="https://www.cnckitchen.com/blog/big-nozzles-how-do-they-make-your-3d-prints-stronger" rel="nofollow noreferrer">https://www.cnckitchen.com/blog/big-nozzles-how-do-they-make-your-3... | <p>I’m using sli3r. It use nozzle size for some auto value like auto extrusion width which calculate by 105% of nozzle diameter and prevent some error like setting layer height greater than nozzle diameter.</p>
| 1,655 |
<p>How do I exit a script early, like the <code>die()</code> command in PHP?</p>
| <pre><code>import sys
sys.exit()
</code></pre>
<p>details from the <a href="https://docs.python.org/2/library/sys.html#sys.exit" rel="noreferrer"><code>sys</code> module documentation</a>:</p>
<blockquote>
<p><code>sys.<strong>exit</strong>([<em>arg</em>])</code></p>
<p>Exit from Python. This is implemented by raising ... | <p>Just put at the end of your code <code>quit()</code> and that should close a python script.</p>
| 9,938 |
<p>Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?</p>
<p>If the standard library doesn't support that, does the dateutil package support this?</p>
| <p><a href="https://docs.python.org/library/calendar.html#calendar.monthrange" rel="noreferrer"><code>calendar.monthrange</code></a> provides this information:</p>
<blockquote>
<p>calendar.<b>monthrange</b>(year, month)<br>
Returns weekday of first day of the month and number of days in month, for the specified <em... | <p>If you pass in a date range, you can use this:</p>
<pre><code>def last_day_of_month(any_days):
res = []
for any_day in any_days:
nday = any_day.days_in_month -any_day.day
res.append(any_day + timedelta(days=nday))
return res
</code></pre>
| 6,456 |
<p>I keep hearing about vase mode, but I have some problem figuring out how to set it up in my slicer; I use Cura slicer.</p>
<p>So, I'd like to get some settings to do it in Ultimaker Cura, using PLA if the material is important, plus any advice on how to properly do it and ensure that the print retains it's shape on ... | <p>Vase Mode changed the name in some version before 3.5. Now you can achieve this with 2 modes: "Surface Mode" and "Spiralize Outer Contour". To turn it on do this:</p>
<ul>
<li>Choose the Custom setting menu on the right</li>
<li>click a gear to set up what settings you want to see</li>
<li>Under the header "Special... | <p>Option <code>Spiralize</code> makes your model one layer thick on outer edges.</p>
<p>What I do for a vase is set the top layer count to zero.</p>
| 1,121 |
<p>DDD states that you should only ever access entities through their aggregate root. So say for instance that you have an aggregate root X which potentially has a <em>lot</em> of child Y entities. Now, for some scenario, you only really care about a subset of these Y entities at a time (maybe you're displaying them in... | <p>I consider an aggregate root with a <em>lot</em> of child entities to be a code smell, or a DDD smell if you will. :-) Generally I look at two options.</p>
<ol>
<li>Split your aggregate into many smaller aggregates. This means that my original design was not optimal and I need to identify some new entities.</li>
... | <p>You are allowed since the code will compile anyway, but if you're going for a pure DDD design you should not have incomplete instances of objects.</p>
<p>You should look into LazyLoading if you're afraid to load a huge object of which you will only use a small portion of its child entities.</p>
<p>LazyLoading dela... | 4,469 |
<p>I'm looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin.</p>
| <p><a href="https://developers.google.com/java-dev-tools/wbpro/" rel="noreferrer">Window Builder Pro</a> is a great GUI Designer for eclipse and is now offered for free by google.</p>
| <p>I use GWTDesigner <a href="http://www.instantiations.com/gwtdesigner/" rel="nofollow noreferrer">http://www.instantiations.com/gwtdesigner/</a> which is not free but works well. Best of all, their customer support is top notch - very responsive.</p>
| 4,907 |
<p>I have recently started having problems with TortoiseCVS, or more specifically with plink, the SSH application that comes with it. The IP address it tries to connect to can not be changed and is stuck with the old CVS repository's IP. Downloading plink from it's home site and calling from the command line still has ... | <p>Are you sure this is a problem with plink? It sounds to me like you have CVS/Root files lying around that still point to the old cvs ip address. In general, CVS doesn't make changing repositories into a fun process. Since you are using Windows, if you install WinCVS with macros support (Python module loaded) it h... | <p>+1 for PuTTy... been using it for the last decade and never needed anything else!</p>
| 4,270 |
<p>I have a database with a table Customers that have some data<br><br>
I have another database in the office that everything is the same, but my table Customers is empty<br><br>
How can I create a sql file in SQL Server 2005 (T-SQL) that takes everything on the table Customers from the first database, creates a, let's... | <p>This functionality is already built in to Sql Server Management Studio 2008. </p>
<p>Just download <a href="http://www.microsoft.com/sqlserver/2008/en/us/trial-software.aspx" rel="noreferrer">the trial</a> and only install the client tools (which shouldn't expire). Use Management Studio 2008 to connect to your 2005... | <p>If both databases resides in the same instance of SQL Server, ie use same connection, this SQL might be helpful:</p>
<pre><code>INSERT INTO [DestinationDB].[schema].[table] ([column])
SELECT [column] FROM [OriginDB].[schema].[table]
GO
</code></pre>
| 4,073 |
<p>Looks like here in StackOveflow there is a group of <strong>F#</strong> enthusiasts. </p>
<p>I'd like to know better this language, so, apart from the <a href="http://en.wikipedia.org/wiki/Functional_programming" rel="noreferrer">functional programming theory</a>, can you point me to the better starting points to s... | <p>Not to whore myself horribly but I wrote a couple F# overview posts on my blog <a href="http://www.codegrunt.co.uk/blog/?p=58" rel="noreferrer">here</a> and <a href="http://www.codegrunt.co.uk/blog/?p=81" rel="noreferrer">here</a>. Chris Smith (guy on the F# team at MS) has an article called 'F# in 20 minutes' - <a ... | <p>Check out the <a href="http://msdn.microsoft.com/en-gb/fsharp/default.aspx" rel="nofollow noreferrer">F# Developer Center</a>. There is also <a href="http://cs.hubfs.net/forums/default.aspx" rel="nofollow noreferrer">hubFS</a>, a forum dedicated to F#.</p>
| 5,694 |
<p>What is the difference between early and late binding?</p>
| <p>The short answer is that early (or static) binding refers to compile time binding and late (or dynamic) binding refers to runtime binding (for example when you use reflection).</p>
| <pre><code>public class child()
{ public void method1()
{ System.out.println("child1");
}
public void method2()
{ System.out.println("child2");
}
}
public class teenager extends child()
{ public void method3()
{ System.out.println("teenager3");
}
}
public class adul... | 3,176 |
<p>We are trying to repair an Ultimaker Original+. One problem is a missing resistor isolation. The Ultimaker Original+ prints with up to 260 Degree Celcius.</p>
<p><strong>Which kind of isolation products are suitable to resist the heat and are fitting on the thin wires of the thermistor?</strong></p>
| <p>The most common choice for insulating thermistors is glass fiber sleeving. It tolerates very high temperatures, and is commonly rated for up to 600 °C.</p>
<p>Teflon is also used but has a rather low upper limit on its working temperature; it shouldn't be used at temperatures exceeding 260 °C - wh... | <p>There are many materials you can use one that came to my mind is this High Temperature & Pressure Sealant and also the best way to apply it so it can be removed easy is this . take a kitchen food very thing nylon cover you know the very thin elastic one or cover the parts with some type of release agent (dont us... | 489 |
<p>Say I have several JavaScript includes in a page:</p>
<pre><code><script type="text/javascript" src="/js/script0.js"></script>
<script type="text/javascript" src="/js/script1.js"></script>
<script type="text/javascript" src="/js/script2.js"></script>
<script type="text/javascr... | <p>If you get the <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" rel="noreferrer" title="Firebug">Firebug</a> firefox plugin and enable the consoles it should tell you when there are errors retrieving resources in the console.</p>
| <p>If you don't want to check it manually on the client you will need to do this server-side. You need to make sure whichever webserver you are using is configured to log 404s and then check that log to see which HTTP requests have failed.</p>
| 8,144 |
<p>When I call <code>socket.getsockname()</code> on a socket object, it returns a tuple of my machine's internal IP and the port. However, I would like to retrieve my external IP. What's the cheapest, most efficient manner of doing this?</p>
| <p>This isn't possible without cooperation from an external server, because there could be any number of NATs between you and the other computer. If it's a custom protocol, you could ask the other system to report what address it's connected to.</p>
| <p>Using the address suggested in the source of <a href="http://whatismyip.com" rel="nofollow noreferrer">http://whatismyip.com</a></p>
<pre><code>import urllib
def get_my_ip_address():
whatismyip = 'http://www.whatismyip.com/automation/n09230945.asp'
return urllib.urlopen(whatismyip).readlines()[0]
</code></p... | 8,266 |
<pre><code>var e1 = new E1();
e1.e2s.Add(new e2()); //e2s is null until e1 is saved, i want to save them all at the same time
context.e1s.imsertonsubmit(e1);
context.submitchanges();
</code></pre>
| <p>The sub items will be saved along with the main item, and even identities will be set properly, if you give your DataClasses an association between these classes.</p>
<p>You do this by adding LoadOptions to your O/R-Designer DataClasses like this:</p>
<pre><code> MyDataContext mydc = new MyDataContext();
System... | <p>Well - I don't know if your initial code block would work, but I'm guessing you have to mark your new e2 as insert on submit. Thus:</p>
<pre><code>var e1 = new E1();
var e2 = new e2();
e1.e2s.Add(e2); //e2s is null until e1 is saved, i want to save them all at the same time
context.e1s.insertonsubmit(e1);
context.e... | 7,614 |
<p>Several times now I've been faced with plans from a team that wants to build their own bug tracking system - Not as a product, but as an internal tool.</p>
<p>The arguments I've heard in favous are usually along the lines of :</p>
<ul>
<li>Wanting to 'eat our own dog food' in terms of some internally built web fra... | <p>First, look at these <a href="http://ohloh.net" rel="noreferrer">Ohloh</a> metrics:</p>
<pre><code> Trac: 44 KLoC, 10 Person Years, $577,003
Bugzilla: 54 KLoC, 13 Person Years, $714,437
Redmine: 171 KLoC, 44 Person Years, $2,400,723
Mantis: 182 KLoC, 47 Person Years, $2,562,978
</code></pre>
<p>What do... | <p>I agree with most of the people here. It is no use to rebuild something when there are many tools (even free) available.
If you want to customize anything, most of the free tools give you the code, play with it.</p>
<p>If you do new development, you should not be doing it for yourself only.</p>
| 8,752 |
<p>I'm using brand new PLA filament and am getting frequent clogs in my extruder.</p>
<p>I've had this problem with 2 different filaments from 2 different vendors.</p>
<p>It will be print just fine, then clog up. It doesn't ever seem to go more than 5 minutes before clogging. When it clogs, and I pull out the filame... | <p>The shape you get is quite easy to explain. It's the shape of the lowest energy possible in your situation. Simple but it doesn't explain the issue... or does it?</p>
<p>It does. The filament cannot be put into the extruder as it becomes plugged. This leads us to some obvious explanations. You can read <a href="htt... | <p>The distance between heat block and heat sink is too big (3/4 inch, almost 2 cm). In this area your filament is some half melt state, not cooled as in heat sink part, not melted as in heat block part. You should make as small as possible, less then 0.5 cm.</p>
<p>Great source of information about hot ends is video ... | 274 |
<p>What software is best for the basest of n00bs when it comes to 3D parts creation?</p>
<p>I have a heavy math background and know how to create explicit functions of volume, surface area, center of mass, etc. Ideally, I'd like a program that uses those strengths but I realize that most n00bs have a crippling math ph... | <p>I don't have a heavy math background, but enjoy using such skills when applicable.</p>
<p>If you've not yet explored <a href="http://www.openscad.org/" rel="nofollow noreferrer">OpenSCAD</a>, you may find that it meets your qualifications. It's more or less a scripting/descriptive language "compiler" that takes ord... | <p>I would add OnShape.com to the list. The only downside of a free account is that your designs are publicly viewable.</p>
<p>I would also add support for OpenSCAD. It is my go-to program for difficult problems, especially where being able to script something is far more efficient that dozens of clicks and careful ... | 219 |
<p>I want to write a small utility to call arbitrary functions from a C shared library. User should be able to list all the exported functions similar to what objdump or nm does. I checked these utilities' source but they are intimidating. Couldn't find enough information on google, if dl library has this functionality... | <p>This might be near to what you're looking for:
<a href="http://python.net/crew/theller/ctypes/" rel="nofollow noreferrer">http://python.net/crew/theller/ctypes/</a></p>
| <p>Eek! You've touched on one of the very platform-dependent topics of programming. On windows, you have DLLs, on linux, you have <code>ld.so</code>, <code>ld-linux.so</code>, and mac os x's <code>dyld</code>.</p>
| 9,208 |
<p>After reading Jeff's blog post on <a href="http://www.codinghorror.com/blog/archives/001167.html" rel="noreferrer">Protecting Your Cookies: HttpOnly</a>. I'd like to implement HttpOnly cookies in my web application.</p>
<p>How do you tell tomcat to use http only cookies for sessions?</p>
| <p>httpOnly is supported as of Tomcat 6.0.19 and Tomcat 5.5.28.</p>
<p>See the <a href="http://tomcat.apache.org/tomcat-6.0-doc/changelog.html" rel="noreferrer">changelog</a> entry for bug 44382. </p>
<p>The last comment for bug <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=44382" rel="noreferrer">44382... | <p>Implementation: in Tomcat 7.x/8.x/9.x</p>
<p>Go to Tomcat >> conf folder
Open web.xml and add below in session-config section</p>
<pre><code> <cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</code></pre>
| 5,346 |
<p>I've built the mechanics of my 3D printer myself, because I need to print parts that are really huge, (and for budget reasons). <strong>So, I already have the 3D movement functionality.</strong></p>
<p>But what I need now, is the printing mechanism itself. I've been reading a lot, but it became clear to me that thi... | <p>You will certainly find that the print functionality of a 3d printer is a bit more complex than you suggest. The mechanical portions include a means to push the filament into a heated nozzle as well as the software portion to regulate the speed of the filament movement. You haven't referenced the heater cartridge an... | <p>The first point to start would be the RepRap wiki entry for <a href="http://reprap.org/wiki/Category:Extruders" rel="nofollow noreferrer">extruders</a>:</p>
<blockquote>
<h3>cold end</h3>
<p>The "Cold End" is usually the bulk of the extruder. It is
often the actual carriage on one axis and supports the res... | 384 |
<p>Are there any ports to WPF of Silverlight's MultiScaleImage (aka DeepZoom)? Have Microsoft road-mapped this at all for WPF?</p>
<p>I want to move from WinForms to WPF and require something like DeepZoom, using Silverlight isn't an option.</p>
| <p>At the moment there is no port. However, DeepZoom is based on the technology found in the "World Wide Telescope" and the "Microsoft Photo Synth", so they have desktop versions of the technology running. I guess it would be safe to assume that Microsoft will be releasing a multi scale image control for WPF soon. If y... | <p>Sad bit of news (or 'rumor'?)... in this <a href="http://blogs.msdn.com/jaimer/archive/2009/05/27/wpf-4-and-net-framework-4-beta-1-list-of-features-totrack.aspx" rel="nofollow noreferrer">List of features to track in WPF4 </a>, Jaime says</p>
<p>"Note: At PDC, we said that DeepZoom would be in WPF4. Unfortunately t... | 9,317 |
<p>A couple of prints after leveling the bed (<10), I noticed some weird sound, and saw the nozzle scratching the build-plate.
What is really weird, is that I noticed (My printer is in quite a dark edge, so the build plate isn't really illuminated), that there were some scratches from a print before, but it worked ... | <p>As the question continued in comments, it can be read that the build plate had over-tight screws and loose screws on the build plate. This uneven tension could lead to stresses that warp the bed, e.g. lower corner and bulging out in the middle of the bed. When levelling on the corners, the nozzle could hit the bulge... | <p>I currently have a couple scratches on the base of my Cr-10. They may have come, for me, from using tape on the bed as well as the nozzle being too close and rubbing. I have not noticed any quality difference during my prints. Noting Oscar, warping could also cause the nozzle to scrape the build plate when it goes o... | 1,127 |
<p>I thought .Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message?</p>
<p>Feel free to edit this question/title, I know it doesn't really make sens... | <p>A .Net assembly is compiled with metadata about the bytecode included that allows easy decompilation of the code - that's how tools like <a href="http://www.red-gate.com/products/reflector/" rel="noreferrer">.Net Reflector</a> work. The PDB files are debug symbols only - the difference in the Yellow Screen Of Death... | <p>I think this is down to the debug information that can be included with the compiled assemblies..(although I could definately be wrong)</p>
| 4,054 |
<p>Can somebody suggest a good <strong>free</strong> tool for analyzing .Net memory dumps other than Adplus/windbg/sos ?</p>
| <p>You can <a href="http://blogs.msdn.com/vijaysk/archive/2007/11/15/sos-your-visual-studio.aspx" rel="nofollow noreferrer">load sos</a> and your memory dump into Visual Studio to at least insulate you from the 'interesting' ui that WinDbg presents. </p>
| <p>I fully recommend .Net Memory Profiler.
Beside being a great live memory profiler for .Net applications, it can also load memory dumps, and let you traverse the objects in the dump in a very intuitive an easy way.</p>
<p>Opening big dump (> 1 GB) can take a few hours though, but for us it's worth the wait.
I don't ... | 7,053 |
<p>I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my <code>QWebView</code>. Is there a specific location where I need to place this file? Can I grab it using the <code>QWebPluginFactory</code>?</p>
| <p>I am assuming the plugin here is the NPAPI plugin (e.g. Flash). Under X11, QtWebKit search several common directories for the plugin. For the complete list, see <a href="http://doc.qt.digia.com/4.5/qtwebkit.html#netscape-plugin-support" rel="nofollow noreferrer">the documentation on Netscape plugin support</a>.</p>
... | <p>Have you tried putting in the <em>standard library directories</em>? It should be picked up by the <strong>linker</strong> if it's in one of those directories.</p>
<p>For example:</p>
<pre><code>/lib/
/usr/lib/
/usr/share/lib/
/usr/local/lib/
</code></pre>
| 3,939 |
<p>If I have interface IFoo, and have several classes that implement it, what is the best/most elegant/cleverest way to test all those classes against the interface?</p>
<p>I'd like to reduce test code duplication, but still 'stay true' to the principles of Unit testing.</p>
<p>What would you consider best practice? ... | <p>If you have classes implement any one interface then they all need to implement the methods in that interface. In order to test these classes you need to create a unit test class for each of the classes.</p>
<p>Lets go with a smarter route instead; if your goal is to <strong>avoid code and test code duplication</st... | <p>I don't use NUnit but I have tested C++ interfaces. I would first test a TestFoo class which is a basic implementation of it to make sure the generic stuff works. Then you just need to test the stuff that is unique to each interface.</p>
| 6,002 |
<p>I have an ASP.net Application that runs on the internal network (well, actually it's running on Sharepoint 2007). </p>
<p>I just wonder:</p>
<p>Can I somehow retrieve the name of the PC the Client is using? I would have access to Active Directory if that helps. The thing is, people use multiple PCs. So, I cannot ... | <p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.web.httprequest.userhostname?redirectedfrom=MSDN&view=netframework-4.8#System_Web_HttpRequest_UserHostName" rel="nofollow noreferrer">System.Web.HttpRequest.UserHostname</a> as suggested in <a href="https://stackoverflow.com/a/17691/1011722">this answe... | <p>Does <a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostname.aspx" rel="nofollow noreferrer">System.Web.HttpRequest.UserHostname</a> provide what you're looking for?</p>
| 3,824 |
<p>I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of code generation as part of the build process.</p>
<p... | <p>OK, I see. Well, as far as I know there isn't any code generator for Python. There is a good introduction on how to roll your own <a href="http://www.drewnoakes.com/snippets/WritingACustomCodeGeneratorToolForVisualStudio/" rel="nofollow noreferrer">here</a>.</p>
<p>Actually, that's quite an under-used part of the e... | <p>I don't understand what you are trying to do here. Are you trying to execute a Python script that generates a C# file and then compile that with the project? Or are you trying to compile a Python script to C#?</p>
| 4,392 |
<p>I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the administrator user...</p>
| <p>The absolute minimum you should do is change the Remote Desktop port, change the Admin username, and have a very strong admin password.</p>
| <p>Any chance you can set up your server as a VPN endpoint? Then you would only have the VPN ports and the HTTP ports open. When you want to RDP to the server, you would connect to the VPN first and then you're good to go. </p>
<p>Only reason is, if my memory serves me right, RDP traffic is not encrypted.</p>
<p>T... | 4,009 |
<p>I've had my anycubic kossel for a good while now, and whenever I print something, it seems like it falls out of calibration very quickly. The biggest example is that the prints tend to scale up as the print progresses, or maybe the print starts to drift, and comes out slanted. This seems to never happen in any simil... | <p>user77232's points are valid but I have done several things to mitigate these issues on my Anycubic Deltas. </p>
<p>First, both of my deltas have linear slide bearings. If your's has the bearing trucks that run in the extrusion slots this will lead to less precise operation and also is a source of wear over time. <... | <p>(The XYZ Printers are called Cartesian Printers)</p>
<p>Delta printers are harder to get right, because they require precision parts. The arms have to be EXACTLY the same length, the frame must be square, the universal joints must have no slop. You should check to see if any of the universal joints need replacing, ... | 1,441 |
<p>How do I select all the columns in a table that only contain NULL values for all the rows? I'm using <strong>MS SQL Server 2005</strong>. I'm trying to find out which columns are not used in the table so I can delete them.</p>
| <p>Here is the sql 2005 or later version: Replace ADDR_Address with your tablename.</p>
<pre><code>declare @col varchar(255), @cmd varchar(max)
DECLARE getinfo cursor for
SELECT c.name FROM sys.tables t JOIN sys.columns c ON t.Object_ID = c.Object_ID
WHERE t.Name = 'ADDR_Address'
OPEN getinfo
FETCH NEXT FROM getin... | <p>You might need to clarify a bit. What are you really trying to accomplish? If you really want to find out the column names that only contain null values, then you will have to loop through the scheama and do a dynamic query based on that.</p>
<p>I don't know which DBMS you are using, so I'll put some pseudo-code ... | 8,879 |
<p>I need to try to lock on an object, and if its already locked just continue (after time out, or without it).</p>
<p>The C# lock statement is blocking.</p>
| <p>Ed's got the right function for you. Just don't forget to call <code>Monitor.Exit()</code>. You should use a <code>try-finally</code> block to guarantee proper cleanup.</p>
<pre><code>if (Monitor.TryEnter(someObject))
{
try
{
// use object
}
finally
{
Monitor.Exit(someObject);
... | <p>Based on <a href="https://stackoverflow.com/a/8557/481626">Dereks answer</a> a little helper method:</p>
<pre><code>private bool TryExecuteLocked(object lockObject, Action action)
{
if (!Monitor.TryEnter(lockObject))
return false;
try
{
action();
}
finally
{
Monitor.E... | 2,999 |
<p>OK, so we all know the daily build is the heart beat of a project, but whats the single best way of automating it? </p>
<p>We have perl scripts wrapping our pipeline which includes ClearCase, VS2005 (C++), Intel FORTRAN, Inno setup. We use cron jobs on UNIX to schedule the build, and host a simple Apache web server... | <p>We're in the process of implementing CC.Net. So far it seems like it would fit your model pretty well. </p>
<p>Out of the box it offers automated building, results tracking and notification. I'm not sure how detailed the build-in-progress monitoring is though.</p>
| <p>I know this is a really old question, but it's still coming up in searches, so someone should mention <a href="http://jenkins-ci.org/" rel="nofollow noreferrer">Jenkins</a> - the open source continuation of Hudson.</p>
<p>From the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins" rel="nofollow noref... | 7,731 |
<p>I have a few 3D printers and now want to start building a custom 3D printer.
I want to build a 3D printer with multiple nozzles, and I want to make the hotend thin so the nozzles can be closer together.
What is the thinnest nozzle avalible to buy?
Are there any guides or details on how I could make a custom nozzle o... | <p>The size of the nozzle usually isn't the main factor for how close you can put nozzles together. To keep the filament drive gear system from being the limiting factor, you would need Bowden extruders. "Then, the heat sinks and fans would be your limiting factor. Have you considered a single nozzle with three ... | <p>One of the thinnest hotends I've seen are those from a Chinese factory Mellow Store, the heatsink is smaller than the top flange to mount the hotend. I don't know the quality of these hotends, the image below shows the basic layouts of available options:</p>
<p><a href="https://i.stack.imgur.com/MsvUL.jpg" rel="nofo... | 1,702 |
<p>I am building a medium-sized printer which needs to produce super-precise parts at a moderately fast print time. I frankly don't want to deal with belts or their tension issues but on the other hand, having ball screws on each axis will increase inertia...right?. I'm using Rexroth rails and will use (depending on wh... | <p>The size of the nozzle usually isn't the main factor for how close you can put nozzles together. To keep the filament drive gear system from being the limiting factor, you would need Bowden extruders. "Then, the heat sinks and fans would be your limiting factor. Have you considered a single nozzle with three ... | <p>One of the thinnest hotends I've seen are those from a Chinese factory Mellow Store, the heatsink is smaller than the top flange to mount the hotend. I don't know the quality of these hotends, the image below shows the basic layouts of available options:</p>
<p><a href="https://i.stack.imgur.com/MsvUL.jpg" rel="nofo... | 1,703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.