Can third-order phase transitions be understood from a symmetry-breaking viewpoint?

First-order phase transitions like solid-fluid can be understood as breaking of translational symmetry into lattice symmetry (also rotations into discrete rotations). The characteristic of these transitions are latent heat. In general the first derivative of the free energy diverges. Second-order phase transitions can be phenomenologically modeled using Landau-Ginzburg formalism. Here spontaneous breaking of symmetry gives rise to different phases of matter. Spontaneous symmetry breaking predicts the values of the critical constants to a good approximation. We also know a few examples of third-order phase transitions. To list a couple, we have the Gross–Witten–Wadia and Douglas–Kazakov large-N phase transitions. I was trying to understand if this phase transition can also be explained in terms of symmetry breaking. Are there known arguments in literature which explain third order phase transition from this viewpoint? EDIT: I found my answer


So I have never actually found a good answer or even a good resource which discusses this so I appeal to experts here at stack exchange because this problem came up again today. What happens to the units of a physical quantity after I take its (natural) logarithm. Suppose I am working with some measured data and the units are Volts. Then I want to plot the time series on a log-scale, only the ordinate is on the log scale, not the abscissa. So the x-axis is definitely in time (seconds let's say) but what are the units on the y-axis? Will it be Volts or log(Volts) or something? If I square the quantities, then the units are squared too so what if I take the log? A rationale in addition to the answer will be appreciated as well.  I guess whatever the answer, the same goes for taking the exponential or sine of the data too, right?


How to pass an URL with whitespace in Python 3 urllib.request.urlopen() function?

This is the simple program I am trying to run which shows error. If I pass URL without whitespace, then the program runs properly.  Error: 404 Bad Request.    If instead of "Hey You", I pass "Hey%20You". The program runs correctly.


Swift Double convert to Int, the result is wrong

First  let mDouble = 19.9 * 100.0 // 1990.0 let mInt = Int(mDouble) // the result is 1989   but  let mInt = Int(1990.0) // the result is 1990   so, how to get the right result?


Why do some commands 'hang' the terminal until they've finished?

Sometimes you run a program from the terminal, say, lxpanel†. The terminal won't drop you back to the prompt, it'll hang. You can press Ctrl+C to get back to the prompt, but that will kill lxpanel. However, pressing Alt+F2 (which pops up a window to take a command) and running lxpanel works gracefully.  Why is this? What is different between running a command from the terminal and from the 'run' window that appears when you press Alt+F2?  † lxpanel here was just used as an example. I have experienced this with multiple programs


Using Daily/Alpha/Beta Builds Through Release

Heyo! I had a quick question about what happens when you use pre-release builds during and past the release they're intended for. Some clarification;  Hypothetically, I'm running a daily-live build of Ubuntu. Right now, that puts me I'm the release path of 17.10 (Artful Aardvark). If I were to run this, up to date, beyond the release of 17.10, I could use sudo do-release-upgrade (IIRC) to update/upgrade my system to that release, changing my update and support cycle to that of 17.10.   What would be the outcome if I just maintained the path I was on? Using just sudo apt update && sudo apt full-upgrade to update my system. Would I hypothetically be able to continue using a daily-live build? Would it eventually put me on track for the next release after, in this case, 18.04? Meaning at that point sudo do-release-upgrade will launch me into 18.04? Or will this update and build path be cut off when its intended release candidate 17.10 is pushed?


Comments for deleted question was not deleted from inbox section. I think they should be also deleted.   App Version: 1.5.3.5 Device: iPad Air 2 (Wi-Fi) OS Version: Version 9.3.5 (Build 13G36)


.cmd runs from cmd.exe but not from start menu / Run dialog

problem  If I run a .cmd file from cmd.exe it works fine. However if I run it from Start menu / Run line, it opens in Notepad++, my editor. (edit I've it installed for years, didn't update it recently. However, this phenomenon with the .cmds only started recently.)  Both time, I use a full absolute path. I use windows 7 x64.  registry  My HKLM/Software/Classes/cmdfile/shell/open/command's (Default) is set to "%1" %* and .cmd's (Default) is cmdfile in both HKLM and HKCU and there is no cmdfile in HKCU.   However the other keys I did not check / did not understand their meaning or significance, in particular I don't know an easy way to follow clsid values, and know what do they mean as a given key.  context menu  If I right click a .cmd the bold text is its name (edit) says "Open". But even from here if I click open, it opens in notepad++, my text editor.  icon (edited) If I go to the folder in explorer, the icon is a Notepad++ icon.  question  Why is the Run line behaving differently from the command line?  How can I restore my .cmds to run from the Run dialog, too?


Using Mathematica I notice that  $\cot^2(\pi/2)=0$  $\cot^2(\pi/3)+\cot^2(2\pi/3) = 2/3 $  $\cot^2(\pi/4)+\cot^2(2\pi/4)+\cot^2(3\pi/4) = 2$  $\cot^2(\pi/5)+\cot^2(2\pi/5)+\cot^2(3\pi/5)+\cot^2(4\pi/5) = 4$  $\cot^2(\pi/6)+\cot^2(2\pi/6)+\cot^2(3\pi/6)+\cot^2(4\pi/6)+\cot^2(5\pi/6) = 20/3$  It seems that the summation of below series  $\cot^2(\pi/k)+\cot^2(2\pi/k)+\cdots+\cot^2((k-1)\pi/k)$  is an integer when $k$ and $3$ are comprime and $N/3$ when $k$ is multiple of $3$. Why is that?


WiFi Hard Blocked on Toshiba Satellite a665-s6086

Before I begin I will preface my request by acknowledging that this question has been asked before. However, I ensure you that I have thoroughly examined all available and related questions on this site and google to no avail. I'm asking as last resort. Let me begin.  A few days ago, after I let my battery run out, my WiFi mysteriously was disabled. The 'Enable WiFi' option was grayed out and unable to be clicked. For some reason, Airplane Mode was enabled. I turned it off, and tried enabling wifi through the control panel thing, but it would immediately toggle back to Off. Just for reference, I am running Ubuntu 16.04 LTS.  The output of rfkill list is as follows:  0: phy0: Wireless LAN Soft blocked: no Hard blocked: yes 1: i2400m-usb:1-1.6:1.0: WiMAX Soft blocked: yes Hard blocked: no   The command rfkill unblock all (or even rfkill unblock 0) had no effect.  The output of sudo lshw -c network is as follows:  *-network                   description: Ethernet interface    product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:01:00.0    logical name: enp1s0    version: 05    serial: 1c:75:08:6f:8d:b3    size: 100Mbit/s    capacity: 100Mbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168e-2.fw ip=10.0.0.6 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s    resources: irq:24 ioport:6000(size=256) memory:d0404000-d0404fff memory:d0400000-d0403fff   *-network DISABLED    description: Wireless interface    product: Centrino Advanced-N + WiMAX 6250 [Kilmer Peak]    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:06:00.0    logical name: wlp6s0    version: 5f    serial: 00:23:15:96:7c:20    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-38-generic firmware=41.28.5.1 build 33926 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn    resources: irq:28 memory:d4600000-d4601fff   *-network DISABLED    description: Ethernet interface    physical id: 2    logical name: enx64d4da1963ef    serial: 64:d4:da:19:63:ef    capabilities: ethernet physical    configuration: driver=i2400m_usb firmware=i6050-fw-usb-1.5.sbcf link=no   Output of modinfo iwlwifi:   Output of lsmod | grep -e acpi -e wmi:   I can assure that I have looked at other solutions, all to no avail, such as:  -Checking to see if I can enable wifi in BIOS (I cannot)  -Taking out the battery pack, and pressing the power button and restarting (doesn't work)  -Triggering sleep mode in an effort to reset my computer (doesn't work)  It should be said that I have tried my fn+f8 button. Interestingly, this turns Airplane mode back on. All my function buttons seem to work fine, but the Wifi fn key only serves to disable wifi. On Toshiba Satellite computers there is a touch key panel between the speakers that has controls such as volume, wifi. This panel, which worked in windows, does not work in Ubuntu.  The best solution for this problem that I know is to boot windows and enable wifi through windows using the touch pad. But, unfortunately, I no longer have a working copy of windows.  Alas, I am at wits end! From what I read this hard-blocked wifi problem seems to occur frequently and all solutions that have worked for others, are not working for me. So I ask for your help, oh wise, benevolent sages of Ubuntu. Or I fear that my laptop will forever be tethered to an Ethernet cable.


When I make a vector of a parent class, if I put a child there, child's members will be lost?

(Sorry if this question was asked here before, but I searched for it for hours now, and couldn't find anything. Someone said that what I want is possible, and he told me how, I did as he said yet it is total failure.)  First of all, here is a class diagram for the easier presenting of the question.     Then the code which doesn't do what I want:  int main() {     Employee jack("Jack", 100);     People guys(jack);             // using push_back  ... }   So when this happens, as the debug mode shows, guys[0] will only have a name, no salary. Is it even possible, to an object in the vector to have other members than name? Or my only choice is to make an Employee vector?  Edit: Person is virtual by the way.


Accessing post variables using Java Servlets

What is the Java equivalent of PHP's $_POST? After searching the web for an hour, I'm still nowhere closer.


How do I grab video from webofstories.com?

I am trying to download videos from "web of stories" (). I tried all suggestions on , but no one worked. My browser is Firefox 11.0. Any ideas?


Cannot download Google Chrome for Ubuntu

Is there something wrong with my setup, because when I try to download the 64-bit .deb from Google the process just gets stuck? The spinner spins, but nothing happens.  Does it work for you?


I'm a webmaster working with Joomla CMS and my question is simple:   Can I totally replace Windows7 + WAMP Server with Lubuntu + LAMP Server?  Thank to you all !


This question might be dumb, but I noticed that there are two different formulations of the Lasso regression. We know that the Lasso problem is to minimize the objective consisting of the square loss plus the $L$-1 penalty term, expressed as follows, $$ \min_\beta \|y - X \beta\|_2^2 + \lambda \|\beta\|_1 \; $$  But often time I saw the Lasso estimator can be written as $$ \hat{\beta}_n(\lambda) = \displaystyle\arg \min_{\beta} \{\frac {1}{2n} \|y - X \beta\|_2^2 + \lambda \|\beta\|_1 \} $$  My question is, are the equivalent? Where does the term $\frac {1}{2n}$ come in? The connections between the two formulations is not obvious to me.   [Update] I guess anther question I should ask is,  Why is there the second formulation? What's the advantage, theoretically or computationally, of formulating the problem that way?


Here's the rendered image. The problem is with the shadows on the green object's right side. It's like a weird wave shaped shadow. And I get this result in all my renders where I use subsurf and smooth shading. I don't know if it has anything to do with them. Help if you can, please.  Many thanks  I've tried a few changes based on the two links, but it's still the same. So gandalf3, it's not the same question, the problem is different, as it seems.


Generate the smallest $\sigma$-algebra containing a given family of sets

My teacher gave me an example of performing the subject:     Example      Let $\Omega = \Bbb R$ and $\mathcal R = \{(-\infty,-1),(1,+\infty)\}$.   Then $\sigma(\mathcal R) = \{\emptyset, \Bbb R, (-\infty,-1),  (1,+\infty), [-1, \infty), (-\infty,1],  (-\infty,-1)\cup(1,+\infty),[-1,1]\}$.   There was a different example, where she also generated the smallest  $\sigma$-algebra for the family of sets $\mathcal A = \{A,B\} \subset 2^\Omega$ in the same way: $\sigma(\mathcal R) =  \{\emptyset, \Omega, A, B, A^C,B^C,A\cup B, (A\cup B)^C\}$.   I certainly understand why $\emptyset$, $\Omega $ and a family of sets itself are there, and I certainly know that $\sigma$-algebra is closed under the operations of complement and union. What I don't understand about the other elements of generated $\sigma$-algebras: why we are taking exactly them? Does this work in a general case?


Prove that for each integer $m$, $ \lim_{u\to \infty} \frac{u^m}{e^u} = 0 $

I'm unsure how to show  that for each integer $m$, $ \lim_{u\to \infty} \frac{u^m}{e^u} = 0 $.   Looking at the solutions it starts with $e^u$ $>$ $\frac{u^{m+1}}{(m+1)!}$ but not sure how this is a logical step.


Let $A\in \mathcal{M}_{m,n}(\mathbb{C}), B\in \mathcal{M}_{n,p}(\mathbb{C})$. I need to show that  $(AB)^t=B^tA^t$. I know that this is a very well-known property, but I am a bit stuck. So, I considered that $A=(a_{ij})_{1\le i\le m \\ 1\le j\le n}$ and $B=(b_{jk})_{1\le j \le n \\ 1\le k\le p}$ and then I took $X=AB=(x_{ik})_{1\le i\le m \\ 1\le k \le p}$, where $\displaystyle x_{ik}=\sum_{j=1}^{n}a_{ij}b_{jk}$. However, I don't know how to write the elements of $X^t$ now. I mean, I know that $X^t=(x_{ki})_{1\le k \le p \\1\le i \le m}$, but I don't know how to write $x_{ki}$ explicitely. P.S.: I am aware that there are other questions on this website where this was proved, but none of them explains this step that puzzles me. EDIT: I tried to add some more work, let me know what the problem is: $(AB)^t=(x_{ki})_{1\le k \le p \\ 1\le i\le m}$, $\displaystyle x_{ki}=\sum_{j=1}^{n}a_{kj}b_{ji}$ (I just switched $i$ and $k$ in $x_{ik}$'s formula) $B^tA^t=(y_{ki})_{1\le k \le p \\ 1 \le i \le m}$, $\displaystyle y_{ki}=\sum_{j=1}^n b_{kj}\cdot a_{ji}$


How do you know if a derivative word is actually an English word?

For example, "recidivistic" can be found in Merriam-Webster as an adjective derivative of recidivist.  How do I know if "recidivistically" is adverb form of "recidivistic"? It is not listed in Merriam-Webster, but it can be Googled.


What would you call a naive person who asks you for the information that he himself is supposed to work on it and submit to me

What would you call a guileless person (employee from another department) who repetitively asks you for the information that he himself is supposed to come up with to the point of annoyance like a illogical fool and inform me for us to process it (we are from two different department in one organization and I have to do his work for him and inform him and then he feeds the information in the system and generates report does the bureaucratic task of forwarding the paper work which really contain my hard work back to me).   The person is not shirking, he is simply blissfully unaware, feels entitled and expects/at times pushes other party to respond back with the information. PS: Inaction from Bad self serving management - The Reason why nothing gets resolved.    Again, he is not slacking, he is upgraded without proper orientation and is ill informed about the protocols by his boss and thus seeks information outside of his department to generate the information based report and typically asks me to whom in reality he has to submit the report which contains the information. I am report recipient who is the informer too, while i am suppose to be report recipient only. shirking, slacking is when one is evading work or duty. He isn't aware that he is..Does it still make him a typical shirker.


Why does changing LCD screen resolution (Windows 7) take several seconds?

Why does it take so long for a computer monitor to change resolution? Why does it take 2-3 seconds rather than, say, 50 ms?  E.g. my current Windows 7 with strong GPU and 24 inch monitor takes 2-3 seconds. Why so long? I know some might say "it's JUST 2 seconds", but come on... Games produce hundreds of FPS, and monitors work at 60 Hz, so what is it that takes so much time?  I remember this was the same in just about any machine I ever worked with.


How can I make my laptop boot automatically from the hard drive without having to press F10 each time?

I followed the instructions in  to   Once I installed Windows I found that I have to press F10 to select the hard drive every single time to make it boot into Windows. I tried re-enabling Secure Boot but then I am unable to find the hard drive in the bootable devices list.  What should I do?    my labtop is sumsang core i3  i mean that when i wanted to change my windows i can not find cd-rom in the list of F10 i saw the Instructions of this link    i Succeeded to do that and i changed my windows but then i can not go to windows automatically  I had to press F10 to select hard drive and i can go to windows i want To what it was before so I make secure boot (enabled) but I can't find hard drive on the list of F10.  maybe i Erred in doing my new windows  If i changed my windows again i can go to windows automatically or not  please i wait your advice and Instructions


Extrapolating with IDW (Feature Classes) in ArcGIS Pro?

I have been struggling to extrapolate beyond the extent of the point features input into the IDW tool of ArcGIS Pro.   I believe IDW interpolation is the method for me, i just need the process to extend beyond the input points slightly to fit a bigger area.   Specifying a mask in the environment settings seems only to clip the same extent (that is that of the input points), to the mask.


How to reset password for ubuntu running on windows through WSL?

I forgot root password for Ubuntu running on windows machine via WSL.Is there a way to reset password?


With which drush command can I update my Drupal 7.36 to 7.41?  I have tried so far the followings:   drush up drupal drush pm-updatecode   But nothings has changed in either the code nor when I look at the currently pending updates.


Is there any way to appear just online and not in-game to your friends (not offline, I know how to do that) while you're in a game?


My friend asked me to transfer money to her overseas' family, is that legal?

My friend asked me to transfer money from my bank account to her overseas' family because she has reached her limit of overseas remittance. She transferred AUD$4,000 to my account and asked me to transfer this money for her via an online APP. I'm not sure if this is legal or not. But I do feel something wrong with it.  Could you please help me to figure out if it is against the law? I would appreciate it.


Should moderator diamonds be inside or outside the highlight box?

In comments, moderators have their diamonds in the OP rectangle:        And in the review (suggested edits), mods have their diamonds outside the blue OP background highlight rectangle:        Of course, it Doesn't Really Matter At All, but it is a small discrepancy (I am not saying that in the review, OP rectangles have a bigger padding).


template class as template arguments in another class

So here is a question I could not get an answer to, even after searching this website (and others) for the last two days.   For the sake of argument, lets assume that I wanted to create two template classes a and b. Class a is just a user defined datatype, say a vector or matrix, so I can overload different operators and make working with these special datatype easier. Class b is going to take class a as a template parameter (which can be thought of a 2D field of vectors or whatever datatype a represents) and both class a and b should be declared in a header file but implemented in a .cpp file.   EDIT: I am aware what that templates are limited, in the sense that we have to implement them in header files. But I am also aware that we can define explicit template argument at compile time (if we know which template arguments will be taken) and then split the implementation into header and .cpp files. This works fine if my template arguments are standard c++ types such as float, doubles or int but I don't know how to proceed when the template argument is a class with template parameters itself, see the following code with explanations.  In code form, this would loke something like this  a.h  template<class T> class a {     public:         a(T);     private:         T data; };   a.cpp  #include <iostream> #include "a.h"  // explicit template declaration template class a<double>;  template<class T> a<T>::a(T in) {     data = in; }   b.h  template< class T> class b {     public:         b(T);     private:         T item; };   b.cpp  #include <iostream> #include "b.h"  // explicit template template declaration template class b<double>;  template<class T> b<T>::b(T in) {     item = in; }   and finally main.cpp  #include <iostream> #include "a.h" #include "b.h"  int main() {     a<double>    foo(3);   // this works     b<a<double>> bar(foo); // this doesn't     return 0; }   when I compile and run the above I get   main.cpp:7: undefined reference to `b<a<double> >::b(a<double>)'    I have been tinkering with the code for a while, I know the issue is with the b class. I have tried using   template<template<class> class T>   instead of   template<class T>   which I think should be the correct usage (or in a similar form) but then I am getting issues with the explicit template declaration in the b.cpp file and this is only as far as my template understanding goes.   Any ideas which changes should be made to b.cpp and b.h to make this minimal example work?


Continue numbering within the same enumerate

I have a long list that I number with enumerate.  Some of the items in the list should have a bullet before the numbering. The only way I succeed in doing this is by forcing the numbering of that item as follows:  \documentclass[11pt]{amsart} \begin{document}  \begin{enumerate} \item item no.1 \item item no.2 \item[$\bullet$(3)] No.3 \item item no.4 \end{enumerate}  \end{document}     But of course I would like the item no.4 to be numbered (4) and not (3) again.  How do I do this?


Is the mean (Bayesian) posterior estimate of $\theta$ a (Frequentist) unbiased estimator of $\theta$?

I am wondering about the different ways that Bayesian and Frequentist statistic connect with each other. I recalled that the Maximum Likelihood estimate of a parameter $\theta$ is  of that parameter. That made me wonder: Is the Mean Posterior estimate of $\theta$ an unbiased estimator? That is,  Does $\phi(x)=E(\theta\mid x)$, imply $E(\phi(x)\mid\theta)=\theta$?  Note that this is indeed a meaningful question, since $\phi(x)$, while it is a Bayesian estimator, is simply a function from the data to the real line and so can also be seen as a classical frequentist estimator. If this question cannot be answered in general, please assume the prior is uniform. If not, is there some other Bayesian estimator (i.e. a function from the posterior to $\mathbb R$) that is always an unbiased estimator in the frequentist sense?


Is light a particle with EMF or does it travel in wave?

Is light a particle which has a electromagnetic field around it OR does the particle itself travels in a wave like motion? IS it just the EM field which moves in a wavy motion like ripples?  (Please don't mark it as duplicate as i didn't understand other answers that's why i am hoping for a better explained answer without any mathematical notions)


I get blackscreen after boot in ubuntu 14.04

So today I woke up and couldn't log in into my user (the screen flashed and went back to the login screen), following advise elsewhere I deleted .Xauthority. Now I just get a black screen, I can only use tty's. I reinstalling unity but it also didnt work.  Edit: I installed gdm and it also doest load. It just shows the ubuntu loading screen forever.


Can Chrome browser history be exported to an HTML file?

In Google Chrome, is there a built-in method to make an HTML file I can save to my local machine, like the file for bookmarks?  If not, is there an extension that does the same?


How can I read a variables file into a bash script?

I'm creating bash scripts to copy files search errors etc. from all our test servers.  I want to create an input file for these servers because they’re all test systems so they change hostname and IP from time to time.   Currently, I have to change all scripts if a server is changed.   I want one input file so I only have to change it there.  So I only have to change the input file.  My input file I have created looks like this:  #!/bin/bash SERVER1=$(echo "node1.example.com") SERVER2=$(echo "node2.example.com") etc.   I have tried   export file="path/to/input/file"   and also   read file="path/to/input/file"   but it doesn't work.  Now I want to read the values $SERVER1, $SERVER2, etc. into my other scripts.  How can I do that?


Normals seem to be correct but dark spots still appear

With a lot of the models I have been importing from a game there are dark spots in some places. I removed doubles already and recalculated normals, but I still get this when rendering:    The dark spots are on the top and bottom walls on the right side. It's not a shadow because moving the sun lamp and even using ambient occlusion does nothing. I checked the normals, but they look fine.    The only things I can thing of that make this (imported) object different from one made from scratch are that it is already triangulated since it is a game asset, and it has sharps, which I have been told can store data. I'm probably missing something here; I've never seen this before though.


How can I get bring up a popup file browser in Blender 2.80 invoked by a button click in my addon, to define the name and location of a file to be exported?  In Blender 2.7x, I did this via the context window manager in the invoke function, but it is very possible that this hasn't been the preferred method for years, as I'm not finding useful documentation when I search for how to update this.  class MYTOOL_OT_write_data(bpy.types.Operator):     bl_idname = "mytool.write_data"     bl_label = "Write data file"      directory: bpy.props.StringProperty(subtype="FILE_PATH")     filename: bpy.props.StringProperty(subtype="FILE_NAME")      def invoke(self, context, event):  # 2.7x method         WindowManager = context.window_manager         context.window_manager.FILEBROWSERect_add(self)  # <-- error here         return{"RUNNING_MODAL"}      def execute(self, context):         directory = self.directory         filename = self.filename         # Write csv data file using normal python functionality         return{'FINISHED'}   In Blender 2.80, I am getting the error "AttributeError: 'WindowManager' object has no attribute 'FILEBROWSERect_add'".  Thanks for your help.    UPDATED SOLUTION based on brockmann's solution below.  The trick is to use the ExportHelper util (which existed long before Blender 2.80):  from bpy_extras.io_utils import ExportHelper  class MYTOOL_OT_write_data(bpy.types.Operator, ExportHelper):     bl_idname = "mytool.write_data"     bl_label = "Write data file"      filename_ext = ".csv"  # ExportHelper mixin class uses this     def execute(self, context):         filepath = self.filepath         # f = open(filepath, 'w')         # f.write(stuff)         # f.close()         return{'FINISHED'}


i'm implementing my first CNN for image classification in a field with very few research.  I'm aware i could extract feature and then try SVM, knn...  But i want to be sure CNN is not a viable solution.  I have already tryied different architecture, hyperparametrisation... Result have increase from 45% to 60%. I still have thing to try (data augmentation,dropout, transfer learning...)   Are there clue that  can tell me  CNN will not work fo my task, or should i try all method to be sure cnn is not viable?  For exemple in my case, i got 12 categorie. 8 are easy to classify but for the 4 other it's very hard, and all my modification significantly affect my accuracy for the 8 class, but just increase accruracy for the 4 other class a little


/boot full. Updates can't install. Can I delete things?

I'm running Ubuntu 16.04  I can't install the latest updates and the error it's giving me is that /boot is full.  Looking in /boot, I see a lot of the following files:  initrd.img-4.4.0-**xx**-generic  vmlinuz-4.4.0-**xx**-generic  vmlinuz-4.4.0-**xx**-generic.efi.signed  config-4.4.0-**xx**-generic  abi-4.4.0-**xx**-generic  System.map-4.4.0-**xx**-generic   **xx** varies from 21 to 38...   Can I and should I delete anything that's not the latest?


I am US citizen traveling to Hong Kong via Beijing. Below are my flights details   Landing in Beijing Friday, 2 October 2015, 08:50:31 Departure to HK Monday, 5 October 2015, 12:00:00  So my total duration is 3 days, 3 hours, 9 minutes and 29 seconds  If I count total number of hours based on the flight times I am over 3 hours 10 minutes. I would like to know if I will run into any issues at the airport? Based on the Wiki posted on the  I should be fine as the 72 hours count begins at the following day. Can anyone please share their experience?


Unable to block a website through System32/drivers/etc/hosts

I am trying to block social media and news websites on my local machine (Windows 7).  I added the below lines into my :  127.0.0.1 www.thatstamil.com 127.0.0.1 www.facebook.com   In that way Facebook is successfully blocked. But thatstamil.com is still accessible. How do I block this site?


How accurate is Stack Exchange's idea of time?

Currently there is an incentive to post a question in a specific minute of the hour (the first, for the record).  In order to do, I posted,  which was around 15 seconds past the top of the hour (which was 7pm in New York) according to my nptd synchronised PC.  After waiting patiently for a day my reaction to the gamification on SE had still not earned it's reward - and I'm as Mad as a Hatter (and not a "Hero of Time") but not so Mad I cannot wait until 7pm in Tokyo...  Question: just how accurate is the Stack Exchange time-keeping?


Is it possible to erase a TiKz node from the memory?

Given Martin Scharrer's nice answer to , I am wondering if one can "undefine" nodes. That is, I'd like to know of there is a command, say, \undefine{mynode} after which Martin Scharrer's command would return undefined. Here is an illustration.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{lipsum} \makeatletter \newcommand{\istikznodedefined}[1]{% \@ifundefined{pgf@sh@ns@#1}{\fbox{Sorry, I don't know about node #1!}}{% \fbox{Sure, I node where node #1 is!}}} \makeatother  \newcommand{\erasenode}[1]{\fbox{I can't erase node #1 yet}} % This is the command that I'd like to learn about (or create).  \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}  \begin{document} \istikznodedefined{a}  \lipsum[1] \tikzmark{a}  \istikznodedefined{a}  \lipsum[2]  \erasenode{a}  Here I'd like the command \verb|\istikznodedefined{a}| to return  \begin{quote} \fbox{Sorry, I don't know about node a!} \end{quote} but I don't know how to achieve this.  The real reason for asking this is that, if this worked, one could switch annotations on and off with e.g.\ \texttt{eso-pic}. \end{document}


What does the tilde at the end of a file name stand for?

In Windows, I believe that files with a tilde in the file name represent files that are currently open in an application. For example, Microsoft Word creates a file with almost the same name as the file you currently have open, but with a tilde in the name. It's icon is also partially faded. As far as I'm aware, this signifies a temporary file that exists   in case the application crashes and you didn't get a chance to save your file, or to allow the original file to remain unlocked by the file system and accessible to other applications.   In Linux, I ran into a *.log file with a tilde at the end of the file name (scan.log~). Does that mean the log file is currently open in another application that is potentially writing to it?


How to download all OpenStreetMap highways in a large area?

I need to download all highways as line features from OpenStreetMap in a large area (about 10.000km²). Therefore I wanted to use overpass-turbo with the following statement in the wizard:   highway=*   in my chosen bounding box.  Unfortunately it looks like my bounding box is too big, because I get the error:   runtime error: Query run out of memory using about 2048 MB of RAM.   Do I have to change my overpass turbo query or is it not possible to download large datasets in overpass turbo? Which alternative method could I use to download all highways as line features in a larger region. I need to have all attributes, like the type of the highway, "foot=yes/no/...", "access="yes/no/....", etc. and if I use something like geofabrik, these attributes do not appear.


How to estimate PostgreSQL reindexing time?

How do you estimate the total time reindexing an entire table will take in PostgreSQL?  I have a large PostgreSQL database, the primary table of which has 15 million records and 100 columns, and 200 indexes.  I'm seeing a problem where, after a night of processes loading data into the table, queries to the table are terribly slow for about 6 hours after the loading ends. However, these queries miraculously become fast again after 6 hours post-load.  Is this temporary slowness caused by Postgres updating indexes in the background?  I was thinking about running a REINDEX on the table immediately after loading ends, but I'm not sure how long this will take, and I'm worried it might take longer than the original load and will only worsen performance.


Why I have this error when I try to install this old blog on my local webserver?

I am pretty new to WP (I came from Joomla) and I am finding some difficulties trying to put on my local web server an old backup of a website (made using WP 3.5)  I have performed the following operation:  1) I have put the website backup into a directory named blog into my Apache www directory on my Ubuntu local system.  2) Then I have put the database backup on my MySql local server  3) Finally I have change the values in the wp-config.php file to use my local DB  The problem is that when I try to open the URL to see the website I see noting (a white screen)  Into the Apache log file (/var/log/apache2/error.log) I found the following errors messages:  [Fri Jan 10 22:04:50 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations [Fri Jan 10 22:05:08 2014] [error] [client 127.0.0.1] PHP Warning:  require_once(/var/www/blog/wp-load.php): failed to open stream: No such file or directory in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:05:08 2014] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '/var/www/blog/wp-load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:37 2014] [error] [client 127.0.0.1] PHP Warning:  require_once(/var/www/blog/wp-load.php): failed to open stream: No such file or directory in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:37 2014] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '/var/www/blog/wp-load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:38 2014] [error] [client 127.0.0.1] PHP Warning:  require_once(/var/www/blog/wp-load.php): failed to open stream: No such file or directory in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:38 2014] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '/var/www/blog/wp-load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:39 2014] [error] [client 127.0.0.1] PHP Warning:  require_once(/var/www/blog/wp-load.php): failed to open stream: No such file or directory in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:39 2014] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '/var/www/blog/wp-load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:40 2014] [error] [client 127.0.0.1] PHP Warning:  require_once(/var/www/blog/wp-load.php): failed to open stream: No such file or directory in /var/www/blog/wp-blog-header.php on line 12 [Fri Jan 10 22:38:40 2014] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '/var/www/blog/wp-load.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/blog/wp-blog-header.php on line 12   Why? what could be the problem? How can I try to solve it?  Tnx  Andrea


How do I make the word Virgo transparent so it shows the background of this image (background is obviously transparent)? I am using Photoshop.   I tried grouping layer 2 and the text layer and changing the blending mode options but it didn't work.


Arduino Boost Converter. Connecting load makes converter non functional

I am trying to build a DC-DC Buck-Boost Converter using  basic schematic and an Arduino with the analogWrite() function as my PWM generator. I only want to step up 2.4-3V to ~5V. If it's just the capacitor and no load, the converter works so good that I have to switch it off after a few seconds since the voltage I measure on my capacitor is exceeding the capacitor limit. However, when I connect any load to the capacitor(for example a motor or a resistor) my voltage drops to a really low value(0.1-2v) and stays that way no matter what frequency PWM signal I send to the transistor using Arduino. I really tried but couldn't find the cause of the problem. Is it because I have two grounds, the battery pack one and the Arduino one? Is it because of the inductor(I tried using a smaller, 45uH, torroidal one but couldn't get any better results)? So what am I doing wrong?   I only expect to draw 500mA of current at 5 volts at the output side, and according to  calculator my inductor and transistor should be fine.  Components: 100uF 35V electrolytic capacitor, 200uH inductor, BYW29 rectifier diode, TIP 120 power transistor, 1k resistor    A schematic of the circuit or at least how it is supposed to look. Maybe I miswired something? The resistor is to represent  the load, the value doesn't matter since my problem persists at any value but the multimeters "infinite" resistance.   This is how my circuit looks   I used one coil of an old transformer as my inductor    However I also tried this inductor


Why isn't the output of x single-quoted like y? My speculation so far is that because there's a single-quote inside x it makes it awkward if it would be printed with single-quotes. How can I prevent that from happening? Does it have to do something with escape sequences?  x = "-Why's that?"  y = "-What are you talking about dude?"  print ("%r\n%r")% (x, y)   Output:  "-Why's that?"  '-What are you talking about dude?'


Find $n$ such that $ \binom{2n+1}{n+2} = \binom{2n+1}{5} $


Copy a file to a directory that doesn't exist with only one command (Linux)

Is it possible to copy a file to a dir that doesn't exist such that it creates the directory, using only one command? Without using && and more than one command.  Edit: It is not duplicate, in the other ask the answer is a function, I ask about a command, only one command, without &&, functions, |, etc. It is a question for learn more and for know if exist commands that do it, because cp don't. Is a question for explain it in a high school.


From the chapter "Flash forward" in The Peace War, page 31:     She recognized the smell that that still hung on her helmet: the tracer stench that tagged their landing fuel.   What is this "tracer that tagged their landing fuel"?


Find the value of $\lim_{n \rightarrow \infty} \Big( 1-\frac{1}{\sqrt 2} \Big) \cdots \Big(1-\frac{1}{\sqrt {n+1}} \Big)$

$$\lim_{n \rightarrow \infty} \Big( 1-\dfrac{1}{\sqrt 2} \Big) \cdots  \Big(1-\dfrac{1}{\sqrt {n+1}}  \Big)$$  Attempt:   Let $y = \lim_{n \rightarrow \infty} \Big( 1-\dfrac{1}{\sqrt 2} \Big) \cdots  \Big(1-\dfrac{1}{\sqrt {n+1}}  \Big)$   $\ln y = \lim_{n \rightarrow \infty} \ln \Big( 1-\dfrac{1}{\sqrt 2} \Big)+ \cdots  + \ln \Big(1-\dfrac{1}{\sqrt {n+1}}  \Big)$  I am not able to move ahead really from here. Could someone give me an hint on how to move forward with this problem.  Thank you very much for your help in this regard.


Remove nVidia driver and go back to Nouveau

I've installed nVidia driver successfully but I want to go back to Nouveau driver and eliminate any xorg.conf file created by nVidia config tools.  What is the proper way to do it? (not ending up with no driver at all, or no X server)


What exactly happens when a built-in command is run in a shell?

I know that external commands are run in the shell by creating a separate process, but what exactly happens when a built-in command is run in a shell?  Are they executed as a function,  or does the shell create a new thread to execute them?


I want to show that if a finite abelian group has elements of order $m$ and $n$ then it will have an element of order $\text{lcm}(m,n)$.  First I proved the lemma if $a$ has order $m$ and $b$ has order $n$ with $m,n$ coprime, then $ab$ has order $mn$. This is because the subgroups $\langle a \rangle$ and $\langle b \rangle$ have trivial intersection (because the order of their intersection must divide their orders $m$ and $n$, which is a consequence of it being a subgroup of both), which implies $a^{i} \in \langle b \rangle$ iff $i \equiv 0 \pmod n$, and similarly $b^{i} \in \langle a \rangle$ iff $i \equiv 0 \pmod m$. Using that we deduce that $(ab)^i = a^i b^i = 1$ iff $i \equiv 0 \pmod {mn}$.  So if $a$ was an element of order $m$ and $b$ and element of $n$ with $g = \gcd(m,n) \not = 1$ I thought that $\text{lcm}(m,n) = \frac{m}{g}n$ so and $\frac{m}{g},n$ are coprime so I should construct an element (from $a$) with order $\frac{m}{g}$ then conclude the theorem by the lemma. For the construction I think it's just $a^g$.  I just have a nagging doubt about the correctness of the second proof, did I miss some important detail? Also if there are any neater ways to prove this (which don't depend on the structure theorem) I would like to learn them too.


Is it possible to create an autoforward rule and/or a mirror-like service for current users? We use Google Apps for Enterprise (paid version—includes Postini).  I need that emails sent from/to a specific user will also be sent to another email. Of course, this needs to be discrete, without the user knowing that.  Is it possible in any way?   Having a forward address in the user's settings box is, of course, not an option.


How secure would AES be with all round keys equal?

In effect the same 128 bit key is XORed at every round and before and after as whitening.  Would it be 2^128?  What are the dangers of such a naive key schedule and does AES suffer from them?  Edit: Fair enough, slide attack is a problem. It doesn't explain however why there is a key schedule instead of round constants.


Java random generate price in two decimal format

I wanted to random generate price in the range from 0 to 2.10 using Java. I wanted the price in the format like 0.00, 0.10, 0.20, 0.30, 0.40, 0.50 .... 1.10, 1.20 all the way to 2.10. My code as such:  private static DecimalFormat df2 = new DecimalFormat(".##"); double min = 0; double max = 2.10; double diff = max - min; double randomValue = min + Math.random( ) * diff; System.out.println(df2.format(randomValue));   However, it printed out values like .06, 1.0, .99, .02 etc. Is there anyway to format it?


This is about that old chestnut, $\newcommand{\d}{\mathrm{d}} \int \sin^2 x\,\d x$.   OK, I know that ordinarily you're supposed to use the identity $\sin^2 x = (1 - \cos 2x)/2$ and integrating that is easy. But just for the heck of it, I tried using the $u$-$v$ substitution method (otherwise known as integration by parts).  $$ \int \sin^2 x\,\d x = \int \sin x \sin x\,\d x $$  We can say $u=\sin x$ and $\d u=\cos x\,\d x$ while $\d v = \sin x\,\d x$ and $v = -\cos x$. When we put it all together:   $$\int \sin^2 x\,\d x = u v - \int v\,\d u = -\sin x \cos x - \int -\cos^2 x\,\d x$$  and doing the same routine with $\cos^2 x$ we get $u = \cos x$, $\d u = -\sin x\,\d x$, $\d v = \cos x\,\d x $ and $v = -\sin x$, leading to:  $$\begin{align}   \int \sin^2 x\,\d x = uv - \int v\,\d u     &= -\sin x \cos x - (-\cos x \sin x - \int -\sin^2 x\,\d x) \\     &= -\sin x \cos x + \sin x \cos x - \int \sin^2 x\,\d x \end{align}$$  which eventually works out to  $$2\int \sin^2 x\,\d x = 0$$  So I wanted to get an idea why this didn't work. Maybe it's higher math and the why will be beyond me (I would think that might be the case), or maybe it's one of those proofs that looks absurdly simple when shown that I am just unaware of.


If $M$ is a diagonal matrix, what is $M^\infty$?

We have the matrix: $$M = \left[\begin{array}{rrr} 0.8&0&0\\ 0&1.2&0\\ 0&0&1\\\end{array}\right]$$ I have got three eigenvectors:               (1   0   0)               (0,  1,  0)               (0   0   1)  And this is my task: We are interested in what happens to the system when we repeat the stepwise process several times. To get an idea of the development of the system we compute some powers of $M$. c) Compute $M^2, M^3, M^4$ and $M^5$. What can you say about $M^n$ when $n \to \infty$ in this case? Any suggestions? I do not fully believe my way of approaching this problem is the right way.


In case of myopia a parallel beam of light appears to come from the far point of the eye when we use corrective concave lenses. But we do not perceive it as it is coming from the far point, instead we feel it coming from its source. This is not how we perceive image formation by a plane mirror. In the case of a plane mirror we produce the reflected rays backwards to make them converge at a point behind the mirror and we perceive that light is coming from that point behind the mirror.  So what is the reason for this? How do we perceive distances?


Here's Prob. 8 in the Problems after Sec. 3.2 in Introductory Functional Analysis With Applications by Erwine Kreyszig:      Show that in an inner product space, $x \perp y$ if and only if $\Vert x + \alpha y \Vert \ge \Vert x \Vert$ for all scalars $\alpha$.    If $x \perp y$, then $\langle x, y \rangle = 0$; so for any scalar $\alpha$, we have  $$ \begin{align*} \Vert x + \alpha y \Vert^2 &= \langle x + \alpha y, x + \alpha y \rangle \\ &= \Vert x \Vert^2 + 2 \Re \bar{\alpha} \langle x, y \rangle + \vert \alpha \vert^2 \ \Vert y \Vert^2 \\  &= \Vert x \Vert^2 +  \vert \alpha \vert^2 \ \Vert y \Vert^2 \\  &\ge \Vert x \Vert^2.  \end{align*} $$ So  $$ \Vert x + \alpha y \Vert \geq \Vert x \Vert. $$  Am I right?  Now how to prove the converse? It is my guess that we will have to put in a particular value for $\alpha$.


How to achieve this particular photo filter effect?

I would like to learn how to achieve this effect where the only color used to represent an image is blue (or any color, for that matter). It seems useful for printing processes where only one color can be used (i.e. Risograph or screenprinting). Thanks for your time.


When is it appropriate to use the community wiki feature?  I'm not sure when it would be helpful to edit someone else's post instead of just discussing it in the comments.


Given an Op Amp where the output voltage is fed back into the negative terminal, why is the gain one?

Apparently, the gain of this Op Amp is one, but I can't see how I could figure that out. Can someone help?


Getting an error with reading from a .txt file

Heythere! So, i want to read text from a .txt file line by line.  (Content from .txt file)   110-Estrategia-150  120-Estrategia-200 310-Aventura-140 300-Acao-250 412-Estrategia-100   For that i've seen this on the internet.          try (BufferedReader br = new BufferedReader(new FileReader("data/events/20180422.txt"))) {          do{             System.out.println(br.readLine());         }while(!br.readLine().equals(null));     }   The thing is, when i run, it gets an error.  120-Estrategia-200 Exception in thread "main" java.lang.NullPointerException 310-Aventura-140 300-Acao-250 412-Estrategia-100     at leiaprogproject.LEIAprogProject.main(LEIAprogProject.java:19) C:\Users\Duarte Marques\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)


Is a "home" button on the navigation required if there is a link to the homepage using the company's logo?   Increasingly I have noticed more and more websites using the logo as a link to return to home instead of a clear Home button in the navigation but haven't found any good proof or research to suggest that this is best approach.   Is there a best practice guidelines or some kind of criteria (e.g. advanced users vs beginners) that should aid in making this decision.   Any thoughts or comments would be appreciated. Thanks


I already looked at related questions, such as , but I am just as baffled as before. MWE:  \documentclass{article} \begin{document} \thepage\par \null\null\null\null\null\null\null\null \null\null\null\null\null\null\null\null \null\null\null\null\null\null\null\null \null\null\null\null\null\null\null\null \null\null\null\null\null\null\null\null \null\null\null\null\null\null \thepage\par \end{document}   The above code produces a two-page document. It prints \thepage as 1 on both pages. Add another \null or two, and the second \thepage correctly shows as 2.  Apparently, \thepage does not kick in until about the third line of the page. I have tried this with more complicated code, and it seems to be the general case.  Bug? Feature? My mistake? Is there any way I can get \thepage correct on the very first line of a page? OK to use LuaTeX.


How can I keep theorem and proof in same location in *.tex file but appear in separate sections of document (with appropriate labels)

I don't regularly use LaTeX so apologies if this has an obvious solution. I am compiling theorems/lemmas and their respective proof in a document and I wanted to be able to somehow define a theorem with a label (for example, 2.20) and write out the proof next to it* in the *.tex document and then for it to render so there is a section for all the theorems (with their appropriate labels) and after all the theorems, a section for all the proofs (which would ideally have the same labelling). I'm not sure if there is a sleek way to do this and of course, I can always just manually label theorem and proof separately, so i'm really just looking if anyone is aware of a nice way to do this. Edit: In response to a comment, I am using \newtheorem command without any packages (for this purpose) currently, but am not against using any package. *It is correct that I wish to typeset theorems and associated proofs next to each other.


Do 3 consecutive primes always form a triangle?

Suppose that $a$, $b$, and $c$ are any three consecutive primes other than the triple $2$, $3$, and $5$.  Do they satisfy the triangle inequalities: $a + b > c$;  $b + c > a$;  $c + a > b$?  In other words, can we always form a triangle with sides being the $3$ successive prime numbers?  Is this a well-known result?  Where can I read about its proof or refutation?  Thanks in advance.


How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04? Currently Firefox version is 48.0. When I attempt to watch a video, I get the following Digital Rights Error message:  Your web browser is missing a digital rights component. In your web browser’s address bar, type about:addons, press Enter, and then on the left, click Plugins. For the Widevine Content Decryption Module, select Always Activate, and then refresh the video’s page and try watching the video. If the video doesn’t play, go back to Plugins, click the gear icon at the top of the page, and then click Check for Updates. When the plugins have updated, refresh the video’s page, and then try watching the video.  I didn't find Widevine Content Decryption Module. I searched for a solution, but it didn't work... One solution I found was to sudo apt-get install flashplugin-installer and then do the following: sudo apt-add-repository ppa:flexiondotorg/hal-flash sudo apt-get update && sudo apt-get install libhal1-flash  However, it didn't work and I still got the same Digital Rights Error message. I am able to watch Amazon Prime videos using Google Chrome, but not with Firefox. I want to know if it's possible on Firefox on Ubuntu 16.04.


Is this correct - FirefoxDriver driver = new FirefoxDriver();?

I have seen almost everybody using the statement WebDriver driver=new FirefoxDriver(); here we have created an instance of FirefoxDriver class having type as Webdriver;  What if i directly create an instance of FirefoxDriver as FirefoxDriver driver = new FirefoxDriver(); I have gone through many discussion where it is said that Webdriver is an interface. I know what interface is and how it works. I want to know if  FirefoxDriver driver = new FirefoxDriver(); is correct when i know that Firefox is the only browser i am gonna use in my selenium script?


The "an account" link (displayed with with "add comment") returns a 404

I was checking out Stack Apps and wanted to log in. I clicked "an account"…    …and the site returns a 404 Page Not Found:    Apparently the "add account" link is linking to http://site-name/help/users/login, which is an invalid destination. It should actually be http://site-name/users/login.  This is happening across the network, reproduced on Stack Apps, Stack Overflow, and Meta.


If $R=F[x,y,z]/(x^2-y^2z)$ why $\operatorname{trdeg}_F R=2$?

Let $F$ be a field. I know that $F[x,y,z]$ is a UFD, that $x^2-y^2z\in F[x,y,z]$ is prime. Let $R:=F[x,y,z]/(x^2-y^2z)$.  Q1) Why $R$ is an integral domain ? It's clear that $R$ is a field, and thus it's a domain, but why is it integral ? (maybe a field is always integral).  Let $S$ be the integral closure of $R$. We have that $\bar x^2=\bar y^2\bar z\implies \left(\frac{\bar x}{\bar y}\right)^2=\bar z$, we have that $\frac{\bar x}{\bar y}$ is integral over $R$.   Q2) Why now we have that $S\supset F[\frac{\bar x}{\bar y},\bar y]$ ?  After, they say that $\frac{\bar x}{\bar y}$ and $\bar y$ are algebraically independent, otherwise,  $$2>\operatorname{trdeg}_F \operatorname{Frac} F\left[\frac{\bar x}{\bar y},\bar y\right]\geq \operatorname{trdeg}_F R=2,$$ but I don't understand each inequality.   Q3) I mean, why $2>\operatorname{trdeg}_F \operatorname{Frac} F\left[\frac{\bar x}{\bar y},\bar y\right]\geq \operatorname{trdeg}_F R=2$, why $\operatorname{trdeg}_F \text{Frac}( F\left[\frac{\bar x}{\bar y},\bar y\right])\geq\operatorname{trdeg}_F R$, and why $\operatorname{trdeg}_F R=2$ ?


I am working in sharepoint site. In this site there is a user requirment where user want see the version numbers maintain by sharepoint in its OOB versioning feature in a document itself.   SO as the document ge modified sharepoint maintains the version number for each updation. User want to see that vesion number in that document itself as a text.  Can anyOne tell me Is it possible in sharepoint..? If yes the what will be best approch ro do it..?   Can I use document parser in this case..?  Thansks in advance Sachin


Why is electric flux due to a point charge placed at the face of a hemishpere, cone and cube the same?

In all these 3 cases, the net electric flux is found to be $q/2ε_0$. I think this has something to do with the integral of $\left(\mathbf{E}\boldsymbol{\cdot}\mathrm d\mathbf{S}\right)$ which appears on the left side of Gauss's Law. We are somehow exploiting the symmetry to arrive at the result where the $\mathbf{E}$ (or electric field) in the formula comes out of the integral. But I don't know how? Secondly, does the electric flux remain the same when we place the point charge on the face of an unsymmetrical 3d object instead of these 3 objects (cube, cone and hemisphere) ? If anyone would be kind enough to help me out in the simplest way possible, that would make my understanding clear!


I've seen papers saying toy ciphers can be improved with powerful key scheduling, but was wondering if there is evidence they are needed in reasonable ciphers? for instance AES. Is there any cryptanalysis which shows a strong cipher becomes dramatically weaker with simpler or no key scheduling?


Why must the future tense not be used after 'unless'?

!! Do not use the future tense after unless   [✓]  I won't go unless you go   [✘] [I won't go] unless you will go. [✘]   Why not? Even if the above is prescriptive, what may be some reasons? In my separate question , I quote: unless = if not. If not can precede future tense; so why can't unless?  Footnote:  motivated this.


Equation of a fitted smooth spline and its analytical derivative

I need to fit a spline function to a data set. I tried with bs, ns and smooth.spline. In my case the curve obtained by smooth.spline follows the trend in data better than with the bs and ns.  However, I do not know how to   obtain the equation of the fitted smooth.spline function? (namely, how to interpret the equation coefficients of the smooth.spline output)  compute the $R^2$ of the fitted function?  calculate the analytical first derivative of the fitted function, and obtain its equation (with actual coefficients)?   An example of data set can be computed as  library(stats) x <- 1:11 y <- c(0.2,0.40, 0.6, 0.75, 0.88, 0.99, 1.1, 1.15, 1.16, 1.16, 1.16 ) plot(x, y) spline <- smooth.spline(x,y) lines(spline)


If I have a list like this:

text 1

text 2

text 3

text 4

   What's the easiest way to re-arrange the DOM nodes to my preference? (This needs to happen automatically when the page loads, the list-order preference is gained from a cookie)  E.g.

text 3

text 4

text 2

text 1


How can I move /var to another harddrive?

I've put a new SSD as /dev/sda, the old HD as /dev/sdb.  And done a fresh installation as one partition on /dev/sda1.  The main quirk in my set-up is that I don't want to repartition the old HD, since it's got lots of data on it.    Since I had a swap partition on the HD before, I've put that into fstab.  I've also mounted the HD.  And /tmp (and /tmp/var) are in tmpfs.  But, how can I go about moving /var to the HD?  I can junk the old one (currently sitting under root at /dev/sdb5, and /mnt/hd).    Doing a simple ln -s /mnt/hd/var /var doesn't seem to work.  Is this something I need to do with mount -o bind?   I'm asking because the "attempt, fail, recover" cycle time is pretty long.


To find a distribution for the absolute difference between two exponentially distributed variables.

I have two variables $X_1$ and $X_2$ are IIDs distributed with the common distribution $X \sim Exp(\lambda)$ for some $\lambda >0$. I was working to find a distribution of $|X_1−X_2|$. I used convolution to find the function $f_Z(z)$ as \begin{align} f_Z(z) &= \int_{-\infty}^{\infty}f_x(x)*f_y(x-z)dx , \ for \ X_1 > X_2 \ \& \\ f_Z(z) &= \int_{-\infty}^{\infty}f_{-x}(x)*f_y(z+x)dx , \ for \ X_1 < X_2 \end{align} Is this the correct method to do it & how to find the range of $z$?


Beamer infolines outer theme with miniframe bullets only for the current section

I am wondering whether we can use the subsection part of the beamer infolines outer theme headline (the right half) to show the miniframe bullets of the current section. Assuming the section has three frames, the headline would look like this  First frame of the section:         Section Title @oo        Frame title    Next frame of the section:         Section Title o@o        Frame title    and so on.  I guess this can be done by hacking around \dohead, but I couldn't figure out how to tweak things. Any help will be greatly appreciated.


What is correct usage -- or correct semi-slang usage -- for verb in this sentence:   'he was a boy who got beat up often'


Where does this sequence $\sqrt{7}$,$\sqrt{7+ \sqrt{7}}$,$\sqrt{7+\sqrt{7+\sqrt{7}}}$,.... converge?

The  given  sequence  is $\sqrt{7}$,$\sqrt{7+ \sqrt{7}}$,$\sqrt{7+\sqrt{7+\sqrt{7}}}$,.....and  so  on.   the  sequence  is  increasing  so  to  converge  must  be  bounded  above.Now  looks  like  they  would not  exceed  7. The  given  options  are    ${1+\sqrt{33}}\over{2}$ ${1+\sqrt{32}}\over{2}$ ${1+\sqrt{30}}\over{2}$ ${1+\sqrt{29}}\over{2}$   How  to  proceed now.  Thanks  for  any  help.


Opinions on a statistical error in p values (re: standard deviations, t-test/Kruskal-Wallis) in a published study?

A large amount of computing resources is required to compute exact probabilities for the Kruskal–Wallis test. Existing software only provides exact probabilities for sample sizes less than about 30 participants. These software programs rely on asymptotic approximation for larger sample sizes. Exact probability values for larger sample sizes are available. Spurrier (2003) published exact probability tables for samples as large as 45 participants.[7] Meyer and Seaman (2006) produced exact probability distributions for samples as large as 105 participants.[8]


Google Detecting 404 Error when there is not one

I use a javscript slider called LayerSlider. In Google Webmaster tools it is telling me I have a 404 error with the following link: http://www.example.com/js/layerslider-5/skins/. It says that my home page links to that file path. When I check my home page I have code as follows:   $("#layerslider").layerSlider({   //Other LayerSlider Options   skinsPath: '/js/layerslider-5/skins/' });   This is the JS used to call LayerSlider. The skinsPath tells the script where to find the appropriate skin and apply it. Evidently Google is seeing this as a broken link.   How do I tell Google that this isn't a broken link? I can mark the URL as fixed but it just reappears.   On site there are no errors or problems, just in the webmaster tools.   Will this negatively effect the site in anyway?


How Can I get a file through this ajax script

I'm trying to send a file to a php script through ajax, however I see that it's not being passed properly as I tried to echo that file and got a null response. How can I solve this?   HTML JS code  <script type="text/javascript"> $(function(){     $("#first").submit(function(event){         event.preventDefault();          $(this).find(".error").remove();         file = $(this).find("input[name=file_save]").val();         form = $(this);         url = $(this).attr("action");         $.post(url,{file_save:file}, function(data){                 console.log(data);         },"json");         return false;     }); });  </script>   Php script (addImages.php)  <?php $username = $_POST['files']; $tableau["error"] = $username; echo json_encode($tableau); ?>


Some apps shown twice in dock when using Gnome Shell?

I just started using Gnome Shell and so far I love it. However, I added some of my frequently used apps as favourites to the dock, and some of them show up twice when launched. Once as if they are not running and then another that IS running, but with a low-rez icon.  So far this has happened with:   Komodo IDE SmartGit SmartSVN   It's quite annoying. I assume this happens because these apps run 2 processes, the first of which (that is used in the .desktop shortcuts) is just a bash script that sets environment variables and applies some logic prior to launching the actual program.  Does anyone know if there's any way to fix this?


How can I format a phone number from (###)###-#### to ##########? Is there best way to do that? I can use String.Substring to get each block of  numbers and then concatenate them. But, Is there any other sophisticated way of doing it?


Is it possible to create a Gmail filter that works on arbitrary headers?

(Not a dup:  really asks about the DeliveredTo header).  Bugzilla provides a number of headers telling you why you received a mail, such as X-Bugzilla-Reason. How can I filter on arbitrary tags such as this one in Gmail?


Airport Transit Visa for Belarusian Nationals Residing in US

My mother and I (both Belarusian citizens with US residentship) will be flying Chicago-Minsk with a 2-hour connection in Barcelona. Belarus is not on , however, Russia is. Given that Russia and Belarus are close allies, it seems odd that a restriction which applies to Russian citizens wouldn't apply to Belarusian citizens. If any Belarusian citizens transferred through Spain, did you need a visa?


Code formatting - tag/block rather than indentation - code block more obvious

One feature of SO that pains me every single time is having to manually indent all code four spaces, and usually copy four spaces to the clipboard so Ctrl+V acts as 'Tab'.  Maybe it's on purpose to stop walls of code, but I want to discuss it anyway because everything else seems to go so smoothly and this annoys me and slows me down every day.  ....  And I JUST found the 'code block' feature after many months (having looked through a similar question or two).  I guess then can I rephrase as, 'Please make the CODE BLOCK editor feature/button more obvious' ?


Is every person who has ever questioned what they did or what they are going to do a philosopher? Does this idea fall under philosophy in any way, or is it merely a semantic debate?


How can I pass into and use two integer arguments into a C# command line program?

I have a C# program called data-1 that I run on Mac OS  Where I run this I use:  > dotnet data-1.dll   How can I change the main so that I can enter something like  > dotnet data-1.dll 10, 20   and pass into the code the numbers 10 and 20?  static void Main(string[] args) {


Does Thor's hammer give power or channel it?

In Thor (2011), Odin said that whoever could lift Mjölnir can gain  the power of Thor, by which I assume that he means the power over thunder. Yet in Thor: Ragnarok he goes on about how the hammer does not give him power but instead channels it. So, which of these four options are true:  Odin gave Thor his power and the hammer only channels it. And in the first movie he enchanted it to allow the wielder to take on Thor's power.  Odin said gain  the power of Thor to look cool and actually doesn't mean it.  The hammer gives Thor additional power to his own. The additional power was what Odin referred to in Thor 1 when he said gain  the power of Thor (I'll stop now).  None of the above explanations, in fact it's (specify).


When should kids be allowed to walk/bike to school alone?

My 9-year-old is asking to bike to school without adults. He is generally responsible. So far I have said he needs to find a friend to go with him.   What can children do to convince their parents that they are capable of going to school on their own?  What factors do you think are important?


I'm trying to replace a string with empty space("") after a specific character(colon) ":"  example:2017 - Alpha Romeo United kingdom : New vehicle (by abc)  I want out put as "2017 - Alpha Romeo United kingdom"   it would be much appreciated if anyone can help me to write regex in smarty  Many Thanks


== in php causing false positives when variable is zero

I have the strangest php behavior I've never noticed before:  $array =array(0,1,2, 'parent');    foreach ($array as $value) {     if ($value=='parent')     {         echo $value;         echo '<br>';         continue;      }  } exit;   Will return  0 parent   I was wondering if anyone could explain to me why it matches the 0 to the string 'parent'?


Dividing long list of  tags into columns?

I've got a list of about 30 <li> in a <ul>. Is there any way, using CSS, to divide these into three columns of ten?


My_json : {   "Monday": {     "BusinessOpenHour": "0800",     "BusinessClosedHour": "1500"   },   "Tuesday": {     "BusinessOpenHour": "0800",     "BusinessClosedHour": "1500"   },   "Wednesday": {     "BusinessOpenHour": "0800",     "BusinessClosedHour": "1500"   },   "Thursday": {     "BusinessOpenHour": "0800",     "BusinessClosedHour": "1500"   },   "Friday": {     "BusinessOpenHour": "0800",     "BusinessClosedHour": "1500"   } }  I am not able to catch the Day in the key due to which IF statement is not working: try {     Gson gson = new Gson();     Reader reader =   Files.newBufferedReader(Paths.get(filepath.getValue()));                 Map<?, ?> map = gson.fromJson(reader, Map.class);     for (Map.Entry<?, ?> entry :   map.entrySet())     {                         log(entry.getKey() + "=" + entry.getValue());         final DayOfWeek dayOfWeek = LocalDateTime.now().getDayOfWeek();                         if ((entry.getKey().toString().toLowerCase() == dayOfWeek.getDisplayName(TextStyle.FULL, Locale.US).toLowerCase() ))         {             log(map.entrySet().toString());         }     }     reader.close(); } catch (Exception ex) {     ex.printStackTrace(); }


I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word.  I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX.  How do I set a different font/color/size for every type of section (section,subsection,subsubsection,...), without being limited to the standard LaTeX fonts? It would be nice to be able to choose any font from my system like XeTeX allows me to.  I have tried the package sectsty, but I was not able to figure out how to use Calibri with it.


I read that the number of atoms in the entire observable universe is estimated to be within the range of $10^{78}$ to $10^{82}$.  Does the Universe have finite number of particles? If so, how could it be determined?


What's the correct usage: embattled customers whose flats are in limbo despite them or their having made the payment? What's the logic?


Creating a branch from another branch and not having changes in first branch in I make changes in second branch

I have A branch which is waiting for MR(changes pushed to remote branch), at the same time I want to open new branch B and continue working(weekend). So I create  new B branch when I am in A branch. But when I do changes in branch B, A also get those changes. So my question is how I can create a copy of that branch without having any connection with changes and commits?


Imported .FBX file from fusion opens with multiple dotted lines and empties, I can't remove them without changing the objects' allignments

After adding joints on my model, I imported it as an .fbx file into Blender 2.8 to create an assembly animation.  But when Blender opens the file, there are multiple dotted lines which are centered in point, also there are lines (I found out they are called "empty") that I can not remove without messing up the positions of the objects. I removed the joint in Fusion and tried again, but they're still there. Do you know how can I fix this problem?


How to make a windows 7 installation usb in ubuntu?

How can i make a windows  installation USB? I already have the iso file, and i need to install windows 7 dual boot as i have to install my company software.  I am using netbook.  I used unetbootin, but failed.  Any quick and easy solution?


For my new database i want to save a given date and time and year from php to my database with mysqli, in sql i can make a field :  DATE  DATETIME  TIMESTAMP  TIME  YEAR   I'm using the database only with php, what type should i select? and for what reason.  I think datetime and timestamp are the best options. but cant find any reason why 1 should be better then the other. Can someone help me to chose ?  Or is it better to save date time and year separate?  I want to make querys to get values from last week etc.


Regression with independent variables as level (Low=1, Medium=2, High=3)

I have the following data :  Yield   Rain    PH  EC  OC  N   P   K   S   Zn  Fe  Cu  Mn  Hydro 7778.1  103.03  3   1   2   1   1   2   1   1   2   3   2   1 5929.4  91.23   3   1   2   1   1   2   3   2   2   3   3   1 2872.3  109.47  3   1   2   1   1   2   2   1   2   3   3   2 4332.7  92.58   3   1   2   1   1   2   3   1   2   3   3   2 5236    100.37  3   1   2   1   1   2   1   1   2   3   3   2 3086.5  103.68  3   1   2   1   1   1   1   1   2   3   3   2 4526.1  83.38   3   1   1   1   1   2   2   2   2   3   3   1   Where Yield is my dependent variable. and Rain , PH, EC ... are independent.  I have to use regression analysis for predicting the Yield.  But, I notice that accept Rain variables all others are ordinal levels. (Like High=3, Medium=2, Low=1) where PH, EC , N, P, Fe, Cu are same values for each observation  Which regression model is the best to predict the yield? I am using python with scikit-learn.


English version of Ubuntu with Italian keyboard

I want to install Ubuntu in ENGLISH (UK) but I have an ITALIAN keyboard, which has a different layout to the English keyboard. How can I install Ubuntu in English but select an Italian layout for the keyboard. I tried, but it would only allow me to select an English keyboard. Thanks


How or when is the featured tag supposed to take effect?

If I add or remove the  tag from a meta-topic, that doesn't take effect immediately -- i.e. the text isn't immediately added or removed from the sidebar of the main site.  When and how does it take effect? E.g. is automated, how often does that task run, are there any known bugs, and how (or after how long a delay) can I tell if it's not working properly?  I did the following:   Add the featured tag to a topic  The topic was later displayed in the side bar. Add the featured tag to a second topic  The second topic was later also displayed in the side bar. Remove the featured tag from the first topic  The second topic was removed from the side bar and only the first topic is now displayed there.   Is this a bug or will it fix itself I wait?    No, having seen it fixed three hours ago, I see the problem again now.  So perhaps I suppose it is a cache problem (and maybe varies depending on which server I happen to get).


Find the $n$th term of sequence in the form of $a_{n+2}=ba_{n+1}+ca_n+d$

$a_1=1$, $a_2=3$, $a_{n+2}=a_{n+1}-2a_n-1$   How do you solve this? I only solve the sequence in the form $a_{n+2}=ba_{n+1}+ca_n$ before by writing it in $x^2-bx-c=0$ but for this I don't know how to. Please help


User profile Badge progress bar shows a completed bar, not the next one to get

Noticed the bug on SuperUser profile page, Newest badge is also Supporter and next badge is also Supporter.


Are the hoses in toilets in Asia something I should know about?

I have noticed random bits of hose without proper fittings before I think for example in India and just assumed they are for use by the cleaners or for filling the water jug in .  But Now I'm travelling in Malaysia and Singapore and there are more western toilets than squat toilets in the places I've been yet proper hoses with proper fittings are very common in toilets:  (Hose next to a Western style toilet in my hostel in Chinatown, Kuala Lumpur.)  At one place in Singapore there were even signs on each cubicle door stating whether it contained a western or squat toilet, but also whether there was a hose! (I didn't take a photo of the sign, unfortunately)  This makes me think there is a use for the hose for clients, not just cleaners. But for what purpose? Should I know how to use it as a tourist? Please tell me it's not a kind of alternative to a bidet!  Possibly related is the fact that many toilet floors are awash with water. This can be a big problem if you're not wearing waterproof shoes or have to lower your trousers and keep them dry. Other than this toilets are pretty clean and I've seen both the hoses and the wetness in what I would regard as somewhat "fancy" places.


How to show that ${\Bbb Q}[x,y]/(x^2+y^2+1)$ is a PID?

I know that ${\Bbb Q}[x,y]/(x^2+y^2-1)$ is not a PID, because it is not a UFD.  But ${\Bbb Q}[x,y]/(x^2+y^2+1)$ is a PID.  I heard about some proof using Hochschild-Serre spectral sequence. I was wondering if there an elementary proof? Here's my attempt: Let $A=\Bbb Q[x]$, $B=\Bbb Q[x,y]/(x^2+y^2+1)$, $\phi:A\to B$ the natural inclusion homomorphism. For a nonzero prime ideal $I$ of $B$, we have that $\phi^{-1}(I)$ is a prime ideal of $A$.  $\phi^{-1}(I)$ is a nonzero prime ideal of $A$. If $g(x)+yf(x)\in I$, then $(g(x)-yf(x))(g(x)+yf(x)) = g(x)^2-y^2f(x)^2=g(x)^2+(1+x^2)(f(x)^2\in A$. $\phi^{-1}(I)=(h(x))$, where $h(x)$ is irreducible in $\Bbb Q[x]$. $F=\Bbb Q[x]/(h(x))$ is a field. $\phi$ induces a ring homomorphism $F=A/(h(x)) \to B/(h(x)) \to B/I$. $B/(h(x))\cong F[y]/(y^2+x^2+q)$. If $y^2+x^2+q$ is irreducible in $F[y]$, then $F[y]/(y^2+x^2+1)$ is a field, so $(h(x))$ is a maximal ideal of $B$, so $I=(h(x))$ is principal. Otherwise, $y^2+x^2+1$ is reducible, so $y^2+x^2+1=(y-k(x))(y+k(x)) \in F[y]$. This is equivalent to $h(x)\mid 1+x^2+k(x)^2\in \Bbb Q[x]$. Claim (hard): If $h(x)\mid 1+x^2+k(x)^2 \in \Bbb Q[x]$, then $h(x)=f(x)^2+(1+x^2)g(x)^2$ for some $f,g\in\Bbb Q[x]$. $(f(x)+yg(x))(f(x)-yg(x)) = h(x)\in I\subset B$, $I$ being prime implies WLOG $f-yg\in I$. $B/(f-yg)\cong F[y]/(f-yg,y^2+x^2+q)\cong F$, so $(f-yg)$ is a maximal ideal, so $I=(f-yg)$ is principal.  But I was not sure about the step 8. If we replace $\Bbb Q$ by $\Bbb R$, then the problem become easier because the only field extension of $\Bbb R$ is $\Bbb C$. But for $\Bbb Q$, it is much harder.


Use the result of FPeval to color a table cell

I am trying to give a table cell a grayscale color value based on it's numeric value. So far I have the following code  \documentclass{article} \usepackage{fp,xcolor,colortbl} \FPeval{\resb}{0.5}  \newcommand{\he}[1]{%     \FPeval{\resa}{2 * #1}%     \cellcolor[gray]{\resa}%     #1  }  \begin{document} \begin{tabular}{| c | c | c |}     \hline     \he{0.1} & \he{0.2} & \he{0.3} \\     \hline     \he{0.5} & \he{0.8} & \he{1.0} \\     \hline \end{tabular} \end{document}   The tables contain all floating point numbers. The error I get is :   Undefined control sequence. <argument> \resa    Is there a way I can use the result from the FPeval to color the cell?


WP 3.1 - archive pages for custom content types possible now without a plugin?

I noticed that WP 3.1 supposedly has '', however, I can't see that implemented yet?  I've been using a plugin called 'Simple Custom Post Type Archives' to view custom posts at the url , but wanted to use the in-built capability considering it is 'now possible'.  Has anyone else had the same issue?  Thanks  osu  PS. I'm using archive-custom_post_type_name.php to try and style my custom post type archive page


Can I delete the logs in the /private/tmp folder?

Seems like there are around 5,000 wifi logs, each 2MB each, totaling nearly 10GB on my disk in /private/tmp. Can I delete these logs, or will macOS automatically delete them itself? I tried making a file using the mkfile command until I had about 2GB of disk space left, but nothing was automatically cleared.


When I create a clan in the multiplayer menu, it says clan created but I cannot add or invite people to my clan. I go to create a new one assuming the request was canceled or not entered correctly, it says clan name already exists as if someone else created it.   Is this a bug? Did I do it wrong? Or am I missing something?   I'm on the PS3. Will this also happen on my Xbox 360 Version?


Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'oracle-java8-installer' has no installation candidate   this is error I am getting while installing java. I tried various command like apt-get update and apt-get upgrade and other stuff also, but still not getting any positive result.


How to bind additional mouse buttons to be modifiers (Shift/Control)?

System: Ubuntu MATE 17.04  I use control\shift + [key] keybinds often, and plan to use lot of hotkeys with those modifiers. Because sometimes using grid layout I will need to be pressing buttons like "F5-F8" with modifiers, or use "q", "a", "z" (which are pressed with pinky finger) with shift\control, having to shift whole hand to do that can be sub-optimal, unless you have both hands on keyboard, so when you use mouse it makes such hotkeys not optimal.    For that reason I am in need to bind additional mouse keys to be "Shift\Control" modifiers, so I could press "Mouse_8 + [key]" and it would process it as "Shift + [key]".  Because there are hotkeys with ctrl\shift all across keyboard, and because shift press can be used by itself to modify mouse panning behavior, just binding each "Mouse_8 + [key]" separately is no good. For example I could just do separate binds like this: "Mouse_8 + F1" = "Shift + F1" "Mouse_8 + F2" = "Shift + F2" "Mouse_8 + F3" = "Shift + F3" "Mouse_8 + F4" = "Shift + F4"    But this would create need to have complex xbindkeyscript, complicate rebinding process, and it will mean using mouse button in same way as shift for panning will be impossible.  What I tried:     using xmodmap -e "Pointer_Button8 = Shift_R" and the like (it does not recognize mouse buttons above 5, so there are no Pointer_Button8 for it to process)  xbindkeys with normal .xbindkeysrc config file like this:    "xdotool keydown Shift_L" b:8         "xdotool keyup Shift_L" Shift + b:8 + Release  xbindkeys with Guile based config in .xindkeysrc.scm:   ;;  This configuration is guile based. ;;  http://www.gnu.org/software/guile/guile.html  (define actionperformed 0)  (define (first-binding) "First binding" ;; backwards\left side mouse button (xbindkey-function '("b:8") b8-second-binding) )   (define (reset-first-binding) "reset first binding" (ungrab-all-keys) (remove-all-keys)  (first-binding) (grab-all-keys))  (define (b8-second-binding) "Backwards Button Extra Functions" (ungrab-all-keys) (remove-all-keys)  (run-command "echo b8 Pressed!") (run-command "xdotool keydown Shift_L")  (xbindkey-function '(release shift "b:8") (lambda () (run-command "echo b8 Released!") (run-command "xdotool keyup Shift_L") (reset-first-binding) )) (grab-all-keys) )  ;; (debug) (first-binding)  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; End of xbindkeys configuration ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;     Current wall for this solution is fact that xbindkeys blocks anything else from processing key combinations with shift until mouse button is released. In other words, when I press Mouse_8 it does correctly send command of Shift_L going down, but any hotkeys will not be processed because xbindkeys does not release control of it until you unpress Mouse_8. Because there is no event like "Mouse_8 down" in xbindkeys,I struggle to find solution. Trying to emulate "Mouse_8 up" after making it hold down shift to make it think we released button does not work either (I've tried making it "xdotool keydown Shift_L mouseup 8", but xbindkeys did not process it as Mouse_8 being released).    What alternative solutions can I try to bind mouse key as shift modifier, or how can I implement solution in xbindkeys\make it think we releases button so it released control before "release b:8" event?


How to show the triangle inequality for the following metric

Let $x,y \in \mathbb{C}$ and  $d(x,y)=\frac{2|{x-y}|}{\sqrt{1+|{x}|^2}+\sqrt{1+|y|^2}}$  I am unable to show the triangle inequality for this metric.


What happened to the Enterprise crew after TOS?

I just rewatched the TNG episode "Relics", where Scotty is revealed to have kept himself alive in the transport buffers of a ship. This got me thinking - do we know what happened to other members of the TOS bridge crew after the TOS movies (Up to and including Generations)?  For example, we know that Kirk eventually meets his end in Star Trek: Generations and that Spock has a long career and eventually ends up in the reboot universe.  Do we know any information about other members of the Enterprise crew?  If that question is too broad (for example, if there's lots of canon information about the crew after TOS), then more specifically, what is the latest canon information that we know about their lives?


I've read that bounties on questions move the question to the featured questions. I think this is a complete waste, bounties and featured questions should be made separate. If a bounty is not awarded the system should ask the person who made the bounty if they would like to keep the bounty available indefinitely (or until they run out of the reputation to keep the bounty in place) or not. Paying reputation for the featured questions tab which is not refunded is fine, that truly is taking up a spotlight. I don't care if an important question I have is featured, otherwise I would create a much higher bounty.  The problem is bounty periods do not account for more obscure subjects/topics/languages/etc and even if the s/t/l is not obscure people have a tendency to post generic answers to questions, not testing code if code is involved, etc. In example if I place a bounty on an Apache related question I wouldn't mind having it awarded six months later, it truly takes someone with striking design and development skills to understand very complex questions sometimes. By having the bounty die-off the important question is no longer appears important and the more difficult question has a greatly reduced chance of being answered. A useful answer half a year from now is better than a slim chance of an answer that is even half on-topic.  Bounties should be fully refunded if they should expire.  Featured questions should expire without being refunded to prevent questions from perpetually reappearing in the featured questions list.  Bounties and featured questions should be allowed to coexist though after the featured question period expires the bounty should remain though the question removed from the featured questions list.  Featured questions essentially work better for more popular topics which more people are likely to answer.  Long lasting bounties essentially work better for more obscure topics which will much longer before the right person with the capability to correctly answer the question.


Snapping existing raster to another existing raster using ArcGIS for Desktop?

I have got two existing rasters that have the same cell size (5x5m). The corner of cells from raster A are located exactly at the centres of cells in raster B. I want to place raster B exactly on top of my raster A.  I have tried these options:   the tool 'resample' on raster B, while maintaining the same cell size and snapping to raster A. the tools 'raster to points' and consequently 'points to raster' on raster B, again, maintaining the grid size and snapping to raster A.  the tool 'copy raster', snapping raster B-copy to raster A.    All options have the same result: raster B is still exactly where it lay before, with the corners of cells in B at the centre of cells in A.   Whenever Google this problem, I end up at 'environment settings' when making the grid for the first time - but I do not have the data on which the grid was based.  Do you have any suggestions on how I could solve this, without a need for the original data?  I am working in ArcGIS 10.2.1. I've got a basic license, but might be able to do an upgrade to Standard or Advanced if necessary.  Edit: the raster files are .asc files.


Python 3 - Building list of lists with range and with multiplication yields different results

Can anyone help me understand why the below two table evaluations produce different results. I built the table twice in my terminal iPython editor and the table built the table thing but when running I am not getting the same results.  The second table evaluation worked for the overall problem. However the first did not. In the terminal both table creations make a table with the same dimensions and == for the tables returns true. Why are the results different when running the program depending on how table is made if they evaluate to the same on the console?  def longestCommonSubsequence(text1: str, text2: str) -> int:     #This table evaluation does not work. Why?     #table = [[0] * (len(text2) + 1)] * (len(text1) + 1)     #The table evaluation below worked for overall problem. In terminal table_above == table_below when using different variable names. So why the different results?     table = [[0] * (len(text2) + 1) for _ in range(len(text1) + 1)]     for i, t1c in enumerate(text1):         for j, t2c in enumerate(text2):             if t1c == t2c:                 table[i+1][j+1] = 1 + table[i][j]             else:                 table[i+1][j+1] = max(table[i][j+1], table[i+1][j])     return table[-1][-1]


Set folder view - per folder preferences

is there a way with Ubuntu 15.04 or less recent versions to set view preferences on a per-folder basis? Something like this folder should be a list, this one should be icons and so on.   Thanks!


Is there some way to describe something that the average person doesn't know about but is still not obscure? Such as a musician who doesn't get much radio play but still has thousands or even millions of fans, or how an independent movie that does well at a festival like Sundance but doesn't get a major release.


Quite a few of the questions given on this site mention a photon in vacuum having a rest frame such as it having a zero mass in its rest frame. I find this contradictory since photons must travel at the speed of light in all frames according to special relativity.  Does a photon in vacuum have a rest frame?


Why do $2\log x$ and $\log x^2$ look different when graphing?

I understand how both graphs are drawn, but I do not understand why you cannot just convert one into another. It feels natural to me to just convert $2\log x$ to $\log x^2$ and not have to worry about the domain restriction.


How do I make windows save their position after re-attaching a display?

I know about   However, that and all other related questions appear to be very old, and I'm hoping that there's a new way to do this.  Same question though: I have a laptop, I usually use it with two monitors. Some windows I pretty much always have in the same places. Other windows float, or are temporary.  When I unplug the laptop to go to a meeting, everything goes to the laptop screen. When I plug it back into the monitors, everything is on one monitor, and I have to go around moving everything back...   I'd like it to just remember where it was when I unplugged without having to explicitly save something, because it's not always going to be the same. I just want it to be as I left it...   Reasons the previous answer isn't satisfying:  1) it's 5 years old. What 5 year old answer is still valid in tech?  2) the program suggested: Stay, seems inefficient. It requires that I save a specific window layout each time. I just want it to go back to whatever I had before I unplugged. Stay appears to minimize all windows that weren't part of the saved settings, which is not really what I want.  3) I am REALLY hoping that in the last 5 years, macOS had fixed this problem, so the solution wasn't to use some other program, but to make some settings change.


Distance from a point to a plane in normed spaces

How can we calculate the distance from a point to a plane in normed spaces ? where we are not inner product, for example:  Calculate the distance in $(C[0,1],||\cdot||)$ endowed with the supremum norm $$||f||=\sup_{t\in[0,1]}|f(t)|$$ from the function $f(t)=t^2$ to the linear hull of the functions $g(t)=t$  and  $h(t)=\sin(t)$  Any hints would be appreciated.


How to detect image file extension in a string with JavaScript

I would like to know how can I detect an image in a string with JavaScript. For example, I have an input type text that has the following value, "Hey check this out " I want to wrap '' in an  tag so it can show the image right away in my site. Thank you, I tried using the split function in JavaScript but I don't know how to detect the image extension in the string.


What are valid connection strings for SSMS login box?  Every once in a while I will have to connect to an instance of SQL Server with some specific configuration setting or in a DMZ where no host names are available or I'll have to connect to the Dedicated Admin Connection (DAC) via SSMS or SQLCMD. Because I rarely connect to a SQL Server via specific port or with the DAC, I'll tend to forget what the exact syntax options are to get a connection up and running. I'll then have to search the internet again for the umpteenth time to retrieve the exact connection strings and will regularly be frustrated that I can't find the information required.  Research  I'll read all the questions and answers previously posted on Serverfault, Stackoverflow, and DBA.  Serverfault  [1]  [2]  [3]     Stackoverflow  [4]     DBA  [5]     Microsoft  Additionally, I'll search the Microsoft site for relevant articles:  [6]  [7]  [8]  [9]  [10]  [11]   Brent Ozar  And Kendra Little has an article for some interesting aspects of DAC. [12]     On a side note: sometimes the DAC connection is also referred to as the ADMIN connection.  I find that in the end there is never an actual summary of simple connection strings to input into an SSMS login box, nor what to add to a SQLCMD.   This question and the following answers are intended to sum up what I found so far and to put the information into one single knowledge base article.  Actual Question  Given the following settings for a SQL Server Standard Edition:  Servername.....:    SERVERNAME IP address.....:    123.1.2.3  1st instance (default instance): CNAME/Alias....:    SERVERNAME-I01 Name...........:    MSSQLSERVER Port...........:    1433 (TCP) IP address.....:    123.1.2.3 DAC Port.......:    1434 (TCP)  2nd instance (default ip & port configuration according to [7]): CNAME/Alias....:    SERVERNAME-I02 Name...........:    Instance2 Port...........:    dynamic (TCP) IP address.....:    123.1.2.3 DAC port.......:    dynamic (TCP)  3rd instance (dedicated IP and port): CNAME/Alias....:    SERVERNAME-I03 Name...........:    Instance3 Port...........:    1433 (TCP) IP address.....:    123.1.2.4 DAC port.......:    dynamic (TCP)  Browser Service:    1434 (UDP) Browser service:    ON   ...what are valid connection strings for each instance that I can enter into the SSMS login box   ...with the host name? ...an alias (CNAME)? ...with an ip address? ...for a "Dedicated Admin Connection" (DAC aka ADMIN:)?   Assumptions   The server firewall is either deactivated or configured according to the Microsoft documentation mentioned in ,  or . This is also true for any network firewall inside the LAN (including the connection to a DMZ server). The additional instances, apart from the default instance, have manually been configured to listen on different IP addresses according to  and in this example have been configured to listen on fixed ports . In some cases DAC will have been enable according to  and .


Can I display graphic characters in a terminal?

I saw a couple screenshots showing some characters displayed as graphics, like this:     While in my terminal I get this:    How can I configure my terminal to display those images???


"Acme is an open development platform which enables the distribution of knowledge between IT experts and organizations globally."  Is it which or that? I've read online quite a bit, including this site, and generally people refer to "one of many (that)" vs "only one (which)". But here, I can't use that type of thinking.


Close locked file in Windows Share using Powershell and Openfiles

I work with a lot of folder shares, but there are a bunch of locked files which have been opened by some other process.  I need to close those files. So far I've been using MMC - System Tools - Shared Folders - Open Files.  It would be far more convenient if I could use PowerShell to filter the list/table retrieved by OpenFiles.exe and once I get the file ID close it with net file  /close, or some other PS native means to similar effect.  I am new to PowerShell, so I wonder if there is a way to create a PS script that receives the file's path and then used the file ID to close that file?


Suggested edits that only changed the title will always show the current body

When looking at a suggested edit that only changed the title, but not the body of the question, the review page will always show the current body and not what the body has been at the time of that edit.  For example  only changed the title. As I wasn’t happy with what was done, I went to the question, and , changing both the title and the question body. However, when you look at the suggested edit, you can see the body I was editing in after the suggested edit. So the suggest edit does not really reflect the actually made changes.


Show other user's custom reason when rejecting suggested edits

When I come across a suggested edit in the review queue that has already been given a custom rejection reason, it will be common for me to also want to give the exact same custom rejection reason (if I happen to agree with the rejection reason of the previous reviewer).  I suggest that, in the case where a previous reviewer has cast a reject vote with a custom reason, that there be another radio button, after custom, that contains the exact reason they used.  Another similar option would be to have a link/button that automatically populates the rejection reason with the rejection reason of the previous reviewer (if applicable) directly into the custom rejection textbox.  Yes, I can copy paste, but it's not quite as trivial if there is markup in the custom reason (it's not uncommon to see links to the FAQ or other guidelines in the rejection reason).


How can I change the default date format?

When I paste a date into Excel 2010 in the format "2012-12-07 00:00:00.000" I'd like it to be displayed by default as "2012-12-07", but it is actually displayed as "00:00.0".   I know I can work around this by prepending a ' or changing the cell format, but I'm interested in changing the default format.  An approach that almost works is going to Control Panel->Region and Language->Long Time format and changing it to something like "h". This results in Excel displaying the dates I paste in as "2012-12-07 00:00:00.000", but screws up times displayed outside of Excel.  The dates I'm pasting in are from SQL Server.