instruction
stringlengths
27
22.5k
chosen
stringlengths
27
28.2k
rejected
stringlengths
19
24.9k
__index_level_0__
int64
0
10k
<p>I've created a custom list, and made some changes to the way the CQWP renders it on a page by modifying ItemStyle.xsl. However, I'd like to use some custom css classes and therefore I'd like to link to my own custom .css file from the head tag of the pages containing this CQWP.</p> <p>So my question is, where to do...
<p>The microsoft official way is just to copy them into the relevant folders (as seen by downloading their template packs). However, you could also create your own site definition and add the items to the correct libraries and lists in the same way that the master pages are added.</p> <p>If you are going to deploy CS...
<p>Consider uploading them to "Style Library" in the root of the site collection. <p>If you don't have a "Style Library" at the root, consider making one -- it's just a document library. <p>Make sure the permissions are set correctly so everyone who needs to read it can. <p>You can reference them using "/Style%20Librar...
7,712
<p>Is there a pattern using Linq to dynamically create a filter?</p> <p>I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.</p>
<p>Check out the <a href="http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx" rel="noreferrer">Dynamic Linq Library</a> from ScottGu's blog:</p> <p>For example, below is a standard type-safe LINQ to SQL VB query that retrieves data from a Northwind database ...
<p>something like this?</p> <pre><code>var myList = new List&lt;string&gt; { "a","b","c" }; var items = from item in db.Items where myList.Contains(item.Name) select item; </code></pre> <p>that would create a sql statement like</p> <pre><code>SELECT * FROM Items [t0] where Name IN ('a','b','c...
5,074
<p>I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently.</p> <p>I've read the other thread about <a href="https://stackoverflow.com/questions/43500/is-there-a-built-in-method-to-compare-collections-in-c">Enumerable.SequenceEqual</a>, but it's not exactly what ...
<p>It turns out Microsoft already has this covered in its testing framework: <a href="http://msdn.microsoft.com/en-us/library/ms243779.aspx" rel="noreferrer">CollectionAssert.AreEquivalent</a></p> <blockquote> <p>Remarks</p> <p>Two collections are equivalent if they have the same elements in the same quantity, but in a...
<p><a href="https://stackoverflow.com/users/3474/erickson">erickson</a> is almost right: since you want to match on counts of duplicates, you want a <a href="http://commons.apache.org/collections/api-3.1/org/apache/commons/collections/HashBag.html" rel="nofollow noreferrer">Bag</a>. In Java, this looks something like:...
7,273
<p>Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.</p> <ul> <li>What categories of vunerabilities? <ul> <li>crashing site</li> <li>breaking into...
<p>From the <a href="http://www.owasp.org/" rel="nofollow noreferrer">Open Web Application Security Project</a>:</p> <ol> <li>The <a href="http://www.owasp.org/images/e/e8/OWASP_Top_10_2007.pdf" rel="nofollow noreferrer">OWASP Top Ten</a> vulnerabilities (pdf)</li> <li>For a more painfully exhaustive list: <a href="ht...
<p>SQL injection</p>
4,864
<p>I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this? </p>
<p>I found a perfect C# example on dotnet-snippets.com (<em>which doesn't exist anymore</em>). </p> <p>It's 11 lines of code to copy and paste straight into your own application.</p> <pre><code>/// &lt;summary&gt; /// Gets the whois information. /// &lt;/summary&gt; /// &lt;param name="whoisServer"&gt;The whois serve...
<p>Here's the Java solution, which just opens up a shell and runs <code>whois</code>:</p> <pre><code>import java.io.*; import java.util.*; public class ExecTest2 { public static void main(String[] args) throws IOException { Process result = Runtime.getRuntime().exec("whois stackoverflow.com"); Bu...
7,714
<p>I am planning to upgrade my printer with a second extruder. Since my printer is a Tronxy X8 it's frame is not exactly vibration resistant, so I'd like to keep the print head weight down. At the same time I really don't want a Bowden setup.</p> <p>I came up with the idea of making a dual extruder driven only by a sin...
<p>That is perfectly viable these days in Marlin firmware, there are options for setting this up using the configuration file, e.g.:</p> <pre><code>// :[0, 1, 2, 3, 4, 5, 6, 7, 8] #define EXTRUDERS 1 ... ... ... // A dual extruder that uses a single stepper motor //#define SWITCHING_EXTRUDER #if ENABLED(SWITCHING_EXTRU...
<p>You'll need a custom firmware.</p> <p>Yur custom firmware will have to react to the &quot;Change extruder&quot; command differently than a normal firmware: instead of just swapping to a different extruder, you'll need to perform some operations to alter the gearing (possibly a solenoid?), and possibly include some k...
1,806
<p>I cannot generate the upper part of the solid properly which contain a hole (as in the picture). The solid part (bottom section) printed well. </p> <p><a href="https://i.stack.imgur.com/QpBfR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QpBfRm.jpg" alt="enter image description here"></a></p> ...
<p>It appears that the upper part of your print contains less plastic than the lower. This would mean that as the printer begins to operate in that area, the previously deposited plastic has less time to cool.</p> <p>The distortions are difficult to see from the distortions of the photograph, but I've experienced simi...
<p>This can be a product of poor overhang profiles and bridging. Issues with overhanging features can most easily be fixed by:</p> <ul> <li>applying active cooling (for PLA)</li> <li>slowing down your feedrate on outer shells</li> <li>or adjusting some of the more advanced slicing settings related to bridging/overhang...
655
<p>I'm working on a simple ASP.Net page (handler, actually) where I check the value of the LOGON_USER server variable. This works using Visual Studio's built-in web server and it works in other sites deployed to the live intranet site. But it doesn't work on the IIS instance on my local XP machine. How can I fix it,...
<p>What authentication do you have enabled in IIS? Anonmyous, Basic, Digest, Integrated Windows? Sounds to me like anonymous access is enabled/allowed, and nothing else. This would means that LOGON_USER is not populated. </p> <p>When you access your local IIS, trying using <a href="http://127.0.0.1" rel="nofollow ...
<p>In addition to Jon's answer, IIRC even if you have Integrated Authentication enabled, if Anonymous Authentication is enabled it will take precedence...</p>
8,473
<p>I'm using the .NET CF 3.5. The type I want to create does not have a default constructor so I want to pass a string to an overloaded constructor. How do I do this?</p> <p>Code:</p> <pre><code>Assembly a = Assembly.LoadFrom("my.dll"); Type t = a.GetType("type info here"); // All ok so far, assembly loads and I can ...
<pre><code>MyObj o = null; Assembly a = Assembly.LoadFrom("my.dll"); Type t = a.GetType("type info here"); ConstructorInfo ctor = t.GetConstructor(new Type[] { typeof(string) }); if(ctor != null) o = ctor.Invoke(new object[] { s }); </code></pre>
<p>See if this works for you (untested):</p> <pre><code>Type t = a.GetType("type info here"); var ctors = t.GetConstructors(); string s = "Pass me to the ctor of t"; MyObj o = ctors[0].Invoke(new[] { s }) as MyObj; </code></pre> <p>If the type has more than one constructor then you may have to do some fancy footwork ...
4,908
<p>As a long time World of Warcraft player, and a passionate developer I have decided that I would like to combine the two and set about developing some addins. Not only to improve my gameplay experience but as a great opportunity to learn something new.</p> <p>Does anyone have any advice on how to go about starting ...
<p><a href="http://www.wowwiki.com/Getting_started_with_writing_addons" rel="noreferrer">This article</a> explains how to start pretty well.</p> <p>Your first bookmark is possibly the US Interface Forum, especially the Stickies for that:</p> <p><a href="http://us.battle.net/wow/en/forum/1011693/" rel="noreferrer">htt...
<p>Another useful tools you might like is <a href="http://www.codeplex.com/WarcraftAddOnStudio" rel="noreferrer">WarcraftAddOnStudio</a> which lets you make plugins in the visual studio environment.</p>
2,855
<p>How can I create a new database from my C# application?</p> <p>I'm assuming once I create it, I can simply generate a connection string on the fly and connect to it, and the issue all the CREATE TABLE statements.</p>
<p><a href="http://support.microsoft.com/kb/307283" rel="noreferrer">KB307283</a> explains how to create a database using ADO.NET.</p> <p>From the article:</p> <pre><code>String str; SqlConnection myConn = new SqlConnection ("Server=localhost;Integrated security=SSPI;database=master"); str = "CREATE DATABASE MyDatab...
<p>CREATE DATABASE works</p>
6,125
<p>Let's say I'm modeling a simple box with a lid. Just as an example, we'll say the <strong>outer</strong> edge along the top of the box is 50 mm x 50 mm. With 3D modeling software, it's easy to build a lid for this box to surround the top with an <strong>inner</strong> edge size of also exactly 50 mm x 50 mm ...but t...
<p>I use my clearance values according to my rule of thumb: 0.1 mm - to fit with some force, 0.2 mm - just fit edge to edge without force.</p> <p>Examples:</p> <ol> <li><p>3 mm metal cylinder to be pressed into plastic part needs <span class="math-container">$3\ mm+0.1\ mm*2=3.2\ mm$</span> diameter printed hole (clear...
<p>Since you said nozzle, I expect you mean FDM 3d printing. Typically you would use one (1) outline of gap between the parts. An outline is usually equal to the size of the nozzle. The corners of a 3d printed square object are rounded. The radius of that rounding would be half your nozzle diameter (i.e. the nozzle's r...
990
<p>I have seen several postings in forums about the power connector on some ender 3's being bad and causing issues or just burning out, potentially causing a fire.</p> <p>How can I tell if I have the bad power connector?</p>
<p>If you can measure the voltage at the main board where the bed power line is attached, or at the last point in the wiring prior to the connector, then measure the voltage at the bed, you can compare the difference to determine if there is loss related to a failing connector.</p> <p>One certain indication of a faili...
<p>Unless the connector has already started failing - by getting warm, creating a voltage drop, eventually melting away -, you will have to remove the shrink tubing near it. Earlier batches had the connection crimped by the supplier of the cables, which is <strong>wrong</strong>. XT60 connectors should always be solder...
1,540
<p><a href="https://i.stack.imgur.com/tcLgq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tcLgq.jpg" alt="damage" /></a></p> <p><a href="https://i.stack.imgur.com/Hyr7P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hyr7P.jpg" alt="damage" /></a></p> <p>Just got an Ender 3 a wee...
<h1>Your print surface is destroyed</h1> <p>So, you managed to rip off your print surface in the center. Happened to me too. the corners of my scraper were too sharp, cutting the surface. Another time I did pierce the surface with my nozzle. Damage happens. Replacement surfaces for the Ender3 start at about 5 bucks a p...
<p>PETG sticks to the bed much easier than PLA or ABS. I've found it harder to release from the bed. Note this reference indicates PETG can cause bed damage.</p> <p><a href="https://www.matterhackers.com/news/how-to-succeed-when-printing-with-petg-filament#:%7E:text=Other%20Print%20Bed%20Surfaces&amp;text=It%27s%20no...
1,692
<p>For most GUI's I've used, when a control that contains text gets the focus, the entire contents of the control are selected. This means if you just start typing, you completely replace the former contents.</p> <p>Example: You have spin control that is initialized with the value zero. You tab to it and type "1" ...
<p>When I've needed this in the past, I've created subclasses of the components I wanted to add "auto-clearing" functionality too. eg:</p> <pre><code>public class AutoClearingTextField extends JTextField { final FocusListener AUTO_CLEARING_LISTENER = new FocusListener(){ @Override public void focusLost...
<p>The only way I know is to create a FocusListener and attach it to your component. If you want it this FocusListener to be global to all components in your application you might consider using Aspect Oriented Programming (AOP). With AOP is possible to code it once and apply your focus listener to all components insta...
9,197
<p>I want to create a client side mail creator web page. I know the problems of using the mailto action in an html form (not standard, no default mail appication set on the client). But the web page isn't very important, and they don't care very much.</p> <p>The mail created by the mailto action has the syntax:</p> <...
<p>What we used in a projet is a popup window that opens a mailto: link, it is the only way we found to compose a mail within the default mail client that works with all mail clients (at least all our clients used).</p> <pre><code>var addresses = "";//between the speech mark goes the receptient. Seperate addresses wit...
<p>Is there a reason you can't just send the data to a page which handles sending the mail? It is pretty easy to send an email in most languages, so unless there's a strong reason to push it to client side, I would recommend that route.</p>
2,914
<p>I want to practice my skills away from a keyboard (i.e. pen and paper) and I'm after simple practice questions like Fizz Buzz, Print the first N primes.</p> <p>What are your favourite simple programming questions?</p>
<p>I've been working on <a href="http://projecteuler.net/" rel="noreferrer">http://projecteuler.net/</a></p>
<p>Towers of Hannoi is great for practice on recursion.</p> <p>I'd also do a search on sample programming interview questions. </p>
4,982
<p>What's the easiest way to get the filename associated with an open HANDLE in Win32?</p>
<p>There is a correct (although undocumented) way to do this on Windows XP <strong>which also works with directories</strong> -- the same method <a href="http://msdn.microsoft.com/en-us/library/aa364962.aspx" rel="noreferrer">GetFinalPathNameByHandle</a> uses on Windows Vista and later.</p> <p>Here are the eneded decl...
<p>On unixes there is no real way of reliably doing this. In unix with the traditional unix filesystem, you can open a file and then unlink it (remove its entry from the directory) and use it, at which point the name isn't stored anywhere. In addition, because a file may have multiple hardlinks into the filesystem, e...
9,094
<p>What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the <code>Exception</code> object's <code>InnerException</code> and stack trace are preserved. Is there a difference between the following code blocks in the way they handle this?</p> <pre><code>try { ...
<p>The way to preserve the stack trace is through the use of the <code>throw;</code> This is valid as well</p> <pre><code>try { // something that bombs here } catch (Exception ex) { throw; } </code></pre> <p><code>throw ex;</code> is basically like throwing an exception from that point, so the stack trace would...
<p>FYI I just tested this and the stack trace reported by 'throw;' is not an entirely correct stack trace. Example:</p> <pre><code> private void foo() { try { bar(3); bar(2); bar(1); bar(0); } catch(DivideByZeroException) { ...
4,267
<p>As 3D printers become more and more reliable, their prints get better and better. But FDM printers do have their problems too: you print tiny ovals that smooch together at the edges, and infill makes it awkward at times. So, how do I make a 3D-printed die fair (as in: not favoring one side too much)?</p>
<p>This is going to become a 3-step answer, as 3D Printing uses 3 different steps: <em>Design, Slicing &amp; Material choice</em> before I elaborate alternate ways to some fair dice. Yet, we start with the material, as we need to know about it first. In this case it does impact everything from design to slicing and the...
<h2>Honestly, I wouldn't.</h2> <p>You can find dice templates at places like <a href="https://www.thingiverse.com/" rel="nofollow noreferrer">thingiverse</a>, but with my (admittedly limited) experience of affordable 3D printers, I would be highly skeptical that the machine tolerances are up to snuff for producing a f...
721
<p>I'm new with my 3D printer, I just print two different pawn pieces from thingverse. I just used Cura to convert the files to be readable for the printer. Is my problem with the pieces has to do with the configuration from the Cura software? or with my printer itself? </p> <p><a href="https://i.stack.imgur.com/xh3Bi...
<p>That looks like horrible underextrusion. Either the extruder steps/mm are way off, but more likely is that your nozzle is clogged (because I wouldn't expect the steps/mm to be this far off). It's also possible that the temperature you're printing at is inappropriate for the filament you're using. Also, make sure tha...
<p>That looks like horrible underextrusion. Either the extruder steps/mm are way off, but more likely is that your nozzle is clogged (because I wouldn't expect the steps/mm to be this far off). It's also possible that the temperature you're printing at is inappropriate for the filament you're using. Also, make sure tha...
468
<p>I'm trying out <strong>Git on Windows</strong>. I got to the point of trying "git commit" and I got this error:</p> <blockquote> <p>Terminal is dumb but no VISUAL nor EDITOR defined. Please supply the message using either -m or -F option.</p> </blockquote> <p>So I figured out I need to have an environment va...
<p>Update September 2015 (6 years later)</p> <p>The <a href="https://github.com/git-for-windows/git/releases/tag/v2.5.3.windows.1" rel="noreferrer">last release of git-for-Windows (2.5.3)</a> now includes:</p> <blockquote> <p>By configuring <strong><code>git config core.editor notepad</code></strong>, users <a href...
<p>I just use <a href="http://en.wikipedia.org/wiki/TortoiseGit" rel="nofollow noreferrer">TortoiseGit</a> straight out the box. It integrates beautifully with my <a href="http://en.wikipedia.org/wiki/PuTTY" rel="nofollow noreferrer">PuTTY</a> public keys. </p> <p>It has a perfect editor for commit messages.</p>
3,175
<p>How do you go about the requirements gathering phase? Does anyone have a good set of guidelines or tips to follow? What are some good questions to ask the stakeholders? </p> <p>I am currently working on a new project and there are a lot of unknowns. I am in the process of coming up with a list of questions to ask t...
<p>You're almost certainly missing something. A lot of things, probably. Don't worry, it's ok. Even if you remembered everything and covered all the bases stakeholders aren't going to be able to give you very good, clear requirements without any point of reference. The best way to do this sort of thing is to get wh...
<p>I recently started using the concepts, standards and templates defined by the <a href="http://www.theiiba.org" rel="nofollow noreferrer">International Institute of Business Analysts</a> organization (<a href="http://www.theiiba.org" rel="nofollow noreferrer">IIBA</a>). </p> <p>They have a pretty good BOK (Book of K...
4,878
<p>I can't tell from the Python documentation whether the re.compile(x) function may throw an exception (assuming you pass in a string). I imagine there is something that could be considered an invalid regular expression. The larger question is, where do I go to find if a given Python library call may throw exception(s...
<p>Well, <code>re.compile</code> certainly may:</p> <pre><code>&gt;&gt;&gt; import re &gt;&gt;&gt; re.compile('he(lo') Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "C:\Python25\lib\re.py", line 180, in compile return _compile(pattern, flags) File "C:\Python25\lib\re...
<p>Unlike Java, where there are exceptions that must be declared to be raised (and some that don't have to be, but that's another story), any Python code may raise any exception at any time.</p> <p>There are a list of <a href="https://docs.python.org/2.7/library/exceptions.html" rel="nofollow noreferrer">built-in exce...
8,253
<p>I've always used Subversion or CVS for version control, which use a 'merge' methodology. One of my friends raves about Perforce and how great it is with its change lists and check-out methodology.</p> <p>While I'm sure a lot of it comes down to experience &amp; personal preference, I was wondering if any research ...
<p>Merge is more efficient. For the simple reason that changes to the same file simultaneously tends to be common, and merge allows you to recover from that. In contrast, single checkout prevents that little bit of extra work but it does so at the cost of huge inefficiencies in scheduling. Typically it takes a short am...
<p>Not sure about the research, but here's one data point for you:<br> My team chose PVCS (checkout) mostly because of comfort. Doubts about merge and lack of awareness of tools like Subversion definitely contributed to that.</p>
4,882
<p>Take a .Net Winforms App.. mix in a flakey wireless network connection, stir with a few users who like to simply pull the blue plug out occasionally and for good measure, add a Systems Admin that decides to reboot the SQL server box without warning now and again just to keep everyone on their toes.</p> <p>What are ...
<p>Answer depends on type of your application. There are applications that can work offline - Microsoft Outlook for example. Such applications doesn't treat connectivity exceptions as critical, they can save your work locally and synchronize it later. Another applications such as online games will treat communication p...
<p>In our application, we give the user the option to connect to another server, e.g., if the database connection fails, a dialog box displays saying that the server is unavailable, and they could input another IP address to try.</p>
7,197
<p>I'm working on an open source project that uses SQL Server 2005 as the data store. We need a DB compare tool to generate diff scripts to be able to upgrade a DB from one version to another.</p> <p>Is there an open source or free SQL Server DB diff tool out there that generates a convert script?</p>
<p>I think that Open DBiff does a good job. It's simple and I works with SQL Server 2005/2008.</p> <p>But only generate the change script. Nothing more and nothing less.</p>
<p>Hmm, none that I know of. You can always retrieve the definitions as SQL and then run a diff tool on them, but it's a bit of a pain in the rear.</p> <p>Probably the best solution for this is using some kind of "Migrations" tool, so you can keep your database definitions together with your code, and version them, et...
4,280
<p>EditPad Lite has a nice feature (<kbd>CTRL</kbd>-<kbd>E</kbd>, <kbd>CTRL</kbd>-<kbd>I</kbd>) which inserts a time stamp e.g. "2008-09-11 10:34:53" into your code.</p> <p>What is the best way to get this functionality in Vim?</p> <p>(I am using Vim 6.1 on a Linux server via SSH. In the current situation a number of...
<p><a href="http://kenno.wordpress.com/2006/08/03/vim-tip-insert-time-stamp/" rel="noreferrer">http://kenno.wordpress.com/2006/08/03/vim-tip-insert-time-stamp/</a></p> <p>Tried it out, it works on my mac:</p> <pre><code>:r! date </code></pre> <p>produces:</p> <pre><code>Thu Sep 11 10:47:30 CEST 2008 </code></pre> ...
<p>Another quick way not included by previous answers: type-</p> <p>!!date</p>
7,993
<p>My MakerBot 2 jams after a couple hours of prints. It is a couple months old, and the tip stops extruding after a couple straight hours of prints. I am guessing that there is a design flaw and that the media is melting inside the extruder before the feeding teeth. Does anyone have experience with this?</p>
<p>You may wish to consider <a href="https://craftunique.com/craftware" rel="nofollow">Craftware</a> for your purposes. It's a free program in beta form that does provide a tool-path animation for printing the layers. It is not so much specific to a printer as it is configurable for your own requirements. <a href="http...
<p>I'm using <a href="http://www.mattercontrol.com" rel="nofollow">MatterControl</a> and it has such visualization. User can see synchronized animation which shows how the object is actually printed and user is able to see each path of filament put onto the layer.</p> <p>It's possible to control starting and ending po...
270
<p>I want to combine two structures with differing fields names.</p> <p>For example, starting with:</p> <pre><code>A.field1 = 1; A.field2 = 'a'; B.field3 = 2; B.field4 = 'b'; </code></pre> <p>I would like to have:</p> <pre><code>C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b'; </code></pre> <p>Is there...
<p>Without collisions, you can do </p> <pre><code>M = [fieldnames(A)' fieldnames(B)'; struct2cell(A)' struct2cell(B)']; C=struct(M{:}); </code></pre> <p>And this is reasonably efficient. However, <code>struct</code> errors on duplicate fieldnames, and pre-checking for them using <code>unique</code> kills performance ...
<p>In C, a struct can have another struct as one of it's members. While this isn't exactly the same as what you're asking, you could end up either with a situation where one struct contains another, or one struct contains two structs, both of which hold parts of the info that you wanted.</p> <p>psuedocode: i don't re...
5,956
<p>Is it a deliberate design decision or a problem with our current day browsers which will be rectified in the coming versions?</p>
<p>JavaScript does not support multi-threading because the JavaScript interpreter in the browser is a single thread (AFAIK). Even Google Chrome will not let a single web page’s JavaScript run concurrently because this would cause massive concurrency issues in existing web pages. All Chrome does is separate multiple com...
<p>Multi-threading with javascript is clearly possible using webworkers bring by HTML5.</p> <p>Main difference between webworkers and a standard multi-threading environment is memory resources are not shared with the main thread, a reference to an object is not visible from one thread to another. Threads communicate b...
6,104
<p>I am attempting to construct model tank tracks with accompanying wheels and sprockets. All parts will be printed in PLA. The tracks will be driven by electric motors.</p> <p>What would be a suitable grease for this project to minimize friction without damaging the plastics.</p>
<p>I use cosmetic vaseline - <a href="https://en.wikipedia.org/wiki/Petroleum_jelly" rel="noreferrer">petroleum jelly</a>. Usually it is white to transparent and odorless. It's cheap and available in all drugstores and cosmetics stores.</p> <p>As suggested by Tom van der Zanden I'm adding additional info about interac...
<p>I have been using <em>sewing machine oil</em> for my 3D printed extruder gear for a couple of years, without any noticeable wear so far.</p> <p>In general, I believe any kind of low viscosity oil would do, but then again, it also depends on the environment in which you plan to use the model. If you plan on using it...
298
<p>In unmanaged C/C++ code, what are the best practices to detect memory leaks? And coding guidelines to avoid? (As if it's that simple ;)</p> <p>We have used a bit of a silly way in the past: having a counter increment for every memory allocation call and decrement while freeing. At the end of the program, the counte...
<p>If your C/C++ code is portable to *nix, few things are better than <a href="http://valgrind.org/info/about.html" rel="noreferrer">Valgrind</a>.</p>
<p><a href="http://en.wikipedia.org/wiki/Mtrace" rel="nofollow noreferrer">Mtrace</a> appears to be the standard built-in one for linux. The steps are :</p> <ol> <li>set up the environment variable MALLOC_TRACE in bash<br> <i>MALLOC_TRACE=/tmp/mtrace.dat</i><br> <i>export MALLOC_TRACE;</i></li> <li>Add <i>#include &l...
6,760
<p>I am an art rubber stamp maker, using a vulcanizer to make art rubber stamps from molds that are usually created with a magnesium plate. </p> <p>The normal process is to send artwork off to an engraving firm to acid etch the magnesium plate (11 pt depth is desired) and that metal plate is then used with uncured ma...
<p>This would likely not work. ABS has a <em>glass transition</em> temperature of 105&nbsp;°C. It doesn't have <em>a</em> melting point because it's amorphous. Rather, as you heat the part up, it gradually transitions from a solid to a viscous liquid, but there is no "hard" transition from solid to molten at one partic...
<p>I don't know if I understood your question properly. You using the mold to create a rubber stamp and then you use that to stamp over stuff? If so, you simply can use 3D printing to create the stamp, if not, my answer is rubbish. </p> <p>You can use a flex material to create the stamp itself and then use some hard m...
675
<p>What do search engine bots use as a starting point? Is it DNS look-up or do they start with some fixed list of well-know sites? Any guesses or suggestions?</p>
<p>Your question can be interpreted in two ways:</p> <p>Are you asking where search engines start their crawl from in general, or where they start to crawl a particular site?</p> <p>I don't know how the big players work; but if you were to make your own search engine you'd probably seed it with popular portal sites. ...
<p>You can submit your site to search engines using their <a href="http://www.google.com/addurl/" rel="nofollow noreferrer">site submission forms</a> - this will get you into their system. When you actually get crawled after that is impossible to say - from experience it's usually about a week or so for an initial craw...
6,271
<p>So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks like this:</p> <pre><code>myoldObject = new MyObject { someValue = "old value" }; cache.Insert("myObjectKey", myoldObject); myNewObject = cache.Get("myObjectKey"); myNewObject.someValue = "new value"; if(myObject.someValue != cache.Get...
<p>Dirty tracking is the normal way to handle this, I think. Something like:</p> <pre><code>class MyObject { public string SomeValue { get { return _someValue; } set { if (value != SomeValue) { IsDirty = true; _someValue = value; } } public bool IsDirty { get; ...
<p>I've done similar things, but I got around it by cloning too. The difference is that I had the cache do the cloning. When you put an object into the cache, the cache will clone the object first and store the cloned version (so you can mutate the original object without poisoning the cache). When you get an object fr...
5,352
<p>What is the the best JavaScript compressor available? I'm looking for a tool that:</p> <ul> <li>is easy to use</li> <li>has a high compression rate</li> <li>Produce reliable end results (doesn't mess up the code)</li> </ul>
<p>I recently released <a href="http://github.com/mishoo/UglifyJS" rel="noreferrer">UglifyJS</a>, a JavaScript compressor which is written in JavaScript (runs on the NodeJS <a href="http://en.wikipedia.org/wiki/Nodejs" rel="noreferrer">Node.js</a> platform, but it can be easily modified to run on any JavaScript engine,...
<p><a href="http://blog.madskristensen.dk/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx" rel="nofollow noreferrer">Here's the source code</a> of an HttpHandler which does that, maybe it'll help you</p>
4,857
<p>I have got a problem that after upgrading my printer to an aluminum frame my extruder went from around 400 steps per mm at 16 micro steps (which did match the manufacturer's recommendation perfectly) to a bit over 1000 steps per mm at 16 micro steps.</p> <p>This is a problem for me, since the limited amount of steps...
<p>Ok, thanks everyone for at least taking time to read or thinking about this.</p> <p>The Problem is an absolute mess and there are two possible reasons:</p> <p>-> the octoprint eeprom editor is broken</p> <p>-> the ATMega2560's eeprom is broken. as far as i know companies buy used atmegas to cheapen the price and ...
<p>After a rebuild, and certainly after changing to another extruder (e.g. replacing it by a geared extruder like you supposedly did as taken from the comments above before the edit, which now clearly is not the case) or setup e.g. other stepper drivers, you should always calibrate the extruder. </p> <p>To calibrate y...
935
<p>I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in Flash using AS3</p> <p>I'm sure it'll be a right pain...</p> <p>I have no idea where to start, can anyone offer any pointers? reference material?</p> <p>----much later--- Thank you all very much for your input... It seems I have a lon...
<p>See <a href="http://lame.sourceforge.net/" rel="nofollow noreferrer">LAME MP3 Encoder</a>. You can checkout their source code and their <a href="http://lame.sourceforge.net/links.php" rel="nofollow noreferrer">link page</a>. <a href="http://www.mpeg.org/" rel="nofollow noreferrer">Mpeg.org</a> should have documents ...
<p>It's going to be <strong>VERY</strong> slow doing this in AS3. You really need a C/C++ implementation if you care at all about how long it will take.</p>
7,684
<p>I'm an <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="noreferrer">ASP.NET</a> developer who has used <code>Microsoft SQL Server</code> for all my database needs (both at work and for personal projects). </p> <p>I am considering trying out the <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29" re...
<p>One thing you have to watch out for is the fairly severe differences in the way SQL&nbsp;Server and MySQL implement the SQL syntax.</p> <p>Here's a nice <a href="http://troels.arvin.dk/db/rdbms/" rel="noreferrer">Comparison of Different SQL Implementations</a>.</p> <p>For example, take a look at the top-n section....
<p>Spending some time working with MySQL from the MSSQL to MySQL syntax POV I kept finding myself limited in what I could do.</p> <p>There are bizzare limits on updating a table while refrencing the same table during an update.</p> <p>Additionally UPDATE FROM does not work and last time I checked they don't support t...
3,182
<p>How to implement Repository pattern withe LinqToEntities how to implement the interface </p>
<p>At first one might think that reads and writes of the native machine size are atomic but there are a number of issues to deal with including cache coherency between processors/cores. Use atomic operations like Interlocked* on Windows and the equivalent on Linux. C++0x will have an "atomic" template to wrap these i...
<p>The only portable way is to use the sig_atomic_t type defined in signal.h header for your compiler. In most C and C++ implementations, that is an int. Then declare your variable as "volatile sig_atomic_t."</p>
7,780
<p>Before I start, I'll give you my setup:</p> <ul> <li>Ender 3 Pro</li> <li>Marlin 2.0.7.2</li> <li>Material/Nozzle: PETG 0.4 mm @ 215 °C</li> <li>Bed: Glass @ 80 °C</li> <li>Default printing speed: 70 mm/s</li> <li>Standard part cooling fan</li> </ul> <p>Since I've updated the Marlin FW on from factory default to 2.0...
<p>It turned out, it was a faulty heater, that wasn't able to reach and maintain temperatures over 195 °C in a stable manner. The order came, had a new 50 W heater, thermistor and a PTFE-Bowden tube. It works just fine again, now!</p>
<p>Wrap all the heat system (above nozzle) with heat tape. I solved my problem with this!</p>
1,803
<p>Is there a graceful way to handle passing a list of ids as a parameter to a stored procedure? </p> <p>For instance, I want departments 1, 2, 5, 7, 20 returned by my stored procedure. In the past, I have passed in a comma delimited list of ids, like the below code, but feel really dirty doing it. </p> <p>SQL Server...
<p>Erland Sommarskog has maintained the authoritative answer to this question for the last 16 years: <em><a href="http://www.sommarskog.se/arrays-in-sql.html" rel="noreferrer">Arrays and Lists in SQL Server</a></em>.</p> <p>There are at least a dozen ways to pass an array or list to a query; each has their own unique ...
<p>You could use XML. </p> <p>E.g. </p> <pre><code>declare @xmlstring as varchar(100) set @xmlstring = '&lt;args&gt;&lt;arg value="42" /&gt;&lt;arg2&gt;-1&lt;/arg2&gt;&lt;/args&gt;' declare @docid int exec sp_xml_preparedocument @docid output, @xmlstring select [id],parentid,nodetype,localname,[text] from ...
6,484
<p>I am using an ASP.NET MVC project and everytime I add a class to a folder it makes really long namespaces. </p> <p><strong>Example</strong>: </p> <pre><code>Project = Tully.Saps.Data Folder = DataAccess/Interfaces Namespace = Tully.Saps.Data.DataAccess.Interfaces Folder = DataAccess/MbNetRepositories Names...
<p>Leave them alone and add the usings. You're asking for trouble manually changing things like that (harder to debug, inconsistent with other projects, et cetera).</p>
<p>It is really up to you how you want to deal with it. If you are only going to be accessing a member of a namespace once or twice, then adding the "using" statement really doesn't do much for you. </p> <p>If you are going to use it multiple times then reducing the namespace chain is probably going to make things eas...
9,213
<p>I have an Ender 3 and I have a problem with auto home. I use auto home and then level the bed with the wheels beneath the bed. I then start a print and the first layer is well above the bed. Perhaps about a millimeter. If I stop the print at this point and level the bed so that the first layer prints the normal pape...
<p>It sounds like there’s two things that could be going wrong here:</p> <ol> <li><p>Your starting G-code has some code in it that’s making it think that you want to treat a few layers up as <code>Z0</code>. If I were you I would minimize the start G-code until you get this sorted out. A quick fix would Be to add the f...
<p>The Z stop can be loosened and moved up but it seems weird that it would need to be moved and I don't think that would fix your issue. The Z height should be the same for the auto home and printing. I auto home then disable steppers and slowly move to all 4 corners. I have caught myself resting my arm on the X axis ...
1,612
<p>Is there a way to check to see if an iPhone is online from a web app. That is, in mobile Safari, can I check the online status of the device to see if I should try an AJAX call or not.</p> <p>In Firefox/regular WebKit, this would be:</p> <pre><code>if(navigator.onLine) { onlineCode() } </code></pre>
<p>That same code should work in the WebKit nightly build as of May 16th 2008. I guess that means you need to hope the 2.1 update included a new build of safari.</p> <p><a href="https://bugs.webkit.org/show_bug.cgi?id=19105" rel="nofollow noreferrer">https://bugs.webkit.org/show_bug.cgi?id=19105</a></p>
<p>That same code should work in the WebKit nightly build as of May 16th 2008. I guess that means you need to hope the 2.1 update included a new build of safari.</p> <p><a href="https://bugs.webkit.org/show_bug.cgi?id=19105" rel="nofollow noreferrer">https://bugs.webkit.org/show_bug.cgi?id=19105</a></p>
9,201
<p>I have a query that is dynamically built after looking up a field list and table name. I execute this dynamic query inside a stored proc. The query is built without a where clause when the two proc parameters are zero, and built with a where clause when not.</p> <p>When I execute the proc with SET FMTONLY ON...
<p>Perhaps it is related to the fact that the passed parameters are NULL, check how your query is build perhaps it behaves in different way then expected when you pass NULL. Does you proc returns expected results when you call: SET FMTONLY OFF exec [cpExportRecordType_ListByExportAgentID] null, null ?</p> <p>Othe...
<p>Perhaps it is related to the fact that the passed parameters are NULL, check how your query is build perhaps it behaves in different way then expected when you pass NULL. Does you proc returns expected results when you call: SET FMTONLY OFF exec [cpExportRecordType_ListByExportAgentID] null, null ?</p> <p>Othe...
9,780
<p>So, I'm pretty new to 3D Printing, and to quote Spock from <em>Wrath of Khan</em> I would say &quot;He is intelligent, but not experienced&quot;. Now everything I have been reading about Z-offset seems to talk about a 0.2 mm gap and using a piece of paper.</p> <p>Wishing to be accurate, I have tried to use my 0.2 mm...
<p>They are all generic guidelines. Don't count on them too much.</p> <p>What you need is a reproducible offset to get the same value everywhere in the bed, then you can correct the overall offset via gcode at the beginning of your print.</p> <p>You can also get an approximate Z-offset value, then print a solid 30x30x5...
<p>Measuring a gap with paper is just a rule of thumb. Personally I didn't measure anything, I've just made sure my bed is level and adjusted z-offset bit by bit until I was satisfied with the results. I couldn't tell you how wide the gap is.</p> <p>On the other note you might not have to reconfigure your Marlin. You m...
1,856
<p>I'm a front-end developer and I was looking for opinions about the best all-round online documentation for javascript/css/html/xhtml/dom/browser quirks and support. I've tried Sitepoint, Quirksmode, W3Schools but all of these seem to be lacking in certain aspects and have been using them in combination.</p>
<p>I like <strike>gotapi.com</strike> (Update 2: Site is apparently offline -- Use another resource such as <a href="https://developer.mozilla.org/en-US/" rel="nofollow noreferrer">MDN</a>)</p> <p><strong>Update:</strong> the original answer was from 2008 -- today I would say to check out <a href="https://developer.mo...
<p>I tend to go to <a href="http://msdn.microsoft.com/" rel="nofollow noreferrer">http://msdn.microsoft.com/</a> first.</p>
8,938
<p>I'm new to SVN and I'd like to know what methods are available for backing up repositories in a Windows environment?</p>
<p>You could use something like (Linux):</p> <pre><code>svnadmin dump repositorypath | gzip &gt; backupname.svn.gz </code></pre> <p>Since Windows does not support GZip it is just:</p> <pre><code>svnadmin dump repositorypath &gt; backupname.svn </code></pre>
<p>as others have said, hot-backup.py from the Subversion team has some nice features over just plain <code>svnadmin hotcopy</code></p> <p>I run a scheduled task on a python script that spiders for all my repositories on the machine, and uses hotbackup to keep several days worth of hotcopies (paranoid of corruption) a...
5,302
<p>I'm exploring the possibility of writing an application in Erlang, but it would need to have a portion written in Cocoa (presumably Objective-C). I'd like the front-end and back-end to be able to communicate easily. How can this best be done?</p> <p>I can think of using C ports and connected processes, but I think ...
<p>One way would be to have the Erlang core of the application be a daemon that the Cocoa front-end communicates with over a Unix-domain socket using some simple protocol you devise.</p> <p>The use of a Unix-domain socket means that the Erlang daemon could be launched on-demand by <code>launchd</code> and the Cocoa fr...
<p>Usually when creating Cocoa applications that front UNIX commands or other headless programs you use an <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSTask_Class/Reference/Reference.html" rel="nofollow noreferrer"><code>NSTask</code></a>:</p> <blockquote> <p>Using the NSTask c...
5,805
<p>Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.</p>
<p>Have you tried adding the word &quot;VB&quot; to your searches??</p> <p><a href="http://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx" rel="nofollow noreferrer">http://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx</a></p> <p><a href="http://www.asp.net/learn/mvc/tutorial-07-vb.aspx" rel="nofollow nor...
<p><a href="http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx" rel="nofollow noreferrer">http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx</a></p> <p>Is that relevant?</p>
5,262
<p>Is it possible to launch a new window in JavaScript using the window.Open function, then set the focus to that tab?</p> <p>Here's what I'm doing today: <code></p> <pre> var winRef = window.open(outUrl,wName,'left='+ wX +',top=' + wY + ',height=' + wH + ',width=' + wW + args); try { ...
<p>Jay,</p> <p>You are seeing designed behavior. To limit opportunities for malicious behavior, scripts running in tabbed windows cannot affect other tabs.</p> <p>For more information, please see Tabbed Browsing for Developers at <a href="http://msdn.microsoft.com/en-us/library/ms537636.aspx" rel="nofollow noreferre...
<p>As a user, I never want applications (or tabs) to take focus unless I specifically requested it. I have gone to great lengths to prevent tabs in my browser (Firefox) from taking focus for this reason. </p>
9,855
<p>I'm wondering if there's a way to do what I can do below with Python, in Ruby:</p> <pre><code>sum = reduce(lambda x, y: x + y, map(lambda x, y: x * y, weights, data)) </code></pre> <p>I have two arrays of equal sizes with the weights and data but I can't seem to find a function similar to map in Ruby, reduce I hav...
<p>@Michiel de Mare</p> <p>Your Ruby 1.9 example can be shortened a bit further:</p> <pre><code>weights.zip(data).map(:*).reduce(:+) </code></pre> <p>Also note that in Ruby 1.8, if you require ActiveSupport (from Rails) you can use:</p> <pre><code>weights.zip(data).map(&amp;:*).reduce(&amp;:+) </code></pre>
<p>An alternative for the map that works for more than 2 arrays as well:</p> <pre><code>def dot(*arrays) arrays.transpose.map {|vals| yield vals} end dot(weights,data) {|a,b| a*b} # OR, if you have a third array dot(weights,data,offsets) {|a,b,c| (a*b)+c} </code></pre> <p>This could also be added to Array:</p> ...
2,546
<p>I have an unusual situation in which I need a SharePoint timer job to both have local administrator windows privileges and to have <code>SHAREPOINT\System</code> SharePoint privileges.</p> <p>I can get the windows privileges by simply configuring the timer service to use an account which is a member of local admini...
<p>I'm not at work so this is off the top of my head, but: If you get a reference to the Site, can you try to create a new SPSite with the SYSTEM-UserToken?</p> <pre><code>SPUserToken sut = thisSite.RootWeb.AllUsers["SHAREPOINT\SYSTEM"].UserToken; using (SPSite syssite = new SPSite(thisSite.Url,sut) { // Do what ...
<p>Other applications if run this way (i.e. from a timer job with explicit credentials) are failing the same way with "The application failed to initialize propely". I just worte a simple app which takes a path of another executable and its arguments as parameres and when run from that timer job it fails the same way.<...
2,578
<p>Has anyone tried the steel-reinforced polyurethane timing belts? If so, how do they compare to the rubber ones?</p>
<p>Belts come in several formulations. This <a href="https://www.mcmaster.com/#belts/=1e9qsqj" rel="noreferrer">page</a> from McMaster-Carr lists several types of belts. The main materials (rubbers) are Neoprene and urethane, with fiberglass, Kevlar, and steel reinforcement. I would suggest spending some time lookin...
<p>I had really bad problems with GT2 PU belts (including steel reinforced), under big tension they degrade suddenly with big change in the geometry at some position. When removed they look twisted. Looks like some reinforcing wires slipped inside the PU body of the belt.</p> <p>Once switched to rubber GT2 belts (fibre...
1,007
<p>I have a WCF Web Service which is referenced from a class library. After the project is run, when creating the service client object from inside a class library, I receive an InvalidOperationException with message:</p> <blockquote> <p>Could not find default endpoint element that references contract 'MyServiceRe...
<blockquote> <p>Here is my app.config file of the class library:</p> </blockquote> <p>You should put this configuration settings to main app's config file. .NET application (which is calling your class library) uses data from it's own config file not from your library config file.</p>
<p>It would probably help if you posted your app.config file, since this kind of error tends to point to a problem in the <code>&lt;endpoint&gt;</code> block. Make sure the contract attribute seems right to you.</p> <p>Edit: Try fully qualifying your contract value; use the full namespace. I think that is needed.</p...
4,464
<p>I can easily set breakpoints in embedded JS functions, but I don't see any way of accessing external JS scripts via Firebug unless I happen to enter them during a debug session. Is there a way to do this without having to 'explore' my way into the script?</p> <p>@Jason: This is a good point, but in my case I do not...
<p>Place <code>debugger;</code> in your external script file on the line you want to break on.</p>
<p>After you place a break point in them, you can also call them by name in the firebug console, and see the output of (or step through) any intermediate functions. This can help when the main entry point calls many other helper functions, and you are really just concerned with how these helpers are working.</p> <p>T...
5,259
<p>I am new to 3D printing. I have a Longer LK5 Pro. I was making a part that has raised letters, and wanted to have white letters on the black part. I used a Post Processing script on the Cura program called &quot;change filament&quot;, which is supposed to stop printing, retract the head, and allow you to change the ...
<p>I've done it a few ways depending on the desired effect I'm after.</p> <p>Manually pausing the machine is what seems to come out best. If you design for it, you can sometimes have it pause while it's over infill and therefore has no blobs to worry about. I haven't looked into doing it automatically, but perhaps it's...
<p>I found that raised letters look and work better when picked-out using paint or permanent marker.</p> <p>Print your lettering in your part but don't even bother changing filament. Instead carefully use a marker pen or paint brush to colour in the top of the lettering. Depending on the paint you might choose to do...
2,213
<p>I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having a strange issue I can't get to the bottom of. Essentially, the first time I log into the app after a period of inactivity (the app is deployed in production, but only being used by me), I will be brought to a 404 page, but if I g...
<p>Please check your routes.</p> <p>Not all routes are created equally. Routes have priority defined by the order of appearance of the routes in the config/routes.rb file. The priority goes from top to bottom. The last route in that file is at the lowest priority and will be applied last. If no route matches, <strong>...
<p>I'm using a slightly modified version of that plugin so I'm not 100% sure that this will be the same for you, but for me the default is to redirect to the root path, or the page you were trying to get to if there is one. (check your lib/authenticated_system.rb to see your default) If you don't have map.root define...
5,989
<p>How to serve users a dynamically generated ZIP archive in Django?</p> <p>I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server down to a crawl. I have also heard that Django doesn...
<p>The solution is as follows.</p> <p>Use Python module <a href="https://docs.python.org/3/library/zipfile.html" rel="noreferrer">zipfile</a> to create zip archive, but as the file specify <a href="https://docs.python.org/3/library/io.html#io.StringIO" rel="noreferrer">StringIO</a> object (ZipFile constructor requires...
<p>Can't you just write a link to a "zip server" or whatnot? Why does the zip archive itself need to be served from Django? A 90's era CGI script to generate a zip and spit it to stdout is really all that's required here, at least as far as I can see.</p>
9,299
<p>This gets the value of whatever is selected in my dropdown menu.</p> <pre><code>document.getElementById('newSkill').value </code></pre> <p>I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at <a href="http://w3schools.com/"...
<p>Based on your example HTML code, here's one way to get the displayed text of the currently selected option:</p> <pre><code>var skillsSelect = document.getElementById("newSkill"); var selectedText = skillsSelect.options[skillsSelect.selectedIndex].text; </code></pre>
<pre><code> var ele = document.getElementById('newSkill') ele.onchange = function(){ var length = ele.children.length for(var i=0; i&lt;length;i++){ if(ele.children[i].selected){alert(ele.children[i].text)}; } } </code></pre>
2,779
<p>When an application is behind another applications and I click on my application's taskbar icon, I expect the entire application to come to the top of the z-order, even if an app-modal, WS_POPUP dialog box is open.</p> <p>However, some of the time, for some of my (and others') dialog boxes, only the dialog box come...
<p>I know this is very old now, but I just stumbled across it, and I know the answer.</p> <p>In the applications you've seen (and written) where bringing the dialog box to the foreground did <strong>not</strong> bring the main window up along with it, the developer has simply neglected to specify the owner of the dial...
<p>Is the dialog's parent window set correctly?</p> <p>After I posted this, I started my own Windows Forms application and reproduced the problem you describe. I have two dialogs, one works correctly the other does not and I can't see any immediate reason is to why they behave differently. I'll update this post if I f...
7,410
<p>Right now my heated bed is down and I had no time to try and fix it and I am trying to print something for a friend. I am having the PLA lift around the edges which I have NEVER experienced. The glue is not helping like it did with the heat. And I also tried rubbing alcohol on the masking tape I use, heard that help...
<p>Most of the same reccomendations that apply for adhesion to a hot bed apply for a cold one. The first ones to come to mind:</p> <ul> <li>really dial in the nozzle height</li> <li>make the first layer taller than the rest (e.g.: 0.2mm if the rest of your print is 0.1mm)</li> <li>print the first layer very slowly</l...
<p><strong>Fresh</strong> 3M blue painter’s tape coated in a watered down solution of Elmer’s white glue works wonders - even when cold - for PLA.</p> <p>The tape needs to be re-applied and coated for each print for it to <strong>really</strong> stick, but it beats every other print surface I have tested for PLA other...
824
<p>A 3D printer needs to be homed (homing) before the print starts.</p> <ul> <li>What is homing?</li> <li>What is the purpose of homing?</li> <li>Is it necessary?</li> </ul>
<blockquote> <ul> <li>What is homing?</li> </ul> </blockquote> <p>From the <a href="https://3dprinting.stackexchange.com/tags/homing/info">tag wiki</a> <a href="/questions/tagged/homing" class="post-tag" title="show questions tagged &#39;homing&#39;" rel="tag">homing</a> we can read:</p> <blockquote> <p>The process of ...
<p>Most 3d printers control head position using stepper motors and end stops with no position feedback. The stepper motor does not actually know its location.</p> <p>The printer's control system can only know the location of the head by keeping track of the relative number of steps the head has been moved by the stepp...
2,059
<p>Does anybody here have positive experience of working with MS SQL Server 2005 from Rails 2.x?</p> <p>Our developers use Mac OS X, and our production runs on Linux. For legacy reasons we should use MS SQL Server 2005.</p> <p>We're using ruby-odbc and are running into various problems, too depressing to list here....
<p>Have you considered using JRuby? Microsoft has a <a href="http://msdn.microsoft.com/en-us/data/aa937724.aspx" rel="nofollow noreferrer">JDBC driver for SQL Server</a> that can be run on UNIX variants (it's pure Java AFAIK). I was able to get the 2.0 technology preview working with JRuby and Rails 2.1 today. I haven'...
<p>I would strongly suggest you weigh up migrating from the legacy database. You'll probably find yourself in a world of pain pretty quickly. From experience, Rails and legacy schemas don't go too well together either.</p> <p>I don't think there's a "nice solution" to this one, I'm afraid.</p>
9,272
<p>I did calibrate the extruder to extrude exactly 50/100 mm and it is fine. I have replaced the old (prehistorical) extruder that was giving me the problem with a new one. The issue does not go away. It is severely under extruded. The nozzle is a 0.4 mm, if I extrude manually the extrusion is nice and clean but when p...
<p>Assuming your filament dimension settings are correct and your extruder is correctly calibrated...</p> <p><strong>Your extruder temperature may be too low.</strong> While 184C can be hot enough, it is very near the bottom of the range for PLA and it appears your filament isn't melting quickly enough to keep up wit...
<p>Looks to me like you have your slicer set to 3mm filament when you're using 1.75mm filament. Confirm that your slicer has its filament setting set to 1.75mm and not 3mm (this obviously assumes you are using 1.75mm filament..)</p> <p>Failing this:</p> <ul> <li>Test extruder steps/mm</li> <li>Ensure nozzle diameter ...
407
<p>I would like to do full-text searching of data in my Ruby on Rails application. What options exist?</p>
<p>There are several options available and each have different strengths and weaknesses. If you would like to add full-text searching, it would be prudent to investigate each a little bit and try them out to see how well it works for you in your environment.</p> <p>MySQL has built-in support for full-text searching. ...
<p>I've been compiling a <a href="https://stackoverflow.com/questions/73527/whats-the-best-option-for-searching-in-ruby-on-rails">list of the various Ruby on Rails search options in this other question</a>. I'm not sure how, or if to combine our questions.</p>
6,990
<p>So I'm getting really sick of E*TRADE and, being a developer, would love to find an online broker that offers an API. It would be great to be able to write my own trading tools, and maybe even modify existing ones.</p> <p>Based on my research so far, I've only found one option. Interactive Brokers offers a multi-la...
<p>I vote for IB(Interactive Brokers). I've used them in the past as was quite happy. Pinnacle Capital Markets trading also has an API (pcmtrading.com) but I haven't used them.</p> <p><strong>Interactive Brokers:</strong></p> <p><a href="https://www.interactivebrokers.com/en/?f=%2Fen%2Fsoftware%2Fibapi.php" rel="nore...
<p>Only related with currency trading (Forex), but many Forex brokers are offering MetaTrader which let you code in MQL. The main problem with it (aside that it's limited to Forex) is that you've to code in MQL which might not be your preferred language.</p>
8,390
<p>How do I store binary data in <a href="http://en.wikipedia.org/wiki/MySQL" rel="noreferrer">MySQL</a>?</p>
<p>The answer by phpguy is correct but I think there is a lot of confusion in the additional details there.</p> <p>The basic answer is in a <code>BLOB</code> data type / attribute domain. <strong>BLOB</strong> is short for Binary Large Object and that column data type is specific for handling binary data.</p> <p>See...
<p>The question also arises how to get the data into the BLOB. You can put the data in an INSERT statement, as the PHP example shows (although you should use <a href="http://www.php.net/mysql-real-escape-string" rel="noreferrer">mysql_real_escape_string</a> instead of addslashes). If the file exists on the database ser...
2,237
<p>Can I use <a href="http://struts.apache.org/" rel="nofollow noreferrer">Struts</a> as a backend and PHP as front end for a web application? If yes, what may be the implications.</p>
<p>The first thing to came to mind is <a href="http://www.caucho.com/resin-3.0/quercus/" rel="nofollow noreferrer">Quercus</a> (from the makers of the Resin servlet engine), as Jordi mentioned. It is a Java implementation of the PHP runtime and purportedly allows you to access Java objects directly from your PHP (part ...
<p>What do you mean by backend and and frontend?</p> <p>If you mean using Java for the admin side of your site and PHP for the part that the public will see then there is nothing stopping you.</p> <p>The implications are that you will have to maintain two applications in different languages.</p>
5,995
<p>It's criminal how wasteful the Stratsys uPrint SE Plus is with it's 'one use' modelling bases. Is there a reliable way to re purpose them? I have tried ethanol and acetone, but not had any luck. </p>
<p>People have done quite a bit of experimenting with reusing Mojo build plates over the years. The uPrint is likely similar. Basically a different adhesion layer is placed on the bed that has easier release. BuildTak has been used successfully. Gluestick or hairspray such as Aquanet will work and are water soluble for...
<p>By oversight in training, the operators of one of our UPrint SE Plus printers was simply placing the tray in the bath with the printed part. After it was in the bath, all support material was removed and they dried and reused the tray. This process was used for months before it was discovered, and they used the sa...
337
<p>How can i add a line break to the text area in a html page? i use VB.net for server side coding.</p>
<p>If it's not vb you can use <code>&amp;#013;&amp;#010;</code> (ascii codes for cr,lf)</p>
<p>I believe this will work:</p> <pre><code>TextArea.Text = "Line 1" &amp; vbCrLf &amp; "Line 2" </code></pre> <p>System.Environment.NewLine could be used in place of vbCrLf if you wanted to be a little less VB6 about it.</p>
9,232
<p>I'm having a lot of trouble printing polypropylene right now, and I think it may have to do with the conditions. I'm using a very thin coat of ABS on the base plate (just as you would do when printing with ABS) in order to promote sticking.</p> <p>In this following first picture, I attempted with a 240°C tip and a ...
<p>Polypropylene CAN be printed with excellent results, you just need a good filament roll and good printing setup. A few days ago I read this topic and was kind of afraid of testing it, now I am so happy I tried it.</p> <p>I am printing the PP filament from the brand Smart Materials 3D (search on google).</p> <p>I a...
<p>First picture clearly shows that temperature was too hight, second one suggests too small extruding speed (too little) which is connected to your printing speed.</p> <p>35mm/s is quite slow :)</p>
245
<p>How do you customize the Copy/Paste behavior in Visual Studio 2008?</p> <p>For example I create a new <code>&lt;div id="MyDiv"&gt;&lt;/div&gt;</code> and then copy and paste it in the same file.</p> <p>VisualStudio pastes <code>&lt;div id="Div1"&gt;&lt;/div&gt;</code> instead of the original text I copied.</p> <p...
<p>Go into Tools > Options > Text Editor > HTML > Miscellaneous and uncheck "Auto ID elements on paste in Source view"</p>
<p>In Visual Studio 2019 the new location is<br /> <code>Tools &gt; Text Editor &gt; ASP.NET Web Forms</code><br /> and Check <code>Format HTML on paste</code>.<br /> So now it is possible to efficiently duplicate sequential ID codes.</p>
9,280
<p>Recycling a Robin Nano board to build a 3D printer using an old computer PSU (300 W), it only boots on when I have no endstops pugged in at all or if I trigger all the ones I have plugged. At the moment I release them the screen goes off (but the fan of the PSU is still on). Does anyone have any clue about what's go...
<p>It ended up I had like super cheap endstops that were actually shorting VCC to GND, as suspected by r_ahlskog. Just bought other ones and now it's working fine.</p>
<p>It ended up I had like super cheap endstops that were actually shorting VCC to GND, as suspected by r_ahlskog. Just bought other ones and now it's working fine.</p>
1,492
<p>I have heard using PDB files can help diagnose where a crash occurred.<br> My <em>basic</em> understanding is that you give Visual studio the source file, the pdb file and the crash information (from Dr Watson?)<br> Can someone please explain how it all works / what is involved? (Thank you!)</p>
<p>PDB files are generated when you build your project. They contain information relating to the built binaries which Visual Studio can interpret.</p> <p>When a program crashes and it generates a crash report, Visual Studio is able to take that report and link it back to the source code via the PDB file for the applic...
<p>You should look into setting up a symbol server and indexing the PDB files to your source code control system. I just recently went through this process for our product and it works very well. You don't have to be concerned about making PDB files available with the binaries, nor how to get the appropriate source cod...
9,768
<p>Is there a way to make all your prints seamless?? I know there was this program that printed a vase constantly changing the z axis making it seamless. Why cant this be done with regular prints?</p>
<p>If you ever seen 3d printouts on your own and you did keep it in hand then you probably felt layers. Most printouts contains 3 main "components"</p> <ol> <li>bottom and top component (floor and ceiling)</li> <li>outline (perimeters)</li> <li>infill (inside supporting structure)</li> </ol> <p>It is almost imposible...
<p>Look into post processing your model with an <a href="http://makezine.com/2014/09/24/smoothing-out-your-3d-prints-with-acetone-vapor/" rel="nofollow">Acetone vapor Bath.</a>. ABS plastic disolves in acetone. if you put your print in a chamber full of acetone vapor, the outer skin will sort of melt, and give you t...
250
<p>I began build LCD printer and I want make some modifications.</p> <p>What if I will place LCD below VAT<a href="https://i.stack.imgur.com/Tznt5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tznt5.jpg" alt="enter image description here"></a>? Will the display break when printing? what are the ri...
<p>Your calculations about the theoretical extruder resolution are spot on. I did a similar calculation to evaluate which extruder to use with different hot ends, I paste the results. The dark cells are the input cells, the rest is calculated. You can see that for some lines I entered directly the mm/microstep value, s...
<h2>Short answer</h2> <p><em>Usually</em> no.</p> <h2>Long answer</h2> <p>There are several big factors that limit how small things you can print. The bigger ones are pretty much:</p> <ul> <li>Positional accuracy and settings (limited by steps/mm in X, Y, Z)</li> <li>Nozzle diameter</li> </ul> <p>Now, why don't you nee...
1,603
<p>How do I select one or more random rows from a table using SQLAlchemy? </p>
<p>This is very much a database-specific issue.</p> <p>I know that PostgreSQL, SQLite, MySQL, and Oracle have the ability to order by a random function, so you can use this in SQLAlchemy:</p> <pre><code>from sqlalchemy.sql.expression import func, select select.order_by(func.random()) # for PostgreSQL, SQLite selec...
<p>Theres a couple of ways through SQL, depending on which data base is being used.</p> <p>(I think SQLAlchemy can use all these anyways)</p> <p>mysql:</p> <pre><code>SELECT colum FROM table ORDER BY RAND() LIMIT 1 </code></pre> <p>PostgreSQL:</p> <pre><code>SELECT column FROM table ORDER BY RANDOM() LIMIT 1 </cod...
8,583
<p>Using regular expressions, what is the simplest way to fetch a websites HTML and find the value inside this tag (or any attribute's value for that matter):</p> <pre><code>&lt;html&gt; &lt;head&gt; [snip] &lt;meta name="generator" value="thevalue i'm looking for" /&gt; [snip] </code></pre>
<p>Depends on how sophisticated of an Http request you need to build (authentication, etc). Here's one simple way I've seen used in the past. </p> <pre><code>StringBuilder html = new StringBuilder(); java.net.URL url = new URL("http://www.google.com/"); BufferedReader input = null; try { input new BufferedReader( ...
<p>You may want to check the documentation for Apache's org.apache.commons.HttpClient package and the related packages <a href="http://hc.apache.org/httpclient-3.x/apidocs/index.html" rel="nofollow noreferrer">here</a>. Sending an HTTP request from a Java application is pretty easy to do. Poking through the documenta...
5,136
<p>I assume SLA printing only works on Earth and upright.</p> <p>But would fused-filament printer (e.g. Prusa Mk3) work in zero gravity? What about upside down or sideways? If not, could it be modified to work in other orientations? Have there been any demonstrations of it?</p>
<p>I think it's safe to say that there's at least one model of 3D printer that works in microgravity -- since <a href="https://www.nasa.gov/mission_pages/station/research/news/3d-printing-in-space-long-duration-spaceflight-applications" rel="nofollow noreferrer">one was sent to the International Space Station a few mon...
<p>Lulzbot used to do this at trade shows -- printers on their side, printing all day long.</p> <p>So long as it sticks to the bed, and sticks to the subsequent layers of the part, it works.</p> <p>The determining factor is gravity -- if the part being printed has overhangs or unsupported areas, the extruded material w...
1,812
<p>As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse. ...
<p>Version numbers embedded in the database are helpful. You have two choices, embedding values into a table (allows versioning multiple items) that can be queried, or having an explictly named object (such as a table or somesuch) you can test for.</p> <p>When you release to production, do you have a rollback plan in...
<p>I like the way that Django does it. You build models and the when you run a syncdb it applies the models that you have created. If you add a model you just need to run syncdb again. This would be easy to have your build script do every time you made a push. </p> <p>The problem comes when you need to alter a table t...
5,372
<p>Assuming you can't use LINQ for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute <em>ad hoc</em> queries against the database (say, SQL Server for argument's sake)?</p>
<p>In my experience writing mostly WinForms Client/Server apps these are the simple conclusions I've come to:</p> <p><strong>Use Stored Procedures:</strong></p> <ol> <li>For any complex data work. If you're going to be doing something truly requiring a cursor or temp tables it's usually fastest to do it within SQL S...
<blockquote> <p>is it good system architecture if you let connect 1000 desktops directly to database?</p> </blockquote> <p>No it's obviously not, it's maybe a poor example but I think the point I was trying to make is clear, your DBA looks after your database infrastructure this is were their expertise is, stuff...
4,293
<p>I have a vs.net project, and after some refactoring, have modified the name of the project. How can I easily rename the underlying windows folder name to match this new project name under a TFS controlled project and solution?<br> Note, I used to be able to do by fiddling with things in the background using SourceS...
<ol> <li><strong>Check in</strong> all pending changes within the folder and ensure that all other team members to do the same.</li> <li>Ensure that you have a copy of the folder in your working directory (otherwise, you will not have the option to rename the folder in the <em>Source Control Explorer</em> in the next s...
<p>You could just rename the project (.Xproj file and project folder) in TFS, delete the local folder structure and all of its contents, then do a get latest for the project. All of this depends the notion of your source repository is completely up to date and compilable.</p>
7,147
<p>I just got a GeeeTech Rostock 301 mixer head delta printer and am having trouble honing in on why the extruder is struggling with my first spool of ABS.</p> <p>Being the main parts of the printer came assembled I am unsure of where to start taking things apart. I have a read a multitude of possible causes and am ho...
<p>First you have to see if nothing jams the filament (blocked nozzle or anything in its path, PTFE tube not good, etc).</p> <p>Second, the temp for ABS is about 225°C to 230°C. At least that worked for me.</p> <p>If none of the above, then go for the motor. The problem could be from bad settings, low power or a moto...
<p>This is worth pointing out as it hasn't been said yet, make sure your stepper driver isn't overheating. If it overheats, it will cause the stepper to temporarily shut down, and it will click when it happens. This could be caused by inadequate power or by insufficient cooling. </p>
488
<p>So I bought this printer three days ago as a way to dip my toes into the 3D printing world, and it was working great at first. But at some point, the ABL procedure started behaving oddly: Instead of moving down to touch each corner of the printing bed, it's now only doing so for one corner, then moving to the next, ...
<p>This is a community wiki answer from <a href="https://www.reddit.com/r/3Dprinting/comments/lz4c9l/comment/gr9v9pb/?utm_source=reddit&amp;utm_medium=web2x&amp;context=3" rel="nofollow noreferrer">an answer</a> on <a href="https://www.reddit.com/r/3Dprinting/comments/lz4c9l/monoprice_cadet_autoleveling_question/" rel=...
<p>According to the <a href="http://www.weedo.ltd/product-detail/tina2/" rel="nofollow noreferrer">manufacturer's page for the Weedo Tina 2</a>, the bed sensor for the ABL is magnetic -- which means that if you've removed the magnetic build surface you likely have removed the printer's ability to sense the bed height. ...
1,953
<p>I use the VS2008 command prompt for builds, TFS access etc. and the cygwin prompt for grep, vi and unix-like tools. Is there any way I can 'import' the vcvars32.bat functionality into the cygwin environment so I can call "tfs checkout" from cygwin itself?</p>
<p>According to <a href="http://www.cs.ucl.ac.uk/research/vr/Dive/Local/compile.html" rel="noreferrer">this page</a> you need to:</p> <p>"Depending on your preference, you can either add the variables required for compilation direct to your environment, or use the vcvars32.bat script to set them for you. Note you have...
<p>witkamp's answer works for vs2005 -- for vs2008, use </p> <p>CALL "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"</p>
8,736
<p>I want to copy the entire contents of a directory from one location to another in C#.</p> <p>There doesn't appear to be a way to do this using <code>System.IO</code> classes without lots of recursion.</p> <p>There is a method in VB that we can use if we add a reference to <code>Microsoft.VisualBasic</code>:</p> <...
<p>Much easier</p> <pre><code>private static void CopyFilesRecursively(string sourcePath, string targetPath) { //Now Create all of the directories foreach (string dirPath in Directory.GetDirectories(sourcePath, &quot;*&quot;, SearchOption.AllDirectories)) { Directory.CreateDirectory(dirPath.Replace(...
<p>Better than any code (extension method to DirectoryInfo with recursion)</p> <pre><code>public static bool CopyTo(this DirectoryInfo source, string destination) { try { foreach (string dirPath in Directory.GetDirectories(source.FullName)) { var newDirPath =...
8,318
<p>Using VS2005 and VB.NET.</p> <p>I have a project that is an API for a data-store that I created. When compiled creates <code>api.dll</code>.</p> <p>I have a second project in the same solution that has a project reference to the API project which when compiled will create <code>wrapper.dll</code>. This is basicall...
<p>@Jas, it's a special feature in Visual Studio. The procedure is outlined in <a href="http://blogs.msdn.com/shawnfa/archive/2006/04/24/582278.aspx" rel="nofollow noreferrer">this blog entry, called "Sharing a Strong Name Key File Across Projects"</a>. The example is for sharing strong name key files, but will work f...
<p>I think you could compile api.dll as a resource into wrapper.dll. Then manually access that Resource out of api.dll and manually load it. I have manually loaded assemblies from disk, so loading one from a Stream should not be any different.</p> <p>I would try including the dll in your project as a file, similar t...
5,068
<p>I am still very much a novice and learning so here is the situation:</p> <ol> <li>Filament was not extruding from nozzle. Checked the filament feeder (worked fine, filament was being squeezed through) and tried to push filament through hot nozzle to see if anything came out. Nothing did.</li> <li>Did a cold pull, go...
<p>I have encountered this many times. This is how I solved it:</p> <p>Sadly you have to disassemble the entire hotend. Remove the nozzle, remove the heatbreak and heatsink leaving the heater block in place, it does not need to be cleaned (unless I am mistaken). If there are any plastic pieces in those parts, remove th...
<p>I fixed this by using a q-tip to wipe out the threads!</p>
1,735
<p>I have a Creality Ender 3 that printed a spool of Sunlu PLA with no issues, so I bought a second to replace it, just in a different color.</p> <p>The problem is I can’t get it to stick. The bed is level, I’ve tried printing at different temps, even adjusted the fan, but no luck. No matter what, the print still only ...
<h1>Level the bed</h1> <p>Make sure that the bed is level. The nozzle must be equally high over heated surface, otherwise only part of the print will have chance to be smeared and adhere properly.</p> <h1>Clean thoroughly</h1> <p>First thing I do when I notice that increasing bed temperature does not work anymore, is w...
<p>In addition to the suggestion of cleaning the glass with soap (dish soap works very well) and THEN also with any alcohol or brake cleaner or similar no-trace solvent, you can use hairspray or glue stick for larger parts.</p>
1,829
<p>I would like my website to record flvs using webcams. These flvs need to play smoothly so I can play with them afterwards, for example transcoding them to avis.</p> <p>I've tried many different servers to handle the flv recording. The resulting flvs play OK in Wimpy FLV Player, for example, except that the progress...
<p>Looking at your red5 example flv in <a href="http://www.richapps.de/?p=66" rel="nofollow noreferrer">richflv</a> (very handy flv editing tool) we can see that you have regular keyframes but the duration metadata isn't set.</p> <p>The facebook example flv has hardly any keyframes (which would mean you wouldn't be ab...
<p>Your problem might not be with the framerate but with keyframes and markers.</p>
9,307
<p>I've been trying to find a solution to a problem I've been having recently whereby the bottom layers of my print (1.2&nbsp;mm; 12 layers) are either being compressed. over extruded or both. The problem results in the nozzle being dragged through previously extruded filament leaving deep groove marks and the bottom l...
<p>The first thing that comes to mind is that, even though you have levelled the bed, the print nozzle may be too close causing too much "squish" on the first layer. Squish isn't bad as it promotes adhesion, but in your case, as you are looking for finer tolerances on the holes, it may be a problem. I use a feeler gaug...
<p>I had similar issues during the past few days. My first 3~5 layers overlapped. I ended up with figuring out it was the screws to mount Z stepper became loose and the stepper shifted itself downwards instead shifting up the nozzle for the first several layers, until the stepper had nowhere to go.</p>
1,595
<p>I'm specifically interested in tools that can be plugged into Vim to allow CScope-style source browsing (1-2 keystroke commands to locate function definitions, callers, global symbols and so on) for languages besides C/C++ such as Java and C# (since Vim and Cscope already integrate very well for browsing C/C++). I'm...
<p>CScope does work for Java.</p> <p>From <a href="http://cscope.sourceforge.net/cscope_vim_tutorial.html" rel="nofollow noreferrer">http://cscope.sourceforge.net/cscope_vim_tutorial.html</a>:</p> <blockquote> <p>Although Cscope was originally intended only for use with C code, it's actually a very flexible tool ...
<p>This may be what you're looking for:</p> <p><a href="http://www.vim.org/scripts/script.php?script_id=1783" rel="nofollow noreferrer">http://www.vim.org/scripts/script.php?script_id=1783</a></p> <p>You can also mimic some CScope functionality in your own .vimrc file by using the various flavors of <a href="http://v...
9,118
<p>To experiment, I've (long ago) implemented Conway's <a href="http://en.wikipedia.org/wiki/Conway&#39;s_Game_of_Life" rel="noreferrer">Game of Life</a> (and I'm aware of <a href="https://stackoverflow.com/questions/1823/writing-a-conways-game-of-life-program">this</a> related question!).</p> <p>My implementation wor...
<p>I am going to quote my answer from the other question, because the chapters I mention have some very interesting and fine-tuned solutions. Some of the implementation details are in c and/or assembly, yes, but for the most part the algorithms can work in any language:</p> <blockquote> <p>Chapters <a href="http://www...
<p>Don't exactly know how this can be done, but I remember some of my friends had to represent this game's grid with a Quadtree for a assignment. I'm guess it's real good for optimizing the space of the grid since you basically only represent the occupied cells. I don't know about execution speed though.</p>
6,172
<p>I switched locally from subversion 1.4 to 1.5, our server still runs 1.4. Since then every merge takes ages to perform. What took only a couple of seconds is now in the area of 5-10 minutes (or more). There is no difference between the command line client and tortoise (so we talk about the windows versions).</p> <p...
<p>Upgrading to 1.5.3 (when it is out) will significantly speed up your merges.</p>
<p>We've had problems when trying to add large numbers of files to repositories through the client which I assume created orphaned processes on the server when we killed the crashed client. We had to kill the server processes too and restart the subversion service (we run SVN as a windows service). Our SVN machine is d...
2,876
<p>I was having some issues with printing, most noticeably in this picture:</p> <p><img src="https://i.imgur.com/oCKwkBj.jpg" alt="Noticeable layers in print" title="Noticeable layers in print" /></p> <p>The layers are very noticeable and sometimes have gaps, and the overhangs don't print very well (although the former...
<p>The main issue here (the gaps between layers) was solved by reducing combing.</p> <p>Combing was enabled without a limit on the range so a max combing distance of 10&nbsp;mm was introduced. This prevented too much filament from oozing out during travels.</p> <p>The oozing filament was causing nothing to come out o...
<p>These lines could be caused by a mechanical issue with the printer; it looks as if the positioning is not up to par. </p> <p>This can be related to loose belts of the X-axis and Y-axis, or play in your system, e.g. look at the rollers of the carriage.</p> <hr> <p><em>I've experienced an issue with play between th...
1,430
<p>I'm trying to print a supporting base which will house the spindle for an electrostatic rotor. It's basically just a truncated cone with a hole down it's center to house the spindle.</p> <p>For reasons that I cannot fathom, Ultimaker Cura keeps on adding an unrequested top/bottom layer (color-coded yellow in the sc...
<p>It would appear that your model does not conform properly to STL standards. I base this conclusion on a couple of factors. When I loaded the model into Simplify3D slicer, it displayed fine, but when sliced, displayed nothing. Using the onboard repair feature, it presented the entire model as being composed of non-ma...
<p>I had the same issue exporting from Sketchup to STL. I imported my STL to Tinkercad and then exported it again and it resolved my issue.</p> <p>Tinkercad is a free and online tool.</p>
1,443
<p>I'm working on a setup which <em>wants to include the Microsoft.Web.Services3 (WSE 3.0) DLL</em>. However, I typically do not like including Microsoft DLL's in our installs except by way of Microsoft's redistributables. There is both a developer and a redist install package available from Microsoft.</p> <p>So, as a...
<p>Usually, redistributing any of Microsoft DLLs outside of the redistributable package is forbidden by their EULA, so you might first want to check the appropriate EULA for that DLL.</p> <p>Generally, I would prefer the redist package since that makes sure that it's correctly "registered" into the system, i.e. if you...
<p>If you don't include it you should at the very least link to it directly on your site or have your installer open the web browser to it (or even download it automatically). Or better yet, include the redistributable in your software package.</p> <p>However, if the DLL is not very large and you suspect that few use...
3,842