I've some lat/long in EPSG:4326 coordinate system like Eiffel Tower position : ["lat" : 48.858274,"lon" : 2.2944]  For automated tests I would like to get, for every points of my dataset, the x and y coordinate of the location 100 meters Eastern of my dataset's point.  How can I calulate it?  PS : it'll be implemented in Java
Online calculators such as  (view page source) use the below formulas to get meters per degree. I understand in general how distance per degree varies depending on latitude location, but I do not understand how that translates to the below. More specifically, where do the constants, the 3 "cos" terms in each formula, and coefficients (2, 4, 6; 3, and 5) for "lat" come from?      // Set up "Constants"     m1 = 111132.92;     // latitude calculation term 1     m2 = -559.82;       // latitude calculation term 2     m3 = 1.175;         // latitude calculation term 3     m4 = -0.0023;       // latitude calculation term 4     p1 = 111412.84;     // longitude calculation term 1     p2 = -93.5;         // longitude calculation term 2     p3 = 0.118;         // longitude calculation term 3      // Calculate the length of a degree of latitude and longitude in meters     latlen = m1 + (m2 * Math.cos(2 * lat)) + (m3 * Math.cos(4 * lat)) +             (m4 * Math.cos(6 * lat));     longlen = (p1 * Math.cos(lat)) + (p2 * Math.cos(3 * lat)) +                 (p3 * Math.cos(5 * lat));
Could anyone explain why the number of legal or reachable combinations of a $3\times 3\times 3$ Rubik's Cube is $1/12\mbox{th}$ of the total. I understood the logic behind the total number of combinations: $8! \cdot 2^{12} + 3^{12} \cdot 12!$. What I am not able to understand is why do we divide this quantity by $2 \cdot 3\cdot 2$. I don't have any idea about parity or group/set theory. Is there another possible explanation for it? Does an increasing sequence of reals converge if the difference of consecutive terms approaches zero? How to startForeground() without showing notification? How to Create Bootable Windows 10 image in Debian? Pseudocode but originally developed for Windows 7 iso file but applied for Windows 8 in the thread  but it does not work with Windows 10 iso  # https://rwmj.wordpress.com/2010/11/04/customizing-a-windows-7-install-iso/ # https://unix.stackexchange.com/a/312477/16920 $ dd if=../en_windows_10_x64_dvd.iso \     of=boot.img bs=2048 count=8 skip=734  $ mkisofs -o ../new-win.iso -b boot.img -no-emul-boot -c BOOT.CAT \     -iso-level 2 -udf \     -J -l -D -N -joliet-long -relaxed-filenames .   Unsuccessful output when run on Windows 10 image  dd if=/home/masi/Downloads/en_windows_10_multiple_editions_version_1511_x64_dvd.iso of=/home/masi/Downloads/boot.img bs=2048 count=8 skip=734 8+0 records in 8+0 records out 16384 bytes (16 kB) copied, 0.000392973 s, 41.7 MB/s    Some of the following fields have changed for the iso file used in dd   bs=2048 count=8  skip=734   How can you study which field values you can use for Windows 10 iso?  OS: Debian 8.5 64 bit Hardware: Asus Zenbook UX303UA Linux kernel: 4.6 of backports Related threads: ,  Motivation: I need Windows 10 to use Canon P-150 duplex scanner, but when I started my Windows, I got Error 0xC0000428 because Windows update has again broken things there and I use Windows otherwise so rarely; and I have no spare Windows left to make bootable media Tikz and ctable incompatibility, gives error when printing When I print a report I get an error:     An error exists on this page. Acrobat may not display the page   correctly. Please contact the person who created the PDF document to correct the problem   After a lot of debugging, I've found that this MWE reproduces the problem. I've tried it on three different computers with the same error.   \documentclass{standalone}           \usepackage{tikz} \usepackage{ctable} \begin{document} \begin{tikzpicture} \filldraw[opacity=.5] (0,0) rectangle (1,1); \end{tikzpicture} \end{document}   When loading the ctable package, the image is changed (the opacity disappears), so it seems the error comes from some incompatibility between ctable and opacity in tikz. The error only appears when trying to print though, acrobat before attempting to print. (Printing either to a pdf file or to a real printer)  I have the following versions of tikz and ctable:      tikz.sty    2013/12/13 v3.0.0   ctable.sty    2014/04/25 v1.29   How can I fix this?    EDIT: I found the warning Transparency disabled: incompatible with tikz package from ctable so I guess this incompatibility can explain the error in the first MWE.  However, I continued digging and found that the spy library seem to be incompatible with ctable as well.   Here's an MWE that generates the same error when printing (either to a pdf file or to a real printer):   \documentclass{standalone}           \usepackage{tikz} \usetikzlibrary{spy} \usepackage{ctable} \begin{document} \begin{tikzpicture}[spy using outlines={size=2cm,connect spies}] \begin{scope} \spy on (-3,.25) in node at (2,0); \end{scope} \end{tikzpicture} \end{document}   There seem to be a serious problem with using tikz + ctable, can it be fixed? Choice of personal pronoun in single-author papers How to Retrieve the Wi-Fi Password of a Connected Network on a Mac I need to find the password for a Wi-Fi network that I am already connected to. I'm using a MacBook Pro that's running OS X Lion. Any guidance is appreciated. A film or TV series about classic monsters getting together Why is DML not allowed in Constructor? How to change boot priority? I have a laptop with Ubuntu installed as the only OS. I also have a USB stick with a Windows 7 installation on it. I want to install Windows from the USB stick on my laptop but when I try to restart the laptop to get access to BIOS, I can't seem to find the command for it, its like it skips everything and just says Ubuntu and then takes me to the login screen.  How do I change the boot priority to USB in Ubuntu? How to debug EntityMalformedException? I've got fatal error EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7700 of .\includes\common.inc) when trying to access user/xyz.  I tried to retrieve info about the malformed node at line 7700, where the error message is built, thinks like :  if (!isset($entity-&gt;{$info['entity keys']['bundle']}) || $entity-&gt;{$info['entity keys']['bundle']} === '') {  dpm($info);// or dpm($entity);  throw new EntityMalformedException(t('Missing bundle property on entity of type @entity_type.', array('@entity_type' =&gt; $entity_type))); }   dpm($entity) returns an unexpected user object, and $info a huge qty of things.   Could somebody put me on the right way ?  I already read whatever I could find about Missing bundle property errors, but none helped solving.  dpm($entity) returns  uid (String, 2 characters ) 70 name (String, 9 characters ) John pass (String, 55 characters ) $S$DUwPuOuDPiDL4nRTYXqc7a5uOfMKey7pyhOFUEKka1XM... mail (String, 30 characters ) john@example.com theme (String, 0 characters ) signature (String, 0 characters ) signature_format (String, 13 characters ) filtered_html created (String, 10 characters ) 1396286331 access (String, 10 characters ) 1397146661 login (String, 10 characters ) 1396513460 status (String, 1 characters ) 1 timezone (NULL) language (String, 2 characters ) fr picture (NULL) init (String, 30 characters ) john@example.com data (Array, 5 elements) roles (Array, 1 element) og_user_node (Array, 0 elements) message_subscribe_email (Array, 1 element) field_bio (Array, 0 elements) field_name_first (Array, 1 element) field_name_last (Array, 1 element) field_facebook_url (Array, 0 elements) field_linkedin_url (Array, 0 elements) field_twitter_url (Array, 0 elements) user_trusted_contacts (Array, 1 element) group_group (Array, 1 element) group_access (Array, 1 element) metatags (Array, 0 elements) rdf_mapping (Array, 3 elements) realname (String, 13 characters ) John Doe content (Array, 13 elements) entity_view_prepared (Boolean) TRUE privatemsg_disabled (Boolean) FALSE At WWDC 2018 macOS 10.14 or macOS Mojave was disclosed.  I am currently on macOS Sierra (10.12) and am looking forward to upgrading to macOS Mojave once its released.  I was wondering if it will be possible to update to macOS Mojave without converting to APFS, similar to  trick from OS X Daily on how to upgrade to macOS High Sierra (10.13) without converting to APFS with the command /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --converttoapfs NO. How to use EntityFieldQuery with dates? I need to select entities with specific dates.   How should the following be formatted. Do I need to parse 15-May-2010  Also how I get the error page.   function events2() {  $query = new EntityFieldQuery(); $query   -&gt;entityCondition('entity_type', 'node', '=')   -&gt;propertyCondition('status', 1, '=')   -&gt;propertyCondition('type', 'event')     -&gt;propertyCondition('field_event_date', '15-May-2010', '=');  $result = $query-&gt;execute();   return $result;  } How do I change my Chrome language back to English? Lie Algebra of U(N) and SO(N) U(N) and SO(N) are quite important groups in physics. I thought I would find this with an easy google search. Apparently NOT! What is the Lie algebra and Lie bracket of the two groups? Biblatex: submitting to a journal Story [novel, novella?] that featured faster-than-light or hyperdrive gained from observing distant drive use, also had a sentient star I have little recollection when I read this, but it started with people observing indications of some special engine use many lightyears away, and it led them to 'reverse-engineer' the traces to create their own drive.  Had the usual tropes of international crew-selection for first-voyage.  Somewhere in the travel, they encounter a sentient star or quasar.  When they get back hundreds/thousands of years later, they arrive to an uncaring Earth that no longer pursues space-travel. Integral solutions of hyperboloid $x^2+y^2-z^2=1$ Are there integral solutions to the equation $x^2+y^2-z^2=1$? Sufficiency to prove the convergence of a sequence using even and odd terms How do I figure out if someone is a first cousin, second cousin, cousin once-removed, etc?