I am trying to find a solution to read xml(wsdl) from a soap api so my test will be dynamical (not break if the xml structure has been changed) and add my values to this xml to send it as a request.  from the Speclow tables I could create my dictionary  and I got the service xml as welll per operation  but how can I write my values into the XmlDocument ?  Thanks for the help.  public static XmlDocument GetRequestByData(Table createRequestTable, XmlDocument soapXML)     {         Dictionary&lt;string, string&gt; myDictionary = TableExtensions.ToDictionary(createRequestTable);          XmlDocument requestXML = new XmlDocument();          soapXML[] = myDictionary[];            return requestXML;     }
How can I generate valid XML in C#?
How to create Mist in Blender I already tried several ways to create Mist in Blender, but it never worked 100%. I use Blender 2.78 and I want to create Mist like in this scene here.  What are the exact steps?     Here is what I have tried so far:  I already tried this:  but it simply did not work .. I dont know why.  (EDIT: I managed to fix it: Check out this graphic:   Until now I already used objects successfully as Mist-creators (Volume Scatter under Volume Material). The bad thing about using Objects as Mist-creator is that they dont have an endless mist range + the mist can not be bright. Normally it appears grayish result is bad..  Check it out  Please help Quantum Field Theory from a mathematical point of view Java: Difference between the setPreferredSize() and setSize() methods in components As I show below, typical alien depictions include an elongated, pale face, two dark elliptical eyes, and a small mouth.  Who first used this design for an alien?  Where does this design come from? One of the great 'coincidences' in physics is that the Sun happens to shine most brightly at exactly the wavelengths our eyes can see; it's an easy explanation that our eyes evolved to make the most out of what was available.  However, this spectral window is also , with Rayleigh scattering and the ozone layer protecting us from the UV and strong water vapour absorption in the IR until way into the radio range.  My question is: is this a coincidence? Were there geological factors that made it so? Or is it just lucky chance? (I also notice other planets in our neighbourhood weren't quite so lucky.) Or had atmospheric absorption been different our eyes would have tuned to whatever spectral window were brighter as a whole? Under what conditions does loot despawn? On determinants and common divisors How to ensure OpenVPN connection uses specific DNS? I'm using OpenVPN through Tunnelblick on MacOS X Lion.  I need to set specific DNS (with local IP, which works only when VPN is up) for the duration of this VPN session only.  I do not have access to the OpenVPN server configuration. Only client config. Also, DNS from the server doesn't work.  So it works like this: I connect to VPN, go the Network preferences and manually set DNS. After VPN is disconnected, I switch back to default. It works, but it needs to be automatic.  After some exploration I found that OpenVPN up- and down- scripts might help me with that. Unfortunately, I haven't found any specific documentation about how exactly it can be done.  How it can or can't be done? Any advice would be appreciated! How to change Function (Fn) Key behavior on wireless Logitech keyboard Can screen layouts or workspaces be locked? The new Top-Bar does not show reputation changes from Area 51. How to automate generation of image files? What do I do? I looked at a similar question to mine and there was an answer saying to make sure Java is allowed past the firewall. So I checked and it already is. I've tried uninstalling and installing both Minecraft and Java but nothing has changed.  says that all services are fine, so what's going on? I bought a 2nd account to use as an alternative in-game account and now I can't log in.  (I cleared the email and password boxes for obvious reasons in this screenshot: security purposes) What is the most straightforward way to pad empty dates in sql results (on either mysql or perl end)? I'm building a quick csv from a mysql table with a query like:  select DATE(date),count(date) from table group by DATE(date) order by date asc;   and just dumping them to a file in perl over a:  while(my($date,$sum) = $sth-&gt;fetchrow) {     print CSV "$date,$sum\n" }   There are date gaps in the data, though:  | 2008-08-05 |           4 |  | 2008-08-07 |          23 |    I would like to pad the data to fill in the missing days with zero-count entries to end up with:  | 2008-08-05 |           4 |  | 2008-08-06 |           0 |  | 2008-08-07 |          23 |    I slapped together a really awkward (and almost certainly buggy) workaround with an array of days-per-month and some math, but there has to be something more straightforward either on the mysql or perl side.   Any genius ideas/slaps in the face for why me am being so dumb?    I ended up going with a stored procedure which generated a temp table for the date range in question for a couple of reasons:   I know the date range I'll be looking for every time The server in question unfortunately was not one that I can install perl modules on atm, and the state of it was decrepit enough that it didn't have anything remotely Date::-y installed   The perl Date/DateTime-iterating answers were also very good, I wish I could select multiple answers! Arduino-controlled slot cars - alternative to MOSFETs for speed control? I'm attempting to control the speed of two slot cars in a set using Arduino.    Each car is controlled by a controller with a variable resistor that looks like this:    They're wired in parallel to the same 17V DC power supply:    Simplified:    For Arduino control, I experimented with manipulating a single car's speed using a MOSFET. It worked really well. Using a PWM output on the Arduino, I was able to pulse the MOSFET on and off to throttle the current and change the car's speed. The behavior of the MOSFET seemed to be exactly the same as the variable resistor controller; the resistance, voltage, and current fluctuated the same way on various parts of the circuit.  Enter car B. I added a MOSFET to the setup and mimicked the MOSFET wiring for car A, grounding them both to the Arduino ground. The result looks like this:    Here's a sketch:    Close up, MOSFET A:    MOSFET B:    At first, all seemed well. I sent signals to MOSFET A and successfully changed Car A's speed. I stopped Car A and pulsed MOSFET B, and I was able to control Car B's speed just fine.  Then, I turned Car B to a constant speed, and sent a signal to MOSFET A while Car B was still running. Car A started, but Car B's speed immediately dropped as a result of running Car A.  I hooked a multimeter up across the rails of Car B and watched its voltage while it ran on its own. Then, sure enough, when Car A started running alongside it, Car B's voltage dropped dramatically.  I figured this was because of my wiring configuration, so I left the multimeter on Car B, and made one change. I replaced MOSFET A with the original slot car controller:    I started running Car B again using its MOSFET. The multimeter showed a steady voltage, so I began to squeeze Car A's controller (the variable resistor), and Car A's speed increased. This time, however, unlike using a MOSFET to control Car A, the variable resistor did not affect Car B's voltage at all. Car B remained at a steady speed the whole time.  Any idea why this happens? The MOSFET seemed to function the same as the variable resistor (empirically) with a single car, but had totally different behavior with two cars in parallel. Is it because the MOSFET is not really changing resistance to current, but just switching it on and off, so it opens up another path for current to flow fully every time it closes? Is there an Arduino-controllable alternative to a MOSFET that would fluctuate actual resistance like the variable resistor? Digital potentiometer? Servo hooked up to a potentiometer? ;) I'm really curious what the difference is and what causes the major differences in behavior. sample make file for creating more than one exe files with different directory Smooth option sometimes produces incorrect arrow tips in PGFplots How is the recommended next badge determined exactly? According to , the     "Progress to next badge" bar automatically selects the badge you're closest to earning (or that's most logical to go for next)   While "the badge you're closest to earning" is pretty easy to determine: it's the bar with the most progress, I'm wondering what "most logical to go for next" means. Because right now on Meta Stack Exchange, I can track two badges: Illuminator and Legendary. My progress for Illuminator is 66.40% and for Legendary it's 66.67%, yet Illuminator is shown as the recommended next badge:    On some child metas where I barely have any activity, Student is shown as recommended next badge with a progress of 0/1, but I do have cast some votes so I have a small progress towards e.g. Civic Duty. So obviously there is some other logic at work, but what? When is the present perfect tense used instead of the past tense?    I know that the present perfect tense is used when some adverbs (e.g., never, ever) are present in the sentence; the same is true for sentences like the following one.     When you returned, I have been at home since 3:00 PM.   In which other cases should I use the present perfect? Do the following sentences require it?     I have walked downtown everyday for a year.        I have been at home since 3:00 PM. I do not understand how dummy variables work in math.   Suppose we have:  $$I_1 = \int_{0}^{\infty} e^{-x^2} dx$$  How is this equivalent to:  $$I_2 = \int_{0}^{\infty} e^{-y^2} dy$$  How does this dummy variable system work?   Since $y$ is the dependent variable for $I_1$ How can $y$ itself be and independent variable for $I_2$  ??  Thanks!