instruction stringlengths 27 22.5k | chosen stringlengths 27 28.2k | rejected stringlengths 19 24.9k | __index_level_0__ int64 0 10k |
|---|---|---|---|
<p>In the image, <a href="https://i.stack.imgur.com/fcPgL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fcPgL.png" alt="enter image description here"></a>there is an object circled in blue on the anet a8 printer that I need to buy a replacement of, however, I can not find it online, please help.</p... | <p>This is the throat block for direct drive extrusion, Anet8 is a cheap clone of Prusa printers, so it's easy to find parts for Anet printers. </p>
<p>This is one extruder kit that may help your needs, <a href="https://es.aliexpress.com/store/product/1Set-3D-Printer-makerbot-MK8-Extruder-Aluminum-extrusion-Frame-Bloc... | <p>Like @ZuOverture said the name of this component is the filament drive. Most of the manufactures sell the whole extrusion device already assembled, to avoid mismatches between the components of the extrusion device. If your device is somehow damaged, and without possibilities to be used in the printer the easiest so... | 740 |
<p>I have a VPS host running 3 sites using Ubuntu Hardy. I've spent much time setting it up. That includes all the installation + configuration and stuff. What ways are there to do backup + restore for VPS? </p>
| <p>Backups alone aren't enough. You should be keeping a detailed system log of all configuration changes you make to the system so that you can reproduce your configuration elsewhere. Ideally, perform the changes on a local VM, then write a script to perform those changes automatically, then run those scripts on the ... | <p>It'll depend a lot on what your host offers. MediaTemple and Slicehost both offer snapshot backups for a nominal fee. Contact your host and ask if they offer such a solution.</p>
<p>If your host doesn't offer anything, you could always backup the critical stuff regularly to something like Amazon's S3 storage servi... | 9,846 |
<p>I'm struggling with an upgrade I made to my Creality CR-10. I upgraded the extruder to an E3D V6 hotend. The extruder mount and cooling fans are installed and working, however, I'm doing something wrong with installing the bowden tube into the hotend. Inevitably after I print a few layers, the extruder jambs and ... | <p>You may need to secure the pneumatic coupling in the closed position with a small plastic clip (which should be supplied with the hot end).</p>
<p><a href="https://i.stack.imgur.com/h3ljP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h3ljP.jpg" alt="Pneumatic coupling with retaining clip"></a><... | <p>This sounds more like a problem with heat creep. When you installed the new hotend, did you reuse the old cooling solution? You might need more heatblock insulation and / or cooling power.</p>
| 1,235 |
<p>I've a class which is a wrapper class(serves as a common interface) around another class implementing the functionality required. So my code looks like this.</p>
<pre><code>template<typename ImplemenationClass> class WrapperClass {
// the code goes here
}
</code></pre>
<p>Now, how do I make sure that <code>I... | <p>It's verbose, but you can do it like this:</p>
<pre><code>#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_base_of.hpp>
struct base {};
template <typename ImplementationClass, class Enable = void>
class WrapperClass;
template <typename ImplementationClass>
class Wrapp... | <p>See <a href="http://www.research.att.com/~bs/bs_faq2.html#constraints" rel="nofollow noreferrer">Stoustrup's own words on the subject</a>.</p>
<p>Basically a small class, that you instantiate somewhere, e.g. the templated classes constructor.</p>
<pre><code>template<class T, class B> struct Derived_from {
... | 7,921 |
<p>My drupal site (internal) will not display the TinyMCE editor when using Google Chrome browser. Has anyone gotten TinyMCE to work with Chrome in Drupal 5?</p>
| <p>There are a number of known incompatibilities between TinyMCE and WebKit (the rendering engine used by Chrome). If you're using TinyMCE 2.x, you might want to try the <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari" rel="nofollow noreferrer">Safari plug-in to TinyMCE</a>; Safari also uses WebKit... | <p>I upgraded the TinyMCE to the latest, but it still fails.
The editor will display the first time you try to edit after login, but subsequent editing fails to bring up the TinyMCE editor</p>
<p>On the upside, Drupal 6.4 and the latest TinyMCE appear to work correctly, so I guess I'll need to update Drupal to v. 6 fo... | 7,359 |
<p>When asked to create system XYZ and you ask to do it in Python over PHP or Ruby, what are the main features you can mention when they require you to explain it?</p>
| <p>This is one of those cases that really boil down to personal preference or situational details. If you're more comfortable and experienced with Python, then say so. Are they asking you to justify it because they're more comfortable with one of the other environments? After you're done, will the system be passed off ... | <p>I agree with mreggen. Tell them by working in Python you can get things done faster. Getting things done faster possibly means money saved by the client. In the least it means that you are working with a language you a more comfortable in, meaning faster development, debugging, and refactoring time. There will be le... | 2,693 |
<p>We've been running <a href="http://eaccelerator.net/" rel="noreferrer" title="eAccelerator">eAccelerator</a> on each of 3 webservers and are looking to move to a <a href="http://www.danga.com/memcached/" rel="noreferrer" title="memcache">memcache</a> pool across all 3, hopefully reducing by about 2/3 our db lookups.... | <p><a href="http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/" rel="nofollow noreferrer">memcache.php</a> may be what you're looking for.</p>
<blockquote>
<p>memcache.php that you can get stats and dump from multiple memcache servers.</p>
</blockquote>
<p>Can <a href="http://livebookmark.net... | <blockquote>
<p>If all you need to do is to be able to flush the cache from a web-application, you could create a simple php-page and then use the system() call...</p>
</blockquote>
<p>Cache flushing is part of what we're looking for, but also a way to monitor what scripts are currently in there, how much data is in... | 5,749 |
<p>There are many different flavored HTML WYSIWYG editors from javascript to ASP.Net web controls, but all too often the features are the same. Does anyone have a favorite HTML editor they like to use in projects? Why?</p>
| <p>I'm partial to TinyMCE WYSIWYG editor due to the following reasons:</p>
<ol>
<li><p>Javascript - so it is broadly usable
regardless of the platform I'm
working in.</p></li>
<li><p>Easy to use - just a couple lines of
code and a textarea and the control is up and
running.</p></li>
<li><p>Easily themed - so I can qui... | <p>It completely depends on what you are using it for.</p>
<p>For instance, I use VS2008 for ASP.NET coding, and Notepad++ for looking at HTML source. It's all in what your end use for the editor will be. You won't care how well it renders a decent PHP development experience if all you are doing is modifying CSS files... | 9,146 |
<p>Currently I monitoring a particular file with a simple shell one-liner:</p>
<pre><code>filesize=$(ls -lah somefile | awk '{print $5}')
</code></pre>
<p>I'm aware that Perl has some nice modules to deal with Excel files so the idea is to, let's say, run that check daily, perhaps with cron, and write the result on ... | <p>You can check the size of the file using the -s operator.</p>
<pre>
use strict;
use warnings;
use File::Slurp qw(read_file write_file);
use Spreadsheet::ParseExcel;
use Spreadsheet::ParseExcel::SaveParser;
use Spreadsheet::WriteExcel;
my $file = 'path_to_file';
my $size_file = 'path_to_file_keeping_the_siz... | <p>The module you should be using is <a href="http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel/lib/Spreadsheet/WriteExcel.pm" rel="nofollow noreferrer">Spreadsheet::WriteExcel</a>.</p>
| 9,717 |
<p>I'm new to printing resin miniatures for Dungeons & Dragons and most of my prints are successful, i.e. one or more miniatures print as expected.</p>
<p>However when I have multiple minis on the build plate the one in the middle works okay but the ones on the edges don't adhere to the build plate.</p>
<p>Should... | <p>You can definitely print full build plates of minis. You just need to find correct settings. If nothing sticks to the build plate - then you should increase bottom exposure time. Also check if the build plate is even. You can also sand your build plate a little bit to make adhesion better. Additionally, print with l... | <p>I regularly print multiple models on the build plate of an Elegoo Saturn. If your built plate is level and your tank is firmly fastened down you should have no problems.</p>
<p>What I have found is the my slicer (Chitubox) will sometimes corrupt the base layer if I print multiple models. With me this usually causes ... | 1,646 |
<p>I'd like to enable/disable some other controls based on how many items are in my <code>ListView</code> control. I can't find any event that would do this, either on the <code>ListView</code> itself or on the <code>ListViewItemCollection</code>. Maybe there's a way to generically watch any collection in C# for change... | <p>@Domenic</p>
<p>Not too sure, Never quite got that far in the thought process. </p>
<p>Another solution might be to extend ListView, and when adding and removing stuff, instead of calling .items.add, and items.remove, you call your other functions. It would still be possible to add and remove without events being... | <p>I can't find any events that you could use. Perhaps you could subclass ListViewItemCollection, and raise your own event when something is added, with code similar to this.</p>
<pre><code>Public Class MyListViewItemCollection
Inherits ListView.ListViewItemCollection
Public Event ItemAdded(ByVal Item As Lis... | 6,936 |
<p>In my automated NAnt build we have a step that generates a lot of code off of the database (using SubSonic) and the code is separated into folders that match the schema name in the database. For example:</p>
<ul>
<li>/generated-code
<ul>
<li>/dbo
<ul>
<li>SomeTable.cs</li>
<li>OtherTable.cs</li>
</ul></li>
<li>/... | <p>How often does your DB schema change? Wouldn't it be possible to generate the database-related files on demand (e.g. when the schema changes) and then check them into your code repository?</p>
<p>If your database schema doesn't change, you can also package the compiled *.cs classes and distribute the archive to ot... | <p>We have two projects in our solution that are built completely out of generated code. Basically, we run the code generator .exe as a post-build step for another project and along with generating the code, it automates the active instance of visual studio to make sure that the generated project is in the solution, t... | 6,821 |
<p>I have a xslt stylesheet with multiple <code>xsl:import</code>s and I want to merge them all into the one xslt file.</p>
<p>It is a limitation of the system we are using where it passes around the xsl stylesheet as a string object stored in memory. This is transmitted to remote machine where it performs the transfo... | <p>You can use an XSL stylesheet to merge your stylesheets. However, this is equivalent to using the xsl:include element, not xsl:import (as Azat Razetdinov has already pointed out). You can read up on the difference <a href="http://www.w3.org/TR/xslt#section-Combining-Stylesheets" rel="nofollow noreferrer">here</a>.</... | <pre><code> import multiple xsl in single xsl
<xsl:import href="FpML_FXOption_Trade_Template1.xsl"/>
<xsl:apply-imports/>
<calypso:keyword>
<calypso:name>DisplayOptionStyle</calypso:name>
<calypso:value>Vanilla</calypso:value>
</calypso:keyword&... | 9,554 |
<p>I want to show HTML content inside Flash. Is there some way to do this?
I am talking about full blown HTML (with JavaScript if possible).</p>
| <p><a href="http://www.wdvl.com/Reviews/Graphics/Flash5/external.html" rel="nofollow noreferrer">Here is a decent article</a> on how to accomplish that.</p>
<p><a href="https://stackoverflow.com/questions/22909/is-there-some-way-to-show-html-content-inside-flash#24396">@Flubba</a>: I didn't say "<em>great</em>" articl... | <p>If it is complex HTML and Javascript, one possible way is <a href="http://drumbeatinsight.com/htmlcomponent" rel="nofollow noreferrer">HTMLComponent</a>, a method that uses an iframe over your flash to make it appear like the HTML is in your app. There are a few downsides to this method however - most of them descri... | 4,294 |
<p>How do I get the path of the directory in which a <a href="http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29" rel="noreferrer">Bash</a> script is located, <em>inside</em> that script?</p>
<p>I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where th... | <pre><code>#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
</code></pre>
<p>is a useful one-liner which will give you the full directory name of the script no matter where it is being called from.</p>
<p>It will work as long as the ... | <p>I want to make sure that the script is running in its directory. So</p>
<pre><code>cd $(dirname $(which $0) )
</code></pre>
<p>After this, if you really want to know where the you are running then run the command below.</p>
<pre><code>DIR=$(/usr/bin/pwd)
</code></pre>
| 8,466 |
<p>I would like to display details of an xml error log to a user in a winforms application and am looking for the best control to do the job.</p>
<p>The error data contains all of the sever variables at the time that the error occurred. These have been formatted into an XML document that looks something to the effect ... | <p>You can transform your XML data using <a href="http://www.xml.com/pub/a/2002/08/14/dotnetxslt.html" rel="nofollow noreferrer">XSLT</a><br>
Another option is to use XLinq.<br>
If you want concrete code example provide us with sample data</p>
<p><strong>EDIT</strong>:
here is a sample XSLT transform for your XML file... | <p>You could try using the <code>DataGridView</code> control. To see an example, load an XML file in DevStudio and then right-click on the XML and select "View Data Grid". You'll need to read the API documentation on the control to use it.</p>
| 5,836 |
<p>After a resin print completes, what is the expected process to finish the print? Is some cleaning expected? I also some manufacturers sell UV chambers to cure the print surface, is this required?</p>
<p>I purchased a low-cost printer from China that is quite high-quality hardware, but sadly short on documentation. I... | <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,727 |
<p>Normally, I'm all fine with my printer and filament. But today I changed the filament for another brand and no matter what, it sticks to the nozzle so nothing comes to the bed and soon my nozzle is full of PLA... I use a sheet of paper for printer to level the bed at 0.1 mm. While leveling, I get the nozzle close en... | <p>I believe the problem is not so much that the filament is sticking to the nozzle; it's that the filament is not sticking to the bed.</p>
<p>You've confirmed that you have correct clearance for the nozzle to bed distance. The next considerations are bed temperature and nozzle temperature. New brands often require new... | <p>I believe the problem is not so much that the filament is sticking to the nozzle; it's that the filament is not sticking to the bed.</p>
<p>You've confirmed that you have correct clearance for the nozzle to bed distance. The next considerations are bed temperature and nozzle temperature. New brands often require new... | 1,791 |
<p>Tag-based web sites often suffer from the delicacy of language such as synonyms, homonyms, etc. For programmers looking for information, say on Stack Overflow, concrete examples are:</p>
<ul>
<li>Subversion or SVN (or svn, with case-sensitive tags)</li>
<li>.NET or Mono</li>
<li>[Will add more]</li>
</ul>
<p>The p... | <p>Recognizing synonyms and semantic connections is something that <i>humans are good at</i>; a solution to organizing an open-ended taxonomy like what SO is featuring would probably be well served by finding a way to leave the matching to humans.</p>
<p>One general approach: someone (or some team) reviews <i>new</i... | <p>Tags are basically our admission that search algorithms aren't up to snuff. If we can get a computer to be smart enough to identify that things tagged "Subversion" have similar content to things tagged "svn", presumably we can parse the contents, so why not skip tags altogether, and match a search term directly t... | 4,158 |
<p>I have a wildcard subdomain enabled and dynamically parse the URL by passing it as-is to my <code>index.php</code> (ex. <code>somecity.domain.com</code>). </p>
<p>Now, I wish to create a few subdomains that are static where I can install different application and not co-mingle with my current one (ex. <code>blog.d... | <p>Your .htaccess does nothing useful, as Apache is probably configured with DirectoryIndex index.php. Well, it does move domain.com/a to domain.com/index.php, but I doubt that is what you want.</p>
<p>Your wildcard virtualhost works because you probably have ServerAlias *.domain.com in your configuration, or a singl... | <p>You'll have to configure apache for those static sub-domains. The "catch-all" site will be the default site configured, so that one will catch the other ones.</p>
| 8,393 |
<p>If I want to use the validation framework that you can use with ASP.NET MVC, will the JavaScript conflict with other JavaScript frameworks like jQuery or YUI?</p>
| <p>No, it will not. Currently, ASP.NET MVC doesn't have an inherent validation framework. So you are free to use any server/client-side validation framework you wish.</p>
| <p>There are many MVC frameworks. There are many JavaScript frameworks that have different functionalities. If you want a meaningful answer, you should choose an MVC and a JavaScript framework and ask concerning those two. Please be as detailed as possible in your questions.</p>
<p>As an example, the validation handli... | 9,087 |
<p>I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario.</p>
<p>The pages I am working with are the search interface for a site. You enter terms in a normal search box, click "... | <p>Just use a <strong>cookie</strong>.</p>
| <p>Would it help to trigger a page change event using the "Add some info to the # at the end of the URL approach".</p>
<p>That way, clicking the back button shouldn't actually change the page, and you should be able to restore state without the first page load.</p>
| 5,441 |
<p>I have noticed major watches watch brands do not seem to offer manuals to 3D print your own parts.</p>
<p>Is there a reason for this?</p>
<p>I would assume in this day and age, with <a href="https://www.careeronestop.org/Toolkit/Careers/Occupations/occupation-profile.aspx?keyword=Watch%20repairers&onetcode=49906... | <p>The OpenSCAD <code>surface</code> function will do this. You can feed it a greyscale image or a textfile containing a matrix. Documentation and examples can be found at <a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Surface" rel="nofollow noreferrer">https://en.wikibooks.org/wi... | <p>FreeCAD can import JPG (and IIRC TIFF and PNG as well) image files and produce a lithophane type height-map based on the brightness of each pixel. I'd be rather surprised if other 3D CAD software aimed at the 3D printing user base couldn't do the same. Most of the common free-to-use 3D CAD packages have Linux vers... | 1,956 |
<p>How do you write code that is easily read by other people and who have had no hand in writing any part of it?</p>
| <p>The best way to ensure that others can read your code is to make sure that it is clear and concise. Namely,</p>
<ul>
<li>Use self documenting names for variables, functions, and classes.</li>
<li>Comment complex algorithms so that the reader doesn't have to spend to long figuring out what it does.</li>
<li>Ensure t... | <p>Probably the most important point is to keep your syntax consistent. I would also have a look at the design guidelines for the language you are writing in.</p>
| 6,040 |
<p>I'm working with Subversion based on Windows and would like to write an easy utility in .NET for working with the Apache password file. I understand that it uses a function referred to as MD5Crypt, but I can't seem to find a description of the algorithm beyond that at some point it uses MD5 to create a hash.</p>
<... | <p>A precise textual description of the crypt algorithm updated for use with sha256 and sha512 is at <a href="http://www.akkadia.org/drepper/SHA-crypt.txt" rel="nofollow">http://www.akkadia.org/drepper/SHA-crypt.txt</a></p>
<p>It includes contrasts with the MD5 algorithm, so it should give you what you're looking for.... | <p>You can find an implementation of md5crypt in the <a href="http://tcllib.sourceforge.net/doc/md5crypt.html" rel="nofollow noreferrer">tcllib package.</a> Download is available from <a href="http://sourceforge.net/project/showfiles.php?group_id=12883" rel="nofollow noreferrer">sourceforge</a>.</p>
<p>You can also fi... | 4,346 |
<p>Right, I know I am totally going to look an idiot with this one, but my brain is just <em>not</em> kicking in to gear this morning.</p>
<p>I want to have a method where I can say "if it goes bad, come back with this type of Exception", right?</p>
<p>For example, something like (<strong>and this doesn't wor... | <p>You can almost do it like this:</p>
<pre><code>static void TestException<E>(string message) where E : Exception, new()
{
var e = new E();
e.Message = message;
throw e;
}
</code></pre>
<p>However, that doesn't compile because Exception.Message is read only. It can only be assigned by passing it to... | <p>I think seeing as all exceptions should have a parameterless constructor, and have the <code>Message</code> property, so the following should work:</p>
<pre><code>static ExType TestException<ExType>(string message) where ExType:Exception
{
ExType ex = new ExType();
ex.Message = message;
return ex;... | 6,266 |
<p>Is there is any way to change the datasource location for a report and all of it's subreports without having to open each of them manually?</p>
| <p>Here is how I set my connections at runtime. I get the connection info from a config location.</p>
<pre><code> #'SET REPORT CONNECTION INFO
For i = 0 To rsource.ReportDocument.DataSourceConnections.Count - 1
rsource.ReportDocument.DataSourceConnections(i).SetConnection(crystalServer, crys... | <p>I'm guessing you're talking about .rdl files from Reporting Services? (If not, my answer might be wrong)</p>
<p>They're basically just XML, so you could load each one of them in and do an XPath query to get the node that contains the datasource and update it.</p>
| 6,178 |
<p>I have a problem with maintaining state in an ASP.NET AJAX page. Short version: I need some way to update the page ViewState after an async callback has been made, to reflect any state changes the server made during the async call. </p>
<p>This seems to be a common problem, but I will describe my scenario to help e... | <p>If you're already shuffling the ViewState around anyway, you might as well use an UpdatePanel. Its partial postbacks <strong>will</strong> update the page's ViewState automatically.</p>
| <p>I actually found both of those links you provided, but as noted they are simply describing the problem, not solving it. The author of the blog post suggests a workaround by using a different ViewState provider, but unfortunately that isn't a possibility in this case...I really need to leave the particulars of the Vi... | 2,449 |
<p>I've been using a resin printer for some time now, and am looking for a filament printer to compliment it. It will mostly be used to print scenery or bases to match 3-6" models printer on the resin printer.</p>
<p>I'm aiming for an entry level printer, or possible a mid level one on black Friday sale if I can f... | <p>Most "auto-leveling" is not leveling but compensation for a non-flat or non-level bed surface. It's helpful to beginners who don't understand bed leveling or evaluating bed surface flatness and replacing a bad bad, for the sake of being able to get started without prints failing to adhere, but it will nece... | <p>FWIW, what I consider the primary entry-level filament printer, the Creality Ender 3 (under $200 any, sometimes lower depending on daily exchange rates) is sold with <em>heated bed included</em>.</p>
<p>Beyond that, a so-called self-leveling system is IMO overrated. For 20-25 dollars you can get a glass build surfa... | 2,021 |
<p>I built a cheap Delta printer with ATMega board and 1.8° motors. The micro stepping is limitied to 1/16. Beside a decent print quality, I observe a moire effect on flat surfaces. The moire is clearly caused by a combination of both, the 1.8° motors steps and the low microstepping. </p>
<p>I thought about using 0.9°... | <p>Delta bots always need all motors to step to maintain a straight level. <a href="https://3dprinting.stackexchange.com/questions/5796/full-steps-mode-for-z-axis-stepper-controller">Microstepping</a>, is not magic, the <strong>incremental torque</strong> decreases per step so that you will be more likely to miss a few... | <p>I am looking at the example print you supplied and trying to understand the defects. Was the object printed vertically, so that the object Z-axis is running from top to bottom in the picture? </p>
<p>If so, then the horizontal defects look like resonance artifacts, which could be caused by the issue you raise of t... | 1,114 |
<p>Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged Visual C++?</p>
<p>I know that it can be done easily using managed C++, but I need to do it using an unmanaged Windows service.</p>
<p>I also know that you can retrieve performance counter data, but I need to create som... | <p>See here:
<a href="http://msdn.microsoft.com/en-us/library/aa371925.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/aa371925.aspx</a></p>
<p>It is not really hard, but a bit tedious as the API involves extensive usage of self-referential, variable-length structures and has to employ some IPC mechani... | <p>I was looking for something a litte easier to implement. I will probably have to use this approach. I was also shown by a colleague (thanks PJ) that there is a Scribble tutorial that has been modified to show how to add a Performance Counter using ATL classes:
<a href="http://msdn.microsoft.com/en-us/library/z1xc8... | 7,959 |
<p>The cube is a 2 cm x 2 cm with infill at 30 % and layer height 0.2 mm, more details can be seen below.</p>
<p>I'm printing with PETG using an Ender 3 printer.</p>
<p>There seems to be a gap between the perimeter walls, I have already referred to other forums and specifically: " <a href="https://3dprinting.stack... | <p>PETG filament is not entirely rigid and compresses slightly in the Ender 3's extruder gear and Bowden extruder setup. Tightening it will only make this effect greater. Being compressed at the point where mm of extruder advance is applied means less than the desired advance of at-nominal-diameter filament will take p... | <p>I agree with @R.. GitHub STOP HELPING ICE, looks like under extrusion you could try a flow rate test print like this <a href="https://www.thingiverse.com/thing:3397997" rel="nofollow noreferrer">link</a> to try and dial in the value.</p>
<p>But probably worth just trying a flow of 105% and see if it solves the probl... | 1,715 |
<p>On Fedora Core 7, I'm writing some code that relies on <code>ARG_MAX</code>. However, even if I <code>#include <limits.h></code>, the constant is still not defined. My investigations show that it's present in <code><sys/linux/limits.h></code>, but this is supposed to be portable across Win32/Mac/Linux,... | <p>The reason it's not in limits.h is that it's not a quantity giving the limits of the value range of an integral type based on bit width on the current architecture. That's the role assigned to limits.h by the ISO standard.</p>
<p>The value in which you're interested is not hardware-bound in practice and can vary f... | <p>ARG_MAX is defined in /usr/include/linux/limits.h. My linux kernel version is 3.2.0-38.</p>
| 6,890 |
<p>Given a list of locations such as</p>
<pre class="lang-html prettyprint-override"><code> <td>El Cerrito, CA</td>
<td>Corvallis, OR</td>
<td>Morganton, NC</td>
<td>New York, NY</td>
<td>San Diego, CA</td>
</code></pre>
<p>What's the easies... | <p>I'm assuming you have the basics for Maps in your code already with your API Key.</p>
<pre><code><head>
<script
type="text/javascript"
href="http://maps.google.com/maps?
file=api&v=2&key=xxxxx">
function createMap() {
var map = new GMap2(document.getElementById("map"));
... | <p>I guess more information would be needed to really give you an answer, but over at Django Pluggables there is a <a href="http://djangoplugables.com/projects/django-googlemap/" rel="nofollow noreferrer">django-googlemap plugin</a> that might be of help.</p>
<p><strong>Edit:</strong> Adam has a much better answer. Wh... | 3,606 |
<p>I'm making a method combining Scrum with the OpenUP lifecycle and deliverables. I also want to keep the OpenUP disciplines apart from "Project Management". I can "hide" it so that it's not immediately obvious in my generated method site. But when you then navigate to the "Risk List" artefact for example the PM is s... | <p>I've never used EPF Composer.</p>
<p>I did a little bit of google searches and I understand what you are looking for can be done through Configurations (select OpenUP in your Library view) and published View definitions.</p>
<p>See slide 83 and 84 of this PPT document. You should be able to take it from there.</p>... | <p>To those who are to lazy <a href="https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0ahUKEwiUr9P6prjJAhVM2RoKHeQ7AWgQFgg0MAQ&url=http%3A%2F%2Fwww.mountainview-itsm.com%2Fitil-training%2Fdownloads%2FAn_Introduction_to_EPF.ppt&usg=AFQjCNHCNYUI70q5JaQKxZbpqMtdUIAu_w&a... | 9,683 |
<p>After watching every possible YouTube video on the subject and reading any source available, and although I'm a PhD and quite computer savvy, I still can't make my Anet A6 (no probe) behave in terms of Z offset. I upgraded to silicone bed buffers instead of the stock springs; now my bed is ~5 mm raised, and I don't ... | <p>So the new silicone buffers raised the bed by 5 mm? When this happens, you should raise the endstop also with 5 mm. Else the printer will go down to the Z endstop that is effectively 5 mm below the level of the bed. I guess the buffers cannot be compressed by 5 mm, so you need to move the endstop up to the level you... | <p>Setting any offset will move the whole print ("effectively shifts the coordinate space") - so you can set up for printing above or below bed, or shifting several cm to the right, for example - and then your print may not actually fit the printing space. For example: my frame is blocking X moves at the top,... | 1,832 |
<p>As a temporary stopgap until all the designers are in place we are currently hand-cranking a whole bunch of xml configuration files at work. One of the issues with this is file-versioning because people forget to update version numbers when updating the files (which is to be expected as humans generally suck at perf... | <p>In order to take control over the properties that you want to be cached you can call 'RefreshCache()' passing the properties that you want to hang around:</p>
<pre class="lang-c# prettyprint-override"><code>System.DirectoryServices.DirectoryEntry entry = new System.DirectoryServices.DirectoryEntry(); ... | <p>Active Directory is pretty efficient at storing information and the retrieval shouldn't be that much of a performance hit. If you are really intent on storing the names, you'll probably want to store them in some sort of a tree stucture, so you can see the relationships of all the people. Depending on how the numb... | 5,328 |
<p>I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this?</p>
<p>EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry</p>
| <p>Use a 3 step process:</p>
<ol>
<li>Generate a script from the working database</li>
<li>Create a new database from that script</li>
<li>Create a backup of the new database</li>
</ol>
| <p>I make heavy use of this tool:<br>
<a href="http://www.dswsoft.com/sqlbalance.php" rel="nofollow noreferrer">SQLBalance for MySQL</a> </p>
<p>Unfortunately; its windows only... but works like a charm to move databases around, data or no data, merge or compare.</p>
| 2,567 |
<p>There was a previous question suggesting that the <a href="https://3dprinting.stackexchange.com/questions/tagged/support" class="post-tag" title="show questions tagged 'support'" rel="tag">support</a> and <a href="https://3dprinting.stackexchange.com/questions/tagged/support-materials" class="post-tag" title... | <p>I object to merging the two, my reasoning having been explained in chat several times, and brought to point by tbm115:</p>
<blockquote>
<p>Tbm0115 - "support-material" should define the material-type (ie. PLA, ABS, PVA, etc.) which in FDM is usually the same as the print-material. However, in the case of m... | <p>Both tbm0115 and Sean make very good arguments and I am really on the fence on this one... So, I am withdrawing my solution for the moment, as I am not sure that I agree with the amalgamation of the two tags. However, <em>if</em> they are to be amalgamated then I would propose that this would be the way to do it...<... | 58 |
<p>For the geometry I am making, I want to extrude each face individually along its normal.</p>
<p>This is a standard procedure in 3D modeling software like Blender; see Example 3 <a href="https://blender.stackexchange.com/questions/7365/extrude-faces-along-local-normals">here</a>. </p>
<p>Is this possible in OpenSCA... | <p>Extruding faces is only possible on 2D polygons. From a 3D object you cannot capture the face and extrude it. To extrude "faces" you would need to define the shape of the face and extend it in the third dimension of your choice. This way a 3D shape is created that could be concatenated (joined using e.g. <a href="ht... | <p>Built-in to the language and its CSG model, no - processing the CSG tree is a completely separate phase following execution of the functional language, and there is no way to "read back" anything from the conversion of the model into faces in order to operate on the faces.</p>
<p>However, you can do this if you're ... | 1,462 |
<p>I have a need to do auditing all database activity regardless of whether it came from application or someone issuing some sql via other means. So the auditing must be done at the database level. The database in question is Oracle. I looked at doing it via Triggers and also via something called Fine Grained Auditing ... | <p>I'm not sure if it's a mature enough approach for a production
system, but I had quite a lot of success with monitoring database
traffic using a network traffic sniffer.</p>
<p>Send the raw data between the application and database off to another
machine and decode and analyse it there. </p>
<p>I used PostgreSQL, ... | <p>if you are using oracle then there is feature called CDC(Capture data change) which is more performance efficient solution for audit kind of requirements.</p>
| 9,310 |
<p>We have a small embedded system without any video or serial ports (i.e. we can't output text via printf).<br>
We would like to track the progress of our code through the initialization sequence.<br>
Is there some simple things we can do to help with this.<br>
It is not running any OS, and the hardware platform is so... | <p>The simplest most scalable solution are state LEDs. Toggle LEDs based on actions, either in binary form or when certain actions occur if you can narrow your focus.</p>
<p>The most powerful will be a hardware JTAG device. You don't even need to set breakpoints - simply being able to stop the application and inspect ... | <p>A JTAG debugger is also an option, though cumbersome to set up.</p>
| 9,488 |
<p>If I have data like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Key</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Dan</td>
</tr>
<tr>
<td>2</td>
<td>Tom</td>
</tr>
<tr>
<td>3</td>
<td>Jon</td>
</tr>
<tr>
<td>4</td>
<td>Tom</td>
</tr>
<tr>
<td>5</td>
<td>Sam</td>... | <p>Couldn't be simpler...</p>
<pre class="lang-sql prettyprint-override"><code>Select Name, Count(Name) As Count
From Table
Group By Name
Having Count(Name) > 1
Order By Count(Name) Desc
</code></pre>
<p>This could also be extended to delete duplicates:</p>
<pre class="lang-sql prettyprint-overri... | <p>This could also be accomplished by joining the table with itself,</p>
<pre><code>SELECT DISTINCT t1.name
FROM tbl t1
INNER JOIN tbl t2
ON t1.name = t2.name
WHERE t1.key != t2.key;
</code></pre>
| 2,537 |
<p>I noticed that many people here use <a href="http://macromates.com/" rel="nofollow noreferrer">TextMate</a> for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.</p>
<p>So, what ... | <p>Don't neglect the 'mate' command line tool. You can use it to pipe output into TextMate, so if you do the following...</p>
<pre><code>diff file1.py file2.py | mate
</code></pre>
<p>...it will not only open in TextMate, but it is smart enough to know that you're looking at a diff and highlight lines on screen.</p>
... | <p>The <code>mate</code> command line tool is great, you can open an individual file or my favourite use of it is to open a directory of files as a project (e.g. <code>mate .</code>)</p>
| 5,390 |
<p>I have the unfortunate task of fixing a legacy ASP site that was migrated to Windows Server 2003, and I know nothing about ASP. The main issue appears to be with ASPSmartUpload, of which I have version 2.3 installed. According to <a href="http://foradvice.net/smart_upload_faq.htm" rel="nofollow noreferrer">http://... | <p>We searched for quite a while before finding these dlls. </p>
<p>Here is the link for the <a href="http://www.umbrellastudio.com/how-to/aspsmartupload-dll/" rel="nofollow">ASPSMARTUPLOAD.DLL Usage</a> page that tells you how to install it and a link for downloading version 3.3. </p>
<p>From what I understand, wi... | <p>Fortunately I have a copy of the original v3.3 distribution.
I've shared it <a href="http://1drv.ms/1BhbuD5" rel="nofollow">here</a>.</p>
| 6,743 |
<p>I have an application deployed into multiple zones and there are some issues with opening larger documents (20-50MB) across the WAN. </p>
<p>Currently the documents are stored in Zone 1 (Americas) and a link stored in the database to the docs. </p>
<p>I have heard some things about blobs in oracle and store bina... | <p>Your best option here may be caching the document in the requested zone the first time it is requested, and pinging the source document's last modified each time the cached document is requested in order to determine if it needs refreshed. In this case you're only requesting a small piece of information (a date) acr... | <p>If you're running on Windows you could look at <a href="http://en.wikipedia.org/wiki/Distributed_File_System_(Microsoft)" rel="nofollow noreferrer">Distributed File Systems</a></p>
| 3,125 |
<p>I've used the PHP MVC framework Symfony to build an on-demand web app.</p>
<p>It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds such as <a href="http://robrosenbaum.com/php/howto-disa... | <p>I looked into it, and my coworker agrees that a heartbeat page call should work, you just have to make sure that the action invoked does reset the session timer (things like ajax field completion don't do this on their own).</p>
| <p>The company I work for has been using Symfony and the workaround that we've used is to trigger a warning with javascript before the user gets logged out. I suspect that there is a a way to make 'heartbeat' ajax calls to the server to trigger the timer to reset, but that may be a lot of trouble. I think that there ma... | 4,480 |
<p>This happened to me in Visual Studio 2008 pre and post 2008 sp1 on more than one computer and to someone else I know, so it can't be an isolated incident.</p>
<p>Seemingly random, every so often I lose all syntax highlighting in my aspx page (the html) so that Visual Studio now looks like a really expensive version... | <p>it happened to me after an uninstall of visual studio using a removal tool at <a href="http://msdn.microsoft.com/en-us/vstudio/bb968856.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/vstudio/bb968856.aspx</a>
I had to run this before upgrading sql server management studio to 2008 version
syntax high... | <p>when this happens to me, i let it sit there for a minute. it will usually bring the syntax highlighting back.</p>
| 6,750 |
<p>what I'm after is something I can feed a number into and it will return the highest order bit. I'm sure there's a simple way. Below is an example output (left is the input)</p>
<pre>1 -> 1
2 -> 2
3 -> 2
4 -> 4
5 -> 4
6 -> 4
7 -> 4
8 -> 8
9 -> 8
...
63 -> 32</pre>
| <p>From Hacker's Delight:</p>
<pre><code>int hibit(unsigned int n) {
n |= (n >> 1);
n |= (n >> 2);
n |= (n >> 4);
n |= (n >> 8);
n |= (n >> 16);
return n - (n >> 1);
}
</code></pre>
<p>This version is for 32-bit ints, but the logic can be extended for 64... | <p>A nifty solution I came up with is to binary search the bits.</p>
<pre><code>uint64_t highestBit(uint64_t a, uint64_t bit_min, uint64_t bit_max, uint16_t bit_shift){
if(a == 0) return 0;
if(bit_min >= bit_max){
if((a & bit_min) != 0)
return bit_min;
return 0;
}
uin... | 7,659 |
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/476163">NAnt or MSBuild, which one to choose and when?</a> </p>
</blockquote>
<p>What is the best build tool for <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow noreferrer">.NET</a>?</p>
<p... | <p>We actually use a combination of <a href="http://en.wikipedia.org/wiki/NAnt" rel="noreferrer">NAnt</a> and <a href="http://en.wikipedia.org/wiki/MSBuild" rel="noreferrer">MSBuild</a> with <a href="http://en.wikipedia.org/wiki/CruiseControl" rel="noreferrer">CruiseControl</a>. NAnt is used for script flow control and... | <p>Generally speaking, I get the impression that NAnt offers more flexibility compared to MSBuild, whereas (with my relatively simple needs) I've been fine with the latter so far.</p>
| 3,726 |
<p>My company is in the process of starting down the <strong>Grails</strong> path. The reason for that is that the current developers are heavy on <strong>Java</strong> but felt the need for a <strong>MVC-style language</strong> for some future web development projects. Personally, I'm coming from the design/usability ... | <p>Mmh, I don't know how to say this. Some people might bash me over this. </p>
<h2>Language (Groovy and Ruby)</h2>
<p>As a language I reckon Ruby is more funky compared to Groovy. Groovy only exists to ease Java programmer as you don't need to learn too much new syntax. But overall I reckon is not as funky as Ruby. ... | <p>At a first glance you would think they are completely differente stories, since they are based on extremely different languages (Ruby and Groovy).</p>
<p>Then, after reading a couple of tutorials, you'll realize they share the same principles, scaffolding, duck typing, .. and finally the same goal:
<strong>maki... | 2,708 |
<p>What is the simplest SQL query to find the second largest integer value in a specific column? </p>
<p>There are maybe duplicate values in the column.</p>
| <pre><code>SELECT MAX( col )
FROM table
WHERE col < ( SELECT MAX( col )
FROM table )
</code></pre>
| <pre><code>select top 1 MyIntColumn from MyTable
where
MyIntColumn <> (select top 1 MyIntColumn from MyTable order by MyIntColumn desc)
order by MyIntColumn desc
</code></pre>
| 5,205 |
<p>I'm currently working on an application where we have a SQL-Server database and I need to get a full text search working that allows us to search people's names.</p>
<p>Currently the user can enter a into a name field that searches 3 different varchar cols. First, Last, Middle names</p>
<p>So say I have 3 rows wit... | <p>If you're just searching people's names, it might be in your best interest to not even use the full text index. Full text index makes sense when you have large text fields, but if you're mostly dealing with one word per field, I'm not sure how much extra you would get out of full text indexes. Waiting for the full... | <p>FreeTextTable should work.</p>
<pre><code>INNER JOIN FREETEXTTABLE(Person, (LastName, Firstname, MiddleName), @SearchString)
</code></pre>
<p>@SearchString should contain the values like 'Phillip Fry' (one long string containing all of the lookup strings separated by spaces).</p>
<p>If you would like to search f... | 3,776 |
<p>How do you get the maximum number of bytes that can be passed to a <code>sendto(..)</code> call for a socket opened as a UDP port?</p>
| <p>Use getsockopt(). <a href="http://www.mkssoftware.com/docs/man3/getsockopt.3.asp" rel="noreferrer">This site</a> has a good breakdown of the usage and options you can retrieve.</p>
<p>In Windows, you can do:</p>
<pre>
int optlen = sizeof(int);
int optval;
getsockopt(socket, SOL_SOCKET, SO_MAX_MSG_SIZE, (int *)&opt... | <p>As UDP is not connection oriented there's no way to indicate that two packets belong together. As a result you're limited by the maximum size of a single IP packet (65535). The data you can send is somewhat less that that, because the IP packet size also includes the IP header (usually 20 bytes) and the UDP header (... | 4,543 |
<p>I'd like to write a game for the Nintendo Wii. How do I go about obtaining an SDK and/or any other tools necessary for writing a game?</p>
| <p>The Wii Remote and Wii Balance Board use bluetooth. You can <a href="http://www.wiiprojects.org/bluetooth.html" rel="noreferrer">pair them with your PC</a> and write your own PC apps that interact with them (like <a href="http://www.cs.cmu.edu/~johnny/projects/wii/" rel="noreferrer">this guy</a>). If you want to m... | <p>You would have to get in contact with Nintendo of America and obtain a developer kit from them. Be prepared to spend a wad of dough though.</p>
<p>Check this out:
<a href="http://www.nintendo.com/corp/developer.jsp" rel="noreferrer">http://www.nintendo.com/corp/developer.jsp</a></p>
| 4,912 |
<p>In my day job I, and others on my team write a lot of hardware models in Verilog-AMS, a language supported primarily by commercial vendors and a few opensource simulator projects.
One thing that would make supporting each others code more helpful would be a LINTER that would check our code for common problems and a... | <p>lex/flex and yacc/bison provide easy-to-use, well-understood lexer- and parser-generators, and I'd really recommend doing something like that as opposed to doing it procedurally in e.g. Perl. Regular expressions are powerful stuff for ripping apart strings with relatively-, but not totally-fixed structure. With an... | <p>In trying to find my answer, I found this on <a href="http://www.ibm.com/developerworks/edu/au-dw-au-parsingwithantlr-i.html" rel="nofollow noreferrer">ANTLR</a> - might be of use</p>
| 9,614 |
<p>I've been trying to understand <a href="http://msdn.microsoft.com/en-gb/library/system.diagnostics.process.mainwindowhandle.aspx" rel="nofollow noreferrer">Process.MainWindowHandle</a>.</p>
<p>According to MSDN; "The main window is the window that is created when the process is started. After initialization, other ... | <p>@edg,</p>
<p>I guess it's an error in MSDN. You can clearly see in Relfector, that "Main window" check in .NET looks like:</p>
<pre><code>private bool IsMainWindow(IntPtr handle)
{
return (!(NativeMethods.GetWindow(new HandleRef(this, handle), 4) != IntPtr.Zero)
&& NativeMethods.IsWindow... | <p>Actually Process.MainWindowHandle is a handle of top-most window, it's not really the "Main Window Handle"</p>
| 7,069 |
<p>Given a handle of type <code>HWND</code> is it possible to confirm that the handle represents a real window?</p>
| <p>There is a function <code>IsWindow</code> which does exactly what you asked for.</p>
<pre><code>BOOL isRealHandle = IsWindow(unknwodnHandle);
</code></pre>
<p>Look at <a href="http://msdn.microsoft.com/en-us/library/ms633528(VS.85).aspx" rel="nofollow noreferrer">this link</a> for more information.</p>
| <p>Generally no. By the time you've got confirmation that a Window is valid another process/thread my come along and remove it for you.</p>
| 3,105 |
<p>I would like my Core assembly to not expose a certain class and I would still like to be able to test it. How can I do that ?</p>
| <p><a href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute(VS.80).aspx" rel="noreferrer">InternalsVisibleTo</a> attribute to the rescue!</p>
<p>Just add: </p>
<pre><code>[assembly:InternalsVisibleToAttribute("UnitTestAssemblyName")]
</code></pre>
<p>to your Core ... | <h2>Let's start with an example class:</h2>
<pre class="lang-cs prettyprint-override"><code>using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("App.Infrastructure.UnitTests")]
namespace App.Infrastructure.Data.Repositories
{
internal class UserRepository : IUserRepository
{
... | 7,519 |
<p>What is the best way to programmatically send an SMS text message?</p>
<p>Are there any free Web Service based SMS gateways?</p>
<p>I know that if I happen to know the user's carrier (Sprint, AT&T, etc), I can send an <a href="http://en.wikipedia.org/wiki/SMS_gateways" rel="noreferrer">SMS by emailing an addre... | <p>Use <a href="http://www.twilio.com/" rel="noreferrer">http://www.twilio.com/</a></p>
<p>They have a REST interface to send SMS's and even to establish phone calls or receive phone calls.</p>
<p>You even get 30$ credits to try it out.</p>
<p>Def. the cheapest solution you will find.</p>
| <p>Sorry, after re-reading your question i realized this is not the answer your looking for. However this is what i did for my command line program. There's a website where if you put in the telephone number it gives you the carrier. So when i entered my number it screen scraped the website, got the carrier and if the ... | 2,628 |
<p>I found an old Creaform3D EXAscan laying around at the company I work for, and tried to plug it on a computer to see if it still works. </p>
<p>I discovered that it uses a software called RapidForm for data acquisition, but its license is expired.</p>
<p>I looked in the manufacturer site for drivers or something s... | <p>The <a href="https://www.creaform3d.com/en/customer-support/legacy-products/exascan-scanner" rel="nofollow noreferrer">Creaform EXAscan</a> is according to the manufacturer a laser based machine. This means that it determines data points and their positions by some triangonometry done with a laser, 32.000 times a se... | <p>So if the original manufacturer still exists, <a href="https://www.creaform3d.com/en/customer-support/legacy-products/exascan-scanner" rel="nofollow noreferrer">(which they appear to, and even list your scanner under 'legacy' products)</a> your best chance of getting it working is going to be to contact them directl... | 868 |
<p>I can create the following and reference it using</p>
<pre><code>area[0].states[0]
area[0].cities[0]
var area = [
{
"State" : "Texas",
"Cities" : ['Austin','Dallas','San Antonio']
},
{
"State" :"Arkansas",
"Cities" : ['Little Rock','Texarkana','Hot... | <p>If you want to just create it that way to begin with, just say</p>
<pre><code>area = {
"Texas": ['Austin','Dallas','San Antonio']
}
</code></pre>
<p>and so on. If you're asking how to take an existing object and convert it into this, just say</p>
<pre><code>states = {}
for(var j=0; j<area.length; j++)
... | <p>This would give you the array of cities based on knowing the state's name:</p>
<pre><code>var area = {
"Texas" : ["Austin","Dallas","San Antonio"],
"Arkansas" : ["Little Rock","Texarkana","Hot Springs"]
};
// area["Texas"] would return ["Austin","Dallas","San Antonio"]
</code></pre>
| 8,179 |
<p>i have a wcf service that does an operation. and in this operation there could be a fault. i have stated that there could be a fault in my service contract. </p>
<p>here is the code below;</p>
<pre><code>public void Foo()
{
try
{
DoSomething(); // throws FaultException<FooFault>
... | <p>Are you consuming the WCF service from Silverlight? If so, a special configuration is needed to make the service return a HTTP 200 code instead of 500 in case of error. The details are here: <a href="http://msdn.microsoft.com/en-us/library/dd470096%28VS.96%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com... | <p>@yapiskan,</p>
<p>C# is a strong typed language Foo< X> != Foo. So if you need to catch some exception, provide <em>exact</em> type in <em>catch</em> clause.</p>
<p>You can learn more on exception handling reading <a href="http://msdn.microsoft.com/en-us/library/ms229005.aspx" rel="nofollow noreferrer">this</a>... | 7,076 |
<p>I'm trying to 3D print a lattice work or truss, basically some beams forming a rectangle and additional beams forming the diagonals and where those beams cross, they should be fused. So, something like this:</p>
<p><a href="https://i.stack.imgur.com/gdKj1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.img... | <h2>Yes you can!</h2>
<p>To have stronger prints you would have to choose the correct direction of filament deposition paths/traces. This answer demonstrates changing the direction of the filament path in Ultimaker Cura slicer.</p>
<p>To do this, it requires some tinkering of your model and choosing the correct slicer ... | <p>Have a look at <a href="https://www.reddit.com/r/3Dprinting/comments/pt80ap/new_3d_printing_slicer_geared_towards_highspeed/" rel="nofollow noreferrer">Chisel</a> infills there are very strength optimised, limitation is currently that they must be single line width, but multiple-lines thick infill will be supported ... | 2,025 |
<p>I've recently changed my Ender3's hotend to E3D v6 clone with Titan direct extruder, so I can print faster than on stock. But when I increased the speed up to 70 mm/s for walls and 80 mm/s for infill (PETG, nozzle temperature of 225 °C, bed temperature of 80 °C, 0.2 mm layer height, 0.4 mm layer width), I've faced t... | <p>In my experience, 225 °C is the lower range for PETG, that combined with a higher than normal printing speed of 70 mm/s might be your issue. The lower your print temps the lower the maximum nozzle flow rate. I would recommend increasing the nozzle temperature.</p>
<p>For a point of reference, on my printer with an E... | <p>In other words, your print exhibits issues when the hotend is accelerating, like if not enough filament were pushed in.</p>
<p>It is advised to calibrate for linear advance after replacing the extruder.</p>
<p>Check <a href="https://marlinfw.org/docs/features/lin_advance.html" rel="nofollow noreferrer">https://marli... | 1,998 |
<p>I need to print a rotor for a DC motor I'm designing. In the process of testing the behaviors of the motor performances, I would need a material that will not deform at a temperature range between 100 °C to 150 °C.</p>
<p>Since I don't have a 3D printer yet, I would like to know what would be the best choice for my ... | <p>PEEK (poly ether ether ketone) has a glass transition temperature of 145 °C (293 °F).</p>
<p>Melting temperature
345 °C (653 °F)</p>
<p>Nozzle temperature
370 - 410 °C</p>
<p>Heated bed
120 - 150 °C</p>
<hr />
<p>Polycarbonate has a glass transition temperature of about 147 °C (297 °F)</p>
<hr />
<p>Polypropylen... | <p>Using an Ender 3 for high temperature materials is possible but you need to enclose it to be able to heat the air up to 100 °C.</p>
<p>It's quite involved and it would be much better, if it's something you do seldomly, to have the parts printed professionally.</p>
<p>Many thing start warping or breaking at 100 °C.</... | 1,844 |
<p>I've seen lots of examples of making an entire regular expression case-insensitive. What I'm wondering about is having just part of the expression be case-insensitive.</p>
<p>For example, let's say I have a string like this:</p>
<pre><code>fooFOOfOoFoOBARBARbarbarbAr
</code></pre>
<p>What if I want to match all ... | <p>Perl lets you make part of your regular expression case-insensitive by using the (?i:) pattern modifier.</p>
<p>Modern regex flavors allow you to apply modifiers to only part of the regular expression. If you insert the modifier (?ism) in the middle of the regex, the modifier only applies to the part of the regex t... | <p>You could use </p>
<pre><code>(?:F|f)(?:O|o)(?:O|o)
</code></pre>
<p>The ?: in the brackets in .Net means it's non-capturing, and just used to group the terms of the | (or) statement.</p>
| 6,522 |
<p>I can create a menu item in the Windows Explorer context menu by adding keys in the registry to <strong>HKEY_CLASSES_ROOT\Folder\shell</strong>.</p>
<p>How can I create submenu items to the just created menu item?</p>
| <p>First and foremost - backup everything! The databases, the machine itself... You can never be too careful.</p>
<p>I was able to upgrade the TFS installation at my company by using these resources:</p>
<p><a href="http://olausson.net/blog/CommentView,guid,6f97b619-a5ac-41af-a908-f099d49a3b16.aspx" rel="nofollow nor... | <p>Simply, follow the guidance in the Install document for TFS 2008 - It has an upgrade section. It talks about backing up databases and so on already. The instructions are clear and layed out well. </p>
| 6,085 |
<p>So I have an object which has some fields, doesn't really matter what.
I have a generic list of these objects.</p>
<pre><code>List<MyObject> myObjects = new List<MyObject>();
myObjects.Add(myObject1);
myObjects.Add(myObject2);
myObjects.Add(myObject3);
</code></pre>
<p>So I want to remove objects from my... | <p>There's two options, an explicit delegate or a delegate disguised as a lamba construct:</p>
<p>explicit delegate</p>
<pre><code>myObjects.RemoveAll(delegate (MyObject m) { return m.X >= 10; });
</code></pre>
<p>lambda</p>
<pre><code>myObjects.RemoveAll(m => m.X >= 10);
</code></pre>
<hr />
<p>Performance wi... | <p>Predicate is a delegate which takes an param and returns a boolean.</p>
<p>We can do the same in following ways</p>
<p>1) <strong>Using inline Lambda expression</strong></p>
<pre><code>RemoveAll(p=> p.x > 2);
</code></pre>
<p>2) <strong>Using anonymous function</strong></p>
<pre><code>RemoveAll(delegate(m... | 8,366 |
<p>I find that white filaments are quite translucent and printing 5 layers of white filament onto 2 layers of black filament (at 0.2 mm layers, the white layers being 100% infilled and the underlying black layer covering about 85% of the whole area) produces a slightly grey color on the top.</p>
<p>Is that a limitatio... | <p>This could be caused by under extrusion, often caused by the bed being too close to the hot end / extruder nozzle. You could try to relevel the bed, or change the screws so that the bed moves down slightly. Often when levelling, you want to feel slight resistance when sliding a piece of paper between the bed an the ... | <p>This could be caused by under extrusion, often caused by the bed being too close to the hot end / extruder nozzle. You could try to relevel the bed, or change the screws so that the bed moves down slightly. Often when levelling, you want to feel slight resistance when sliding a piece of paper between the bed an the ... | 1,684 |
<p>I am merging a CVS branch and one of the larger changes is the replacement wherever it occurs of a Singleton pattern with abstract classes that have a static initialisation block and all static methods.</p>
<p>Is this something that's worth keeping since it will require merging a lot of conflicts, what sort of situ... | <p>From a strict runtime performance point of view, the difference is really negligible. The main difference between the two lies down in the fact that the "static" lifecycle is linked to the classloader, whereas for the singleton it's a regular instance lifecycle. Usually it's better to stay away from the ClassLoader ... | <p>Does this discussion help? (I don't know if it's taboo to link to another programming forum, but I'd rather not just quote the whole discussion =) )</p>
<p><a href="http://forums.sun.com/thread.jspa?threadID=5221231&messageID=9898827" rel="nofollow noreferrer">Sun Discussion on this subject</a></p>
<p>The ver... | 4,790 |
<p>Does anyone know how to get IntelliSense to work reliably when working in C/C++ projects? It seems to work for about 1 in 10 files. Visual Studio 2005 seems to be a lot better than 2008.</p>
<p>Edit: Whilst not necessarily a solution, the work-around provided here: </p>
<p><a href="https://stackoverflow.com/questi... | <p>I've also realized than Intellisense is sometime 'lost', on some big project. Why? No idea.</p>
<p>This is why we have bought <a href="http://www.wholetomato.com/" rel="noreferrer">Visual Assist</a> (from <a href="http://www.wholetomato.com/" rel="noreferrer">Tomato software</a>) and disabled Intellisense by deleti... | <p>About this problem i've notice something interesting (on Visual Studio 2010):
to solve this problem i've changed <code>#include</code> sintax in my header files, before was (old project done with VS 2005 and reopened using VS 2010):</p>
<pre><code>#include <myfile.h>
</code></pre>
<p>and i fix this with:</p... | 6,054 |
<p>I am new to Fusion 360 and I think I'm going straight to something complicated. Is there a way to make a nose cone for a model rocket? What tools would one you to accomplish this?</p>
| <p>If you have a specific shape in mind and can create a sketch to represent that shape, you are halfway to your goal.</p>
<p>The concept is simple. Create a single line sketch that would represent the desired curve, starting from, in this example, the nose of the cone and traveling to the base. Create only one-half o... | <p>Try model8ng the rocket into the workspace, and then you can extruder a nose cone from the top using a 30 degree angle</p>
| 696 |
<p>I have a class with a <code>ToString</code> method that produces XML. I want to unit test it to ensure it is producing valid xml. I have a DTD to validate the XML against. </p>
<p><strong>Should I include the DTD as a string within the unit test to avoid a dependency</strong> on it, or is there a smarter way to do ... | <p>If your program validates the XML against the DTD during normal execution, then you should just get the DTD from wherever your program will get it.</p>
<p>If not and the DTD is extremely short (only a few lines), then storing it as a string in your code is probably okay.</p>
<p>Otherwise, I'd put it in an external... | <p>Using a DTD in the unit test to test its validity is one thing, testing for the correct content is another.</p>
<p>You can use the DTD to check for the validity of the generated xml which I would simply read the way you do in your program. I personally would not include it inline (as a String); there is always a de... | 7,496 |
<p>I am developing a web page code, which fetches dynamically the content from the server and then places this content to container nodes using something like</p>
<pre><code>container.innerHTML = content;
</code></pre>
<p>Sometimes I have to overwrite some previous content in this node. This works fine, until it happ... | <p>The easiest solution that I have found would be to place an anchor tag <code><a></code> at the top of the <code>div</code> you are editing:</p>
<pre><code><a name="ajax-div"></a>
</code></pre>
<p>Then when you change the content of the <code>div</code>, you can do this to have the browser jump to... | <p>It sounds like you are having a problem with the browser itself. Does this problem only occur in one browser?</p>
<p>One thing you might try is using a lightweight library like <a href="http://jquery.com/" rel="nofollow noreferrer">jQuery</a>. It handles browser differences fairly nicely. To set the inner HTML f... | 8,913 |
<p>On a PHP-based web site, I want to send users a download package after they have filled out a short form. The site-initiated download should be similar to sites like download.com, which say "your download will begin in a moment."</p>
<p>A couple of <strong>possible approaches</strong> I know about, and browser comp... | <p>You can also do a meta refresh, which most browsers support. Download.com places one in a noscript tag.</p>
<pre><code><meta http-equiv="refresh" content="5;url=/download.php?doc=123.zip"/>
</code></pre>
| <p>How about changing the location to point to the new file? (e.g. by changing window.location)</p>
| 8,551 |
<p>I've got a number of non-technical users that all share a set of project files. It would be ideal to have them using version control, but I think that both subversion and git are too technical for non-technical office staff.</p>
<p>Is there any distributed source control software that would work well for normal pe... | <p>If source control is too technical they can use <a href="http://svnbook.red-bean.com/en/1.2/svn.webdav.autoversioning.html" rel="noreferrer">Subversion with WebDav</a>.</p>
<p>The less technical people will just save files normally from whatever application they use, without worrying/thinking about source control.... | <p>Have you tried Adobe's version cue? This is not open source / free but it may be easier to use for the end-user.</p>
<p><a href="http://www.adobe.com/products/creativesuite/versioncue/" rel="nofollow noreferrer">http://www.adobe.com/products/creativesuite/versioncue/</a></p>
| 7,291 |
<p>Acetone is banned in my country, and I cannot get it.</p>
<p>What substitute could I use?</p>
| <p>The answer really depends on what you are using it for. Is it for dissolving ABS? A <a href="https://www.google.com/search?q=accetone%20substitute" rel="nofollow noreferrer">quick google search</a> should show you what you want.</p>
<p>The thread, <a href="https://www.researchgate.net/post/Could_you_recommend_me_a_... | <p>I have used DCM (dichloromethane, or ethylene dichloride) to dissolve ABS (or cold-weld/glue parts together).</p>
<p>From <a href="https://en.wikipedia.org/wiki/Acrylonitrile_butadiene_styrene" rel="nofollow noreferrer">ABS wikipedia page</a>: </p>
<blockquote>
<p><strong>ABS polymers</strong> are resistant to a... | 605 |
<p>How do I get today's date in C# in mm/dd/yyyy format?</p>
<p>I need to set a string variable to today's date (preferably without the year), but there's got to be a better way than building it month-/-day one piece at a time.</p>
<p>BTW: I'm in the US so M/dd would be correct, e.g. September 11th is 9/11.</p>
<p><... | <pre><code>DateTime.Now.ToString("M/d/yyyy");
</code></pre>
<p><a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx</a></p>
| <p>Or without the year:</p>
<pre><code>DateTime.Now.ToString("M/dd")
</code></pre>
| 5,275 |
<p>Not entirely sure what's going on here; any help would be appreciated.</p>
<p>I'm trying to create a new .NET MVC web app. I was pretty sure I had it set up correctly, but I'm getting the following error:</p>
<pre><code>The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly
'C:\MyProject\bin... | <p>Are you using a CodeBehind file, I don't see CodeBehind="" attribute where you are specifying the Inherits from? Then you have to point inherits to the class name of the codebehind.</p>
<p>Example:</p>
<pre><code><%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehi... | <p>No this should be a structural error message.</p>
<p>Check <a href="http://trikks.wordpress.com/2011/08/26/the-type-is-ambiguous-it-could-come-from-assembly-or-from-assembly-please-specify-the-assembly-explicitly-in-the-type-name/" rel="nofollow">http://trikks.wordpress.com/2011/08/26/the-type-is-ambiguous-it-could... | 7,107 |
<p>I'm trying to script the shutdown of my VM Servers in a .bat.
if one of the vmware-cmd commands fails (as the machine is already shutdown say), I'd like it to continue instead of bombing out.</p>
<pre><code>c:
cd "c:\Program Files\VMWare\VmWare Server"
vmware-cmd C:\VMImages\TCVMDEVSQL01\TCVMDEVSQL01.vmx suspend s... | <p>Run it inside another command instance with <code>CMD /C</code></p>
<pre><code>CMD /C vmware-cmd C:\...
</code></pre>
<p>This should keep the original BAT files running.</p>
| <p>You could write a little Program that executes the command an returns a value (say -1 for an error). This value can then be used in your Batch-File.</p>
| 9,994 |
<p>In Perl, an object is just a reference to any of the basic Perl data types that has been blessed into a particular class. When you use the ref() function on an unblessed reference, you are told what data type the reference points to. However, when you call ref() on a blessed reference, you are returned the name of... | <p><code>Scalar::Util::reftype()</code> is the cleanest solution. The <a href="http://search.cpan.org/dist/Scalar-List-Utils/lib/Scalar/Util.pm" rel="noreferrer"><code>Scalar::Util</code></a> module was added to the Perl core in version 5.7 but is available for older versions (5.004 or later) from CPAN.</p>
<p>You can... | <p>And my first thought on this was: "Objects in Perl are always hash refs, so what the hack?"</p>
<p>But, Scalar::Util::reftype is the answer. Thanks for putting the question here.</p>
<p>Here is a code snippet to prove this.. (in case it is of any use to anyone).</p>
<pre>
$> perl -e 'use strict; use warnings "all... | 3,226 |
<p>Is there a way to change the appearance of an icon (ie. contrast / luminosity) when I hover the cursor, without requiring a second image file (or without requiring a hidden portion of the image)?</p>
| <p><a href="http://www.w3schools.com/css/css_image_transparency.asp" rel="nofollow noreferrer">Here's some good information about image opacity and transparency with CSS</a>.</p>
<p>So to make an image with opacity 50%, you'd do this:</p>
<pre><code><img src="image.png" style="opacity: 0.5; filter: alpha(opacity=5... | <p>The way I usually see things done with smaller images such as buttons it that only a certain portion of the image is shown. Then many states of the picture will make up a larger picture which gets shifted around behind the visible port. I'll delete this when someone has code.</p>
| 8,516 |
<p>I am receiving a message from a commercial program stating that the "LogMessage" stored procedure is not found. There does not appear to be a stored procedure called LogMessage in the associated MS SQLServer 2000 database. What can I do to track down the missing procedure, other than calling the company?</p>
| <p>The reason you couldn't find it is because it's not there. Unless you have the original proc, you're going to have to call the company.</p>
<p>Granted, you could take a stab at creating the proc, yourself. But why bother when somebody already has the original proc?</p>
<p>Is this a fresh install of the commercia... | <p>LogMessage seems pretty self-explanatory. You could probably take a stab at creating one yourself just to see what happens, if you can't easily get the real thing.</p>
<p>Create a new table called LoggedMessages and just insert to the table when the proc is called. Then see what pops in.</p>
<p>Kind of hacky, bu... | 9,972 |
<p>I was reading <a href="https://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage">this question</a> about how to parse URLs out of web pages and had a question about the <a href="https://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage#6183">acce... | <p>@<a href="https://stackoverflow.com/questions/13470/question-about-specific-regular-expression#13479">Rob</a>: I disagree. To enforce what you are asking for I think you would need to use negative-look-behind, which is possible but is certainly not related to use {1}. Neither version of the regexp address that par... | <p>I don't think it has any purpose. But because RegEx is almost impossible to understand/decompose, people rarely point out errors. That is probably why no one else pointed it out. </p>
| 3,439 |
<p>I'm wondering how you can implement a program similar to <code>tail -f</code> in C/C++, a program that watches for and processes new lines added to a log file?</p>
| <p>You can use fseek() to clear the eof condition on the stream. Essentially, read to the end of the file, sleep for a while, fseek() (without changing your position) to clear eof, the read to end of file again. wash, rinse, repeat. man fseek(3) for details.</p>
<p>Here's what it looks like in perl. perl's seek() ... | <p><a href="https://stackoverflow.com/questions/18632/how-to-monitor-a-text-file-in-realtime#18635">See here</a></p>
<p>You could either call out to tail and retrieve the stream back into your app, or as it's open source, maybe try to pull it into your own code.</p>
<p>Also, it is possible in C++ iostream to open a f... | 4,240 |
<p>I've recently purchased an Ender 3 and have had great success with some Cura settings found on a YouTube Tutorial at 0.2 mm resolution.</p>
<p>So then I noticed that there were default settings in Cura for the Ender 3. Except printing at 0.2 mm it selects a 20 % infill, and when choosing 0.1 mm it changed the infill... | <p>The more infill, the more material. The more material, the more stress is inside the part while it cools down from printing temperature to ambient temperature. Parts with higher infill density tend to warp more (the edges curl up).</p>
<p>But 20 % should be fine, you shouldn't have any issue at that percentage (unle... | <p>Basically you have 2 issues, first, an adhesion in combination with layer thickness problem, second, an infill problem.</p>
<p>Starting with the infill issue, when you lower the layer height, without increasing the amount of layers for the "Top/Bottom Thickness", you get a very thin shell (unless the top b... | 1,110 |
<p>I'm having a problem getting a clean first layer on an Ender 3 with BLTouch auto bed leveling. Thickness seems to fluctuate all over the bed, but in a consistent (repeatable) way. Here's my attempt to print a <a href="https://www.thingiverse.com/thing:2187071" rel="nofollow noreferrer">single layer 5 square bed cali... | <p>This turned out to be a problem with the tightness of the rollers at the left and right sides of the X-axis gantry (that roll up and down the Z rails).</p>
<p>Z-axis motion is driven by a single stepper motor on the left side, so the rollers have to be just the right amount of tight to keep the right side in sync. I... | <p>Two things:</p>
<ol>
<li>Did you bring the bed up to operating temperature to do the levelling (manual or automatic). The metal & glass will expand/warp at different levels depending on temp.</li>
<li>Check your G-code to make sure it is not doing a <code>G28</code> (auto home). That turns off auto-levelling. I... | 1,544 |
<p>I've started to work a bit with master pages for an ASP.net mvc site and I've come across a question. When I link in a stylesheet on the master page it seems to update the path to the sheet correctly. That is in the code I have</p>
<pre><code><link href="../../Content/Site.css" rel="stylesheet" type="text/css"... | <pre><code><script src="<%= ResolveClientUrl("~/Content/menu.js") %>" type="text/javascript"></script>
</code></pre>
| <p>Use this instead:</p>
<pre><code><link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
</code></pre>
| 9,011 |
<p>I know there are at least 10 different ways to structure project in version control. I'm curious what some methods being used are and which ones work for you. I've worked with SVN, TFS, and currently/unfortunately VSS. I've seen version control implemented very poorly and just OK, but never great.</p>
<p>Just to ... | <p>Example for SVN: </p>
<p>trunk/</p>
<p>branch/</p>
<p>tags/</p>
<p>The trunk should be kept at a point where you can always push a release from it. There should be no huge gaping bugs that you know about(of course there will be eventually but that is what you should strive for). </p>
<p>Every time you need to m... | <p>We migrated from the bad world of VSS with one giant repository (over 4G) before switching to SVN. I really struggled with how to set up the new repository for our company. Our company is very "old" school. It's difficult to get change I'm one of the younger developers and I'm 45! I am part of a corporate develo... | 3,752 |
<p>Can I Print models from Sources like <a href="https://www.thingiverse.com/" rel="noreferrer">Thingiverse</a> and sell them ?
I will be only charging the print costs and will provide full credits and attributes to the original creator of the model (with links to their profiles) in my web-page.</p>
<p>There are websi... | <p>I've informed myself a bit about this and found out the following:</p>
<p><strong>It is good that you state the Name/Website or any Reference about original creator</strong>
Creative Commons absolutely requires this, even if you don't charge anything for your prints.
So, whether you are trying selling your print or... | <p>According to <a href="https://www.publicknowledge.org/files/What%27s%20the%20Deal%20with%20Copyright_%20Final%20version2.pdf" rel="nofollow noreferrer">Weinberg, 2013</a>, artistic works are copyrightable: if you're printing an action figure or such a useless pretty piece of art, it's protected by copyright.</p>
<p... | 1,150 |
<p>Caveat: I'm relatively new to coding as well as <a href="http://macromates.com/" rel="nofollow noreferrer">TextMate</a>, so apologies if there is an obvious answer I'm missing here.</p>
<p>I do a lot of HTML/CSS markup, there are certain patterns that I use a lot, for example, forms, navigation menus etc. What I wo... | <p>You can do this very easily in TextMate using <a href="http://manual.macromates.com/en/snippets" rel="nofollow noreferrer">Snippets</a>. Just add a new snippet in the bundle editor, and set up how you want to trigger it. You can set a key shortcut, or have it pop up when you hit <code>Tab</code> after a certain word... | <p>As mentioned prior snippets are what you are looking for.</p>
<p>For reference look here:
<a href="http://manual.macromates.com/en/snippets" rel="nofollow noreferrer">http://manual.macromates.com/en/snippets</a><br>
<a href="http://screenflicker.com/mike/code/div-snippets/" rel="nofollow noreferrer">http://screenf... | 6,557 |
<p>I've used TinkerCAD (<a href="https://www.tinkercad.com/" rel="nofollow noreferrer">https://www.tinkercad.com/</a>) and was able to easily model objects for 3D printing, despite having no prior experience in 3D modeling.
However it needs to be connected to the internet to work, which is not always available at my lo... | <p>I have used a standard soldering iron to modify and fix 3D prints in the past. You have to keep some things in mind when doing so:</p>
<ul>
<li>Don't overheat your material. PLA can take a soldering iron of about 230 °C before charring.</li>
<li>Don't use a tip with solder, or you will get grey deposits in the plast... | <p>Cutting materials with a 'hot knife' isn't anything new. There should be a fairly established toolset for working foam. For 3D prints, I prefer to add coatings rather than modify surfaces with a hand held tool after. I do run a drill bit through printed holes though.</p>
| 1,912 |
<p>We have hundreds of websites which were developed in asp, .net and java and we are paying lot of money for an external agency to do a penetration testing for our sites to check for security loopholes.
Are there any (good) software (paid or free) to do this? </p>
<p>or.. are there any technical articles which can h... | <p>There are a couple different directions you can go with automated testing tools for web applications.</p>
<p>First, there are the <strong>commercial web scanners</strong>, of which HP WebInspect and Rational AppScan are the two most popular. These are "all-in-one", "fire-and-forget" tools that you download and inst... | <p><a href="https://www.mcafeesecure.com/" rel="nofollow noreferrer">formerly hackersafe McAfee Secure.</a></p>
| 9,776 |
<p>Sometimes supports are very difficult to remove (physically) when I print with ABS. The image below, from <a href="https://www.thingiverse.com/thing:1613957" rel="nofollow noreferrer">Thingiverse - MOF-5 unit cell</a>, is after significant effort to remove the yellow ABS supports from a black ABS model.</p>
<p><a h... | <p>I've had great success printing with HIPS (high-impact polystyrene) as a support for both PLA and ABS. Most sites recommend it for use with ABS because the materials melt at similar temperatures and work best with heated beds, but I've had good luck using it as a support material with PLA on a bed at 60°C. It doesn'... | <p>While I haven't used PVA yet, think of it this way, it may be 4x the cost but you use significantly less material for support structures even if you have a lot of support.</p>
| 606 |
<p>I have designed a cupholder for my center console in my truck with PETG. I was hoping it wouldn't deform and it didn't for a while but we got some high temperatures the past few days (around 32-38 °C or 90-100 °F).</p>
<p>Kind of figured it wouldn't hold up mid-summer but I was wondering if ABS would be my next best... | <p>ABS, or preferably ASA which is "a better ABS", is probably your main option. ASA holds up better under UV/sunlight and is easier to print (less warping). Like ABS it should be printed with ventilation, and benefits some from an enclosure but can be done without it or with a primitive one (cardboard box).<... | <p>Personally, I'd get the design <em>just right</em> and then I'd use the "Get an Instant Quote" option on the "Solutions" menu at shapeways.com . It'll be expensive, but you could have it printed in sintered powdered stainless steel or aluminum. You'll want to design as many voids into it as you c... | 1,993 |
<p>We're currently building an application that executes a number of external tools. We often have to pass information entered into our system by users to these tools.</p>
<p>Obviously, this is a big security nightmare waiting to happen.</p>
<p>Unfortunately, we've not yet found any classes in the .NET Framework tha... | <p>Are you executing the programs directly or going through the shell? If you always launch an external program by giving the full path name to the executable and leaving the shell out of the equation, then you aren't really susceptible to any kind of command line injection.</p>
<p>EDIT: DrFloyd, the shell is respons... | <p>Well, if you can invoke the tools programmatically without the command line, that would probably be your best option. Otherwise, you could potentially execute the command line tool via a user that has absolutely no access to do anything (except perhaps a single directory that they can't do any harm with)... though ... | 6,658 |
<p>One simple method I've used in the past is basically just creating a second table whose structure mirrors the one I want to audit, and then create an update/delete trigger on the main table. Before a record is updated/deleted, the current state is saved to the audit table via the trigger.</p>
<p>While effective, t... | <p>How much writing vs. reading of this table(s) do you expect?</p>
<p>I've used a single audit table, with columns for Table, Column, OldValue, NewValue, User, and ChangeDateTime - generic enough to work with any other changes in the DB, and while a LOT of data got written to that table, reports on that data were spa... | <p>Are there any built-in audit packages? Oracle has a nice package, which will even send audit changes off to a separate server outside the access of any bad guy who is modifying the SQL.</p>
<p>Their example is awesome... it shows how to alert on anybody modifying the audit tables.</p>
| 2,587 |
<p>What is the fastest, easiest tool or method to convert text files between character sets?</p>
<p>Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.</p>
<p>Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc.</p>
<h2>Best... | <p><a href="http://linux.die.net/man/1/iconv" rel="noreferrer">Stand-alone utility</a> approach</p>
<pre class="lang-none prettyprint-override"><code>iconv -f ISO-8859-1 -t UTF-8 in.txt > out.txt
</code></pre>
<pre class="lang-none prettyprint-override"><code>-f ENCODING the encoding of the input
-t ENCODING the e... | <p>As described on <a href="https://stackoverflow.com/questions/132318/how-do-i-correct-the-character-encoding-of-a-file">How do I correct the character encoding of a file?</a> <a href="http://www.synalysis.net" rel="nofollow noreferrer">Synalyze It!</a> lets you easily convert on OS X between all encodings supported b... | 9,052 |
<p>Does anyone have a definitive answer to whether <a href="http://msdn.microsoft.com/en-us/library/ms162557.aspx" rel="nofollow noreferrer">Sql Server Management Objects</a> is compatible with Sql Server 7.0?
The docs state:</p>
<blockquote>
<p>Because SMO is compatible with SQL Server version 7.0, SQL Server 2000,... | <p><em>you can use SMO to connect to SQL Server versions 7, 2000, and 2005, but SMO does not support databases set to compatibility levels 60, 65, and 70.</em></p>
<p>for SQL Server 7.0 the compatibility level is 70</p>
<p>Obviously this is conflicting information...I assume if your compatibility level of your DB is ... | <p>Sorry for the late answer... there is <a href="http://msdn.microsoft.com/en-us/library/ms162130(SQL.90).aspx" rel="nofollow noreferrer">partial support</a> for SQL 2000 and SQL 7</p>
| 5,349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.