instruction
stringlengths
27
22.5k
chosen
stringlengths
27
28.2k
rejected
stringlengths
19
24.9k
__index_level_0__
int64
0
10k
<p>When using the php include function the include is succesfully executed, but it is also outputting a char before the output of the include is outputted, the char is of hex value 3F and I have no idea where it is coming from, although it seems to happen with every include. </p> <p>At first I thbought it was file enc...
<p>What you are seeing is a UTF-8 Byte Order Mark:</p> <blockquote> <p>The UTF-8 representation of the BOM is the byte sequence EF BB BF, which appears as the ISO-8859-1 characters  in most text editors and web browsers not prepared to handle UTF-8.</p> <p><a href="http://en.wikipedia.org/wiki/Byte_Order_Mark" rel="...
<p>I see <code>hello, world</code> on the page you linked to. No problems that I can see...</p> <p>I'm using Firefox 3.0.1 and Windows XP. What browser/OS are you running? Perhaps that might be the problem.</p>
6,299
<p>What is the story behind XPath and support for namespaces? Did XPath as a specification precede namespaces? If I have a document where elements have been given a default namespace: </p> <pre><code>&lt;foo xmlns="uri" /&gt; </code></pre> <p>It appears as though some of the XPath processor libraries won't recognize...
<p>You need local-name():</p> <p><a href="http://www.w3.org/TR/xpath#function-local-name" rel="nofollow noreferrer">http://www.w3.org/TR/xpath#function-local-name</a></p> <p>To crib from <a href="http://web.archive.org/web/20100810142303/http://jcooney.net:80/archive/2005/08/09/6517.aspx" rel="nofollow noreferrer">http...
<p>If you are trying to use xslt you can add the namespace in to the stylesheet declaration. If you do that, you must make sure that there is a prefix or it will not work. If the source XML does not have a prefix, that is still fine, you add your own prefix in the stylesheet. </p> <p><em>Stylesheet</em></p> <pre><...
3,251
<p>I am designing some parts that should modular fit together. I am currently exploring a Lego-like design with octagonal holes and cylindrical pins.</p> <p>I notice that (depending on the amount of clearance) that the fit is initially tight (to the extent that the pieces are very difficult to remove from each other), ...
<p>A flexible material, such as PETG or ABS, is probably the best. PLA is brittle, especially after absorbing moisture, and probably would crack under continued use.</p> <p>Nylon is good, but not easy to use. With PETG in an enclosure, I end up running fans to avoid heat creep; so PETG may actually do better without ...
<p>PETG, ABS and NYLON would work great for press-fit or snap-fit connections. If you really can't build a (cardboard) enclosure I would go for PETG as it has good repeatable mechanical properties and does not require an enclosure.</p>
1,904
<p>I'm looking at parsing a delimited string, something on the order of</p> <p>a,b,c</p> <p>But this is a very simple example, and parsing delimited data can get complex; for instance</p> <p>1,"Your simple algorithm, it fails",True</p> <p>would blow your naiive string.Split implementation to bits. Is there anythin...
<p>I use this to read from a file</p> <pre><code>string filename = @textBox1.Text; string[] fields; string[] delimiter = new string[] {"|"}; using (Microsoft.VisualBasic.FileIO.TextFieldParser parser = new Microsoft.VisualBasic.FileIO.TextFieldParser(filename)) { parser.Delimiters = delimiter; parser.Ha...
<p>I am thinking that a generic framework would need to specify between two things: 1. What are the delimiting characters. 2. Under what condition do those characters not count (such as when they are between quotes).</p> <p>I think it may just be better off writing custom logic for every time you need to do something ...
3,142
<p>Problem: Z-Axis doesn't work during a print. It attempts to work, maybe climbs on the Z-Axis, but screws back down. It whines, too. But, Z-Axis DOES work while not printing. It doesn't matter if the bed and nozzle heating or not, if it's not printing, it works as it should. I don't know what else I can do to t...
<p>I would check the gcode you're generating to make sure it's not full of &quot;bad&quot; z-commands.</p> <p>Further, I'd take any gcode file you have and manually edit it, leaving in all the initializations, heatings, zeroing, etc., and then delete everything except some z-motion commands. Run that as a test case t...
<p>I had the same issue with an Ender 3. The threaded rod was not lubricated enough. Adding some lithium grease, applying it evenly, and moving the Z-axis from top to bottom multiple times fixed the issue. I had to recalibrate the Z-offset after that.</p>
967
<p>Is there a way to get the tests inside of a <code>TestCase</code> to run in a certain order? For example, I want to separate the life cycle of an object from creation to use to destruction but I need to make sure that the object is set up first before I run the other tests.</p>
<p>Maybe there is a design problem in your tests.</p> <p>Usually each test must not depend on any other tests, so they can run in any order.</p> <p>Each test needs to instantiate and destroy everything it needs to run, that would be the perfect approach, you should never share objects and states between tests.</p> <...
<p>There really is a problem with your tests if they need to run in a certain order. Each test should be totally independent of the others: it helps you with defect localization, and allows you to get repeatable (and therefore debuggable) results.</p> <p>Checkout <a href="http://www.xunitpatterns.com" rel="nofollow n...
3,143
<p>I made two updates to my Ender 3 Pro: Silent Mainboard and BLTouch. My printer head is way out of sync now. After I Auto Home, it moves along the X-axis to the left, hits the stop switch &amp; moves back to the right. It does not move at all on the Z-axis and remains 3 - 4&quot; above the bed during and after Auto ...
<p>Resolved : connected the white &amp; black wires to the 5 pin output on the board. This solved the homing issue.</p>
<p>I had the same issue and thought I bricked it, so thank you for getting me on the right path! For Ender 3 Pro v4.2.2 motherboard, no Pinboard A, ISP Pinboard, or Burner required! In my case, I had used the provided pins (white housing) that were on the v4.2.2 motherboard itself.</p> <p>In doing so I had to switch th...
1,882
<p>I am doing an e-commerce solution in ASP.NET which uses <a href="https://www.paypal.com/IntegrationCenter/ic_standard_home.html" rel="noreferrer">PayPal's Website Payments Standard</a> service. Together with that I use a service they offer (<a href="https://www.paypal.com/IntegrationCenter/ic_pdt.html" rel="noreferr...
<p>Something like this placed in your onload event.</p> <pre><code>if (Request.RequestType == "POST") { using (StreamReader sr = new StreamReader(Request.InputStream)) { if (sr.ReadLine() == "SUCCESS") { /* Do your parsing here */ } } } </code></pre> <p>Mind you that th...
<p>If I'm reading your question right, I think you're looking for the <a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.inputstream.aspx" rel="nofollow noreferrer" title="MSDN">InputStream property</a> on the Request object. Keep in mind that this is a firehose stream, so you can't reset it.</p>
4,059
<p>I'm fairly new to the STL, so I was wondering whether there are any dynamically sortable containers? At the moment my current thinking is to use a vector in conjunction with the various sort algorithms, but I'm not sure whether there's a more appropriate selection given the (presumably) linear complexity of inserti...
<p>You'll want to look at std::map</p> <pre><code>std::map&lt;keyType, valueType&gt; </code></pre> <p>The map is sorted based on the &lt; operator provided for keyType.</p> <p>Or </p> <pre><code>std::set&lt;valueType&gt; </code></pre> <p>Also sorted on the &lt; operator of the template argument, but does not allow...
<p>STL maps and sets are both sorted containers.</p> <p>I second Doug T's book recommendation - the Josuttis STL book is the best I've ever seen as both a learning and reference book.</p> <p><a href="https://rads.stackoverflow.com/amzn/click/com/0201749629" rel="nofollow noreferrer" rel="nofollow noreferrer">Effectiv...
9,298
<p>There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically this works fine, I just now have...
<p>In addition to the other comments, you may find the -m (move) switch to git-branch helpful. You could rename your old master to something else, then rename your new branch to master:</p> <pre><code>git branch -m master crap_work git branch -m previous_master master </code></pre>
<p>This will set your master to any point in one step:</p> <pre><code>git checkout -B master new_point </code></pre>
4,189
<p>At work we are currently still using JUnit 3 to run our tests. We have been considering switching over to JUnit 4 for <strong>new</strong> tests being written but I have been keeping an eye on TestNG for a while now. What experiences have you all had with either JUnit 4 or TestNG, and which seems to work better for ...
<p>I've used both, but I have to agree with Justin Standard that you shouldn't really consider rewriting your existing tests to any new format. Regardless of the decision, it is pretty trivial to run both. TestNG strives to be much more configurable than JUnit, but in the end they both work equally well.</p> <p>Test...
<p>Your question seems two folded to me. On one had you would like to compare two test frameworks, on the other hand you would like to implement tests easily, have natural assertions, etc...</p> <p>Ok, firstly JUnit has been playing catchup with TestNG in terms of functionality, they have bridged the gap some what wit...
2,839
<p>I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this?</p> <pre><code>// for example public static int MyField = 5; </code></pre> <p>I can seem to figure out how to declare a static field, and I can set its value later, but I can't seem to get the above effect.</...
<p>Once you create your CodeMemberField instance to represent the static field, you can assign the InitExpression property to the expression you want to use to populate the field.</p>
<p>I think what you want is a const rather than static. I assume what you want is the effect of having a static readonly which is why you always want the value to be 5.</p> <p>In c# consts are treated exactly the same as a readonly static.</p> <p><a href="http://msdn.microsoft.com/en-us/library/aa645749(VS.71).aspx" ...
4,919
<p>Is there a down side? I feel almost dependent on it now. Whenever a project gets past a certain size almost feel an allergic reaction to standard patterns and immediately re-wire it with a Dependency Injection framework.</p> <p>The largest issue I've found is it can be confusing for other developers who are just le...
<p>I've taken a stab at describing some of the possible downsides in a blog post here: <a href="http://kevin-berridge.blogspot.com/2008/06/ioc-and-di-complexity.html" rel="noreferrer">http://kevin-berridge.blogspot.com/2008/06/ioc-and-di-complexity.html</a></p>
<p>@Blorgbeard: <a href="http://www.martinfowler.com/articles/injection.html" rel="nofollow noreferrer">http://www.martinfowler.com/articles/injection.html</a> is probably one of the best articles on the subject</p>
6,426
<p>I know that garbage collection is automated in Java. But I understood that if you call <code>System.gc()</code> in your code that the JVM may or may not decide to perform garbage collection at that point. How does this work precisely? On what basis/parameters exactly does the JVM decide to do (or not do) a GC when i...
<p>In practice, it <em>usually</em> decides to do a garbage collection. The answer varies depending on lots of factors, like which JVM you're running on, which mode it's in, and which garbage collection algorithm it's using. </p> <p>I wouldn't depend on it in your code. If the JVM is about to throw an OutOfMemoryEr...
<p>I can't think of a specific example when it is good to run explicit GC. </p> <p>In general, running explicit GC can actually cause more harm than good, because an explicit gc will trigger a full collection, which takes significantly longer as it goes through every object. If this explicit gc ends up being called r...
9,206
<p>I am wondering what the best way to obtain the current domain is in ASP.NET?</p> <p>For instance:</p> <p><a href="http://www.domainname.com/subdir/" rel="noreferrer">http://www.domainname.com/subdir/</a> should yield <a href="http://www.domainname.com" rel="noreferrer">http://www.domainname.com</a> <a href="http:/...
<p>Same answer as MattMitchell's but with some modification. This checks for the default port instead.</p> <blockquote> <p>Edit: Updated syntax and using <code>Request.Url.Authority</code> as suggested </p> </blockquote> <pre><code>$"{Request.Url.Scheme}{System.Uri.SchemeDelimiter}{Request.Url.Authority}" </code></...
<p>How about:</p> <pre><code>String domain = "http://" + Request.Url.Host </code></pre>
8,713
<p>I have a solid of revolution defined by two equations, and I want to generate a STL file for printing from the <a href="https://www.desmos.com/calculator/eh18uwasw9" rel="nofollow noreferrer">difference of the two equations</a>, revolved around x=0. I can get a good visualization when I <a href="https://www.wolframa...
<p>If you properly define your own machine with a <code>delta_wasp.def.json</code> file you can fill in the acceleration and jerk settings of your printer, so that Cura will use the correct values for print time estimation.</p> <p>For example, take a look at <a href="https://github.com/Ultimaker/Cura/blob/master/resou...
<p>Estimating time for any CNC based machines are measured in this formula:</p> <p><em>The length of pulses that machine travels x The feedrate of the pulse itself</em></p> <p>It gives you the time for whole movements. If you're familiar with NC codes, information of any movement is listed in a single line, having it...
600
<p>I am working on designing and building a desktop application. I am thinking about using eclipse or netbeans for the base of this application. However, I have never built on either of these platforms. I am personally leaning to using netbeans because it seams like that platform is an easer learning curve. But, I ...
<p>I can't say enough about the Eclipse RCP platform. I would recommend it for any Java desktop app development. </p> <p>It's free, has great tutorials, and allows cross-platform development of rich desktop applications that use native OS windowing toolkit, meaning that your application will look native in any platfor...
<p>I would use eclipse RCP when you really need a platform to built on top, not just "widgetery" like swing or swt. RCP is rock solid and consistent, modular and very flexible. Once you master it, you get huge benefits. Being a platform it give you the most commonly used things - preference, configurations, automatic u...
7,380
<p>I've used jdom in the past, and have looked briefly at XOM and <code>DOM4j</code>. Each seems to provide essentially the same thing, as they each provide a simplified wrapper over the (very obtuse) standard W3C DOM APIs. </p> <p>I know that JDOM went through some effort to develop a JSR and standardization process...
<p>I like <a href="http://www.xom.nu/" rel="nofollow noreferrer">XOM</a>, because I like the way Elliotte Rusty Harold thinks. Of the ones you mention I belive it's the one that strays away from the DOM standard API:s the most, but I consider that a benefit.</p> <p>I once implemented a DOM library for Cocoa, and XOM w...
<p>It all depends on the feature set. If you want to benefit from an XSL Transformation Engine (Like Xalan) or an XPath Engine (Like Jaxen or Saxon) I would recommend sticking to the more popular framework available like Apache Xerces, JDOM.</p> <p>After that, it's all a matter of taste. I personnally use a W3C compli...
4,521
<p><strong>Bounty:</strong> I will send $5 via paypal for an answer that fixes this problem for me.</p> <p>I'm not sure what VS setting I've changed or if it's a web.config setting or what, but I keep getting this error in the error list and yet all solutions build fine. Here are some examples:</p> <pre> Error 5 ...
<p>I had the same error recently. Here's how I fixed it (I hope it works for you too):</p> <p>-Open your project properties, go to the references section.</p> <p>-Remove the reference to System in the upper section.</p> <p>I think it's referencing System twice but it's only showing once. Hence the ambigous referenc...
<p>When asking for help diagnosing compilation problems, it often helps to post the offending source code :)</p> <p>These errors really mean that the specified name conflicts with another and the compiler cannot resolve this. It does look a little odd tho..</p>
3,563
<p>My local library has a 3D printer (Lulzbot Mini) for patrons to use. The prints are limited to 4 hours and if I go after work I really only have two hours before the Library closes. The software at the Library will give an estimated time, but I would like to be able to estimate the time before I get there.</p> <p>C...
<p>There is no way to estimate the print time of an STL file directly.</p> <p>The print time is based on the number of instructions in the g-code file plus the time it takes to move the effector (the hot end) around the build area. The only way to compute that is to know what settings their slicer is using and then sl...
<p>There is no way to estimate the print time of an STL file directly.</p> <p>The print time is based on the number of instructions in the g-code file plus the time it takes to move the effector (the hot end) around the build area. The only way to compute that is to know what settings their slicer is using and then sl...
1,427
<p>I come from a Java background, where packages are used, not namespaces. I'm used to putting classes that work together to form a complete object into packages, and then reusing them later from that package. But now I'm working in C++.</p> <p>How do you use namespaces in C++? Do you create a single namespace for the...
<p>Namespaces are packages essentially. They can be used like this:</p> <pre><code>namespace MyNamespace { class MyClass { }; } </code></pre> <p>Then in code:</p> <pre><code>MyNamespace::MyClass* pClass = new MyNamespace::MyClass(); </code></pre> <p>Or, if you want to always use a specific namespace, you can ...
<p>std :: cout</p> <p>The prefix std:: indicates that the names cout and endl are defined inside the namespace named std. Namespaces allow us to avoidinadvertent collisions between the names we define and uses of those same names inside a library. All the names defined by the standard library are in the stdnamespace....
6,292
<p>I have just found a static nested interface in our code-base.</p> <pre><code>class Foo { public static interface Bar { /* snip */ } /* snip */ } </code></pre> <p>I have never seen this before. The original developer is out of reach. Therefore I have to ask SO:</p> <p>What are the semantics beh...
<p>The static keyword in the above example is redundant (a nested interface is automatically "static") and can be removed with no effect on semantics; I would recommend it be removed. The same goes for "public" on interface methods and "public final" on interface fields - the modifiers are redundant and just add clutte...
<p>Static means that any class part of the package(project) can acces it without using a pointer. This can be usefull or hindering depending on the situation.</p> <p>The perfect example of the usefullnes of "static" methods is the Math class. All methods in Math are static. This means you don't have to go out of your ...
9,716
<p>I am wondering what directory structure are commonly used in development projects. I mean with the idea of facilitating builds, deploys release, and etc.</p> <p>I recently used a <a href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html" rel="nofollow noreferrer">Maven...
<p>After a couple years working with different structures I recently found a structure that hols most variations for me:</p> <pre><code>/project_name (everything goes here) /web (htdocs) /img /css /app (usually some framework or sensitive code) /lib (externa libs) ...
<p>I just found a interesting document about Directory structures on Zend website:<br> <a href="http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout" rel="nofollow noreferrer">http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout</a></p>
8,609
<p>Curious if others feel the same as me. To me, controls such as datagrid/gridview/formview/etc. are great for presentations or demo's only. To take the time and tweak this controls, override their default behavior (hooking into their silly events etc.) is a big headache. The only control that I use is the repeater,...
<p>Anyone that thinks nobody uses *Grid controls has clearly never worked on an internal corporate webapp.</p>
<p>i am a moderate level developer i can say without these controls i couldn,t ever learn developing.just you have to admit yourself to it for a while till you find your way to customize it and the end result will be great</p>
3,766
<p>I have some reports in SQL Server Reporting Services 2005 that I need to keep audit logs for. The audit log should include who ran what report with what parameters. I can't use Windows authentication.</p> <p>What is the best way to log this information?</p>
<p>The previous comments were dead on accurate that you can mine the data from the ReportServer ExecutionLog table in SQL Server 2000/2005 or the ExecutionLogStorage table in SQL Server 2008. If you are using form-based authentication to access the reports instead of windows authentication, then you are probably passi...
<p>If you are using a custom security extention, you will still be able to get all the info you need from the ExecutionLog table. Unless off-course if all your users uses a shared login, in which case you probably need to reconsider your architecture, depending on the importance of the audit log.</p>
2,982
<p>I am printing fairly cheap, but highly rated, PLA and not sure whether this is underextrusion or overextrusion; but it just looks bumpy and not clean. My settings:</p> <ul> <li>195 °C at 60 mm/s bed temp 50 °C</li> <li>0.4 mm nozzle at 90 % extrusion</li> <li>0.1 mm layer height</li> <li>6 mm retraction at 60 mm/s w...
<p>I have used a standard soldering iron to modify and fix 3D prints in the past. You have to keep some things in mind when doing so:</p> <ul> <li>Don't overheat your material. PLA can take a soldering iron of about 230 °C before charring.</li> <li>Don't use a tip with solder, or you will get grey deposits in the plast...
<p>Cutting materials with a 'hot knife' isn't anything new. There should be a fairly established toolset for working foam. For 3D prints, I prefer to add coatings rather than modify surfaces with a hand held tool after. I do run a drill bit through printed holes though.</p>
1,914
<p>When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio.</p> <p>I'm not sure how to approach this, or if there are any tools already in existence which accomplish i...
<p>You would probably need to embed an ActiveX control in the page for something like that to be possible.</p>
<p>The easiest, laziest thing I could think of would be to have the process happen thusly:</p> <ol> <li>The yellow screen is modified so the line is source code is clickable. When clicked it delivers a small text file with the source file name and line number.</li> <li>A small program on the PC is tied to the extensi...
4,090
<p>Feel free to edit the title if you know how to formulate the question better. (Tagging is a problem as well.) The problem may be too difficult in this general form, so let us consider a concrete example.</p> <p>You get a screenful of stackoverflow questions by requesting <code>/questions ?sort=newest</code> page. N...
<p>This can't be done an easy way. For instance, the "Unanswered" list here at stackoverflow is sorted by number of votes. So if you'd save the last ID of the page you're viewing (in a cookie, request, session, whereever) and someone upvotes a post while you're browsing page 2, page 3 isn't complete since the recently ...
<p>Most web sites I've seen don't solve this problem - they show you a page including some content you've already seen.</p> <p>You might consider that a feature - when you click "next" and see some content you're seen before, it's a signal that you want to go back to the front again because there's some new content.</...
5,963
<p>I need to automate a process involving a website that is using a login form. I need to capture some data in the pages following the login page.</p> <p>I know how to screen-scrape normal pages, but not those behind a secure site.</p> <ol> <li>Can this be done with the .NET WebClient class? <ul> <li>How would I au...
<p>One way would be through automating a browser -- you mentioned WebClient, so I'm guessing you might be referring to WebClient in .NET.<p>Two main points:<ul><li>There's nothing special about https related to WebClient - it just works</li><li>Cookies are typically used to carry authentication -- you'll need to captur...
<p>Can you please clarify? Is the WebClient class you speak of the one in HTTPUnit/Java?</p> <p>If so, your session should be saved automatically.</p>
7,058
<p>I have a .net web application that has a Flex application embedded within a page. This flex application calls a .net webservice. I can trace the execution proccess through the debugger and all looks great until I get the response:</p> <pre><code> soap:ReceiverSystem.Web.Services.Protocols.SoapException: Server wa...
<p>It looks like you might be sending a poorly formed XML document to the service. Can you use Fiddler or something like that to get a copy of the actual call that is going to the web service? That would be a huge help in figured out what the issue is.</p>
<p>Are you using Flex 3? If so, you can set a breakpoint when the webservice is executed and actually step through the Flex framework as it encodes your request. Look in mx.rpc.soap.SoapEncoder and you'll be able to see exactly what is going to be sent over the wire. </p>
3,472
<p>I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &amp;, *, /, etc) operators, unary (!) operators, and parenthesis.</p> <p>Using this method, however, leaves me with everything having the same precedence - it's evaluated left to right regardless of operator, although...
<h3>The hard way</h3> <p>You want a <a href="http://en.wikipedia.org/wiki/Recursive_descent_parser" rel="noreferrer">recursive descent parser</a>.</p> <p>To get precedence you need to think recursively, for example, using your sample string, </p> <pre><code>1+11*5 </code></pre> <p>to do this manually, you would hav...
<p>Actually there's a way to do this without recursion, which allows you to go through the entire expression once, character by character. This is O(n) for time and space. It takes all of 5 milliseconds to run even for a medium-sized expression.</p> <p>First, you'd want to do a check to ensure that your parens are ba...
4,792
<h3>Summary</h3> <p>What's the best way to ensure a table cell cannot be less than a certain minimum width. </p> <h3>Example</h3> <p>I want to ensure that all cells in a table are at least 100px wide regards of the width of the tables container. If there is more available space the table cells should fill that space...
<p>This CSS should suffice:</p> <pre><code>td { min-width: 100px; } </code></pre> <p>However, it's not always obeyed correctly (the min-width attribute) by all browsers (for example, IE6 dislikes it a great deal).</p> <p><strong>Edit:</strong> As for an IE6 (and before) solution, there isn't one that works reliably ...
<p>IE6 handles width as min-width:</p> <pre><code>td { min-width: 100px; _width: 100px;/* IE6 hack */ } </code></pre> <p>If you want IE6 to handle width like normal browsers, give it an overflow:visible; (not the case here)</p>
8,067
<p>Using a 3D pen I printed a small box. However, I was doing it on plain paper and of course the paper didn't come off the plastic very well. It didn't matter for that specific case, but if I want to print something else, which non-sticky surface would you recommend? Is there any way to use transparent surface (so tha...
<p>You could use a piece of glass, that's what most people using 3D printers have as a build surface. An easy source of glass for pen use would be a picture frame but the edges are likely sharp so be careful. Acrylic would also work and is easily obtained in small pieces from places like Lowes/Home Depot, I used Acry...
<p>Someone trying to get a surface to not stick. This is a first. I would try glass first. If you still have issues, I would look into coated surface, like an old tefflon pan (do not cook with PLA residue). I would suggest oil but you might start a fire.. </p>
521
<p>I may have this completely wrong, but my understanding is that the --standalone compiler option tells the compiler to include the F# core and other dependencies in the exe, so that you can run it on another machine without installing any 'runtime'.</p> <p>However, I can't get this to work in the CTP - it doesn't ev...
<p>Answer from MS:</p> <p><em>There is a CTP update 1.9.6.2 that fixed some --standalone bugs.</em></p> <p>I'm reinstalling now...</p> <p>UPDATE: Works for me - so the my accepted answer is <strong>download CTP update 1.9.6.2</strong>.</p>
<p>F# manual: <a href="http://research.microsoft.com/fsharp/manual/compiler.aspx#Standalone" rel="nofollow noreferrer">Statically linking the F# library using "--standalone"</a></p> <p>Did you try to run peverify.exe utility?</p>
9,661
<p>We have some legacy code that needs to identify in the Page_Load which event caused the postback. At the moment this is implemented by checking the Request data like this...</p> <p>if (Request.Form["__EVENTTARGET"] != null<br> &amp;&amp; (Request.Form["__EVENTTARGET"].IndexOf("BaseGrid") > -1 // BaseGrid event ( e....
<p>This should get you the control that caused the postback:</p> <pre><code>public static Control GetPostBackControl(Page page) { Control control = null; string ctrlname = page.Request.Params.Get("__EVENTTARGET"); if (ctrlname != null &amp;&amp; ctrlname != string.Empty) { control = page.FindC...
<p>In addition to the above code, if control is of type ImageButton then add the below code,</p> <pre><code>if (control == null) { for (int i = 0; i &lt; page.Request.Form.Count; i++) { if ((page.Request.Form.Keys[i].EndsWith(".x")) || (page.Request.Form.Keys[i].EndsWith(".y"))) { control ...
7,182
<p>I have a console app in which I want to give the user <em>x</em> seconds to respond to the prompt. If no input is made after a certain period of time, program logic should continue. We assume a timeout means empty response.</p> <p>What is the most straightforward way of approaching this?</p>
<p>I'm surprised to learn that after 5 years, all of the answers still suffer from one or more of the following problems:</p> <ul> <li>A function other than ReadLine is used, causing loss of functionality. (Delete/backspace/up-key for previous input).</li> <li>Function behaves badly when invoked multiple times (spawni...
<p>Another cheap way to get a 2nd thread is to wrap it in a delegate.</p>
8,196
<p>(<strong>Updated a little</strong>)</p> <p>I'm not very experienced with internationalization using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for.</p> <p>I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in an SMS messag...
<p>To deal with it conceptually before getting into mechanisms, and apologies if any of this is obvious, a string can be defined as a sequence of Unicode characters, Unicode being a database that gives an id number known as a code point to every character you might need to work with. GSM-338 contains a subset of the Un...
<p>PHP6 will have better unicode support but there are a few functions you can use.</p> <p>My first thought was <a href="http://php.net/manual/en/function.mb-convert-encoding.php" rel="nofollow noreferrer"><code>mb_convert_encoding</code></a> but as you said this will shorten messages to 70 chars - so perhaps you can ...
4,723
<p>I'm printing a model on my Ender 3 in Mika3D Silk PLA, which (just for reference, this is not atypical) has a stated temperature of 200&nbsp;&deg;C to 235&nbsp;&deg;C. I have used this filament before and found it works best for me around 200&nbsp;&deg;C, but was not the case with this print, and I'm wondering what ...
<p>Stringing may depend on sub-optimal retraction settings: when retraction is fast and high enough, the string may be cut and disappear.</p> <p>You may want to at least try to optimise retraction, at least to exclude that parameter.</p> <p>There is a tool designed to properly tune retraction: <a href="http://retractio...
<p>It's because the nozzle has nowhere to wipe itself, like when you don't use Z hop the nozzle wipes itself off in the inside of the print. When you have Z hop enabled the nozzle has nowhere to wipe the string off, which leaves a string when it goes over to the next print. This happens to me all the time.</p>
1,532
<p>When choosing a layer height, I know that often you go as fine as your printer will do for better precision, but sometimes you go a little thicker, for speed, for example.</p> <p>I also see 0.1&nbsp;mm and 0.2&nbsp;mm as common thicknesses.</p> <p>What are my options here? When I'm working on a part where I want t...
<p>You decide which layer height you want based on the quality you desire, but never go over about 75&nbsp;% of your nozzle diameter, so with your 0.4&nbsp;mm nozzle never choose layer heights larger than 0.3&nbsp;mm. The rationale of this rule of thumb is that the filament leaves the nozzle as a tube and needs to be f...
<p>You decide which layer height you want based on the quality you desire, but never go over about 75&nbsp;% of your nozzle diameter, so with your 0.4&nbsp;mm nozzle never choose layer heights larger than 0.3&nbsp;mm. The rationale of this rule of thumb is that the filament leaves the nozzle as a tube and needs to be f...
1,165
<p>Can anyone recommend some decent resources for a .NET developer who wishes to get a high level overview of the Delphi language?</p> <p>We are about acquire a small business whose main product is developed in Delphi and I am wanting to build up enough knowledge to be able to talk the talk with them.</p> <p>Books, w...
<ul> <li><a href="http://www.delphibasics.co.uk" rel="nofollow noreferrer">DelphiBasics</a> gives a good overview of basic syntax, library functions etc.</li> <li><a href="http://www.marcocantu.com/edelphi/default.htm" rel="nofollow noreferrer">Essential Delphi</a> is a free e-book by Marco Cantu that should give a goo...
<p>@Martin there is a free version.</p> <p><a href="http://www.turboexplorer.com/" rel="nofollow noreferrer">Turbo Delphi</a></p> <p>If you are comfortable with c# you will see many similarities with Delphi.</p> <p>I also found the community surrounding the newsgroups to be active and helpful. They have a smilar con...
3,411
<p>I have a repair part that I need to print with ABS and I know that I have warping problems with ABS.</p> <p>I'm now trying to mitigate this by printing a circle around my object and use more brim. You can consider this as a manually designed skirt, but I want the brim to be on both sides of the skirt.</p> <p>However...
<p>When there's a cut in the outer ring (the manual skirt), Slic3r will fill the area as expected:</p> <p><a href="https://i.stack.imgur.com/Lb2np.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lb2np.png" alt="Brim in the gap" /></a></p>
<p><a href="https://i.stack.imgur.com/t2WwV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t2WwV.png" alt="enter image description here" /></a></p> <p>Prusa Slicer 2.2.0 in print settings skirt and brim, set distance from object to zero</p> <p>Other slicers should have same capability. As long as yo...
1,697
<p>I have been having an issue with certain portions of the walls of certain prints becoming separated from the rest of the model. It happens with smooth vertical edges. </p> <p>Specifically, this model, <a href="https://www.thingiverse.com/thing:2517008" rel="nofollow noreferrer"> ID Badge Holder</a>, on the edges w...
<p>I have faced the same issue if it concerns just gaps between the walls (to the point you could put a nail in between the outer and inner perimeters, so clearly the perimeters were not bonding), for me this was fixed with proper tension of the belts of my Prusa i3 clone, and for my other (CoreXY) printer reducing the...
<p>When printing someone else's model, your print is at the mercy of their design. Designing for multiple printers is hard work, and even if something is printable on 90% of printers, you may be in the 10%. Sometimes designs use walls too thin for other printers. On this design, the lanyard wall looks a bit thin but wo...
919
<p>I flashed the TH3D unified firmware (R2.7) yesterday and so far everything works. I printed the 20&nbsp;mm cube using the same G-code file I used for my very first print ever. However, with TH3D firmware I noticed that the print head was ridiculously fast compared to the previous firmware. The new cube has layer shi...
<p>I agree with @silver, but also wanted to point out that maybe the acceleration values on the old firmware you had were different from the default in TH3D R2.7.</p> <p>The current settings can be retrieved using the M503 command, which should return the values from the eeprom:</p> <pre><code>Maximum Acceleration (u...
<p>Yes, the limits are often subject to some "interpretation" in the limiting algorithms, even if they are totally unchanged values. Eg, your speed may remain higher around corners if the momentum calculations were optimized to take into account print head weight and extrusion instead of only per axis speed curves.</p>...
1,182
<p>Is there a way to substring in JSP files, using struts2 technologies? I mean, struts2 has its own taglib and also uses ognl. How can I get a substring from a stacked value or bean value?</p>
<p><a href="http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html" rel="nofollow noreferrer">http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html</a></p> <p>Look for fn:substring and its variants.</p> <p>I've used Struts 1, but not 2.</p>
<p>Watch out for the functions library in certain situations, especially when using Websphere to deploy! The company I work for deploys to Websphere 6.0 version 11, which does not support the functions library properly (it does not function properly when placed inside a tag body). I remember somewhere that they fixed...
9,044
<p>I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates.</p> <p>Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is pretty annoying.</p> <p>Is there a configuration-parameter to make Fire...
<p>Go to Tools > Options > Advanced "Tab"(?) > Encryption Tab</p> <p>Click the "Validation" button, and uncheck the checkbox for checking validity</p> <p>Be advised though that this is pretty unsecure as it leaves you wide open to accept any invalid certificate. I'd only do this if using the browser on an Intranet wh...
<p>The <a href="https://addons.mozilla.org/en-US/firefox/addon/6843" rel="nofollow noreferrer">MitM Me addon</a> will do this - but I think self-signed certificates is probably a better solution.</p>
4,045
<p>What tool would you recommend to detect <strong>Java package cyclic dependencies</strong>, knowing that the goal is to <em>list explicitly the specific classes involved in the detected 'across-packages cycle'</em>?</p> <p>I know about <a href="http://classycle.sourceforge.net/" rel="noreferrer">classycle</a> and <a...
<p>Findbugs can detect circular class dependencies and has an Eclipse plugin too.</p> <p><a href="http://findbugs.sourceforge.net/" rel="nofollow noreferrer">http://findbugs.sourceforge.net/</a></p>
<p>One tool which does this is the software <a href="http://www.software-tomography.com/" rel="nofollow noreferrer">tomograph</a>. It is commercial and the UI sucks :o</p>
8,765
<p>I use VNC to connect to a Linux workstation at work. At work I have a 20" monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900. If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the...
<p>Real VNC server 4.4 includes support for Xrandr, which allows resizing the VNC. Start the server with:</p> <pre><code>vncserver -geometry 1600x1200 -randr 1600x1200,1440x900,1024x768 </code></pre> <p>Then resize with:</p> <pre><code>xrandr -s 1600x1200 xrandr -s 1440x900 xrandr -s 1024x768 </code></pre>
<p>I think that depends on your window manager.</p> <p>I'm a windows user, so this might be a wrong guess, but: Isn't there something called <a href="http://de.wikipedia.org/wiki/X-Server" rel="nofollow noreferrer">X-Server</a> running on linux machines - at least on ones that might be interesting targets for VNC - th...
3,663
<p>I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables. </p> <p>I'd like to add a scalar function to my script that get...
<blockquote> <p>I'm starting to think it can't be done that way since there doesn't seem to be a way to maintain the offset counter between calls. Is that right, or is there something I'm missing.</p> </blockquote> <p>You aren't missing anything; SQL Server does not support global variables, and it doesn't support d...
<p>It would probably be more work than it's worth, but you can use static C#/VB variables in a SQL CLR UDF, so I think you'd be able to do what you want to do by simply incrementing this variable every time the UDF is called. The static variable would be lost whenever the appdomain unloaded, of course. So if you need...
4,795
<p>Can anyone suggest a way of getting version information into a Web Service? (VB.NET)</p> <p>I would like to dynamically use the assembly version in the title or description, but the attributes require constants. </p> <p>Is manually writing the version info as a string the only way of displaying the information on ...
<p>I have been looking at this kind of functionality myself recently and have decided on using jQuery with the help of <a href="http://ui.jquery.com/" rel="noreferrer">jQuery UI</a>. I came across a large amount of information that also suggested <a href="http://developer.yahoo.com/yui/" rel="noreferrer">Yahoo UI</a> (...
<p>I used the Microsoft ASP.Net Ajax and AjaxControlToolkit to do something like this. They have a ResizeableControl and a DragPanel. I used these, then hosted an IFrame inside the panel to display the content.</p> <p>Worked pretty well.</p> <hr> <p>This site:</p> <p><a href="http://www.asp.net/learn/videos/defau...
3,695
<p>Is there any way to know if I'm compiling under a specific Microsoft Visual Studio version?</p>
<p><code>_MSC_VER</code> and possibly <code>_MSC_FULL_VER</code> is what you need. You can also examine <a href="https://www.boost.org/doc/libs/master/boost/config/compiler/visualc.hpp" rel="noreferrer">visualc.hpp</a> in any recent boost install for some usage examples.</p> <p>Some values for the more recent versions...
<p>In visual studio, go to help | about and look at the version of Visual Studio that you're using to compile your app.</p>
9,544
<p>So I've seen some very good design software, but almost all of it is very expensive. I'm just wondering if there's a good cheap design software out there.</p>
<p>Try Fusion 360. It's free for educators, students, enthusiasts and start-ups. It's not 100% intuitive, but once you learn the basics, it probably has all the facilities that you will ever need for mechanical design.</p>
<p>Try Fusion 360. It's free for educators, students, enthusiasts and start-ups. It's not 100% intuitive, but once you learn the basics, it probably has all the facilities that you will ever need for mechanical design.</p>
707
<p>I have been mulling over writing a peak-fitting library for a while. I know Python fairly well and plan on implementing everything in Python to begin with but envisage that I may have to re-implement some core routines in a compiled language eventually.</p> <p>IIRC, one of Python's original remits was as a prototypi...
<p>Finally a question that I can really put a value answer to :). </p> <p>I have investigated f2py, boost.python, swig, cython and pyrex for my work (PhD in optical measurement techniques). I used swig extensively, boost.python some and pyrex and cython a lot. I also used ctypes. This is my breakdown:</p> <p><strong>...
<blockquote> <p>Python is pretty liberal in allowing functions, functors, objects to be passed to functions and methods, whereas I suspect the same is not true of say C or Fortran.</p> </blockquote> <p>In C you cannot pass a function as an argument to a function but you can pass a function pointer which is just as g...
3,678
<p>We're currently in the process of setting up a source control/build/and more-server for .NET development and we're thinking about either utilizing the Team Foundation Server (which costs a lot of dough) or combining several open source options, such as SourceForge Enterprise/GForge and Subversion and CruiseControl.n...
<p>My work is currently using a mostly OSS build process with Cruise Control as the engine and it is great. I would suggest that if you don't know why you would need TFS, it's probably not worth the cost.</p> <p>The thing you have to keep in mind with the OSS stuff is that the software has either been in use by the Ja...
<p>I've seen both in action (though I'm a Java developer). The upsides from a pick and mix approach is that you can choose the best bits for everything (e.g. I'd check out Hudson for CI - its excellent for Java, works for .Net too and has <em>loads</em> of plugins and is really simple to use). The downside is that yo...
8,729
<p>I'm not a usability specialist, and I really don't care to be one.</p> <p>I just want a small set of rules of thumb that I can follow while coding my user interfaces so that my product has decent usability.</p> <p>At first I thought that this question would be easy to answer "Use your common sense", but if it's so...
<p><img src="https://i.stack.imgur.com/G5Xcl.png" alt="simplicity"/></p> <p>Source: <a href="http://stuffthathappens.com/blog/wp-content/uploads/2008/03/simplicity.png" rel="nofollow noreferrer">http://stuffthathappens.com/blog/wp-content/uploads/2008/03/simplicity.png</a></p>
<p>What information does your user need, put that on the screen and nothing else. If you cannot define what the user needs - get another user.</p>
7,392
<p>I have an image and on it are logos (it's a map), I want to have a little box popup with information about that logo's location when the user moves their mouse over said logo.</p> <p>Can I do this without using a javascript framework and if so, are there any small libraries/scripts that will let me do such a thing?...
<p>Yes, you can do this without Javascript. Use an HTML image map, with title attributes, like this:</p> <pre><code>&lt;img usemap="#logo" src="http://stackoverflow.com/Content/Img/stackoverflow-logo-250.png"&gt; &lt;map name="logo"&gt; &lt;area shape="rect" href="" coords="52,42,121,65" title="Stack"&gt; &lt;area sha...
<p>you can use <code>title</code> attribute for simple tooltip. its works on almost all DOM objects.</p>
4,479
<p>I'm converting an application to use Java 1.5 and have found the following method:</p> <pre><code> /** * Compare two Comparables, treat nulls as -infinity. * @param o1 * @param o2 * @return -1 if o1&amp;lt;o2, 0 if o1==o2, 1 if o1&amp;gt;o2 */ protected static int nullCompare(Comparable o1, Compar...
<p>Change it to:</p> <pre><code>protected static &lt;T extends Comparable&lt;T&gt;&gt; int nullCompare(T o1, T o2) { </code></pre> <p>You need that because Comparable is itself a generic type.</p>
<p>I'm not sure that genericizing this method makes sense. Currently the method works on any kind of Comparable; if you genericize it you will have to implement it (with exactly the same code) multiple times. Sometimes it is possible to compare two objects that don't have a common ancestor, and any generic version won'...
8,358
<p>I'm looking for a tool that will render a RDF graph in a reasonably useful graphic format. The primary purpose of the graphic format being inclusion into a PowerPoint slide or printing on a large plotter for management review.</p> <p>I am currently using TopBraid Composer which does a reasonably well at visualizin...
<p><a href="http://semweb.salzburgresearch.at/apps/rdf-gravity/index.html" rel="nofollow noreferrer">RDF Gravity</a> is an RDF visualisation tool.</p> <p>Here's a screenshot: <a href="https://i.stack.imgur.com/CBpd0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CBpd0.jpg" alt="RDF Gravity Screensh...
<p>The Perl utility rdfdot, based on Graphviz, and this library, might help:</p> <p><a href="http://metacpan.org/pod/RDF::Trine::Exporter::GraphViz" rel="nofollow">http://metacpan.org/pod/RDF::Trine::Exporter::GraphViz</a></p> <p><a href="https://github.com/nichtich/RDF-Trine-Exporter-GraphViz" rel="nofollow">https:/...
9,222
<p>Let's say that I'm writing a function to convert between temperature scales. I want to support at least Celsius, Fahrenheit, and Kelvin. Is it better to pass the source scale and target scale as separate parameters of the function, or some sort of combined parameter?</p> <p>Example 1 - separate parameters: function...
<p>Go with the first option, but rather than allow literal strings (which are error prone), take constant values or an enumeration if your language supports it, like this:</p> <pre><code>convertTemperature (TempScale.CELSIUS, TempScale.FAHRENHEIT, 22) </code></pre>
<p>My vote is two parameters for conversion types, one for the value (as in your first example). I would use enums instead of string literals, however.</p>
8,356
<p>I think this is a fun engineering-level question.</p> <p>I need to design a control which displays a line chart. What I want to be able to do is use a designer to add multiple <code>Pens</code> which actually describe the data and presentation so that it ends up with Xaml something along these lines:</p> <pre><co...
<p>I would go with Chart as an ItemsControl and its ItemsPanel be a Canvas(For some light use I would go with Grid as ItemsPanel). And each Pen will be a CustomControl derived from PolyLine class. Does that make any sense?</p>
<p>Another option is to extend Canvas for the chart and extend Shape for the Pens. Then dynamically draw the shape based on the Color/Data properties.</p>
7,218
<p>Here is the X-axis of the P3Steel:</p> <p><a href="https://i.stack.imgur.com/xuYOq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xuYOq.jpg" alt="X-axis arm of P3Steel" /></a></p> <p>The X-axis idler end of a P3Steel printer, employs an 8 mm diameter rod for the axle on which a 608zz bearing is m...
<p>You could look up a <a href="https://www.pivotpins.com/products/bc-clevis-pins-with-grooves.html" rel="nofollow noreferrer">Clevis pin</a> with one groove.<br> You could look up a <a href="http://technifast.co.uk/clevis-pins" rel="nofollow noreferrer">Clevis pin</a> with a hole for a split pin.<br> Perhaps a <a href...
<p>Oh fascinating. It took me a while to figure out what exactly that is. It is a smooth rod used as the idler for the X belt. </p> <p>What I would do is get a bearing / wheel. Take a thicker screw, nut and washer. Put the idler / bearing / wheel into the slot, then fit the screw / nut. Should work without any issue!<...
477
<p>I'm using PrusaSlicer with OpenSCAD. I want to print a solid object with a notch in it, without top layers, but with infill and solid walls for the notch, like this...</p> <p><a href="https://i.stack.imgur.com/rWoz3.png" rel="nofollow noreferrer" title="Screenshot of the preview of a 3D model in PrusaSlicer"><img s...
<p>I just confirmed it works flawlessly in PrusaSlicer as it did in Slic3r, the software from which PrusaSlicer is forked. Just use the solution provided in &quot;<a href="https://3dprinting.stackexchange.com/questions/6522/different-infill-in-the-same-part/6523#6523">Different infill in the same part</a>&quot;, but no...
<p>I would just pause at the second to last layer, remove the print and cancel it.</p> <p>With Cura you can do this easily in the slicer. Or just manually do it.</p> <p>I have never used Prusaslicer but all slicers must have this. For more information, see the Prusa documentation <a href="https://help.prusa3d.com/artic...
2,207
<p>I'm getting a <strong><code>Connection Busy With Results From Another Command</code></strong> error from a SQLServer Native Client driver when a SSIS package is running. Only when talking to SQLServer 2000. A different part that talks to SQLServer 2005 seems to always run fine. Any thoughts?</p>
<p>As I just found out, this can also happen on SQL 2005 if you do not have MARS enabled. I never even knew that it was disabled by default, but it is. And make sure you are using the "NATIVE OLEDB\SQL Native Client" connection type. If you're using the "OLEDB.1" type connection (or whatever...) MARS is not even an...
<p>Just for information if somebody else have the problem. I tried connecting via NetCobol of Fujitsu on an SQLEXPRESS via ODBC with embedded sql and to solve the problem I had to change a value in the registry namely </p> <pre><code>\HKLM\Software\ODBC\ODBC.INI\MyDSN </code></pre> <p>with MyDSN as a string value:</p...
6,112
<p>I have a 3d printer that uses ABS filament. The software I use will generate vertical supports for my objects before printing that can be easily broken off after they have been used during print to hold sharp angles up that would normally fall.</p> <p>After breaking off the stints, the print is far from smooth. Is ...
<p>I have a bunch of solutions to this problem but I'm always looking for additional ideas. I usually start by slicing as much as possible off with a hobby knife. The more than can be removed before sanding the better.</p> <p>For big prints I like big <a href="http://rads.stackoverflow.com/amzn/click/B001449TPS">gener...
<p>I've noticed if I'm printing too close too the bed or if the bed isn't level to nozzle across the whole bed the supports will leave marks on the print where the print was 'smushed' by the nozzle being slightly closer on that side. Also, in Simplify3d you can increase the vertical and horizontal distance between the ...
109
<p>When developing (works fine live) the pages for our website don't pick up the correct CSS until the user has authenticated (logged on).</p> <p>So the Logon and Logoff forms look bad, but once inside the site, the CSS works again.</p> <p>I'm guessing it's some kind of authentication issue? Haven't really looked int...
<p>Check and make sure that the CSS file itself is not in an area that you are securing. You can manually exclude the file via the web.config if needed.</p>
<p>Can you try using a tool like <a href="http://fiddler2.com/fiddler2/" rel="nofollow noreferrer">Fiddler</a> or <a href="http://httpwatch.com/" rel="nofollow noreferrer">HttpWatch</a> and check if a request actually goes for the .css file from the login page. Verify the return codes are 200. Could be because of relat...
7,940
<p>I've convinced myself that they can't.</p> <p>Take for example:</p> <p>4 4 + 4 /</p> <p>stack: 4 stack: 4 4 4 + 4 = 8 stack: 8 stack: 8 4 8 / 4 = 2 stack: 2</p> <p>There are two ways that you could write the above expression with the same operators and operands such that the operands all come first: "4 4 4 + /...
<p>Consider the algebraic expression:</p> <pre><code>(a + b) * (c + d) </code></pre> <p>The obvious translation to RPN would be:</p> <pre><code>a b + c d + * </code></pre> <p>Even with a swap operation available, I don't think there is a way to collect all the operators on the right:</p> <pre><code>a b c d + a b S...
<p>It is enough to show one that can't in order to tell you the answer to this.</p> <p>If you can't reorder the stack contents, then the expression (2+4)*(7+8) can't be rearranged.</p> <p>2 4 + 7 8 + *</p> <p>No matter how you reorder this, you'll end up with something that needs to be summed before you go on.</p> ...
6,008
<p>I thought as a fun project to make my own 3D printer out of a normal printer parts + some parts out of old CD-ROM drives that are lying around. The printer of my choice is an HP PSC 1315 one. <a href="https://i.stack.imgur.com/aNHM2m.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aNHM2m.jpg" alt=...
<h1>No, Printers are not good sources</h1> <p>Common printers contain at best one stepper motor <strong>in the scanner</strong>, and it is usually too weak for use as an X or Y stepper, but for a very slow printer they might be useable, especially if you could source 2 or 4 of the same type.</p> <p>The main motors in t...
<p>You need not a "modern" inkjet printer, but an antique flatbed 2-D printer. These were the state-of-the art in the 1980s, and drove the print head (a felt pen clamped into a mount) in X &amp; Y over the printable area.<br> You'd still need to hang the whole thing on some Z-drive, of course. </p> <p>See info at the...
1,108
<p>There are <a href="http://java-source.net/open-source/web-frameworks" rel="noreferrer">zillions</a> of Java web application frameworks.</p> <p>95% were designed before the modern era of AJAX/DHTML-based development, and that means these new methods are grafted on rather than designed in.</p> <p>Has any framework b...
<p>If you're starting from scratch. I'd have to say <a href="http://code.google.com/webtoolkit/" rel="noreferrer">Google Web Toolkit</a>. I have to say it is incredibly powerful. You get keep using most of your Java tools. Plus, you don't have to duplicate code that exists on both the server and the client, it just...
<p>GWT is one of the best AJAX framework that I used ever. Most important thing about this framework is that its maintained by Google. And Everyone know "Who is Google ?"</p> <pre><code>GWT is used by many products at Google, including Google AdWords and Google Wallet. It's open source, completely free, and used by th...
9,944
<p>In my work environment, Visual Studio currently crashes every time I start our main project unless I delete the .suo (solution options) and .ncb (C++ Intellisense symbols) files.</p> <p>Obviously, I've found a workaround. Is there a more permanent solution than this?</p>
<p>Have you installed Visual Studio 2005 Service Pack 1?</p>
<p>The accepted answer wasn't quite correct, but it pointed in the right direction.</p> <p>There is a hotfix for VS2k5 SP1 described in KB article 947315 that addresses this issue.</p>
7,356
<p>I've worked with T-SQL for years but I've just moved to an organisation that is going to require writing some Oracle stuff, probably just simple CRUD operations at least until I find my feet. I'm not going to be migrating databases from one to the other simply interacting with existing Oracle databases from an Appli...
<p>The language difference listed so far are <strong>trivial</strong> compared to the logical differences. Anyone can lookup NVL. What's hard to lookup is </p> <p><strong>DDL</strong></p> <p>In SQL server you manipulate your schema, anywhere, anytime, with little or no fuss.</p> <p>In Oracle, we don't like DDL in st...
<p>If you're doing a one-off conversion, rather than trying to support two versions, you must look at <a href="http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html" rel="nofollow noreferrer">Oracle Migration Workbench</a>. This tool works with Oracle's SQLDeveloper (which you really should h...
6,316
<p>Is there a security limit to the number of Ajax <a href="http://en.wikipedia.org/wiki/XMLHttpRequest" rel="nofollow noreferrer">XMLHttpRequest</a> objects you can create on a single page? If so, does this vary from one browser to another?</p>
<p>I don't think so, but there's a limit of two simultaneous HTTP connections per domain per client (you can override this in Firefox, but practically no one does so).</p>
<p>Yes, as Kevin says, HTTP/1.1 specifications say "A single-user client should not maintain more than 2 connections with any server or proxy."</p>
7,783
<p>I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008) by downloading and installing the client administration tools and Visual Studio 2008 on my laptop.</p> <p>The installation footprint for Oracle Client tools was over 200Mb, and quite long winded.</p> <p>Does anyone know what the...
<p>You need an Oracle Client to connect to an Oracle database. The easiest way is to install the <a href="http://www.oracle.com/technology/software/tech/windows/odpnet/index.html" rel="noreferrer">Oracle Data Access Components</a>.</p> <p>To minimize the footprint, I suggest the following :</p> <ul> <li>Use the Micro...
<p>ODAC xcopy will get you away with about 45MB. <a href="http://www.oracle.com/technology/software/tech/windows/odpnet/index.html" rel="nofollow noreferrer">http://www.oracle.com/technology/software/tech/windows/odpnet/index.html</a></p>
9,604
<p>Virtual memory from a computer size perspective is </p> <blockquote> <p>[a way to make the program] think it has a large range of contiguous addresses; but in reality the parts it is currently using are scattered around RAM, and the inactive parts are saved in a disk file. (<a href="http://en.wikipedia...
<p>It's the total of all private (not shared) bytes allocated by this process, whether currently in physical memory or not.</p> <p>See also <a href="http://shsc.info/WindowsMemoryManagement" rel="noreferrer">An introductory guide to Windows Memory Management</a> or <a href="http://en.wikipedia.org/wiki/Commit_charge" ...
<p>How about a coding horror post to answer this: <a href="http://www.codinghorror.com/blog/archives/000393.html" rel="nofollow noreferrer">http://www.codinghorror.com/blog/archives/000393.html</a></p> <p>"VM Size: How much of the processes' less frequently used memory has been paged to disk."</p>
4,702
<pre><code>1167 ptr = (void*)getcwd(cwd, MAX_PATH_LENGTH-1); (gdb) n 1168 if (!ptr) { (gdb) print ptr $1 = 0xbff2d96c "/media/MMC-SD/partition1/aaaaaaaaaaa" (gdb) print &amp;cwd $2 = (char (*)[3500]) 0xbff2d96c (gdb) print strlen(cwd) $3 = 36 (gdb) print "%s",cwd $4 = "/media/MMC-SD/partition1/aaaaaaaaaaa", '...
<p>The reason that <code>cwd</code> is printed differently in <code>gdb</code> is because <code>gdb</code> knows that <code>ptr</code> is a <code>char *</code> (I guess) and that <code>cwd</code> is an array of length <code>3500</code> (as shown in your output). So when printing <code>ptr</code> it prints the pointer v...
<p>What type is cwd? The above code snippet doesn't tell us that. It could be that ptr being a void* is treated differently by gdb.</p>
8,412
<p>I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one.</p> <p>The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference i...
<p>AFAIK, you need to restart IIS for it to get a fresh reference to the updated DLL. Your best bet is to perform the reset at a low traffic time. If you are running multiple servers with load balancing, you can prevent new connections from hitting one server until all connections have been closed. Afterwards, updat...
<p>Since you don't make a reference to application pools, I'm going to assume you are on the old version of IIS. In that case, what you'll need to do is to "touch" all the DLLs in each site that references the DLL. </p> <p>The problem is that the code is already loaded and you need to find a non-intrusive way to r...
4,625
<p>What is the best way to track changes in a database table?</p> <p>Imagine you got an application in which users (in the context of the application not DB users ) are able to change data which are store in some database table. What's the best way to track a history of all changes, so that you can show which user at ...
<p>In general, if your application is structured into layers, have the data access tier call a stored procedure on your database server to write a log of the database changes.</p> <p>In languages that support such a thing <a href="http://en.wikipedia.org/wiki/Aspect-oriented_programming" rel="noreferrer">aspect-orient...
<p>If all changes from php. You may use <a href="https://github.com/moledet/database-change-log" rel="nofollow noreferrer">class</a> to log evry INSERT/UPDATE/DELETE before query. It will be save <strong><em>action</em></strong>, <strong><em>table</em></strong>, <strong><em>column</em></strong>, <strong><em>newValue</e...
5,936
<p>I need the name of the current logged in user in my <strong>Air/Flex</strong> application. The application will only be deployed on Windows machines. I think I could attain this by regexing the User directory, but am open to other ways.</p>
<p>Also I would try:</p> <pre><code>File.userDirectory.name </code></pre> <p>But I don't have Air installed so I can't really test this...</p>
<p>Update way later: there's actually a built in function to get the current user. I think it's in nativeApplication.</p>
2,376
<p>I have a set of 2D pictures from a CT scan.</p> <p>How can I convert them into a 3D model for 3D printing? An example looks like this:</p> <p><a href="https://i.stack.imgur.com/EV9Q8.jpg" rel="nofollow noreferrer" title="CT-Scan of a mouse&#39;s bones"><img src="https://i.stack.imgur.com/EV9Q8.jpg" alt="CT-Scan of...
<p>Using the terms "convert CT scan to 3D model," I found a number of links of tutorials. One of them is described as free, with registration and appears to be web based. The link, <a href="https://www.embodi3d.com/blogs/entry/345-a-ridiculously-easy-way-to-convert-ct-scans-to-3d-printable-bone-stl-models-for-free-in-m...
<p>Knowing the layer thickness, you can <strong>manually</strong> re-engineer/design the object:</p> <ul> <li>take your CAD or 3D modeling program of choice <ol> <li>import one picture into the XY axis</li> <li>trace the outline on that layer</li> <li>add a construction layer one layer thickness above</li> </ol></li>...
1,164
<p>It seems that when filament throughput is increased (by increasing movement speed or extrusion width/height), printing temperature also has to be increased to compensate, because the filament will have less time to spend in the melting zone. That much seems clear from practical experience. But I have two questions (...
<p>I think I see what you're asking, but I think you may be thinking about it incorrectly. It's really all about heat being added to the system at the same rate that it's leaving. The heat block is there as a heat reservoir from which the filament draws heat for the glass transition. The heat in that reservoir is ma...
<p>I see an answer not a question. It's a balancing act and there is no predefined formula. Trial and error. Keep a spread sheet. I'll dwell on this a bit.. but as someone who did speed sprinting there's really nothing else to be said other than buy an e3d and the volcano upgrade. </p> <p>You will calibrate one at a t...
479
<p>I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display the messages between the user and the recipient. How do I get the control to automatically scroll to the bottom every time I update the DocumentText of the control?</p>
<p>Thanks guys -- I voted you both up but neither would work out for my situation. What I ended up doing was </p> <pre><code>webCtrl.Document.Window.ScrollTo(0, int.MaxValue); </code></pre>
<p>You can keep scroll position on top, and insert new message on top.</p> <p>that don't need scroll to bottom, its look like twitter :)</p> <pre><code>user2: new message ← a new message is insert on top user1: old message </code></pre>
6,858
<p>I am currently architecting a small CRUD applicaton. Their database is a huge mess and will be changing frequently over the course of the next 6 months to a year. What would you recommend for my data layer:</p> <p>1) ORM (if so, which one?)</p> <p>2) Linq2Sql</p> <p>3) Stored Procedures</p> <p>4) Parametrized Qu...
<p>One key thing to be aware of here is that if the database schema is changing frequently, you want to have some level of compile time type safety. I've found this to be a problem with NHibernate because it uses xml mapping files so if you change something in your database schema, you don't know until runtime that the...
<p>You're already happy with stored procs and they might be enough to abstract away the changing schema. If ORMs aren't happy with stored procs then maybe they'd work with Views that you keep current on top of the changing schema.</p>
3,298
<p>After reading <a href="https://stackoverflow.com/questions/28832/java-and-manually-executing-finalize">this question</a>, I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the rea...
<p>The short answer: Java garbage collection is a very finely tuned tool. System.gc() is a sledge-hammer.</p> <p>Java's heap is divided into different generations, each of which is collected using a different strategy. If you attach a profiler to a healthy app, you'll see that it very rarely has to run the most expens...
<p>The GC does a lot of optimization on when to properly finalize things.</p> <p>So unless you're familiar with how the GC actually works and how it tags generations, manually calling finalize or start GC'ing will probably hurt performance than help.</p>
4,860
<p>Can you tell me what is the difference between <strong>abstraction</strong> and <strong>information hiding</strong> in software development?</p> <p>I am confused. Abstraction hides detail implementation and information hiding abstracts whole details of something.</p> <p><strong>Update:</strong> I found a good answ...
<p>Go to the source! Grady Booch says (in Object Oriented Analysis and Design, page 49, second edition):</p> <blockquote> <p>Abstraction and encapsulation are complementary concepts: abstraction focuses on the observable behavior of an object... encapsulation focuses upon the implementation that gives rise to th...
<p>After reading all the above answers one by one I cant stop myself from posting that </p> <blockquote> <p>abstraction involves the facility to define objects that represent abstract "actors" that can perform work, report on and change their state, and "communicate" with other objects in the system.</p> </blockquot...
4,429
<p>Is it possible to select from <code>show tables</code> in MySQL?</p> <pre><code>SELECT * FROM (SHOW TABLES) AS `my_tables` </code></pre> <p>Something along these lines, though the above does not work (on 5.0.51a, at least).</p>
<p>I think you want <code>SELECT * FROM INFORMATION_SCHEMA.TABLES</code></p> <p>See <a href="http://dev.mysql.com/doc/refman/5.0/en/tables-table.html" rel="noreferrer">http://dev.mysql.com/doc/refman/5.0/en/tables-table.html</a></p>
<p>I don't understand why you want to use <code>SELECT * FROM</code> as part of the statement.</p> <p><a href="http://dev.mysql.com/doc/refman/5.0/en/show-tables.html" rel="nofollow noreferrer">12.5.5.30. SHOW TABLES Syntax</a></p>
9,056
<p>I'm writing a resource handling method where I control access to various files, and I'd like to be able to make use of the browser's cache. My question is two-fold:</p> <ol> <li><p>Which are the definitive HTTP headers that I need to check in order to know for sure whether I should send a 304 response, and what am...
<p>Here's how I implemented it. The code has been working for a bit more than a year and with multiple browsers, so I think it's pretty reliable. This is based on <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html" rel="noreferrer">RFC 2616</a> and by observing what and when the various browsers were sen...
<p>regarding cache-control:</p> <p>You shouldn't have to worry about the cache-control when serving out, other than setting it to a reasonable value. It's basically telling the browser and other downstream entities (such as a proxy) the maximum time that should elapse before timing out the cache.</p>
2,647
<p>I just re-ran all basic calibration steps from the Original Prusa i3 MK2 Manual.</p> <p>Now, when doing the first layer calibration, lines that are running in positive X direction are ok, while those running in negative X direction are severely squished.</p> <p><a href="https://i.stack.imgur.com/5zzEl.jpg" rel="no...
<h2>No FDM print at all.</h2> <p>The problem of your design will not be the materials, but a basic property of FDM printing: FDM Printers do create a structure by placing a long string of filament next to itself and ontop of itself, creating tons of boudaries.</p> <p>These boundaries between the layers are the weak poi...
<h2>No FDM print at all.</h2> <p>The problem of your design will not be the materials, but a basic property of FDM printing: FDM Printers do create a structure by placing a long string of filament next to itself and ontop of itself, creating tons of boudaries.</p> <p>These boundaries between the layers are the weak poi...
942
<p>I have a client-server app where the client is on a Windows Mobile 6 device, written in C++ and the server is on full Windows and written in C#. </p> <p>Originally, I only needed it to send messages from the client to the server, with the server only ever sending back an acknowledgement that it received the message...
<p>When I needed to write an application with a client-server model where the clients could leave and enter whenever they want, (I assume that's also the case for your application as you use mobile devices) I made sure that the clients send an <em>online</em> message to the server, indicating they were connected and re...
<p>I'm not clear on whether or not you're wanting to add the asynchronous bits to the server in C# or the client in C++.</p> <p>If you're talking about doing this in C++, desktop Windows platforms can do socket I/O asynchronously through the API's that use overlapped I/O. For sockets, WSASend, WSARecv both allow asyn...
2,364
<p>I'm new to 3D printing, but my printer supports Linear Advance. I heard that it offers improvements in print quality. I used <a href="https://marlinfw.org/tools/lin_advance/k-factor.html" rel="nofollow noreferrer">Marlin Linear Advance Pattern Generator</a> to generate a print with horizontal lines at a variety of k...
<p>As a general answer to evaluate the effectiveness of the K-factor, when the K-factor Calibration Pattern generator output print is inconclusive (probably not in this case), printing a tower at various K-factor values might give you more insight, e.g. like:</p> <p><a href="https://i.stack.imgur.com/G8AWx.png" rel="no...
<p>Go with the sort of tower 0scar suggested and look for corner bulge/rounding. It's a lot more useful than the single-layer test pattern from the Marlin site, which I've found can be misleading.</p> <p>With that said, just looking at your test print, I would go with the lowest K factor that gives acceptable-looking r...
2,094
<p>I have a class that map objects to objects, but unlike dictionary it maps them both ways. I am now trying to implement a custom <code>IEnumerator</code> interface that iterates through the values.</p> <pre><code>public class Mapper&lt;K,T&gt; : IEnumerable&lt;T&gt;, IEnumerator&lt;T&gt; { C5.TreeDictionary&lt;K...
<p>First, don't make your collection object implement IEnumerator&lt;>. This leads to bugs. (Consider the situation where two threads are iterating over the same collection). </p> <p>Implementing an enumerator correctly turns out to be non-trivial, so C# 2.0 added special language support for doing it, based on the...
<p>Use yield return.</p> <p><a href="https://stackoverflow.com/questions/39476/what-is-the-yield-keyword-used-for-in-c#39496">What is the yield keyword used for in C#?</a></p>
7,755
<p>Generally, how bad of a performance hit is storing a file in a database (specifically mssql) as opposed to the file system? I can't come up with a reason outside of application portability that I would want to store my files as varbinaries in SQL Server.</p>
<p>Have a look at this answer:</p> <p><a href="https://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay#3756">Storing Images in DB - Yea or Nay?</a></p> <p>Essentially, the space and performance hit can be quite big, depending on the number of users. Also, keep in mind that Web servers are cheap and y...
<p>Not to be vague or anything but I think the type of 'file' you will be storing is one of the biggest determining factors. If you essentially talking about a large text field which could be stored as file my preference would be for db storage. </p>
3,042
<p>I'm looking for the best way to log errors in an ASP.NET application. I want to be able to receive emails when errors occurs in my application, with detailed information about the Exception and the current Request.</p> <p>In my company we used to have our own ErrorMailer, catching everything in the Global.asax Appl...
<p>I use <a href="http://code.google.com/p/elmah/" rel="noreferrer">elmah</a>. It has some really nice features and here is a <a href="http://www.codeproject.com/KB/aspnet/ELMAHDemo.aspx" rel="noreferrer">CodeProject</a> article on it. I think the StackOverflow team uses elmah also!</p>
<p>We use a custom homegrown logging util we wrote. It requires you to implement logging on your own everywhere you need it. But, it also allows you to capture a lot more than just the exception.</p> <p>For example our code would look like this:</p> <pre><code>Try Dim p as New Person() p.Name = "Joe" p.Age = ...
3,306
<p>I have a Wanhao Duplicator i3.</p> <p>I have done many excellent prints with this printer, and have first hand experience that it can do a pretty much flawless print.</p> <p>But... Recently, I am experiencing weird results. My "flow" seems uneven. When laying down the first layer of the raft, I can see it looks li...
<p>Write a few pieces of gcode to do this. Place it on an SD-card (I assume you have a reader) and select the file you want to execute.</p> <p>Home all:</p> <pre><code>G28 G1 Z0 </code></pre> <p>Do you really want to home it directly? I would say you want to take it down slowly and adjusting end-stops incrementally....
<p>The way I manually level my bed is by connecting a computer to the printer via USB. As far as I am aware, if you have a touchscreen this should be available on the printer options as well for marlin.</p> <p>But if you connect a computer, simply run something like pronterface or any other manual control gui and:</p>...
533
<p>I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of coding. How exactly does this affect the compilation?</p> <blockquote> <p>Is #define the only thing that determines if the code is included when compiled? I...
<p>In C# <code>#define</code> macros, like some of Bernard's examples, are not allowed. The only common use of <code>#define</code>/<code>#if</code>s in C# is for adding optional debug only code. For example:</p> <pre><code> static void Main(string[] args) { #if DEBUG //this only compiles if...
<p>@Ed: When using C++, there is rarely any benefit for using #define over inline functions when creating macros. The idea of "greater speed" is a misconception. With inline functions you get the same speed, but you also get type safey, and no side-effects of preprocessor "pasting" due to the fact that parameters are e...
3,658
<p>A researcher has created a small simulation in MATLAB and we want to make it accessible to others. My plan is to take the simulation, clean up a few things and turn it into a set of functions. Then I plan to compile it into a C library and use <a href="https://en.wikipedia.org/wiki/SWIG" rel="nofollow noreferrer">SW...
<p>I remember that I was able to wrap a MATLAB simulation into a <a href="https://en.wikipedia.org/wiki/Dynamic-link_library" rel="nofollow noreferrer">DLL file</a> and then call it from a <a href="https://en.wikipedia.org/wiki/Embarcadero_Delphi" rel="nofollow noreferrer">Delphi</a> application. It worked really well....
<p>Perhaps try <a href="http://python.net/crew/theller/ctypes/" rel="nofollow noreferrer">ctypes </a>instead of SWIG. If it has been included as a part of Python 2.5, then it must be good :-)</p>
2,712
<p>I'm receiving a recovery feed from an exchange for recovering data missed from their primary feed.</p> <p>The exchange <strong>strongly</strong> recommends listening to the recovery feed only when data is needed, and leaving the multicast once I have recovered the data I need.</p> <p>My question is, if I am using ...
<p>It's likely <strong>not</strong> harming your application so much as harming your machine - since the nic is still configured into the multicast group, it's still listening to those messages and passing them up, before your software ignores them and they get discarded. That's a lot of extra work that your network st...
<p>An addition to <a href="https://stackoverflow.com/users/6306/muz">muz's</a> comment...</p> <p>It's unlikely that this will make any difference to your system, but it's worth being aware that there is an overhead associated with maintaining a multicast membership (assuming that you're using IGMP - which is probably ...
9,888
<p>Is there some means of querying the system tables to establish which tables are using what locking schemes? I took a look at the columns in <strong>sysobjects</strong> but nothing jumped out.</p>
<p>aargh, just being an idiot:</p> <pre><code>SELECT name, lockscheme(name) FROM sysobjects WHERE type="U" ORDER BY name </code></pre>
<p>take a look at the syslockinfo and syslocks system tables you can also run the sp_lock proc</p>
2,948
<p>I manage four 3D Printers for my college's robotics team. They are used pretty constantly throughout the school year; that is, they are used more as manufacturing printers than hobbyist printers. The environment they are in is less than ideal: The outdoor climate is typically cold and has low humidity, and the room ...
<p>Static electricity is detrimental to nearly all electronic devices. A stray zap from touching the frame of your printer could migrate to the controller boards, terminating normal operation. If you wish to protect the printers from static electricity, connect the frame to a confirmed electrical ground. The power supp...
<p>Static electricity does not affect the printing process but it can destroy or disrupt the electronics of the system. The dry air environment is really good for the printing process because keeping moisture out of the filament is one of the most important concerns for a good quality print. Dust is the other. If you c...
1,858
<p>As per my understanding stateless session beans are used to code the business logic. They can not store data in their instance variables because their instance is shared by multiple requests. So they seem to be more like Singleton classes. However the difference is contain creates (or reuses from pool) the separate ...
<p>The SLSBs are single threaded because of the TX Context, Principal is associated with a bean instance when it is called. These beans are pooled and unless the max pool size is reached are processed in separate threads ( Vendor dependent).</p> <p>If SLSBs were designed thread safe every call would have looked like a...
<p>The primary reason stateless session beans are single threaded is to make them highly scalable for the container. The container can make a lot of simplifying assumptions about the runtime environment. A second reason is to make life easier for the developer because the developer doesn't have to worry about any sync...
4,948
<p>We encountered a problem with using Subversion on Windows. A developer committed a file <code>foo.Data.sql</code> and later another developer committed a file called <code>foo.data.sql</code>. Naturally, this caused a problem on Windows clients (all clients are Windows in our environments) because files are case sen...
<p>There is definitely a hook script that checks case sensitivity - Sourceforge have it as one of their options. A quick google turns up: <a href="http://www.subversionary.org/howto/using-check-case-insensitive-py-on-windows" rel="nofollow noreferrer">http://www.subversionary.org/howto/using-check-case-insensitive-py-o...
<p>1; It is possible, because the two files came from two developers. One is renaming or creating the file with different cases and during commit does not realise that it will be an add not a commit changes.</p> <p>2; Check <a href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-rename.html#tsvn-dug-renam...
7,989
<p>I'm on a little quest of merging the structure of two MySql databases. Is there a tool for this with the might of Red-Gate's SQL Compare? Are there any free alternatives?</p>
<p>although i dont have any experience with it, i hear that navicat would be the tool to use:</p> <p><a href="http://mysql.navicat.com/" rel="nofollow noreferrer">https://www.navicat.com/en/products/navicat-for-mysql</a></p> <p>also toad for mysql i hear isnt bad:</p> <p><a href="http://www.quest.com/toad-for-mysql/...
<p>I've used Navicat for more than 3 years. It provides all the features that I need and save me tons of time for managing and developing MySQL and Oracle.</p> <p>You can find a visual tutorial about Navicat's data/ structure synchronization at <a href="http://support.navicat.com/visual_tutorial/data_sync.html" rel="n...
7,582
<p>I'm getting into more of a TDD workflow, and have a mix of MVC and asp.net Web Forms apps.</p> <p>MOQ is recommended for MVC.</p> <p>I've used Rhino for Web Forms.</p> <p>Does anyone have a best practice for having 1 framework mock for both?</p>
<p>Rhino's latest release includes much of the sweet sweet 3.5 love that MoQ has. I'm a fan of MoQ, so that's what I'm using. But I also have Rhino, in case it does something that MoQ doesn't do.</p> <p>TL;DR: MoQ it baby.</p>
<p>I would just go ahead and use my favourite framework for both. I don't think there's any reason that I would choose one framework for web forms and another for MVC. A far bigger problem is how I would unit test my web forms pages at all, since it's notoriously hard to seperate the page from the rest of the HttpReque...
3,137