Goal:  In order to have a fully interactive map, I would like to be able to save some drawn features (in a second step with some attributes that may be grabbed through an input mask form or pop-up) on a Leaflet map to a PostgreSQL (PostGIS) database table.  Technical details:  I am using Lighttpd as webserver + geoserver (based on jetty) to serve my base vector layer on which I'd want to write the new features.  What I have read and tried:  Based on this code :   it is possible to "export" the features as a GeoJson string to a local file.  Related resources that I've tried but doesn't work:   And with this, I'm able to print out to the console a GeoJSON string that is ready to be written in a database field but I do not know how to technically communicate it to the database:    Related to the Geoserver documentation (the "demo" menu on the left column), it is not possible to write a GeoJson string to the connected PostgreSQL database: WFS-T only allows to write features using the GML format...  I remember (long time ago, so it is blurry in my mind) some functions with OpenLayer that could do some parsing on a GeoJson string to make it "GML ready" but I can not find any equivalent within Leaflet.     Am I stuck or is there an elegant way to store drawn vector features from a Leaflet map into a PostgreSQL database (based, or not, on Geoserver)? If not possible, which other (light) techniques would be nice to use?   The raw code example:    Edit:  The answer given in the thread on which this question was marked as duplicate (  ) is to use the Leaflet-WFST plugin: .   When I tried the first command: npm i leaflet-wfst --save   I get an error "command not found". So it doesn't work in my really simple case where I use Geoserver. What I would like to find is a small function that converts a geojson object (which I already have!) to a GML one (which is the only format available with Geoserver WFST protocol).
I have a PostGIS database and have successfully consumed a table into GeoServer and published a WFS.  Are there REST endpoints available for these WFS' akin to ESRI's feature services?  How are parameters to be constructed?
How do I create a WiFi hotspot sharing wireless internet connection (single adapter)? I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.  In Windows I can use , which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the :     Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.   How do I do this on Ubuntu? Make Chrome always execute with flags, for eg., directly opening an HTML file I want to run Chrome with a given set of flags, always  I created a shortcut and added the flag to it in the following way, so my target of the shortcut says:  C:\&lt;application-path&gt;\chrome.exe --user-data-dir=D:\Chrome   But when I double click an HTML file, or if any other application triggers Chrome, it looses the flag value. The result - A new chrome window opens with Default profile directory.  I want to make the flag permanent, so that its active irrespective of however Chrome executes.  I tried changing the following registry key:  HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command   It was this earlier:  "C:\&lt;application-path&gt;\chrome.exe" -- "%1"    I changed to following attempts which did not work:  1. "C:\&lt;application-path&gt;\chrome.exe" -- "%1" --user-data-dir=D:\Chrome 2. "C:\&lt;application-path&gt;\chrome.exe" -- "%1" -- "user-data-dir=D:\Chrome" 3. "C:\&lt;application-path&gt;\chrome.exe" -- "%1 user-data-dir=D:\Chrome"   Conclusively, when I try to open a link from any application, it doesn't open in my current Chrome as a new tab, rather opens a new Chrome window with no plugins and extensions since its from other directory.  Why I have changed my default directory? - because the OS drive was getting low on memory due to heave Chrome caches and apps. Restore console session after remote desktop disconnects? Second law of Newton for variable mass systems Frequently I see the expression  $$F = \frac{dp}{dt} = \frac{d}{dt}(mv) = \frac{dm}{dt}v + ma,$$ which can be applied to variable mass systems.  But I'm wondering if this derivation is correct, because the second law of Newton is formulated for point masses.   Furthermore if i change the inertial frame of reference, only $v$ on the right side of the formula $F = \frac{dm}{dt}v+ma$ will change, meaning that $F$ would be dependent of the frame of reference, which (according to me) can't be true.   I realize there exists a formula for varying mass systems, that looks quite familiar to this one, but isn't exactly the same, because the $v$ on the right side is there the relative velocity of mass expulsed/accreted. The derivation of that formula is also rather different from this one.   So my question is: is this formula, that I frequently encounter in syllabi and books, correct? Where lies my mistake. I've tried multiple times to  import a SVG file from illustrator CS5.5 to Blender 2.71 and 2.73. However, I do not see a mesh, curve, or anything pop up in my "Outliner" window. So I know its not so small I can't see it. I even made sure under user preferences that the "import and export of SVG 1.1 format" is "checked." I've tried even just importing text from illustrator and I'm still getting no where. What can I do to resolve this problem? If this is common error with this version of Blender, then what can I do to transform an image into a 3D object in Blender? Selecting a front derailleur: parameters The spec sheet for the Shimano Alivio FD-M430 front derailleur contains a number of points that I don't understand.   What does "Maximum capacity: 22 teeth" mean? Why are "Top gear teeth" constrained to "44/48T"? Is there anything wrong with 46? What is "Cable Routing: dual-pull type"? And most puzzling, what is "Chain Stay Angle  63-66 / 66-69" and how do I measure mine? I'm flying Etihad Airways to Melbourne and I've a 14 hours layover at Abu Dhabi.  Some say that as long as you are inside the airport terminal you don't require a transit visa while some say you need a transit visa if your layover is more than 10 hours.  Can I stay inside the airport without a transit visa? Where, in the Windows 7 file system, are the taskbar shortcuts stored (per user)? If I want to add more RAM to my computer, how can I buy something compatible? What kinds are there? How do I determine which kind my computer will accept and how much I can add? How do you debug PHP scripts? How do you debug PHP scripts?  I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.  What is the best (in terms of fast and easy) way to debug in phpStorm or any other IDE? Extracting one band from three band raster in ArcMap? A geometry question: Let $ABCD$ be a convex quadrilateral. Prove that AD is parallel to BC. Let $ABCD$ be a convex quadrilateral such that the length of the segment connecting midpoints of the two opposite sides $AB$ and $CD$ equals $\frac{AD+BC}{2}$ . Prove that AD is parallel to BC. I assume that AD is not parallel to BC but I can't find any contradiction. Frequently when I ask a question I have to include quite a bit of code for reference purposes.    It would be nice to be able to bold the important lines in the code.  For example this code:  &lt;DataTrigger Value="True"&gt;     &lt;DataTrigger.Binding&gt;         &lt;MultiBinding Converter="{StaticResource DisableWorkItemConverter}"&gt;             &lt;Binding ElementName="MainForm" Path="PickedWorkItemID"/&gt;             &lt;Binding Path="Id"/&gt;         &lt;/MultiBinding&gt;     &lt;/DataTrigger.Binding&gt;     &lt;Setter Property="IsEnabled" Value="False"/&gt;     &lt;Setter Property="IsSelected" Value="False"/&gt; &lt;/DataTrigger&gt;   Is not way long, but the important part (as seen in ) is the second to last line.  However, if I try to bold it, it ends up looking like this:  &lt;DataTrigger Value="True"&gt;     &lt;DataTrigger.Binding&gt;         &lt;MultiBinding Converter="{StaticResource DisableWorkItemConverter}"&gt;             &lt;Binding ElementName="MainForm" Path="PickedWorkItemID"/&gt;             &lt;Binding Path="Id"/&gt;         &lt;/MultiBinding&gt;     &lt;/DataTrigger.Binding&gt;     &lt;Setter Property="IsEnabled" Value="False"/&gt;     **&lt;Setter Property="IsSelected" Value="False"/&gt;** &lt;/DataTrigger&gt;   Not what I was going for.  It would be nice to be able to draw attention to specific lines of code when needed.    (One suggestion of a different color background sounds nice too (ie a yellow background to draw the eye to the relevant code.)  If there is some other way to bold in code please let me know. Is it true that one should not use NSLog() on production code? I was told this a few times in this very site, but I wanted to make sure this is really the case.  I was expecting to be able to sprinkle NSLog function calls throughout my code, and that Xcode/gcc would automatically strip those calls out when building my Release/Distribution builds.  Should I avoid using this? If so, what alternatives are most common between experienced Objective-C programmers? "Out of pocket"? I'm increasingly hearing the phrase "out of pocket" used in America as a colloquialism to mean "away from the office", "unavailable", or "incommunicado".     I apologize for not replying sooner; I have been out of pocket.    What is the etymology of this usage? It always sounds odd to me, since I had previously always associated the phrase with expenses, e.g., "I had to pay for the service out of pocket," meaning, "I had to pay for the service using my own money." Should either of these usages be avoided? What is the extent of their acceptance? Why can some holodeck matter leave the holodeck, while other holodeck matter (notably people) cannot? Say we have a rod with a fixed axis of rotation. If we give it a push at some point other than the axis, it will start to rotate. Say our force is $F$, then we might write: $\Delta P=F\Delta t$. I’m wondering how to incorporate angular momentum here. We know that for a single particle it holds that $L=r\times p$. And for an extended object with a fixed axis of rotation, we generally might write $L=I\omega$. However, can I write $L=r\times p$ too for the extended object? I would think that I would need to integrate. So we have $p_\alpha=m_\alpha v_\alpha=m_\alpha r_\alpha\omega$, where we consider an infinitesimal mass $\alpha$. So should I write $L=\int r^2\omega\,dm$? I’m confused whether to work with this integral, or just use $L=r\Delta P$ at once.  The reason I'm asking, is because I'm trying to calculate the sweet spot of a baseball bat. So this is my attempt at solving the exercise. If someone else is booking international ticket for me using his credit or debit card, does he need to be present physically at the time of check-in?   Suppose I am coming back from Singapore to my home country and my ticket is booked by my friend for me, who lives in my home country. Do airlines in Singapore ask for the person to be present physically to check in? Can you help me decide, what type of transport can I use to travel from one US town to another (it will be a big journey), without flying?  Are buses available, and is there any more suitable method of traveling? How does the current limiting resistor for an LED affect current and voltage drops? I'm having a bit of trouble understanding currrent limiting resistors in simple LED circuits. I know that I can determine the optimal resistor like so:  \$\displaystyle R=\frac{V_{s}-V_{f}}{I_{f}}\$  But I'm having a hard time understanding how this one value modifies the voltage and the current to the correct values for the LED. For example, if my calcuations for a super bright blue LED (with \$V_{f}\$ being 3.0-3.4&nbsp;V and \$I_{f}\$ being 80&nbsp;mA, and a voltage source of 5&nbsp;V) gives me 25&nbsp;ohms (using the lower bound of the forward voltage), that's fine. So the current throughout should be 80&nbsp;mA and the voltage drop for the resistor and LED should be 2 and 3 volts, respectively.  But what if I used a 100&nbsp;ohm resistor instead? Or any other value—how would I calculate the voltage drops and current? Would I assume one of them stays the same?