instruction stringlengths 27 22.5k | chosen stringlengths 27 28.2k | rejected stringlengths 19 24.9k | __index_level_0__ int64 0 10k |
|---|---|---|---|
<p>What would be the best version control system to learn as a beginner to source control?</p>
| <p>Anything but Visual Source Safe; preferably one which supports the concepts of branching and merging. As others have said, Subversion is a great choice, especially with the TortoiseSVN client.</p>
<p>Be sure to check out (pardon the pun) <a href="http://www.ericsink.com/scm/source_control.html" rel="noreferrer">Eri... | <p>Anything, but I would learn a modern system like git or subversion myself. My first VCS was RCS, but I got the basics down.</p>
| 4,330 |
<p>A while back I was reading the W3C article on '<a href="http://www.w3.org/International/articles/text-reuse/" rel="noreferrer">Re-using Strings in Scripted Content</a>', which contains some useful advice on internationalisation, but which strikes me as at odds iwth the DRY (Don't Repeat Yourself) principle of elimin... | <p>I'd try to keep complete sentences in the language resource. As you said you might need different words in different contexts. But a bigger problem is that the order of sentences might be different in different languages. So building up strings from words can cause problems.</p>
<p>Just store</p>
<pre><code>The pr... | <p>I would suggest using a CMS rather than hardcoding in your textual values to cover localisation.</p>
| 8,054 |
<p>I'm familiar with SQL Server Indexed Views (or Oracle Materialized Views), we use them in our OLAP applications. They have the really cool feature of being able to usurp an execution plan and remap it to the indexed view w/out having to change existing code.</p>
<p>IE. Let's say I had a SPROC that was a really expe... | <p>Materialized views can be useful for reporting against OLTP, especially is large numbers of rows are aggregated to get the results. The space requirements are completely dependent on how much data you are saving. Think of it as a cache.</p>
<p>The tricky balance is between how recent the data needs to be for th... | <p>We use materialized views to speed up things where I work. Most often for reports against the OLTP system. Many of our reports run from a data warehouse, but since we refresh the warehouse overnight, up to the moment data has to come from the OLTP tables.</p>
| 8,162 |
<p>I've read the Wikipedia articles for both <a href="http://en.wikipedia.org/wiki/Procedural_programming" rel="noreferrer">procedural programming</a> and <a href="http://en.wikipedia.org/wiki/Functional_programming" rel="noreferrer">functional programming</a>, but I'm still slightly confused. Could someone boil it dow... | <p>A functional language (ideally) allows you to write a mathematical function, i.e. a function that takes <em>n</em> arguments and returns a value. If the program is executed, this function is logically evaluated as needed.<sup>1</sup></p>
<p>A procedural language, on the other hand, performs a series of <em>sequenti... | <p>To Understand the difference, one needs to to understand that "the godfather" paradigm of both procedural and functional programming is the <strong>imperative programming</strong>.</p>
<p>Basically procedural programming is merely a way of structuring imperative programs in which the primary method of abstraction i... | 4,327 |
<p>I know a few advanced ways, to change directories. <code>pushd</code> and <code>popd</code> (directory stack) or <code>cd -</code> (change to last directory).</p>
<p>But I am looking for quick way to achieve the following:</p>
<p>Say, I am in a rather deep dir:</p>
<pre><code>/this/is/a/very/deep/directory/struct... | <p>Do you mean that the path names are the same, and only one directory name changes ("a" becomes "another")? In that case:</p>
<pre><code>cd ${PWD/a/another}
</code></pre>
<p>will switch to the other directory. <code>$PWD</code> holds your current directory, and <code>${var/foo/bar}</code> gives you <code>$var</code... | <pre><code>cd ^/a/^/another/
</code></pre>
| 8,592 |
<p>The IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox.</p>
<ul>
<li>How does one create an IE plugin?</li>
<li>What languages are available for this task?</li>
<li>How can I make a Hello World plugin?</li>
</ul>
| <p>Here are a few resources that might help you in your quest to create browser helper objects (BHO).</p>
<p><a href="http://wayback.archive.org/web/20110923191120/http://petesearch.com/wiki" rel="nofollow noreferrer">http://petesearch.com/wiki/ (archived)</a></p>
<p><a href="http://www.hackszine.com/blog/archive/200... | <p>See <a href="http://www.enhanceie.com/ie/dev.asp" rel="noreferrer">http://www.enhanceie.com/ie/dev.asp</a> for my favorite resources on this topic.</p>
| 6,105 |
<p>I've developed my own delivery extension for Reporting Services 2005, to integrate this with our SaaS marketing solution.</p>
<p>It takes the subscription, and takes a snapshot of the report with a custom set of parameters. It then renders the report, sends an e-mail with a link and the report attached as XLS.</p>
... | <p>Some tips:
Understand the JSF request <a href="http://www.java-samples.com/showtutorial.php?tutorialid=470" rel="nofollow noreferrer">lifecycle</a> and where your various pieces of code fit in it. Especially find out why your model values will not be updated if there are validation errors.</p>
<p>Choose a tag libra... | <p>Select a good component library .Do not use richfaces , i suggest you dont use jsf , use spring mvc,jquery fro view and json in a rest architecture. but if you have to ,use primefaces it easy to use and has enough components.</p>
| 5,189 |
<p>For context, I am something of an emacs newbie. I haven't used it for very long, but have been using it more and more (I like it a lot). Also I'm comfortable with lisp, but not super familiar with elisp.</p>
<p>What I need to do is bind a regular expression to a keyboard combination because I use this particular ... | <p>You can use macros, just do <kbd>C-x (</kbd> then do everything for the macro, then <kbd>C-x )</kbd> to end the macro, then <kbd>C-x e</kbd> will execute the last defined macro. Then, you can name it using <kbd>M-x name-last-kbd-macro</kbd> which lets you assign a name to it, which you can then invoke with <kbd>M-x... | <p>@Justin:</p>
<p>When executing a macro, it's a little different... incremental searches will just happen once, and you will have to execute the macro again if you want to search again. You can do more powerful and complex things though, such as search for a keyword, jump to the beginning of the line, mark, go to e... | 3,139 |
<p>What is the proper way to minimize a WinForms app to the system tray? </p>
<p>Note: minimize to <strong><em>system tray</em></strong>; on the right side of the taskbar by the clock. I'm not asking about minimizing to taskbar, which is what happens when you hit the "minus" button on the window.</p>
<p>I've seen hac... | <p>There is actually no managed way to do that form of animation to the tray in native winforms, however you can P/Invoke shell32.dll to do it:</p>
<p>Some good info here (In the comments not the post):</p>
<p><a href="http://blogs.msdn.com/jfoscoding/archive/2005/10/20/483300.aspx" rel="noreferrer">http://blogs.msdn... | <p>In the constructor of the Form:</p>
<pre><code>this.Resize += new EventHandler(MainForm_Minimize);
</code></pre>
<p>Then use this Event Handler method:</p>
<pre><code> private void MainForm_Minimize(object sender, EventArgs e)
{
if(this.WindowState == FormWindowState.Minimized)
Hide();
... | 6,910 |
<p>Someone told me it's more efficient to use <code>StringBuffer</code> to concatenate strings in Java than to use the <code>+</code> operator for <code>String</code>s. What happens under the hood when you do that? What does <code>StringBuffer</code> do differently?</p>
| <p>It's better to use StringBuilder (it's an unsynchronized version; when do you build strings in parallel?) these days, in almost every case, but here's what happens:</p>
<p>When you use + with two strings, it compiles code like this:</p>
<pre><code>String third = first + second;
</code></pre>
<p>To something like ... | <p>Because Strings are imutable in Java, every time you concanate a String, new object is created in memory. SpringBuffer use the same object in memory.</p>
| 9,136 |
<p>A <code>.container</code> can contain many <code>.components</code>, and <code>.components</code> themselves can contain <code>.containers</code> (which in turn can contain .components etc. etc.)</p>
<p>Given code like this:</p>
<pre><code>$(".container .component").each(function(){
$(".container", this).css('bo... | <pre><code>$(".container .component").each(function()
{
$(".container", this).each(function() {
if($(this).css('width') == 'auto')
{
$(this).css('border', '1px solid #f00');
}
});
});
</code></pre>
<p>Similar to the other answer but since components can also have multiple co... | <pre><code>$(".container .component").each(function() {
if ($(".container", this).css('width') === "auto")
$(".container", this).css('border', '1px solid #f00');
});
</code></pre>
| 6,555 |
<p>I'll start off on a good note and congratulate everyone in the community for continually supporting each other. We have maintained a great answer rate here on 3D Printing SE with a answer rate of 96%. I believe this rate has been maintained since day one and it's hard to keep up, especially with fluctuations in user... | <p>I have the feeling that a lot of the questions with non-accepted answers are users that came in for one or two questions and then left for good without ever accepting an answer. They might even have forgotten about this place.</p>
<p>For the note: we have (according to <a href="https://area51.stackexchange.com/prop... | <p>Hands up, guilty as charged. In my defence sometimes using the answer as given raises even more questions. In mitigation, from the knowledge gained (from helpful folk or simply own stupidity), I now contribute to others starting out. Will try harder.</p>
<p>P.S. Is there anywhere in the forum with a cure for life i... | 38 |
<p>I've got to do some significant development in a large, old, spaghetti-ridden ASP system. I've been away from ASP for a long time, focusing my energies on Rails development.</p>
<p>One basic step I've taken is to refactor pages into subs and functions with meaningful names, so that at least it's easy to understand @... | <p><strong>Assumptions</strong></p>
<p>The documentation for the Classic ASP system is rather light.</p>
<p>Management is not looking for a rewrite.</p>
<p>Since you have been doing ruby on rails, your (VB/C#) ASP.NET is passable at best.</p>
<p><strong>My experience</strong></p>
<p>I too inherited a classic ASP s... | <p>This is very old, but couldn't resist adding my two cents. If you must rewrite, and must continue to use classic ASP:</p>
<ul>
<li>use JScript! much more powerful, you get inheritance, and there some good side benefits like using the same methods for server-side validation as you use for client-side</li>
<li>you ca... | 4,369 |
<p>In the application I'm developping (in Java/swing), I have to show a full screen window on the <em>second</em> screen of the user.
I did this using a code similar to the one you'll find below...
Be, as soon as I click in a window opened by windows explorer, or as soon as I open windows explorer (i'm using windows XP... | <p>Usually when an application is in "full screen" mode it will take over the entire desktop. For a user to get to another window they would have to alt-tab to it. At that point windows would minimize the full screen app so that the other application could come to the front. </p>
<p>This sounds like it may be a bug ... | <p>The following code works (thank you John). With no full screen and a large "always on top" window.
But I still don't know why windows caused this stranged behavior...</p>
<pre><code>private Window initFullScreenWindow() {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDe... | 7,740 |
<p>I am working with Cognos8 Report Studio. In my report there are two date prompts: <code>START date</code> and <code>END date</code>. Users can select two different dates or make them both the same date. But the report has valid data only for the last business date of each month. For example, if Jan 31 is Sunday, val... | <p>Unfortunately, Robot does require that you are logged on to the machine and that the desktop is not locked. </p>
<p>So, no, you are not missing something.</p>
<p>Depending on your situation, though, you may be able to work around the issue. Can you clarify what type of application you are trying to test? If it ... | <p>You can run Rational Robot from the command line, so you should be able to set up a scheduled task to run a .BAT file to do this for you. The command is something like:</p>
<p>[path to Rational Robot]\rtrobo [script file] /user "user name" /project [project file] /play /build "build name" /nolog /close</p>
<p>The ... | 8,835 |
<p>Every time I create a new project I copy the last project's ant file to the new one and make the appropriate changes (trying at the same time to make it more flexible for the next project). But since I didn't really thought about it at the beginning, the file started to look really ugly.</p>
<p>Do you have an Ant t... | <p>An alternative to making a template is to evolve one by gradually generalising your current project's Ant script so that there are fewer changes to make the next time you copy it for use on a new project. There are several things you can do.</p>
<p>Use ${ant.project.name} in file names, so you only have to mention ... | <p>I used to do exactly the same thing.... then I switched to <a href="http://maven.apache.org/" rel="nofollow noreferrer">maven</a>. Maven relies on a simple xml file to configure your build and a simple repository to manage your build's dependencies (rather than checking these dependencies into your source control s... | 4,785 |
<p>I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their own, but there's a small chance that a thread gets stuck.In this case it would be convenient to have a non-blocking join so I could do.</p>
<p><strong>Is there a way of doing a non-blocking pthread_join?
... | <p>If you are running your application on Linux, you may be interested to know that:</p>
<pre><code>int pthread_tryjoin_np(pthread_t thread, void **retval);
int pthread_timedjoin_np(pthread_t thread, void **retval,
const struct timespec *abstime);
</code></pre>
<p>Be careful, as the s... | <p>You could push a byte into a pipe opened as non-blocking to signal to the other thread when its done, then use a non-blocking read to check the status of the pipe.</p>
| 9,912 |
<p>I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have been able to generate a test report by running NAnt on mono thru a Command Line Runner but don't have the options of using the report like a NAnt Runner. I'm also using MBUnit for the testing framework.</p>
<p>How can I merge ... | <p><a href="http://blog.bits-in-motion.com/2008/10/announcing-gallio-and-mbunit-v304.html" rel="nofollow noreferrer">Gallio now has an extension</a> to output TeamCity service messages.
Just use the included Gallio.NAntTasks.dll and enable the TeamCity extension. (this <a href="http://groups.google.com/group/gallio-dev... | <p>TeamCity Sidebar Gadget for Windows Vista, Windows 7
<a href="http://teamcity-gadget.com" rel="nofollow noreferrer">http://teamcity-gadget.com</a></p>
| 2,529 |
<p>I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it takes for the copy to complete.</p>
<p>Any suggestions would be much appreciated.</p>
| <p>Assuming this is running on a Linux machine, I've always handled it like this:</p>
<pre><code>exec(sprintf("%s > %s 2>&1 & echo $! >> %s", $cmd, $outputfile, $pidfile));
</code></pre>
<p>This launches the command <code>$cmd</code>, redirects the command output to <code>$outputfile</code>, and w... | <p>I know it is a 100 year old post, but anyway, thought it might be useful to someone. You can put an invisible image somewhere on the page pointing to the url that needs to run in the background, like this:</p>
<p><code><img src="run-in-background.php" border="0" alt="" width="1" height="1" /></code></p>
| 6,797 |
<p>Say I have an object that stores a byte array and I want to be able to efficiently generate a hashcode for it. I've used the cryptographic hash functions for this in the past because they are easy to implement, but they are doing a lot more work than they should to be cryptographically oneway, and I don't care about... | <p>The hash code of an object does not need to be unique. </p>
<p>The checking rule is: </p>
<ul>
<li>Are the hash codes equal? Then call the full (slow) <code>Equals</code> method.</li>
<li>Are the hash codes not equal? Then the two items are definitely not equal.</li>
</ul>
<p>All you want is a <code>GetHashCode</... | <p><a href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.runtimehelpers.gethashcode.aspx" rel="nofollow noreferrer">RuntimeHelpers.GetHashCode</a> might help:</p>
<blockquote>
<p>From Msdn:</p>
<p>Serves as a hash function for a
particular type, suitable for use in
hashing algorit... | 3,706 |
<p>My initial tests have shown that Robot won't work without an active, visible desktop. For example, while a scheduled task (or executed command from the continuous integration server) may be able to start robot as a command-line process, Robot will actually fail to execute the recorded script.</p>
<p>Logging into th... | <p>Unfortunately, Robot does require that you are logged on to the machine and that the desktop is not locked. </p>
<p>So, no, you are not missing something.</p>
<p>Depending on your situation, though, you may be able to work around the issue. Can you clarify what type of application you are trying to test? If it ... | <p>You can run Rational Robot from the command line, so you should be able to set up a scheduled task to run a .BAT file to do this for you. The command is something like:</p>
<p>[path to Rational Robot]\rtrobo [script file] /user "user name" /project [project file] /play /build "build name" /nolog /close</p>
<p>The ... | 8,834 |
<p>We need is to push sports data to a number of different client types such as ajax/javascript, flash, .NET and Mac/iPhone. Data updates need to only be near-real time with delays of several seconds being acceptable. </p>
<p>How to best accomplish this?</p>
| <p>The best solution (if we're talking .NET) seem to be to use WCF and streaming http. The client makes the first http connection to the server at port 80, the connection is then kept open with a streaming response that never ends. (And if it does it reconnects).</p>
<p>Here's a sample that demonstrates this: <a href=... | <p>I would go with XML. XML is widely supported on all platforms and has lots of libraries and tools available for it. And since it's text, there are no issues when you pass it between platforms.</p>
<p>I know JSON is another alternative, but I'm not familiar enough with it to know whether or not to recommend it in ... | 7,367 |
<p>When do you recommend integrating a custom view into Interface Builder with a plug-in? When skimming through Apple's <a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/IBPlugInGuide/CreatingPluginBundle/chapter_2_section_3.html#//apple_ref/doc/uid/TP40004323-CH4-DontLinkElementID_15" rel="no... | <p>It's perfectly reasonable to push the view and controller classes that your application uses out into a separate framework — embedded in your application wrapper — for which you also produce an Interface Builder plug-in.</p>
<p>Among other reasons, classes that are commonly used in your application can then be conf... | <p>I think the Apple guidelines sum it up nicely.</p>
<p>If you're writing a control that will be used in multiple applications and is completely generic, then creating a custom object is a good idea. You'll be able to visualize the look and set properties directly from Interface Builder.</p>
<p>If your control is li... | 7,199 |
<p><a href="http://pear.php.net/manual/en/package.database.db-dataobject.php" rel="nofollow noreferrer">DB_DataObject</a> does not appear to be ActiveRecord because you do not necessarily store business logic in the "table" classes. It seems more like Table Data Gateway or Row Data Gateway, but I really cannot tell. Wh... | <p>Follow <a href="http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.php" rel="nofollow noreferrer">this link</a> to read what DB_DO is. In a nutshell, it doesn't implement a specific pattern, it just aims to provide a common interface. The idea is to not rebuild the same basic code in each pro... | <p>It sounds like what you're looking for is something like <a href="http://ibatis.apache.org/" rel="nofollow noreferrer">IBatis</a> for PHP. Sadly, this doesn't yet exist. I've actually written some custom DataMapper stuff based on PDO for the current application I'm working on to achieve a persistence ignorant domain... | 5,971 |
<p>I want to paste something I have cut from my desktop into a file open in Vi.</p>
<p>But if I paste the tabs embed on top of each other across the page.</p>
<p>I think it is some sort of visual mode change but can't find the command.</p>
| <h2>If you're using plain vi:</h2>
<p>You probably have <code>autoindent</code> on. To turn it off while pasting:</p>
<pre><code><Esc> :set noai
<paste all you want>
<Esc> :set ai
</code></pre>
<p>I have in my <code>.exrc</code> the following shortcuts:</p>
<pre><code>map ^P :set noai^M
map ^N :set ... | <p>I found that if I copy tabbed lines first into a text editor and then recopy them from there to vim, then the tabs are correct.</p>
| 8,323 |
<p>In a <a href="https://3dprinting.stackexchange.com/questions/5604/how-to-re-program-prusa-firmware-to-accept-a-taller-z-axis">previous question</a>, I have modified the Z-axis-height of my Prusa Mk3 from 250 mm to 350 mm.</p>
<p>Prior to the MMU2 upgrade, I changed the code in my printer to accept the new height the... | <p>Basically, the <a href="/a/5606/5740">answer</a> on your <a href="/questions/5604/how-to-re-program-prusa-firmware-to-accept-a-taller-z-axis">previous question</a> is still valid, but your specific questions will be addressed below.</p>
<h2>To answer where the setting has gone by answering:</h2>
<blockquote>
<p>... | <p>Latest firmware: Prusa-Firmware-3.5.0\Prusa-Firmware-3.5.0
Arduino 1.6.9, RepRap Arduino-compatible Mother Board RAMBo by Ultimachine latest version 1.0.1, Arduino AVR Boards Built-in by Arduino latest version v.1.6.23.</p>
<p>Copy the 1_75mm_MK3-EINSy10a-E3Dv6full file from
Prusa-Firmware-3.5.0\Prusa-Firmware-3.5.... | 1,096 |
<p>Does anyone know how many options a drop down list can have? Is it unlimited? How many before performance degrades?</p>
| <blockquote>
<p>Does anyone know how many options a drop down list can have? Is it unlimited? </p>
</blockquote>
<p>I imagine it is unlimited in theory, obviously not in practice as a computer's RAM and the specific browser's limitations come into play.</p>
<blockquote>
<p>How many before performance degrades?</p... | <p>In theory, there is no limit, but some browsers will implement limits. (Similar to using <code>document.write</code> in an infinite loop.)</p>
<p>But, at the end of the day, the most I would ever recommend in a drop-down-list, is about 50, just because no-one wants to do that much scrolling. That said, if organized... | 6,433 |
<p>I'm trying to create a sitemap using Linq to Xml, but am getting an empty namespace attribute, which I would like to get rid of. e.g.</p>
<pre><code>XNamespace ns = "http://www.sitemaps.org/schemas/sitemap/0.9";
XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "true"),
new XElement(ns + "urlset"... | <p>The "more correct way" would be:</p>
<pre><code>XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "true"),
new XElement(ns + "urlset",
new XElement(ns + "url",
new XElement(ns + "loc", "http://www.example.com/page"),
new XElement(ns + "lastmod", "2008-09-14"))));
</code></pre>
<p>Same as your... | <p>If one element uses a namespace, they all must use one. In case you don't define one on your own the framework will add a empty namespace as you have noticed. And, sadly, there is no switch or something similiar to suppress this "feature".</p>
<p>So, there seems to be no better method as to strip it out. Using <em>... | 8,619 |
<p>I'm looking for a control that the Visual Studio "Toolbox" menu uses. It can be docked and can retract (pin).</p>
<p>Would you know where I can find a control or COM I could use which would look like this?</p>
| <p>I would recommend the <a href="http://sourceforge.net/projects/dockpanelsuite" rel="nofollow noreferrer">DockPanel Suite</a> by Weifen Luo.</p>
| <p>You don't mention what language you want to use. For C++, use the Feature Pack.</p>
| 8,725 |
<p>Is there any known way of listing the WMI classes and their properties available for a particular system? Im interested in a vbscript approach, but please suggest anything really :)</p>
<p>P.S. Great site.</p>
| <p>I believe this is what you want.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?familyid=2cc30a64-ea15-4661-8da4-55bbc145c30e&displaylang=en" rel="noreferrer">WMI Code Creator</a></p>
<p>A part of this nifty utility allows you to browse namespaces/classes/properties on the local and remote PCs... | <p>This MSDN page walks through enumerating the available classes: <a href="http://msdn.microsoft.com/en-us/library/bb429532.aspx" rel="nofollow noreferrer">How to: List the Classes in a WMI Namespace</a></p>
<p>for retrieving properties from a class:</p>
<pre><code>ManagementPath l_Path = new ManagementPath(l_classN... | 3,338 |
<p>Can you think of a preferably cheap solution for me? I need a machine that pumps air out of my 3d printing enclosure, about 4 meters of pipe length. (From enclosure to window) What kind of pump or fan can pump air out of the enclosure (4m pipe length) at the lowest possible price and low volume?</p>
<p>I need it fo... | <p>Air flows from places of higher pressure to those of less.</p>
<h2>Minimal setup</h2>
<p>I propose to look at a very simple setup which works for short lengths of pipe:</p>
<ul>
<li>Choose if you want a radial fan of a direct passing fan. get one, measure the intake and the outlet side holes</li>
<li>cut a fan inlet... | <p>Well you can get a centrifugal fan and put it at either end of the pipe. You didn't specify a pipe diameter so I'll assume it's 1 inch. Just hook the pipe up to the exhaust. You will have to design and print an adapter.</p>
<p><a href="https://i.stack.imgur.com/bHByf.jpg" rel="nofollow noreferrer"><img src="https:/... | 1,253 |
<p>Let's say you're printing a container or some other object with no infill. What's a good rule of thumb for how thick to make the outside? I'm looking for something along the lines of millimeters thick per square inch of area.</p>
<p>I'm thinking about PLA right now, but answers for ABS and other materials are welco... | <p>This totally depends on what you think is acceptable for your print, and what the usage of the print is: is it a structural/functional part or just for aesthetic purposes. There is no general rule of thumb for that. Basically this is a design issue.</p>
<p>If it has to be stiff and may not flex much you would requi... | <p>I make small objects (25mm^2) with 1 to 1.5 mm walls and larger objects (think coffee cups) with about 2.5 - 3 mm walls. I set the line width and number of perimeters to completely fill the thickness.
I use this for ABS and PLA.
The PLA objects have been electronics enclosures, with internal structures to suppor... | 992 |
<p>I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We have already standardized on InstallA... | <p>If your clients are using SMS then you're in the clear... SMS supports EXE. You enter a command line when creating 'Programs' and clients are probably already calling msiexec to launch the MSI. Also I'm pretty sure SMS predates the MSI file format :)</p>
<p>However if they're using <code>Active Directory / Group Po... | <p>Actually, with group policies, there's the <code>ZAP</code> file alternative, but I would recommend regardless that you learn <code>MSI</code>. It's not that hard, and very flexible.</p>
| 4,175 |
<p>How would you programmacially abbreviate <code>XHTML</code> to an arbitrary number of words without leaving unclosed or corrupted tags?</p>
<p>i.e.</p>
<pre><code><p>
Proin tristique dapibus neque. Nam eget purus sit amet leo
tincidunt accumsan.
</p>
<p>
Proin semper, orci at mattis b... | <p>Here's what I did:</p>
<pre><code><link rel="Stylesheet" type="text/css" href="Stylesheet.css" id="style" runat="server" visible="false" />
</code></pre>
<p>It fools Visual Studio into thinking you've added a stylesheet to the page but it doesn't get rendered.</p>
<hr>
<p>Here's an even more concise way to... | <p>You Can use <code>CSS</code> direct in <code>userControl</code>.</p>
<p>Use this in <code>UserControl</code>:</p>
<pre><code> <head>
<title></title>
<style type="text/css">
.wrapper {
margin: 0 auto -142px;
/* the bottom margin is the negative value of the... | 5,460 |
<p>Migrating a project from ASP.NET 1.1 to ASP.NET 2.0 and I keep hitting this error. </p>
<p>I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.</p>
| <p>There are a few things you can try with this, seems to happen alot and the solution varies for everyone it seems.</p>
<ul>
<li><p>If you are still using the IIS virtual directory make sure its pointed to the correct directory and also check the ASP.NET version it is set to, make sure it is set to ASP.NET 2.0.</p></... | <p>Ensure compiled dll of your project placed in proper bin folder.</p>
<p>In my case, when i have changed the compiled directory of our subproject to bin folder of our main project, it worked.</p>
| 7,758 |
<p>So this is IT more than programming but Google found nothing, and you guys are just the right kind of geniuses.</p>
<p><strong>My Exchange Server 2007 and Entourage clients don't play nice.</strong></p>
<p>Right now the big issue is that the entourage client will not connect to Exchange 2007 ( Entourage 2004 or 2... | <p>Try it without using the /exchange in the server properties field. Here's a link with relevant <a href="http://www.robichaux.net/blog/2006/09/using_entourage_with_exchange_2007.php" rel="nofollow noreferrer">info</a>.</p>
| <p>davex.dll is the legacy webdav component for Exchange server, which Entourage uses. Your first step should be investigating why the application pool crashes. My guess is that Entourage can't do anything when the dll isn't present because webdav is not responding to any requests.</p>
| 2,970 |
<p>I know there are quite a few line count tools around. Is there something simple that's not a part some other big package that you use ?</p>
| <p><a href="http://www.slickedit.com/index.php?option=com_content&view=article&id=78&Itemid=90" rel="nofollow noreferrer">Slick Edit Gadgets</a> has a nice report breaking it down by lines of code, whitespace and comments. The plug-in is free and relatively small.</p>
| <p>not sure if this works in VS08 ... <a href="http://www.codeproject.com/KB/macros/LineCounterAddin.aspx" rel="nofollow noreferrer">code project</a></p>
| 8,325 |
<p>When trying to commit to a cvs branch after adding a new file I get this error</p>
<pre><code>Assertion failed: key != NULL, file hash.c, line 317
</code></pre>
<p>Any idea how to fix it so I can check my code in?<br>
Both server and client are Linux and there are pre-commits involved.</p>
| <blockquote>
<p>sleep-er writes:</p>
<blockquote>
<p>Not sure what the issue was but I solved it by going onto the server and deleting the file Attic/newfile.v in the repository and adding it again.</p>
</blockquote>
</blockquote>
<p>The "Attic" is the place where deleted files go in CVS. At some point in... | <p>Perhaps there is some kind of pre-commit check on your repository, see <a href="http://ximbiot.com/cvs/manual/cvs-1.12.13/cvs_18.html#SEC188" rel="nofollow noreferrer">here</a></p>
| 9,572 |
<p>is there an easy way to transform HTML into markdown with JAVA?</p>
<p>I am currently using the Java <strong><a href="http://code.google.com/p/markdownj/" rel="noreferrer">MarkdownJ</a></strong> library to transform markdown to html.</p>
<pre><code>import com.petebevin.markdown.MarkdownProcessor;
...
public static... | <p>There is a great library for JS called <a href="https://github.com/domchristie/turndown" rel="nofollow noreferrer">Turndown</a>, you can try it online <a href="https://mixmark-io.github.io/turndown/" rel="nofollow noreferrer">here</a>. It works for htmls that the accepted answer errors out.</p>
<p>I needed it for Ja... | <p>There is a Haskell library called <a href="https://github.com/jgm/pandoc" rel="nofollow noreferrer">pandoc</a> that can convert between most markup formats.<br />
Although it is not a Java library, it can be <a href="https://stackoverflow.com/a/8496537/8583692">used through its CLI in Java</a>.</p>
<p>You can get an... | 8,420 |
<p>I have a Printrbot Simple Metal. The extruder is getting clogged all the time. I went through the process demonstrated <a href="https://www.youtube.com/watch?v=L_qP5AsnQNQ" rel="noreferrer">here</a> multiple times already. Heatting the extruder and pushing different tools all the way through to make sure it is compl... | <p>I'm not sure if this is particularly the issue for you right now, but I have encountered the tension on my drive gear being too high.</p>
<p>Before I upgraded my extruder to the spring loaded mechanism, my extruder used a Delrin plunger to provide tension against the filament towards the drive gear. This plunger us... | <p>I'm not sure if this is particularly the issue for you right now, but I have encountered the tension on my drive gear being too high.</p>
<p>Before I upgraded my extruder to the spring loaded mechanism, my extruder used a Delrin plunger to provide tension against the filament towards the drive gear. This plunger us... | 197 |
<p>I'm using <code>.htaccess</code> and <code>mod_rewrite</code> to point to files that reside behind the DocumentRoot. My folder structure looks like this:</p>
<pre><code>home/
webroot/
other_files/
</code></pre>
<p>I have a <code>.htaccess</code> file in webroot with the following content:</p>
<pre>
Rewrit... | <p>I believe you need to add a section with </p>
<pre><code><Directory "/home/other_files">
(options)
</Directory>
</code></pre>
<p>to your server configuration before apache will be able to serve anything from it. For an example, my DocumentRoot is /var/www but there is this section in the default ava... | <p>Just so you know why that rule doesn't work:</p>
<p>The reason that it isn't able to rewrite to <code>/home/other_files/file.html</code> is that mod_rewrite is parsing the path as <code>/home/webroot/home/other_files/file.html</code> since from mod_rewrite's point of view the preceding slash is equivalent to your do... | 2,985 |
<p>I like the idea of having Interfaces and Implementation separate. But how separate? Are the Interface definitions in a separate .Net assembly? Do you have a single project that defines all Interfaces for a solution? Otherwise are there issues with circular dependencies of Interfaces?</p>
| <p>Put your domain objects and interfaces in a seperate "domain" assembly.<br>
This assembly should never reference anything but the core .net assemblies.</p>
<p>This way you get a clean seperation from your domain/service model and your implementation.</p>
<p><em>Edit:</em><br>
<a href="http://jeffreypalermo.com/blo... | <p>In the project I'm working on right now, the interfaces and related base classes go into assemblies that are logically divided among functions. The implementations of these providers and classes go inside a core assembly. The idea being that people who use our API can reference more or one of the API dlls in a cle... | 8,161 |
<p>I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software.</p>
<p>When you have to estimate the amount of time you'll spend working on something, how many hours... | <p>I'm a corporate developer, the kind Joel Spolsky called "depressed" in a couple of the StackOverflow podcasts. Because my company is not a software company it has little business reason to implement many of the measures software experts recommend companies engage for developer productivity. </p>
<p>We don't get pri... | <p>I'm a software developer in an R&D department working 40 hour a week.</p>
<p>I spend like... 10% of my time actually coding.
In my non-coding hours I mostly test, evaluate, compare and put down results. I also spend a lot of time writing specification for the code I will write and researching for the code I wil... | 3,427 |
<p><em>Please note; Due to its very nature, this post is very subjective and is <strong>not</strong> intended to be a definitive list of categories. It is merely an attempt to offer one perspective of what has been suggested, and to ask "How should we move forward?"</em></p>
<hr />
<p>Sometimes it is a bit ha... | <p>A couple of points:</p>
<p>Asking for a machine to solve a specific problem, or software which can do something 'specific' is not really a shopping question, so long as the question is asked in the right way. We do need to avoid subjective questions, but sometimes this can be the result of a misunderstanding (i.e. ... | <p>I propose that we add <strong>Direct Ink Writing (DIW)</strong> and <strong>Melt Electro-Writing (MEW)</strong> to the list of on-topic subjects at <a href="https://3dprinting.stackexchange.com/help/on-topic">https://3dprinting.stackexchange.com/help/on-topic</a></p>
<p><a href="https://labs.wsu.edu/mpml/projects/" ... | 49 |
<p>For some reason, my larger prints, or rather the ones that I create, have this "dotted" line in them. And, that line usually splits into two pieces.</p>
<p>I use Ultimaker Cura for a slicer, I use Blender for modeling, and I have an Ender 3 Pro</p>
<p>Let me know if anyone knows the reason for this as it's... | <p>If hardware failures have been excluded (and they can be as subtle as "a broken wire only loses contact at this particular Z height", so don't be too quick to assume that), then the likely reason for a problem like this is <strong>bad geometry</strong>.</p>
<p>When you move from Blender to Cura, Blender ex... | <p>At first glance, this looks like it could be missing layers.</p>
<p>There are five possible causes for missing layers.</p>
<ol>
<li><strong>Something is off mechanically.</strong><br>Check to see if anything has slipped, shifted, moved, or popped out.</li>
<li><strong>Misalignment</strong><br>Check to see that all t... | 2,042 |
<p>Why do I need two of them? When I have to use one or another?</p>
| <p><a href="https://stackoverflow.com/a/43883/6571020">Quote by @DAC</a></p>
<blockquote>
<p>In short: SID = the unique name of
your DB, ServiceName = the alias used
when connecting</p>
</blockquote>
<p>Not strictly true. SID = unique name of the INSTANCE (eg the oracle process running on the machine). Oracle considers... | <p>As per Oracle Glossary : </p>
<blockquote>
<p>SID is a unique name for an Oracle database instance. ---> To switch
between Oracle databases, users must specify the desired SID <---. The
SID is included in the CONNECT DATA parts of the connect descriptors
in a TNSNAMES.ORA file, and in the definition of t... | 6,549 |
<p>I want to use an image or icon as a custom cursor in WPF app. How can I do that?</p>
| <p>You have two basic options:</p>
<ol>
<li>When the mouse cursor is over your control, hide the system cursor by setting <code>this.Cursor = Cursors.None;</code> and draw your own cursor using whatever technique you like. Then, update the position and appearance of your cursor by responding to mouse events. Here are t... | <p>This will convert any image stored in your project to a cursor using an attached property. The image must be compiled as a resource!</p>
<p><strong>Example</strong></p>
<pre><code><Button MyLibrary:FrameworkElementExtensions.Cursor=""{MyLibrary:Uri MyAssembly, MyImageFolder/MyImage.png}""/>... | 6,896 |
<p>Any suggestions on the best way to ensure thread safety when changing the properties on Form controls? I have been using Me. Invoke in the past, and I was wondering if you have pros/cons, comments, suggestions, etc.</p>
| <p>Invoke is the proper way to do it if you're pushing stuff at the form from another thread.</p>
<p>But you might consider whether the form might be better pulling data itself, perhaps from a timer, and perhaps less frequently than a background process might push individual updates.</p>
| <p>I do control. Invoke on the target control rather than the entire form, but that's just me. I claim no advanced knowledge of win forms, I just have to use it every now and then.</p>
| 8,100 |
<p>It drives me nuts to hear business proponents using the term realtime for web-based systems. I'm becoming the crazy in the room, chanting, "There is no such thing as realtime on the web! We're in banking, not the rocket launch/ship navigation/airplane autopilot business!"</p>
<p>Anyone have anything better for pe... | <p>In the banking industry most of the time "real time" means the opposite of "end-of-day". </p>
<p>Because there was no such thing as internet/intranet/LANs/WANs in the old days, all balancing is done at "end-of-day". Transactions done in one branch with a certain bank account are oblivious of the transactions done i... | <p>How do you define "real-time" for embedded systems? I would say that a decent definition is "a system which is able to process and respond to inputs faster than the average time between inputs." In other words, a system that will never fall behind in processing compared to the systems which are feeding it data. U... | 7,406 |
<p>I have been trying to make some small signs, and to highlight the text by changing between black and white filament at a layer just above where the text comes out of the back plate.</p>
<p>I've used Cura 4.12 and the "change filament" script to make the printer pause at the right layer. The change and pur... | <p>It might be worth a try to manually kick the flow rate setting up 5-10 % and temperature about 5 °C for the first layer after the filament change, then returning to the original settings. Consider too killing or reducing the cooling fan speed for the first layer only. The benefit of a skirt to get things flowing is... | <p>After much fiddling about, the only positive conclusion I could come up with was to not make the letters too thin. A chunky thick letter has more surface area to adhere, whereas a thin spidery letter is too fragile.</p>
<p>So print fewer words on each label, make the words more-bold, and if they still fall off afte... | 2,067 |
<p>I'm starting a hobby game project on Windows that will make heavy use of 3D graphics effects. It will most likely be written in C++.</p>
<p>Should I use OpenGL or Direct3D for my graphics backend? Why?</p>
<p>Or should I use a ready-made graphics engine such as <a href="http://www.ogre3d.org/" rel="nofollow norefe... | <p>Start with OpenGL because there are good textbooks and other online references on it. Once you get the hang of writing 3D game, you would be able to make the judgment for yourself.</p>
<p>Finishing a game, even if it's really stupid and simple just to get you going, is more important than picking the right library.... | <p>Ogre3D is great if you want to do cross platform coding and if you want to leave all the rendering to the engine. OpenGL is also great for cross platform coding, but it also makes you do all the boring parts -- however it provides greater control.</p>
<p>I would avoid DirectX in case you want to port your game to o... | 6,014 |
<p>I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.</p>
<p>Should I do it at declaration?:</p>
<pre><code>public class Dice
{
private int topFace = 1;
private Random myRand = new Random();
public void Roll()
{
// ......
}... | <p>My rules:</p>
<ol>
<li>Don't initialize with the default values in declaration (<code>null</code>, <code>false</code>, <code>0</code>, <code>0.0</code>…).</li>
<li>Prefer initialization in declaration if you don't have a constructor parameter that changes the value of the field.</li>
<li>If the value of the field c... | <p>I normally try the constructor to do nothing but getting the dependencies and initializing the related instance members with them. This will make you life easier if you want to unit test your classes.</p>
<p>If the value you are going to assign to an instance variable does not get influenced by any of the parameter... | 4,418 |
<p><img src="https://i.stack.imgur.com/wPPuZ.jpg" alt="example picture"></p>
<p>I'd assume insufficient z offset but some areas of the first layer look fine. I've been struggling with this problem despite lots of attempts including z offset, infill overlap, belt retensioning, etc.</p>
<p>Anyone else experienced this ... | <p>From the picture it is clearly seen that the filament is not flattened properly. This implies that your nozzle bed distance is too large. Try decreasing the gap by leveling the bed at temperature and have a piece of "A4" or "Letter" print paper between the nozzle and bed have a little friction when pulled.</p>
<p>A... | <p>White PLA is some of the nastiest stuff to print with, it's very impure. Could you try to make the same print, but with another filament?</p>
<p>230 degrees might be a bit too high of a temperature, normally PLA is printed between 215-225. Try to decrease and increase the temperature with 5 degrees to see if there ... | 1,424 |
<p>Im sure this has happened to folks before, something works in debug mode, you compile in release, and something breaks.</p>
<p>This happened to me while working on a Embedded XP environment, the best way i found to do it really was to write a log file to determine where it would go wrong.</p>
<p>What are your expe... | <p>Make sure you have good debug symbols available (you can do this even with a release build, even on embedded devices). You should be able to get a stack trace and hopefully the values of some variables. A good knowledge of assembly language is probably also useful at this point.</p>
<p>My experience is that general... | <p>If it's only a small portion of the application that needs debugging then you can change those source files only to be built without optimisations. Presumably you generate debug info for all builds, and so this makes the application run mostly as it would in release, but allows you to debug the interesting parts pr... | 5,341 |
<p>Say I have:</p>
<pre><code>void Render(void(*Call)())
{
D3dDevice->BeginScene();
Call();
D3dDevice->EndScene();
D3dDevice->Present(0,0,0,0);
}
</code></pre>
<p>This is fine as long as the function I want to use to render is a function or a <code>static</code> member function:</p>
<pre><co... | <p>There are a lot of ways to skin this cat, including templates. My favorite is <a href="http://www.boost.org/doc/libs/1_36_0/doc/html/function.html" rel="nofollow noreferrer">Boost.function</a> as I've found it to be the most flexible in the long run. Also read up on <a href="http://www.boost.org/doc/libs/1_36_0/li... | <p>You can declare a function pointer to a member function of class T using:</p>
<pre><code>typedef void (T::*FUNCTIONPOINTERTYPE)(args..)
FUNCTIONPOINTERTYPE function;
</code></pre>
<p>And invoke it as:</p>
<pre><code>T* t;
FUNCTIONPOINTERTYPE function;
(t->*function)(args..);
</code></pre>
<p>Extrapolating thi... | 8,540 |
<p>One of my clients uses McAfee ScanAlert (i.e., HackerSafe). It basically hits the site with about 1500 bad requests a day looking for security holes. Since it demonstrates malicious behavior it is tempting to just block it after a couple bad requests, but maybe I should let it exercise the UI. Is it a true test if... | <blockquote>
<p>Isn't it a security flaw of the site to let hackers throw everything in their arsenal against the site?</p>
</blockquote>
<p>Well, you should focus on closing holes, rather than trying to thwart scanners (which is a futile battle). Consider running such tests yourself.</p>
| <p>If it's not hurting the performance of the site, I think its a good thing. If you had 1000 clients to the same site all doing that, yeah, block it. </p>
<p>But if the site was built for that client, I think it's fair enough they do that. </p>
| 4,374 |
<p>I have a Creality Ender 3. I've unscrewed the coupler from the drive assembly, but can't get it loose from the tube. The hot end coupler came free easily.</p>
<p>I compress the rubber gasket, but it stays tight.</p>
<p>Are these manufactured to be replaced every time? My new Bowden tube didn't come with a new coup... | <p>After depressing the retaining ring, try pushing the Bowden tube further in to the coupler. This should disengage the internal sprung clip, and allow removal of the Bowden tube.</p>
<p>Good quality pneumatic couplings should allow many insertion and removal cycles, although the couplings that Creality use have a rep... | <p>After depressing the retaining ring, try pushing the Bowden tube further in to the coupler. This should disengage the internal sprung clip, and allow removal of the Bowden tube.</p>
<p>Good quality pneumatic couplings should allow many insertion and removal cycles, although the couplings that Creality use have a rep... | 2,004 |
<p>Are there any 3D printing services or something similar to 3D print or injection mold light reflectors? </p>
<p>I'm trying to find something that is similar to PCB printing that allows you to upload a 3D design of a reflector and they will produce this reflector and coat it with mirror surface.</p>
| <p>I would not recommend extrusion printers for this, because they are unlikely to produce a smooth enough surface. To get a clean surface, the irregularities have to be a fraction of visible wavelengths, which is to say on the order of 0.01 micron.<br>
Without knowing what sort of reflector you're thinking of (flat? ... | <p>I would not recommend extrusion printers for this, because they are unlikely to produce a smooth enough surface. To get a clean surface, the irregularities have to be a fraction of visible wavelengths, which is to say on the order of 0.01 micron.<br>
Without knowing what sort of reflector you're thinking of (flat? ... | 415 |
<p>Does anyone know a good Java lib that will hook into SVN so I can extract the data? I want the SVN comments, author, path, etc... Hopefully with this data I can build a better time management tracking system.</p>
| <p>You want <a href="http://svnkit.com/" rel="nofollow noreferrer">SVNKit</a>. It's dual-licensed, so you have to pay only if you're doing commercial work with it.</p>
| <p>You can try to work with SVNKit.Its easy and flexible to use.</p>
| 7,537 |
<p>I'm teaching myself Python and my most recent lesson was that <a href="http://dirtsimple.org/2004/12/python-is-not-java.html" rel="noreferrer">Python is not Java</a>, and so I've just spent a while turning all my Class methods into functions.</p>
<p>I now realise that I don't need to use Class methods for what I wo... | <p>Class methods are for when you need to have methods that aren't specific to any particular instance, but still involve the class in some way. The most interesting thing about them is that they can be overridden by subclasses, something that's simply not possible in Java's static methods or Python's module-level func... | <p>A class defines a set of instances, of course. And the methods of a class work on the individual instances. The class methods (and variables) a place to hang other information that is related to the set of instances over all.</p>
<p>For example if your class defines a the set of students you might want class vari... | 5,914 |
<p>I'm about to start on a large Qt application, which is made up of smaller components (groups of classes that work together). For example, there might be a dialog that is used in the project, but should be developed on its own before being integrated into the project. Instead of working on it in another folder somewh... | <p>Here is what I would do. Let's say I want the following folder hierarchy :</p>
<pre><code>/MyWholeApp
</code></pre>
<p>will contain the files for the whole application.</p>
<pre><code>/MyWholeApp/DummyDlg/
</code></pre>
<p>will contain the files for the standalone dialogbox which will be eventually part of the w... | <p>For Qt on Windows you can create DLLs for every subproject you want. No problem with using them from the main project (exe) after that. You'll have to take care of dependencies but it's not very difficult.</p>
| 8,663 |
<p>Sometimes I have to work on code that moves the computer clock forward. In this case some .cpp or .h files get their latest modification date set to the future time.</p>
<p>Later on, when my clock is fixed, and I compile my sources, system rebuilds most of the project because some of the latest modification dates a... | <p>I would recommend using a virtual machine where you can mess with the clock to your heart's content and it won't affect your development machine. Two free ones are <a href="http://www.microsoft.com/Windows/products/winfamily/virtualpc/default.mspx" rel="nofollow noreferrer">Virtual PC</a> from Microsoft and <a href=... | <p>I don't use windows - but surely there is something like awk or grep that you can use to find the "future" timestamped files, and then "touch" them so they have the right time - even a perl script.</p>
| 8,608 |
<p>Should developers avoid using <a href="http://msdn.microsoft.com/en-us/library/923ahwt1.aspx" rel="nofollow noreferrer">continue</a> in C# or its equivalent in other languages to force the next iteration of a loop? Would arguments for or against overlap with arguments about <a href="https://stackoverflow.com/questio... | <p>I think there should be more use of continue!</p>
<p>Too often I come across code like:</p>
<pre><code>for (...)
{
if (!cond1)
{
if (!cond2)
{
... highly indented lines ...
}
}
}
</code></pre>
<p>instead of </p>
<pre><code>for (...)
{
if (cond1 || cond2)
{
continu... | <p><code>continue</code> feels wrong to me. <code>break</code> gets you out of there, but <code>continue</code> seems just to be spaghetti.</p>
<p>On the other hand, you can emulate <code>continue</code> with <code>break</code> (at least in Java).</p>
<pre><code>for (String str : strs) contLp: {
...
break ... | 8,194 |
<p>After a brownout a print failed and it got the whole hotend covered in PLA. I am now in the process of replacing some parts on the hotend (one of the thermistor legs broke of) and also wanted to take the heater cartridge out. The problem is that the bolt that locks the heater cartridge is stuck and I am now afraid t... | <h1>Don't Panic!</h1>
<p>First of all, a printhead caked in PLA is usually not a death sentence, it is often a temporary setback. Let's start in steps!</p>
<h2>Step 1: remove the extruder</h2>
<p>We want to work on the hotend, so we remove the extruder feed first. For direct drive, we unload it, then remove it dependin... | <p>If you use a brass heating block (which is a bit heavier than aluminum), you can first use a heat gun to soften the residues to remove the cartridge/sensor.</p>
<p>After removing all electronics, you can use a gas torch and burn the residues off. However, the far best option would be to use a heat block made of sta... | 1,174 |
<p>If a part is wanted to be made the strongest possible, what slicer settings should be used? </p>
<ul>
<li><p>3-5 shells vs all shells, no infill? </p></li>
<li><p>100% infill vs some other % infill?</p></li>
<li><p>Thin layer height vs thick layer height?</p></li>
<li><p>Any other relevant settings?</p></li>
</ul... | <p>If your real question is what would be the strongest then I say - the solid would be the strongest - no doubt.</p>
<p>But if the question is: </p>
<ul>
<li>what be the strongest in comparison to weight or</li>
<li>what is the strongest in comparison to the cost (amount of material)</li>
</ul>
<p>then these are go... | <p>This question is practically unanswerable without the load case or the part being known.</p>
<p>Input for the "strongest" part is depending on:</p>
<ul>
<li>Load case (compression, tension, shear)</li>
<li>Part design</li>
<li># of perimeters</li>
<li>Filament type</li>
<li>Infill percentage (incl. local increased... | 491 |
<p>I have a couple of solutions, but none of them work perfectly.</p>
<p><strong>Platform</strong></p>
<ol>
<li>ASP.NET / VB.NET / .NET 2.0</li>
<li>IIS 6</li>
<li>IE6 (primarily), with some IE7; Firefox not necessary, but useful</li>
</ol>
<p><em>Allowed 3rd Party Options</em></p>
<ol>
<li>Flash</li>
<li>ActiveX (... | <p>I don't think there is any work around for the integrated windows authentication. What you could possibly do is save the files to a generic unprotected folder and, in the case of swfupload, use a handler to move the file when its fully uploaded</p>
| <p>In Internet Explorer, FileReference.upload (flash upload) <em>will</em> send cookies along as well.</p>
<p>This behavior breaks only when running in other browsers.</p>
| 7,306 |
<p>Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?</p>
| <p>You can use XML style comments, and use tools to pull those comments out into API documentation.</p>
<p>Here is an example of the comment style:</p>
<pre><code>/// <summary>
/// Authenticates a user based on a username and password.
/// </summary>
/// <param name="username">The username.</para... | <p>I was always told to use block comments opened with 2 or more asterisks do delimit documentation comments.</p>
<pre><code>/**
Documentation goes here.
(flowerboxes optional)
*/
</code></pre>
| 5,480 |
<p>I know there is a registry key indicating the install directory, but I don't remember what it is off-hand.</p>
<p>I am currently interested in Visual Studio 2008 install directory, though it wouldn't hurt to list others for future reference.</p>
| <p>I'm sure there's a registry entry as well but I couldn't easily locate it. There is the VS90COMNTOOLS environment variable that you could use as well.</p>
| <p>Aren't there environment settings?</p>
<p>I have <code>VCToolkitInstallDir</code> and <code>VS71COMNTOOLS</code> although I'm using Visual Studio 2003, I don't know if that changed for later versions. Type "set V" at the command line and see if you have them.</p>
| 5,037 |
<p>For example: Updating all rows of the customer table because you forgot to add the where clause.</p>
<ol>
<li>What was it like, realizing it and reporting it to your coworkers or customers? </li>
<li>What were the lessons learned?</li>
</ol>
| <p>I think my worst mistake was</p>
<pre><code>truncate table Customers
truncate table Transactions
</code></pre>
<p>I didnt see what MSSQL server I was logged into, I wanted to clear my local copy out...The familiar "OH s**t" when it was taking significantly longer than about half a second to delete, my boss noticed... | <p>I dropped the live database and deleted it.</p>
<p>Lesson learned: ensure you know your SQL - and make sure that you back up before you touch stuff.</p>
| 3,323 |
<p>I'm using Solidworks to design parts to be 3d-printed.</p>
<p>I've noticed that if I'm making an assembly, where one part has features that touch other parts, then when I try to save that assembly as an STL for printing, I'll get a dialog from Solidworks saying "This assembly has coincident or interfering geometry ... | <p>Solidworks has means for detection and eradication of these errors. If there's unwanted intersection, then you can either separate the parts or merge them (by saving assembly as a part). If you work with SLDPRTs, then use mating options correctly, avoid manual mating, make sure that the design of your components act... | <p>When saving assembly as part, do not use the save external faces option. Exterior components is best option to use to try an aviod these problems.</p>
<p><em>btw I dont have soldiworks, this is just some reseacrch I did</em></p>
| 694 |
<p>I'm fairly new to ASP.NET and trying to learn how things are done. I come from a C# background so the code-behind portion is easy, but thinking like a web developer is unfamiliar.</p>
<p>I have an aspx page that contains a grid of checkboxes. I have a button that is coded via a Button_Click event to collect a list ... | <p>All a usercontrol(.ascx) file is is a set of controls that you have grouped together to provide some reusable functionality. The controls defined in it are still added to the page's control collection (.aspx) durring the page lifecylce. The ModalPopupExtender uses javascript and dhtml to show and hide the controls... | <p>Sorry, but I'm confused. You can't call an ascx directly, so...</p>
<p>Is your modal code that you are calling from within the same page, like a hidden panel, etc; </p>
<p>Or is it another aspx page that you are calling on a click event?</p>
| 3,378 |
<p>I'm trying to find the best design for the following scenario - an application to store results of dance competitions. </p>
<p>An event contains multiple rounds, each round contains a number of performances (one per dance). Each performance is judged by many judges, who return a scoresheet.</p>
<p>There are two ty... | <p>This requires a little domain knowledge that I don't have, but it seems to me that the ordered vs. non-ordered situation is a little bit irrelevant. If each couple has a score, the ordering in the final round can be deduced from each couple's score, right? That would mean that the final round's data structure woul... | <p>Without knowing in detail what is going on it's hard to give clear advice. However based on what I read it seems your parallel hierarchy may not be necessary. </p>
<p>It's not clear that a final_performance is really different from a performance. I guess they are scored differently; that should be reflected in diff... | 8,866 |
<p>I need to see the contents of the viewstate of an asp.net page. I looked for a viewstate decoder, found <a href="http://www.testingreflections.com/node/view/3424" rel="noreferrer">Fridz Onion's ViewState Decoder</a> but it asks for the url of a page to get its viewstate. Since my viewstate is formed after a postback... | <p>Use <a href="http://www.fiddlertool.com" rel="noreferrer">Fiddler</a> and grab the view state in the response and paste it into the bottom left text box then decode.</p>
| <p>Normally, ViewState should be decryptable if you have the machine-key, right? After all, ASP.net needs to decrypt it, and that is certainly not a black box.</p>
| 4,284 |
<p>When writing a SQL statement in SQL Server 2005, does the READUNCOMMITTED query hint imply NOLOCK or do I have to specify it manually too?</p>
<p>So is:</p>
<pre><code>With (NoLock, ReadUnCommitted)
</code></pre>
<p>the same as:</p>
<pre><code>With (ReadUnCommitted)
</code></pre>
| <p>Yes they are one and the same</p>
| <p>I think you can say that</p>
<p>ReadUnCommitted has the abilities of NoLock</p>
<p>However you cannot say that</p>
<p>NoLock has the abilities of ReadUnCommitted</p>
| 5,251 |
<p>How can I set up my crontab to execute X script at 11:59PM every day without emailing me or creating any logs?</p>
<p>Right now my crontab looks something like this</p>
<pre><code>@daily /path/to/script.sh
</code></pre>
| <p>When you do crontab -e, try this:</p>
<pre><code>59 23 * * * /usr/sbin/myscript > /dev/null
</code></pre>
<p>That means: At 59 Minutes and 23 Hours on every day (*) on every month on every weekday, execute myscript.</p>
<p>See <strong>man crontab</strong> for some more info and examples.</p>
| <p>You will with the above response receive email with any text written to stderr. Some people redirect that away too, and make sure that the script writes a log instead.</p>
<pre><code>... 2>&1 ....
</code></pre>
| 2,528 |
<p>This is a call for suggestions and even possible solutions. I haven't been at a company that really seemed to get credential management 'right'.</p>
<p>I've seen excel/word documents and even post-it note 'solutions'.</p>
<p>But my main question is what is the right way to do it?</p>
<p>I have initially thought i... | <p>The company I work for sells data center automation tools to assist with exactly this. I'm not going to say who I work for, nor how much it costs (but it's distinctly NOT cheap).</p>
<p>The basic approach we take with that tool (used by hundreds of large companies) is to integrate LDAP/AD authentication against the... | <p>To answer your question: very poorly.</p>
<p>We're looking to standardize on public keys for password-less authentication and shared group/passwd files. Our testing looks good so far, but we're still trying to smooth over some rough edges.</p>
| 9,433 |
<p>I would like to generate a list of differences between 2 instances of the the same object. Object in question:</p>
<pre><code>public class Step
{
[DataMember]
public StepInstanceInfo InstanceInfo { get; set; }
[DataMember]
public Collection<string> AdHocRules { get; set; }
[DataMember]
... | <p>You'll need a separate object, like StepDiff with collections for removed and added items. The easiest way to do something like this is to copy the collections from each of the old and new objects, so that StepDiff has collectionOldStepDocs and collectionNewStepDocs. </p>
<p>Grab the shorter collection and iterate ... | <p>Implementing the IComparable interface in your object may provide you with the functionality you need. This will provide you a custom way to determine differences between objects without resorting to checksums which really won't help you track what the differences are in usable terms. Otherwise, there's no way to ... | 8,075 |
<p>When installing and using a new hotend for the first time, which steps of action should be taken before. This will probably be more applicable to chinese clones than to authentic products (is the statement true?): <strong>Should a certain cleaning procedure be carried out</strong> (removing swarf/shavings for exampl... | <p>I haven't done anything special to set up mine. But it's probably worth doing a general cleaning. I'd swab it off with alcohol, including running a q-tip or similar inside the fiber feed path. Then blow out the nozzle with compressed air to make sure it's clear.</p>
<p>You could measure the nozzle diameter by fitti... | <p>I haven't done anything special to set up mine. But it's probably worth doing a general cleaning. I'd swab it off with alcohol, including running a q-tip or similar inside the fiber feed path. Then blow out the nozzle with compressed air to make sure it's clear.</p>
<p>You could measure the nozzle diameter by fitti... | 167 |
<p>Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?</p>
<p>I came across the <a href="http://en.wiki... | <p>I can't recommend it highly enough. It's particularly nice if you have a suite that takes inline documentation contract specifications, like so:</p>
<pre><code>// @returns null iff x = 0
public foo(int x) {
...
}
</code></pre>
<p>and turns them into generated unit tests, like so:</p>
<pre><code>public test_foo... | <p>I don't actually use Design by Contract, on a daily basis. I do, however know that it has been incorporated into the <a href="http://www.digitalmars.com/d/2.0/dbc.html" rel="nofollow noreferrer">D</a> language, as part of the language.</p>
| 4,601 |
<p>I have a small utility that I use to download an MP3 file from a website on a schedule and then builds/updates a podcast XML file which I've added to iTunes.</p>
<p>The text processing that creates/updates the XML file is written in Python. However, I use wget inside a Windows <code>.bat</code> file to download the... | <p>Use <a href="https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen" rel="noreferrer"><code>urllib.request.urlopen()</code></a>:</p>
<pre><code>import urllib.request
with urllib.request.urlopen('http://www.example.com/') as f:
html = f.read().decode('utf-8')
</code></pre>
<p>This is the mos... | <p>Another way is to call an external process such as curl.exe. Curl by default displays a progress bar, average download speed, time left, and more all formatted neatly in a table.
Put curl.exe in the same directory as your script</p>
<pre><code>from subprocess import call
url = ""
call(["curl", {u... | 4,269 |
<p>I had a problem with my Z limit switch bracket falling just short of the bottom edge of the z stage. </p>
<p>I'm trying to make the bracket thicker so it's pushed more towards the left. </p>
<p>1) how do I measure the thickness of the bracket in the stl
2) HOw would I make it thicker if it is indeed too thin</p>
... | <p>Assuming your filament dimension settings are correct and your extruder is correctly calibrated...</p>
<p><strong>Your extruder temperature may be too low.</strong> While 184C can be hot enough, it is very near the bottom of the range for PLA and it appears your filament isn't melting quickly enough to keep up wit... | <p>Looks to me like you have your slicer set to 3mm filament when you're using 1.75mm filament. Confirm that your slicer has its filament setting set to 1.75mm and not 3mm (this obviously assumes you are using 1.75mm filament..)</p>
<p>Failing this:</p>
<ul>
<li>Test extruder steps/mm</li>
<li>Ensure nozzle diameter ... | 408 |
<p>I thought the answer was ABS, but I read about how some people used it to print parts that were used in plumbing, and they failed when put under constant load, and some said that PETG is better for this application. I want to print bases for my table legs, would PETG be a better material to use?</p>
| <p>The CR-6 SE uses strain gauge based sensing for the auto leveling. This implies that the nozzle itself is the probe for the leveling procedure. It is important that there is no filament left on the nozzle and no debris is on the bed (of so, this causes incorrect measurement of the bed surface and results in a too la... | <p>It almost looks like that nozzle is too far away from the bed. Try releveling your bed.</p>
| 2,194 |
<p>Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity framework.</p>
<p>My question is this. When trying to decide between using the Entity Framework and LINQ to SQL as an ORM, what's the difference?</p>
<p>The way I understand it, the Entity Framework (when used ... | <p>LINQ to SQL only supports 1 to 1 mapping of database tables, views, sprocs and functions available in Microsoft SQL Server. It's a great API to use for quick data access construction to relatively well designed SQL Server databases. LINQ2SQL was first released with C# 3.0 and .Net Framework 3.5.</p>
<p>LINQ to En... | <blockquote>
<p>Linq-to-SQL</p>
</blockquote>
<p><em>It is provider it supports SQL Server only. It's a mapping technology to map SQL Server database tables to .NET objects. Is Microsoft's first attempt at an ORM - Object-Relational Mapper.</em></p>
<blockquote>
<p>Linq-to-Entities</p>
</blockquote>
<p><em>Is th... | 3,013 |
<p>I need to make a WebCast presentation soon and need to do some "whiteboarding" during that WebCast. Does anyone have any stylus/tablet input device recommendations? Anyone ever used such an input device with WebEx's whiteboard feature?</p>
<p>rp</p>
| <p>Wacom <a href="http://www.wacom.com/index2.cfm" rel="nofollow noreferrer">http://www.wacom.com/index2.cfm</a><Br />
makes by far the best tablets I have ever used. They come in a variety of prices with associated features. If you want to be able to draw 'on-screen' they have the Cintiq, which is the most expensive... | <p>A lot of people recommend Wacom. I've tried one, and it is really nice to use. To some extent, it really depends if you want only a tablet (no video feedback on the device), or a 'screen' (having video feedback, which I find nice but is also a bit pricey...).</p>
| 4,424 |
<p>ISSUE: Stepper motors are not working when connected with RAMPS 1.4.</p>
<p>OBSERVATION: The LED lights(LED 2,3,4) in the RAMPS 1.4 is not powering up.</p>
<p>PRACTICES: I use Arduino Mega 2560 and installed Marlin firmware in it. And I bought a RAMPS 1.4 in a local electronic dealer. I placed the RAMPS over Ardui... | <p>I actually thought the problem is in the electronic circuit but the problem is the baud rate. I initially took the baud rate as 115200 but later. after someone's suggestion, I changed it to 250000 and now it's fine.</p>
| <p>to help you to solve this problem - please see my checklist</p>
<ol>
<li>are the stepper drivers connected correctly (pin1 to pin1)?</li>
<li>stepper wiring is accurate (1a-1a..2b-2b)?</li>
<li>is there enough voltage provided to the steppers (regulate)?</li>
<li>if you are trying to move E0 or E1 then you need to ... | 1,014 |
<p>How do I set up a network between the Host and the guest OS in Windows vista?</p>
| <p>Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the Internet, and the Host-only one will allow the host to see the guest.</p>
<p>One of them also allows the guest to see the host. I'm not sure which, but I know it works since I've tested web server stu... | <p>I don't run vista, but virtualbox should do most of the setup for you - all you need to do is assign an IP address, subnet mask, and (optionally) a default gateway to your guest OS, and it should just work.</p>
<p>Don't bother with any of the advanced network settings in the options for the VM - they're useful in s... | 8,629 |
<p>Should we add a tag for 'laser' for those of us who are attaching laser cutters/burners to 3D printers to turn them into 3D CNC. Or is this drifting too far off topic from "3d printing"?</p>
| <p>A good question. I'm currently using insights I obtained from mucking about with a 3D printer with Arduino Mega 2560 and RAMPS 1.4 to dive into retrofitting an elderly CNC router (but, as a router, still, not as a printer) with a new control system (presently thinking and have on order Arduino Uno R3 and Arduino CNC... | <p>The tag <a href="https://3dprinting.stackexchange.com/questions/tagged/laser" class="post-tag" title="show questions tagged 'laser'" rel="tag">laser</a> has been created. Would you like to provide usage guidance and edit the tag summary and body?</p>
<p>So far I have found one question which is laser relate... | 44 |
<p>Here's a problem I ran into recently. I have attributes strings of the form</p>
<pre><code>"x=1 and y=abc and z=c4g and ..."
</code></pre>
<p>Some attributes have numeric values, some have alpha values, some have mixed, some have dates, etc.</p>
<p>Every string is <em>supposed</em> to have "<code>x=someval and y... | <p>I'm not the best at regular expressions, but this seems pretty close to what you're looking for:</p>
<pre><code>/x=(.+) and y=([^ ]+)( and (.*))?/
</code></pre>
<p>Except you use $1, $2, and $4. In use:</p>
<pre><code>my @strs = ("x=1 and y=abc and z=c4g and w=v4l",
"x=yes and y=no",
"z=n... | <p>Here's basically what I did to solve this:</p>
<pre><code>($x_str, $y_str, $remainder) = split(/ and /, $str, 3);
if ($x_str !~ /x=(.*)/)
{
# error
}
$x = $1;
if ($y_str !~ /y=(.*)/)
{
# error
}
$y = $1;
</code></pre>
<p>I've omitted some additional validation and error handling. This technique works,... | 3,174 |
<p>I had an idea I was mulling over with some colleagues. None of us knew whether or not it exists currently.<br><br>
The Basic Premise is to have a system that has 100% uptime but can become more efficient dynamically.<br><br></p>
<blockquote>
<p><strong>Here is the scenario:</strong><br><br> * So we hash out a s... | <p>I believe this idea to be an interesting theoretical debate, but not very practical for the following reasons:</p>
<ol>
<li>To make sure the new version of the code works well, you need to have superb automatic tests, which is a goal that is very hard to achieve and one that many companies fail to develop. You can ... | <p>I don't think code will learn to be better, by itself. However, some runtime parameters can easily adjust onto optimal values, but that would be just regular programming, right?</p>
<p>About the on-the-fly change, I've shared the wondering and would be building it on top of Lua, or similar dynamic language. One cou... | 8,538 |
<p>so, I'm running Apache on my laptop.</p>
<p>If I go to "localhost", I get the page that says, </p>
<blockquote>
<p>If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.</p>
</blockquote... | <p>"By default, your pages should be placed in the "C:\Program Files\Apache Group\Apache2\htdocs" folder for Apache 2.0 and the "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" folder for Apache 2.2. When your site is ready, simply delete the existing files in the folder and replace them with those you wa... | <p>If you have Skype it also uses the same ports(80, 443) as Xampp does. So start Xampp first and then Skype.</p>
<p>[source: http://starikovs.com/2011/02/23/apache-doesnt-start-in-xampp/]</p>
| 8,505 |
<p>Is there a trivial, or at least moderately straight-forward way to generate territory maps (e.g. Risk)?</p>
<p>I have looked in the past and the best I could find were vague references to Voronoi diagrams. An example of a Voronoi diagram is this:</p>
<p><img src="https://i.stack.imgur.com/aX9Tp.gif" alt="here">.<... | <p>The best reference I've seen on them is <a href="https://rads.stackoverflow.com/amzn/click/com/3540779736" rel="noreferrer" rel="nofollow noreferrer">Computational Geometry: Algorithms and Applications</a>, which covers Voronoi diagrams, Delaunay triangulations (similar to Voronoi diagrams and each can be converted ... | <p>Why not use a map of primitives (triangles, squares), distribute the starting points for the countries (the "capitals"), and then randomly expanding the countries by adding a random adjacent primitive to the country.</p>
| 2,622 |
<p>I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof. </p>
<p>SVN is great for code (it's what we ... | <p>SVN is great for binaries, too. If you're afraid you can't compare revisions, I can tell you that it is possible for Word docs, using Tortoise.<br>
But I do not know, what you mean with "expanding the versioning". SVN is no document management system. </p>
<p>Edit:</p>
<blockquote>
<p>but I feel it might be a b... | <p>You might want to consider using a Mac as your server and using <a href="http://www.apple.com/macosx/features/timemachine.html" rel="nofollow noreferrer">Time Machine</a> to backup your shared folders. Doing this gives you automatic backups and allows you to share through Samba so everyone can have a <a href="http:/... | 3,508 |
<p>Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.</p>
<p>What's the best way to create a "user control library", so that you can use the same control implementation in the 2 applications, withuot having to duplicate code?<... | <p>You would need to create composite controls instead of .ASCX controls if you wanted to be able to use them in separate projects.</p>
| <p>I use StarTeam here and it allows you to "share" objects (files, change requests, requirements etc) across multiple folders. Not sure if Subversion (SVN) has that feature. If it doesn't, here's another trick you can use: create a junction from the primary location of the controls to a location in the other projects.... | 4,772 |
<p>Many people use Mock Objects when they are writing unit tests. What is a <strong>Mock Object</strong>? Why would I ever need one? Do I need a Mock Object Framework?</p>
| <p>Object Mocking is used to keep dependencies out of your unit test.
Sometimes you'll have a test like "SelectPerson" which will select a person from the database and return a Person object. </p>
<p>To do this, you would normally need a dependency on the database, however with object mocking you can simulate the inte... | <p>2 recommended mocking frameworks for .net Unit testing are Typemock Isolator and Rhino Mock.</p>
<p>In the following link you can see an explanation from Typemock as to why you need a <a href="http://www.typemock.com/Docs/writing_unit_tests_with_isolator.html" rel="nofollow noreferrer">mocking framework</a> for Uni... | 2,633 |
<p>I absolutely love the <a href="http://winscp.net/eng/docs/task_keep_up_to_date" rel="noreferrer">Keep Remote Directory Up-to-date</a> feature in <a href="http://winscp.net/" rel="noreferrer">Winscp</a>. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can <em>theoreticall... | <p>How "real-time" do you want the syncing? I would still lean toward rsync since you know it is going to be fully supported on both platforms (Windows, too, with cygwin) and you can run it via a cron job. I have a super-simple bash file that I run on my system (this does <em>not</em> remove old files):</p>
<pre><code... | <p>You can also use Fetch as an SFTP client, and then edit files directly on the server from within that. There are also SSHFS (mount an ssh folder as a Volume) options. This is in line with what stimms said - are you sure you want stuff kept in sync, or just want to edit files on the server?</p>
<p>OS X has it's ow... | 3,069 |
<p>Is it possible to query the Crystal CMS database and get meaningful data back? The data appears to be encrypted.</p>
<p>I am running Business Objects Crystal Report Server version 11.5</p>
| <p>Actually what I discovered I needed to do was use the administration tools available from the Administration Launchpad. I was not responsible for installing Crystal and did not even realise this existed. The query builder and also the "Report Datasources" feature that were available from here was exactly what I ne... | <p>My experience is that the data is not encrypted but that it is not really readable. Your best option is to use the Auditor Universes to build you some reports. You can also check out the SQL that the auditor Universes are uses as a baseline for constructing additional reporting.</p>
| 9,471 |
<p>Is it recommended that I use an <a href="http://en.wikipedia.org/wiki/Initialization_vector" rel="noreferrer">initialization vector</a> to encrypt/decrypt my data? Will it make things more secure? Is it one of those things that need to be evaluated on a case by case basis?</p>
<p>To put this into actual context, th... | <p>An IV is essential when the same key might ever be used to encrypt more than one message.</p>
<p>The reason is because, under most encryption modes, two messages encrypted with the same key can be analyzed together. In a simple stream cipher, for instance, XORing two ciphertexts encrypted with the same key results... | <p>The IV allows for plaintext to be encrypted such that the encrypted text is harder to decrypt for an attacker. Each bit of IV you use will double the possibilities of encrypted text from a given plain text.</p>
<p>For example, let's encrypt 'hello world' using an IV one character long. The IV is randomly selected t... | 9,153 |
<p>I wonder how you guys manage deployment of a database between 2 SQL Servers, specifically SQL Server 2005.
Now, there is a development and a live one. As this should be part of a buildscript (standard windows batch, even do with current complexity of those scripts, i might switch to PowerShell or so later), Enterpri... | <p>I've taken to hand-coding all of my DDL (creates/alter/delete) statements, adding them to my .sln as text files, and using normal versioning (using subversion, but any revision control should work). This way, I not only get the benefit of versioning, but updating live from dev/stage is the same process for code and ... | <p>I agree with keeping everything in source control and manually scripting all changes. Changes to the schema for a single release go into a script file created specifically for that release. All stored procs, views, etc should go into individual files and treated just like .cs or .aspx as far as source control goes... | 2,299 |
<p>For practicality sake, I need to print a design such that there will be weight hanging parellel to the layer lines. Is there an infill pattern that would be better than others at handling this?</p>
<p>I realize that all kinds of infill will still have the same layer boundaries. Just wondering if choosing any given ... | <p>Yes, some infill patterns are better than others for preventing separation of layers. Basically (modulo some assumptions about uniformity of distribution of force), the shearing strength of the part in the Z direction at a particular layer is going to be proportional to the <em>surface area</em> of bonding between s... | <p>0scar's answer is the "solution" or true answer to the question.</p>
<p>Watching youtube the last few days, cubic needs to be considered. I was surprised at what I saw. More to consider is adding design elements:</p>
<ul>
<li>The concept of flutes along the perimeter.</li>
<li>Adding through holes increases streng... | 1,588 |
<p>Lately I noticed that there is a new type of nozzles (called airbrush nozzles?!?) available; typically found on those online overseas vendor sites. The nozzles are advertised for usage in E3D hardware, but are not found amongst the <a href="https://e3d-online.com/nozzles-for-3d-printer" rel="noreferrer">E3D genuine ... | <p>An obvious drawback is the lack of a flat surface around the opening, resulting in a severe limitation of the extrusion width to exactly the nozzle width (plus some percent). This nozzle cannot efficiently push the filament against the nearby perimeters because it cannot constrain its height and it cannot flatten th... | <p>They are used for nonplaner 3d printing.</p>
<p><div class="youtube-embed"><div>
<iframe width="640px" height="395px" src="https://www.youtube.com/embed/gmePlcU0TRw?start=0"></iframe>
</div></div></p>
<p><a href="https://all3dp.com/4/nonplanar-3d-printing-gives-the-smoothest-top-layer... | 1,577 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.