instruction
stringlengths
27
22.5k
chosen
stringlengths
27
28.2k
rejected
stringlengths
19
24.9k
__index_level_0__
int64
0
10k
<p>Ultimaker Cura offers a platform support type of “<em>touching buildplate</em>” which enables the printer to only make a raft for parts of the object that should be touching the build plate. It also offers “<em>everywhere</em>” for any object that might be hanging over the build plate.</p> <p>I have a need to only ...
<blockquote> <p>Is there a software that will enable this?</p> </blockquote> <p>Yes, as of Ultimaker Cura 3.3 Beta, Ultimaker Cura allows you to specify an area which will not be considered for adding supports. In your case you could define everything above 4&nbsp;mm to be excluded from building support structures. ...
<blockquote> <p>Is there a software that will enable this?</p> </blockquote> <p>I don't own a copy of it, but from talking with other 3D printing enthusiasts, I know <a href="https://www.simplify3d.com/" rel="nofollow noreferrer">simplify3d</a> is the slicer out there with the most granular control over support stru...
866
<p>After working for a while developing games, I've been exposed to both variable frame rates (where you work out how much time has passed since the last tick and update actor movement accordingly) and fixed frame rates (where you work out how much time has passed and choose either to tick a fixed amount of time or sle...
<p>It seems that most 3D developers prefer variable FPS: the Quake, Doom and Unreal engines both scale up and down based on system performance.</p> <ul> <li>At the very least you have to compensate for too fast frame rates (unlike 80's games running in the 90's, way too fast)</li> <li>Your main loop should be paramete...
<p>My experience is fairly limited to somewhat simple games (developed with SDL and C++) but I have found that it is quite easy just to implement a static frame rate. Are you working with 2d or 3d games? I would assume that more complex 3d environments would benefit more from a variable frame rate and that the diffic...
7,661
<p>I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the <code>@pa...
<p>It sounds like you'll need to treat the SQL Statement as an expression. For example:</p> <pre><code>="Select col1, col2 from table 1 Where col3 = " &amp; Parameters!Param1.Value </code></pre> <p>If the where clause is a string you would need to do the following:</p> <pre><code>="Select col1, col2 from table 1 Wh...
<p>I am a bit confused about this question, if you are looking for simple parameter usage then the notation is :<code>*paramName*</code> , however if you want to structurally change the <code>WHERE</code> clause (as you might in sql+ using ?) then you should really be using custom code within the report to define a fun...
3,068
<p><strong>Please Note:</strong> This question is <em>not</em> about the design. It's about deciding print orientation <em>after the design</em>. </p> <p>I have a small, but complex piece which I need to print. Here are two images of different orientation for you:</p> <p><a href="https://i.stack.imgur.com/jpi84.jpg" ...
<p>(Love the question and here is my 2 cents).</p> <p>Firstly, you want to minimize supports. Even if you have dissolvable supports, you would still want to minimize the usage.</p> <p>For Example:</p> <p><a href="https://i.stack.imgur.com/LoQCE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LoQCE...
<p>First of all, if it were me, I'd split this into two parts at the "obvious" place (where one protrudes from a large flat surface of the other) and connect them after printing, with a push fit and glue (or solvent welding if it works for your material), or holes for threaded fasteners.</p> <p>With that said, if you ...
1,418
<p>I'm trying to do a simple test php script for sessions. Basically it increments a counter (stored in <code>$_SESSION</code>) every time you refresh that page. That works, but I'm trying to have a link to destroy the session which reloads the page with the <code>?destroy=1</code> parameter. I've tried a couple of if ...
<p>I think you put</p> <pre><code>$_POST['destroy'] </code></pre> <p>Instead of</p> <pre><code>$_GET['destroy'] </code></pre> <p>You need to use a form if you'd like to use a $_POST variable. $_GET variables are stored in the URL.</p>
<blockquote> <p>I know I'm doing something silly (I'm a php newbie) but I can't seem to find what it is...</p> </blockquote> <p>that is how you are going to learn a lot ;) enjoy it ...</p>
3,750
<p>I'm debugging a production application that has a rash of empty catch blocks <em>sigh</em>:</p> <pre><code>try {*SOME CODE*} catch{} </code></pre> <p>Is there a way of seeing what the exception is when the debugger hits the catch in the IDE?</p>
<p>In VS, if you look in the Locals area of your IDE while inside the catch block, you will have something to the effect of $EXCEPTION which will have all of the information for the exception that was just caught.</p>
<p>Can't you just add an Exception at that point and inspect it?</p>
6,097
<p>Let's say I have a complex .NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object - so I write a Clone() method, and implement it with a simple BinaryFormatter serialize/deserialize - or perhaps I do the deep clone using some other technique which i...
<p>You method of testing will depend on the type of solution you come up with. If you write some custom cloning code and have to manually implement that in each cloneable type then you should really test the cloning of each one of those types. Alternatively, if you decide to go a more generic route (where the aforeme...
<p>Here is a sample of how I implemented this a while back, although this will need to be tailored to the scenario. In this case we had a nasty object chain that could easily change and the clone was used as a very critical prototype implementation and so I had to patch (hack) this test together.</p> <pre><code>public...
3,216
<p>Does anyone know of a good way to display hierarchical data with columns?</p> <p>It has to be virtualizing, as it must be able to handle several million records. </p> <p>It should also be multi-select, most treeview controls are not. </p> <p>Winforms preferred, but will ElementHost WPF if necessary.</p>
<p>I'm not quite clear what you mean about hierarchical data with columns, can you clarify? One possibility is the new WPF DataGrid. Depending on the functionality you're looking for it <em>may</em> be what you're looking for.</p> <p>The bits for datagrid are available on codeplex: <a href="http://www.codeplex.com/wpf...
<p>Take a look at the Infragistics UltraWinGrid, here's a video that demos some features: <a href="http://www.infragistics.com/howto/wingrid.aspx" rel="nofollow noreferrer">http://www.infragistics.com/howto/wingrid.aspx</a></p>
9,246
<p>I'm looking to have windows recognize that certain folders are associated to my application - maybe by naming the folder 'folder.myExt'.</p> <p>Can this be done via the registry?</p> <p>A bit more info<br> - This is for a x-platform app ( that's why I suggested the folder with an extension - mac can handle that ) ...
<p>Folders in Windows aren't subject to the name.extension rules at all, there's only 1 entry in the registry's file type handling for "folder" types. (If you try to change it you're going to have very, very rough times ahead)</p> <p>The only simple way to get the effect you're after would be to do what OpenOffice, MS...
<p>You can have an "extension" on your folder, but as far as I know, windows just treats it all as the folder name and opens the folder like normal when you click on it.</p> <p>The few times I messed with opening a .app on my windows system, it acted like it was a normal folder.</p>
9,353
<p>I have a Creatorbot 3D printer made by 3D PrinterWorks. Their website appears to be down, as well as their Facebook page. To me it appears they are no longer around.</p> <p>I've installed Slic3r as 3D PrinterWorks has recommended in the handbook but cannot download the settings for this from the 3D PrinterWorks we...
<p>Looks like 3dprinterworks.net went down sometime after March 2018 and 3dprinterworks.com went down in January 2019. Luckily the Wayback Machine still has the <a href="https://web.archive.org/web/20161209084908/https://www.3dprinterworks.com/products/creatorbot-3d-pro-series-ii" rel="nofollow noreferrer">machine's sp...
<p>The configuration files were on a flash drive that came with the printer. That being said, here is the file that was located on my flash drive for Slic3r (denoted as deprecated on March 1, 2017).</p> <p>This is for a Creatorbot Pro II.</p> <p><a href="https://pastebin.com/j1dkSt8f" rel="nofollow noreferrer">https...
1,209
<p>I have a Simulink xPC target application that has blocks with discrete states at several different sample rates and some sections using continuous states. My intention on keeping the continuous states is for better numerical integration. </p> <p>What creates the problem: One block is reading a device at a very fast...
<p>You are thinking about continuous solvers in the wrong way - continuous doesn't only mean that it's run as fast as possible - it uses a fundamentally different algorithm to solve the equations than discrete. Due to this, they must be run at least as fast as the discrete solvers.</p> <p>From <a href="http://www.ece...
<p>My take on this is that it cannot be done. One way to approach this is to replace the continuous states by discrete ones (perhaps at an intermediate rate, say 100 Hz), and cross my fingers that the loss of precision is bearable.</p> <p>Maybe it's possible to isolate a block and run it separately at a faster rate so...
6,482
<p>I understand how slicer programs create sets of closed-loop polygons to print on a layer-by-layer basis. For a given closed loop polygon which needs to be printed, the tool path generator will know the coordinates and how those coordinates are connected to each other, such that traversing a set of segments in that ...
<p>While <a href="https://3dprinting.stackexchange.com/a/7972/8884">this</a> answer makes a valid attempt at answering the question, it is based on personal experience.</p> <p>I went to the literature and directly to the source code in Cura to find the answer. In the academic article "<a href="https://link.springer.c...
<h2>Math</h2> <p>In math, there is a way how a path is to be followed, and that is usually counterclockwise:</p> <p>Assuming a perimeter path of a circle with <span class="math-container">$r=1$</span> around <span class="math-container">$(2,2)$</span>, then the path can be defined as <span class="math-container">$f(p)...
1,180
<p>What should I take care of to replace the nozzle of the hotend assembly the right way?</p> <p>What kind of data, precautions, tools, steps, and verification are important for replacing the nozzle?</p> <p>The procedure seems straightforward but tutorials differ greatly and seem often incomplete. Online videos are gre...
<p>It's because the bed heats up. Since the bed can heat up to the point that locktite or nylon can soften, using those products to keep the screws from turning will have exactly the opposite effect.</p>
<p>Does your bed already have washers on the screws? The neopreme (red) washer under the screw head (in picture). This is the German Reprap X400 design and is worth trying.</p> <p><a href="https://i.stack.imgur.com/jucy3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jucy3.jpg" alt="enter image de...
1,853
<p>When filament is too short for the extruder to push will there be a stop in printing on the Ender 3, meaning that I should replace the filament when the end of the filament is near the extruder?</p>
<p>The extruder can't push anymore when the filament is past the extruder gear. If your filament has run out to that point, the print will <em>not</em> halt but print without a filament, meaning that the print will fail. You need to pause the print in time and then put fresh filament into the printer.</p> <p>If the en...
<p>The extruder can't push anymore when the filament is past the extruder gear. If your filament has run out to that point, the print will <em>not</em> halt but print without a filament, meaning that the print will fail. You need to pause the print in time and then put fresh filament into the printer.</p> <p>If the en...
1,271
<p>Our automated build machine needs to archive the version numbers of the OS plus various tools used during each build. (In case we ever need to replicate exactly the same build later on, perhaps when the machine is long dead.)</p> <p>I see the command "msinfo32.exe" can be used to dump a whole load of system versio...
<p><strong>EMAIL ADDRESS</strong></p> <p>Rational</p> <ol> <li>Users don't change emails very often</li> <li>Removes the step of asking for username and email address, which you'll need anyway</li> <li>Users don't often forget their email address (see number one)</li> <li>Email will be unique unless the user already ...
<p>OpenID seems to be a very good alternative to writing your own user management/authentication piece. I'm seeing more and more sites using OpenID these days, so the barrier to entry for your users should be relatively low.</p>
2,790
<p>What is the content type for MHT files?</p>
<p>Microsoft, who co-authored the spec for MHT, seem to think that it should be '<code>message/rfc822</code>' on <a href="http://support.microsoft.com/kb/937912" rel="nofollow noreferrer">this support page</a>.</p> <p>No specific MIME type seems to be given in the spec though: <a href="https://www.rfc-editor.org/rfc/rf...
<p>application/octet-stream</p> <p>You can stream the contents of a .eml file to a browser with this content type and .mht as the extension, and the email will be rendered similar to the way it is rendered in an email client.</p>
5,117
<p>While browsing with Chrome, I noticed that it responds extremely fast (in comparison with IE and Firefox on my laptop) in terms of rendering pages, including JavaScript heavy sites like gmail.</p> <p>This is what googlebook on Chrome has to say </p> <ol> <li>tabs are hosted in process rather than thread.</li> <li>...
<p>Chrome's approach is difficult to write, and requires forethought from the developers. IE and Firefox are both attempting to move to a process-per-tab model, but due to backwards compatibility are not able to transition quickly. Chrome, being an entirely new browser build on a clean rendering engine (WebKit), was ea...
<p>You have to keep in mind that Microsoft primary business is Rich environement (GUI) Application. Web tool is a threat to them as it is platform independant (not promoting they main product).</p> <p>Of course the IE team probably had figured something like that but... Microsoft definetly won't invest a lot of money ...
6,452
<p>For a .NET component that will be used in both web applications and rich client applications, there seem to be two obvious options for caching: System.Web.Caching or the Ent. Lib. Caching Block.</p> <ul> <li>What do you use?</li> <li>Why?</li> </ul> <h2><a href="http://msdn.microsoft.com/en-us/library/system.web.c...
<p>These are the items that I consider for the topic of Caching:</p> <p>MemCached Win32 Velocity .net Cache Enterprise Library Caching Application Block</p> <p><strong>MemCached Win32:</strong> Up until recently I have used MemCached Win32. This is a akin to a web farm (many servers serving the same content for high...
<p>@Davide Vosti</p> <p>"If they put it in the web namespace, I think's it's for a good reason." Does that same logic apply to the Concurrency and Coordination Runtime (CCR) in the robotic studio? no? didn't think so.</p>
4,190
<p>I am encountering a problem with this ID3 printer using ABS -- at some point during the print the print head displaces on the y-axis by 2-3 centimeters. I cannot pinpoint how or why it is doing this. It has displaced in the positive Y direction and in the negative Y direction on separate runs of the same piece (whic...
<p>This has happened to me in the past and here are a few things that I determined could have been the cause:</p> <ul> <li>Limit Switch triggered. My coworker was able to repeat the issue by manually triggering a limit switch during the print. Somehow, this seemed to cause the relative axis to shift on his MakerBot Re...
<p>In my case the solution was to use <a href="https://en.wikipedia.org/wiki/Slic3r" rel="nofollow noreferrer">Slic3r</a> instead of <a href="https://en.wikipedia.org/wiki/Ultimaker#History" rel="nofollow noreferrer">Cura</a>. Cura has some issues.</p>
239
<p>I'm working on a module for a CMS. This module is distributed as a class library DLL.</p> <p>I have several utility libraries I'd like to use in this module. Is there anyway I can link these libraries statically so I won't have to distribute several DLL's (thereby distributing my utility libraries separately)?</p> ...
<p>You can merge your many DLLs with ILMERGE:</p> <p><a href="http://research.microsoft.com/~mbarnett/ILMerge.aspx" rel="noreferrer">http://research.microsoft.com/~mbarnett/ILMerge.aspx</a></p> <p>Haven't tried it myself. Hope it helps.</p> <hr> <p>Download here:<br /> <a href="http://www.microsoft.com/downloads/de...
<p>The short answer for this is no! You can not link in a dll during compilation. I don't know if there is some subtle way to do this, but you would probably have to distribute the dlls along with your cms. The best way to do this is to make some kind of re-distributable.</p>
6,019
<p>What fan speed should I use with PLA? Do I need to manually set the fan speed in ‘Control’?</p> <p>Also, on the filament cartridge Bed Temp is listed: <em>&quot;No heat/60-80 °C&quot;</em>. Does this mean heating the bed is optional?</p>
<p>Most commercial blow-molded fuel tanks for model airplane fuel (methanol or ethanol, nitromethane or nitroethane, and some combination of castor, mineral, or synthetic lubricating oil) are made from HDPE. This material isn't commonly seen as filament, in my limited experience, but it ought to be possible to arrive ...
<p>As a supplement to the answer (doesn't fit well in the comments). This site <a href="https://www.filamentive.com/chemical-resistance-of-3d-printing-filament/" rel="nofollow noreferrer">https://www.filamentive.com/chemical-resistance-of-3d-printing-filament/</a> lists PETG has have a very high restance to alcohol, a...
1,949
<p>What are some good steps to follow for a smooth migration from PHP4 to PHP5. What are some types of code that are likely to break?</p>
<p>I also once worked on an app which used PHP4's XML support quite heavily, and would have required quite a bit of work to move to PHP5.</p> <p>One of the other significant changes I was looking at at the time was the change of the default handling of function parameters. In PHP4 if I remember, they were pass-by-copy...
<p>We had an app that relied heavily on the PHP 4 XML DOM functions and it required a lot of retooling to change over PHP 5.</p> <p>Beyond that most changes were improvements to things like error handling (to take advantage of exceptions) and PHP Classes.</p>
2,830
<p>Following on from my <a href="https://stackoverflow.com/questions/19454/enforce-attribute-decoration-of-classesmethods">previous question</a> I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!).</p> <p>The problem I have is that I have a collectio...
<h2>Problem Solved!</h2> <p>OK, so I finally got there (admittedly with a <strong>lot</strong> of help from <a href="http://www.codeproject.com/KB/XML/xmlserializerforunknown.aspx" rel="noreferrer">here</a>!).</p> <p>So summarise:</p> <h3>Goals:</h3> <ul> <li>I didn't want to go down the <em>XmlInclude</em> route due t...
<p>I've done things similar to this. What I normally do is make sure all the XML serialization attributes are on the concrete class, and just have the properties on that class call through to the base classes (where required) to retrieve information that will be de/serialized when the serializer calls on those properti...
4,044
<p>I have two machines in two different domains. On both I have VS 2005 installed. I want remote debug between them. Without authentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine.</p> <p>When I try to attach with debugger I get message "The tru...
<p>Gregg Miskely has a <a href="http://blogs.msdn.com/greggm/archive/2004/10/04/237519.aspx" rel="noreferrer">blog post</a> on this. You might get it to work if both local accounts have the same user name and password. You might also try dropping your good box from it's domain so that you are going from a workgroup t...
<p>I seem to remember that I have sometimes found it useful to use RunAs when you run msvcmon (or whatever it's called this week - the remote debugging stub anyway), to force it to start as the user which you have set up to be the same on both machines. </p> <p>I would guess that on the machine you're running VS on, y...
4,936
<p>We try to use Java and UTF-8 on Windows. The application writes logs on the console, and we would like to use UTF-8 for the logs as our application has internationalized logs.</p> <p>It is possible to configure the JVM so it generates UTF-8, using <code>-Dfile.encoding=UTF-8</code> as arguments to the JVM. It works...
<p>Try <code>chcp 65001 &amp;&amp; start.bat</code></p> <p>The <code>chcp</code> command changes the code page, and 65001 is the Win32 code page identifier for UTF-8 under Windows 7 and up. A code page, or character encoding, specifies how to convert a Unicode code point to a sequence of bytes or back again.</p>
<p>Have you tried <a href="http://en.wikipedia.org/wiki/PowerShell" rel="nofollow noreferrer">PowerShell</a> rather than old cmd.exe.</p>
7,861
<p>What would be a very fast way to determine if your connectionstring lets you connect to a database?</p> <p>Normally a connection attempt keeps the user waiting a long time before notifying the attempt was futile anyway.</p>
<p>You haven't mentioned what database you are connecting to, however. In <a href="http://en.wikipedia.org/wiki/Microsoft_SQL_Server#SQL_Server_2005" rel="nofollow noreferrer">SQL Server 2005</a>, from .NET, you can specify a connection timeout in your connection string like so:</p> <pre><code>server=&lt;server&gt;;da...
<p>Shorten the timeout on the connection string and execute something trivial.</p> <p>The wait should be about the same as the timeout.</p> <p>You would still need a second or two though.</p>
3,199
<p>Ever since moving to Vista some time ago on my development machine, connecting to SQL Servers in our DMZ active directory domain from client tools like SSMS has not worked like it used to. In XP, as long as I had authenticated in some way on the server (for example directing Explorer to \server.dmzdomain\c$ and ent...
<p>"Login Failed for user ' ', the user is not associated with a trusted SQL Server connection".</p> <p>In this scenario, client may make tcp connetion, plus, running under local admin or non-admin machine account, no matter SPN is registered or not, the client credential is obviously not recognized by SQL Server.</p>...
<p>Have you tried running SSMS in elevated mode, and do you have the latest SP installed on the client?</p>
4,252
<p>I have thus far avoided the nightmare that is testing multi-threaded code since it just seems like too much of a minefield. I'd like to ask how people have gone about testing code that relies on threads for successful execution, or just how people have gone about testing those kinds of issues that only show up when...
<p>Look, there's no easy way to do this. I'm working on a project that is inherently multithreaded. Events come in from the operating system and I have to process them concurrently.</p> <p>The simplest way to deal with testing complex, multithreaded application code is this: If it's too complex to test, you're doing...
<p>(if possible) don't use threads, use actors / active objects. Easy to test.</p>
3,326
<p>I have a new Tevo Tornado, which I have completed two good prints with, a 20x20 test cube from the supplied SD and the spool holder also from the SD. I say this to note that the printer was capable of producing a good print.</p> <p>Print 3 was a design I created in Fusion and it printed badly, very disappointing ho...
<p>The "springs" connected to the stepper motors aren't a problem. They are special shaft couplers which allow some relief if the motor mounts are not strictly perpendicular to the lead screws. They are very rotationally stiff and allow just a little bit of misalignment between the shafts.</p> <p>The first two print...
<p>What it may useful to improve your prints, are the following elements, according to my personal experience with the Tevo Tornado: 1) level the bed when it's warm. 2) print a cylinder that should measure 100 mm, afterwards measure it with a caliper: regulate the steps per mm according to the difference (many guides ...
974
<p>I started trying to play with Mono, mostly for fun at the moment. I first tried to use the Visual Studio plugin that will convert a csproj into a makefile, but there seemed to be no version available for Visual Studio 2005. I also read about the MonoDevelop IDE, which sounded nice. Unfortunately, there's no pre-fab...
<p>I'd recommend getting VMWare Player and using the free Mono development platform image that is provided on the website.</p> <p><a href="http://www.go-mono.com/mono-downloads/download.html" rel="nofollow noreferrer">Download Mono</a></p> <p>Setup time for this will be minimal, and it will also allow you to get your...
<p>I liked the idea of trying to use MonoDevelop mostly just to make sure my stuff would work against the Mono runtimes. I guess it would also be possible to get crazy with msbuild and write some custom targets that tried to build against Mono, but that's basically emulating the now-defunct plug-in's functionality whi...
2,492
<p>There are three places where menus show up in the new MFC functionality (Feature Pack):</p> <ul> <li>In menu bars (CMFCMenuBar)</li> <li>In popup menus (CMFCPopupMenu)</li> <li>In the 'dropdown menu' version of CMFCButton</li> </ul> <p>I want to put icons (high-color and with transparancy) in the menus in all of t...
<p>This is how I got it to work:</p> <h3>First</h3> <p>, as the others said, create an invisible toolbar next to your main toolbar (I'm using the usual names based on AppWizard's names):</p> <pre><code>MainFrm.h: class CMainFrame { //... CMFCToolBar m_wndToolBar; CMFCToolBar m_wndInvisibleToolBar; ...
<p>One thing that can catch a person by surprise is that for customizable (ie, non-locked) toolbars, the first toolbar you make, the framework splits up and turns into some sort of palette bitmap of all icons in the program. If you try to add more toolbars later (or different toolbars) that have bitmaps (or pngs) with...
9,575
<p>How can I generate UML diagrams (especially sequence diagrams) from existing Java code?</p>
<h1><a href="http://www.objectaid.com/home" rel="noreferrer">ObjectAid UML Explorer</a></h1> <p>Is what I used. It is easily <strong><a href="https://www.objectaid.com/install-objectaid" rel="noreferrer">installed</a></strong> from the repository:</p> <pre><code>Name: ObjectAid UML Explorer Location: http://www.o...
<p>I suggest PlantUML. this tools is very usefull and easy to use. PlantUML have a plugin for Netbeans that you can create UML diagram from your java code.</p> <p>you can install PlantUML plugin in the netbeans by this method:</p> <p>Netbeans Menu -> Tools -> Plugin</p> <p>Now select Available Plugins and then find ...
7,500
<p>I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration. </p> <p>As far as I know, there is no support for discovery in remoting. I am prepared to implement a UDP solution where the clients...
<p>I've looked at both SSDP and UPnP for this type of functionality, but I'd recommend going with a custom UDP <a href="http://en.wikipedia.org/wiki/Multicast" rel="nofollow noreferrer">multicast</a> solution. Basically, multicast is very similar to a broadcast, but only machines that have joined the multicast group (i...
<p>The best solution I have found in my remoting work was to keep the server list in a config file on the client systems and make it updateable. Not the easiest to maintain but was fast and no broadcasting.</p>
4,231
<p>Today, I ran into this weird problem with a user using Mac OS X. This user always had a failed upload. The form uses a regular "input type=file". The user could upload using any browser except Firefox 3 on his Mac. Only this particular user was seeing this error.</p> <p>Obviously, the problem is only with this one ...
<p>User corrected this weird problem by recreating their FireFox profile. <a href="http://support.mozilla.com/en-US/kb/Managing+profiles" rel="nofollow noreferrer">How to manage FireFox profiles</a></p> <p>I imagine a re-install of FireFox would have corrected the problem as well.</p>
<blockquote> <p>I imagine a re-install of FireFox would have corrected the problem as well.</p> </blockquote> <p>Profile related problems cannot usually be solved by re-installing Firefox since reinstalling (or upgrading) would re-use the same "damaged" profile.</p>
2,707
<p>I have a Windows Form that takes quite a bit of time to load initially. However, each subsequent request to load the Form doesn't take as long. Is there a way to optimize a Form's load time?</p>
<p>You can use <a href="http://msdn.microsoft.com/en-us/library/6t9t5wcf(VS.80).aspx" rel="noreferrer">ngen</a>.</p> <p>I also use this tip to reduce the <a href="http://www.codeproject.com/KB/smart/rssfeeder.aspx#_Toc109841754" rel="noreferrer">Memory footprint on startup</a>.</p> <p>The Native Image Generator (Ngen...
<p>You need to find out where the time is going before you can optimise it. Don't just ngen it without finding that out first, as if the problem is loading a 150MB background bitmap resource then you won't have done anything useful at all with ngen. </p> <p>You should disregard all specific advice or hunches about o...
8,410
<p>I'm rewriting an old application and use this as a good opportunity to try out C# and .NET development (I usually do a lot of plug-in stuff in C).</p> <p>The application is basically a timer collecting data. It has a start view with a button to start the measurement. During the measurement the app has five differen...
<p>Creating a bunch of overlaid panels is a design-time nightmare.</p> <p>I would suggest using a tab control with each "view" on a separate tab, and then picking the correct tab at runtime. You can avoid showing the tab headers by putting something like this in your form's Load event:</p> <pre><code>tabControl1.Top...
<p>I would also check out <a href="http://msdn.microsoft.com/en-us/library/cc707819.aspx" rel="nofollow noreferrer">Composite Application Guidance for WPF</a> or <a href="http://msdn.microsoft.com/en-us/library/aa480450.aspx" rel="nofollow noreferrer">Smart Client Software Factory</a> </p>
4,478
<p>I just installed Java 1.6_07 so I could try profiling with VisualVM. It tells me that my app is spending 60% of its time in <code>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run</code> </p> <p>How do I find out what it was doing during that time? How much of the time was it waiting for something to call ...
<p>I don't have experience with VisualVM -- but JRockit's profiler <em>does</em> provide this information; you may consider using it instead.</p> <p><strong>Update:</strong> a question with a list of java profilers can be found <a href="https://stackoverflow.com/questions/14762/please-recommend-a-java-profiler">here</...
<p>I have started using <a href="https://visualvm.dev.java.net/" rel="nofollow noreferrer">the new VisualVM 1.2</a>. It allows profiling CPU and drilling down using a call graph. Try it out.</p>
8,334
<p>I am working with an API that provides bus arrival data. For every request, I get back (among other things) a list of which routes serve the stop in question. For example, if the list includes result for bus route #1, 2, and 5, then I know that those serve this stop.</p> <p>I have a many-to-many relationship set up...
<p>If I get it right, you (should) have 2 models. A Route model, and a Stop model.</p> <p>Here's how I would define these models:</p> <pre><code>class Route &lt; ActiveRecord::Base has_and_belongs_to_many :stops belongs_to :stop, :foreign_key =&gt; 'destination_id' end class Stop &lt; ActiveRecorde::Base has_a...
<p>There's likely a good way to cleanup the stops call, but this cleans it up quite a bit assuming I'm picturing properly how routes is structured. </p> <pre><code>routes.uniq.each do |number, destination| r = Route.find_or_create_by_number_and_destination(route[0], destination) r.stops &lt;&lt; stop unless r.st...
7,062
<p>I'm failing at finding the commands I need to send to authenticate to a SMTP server using NTLM. </p> <p>I think it goes something like:</p> <pre><code>AUTH NTLM &lt;bae64encode something&gt; 334 &lt;bae64encode something&gt; 235 </code></pre>
<p>SVN with Siteminder has been implemented and is working now. Since there is not much of information out there on this, I would like to post the overview of steps followed:</p> <ol> <li>Cookie based authentcation was disabled on Siteminder end</li> <li>HTTP AUTH was enabled (in Siteminder) and all webdav methods wer...
<p>Look for information about <strong>Apache</strong> and Siteminder as Apache is responsible for the HTTP transport stuff in Subversion</p>
9,937
<p><a href="http://php.net/Interfaces" rel="noreferrer">Interfaces</a> allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods. </p> <p><a href="http://php.net/Abstract" rel="noreferrer">Abstract classes</a> allow you to do the same thing, along...
<p>The entire point of interfaces is to give you the flexibility to have your class be forced to implement multiple interfaces, but still not allow multiple inheritance. The issues with inheriting from multiple classes are many and varied and the <a href="http://en.wikipedia.org/wiki/Multiple_inheritance" rel="norefer...
<p>Below are the points for PHP Interface </p> <ol> <li>It is used to define required no of methods in class [if you want to load html then id and name is required so in this case interface include setID and setName].</li> <li>Interface strictly force class to include all the methods define in it. </li> <li>You can on...
4,082
<p>I have an idea for a simple application which will monitor a group of folders, index any files it finds. A gui will allow me quickly tag new files and move them into a single database for storage and also provide an easy mechanism for querying the db by tag, name, file type and date. At the moment I have about 100+ ...
<p>I'm still researching this option for one of my own projects, but <a href="http://incubator.apache.org/couchdb/" rel="nofollow noreferrer">CouchDB</a> may be worth a look.</p>
<p>why are you wasting time emulating something that the filesystem should be able to handle? more storage + grep is your answer.</p>
6,612
<p>What does the <code>volatile</code> keyword do? In C++ what problem does it solve?</p> <p>In my case, I have never knowingly needed it.</p>
<p><code>volatile</code> is needed if you are reading from a spot in memory that, say, a completely separate process/device/whatever may write to.</p> <p>I used to work with dual-port ram in a multiprocessor system in straight C. We used a hardware managed 16 bit value as a semaphore to know when the other guy was don...
<p>One use I should remind you is, in the signal handler function, if you want to access/modify a global variable (for example, mark it as exit = true) you have to declare that variable as 'volatile'.</p>
9,815
<p>I made a custom printer with RAMPS. I used Y-MIN endstop at beginning. After few prints I discovered that Y-axis was inverted (mirrored).</p> <p>I fixed Marlin firmware and now I have:</p> <pre><code>#define Y_MAX_ENDSTOP_INVERTING true #define INVERT_Y_DIR false #define Y_HOME_DIR 1 #define USE_YMAX_PLUG </code><...
<p>This <a href="https://www.everybitelectronics.co.uk/blog/3d-printer-error-prints-reversed/" rel="nofollow noreferrer">blog post</a> shows 3 main solutions:</p> <ol> <li>Flipping the motor cables (As suggested in the other answer)</li> <li>Switching the x and y-axis: This may switch the direction of your y-axis depe...
<p>Usually I just flip the connector around on the board. This causes the stepper to reverse without fiddling around with firmware.</p>
1,601
<p>After lots of attempts and search I have never found a satisfactory way to do it with CSS2.</p> <p>A simple way to accomplish it is to wrap it into a handy <code>&lt;table&gt;</code> as shown in the sample below. Do you know how to do it avoiding table layouts and also avoiding quirky tricks?</p> <p><div class="snip...
<p>@Jason, yep, <code>&lt;center&gt;</code> works. Good times. I'll propose the following, though:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>body { text-align: ce...
<p>The following works well enough. note the <em>position</em>, and the use of <em>auto</em></p> <pre><code>&lt;div style="border: 1px solid black; width: 300px; height: 300px;"&gt; &lt;div style="width: 150px; height: 150px; back...
6,845
<p>I have an application that runs as a child application in a virtual directory.</p> <p>I want to pass a value from the parent application, but I believe that Session is keyed per application, and won't work.</p> <p>To further complicate things, the parent application is WebForms, while the child is NVelocity MVC.</...
<p>Sounds like web service is the way to go. You could do something like the following:</p> <ul> <li>Have the WebForms app create some data in its database with a key of some kind associated to it.</li> <li>Pass that key in the URL to the NVelocity MVC application.</li> <li>Allow the NVMVC application to call a web se...
<p>You can do a server-side HTTP Request, it looks something like this in C#:</p> <pre><code>HttpWebRequest req = (HttpWebRequest)WebRequest.Create("/ASPSession.ASP?SessionVar=" + SessionVarName); req.Headers.Add("Cookie: " + SessionCookieName + "=" + SessionCookieValue); HttpWebResponse resp = (HttpWebResponse)req.G...
9,343
<p>If I have Python code</p> <pre><code>class A(): pass class B(): pass class C(A, B): pass </code></pre> <p>and I have class <code>C</code>, is there a way to iterate through it's super classed (<code>A</code> and <code>B</code>)? Something like pseudocode:</p> <pre><code>&gt;&gt;&gt; magicGetSuperClass...
<p><code>C.__bases__</code> is an array of the super classes, so you could implement your hypothetical function like so:</p> <pre><code>def magicGetSuperClasses(cls): return cls.__bases__ </code></pre> <p>But I imagine it would be easier to just reference <code>cls.__bases__</code> directly in most cases.</p>
<p>The inspect module was a good start, use the <a href="http://docs.python.org/library/inspect.html#inspect.getmro" rel="nofollow noreferrer">getmro</a> function:</p> <blockquote> <p>Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears more than once in this tuple....
4,541
<p>I just received this printer and while it seems to talk to Makerbot Desktop software I'm not sure if I should be trying to update the firmware.</p> <p>The printer comes with firmware v7.2 and while Makerbot Desktop offers an upgrade to v7.5 I'm not sure if it's a good idea with this non-Makerbot branded printer.</p...
<p>The Monoprice Architect is is a bare-bones FlashForge Creator that has been re-badged for Monoprice. The Creator line is a very popular set of printers, so there is lots of good advice out there. The FlashForge Google Group is a good community to join: <a href="https://groups.google.com/forum/#!forum/flashforge" rel...
<p>Since the printer has no heater, I'd advise some sleuthing</p> <ol> <li>Look at the motherboard. Find the big black square chip and see if it is a ATmega 1280 or 2560. Likely it's a 1280, but you never know. This will impact which firmware build you use.</li> <li>If you will eventually add a heater PCB, then fig...
156
<p>I want to insert some special characters at the caret inside textboxes using javascript on a button. How can this be done?</p> <p>The script needs to find the active textbox and insert the character at the caret in that textbox. The script also needs to work in IE and Firefox.</p> <p><strong>EDIT:</strong> It is a...
<p>I think Jason Cohen is incorrect. The caret position is preserved when focus is lost.</p> <p>[<strong>Edit</strong>: Added code for FireFox that I didn't have originally.]</p> <p>[<strong>Edit</strong>: Added code to determine the most recent active text box.]</p> <p>First, you can use each text box's onBlur eve...
<p>Note that if the user pushes a button, focus on the textbox will be lost and there will be no caret position!</p>
7,775
<p>I need to specifically catch SQL server timeout exceptions so that they can be handled differently. I know I could catch the SqlException and then check if the message string Contains "Timeout" but was wondering if there is a better way to do it?</p> <pre><code>try { //some code } catch (SqlException ex) { ...
<p>To check for a timeout, I believe you check the value of ex.Number. If it is -2, then you have a timeout situation.</p> <p>-2 is the error code for timeout, returned from DBNETLIB, the MDAC driver for SQL Server. This can be seen by downloading <a href="http://www.red-gate.com/products/reflector/" rel="noreferrer">...
<p>When a client sends ABORT, no transactions are rolled back. To avoid this behavior we have to use SET_XACT_ABORT ON <a href="https://learn.microsoft.com/en-us/sql/t-sql/statements/set-xact-abort-transact-sql?view=sql-server-ver15" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/sql/t-sql/statements/set-...
4,934
<p>In SEO people talk a lot about Google <a href="http://en.wikipedia.org/wiki/PageRank" rel="nofollow noreferrer">PageRank</a>. It's kind of a catch 22 because until your site is actually big and you don't really need search engines as much, it's unlikely that big sites will link to you and increase your PageRank!</p>...
<h2>Have great content</h2> <p>Nothing helps your google rank more than having <strong>content</strong> or offering a service people are interested in. If your web site is better than the competition and solves a real need you will naturally generate more traffic and inbound links.</p> <h2>Keep your content fresh</h2> ...
<p>A easy trick is to use</p> <p>Google webmaster tool <a href="https://www.google.com/webmasters/tools" rel="nofollow">https://www.google.com/webmasters/tools</a></p> <p>And you can generate a sitemap using <a href="http://www.xml-sitemaps.com/" rel="nofollow">http://www.xml-sitemaps.com/</a></p> <p>Then, don't m...
8,283
<p>I got a new CR-10S 3D printer (I received it at Christmas). It has been printing just fine until yesterday, I was doing a print and it randomly paused, it did not restart on its own, I had to restart the print, then the item finished just fine. I am printing today, a very small item, the printer now stopped 3 times...
<p>The cr10s has a filament run-out sensor. If the microswitch doesn't function properly, or you have issues with the wiring, the print pauses.</p>
<p>It would be great if you can write what the printer says when it stops. </p> <p>I suggest you try printing other small objects. If that also stops then the printer itself has a problem. But if the printer prints other objects without stopping, then the one you want to print has bad gcode files. You also need to mak...
1,563
<p>I am working on a project converting a "spreadsheet application" to a database solution. A macro was written that takes screen shots of each page and pastes them into a PowerPoint presentation. Because of the nice formatting options in Excel, the presentation looks very pretty.</p> <p>The problem I'm having is th...
<p>Access has the capability to create downright beautiful reports. The problem is that it can't make a spreadsheet look better than Excel. You have to know when to use each tool.</p> <p>Use Excel when you have spreadsheet-like formatting, need a lot of boxes and lines, or want to draw charts.</p> <p>Use Access when ...
<p>I personally would not try to re-invent the wheel here. If you already have an Excel sheet that has the formatting you want, just export the data from Access into Excel for the report. Now, if you didn't have the original Excel sheet to begin with, that would be a completely different story.</p> <p>As for breakin...
6,532
<p>I am looking for a powerful meta-language to describa behaviour for an application i intend to use in offline mode (google-gears + javascript) and server side sqlite + (php/ruby/java etc) and looking for a good format to describe the model's behaviour which can be easily converted to the target languages. Am I compl...
<p>Have you looked at <a href="http://code.google.com/webtoolkit/" rel="nofollow noreferrer">Google Web Toolkit</a>? GWT allows you to write server side Java objects which get translated into Javascript for you. This allows you to not deal with the browser quirks at all. I'm not sure how well integrated the Gears and...
<p>Maybe you should consider using <a href="http://www.codeplex.com/scriptsharp" rel="nofollow noreferrer">Script#</a>?</p>
6,416
<p>I was just assigned to do a CMS using ASP.net 3.5 and MySQL. I am kind of new to ASP.NET development (quite sufficient with C#) and <strong>I am wondering what major ASP.NET and general .NET features I am losing when I don't have the option to use Microsoft SQL Server.</strong></p> <p>I know already from quick Goog...
<p>You can leverage MySql in a number of ORMs, one of which is NHibernate. For the most part you can treat it as if you were running on SQL Server or Oracle. And with Linq2NHibernate, you can get nice LINQ syntax.</p> <p>You'd lose the SqlDataSource control, but some would argue that it would actually be a blessing ...
<p>Some things that come to mind:</p> <ul> <li>asp.net has nice "automatic" user management (authentication) system. I think it only goes with SQL Server, but there might be a way to make it work on other DBs. The tutorials assume SQL Server usually (or the built in file based DB for development)</li> <li>Not related ...
7,403
<p>Here is the full error: <code>SqlException: A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 1 - I/O Error detected in read/write operation)</code></p> <p>I've started seeing this message intermittently for a few of the unit tests in my applicati...
<p>I ran into this many moons ago. Bottom line is you are running out of available ports.</p> <p>First make sure your calling application has connection pooling on.</p> <p>If that does then check the number of available ports for the SQL Server.</p> <p>What is happening is that if pooling is off then every call tak...
<p>We saw this in our environment, and traced part of it down to the "NOLOCK" hint in our queries. We removed the NOLOCK hint and set our servers to use Snapshot Isolation mode, and the frequency of these errors was reduced quite a bit.</p>
7,599
<p>I've been going down the learning road with two broken printers that I'm rebuilding with better parts and electronics.</p> <p>One thing that I've recognized is that there is a pretty low likelihood that any hotend or heatbed that has had the thermistor/thermocouple and/or the printer board swapped with a non-OEM pa...
<p>The short answer is, you use the temps and speeds that give you good results. It's trial and error. </p> <p>The temperature number your printer reports really doesn't matter. That's just a process control variable: it needs to be consistent and repeatable, but it doesn't need to be accurate against an independent r...
<p>It looks like you have to calibrate your thermometer first. The easiest way is to use well known thermistor (preferably in well working printer) and then measure temperatures with your thermometer. This way will give you proper calibration of it. Then you can measure other thermistors with this thermometer.</p> <p>...
252
<p>How do I go about specifying and using an ENUM in a Django model?</p>
<p>From the <a href="https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.choices" rel="noreferrer">Django documentation</a>:</p> <pre><code>MAYBECHOICE = ( ('y', 'Yes'), ('n', 'No'), ('u', 'Unknown'), ) </code></pre> <p>And you define a charfield in your model :</p> <pre><code...
<p>A the top of your models.py file, add this line after you do your imports:</p> <pre><code> enum = lambda *l: [(s,_(s)) for s in l] </code></pre>
4,162
<p>I recently got an Ender 3 V2 and when I go to Info -&gt; Version it says V1.0.0. <a href="https://www.creality.com/download/" rel="nofollow noreferrer">However online, there is V1.0.1 available.</a></p> <p>How can I update the Ender 3 V2. It is different as it isn't a ATMEL chip like the ATMEGA 2560 but rather an AR...
<p>I've designed similar sensor casings, sometimes the filament catches a ridge/ledge or part of the cavity, even when it is chamfered or rounded. The arm of the limit switch pushes the filament up, away from the filament straight path.</p> <p>Have you tried cutting the filament under a very sharp angle, that may work....
<p>Here is 3D model that better explains why it was catching and how to remedy the problem:</p> <p><a href="https://i.stack.imgur.com/ooe48.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ooe48.png" alt="enter image description here" /></a></p> <p><a href="https://i.stack.imgur.com/dTy92.png" rel="no...
1,705
<p>I am particularly interested in Document Libraries, but in terms of general SharePoint lists, can anyone answer the following...?</p> <ol> <li>What is the maximum number of items that a SharePoint list can contain?</li> <li>What is the maximum number of lists that a single SharePoint server can host?</li> <li>When ...
<p>In SharePoint v.2:</p> <ul> <li><strong>Max # list items</strong> : 2000 (per folder level)</li> <li><strong>Max lists per site</strong> : 2000 is a "reasonable" number</li> <li><strong>Effect when we reach the limit</strong> : Exponential degradation of performance.</li> </ul> <p>More info: <a href="http://techn...
<p>Beware, the Performance of SiteDataQuery degrades heavily he more subsites you have. A hundred subsites can take 20 seconds to query.</p>
5,509
<p>In trying to figure out <a href="https://stackoverflow.com/questions/52981/cannot-delete-from-the-database">this problem</a> (which is still unsolved and I still have no clue what is going on), I am wondering if maybe an external reference to the table in question is causing the problem. For example, a trigger or v...
<p>Wow, I wouldn't have thought it, but there seems to be.. Good ole DB2.</p> <p>I find the publib db2 docs view very very handy by the way:</p> <p><a href="http://publib.boulder.ibm.com/infocenter/db2luw/v8//index.jsp" rel="nofollow noreferrer">http://publib.boulder.ibm.com/infocenter/db2luw/v8//index.jsp</a></p> <...
<p>You can write a query search the information schema views (definition column) to find the table in all views, triggers, procedure, etc. Not sure about FK &amp; indexes though. </p>
7,657
<p>After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var?</p> <p>For example I rather lazily used var in questionable circumstances, e.g.:-</p> <pre><code>foreach(var item in someList) { // ... } // Type...
<p>I still think <code>var</code> can make code more readable in some cases. If I have a Customer class with an Orders property, and I want to assign that to a variable, I will just do this:</p> <pre><code>var orders = cust.Orders; </code></pre> <p>I don't care if Customer.Orders is <code>IEnumerable&lt;Order&gt;</co...
<p>Don't use that, makes your code unreadable.</p> <p>ALWAYS use as strict typing as possible, crutches only makes your life hell.</p>
6,278
<p>Just got a request from my boss for an application I'm working on. Basically we're getting an email address setup for an external client to submit excel files to. </p> <p>What I need is a way to automatically pick up any email sent to this address, so I can take the attachment, process it and save it to a folder.</...
<p>Email -> mailserver ->[something] -> file-on-disk.</p> <p>File on disk is pretty easy to parse, use <a href="http://java.sun.com/products/javamail/javadocs/javax/mail/package-summary.html" rel="noreferrer">JavaMail</a>.</p> <p>The [something] could be:</p> <ul> <li>listener for smtp connections (overkill)!</li> <...
<p>Lotus Notes/Domino stores mail in a Notes database. There are APIs available for getting documents (emails), reading field values (From, Subject), and detaching files.</p> <p>APIs include</p> <p>-LotusScript (VB variant, available within the Notes database)</p> <p>-Java (from within or external to the database)<...
8,078
<p><strong>Facts:</strong></p> <ol> <li>Breaking down (or melting) plastic creates nanoparticles.<sup>1</sup></li> <li>3D printers melt plastic.<sup>2</sup></li> <li>Therefore, 3D printers make nanoparticles.<sup>3</sup></li> <li>Nanoparticles are evil.<sup><em>[citation needed]</em></sup></li> </ol> <p>Wait, What?</...
<p>At the time of this writing (March 2019), I don't think theres any study on the health effects of nanoparticles emmitted by 3D Printers. The general consensus seems to be right now that those particles are potentially harmful, as they build up in the lungs, and therefore precautions should be taken.</p> <p>The reas...
<p>Perhaps FDM 3D printing does emit nanoparticles during the process of printing, but the syllogism does not prove it or even suggest it. </p> <p>Parenthetically, your headline is not actually addressed by the body of your question. As an answerer, I have been misled by other questions which seemed clear enough fro...
1,256
<p>I have a generic printer with no support documentation. </p> <p>How do I determine what firmware is in use so that I can research how to make the print run?</p>
<p>Send <code>M115</code> to the printer. This command is </p> <blockquote> <p>Request the Firmware Version and Capabilities of the current microcontroller.</p> </blockquote> <p>Response example:</p> <blockquote> <p>ok PROTOCOL_VERSION:0.1 FIRMWARE_NAME:FiveD FIRMWARE_URL:http%3A//reprap.org MACHINE_TYPE:Mendel ...
<h1>Startup</h1> <p>Usually, when a printer starts up, the screen shows a boot-screen. This contains usually the firmware version, but not who or what the settings are.</p> <h1>LCD: About Printer</h1> <p>Some printers have an LCD main menu item that is &quot;About Printer&quot; or similar. It would one of the last item...
679
<p>I love the idea of the XYZ test cube to help diagnose my bad prints. I’m able to find online very common print issues however am looking for a resource that is more extensive. Often I run into a situation where my issue is not covered.</p> <p>Would be great if there was a resource that had pictures of numerous bad...
<h2>Make sure to set the scale properly for your use case!</h2> <p>In CAD, you define your measurement space in either Inch or in Millimeter units, and that is your grid. In blender, the native unit is the meter.</p> <p>This can be easily converted in exporting (remember to set it to scale!), but it is best to just set...
<p>It doesn't matter, you scale it in the slicer or elsewhere. You're not going to slice the STL file in Blender. You'll probably need to do more work to get things print ready outside blender anyway.</p> <p>So when I use blender I don't even bother checking what units it's using. I don't use it for parts design or tec...
2,122
<p>Recently, my Ender 3D Pro has been unable to print any large models successfully with PLA as the filament starts to expand inside the Teflon tube, causing a clog after about an hour of printing. I am starting to suspect that the problem is heat creep.</p> <ul> <li>This occurs with the two brands of PLA filament that...
<p>Since you mentioned &quot;Check if the Teflon tube is touching the nozzle&quot;, it sounds like you've disassembled the tube from the couplings and put it back together. This is error-prone and in my experience the main/only likely cause of clogging in Creality hotends. Heat creep is unlikely unless you're operating...
<p>This sounds like heat creep may be the problem. For preventing heat creep to occur you should do the opposite, print at lower temperature, tweak retraction length and increase cooling of the cold end.</p> <p>A Peltier element is not very effective cooler, use a bigger fan, or a fan with a higher flow rate. Note that...
2,075
<p>Where is the best tutorial for getting Ruby On Rails working on a windows box with Mongrel? I'm a complete novice at server management, so the more detailed the better!</p>
<p>You can follow this tutorial, it will get you setup you can actually manage your Mongrel server as a Windows service (start/stop/restart, start on boot, manage programatically etc etc):</p> <p><a href="http://noobonrails.blogspot.com/2006/06/how-to-setup-mongrel-as-native-windows.html" rel="nofollow noreferrer">How...
<p><a href="http://bitnami.org/stack/rubystack" rel="nofollow">Rubystack</a> is a free Windows Rails installer that we keep up to date and includes Mongrel support out of the box </p>
5,613
<p>Does anyone know if the Infragistics UltraGrid control provides functionality similar to that of DataGridView.HitTestInfo?</p>
<p>Check <a href="http://www.abstraction-systems.com/ttf/HTML/TTFactory_TaskBasedTutorials_UltraWinGrid.htm" rel="nofollow noreferrer">this</a> out.</p> <p>They don't convert the coordinates, but they use a special Infragistics grid event (<a href="http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/...
<p>There's a <code>.MousePosition</code> property which returns <code>System.Drawing.Point</code> and "Gets the position of the mouse cursor in screen coordinates" but I'm using an older version of their UltraWinGrid (2003).</p> <p>They have a <a href="http://www.infragistics.com/downloads/default.aspx" rel="nofollow ...
9,739
<p>I am a bit rusty on my cursor lingo in PL/SQL. Anyone know this?</p>
<p>An implicit cursor is one created "automatically" for you by Oracle when you execute a query. It is simpler to code, but suffers from </p> <ul> <li>inefficiency (the ANSI standard specifies that it must fetch twice to check if there is more than one record)</li> <li>vulnerability to data errors (if you ever get two...
<p>Explicit...</p> <p>cursor foo is select * from blah; begin open fetch exit when close cursor yada yada yada</p> <p>don't use them, use implicit</p> <p>cursor foo is select * from blah;</p> <p>for n in foo loop x = n.some_column end loop</p> <p>I think you can even do this</p> <p>for n in (select * from b...
9,973
<p>How do you sort an array of strings <a href="http://blog.codinghorror.com/sorting-for-humans-natural-sort-order/" rel="nofollow noreferrer">naturally</a> in different programming languages? Post your implementation and what language it is in in the answer.</p>
<p><strong>JavaScript</strong></p> <pre><code>Array.prototype.alphanumSort = function(caseInsensitive) { for (var z = 0, t; t = this[z]; z++) { this[z] = [], x = 0, y = -1, n = 0, i, j; while (i = (j = t.charAt(x++)).charCodeAt(0)) { var m = (i == 46 || (i &gt;=48 &amp;&amp; i &lt;= 57)); if (m ...
<p>For Tcl, the -dict (dictionary) option to lsort:</p> <pre><code>% lsort -dict {a b 1 c 2 d 13} 1 2 13 a b c d </code></pre>
5,481
<p>I'm trying to place this menu on the left hand side of the page:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="left-menu" style="left: 123px; top: 355...
<p><code>float</code> is indeed the right property to achieve this. However, the example given by bmatthews68 can be improved. The most important thing about floating boxes is that they <em>must</em> specify an explicit width. This can be rather inconvenient but this is the way CSS works. However, notice that <code>px<...
<p>You should use the float and clear CSS attributes to get the desired effect. </p> <p>First I defined styles for the called left and right for the two columns in my layout and a style called clearer used to reset the page flow.</p> <pre> &lt;style type="text/css"&gt; .left { float: left; width: 200px; } .ri...
8,628
<p>I want to write a command that specifies "the word under the cursor" in VIM. For instance, let's say I have the cursor on a word and I make it appear twice. For instance, if the word is "abc" and I want "abcabc" then I could type: </p> <pre><code>:s/\(abc\)/\1\1/ </code></pre> <p>But then I'd like to be able to...
<p><code>&lt;cword&gt;</code> is the word under the cursor (:help <code>&lt;cword&gt;</code>).</p> <p>Sorry, I should have been more complete in this answer.</p> <p>You can nmap a command to it, or this series of keystrokes for the lazy will work:</p> <pre><code>b #go to beginning of current word yw #yank to registe...
<pre><code>" count word (case sensitive) nmap &lt;F4&gt; :%s/\(&lt;c-r&gt;=expand("&lt;cword&gt;")&lt;cr&gt;\)//gn&lt;cr&gt; </code></pre>
7,111
<p>I've already asked which wires I should use, and I believe I have that covered now, but I was also wondering what solder / specs on the solder are considered safe when attaching my wires to my heat bed. I have some solder here at the house, it's quite new (never been opened) it's Radio Shack <code>64-008 E</code> 6...
<p>Old-style lead/tin solder has a melting range of about 180 to 250 degrees (the transition solid to liquid is spread out). This ought to be fine for the bed (even at the hottest hotspot) but wouldn't be good <em>in</em> the hotend.</p> <p>Modern electronics lead-free solder varies since there are several different c...
<p>That solder sounds like it should be fine.</p> <p>Any solder should work, the only difference you might find is some of the older solder will include lead. if you were overly concerned about safety you might want to check your solder doesn't contain lead. However, for the amount you are doing, even a solder that co...
432
<p>I have PLA and PETG filament.</p> <p>I hear that 3D filament absorbs water and causes problems when printing but after printing they can be used with water and they are water proof.</p> <p>So my question is why is it different after printing/what has changed to make it now waterproof?</p> <ul> <li><p>Is PETG waterpr...
<p>Filament that absorbs water prior to printing is subject to boiling temperatures as it passes through the heater block. In extreme cases, steam will be visible and a spitting sound will be heard. The filament will expand as the water exits, causing multiple structural and printing problems.</p> <p>Once printed, dry ...
<p>Filament that absorbs water prior to printing is subject to boiling temperatures as it passes through the heater block. In extreme cases, steam will be visible and a spitting sound will be heard. The filament will expand as the water exits, causing multiple structural and printing problems.</p> <p>Once printed, dry ...
1,861
<p>I have a problem with an application running on Fedora Core 6 with JDK 1.5.0_08.</p> <p>After some amount of uptime (usually some days) threads begin getting stuck in native methods.</p> <p>The threads are locked in something like this:</p> <pre><code>&quot;pool-2-thread-2571&quot; prio=1 tid=0x08dd0b28 nid=0x319e w...
<p>My initial suspicion would be that you are experiencing some sort of class-loader realted dead lock. I imagine, that class loading needs to be synchronized at some level because class information will become available for the entire VM, not just the thread where it was initially loaded.</p> <p>The fact that the met...
<p>Maybe you should use another jdk version.<br> For your "puzzling one", there is a bug entry for 1.5.0_08. A memory leak is reported (I do not know, if this is related to your problem):<br> <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6469701" rel="nofollow noreferrer">http://bugs.sun.com/bugdatabase/v...
5,829
<p>From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf and through the network configuration panel, which is using configd underne...
<p>On OS X starting in 10.4, <code>/etc/resolv.conf</code> is no longer the canonical location for DNS IP addresses. Some Unix tools such as <code>dig</code> and <code>nslookup</code> will use it directly, but anything that uses Unix or Mac APIs to do DNS lookups will not. Instead, configd maintains a database which ...
<p>I run into this from time to time on different notebooks, and I have found the simplest is a low-tech, non software solution - create an ethernet loopback connecter. You can do it in 2 minutes with an old network cable, just cut the end off and join the send and receive pair just above the RJ45 connector. (obviously...
9,155
<p>The first layer is very patchy indeed. I've calibrated the build plate pretty accurately but even if it was a badly calibrated build plate I don't think it would have this effect.</p> <p><a href="https://imgur.com/S4KsNA3.png" rel="nofollow noreferrer"><img src="https://imgur.com/S4KsNA3.png" alt="Patchy First Lay...
<p>First things first:</p> <h1>Don't Panic</h1> <p>Your heated bed is made from metal with some sort of Build-Tak-Clone surface. It is not broken from what I can see. Your print is <strong>not failed</strong>, however, the quality does suffer a little bit.</p> <p>Your bed does warp a little under heating. That is perfe...
<h2>I'm having the same problem but worse.</h2> <p>Some parts of the print are squished and towards the middle I will have bad or no bed adhesion. I always have to print with a raft or else the first layer will fail.</p> <h3>Borosilicate glass</h3> <p>From what I've read online the best solution it to replace the build...
1,140
<p>What would be the most efficient way to compare two <code>double</code> or two <code>float</code> values?</p> <p>Simply doing this is not correct:</p> <pre><code>bool CompareDoubles1 (double A, double B) { return A == B; } </code></pre> <p>But something like:</p> <pre><code>bool CompareDoubles2 (double A, dou...
<p>Be extremely careful using any of the other suggestions. It all depends on context.</p> <p>I have spent a long time tracing bugs in a system that presumed <code>a==b</code> if <code>|a-b|&lt;epsilon</code>. The underlying problems were:</p> <ol> <li><p>The implicit presumption in an algorithm that if <code>a==b</cod...
<p>It depends on how precise you want the comparison to be. If you want to compare for exactly the same number, then just go with ==. (You almost never want to do this unless you actually want exactly the same number.) On any decent platform you can also do the following:</p> <pre><code>diff= a - b; return fabs(diff)&...
3,800
<p>I'm printing PLA with the Creality Ender 2 and my print comes out totally fine with the exception of the first layer.</p> <p>Here's the weird part though, if I place a raft or a brim below/around the print - the raft or brim will print perfectly cleanly. Even on a raft though, the very first layer of the actual pri...
<p>Turns out it had to do with the nature of the small holes that I was printing. I had to slow the speed of the initial layer down from 25mm/s to 15mm/s and also set Cura to 'optimize wall printing order' so that it didn't jump back and forth between holes constantly. </p> <p>I also sped up the travel speed to 50mm/s...
<p>Sounds like you need to get the printing nozzle closer to the bed. In the case of the raft you can adjust the 'air gap' which is how much it raises off the top of the raft before starting the print.</p>
985
<p>How do I format a number in Java?<br /> What are the &quot;Best Practices&quot;?</p> <p>Will I need to round a number before I format it?</p> <blockquote> <p><code>32.302342342342343</code> =&gt; <code>32.30</code></p> <p><code>.7323</code> =&gt; <code>0.73</code></p> </blockquote> <p>etc.</p>
<p>From <a href="http://bytes.com/forum/thread16212.html" rel="noreferrer">this thread</a>, there are different ways to do this:</p> <pre><code>double r = 5.1234; System.out.println(r); // r is 5.1234 int decimalPlaces = 2; BigDecimal bd = new BigDecimal(r); // setScale is immutable bd = bd.setScale(decimalPlaces, B...
<p>There are two approaches in the standard library. One is to use java.text.DecimalFormat. The other more cryptic methods (String.format, PrintStream.printf, etc) based around java.util.Formatter should keep C programmers happy(ish).</p>
7,332
<p>There is a lot of buzz about <strong>Microsoft Silverlight</strong>, especially after the Olympics. Also <code>H264</code> will be supported in a future version. Where do you think Silverlight will be 1 year from now?</p>
<p>They were saying they were getting 1.5 million downloads per day back in March 2008, and that was before the Olympics and the Democratic National Convention. So, unless my math is off, that's more than 4 people.</p> <p>I'd expect to see it show up as a recommended Windows update, and possible included with IE8 or s...
<p>100% more.</p> <p>(so about 4 people)</p>
7,776
<p>PLA is flammable, but a good case can protect the main board from dirt.</p> <p>Is it worthwhile to protect a circuit board with a 3d printed case?</p>
<p>It depends.</p> <p>Protecting your electronics from being touched by random bits of conductive material which would short and fry them is always a good idea.</p> <p>If it's something that will be visible, then a pleasant printed casing might go well. You might just as well use any other casing though, there's no r...
<p>As pointed out by Ryan Carlyle, not all 3D printing filament is flammable (such as PET and PETG), and the question therefore rather becomes:</p> <p><strong>Can 3D printing be used to make proper electronic cases?</strong></p> <p>And the short answer to that is <strong>yes</strong>. 3D printing allows to make custo...
223
<p>Are square brackets in URLs allowed?</p> <p>I noticed that <a href="http://hc.apache.org/httpclient-3.x/index.html" rel="noreferrer">Apache commons HttpClient</a> (3.0.1) throws an IOException, wget and Firefox however accept square brackets.</p> <p>URL example:</p> <pre><code>http://example.com/path/to/file[3].h...
<p><a href="http://www.ietf.org/rfc/rfc3986.txt" rel="noreferrer">RFC 3986</a> states</p> <blockquote> <p>A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]"). This is the only place where...
<p>Best to URL encode those, as they are clearly not supported in all web servers. Sometimes, even when there is a standard, not everyone follows it.</p>
6,179
<p>I'm attracted to the neatness that a single file database provides. What driver/connector library is out there to connect and use SQLite with Java.</p> <p>I've discovered a wrapper library, <a href="http://www.ch-werner.de/javasqlite/" rel="noreferrer">http://www.ch-werner.de/javasqlite</a>, but are there other mor...
<p>The <a href="http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers" rel="noreferrer">wiki</a> lists some more wrappers:</p> <ul> <li>Java wrapper (around a SWIG interface): <a href="http://tk-software.home.comcast.net/" rel="noreferrer">http://tk-software.home.comcast.net/</a></li> <li>A good tutorial to use JDBC dri...
<p>Typo: <code>java -cp .:sqlitejdbc-v056.jar Test</code></p> <p>should be: <code>java -cp .:sqlitejdbc-v056.jar; Test</code></p> <p>notice the semicolon after ".jar" i hope that helps people, could cause a lot of hassle </p>
6,253
<p>I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are &quot;cared about.&quot;</p> <p>Example: Consider the following example...</p> <pre> Dimension 0 (across) _ _ _ _ _ _ _ _ _...
<p>This could have applications. Lets say you implemented a 2D Conway's Game of Life (which defines a 2D plane, 1 for 'alive', 0 for 'dead') and you stored the Games history for every iteration (which then defines a 3D cube). If you wanted to know how many bacteria there was alive over history, you would use the above ...
<p>Actually, by colllapsing the colums you already summed them, so the dimension doesn't matter at all for your example. Did I miss something or did you?</p>
4,318
<p>I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated.</p> <p>How would I make the year update automatically with <a href="http://en.wikipedia.org/wiki/PHP#History" rel="noreferrer">PHP 4</a> or <a href="http://en.wikipedia.org/wiki/PHP#History" r...
<p>You can use either <a href="http://php.net/manual/en/function.date.php" rel="noreferrer">date</a> or <a href="http://php.net/manual/en/function.strftime.php" rel="noreferrer">strftime</a>. In this case I'd say it doesn't matter as a year is a year, no matter what (unless there's a locale that formats the year differ...
<pre><code>&lt;?php $time_now=mktime(date('h')+5,date('i')+30,date('s')); $dateTime = date('d_m_Y h:i:s A',$time_now); echo $dateTime; ?&gt; </code></pre>
8,947
<p>I have written some code in my VB.NET application to send an HTML e-mail (in this case, a lost password reminder).</p> <p>When I test the e-mail, it gets eaten by my spam filter. One of the things that it's scoring badly on is because of the following problem:</p> <pre>MIME_QP_LONG_LINE RAW: Quoted-printable lin...
<p>Quoted printable expands 8 bit characters to "={HEX-Code}", thus making the messages longer. Maybe you are just hitting this limit?</p> <p>Have you tried to break the message at, say, 70 characters? That should provide space for a couple of characters per line.</p> <p>Or you just encode the email with Base64 - all...
<p>This is a bug in the implementation of the Quoted-Printable encoding in System.Net.Mail.MailMessage, which has been there for a long time, but is apparently now fixed, as of .Net 4 Beta 2.</p> <p><a href="http://connect.microsoft.com/VisualStudio/feedback/details/156052/mailmessage-body-encoding-quoted-printable-vi...
8,304
<p>I'm working on a site which needs to be able to support two or more looks, changable at runtime. I'd hoped to be able to handle the change with a CSS switch, but it looks like I'll need to use a different masterpage for each design.</p> <p>So, what's the best way to set the masterpage at runtime? Page.MasterPageFil...
<p>I've done this once before, I did exactly what you described (Made all pages inherit from a custom page with an OnPreInit event). Also I had a custom Application_PreRequestHandlerExecute in my Global.asax.cs for setting Page.StyleSheetTheme for doing image/css changes that didn't require a different Master Page.</p>...
<p>I'm curious what decides how the page should look? Is it the user clicking a button to change the theme? Is it based on the URL that was used to get to the site?</p> <p>Code behind is supported in Master Pages, so you could put some logic in your one Master Page to decide what should be displayed.</p> <p>I've seen...
3,603
<p>How do you express an integer as a binary number with Python literals?</p> <p>I was easily able to find the answer for hex:</p> <pre><code>&gt;&gt;&gt; 0x12AF 4783 &gt;&gt;&gt; 0x100 256 </code></pre> <p>and octal:</p> <pre><code>&gt;&gt;&gt; 01267 695 &gt;&gt;&gt; 0100 64 </code></pre> <p><strong>How do you us...
<p>For reference&mdash;<em>future</em> Python possibilities:<br> Starting with Python 2.6 you can express binary literals using the prefix <strong>0b</strong> or <strong>0B</strong>:</p> <pre><code>&gt;&gt;&gt; 0b101111 47 </code></pre> <p>You can also use the new <strong>bin</strong> function to get the binary repre...
<p>As far as I can tell Python, up through 2.5, only supports hexadecimal &amp; octal literals. I did find some discussions about adding binary to future versions but nothing definite.</p>
2,385
<p>How do I open the default mail program with a Subject and Body in a cross-platform way?</p> <p>Unfortunately, this is for a a client app written in Java, not a website.</p> <p>I would like this to work in a cross-platform way (which means Windows and Mac, sorry Linux). I am happy to execute a VBScript in Windows, ...
<p>In Java 1.6 you have a stardard way to open the default mailer of the platform: <a href="http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html" rel="noreferrer">the Desktop.mail(URI) method</a>.The URI can be used to set all the fields of the mail (sender, recipients, body, subject). You can check a full examp...
<p>I have implemented this, and it works well on OS X. (Ryan's mention of the max URL length has not been codified.)</p> <pre><code>public void email(String subject, String body) throws Exception { String cmd = "open mailto:"; cmd += "?subject=" + urlEncode(subject); cmd += "&amp;body=" + urlEncode...
3,804
<p>I'm printing parts for a HEVO (<a href="https://www.thingiverse.com/thing:2254103" rel="nofollow noreferrer">HyperCube Evolution</a> CoreXY), using Colorfabb XT filament. After several successful prints. I'm having a lot of failed prints. They start off pretty well but after ~15 layers the filament starts to string ...
<p>This looks a lot like <strong>under extrusion caused by heat creep</strong>.</p> <p>Heat creep is when the nozzle temperature 'creeps' up through the filament and makes it melt (a bit) and form a blob (or just widen enough to get stuck) a centimeter or two before the nozzle.</p> <p>The characteristic is usually th...
<p>I have a possible cause for my problems. XT is sensitive to moisture (hydrolytical stability) When I extruded 20mm filament manually, the string felt a bit rough. When I looked closer very tiny bubbels where visible. I baked the filament at 60°C for 2 hours.</p> <p>The baked filament allowed me to print a perfect m...
960
<p>What's the simplest-to-use techonlogy available to save an arbitrary Java object graph as an XML file (and to be able to rehydrate the objects later)?</p>
<p>The easiest way here is to serialize the object graph. Java 1.4 has built in support for serialization as XML.</p> <p>A solution I have used successfully is XStream (<a href="http://x-stream.github.io/)-" rel="nofollow noreferrer">http://x-stream.github.io/)-</a> it's a small library that will easily allow you to s...
<p>If you are really only interested in serializing your objects to a file and then deserializing them later, then you might check out YAML instead of XML. YAML is much easier to work with than XML and the output files are very human-readable (which may or may not be a requirement). Check out <a href="http://yaml.org/"...
8,814
<p>For the purpose of cleaning, I need an aggressive solvent for cured or partially cured resin that will degrade resin down to its liquid state. I'm looking for one that would eat out specifically resin (I'm using regular Anycubic green resin) in a rapid fashion but would leave painted / metallic parts and screen of m...
<p>Concentrated nitric acid will remove all organics, including your skin, wire insulation, etc. It will work on a glass plate, but the fumes would eventually damage the plastics on your printer unless you remove the glass plate to clean it. Nitric acid will destroy most build surfaces that are added to glass. To a ...
<p>I would try hexane, and then Dichloromethane and if those did not work, I would heat up sodium hydroxide to about 70-90 °C. These would work better if you print in PLA resin, it's available from a few sources now.</p> <p>Bucktown polymers and 3Dresyns both have a water-soluble resin. You could also print, make a sof...
1,789
<p>I have the following C# code:</p> <pre><code>byte rule = 0; ... rule = rule | 0x80; </code></pre> <p>which produces the error: </p> <blockquote> <p><em>Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)</em></p> </blockquote> <p>[Update: first version of the...
<p>C# does not have a literal suffix for byte. u = uint, l = long, ul = ulong, f = float, m = decimal, but no byte. You have to cast it.</p>
<p>Unfortunately, your only recourse is to do it just the way you have. There is no suffix to mark the literal as a byte. The | operator does not provide for implicit conversion as an assignment (i.e. initialization) would.</p>
6,468
<p>I'm relatively new to 3d printing, and wanted to get a few things understood. Firstly, I am unclear on how Hexagonal infill is stronger than, say, diamond pattern. </p> <p>Can anyone explain how the different shape causes the structure to be stronger? I saw a few places that hex is stronger; usually, more vertices ...
<p>Hex grids are used for different reasons than triangular grids (such as you often see on bridges and roof systems). Triangles are especially good at being <em>rigid</em>, while hex grids are very material-efficient for a given strength. The second reason ($) is typically more important for 3D printing.</p> <p>Trian...
<p>Correction: I believe I found what you are looking for:</p> <p><a href="https://engineerdog.com/2015/09/02/mechanical-testing-3d-printed-parts-results-and-recommendations/" rel="nofollow noreferrer">Report from EngineerDog.com</a></p> <p>The author concludes that rectilinear infill with a zero degree offset is the...
531
<p>I have a Flex swf hosted at <a href="http://www.a.com/a.swf" rel="nofollow noreferrer">http://www.a.com/a.swf</a>. I have a flash code on another doamin that tries loading the SWF:</p> <pre><code>_loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoader...
<p>This is all described in <a href="http://livedocs.adobe.com/flex/3/progAS_flex3.pdf" rel="nofollow noreferrer">The Adobe Flex 3 Programming ActionScript 3 PDF</a> on page 550 (Chapter 27: Flash Player Security / Cross-scripting):</p> <blockquote> <p>If two SWF files written with ActionScript 3.0 are served from d...
<p>Mayhaps <a href="http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&amp;file=00001750.htm" rel="nofollow noreferrer" title="Flex Documentation: System.Security.allowDomain">System.Security.allowDomain</a> is what you need?</p>
3,511
<p>I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure.</p> <pre><code>&lt;asp:UpdatePanel ID="Upda...
<p>I am sorry I do not have time to trouble-shoot your code, so this is from the hip.</p> <p>There is a good chance that this a client-side action that is failing. Make certain that your page has the correct doctype tag if you took it out of your page or masterPage. Furthermore, attempt to set the ClientState as well:...
<p>It is working fine:</p> <pre><code>CollapsiblePanelExtender CpeForControls = (CollapsiblePanelExtender)tbl_Form.FindControl("cpe_controls"); CpeForControls.ClientState = "true"; CpeForControls.Collapsed = true; </code></pre>
4,642
<p>How safe do you think it is to run an SLA 3D printer in the bedroom? I am planning to run Mi Air Purifier 3H/C while the printer is running, I am also thinking about adding <a href="https://rads.stackoverflow.com/amzn/click/com/B086277CNQ" rel="nofollow noreferrer" rel="nofollow noreferrer">this</a> inside the actua...
<p>The motor is mounted in a fixed position no matter if it's on top or bottom. You can imagine the lead screw as a rod hanging down and supporting the bed in the Z direction only, because all of the XY rigidity comes from the Liner rails the bed is attached to it works just as well if the stiff rod is under compressio...
<p>The motor is mounted in a fixed position no matter if it's on top or bottom. You can imagine the lead screw as a rod hanging down and supporting the bed in the Z direction only, because all of the XY rigidity comes from the Liner rails the bed is attached to it works just as well if the stiff rod is under compressio...
2,018
<p>Using <a href="http://www.codeplex.com/aspnet" rel="nofollow noreferrer">preview 4</a> of <a href="http://asp.net/mvc" rel="nofollow noreferrer">ASP.NET MVC</a> Code like:</p> <pre><code>&lt;%= Html.CheckBox( "myCheckBox", "Click Here", "True", false ) %&gt; </code></pre> <p>only outputs:</p> <pre><code>&lt;inpu...
<p>Try this: </p> <pre><code>&lt;%= Html.CheckBox("myCheckbox", "Click here", "True", false, new {_id ="test" })%&gt; </code></pre> <p>For any keyword you can use an underscore before the name of the attribute. Instead of class you use _class. Since class is a keyword in C#, and also the name of the attribute in HT...
<p>Apparently this is a bug. Because they are adding it to potential rendering values, they just forgot to include it. I would recommend creating a bug on codeplex, and download the source and modify it for your needs.</p>
2,964
<p>I've been able to find details on several self-balancing <code>BST</code>s through several sources, but I haven't found any good descriptions detailing which one is best to use in different situations (or if it really doesn't matter). </p> <p>I want a <code>BST</code> that is optimal for storing in excess of ten m...
<p><a href="http://en.wikipedia.org/wiki/Red-black_tree" rel="nofollow noreferrer">Red-black</a> is better than AVL for insertion-heavy applications. If you foresee relatively uniform look-up, then Red-black is the way to go. If you foresee a relatively unbalanced look-up where more recently viewed elements are more li...
<blockquote> <p>[hash tables have] O(1) insertion and search</p> </blockquote> <p>I think this is wrong.</p> <p>First of all, if you limit the keyspace to be finite, you could store the elements in an array and do an O(1) linear scan. Or you could shufflesort the array and then do a linear scan in O(1) expected ti...
2,456