Trigger user defined function in jquery validation plugin

I have 2 custom validation methods in my JSP which one of them has regex on the ID format entered, and the other method which help me to search whether the user has existed in the database.  Would like to ask how do I call my 2 custom validation methods inside my jquery validation plugin method (as seen below) before the form is submitted? Currently the validation only checks if the fields are empty. I would like to also check against the pattern of string entered (validateIDNo()) and if the user exists (checkUser(id)) before submitting the form.  Thank you so much.  function validateIDNo(){ //regex goes here, returns true/false }  function checkUser(id){ //search database for ID, returns true/false }  <script type="text/javascript">     //jquery validation Script     var _global_validator = null;      $(document).ready(         function() {             $("#form1").validate( {                 errorElement : "small",                 //ignore:".ignore",                              invalidHandler : function(e, validator) {                     _global_validator = validator;                     renderCheckableUIValidation(validator)             },              errorPlacement : function(error, element) {                 error.insertAfter(element);             },              messages : {                 idNo: "Please enter your ID number",                     mobileNo: "Please enter your mobile number",                     emailAdd: "Please enter your email address"             },                  submitHandler: function(form) {                 form.submit();             }          }); //end validate     });   </script>


What are the situations where you have to compile a document more than once?

You have to compile a file twice to get the desired output in the accepted answer to .  The accepted answer to  provides a way to avoid compiling multiple times.  My question is, what are those situations where you have to compile a file more than once? (We know of at least two such situations with reference to the linked questions.)


Create a relation graph of an existing document

I want to do the following:  Supose you have a written document, with sections, subsections, subsubsections, figures, equations, bibliography, etc. With reference among themselves.  I would like to create "in an automatic way", a graph diagram that express the relations (references) in between all the elements of the document.  I know I can use TiKz to create the graph. My question is how could I can obtain the information off all the objects and their references to draw this graph.  This document is an example of what I would like to achieve   Thank you !


"Can't find Project or Library" for standard VBA functions

So I'm having to run someone else's excel app on my PC, and I'm getting "Can't find Project or Library" on standard functions such as date, format, hex, mid, etc.  Some research indicates that if I prefix these functions with "VBA." as in "VBA.Date" then it'll work fine.  Webpages suggest it has to do with my project references on my system, whereas they must be ok on the developer's system.  I'm going to be dealing with this for some time from others, and will be distributing these applications to many others, so I need to understand what's wrong with my excel setup that I need to fix, or what needs to be changed in the xls file so that it'll run on a variety of systems.  I'd like to avoid making everyone use "VBA." as an explicit reference, but if there's no ideal solution I suppose that's what we'll have to do.   How do I make "VBA." implicit in my project properties/references/etc?   -Adam


How do I find where I rendered my images?

I rendered my animation as an image sequence. I can't find the images so I can render them into a video. How do I find them so I can make them an image strip?


Accessibility issue caused by indentation code check

I'm blind and I wrote some years ago about this issue but nothing was done, now I retry to submit this issue also because there is the reviewer role. To understand my problem I can tell you that I lost one hour and half, more or less, for submitting this question:    and the last thing that I deleted (but I don't know if it was only that the problem) was the tag .  Now my idea is this: you could add a checkbox to submit a question with this kind of problem and if the reviewer note that the problem isn't only  the indolence of the writer, should correct the question and confirm the submitting, if he find too much problems he could reject the question or correct it and give a bad vote. What do you think about that?


How find if a number is the sum of 2 perfect squares?

I'm looking for a way to find if a number is the sum of 2 perfect squares. given x find if there exists non negative integers a, b, m, n such that:  $a^m + b^n = x$


How to replace sections of raster with data from another

I am trying to replace an attribute of one raster dataset, which generalizes the data over that area, with a collection of attributes from another raster which cover the same area, but provide more specific information.    Is there a way to clip out one attribute of a raster, and replace that section with the attributes of another?


Call a static extension method on a derived generic instance

I have an empty IContext inteface:  public interface IContext { }   I also have two derived interfaces IBasicContext and ITypedContext:  public interface IBasicContext : IContext {     string Id { get; } }  public interface ITypedContext<T> : IContext {     T Value { get; } }   I have another project with some code that processes these contexts:  internal static ProcessedContext Process(this IContext context) {     if (context is IBasicContext basicContext) {         return basicContext.Process();     } else if (context.GetType().IsAssignableFrom(typeof(ITypedContext<>))){         // What do I do here??     } }  internal static ProcessedContext Process(this IBasicContext context) {     // Do stuff here to create processed context }  internal static ProcessedContext Process<T>(this ITypedContext<T> context) {     // Do stuff here to create processed context }   Note 1: I have already checked multiple posts. Most of them ask about casting to a base generic class, which is NOT what I am trying to do here.  Note 2: Context classes sit in their own project. They are merely data structures and ProcessedContext creation code does not belong in context project.  Note 3: T can be one of multiple types that I only create at runtime. Having multiple cases for each type is just daunting and ugly. The processing of ITypedContext does not really care about T. It calls another generic method.


Solving the complex equation $\sin(z) = \cos(z)$

To find the complex numbers z satisfying $\sin(z) = \cos(z)$, can I say: $$\sin(z) = \frac{(e^{iz}-e^{-iz})}{2i}=\frac{(e^{iz}+e^{-iz})}{2}$$   and solve for z? So we then reduce this to $$-e^{-iz} = e^{-iz}$$ but this doesn't look right


I am working on a live wallpaper with Libgdx .  I am wondering if I can give neon glow to my textures , at runtime .  Is this possible? If yes can anybody give me any pointers?


Solving The Differential Equation $\frac{dy}{dt} = \frac{at+by+m}{ct+dy+n}$ where $ad=bc$.

I have solved the differential equation $\frac{dy}{dt} = \frac{at+by+m}{ct+dy+n}$ where each of the alphabets $a,b,c,d,m,$ and $n$ is some constant and $ad=bc$ by the following method. Multiplying the RHS of the differential equation by $\frac{d}{d}$, one obtains $\frac{dy}{dt} = \frac{adt+bdy+md}{cdt+d^{2}y+nd}$ Because $ad = bc$, the equation is re-expressed as $\frac{dy}{dt} = \frac{b(ct+dy)+md}{d(ct+dy)+nd}$ Let $x = ct + dy$ One obtains $\frac{dy}{dt} = \left( \frac{1}{d} \right)\left(\frac{dx}{dt} -c\right)$ The differential equation is re-expressed as $\frac{dx}{dt} = \frac{(b+c)x+(md+cn)}{x+n}$ Rearranging the above equation, one obtains $\left(\frac{x+n}{(b+c)x+(md+cn)}\right)\frac{dx}{dt} = 1$ Multiplying the LHS of the above equation by $\frac{\left(\frac{1}{b+c}\right)}{\left(\frac{1}{b+c}\right)}$, one obtains $\left(\frac{1}{b+c}\right)\left(\frac{x+n}{x+\left(\frac{md+cn}{b+c}\right)}\right)\frac{dx}{dt} = 1$ Let $h$ denotes $\left(\frac{md+cn}{b+c}\right)$ $\left(\frac{1}{b+c}\right)\left(\frac{x+n}{x+h}\right)\frac{dx}{dt} = 1$ Integrating both sides of the above differential equation with respect to $t$, $\left(\frac{1}{b+c}\right)\int \left(\frac{x+n}{x+h}\right)\frac{dx}{dt} dt = \int dt$ One obtains, $x + (n-h)$ln$|x+h| + K = (b+c)t$ where $K$ is an arbitrary constant. Substituting $x$ as $ct + dy$ and $h$ as $\left(\frac{md+cn}{b+c}\right)$, $(ct + dy) + (n-\left(\frac{md+cn}{b+c}\right))$ln$|(ct + dy)+\left(\frac{md+cn}{b+c}\right)| + K = (b+c)t$ The above equation is my solution to the differential equation. However, when applying the solution to the differential equation $\frac{dy}{dt} = \frac{-t -2y -3}{2t+4y-1}$ each of the terms with $\left(\frac{md+cn}{b+c}\right)$ is undefined. Is the reason for the case is because my solution to the differential equation is incorrect? The differential equations are obtained from the book Differential Equations and Their Applications: An Introduction to Applied Mathematics, 4th Edition by Martin Braun on the section 1.4.


$f (x) ∈ Q [x]$ is irreducible if $f (x - 1)$ is irreducible.

I think the Eisenstein Irreducibility Criterion can work, but I don't know how to apply it.


At what n is the number $1!+2!+3!+4!+...+n!$ a square of another integer number? All in all I have found $2$ values: $1$ and $3$. I think they are the only ones, but the only thing left is to prove it. How?


Minor change policy regarding real names

When reviewing edits, I often find minor changes which simply remove the name from the original question. So the user wrote something like   Thanks,     myname   at the end of the question and somebody edits this out.  OK, the greetings is not really necessary for a posting so it doesn't hurt. If I see that the original poster wants to remove it, it's also fine for me. However if somebody else removes this, without any other changes I'm a bit torn.  For privacy reasons I would personally agree, as I feel that the name of the person shouldn't matter, and it just makes tracking easier for cross referencing with other information about a given person in the internet. However, if the person added his name, then he should know what he is doing, so why should I disrespect that by removing his name?  So, should such a change be rejected as a minor edit, or should it be approved?


Attempt to de-reference a null object on an existing object

I have the following method that runs on beforeUpdate and beforeInsert Triggers on Event:  private void populateMeetingStatus() {     System.debug('populateMeetingStatus');     for (Event event_i : (List <Event>) Trigger.new)     {         if(event_i.Event_Details__C != null)         {             if(event_i.Meeting_Status__c == 'Completed')             {                 //"Event Locked" - The field should be True if Meeting status is Completed                 System.debug('event_i.Event_Details__c:' + event_i.Event_Details__c);                 System.debug('event_i.Event_Details__r.Event_Locked__c:' + event_i.Event_Details__r.Event_Locked__c);                  event_i.Event_Details__r.Event_Locked__c = true;              }             else             {                 //"Event Locked" - The field should be false                 event_i.Event_Details__r.Event_Locked__c = false;             }         }     }   it fails on the line   event_i.Event_Details__r.Event_Locked__c = true;   with the error     System.NullPointerException: Attempt to de-reference a null object   i printed the value of this field:  10:22:49:172 USER_DEBUG [1512]|DEBUG|event_i.Event_Details__c:a1G9E000000InGTUA0 10:22:49:172 USER_DEBUG [1513]|DEBUG|event_i.Event_Details__r.Event_Locked__c:false   this fiels exists, and still i receive this error. why does this occur? how can i solve it?


I have some doubts, how to go previous path in terminal.for example. >home\username\ I need to go >home. Its directory or user\path. Help me out this.


I want to know if I can open a virtual machine (VMware , Virtual Box ...)and (for example) install Windows 7 + some programs (Chrome, Word, antivirus....) and then save the current state. Right now I don't have any idea how I can. Then I would execute a piece of malware, after that I want to know if it's possible to know the modified files and the new registry keys that they've added to the VM. I would want to know all the modifications after the first saved state, just for malware analysis. And then I want to be able to return the VM to the first state (in some tutorials on YouTube I saw them saving the new modification in files like "Virus.VMEM")  How can I do that on linux (Debian)? I've already installed VMware and  I'm ready to install any other tool that could help me.


I'm building an object detector using HOG features and linear SVM. Some of the regions of the object are more "distinctive" so I would like to give more weight to the features extracted from those regions. (e.g. imagine we want to detect between mugs and glasses, then the most "distinctive" part is the mug's handle)  How could I do this? For sure there should be a more intelligent way than just replicating the features of those "distinctive" regions.


What's exactly the mechanism for showing "Attention: some of your recent flags have been declined"

Yes, yes, yes, I have seen , but it doesn't seem to be the case for me. marking it as dupe because @Animuson .  I am getting this message when I click flag on Stack Overflow:        However, my last declined flag is from feb 28 - a month has passed already. Since that moment I had 32 helpful flags, 5 aged away, and 3 pending - and no declined.  What's the reason behind this notice being shown for me?


How do I delete multiple lines in nano without affecting the clipboard?

I can select all file by going to the 1st line Alt+\, start marking the text by Alt+A, go to the last line by Alt+/  But there, I don't know which key to remove the selected text. Hit delete doesn't work for me but Ctrl+K to cut the text will destroy my clipboard.  So, what is the hotkey to delete selected text?


If a function $ f(x) $ depends only on $ |x| $ then its Fourier transform depends only on $ |w| $

Let $ f\in L^1(\mathbb{R}^3,\mathbb{C} ) $ be a function such that for $ x_1,x_2\in \mathbb{R}^3 $ such that   $ |x_{1}|=|x_{2}| $ we have $ f\left(x_{1}\right)=f\left(x_{2}\right) $. I have to prove that also for any $ \omega_{1},\omega_{2}\in\mathbb{R}^{3} $ we have $ \mathcal{F}\left\{ f\right\} \left(\omega_{1}\right)=\mathcal{F}\left\{ f\right\} \left(\omega_{2}\right) $. Here's what I have tried: Note that $ \mathcal{F}\left\{ f\right\} \left(\omega\right)=\frac{1}{\left(2\pi\right)^{3}}\intop_{\mathbb{R}^{3}}f\left(x\right)e^{-i\omega\cdot x}dx $ (where $ \omega \cdot x $ is the dot product of 3dimensional vectors). Now I want to switch to spherical cooredinates, so I'll note $ \omega=\left(R\sin\left(\theta_{1}\right)\cos\left(\varphi_{1}\right),R\sin\left(\theta_{1}\right)\sin\left(\varphi_{1}\right),R\cos\left(\theta_{1}\right)\right) $ and $ x=\left(r\sin\left(\theta\right)\cos\left(\varphi\right),r\sin\left(\theta\right)\sin\left(\varphi\right),r\cos\left(\theta\right)\right) $ So that $ \mathcal{F}\left\{ f\right\} \left(\omega\right)=\frac{1}{\left(2\pi\right)^{3}}\intop_{0}^{\infty}\intop_{0}^{\pi}\intop_{0}^{2\pi}f\left(r,\theta,\varphi\right)e^{-irR\left(\sin\theta_{1}\cos\varphi_{1}\sin\theta\cos\theta+\sin\theta_{1}\sin\varphi_{1}\sin\theta\sin\varphi+\cos\theta_{1}\cos\theta\right)}r^{2}\sin\theta d\varphi d\theta dr $ and since $ r $ is radial I can just write $ f(r) $. Also I will use trigonometric identities to get: $ =\frac{1}{\left(2\pi\right)^{3}}\intop_{0}^{\infty}\intop_{0}^{\pi}\intop_{0}^{2\pi}f\left(r\right)e^{-irR\left(\sin\theta_{1}\sin\theta\cos\left(\varphi-\varphi_{1}\right)+\cos\theta_{1}\cos\theta\right)}r^{2}\sin\theta d\varphi d\theta dr $ All I have to do is to show that the integral does not depend on $ \theta_1 , \varphi_1 $ But I got stuck here. Any help would be appreciated. Thanks in advance.


Is it safe to initialize secret keys by just reading /dev/random on Linux?

For a software, I don't want the user to choose weak keys, so I plan to just read the needed number of bytes from /dev/random to create the needed secret keys. Is it safe to do so?


Get transactions that failed or were never committed

Is there anywhere I can look to find failed transactions in SQL server 2012?


To prove: $n!=\sum\limits_{r=0}^n (-1)^r \binom{n}{r} (n-r)^n$

How to algebraically prove that $$n!=\sum\limits_{r=0}^n (-1)^r \binom{n}{r} (n-r)^n$$  I was trying to find number of onto functions from $A$ to $A$ containing $n$ elements.  Using the inclusion-exclusion principle I am getting  $$\sum\limits_{r=0}^n (-1)^r \binom{n}{r} (n-r)^n.$$  We can also do it by simple combinatorics, as every element has to have a pre-image and number of elements in the domain equal to the number of elements in the codomain, the number of functions is $n!.$   Is there an algebraic way to prove these two are equal?


I have been reading this  for a few days. There is one section (Section 3.3) that confuses me.      We start by gathering local features from training images of a particular class into a single set. Then for every local feature, a Gaussian kernel is placed in the feature space with its mean at the feature. The probability density function (PDF) of the class is then defined as the normalized sum of all the kernels.   To simplify the discussion, we can assume we have $N$ features with each feature has dimensionality 128. Now, I am lost when the author said      a Gaussian kernel is placed in the feature space with its mean at the feature   It seems that this means using kernel method but it also seems the author wants to use kernel density estimator, and what exactly does with its mean at the feature means?   Any suggestions to clarify these confusions are welcome!


What is the determinant of an English native speaker?

It could be argued that only native speakers of English from England are true native speakers. Other countries that have adopted English as their primary language (America, Australia, Canada) have cultural and language differences, spelling, pronunciation etc.


Client should send one big packet or multiple smaller ones per frame?

The client can do several actions per frame, for instance, requesting a movement, shooting etc. Should i send a packet to the server for each action the client performed during the frame, or should i stack them in an unique packet and send it at the end of the frame?  EDIT: i'm using Jmonkeyengine and the provided network API SpiderMonkey.


Gamma Distribution out of sum of exponential random variables

I have a sequence $T_1,T_2,\ldots$ of independent exponential random variables with paramter $\lambda$. I take the sum $S=\sum_{i=1}^n T_i$ and now I would like to calculate the probability density function.  Well, I know that $P(T_i>t)=e^{-\lambda t}$ and therefore $f_{T_i}(t)=\lambda e^{-\lambda t}$ so I need to find $P(T_1+\cdots+T_n>t)$ and take the derivative. But I cannot expand the probability term, you have any ideas?


Australian eVisa needs to be linked to new passport. Form 929 submitted. Can I travel with old and new passport in case updation is not done?

I have an Australian visitor Visa valid till end of Dec 2019. My passport got renewed in February 2019 and I only just got around to informing them of the change via form 929. The reply was it will be updated within approx 4 weeks!   (1)Since I had done a paper application for the visa , I don't have an Immi account. Is that why it is taking so long? If I had done the visa application via Immi account would it have been faster?  (2) If it doesn't get updated fast enough, can I travel with the old and new passports as well as my 929 submission proof and hope the airlines will do the updation before they let me board? Or is that a risk? What are my chances of getting turned back?  (3) The visa itself took 37 days (although they said 29 days)to come and I couldnt travel with my family in December. What are others experiences in getting passport details updated after submitting 929?


can we use temporary data files for apk installation?

First of all let me tell you why i ask this question (perhaps i'm in the wrong way):  My program will use SQLite. Every tuto/docs i found regarding SQLite talk about DatabaseHelper. This means that database is created and filled from code.  I have a lot of data to place in my database during apk installation, and i don't want to keep useless data that serves only installation.  So my idea :   -write a file (e.g : .xml) with my my database tables contents (like 10000 lines for a couple of tables).  -At first launch (or during installation) init my database with that data file  -then delete that data file that is not needed anymore to free some "disk" space.  Is it a good idea?  Can we do it?  Or with other words, how to init a "big" database without using useless disk/memory space?  PS : i don't have any server to host a file ;)  EDIT : i'm not sure we can talk of duplicate as i'm looking for deleting temporary file just used during installation. if my database cost 10MB, why using: 10MB of bdd + 10MB of data file that served only once during installation? Duplicate question just talk about bdd init, not temporary init file.


I am trying to virtualize an old linux server, and the PtoV software requires a password login as root via ssh. However, the root login is being prevented with a "Permission Denied" error on the client end, and a "Failed Password for root" on the server end (when sshd is running in debug mode).  I HAVE set PermitRootLogin yes in /etc/ssh/sshd_config.  This is an old RedHat 7.3 server that has had hardening scripts like Bastille run on it years and years ago, and has many remnants of old OS's (like ipchains - no longer supported by the kernel) lying around. All to say I have little idea what has been altered from the original system, but there is a lot.   I can log in fine as root from the console I can su to root fine from within the console or ssh session I can ssh fine as a regular user.   My question is: What else could be preventing my root login on this server?  More information: /etc/pam.d/sshd   auth       required     pam_stack.so service=system-auth  auth       required     pam_nologin.so  account    required     pam_stack.so service=system-auth  password   required     pam_stack.so service=system-auth  session    required     pam_stack.so service=system-auth  session    required     pam_limits.so  session    optional     pam_console.so   /etc/pam.d/system-auth  auth        required      /lib/security/pam_env.so auth        sufficient    /lib/security/pam_unix.so likeauth nullok auth        required      /lib/security/pam_deny.so account     required      /lib/security/pam_unix.so password    required      /lib/security/pam_cracklib.so retry=3 type= password    sufficient    /lib/security/pam_unix.so nullok use_authtok md5 shadow password    required      /lib/security/pam_deny.so session     required      /lib/security/pam_limits.so session     required      /lib/security/pam_unix.so     Can anybody tell me if the hashing algorithm could be the culprit?  Keeping in mind that I can log in as an unprivileged user.


Pass each list item to a new thread one by one

What I'm trying to do is very simple, I scan a list of strings, then, I pass each string to a new thread for printing.  using System; using System.Collections.Generic; using System.Threading;  namespace MultithreadingSynchronization {     class Program     {         static void Main(string[] args)         {             List<string> stringList = new List<string> { "server1", "server2", "server3", "server4", "server5", "server6", "server7", "server8", "server9"};              foreach (string server in stringList)             {                 ThreadStart work = delegate { Threadjob(server); };                 new Thread(work).Start();                 //Thread.Sleep(10); // 10 ms delay of main thread             }         }          public static void Threadjob(object server)         {             Console.WriteLine(server);         }     } }   From some reason, there are threads that received wrong value, therefore, the output presents some duplicated strings, and also miss some strings. I'm expecting for this output (the order isn't important):  server1 server2 server3 server4 server5 server6 server7 server8 server9   But, sometimes I get this:  server3 server2 server5 server5 server7 server4 server8 server9 server9   and sometimes I get this:  server2 server2 server4 server3 server6 server7 server7 server8 server9   etc.  indeed, if I put a delay after each thread creating, I get what I expect to get.  Any idea?


Is it possible to remove my default gateway from /etc/resolv.conf after successful VPN connection?

I have configured PPTP VPN connection on Ubuntu 16.04.3 LTS via NetworkManager (nm-pptp-ppp-plugin) and it works. My configuration:   VPN   Gateway User name Password Advanced - set some options on PPTP Advanced Options  IPv4 Settings    Method: Automatic (VPN) addresses only   DNS servers : 192.168.1.1 (internal IP address of VPN's default gateway)   IPv6 Settins    Method: Ignore    I commented out #dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf, ran sudo dpkg-reconfigure resolvconf and sudo resolvconf -u.  Without VPN connection my /etc/resolv.conf contains the following line:  nameserver 192.168.3.1   where 192.168.3.1 is IP of my router. After that, VPN connection /etc/resolv.conf changes to:  nameserver 192.168.1.1 nameserver 192.168.3.1   But as far as I can understand it should contain only 192.168.1.1.  Is it possible to remove my router's IP (192.168.3.1) from /etc/resolv.conf programmatically? I mean by  or similar.  It seems that I do not have the  with my current configuration.  P.S. I understand that my question may have been discussed before, but possible duplicates do not fit my needs.  Update 1. On my other 16.04 laptop I also needed to disable systemd-resolved.service with:   sudo systemctl stop systemd-resolved.service sudo systemctl disable systemd-resolved.service


Why don't we have just one type of charge? Why do we need two?

Why do we need to admit two types of charges (positive and negative)? Can't there be a third type?


Why RSA uses {d,n} as private key instead of {e,n}?

While studying the RSA algorithm I referred to some books and some sites such as  and all of them chose {d,n} as the secret (private) key and release {e,n} as the public key but as d and e are multiplicative inverse of each other, can't we keep {e,n} as private key and use the other as public key? Is it a standard rule to choose the {d,n} as the private key?


Automatic breaking/wrapping of long equations (like clang-format)

When using C++, I already became somewhat dependent on clang-format which uses Dijkstra's algorithm (like LaTeX) to tune the whitespace in C++ code. It is amazing, I am not looking back to doing this manually.  LaTeX uses the Dijkstra algorithm every since and the results are gorgeous. The thing that I still have to do is breaking my equations per hand. I do this with align and \\ & \quad usually. Now I was wondering: Could the equations be broken/wrapped automatically with some similar approach?  The obvious problem is that mathematical formulas do not have a rigorous grammar like C++. For instance, there is no clear distinction whether $H(t - t_0)$ is a function $H$ evaluated at the time difference or whether this is just a multiplication. Perhaps one can just break equations at a top-level plus sign or break parentheses over multiple lines.  Is there something out there already that could break equations dynamically depending on \linewidth?


Mismatch between code and position of figures with LATEX

I use the following code to add figures:  \begin{figure} \centering     \includegraphics[width=0.8\textwidth]{orig.png}     \caption{pic}     %\label{fig:awesome_image} \end{figure}   However the figure doesn't appear where it should. For example:  \subsection{A}  \subsubsection{a}  text  [the figure code]  \subsubsection{b}  text  [This is where the figure shows up]  \subsection{B}   What could be the problem? Thanks.


after using my Lenovo Thinkpad T420, I now plan to upgrade my laptop - possibly to the soon to be available T450. However, some friends of mine who use a T440 reported several issues regarding drivers and overall functionality using any linux distro.  I did some web search and found multiple threads regarding this topic, all resulting in the advice to wait until better drivers would have been developed.  My question is if there has been an improvement in compatibility and driver availability and if there is any reason to believe that the new Thinkpad will face similar difficulties.  All answers/hints are very much appreciated!


Is there anything wrong with a perfectly correlated random slope and intercept, assuming there is variability in both?

I know that when there is close to zero variance in either random effect, a perfect correlation can mean that the model isn't able to estimate both effects.  However, I have a good deal of variance in my random intercept and slope. They are, however, perfectly correlated.  I've read some conflicting advice on whether this is a problem.   says: You should be trying to select the 'minimal adequate' model; in particular, overfitting the model (including zero and/or perfectly correlated terms) is more likely to lead to numeric problems, so it's better to try to reduce the model until all the terms can be uniquely estimated.   says:  In general, however, large positive or negative correlations among random effects can reflect structure in one's data and I would certainly recommend against taking out random correlations on the basis that they're close to ±1 when they're included in the model!  (Though this seems to be talking about a correlation close to 1, and not one that is exactly equal to 1?)  Finally, there is some advice offered : This is a standard symptom of an overfitted model. what to do about it (suppress correlation, remove random slope term, penalize using blme package) isn't as clear. glmm.wikidot.com/faq might have some useful information.  So I am wondering:  1) Is this a problem? The correlation actually makes sense given my data, but is there an issue with keeping this correlation in my model?  2) What should I do? The last comment is from Ben Bolker in 2014. Is that still the prevailing advice on what to do?


How do I align span elements in the middle of a div, top to bottom?

I want to change all my elements in this specific div's vertical position, so that they are aligned in the middle, top to bottom.   "vertical-align: top" worked for my button, but not for my other two text elements  "margin: 0px" doesnt seem to work    .FirstRetailer {   clear: both;   background-color: #07213F;   padding: 10px;   height: 62px;   line-height: 62px;   color: #FFFFFF;   vertical-align: top; }  .RetailerRight1 {   float: right;   float: top;   height: 42px;   vertical-align: text-bottom; }  .RetailerPrice1 {   padding: 0px 10px;   height: 22px; }   .btnGoToProduct {   background-color: #A60000;   border: none;   color: white;   padding: 0px 10px;   text-align: center;   text-decoration: none;   display: inline-block;   font-size: 16px;   height: 42px;   line-height: 42px;   vertical-align: top; }

             Product name                           $100.00              Go to product

     Example of my problem (Link to image)   I would like the "Product name" and the "$100.00" to be centered inline with the button.  Many thanks in advance


What are "a" and "certain" adding in meaning to the phrase "a certain Mr. Ripley"?

Consider the following sentences:     I had my identity stolen by Mr. Ripley.   and     I had my identity stolen by a Mr. Ripley.   and     I had my identity stolen by a certain Mr. Ripley.   In what sense do these 3 sentences differ from one another?  How do a and certain modify the middle and last sentences?


How to prevent VLC from opening a window that is too big?

Sometimes VLC may open a small window. But sometimes it will open a window that is like 90% of the entire screen making clicking the controls very hard.  Is there a way to set a consistent size for VLC to always open in?


What DPI/PPI should a 4 by 6 meter outdoor billboard be designed at?

I'm creating a 4 x 6 meter (~13 x 20 feet) outdoor billboard advertisement that includes an image and vector logo (rasterized) in Photoshop. I was working using a smaller size for design purposes, but now the client has approved a final design and wants to go to print. I need to know what DPI/PPI I should export it as.   Additionally, I was given advice by a friend to make it at 30 DPI and work in centimeters (so 400 x 600 cm) then let the print house blow it up to 4 x 6 meters, is this true?


Leaving Paris with expired schengen visa

My visa is valid until 27 May, My return to Philippines (from Paris) is 30th.   Is this okay to exit schengen state even my visa already expired? still I did not breach the 90/180 rule right?


Splitting all polygon features in a shapefile into smaller equal width polygons

I have a shapefile of thousands of polygon features, that i would like to break up into smaller pieces (i.e. break a square into 8 equal pieces). I have read all over these boards for the right solution and haven't found one yet unfortunately. I've tried parcel editor but that only allows you to manually edit one feature at a time, and I've tried fishnet but that doesn't run through each individual feature it just processes across the entire extent of the shapefile. I have the full license for ArcGIS so all options are game. Ultimately I would like to be able to split this initial shapefile of features into a specified amount of equal width slots that each would be their own feature in the resulting shapefile.  Any thoughts?


I was recently brushing up on some fundamentals and found merge sorting a linked list to be a pretty good challenge. If you have a good implementation then show it off here.


I would appreciate it if you could give me a few hints as to how I should go about solving this problem.  Suppose $T:\mathfrak{X}\rightarrow \mathfrak{Y}$ is bounded. Show that $\left\|T\right\|=\inf\{K\in\mathbb{R}:\left\|Tx\right\|_{\mathfrak{Y}}\leq K\left\|x\right\|_{\mathfrak{X}} \}$.  I know that $T$ is bounded if $\left\|T\right\|:=\sup\{\left\|Tx\right\|_{\mathfrak{Y}}:\left\|x\right\|_{\mathfrak{X}}\leq 1 \}$. How can I go from $\sup$ to $\inf$?  Thanks in advance


How can I install photoshop cs6 on ubuntu 14.04? Anyone help me ?


I want to expand and test this $\{(n^3+1)^{1/3} - n\}$ for convergence/divergence.  The edited version is: Test for convergence $\sum_{n=1}^{\infty}\{(n^3+1)^{1/3} - n\}$


What are all of the connected subsets of $\mathbb{Q}$?

The answer are the singletons of $\mathbb{Q}$. I can show that the open intervals of $\mathbb{Q}$ are disconnected by choosing some irrational in the open set and using it to form a separation. But strangely enough, I am having a hard time seeing why the subset $\{p,q \}$ of $\mathbb{Q}$ is disconnected. If say $p < q$ and we choose some irrational $p < x <q$, the separation of $\{p,q \}$ would, I think, be given by $ \{p\}$ and $\{q\}$. But these aren't open in $\mathbb{Q}$ ...?


How do I print a 2D array filled with 1s and 0s?

I'm trying to print a 2D array (size specified by user) with 1s and 0s. However, every time I try to run I get random numbers and letters like "[[I@4eec7777" instead of the 2D array. I commented out the for loops and think I have narrowed down the problem to the initialization of the array? I am not sure what I'm doing wrong.     System.out.print("How many rows? : ");     int numRows = userInput.nextInt(); //numRows works     System.out.print("How many columns? : ");     int numCols = userInput.nextInt(); //numCols works     int randomArray[][] = new int[numRows][numCols];  //    for (int row = 0; row < randomArray.length; row++) { //      int temp = (int) ((Math.random()*2)+1); //      for (int col = 0; col < randomArray[row].length; col++) { //        if (temp % 2 == 0) randomArray[row][col] = 1; //      } //    }     System.out.println(randomArray);


Pre-90s anime movie, girl on a journey to find her brother encounters a dragon/dinosaur-shaped patrol vehicle

I'm trying to find the title of an anime I saw when I was really young. Most likely pre-90's but definitely before 1995. I only vaguely remember some details. It follows a girl who journeys to find her brother. Her brother works for the villain, or has been corrupted by him or something (like a Vader/Palpatine thing).   There's like a city or fortress she travels to looking for him. She has some companions, but I don't remember any details about them or her appearance. I remember one particular scene where they're in the city/fortress, the sky is dark and I don't think the city/fortress was manned. They hear a noise and they duck and hide and then some kind of rolling patrol vehicle/robot (like it drove on wheels, not the whole thing rolled) whips around a corner and zooms by. Here's the weird thing that I'm not sure I remember correctly, I'm pretty sure the vehicle/robot was like dragon- or dinosaur-shaped.  Eventually they encounter the brother. The only thing I maybe remember about him was that he wore like a dark cloak or cape. Possibly a hat or mask.  I think the brother ends up betraying the villain and saving his sister from him.


Determining the existence or non-existence of Non Trivial Ideals of $L(V)$

Prove that If $\text{dim}\ F (V)>1$ be finite, prove that $L(V)$ has no two sided ideals other than $(0)$ and $L(V)$.  Further  Prove that the conclusion above is false if $V$ is not finite dimensional over $F$.  I assumed that $I$ is an ideal properly contained in $L(V)$ and I attempted that any element in $I$ is $0$. Please help me with the problem.I tried too but wasn't sucessful.  I am unable to understand the approach they did using simple groups etc..We hadnt been taught simple groups in our course..I will be thankful if someone can give an elemetary proof of this result..  Morever that question was different(shown as possible duplicate).Because that was wrong


Is SemanticOverflow part of Stackoverflow?

I recently accidentialy visited SemanticOverflow.com.  Is this somehow associated with SO? Or what is the relationship there?


I still don't understand how a gas with an equation of state f(T,p,V)=0 can change if 2 state functions are fixed?

Just like classical potential, it's stated that equilibrium is obtained when the corresponding thermodynamics potential reaches the minimum. Explicitly, according to , in particular:  When the entropy (S ) and "external parameters" (e.g. volume) of a closed system are held constant, the internal energy (U ) decreases and reaches a minimum value at equilibrium. When the temperature (T ) and external parameters of a closed system are held constant, the Helmholtz free energy (F ) decreases and reaches a minimum value at equilibrium. When the pressure (p) and external parameters of a closed system are held constant, the enthalpy (H ) decreases and reaches a minimum value at equilibrium. When the temperature (T ), pressure (p) and external parameters of a closed system are held constant, the Gibbs free energy (G ) decreases and reaches a minimum value at equilibrium.  There is something confuse me here. Take the first claim for example. If we have the formula: $dU=TdS-pdV$ then when $S$ and $V$ are held constant, is it not clear that $dU=0$ for whatever changes occurring? Furthermore, if there are $two$ fixed parameter, is it not true that the state of system is fixed? (assuming there is a state formula $f(T,p,V)=0$). It seems like I'm really misunderstanding some concepts of the thermodynamics potential. Can someone give me a clear explanation for my confusion?


Is it "Yours faithfully" or "Yours sincerely"?

When should one sign a letter with "Yours faithfully" or "Yours sincerely"?


I'm looking for a solution to live-stream my hikes. As far as I'm aware, the best solution is to do cellular bonding, but I will be in areas with little to no cell-signal. (I'm based in the mountains just outside Seattle). Are there any portable satellite receivers that exist on the market today? Or do I need to wait a few years before this technology is available? I saw Starlink come out recently, but it requires a stationary position. Thanks.


MacBook Pro turned off and won't turn on!

I was just using my laptop normally when suddenly the whole computer just shut down. I turned it back on straight away and it was fine. Another hour passed and it did the same thing. I could also turn it on again. And then it happened again, this time I couldn't turn it back on!! I have never spilt any liquid over my laptop so it isn't liquid damage. I have tried resetting SMC, replugging the battery cable inside the computer, leaving the charger disconnected from the mac for a few hours, nothing works! The strange thing is when I have my charger disconnected and I press the little button on the side to show power, nothing happens. But when I do the same with the charger connected it shows full battery.     I have a MacBook Pro 15" Early 2011 running OSX El Capitan.


I have a base xml-tex setup file like .xmt, .cfg, .tex, customized .sty files and cls.   I will try to convert the fmt file by using the below command.  latex -ini -jobname="fmt-file-name" "&latex" mylatexformat.ltx """filename*.*"""   But the XMLTeX commands are not supported for FMT file creation . For Example \XMLelments, \UnicodeCharacter is not supported. The undefined control sequence error is thrown.  I would like to protect xmltex set-up source files like "sample.cfg, sample-entity.sty, sample.xmt files except sample.tex and sample.xml. So, i would like to convert those files into FMT format similar to exe format.   I hope that the source file is converted into FMT file format that format is useful to avoid any unknown person editing those files. But, i can't convert those files.  I have provided my MWE below.  %%Sample.tex%% \def\xmlfile{sample.xml} \input xmltex  %%Sample.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article SYSTEM "JATS-journalpublishing1.dtd">
 <front>
 <title-group>
The sample title
 </title-group>
 </front>  <sec id="j_nanoph-2018-0214_s_001"> <title>Introduction</title>
The <bold>Sample.cfg, Sample.xmt, Sample-entity.sty</bold> files needs to be converted into unreadable format &#x00C1; &#x00E1;.

  %%Sample.xmt%%  \XMLentity{TeX}{\TeX} \XMLentity{LaTeX}{\LaTeX}  %%%%Main Root Tag%%%% \XMLelement{article}%     {}%     {\documentclass{article}%     \begin{document}}%     {\end{document}}% %%%%  \XMLelement{bold}{}{\xmlgrab}{\textbf{#1}}   %%%%Front Matter Tags%%%% \XMLelement{front}{}{}{%   \date{}   \maketitle% }% %%%%  \XMLelement{article-title}{}{\xmlgrab}{\title{#1}}  \XMLelement{title}{}{\xmlgrab}{\section*{#1}}  \XMLelement{p}{}{}{\par}%  %%%%%%%%%%%%%%%%%%%%%%     Output:   So, could you please advice how to convert those files in FMT file format.


Constant of gravity in earth fixed coordinate system

I have this problem:     If the constant of gravity is measured to be $g_0$ in an earth fixed   coordinate system, what is the difference $g-g_0$ where $g$ is the   real constant of gravity as measured when the earth stands still.   The earth fixed coordinate system is rotating, so that the absolute acceleration $g$ is given by  $g=g_0+2\vec\omega\times\frac{d}{dt}\vec r+\vec\omega\times (\vec \omega\times \vec r)$  This is the Coriolis term and the Centrifugal term, the other ones disappear since earth rotates in a steady pace and does not itself accelerate.  I know the answer is supposed to be  $g-g_0\approx g_0\frac{x^2-2x}{2}\cos^2(\phi)$  Where $x=\frac{R \omega^2}{g_0}$. How can I come to this conclusion? My attempts so far have been to try to evaluate the expression given earlier. But I cannot for my life figure out how that yields the supposed answer.  (Note: I've edited the "correct" answer, multiplying what was written originally with g_0 after  some of the answers were written)


How to make LaTeXmk work with XeLaTeX and biber

I'm trying to make latexmk works with XeLaTeX and biber for my thesis. The document will have many cross references. What settings do I need to ensure it works correctly? My current settings for latexmk are below.  -e  $pdflatex=q/pdflatex -synctex=1 %O %S/ -pdf $fullname


Is 'long time no see' grammatically correct?

I have researched and found out long time no see is a direct translate from the Chinese phrase, 好久不见. As much as we use it almost everyday in our lives, is it actually grammatically correct? Since it is a direct translate, is it grammatically approved?


Is it possible to stack symbols on top of another and how do I make letters vary in size?

What I want to do is to place a letter on top of another. Specifically because I want to be able to write a specific representation of Greek numerals with large numbers. I just need to be able to put any Greek letter above a Mu or just M in the Greek alphabet. I also want to write some symbols smaller than others. How do I do that?


I am trying to export a wav format file to an mp3 format in audacity, but when it's done exporting all that is does is make this screaching sound for about two seconds and then there is no sound at all. I have learned so much from frequent use of this site, thank you in advance for all of your help.


I am overlaying some WGS84 (EPSG:4326) coordinates over a few DEM rasters with EPSG:102710 (NAD_1983_STATEPLANE_NEW_HAMPSHIRE_FIPS_2800_FEET)  When they are these two different layer CRS the coordinates overlay perfectly where they are supposed to be, however, if I change the coordinates to have the same EPSG as the DEM rasters, then the coordinates are way off. What is the explanation for this?  The rasters were from this site: . "Digital Elevation Model - Quad 54" for example.   Unfortunately, I cannot provide the coordinates.


How can you customize the numbers in an ordered list?

How can I left-align the numbers in an ordered list?  1.  an item // skip some items for brevity  9.  another item 10. notice the 1 is under the 9, and the item contents also line up   Change the character after the number in an ordered list?  1) an item   Also is there a CSS solution to change from numbers to alphabetic/roman lists instead of using the type attribute on the ol element.  I am mostly interested in answers that work on Firefox 3.


What is the opposite of indented (because "exdent[ed]" appears not to be a word)?

I've always used the word "exdented" when describing a paragraph of text (or, more usually, a section of computer code) where the first line is set further left than the remainder of the paragraph/block - essentially the opposite of "indented".  However, it appears that exdent isn't really a word - it's not in the Oxford dictionaries, Websters, or Wiktionary, as far as I can tell. So, is there a better word? Is there one that typographers and typesetters use?  (In the ancient UNIX text formatting package nroff, the -ms macro set included a .XP command to achieve the effect. This stood for "exdented paragraph" and I suspect that's where my usage comes from, but that doesn't mean it's the right term!)  Oblig. sample sentence: "The first line of the code block should be <exdented> to identify a new block"


My daughter is learning if-sentences in school right now.They learned that the rule for type I sentences is "if-clause: Simple Present, main clause: will-future or (Modal + infinitive)"  How does the following sentence fit into that rule:       If you heat ice, it melts.   By the rule it should be:       If you heat ice, it will melt.   Why is there "melts" used instead? What rule is applicable?  BTW: I would be sorry, if I triggered a duplicate...


Which display program in Win 10 support dual-screen presentations for beamer?

I want display my beamer slides on dual-screen during my presentation in Windows 10. which PDF viewer should I use?  And, is there a portable version of this software, like SumatraPDF ?


Automatically sleep and wake-up at specific times

How can I hibernate or sleep my Ubuntu 10.10 desktop and have it "wake up" the next day?  I have seen software that can do this on windows, so it can't be hard on Ubuntu!


i have problem with print currency symbol in php when i print currency symbol using echo function i got wrong output   i try this code  i have array like   'Turkey New Lira - TRY' => 'も' $key = $row['Currency']; $value = $array_currency[$key]; echo $value;   i have this code for print  $key = $row['Currency']; $value = $array_currency[$key]; echo $value;   i get output like      ã‚‚   alse have problem with echo json_encode get output like   \u3082   give me right solution for this


How many $6$-integer subsets of $\{1, 2, 3, \ldots, 20\}$ have no consecutive integers?

I have to determine how many six-integer subsets of $\{1, 2, 3, \ldots, 20\}$ are possible if no two consecutive integers are in a set.


Problem with Wi-Fi (Ubuntu 16.04 LTS) of Please me

a problem that when turned on the laptop (HP Pavilion G6) Wi-fi was gone I can't include it, tried everything that was, the third day I try to solve this problem, looked for decisions on all possible forums, nothing helped. What offers are. I need your help. Hi, a problem that when turned on the laptop (HP Pavilion G6) Wi-fi was gone I can't include it, tried everything that was, the third day I try to solve this problem, looked for decisions on all possible forums, nothing helped. What offers are. I need your help.  At input (rfkill list) it is empty.  konstantin@pavilion-g6:~$ rfkill list konstantin@pavilion-g6:~$   konstantin@pavilion-g6:~$ lspci -nnk | grep -A2 Network 07:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]     DeviceName: Ralink RT3290LE 802.11bgn 1x1 Wi-Fi Adapter     Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter [103c:18ec]


How to load the layer style from Postgresql with Python?

I would like to write a python macro that upon opening my QGIS project file will reload the default style for each layer from the postgres 'layer_style' table. I have had a look at the  and can only work out how this is done from a sqlite db or .qml file.   Any pointers would be appreciated.


What is the purpose of the red laser pointers some Borg have attached to their head?

I never saw a drone fire a weapon or anything where this laser guidance might have helped them. Out-of-universe it makes for a nice menacing effect when several drones step through fog, but I really see no point in these things in-universe. The laser doesn't seem to have any effect on humanoids, so it's definitively not a weapon.  So, what is it good for? Also, why do some drones lack one?


I don't know how to evaluate this expression:  $A-B\cap C$  Is it true that:  $A-(B\cap C)=(A-B)\cap C$  or, in other words, that the associative property applies to these operations?


Disable automatic screen turn-off during call

I use Gingerbread.   My Android phone has feature, that turns off display during call when I put the phone to my ear. However, the sensor is probably over-sensitive in my device, so it often turns off during call even when I don't keep it next to my face.   This is an issue if I want to use keyboard during call when the screen turns off. Can I disable this feature?


Automating alignment sheet band-data on map with ArcMap and ArcPy?

Anyone have some logic or code samples to automate creating band data for alignment/integrity pipeline sheets showing various point/polyline events along the pipe in configurable way or otherwise ArcMap 10.0 and Arcpy?  Even logic or code in ArcObjects would be helpful.    I've seen some applications use polygons and polylines to build the border and band elements like tick marks and the pipeline representation in the band.  It seems like final printed sheet dimension output would need to be a configurable variable.  What else?


Prove that free modules are projective.   Help me.


Using ArcGIS API interpolation functions (idw, kriging, splines) in my own dataset?

Does ArcGIS API provide interpolation functions, like if I want to interpolate from my own set of values?    I know that ArcGIS provides functions for interpolation like IDW, Spline and Kriging etc, but can I use those functions to interpolate against my own dataset?


Does pointwise convergence to a continuous function in compact set imply uniform convergence?

Suppose $K$ is a compact set in $\mathbb{R}$, $f_n$ is a sequence of functions such that $f_n$ converges pointwise to a continuous function $f$, does it imply $f_n$ converges uniformly to $f$ in $K$ ?  Edit: (addition of Hypothesis)$f_n$ is continuous for each $n$  If it is not true, what example justifies it ?


Stationary Distribution of Doubly Stochastic Markov Chain

For a doubly stochastic markov process defined by a n by n transition matrix, does the stationary distribution go to p = 1/n for each state?  If so, why?


Suppose $A$ be a commutative ring with unity. $S$ be a multiplicative closed subset of $A$. Suppose it is given that $A_S$ is a local ring. What can we say about $S$. Is it true that $S$ must be a complement of a prime ideal?  Thank you.


Travelling to Canada; in eTA, passport number is lower case

I recently got Electronic Travel Authorization (eTA) approved to travel to Canada by air. One thing I worry is that one alphabet letter in my passport number in the eTA approval email is not capitalized. Should I reapply for the eTA in this case?


Why the login-shell is bash, but the /bin/sh is the link of dash?

Generally，the value of environment variable SHELL  is /bin/bash, it means normal shell  environment is Bash，However，the /bin/sh is the link of Dash, what is the Dash effect？  Another question: Although our shell environment is bash, why sometimes it will go wrong because of dash？


Prove by induction: for $n \ge 0$, $\frac{(2n)!}{n!2^n}$ is an integer

Another prove by induction question: for $n \ge 0$, $$\frac{(2n)!}{n!2^n}$$ is an integer  Base step:  $$n = 0$$ $$\frac{(2 \times 0)!}{0! \times 2^0} = \frac{0!}{1 \times 1} = 1$$  Induction step: please help


Explanation of this hint involving the summation of cosine and sine

I have this question     Let $n \ge 2$ be an integer.  Prove that $$\sum_{k=0}^{n-1}\cos(\frac{2k\pi}{n}) = 0 = \sum_{k=0}^{n-1}\sin(\frac{2k\pi}{n})$$   I was given the hint to     Set $z = \cos(\frac{2\pi}{n}) + i\sin(\frac{2\pi}{n})$, so $z^n=1$.  Now write this as $(z-1)(z^{n-1}+z^{n-2}+...+z^2+z+1)=0$ and go from there...   I get that $(z-1)(z^{n-1}+z^{n-2}+...+z^2+z+1)=0$ is just an expansion and rearrangement of $z^n=1$, but what I don't understand is, why set $z = \cos(\frac{2\pi}n) + i\sin(\frac{2\pi}{n})$ and how do we know that $z^n=1$


How to Link/Append world using the blender Python API?

I'm searching a way to append a World in blender Python. I read the reference in  but that is for group append. is there a way to make that work for world append.  sorry for rip english


What does the "static" modifier after "import" mean?

When used like this:  import static com.showboy.Myclass;  public class Anotherclass{}   what's the difference between import static com.showboy.Myclass and import com.showboy.Myclass?


Which level of compression should I use a .iso file

I have an .iso file on my hard drive (on a windows 8 pc) and it is rather large (around 16 GB). I was trying to compress it (using 7-zip) so it could fit on a DVD-R. But when it finished compressing it remained too large to be written. (15 GB). I was using the default settings. ( normal compression level. deflate method ) and I was wondering if changing the settings in some way would produce a smaller file size.


“Author Registration by 20 Oct 2014” --- does it include 20 Oct. 2014?

I am registering for a conference as an author. The deadline  information says "Author Registration by 20 Oct 2014". Can I register it tomorrow, which is 20 Oct. 2014?


How do you properly define a statically inherited method?

I am trying to implement an inheritance chain whereby methods declared on the base type return the derived type by value.  For example, I have a base class Base with a method func().  On a derived class Derived, I want func() to return an instance of Derived by value.  To do this, I am trying to use : the base class takes the derived class via a template parameter, and then makes the method return the template type.  Here is my header file:  #pragma once  template<typename Derived> class Base {   public:     Derived func() const; };  class DerivedA : public Base<DerivedA> {   public:     DerivedA() : Base() {}     DerivedA(const Base<DerivedA>& other) : Base(other) {} };   So far so good.  I define the function in a cpp file:  #include <iostream>  template<typename Derived> Derived Base<Derived>::func() const {     std::cout << "Calling func" << std::endl;     return Derived(*this); }   And then I call it in a main function:  #include "demo.h"  int main() {     DerivedA a;     a.func();     return 0; }   Unfortunately, compiling this code results in the following linker error.  main.cpp.o: In function `main': main.cpp:6: undefined reference to `Base<DerivedA>::func() const' collect2: error: ld returned 1 exit status   Here is my CMakeLists.txt:  cmake_minimum_required(VERSION 3.7) project(demo)  set(CMAKE_CXX_STANDARD 11)  set(SOURCE_FILES main.cpp demo.cpp demo.h) add_executable(demo ${SOURCE_FILES})   Oddly, if I move the definition into the header file, the code compiles without the linker error.  How do I properly define the function (ideally in a cpp file) and make the linker error go away?


I am getting tired of manually managing my chicken farm, so I have invented this automated design:    The step from eggs to chicken is easy, and it's even simple to make it happen in batches - every time dispensers are filled using hoppers, a comparator activates clock until they're empty again.   What I need is to set up is a timeout that activates 20 minutes after the dispensers have stopped shooting. A minecraft day has 20 minutes, which brings the idea of daylight sensor. But note that timeout may start any time in the day, not the same time every day.  And please, I need something that is not bigger than my house.


Laptop wake up from suspend when lid is closed

I have installed on my laptop Ubuntu 15.04. Today I have closed the lid, the laptop got into suspend mode and I put my laptop in my bag. After 3 hours I  got him out and it was hot as hell! The laptop woke up from suspend by itself and continued to work while was in my backpack. What I can do to prevent this kind of problems?


In "The Matrix Revolutions" How Does Neo Stop the Machine Weapons in the Real World?

In The Matrix Revolutions, when Neo and Trinity are trying to get to the Machine City, when the Machines launch weapons against them, Neo is able to destroy some of the incoming weapons. This is in the real world at this point, not in the Matrix.  How does Neo have any powers against the machines outside of the Matrix? Addendum: I'm looking for in universe answers only.  I would think that would be obvious, but I'm adding this after an answer that is essentially, "It's a movie..."


Encrypting a key with the same key, for instance using AES

I am new to crypto and trying to understand if it would be insecure to use a cipher such as AES to encrypt a key with the same key. If it is insecure, then why would it be insecure?  Basically, something like this:  encrypt(key, key)   What happens when both key and message are the same (128 bits)?  The obvious question would be why would I want to do that. If I have a secure channel to send the key, why encrypt it? My question is more for understanding.


Can we prevent titles with an unnecessary tag in them?

So we have lots of questions that are titled like this:  Specifically, questions that have one of their tags in front of their title. Thankfully, these silly users usually use a hyphen or a colon afterwards, which makes it really easy to . Can we clear up this clutter?  Perhaps with a filter that strips off the excess when posting? EDIT: As an added bonus, see  for another style of question title that bugs the heck out of me.


Gradient fade a PNG image using Photoshop

I've searched high and low and finally hit upon alpha channels, but I don't know how to configure an alpha channel to suit my needs. I'm trying take this image...    ...And turn it into this. As you can see the top portion is 100% opaque, and the bottom is 0%. So its a kind of "alpha mask". How can I do this with Photoshop or Gimp or whatever, and save it into a 32-bit PNG?    I'm not simply trying to "cover" or "mask" my image like . I'm trying an alpha mask which is a whole different ballgame.


How to improve Graphics in Virtual Machine VirtualBox?

I am running Ubuntu 13.10 Saucy Salamander 32Bit with Intel® Sandybridge Mobile x86/MMX/SSE2. I have a Virtual machine with XP using VirtualBox with the following settings:   I've tried setting the memory value with a bigger value, but whenever I get the browser it will show something like the following:   It is the same using IE.  Edits:   First Edit: It used to work normally a couple of months ago (can't remember if it worked after upgrading from Ubuntu 13.04).


I've a web application which submits some queries to Oracle 11g. I want to know what are these queries, exactly. I there a way I do this in Oracle 11g? Couldn't do this in the web application itself.


I want to delete record from custom object where name = new. I wrote simple apex trigger to delete this records however I am getting below error when execute.      System.SObjectException: DML statement cannot operate on trigger.new or trigger.old:   Apex Trigger   trigger DuplicateTemp on Temp__c(before update) {     List<Temp__c> tempToDelete = new List<Temp__c>();      for(Temp__c temp: Trigger.New){         If (temp.Name == 'New'){              tempToDelete.add(temp);         }     }          Database.delete(tempToDelete);  }


I am using ubuntu 14.04 LTS,  I am new to ubuntu and webstorm, I want to install monaco font in webstorm, so I installed monaco font in my system using this command  curl -kL https://raw.github.com/cstrap/monaco-font/master/install-font-ubuntu.sh | bash   font installed on /usr/share/fonts/truetype/custom location  But when I try to select this font via webstorm, monaco font not listed under settings->Editor->colors&fonts->fonts


Why are my RAW images corrupt but the previews okay?

So I shot photos for my robotics team at an event this weekend and ~95% of them are corrupt. The JPG previews from the camera are fine, but when Adobe Bridge generates its own preview, the corruption becomes visible. It is also visible in Camera RAW, and Finder (Mac OS file manager)  Is this fixable? If not, how do I prevent this in the future? I'm thinking that maybe this is just bad header info (I don't know how NEFs work but it looks like they store color in different channels, and the channel information is mismatched.)  I used a Nikon D5100, shot in NEF (RAW), and no error messages ever appeared on the camera. The camera appeared to be working perfectly normally, so I didn't even notice the problem until after the event was over.  I don't think this is a duplicate of , because that case did not produce a similar looking aberration so I think it was corrupt in a different manner. Also I do not have images with large chunks missing, just channel issues. Also that question does not have any answers detailing how to fix the images for my situation (since I don't have multiple images of the same thing to stitch together)  Take a look:


How can I change the style of the content of an iFrame with CSS?

I'm trying to use an iFrame to display an HTML webpage from an external source but, I can't get it to work with CSS.


Changing C drive permissions from Ubuntu to Windows?

I cannot access the C drive or launch apps that requires admin permission on my Windows 8, because I've changed C drive admin or user permission to full deny.  I've tried many methods but it didn't work. Can I do it from Ubuntu?


Which mode is the best for taking pictures: manual, auto, or portrait?

Which one is the best mode for taking pictures: manual, auto, or portrait? Or if any other mode is better, please state what it is.


Will Google penalize my site for having duplicate categories between WordPress and Woo Commerce?

Any experience with same categories within posts and products (WP + Woocommerce)?  I would like to have a dedicated page for each category within posts, where I'll show couple of pictures and long description of the product. On the other hand I would like to have same categories in Shop (Woocommerce) showing products.   Will I be penalized by Google for duplicate categories?


I have the following file ~/.config/local_scripts/notifier.sh with this content: #!/bin/sh  notify-send -t 10000 "Cronjob" "Test succeeded"  This is in my crontab, if I execute crontab -e: */1 * * * * ~/.config/local_scripts/notifier.sh && echo "Succeeded" >> ~/test.txt  Here are the permissions:  Now I'm getting my Succeeded in my text.txt file but I'm not getting the notification. What am I doing wrong?


Listing function points in a spreadsheet/excel

I am working on a Pre-Calculus Polar coordinate graphing project that incorporates some creativity; My current plan has me graphing the Nautilus Shell as my focal point. However, I have to list points for every 15 degrees or rotation. (θ+15°k, r), k = 0, 1, 2, . . . 1,152. How do I list every r value from 0 degrees to 17,280 degrees in a google spreadsheet or excel? Thank you in advance.


How to compute prediction bands for non-linear regression?

The  for Prism gives the following explanation for how it computes the prediction bands for non-linear regression.  Please excuse the long quote, but I am not following the second paragraph (that explains how $G|x$ is defined and $dY/dP$ is computed).  Any help would be greatly appreciated.     The calculation of the confidence and prediction bands are fairly   standard. Read on for the details of how Prism computes prediction and   confidence bands of nonlinear regression.      First, let's define G|x, which is the gradient of the parameters at a   particular value of X and using all the best-fit values of the   parameters. The result is a vector, with one element per parameter.   For each parameter, it is defined as dY/dP, where Y is the Y value of   the curve given the particular value of X and all the best-fit   parameter values, and P is one of the parameters.)      G'|x is that gradient vector transposed, so it is a column rather than   a row of values.       Cov is the covariance matrix (inversed Hessian from last iteration).   It is a square matrix with the number of rows and columns equal to the   number of parameters. Each item in the matrix is the covariance   between two parameters.      Now compute c = G'|x * Cov * G|x. The result is a single number for   any value of X.      The confidence and prediction bands are centered on the best fit   curve, and extend above and below the curve an equal amount.      The confidence bands extend above and below the curve by:    =   sqrt(c)*sqrt(SS/DF)*CriticalT(Confidence%, DF)      The prediction bands extend a further distance above and below the   curve, equal to:    = sqrt(c+1)*sqrt(SS/DF)*CriticalT(Confidence%,   DF)


Trouble installing Nvidia drivers Ubuntu 16.04 LTS

So I've been pulling my hair out over this for the last couple days now, I can't seem to find any solutions that work. I've fresh installed Ubuntu Gnome 16.04 on my system which has no other OS's running on it. Everything's fine aside from the fact that the default Nouveau display driver seems to be causing the UI to freeze sporadically every now and then. No problem right? Just install the proprietary drivers for my GPU and we should be golden? Well here's the thing, no matter how I try to get my GPU's drivers installed I always seem to hit some sort of issue. Here's what I've tried so far:   Switch to the proprietary driver from within the 'Software & Updates' app in Ubuntu. For me the only option available is the 'NVIDIA binary driver - version 375.66 from nvidia-375 (proprietary, tested)'.    After selecting this driver it goes through the install process, asks me to 'configure secure boot' by entering a password, etc. This all seems to work fine initially until I reboot, but then before I see the login screen it seems to open a virtual terminal (usually accessed via alt+shift+F1), but then immediately boots me back to a black screen where it will flash this terminal for a split second every 4 seconds or so. I can access this terminal by using alt+shift+F1, and go on to use it as normal, but it will continually boot me back out to the black screen every few seconds. The only way I can solve this is to keep accessing the terminal each time it boots me out while I purge the nvidia drivers using sudo apt purge nvidia-*. After purging I'm then able to access the login screen and access my Ubuntu again as normal, besides having to reboot to presumably activate the Nouveau drivers again otherwise the resolution is all messed up and only one of my three monitors has anything displayed on it.    Using the steps listed  I download the latest stable/certified driver for my GPU (which as of writing this is version 384.69). However on step 3 where it instructs me to run the driver using sudo sh, I reach an issue where the installer informs me that I need to disable the Nouveau driver in order to continue. I've tried everything from uninstalling Nouveau using 'sudo apt-get remove --purge xserver-xorg-video-nouveau` to blacklisting Nouveau using the steps listed , by editing the 'nvidia-graphics-drivers.conf'.    Unfortunately no matter what I do to try and disable Nouveau the installer always informs me that the Nouveau driver is enabled and needs to be disabled in order to continue. What's funny is that I managed to install the driver using this method once before, but for the life of me I can't get it to work again.    Finally, I've attempted to install the driver by installing the PPA. I run sudo add-apt-repository ppa:graphics-drivers/ppa, sudo apt update, and finally going back into the 'Software & Updates' app and select the 384.69 driver. However after going through the install process the same issue as described in my first method (1.) occurs.    I've also tried switching between gdm3 and lightdm with all 3 methods to no avail. I'm at a complete loss as to what to do. If anyone has any possible solutions I'd love to hear them, because right now I'm at the end of my tether.   If you require any further information just let me know and I'll be more than happy to provide it.   System info:   AMD FX-8350  Nvidia GeForce GT710 1gb  16gb RAM  Ubuntu Gnome 16.04 LTS


This might seems off topic or something, but I am a middle school student and i'm really into Quantum Field Theory and String theory and every video on youtube or article on the internet shows only the concept and Intro to these theories but I want to know about the maths envolved and do the maths myself as well , so i would love it if you guys would be suggest me a site or anything else where i can learn from scratch all the maths involved in Quantum Mechanics and maybe Einstein's Relativity as well.


How to sort a list alphabetically FAVORING numbers

I have a list of files each named after a camera. In the Finder on a Mac, if I sort them by "Name" the first three are in this order:  1D 5D 10D  However, in another application, the same list of files is sorted like this:  10D 1D 5D  Notice the 10D moved from the bottom to the top of the list. I think this is because the the second app is favoring numbers over letters. It's like because "0" is a number it has a higher placement than "D".  In Python, I have written a script that accepts a folder of files and adds them to a list. But I need the list to be sorted the same way the second app sorts them, not the way the Finder sorts them. I think the solution might have to do with the sorted() function and the key parameter but beyond that I'm not sure what to do.  For those of you who want to see code:  myList = ["1D", "5D", "10D"] sorted(myList, key=theSolutionToMyProblem) print myList >>>["10D", "1D", "5D"]   If I'm way off please tell me. Point me in the right direction.


I want to calculate the limit of: $\lim_{x \to 0} \left(\frac{2^x+8^x}{2} \right)^\frac{1}{x} $

I want to calculate the limit of: $$\lim_{x \to 0} \left(\frac{2^x+8^x}{2} \right)^\frac{1}{x} $$ or prove that it does not exist. Now I know the result is $4$, but I am having trouble getting to it. Any ideas would be greatly appreciated.


Conditional Statement in QGIS Field Calculator

I'm using QGIS to calculate total loss in an earthquack attack. I wrote this expression in Field Calculator.  CASE  WHEN  "build_type"  = 1 AND  "MMI"  < 5  THEN  "perc_loss"  = 0 WHEN  "build_type"  = 1 AND  (5 >= "MMI" AND "MMI" < 6) THEN  "perc_loss"  = 20 WHEN  "build_type"  = 1 AND  (6 >=  "MMI" AND "MMI" < 7) THEN  "perc_loss"  = 28 WHEN  "build_type"  = 1 AND  (7 >=  "MMI" AND "MMI" < 8) THEN  "perc_loss"  = 33 WHEN  "build_type"  = 1 AND  (8 >=  "MMI" AND "MMI" < 9) THEN  "perc_loss"  = 35 WHEN  "build_type"  = 1 AND  (9 >=  "MMI" AND "MMI" < 10) THEN  "perc_loss"  = 71 WHEN  "build_type"  = 1 AND   "MMI"  >= 10 THEN  "perc_loss"  = 95 END   There's no error/invalid warning, but no value resulted. Is there any wrong syntax I used? Anyone can help please? :)


Added Timestamp Col w/Auto Initialization to CURRENT_TIMESTAMP, but doesn't set default value

I'm working on a MySQL 5.5.62 server. I need to add an ETL control column to some tables which default to CURRENT_TIMESTAMP, and sets it's value to CURRENT_TIMESTAMP on update. ALTER TABLE MY_TABLE ADD COLUMN DW_DTTM TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;  I've done this on other MySQL servers (5.7) and it works fine - it adds the column and automatically sets the value to CURRENT_TIMESTAMP for all existing rows in the table. On this particular 5.5 server, it adds the column but doesn't set a default value. When I look at the table after running the above DDL statement, the column is there, but all it's values are NULL. I know I could run an UPDATE statement to set it's initial value to now(), etc. but curious why it's not working automatically. No other TIMESTAMP columns exist on the table.


How to dual boot install Ubuntu 15 with Windows 10: No other operating system recognized

I am trying to install Ubuntu 15.10 from the directions .  My machine is a Windows computer running Windows 10, which was upgraded from Windows 8.1 several months ago.  When I try to run the installer, after the "For best results page" I get the message:  "This computer currently has no detected operating systems"   which I did not see when I just installed Ubuntu from the same USB stick on my Windows 7 machine.  I have toyed around with all of the boot options in the BIOS such as:   Having the computer boot in UEFI mode (default) (no change) Having the computer boot in "legacy os mode"   Finally, turning fast boot off made one difference.  Now, when tying to install I immediately get this message (before it asks about any partitioning):    clicking try again always fails, clicking continue anyway leads me to the screen where I selected where I am located but I am not sure I want to continue with that installation.  I would appreciate any help.


I'm trying to make a form that will be on top of all the windows and also when it shows it self it won't take focus from other windows.  I did that the form will be ontop of the windows:  this.TopMost = true;   But I can't figure out how to prevent the form from taking focus while displayed.


Proof that a monotone function on $(-\infty,\infty)$ has at most countably many discontinuity points

I know that on $\mathbb{R}$ there are at most countably many disjoint unions of the open intervals because I can take one rational point on each of the open intervals (*). Since the open intervals are disjoint, the rational points that I have taken from each interval must be different. Let $A$ be a set of all these rational points I have taken; it must be a subset of all the rational number $\mathbb{Q}$. Since $\mathbb{Q}$ is countable, a subset of a countable set is at most countable, $A$ is countable. $A$ and the disjoint open intervals on $\mathbb{R}$ have a one-to-one correspondence; therefore, the disjoint open intervals on $\mathbb{R}$ must be at most countable. I want to use this fact to prove the statement. Suppose $x$ is the discontinuity point on $\mathbb{R}$, by definition of continuity we know $f(x^-)\neq f(x^+)$, therefore $(f(x^-),f(x^+))$ is the open interval containing the discontinuous point. I think if I can prove for two discontinuous point $x$ and $y$, if $x\neq y$, $(f(x^-),f(x^+))\cap(f(y^-),f(y^+))=\emptyset$ I can utilize the statement I have put forward at the beginning to complete the proof. But I found myself stuck at this point. I tried to suppose the function is monotone increasing, therefore $f(x_1)\leq f(x)\leq f(x_2)$ if $x_1<x<x_2$ but get myself confused. It seems I am unable to utilize the fact that the function is monotone properly. This is not a homework question but is an exercise from the textbook I am using to learn real analysis myself. Apologize for asking this type of basic question, and I find myself unable to use more rigorous and concise maths language to write the first two paragraphs...  update: (*) The statement as pointed in the comment is unclear. It should be the family of all pairwise disjoint non-empty open intervals is at most countable. I found this post:  most relevant to my question. But  this question provides addresses my most concerned problem (how to show if $x,y$ are two discontinuity points $x< y\Rightarrow f(x^+)\leq f(y^-)$ assuming function $f$ is monotone increasing).  the first answer of this question provides insights to why $f(x^+)$ and $f(x^-)$ must exist if I understand the answer correctly.


How to login in two accounts in the same browser?

Possible Duplicate:          I want to login in two users to Gmail using IE.  The problem is that even when I open a new instance the already logged in user will be logged in. And when I log out then the other instance will be logged off.  Any idea?


java.lang.NullPointerException (error in android)

I can not speak English well. But I will try my best. A NullPointerException occurred while writing the code. I want to create a dialog when the imageButton is pressed, and a Toast when the button in the dialog is pressed. But my code throws NullPointerException. I don't know why a NullpointerException occurs even though dialogFragment is passed as a parameter. Below is the code I wrote. Any help would be appreciated. MainActivity.java public class MainActivity extends AppCompatActivity {  ImageButton Button_MainActivity_Borrow; FragmentManager fm; CustomAlertWindowPenalty   cawp;   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      Button_MainActivity_Borrow = findViewById(R.id.Button_MainActivity_Borrow);     fm = getSupportFragmentManager();     cawp = new CustomAlertWindowPenalty(borrowListener);     BorrowORreturnListener listener = new BorrowORreturnListener(cawp);      Button_MainActivity_Borrow.setOnClickListener(listener);   }  View.OnClickListener borrowListener = new View.OnClickListener() {     @Override     public void onClick(View view) {         Toast.makeText(MainActivity.this, "Toast", Toast.LENGTH_SHORT).show();     } };  public class CustomAlertWindowPenalty extends DialogFragment {     private View.OnClickListener buttonClickListener;      @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);     }      public CustomAlertWindowPenalty(View.OnClickListener clickListener) {         buttonClickListener = clickListener;     }      @NonNull     @Override     public Dialog onCreateDialog(Bundle savedInstanceState) {         Dialog dialog = new Dialog(getActivity());         LayoutInflater inflater = getActivity().getLayoutInflater();         View view = inflater.inflate(R.layout.custom_alert_window_penalty, null);          Button button_cawp_Yes = view.findViewById(R.id.button_cawp_Yes);         button_cawp_Yes.setOnClickListener(buttonClickListener);          dialog.setContentView(view);         dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));         dialog.setCanceledOnTouchOutside(false);          return dialog;     }      @Override     public void onResume() {         super.onResume();          getDialog().getWindow().setLayout(ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT);     } }  private class BorrowORreturnListener implements View.OnClickListener{      CustomAlertWindowPenalty cawp;      public BorrowORreturnListener(CustomAlertWindowPenalty cawp) {         this.cawp = cawp;     }      @Override     public void onClick(View view) {         cawp.show(fm,"");*this is error*     } }  } This is Logcat error java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.myapplication2.MainActivity$CustomAlertWindowPenalty.show(androidx.fragment.app.FragmentManager, java.lang.String)' on a null object reference     at com.example.myapplication2.MainActivity$BorrowORreturnListener.onClick(MainActivity.java:101)     at android.view.View.performClick(View.java:6274)     at android.view.View$PerformClick.run(View.java:24859)     at android.os.Handler.handleCallback(Handler.java:789)     at android.os.Handler.dispatchMessage(Handler.java:98)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:6710)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)


Gravitational light bending and refraction?

I've trying to read up on the evidential merit of general relativity and am rather curious as well as skeptical of early as well of possibly later more rigorous measurements of light (electromagnetic signals) bending around the bodies in our solar system. In all situations, but especially around the sun, how have we accounted for errors invoked by purely classical (or quantum) light refraction in the atmosphere of the sun (planets or space) which would affect electromagnetic signals being sent/received or see light from distant stars. I would love it if someone did some calculations on what we would expect the deflection to be purely from refraction and then what we expect from GTR then what was experimentally measured. Thank you for your consideration.


having trouble installing ubuntu 14.04.2 alongside Windows 7 (64 bit)

I'm currently trying to install Ubuntu 14.04.2 alongside Windows 7 (64 bit) but when I followed through the wizard it didn't give me the option to install alongside windows.   I then went back into windows and created a new partition. The install alongside windows option still didn't appear so I selected the 'something else' option and tried to select the new partition but it says that it's unusable. Any help would be appreciated.  I have tried to follow instructions but they don't seem to work for me.


Why did I fall through the world and how do I fix that?

I logged into my world and fell through the world, like the blocks had no collision box. How can I fix this? And it happens every 5 min so I'm going around then it starts I'm trying to fix the block my replacing them it seems it's working but when I re log it  glitches  again


Software updating programs builtin to macOS Big Sur

What software updating programs are builtin to macOS Big Sur? I already know about the following GUI applications:  App Store Software Update (GUI for Software Update)  I already know about the following Terminal executables:  /usr/bin/cpan* (e.g., cpan, cpan5.18, etc.) /usr/bin/gem /usr/bin/pip3 /usr/sbin/softwareupdate (Terminal executable for Software Update)  What additional software that is builtin to macOS can be run to update software? To get pedantic, let's consider as a builtin software updating program any file in a fresh Big Sur install whose path can eventually be made to point to a file that that is a software updating program through a process that the original file at that path somehow mentions or actuates. e.g., the initial file at /usr/bin/pip3 isn't a pip3 executable; it only outputs instructions about how to change that path (/usr/bin/pip3) to point to an actual pip3 executable.


If I play an instant that grants target creature "indestructible," can an opponent use an instant in response to destroy said creature? Would the stack resolve their ability first? If so, would I be allowed to change target for indestructible? If not, do I still pay the mana cost?


I'm having trouble proving the following equation:  $$\lim_{n→∞}\left(\frac{∑^{n}_{k=1}k^{m}}{n^{m+1}}\right)=\frac{1}{(m+1)}$$  A link to a proof would suffice. Thank you.


If $G$ is a compact topological group, how to show that a finite index subgroup of $G$ is open?

If $G$ is a compact topological group, how to show that a finite index subgroup of $G$ is open ? I really don't know where/how to start...  PS : I precise that by "compact" I mean that it is hausdorff and that any recovering of $G$ by open sets has a finite sub-recovering (sorry if I wasn't unclear)


Google Drive status icons not appearing in Windows Explorer

I have installed the Google Drive client for Windows. However, the status icons (green check mark, à la DropBox) are not appearing next to the files' names in Explorer.  I'm running Windows 7 Pro SP1, with Google Drive client Version 1.5.3449.3345.  Any ideas?


An old animated movie about a boy on a spaceship searching for treasure

I'm trying to remember the name of an old animated movie. Description will be a bit vague but here goes:  It's a cross between Treasure Planet and Sword in the Stone. (it's not Star Chaser). It's a family animated movie about a blonde boy. He finds a sword with an invisible blade, the blade materializes when he uses it. He is on board a talking spaceship - the spaceship has a little rectangular head that pops out when he talks to the boy.   At one point the boy asks the ship to do something and strikes the console. I think he was searching for a treasure or something. The movie is not set in space exclusively, they travel around on a planet. I don't remember other characters.  I don't remember the period - 80's possibly very early 90's  Sorry, I know its vague but that's all I can remember and I'm desperately trying to find it.  Thanks in advance!


I want to find classical Greatest N per Group. I have two methods to solve this problem    Dense_rank Over() method  Min Over() method   Both work flawlessly. Now I want to find which one is better and why.  Sample data:  CREATE TABLE #test     (         id    INT,         NAME  VARCHAR(50),         dates DATETIME     );  WITH cte     AS (SELECT TOP (100000) n = ( (Row_number() OVER (ORDER BY a.number) - 1) / 3) + 1         FROM   [master]..spt_values a             CROSS JOIN [master]..spt_values b) INSERT INTO #test SELECT n,         Getdate() + n FROM   cte ;   Dense_rank Over() Method:  WITH cte      AS (SELECT Dense_rank() OVER (partition BY NAME ORDER BY dates) AS rn,*          FROM   #test) SELECT id,        NAME,        dates FROM   cte WHERE  rn = 1;   Min Over() Method:  WITH cte      AS (SELECT Min(dates) OVER (partition BY NAME) AS max_date,*          FROM   #test) SELECT id,        NAME,        dates FROM   cte WHERE  max_date = dates ;   To compare the performance I checked on execution plan which said both query cost is 50%. But Max Over method execution plan looks little complex. So any guidance here will be helpful. I don't have very good understanding in execution plans.  Execution Plan:(6 rows)    Execution plan:(100000 rows)  For 100000 rows the execution plan says   Dense_rank Over() Query cost : 46%  Min Over() Query cost        : 54%


How to execute a function with the Hash(#) in URI?

For example if I have two js functions in my HTML page named func1() and func2(). My question is how can I execute func1() when someone visits /url/to/the/page#tag1 and/or similarly func2() when someone visits /url/to/the/page#tag2.


What are some strategies that I can employ to handle a power gamer that constantly outshines the rest of the party? This is a friend of us all and we don't want to boot him, but combat simply isn't fun when the party has nothing to do while he mops up an encounter by himself.


I have declared the enum as follows in python.I don't know how to use them.When I create an instance of this class it gives error as two arguments are required one given.  class CBarReference(Enum):     ThisBar = 0, NextBar = 1, Undefined=2 a=CBarReference()   I know what error is but I don't know what to give as the second argument other than self.


Object with a particle system doesn't show in render

for some reason, my person will not show up when rendered. I have checked the material and it is fine. Not sure what i did. Hoping that someone can figure it out for me.   here's a link to the .blend file:


I have installed virtual box on my ubuntu 16.04 following instructions described .   Last command, i.e. sudo apt install virtualbox-5.1, gave me this:  vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.  There were problems setting up VirtualBox.  To re-start the set-up process, run   /sbin/vboxconfig as root.   I've tried sudo /sbin/vboxconfig which gave me:  vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.   Then I tried dmesg and uploaded its output .


I was constructing a BibTeX file for my Thesis. At the middle of that I had copied that bib file to another document I had to produce, I had to add some new citations to the copy of the original.  Now I have 2 bib files that have a lot in common but differ in some citations. Is there a way to merge them? So that I have one single file with all the citations from both files but no duplicates?


Trying to match strings including quotes inside string

Im trying to pass the following regex to javascript but I couldn't achieve passing it. I was the entire afternoon trying to successfully use it for my project, but sadly I couldn't find the way to make this work. Here's the link of the regex:   Regex: ((?<![\\])['"])((?:.(?!(?<![\\])\1))*.?)\1  Test string: [1, "c", "[\"asd\" , 2]"]  What I want to achive is to get outer quotes of a given string.  The regex was taken from here:


I have a file with binary data which I need to analyze. The data I am looking for is separated in two-byte long parts. I tried using file.read(2), but this is very slow for a 1.5 MB file. file = open('data', 'rb') data = file.read().hex()  is what I currently use to load the data in a b'' object and convert it to hex data for further processing. Now I need to read always two bytes from this string, how can I achieve this? F.e.: ...c429c429c429c429...  should be processed as  c429, c429, c429, c429  Where 'c4' equals 1 bytes.


How to view number of downloads of packages from Ubuntu Software centre?

Is there a way through which I can see the number of times an application or package from the Ubuntu Software Center has been downloaded?  If not, is there some sort of way in which I can view the number of times a package has been downloaded on the Ubuntu distro?  NOTE I want to know the universal downloads, not just the downloads that I've made of a particular application.


Is there exist a onto continuous function from (0,1) to (0,1] Answer: Yes. My Attempt: Let $f: (0,1) \to (0,1]$ such that $f(x) = x$. This is onto itself but I know that if f is onto then Range $(f) =$ Codomain $(f)$. But in this case, It is not possible. I'm unable to find such type of function. Please help me.


I'm trying to post a question/answer on StackOverflow and it won't accept any title I give it, saying "This title doesn't meet our quality standards". I've tried every possible wording that makes any sense and I can't post it.  A few titles I've tried:   Enabling Dart button Enabling button in Dart Enabling a button in Dart Enable an element in Dart   ...and 1,000 others I can't remember.


Transferring a domain that is managed by Cloudflare to another registrar

I'm planning on switching from OVH to Gandi in the coming weeks/months (domain first, hosting later). However, I'm not sure what the process is exactly, given I'm also using Cloudflare and none of the guides I found seem to address this particular case.  The point I'm unsure about is whether I actually need to do anything regarding Cloudflare. Do I need to pause my website on Cloudflare and change the name servers back to OVH's before the transfer, or can I just leave that as is and then set Cloudflare's nameservers in Gandi's configuration once the transfer is done?   makes me think I can just leave everything as is and do the transfer, but I'm not 100% sure.


Is it normal for BibTeX to replace similar author names with "------"?

In my .bib file, I have two entries with exactly the same author names:  @article{Seshadrinathan2010A-Subjective-St,     Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack}, ....  @article{Seshadrinathan2009Study-of-Subjec,     Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack}, ....   When cited after each other, and typeset with the IEEEtran bibliography style, the .bbl file reads:  \bibitem{Seshadrinathan2010A-Subjective-St} K.~Seshadrinathan, R.~Soundararajan, A.~C. Bovik, and L.~K. Cormack, ``A   subjective study to evaluate video quality assessment algorithms,''   \emph{SPIE Proceedings Human Vision and Electronic Imaging}, 2010.  \bibitem{Seshadrinathan2009Study-of-Subjec} ------, ``Study of subjective and objective quality assessment of video,''   \emph{IEEE Transactions on Image Processing}, 2009.   As you can see, the author names have been replaced with ------. It looks like this in the final PDF:    Is this normal behavior?


Based on my question  my setup is currently looking like:  \newenvironment{A}{\label{env:A}}{} \newenvironment{B}{ %%Pseudocode \if\thepage!=\pageofref{env:A} Pagebreak happened! \fi %% End Pseudocode }{}  \begin{A} Text \begin{B} SubText \end{B} \end{A} \begin{A} Text2 \begin{B} SubText2 \end{B} \end{A}   My problem now is that I am basically reusing the label defined the first time. Is there a way to set the label-check in environment B to check the label which was created by the current environment A, and not any labels created earlier?


Integration and existence of an antiderivative

Let $ f: \mathbb {R} \rightarrow {\mathbb {R}} $ be given by   $$ f (x) = \left \{\begin {matrix} \sin ({\frac {1} {x}}), & \text {if} \phantom {a} x \neq 0; \\  c, & \text {if} \phantom {a} x = 0 \end {matrix} \right. $$ where $ c \in [-1,1]$. For what values of $c$ is there an antiderivative of $f$?  I do not know of a theorem of the form "if and only if" that  it tells me when a function $ f $ has no antiderivative.  Anyone have a suggestion?


What movie or tv show has a tribe of "bird men" outside a walled city in the desert?

A long, long time ago in the era known to some as the 90's, I was channel surfing and caught the end of something that might have been a TV show or a movie, I have no idea which.  It was set in an arid, rocky but also sandy area. There were at least two local factions that didn't get along. One was slightly more 'advanced' and living in a walled city, and the other was a much more... tribal group who disguised themselves as birds, even though there were no birds on the planet/in the area.  Google-fu hasn't been helping me, only directing me to lists of other campy/terribad science fiction movies.


Where does a web project store its references?

We've added a reference to a web project, which we would now like to check in in TFS. For a normal project, you would just check in the project file (.csproj). However, a web project does not have a project file. Does anyone know in which file the references of a web project are stored, so we can check in only that file?


How to run xcode or playground on Windows?

I have a windows laptop .  I want to run xcode or its playground to practice on the Swift? Is there any software or solution for that?  please answer with the possible links to have?


Number subsections and subsubsections, but not sections

I'm working on an article and I don't want to number my sections. However, I do want my subsections and subsubsections to be numbered.  Right now my document has this numbering, but the 0 in 0.X.Y should not be there. How can I fix that?   Currently: Section 0.1 subsection 0.2 subsection 0.2.1 subsubsection 0.3 subsection  Should be: Section 1. subsection 2. subsection 2.1 subsubsection 3. subsection   This is my code:  \documentclass{article}  \begin{document}  \section*{Section}  \subsection{subsection}  \subsection{subsection}  \subsubsection{subsubsection} blah \subsection{subsection}  \end{document}   PS: I did search a on the web and found a lot on this topic, but not a solution to this particular thing.


How to set application's transparency/opacity in Kubuntu 16.04?

With Compton, it's possible to have opacity rules like this:  opacity-rule = [              "60:name ~= '^Mahjongg$'",             "70:name ~= 'Settings - Google Chrome$'",             "70:name ~= 'Extensions - Google Chrome$'",             "70:name ~= 'Stylish - Google Chrome$'",             "50:name ~= '\.pdf - Google Chrome$'",             "50:class_g *= 'Evince'",             "95:window_type *= 'dialog'",             "95:window_type *= 'menu'"             ];   How can I achieve something similar in Kubuntu 16.04 (without using Compton because, if I understand correctly, Kubuntu has its own compositor built into its window manager)?


How do I install stable SopCast-Player in Ubuntu 12.04 or 14.04?

What is the best and the easiest way to install a working and stable Sopcast-Player in Ubuntu?