How long would it take to doff armour heated by the Heat Metal spell?

Page 146 of the PHB has the table for getting in and out of armour (1 to 5 minutes to doff, depending on the type).  Now the Heat Metal (PHB pg. 250) says;     Choose a manufactured metal object, such as a metal weapon or a suit of heavy or medium metal armour, that you can see within range. You cause the object to glow red-hot. Any creature in physical contact with the object takes 2d8 fire damage when you cast the spell. Until the spell ends, you can use a bonus action on each of your subsequent turns to cause this damage again. If a creature is holding or wearing the object and takes the damage from it, the creature must succeed on a Constitution saving throw or drop the object if it can.   (Emphasis mine)  I imagine a creature can't just drop a suit of armour it's wearing, otherwise what's the point of having the don/doff time rules, and it drops the object only if it fails the saving throw. Even if Heat Metal only targets one piece of the armour, the obvious choice would be the shirt/breastplate if you can see it because there's other things a creature would have to take off before that.  So, is the creature trapped in their red-hot burning armour, potentially taking the extra damage for the 1 minute duration of the spell, or is there something I'm missing?  If there's strict RAW on taking armour off in less than a minute, I'll take it, but I'll happily accept answers that simply make sense provided there's an in-game time frame (1 action, 1 round, or whatever) given as well. As for the type of armour I'm just looking at whatever's in the PHB (chainmail, half plate, full plate, breastplate, chain shirt), I don't know of any specific sub-categories or the exact size and shape.  This is of course assuming the creature tries to take of it's armour, it may not give a damn and take it like a man, but from an RP perspective I reckon it would feel like a  so I'm going with "they try to get out as quickly as possible".


Commutative integral domain does not finitely generate its field of fractions

I want to prove that if we have a commutative integral domain $D$ with field of fractions $F\neq D$ then $F$ is not finitely generated as a $D$-module. (In this question it may be the case that $1\not\in D$.)    My original plan was to localize at a maximal ideal and then use Nakayama's lemma but as we don't have a $1$ our localization may not be local (in fact we need not have maximal ideals).  So I'm a bit lost as to where to go?  Thanks for any help.


How can I decrease the maximum number of files where Get Info will open multiple windows?

Is there some plist I can edit to decrease the number of files that Finder's Get Info function will open separate info windows for?  The number of Get Info windows that will open simultaneously is . The windows slowly appear one at a time, and once they finally finish appearing I have to close them all one at a time. Pure madness, and whoever chose the default value for this feature should go outside and think about what they've done.   If I get info on thirty-six files, it finally automatically consolidates them into a  I would like to change this threshold of 36 to something reasonable, like 4.  I know about the  to open the Inspector and Summary Info windows, however sometimes I accidentally forget to hold Option or Control, and I would like to eliminate the possibility of this happening by accident.   A satisfactory alternate solution would be if there were a way to make Get Info always open a Summary Info window instead of opening separate file info windows.  MacBook Pro (Retina, Mid 2012) running 10.10.5.


When Sauron is finally defeated near the end of Return of the King, why does his tower collapse? Is the collapse of the tower what triggers the ground collapse that (conveniently) consumes only his army, or is it the collapsing ground that levels the tower?


Hide borders of hyperlinks in a limited region

I know that to hide the borders around internal links, hidelinks option is always available:  \usepackage[hidelinks]{hyperref}   But what if I need the ugly hyperref border for the Section 2 only but not for Sections 1 or 3?  \section{AAA} Hyperlinks here should not have ugly borders \section{BBB} Hyperlinks here must have ugly borders \section{CCC} Hyperlinks here should not have ugly borders


Considering, i have declared variable name as a numeric with underscore.  #include <stdio.h>  int main() {    char _3 = 'c';    printf("%c\n",_3); }   I wonder, It's working fine in C and C++. So,is it valid?


Footnote inside figure capture duplicated

I have a hard time with footnotes... I use the package tablefootnotes with a defined command \spewnotes to display multiple footnotes in a theorem, following . However, sometimes a footnote placed inside a figure capture sometimes would skip a number and the footnote text would appear twice, as you can see below with footnote 4 (or 3). Can anybody explain to me why this is the case? Does it depend on the order of the imports, and if so, why? Thank you for helping me! Minimal working example Expected behaviour Footnote 4 (rsp. 3) shouldn't be duplicated. Footnote 5 is displayed like I expect it. Observations  Error goes away if I don't import hyperref Error goes away if caption has less than 55 characters Number of characters depends on imports (was at 60 in my full document)  Output  Code \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{tablefootnote} \usepackage{float} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} % has to go after xcolor \usepackage{thmtools}  \definecolor{colorLink}{RGB}{61, 145, 60} \declaretheorem[numberwithin=chapter, thmbox=M]{theorem}   % tablefootnotes & \spewnotes are used for multiple footnotes within a theorem. \makeatletter \newcommand{\spewnotes}{% \tfn@tablefootnoteprintout% \global\let\tfn@tablefootnoteprintout\relax% \gdef\tfn@fnt{0}% } \makeatother  \usepackage{hyperref} \hypersetup{hidelinks,colorlinks,linkcolor=colorLink}  \begin{document} \chapter{Title}     \begin{theorem}         A theorem with\tablefootnote{A} two footnotes\tablefootnote{B}.     \end{theorem}     \spewnotes     \begin{figure}[H]         \centering         \begin{tikzpicture}             \draw[fill=gray!20] (0,0) ellipse (.2 and .1);         \end{tikzpicture}         \caption[Fig1]{                 1aaa 1bbb 2aaa 2bbb 3aaa 3bbb                 4aaa 4bbb 5aaa 5bbb 6aaa 6\tablefootnote{Why does this appear twice?}.}     \end{figure}     \spewnotes     \begin{figure}[H]         \centering         \begin{tikzpicture}             \draw[fill=gray!20] (0,0) ellipse (.2 and .1);         \end{tikzpicture}         \caption[Fig]{                 1aaa 1bbb 2aaa 2bbb 3aaa 3bbb                 4aaa 4bbb 5aaa 5bbb 6aaa \tablefootnote{It appears only once                 if the caption is short enough, $<56$ in this example                 (or $<61$ if I include my uni's .sty file)}.}     \end{figure}     \spewnotes \end{document}


Migrations should not be rejected while question is "on hold"

We have had multiple instances of the following process recently.   An on-topic question is migrated to us (cs.SE). We close as "unclear" because it lacks detail and/or effort, telling the user that the question may be reopened when they improve the question (standard operating procedure). The question is put "on hold". The user can not edit because the question is now locked and opens a new question.   This is obviously bad behaviour: a (new) user trying to conform with site policy get a firm stick between the legs. Also, the migrating site gets told "please don't migrate stuff like this" even though the question could be salvaged.  I found that rejected migrations are locked automatically for some reasons (, ) that are not invalid. I think that only migrated questions closed as "offtopic" should be rejected, or we should be able to choose whether to reject, but I guess the situation in these regards is [by-design].  As a compromise, I propose that migrations be not rejected until their status changes from "on hold" to "closed" (or it is deleted). That leaves the asker some time to improve their question and does not send wrong signals to the migrating site prematurely.  This still sends bad signals if the user does not improve their post, but I guess we'll have to take that hit unless we only reject migrations if they are closed as offtopic.


What is the opposite of procrastination in one word?

I thought of precrastination at first but that appears to be the act of planning to procrastinate.


Does the feature selection matter for learning algorithm with regularization?

Let's assume we have infinite computing power. When we consider two algorithms,  learning algorithm + regularization and feature selection + (learning algorithm + regularization),  Which one would achieve better prediction performance usually?  Now, my original post on feature selection vs regularization is duplicate with the . I'd like to update my question focusing on the point which is still ambiguous. I read the previous answers and they are not arriving at one conclusion. The answers point to the opinion that it depends on the situation. I'd like to narrow my question to focus on the case which still is not considered. I summarize some of the views from the answers:   mentions that it depends on the learning algorithm. It says that random forest would do better than the NN for selecting relevant features among large numbers of features. So the random forest would need feature selection less than NN.   indicates that the data size for training can be the issue. The feature selection might put one more layer of training into the fitting procedure and leads to overfitting because the feature selection is done at the subset of data.   mentions that if the application requires refit repeatedly with new data, then, the wrong feature might affect the performance, and feature selection would be helpful.   indicates that it depends on the regularization method.   The answers consider various factors that can affect the feature selection performance. But I think there might be several still more factors to consider. In this updated question, I'd like to raise the issue on the signal to noise ratio. My first thought is this: If the signal to noise ratio of the data set is low, there is more danger of overfitting and I feel that extra step of feature selection might help because it can remove the irrelevant feature catching the noise in a different way. In this setting, removing features might be more important than keeping more features. However, from the opposite point of view, the extra step of feature selection might lead to more severe overfitting with argument 2. Both views make sense to me at the moment. How much is the feature selection(preprocessing) helpful for the learning algorithm with regularization training with the data samples of different levels of signal to noise ratios?


How to avoid race condition when using a lock-file to avoid two instances of a script running simultaneously?

A typical approach to avoid two instances of the same script running simultaneously looks like this:  [ -f ".lock" ] && exit 1 touch .lock # do something rm .lock   Is there a better way to lock on files from a shell-script, avoiding a race condition? Must directories be used instead?


How can be sure that a check has cleared?

Linked question ^^^ is WHEN. My question is HOW which is different. Also, the other question does not have an answer that addresses the question. The one answer it has, does not answer the question, so the statement below that the existing question is "Answered" is not true.    How can I determine when the bank has been paid on a deposited check. A typical bank statment about this is as follows:     Your bank also may not be able to determine that the check is   fraudulent when you deposit it. Rather, your bank may learn of the   problem only when the check is returned unpaid by the other bank,   which may take a couple weeks or more. Scammers try to make the item   look genuine, which will delay discovery of the fraud. Once the item   has been returned unpaid, your bank, generally, will be able to   reverse the deposit to your account and collect the amount of the   deposit from you.   What I want to know is how I can I find if the check HAS BEEN PAID BY THE OTHER BANK? Basically call up my bank and ask?  (I will consider answers unresponsive if they do not answer the question: for example, going on about fraudulent checks and how to detect them, why checks do not clear, how scams work, why a check might never clear, etc. I know these things.)


How can I switch the Control key (Ctrl) with the Function key (Fn) on my Thinkpad? I have Ubuntu 20.04 and Dual Boot (Ubuntu and Windows), so I'm not sure about the option to change it from the BIOS. I couldn't find a way to do this from the normal settings or in GNOME Tweaks.


I can't get the TOC to work. I remember it worked before, but there was something I did (unfortunately I can't remember what it was), and after that the TOC just stopped working.  Here is a part from my document:  \documentclass[deutsch]{llncs}  \usepackage{graphicx} \usepackage[labelformat=empty]{caption} \usepackage{subcaption} \captionsetup{compatibility=false}  \bibliographystyle{unsrt}  \pagestyle{headings} \begin{document}  \sffamily  \begin{titlepage}     %Some stuff here \end{titlepage}  \thispagestyle{headings} \tableofcontents \newpage %more stuff here blablabla \section{test} \subsection{test2} \end{document}


How to stop auto turn off hard disk spining, in windows 10?

My secondary hard disk (internal SATA drive) which is an hard disk (not SSD) it stops spinning automatically after about a minute ... (a sound is heard from it as when I turned off) I want to stop this feature in windows 10 ! Every time when I access a file from it, it takes about 1-2 seconds to start (a sound is heard that starts rotating the discs) It is very annoying because sometimes it blocks cursive application functionality... Even if I set to 0 "Turn off Hard disk" in "Power option", nothing happens..., also I tried to set at 60 minutes or something, but the result is same, hard disk stop running after about one minute... I want the hard drive to run continuously, without stopping! Thanks in advance! Silviu


Why is the Elder Wand aligned with Harry and not Voldemort?

I get that Draco was the true master of the elder wand, and by disarming Draco, Harry becomes the wands true master.  However...  When Harry is hit by Voldemort's killing curse in the forbidden forest, does Voldemort not, technically, defeat Harry? If that's the case, shouldn't the wand see Voldemort defeating it's master and then switch allegiance to Voldemort?


SharePoint website - Anonymous users not able to access Survey

Ours is a SharePoint 2010 public website. To enable anonymous access to website required settings have been done.      Visitors are able to access website anonymously.   We Created a Survey and want visitors of website to be able to respond to the survey. Thus, we gave All permissions to Anonymous users on the survey.    However whenever we try to access survey page it prompts for login.  Kindly let know what we are missing.


\citet and \citep in TeXstudio using natbib

I am new with respect to using TeXstudio and I have just written my article in TeXstudio, but I cannot get the citations right(?)  I use the natbib in \usepackage in the preamble, it is stated before \begin{document} and I have specified \bibliography {plain} in the end. I have made a separate database with my references as .bib file.  My problem is that when I use \citet{key} I get (author?) and when I use \citep{key} I get the numerical number for the reference.  I would very much appreciate if somebody can help me on this so the references are cited correct in my article.


What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

Is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with packages , but it doesn't seem to be the case, cause there are packages of all the priority levels among the packages installed by default. Also, some of those packages of initial subset have automatically installed flag, e.g. wireless-tools. So they will be automatically removed if packages of the initial subset, depending on them, are manually removed. I wonder, does the installation tool keep only a list of packages to be considered manually installed and installs their dependencies automatically? Answer to the first two questions: After installing the core Debian utilities, Debian installer seems to invoke tasksel to carry out installation "tasks". Among the typical tasks are "standard" task and "laptop" task. From  page:  "standard" task The standard task is a special task used by Debian Installer. It actually relies on the packages' priority. What does the "standard system" task include? tasksel --task-packages standard which is an aptitude search string that equates to aptitude search ~pstandard ~prequired ~pimportant -F%p  So tasksel installs standard, required and important packages.  "laptop" task The laptop task is a special task use by Debian Installer, to pull the packages useful on a laptop:   wireless-tools acpi-support cpufrequtils acpi wpasupplicant powertop acpid apmd pcmciautils pm-utils anacron avahi-autoipd bluetooth   Desktop  See


What's the difference between SCP and SFTP?

Usually, I use the scp command to transfer files on *nixes.  What's the difference between SFTP and SCP? Don't they both work on SSH?


I have a Dell Inspiron 6400 with windows XP home and I want to know if i can install ubuntu on it. 728RAM


Vector space can be written as direct sum of subspaces

I am trying to prove that all vector spaces can be written as the direct sum of two subspaces.  My attempt: If each vector in vector space V can be uniquely written as the sum of two other vectors in V, the two vectors can be categorized into subspaces and thus V can be written as the direct sum of these subspaces. I am not sure how to show that this is true for all cases though. Edit Sorry for the confusion,to clarify I meantGiven a vector space V with a subspace W, prove that there exists a subspace W' such that the direct sum of W and W' is V.I am not sure about my proof method at all. Thank you.


Button not responding/not binding in Javascript

I have two functions in Javascript shown below:  function Add(){      $("#tbl tbody").append(         "
"+         "<input type='text'/>	"+         "<input type='text'/>	"+         "<input type='text'/>	"+         "<button class=\"btn btnSave\"></button><button class=\"btn btnDelete\"></button>	"+         "
"      );      $(".btnSave").bind("click", Save);           $(".btnDelete").bind("click", Delete);  };   and   function Delete(){      var par = $(this).parent().parent();      par.remove();  };   and finally these two lines after the functions:  $(".btnDelete").bind("click", Delete); $("#btnAdd").bind("click", Add);   The function Add() adds a new row to the table with id tbl. The last column in a newly added row has two buttons btnSave and btnDelete. btnDelete is supposed to delete that particular row as is evident from the Delete() function. (I have not started to implement the 'save' function yet). But, whenever I click the 'Delete' button, nothing happens. Is there a problem with the code?  I am using  for my UI.  Function Add() works properly by the way.   Edit: Here is a screen capture. The highlighted button cross is not working.


Python buffer points and clip with line-segment (OS Open Roads in BNG)

I have an array of points (in latitude, longitude coordinates) which I would like to buffer and dissolve (into a polygon) and then intersect the Ordnance Survey Open Roads (projected in BNG) with that polygon and export the results.   Note: I am not interested in preserving any of the shapefile information -> I just want to effectively clip the road-network to show a line only within my polygon as efficiently as possible.


What is the meaningful difference between" backup/restore" and "detach/attach" in SQL Server?

My question is about difference between "backup & restore" and "detach & attach" in SQL Server.    What is the meaningful difference between these two methods?


How do i install opengl? My graphics drivers are all installed and updated, along with java

Here is what comes up.      ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen.      Time: 12/24/14 4:50 PM Description: Initializing game      org.lwjgl.LWJGLException: Pixel format not accelerated  at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)  at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52) at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)  at org.lwjgl.opengl.Display.createWindow(Display.java:306)  at org.lwjgl.opengl.Display.create(Display.java:848)  at org.lwjgl.opengl.Display.create(Display.java:757)  at org.lwjgl.opengl.Display.create(Display.java:739)  at bss.an(SourceFile:526) at bss.ak(SourceFile:355)  at bss.a(SourceFile:302)  at net.minecraft.client.main.Main.main(SourceFile:124)      A detailed walkthrough of the error, its code path and all known details is as follows:      -- Head --  Stacktrace:  at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)  at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)  at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)  at org.lwjgl.opengl.Display.createWindow(Display.java:306)  at org.lwjgl.opengl.Display.create(Display.java:848)  at org.lwjgl.opengl.Display.create(Display.java:757)  at org.lwjgl.opengl.Display.create(Display.java:739)  at bss.an(SourceFile:526)  at bss.ak(SourceFile:355)      -- Initialization --  Details:  Stacktrace:  at bss.a(SourceFile:302)  at net.minecraft.client.main.Main.main(SourceFile:124)      -- System Details -- Details: Minecraft Version: 1.8.1  Operating System: Windows 8.1 (x86) version 6.3  Java Version: 1.8.0_25, Oracle Corporation  Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation  Memory: 99695424 bytes (95 MB) / 156512256 bytes (149 MB) up to 1060372480 bytes (1011 MB)  JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M  IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0  Launched Version: 1.8.1  LWJGL: 2.9.1  OpenGL: ~~ERROR~~  RuntimeException: No OpenGL context found in the current thread.  GL Caps: Using  VBOs: No  Is Modded: Probably not. Jar signature remains and client brand is untouched.  Type: Client (map_client.txt)  Resource Packs: []  Current Language: ~~ERROR~~ NullPointerException: null  Profiler Position: N/A (disabled)


Add my User to www-data group on fedora?

So I am setting up a localhost for web development on my Fedora 20 desktop.  I have installed httpd and so forth...  The issue I have is adding my user to the /var/www and to /var/www/html. I looked into /etc/group and did not see a www-data group nor a http group, but I did see an apache group.  But when I ls -alF /var:      drwxr-xr-x.  4 root root 4096 Mar  3 09:46 www/   And /var/www:      drwxr-xr-x.  2 root root 4096 Oct 14 21:17 html/   So they are owned by the root group.  How would you recommend setting up these folders so that my user has access to these folders for web development?


Automatic updates are not auto-downloading

I have my Xbox One set up to automatically download and install updates, the rest of my settings are shown below:    Is there a reason my games will show an update symbol on their tile, but they still don't download the update until I start the game manually?


Why is the 'straight line' path across continent so curved?

This is the result of mapping the straight line path from a point in US to Poland using .  Also, planes from Asia to US would travel almost over North Pole.    Why is the path so curved? I agree that this is a flat representation of a sphere, so I do expect some arc, but I don't think earth has this much curvature.  What am I missing here?


I've recently embarked on the journey of web development and have heard a protip to have dual bootable OS's. Since I already run Windows 10 for day-to-day needs, I wanted to install Ubuntu (18.04) as the second OS on my laptop (I can't afford a Mac for the moment either, so there's that).  I've dusted off my long-serving USB key, downloaded the Ubuntu installer and prepared everything using Rufus 3.1. I shut the system down and started the laptop back up, holding the F12 key for the USB key to boot up the installer.  BIOS started up, but after a while of trying to load, it popped the following message:  PXE-E53: No boot filename received PXE-M0F: Exiting Intel Boot Agent   Afterwards, it exits the BIOS and starts booting up the Windows.  Is there anything I may have done wrong or is it a known issue with a quick fix?  Thanks in advance for your help.


How to recover contacts from phone with broken & unresponsive screen?

I had a Samsung Galaxy Ace 4. Last week, it fell of and the screen broke. Still, when turned on, it seems to be everything else OK (the notificacion bar shows some pending messages, the hour keeps getting up to date, the USB symbol appears when connected to a PC), but below, all is bright white within the lines of the broken screen.  I got a new phone, as probably it'd be cheaper than waiting for the old one to be repaired, and once the SIM was inserted, I realized most contacts were stored on the device memory. I've been looking for a (cheap) way to recover the missing contacts, but almost every found solution has any of the given problems:   USB debugging should be enabled, seems it wasn't before the incident. Requires the use of some app running, which I can't achieve (say Kies or AndroidLost). Contacts coud be synced with the Google account, but it wasn't setted up.   Is there any other way to access this information to create de 'back-up' on a PC and restore it on the new device (even through console management of the phone)?  I appreciate in advance any given help.


I don't understand how this didn't make a bigger BOOM online.  It is well known in the industry that google does not index AJAX (just google-search "google crawls ajax") and see dozens of articles stating that google does not crawl ajax by default.  There's a whole  thing going on, if you want to help google crawl your AJAX based content (by creating mirror pages for the search engine).  But 4 days ago, .  Now, in their blog post about it Google explains that      Back then, our systems were not able to render and understand pages that use JavaScript to present content to users. [...] Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers.   (googlewebmastercentral.blogspot.com/2015/10/deprecating-our-ajax-crawling-scheme.html)  This is BIG and I don't see it getting attention online.  This is also a big f**k-up for me personally.  A couple of years ago I started using AJAX for loading user comments on my website, knowing that google does not crawl ajax.  Now I looked at a couple of my website's pages that are seemingly banned, or over-looked by Google.  And to my surprise, lots of these exact pages contain bad quality content (keyword stuffing etc.) within the comments.  How can one know if his AJAX based content is being crawled?  Using the "Fetch as Google" tool will NOT show the AJAX based content. Also, google-searching for exact phrases that appear in the AJAX based content does not return results.  The whole subject is very confusing.


Is there a way of conditionally triggering a compile-time error in verilog?

I have a parameterised module in verilog, where the parameters are a clock rate and refresh rate, which is used to calculate how many cycles of inactivity are inserted between instances of a repeating operation.  However, it is very easy to set parameters that cannot be attained (because the operation takes a non-trivial length of time, so the repeat would have to occur before it had completed), and at the moment the design does not give any feedback on this.  I was wondering if there was some way I could trigger an error during synthesis (or compilation prior to simulation) if the conditions cannot be met (i.e. if one localparam is less than another)?  Some equivalent of the popular C/C++ compile-time-assert hack, perhaps.


I would like to use Ubuntu on a virtual machine so that I can run an open source engineering software called OpenFoam.   I need instructions for a layperson. I didn't know what a virtual machine was two days ago, I don't know what an image file is, etc. I'm used to downloading software and using it.   Every website I visit that claims that its instructions are for "dummies" provides instructions that I don't understand.   I thought I'd just click on the orange 64 bit button on the Ubuntu website for 13.10, that it would download and that I'd somehow install it on a virtual machine. That download looks like it would take 10+ hours.   Can anyone help me with lay-language?


I installed xrdp on my Ubuntu 14.04 and am connected using Remote Desktop Connection. Everything works fine except "Tab" button has no effect. Any advice on how to fix it?


How to get a Wayland session in Kubuntu?

Ubuntu 17.04 comes with a wayland display server session. I've used and seen what it can do, I've used it before by selecting it from the lock screen just like selecting Unity 8 session, with a gear icon, that option doesn't appear in Kubuntu's lock screen. A blatant explanation would be that Kubuntu doesn't ship with wayland display server but it comes with an app exclusively called as wayland    The app itself does nothing that or I can't seem to understand how to use it and make wayland session possible    Update  I'm sure that I'm not running Wayland, but I've seen videos of KDE Neon running Wayland, is it just not possible in Kubuntu?


How long do you have to wait after being hit with a Zat'nik'tel before the count restarts?

In Stargate SG-1 when you fire a Zat the discharge increments as the following: 1 hit for stun, 2 is a kill and 3 disintegrates. But how long would you have to wait to hit again and be okay? Are they cumulative? If I was hit once now, in six months time if I was hit again would I be stunned or killed?


is there a way to install wordpad as such on ubuntu or is there an exact equivalent for wordpad? (not less not more) if yes, please let me know how to install and use it. I have been trying to install Abiword but the installation does not get completed. The install button turns to installing and then again turns back to install status. i would also like to know how can i use windows programs/apps on ubuntu by using vmware or any opensource stuff  i am new to ubuntu so pls explain me step by step


What to do when the question is updated to make your answer obsolete

I looked over the "your question may already be answered" suggestions box and didn't see anything that fit, but I've been known to miss those before so apologies in advance if this has been asked before (I imagined it must have been, but see nothing). What is the correct action when something like this happens:   A question is posted to SO.  You see a few missing lines of code that are the problem, so you post an answer saying so.  OP takes the code you've suggested and copies it into their question, along with something like "EDIT: I added this new code and it fixed part of the problem but it still doesn't work."    At this point the answer doesn't fit the question anymore; on the surface the answerer looks pretty stupid for saying "add these lines" when the lines were already in the question (as far as new viewers can tell, anyway). I commented to the OP and asked a follow-up question to see if I could figure out the rest of the problem, but no dice on that just yet and in the meantime the answer is sitting there looking silly. So, what's the proper procedure in this case? Delete the answer? Rollback the question edit? Leave it sitting there as is until we get to the bottom of the problem? (What if it turns into one of those rabbit-hole questions where the problem keeps changing with every fix?) Just leave it alone and forget about it?


Let $V$ a Euclidean $\mathbb{R}$-vector space with a general scalar product $\langle \cdot,   \cdot \rangle$. Let $v,w$ with $v\neq 0$ and $w\neq 0$. Show: If $v$ and $w$ are orthogonal to each other with respect to the scalar product $\langle \cdot,   \cdot \rangle$, they are also linearly independent. (It should be a general scalar product)  Not really sure how to start. I would assume, that they are linear dependent, but that didn't lead to any good solution.   Let $v=\lambda w, \lambda \in \mathbb{R}$ and $\langle v,w\rangle=0\dots$


Prove that the set $A=\{x\in\mathbb{R}:f' \text{ exists}\}$ is Borel whenever $f$ is continuous

Question:  Suppose $f:\mathbb{R}\rightarrow\mathbb{R}$ is continuous.  Prove that the set of points where the derivative of $f$ exists is Borel measurable. My Thoughts:  So, we are really trying to prove that the set $A=\{x\in\mathbb{R}:f' \text{ exists}\}$ is open whenever $f$ is continuous. So, if we can show that $A$ is open, then we would be done.  But, I am not sure if I should just play with the definition of differentiability, or if there is something topological I should be considering. Any help, suggestions, ideas, etc. are greatly appreciated!  Thank you.


how mysql query written in php to get json format output

i have written code in php file that to connect to database and get the requested data .    <?php  // 1. Create a database connection  $dbhost = "localhost";  $dbuser = "root";  $dbpass = "root";  $dbname = "widget_corp";    $connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);   // Test if connection succeeded    if(mysqli_connect_errno()) {      die("Database connection failed: " .       mysqli_connect_error() .       " (" . mysqli_connect_errno() . ")"    );  }        $query  = "SELECT * ";        $query .= "FROM subjects ";        $query .= "WHERE visible = 1 ";        $query .= "ORDER BY position ASC";        $result = mysqli_query($connection, $query);        $subject = mysqli_fetch_assoc($result);       print_r($subject);    ?>   i am getting the output in array format ,i want to get the out put in json format.how to change the code ,please help me .


Light switch won't turn off after fitting a new light bulb

Thought installing a cheap "smart" light bulb would be a harmless operation. Here's what I did:  With the light switch off, removed the old light bulb Installed a new light bulb and flick the switch on The fuse box switched off all our lights, so I unscrewed the new bulb and put the fuse box switch back on  Now, the light switch on the wall won't turn off (like it won't "click" into the off position). Here's the old working bulb:  Here's the new candle "smart wifi" bulb (I used their supplied B22 Bayonet Adapter) which caused this issue:  Can anyone explain what has gone wrong? I'm also intrigued into the (protection?) mechanism of the light switch which means it cannot be turned off anymore. More importantly, how do I fix it? I'm in the UK. Bulb specs: They both say 220-240v on them. New bulb which caused this issue is 5W, the old working bulb is 15W.


I just bumped into to unexpected things when reviewing the reopen queue.  Firstly, when clicked "Leave Closed", I got a popup asking "Nominate this question for reopening?". Thinking that perhaps I accidentally clicked Reopen rather than Leave Closed (pretty sure I didn't, though), I just closed it (did not click yes or no).  Secondly, closing the dialog (not clicking yes, not clicking no) moved onto the next item (which happened to be the "no items left" page). Going back, it appears I voted to "Leave Open".  The particular post I was reviewing was .  I would expect that closing the dialog would cancel whatever action was pending (reopen), rather than actually perform the action opposite of what it is suggesting (voting to leave closed). Additionally, I wouldn't expect the reopen confirmation to pop up on a "Leave Closed" vote.  (Yes, the result was what I intended, but the process was not at all correct.)


When I run ifconfig I see a specific mac address connected to my Ethernet connection.  So to change my mac address, I go to the topright where the internet connections are displayed, click on the Edit Connections option. Then I get the Network Connections popup, and I select the only Ethernet connection available and click the Edit button. From there I get the Editing Wired connection 1 window, with the Ethernet tab selected. In the Cloned MAC Address: input, I place in the NEW mac address I want to use, and click save.   From there I use ifconfig again in the terminal, and I see that nothing has changed.  QUESTION: Why is the previous process not changing my mac address. :(    UPDATE:  Just to clarrify why this question is not a duplicate, the answer linked is outdated (2011) and the Ubuntu layout is no longer the same. You'll see a comment on that question from someone else saying that the answer in fact does not work anymore


How can I make a checkbox with a Width & Height of 16px?

I want to have a large checkbox with a width of 16px and a height of 16px. I don't want to have to use a JavaScript plugin. Can this be done with modern CSS?


Shapefile projections not matching up in QGIS?

To start off with, I'm very new to QGIS. I'm attempting to place a shapefile with locations for 3 substations on a map of Peniche, Portugal. The locations for the substations are given in latitude and longitude coordinates.   When I start off by importing the substation shapefile, I make sure that both the layer CRS and project CRS are set to EPSG:32629, which gives each substation point the correct coordinates, however the scale is at 1:1, which is not correct. As soon as I then add a raster map of the region or a shapefile of Portugal using the same CRS the position of the substations also becomes incorrect.   I'm sure there's a simple solution I'm not getting, but I've been trying for a while and have had no success. Here's a dropbox link to the files


I have the same problem like this guy:     Do you have other solutions?


What are the steps to get the UVs back to a square with evenly spaced verts in 2.8?

I realize there are some things I don't know how to do. I previously had an addon for 2.79 that helped with UV layouts and it isn't available in 2.8. If I have basic shapes with increased detail, what are the steps to get the UVs back to a square with evenly spaced verts? If I'm trying to create a mesh I can use as a base to create vfx.


Install custom .cls using TeX Live in local directory

Background  There is a .cls file that pdflatex should use. I have read the following         Using TeX Live 2012, installed into /usr/local/texlive/.  I would like to install the .cls file into $HOME/.texmf (or some other non-standard directory), rather than $HOME/texmf. I thought this would be:  mkdir $HOME/.texmf initexmf --register-root=$HOME/.texmf sudo /usr/local/texlive/2012/bin/x86_64-linux/tlmgr conf texmf TEXMFHOME $HOME/.texmf mv amazingbook.cls $HOME/.texmf latex amazing-stories-1.tex   Problem  The initexmf program does not exist (in TeX Live 2012). I have read that the mktexlsr command is equivalent to initexmf.  Update  Ran:  mktexlsr $HOME/.texmf mv amazingbook.cls $HOME/.texmf mktexlsr $HOME/.texmf   The .cls file cannot be found when running:  pdflatex amazing-stories-1.tex   Question  What are the exact steps necessary to install a custom .cls file into a given directory and configure the environment so that the .cls file is visible from LaTeX using TeX Live 2012?


How do I recover data from hard disk of Windows

Internal hard-drive is completely fine. My Windows 8.1 don't reboot, it shows error that system32/winload is missing. When I try to install windows on other primary hard-drive (D:/), It completes steps of Installation but again displays error after reboot. (When PC reboots start Windows setup) I tried to install Windows 7, 8.1 No Refresh, Reset or any other troubleshoot method is working (even with command prompt it only states that no windows is found, however when you choose to boot into other OS, It lists 6 Windows OS which somehow is the number of attempts on windows installation I did) Doesn't work even with recovery tools. I know internal hard-drive is fine because I can see my data when I try to recover it using "Disk Management Recovery" by Windows.   But I can't recover it . Please help, I don't know elsewhere to go. And there are no tech shops near my home within miles.  Thanks!  Why this question is not a duplicate:  I am asking to recover data from a non-bootable windows. My hard-drive is absolutely fine. The data as I said, is not lost and is there. This is not a mechanical failure.


why is $\sum\limits_{k=1}^{n} k^m$ a polynomial with degree $m+1$  in $n$?  I know this is well-known. But how to prove it rigorously? Even mathematical induction does not seem so straight-forward.  Thanks.


I am exporting 36"x48" label intensive maps as PDF. For urban areas, ArcMap 10 hangs or kicks back an error saying it could not complete the operation. I have a quad processor with 4 GB ram. I also increased cache size to 100GB and have a large pagefile size, etc.   Will increasing physical RAM to 6GB help, or is this a software limit to how much labeling it can handle?


Do questions with bounties actually get more views and attention?

I've been browsing through a variety of sites on SE and noticed that questions with bounties do not seem to get more views, answers, or upvotes than those without bounties (except for a few examples that seem to get quite a few of all three).   Does pairing a bounty with a question actually cause users to view it more and give it more attention? I would've thought that getting +100 reputation for answering a question would cause many people to flock to said question, but I haven't observed such a phenomenon (perhaps I just haven't seen enough examples of questions with bounties?). Granted, I am still fairly new to SE and its websites, so excuse my lack of experience.


The quality of my font turns out to be bad due to the encoding. I did not find an answer among similar questions. I need to print in Russian text \documentclass[a4paper,12pt]{article} \usepackage[T2A]{fontenc}  \usepackage[utf8]{inputenc}  \usepackage[english,russian]{babel}   \begin{document}     0о) \end{document}


Is it possible to model spacetime as a function from an interval $I$ to a set $S$, where $t\in I$ represents time and $x\in S$ represents space?

According to wikipedia, spacetime is modeled via a pseudo-Riemannian 4-manifold, with one dimension representing time and the other three dimensions representing space.  I would like to know whether that manifold can possibly be viewed as a (surjective) function $F$ from a real interval $I$ onto a set $S$, where each point $t\in I$ represents time and each $F(t)\in S$ represents a collection of points in space (e.g. $F(t)$ represents all of space at time $t$).  Obviously this is not always possible for Riemannian 4-manifolds, e.g. the unit sphere in $\mathbb{R}^5$.  But I don't need it to always be possible.  On the other hand, I do need something that comports with physics; so I can't just take $\mathbb{R}^4$ itself, for instance.  Any help would be appreciated.


When are multiple closure reasons provided in the post notice?

I noticed in  that there are multiple close reasons presented. Here's a screenshot of the post notice:  From my understanding, only one close reason is selected when closure occurs, and this reason is typically the reason chosen first, most highly-voted for, or the reason a moderator chose. Quoting :  Multiple canned off-topic reasons are no longer shown on closures going forward; instead, only one is shown, and the one that gets shown is the first one to have been voted for. (This does not affect questions closed prior to the revamp.)  But this doesn't appear to be true given that multiple closure reasons are visible above. Question closure was very recently updated to no longer show the users who voted to close to the author in the author's post notice. Instead, it simply explains the closure reason and gives guidance on what to do next. So... When are multiple closure reasons displayed? Further, is this intentional? When the post notice changes were launched, it appeared that only the highest (or first) voted off-topic/community-specifc reason was chosen. Is this no longer the case?


Background: While trying to understand the Standard Model I stumbled on a paper that explained it in very simple terms. I recognized that I don't even understand the quantum mechanical way of the electric force. The paper pictured electromagnetic repulsion by two people on different boats, exchanging a bowling ball, one throwing, one catching. The bowling ball standing for an exchanged photon. That cannot be the whole of the truth, as it wouldn't, not even as a picture, explain the attracting force between two bodies with opposite charges. Now the question: how is electromagnetic repulsion and attraction really modeled in terms of quantum physics? Edit: the duplicates only address repulsion, or are out of reach for what I understand about quantum theory. So I state the missing part explicitly: How is an electron attracted to a positron by the exchange of a photon?


Prove that $\mathbb{R} \nsim \mathbb{R}^{\mathbb{R}}$.

The task is to prove that $\mathbb{R} \nsim \mathbb{R}^{\mathbb{R}}$.  I know how easy it is to prove this once I can use cardinality, but I can't. I need to show that a bijection between those sets doesn't exist (or by using Cantor-Schröder-Bernstein theorem).  The injection $f:\mathbb{R} \Rightarrow \mathbb{R}^{\mathbb{R}}$ is easy:  $$ f(h)=g_h, g_h:\mathbb{R} \Rightarrow \mathbb{R}, g_h(x)=h$$  So, $k(\mathbb{R}) \leq k(\mathbb{R}^{\mathbb{R}})$.  What I struggle to do is to prove that $k(\mathbb{R}) \neq k(\mathbb{R}^{\mathbb{R}})$.   Thanks in advance!


Failed to fetch index files when tried apt-get update

I recently have installed an Ubuntu operating system and now I have a lot of problems getting it to work.   First of all, I have not partitioned it when booting, and now I need to partition the HDD, but I think a program is needed so I have tried to get gparted. When I try to update my repository it shows some errors on the screen such as          some index files failed to download   or      404 package not found   I really don't know what to do with it. I am new to this operating system so I don't understand technical phrases.


How can I detect a user login programmatically?

I am developing a small daemon program which needs to run some instructions when a user logs onto the system (all kinds of logins included). In order to do so, I want my program to be woken up whenever this login event occurs. However, I don't want it to check periodically whether a new user arrived, which means it must not:   Read log files such as /var/log/auth.log periodically. Besides the fact that I would have to actually parse the file, I would also probably do it far too often (since there are very few logins on my system). Check the output of another command such as ps, who or w and keep track of users internally. Using this method, the program could miss some logins, in case someone logs in and out before my program runs its checks on the output.   Since I don't want my program to waste time, I thought about using I/O events, however... I don't quite see where to hook. I have tried watching over /var/run/utmp (using inotify) but it doesn't seem to react correctly: my program receives a lot of events when terminals are opened/closed, but very few when someone actually logs in (if any at all). Additionally, these events are hardly recognisable, and change from a login attempt to another. For the record, here is a little set of what I was able to catch when running su user:   When a terminal opens: IN_OPEN (file was opened), IN_CLOSE_NOWRITE (unwrittable file closed), sometimes IN_ACCESS (file was accessed, when using su -l). When su is started (password prompt): a few events with no identifier (event.mask = 0). After a successful login attempt (shell started as another user) : nothing. When closing the terminal: another set of unnamed events.   Is there another way to hook a program onto "user logins"? Is there a file reflecting user logins on which I could use an inotify watch (just like I could use one on /proc to detect process creations) ? I had another look at /proc contents but nothing seems to be quite what I need.  Side note : I thought about posting this on Stack Overflow since it is programming-related, but beyond implementation, I am more interested by the "visible" reactions a Linux system has when a user logs in (by "visible", I mean reactions we could observe/detect/watch out for, programmatically, without wasting time).


I am looking for a XSL snippet that simply returns the XML unaltered. It sounds trivial but I can't seem to find an example anywhere on the web. Any help out there?


Use the new helpcenter for the question/answer ban message

Related:    The helpcenter has . It still links to the  for further details. Besides that, the question ban message .  Now that we have the helpcenter, could the following changes be implemented?   Link to the help center instead of the meta post Remove the link to the meta post from the help center, and instead incorporate its contents into the helpcenter itself


Evaluate $$\lim_{n\to \infty}\frac{n+n^2+n^3+....+n^n}{1^n+2^n+3^n+....+n^n}$$  My Attempt  Was able to write as $$\lim_{n\to \infty}\frac{\frac{n^n-1}{n-1}}{n^n(\frac{1}{n})\sum_{r=1}^n\left(\frac{r}{n}\right)^n}$$  But not sure how to take it further though the denominator appears to be Riemann Sum


A correct explanation for the levitation of a superconductor above a magnet

I teach high school physics and I'm trying to put together a correct explanation for the levitation of a superconductor above a magnet without a high level of quantum mechanics (but consistent). I have seen several explanations online and in text books. Many of them say Lenz's law is not part of the explanation for the situation. I'll propose an explanation and hopefully someone can comment on what is correct and incorrect about it.   A superconductor is sitting on top of a magnet and the superconductor is cooled below its critical temperature. The Meissner effect results in the exclusion of the external magnetic field from the superconductor. The exclusion of the internal magnetic field creates a changing magnetic field on the surface of the superconductor which induces a current in accordance with Lenz's law (many sources I have found say that a surface current is created on the superconductor). The induced magnetic field from the surface of the superconductor repels the magnetic field of the magnet and the superconductor rises above the magnet until the force of gravity is balanced by the magnetic repulsion.   Note: I know that flux pinning is at play to contribute to the stability of the situation but I am just interested in clearing up the basic physics of how the levitation is possible.  So, are there surface currents? Is my explanation above consistent with current understanding of the situation? If anyone knows someone who I should contact directly who could help me that would be wonderful.  Thanks.


In JavaScript output in a currency format and change the font color depending on the output value

I have many results being output from variables into spans, for example: JavaScript document.getElementById("ResultsSavingsPerDay").innerHTML = SavingsPerDay; HTML Savings per day:  Thai Baht  which may display the result as something like: 4347.343543654 How can I format the output to the currency to display as 4,347.34? And if the output is a negative figure then change the font color to red also? I have seen similar currency formats on Stack Overflow, but not changing the results within a span. It is this part that I am struggling with mainly.


Is it possible to save settings for Microsoft Paint?

After closing paint the last used settings went back to default. I want them to be saved. Like the selected Brush-Tool, Color, Line-strength, etc.  Either after every usage or I define one I use most. Maybe through the registry or by start parameters?


are binding variables in dynamic soql not required to be in scope at the time of query?

This code works even though contactID is not in scope at the time of the query. Can anyone explain what is going on here?  String query = 'SELECT Id FROM Contact WHERE '; if (true) {     String contactID = '0031C00002s6r7aQAA';     query+='Id=:contactID'; } List<Contact> cons = (List<Contact>)Database.query(query); System.assertEquals(1,cons.size(),'1 contact');


Difference between Analytic and Holomorphic function

A function $f : \mathbb{C} \rightarrow \mathbb{C}$ is said to be holomorphic in an open set $A \subset \mathbb{C}$ if it is differentiable at each point of the set $A$.  The function $f : \mathbb{C} \rightarrow \mathbb{C}$ is said to be analytic if it has power series representation.  We can prove that the two concepts are same for a single variable complex functions. So why these two different terms? Is there any difference between these two concepts in general, please give example.  Thank you for your help.


Isomorphism between $\Bbb Q(i)$ and $\Bbb Q(\sqrt2)$

How can I show that $\Bbb Q(i)$ and $\Bbb Q(\sqrt2)$ as fields are not isomorphic. Is there an element of order $4$ in $\Bbb Q(\sqrt2)$?


printing float value producing wrong results

I've tried executing the below program and the output looks unusual.  public class FloatingPointIssue {  public static strictfp void main(String[] args) {      float floatValue  = 277677.86f;     double doubleValue  = 277677.86;      System.out.println(floatValue);     System.out.println(doubleValue);  }   Output :   277677.88 277677.86  There is absolutely no issue using double but when I tried the same with float, the output is not as expected. Can someone try to explain me what's happening internally(while using float) that actually caused this issue.  Many thanks :)


I get this error when I run the above command.  W: GPG error: http://packages.ros.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5523BAEEB01FA116 W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead.   I tried the methods posted in the forums but the problem isn't solved. The details about my laptop are as follows:  kv@kv:~$ uname -a Linux kv 3.19.0-49-generic #55~14.04.1-Ubuntu SMP Fri Jan 22 11:24:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


Tried installing windows with a installation CD, i deleted some partitions because it was an unknown partition (which was used by ubuntu) then the installation failed.Now whenever i boot up my laptop i get a unknown file system grub rescue error. What can i do that will fix this error? Is there anything i can do?  I have already tried installing windows xp, but it doesn't identify any hard drives. I've placed a ubuntu installation dvd in the disk drive, but i don't get the prompt to boot from disk. i've also tried going into the grub menu by holding the shift key. It'll say grub loading, followed by unknown file system.


Java method returns wrong answers after calling itself

I'm expecting isCorrect() method to return "true", because it should have all the conditions to reach that answer, but it only return "false" (many times at that according to the console). There are errors but I have no idea what they are. Please tell me what's going so wrong with this code.   public class BooleanMethodTest {         static int num1 = 1;     static int num2 = 2;     static int num3 = 3;      public static void main(String[] args) {             // it should print "true" but I get "false" instead         System.out.println(isCorrect("s1"));     }      public static boolean isCorrect(String s) {         boolean answer = false;         // step 1         if (s.equals("s1")) {             if (num1 == 1) {                 isCorrect("s2");             } else {                 System.out.println("else1");             }         }         // step 2         else if (s.equals("s2")) {             if (num2 == 2) {                 isCorrect("s3");             } else {                 System.out.println("else2");             }         }         // step 3         else if (s.equals("s3") ) {             if (num3 == 3) {                 answer = true;                 return true;             } else {                 System.out.println("else3");             }         }         System.out.println(answer);         return answer;     } }     Note on the duplicate  After exchanging all String comparisons with String#equals the problem still persists. So the linked duplicate does not solve the issue. However, the real issue was found, see the comment section.


What is the difference between "Redirection" and "Pipe"?

This question may sound a bit stupid, but I can not really see the difference between redirection and pipes.  Redirection is used to redirect the stdout/stdin/stderr, e.g. ls > log.txt.  Pipes are used to give the output of a command as input to another command, e.g. ls | grep file.txt.  But why are there two operators for the same thing?  Why not just write ls > grep to pass the output through, isn't this just a kind of redirection also? What I am missing?


Show that $f$ is differentiable on $(−1, 1)$.

Let $f$ be a function defined on the interval $(−1, 1)$ such that for all $x, y \in (−1, 1)$, $$f(x + y) = \frac{{f(x) + f(y)}}{{1 - f(x)f(y)}}.$$ Suppose that $f$ is differentiable at $x = 0$, show that $f$ is differentiable on $(−1, 1)$.  Need your kind guidance and help. Thanks in advance!


Do Inverters change the lithium-ion batterie's mA capacity and wattage?

let me say if I have a pack of lithium batteries connected in series and parallels, and i want to connect it to an Inverter, BUT...BEFORE I connect it to inverter, lets say it gives out 12 volts "hypothetically" some informations like 3.7 volt batteries, and 2500 mAh,  lets say then the pack gives 12 volts in DC and hypothetically again I calculate it ((still in DC)) is .....  W = V* Amp ... then it means wattage = 11.1 V * 5 Ah which is 55.5 W. then we got 55.5 watts, THEN....after we want to change the dc into ac it gives you 120 volts "please hypothetically" just answer me this, ARE the Wattage And Ampere are remains the same as DC? what would it be the result after AC?


Use function keys for pasting specific text

I want to assign some text to F keys on Windows 7.     For example, I want to press F5 to paste "000", or press F6 to paste ".00 US Dollars".  It would be appreciated if anyone can help me (a piece of software or code).


I'm creating a color object using the following code.  curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1];   How can I retrieve RGB values from the created color object?


Create filter if body of message contains my name

I have a couple on-going conversation threads in Gmail with a number of different people. Is there a way to setup a filter so that it will add a label if the body of any new, unread email contains my name? Then remove the label once I've read the email?


Which SE sites were created NOT through Area 51?

Most Stack Exchange sites started off as  proposals, passing through the definition and commitment stages there before moving on to become beta sites and perhaps graduated ones.  Presumably the flagship site SO, and perhaps some of the other oldest sites like Server Fault and Super User, didn't pass through this process. I believe some of the unusual outlier sites, like Stack Apps and , also didn't pass through Area 51.  What is the complete list of Stack Exchange sites which didn't start in Area 51?


Can I make a macro not collapse subsequent spaces?

Here's my command for formatting a particular word.  \newcommand{\foo}{\textsf{FOO}}   Used like this  This is \foo and \foo.   it produces the following    In plain text, the output is FOOand FOO., with no space after either FOO.  I want my command to behave spatially as if I had typed FOO instead of \foo. That is, the space which follows \foo should not be collapsed, so there would be whitespace before the and but not before the full stop.  How can I do this?


I've been reading around this and from the descriptions it all sounds trivial but I'm really struggling to get to where I want to be. You can see in the image below I just have a single object. Scale is 1.00 in all axis. But the Dimensions are 7.73m x 7.73m. I just want to keep the object the same size but have it's dimensions set to 350m x 350m.  It seems the suggested way is to go into edit mode and set the scale in there but that changes the size of the object. Is there any way to just set the dimensions without changing anything else?


Iam asking about the verb have when using it as possessing matter. I know the verb (has) comes with he,she,it and the verb (have) comes with I, you, we, they.   Now,why we say; he has a car, and we say in the question, does he have a car?   My question why not say, does he has a car?   Also, which sentence  is correct?      Does he has the responsibility of the accident.   Does he have the responsibility of the accident


What are the drop rates for the different rarities in Loot Boxes?

Loot Boxes can have items with rarities from Common, Rare, Epic, and Legendary.    What I'd like to know is, with the nature of Loot Boxes, what are the drop rates of Common/Rare/Epic/Legendary items? I'd especially like to know what are the chances to get a Legendary skin from a Loot Box.  For example, in TF2, Valve has made all crates a 1% flat chance to get an Unusual Hat.   In CS:GO, it's the same thing, with a 1% to get an Exceedingly Rare Special Item.  In Overwatch, what are my chances of getting a specific rarity from a Loot Box?


How do we know that we are really living in 3 dimensional world?  We can draw 3D in a paper that is one dimension. So, maybe the world around us just looks 3D! how can we prove that we're living in 3 dimensional world not one dimensional?


bibtex to bibitem not giving the desired results

I'm using Jabref to manage my bibliography while writing my tech. paper in WinEdt . Jabref creates a .bib file where items look like this:  @Conference{Hegyi2006_KF,   Title                    = {A comparison of filter configurations for freeway traffic state estimation},   Author                   = {A. Hegyi D. Girimonte R. Babuska B. De Schutter ·},   Publisher                = {Intelligent Transportation Systems Conference, 2006. ITSC '06. IEEE; 10/2006},    Owner                    = {scc},   Timestamp                = {2015.12.28} }   I'm attempting to publish in Elsevier and they use an elsarticle.cls class where the bibliography is in \bibitem format compiled by natbib. I searched the net and forums to convert the bibtex to bibitem. I reached a result where a minimum working example as follows  \listfiles \documentclass{article} \usepackage[backend=biber]{biblatex} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib}  @article{Hegyi2006_KF,   Author                   = {Traffic England government website},   Note                     = {Page Visited 15-May-2015},   Url                      = {http://www.trafficengland.com},    Owner                    = {scc},   Timestamp                = {2015.05.18} }   \end{filecontents*} \addbibresource{\jobname.bib}  \begin{document}  Some text \autocite{Hegyi2006_KF}.    \printbibliography \end{document}[/latex]   should produce a .bbl file where I should copy its contents and replace the   \printbibliography command in my original .tex file. ...that should work!!!  However, the example states that the .bbl file will have the \bibitem stuff. Mine doesn't .... mine comes out in this format .... and has no \bibitem at all  % $ biblatex auxiliary file $ % $ biblatex bbl format version 2.5 $ % Do not modify the above lines! % % This is an auxiliary file used by the 'biblatex' package. % This file may safely be deleted. It will be recreated by % biber as required. % \begingroup \makeatletter \@ifundefined{ver@biblatex.sty}   {\@latex@error      {Missing 'biblatex' package}      {The bibliography requires the 'biblatex' package.}       \aftergroup\endinput}   {} \endgroup   \refsection{0}   \sortlist{nty}{nty}     \entry{Hegyi2006_KF}{inproceedings}{}       \name{author}{1}{}{%         {{hash=3ccb259afa5edafde7862b7ab6ee125a}{��}{�\bibinitperiod {A.\bibnamedelimi Hegyi\bibnamedelimb D.\bibnamedelimi Girimonte\bibnamedelimb R.\bibnamedelimi Babuska\bibnamedelimb B.\bibnamedelimi De\bibnamedelima Schutter}{A\bibinitperiod\bibinitdelim H\bibinitperiod\bibinitdelim D\bibinitperiod\bibinitdelim G\bibinitperiod\bibinitdelim R\bibinitperiod\bibinitdelim B\bibinitperiod\bibinitdelim B\bibinitperiod\bibinitdelim D\bibinitperiod\bibinitdelim S\bibinitperiod}{}{}{}{}}%       }       \list{publisher}{1}{%         {Intelligent Transportation Systems Conference, 2006. ITSC '06. IEEE; 10/2006}%       }       \strng{namehash}{3ccb259afa5edafde7862b7ab6ee125a}       \strng{fullhash}{3ccb259afa5edafde7862b7ab6ee125a}       \field{sortinit}{A}       \field{sortinithash}{b685c7856330eaee22789815b49de9bb}       \field{labelnamesource}{author}       \field{labeltitlesource}{title}       \field{title}{A comparison of filter configurations for freeway traffic state estimation}     \endentry   any suggestions??? to reach the \bibitem thing....


Make new users take a short acceptance test before allowing them to post

In an aid to reduce the amount of rubbish that gets posted from brand new users (or long time listeners, first time posters), it could be useful to make them sit a short test (or an "interactive tutorial" might sound better).  This "interactive tutorial" might consist of an initial page presenting a cut-down version of the FAQ, highlighting what makes a good question, and what kind of things they should avoid asking.  The user would then proceed to a number of bad question examples, the user would then be required to select from a list of choices, what is wrong with the example question.  Of course, we wouldn't want to deny membership should anybody "not pass", so instead, whenever a user selects a wrong answer, they are presented with an explanation as to why their selection is wrong, and why the correct answer is a more suitable reason. The user should be forced to read this by using a short 30 second timer (or however long), before they can move on to the next question.  This could be extended to work on a per-action basis. For example, before a user can have privileges for an action (e.g. post question, answer, comment, vote up/down, etc.) they have to sit the "interactive tutorial" related to that action.  This could also be enforce on existing users. I would have no problem sitting a few short tutorials in order to earn my privileges back if it means we improve the content from new users.


Find all Profiles that can Edit or Update an Account

Can this be done using 1 SOQL Query?  I came up with the following:  SELECT Id, Name FROM Profile WHERE Id in     (SELECT Parent.ProfileId     FROM ObjectPermissions     WHERE SObjectType = 'Account'       AND (PermissionsCreate = true OR PermissionsEdit = true))   But this gives me an error:     The inner select field 'Parent.ProfileId' cannot have more than one level of relationships   This could probably be done in 2 queries, but it would be ideal for me to retrieve in a single result set otherwise I would have to write a script to combine results.


Slowest diverging sum of reciprocals of integer sequence

How can you construct a series $$\sum_{n=1}^\infty \frac 1{a_n}$$ which diverges very slowly to infinity where $a_n$ is always a positive integer and $a_{n+1}>a_n$? I know that if $a_n=p_n$, where $p_n$ is the nth prime, then the series diverges slowly. Is there a series that diverges even slower?


On proving that $f(x) = f'(x)\iff f(x) = e^x$. (Not aware of a possible duplicate.)

This is just a curious question, but is the following true?     $$f(x) = f'(x)\iff f(x) = e^x.$$   I can prove that $\dfrac{\mathrm d}{\mathrm dx}\left(e^x\right) = e^x$ from using the the formula, $e^x := \operatorname*{\lim}\limits_{n\to 0}(1+n)^{1/n}.$ For those who are not familiar with the proof, it can be found . Or, you can go  for a similar approach.  However, my question is asking whether or not $f(x) = e^x$ is the only function equal to its own deriv. I suspect it is true, but how can we prove that $e^x$ is the only value equal to its derivative, for any $x$?  I consider it very likely that there exists another question out there, perhaps exactly like this. If so, please comment the link below, and I will go straight to it, delete this post, and give you a muffin. I do not intend on trolling or wasting anyone's time.  Thank you in advance.


Solve the pde $u_t(x,t)=u_{xx}(x,t)-bu(x,t)+q(t)$ for $u(x,t)$

I have the example pde $u_t(x,t)=u_{xx}(x,t)-b(t)u(x,t)+q_0$, where $b(t)$ is a function of only $t$ and $q_0$ is a constant, $0<x<\pi$, $t>0$. The subscripts denote derivatives. I also have some boundary conditions: $u(x,0)=0$ and $u(0,t)=0=u(\pi,t)$. The problem solution using variation of parameters is $$u(x,t)=\frac{4q_0}{\pi a(t)}\sum\limits_{n=1}^\infty \frac{\sin((2n-1)x)}{2n-1}\int\limits_0^t e^{-(2n-1)^2(t-\tau)}a(\tau)d\tau$$ where $$a(t)=e^{\int\limits_0^t b(\sigma)d\sigma}.$$  The problem I'm working on is slightly different. It gives the pde $u_t(x,t)=u_{xx}(x,t)-bu(x,t)+q(t)$ where $b$ is a constant and $q(t)$ is a function of only $t$, $0<x<\pi$, $t>0$. The solution should be very similar to that of the example.  I don't know where to start. I'm using the textbook "Fourier Series and Boundary Value Problems" by Churchill and Brown, 7th edition, if anyone's interested. The "example" is problem 10 page 117 of that book.  Any help/hints would be greatly appreciated. Thanks!


Alignment issue in the Active questions page

When I went to the home page of MSE today, this is what I see:  It seems as though the "latest activity" text is sticking to the tags. Did a recent change cause this, or is this intended behavior? To reproduce this bug, go to the home page of any SE site or it's per-site meta. It only happens on the "Active questions" tab, so clicking on "Questions" in the side bar won't repro the bug. The only thing I can think of that could cause this was  Note that this is network wide:


I can not connect to my friends Minecraft Hamachi server

I am trying to connect to my friends Hamachi server, but whenever I go to my sever selection, it says can not connect. Is there something I am doing wrong? I have been using his server for a while, and this just started happening. I can connect to my other servers, but that one is not working.   Here is his server.properties:  #Minecraft server properties #Sun Dec 02 12:50:07 EST 2012 generator-settings= allow-nether=true level-name=world enable-query=false allow-flight=false server-port=25565 level-type=DEFAULT enable-rcon=false level-seed= server-ip= max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true snooper-enabled=true hardcore=true texture-pack= online-mode=true pvp=true difficulty=1 gamemode=0 max-players=20 spawn-monsters=true view-distance=10 generate-structures=true motd=A Minecraft Server


How to get seventh number ''drop"from drop#drop#drop#drop#drop#drop#drop#drop value of a column in sql?

I have a column in database which have following value   drop#drop#drop#drop#drop#drop#drop#drop   and I want to get 7th number drop from this value. I not want to split the string.


Will Questions asked by Anonymous Users get Accepted Answer Status?

This question also includes the questions owned by the Community User (incase the user who first asked the question deletes the account).  Can the anonymous user accept an answer to his/her question?


What is the purpose of curved PCB traces?

I have seen traces like this enough times to begin wondering if there is a purpose and benefit. The only technical explanation I can come up with is that perhaps these curved traces increase the inductance between the end-points (for the type shown on the right of the IC) and decreases capacitive coupling for the type shown at the bottom. If this is the case, why would that be desirable? If not, what is the purpose? Also, I thought it was generally back practice to include sharp edges in the traces.     This particular screencapture is taken from the PCB of the new


If $M \otimes N \cong M' \otimes N$, is it true that $M \cong M'$?

I tried using the universal property of tensor products to show that there are mutually inverse maps from $M \times N$ to $M' \times N$, and use this to show that $M \cong M'$, but I didn't get far. I know that this is true if $N = R$, but I couldn't think of a counterexample.


What shall I do in order to improve my site' google ranking from 3~4th to 1st?

I have one site made by Wix, have been seo working into this site for about 7 months. My site got ever 1st position in google search result for targeted keywords. But after 301 redirection and changing address in google search console, my site now gets in about 3~4th position. Maybe my site got ranking decreasing in google search. I want to rank my site in the 1st position. What shall I do?


Are the space sounds in Star Wars diagetic or not (i.e. Do the characters hear them)?

This question relates to this one:    Among the answers are  and , among others, that simple put, point out that just because we, the audience, can hear the sounds, doesn't mean they exist in universe.  There are entries, like   which assert it is something the TIE fighters are artificially generating to make use of more of the pilots sense and give them situational awareness.  But amost all these answers, the point doesn't appear resolved.  So:   Do we have evidence in-canon about whether the characters can hear other ships and/or hear explosions as depicted to the audience?  In other words, are the sounds  ?   clarification:   It matters whether they react to the sounds, not how the sounds are generated or get to their ears.


What's the best way to get address difference between a class variable and the starting address of a class object?

Need to generate unique keys for the class data members. Hence I am thinking of getting the difference between the address of the variable minus the address of the class object. For example:  struct X {   int i;  // &i - &X() = 0  (GCC)   double d;  // &d - &X() = 8  (GCC) };   This is a one time exercise and hence will be happening in very beginning of the code execution for all the interested classes. So typically I will be declaring a dummy object of the class and finding the address difference by typecasting. Such as:  X x; keyOf_i = long(&x.i) - long(&x); keyOf_d = long(&x.d) - long(&x);   Is there any better way? Assume that the access specifier (private) are not the problem.  Will be also interested, if someone has got any other approach to generate unique keys for class data variables apart from this way.    Update: With using offseof() macro, I am getting following warning in G++-6:      offsetof within non-standard-layout type ‘MyClass’ is undefined       Actually I have some string & other class variables as well inside MyClass. I am fine, even if this undefined thing gives unique address whatsoever. However, would like to get more information of offsetof() and other alternatives.


Could you think of any synonym phrase or words, so that they would be synonym with the following?  That idiot of a doctor The real palace of a house  Thanks in advance


In a multiplex theater, there is a discount scheme announced where one gets a 10% discount on the total cost of tickets when there is a bulk booking of more than 20 tickets, and a discount of 2% on the total cost of tickets if a special coupon card is submitted. Develop a program to find the total cost as per the scheme. The cost of the king class ticket is Rs.75 and queen class is Rs.150. Refreshments can also be opted by paying an additional of Rs. 50 per member.  Hint: k-king and q-queen and You have to book minimum of 5 tickets and maximum of 40 at a time. If fails display "Minimum of 5 and Maximum of 40 Tickets".  If circle is given a value other than 'k' or 'q' the output should be "Invalid Input".  The ticket cost should be printed exactly to two decimal places.   Sample Input 1: Enter the no of ticket:35 Do you want refreshment:y Do you have coupon code:y Enter the circle:k Sample Output 1: Ticket cost:4065.25 Sample Input 2: Enter the no of ticket:1 Sample Output 2: Minimum of 5 and Maximum of 40 Tickets   This is the code  import java.util.Scanner; import java.text.DecimalFormat;  public class CinemaTicket {     public static void main(String[] args) {         int no, refe, total = 0;         double cost, sum, sum1, sum2, sum3;         String ref, co, circle;         Scanner s = new Scanner(System.in);         System.out.println("Enter the no of ticket:");         no = s.nextInt();         if (no < 5 || no > 40) {             System.out.println("Minimum of 5 and Maximum of 40 tickets");         }         System.out.println("Do you want refreshment:");         ref = s.next();         System.out.println("Do you have a coupon code:");         co = s.next();         System.out.println("Enter the circle:");         circle = s.next();         if (circle == "k") {             total = no * 75;         } else if (circle == "q") {             total = no * 150;         } else {             System.out.println("Invalid Input");         }         if (no > 20) {             sum = ((0.1) * total);             sum1 = total - sum;             if (co == "y") {                 sum2 = ((0.2) * total);                 sum3 = sum1 - sum2;                 if (ref == "y") {                     refe = no * 150;                     cost = sum3 + refe;                 } else {                     cost = sum3;                 }             } else {                 cost = sum1;             }         } else {             cost = total;         }         DecimalFormat df = new DecimalFormat("#.##");         System.out.println("Ticket cost:" + df.format(cost));     } }    I tried this code, but it does not calculate the cost of the ticket.


Error in adding mapview in navigation drawer

I am getting an error     Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference     but i have done everything as per site i dont know whats the error please help I have done things in OnViewCreated and used child fragment also still the error is coming  fragment contact us   package com.example.tanis.myapplication;       import android.os.Bundle;     import android.support.annotation.NonNull;     import android.support.annotation.Nullable;     import android.support.v4.app.Fragment;     import android.view.LayoutInflater;     import android.view.View;     import android.view.ViewGroup;      import com.google.android.gms.maps.CameraUpdateFactory;     import com.google.android.gms.maps.GoogleMap;     import com.google.android.gms.maps.OnMapReadyCallback;     import com.google.android.gms.maps.SupportMapFragment;     import com.google.android.gms.maps.model.LatLng;     import com.google.android.gms.maps.model.MarkerOptions;       /**      * A simple {@link Fragment} subclass.      */     public class ContactUs extends Fragment implements OnMapReadyCallback {          GoogleMap map;         public ContactUs() {             // Required empty public constructor         }           @Override         public View onCreateView(LayoutInflater inflater, ViewGroup container,                                  Bundle savedInstanceState) {             // Inflate the layout for this fragment             View v = inflater.inflate( R.layout.fragment_contact_us, container, false );                return v ;         }          @Override         public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {             super.onViewCreated( view, savedInstanceState );             SupportMapFragment mapFragment = (SupportMapFragment)getChildFragmentManager().findFragmentById( R.id.map1 );             mapFragment.getMapAsync( this );          }          @Override         public void onMapReady(GoogleMap googleMap) {             map = googleMap;             LatLng pp = new LatLng(  28.6403159,77.376114);             MarkerOptions options = new MarkerOptions();             options.position( pp ).title( "WebTechniq" );             map.addMarker( options );             map.moveCamera( CameraUpdateFactory.newLatLng( pp ) );          }     }   XML  <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/frameLayout"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="com.example.tanis.myapplication.ContactUs">      <!-- TODO: Update blank fragment layout -->      <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:tools="http://schemas.android.com/tools"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:id="@+id/map1"         tools:context=".MapsActivity"         class="com.google.android.gms.maps.SupportMapFragment" />  </android.support.constraint.ConstraintLayout>


301 redirect rewrite query string in .htaccess

I am trying to perform a 301 redirect in .htaccess and I need to remove the query string ?view=full. Here is what I have that is not working:  RewriteRule ^/contact/?view=full$ /contact/ [R=301,L]   I have tried a variety of different solutions with no luck.


How can I cluster two machines to double the processing power?

If I had two computers running ubuntu server (or just one) could I "hook" the two machines together to double processing power?  How would that work?


What do I lose by not booking flights through a travel agent?

I take quite a lot of flights for both business and pleasure, and although I typically book my business flights through a (corporate-mandated) travel agent, I always book my personal flights directly with the airline (I should add that I am fussy, and I normally fly only with full-service airlines; no budget ones for me).  From time to time, I read that booking flights through a travel agent, either online or physical, can lead to cheaper prices. At least for simple trips (one airline, maybe a simple return), I have a hard time believing this to be the case; the airline has most direct control over their tickets, travel agents add a layer of extra indirection that has to be paid for, etc.  So am I losing anything by not booking with a travel agent? Am I really likely to get better prices?  Edit: I should be clearer - let me restrict the scenario by imagining that I already know what I want - e.g. to get from LHR to ORD on date X/Y/Z, with no stops, ideally on American Airlines. Can a travel agent still offer me something in that scenario?


Is This Laplace Transform Symbol Available in LaTeX?

I would like to use the Laplace transform symbol that appears in unicode (SCRIPT CAPITAL L U+2112)    However, I could only find the following two symbols can be used for Laplace transforms:    There are other symbols provided by the , but it seems that it does not work with pdflatex.  Any suggestions if a unicode-like symbol is available?


How can I find out what versions of Python I have?  I am using Ubuntu 14.04 (Trusty Tahr).


I'm only new to java and trying to make an equals code, but it won't work with ==, only with .equals() not sure why.      import java.lang.*;     import java.util.*;      public class password     {         public static void main(String args[])          {             Scanner Keyboard = new Scanner(System.in);             String guess = Keyboard.newLine();              String password = "1password";              if (guess == password) {                 System.out.println("Welcome");             } else {                 System.out.println("Login Failed");             }          }     }


Follow up question to: Why does logistic regression generate well-calibrated models?

I've read all answers and comments here:  but still not clear about the answer.  Can someone please elaborate why the following equation means model is well calibrated?     The two sides of above equation are sum of products. I don't quite understand why we can take  off the equation and have    Thank you very much!


Is there an advantage as to where password hash and salt occurs, in PHP vs in a database?  It seems having the process occur inside of a database would be the optimal solution; since the web server and the database would only have to exchange the password and not the salt.


Subspaces being homeomorphic implies complements being homeomorphic?

If $U$ and $V$ are subspaces of $X$ and $U$ and $V$ are homeomorphic, is it true that $X \setminus U$ and $X \setminus V$ are homeomorphic?


Can "would have" be used to express assumption or a guess?

I know that "would have" is usually used in a hypothetic situation.  For example, "I would have done that had I been able to" is not a real situation but a hypothetic scenario.   However, other similar structures, such as "might have" and "could have" can also be used to mean "assumption" or "conjecture".  For example, "He might have stolen the money", means that someone might have been the thief.  So, I would like to know if "would have" can be used in the same way.  For example, can I say "I don't know who would have done that except John" or "Only John would have done that"  Any advice and opinions are welcome.  Thanks in advance!


Is there a way to sort posts by taxonomy terms?

I was wondering if I could sort posts at all by taxonomy terms?  I've read that I can't, but I'm not too sure about that?    If so, how do I go about doing so?  Sorry for the rather short question.  I have made several topics over the last week regarding this question and all were very detailed and elaborate but I've yet to get a single response.    I am going to link them here in hopes I can draw attention to them (cause I can't set up a bounty yet).  Please let me know what I'm doing wrong, in asking my questions.  Did I ask something that made completely no sense?  I really do need the help.  I am self taught and I can't figure this out.  I also did not want to make exact replicates of the posts I've very carefully typed up already, but I may have to do so until I get some sort of answer.         Thanks StackExchange and sorry.


Encourage Questions to Include Code Samples

I know this has been noted before, but it's amazing how often people ask questions about code that's not working without sharing the code. And when they share code, it's often insufficient (which makes sense, because often if you can't solve a problem, it's often because you're looking in the wrong place). I'd like to suggest that we work harder to steer people away from abstract theoretical programming questions to more pragmatic, concrete situations. Anyway, I'd like to propose:   Can we update  to more strongly encourage the use of including code samples? Right now it simply says "We feel the best Stack Overflow questions have a bit of source code in them". Maybe strengthen that by preceding that sentence with something like: "If you are having problems with your code, always provide source code samples." Or maybe even better "If you are having problems with your code, always provide comprehensive source code samples."  Can we update  to reflect this, too? Right now that page says nothing about source code samples.  In the spirit of the "who reads the FAQ", perhaps we should tweak the the actual  page, too. There is a box titled "How to Ask" - "Is your question about programming?" that says "Provide details. Share your research." Maybe tweak this to also say "Include source code."   I just don't get the mindset of "let's not help them up front, but just tell them when they get it wrong." Waste of the OP's time. Waste of ours. Seems like there's a strong mindset to defend the status quo, rather than seriously considering ways to improve it.


I have a problem with this situation. Would you mind helping me?  To what place (does/do) either the man or his sons wish to go?    Can you show me which is correct? do or does is correct?


Transform a positive integer into a string of multiple zeros

Here is an interesting question, in javascript what is the best way to convert a positive integer into a string of multiple zeros? For example 3 will be convertd to '000', 7 will be converted to '0000000'.  I guess I can use a plain old for loop but it just seems to be too cumbersome to me.


Proof of one inequality $a+b+c\leq\frac{a^3}{bc}+\frac{b^3}{ca}+\frac{c^3}{ab}$

How to prove this for positive real numbers? $$a+b+c\leq\frac{a^3}{bc}+\frac{b^3}{ca}+\frac{c^3}{ab}$$  I tried AM-GM, CS inequality but all failed.


Is it possible to display a graphical application on another host/user

We have a small linux cluster ~12 computers and a similar number of users.  Is it possible for a superuser to launch a graphical application - say firefox or even a python script on another machine that is being used by another user?


How to create multiple partitions on a USB pen drive

I would like to be able to create 2 partitions on my USB pen drive: 1 readonly (cdrom) partition, and 1 writable partition (FAT32).  What I have tried so far with no success:   Using /sbin/gparted on Linux, I created two FAT32 partitions on the pen drive. Next, I created a small iso image (~300KB in size) , like so:  $ genisoimage -V myLabel -rJ -o /tmp/my.iso /path/to/data  Next, I dd'ed this iso to the first FAT32 partition, like so:  $ dd if=/tmp/my.iso of=/dev/sdb1 bs=1M conv=notrunc $ sync   (Here, /dev/sdb corresponds to my pen drive.)   Results:   The Nautilus file manager can see both the CDROM and the FAT32 partitions just fine. But gparted shows the overwritten (CDROM) partition's file-system type as 'unknown'! Just like gparted, Windows 7 is unable to recognize the file-system on the first (CDROM) partition (that Windows is hardwired to see anyway), and so prompts me to format it!   I'm unable to understand why Nautilus can show my partitions just fine but not gparted and Windows.


simulate ctrl + click with javascript or jquery (to open a new tab without focus)

I am playing with the jquery event object but I am stuck as hell  I read the API  but it's not really helping here, I am not even sure it's a good lead to do that  Do you have any suggestion ( the problem is to do the exact ctrl + click on a link). I saw some posts about it but nothing seems to work on the recent browsers  very simple exemple :  toto   // The goal is when I click on #toto, I would like #inANewTab trigger  // in a new tab without focus. To do that I was thinking // about replicate a ctrl+click event  $('#toto').click(function(){   ??? })


I want to round decimal values in C#. For example when a decimal value is < or equal to .5, It should take the original value → e.g 344.5 is rounded to 344 and if it is more, it goes 1 value up → e.g 344.51 becomes 345. It is pretty simple to do, but I have noticed an issue with Math.Round/Decimal.Round.  Below is the code I have used and I noticed that c sharp adds 1 for some numbers when the decimal is .5 and for others it just ignores it.  decimal x; x = 1.5M;  for (int i = 0; i < 200; i++) {     Console.WriteLine($"{x} becomes {decimal.Round(x)}");     x = x + 1; }  Console.Read();   Output:    Does anyone know how I can always get the desired result: if the decimal is less or equal to .5, take the base number, if it is more than .5, only then add 1.


Split subfigures over two pages without text between them

I would like to split 10 subfigures over two pages (6 at the bottom of one page, 4 at the top of the next page). I am using \ContinuedFloat for that. To set the position of the two blocks, I wrote [!b] and [ht] for each one, respectively. However, I get a full page of text between the two blocks of figures. If I write [H] instead of [ht], I get the second block (figures 7-10) above the first one (figures 1-6). Does anybody have an idea how to solve it? Thank you in advance. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption}  \begin{document} \begin{figure}[!b]     \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig1} \end{subfigure}     \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig2} \end{subfigure} \newline \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig3} \end{subfigure} \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig4} \end{subfigure}     \newline \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig5} \end{subfigure} \begin{subfigure}{.5\textwidth}     \centering       \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig6} \end{subfigure} \end{figure}  \begin{figure}[ht]\ContinuedFloat \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig7} \end{subfigure} \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig8} \end{subfigure} \newline \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig9} \end{subfigure} \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[trim=0 0 430 0,clip, width=1.0\linewidth]{xxx.eps}       \caption{fig10} \end{subfigure}     \caption{Description }     \label{fig:labelfig} \end{figure} \end{document}```


What can I do if my Schengen visa isn't issued by my departure date?

I applied for Schengen student visa for France. My flight departure date is on the 9th of this month (3 days to go). However, my application is still in process.   If it is still being processed after the departure date, what are the chances of a visa being refused? Would I still stand a chance of getting a visa?


I have 3 different sets of numbers, for example a={1,3,4} b={2,6} c={0}    the size of sets can be variable, e.g. one set with 5 elements, another with 3, etc.  I have saved these values in a hashmap in java,  HashMap H=new HashMap<String,HashSet<Integer>>();   for this example, the keys of H are "a","b",and "c".  I want to make all possible combinations of the numbers in these three sets, that is: 1,2,0 1,6,0 3,2,0 3,6,0 4,2,0 4,6,0    But I have a problem. The number of sets can also be variable, i.e. my HashMap can have 3 to 10 keys. Do you have any idea how I should iterate over the hashmap, so that I can make all possible combinations?  ANSWER: I changed the HashMap to Vector, however, it also works with HashMap with little changes    call the function as follow:    Iterate_over_map(0,new Integer[h.size()],h,final_list);   Iterate_over_map(int count,Integer[] curr,Vector<HashSet<Integer>> h,Vector<Integer[]> final_list) {     if(count>=h.size())     {         final_list.addElement(curr.clone());         return;     }      int next_count=count+1;     for (Integer element:h.elementAt(count))     {          curr[count]=element;         Iterate_over_map(next_count,curr,h,final_list);     }  }   OLD solution  for(int x:H.get("a")) {     v[0]=x;//node1 (an ortholog of node1)     for(int y:H.get("b"))     {         v[1]=y;//node2 (an ortholog of node2)         for(int z:H.get("c"))         {             v[2]=z;//node3 (an ortholog of node3)         }     } }   thanks a lot.


Change default location for Explorer opened via hotkey

My searching has only shown me how to change various shortcuts for Windows Explorer to open specific locations. While learning the command line options for explorer.exe is beneficial, I'm trying to change where Windows Explorer opens when opening it by hitting Windows + E (the shortcut)-  Super User question was particularly informative on the subject, but again - for shortcuts, not when using the global hotkey. Why do I want this? Windows + E is by far my favorite; why to open Window's explorer? But, most of the time I want to see my userdir. Also, I detest the favorites, libraries, and desktop/user directory shown (Why? because they don't represent the filesystem), it should only be computer/* <- This I've done. I want Windows + E to open to be {install_drive}/users/{user}, e.g. c:/users/payo.


Prove that a graph on $n$ vertices with girth $g$ has at most $\frac{g}{g-2}(n-2)$ edges

I'm not sure how to go about this. One of my thoughts was to take the number of edges in a complete graph, and subtract all of the edges that would be needed to make a smaller cycle.   If you have $C_5$, there is only one way to make a $5$-cycle on $5$ vertices, but there's $10$ ways to make a $3$-cycle, and...  I have no idea how to do this without counting things multiple times.


Uniform continuous of $f(x,y) = \sin(x^2+y)$

Let $f(x,y) = \sin(x^2+y)$. Show that $f$ is not uniformly continuous over $\mathbb{R^2}$.  I know that $g(x) = \sin(x^2)$ is not uniformly continuous over $\mathbb{R}$, but does it imply something about $\mathbb{R^2}$? How can we use the definition of uniformly continuity in $\mathbb{R}$ to uniformly continuity in $\mathbb{R^2}$?


Is there a way to use a library in a bookmarklet?

I want to use moment.js () in my bookmarklet, but I have never used a library and am unsure how I would go about adding it. Any help is appreciated.