How to concatenate a variable number of csv, removing their header rows?

I have a directory with several hundred csv files whose filenames start with two digits {01..84}. Several hundred >> 84, so obviously some filenames start with the same prefix. I wish to concatenate the files whose filenames start with the same prefix. Here's what I've got:  #!/bin/bash for i in {01..84}; do         #declare array to store files with same prefix         declare -a files=()         echo "Processing $i"         for j in `ls $i*.csv`; do                 #add files with same prefix to array                 files=("${files[@]}" "$j")         done             #cat first file including header with the rest of the files without the headers          cat < ${files[@]:0:1} <(tail -n+2 ${files[@]:1}) > "$i".csv done    So far so good ... only, it grinds to a halt at $i=22 halfway through (repeatable error), and pollutes the output files with blank lines and headers like "==> 19XXX.csv <==" (without quotes).   What should I change in the code to just get a nice clean csv file for each prefix without the script crashing? Are there any precompiled bash utilities that I can call to do any of this quicker and easier?


I am afraid I have never read Life of Pi, the novel by Yann Martel.    Is this sentence wrong? If not wrong, is it sloppy? To me it seems more appropriate to say:     I am afraid I never read Life of Pi, the novel by Yann Martel.   If neither is wrong, which is the better way of writing?  If possible, could you also contrast the inclusion/exclusion of "have" in the "have never" in the sentences below?        I have never read anything so stupid in my entire life.   I have never been to the USA.   I have never eaten at that restaurant.   I never read the books; I only attended the lectures.   I never lied.   I have never lied. [sentence seems wrong]      On a side note, would the sentence be improved if it is made less wordy?     I never read Yann Martel's Life of Pi.


The teacher told us that ice {floats/floated} on water

If:     The teacher said to the students, "Ice floats on water."   Then did:        The teacher told the students that ice floats on water.     The teacher told the students that ice floated on water.      Are both correct? If not, please explain it to me.


How to change date from command line on Ubuntu 20.04

For Ubuntu 20.04 desktop PC I can change date and time from the UI by using these steps,   Click Date & Time in the sidebar to open the panel. If I have the Automatic Date & Time switch set to on, my date and time should update automatically if I have an internet connection. To update date and time manually, set this to off. Click Date & Time, then adjust the time and date.   What I tried from terminal: sudo date --set="2020-08-15"  But it changed and revert automatically within a second (maybe because Automatic Date and Time option are enabled). So for an internal experiment, I need to change the date back to a specific date using the command line or bash file. How to do that properly?


Complex analysis, showing a function is constant

Let $\Omega$ be the right half plane excluding the imgainary axis and $f\in H(\Omega)$ such that $|f(z)|<1$ for all $z\in\Omega$. If there exists $\alpha\in(-\frac{\pi}{2},\frac{\pi}{2})$ such that $$\lim_{r\rightarrow\infty}\frac{\log|f(re^{i\alpha})|}{r}=-\infty$$ prove that $f=0$.  The hint is define $g_n(z)=f(z)e^{nz}$, then by previous exericise $|g_n|<1$ for all $z\in\Omega$.


How do you group objects together without joining them?

In Photoshop you can create a folder and put all the layers under that folder. This makes them easier to manage. How do I do this in Blender?  I'm not looking to do a boolean union or grouping them. I don't understand what the point of ctrl-g group is honestly. It would be nice to have something like the photoshop folder that enables me to manipulate multiple objects at a time, cleans up my hierarchy view, and doesn't join stuff together. Any help? I know this is probably super basic but I can't find it looking online.


E:Malformed entry 52 in list file /etc/apt/sources.list (Component), E:The list of sources could not be read

ok i get this message and don't have the slightest idea how to change that list.tried it with an editor,thought i changed the mistake,but keep getting the same response although i edited it.So now i don't know which sourcelist it uses cause there are a few.


$|2^x-3^y|=1$ has only three natural pairs as solutions

Consider the equation $$|2^x-3^y|=1$$ in the unknowns $x \in \mathbb{N}$ and $y \in \mathbb{N}$. Is it possible to prove that the only solutions are $(1,1)$, $(2,1)$ and $(3,2)$?


The minitoc package adds extra page when used with float and lastpage packages. I figured out that this problem can be resolved by loading minitoc package before float and lastpage packages. In LyX the float package is loaded automatically and could not figure out how to force LyX  use minitoc package before loading float and lastpage packages. Thanks in advance for your help.  \documentclass[a4paper,12pt]{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{float} \usepackage{minitoc} \begin{document} \dominitoc \tableofcontents \mainmatter \chapter{First Chapter} \minitoc \section{Introduction} \blindtext[1] \section{Material \& Method} \blindmathpaper \chapter{Second Chapter} \minitoc \section{Introduction} \blindtext[1] \section{Material \& Method} \blindmathpaper \end{document}   Edited  It is also working in LyX 2.1.1 if I remove \includepdf[pages={1},scale=1]{Back.pdf} at the end of the document. However if I include \includepdf[pages={1},scale=1]{Back.pdf} at the end of the document it adds extra page. Any thoughts.   Updated  I've narrow downed the problem. My following MWE in .Rnw format adds extra page at the end of document when using minitoc package. Thanks again for your help.  \documentclass[a4paper,12pt]{book} \usepackage{minitoc} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{float} \usepackage{pdfpages} \begin{document} \dominitoc \tableofcontents \mainmatter  \chapter{First Chapter} \minitoc \section{Introduction} << Test >>= 1:50 @  \blindtext[1] \section{Material \& Method} \blindmathpaper \includepdf[pages={1},scale=1]{Back.pdf} \end{document}


Is UPPERCASE text more readable when used in button?

Google material guideline use Uppercase in button.    Which button do you think is more readable?      Yahoo doesn't use UPPERCASE and I find it more readable


Does it make sense to add the principal components together to produce a single index?

I want to build an index from, say, 13 variables. I run a PCA for these 13 variables to produce 13 principal components, 5 of which have an Eigenvalue of more than 1. While some researchers use only the first principal component as their index, this does not seem advisable here since PC1 only has a proportion of variance explained of 23%. So, does it make sense to sum PC = PC1 + PC2 + ... + PC5 as my index?


Best eGPU to use with MacbookPro 15" 2018

I'm using Blender 2.9 on my Macbook Pro, but it renders very slowly in Cycles on CPU. I've tried using ProRender but it makes the interface very laggy and it doesn't render any faster (at least nothing noticeable). When rendering I know to set all the settings properly for faster render (samples, tile size etc.), but I would like to render my art and animations on proper GPU. These are my computer details.  What would be a proper eGPU to use with my computer? I realize this could be more opinion based question, but there are so many options out there that I am lost, also it gets expensive buying wrong gear.


Let $T : V \rightarrow V$ be a linear operator. If $T^n = O_V$ for some $n \ge 1$, prove that $I_V + T$ is an isomorphism.

I think I'm supposed to prove that both $T$ and $I_V$ are isomorphic, but I'm not sure and even if that's the right way to go, how am I supposed to prove that $I_V$ is isomorphic. Or am I going about this all wrong. Please help.


Having troubles breaking up and regrouping my list so that information about a single airline company and it's fees are in one list element, by a loop, with every 6 elements becoming an element on its own.  myList = ['Southwest', '0', '0', '0', '0', 'Yes!', 'JetBlue', '20', '35', '75', '125', 'Yikes']   (This list goes on for 6 airlines in total, there's 2 listed here, the list is in order of Airline name, fees(4), and then a short word describing the value)  I need to group Southwest, 0, 0, 0, 0, Yes! together as an element.  Then group JetBlue, 20, 35, 75, 125, Yikes together as an element.  Then I will do this for 4 more airlines. I obviously want to use a loop since it's multiple airlines.


I am calculating the sum of two uniform random variables $X$ and $Y$, so that the sum is $X+Y = Z$. Since the two are independent, their densities are $f_X(x)=f_Y(x)=1$ if $0\leq x\leq1$ and $0$ otherwise. The density of the sum becomes $f_Z(z)=\int_{-\infty}^\infty f_X(z-y)f_Y(y)dy=\int_0^1f_X(z-y)dy$ by convolution. I am stuck at this stage. How do I proceed with my integral? I think a diagram make it easy but I dont know how to proceed.


Loading system (OTF/TTF) fonts from plain TeX with LuaTeX

In XeTeX, I can set up a font pretty straightforwardly with:  \font\foo="Minion Pro" at 10pt   I don't quite see how to do it.  suggests that the answer is "use luaotfload.sty." Is that true or is there something comparable to the above I can do directly in LuaTeX? Or is there some other, better plain-ish TeX way of loading fonts (by which I mean system fonts in TTF or OTF format) from LuaTeX?  Looking at the LuaTeX manual, I see some Lua code. If that's the right way to do it from LuaTeX directly, which functions do I need to use to do this?


I'm familiar with some of the basics, but what I would like to know more about is when and why error handling (including throwing exceptions) should be used in PHP, especially on a live site or web app. Is it something that can be overused and if so, what does overuse look like? Are there cases where it shouldn't be used? Also, what are some of the common security concerns in regard to error handling?


How do you test QgsDataSourceURI.setConnection is valid in a QGIS plugin?

I am currently trying to write my first Python plugin for QGIS and I'm using the the   uri = QgsDataSourceURI() uri.setConnection(host,port,db,username,password)   syntax to create a connection to an Oracle database. This can then be passed to a QgsVectorLayer(uri.uri(), name, "oracle") command and the layer is added.  The trouble is that before calling this code I am asking the end user for the username and password. The details given are stored to save asking them again.  If they give incorrect details then QGIS will automatically ask them to correct the details but this is outside the scope of my Plugin and so the stored credentials would be wrong.  I want to check the credentials are valid after asking for them but before I try to add the layer.  Is there a way to use my constructed URI in python so that the database will tell me if they are valid?   Something like QgsCredentials but just returning true/false depending on the response of the server.


I am currently using Windows XP with Cisco VPN Client version 5.0.01.0600  I would like to replace Windows XP with Linux, either Red Hat version 5.x or 6.x  My question is, what equivalent VPN software can I install on Linux machine in order to get full compatibility with the same VPN network that the Cisco VPN client uses.  Where can I download Cisco VPN Client version 5.0.01.0600 for Linux?


What are some good reasons to create a new forest, child domain, tree, site, or OU in Active Directory?

When is it worth it to create one of the above and when is it better to keep things in the same place?


MS SQL "migration" to older version - problem with Attach

On SQL 2019 I try to change compability level to 2008 (to be sure that I will be able to attach on older version, at least I was in hope this will be possible).  I detach this db. When I try to attach on destination SQL I still get  As so far I found few related topics like this following:  But there are talks about Restoring backup, but I ask about Detach/Attach and compability level. So Here are my questions: Question 1: Is there any way to attach newest mdb file on older SQL server ? if NO Question 2: What for is feature "Compatibility level" ? After reading both following ansers I have: Question 3: Do you think that with tools like  or  it will be possible to export/import data between NEW<>OLD SQL versions , or would you propose other tools for this kind of job to do ?


New mobile chat doesn't follow the keyboard height

The Japanese keyboard on iOS dynamically changes it's height to show suggestions and hides the input box of new mobile chat.        Additionally, third-party keyboards make the input box completely hidden. The chat seems to treat third-party keyboards as having no height.        iOS 9.2.1 / Mobile Safari  There is no problem in old (stable) design but it doesn't fix the input box to bottom!


Is there a general purpose algorithm to determine a route between rooms of a building?  Imagine a fixed-layout, single-level house with 50+ rooms. Assume I have a data structure that defines the exits of each room and the room to which each exit leads. I'd like to know how to get from room 4 in the NW corner to room 37 in the E side, say. I want the shortest list of rooms that need to be traversed. (I don't need to see this graphically in real-time.)  Is it worth finding such an algorithm or should I just 'map out' the level and use the pathfinding abilities of my game dev platform of choice..  edit: removed the A* reference


How do you partition a USB Thumb / Flash Drive?

Out of the box, Windows will not allow you to partition a USB Thumb / Flash Drive. How can you do this?  In case anyone is wondering Why you would do this?  It's interesting in the case of a  drive where you can take a large thumbdrive (like 4 or 8 GB) and format a small amount of the drive to be used normally as a Fat32 drive and leave the remaining partition encrypted using BitLocker. This allows you to keep some non secret data on the unencrypted partition(like portable apps).


What is the solution set for the equation$ x ^ y = y ^ x$ in positive real numbers, x not equal to y?

I note from the archive discussion of the case for integers, which I'm fine with.   For the positive reals, I have set up axes for x, y and z = x ^ y. The solution set is then graphed by a space curve in the surface, necessarily symmetrical about the plane y = x. I need the equation of the orthogonal projection of this curve onto the x-y plane. (All I have shown so far is that  $x ^ y > y ^ x$ in the region right of the line y = e and above the line y = x.)


Profile changes in Q&A are not pushed to Area 51

I just noticed that the info text on  is an older version of the text in .  I found  from April 2016 where Adam Lear says:     Area 51 is a separate codebase. It's also heavily outdated. Currently we can push a profile update from Q&A to Area 51, but not the other way around   I think the pushing isn't working anymore. I just updated my text on SO again and it was changed in all my accounts, except Area 51.


Biblatex: Changing number of authors listed in bibliography only for one section

I am using biblatex to print bibliographies per section. My style requires in general no article titles and maximum 3 authors per bibliography entry. Nevertheless in a specific section, I need to relax these limitations, and have article titles shown along with full list of authors. How can I achieve so?  The following are my current settings:  \documentclass{article} \usepackage[backend=bibtex,             maxnames = 3,             firstinits=false,             uniquename=init,             autocite=superscript,             style=nature,             articletitle=false,             natbib=true,             defernumbers=true]{biblatex} \addbibresource{my_publications.bib}  ... \begin{document}  \newrefsection \section{First section} Some text with \autocite{Ref:1} ... \printbibliography  \newrefsection \section{Second Section} %%------------------------ %% Here we want to relax no-show of article title max 3 authors \settoggle{bbx:articletitle}{true} % Reset showing article name <what should I do to reset maxbibnames??>  ...  Some text with \autocite{Ref:1,Ref:2} ...  \printbibliography  \end{document}   I think that a possible workaround could be by  \patchcmd{\blx@maxbibnames}{...}{...}{}{}   but I cannot complete the other fields correctly...


beg. python struggling to remove .0 at the end of an int

so Im taking a course intro to python and one of the labs has me stuck. I have to take 2 inputs and divide them 3 times ex input is 2000 2 ex output is  1000 500 250 so the input 1 is divided by input 2 then that answer is divided by output 2 again and again then print the problem is that my output keeps putting a .0 at the end ex 1000.0 500.0 250.0 and that is wrong when I submit it heres what i got     user_num1 = input()     user_num2 = input()     a = (int(user_num1) / int(user_num2))     b = (int(a) / int(user_num2))     c = (int(b) / int(user_num2))     print (a, b, c)


Calculating the limit $\lim((n!)^{1/n})$

Find $\lim_{n\to\infty} ((n!)^{1/n})$. The question seemed rather simple at first, and then I realized I was not sure how to properly deal with this at all. My attempt: take the logarithm,  $$\lim_{n\to\infty} \ln((n!)^{1/n}) =  \lim_{n\to\infty} (1/n)\ln(n!) =  \lim_{n\to\infty} (\ln(n!)/n)$$ Applying L'hopital's rule:  $$\lim_{n\to\infty} [n! (-\gamma + \sum(1/k))]/n! = \lim_{n\to\infty} (-\gamma + \sum(1/k))=  \lim_{n\to\infty} (-(\lim(\sum(1/k) - \ln(n)) + \sum(1/k))  = \lim_{n\to\infty} (\ln(n) + \sum(1/k)-\sum(1/k)  = \lim_{n\to\infty} (\ln(n))$$ I proceeded to expand the $\ln(n)$ out into Maclaurin form $$\lim_{n\to\infty} (n + (n^2/2)+...) = \infty$$ Since I $\ln$'ed in the beginning, I proceeded to e the infinity  $$= e^\infty  = \infty$$  So am I write in how I approached this or am I just not on the right track? I know it diverges, I was just wanted to try my best to explicitly show it.


Printing a python list with the index and items together

I do understand how to achieve putting letters in a list separated by commas:  e.g.  a = 'hello'  print(list(a))   How can I achieve such an output below?  ['h':0, 'e':1, 'l':2, 'l':3, 'o':4]


Good data structure for hyperbolic tiling

Say you're doing something computational where each data point is a tile in a (not necessarily Euclidean) 2-dimensional tiling, for instance, a Life-like cellular automata. You might want a data structure where tiles that are near in distance are also near each other in memory. You might choose your tiling based on what's easy to represent this way.  For a tiling of the Euclidean plane, you probably have square tiles backed by a 2d array with array point a[i][j] = tile $a_{ij}$; you might have hex tiles instead, which can also be backed by a 2d array as explained in .  For a tiling of the sphere, it's pretty common to start with a sub-triangulation of the icosahedron and subdivide it into 5 2d arrays plus 2 points for the north pole, as explained in . It looks like a geodesic dome.  Is there a 2d hyperbolic tiling that admits a representation in a nice data structure? The only software I've ever seen that uses hyperbolic tiling in this way is the game HyperRogue (a roguelike on the hyperbolic plane). It just has an object for each tile, and each tile keeps a record of its neighbors. It works but it's not pretty.


Immersions that are not diffeomorphisms from open sets of $\mathbb{R}^n$ to itself

Let’s say I have an immersion $f:\Omega \to \mathbb{R}^n$, with $\Omega$ an open set of $\mathbb{R}^n$. It is a local diffeomorphism (because its differential is injective and thus bijective), so it is an open map. If I restrict the image and consider it to be not $\mathbb{R}^n$, but $f(\Omega)$, it would also be surjective. The only way it could not be a diffeomorphism is to not be injective, so I was wondering: are there counterexamples? Maybe that work on all dimensions (I don’t see how to give a counterexample in dimension 1, but it might be a special case where there are actually no counterexamples, while in greater dimensions there are)


Remove italic within align inside a theorem-like environment

Is there any way to remove the italic from the words bits in the code below? That is, change the \text output to represent the normal font when an align is used inside a theorem-like environment.  \begin{proposition}  The memory requirements for the keys are \begin{align}   m_{\text{pk}}&= 2r \,\,\,\text{bits}\\   m_{\text{sk}}&= r \end{align} \end{proposition}


Cannot set a Windows 10 Store App as default program to open a file

Usually, right clicking on a file, selecting "Open with" followed by "Choose another app..." brings up the following menu which also includes installed apps, so that one may be set as the default application for the file type:    However, when trying to open a file using a Windows 10 Store app and the above method, the app is not listed. I can open the app, then open the file from within it, however this is less convenient.   So far I have tried to use the app's exe file (CodeWriter.exe), but this does not work without an app container.  To reitterate - I am not asking for suggestions for workarounds as I can open the file; I am specifcally asking how to set a store app as the default application when it is not in the above list.


Can I bridge "backwards" from an ssh connection to my local emacs-server?

I'd very much like to log in to a remote machine with ssh and via the $EDITOR environment variable (or something similar) be able to edit in my local Emacs. In this case, specifically for when I log in and run psql and use the \e psql command to edit queries. Being able to edit them in my local Emacs would be a huge bonus in my work flow.  I have a nagging suspicion that there is no way this can be done, but before giving up I thought I'd throw it out here.


Is there a way to connect Dell Latitude E4310 with one VGA to 2 external monitors without using docking station?

Is there a way to connect Dell Latitude E4310 with one VGA to 2 external monitors without using a docking station?


Functional Equation involving Golden Ratio

Find all $h:\mathbb{N}\rightarrow \mathbb{N}$ such that   $$h(h(n)) + h(n+1) = n+2$$   I tried this, but wasn't able to make any progress after a while. So, in vain, I looked at the solution. The solution basically obtained $h(1)=1$ and $h(2)=2$ after some casework, and then claimed that $$h(n) = \lfloor n\alpha \rfloor -n + 1$$ (where $\alpha$ denotes the golden ratio) without explaining at all why one would come at such a conclusion. How did they jump to this conclusion?  (Source: Functional Equations: A Problem Solving Approach, Venkatachala.)


Converting PLUTO coordinate reference system in QGIS?

I am using New York's  lot data in QGIS for a project.   Right now, the shp file automatically imports with a custom CRS, allowing it to visually line up with a separate layer of subway entrances (with that subway layer using WGS84).  That all works fine visually, with both layers overlaying each other on my map.   However, when I attempt to do some analysis in python on my PLUTO features via print feature.geometry().centroid().asPoint() I find that instead of a lat/lon pair, I get a weird set of x/y coordinates with values in the hundreds of thousands.   I assume that this is related to some sort of "state plane" or "local plane" coordinate reference system.   What I would rather see is a set of coordinates closer to lat 40 and lon -73.  Is there any way to convert my PLUTO layer so it will act more like a WGS84 layer?    Here is the CRS that gets displayed in the "Layer Properties" dialogue box: Selected CRS (USER:100000, * Generated CRS (+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +towsgs48=... (at which point the screen cuts off the extended text).    Simply using the "save as" dropdown on the layers palette to resave the layer as a WGS84 shapefile does not solve this problem. The new shapefile generated by that process still imports with a custom CRS, and analysis of that generated shapefile still returns coordinates like x:997248.532881, y:221815.926017. So this does not seem to be a duplicate of the flagged-as-duplicated problem.


I have an input field generated by  that looks like this. I shortened it, but it generated a fairly generic looking drop zone and "Browse" button inside. I don't need the dropzone - ideally I could just abstract all of this away to an HTML button - where the button on click does will prompt using the input field.  <input id="id_picture" class="cloudinary-fileupload " type="file" name="file">  Is it possible to override the above input field with a button? Can I just simply style the file input field to look like a button rather than a dropzone + "Browse" button?  Sorry if this doesn't make any sense - I'm normally a back end coder. Please let me know if you need any more information. Thanks!


Coefficient of variation for nonparametric data

Is it appropriate to use the coefficient of variation (CV) for non-parametric data?   I'm not sure whether it is appropriate since you use the mean of the data to calculate it together with the SD. While for parametric data the median is more representative for the central tendency. But perhaps I'm overlooking something.


I have a AJAX call that looks like this and I have included the  tag as well:  <script>         $.post("../processor/get_notifications.php",             {                 id: <?php echo $_SESSION["id"]; ?>             },             function(data, status){                console.log("Data: " + data + "\nStatus: " + status);             }); </script>   And the .php file looks like this:      <?php if(isset($_POST["id"])){     require '../includes/backbone.php'; //It contains the server information     $connection = mysqli_connect($server_name, $database_username, $database_password, $database_name);     $sql = "SELECT user_json FROM users WHERE id = " . $_POST["id"] . "";     $result = mysqli_query($connection, $sql);     echo $result; }   So, I am trying to pass the user_json stored in the database to the page from where the AJAX call is done. But, It shows an internal server error. I guessed that the error was caused as the variable $result may be an object. And when I tried to check if the type of the variable was object using echo gettype($result);, it showed object in the console. So, I tried to change the object to string using three methods out of which none worked:   $result = "'" . $result . "'"; //which I was sure wouldn't work $result = (string)$result; $result =json_decode($result); //which didn't make sense. So, How am I supposed to get the object in the page to do something like:  document.write(object["about"]); or so on?


80's Scifi Show with Egyptian looking flying robots

Does anyone remember an 80's or early 90's TV show with Egyptian looking flying robots in it? It was on the Super Channel in the UK. It was primitive looking CGI in the computer game style of the time?   Not Star Gate :)  Can't remember what it was called?  Also there was some gold reference in it... I think there was a gold thrust :)


Is there any way to increase the number of candy made?

In Candy Box 2, the candies are being produced at a rate of 1 candy per second. Is there any way to increase the potential amount of candy made at a faster rate? (notice that I am only up to the part where the person with the cellar in their house gives me a map.


Why ConcurrentModificationException in ArrayList?

why following code throwing ConcurrentModificationException? Josh Bloch can avoid ConcurrentModificationException.  ArrayList<Integer> list=new ArrayList<Integer>(); list.add(100); list.add(200); list.add(300); list.add(400); for(Integer field : list) {         list.remove(field);     list.add(200); }


The process could not execute 'sp_replcmds' on 'S15415940'. Cannot execute as the database principal because the principal "dbo" does not exist

Can anyone show me the way to fix these error messages:     The process could not execute 'sp_replcmds' on 'S15415940'. (Source:   MSSQL_REPL, Error number: MSSQL_REPL20011)      Cannot execute as the database principal because the principal "dbo"   does not exist, this type of principal cannot be impersonated, or you   do not have permission. (Source: MSSQLServer, Error number: 15517)      The process could not execute 'sp_replcmds' on 'S15415940'. (Source:   MSSQL_REPL, Error number: MSSQL_REPL22037)   Thanks you!


Since the df are different between t-tests and emmeans ones (cf. ), how then should I interpreted the results?


Is there any way to increase the drop rate of items?

Some items in Terraria drop only very rarely from certain enemies. It's a pain having to farm so many enemies to try to get these rare items. Is there any way to make them drop more often?


Can I pack .blend files into my Blender add-on?

Can I pack my Py script and .blend file where I have some assets that the script is using into an add-on? Addon.zip          |          |-file.blend          |          |-file.py          |          |-image.jpg


inequality with three variables and condition

If $a$,$b$ and $c$ positive real numbers such that $a+b+c=1$, prove $\dfrac{b^2}{a+b^2}+\dfrac{c^2}{b+c^2}+\dfrac{a^2}{c+a^2} \geqslant \dfrac{3}{4}$. I have tried several methods to solve this,but can't get any result. Any idea?


Get variable in JavaScript without clicking

I am trying to display some banner from a remote location using hrefs and img in JavaScript.  On client side:     I want some solution so that I can make 123 dynamic in below JS file. As of now it is hard coded.  I just want that i will give client the above JS link and it will generate a dynamic link to a website with a querystring paramenter like (www.abc.com/123)   JS file (JScript.js):  document.write('

');


Capacitance of two unequally charged conductors

After reading many books I now understand that the combination of two conductors having equal and opposite charge placed close to each other forms a capacitor and their Capacitance is defined as the ratio of charge on the capacitor(i.e. the charge on the positive plate) to the potential difference between the two conductors constituting the capacitor.  Now my question is that is there any meaning of capacitance for two conductors having unequal charges(i.e. the sum of charges is not equal to zero). If yes then how is the capacitance defined for such a system and will the system still be called a capacitor ? NOTE - I'm a high school student


What's the use/meaning of the @ character in variable names in C#?

I discovered that you can start your variable name with a '@' character in C#.  In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a member variable with the name "params". Obviously this is a reserved word in C# so you can't have a class with a member variable with the name "params". The proxy object that was generated contained a property that looked like this:  public ArrayList @params {     get { return this.paramsField; }     set { this.paramsField = value; } }   I searched through the VS 2008 c# documentation but couldn't find anything about it. Also searching Google didn't give me any useful answers. So what is the exact meaning or use of the '@' character in a variable/property name?


No reason for being excluded from Stack Overflow

As StackExchange becomes more frequently the official forum for popular open source software, if you are locked out your options for help are really limited.  Would it not be fair to have one programming forum for advanced and educated programmers and another for self educated newbies? As long as the latter were not trying to get "free rides" but actually working at solving their problems?  I have for a long time now, it seems, been unable to ask questions in the one forum most of my questions are directed at and I see user questions in there way below even my level of programming knowledge but allowed in , I guess because they don't ask so many questions!  Point is I cannot even find a way back in because there is no way. I would have to miraculously have users point score my questions up and I could be dead by the time that happens haha  I think there needs to be some kind of get out of jail free card!  UPDATE: I just as suggested went back to improve on my questions but all of them are up voted besides two which are just neutral. There doesn't seem any plausible reason why my account is rejected.


Is a path-connected set always Jordan-path connected?

A path in set $E$ is a continuous function $$\gamma:[a,b]\longrightarrow E, $$ with $A:=\gamma(a)$ its starting point and $B:=\gamma(b)$ its ending point.  Any two points $A, B$ in a path-connected set can be connected by a path, with $A, B$ as its starting and ending points.   A Jordan path $\gamma$ is an injective path.  Any two points $P, Q$ in a  Jordan-path connected set can be connected by a Jordan path.  Question: For any path-connected set $E$, is $E$ always Jordan-path connected?  When there are at most countably many self-intersecting points, it's possible to 'cut' the loop and make the path a Jordan one. But I got problems when there are uncountably many self-intersecting points on the path.


Compiz not loading the Unity plugin since 13.04 upgrade; shows desktop background only

When I log into Ubuntu 13.04, it only shows my background. Now I've tried CCSM to enable the Ubuntu Unity Plugin, but every time I try to do it, it seems to put a check mark in the blank then the check Mark goes away.  I really need a fix for this because I don't want to have to downgrade my system.


Why should "num3 is num4" result in False?

There is  post on Instagram where the author says if num3 and num4 are set to 257 and num3 is num4 is evaluated you should get False.  I have revised the code adding some conditions but I am getting True. I saw that integers until 256 are assigned the same memory bucket for the same value but not for 257 onward. So what is happening?  num1 = 256 num2 = 256  if num1 == num2:     print(True)  num3 = 257 num4 = 257  if num3 == num4:     print(True)     if num3 is num4:         print(True)     else:         print(False)


Cannot boot my Windows after installing Ubuntu 18.04

I can't boot my Windows. Windows boot option is not listed in GRUB boot list.   Boot-repair gave me .


(1) Network works fine  (2) In Software Center, search doesn't work, search anything gives no result.  (3) Chromium install failed: E: Could not get lock /var/lib/dpkg/lock-frontend - open...  Then I've installed Chromium successfully from command line.  Is there a way to install application from the Software Center (not command line)? How to fix the Software Center problems?  Update:  After reboot Chromium can be removed and reinstalled in Software Center, but search still doesn't work, and update doesn't work as


I am new ubuntu user. I wanted to download Google Chrome, but something happened and now when I go to Ubuntu Software Center it is automatically closed after 1 second. Then I see the error:      E: The package google-chrome-stable needs to be reinstalled, but I can't find an archive for it.


randomly generate 100 unique numbers using Math.random

I want to print out an array of those 100 numbers.  However, my program stops after generating certain amount of numbers. Here's my code.  class A4     public static void main(String[] args)     {         int[] array1 = new int[101];         int num, i = 0;         boolean repeat = false;         while(i < 100)         {                num = (int) (Math.random() * 100) + 1;             array1[(i)] = num;             for (int e = 0; e < i; e++)             {                 if (num == array1[e])                     repeat = true;             }              if (repeat == true)             {                 continue;             }              array1[i] = num;             System.out.println(array1[i]);             i++;         }     } }


A student is applying to PhD program in Computer Sciences at Harvard and MIT. He estimates that he has two to three chances of being accepted at Harvard and two out of five chances at MIT. He further estimates the probability that he will be accepted by both with probability of one to five. What is the probability that he is accepted by MIT if he is accepted by Harvard?   I think that the answer will be P(M|H)=(1/5)/(2/3)=0.3, but I'm confused about the condition of the problem. Why do we need to know that P(M)=2/5 if we don't use it? Or should I prove that the events are not independent before using the formula P(M|H)? So it would be P(M and H)=P(H)·P(M|H)=1/5=0.2  I'd really appreciate a piece of adivce. Thank you in advance!


Oracle: determine maximum number of connections suppported

I have a setup where 180 jobs try to access oracle at the same time, i.e. they don't close connections quickly because they may be waiting for e.g. an ftp connection to open.  From oracle, I get the error:   Listener refused the connection with the following error: ORA-12520, TNS:listener could not find available handler for requested type of server   I believe this is due to too many connections open. This also affects the GUI of the application, which refuses login.  How can I determine a safe number of jobs to execute at the same time?  How should I handle the error? I tried to handle it by sleeping and retrying, but the only effect of this seems to be a that the TNS listener is always saturated and that the number of concurrently running jobs increases to 180.


Can inner classes access private variables?

class Outer {      class Inner {     public:         Inner() {}         void func() ;     };  private:     static const char* const MYCONST;     int var; };  void Outer::Inner::func() {     var = 1; }  const char* const Outer::MYCONST = "myconst";   This errors out when I compile with class Outer::Inner' has no member named `var'


What do I need to shoot sharp high school baseball photographs on a budget?

I need a zoom lens ASAP for high school baseball. (And then hopefully in 2020 college baseball.) This is only to take pictures of my son — for now high school and travel baseball.  I have older Canon Rebel EOS XSI 450D. I think I bought it in 2007/2008.   The lens I have now (which my dad recommended) just doesn’t cut it.  It is a Canon EF 75-300mm lens (without a stabilizer).   Many of the pictures that I have taken during the day of sports (baseball, lacrosse and soccer) are blurry but usable. But the pictures at night are ALL BLURRY!  And I have tried every setting.   I don’t know if I need to upgrade my camera because it is not  powerful/advanced enough, or what lens would work with the Canon Rebel EOS XSi 450D that I already own?  Maybe price-wise it is better to upgrade to a better camera and lens? But a $1000 lens by itself even refurbished isn’t in the budget.  I don’t know if any of these camera lenses would work. I have read some of them don’t work at night for sports photos.  I am so confused. 🤯   EF-S 18-55mm f/3.5-5.6 IS STM lens features the optics, AF and image stabilization. Canon - EF 75-300mm f/4-5.6 III USM Telephoto Zoom Lens - Multi 70-200 f/2.8 (IT IS VERY $$$!)   Or none of the above?  Can anyone recommend any lens that could get me through at least Highschool baseball season? And remember I really cannot use a flash.   Thank you in advance for any advice and suggestions you can provide!


I don't know why '\n' new line is not working

My controller code is as follows -          for(String resStr : responseArray){             if(resStr.indexOf('r_error_str') != -1){                 responseString += resStr.substring(resStr.indexOf('=') + 1);                  responseString += '\n';             }         }   but when i display this 'responseString ' String using 'apex:outputLabel or apex:outputText or as Exception message '\n' is not converting in new line. Whole String is coming in one line.  Can anyone explain why is this happining


I have just downloaded and installed Google Chrome for Linux, using Software Center. How do I now run the browser? This was simple in Windows - the program would typically be appended to the Start Menu, but there is no such thing in Ubuntu. I've noticed that stuff related to Chrome has been installed in the /opt/ directory, but I cannot find the equivalent to a .exe that would launch the browser.


Don't fail my audit just because I clicked Close

So today I failed my first review audit. I had gone to  and, when , I clicked Close simply to see why others might have voted to close (which I can do just fine, without actually voting to close, when it's not an audit).  I don't think I should fail the button the moment I click Close. Just like on a normal question outside of a queue scenario, I don't commit my vote to close the moment I click the Close link on a question. Especially since the VtC reasons have changed so many times in my time here, I sometimes review the VtC reasons before really deciding if I think that one of the close reason fits. (Also, sometimes, to see what might have gotten it on the queue in the first place, particularly when I wonder whether it should be closed at all - did I miss something? did the close voter(s)?)  I don't really think it's fair to tell me I'm not paying attention when I click Close - I really didn't expect that action to be the audit. Now I know that this is a trick, but think of all the people reviewing for the first time and ultimately getting screwed over by these shenanigans.   Also, and just as an aside, I don't think automatically generated audits should include questions outside of what I've filtered. That's been  before, but I have to be honest, I don't also look at the tags when I'm checking if I agree with others' reasoning for voting to close.  I am not reviewing for reputation or badges obviously, just trying to help out with the close queue. Guess I won't be doing that anymore.


Trying to install Ubuntu 13.04 alongside Windows 7

I installed Ubuntu 13.04 alongside the existing Windows 7 OS. The Ubuntu installation completed successfully, and it asked me to restart my computer. When I restarted, it was just Windows 7 that loaded as usual, but Ubuntu wasn't there. Can anyone tell me what's wrong?


Looking to enter NZ on one passport and leave on another

Looking to enter NZ as an Australian and leave on another unused foreign passport. Can it be done without issue or will NZ require the Oz passport on leaving?


"Connection failed" during $ sudo apt-get update

when perform   $ sudo apt-get update  Err http://security.ubuntu.com trusty-security/main Sources             Connection failed [IP: 91.189.92.201 80] Err http://security.ubuntu.com trusty-security/restricted Sources                 Connection failed [IP: 91.189.91.13 80]


Have a question related to indefinte integrals

What is $\int \frac1{1+x^4}\text dx$? I have tried all standard substitutions and couldn't make them work. PLease help


Exam Class : Multicolumn : Symbol (displaystyle) into two lines

How can we break formula mentioned below into into two lines?   $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{\log \log x}}\left\{ {\frac{1} {{x\log x}}\left( {\log x + \log \log x} \right) + \left( {\log \log x} \right)\left( {\frac{1}{x} + \frac{1}{{x\log x}}} \right)} \right\} }$   FYI: I'm using two column layout and this symbol is getting overlapped over next column.   EDIT: Added sample tex file having issue mentioned above:   \documentclass[addpoints,answers,10pt]{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} \usepackage{multicol} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{tabularx} \usepackage{nonfloat} \usepackage{caption} \usepackage{amsmath,amssymb} \usepackage{lmodern} \usepackage{textcomp} \usepackage{ifpdf} \usepackage{chemfig} \usepackage[export]{adjustbox} \begin{document}   \begin{multicols}{2} \begin{questions} \question[4] Ref: (111)\\If\ $\displaystyle \boldsymbol{y = {\left( {x\log x} \right)^{\log \log x}} }$ , then\ $\displaystyle \boldsymbol{\frac{{dy}} {{dx}} =  }$ \begin{choices} \choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{\log \log x}}\left\{ {\frac{1} {{x\log x}}\left( {\log x + \log \log x} \right) + \left( {\log \log x} \right)\left( {\frac{1} {x} + \frac{1} {{x\log x}}} \right)} \right\} }$ \choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{x\log x}}\log \log x\left[ {\frac{2} {{\log x}} + \frac{1} {x}} \right] }$ \choice $\displaystyle \boldsymbol{{\left( {x\log x} \right)^{x\log x}}\frac{{\log \log x}} {x}\left[ {\frac{1} {{\log x}} + 1} \right] }$ \choice none of these  \end{choices} \end{questions} \end{multicols} \end{document}


I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python?  deals with C#.


When we lift an object with constant velocity the work done by us is $mgh$, and that by gravity is  $-mgh$. The potential energy gained will come from the work done ( $PE =mgh$ ). But how can the object gain potential energy if the net work done is zero? If work by us is converted into potential energy then what is the effect of work done by gravity, where does it go?


Scikit Learn Missing Data - Categorical values

I have a dataset containing categorical features, which has 4 labels, and 4 features. (It is a meta classifier, so outputs from base classifier serve as input into this classifier) Label  Feat1 Feat2 Feat3 Feat4  1      1     1      2     2  2      3     1      2     2   3      4     3      3     1       4      4     1      2     4  I'm using scikit learn, and am considering using Naive Bayes or a Decision Tree. The classifier needs to be able to deal with missing features, and I read on scikit learn's  that Decision Tree does not support missing values. What I am looking for is advice as to how to approach missing categorical values when using scikit learn. Also, any links to academic papers addressing this would be appreciated.


I'm new to Ubuntu and I want to know how to install a program which is compressed in the format tar.bz2 or tar.gz.I downloaded an app called Prozilla and it was compressed.I extracted it and it exists on my desktop with the name prozilla-1.21.1.My Username is Bolt (For e.g.). Please give me the necessary commands to be typed in Terminal to install it .


Verification of the explanation of white noise process

I conclude the other post from stack-exchange, and Wikipedia, I come up with the following explanation of white noise process. My question is simply want to know whether my understanding is correct or not My explanation:  if a_t is said to be a white noise process white noise process , can be viewed as combination of 2 part, "white noise"&"process" the first part use the physical properties of white noise to describe the statistical properties of the process. The latter part is to point out this sequence of no. is a process. Therefore the white noise process should have the following properties: 1.E(a_t)=0 2.var(a_t)=S^2 3.ACF of a_t =0


I have made a recover of deleted files with a software which was stopped and after that I can't login. When I write my password and enter the login display is appearing again. How could I resolve this problem? I don't want to reinstall having afraid of loosing my other files.


I have a data file of numbers seperated by tabs, like this  1 2 3 4 2 4 6 8   My real file is 50000 columns wide and I only need every 100th column (column 100, 200, 300, 400, ...). Now I would like to remove all the other columns.  How can I do that?


Make a float only show two decimal places

I have the value 25.00 in a float, but when I print it on screen it is 25.0000000. How can I display the value with only two decimal places?


I have a VPS LAMP server using Ubuntu with linode.com.  I'm using postfix as the MTA to do mailout.  All my emails, when sent to Yahoo, are flagged as spam.  I want to implement reverse dns to see if it will resolve this issue.   Can someone recommend me a guide for this purpose?


local variable 'demo_hour' referenced before assignment tkinter

So i was making an alarm clock with python using tkinter I set up my layout for i wanted it to look, then i decided to implement the plus button in order to increase the number of minutes or hours by which i wanted to set the alarm  For some reason, it says that the 'demo_hour' variable has been refered to before the assignment Is there something wrong with the logic in my code? The needed code:     demo_hour = 0     demo_minute = 0     demo_am_pm = "AM"      hour = time.strftime("%I")     minute = time.strftime("%M")     am_pm = time.strftime("%p")      mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")      # Up/Down commands     def u_hr():         demo_hour += 1         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")     def u_m():         demo_minute += 1         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")     def u_ap():         demo_am_pm = "PM"         up_hr.config(state=DISABLED)         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")      def d_hr():         demo_hour -= 1         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")     def d_m():         demo_minute -= 1         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")     def d_ap():         demo_am_pm = "AM"         dw_hr.config(state=DISABLED)         mytime.config(text=f"|{demo_hour}| : |{demo_minute}| |{demo_am_pm}|")  The needed error: Traceback (most recent call last):   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1883, in __call__     return self.func(*args)   File "/Users/veresh/Desktop/Python Projects/alarm.py", line 112, in u_hr     demo_hour += 1 UnboundLocalError: local variable 'demo_hour' referenced before assignment


Ubuntu20.04 fresh install, no software store

Software Center only shows "Editors Pick" and categories nothing else when "All" is selected. Has anyone else seen this?


Mesh is not rendering, I can only see a background image (or nothing)

FILE:  I'm doing motion tracking scene and the objects that I put in are not rendering. They are rendering in viewport and in other places but not in the final render. The shadow catcher seems to not work too. I didn't pack the background movie, it's too heavy.   I tried:       FIRST Image is how it should looks like (taken from viewport) SECOND is how it looks


mpg = mileage per gallon and hp = horsepower    Why is this model a linear model despite having a square of horsepower in it?


Bind variable with dotted name not working in dynamic SOQL

As mentioned in , it's possible to use bind variables in dynamic SOQL queries.  This seems like a great way to avoid SOQL-injection, and to build a query string once but use it multiple times with different values in the variables.  I'm working on a method that returns a list of objects.  It accepts a class with multiple properties as its only parameter.  The properties of this class are used to filter the results to just the required records.  It will eventually be driven by a Visualforce component, which will be configured by querystring parameters in the URL.  I just ran into an issue where the query fails when I use dotted bind variables.  If I copy the constructed dynamic SOQL into a static query, it works fine.  This may be a bug, because in doing tests I found that :foo.bar would actually try to use local variable bar.  Here's one of my queries, which uses related custom objects.  I've stripped it down to just the part that's failing (wrapped for legibility):  result = Database.query('SELECT Name, Another_Object__r.Name,      Another_Object__r.Custom_Field__c      FROM Custom_Object__c       WHERE Another_Object__r.Custom_Field__c = :filter.deviceType');   The error reported is System.QueryException: Variable does not exist: filter.deviceType.  As mentioned above, the query works fine as static SOQL, just not dynamic:  result = [SELECT Name, Another_Object__r.Name, Another_Object__r.Custom_Field__c FROM Custom_Object__c WHERE Another_Object__r.Custom_Field__c = :filter.deviceType];   It also works in this case:  String deviceType = filter.deviceType; Database.query('SELECT Name, Another_Object__r.Name, Another_Object__r.Custom_Field__c FROM Custom_Object__c WHERE Another_Object__r.Custom_Field__c = :deviceType');   I haven't read about this being a known limitation.  I don't know if I should be using some other syntax/notation in the query -- the dotted notation appears correct.  Time to report a bug?  Thoughts on workarounds other than creating local variables to stand in for each member of the class?


Is it meaningful to combine relative risks and hazard ratio data in meta-analysis?  Trial data I have extracted takes the form of either 2x2 data (from which the RR is easily calculated) or HR with associated 95%CIs. I'm not interested in the time-to-event aspect of the HR metric for the meta-analysis and wondered whether it was meaningful to pool HR and RR as both representing ratios of a dichotomous outcome.  This differs from existing questions on CrossValidated in that others do not specifically address the combination of RR and HR


How can I insert a bracket on top or below a sum?

I would like to insert brackets around a sum to signal the number of terms inside like we sometimes do in mathematics. I drew a picture:     The bracket can be either on top or bottom. Is there any way to do this in LaTeX?


Can I recover a single table from a SQL Server 2012 database backup

I have accidentally dropped a specific table and I don’t want to restore whole database (it is huge) but instead I want to recover only that table from a backup?   What would be most simplest solution?


How to open Google docs in new tab in Firefox

When I click a Gdrive item in Firefox it always opens in the current tab. How do I get it to open in another tab. When I click on any other URL it opens in a new tab why not Google docs?  In Chrome when I click on a Google drive item (such as a Gdoc or Gsheet) it will open in a new tab by default.  This is really frustrating if I'm working in a folder that is many levels deep and I open a document I have to open Gdrive again in another tab and navigate all the way back to the folder I was in to get to another document.  , but it has now been removed...  [UPDATE] THIS IS NOT the SAME ISSUE AS OPENING IN A WINDOW VS. IN TAB  In my case it is opening IN THE SAME WINDOW.  [UPDATE 2] I have checked the option in firefox options as well as in about:config and open in new tab is selected. The behaviour works properly on other sites and apps, just not google docs and other apps. It seems that google do not display the buttons like opening a new document as a standard URL in html.  I can use  firefox's center click to open in new tab in some cases, but not all and particularly not when opening a doc.


What's in between "single" and "double"?

I'm trying to think of a word that basically communicates something in between a single and a double.   Is there such a thing as half of a ?  How would you communicate something that is in between a single and a double?


How to operate the words inside an environment?

As title goes, I want to find a way to get the access of the words inside the environment. To be exactly, given some command \operate with one variable, I want to define an environment foo such that   \begin{foo} This is the inside words.  \end{foo}   outputs like \operate{This is the inside words. }.  Roughly speaking, I want a command help me get access to the words between \begin{foo} and \end{foo}.  This problem is fundamentary in some ways.    If the command is empty, it is just what the package comment did. (Note that it is impossible to define \newenvironment{comment}{\iffalse}{\fi}, since the expansion of \fi is later than \iffalse) If the command is \fbox{#1}, it is just what the package mdframed did.  explain why it is not easy .    I try to figure out a solution as follow  \newenvironment{foo}{}{\endgroup} \long\def\foo#1\end{\begingroup\noindent\fbox{\vbox{#1\unskip}}\end} \begin{foo} This is the inside words. \end{foo}   But the problem is that we cannot use other environment inside this environment.


Issues with atlas generator and labelling across maps/images

I have a lot of layers in my project and I am trying to use the atlas generator in the print composer to create a tiled map. Some of the layers have labels which have different configurations with respect to placement.   So far I have found that only the placement offset from centroid with the centroid option whole polygon selected works seamlessly when exporting to tiles. In the following images four neighboring tiles has been merged and the blue lines represents the tile borders:  Offset from centroid:   Around centroid:   Free:   Using perimeter:   The labels looks fine in QGIS when viewing the different areas, but every label is placed automatically to give a good visual appearance based on the current view. In my case the current view should be the entire map and each tile should be rendered according to that view.  Question: Is it possible to configure the label engine in the atlas generator to calculate the label placements for the entire map instead of each tile separately?


Is the product $\prod_{k=1}^\infty \frac{2^k-1}{2^k}$ necessarily $0$?

I have the product $\prod_{k=1}^\infty \frac{2^k-1}{2^k}$. I know that every successive partial product will necessarily be smaller than the last, as we are multiplying always by a number smaller than 1. But, as the expression keeps getting bigger as k does, and it does so very fast, does this product actually converge on a constant different than $0$? I tried calculating the first partial products but just saw that the terms kept approaching $0.28$. It looks like a very random number, is this just a case of slow convergence to $0$? I have no idea of how to calulate this, any help would be appreciated.


Is Stack Exchange network slowly falling apart?

Though, I think I made may homework quite good and read through about pages for  and , I still have no idea, what is the difference between these two sites and what is the purpose to keep them separate, instead of integrating them together?  Again, since both  and  exists, I have no idea, what is a reason for proposing ? Why questions and answers about history of science and matehematics can't be asked in two former sites?  Not mentioning, that there are currently about five or more sites about pure programming. One for developers pros of particular language, one for developers in general, one for development contests one for development homeworks etc. etc. Are there any limits to this?  I understand, that we (many of us) want to have a lot of sites in Stack Exchange network. But, aren't we passing some thin border, that we shouldn't pass through? Isn't Stack Exchange network slowly falling apart? How many different sites about each one, single field of expertise we want?


I remember starting, and losing, a book in the late 80s, early 90s, that I have been trying to  remember for a while now.  It's not much to go on, I realise, but the main crux of the plot, until I left the book in a phone booth :/, was an ice age (either implied or stated, I can't recall) was starting, and a (I think implied) glacier was moving closer to the main castle or walled city of the novel.   The setting was not specifically High Fantasy, but a medieval style setting.  The interesting thing I always remember about the book was that the antagonist appeared to be the ice itself, slowly, but inexorably, getting closer.


Addressing A Comment To More Than One Person?

Is it possible to address a comment to more than one person ?


How can I fix my script to avoid “[Yes: command not found”?

[$(echo -e "No\nYes" | dmenu -i -p "$1") = "Yes"] && "$2"    I am trying to write a prompt script to aid in shutdown and other functions, but whenever I run it with two args it returns this:  <r0x0r|scripts>$ ./script.sh "Are you sure" "htop" ./script.sh: line 3: [Yes: command not found


Using chkconfig to implement auto-start on RHEL7?

I'm moving an in-house application from RHEL6 to RHEL7 servers.  I read you should still be able to use  chkconfig and service commands to install start/stop scripts, even if they have now changed to systemd boot-up:     Although you can still use the service and chkconfig commands to   start/stop and enable/disable services, respectively, they are not   100% compatible with the RHEL 7 systemctl command ... (  )   I follow the RHEL6 procedure (chkconfig --add myscript; chkconfig myscript on) and get it working, so you can manually do:    sudo service myscript start   sudo service myscript stop   This works fine.  But what is not working is that the application should auto-start when you reboot the Linux-server. The start-script never gets invoked after reboot.  Is this one of the "incompatibilities" under RHEL7? Or is there a way to fix this, too?  Not able to figure this out.... we still have a mix of RHEL6 and RHEL7 servers, so would prefer if I can continue the chkconfig solution, for now.


Make Windows 10 bootable USB from Ubuntu 18.04

It seems that neither winsub or woeusb are installable, except from source but I don't want to go down that rabbit hole, on Ubuntu 18.04. So what is the normal way of making the simplest thing - a bootable Windows USB?


I saw a sentence like this:     Wilkinson is contesting the release, and threatened to sue should it be released.   I could understand it but do you know what do they call this kind of use of "should" in grammar?


ubuntu 12.04 cant boot with kernel 3.2.0-49 and 3.2.0-51

I am now using ubuntu12.04 with kernel 3.2.0-48. Where can i find some logs which will help me to find the reason? sorry for my poor english.


How to open a new url in current tab? - JAVASCRIPT

I have tried a lot of different methods. But all of them lead to the url opening in a new tab. Using javascript, how can i do this?  (no jQuery please, this is a school project and we haven't had jQuery as a lesson yet)  this is the function i'm working with:  function myFunction() {             window.open('project.html', 'toolbar=0, location="_self", menubar=0');             target = "_self";             }


how to find best suited drivers for your system?

I have been using Ubuntu for about a year now. And the main reason that's pulling me back to windows is the bad battery life (about 60% lesser "100% to 20%" time for the battery to discharge).  I've come to the conclusion that this is because of GENERIC DRIVERS by ubuntu for a general-purpose OS and Windows doesn't have that because the manufacturers find the right drivers.  My question is how can I find the OPTIMAL DRIVERS for my system?  Also, if my assumption is wrong about drivers causing the bad battery life, could you please give a better explanation.  My specs:  2TB HDD  8GB RAM  Intel i5-8250  Nvidia MX150


What is the minimum bank balance for getting a Schengen visa?

I won a contest to visit Belgium and the Netherlands for a week from India. The accommodation and travel is paid by the company.  They have asked for my income tax returns and bank statements along with my passport for the visa application. I have a bank account I regularly use, but I collect my pay in cash, as I work in a non-profit firm. I do use the account regularly, but only when I need to buy something online, for example.  Right now I have a balance of about €2000 in my bank account. Is that sufficient for visa approval? Do they need my paychecks to be reflected in my bank statement?


Can I fly with a robot as a passenger instead of shipping it as luggage?

Can I book a ticket for my C-3PO human-size figure and let it have a seat instead of paying extra money to have it shipped?  I couldn't find a law which says the passenger has to have a soul, its all about his dimensions  I'll be flying with Ryanair from London to Glasgow


Do Arcane Ward's starting hit points include the INT modifier once or twice?

An abjuration wizard's Arcane Ward states:     [...] The ward has hit points equal to twice your wizard level + your Intelligence modifier.   So how many hit points is this supposed to be?  \$ (2 \times WizardLevel) + INT_{mod}\$  or  \$2 \times (WizardLevel + INT_{mod})\$ ?  I feel like the phrasing hints toward the first calculation, but it's still somewhat ambiguous.


memory impact and scope/lifespan of imported modules python

I'm wondering about a few things concerning importing modules. I have a module that contains nothing but a list of variables, so that I can use these across 3 or 4 scripts that run either once or daily. This same module I would like to use in another script of mine, but I only need to load it once, and afterwards, I don't need the module anymore, because I would copy the variables to a list in my script(for comparison purposes). My questions: 1. if I import the module in a method, is it discarded when the function ends? 2. what is the memory-impact on importing a module?  Good to know is that the function is one-shot.  Greetings


When changing theme's font, why does font-size attribute not work?

Since my theme's font , I add this code to style.css to change the font. It does work:  @font-face {     font-family: 'new-baskerville';     font-style: normal;     src: url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot');     src: local('new-baskerville'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot') format('embedded-opentype'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.woff') format('woff'); }  .new-baskerville{font-family: 'new-baskerville' !important;}          body, h1, h2, h3, h4, h5, h6, p, blockquote, li, a, #menu-main-menu li a, #menu-main-menu li span, font-size: 20 em;{     font-family: 'new-baskerville' !important; }   However, the font-size attribute doesn't work. Even if I set it as 20 em, it still the same size. Why does this happen?      (That code is generated by  plugin)


Recursive sequence of functions: $f_{n+1}= \sqrt{x+f_n}$, $f_1(x)= \sqrt{x}$.   this sequence is monotonic, but what is bounding it? thanks


windows server 2016 hacked for the third time

hello everyone I'm using a windows server 2016 as web server that runs a WebLogic application on a specific port (7001) and I have almost done every thing I know or I read about on the internet to protect  my web server using third party software like Kaspersky ,Spy Hunter ,Firewall issues, autoruns etc.. I'm very confused Kaspersky is always running how it would be stopped and allow the hack tool to encrypt all the data ? for the third time I'm getting hacked and I don't know why ! where is the problem I'm sure 100% its not an inside job ! what should I do , any recommendations ?


Why are the materials of my objects not rendering?

I'm having some trouble while trying to render a scene; what happens is, when I render it in Cycles, everything in the picture is orange instead of its material. When I render it in Blender Render nothing shows up at all except for the sky background.  Orange room in Cycles:   When rendered in Internal Render:


What are the difference between * and & for objects in c++

First of all I know the differences between & and * for variables but not for the objects of a class  consider I have a class let's call it a "Math"  Math math; // a simple object called math Math* mathPtr = &math; // this will holds the address of math object Math& mathRef = math ; // this one is exactly equivalent to the previous one   What are the differences ?!


There is a command l available on my machine which appears to do nothing.  which l also produces no output. Is this a real command, and does it actually do anything?


Use of XSSFWorkbook Sheet interface results in Java Null Pointer exception

I am trying to use the XSSFWorkbook from org.apache.poi.ss.usermodel to read an Excel file. For some reason I am getting a Null Pointer exception when I try to pull data from one of the Sheet methods. I am very new to Java programming, and it may be something very fundamental.  import org.apache.poi.ss.usermodel.*; public class ReadFile {  public static void main(String[] args) throws InterruptedException, IOException {      File f = new File("C:/Users/munish/Documents/Training/Selenium/sample.xlsx");     FileInputStream file = new FileInputStream(f);     XSSFWorkbook workbook = new XSSFWorkbook(file);     Sheet sheet = workbook.getSheetAt(0);      int rowsCount = sheet.getPhysicalNumberOfRows();     System.out.println("Total number of rows: " + (rowsCount + 1));     for (int i = 0; i <= rowsCount; i++) {         Row row = sheet.getRow(i);         int colCounts = row.getPhysicalNumberOfCells();         System.out.println("Total number of Cols: " + colCounts);         for (int j = 0; j < colCounts; j++) {             Cell cell = row.getCell(j);             System.out.println("[" + i + "," + j + "]=" + cell.getStringCellValue());         }     }


Due to , .4 * .4 = 0.16000000000000003 in Julia. I want to get the mathematically correct answer of 0.16, in a CPU-efficient way.  I know round() works, but that requires prior knowledge of the number of decimal places the answer occupies, so it isn't a general solution.


Extend the Ubuntu disk space that was installed beside Windows 7 without reinstalling

I have installed Ubuntu 10.10 inside windows from Ubuntu CD with 12 GB space. How could I increase the disk space to 20 GB with out reinstalling Ubuntu ?


The review system suggested something was probably spam, what should I do when I see this?

While reviewing suggested edits and first posts by new users today, the review system did something new - an alert appeared that suggested that what I was reviewing was probably spam, and prompted me to take a careful look at it.  Should I be doing anything differently than I otherwise do while reviewing when I see this? Additionally, are my actions contributing to helping the spam prevention systems learn?


I am being happy. This sentence belongs to present continuous tense. Can we show duration or state in present continuous tense or no?  If we can? By which structure?


Has the formation of a new quark pair as we separate two quarks been observed or is it only a prediction?

Because of quark confinement we know that as we try to separate quarks appart the energy required will increase, but if the force is strong enough (I do not know if possible in the lab, but at least could happen near a blackhole horizon if one the quarks enters the black hole) part of that energy is used to form a new quark pair so that the two original ones will still be confined.   My question is has this been observed experimentally or is it only a prediction of the standard (or some other) model?


Formula - autofill, but repeat a value twice


Problems with elasticsearch query and regular expressions - Python

I found that the Elasticsearch query doesn't accept a lot of characters due its regular expression processment, and this is messing me up.  On :     Reserved charactersedit If you need to use any of the characters which   function as operators in your query itself (and not as operators),   then you should escape them with a leading backslash. For instance, to   search for (1+1)=2, you would need to write your query as (1+1)\=2.      The reserved characters are: + - = && || > < ! ( ) { } [ ] ^ " ~ * ? :   \ /      Failing to escape these special characters correctly could lead to a   syntax error which prevents your query from running.   I already tried to avoid this error but by pre-processing the test on Python but still didn't solve. I tried the following:  def strip_accents(s):    return ''.join(c for c in unicodedata.normalize('NFD', s)                   if unicodedata.category(c) != 'Mn') ::          eval_file_content = eval_file_content.replace('"', '\\"')         eval_file_content = eval_file_content.replace("'", "\\'")         eval_file_content = eval_file_content.replace("-", "\-")         eval_file_content = eval_file_content.replace("+", "\+")         eval_file_content = eval_file_content.replace("&&", "\&&")         eval_file_content = eval_file_content.replace("||", "\||")         eval_file_content = eval_file_content.replace("<", "\<")         eval_file_content = eval_file_content.replace(">", "\>")         eval_file_content = eval_file_content.replace("!", "\!")         eval_file_content = eval_file_content.replace("(", "\(")         eval_file_content = eval_file_content.replace(")", "\)")         eval_file_content = eval_file_content.replace("{", "\{")         eval_file_content = eval_file_content.replace("}", "\}")         eval_file_content = eval_file_content.replace("[", "\[")         eval_file_content = eval_file_content.replace("]", "\]")         eval_file_content = eval_file_content.replace("^", "\^")         eval_file_content = eval_file_content.replace("~", "\~")         eval_file_content = eval_file_content.replace("*", "\*")         eval_file_content = eval_file_content.replace("?", "\?")         eval_file_content = eval_file_content.replace(":", "\:")         eval_file_content = eval_file_content.replace("\\", "\\\\")         eval_file_content = eval_file_content.replace("/", "\/")         eval_file_content = strip_accents(eval_file_content)         eval_file_content = eval_file_content.encode("ascii", errors="ignore").decode()   How can I solve this? Here's an example of "before and after" pre-processing:    For the query, I'm using the following method:  searchQuery = "http://localhost:9200/metis/ER/_search?q='" + eval_file_content + "'"         res = requests.get(searchQuery).content   The request error:  b'{"error":{"root_cause":[{"type":"query_shard_exception","reason":"Failed to parse query [\'the pmNrOfIpTermsRej of VMGW increasing  \\n1.the VMGW1_LFGS8 of LFGM3 pmNrOfIpT'


Is it possible to automatically lock direction of two finger scroll on touchpad

There is one feature that is available on Windows and which I would really love to discover on Linux. It works the following way.  Suppose I have an area which I can scroll both vertically and horizontally. Whenever I start scrolling it with two fingers on the touch pad, Windows detects the main scrolling direction (vertical or horizontal) and preserves it until I stop scrolling no matter how far I move my fingers in the direction perpendicular to the main detected direction.  For instance, if I start scrolling down, but also slightly to the right (just by a mistake), Windows detects that my intention is to scroll vertically and filters out my mistake by scrolling the area only vertically. Once I release my fingers from the touch pad and start scrolling say to the right, but also slightly up (again just by a mistake), Windows detects my intention and preserves the horizontal direction, not paying any attention to vertical movement of my fingers.  My current workaround is a keyboard shortcut for a script that toggles synclient HorizTwoFingerScroll, but this is not as convenient as what I have on Windows. Other synclient options do not seem to help either.  Is it possible (and how) to achieve on Linux the same scrolling behavior as I have on Windows?  In case that matters: Asus U36SD, Ubuntu 17.04.


I am using Lucene to show search results in a web application.I am also custom paging for showing the same. Search results could vary from 5000 to 10000 or more. Can someone please tell me the best strategy for paging and caching the search results?


I have a only survey level background in network science but am interested in it. I was browsing wikipedia and read this page, (.)  In that article nodes are described as probabilistic.  Is it because of the non discrete time in DNA, or something else? I don't really know why.


Including null values in unpivoted column

Consider the following table:  id  title   genre1  genre2  genre3  genre4  genre5 1   Movie1  Thriller    Crime   NULL    NULL    NULL 2   Movie2  Fantasy NULL    NULL    NULL    NULL 3   Movie3  Political   Philosophical   Historical  NULL    NULL 4   Movie4  Science Fiction NULL    NULL    NULL    NULL   When I unpivot genre1, genre2, ... the NULL values are removed, so that, for example, the rows for Movie1 would be:  id title  genre     original_column 1  Movie1 Thriller  genre1 1  Movie1 Crime     genre2   Is there a way to include NULL values, for example:  id title  genre     original_column 1  Movie1 Thriller  genre1 1  Movie1 Crime     genre2 1  Movie1 NULL      genre3 1  Movie1 NULL      genre4 1  Movie1 NULL      genre5   I can SELECT ISNULL(genre1, '*'), ISNULL(genre2, '*') ..., but suppose I want the values to appear as NULL? Is there a better way than:  WITH  -- SELECT that unpivots table AS unpivoted SELECT unpivoted.id,    unpivoted.title,    ,CASE unpivoted.genre WHEN '*' THEN NULL ELSE unpivoted.genre END    ,unpivoted.original_transaction FROM unpivoted   Also, I notice that the query that returns the source data to be unpivoted MUST have an alias. For example:  SELECT ... FROM   -- *must* give it an alias or it's a syntax error   (SELECT ... FROM) AS source    UNPIVOT(genre for original_column IN (genre1,genre2, genre3,genre4,genre5))   Does anyone know why? I have not found a way to refer to the alias anywhere in the query.


This evening I have been playing with cron for the first time, and have started experiencing strange results.  The script that I am trying to run is a watchdog that allows me to manage a couple other scripts with a web interface.  When I run the watchdog script from a shell, sudo ./watchdog.py it works fine every time, and starts the scripts it is supposed to.  When I add it to crotab, sudo crontab -e with the line */1 * * * * /home/user/watchdog.py, it does not start them, or they crash shortly after starting.  These scripts do need to run as root, so I have also tried */1 * * * * sudo /home/user/watchdog.py, but nothing changed.  My question is 2 part.  1:  How do I troubleshoot this?  2:  What causes this, and why?


Maximum of $\cos \alpha_{1}\cdot \cos \alpha_{2}\cdot \cos \alpha_{3}....\cos \alpha_{n}.$

Maximum value of $\cos \alpha_{1}\cdot \cos \alpha_{2}\cdot \cos \alpha_{3}\cdot \cos \alpha_{4}....\cos \alpha_{n}.$ If it is given that   $\cot \alpha_{1}\cdot \cot \alpha_{2}\cdot \cot \alpha_{3}.......\cot \alpha_{n}  = 1$ and $\displaystyle 0 \leq \alpha_{1},\alpha_{2},\alpha_{3},.......,\alpha_{n}\leq \frac{\pi}{2}.$  $\bf{My\; Try::}$ Using $\bf{A.M\geq G.M}$ $$\displaystyle \frac{\sin^2 \alpha_{1}+\sin^2 \alpha_{2}+\sin^2 \alpha_{3}+........+\sin^2 \alpha_{n}}{n}\geq \sqrt[n]{\sin^2 \alpha_{1}\cdot \sin^2 \alpha_{2}...\sin^2 \alpha_{n}}$$ So we get $$\displaystyle \sin^2 \alpha_{1}+\sin^2 \alpha_{2}+\sin^2 \alpha_{3}+........+\sin^2 \alpha_{n}\geq n\cdot \sqrt[n]{\sin^2 \alpha_{1}\cdot \sin^2 \alpha_{2}...\sin^2 \alpha_{n}}.......(1)$$ Similarly $$\displaystyle \frac{\cos^2 \alpha_{1}+\cos^2 \alpha_{2}+\cos^2 \alpha_{3}+........+\cos^2 \alpha_{n}}{n}\geq \sqrt[n]{\cos^2 \alpha_{1}\cdot \cos^2 \alpha_{2}...\cos^2 \alpha_{n}}$$ So we get $$\displaystyle \cos^2 \alpha_{1}+\cos^2 \alpha_{2}+\cos^2 \alpha_{3}+........+\cos^2 \alpha_{n}\geq n\cdot \sqrt[n]{\cos^2 \alpha_{1}\cdot \cos^2 \alpha_{2}...\cos^2 \alpha_{n}}.......(2)$$ Now Adding $(1)$ and $(2)\;,$ We get $$n\geq 2n\cdot \sqrt[n]{\cos^2 \alpha_{1}\cdot \cos^2 \alpha_{2}...\cos^2 \alpha_{n}}$$ Because above it is given that $$\sin \alpha_{1}\cdot \sin\alpha_{2}\cdot\sin \alpha_{3}.........\sin\alpha_{n}=\cos\alpha_{1} \cdot\cos\alpha_{2}\cdot \sin\alpha_{3}......\cos\alpha_{n}$$ So we get $$\displaystyle \cos \alpha_{1}\cdot \cos \alpha_{2}\cdot \cos \alpha_{3}\cdot \cos \alpha_{4}....\cos \alpha_{n}\leq \frac{1}{2^{\frac{n}{2}}}$$ My question is that can we solve it using any other short method? If yes then please explain it here. Thanks.


My friend needs a proper TeX editor for Windows and I think TeXPad OSx is by far the best. Is there anything like this for Windows 7?


What is wrong with this chi-squared calculation?

I am calculating chi-squared in R and manually, and getting two different answers. I believe that R is correct, but I am not 100% sure.  Can someone please help me understand why?  In R:  test           <- matrix(c(4203, 4218, 786, 771), ncol=2) dimnames(test) <- list(group = c("control","exp"), click = c("n","y")) print(test) print(Xsq      <- chisq.test(test, correct=F))    This gives me $\chi^2 = 0.1712$.  If I do this by hand, however, I get $0.339$.  Here is my calculation: \begin{align} \frac{(E1 - O1)^2}{E1}     &+ \frac{(E2 - O2)^2}{E2}    &  \\ \frac{(4203-4218)^2}{4203} &+ \frac{(771 - 786)^2}{786} &= .3398 \end{align}


Here's my final class.  public class ActivitiesSQL implements Activities {   ...    @Override   public boolean add( Activity e ) {     throw new UnsupportedOperationException( "Not supported yet." ); //To change body of generated methods, choose Tools | Templates.   }    @Override   public boolean remove( Object o ) {     throw new UnsupportedOperationException( "Not supported yet." ); //To change body of generated methods, choose Tools | Templates.   } }  public interface Activities extends Repository<Activity, ActivityId> {     ... }  public interface Repository<T, ID> extends Set<T> {    public abstract T findById( ID id ); }   What I'm trying to understand is why the generated code is remove( Object... and add( Activity ...). Why isn't it remove( Activity ... )?


How can I apply some material included in a node-pack library?

I am new to Blender. How can I apply some material included in a ?


Copy for a checkbox - Positive or negative?

I have a checkbox that is intended to allow the user to send email notifications or not. We'd prefer the email notifications to be sent, so email notifications are sent by default, giving the user an option to not send them.  What I'm wondering, is it better to start with the checkbox checked, and the label saying: "Send email notifications".    Or, start with the checkbox not checked and the label saying "Don't send email notifications"    Perhaps I'm over-thinking this, but I wondered if there was a solid reason to use one over the other?


I tried to install mysql-workbench but getting above error on all sudo apt-get install commands execution. Even tried to install libgssapi-krb5-2 but getting below error.  sudo apt-get -f install libgssapi-krb5-2  Reading package lists... Done Building dependency tree        Reading state information... Done E: The package libgssapi-krb5-2 needs to be reinstalled, but I can't find an archive for it.


How to clear Trash after deleting old user profiles on macOS Catalina?

I probably did something that I was not supposed to do and now I ran into some kind of problem. I deleted two old user accounts from my Mac inside System Preferences to get some space back. However the space did not become more so I checked the hard drive and found the two user folders still being there. So I deleted both manually, which was probably not the best idea. They went to the Trash. However when trying to clear my Trash, the following error occurs:  The operation can't be completed because some items had to be skipped. For each item, choose File > Get Info, make sure "Locked" is deselected, and then check the Sharing & Permissions section. When you are sure the items are unlocked and not designated as Read Only or No Access, try again.  Next I tried to delete the two folders via Terminal using this command: sudo rm -rf ~/.Trash/ This did not work either, I got the following error: Operation not permitted Does anyone have any idea how to solve this problem. Thanks for your help in advance.


I often see constructions like this one:     I look forward to hearing from you soon.   It seems a little strange to me. In my mind it would look better using the infinitive form "to hear". I don't know if it has something with the verbals... Anyway, what I want to know is which form is correct and why?


In the man of find the -ctime is said to be :  -ctime n            File status was last changed n*24 hours ago.  See the comments           for -atime to understand how rounding affects the interpretation           of file status change times.  -atime n           File  was  last  accessed n*24 hours ago.  When find figures out           how many 24-hour periods ago the file  was  last  accessed,  any           fractional part is ignored, so to match -atime +1, a file has to           have been accessed at least two days ago.   I know from  that the ext4 file system stores the creation date , and you can get it using stats , is the status change times they are talking about in the manual the same as the one given by stats ? or precisely , is the ctime the date of creation of a file ?


Bring back values from multiple tables with max value from one field

I have the following code which brings back a list of all the inspections that have been carried out. Each asset (feature.central_asset_id) is inspected weekly so has more than one inspection date listed (inspection_feature.feature_insp_date) in the report. What I want to do is have the report look at the feature.central_asset_id and find the latest inspection_feature.feature_insp_date and the observation that is associated with it (observe_parm_opt.obs_parm_opt_name) and display this as one line in the report. Example of current report Central Asset ID           Feature Insp Date        Obs Parm Opt Name 390309                          01/10/2020                 25% 390309                         08/10/2020                  50% 390309                          15/10/2020                 25% 390309                          22/10/2020                 75% 123456                          02/10/2020                 50% 123456                          09/10/2020                 25%  What I'd like the report to show Central Asset ID           Feature Insp Date        Obs Parm Opt Name 390309                          22/10/2020                 75% 123456                          09/10/2020                 25%  Existing Code: select inspection_feature.feature_insp_date, feature.central_asset_id, feature.feature_deadflag, feature.plot_number, inspection_feature.site_code, central_site.site_name, area.area_name, ward.ward_name, CAST(observe_parm_opt.obs_parm_opt_name as VARCHAR (15)) as Bin_Full_Result, feature.feat_ext_1_easting, feature.feat_ext_1_north  from feature inner join inspection_feature on inspection_feature.site_code = feature.site_code and  inspection_feature.plot_number = feature.plot_number inner join central_site on inspection_feature.site_code = central_site.site_code inner join insp_condition on inspection_feature.insp_batch_no = insp_condition.insp_batch_no  inner join inspection_batch on insp_condition.insp_batch_no = inspection_batch.insp_batch_no inner join observe_type on insp_condition.observe_type_key = observe_type.observe_type_key inner join area on central_site.area_code = area.area_code inner join ward on central_site.ward_code = ward.ward_code inner join observe_parameter on observe_type.obs_parm_code = observe_parameter.obs_parm_code inner join observe_parm_opt on observe_parameter.obs_parm_code = observe_parm_opt.obs_parm_code  WHERE  insp_condition.grade_code = observe_parm_opt.obs_parm_opt_code and observe_type.observe_type_code = 'BI01' and inspection_feature.feature_insp_date >= to_date ('17/08/2020', 'DD/MM/YYYY')


Suppose that $S\subset R$ is a multiplicative set in $R$, where $R$ is a commutative ring with identity $1\neq 0$. Prove that the homomorphism $\phi:R\to S^{-1}R$ is injective if and only if $S$ contains no zero-divisors.  I have an idea about how to approach this question, but I am not sure exactly how to structure it. For one direction, where we assume $\phi$ is injective, this means that $\ker(\phi)=\{0\}$, which I think means that there are no zero divisors in $R$, so there are no zero divisors in $S$ because it is a subset of $R$? Am I headed in the right direction?  Edit: I believe this question is different than the one it is marked as duplicate to, because that question uses the concept of monomorphisms which are not mentioned here.


String concatenation and comparision using ==

why the result is false? could someone please explain?  public class StringTest1 {     public static void main(String[] args) {     String a="a";     String b=a+"b";     String c="ab";     System.out.println(b==c);     } }


Show that there is a rational number and an irrational number between any two real numbers.??


Does doubling the ISO reduce the shutter speed in half?

Simple question really. When you double the ISO does it mean your shutter speed needs to be half of the original value to have the same brightness in the image?


Homology of Eilenberg-MacLane $K(\pi,1)$ in terms of group homology and Tor

Let $\pi$ be a group and $K(\pi,1)$ be the associated Eilenberg-MacLane space (it has a contractible universal cover). I have proved the following isomorphism for the the chain complex with local coefficients in some abelian group $A$ with trivial right $\pi$-action:  $$C_*(K(\pi,1);A)\cong A\otimes_{\mathbf Z[\pi]}C_*(\widetilde{K(\pi,1)})$$  I wish to conclude that  $$H_*(K(\pi,1);A)\cong\operatorname{Tor}_*^{\mathbf Z[\pi]}(A,\mathbf Z).$$  I know that the group homology of $\pi$ comes from $\mathbf Z\otimes_{\mathbf Z[\pi]}A$ in some way and I feel like the fact that the universal cover of the space being contractible should allow me to conclude something along similar lines, but I have no good reference for this material and am still fuzzy on how $\operatorname{Tor}$ would work here. I think I basically just want to compute the homology of the chain complex $A\otimes_{\mathbf Z[\pi]}C_*(\widetilde{K(\pi,1)})$ (without using Künneth), but I am confused about how this would work and I'd really appreciate any help.


I'm working on a "toy problem" where I am supposed to write a JavaScript function that converts a decimal into a fraction and returns it as a string.  For example:  fractionConverter(2.75) should return "11/4".  Here is my code:  function fractionConverter (number) {   if (number > 0) {     var isNegative = false;   } else if (number < 0) {     var isNegative = true;   }    number = Math.abs(number);    if (number % 1 === 0) {     var finalFrac = number + "/1";   } else {     for (var i = 2; i < 10000000000; i++) {       if ((i * number) % 1 === 0) {         var finalFrac = (i * number) + "/" + i;       }       if (finalFrac) { break; }     }   }    var getFrac = function(numString, bool) {     if (!bool) {       return numString;     } else {        return "-" + numString;     }   }    return getFrac(finalFrac, isNegative); }   Sorry about the formatting.  Anyway, I'm getting a weird spec failure.  The function returns the correct values for the following numbers:  0.5, 3, 2.5, 2.75, -1.75 and .88.  For some reason, however, it is failing on 0.253213.  It is returning 1266065/5000000 instead of 253213/1000000.  Not really sure why.  Thanks


I just got Linux Lubuntu 14.04 on my computer and i have some problems with adobe flash. If i do not have my flash installed than youtube videos are working but not all. But when i install flash none of the players are working, not even youtube. Can anyone help me please?


Crash course on algebraic geometry with view to applications in physics

Could you please recommend any good texts on algebraic geometry (just over the complex numbers rather than arbitrary fields) and on complex geometry including Kahler manifolds that could serve as an informal introduction to the subject for a theoretical physicist (having in mind the applications in physics, e.g. in the string theory)?   What I want for a moment is to get some informal picture of the subject rather than being dug up into the gory details of the proofs and lost in higher and higher layers of abstraction of commutative algebra and category theory. The texts I have found so far are all rather dry and almost completely lack this informal streak, and all of them are geared towards pure mathematicians, so if there exists something like "Algebraic geometry for physicists" and "Kahler manifolds for physicists" (of course, they would probably have different titles :)), I would greatly appreciate the relevant references.


What data is there for physicians to advise patients taking Ace Inhibitors during the COVID-19 pandemic?

Angiotensin-converting enzyme 2 (ACE2) is a membrane-bound aminopeptidase that has a vital role in the cardiovascular and immune systems4. ACE2 is involved in heart function and the development of hypertension and diabetes mellitus. In addition, ACE2 has been identified as a functional receptor for coronaviruses4, including SARS-CoV and SARS-CoV-2. SARS-CoV-2 infection is triggered by binding of the spike protein of the virus to ACE2, which is highly expressed in the heart and lungs4. SARS-CoV-2 mainly invades alveolar epithelial cells, resulting in respiratory symptoms.   ..     SARS-CoV-2 is thought to infect host cells through ACE2 to cause COVID-19, while also causing damage to the myocardium, although the specific mechanisms are uncertain. Patients with underlying CVD and SARS-CoV-2 infection have an adverse prognosis. Therefore, particular attention should be given to cardiovascular protection during treatment for COVID-19.   Although women have higher levels of ACE2 receptors, those taking ACEI anti-hypertensive drugs have higher levels again as a result of the action of these drugs.     Myocardial injury associated with the SARS-CoV-2 occurred in 5 of the first 41 patients diagnosed with COVID-19 in Wuhan   and there are reports that MERS-CoV also caused cardiac injury.  So, is there other data for physicians to assess on whether they should change their patients' anti-hypertensive medications during this pandemic?


Which is grammatically correct? He was mayor (or) a mayor from 2010 to 2014

I have encountered the following sentence in Macmillan Dictionary.     He was mayor from 2010 to 2014, if my memory serves me correctly.   But other grammar books say that we should omit the article "a/an" only after the verbs describing a change of state.) such as "He was elected mayor last year. He was appointed mayor last year." But in the Macmillan sentence, "was" is not a verb describing a change of state. It is just like some other sentence such as      He was a professor from 2010 to 2014.    Can anybody teach me whether the dictionary sentence is grammatically correct or incorrect, and present me with some evidence which prove that your explanation is right? I'd appreciate it.


Python: How do add variable length leading zeros to a binary string?

I am looking to add leading zeros to my_string = '01001010' to ensure that a minimum of 'length' bits string, where length >= len(my_string)


Numerical integration of divergent function

I am having trouble with the numerical integration of a divergent function. For example, \begin{equation} n= \int f(x)\,dx = \displaystyle\int \dfrac{\Theta(x-\varepsilon)\,dx}{\sqrt{x-\varepsilon}} \end{equation} is not behaving good when calculated numerically: \begin{equation} n_\text{numerical} \approx f(x_j)(x_j-\varepsilon) + \sum_{k=j+1}^N f(x_k)\Delta x \end{equation} with \begin{equation} x_i = x_\text{min} + i\Delta x \end{equation} and $x_j$ being the smallest point larger than $\varepsilon$. Due to the divergent behavior of $f(x)$ near $\varepsilon$, the numerical result has discontinuities and jumps at every $\varepsilon=x_i$ when I sweep $\varepsilon$. The smoothness of this integration is crucial in the convergence of my simulations. Can anybody suggest a simple trick to solve the problem? All I need is to have a continuous numerical result by continuously changing $\varepsilon$.


When a stock price goes down, does the money just disappears into thin air?

For a stock with market cap in hundreds of billions, when the price goes down, it's market cap could drop in billions in seconds. When this happens, does the money just disappears into the thin air? I suppose it's not logical to think it just disappears, for example in gambling, when one guy lost money, the other guy wins the money, the money doesn't just disappears, it just switched from one person to another. So in stock, where did the money go when the price of a stock goes down?  Update: In Aganju's example, no actual money is involved yet because I painted the picture and I haven't sold it in exchange for money yet, so it's just value of the picture goes up or down.  Now assume I sold the picture for $1000 to person A, then few months later person A doesn't want it anymore and want to sell it, but he can only sell it for $900. In this case, the total money involved is $1000, the actual cash didn't disappear. It it correct to say person A lost $100 to me, and he will lost more money to me if the value of the picture keeps going down? Is it correct to say when a stock price goes down, the stock holder lost money to the people who sold them the stocks?


Logic behind Python reversing a slice with index and step

I'm trying to understand the logic behind reversing a slice using slice index and step.  First of all, I can reverse a string using the slice step like this:  a = "Hello" a[::-1] >>> 'olleH'   Also, I can reverse only a part of the string like this:  a = "Hello" a[:2:-1] >>> 'ol'   But when I try to reverse the string using another range like this:  a = "Hello" a[1:3:-1] >>> ''   I get an empty string.  However, if I inverse the ranges like this example:  a = "Hello" a[4:1:-1] >>> 'oll'   I get the reversed slice between indexes 1 and 4.   But, correct me if I'm wrong, I know that the first index from a slice must be less than the second index.  This is why when I run this example:   a = "Hello" a[4:1] >>> ''   I get an empty string.  So, can somebody explain to me why reversing a string (slice) while an inversed range with a negative step works, and using the logic of the first index being less than the second one in a slice will give an empty string.  Thanks for your answers.


Automatically run a macro if I place cursor in a specific cell?

I have an advanced filter in my Excel worksheet and I have a macro for the advanced filter with a click of a button. Once I update Criteria, the report should refresh automatically, without having need to click the button. (In Advanced Filter, what I am doing is copying output to an Output Sheet. The Input report is in a different sheet. I have placed Criteria for the advanced filter in the Output sheet itself and the Output is placed below the Criteria.) Is it possible?