instruction stringlengths 27 22.5k | chosen stringlengths 27 28.2k | rejected stringlengths 19 24.9k | __index_level_0__ int64 0 10k |
|---|---|---|---|
<p>I'm writing a utility for myself, partly as an exercise in learning C# Reflection and partly because I actually want the resulting tool for my own use.</p>
<p>What I'm after is basically pointing the application at an assembly and choosing a given class from which to select properties that should be included in an ... | <p>Couple of options here:</p>
<ol>
<li>Attach to <code>AppDomain.AssemblyResolve</code> and do another <code>LoadFile</code> based on the requested assembly.</li>
<li>Spin up another <code>AppDomain</code> with the directory as its base and load the assemblies in that <code>AppDomain</code>.</li>
</ol>
<p>I'd highly... | <p>I worked out <a href="https://stackoverflow.com/users/5380/kent-boogaart">Kent Boogaart</a>'s second option.
Essentially I had to:</p>
<p>1.) Implement the <code>ResolveEventHandler</code> in a separate class, inheriting from <code>MarshalByRefObject</code> and adding the <code>Serializable</code> attribute.</p>
<... | 8,377 |
<p>I've got a table that is supposed to track days and costs for shipping product from one vendor to another. We (brilliantly :p) stored both the shipping vendors (FedEx, UPS) with the product handling vendors (Think... Dunder Mifflin) in a "VENDOR" table. So, I have three columns in my SHIPPING_DETAILS table that all ... | <p>You defined the primary key twice. Try:</p>
<pre><code>CREATE TABLE SHIPPING_GRID(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Unique ID for each row',
shipping_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to VENDOR.no for the shipping vendor (vendors_type must be 3)',
start_vendor_no IN... | <p>I ran the code here, and the error message showed (and it is right!) that you are setting <em>id</em> field twice as primary key.</p>
| 2,809 |
<p>Has the introduction of the .net framework made raw programming in COM and DCOM redundant ? </p>
<p>(Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)</p>
| <p>Not yet, because the OS is still unmanaged.</p>
<p>If MS finally do what their labs have been talking about for years and produce a fully managed OS then it will.</p>
<p>That OS won't be backwards compatible though. They would have to produce managed versions of Office, IE, etc first. They will have to produce a v... | <p>.NET has been deliberately designed to replace COM (and, consequently, DLL Hell) so while .NET applications still can access COM components, all new development are encouraged to move to .NET except if you have a very good reason to stick with COM.</p>
| 5,449 |
<p>I need to know the application's ProductCode in the Installer.OnCommitted callback. There doesn't seem to be an obvious way of determining this.</p>
| <p>You can avoid hardcoding your product code, using /productCode=[ProductCode] in your CustomActionData property.</p>
| <p>The MSI function MsiGetProperty can be used to get the name of the ProductCode property. I don't know if that would work in this case, since I've never created a .NET installer.</p>
| 8,615 |
<p>I'm implementing a document server. Currently, if two users open the same document, then modify it and save the changes, the document's state will be undefined (either the first user's changes are saved permanently, or the second's). This is entirely unsatisfactory. I considered two possibilities to solve this probl... | <p>My suggestion would be something like your first one. When the first user (Bob) opens the document, he acquires a lock so that other users can only read the current document. If the user saves the document while he is using it, he keeps the lock. Only when he exits the document, it is unlocked and other people can e... | <p>Currently documents are published by a limited group of people, each of them working on a separate subject. So, the inconvenience introduced by locks is minimized.
People mostly extend existing documents and correct mistakes in them.</p>
<p>Speaking about the pessimistic model, the 'left client connected for N days... | 3,107 |
<p>Suppose I've found a “text” somewhere in open access (say, on public network share). I have no means to contact the author, I even don't know who is the author.</p>
<p>What can I legally do with such “text”?</p>
<p><strong>Update:</strong> I am not going to publish that “text”, ... | <p>IANAL: There is no license. The original author (whoever it may be) retains copyright and all the rights associated with it, and has not granted any explicit license to anyone to do anything with their work. Please do check with an actual lawyer versed in copyright, though, since it seems like there should be a way ... | <p>As far as I <em>know</em> (without any legal training) - if you list the text or code or whathaveyou as "anonymous", you're OK. </p>
<p>I believe that by listing it as anonymous you're indicating you do not know where it came from, but you're admitting you didn't create it as original work.</p>
<p>Extending from t... | 9,623 |
<p>I have a project group that contains a project I'm working on as well as some related component and packages. I prefer to keep the database links active during design-time. </p>
<p>I know how to write the code which would change the database file location, but in this case, I'm just using <code>".\data"</code> inst... | <p>I have some projects in delphi7, Delphi2009, Delphi2010 and DelphiXE4 and also my project are not stored in my document.
I force the save/default like this:</p>
<p>Tools > Options > Environment Options > Default project</p>
<p>for Delphi 2010 => U:\Projects\Rad Studio 2010\Projects</p>
| <p>Tools -> Options -> Environment Options -> Environment Variables - BDSProjectsDir</p>
| 3,598 |
<p>How would I get the <code>here</code> and <code>and here</code> to be on the right, on the same lines as the lorem ipsums? See the following:</p>
<pre class="lang-none prettyprint-override"><code>Lorem Ipsum etc........here
blah.......................
blah blah..................
blah.......................
... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><div style="position: relative; width: 250px;">
<div style="position: absolute; top: 0; right: 0; width: 100px; t... | <p>The first line would consist of 3 <code><div></code>s. One outer that contains two inner <code><div></code>s. The first inner <code><div></code> would have <code>float:left</code> which would make sure it stays to the left, the second would have <code>float:right</code>, which would stick it to the... | 9,129 |
<p>I have started printing with PETG so I can create objects that won't deform if I leave them in my car.</p>
<p>My first prints look good, but have strings of material coming off the print in places.</p>
<p>What should I try to prevent that? </p>
<p>I haven't had this problem with PLA. </p>
| <p>I've had similar experiences switching from PLA to PETG, and haven't gotten it fully figured out yet.</p>
<p>From what I know so far, to reduce petg strings:</p>
<ul>
<li>Increase retraction</li>
<li>Lower temperature</li>
</ul>
| <p>I've had similar experiences switching from PLA to PETG, and haven't gotten it fully figured out yet.</p>
<p>From what I know so far, to reduce petg strings:</p>
<ul>
<li>Increase retraction</li>
<li>Lower temperature</li>
</ul>
| 671 |
<p>I have really strange problem. Thing is that my print (first layer) started ok, not good nor perfect but ok and everything was going well but then all of a sudden, near the end of a print, quality drops drastically. I'm not really sure but I think this happened because of under extrusion. I'm not so good with Englis... | <blockquote>
<p>Do anyone have any ideas? What this can be? How can I fix this?</p>
</blockquote>
<p>At least judging from the pictures, that <em>does</em> seem like under-extrusion. Some ideas for further investigating the issue.</p>
<p><strong>The problem may be due to the gcode being wrong</strong>. In this ca... | <p>You can try to reduce your retractions (try setting it to half what it is now and try again)</p>
<p>If your retraction is too big you can pull hot plastic into the cold area of the hotend and create a partial clog - this happened to me yesterday when I tried to intentionally print with way too much retraction to ma... | 786 |
<p>As part of a larger web-app (using CakePHP), I'm putting together a simple blog system. The relationships are exceedingly simple: each User has a Blog, which has many Entries, which have many Comments.</p>
<p>An element I'd like to incorporate is a list of "Popular Entries." Popular Entries have been defined as tho... | <p>Heh, I was just about to come back with essentially the same answer (using Cake's Model::find):</p>
<pre><code>$this->loadModel('Comment');
$this->Comment->find( 'all', array(
'fields' => array('COUNT(Comment.id) AS popularCount'),
'conditions' => array(
'Comment.created >' => ... | <p>You probably want a <strong>WHERE</strong> clause to get just last 30 days comments:</p>
<pre><code>SELECT entry-id, count(id) AS c
FROM comment
WHERE comment_date + 30 >= sysdate
GROUP BY entry-id
ORDER BY c DESC
</code></pre>
| 7,612 |
<p>Does anyone know of a web based IDE (Like VS, Eclipse, IDEA)?</p>
<p>Besides <a href="http://ecco.sourceforge.net/" rel="noreferrer">ECCO</a>?</p>
| <p><a href="http://shiftedit.net/" rel="noreferrer">ShiftEdit Web Based IDE</a></p>
| <p>Try <a href="http://phpanywhere.net" rel="nofollow noreferrer">PHPAnywhere.net</a></p>
| 6,217 |
<p>I'm trying to use “rusage” statistics in my program to get data similar to that of the <a href="http://en.wikipedia.org/wiki/Time_%28Unix%29" rel="nofollow noreferrer">time</a> tool. However, I'm pretty sure that I'm doing something wrong. The values seem about right but can be a bit weird at times. I didn't find go... | <p>What is the purpose of:</p>
<pre><code>while (usec >= 1000)
usec /= 10;
</code></pre>
<p>I gather that you want the most significant three digits of the usec; in that case, the most straightforward way I can think of is to divide usec by 1000, and be done with that.</p>
<p>Test cases:</p>
<ul>
<li>999999 ... | <p>I think there's probably a bug somewhere in your composition of sec and usec. I can't really say what exactly without knowing the kinds of errors you're seeing. A rough guess would be that usec can never be > 999999, so you're relying on overflow to know when to adjust sec. It could also just be a problem with your ... | 4,395 |
<p>Conventional wisdom states that stored procedures are always faster. So, since they're always faster, use them <strong>ALL THE TIME</strong>.</p>
<p>I am pretty sure this is grounded in some historical context where this was once the case. Now, I'm not advocating that Stored Procs are not needed, but I want to know... | <blockquote>
<p><strong>NOTE</strong> that this is a general look at stored procedures not regulated to a specific
DBMS. Some DBMS (and even, different
versions of the same DBMS!) may operate
contrary to this, so you'll want to
double-check with your target DBMS
before assuming all of this still holds.</p>
... | <p>Reduced network traffic -- SP are generally worse then Dynamic SQL. Because people don't create a new SP for every select, if you need just one column you are told use the SP that has the columns they need and ignore the rest. Get an extra column and any less network usage you had just went away. Also you tend to... | 8,464 |
<p>We are migrating our works repository so I want to do a cull of all the unreferenced files that exist in the source tree before moving it into the nice fresh (empty) repository.</p>
<p>So far I have gone through by hand and found all the unreferenced files that I know about but I want to find out if I have caught t... | <p>You've tagged this post with <strong>c++</strong>, so I'm assuming that's the language in question. If that's the only thing that's in the repository then it shouldn't be too hard to grep all files in the repository for each filename to give you a good starting point. If the repository contains other files (metadata... | <p>A static source code analysis tool like lint might do the job. They will tell you if a piece of code will never be called.</p>
| 7,465 |
<p>Ok, so my method in my webservice requires a type to be passed, it is called in the ServiceMethod property of the AutoCompleteExtender, I am fuzzy about how I should do that so I called it like this:</p>
<pre><code>ServiceMethod="DropDownLoad<<%=(typeof)subCategory%>>"
</code></pre>
<p>where subCategor... | <p>I dont' think calling a Generic Method on a webservice is possible.</p>
<p>If you look at the service description of two identical methods, one generic, one not:</p>
<pre><code>[WebMethod]
public string[] GetSearchList(string prefixText, int count)
{
}
[WebMethod]
public string[] GetSearchList2<T>(string pr... | <p>I dont' think calling a Generic Method on a webservice is possible.</p>
<p>If you look at the service description of two identical methods, one generic, one not:</p>
<pre><code>[WebMethod]
public string[] GetSearchList(string prefixText, int count)
{
}
[WebMethod]
public string[] GetSearchList2<T>(string pr... | 6,651 |
<p>Recently (in 2017) there was <a href="https://m.box.com/shared_item/https%3A%2F%2Fumich.box.com%2Fs%2Fn9cvs27ckehdr64gzv5igtmboykymgk6" rel="nofollow noreferrer">a paper</a> that got some publicity by researchers who are using a B spline algorithm to reduce vibrations in 3D printers. But before them, a B Spline impl... | <p><em>I would have liked to answer linking to credible official sources, but I cannot add references either on direct B-spline printing. So I'm writing down my thoughts. I've familiarized myself in B-splines to understand what they are and read into the 2 references given by the OP.</em></p>
<hr />
<p>Basically, the p... | <p>In more practical terms, you could design the part so that the corners are rounded (also known as fillets). This will help keep the print head moving and would prevent the sudden stop and start effect that causes "jerking". Further 8 bit controllers tend to get saturated when reading large amounts of g-code from the... | 1,401 |
<p>I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files.</p>
<p>How can I register a file extension and associate it with my application on Linux? I'm looking for a way that is standard (works with GNOME and KDE based systems) and can be done autom... | <p>Use <code>xdg-utils</code> from <a href="http://portland.freedesktop.org/wiki/" rel="noreferrer">freedesktop.org Portland</a>.</p>
<p>Register the icon for the MIME type:</p>
<pre class="lang-sh prettyprint-override"><code>xdg-icon-resource install --context mimetypes --size 48 myicon-file-type.png x-application-myt... | <p>This is all existing answers combined, completed and corrected into a single bash script.</p>
<pre class="lang-bash prettyprint-override"><code>#!/bin/bash
set -e # stop on error
APP=my-app
EXT=my-app
COMMENT=Comment
EXEC=/usr/bin/my-app
LOGO=./logo.png
xdg-icon-resource install --context mimetypes --size 48 $LOGO... | 5,078 |
<p>How can I correctly clean the lacquer from bed printer?</p>
<p>I have used some ethylic alcohol (ethanol) to help cleaning</p>
<p>But what is the best way to do it?</p>
<p><img src="https://i.stack.imgur.com/56zTH.jpg" alt="enter image description here"></p>
| <p>The Ender 3 does not come with a lacquered surface at all.The bed should have a rough build surface that is a clone of the BuildTak build surface. It is <em>intended</em> to be rough and satin-gloss in its native state. I do not remember if there was a thin protective plastic foil on my Ender-3 bed on delivery, but ... | <p>The "lacquer" you are referring to is assumed to be the discoloured parts of the heat bed, not the original surface layer of the heat bed. The discoloured parts of the heatbed are most probably caused by residue build-up.</p>
<p>If this residue build-up is caused by depositing a print adhesive containing PolyVinylP... | 1,516 |
<p>In Visual Studio 2005, whenever I would view a file in the main editor, the Solution Explorer would find and highlight that file. Some time ago, this stopped working and the Solution Explorer would do nothing.</p>
<p>This has become quite a pain since following a chain of "Go To Definition"s can lead you all over ... | <p>Click on the Tools → Options menu. Select the Projects and Solutions → General option page.</p>
<p>Make sure "Track active item in Solution Explorer" is checked. That should do it.</p>
| <p>Tools->Options->Project and Solutions->General</p>
<p>Check the box "Track Active Item in Solution Explorer"</p>
| 5,107 |
<p>I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver.</p>
<p>Some other application installed on the system is opening the device in read/write mode with no share mode. Which pre... | <p>Have you tried the tool called <a href="http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx" rel="nofollow noreferrer">handle</a> from sysinternals?</p>
<p>Anyway, neither windows does this (display the name of the application that locked the device): when you try to eject an USB device, Windows just says... | <p>Cool - I'll try those options, as they're probably better defaults given my intentions. Unfortunately, I know my device is there and I'll eventually need read/write access later on (once I inspect the descriptors and have verifed it is infact my device).</p>
<p>Which means that my real goal IS to know what's using i... | 4,319 |
<p>There are several types of objects in a system, and each has it's own table in the database. A user should be able to comment on any of them. How would you design the comments table(s)? I can think of a few options:</p>
<ol>
<li>One comments table, with a FK column for each object type (ObjectAID, ObjectBID, etc)</... | <p>@palmsey</p>
<p>Pretty much, but the variation on that pattern that I've seen most often gets rid of <code>ObjectAID</code> et al. <code>ParentID</code> becomes both the PK and the FK to <code>Parents</code>. That gets you something like:</p>
<ul>
<li><p><code>Parents</code></p>
<ul>
<li><code>ParentID</code></li... | <p>@Hank Gay</p>
<p>So something like:</p>
<ol>
<li>ObjectA
<ul>
<li>ObjectAID</li>
<li>ParentID</li>
</ul></li>
<li>ObjectB
<ul>
<li>ObjectBID</li>
<li>ParentID</li>
</ul></li>
<li>Comments
<ul>
<li>CommentID</li>
<li>ParentID</li>
</ul></li>
<li>Parents
<ul>
<li>ParentID</li>
</ul></li>
</ol>
| 6,110 |
<p>I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine.</p>
<p>I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like</p>
<pre>
Available Decoders
DiVX Version 6.0
XVID
Motion JPEG
CompanyX's MPEG-2 ... | <p>This is best handled by DirectShow.</p>
<p>DirectShow is currently a part of the platform SDK.</p>
<pre><code>HRESULT extractFriendlyName( IMoniker* pMk, std::wstring& str )
{
assert( pMk != 0 );
IPropertyBag* pBag = 0;
HRESULT hr = pMk->BindToStorage(0, 0, IID_IPropertyBag, (void **)&pBag );
if... | <p>Another point I forgot.</p>
<p>The Windows Media Foundation is a toolkit for using WMV/WMA. It does not provide all things that DirectShow supports. It is really only a SDK for Windows Media.
There are bindings in WMV/WMA to DirectShow, so that you can use WM* files/streams in DirectShow applications.</p>
| 5,041 |
<p>If you are working in PHP (or I guess any programming language) and using subversion as your source control, is there a way to take your project (for example):</p>
<blockquote>
<p>C:\Projects\test\.svn<br>
C:\Projects\test\docs\<br>
C:\Projects\test\faq.php<br>
C:\Projects\test\guestbook.php<br>
C:\Projec... | <p>If you use TortoiseSVN, you can use the export feature to automatically strip out all of the .svn files. I think other svn things have the same feature.</p>
<p>Right click the root project folder, then select <code>TortoiseSVN > Export</code>, and tell it where you want the <code>.svn</code> free directory.</p>
| <p>Ok, so my final solution is this:</p>
<p>Use the export command to export to a folder called "export" in the same directory as a file called "deploy.bat", then I run the deploy script (v1 stands for version 1, which is what version I am currently on in this project) This script utilizes 7-Zip, which I have placed o... | 2,771 |
<p>An instance of class A instantiates a couple of other objects, say for example from class B:</p>
<pre><code>$foo = new B();
</code></pre>
<p>I would like to access A's public class variables from methods within B.</p>
<p>Unless I'm missing something, the only way to do this is to pass the current object to the i... | <p>That looks fine to me, I tend to use a rule of thumb of "would someone maintaining this understand it?" and that's an easily understood solution.</p>
<p>If there's only one "A", you could consider using the registry pattern, see for example <a href="http://www.phppatterns.com/docs/design/the_registry" rel="nofollow... | <p>Similar to what Paul said, if there's only one A, you can implement that as a singleton. You can then pass the instance of A as an argument to the constructor (aggregation), with a setter method (essentially aggregation again), or you can set this relationship directly in the constructor (composition).</p>
<p>Howev... | 8,758 |
<p>I am getting back into a bit more .NET after a few-years of not using it full-time and am wondering what the good unit testing packages are these days.</p>
<p>I'm familiar with NUnit (a few years ago) and have played briefly around with <a href="https://en.wikipedia.org/wiki/IronRuby" rel="nofollow noreferrer">IronR... | <p>There are so many it's crazy. Crazy good, I guess.</p>
<ul>
<li>For the conservative types (me), <a href="http://www.nunit.org/" rel="nofollow noreferrer"><strong>NUnit</strong></a> is still available and still more than capable.</li>
<li>For the Microsoft-types, <a href="http://msdn.microsoft.com/en-us/vstudio/defa... | <p>I like <a href="http://www.mbunit.com/" rel="nofollow noreferrer">MbUnit</a>, er, <a href="http://www.gallio.org/" rel="nofollow noreferrer">Gallio</a>. Most importantly to me is having good tools support inside Visual Studio. For that I use <a href="http://www.jetbrains.com/resharper/index.html" rel="nofollow nor... | 2,406 |
<p>What is the best solution for converting WAV files to WMA (and vice versa) in C#? I have actually implemented this once already using the Windows Media Encoder SDK, but having to distribute Windows Media Encoder with my application is cumbersome to say the least. The Windows Media Format SDK has large sections of th... | <p>I haven't tried it personally (so not sure if it's the 'best' solution), but <a href="http://www.codeproject.com/KB/audio-video/WmaCompressor.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/audio-video/WmaCompressor.aspx</a> looks like it should meet your requirements...</p>
| <p>You might look at <a href="http://www.mitov.com" rel="nofollow noreferrer">www.mitov.com</a>. There are some libraries there that may help. You'll need to buy a copy to ship in a commercial product, I believe, but I think it's a reasonable price.</p>
| 8,984 |
<p>I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" rel="noreferrer">SMTP</a> validation, at least I think so, based on my research on Internet. </p>
<p>There's several libraries that can d... | <p>Be aware that most MTAs (Mail Transfer Agent) will have the VRFY command turned off for spam protection reasons, they'll probably even block you if you try several RCPT TO in a row (see <a href="http://www.spamresource.com/2007/01/whatever-happened-to-vrfy.html" rel="noreferrer">http://www.spamresource.com/2007/01/w... | <p>You may need this <a href="http://www.componentsoft.net/component/emailvalidator.net/" rel="nofollow noreferrer">Email Validator component for .NET</a></p>
<p>Here is the code example:</p>
<pre><code>
// Create a new instance of the EmailValidator class.
EmailValidator em = new EmailValidator();
em.Messag... | 4,707 |
<p>I have two otherwise-identical machines (called "Lefty" and "Righty"), so I have a baseline to compare. I am running Marlin 2.0.7.2 on both machines. They are Creality CR-10 printers with BTT SKR e3 Mini v1.2 boards, with Marlin I compiled myself. Both machines are (as far as I know!) running ... | <p>Annoyingly, this went away with a replacement board. I don't have a better fix.</p>
| <p>For both machines did you compare extruder's (E) steps/mm setting in Marlin and possibly stored in EPROM (so check from the LCD in Configuration>Advanced settings) ?</p>
<p>Also stepper motors ... I believe they are exactly of the same type? There are 1.8 degree and 0.9 degree stepper motors on the market - so ex... | 1,821 |
<p>I'm writing an application that on some stage performs low-level disk operations in Linux environment. The app actually consists of 2 parts, one runs on Windows and interacts with a user and another is a linux part that runs from a LiveCD. User makes a choice of Windows drive letters and then a linux part performs a... | <p>Partitions have UUIDs associated with them. I don't know how to find these in Windows but in linux you can find the UUID for each partition with:</p>
<blockquote>
<p>sudo vol_id -u device (e.g. /dev/sda1)</p>
</blockquote>
<p>If there is an equivilent function in Windows you could simply store the UUIDs for what... | <p>You need to either mark the drive in some way (e.g. write a file etc.), or find some identifier that is only associated with that particular drive.</p>
<p>It is very hard, almost impossible to figure out what letter Windows would assign to a particular drive partition, without actually running Windows. This is beca... | 3,948 |
<p>I maintain an ms-access application splitted to frontend and backend files.
The frontend file is in the users conputers.
The backend file is in a shared folder in the server.</p>
<p>What is the lowest permissions required?
can I give some of the users only read-only permissions in that folder? (or hide it from th... | <p>Unfortunately, the lock file (ldb) must be created, updated and deleted. If a user with insufficient permissions opens the database, it will be locked for all other users, therefore all your users need Read/Write/Delete permissions on the back-end.</p>
<p>EDIT #1
The lock file must be created every time the databas... | <p>Yes - it resolves down to file access permissions as well as read/write. You can't execute any type of data update stuff (you'll get "operation requires an updateable query") unless the user supplies credentials that allow them to write, or you allow write on the file.</p>
<p>Running a query requires only read acce... | 9,532 |
<p>I have been looking at getting some painters tape to use on the glass plate for better print adhesion, and everything I read suggests the <em>blue</em> painters tape, such as this:</p>
<p><a href="https://i.stack.imgur.com/WNCHm.jpg" rel="noreferrer" title="Blue painters tape"><img src="https://i.stack.imgur.com/WN... | <h1>read first</h1>
<p>When you use painters tape, you need to level your printer <strong>with</strong> the tape applied. You need to relevel if you change the tape type.</p>
<h1>Basics</h1>
<p>It's not <em>any</em> blue tape that printers love. There are basically two factors that make a tape useful:</p>
<ul>
<li>It h... | <p>The second image isn't exactly painter's tape. Both images are types of masking tape, but the common manila/cream-colored masking tape vs the blue or green painter's tape <em>typically</em> has three features that make it less desirable for bed adhesion:</p>
<ol>
<li>Stronger glue holding the tape to the bed, that ... | 1,318 |
<p>How can I get <a href="http://search.cpan.org/perldoc?LWP" rel="noreferrer">LWP</a> to verify that the certificate of the server I'm connecting to is signed by a trusted authority and issued to the correct host? As far as I can tell, it doesn't even check that the certificate claims to be for the hostname I'm conne... | <p>This long-standing security hole has finally been fixed in version 6.00 of <a href="https://metacpan.org/release/libwww-perl" rel="noreferrer">libwww-perl</a>. Starting with that version, by default <a href="https://metacpan.org/pod/LWP::UserAgent" rel="noreferrer">LWP::UserAgent</a> verifies that HTTPS servers pre... | <p>Just perform execute the following command in Terminal:
<strong>sudo cpan install Mozilla::CA</strong></p>
<p>It should solve it.</p>
| 9,999 |
<p>I'm using the Marlin firmware (1.1.0-RC7 - 31 July 2016) for a 3d printer. Currently the printing is not perfect due to slight inaccuracies in movements along the x and y axis. I'm trying to change the feedrate for speed along the xy axis whilst the printer is in operation to make sure the printer stops on time and ... | <p>You can change the <em>maximum</em> allowable feedrate in Configuration.h, but the actual feedrate that is used isn't determined by your firmware. The feedrate is specified in the G-Code file. A command like</p>
<pre><code>G0 X10.0 Y15.0 Z3.0 F9000
</code></pre>
<p>indicates a move to (10,15,3) at a feedrate of 90... | <p>You have the lines to adjust the feed rate.
The first one (line 742) is relevant to the maximum feed rate XY while homing (not during printing). I think this is not an issue in your particular case and you may leave it as it is.</p>
<p>The second one (line 753) is the feed rate while printing for XY. Particularly ... | 419 |
<p>I recently came across an issue with Windows 2003 (apparently it also exists in other versions too), where if an SSL/TLS server is requesting client certificate authentication and it has more than 16KB of trusted certificate DNs, Internet Explorer (or any other app that uses schannel.dll) is unable to complete the S... | <p>Since ASN.1 is self describing, it's fairly easy to write an ASN.1 parser. As you probably know, ASN.1 data contains a tree of values, where each value type is identified by a globally assigned OID (Object ID). You can find a free ASN.1 decoder with source code at: <a href="http://www.geocities.co.jp/SiliconValley-S... | <p>openssl asn1parse will do it, but you'll need to do some manual parsing to figure out where the issuer sequence begins. Per RFC 5280, it's the 4th item in the TBSCertificate sequence (potentially 3rd if it's a v1 certificate), immediately following the signature algorithm. In the following example:</p>
<pre><code> ... | 9,786 |
<h3>TL;DR</h3>
<p>I need a complete list of fasteners (bolts, nuts and washers) for the <em>Sintron Kossel</em>.</p>
<hr />
<p>Has anyone bought this kit, and knows the answer, or knows where this is documented?</p>
<p>A complete list would be great, but in particular, I need the dimensions (M2.5/3/4/5? and length) and... | <p>After examining the guide (<a href="https://gr33nonline.files.wordpress.com/2017/05/kossel-mini-instrution-by-sintron-technology_v2.pdf" rel="nofollow noreferrer">Kossel mini instrution by sintron technology_v2</a>) and the printed parts kit, I came up with an 99.9% complete parts list. The lists relating to the eff... | <p>I found two lists for the Kossel mini (the documents you referenced are for a mini, so that is what I am assuming you got). One as a <a href="https://docs.google.com/spreadsheets/d/1s_ekMab3iavE6ohXIHZImjlCRGyXr9UWbBqC8XOGF_M/pub?output=html" rel="nofollow noreferrer">Google Doc</a> and one as an <a href="http://ww... | 615 |
<p>When learning a new programming language, one of the possible roadblocks you might encounter is the question whether the language is, by default, <em>pass-by-value or pass-by-reference</em>.</p>
<p>So here is my question to all of you, in your favorite language, <em>how</em> is it actually done? And what are the <e... | <p>Here is my own contribution for the <a href="http://en.wikipedia.org/wiki/Java_(programming_language)" rel="nofollow noreferrer">Java programming language</a>.</p>
<p>first some code:</p>
<pre><code>public void swap(int x, int y)
{
int tmp = x;
x = y;
y = tmp;
}
</code></pre>
<p>calling this method will res... | <p>By default, ANSI/ISO C uses either--it depends on how you declare your function and its parameters.</p>
<p>If you declare your function parameters as pointers then the function will be pass-by-reference, and if you declare your function parameters as not-pointer variables then the function will be pass-by-value.</p... | 2,423 |
<p>I think the best part of flash is the possibility to create not squared user interfaces, so I like the idea to create desktop apps using flash. I know AIR is for that but it doesn't allow real access to OperatingSystem apis and dlls and the commercial options are kind of difficult to customize.</p>
| <p>You can try ScreenweaverHX:</p>
<p><a href="http://haxe.org/com/libs/swhx" rel="nofollow noreferrer">http://haxe.org/com/libs/swhx</a></p>
<p>It's the Haxe-based successor of the old Screenweaver. However, it's not as simple as the old version used to be. Most likely you need to take a look to the basics of Haxe a... | <p>Try flajector. it's powerfull converter from flash to exe. You can to develop your application using AIR. And then you can convert it into desktop application .exe</p>
| 9,501 |
<p>I'm getting all learned up about binding in WPF. I'm having a lot of trouble debugging the parse errors in my xaml, though. Can somebody pretty please tell me what's wrong with this little piece? :</p>
<pre><code><Border Name="TrackBackground"
Margin="0"
CornerRadius="2"
Grid.R... | <p>The ElementName property on a Binding is not supported in Silverlight.</p>
<p>You will notice, if you go into the code behind or inspect the Binding object in class explorer, it doesn't have a property named ElementName.</p>
| <p>First of all its a matter of casing...</p>
<p>Change <pre><code>Part_Track</code></pre> to <pre><code>PART_Track</code></pre> which will fix your binding error..</p>
<p>But I do not think that this is what you are trying to do..</p>
<p>You could use a Grid instead of a canvas, and the Thumb will size automaticall... | 2,936 |
<p>I want to upload some of my works to <a href="http://www.thingiverse.com/">Thingiverse</a> without making my real name public (displaying it on the profile page).</p>
<p>I think it is OK to register my name to the site unless the make it public, and it is required by the terms to provide truthful and accurate infor... | <p>To change your displayed name (as opposed to username) in Thingiverse:</p>
<ol>
<li>Go to your profile page</li>
<li>Click "Edit Profile" on the info column on the left</li>
<li>At the top, next to "Thingiverse Settings" is another link/tab called "Makerbot Settings". Click that.</li>
<li>Change the First Name and ... | <p>You can put whatever name you want in when you make an account - You decide what your name is, people go by pseudonyms in 'real life' all the time, this is perfectly acceptable. There are actually very few places where you have a legal obligation to provide your name as it appears on your birth certificate. Opening ... | 193 |
<p>Does anyone know <strong>IF</strong>, <strong>WHEN</strong> or <strong>HOW</strong> I can get <a href="https://memcached.org/" rel="noreferrer">Memcached</a> running on a Windows 64bit environment? </p>
<p>I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC s... | <p>North Scale labs have released a build of memcached 1.4.4 for Windows x64:</p>
<p><a href="http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available" rel="noreferrer">http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available</a></p>
<p><a href="http://labs.northscale.com/memcached-pac... | <p>Are you sure that the 32-bit version doesn't just run on 64-bit Windows, without modification? Most things do.</p>
<p>Failing that, have you actually tried just compiling it for 64-bit? A brief scan of a few Google Groups etc where people asked this same question suggests that that may be exactly the solution to th... | 3,038 |
<p>At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access the OpenGL bindings via GLUT.</p>
<p>Does an... | <p>Yeah, I got bit by the same bug. The university tended to lean on Java, and then allowed you to choose the language you wanted to work with during projects.</p>
<p>The best way is to just jump in. Start small, take baby steps, and just Google things that confuse you when you get there. Also find projects that have... | <p>You will need a completely differnt feeling for memory handling. Also think about freeing everything you don't need anymore. In Java and C# you just let go of your objects and the memory gets tidy up for you - you can't do that in CPP</p>
| 3,977 |
<p><em>An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)</e... | <blockquote>
<p>The only thing that I'm suspicious on is that the server has two Database engines: SERVER and server\sqlexpress</p>
</blockquote>
<p>I think this is the source of the problem. Which one do you intend to connect to? You need to specify the "instance" you are connecting to.</p>
<p>Assuming you inten... | <p>Can you connect to the SQL Server via Management Studio from a different machine? This might help you narrow down whether it is the SQL Server configuration or you connection string configuration.</p>
| 8,929 |
<p>I faced some problem with my 3D printer device. It seems the bed warms up without any problem, however, the hotend does not warm up! </p>
<p>Could you please help me identify what the problem is? </p>
| <p>I really hope the extruder doesn't warm up as this would be a problem with your stepper motor :)</p>
<p>I'm sure you mean the hotend doesn't heat up. This could be a number of things but i would start to double check the pinout in your code vs the pins on your mainboard and measure if it gives 12v/24v (depending on... | <p>First, I want to make sure if your hotend is really not heating up. If you are saying the numbers are not showing (like when it is heating, the number on display or octoprint says 0/180) this could be a Thermistor problem. Check to make sure if your hot end is heating up by putting a paper or filament under it. DO N... | 1,573 |
<p>I have been running my i3 MK3 for about 12 hours now and the motor on the extruder is fairly hot, not too hot to touch but I'd guess its about 60c on the outside. Is this within normal operating temperatures or should I let it cool down before starting more prints?</p>
| <p>The maximum operating temperature can be found in the specifications of your steppers. Usually the ambient temperature operating conditions are limited to 50 °C with a maximum operating temperature in the range of 70 - 100 °C. For instance, the steppers I use are limited to a temperature of 80 °C. It is ... | <p>I've run my Prusa3D i3m3s for 50 hour prints. My motors get hot-ish but on my instance of the machine, they are not too hot.</p>
| 1,076 |
<p>In the following snippet:</p>
<pre><code>public class a {
public void otherMethod(){}
public void doStuff(String str, InnerClass b){}
public void method(a){
doStuff("asd",
new InnerClass(){
public void innerMethod(){
otherMethod();
... | <p>In general you use <code>OuterClassName.this</code> to refer to the enclosing instance of the outer class.</p>
<p>In your example that would be <code>a.this.otherMethod()</code></p>
| <pre><code>OuterClassName.this.outerClassMethod();
</code></pre>
| 8,116 |
<p>Say I'm building an ASP.Net class that inherits from <code>IHttpHandler</code>, should I wire this up to a URL ending in <code>.ashx</code>, or should I use the <code>.axd</code> extension? </p>
<p>Does it matter as long as there's no naming conflict?</p>
| <p>Ahh.. ScottGu says it doesn't matter, but .ashx is slightly better because there's less chance of a conflict with things like trace.axd and others. That's why the flag went up in my head that .ashx might be better.</p>
<p><a href="http://forums.asp.net/t/964074.aspx" rel="nofollow noreferrer">http://forums.asp.net/... | <p>Out in "the wild", .ashx are definitely the most popular extension.</p>
| 7,690 |
<p>How would you reccommend handling RSS Feeds in ASP.NET MVC? Using a third party library? Using the RSS stuff in the BCL? Just making an RSS view that renders the XML? Or something completely different?</p>
| <p>Here is what I recommend:</p>
<ol>
<li>Create a class called RssResult that
inherits off the abstract base class
ActionResult.</li>
<li>Override the ExecuteResult method.</li>
<li>ExecuteResult has the ControllerContext passed to it by the caller and with this you can get the data and content type.</li>
<li><p>Once... | <p>I got this from Eran Kampf and a Scott Hanselman vid (forgot the link) so it's only slightly different from some other posts here, but hopefully helpful and copy paste ready as an example rss feed.</p>
<p><a href="http://achadwick.com/Blog/Result/MVC%20RSS%20Feed" rel="nofollow noreferrer">From my blog</a></p>
<p>... | 3,302 |
<p>I was wondering if anyone here had some experience writing this type of script and if they could give me some pointers.</p>
<p>I would like to modify this <a href="http://wordaligned.org/articles/a-subversion-pre-commit-hook" rel="nofollow noreferrer">script</a> to validate that the check-in file does not have a Ca... | <p>I think you can avoid a commit hook script in this case by using the <code>svn:eol-style</code> property as described in the SVNBook:</p>
<ul>
<li><p><a href="http://svnbook.red-bean.com/en/1.7/svn.advanced.props.file-portability.html#svn.advanced.props.special.eol-style" rel="nofollow noreferrer">End-of-Line Chara... | <p>What exactly are you trying to do?</p>
<p>Of course, there are numerous places to learn about svn pre-commit hooks (e.g. <a href="http://wordaligned.org/articles/a-subversion-pre-commit-hook" rel="nofollow noreferrer"> here </a>, <a href="http://www.windley.com/archives/2008/08/using_a_precommit_hook_to_check_puppe... | 7,103 |
<p>I need to extract data from a .mpp file on the network and combine it with other data from several different databases. The application can be written in Perl, VB6, VB.net or C# but must be easily scheduled from a Windows based server.</p>
<p>What would you recommend to extract the MS Project data with no user inte... | <p>I would recommend using MPXJ (<a href="http://mpxj.sf.net" rel="nofollow noreferrer">mpxj.sf.net</a>) to extract data from Microsoft Project files. Don't be put off by the fact that it was originally a Java library - the current release of MPXJ includes native .net dlls as well as the original Java JAR file, thanks ... | <p>I have the same need. Here is what I found so far.
There is an OLEDB provider for microsoft projects, up to version MP 2007.
If Google it, there are enough sites quoting the connection string, but here is the one quote:</p>
<pre><code>oConn.Open "Provider=Microsoft.Project.OLEDB.9.0;" & _
"Project N... | 5,973 |
<p>Ok, I've seen a few posts that <em>mention</em> a few other posts about not using SP wikis because they suck.</p>
<p>Since we are looking at doing our wiki <em>in</em> SP, I need to know why we shouldn't do it for a group of 6 automation-developers to document the steps in various automated processes and the change... | <p>The default wiki included with Sharepoint doesn't support common wiki features well at all. There is no way to edit a single section of a page, and no way to link directly to a particular section on another page. The backend is in HTML so you lose the ability to edit in plaintext using simple syntax. The diff fea... | <p>My company rolled out sharepoint recently, and I have to say my user experience was <strong><em>Very Bad</em></strong>. And I'm not just saying I was apprehensive to using it: I went in with an open mind and tried it, and many things just felt like they didn't really work right.</p>
<p>The reasons Luke mentioned m... | 3,258 |
<p>Does any one know how the event handler manages the posted events?</p>
<p>In my app i have two threads (<em>guiThread</em> and <em>computationThread</em>). After an exception is thrown I call <code>postEvent(..)</code> to an existing dialog. The Qt-Event-Handler holds this one back until the dialog is closed. </p>
... | <p>As mentionned in the Qt documentation about <a href="http://doc.qt.io/qt-4.8/qcoreapplication.html#postEvent" rel="nofollow noreferrer">QCoreApplication::postEvent</a> :</p>
<blockquote>
<p>When control returns to the main event loop, all events that are stored in the queue will be sent using the notify() functio... | <p>As others already wrote, I believe this behavior is caused by the fact that the dialog starts its own event loop.</p>
<p>If you use Qt4, you can try using <a href="http://doc.qt.io/qt-4.8/threads-qobject.html#signals-and-slots-across-threads" rel="nofollow noreferrer">queued signal/slot connections</a> as an altern... | 7,607 |
<p>It's about PHP but I've no doubt many of the same comments will apply to other languages.</p>
<p>Simply put, what are the differences in the different types of loop for PHP? Is one faster/better than the others or should I simply put in the most readable loop?</p>
<pre><code>for ($i = 0; $i < 10; $i++)
{
# ... | <p>For loop and While loops are entry condition loops. They evaluate condition first, so the statement block associated with the loop won't run even once if the condition fails to meet </p>
<p>The statements inside this for loop block will run 10 times, the value of $i will be 0 to 9;</p>
<pre><code>for ($i = 0; $i &... | <p>I use the first loop when iterating over a conventional (indexed?) array and the foreach loop when dealing with an associative array. It just seems natural and helps the code flow and be more readable, in my opinion. As for do...while loops, I use those when I have to do more than just flip through an array.</p>
<p... | 4,282 |
<p>I didn't have any printer-related problem for the past 6 months, but now all of a sudden my Prusa MK3S stopped extruding during printing.</p>
<p>This is very strange as I can easily load\unload filament and control the step motor via Settings\Move axis\Extruder. When I did so, the filament got extruded normally.</p>... | <ol>
<li><p>It doesn't seem to be heat creep. See <a href="https://3dprinting.stackexchange.com/questions/15629/what-are-ways-to-avoid-heat-creep">What are ways to avoid heat creep?</a></p>
</li>
<li><p>Have you measured the actually temperature of the heater block? You may have a failing sensor (thermistor) or sensor... | <p>As it turned out, rebuilding the extruder actually helped. I took it apart to the point where both fans were loose as well as the extruder motor and the hotend. I didn't find anything wrong after a quick look so I put it all back together.</p>
<p>Then i ran the first layer calibration and for some reason it worked. ... | 1,976 |
<p>There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings), but I'm interested in explanations on them... | <p>There is a pretty good diagram in the <a href="http://java.sun.com/javaee/javaserverfaces/download.html" rel="noreferrer">JSF specification</a> that shows the request lifecycle - essential for understanding this stuff.</p>
<p>The steps are:</p>
<ul>
<li><strong>Restore View</strong>. The UIComponent tree is rebuil... | <p>The best article I've found is <a href="http://blogs.steeplesoft.com/jsf-component-writing-check-list/" rel="nofollow noreferrer">Jsf Component Writing</a>,
as for 2 where do I read the value for a value binding in your component you have a getter that looks like this</p>
<pre><code>
public String getBar() {
... | 5,355 |
<p>So I've looked at <a href="http://mjtemplate.org/examples/freebase/names.html?name=%EB%A1%9C%EB%A7%88&lang=ko" rel="nofollow noreferrer">this use</a> of the <a href="http://freebase.com" rel="nofollow noreferrer">freebase</a> API and I was really impressed with the translations of the name that it found. IE Rome... | <p>I'll second the vote for <a href="http://www.telerik.com" rel="nofollow noreferrer">Telerik</a>. Their controls for the most part "just work" and their support has been excellent. I primarily use their forums and I still receive a response within a day (unlike some other vendors who barely seem to notice t... | <p><a href="http://www.componentart.com" rel="nofollow noreferrer">ComponentArt</a> has some pretty cool controls. You might want to check out <a href="http://www.telerik.com" rel="nofollow noreferrer">Telerik</a> as well. Both companies offer pretty easy to use controls that look nice.</p>
| 5,357 |
<p>I need a list of integers from 1 to x where x is set by the user. I could build it with a for loop eg assuming x is an integer set previously:</p>
<pre><code>List<int> iList = new List<int>();
for (int i = 1; i <= x; i++)
{
iList.Add(i);
}
</code></pre>
<p>This seems dumb, surely there's a more... | <p>If you're using .Net 3.5, <a href="http://msdn.microsoft.com/en-us/library/system.linq.enumerable.range.aspx" rel="noreferrer">Enumerable.Range</a> is what you need.</p>
<blockquote>
<p>Generates a sequence of integral
numbers within a specified range.</p>
</blockquote>
| <p>Here is a short method that returns a List of integers.</p>
<pre><code> public static List<int> MakeSequence(int startingValue, int sequenceLength)
{
return Enumerable.Range(startingValue, sequenceLength).ToList<int>();
}
</code></pre>
| 7,170 |
<p>I am using a Visual Studio project with custom build script/batch file (ala make, ant, etc.).</p>
<p>When the build is run from the command line we have placed colored highlighting on various output lines.</p>
<p>However, when built via Visual Studio (2005 in my case) the output window does not show the color anym... | <p>If you don't want to go with the pro version of the VSCommands plug-in, there is a free one called VSColorOutput, which does just that. I've worked with it a bit, does what it says.</p>
<p>See <a href="http://coolthingoftheday.blogspot.com/2011/12/vscoloroutput-visual-studio-output.html" rel="noreferrer">http://coo... | <p>The problem isn't with your build scripts, but with Visual Studio not supporting <a href="http://en.wikipedia.org/wiki/ANSI_escape_code" rel="noreferrer">ANSI control codes</a> to change the color.</p>
| 7,245 |
<p>It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the speed, but I haven't seen much offered in the... | <p>See the <a href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard" rel="nofollow noreferrer">Database Publishing Wizard</a> that is part of the <strong>SQL Server Hosting Toolkit</strong>. It generates a single SQL file for both schema and data.</p>
| <p>I don't know what is "terribly slow" for you, but I have a decent performance with SQL 2005 Management Studio. In either case, <a href="http://www.red-gate.com/" rel="nofollow noreferrer">RedGate</a> products are very cool. Unfortunately they are not free.</p>
| 5,121 |
<p>I'm developing a C# application that uses a handful of XML files and some classes in System.Xml. A coworker insists on adding the MSXML6 redistributable to our install, along with the .NET framework but I don't think the .NET framework uses or needs MSXML in anyway. I am well aware that using MSXML from .NET is no... | <p>System.Xml doesn't use MSXML6. They are seperate xml processing engines. See post here: <a href="https://web.archive.org/web/20120203153429/http://blogs.msdn.com/b/stan_kitsis/archive/2005/09/20/472185.aspx" rel="nofollow noreferrer">MSXML 6.0 vs. System.Xml: Schema handling differences</a></p>
| <p>I think it's needed for some MsSql-XML functionality, but System.Xml is in the core framework.</p>
<p>You should test your installer on a fresh machine anyway, just to be sure.</p>
| 3,364 |
<h3>TL;DR</h3>
<p>Is ABS a better material to use for structural parts of a 3D printer, as opposed to PLA?</p>
<hr />
<p>I have been looking at various suppliers of printed parts for a <a href="http://reprap.org/wiki/Wilson_TS#Wilson_II" rel="noreferrer">Wilson II</a>, on eBay.</p>
<p><a href="http://www.ebay.co.uk/itm... | <p>To answer the main question "Is ABS better for structural parts of a 3D printer as opposed to PLA".</p>
<p>The answer, unfortunately is it depends.</p>
<p>ABS has lower yield and ultimate strengths compared to PLA. This means that at room temperatures, ABS is weaker than PLA. However the difference between yield a... | <p>Actually, Both PLA and ABS could use for structural parts. PLA has high strength and is brittleness. ABS has better thermal resistance and durable. <a href="https://ecoreprap.com/pla-vs-abs/" rel="nofollow noreferrer">PLA and ABS</a> are the main types of 3D printing material, each has cons and pros.</p>
<p>If you w... | 584 |
<p>Is there anyone working solo and using fogbugz out there? I'm interested in personal experience/overhead versus paper.</p>
<p>I am involved in several projects and get pretty hammered with lots of details to keep track of... Any experience welcome.</p>
<p>(Yes I know Mr. Joel is on the stackoverflow team... I stil... | <p>I use it, especially since the hosted Version of FugBugz <a href="https://stackoverflow.com/questions/3180/anyone-soloing-using-fogbugz#3581">is free for up to 2 people</a>. I found it a lot nicer than paper as I'm working on multiple projects, and my paper tends to get rather messy once you start making annotations... | <p>Yea FogBugz is great for process-light, quick and easy task management. It seems especially well suited for soloing, where you don't need or want a lot of complexity in that area. </p>
<p>By the way, if you want to keep track of what you're doing at the computer all day, check out TimeSprite, which integrates wit... | 2,536 |
<p>I have a LARGE piece of glass (36"x26") that I will soon be printing on using my newly build MPCNC machine. It is capable of printing about 34"x34"x10".</p>
<p>Anyway, I have had GREAT success printing on heated glass that is sprayed lightly with hairspray using PLA and being able to EASILY remove my prints after ... | <p>Because you will be printing on unheated glass, you will be using some form of adhesive material. If you use an off-the-shelf glue stick, you will likely find it is water soluble. If the bed is removable, immersing it in warm water for a relaxing soak will provide easier model removal. </p>
<p>I don't have experien... | <p>3M Blue decorators tape works well for me. You can get it in different widths. I find giving it a little sand paper rub before each print helps corners to stay down and improves first layer print. I replace about every 10 prints depending on the importance of the print.</p>
| 374 |
<p>C++ seems to be rather grouchy when declaring templates across multiple files. More specifically, when working with templated classes, the linker expect all method definitions for the class in a single compiler object file. When you take into account headers, other declarations, inheritance, etc., things get really ... | <blockquote>
<p>Are there any general advice or workarounds for organizing or redistributing templated member definitions across multiple files?</p>
</blockquote>
<p>Yes; don't.</p>
<p>The C++ spec permits a compiler to be able to "see" the entire template (declaration <em>and</em> definition) at the point of insta... | <p>When/if your compiler supports C++0x, the <code>extern</code> keyword can be used to separate template declarations from definitions.</p>
<p>See <a href="http://en.wikipedia.org/wiki/C%2B%2B0x#Extern_template" rel="nofollow noreferrer">here</a> for a brief explanation.</p>
<p>Also, section 6.3, "The Separation Mod... | 5,666 |
<p>What command checks if a directory exists or not within a Bash shell script?</p>
| <p>To check if a directory exists:</p>
<pre><code>if [ -d "$DIRECTORY" ]; then
echo "$DIRECTORY does exist."
fi
</code></pre>
<p>To check if a directory does not exist:</p>
<pre><code>if [ ! -d "$DIRECTORY" ]; then
echo "$DIRECTORY does not exist."
fi
</code></pre>
<hr />
<p>... | <p>From script file <em>myScript.sh</em>:</p>
<pre><code>if [ -d /home/ec2-user/apache-tomcat-8.5.5/webapps/Gene\ Directory ]; then
echo "Directory exists!"
echo "Great"
fi
</code></pre>
<p><em>Or</em></p>
<pre><code>if [ -d '/home/ec2-user/apache-tomcat-8.5.5/webapps/Gene Directory' ]; then
echo "Directory... | 8,459 |
<p>I have an Excel Spreadsheet like this</p>
<pre>
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
| even more data for id
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
</pre>
<p>Now I want to group the data of one id b... | <p>I use this formula to get the input for a conditional formatting:</p>
<pre><code>=IF(B2=B1,E1,1-E1)) [content of cell E2]
</code></pre>
<p>Where column B contains the item that needs to be grouped and E is an auxiliary column. Every time that the upper cell (B1 on this case) is the same as the current one (B2),... | <p>I use this rule in Excel to format alternating rows:</p>
<ol>
<li>Highlight the rows you wish to apply an alternating style to.</li>
<li>Press "Conditional Formatting" -> New Rule</li>
<li>Select "Use a formula to determine which cells to format" (last entry)</li>
<li>Enter rule in format value: <strong><code>=MOD(... | 4,665 |
<p>I have this wing design that I want to print:</p>
<p><a href="https://i.stack.imgur.com/EF87K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EF87K.png" alt="wing"></a></p>
<p>You can notice that its walls have a thickness, which is 1.0 mm.
I want to print it so that the perimeters are insi... | <p>I found a great solution!</p>
<p>In Cura, there is a setting under <strong>Shell</strong> called <strong>Horizontal Expansion</strong>. What this does is it controls the distance between the two perimeters. A negative value in this field will make them come closer together, thus removing the gap between them.</p>
... | <p>Consider to create a test print using the settings you've presented in the sliced output rendering. It could be something as small as a 4 or 5 mm tall cross section, enough to get clear of the bed and establish a stable base. You may find that your goal is achieved.</p>
<p>Also consider that a common nozzle diamete... | 618 |
<p>I've been trying to find a 3D printer filament which would not release any chemicals if in contact with heated water for a substantial amount of time. So far, I've easily ruled out both PLA and ABS, as they're not considered food safe from what I can find. I have found PETG filament, which seems to be food safe. </p... | <p>Many manufactures list their filaments as being food safe, but I would not treat this as "gospel truth". Apparently, the FDA considers PETG to be safe for food contact, but they are probably thinking about injection-moulded and vacuum-formed parts. Unfortunately, an initial search of the FDA's website did not yield ... | <p>As far as PET-based filaments go, most of them are FDA approved. So yes, "food safe". It's the process of 3D printing that ruins that. all the little layers trap just about everything and are hard to clean. If you wanted to boil your part, that might work, but you'd be better off buying a food-safe coating spray for... | 1,213 |
<p>I'm working with a fairly simple database, from a Java application. We're trying to insert about 200k of text at a time, using the standard JDBC mysql adapter. We intermittently get a <code>com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column error.</code></p>
<p>The column type is <code>l... | <p>Check that your UTF-8 data is all 3-byte Unicode. If you have 4-byte characters (legal in Unicode and Java, illegal in MySQL 5), it can throw this error when you try to insert them. This is an <a href="http://bugs.mysql.com/bug.php?id=25666" rel="noreferrer">issue that should be fixed</a> in MySQL 6.0.</p>
| <p>I just hit this problem and solved it by removing all the non-standard ascii characters in my text (following the UTF-8 advice above).</p>
<p>I had the problem on a Debian 4, Java 5 system; but the same code worked fine with Ubuntu 9.04, Java 6. Both run MySql 5.</p>
| 9,878 |
<p>Every few days VS2008 decides to get mad at me and fails to generate a designer file claiming it cannot find the file specified and that it's missing an assembly. Here's the scenario:</p>
<p>The aspx page has a reference to a custom user control (inheriting UserControl) which references another assembly in the bac... | <p>We've had similar problems before, unfortunately I don't remember the exact solution. </p>
<p>If your using a "Web Site" project (no project file) then start by checking that both your page and your control both set the ClassName property in the first line of your aspx/ascx file and that you specify the full name o... | <p>You might try archiving a template of a new file with its designer equivalent. If VS coughs then you can do an "Add Existing" option with the file you already have. </p>
<p>It seems, however, to be an issue with your installation of VS2008 so you might try reinstalling it. </p>
| 5,277 |
<p>I'm considering using <a href="https://en.wikipedia.org/wiki/Category_6_cable" rel="noreferrer">CAT6</a> cables to connect my printer's extruder assembly to the control board. They seem like an elegant solution, but I've read conflicting opinions online on whether or not this would be feasible.</p>
<p>I would like ... | <p>The ampacity question is not completely answerable because CAT6 does not specify wire gauge, so the current limit will depend on the specific gauge you get. CAT6 can be anywhere from 22 AWG to 24 AWG, and depending on who you ask this can be good for as much as 7A or as little as 0.5A. Given that you will have a bun... | <p>CAT6 cable by itself is not a problem, it is typically 23 AWG solid core wire which can take you to 4A just fine. The real problem comes from the connectors you use. CAT6 usually goes hand in hand with 8p8c ethernet connectors which only have contacts rated to 500mA.</p>
<p>Also typically CAT6 cable is meant to b... | 441 |
<p>Is there anyplace where one can download a virtual machine containing a working install of some Linux distro with Globus Toolkit and some development tools (Java) for testing purposes? A real deployment of a grid is more complicated but I just need something portable, for development.</p>
| <p>I am not sure whether I understood your intentions correctly, but let's see if this one helps.</p>
<pre><code>public class TypedProperty<T> : Property where T : IConvertible
{
public T TypedValue
{
get { return (T)Convert.ChangeType(base.Value, typeof(T)); }
set { base.Value = value.To... | <pre><code>public class TypedProperty<T> : Property
{
public T TypedValue
{
get { return (T)(object)base.Value; }
set { base.Value = value.ToString();}
}
}
</code></pre>
<p>I using converting via an object. It is a little bit simpler.</p>
| 3,008 |
<p>I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.</p>
<p>My app project is referencing the visualizer project. Before the type definition I have:</p>
<p>[DebuggerVisualize... | <p>In <strong>ZFC</strong>, either the axiom of foundation [as mentioned] or the axiom (scheme) of comprehension will prohibit this. The first, for obvious reasons; the second, since it basically says that for given <em>z</em> and first-order property <em>P</em>, you can construct { <em>x</em> ∈ <em>z</em> : <em>P</em>... | <p>The question is ill-posed in the standard <a href="http://en.wikipedia.org/wiki/Zermelo-Fraenkel_set_theory" rel="nofollow noreferrer">ZFC</a> (Zermelo-Fraenkel + axiom of Choice) set theory because the object thus defined is not a set.</p>
<p>Since (again, assuming standard ZFC) your <em>class</em> {x : x\not\in x... | 5,581 |
<p>What's the best way to do the semantic equivalent of the traditional sleep() system call from within an Informix SPL routine? In other words, simply "pause" for N seconds (or milliseconds or whatever, but seconds are fine). I'm looking for a solution that does <em>not</em> involve linking some new (perhaps written... | <p>There must be some good reason you're not wanting the obvious answer:
<code>SYSTEM "sleep 5"</code>. If all you're wanting is for the SPL to pause while you check various values etc, here are a couple of thoughts (all of which are utter hacks, of course):</p>
<ol>
<li>Make the TRACE FILE a named pipe (assuming Unix... | <p>I assume that you want this "pause" for debugging purposes, otherwise think about it, you'll always have some better tasks to do for your server than sleep ...</p>
<p>A suggestion: Maybe you could get CURRENT, add it a few seconds ( let mytimestamp ) then in a while loop select CURRENT while CURRENT <= mytimesta... | 2,752 |
<p>Prompted by discussion in comments of a recent question whether PLA is suitable for parts that need to be in contact with acetone, I did some casual experiments and found that my clear/"natural" 3D Solutech PLA is mostly but not entirely resistant to acetone, while my blue Hatchbox PLA is quickly softened ... | <p>There's only two ways to make sure it is pure PLA without color and additives:</p>
<ul>
<li>Make it yourself. Order PLA-pellets for manufacturing and put them into a filament extrusion machine</li>
<li>Contact your manufacturer and ask them to do the above for you.</li>
</ul>
<p>Note though that the pure PLA might h... | <p>If acetone resistance is what you are after, try PETG:</p>
<p>"While the chemical resistance of PETG is one of its most desirable characteristics, it is also one of the reasons why smoothing PETG prints is challenging. Since dissolving PETG with a solvent, smoothing via solvent application (like acetone smoothi... | 1,690 |
<p>Instead of returning a common string, is there a way to return classic objects?
If not: what are the best practices? Do you transpose your object to xml and rebuild the object on the other side? What are the other possibilities? </p>
| <p>As mentioned, you can do this in .net via serialization. By default all native types are serializable so this happens automagically for you.</p>
<p>However if you have complex types, you need to mark the object with the [Serializable] attribute. The same goes with complex types as properties.</p>
<p>So for example... | <p>As others have said, it is possible. However, if both the service and client use an object that has the exact same domain behavior on both sides, you probably didn't need a service in the first place. </p>
| 3,299 |
<p>Setting up an integration server, I’m in doubt about the best approach regarding using multiple tasks to complete the build. Is the best way to set all in just one big-job or make small dependent ones?</p>
| <p>You definitely want to break up the tasks. Here is a nice example of CruiseControl.NET configuration that has different targets (tasks) for each step. It also uses a common.build file which can be shared among projects with little customization.</p>
<p><a href="http://code.google.com/p/dot-net-reference-app/sourc... | <p>I would definitely break down the jobs. Chances are you're likely to make changes in the builds, and it'll be easier to track down issues if you have smaller tasks instead of searching through one monolithic build.</p>
<p>You should be able to create one big job from the smaller pieces, anyways.</p>
| 4,978 |
<p>I have a couple CSS files with overlapping CSS selectors that I'd like to programmatically merge (as in not just appending one file to the end of the other). Is there any tool to do this online? or a Firefox extension perhaps?</p>
| <p>I found <a href="http://zamez.org/factorcss" rel="noreferrer">Factor CSS</a> - complete with source code, but I think it does way more than I'd need. I really just want to combine CSS blocks that have the same selectors. I'll check out the source code and see if it can be converted to something usable as a TextMate ... | <p>I wrote a Perl utility to do this several years ago.</p>
<p>As well as merging one or more stylesheets into a single coherent sorted output (complete with comments to show which file(s) each property appeared in, and warnings when a property has conflicting values), you can also <em>selectively</em> search or merge... | 3,744 |
<p>I'm developing an Excel 2007 add-in using Visual Studio Tools for Office (2008). I have one sheet with several ListObjects on it, which are being bound to datatables on startup. When they are bound, they autosize correctly.</p>
<p>The problem comes when they are re-bound. I have a custom button on the ribbon bar... | <p>If anyone else is having this problem, I have found the cause of this exception. ListObjects will automatically re-size on binding, as long as they do not affect any other objects on the sheet. Keep in mind that ListObjects can only affect the Ranges which they wrap around.</p>
<p>In my case, the list object whic... | <p>Just an idea of something to try to see if it gives you more info: Try resizes the list object before the exception line and see if that also throws an exception. If not, try and resize the range object to the new size of the DataTable.</p>
<p>You say that this happens when the ListObject shrinks and grows. Does it... | 4,083 |
<p>When I try to create a SQL Server Login by saying</p>
<pre><code>CREATE LOGIN [ourdomain\SQLAccessGroup] FROM WINDOWS;
</code></pre>
<p>I get this error</p>
<blockquote>
<p>The server principal 'ourdomain\SQLAccessGroup' already exists.</p>
</blockquote>
<p>However, when I try this code</p>
<pre><code>DROP LO... | <p>We are still struggling to understand the <em>HOW</em> of this issue, but it seems that [ourdomain\SQLAccessGroup] was aliased by a consultant to a different user name (this is part of an MS CRM installation). We finally were able to use some logic and some good old SID comparisons to determine who was playing the ... | <p>This happened to me when I installed SQL Server using a Windows username and then I renamed the computer name and the Windows username from Windows. SQL server still has the old "Computername\Username" in its node of Server->Security->Logins.</p>
<p>The solution is to go to Server->Security-><strong>Logins</strong>... | 4,136 |
<p>How can I change default <a href="http://msdn.microsoft.com/en-us/library/3a7hkh29.aspx" rel="nofollow noreferrer">Generate Method Stub</a> behavior in Visaul Studio to generate method with body</p>
<pre><code>throw new NotImplementedException();
</code></pre>
<p>instead of </p>
<pre><code>throw new Exception("Th... | <p>Taken from: <a href="http://blogs.msdn.com/ansonh/archive/2005/12/08/501763.aspx" rel="noreferrer">http://blogs.msdn.com/ansonh/archive/2005/12/08/501763.aspx</a></p>
<blockquote>
<p>Visual Studio 2005 supports targeting the 1.0 version of the compact framework. In order to keep the size of the compact framework... | <p>There's another reason: FxCop catches instances of anybody throwing 'Exception' and flags it, but throwing instances of 'NotImplementedException' is acceptable.</p>
<p>I actually like the default behavior, because it does have this differentiation. NotImplementedException is not a temporary exception to be thrown w... | 6,803 |
<p>Is there a way to take over the Entity Framework class builder? I want to be able to have my own class builder so i can make some properties to call other methods upon materialization or make the entity classes partial.</p>
| <p>Actually they are already in partial classes. See <a href="http://msdn.microsoft.com/en-us/library/bb738612.aspx" rel="nofollow noreferrer">MSDN</a></p>
| <p>I'll add that not only can you can tack on your own class <strong>partial classes</strong> to those emitted by the Entity Framework, but you can also write out all the <strong>partial methods</strong> created by the generated code.</p>
<p>IE. There'll be a lot of partial method code which get called but the method ... | 6,046 |
<p>I've written (most of) an application in Flex and I am concerned with protecting the source code. I fired up a demo of <a href="http://www.flash-decompiler.com/" rel="noreferrer">Trillix swf decompiler</a> and opened up the swf file that was installed to my Program Files directory. I saw that all of the actionscript... | <p>Here's what I would do.</p>
<ul>
<li><p>Compile your application to a SWF file. Then encrypt the SWF using AES.</p></li>
<li><p>Make a "wrapper" application that loads the encrypted SWF into a ByteArray using URLLoader</p></li>
<li><p>Use the <a href="http://code.google.com/p/as3crypto/" rel="noreferrer">as3crypto<... | <p>I recently released an iOS and Android game using Flash. I looked around the internet for a good free program to protect the source code in my SWF and couldn't find anything so I wrote one. It's still in development and it's "use at your own risk" but it worked for me.</p>
<p>It's released on github. Check it out a... | 2,678 |
<p>What is the difference between <a href="http://msdn.microsoft.com/en-us/library/9a6a2sxy.aspx" rel="noreferrer"><code>Math.Floor()</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.math.truncate.aspx" rel="noreferrer"><code>Math.Truncate()</code></a> in .NET?</p>
| <p><code>Math.Floor</code> rounds down, <code>Math.Ceiling</code> rounds up, and <code>Math.Truncate</code> rounds towards zero. Thus, <code>Math.Truncate</code> is like <code>Math.Floor</code> for positive numbers, and like <code>Math.Ceiling</code> for negative numbers. Here's the <a href="https://learn.microsoft.com... | <p>Truncate drops the decimal point.</p>
| 2,235 |
<p>I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the user interface, to have a dropdownlist for this enum, to rest... | <p>I do not know if that would work with a DataGridView column but it works with ComboBoxes:</p>
<pre><code>comboBox1.DataSource = Enum.GetValues(typeof(MyEnum));
</code></pre>
<p>and:</p>
<pre><code>MyEnum value = (MyEnum)comboBox1.SelectedValue;
</code></pre>
<p>UPDATE: It works with DataGridView columns too, jus... | <p>Or, if you need to do some filtering of the enumerator values, you can loop through <code>Enum.GetValues(typeof(EnumeratorName))</code> and add the ones you want using:</p>
<pre><code>dataGridViewComboBoxColumn.Items.Add(EnumeratorValue)
</code></pre>
<p>As an aside, rather than using a DataTable, you can set the ... | 8,038 |
<p>I'm having some issues with my Prusa i3 prints. I'm trying to print the default beer opener print that came with the Prusa's memory card but the infill will break causing clogging and now allowing the print to finish. I've attached a picture of one of the failed prints.</p>
<p><a href="https://i.stack.imgur.com/JNP... | <p>If you carbonize the filament or other particles that are clogging the nozzle, then you will never get them clean. In my experience, it's not worth cleaning the nozzle with anything other than cleaning filament. If that doesn't work then change the nozzle. Heating the metal nozzle with a torch will change the temper... | <p>If you can get the torch hot enough and you carbonise/burn the filament properly, it may work. You still need to do a cold pull to remove as many residues as you can, but if you heated it enough, the residuals maybe won't stick too much to the nozzle.</p>
<p>You already have the butane, try and tell us.</p>
| 1,629 |
<p>When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applications?</p>
<p>Is the requirement of the ... | <p>You can still develop applications for the windows desktop using C/C++, eliminating the requirement to the .NET framework, but you'll need to make sure the necessary libraries are already on the system or installed.</p>
<p>The nice thing about the .NET framework is that Windows XP SP2 and Vista has the 3.0 framewor... | <p>It is possible not to require the .NET Framework; there are some companies that sell (for thousands of dollars, mind you) solutions that will allow you to do this. These are complete hacks, however, and not supported by Microsoft.</p>
<p>How you develop desktop applications (ie, using .NET or not) depends on your r... | 3,236 |
<p>How do you rewrite this in Linq?</p>
<pre><code>SELECT Id, Name FROM TableA WHERE TableA.Id IN (SELECT xx from TableB INNER JOIN Table C....)
</code></pre>
<p>So in plain english, I want to select Id and Name from TableA where TableA's Id is in a result set from a second query.</p>
| <pre><code>from a in TableA
where (from b in TableB
join c in TableC on b.id equals c.id
where .. select b.id)
.Contains(a.Id)
select new { a.Id, a.Name }
</code></pre>
| <p>There is no out of box support for IN in LINQ. You need to join 2 queries.</p>
| 6,761 |
<p>So I bought a prusa i3 kit from a company called folger tech off of ebay. I've built it and even printed out a few parts, but I noticed that a lot of noise seemed to be happening only while the x-axis motor was moving the extruder. Then I noticed if I put my finger lightly on the plastic part of the x-carriage I cou... | <p>It's probably intentional. Threaded rods are almost never perfectly straight. If the nut is rigidly coupled to the carriage, then the slightest deviation in the screw will either cause it to bind up or appear as artifacts (e.g. z-wobble) in the print. By making the nut slightly loose, it can move around a bit to com... | <p>I do not agree with the answer of Tom.</p>
<p>In a proper design, the nut is supposed NOT to be loose, especially in the Z-direction. All options of the nut to move can cause imprecise layer heights and Z-wobble. There is also the possibility to introduce Z-wobble by bent rods and good contact of the nut. However, ... | 235 |
<p>I would like to give a class a unique ID every time a new one is instantiated. For example with a class named Foo i would like to be able to do the following</p>
<pre><code>dim a as New Foo()
dim b as New Foo()
</code></pre>
<p>and a would get a unique id and b would get a unique ID. The ids only have to be uniq... | <p>This design is vulnerable to multithreading issues. I'd strongly suggest using Guids for your IDs (Guid.NewGuid()). If you absolutely must use ints, check out the <a href="http://msdn.microsoft.com/en-us/library/system.threading.interlocked.aspx" rel="nofollow noreferrer">Interlocked</a> class. You can wrap all in... | <p>It's likely throwing an error because you're never initializing _nextId to anything. It needs to have an initial value before you can safely add 1 to it.</p>
| 8,944 |
<p>I have a table defined (see code snippet below). How can I add a constraint or whatever so that the LastUpdate column is automatically updated anytime the row is changed?</p>
<pre><code>CREATE TABLE dbo.Profiles
(
UserName varchar(100) NOT NULL,
LastUpdate ... | <p>I agree with the others -- set a default value of GetDate() on the LastUpdate column and then use a trigger to handle any updates.</p>
<p>Just something simple like this:</p>
<pre><code>CREATE TRIGGER KeepUpdated on Profiles
FOR UPDATE, INSERT AS
UPDATE dbo.Profiles
SET LastUpdate = GetDate()
WHERE Username IN (... | <p>My suggestion would be to create a stored procedure which defaults the lastUpdate to getdate(). </p>
<p>I've tried to avoid triggers in the past because pre-SQL2005 locating and editing them was a pain in the rump. Especially for developers who are new to your project. </p>
<p>Also add that as the default value fo... | 5,663 |
<p>Is there any Visual Studio Express plug ins for source versioning? I am starting a project on my own and only have the Express version of Visual Studio 2008.</p>
| <p>Short answer: No.</p>
<p>The Express editions support neither the Add-Ins nor Source Control providers (SCC plug-ins). While there are ways to make this work, they are undocumented, violate the license and <a href="http://weblogs.asp.net/nunitaddin/archive/2007/05/31/microsoft-vs-testdriven-net-31-may-2007.aspx" re... | <p>I don't think there are any plugins for Express versions of VS. Googling 'Jamie Cansdale' is the canonical reference for this issue.</p>
| 5,069 |
<p>We deployed a live, fresh, swanky site using preview 3 including rigorous stress testing. </p>
<p>Page Output caching was our saviour and afforded us the ability to meet our performance contractual requirements.</p>
<p>My question is, is there a difference between action <code>OutputCacheFilter</code> and page out... | <p>Internally, the OutputCacheAttribute (aka output cache filter) uses the same internal mechanism as <a href="http://msdn.microsoft.com/en-us/library/hdxfb6cy.aspx" rel="nofollow noreferrer">page output caching</a> (aka the @OutputCache directive).</p>
<p>Therefore, it's not any faster than page output caching. Howev... | <p>Just be aware that there currently is a bug if you call Html.RenderAction(..) on an Action that is marked to be cached. Instead of the specific action being cached, the entire page gets cached. I reported this on codeplex already and it seems to be a known issue:
<a href="http://www.codeplex.com/aspnet/WorkItem/View... | 3,187 |
<p>I can't seem to understand the margins that Cura uses or how to fix them for my machine. Look at this:</p>
<p><a href="https://i.stack.imgur.com/5oD0d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5oD0d.png" alt="Screenshot of Cura, depicting large grey area"></a></p>
<p>I can't seem to tweak ... | <p>I had mistakenly left the setting "one at a time" in print sequence. This meaning the printhead needs a lot of room since it will go back and forth in z.</p>
<p>Cura allocates this extra space even if there's only one object.</p>
| <p>That looks like you've got the "brim" set to a very wide value. I know you said it's not explained by skirts --which, as Greenonline pointed out, is not the same as a brim--, but you didn't post that setting. At the same time, make sure you don't have a 'raft' set up. </p>
<p>One other possibility is that your so... | 612 |
<p>I am the owner of a pretty Anycubic Mega I3 and it was very cool to own it. </p>
<p>However, now I have several problems when printing with it. It clicks all along, at high or low temperature, at 5 mm above the plate, and the result is very disgusting. It is the same with the basic black PLA, or with other PLA... | <p>I redid the print in order to reply to some questions posed in the answer of @kdtop. The print started but the output was not consistent and sometimes stopped. The temperature is 195°C and sometimes 'drop' to 194°C. First I pushed the new real so that the extruder did not need to pull so much. When this did not solv... | <p>My slicer (Cura-lulzbot) has a setting for initial printing temp, and then printing temp after the first few layers. Is it possible that your temp is initially OK, but then drops too low? Does your printer have a readout that shows the current temp? Is the temp still OK when it stops?</p>
<p>It sounds like you a... | 927 |
<p>From time to time I see an enum like the following:</p>
<pre><code>[Flags]
public enum Options
{
None = 0,
Option1 = 1,
Option2 = 2,
Option3 = 4,
Option4 = 8
}
</code></pre>
<p>I don't understand what exactly the <code>[Flags]</code> attribute does.</p>
<p>Anyone have a good explanation or... | <p>The <code>[Flags]</code> attribute should be used whenever the enumerable represents a collection of possible values, rather than a single value. Such collections are often used with bitwise operators, for example:</p>
<pre><code>var allowedColors = MyColor.Red | MyColor.Green | MyColor.Blue;
</code></pre>
<p>Note... | <ul>
<li><p>Flags are used when an enumerable value represents a collection of
enum members.</p>
</li>
<li><p>here we use bitwise operators, | and &</p>
</li>
<li><p>Example</p>
<pre><code> [Flags]
public enum Sides { Left=0, Right=1, Top=2, Bottom=3 }
Sides leftRight = Sides.... | 2,987 |
<p>What are the pros and cons of using table aliases in SQL? I personally try to avoid them, as I think they make the code less readable (especially when reading through large where/and statements), but I'd be interested in hearing any counter-points to this. When is it generally a good idea to use table aliases, and... | <p>Table aliases are a necessary evil when dealing with highly normalized schemas. For example, and I'm not the architect on this DB so bear with me, it can take 7 joins in order to get a clean and complete record back which includes a person's name, address, phone number and company affiliation. </p>
<p>Rather than t... | <p>Aliases are required when joining tables with columns that have identical names.</p>
| 3,222 |
<p>Is the following safe?</p>
<p>I am new to threading and I want to delegate a time consuming process to a separate thread in my C++ program.
Using the boost libraries I have written code something like this:</p>
<p>thrd = new boost::thread(boost::bind(&myclass::mymethod, this, &finished_flag);</p>
<p>Where... | <p>You never mentioned the type of finished_flag...</p>
<p>If it's a straight <strong>bool</strong>, then it might work, but it's certainly bad practice, for several reasons. First, some compilers will cache the reads of the <em>finished_flag</em> variable, since the compiler doesn't always pick up the fact that it's ... | <p>Having the thread set a flag (or signal an event) before it exits is a race condition. The thread has not necessarily returned to the OS yet, and may still be executing. </p>
<p>For example, consider a program that loads a dynamic library (pseudocode):</p>
<pre><code>lib = loadLibrary("someLibrary");
fun = getFunc... | 5,433 |
<p>My question is pertaining to the best practice for accessing a child object's parent. So let's say a class instantiates another class, that class instance is now referenced with an object. From that child object, what is the best way to reference back to the parent object? Currently I know of a couple ways that I us... | <p>It's generally good to have the class as it's own instance and reduce tight coupling to something else (as in this case, it's parent). If you do something like parent.doSomething() it's not possible to use that class in container that doesn't have the doSometing() method. I think it's definitely better to pass in wh... | <p>If these objects are in the DisplayList, then you have some more options. If I have a ParentClass and a ChildClass, in the child class, you seem to be able to access the parent if you cast the request as the ParentClass. e.g. </p>
<pre><code>ParentClass(parent).parentFunction();
</code></pre>
<p>I know for sure it... | 8,486 |
<p>I'm looking to print this item:</p>
<blockquote>
<p><a href="https://www.thingiverse.com/thing:4274950" rel="nofollow noreferrer">https://www.thingiverse.com/thing:4274950</a></p>
</blockquote>
<p>I want to lay it flat on the bed, 90° to how it's shown on Thingiverse. The problem is there's the one little corner... | <p>I don't know a way to do that with Cura without breaking it up into multiple parts with different settings for each, but what about just enabling supports? You'd only get a very small amount of support material and it would act similarly to a brim to keep the small part from detaching.</p>
| <p>I would enable supports using "Touching Build Plate", and then place a support blocker over the portion that you don't want supports added to.</p>
| 1,630 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.