How to replace the domain name in a Wordpress database?

I have a Wordpress database which was installed in a development environment... thus, all references to the site itself have a fixed IP address (say 192.168.16.2). Now, I have to migrate that database to a new Wordpress installation on a hosting. The problem is that the SQL dump contains a lot of references to the IP address, and I have to replace it with: my_domain.com.  I could use sed or some other command to change the that from the command line, the problem is that there are a lot of configuration data which uses JSON. So what? Well, as you know, JSON arrays uses things like: s:4: to know how many chars an element has, and thus, if I just replace the IP with the domain name, the configuration files will get corrupted.  I used an app for Windows some years ago that allows to change values in a database and takes care of the JSON arrays. Unfortunately, I forgot the name of the app... so the question is: do you know any app that allows me to do what I want?


Is it proper grammar to say "on today" and "on tomorrow?"

In my town, people with PhD's in education use the terms, "on today" and "on tomorrow." I have never heard this usage before. Every time I hear them say it, I wonder if it is correct to use the word "on" in this way. The word "on" is commonly used with the days of the week-"on Monday," "on Saturday." It seems that using the word "on" is not correct terminology and it should be only "tomorrow," "Monday," etc. Please explain...


Different visualisation of color between iPhone and Windows 10 (laptop)

I've just started editing pictures on my Windows 10 Laptop (Asus) with Lightroom. Unfortunately when I upload the picture to my iPhone 8 the colors look different. It's such a pity because the overall result is different.   I started investigated and I realized that it might be related to the color profiles (?), but I haven't obtained any result really.   So I'm asking you guys, How can I make the colors on my screen on Windows 10 looks the same as the colors on my iPhone 8?  EDIT I might be not clear, I would like to see a picture the same on my laptop and on my iPhone, in particual I would like the laptop to match the iPhone color (so I have to change some setting in the laptop not in the phone).   The other similar question says that one's a to change the monitor calibration, but I have already gone through that and there are still differences between my pc screen and and Iphone.


Difference in String array declaration. String[] foo or String foo[]

What is the fundamental difference between declaring  String foo[];   and  String[] foo;   Ex: I am using a spinner and the first example works while the second example doesn't, even though I don't have any other problems in the rest of my code using the second declaration method.  @Override public void onClick(View view) {     String[] Condicoes = {fase, comunicacao,tipo_comunicacao};     String concat = "";     for (int k = 0; k < Condicoes.length; k++) {         String newfer[] = StringMapper.get(Condicoes[k]);          for(int i = 0; i<newfer.length; i++) {             //ArrayAdapter<String> spinningspinenER = new ArrayAdapter<String>(InsertID.this, android.R.layout.simple_spinner_item, newfer);              concat += newfer[i];             concat += "\n";         }     }     textView.setText(concat); }   This is the code that gives me an error if I use:   String[] newfer = StringMapper.get(Condicoes[k]);  in the commented part     ArrayAdapter<String> spinningspinenER = new ArrayAdapter<String>(InsertID.this, android.R.layout.simple_spinner_item, newfer);   it says that it can not build the ArrayAdapter


Difference between 'One to One' and 'One on One'

I have been confused about the difference between "one to one" and "one on one". Which one is more appropriate of the following?  We will have one to one meeting? We will have one on one meeting?


I tried to UV wrap a label to a bottle, but weird white lines appear on the UV wrap (lines in blue circles below). Original image does not have the white lines :    original image (cut):   UV Wrap printscreen:   weird polygon loops appear at upper and lower area:   Anyone can tell me what is the issue and how to fix it?  I am using Blender 2.81a, cycle.   Thanks!


Difference between pointers and references in c++

I so confused about parameter types in C++ I have two functions in following code:  void degistir2( int *x, int *y ) {     int gecici;    gecici = *x; *x = *y;    *y = gecici; } void degistir3( int &x, int &y ) {      int gecici;     gecici = x; x = y;     y = gecici; }   What is the difference of these functions? I know the pointers and references but I don't know how it works in above functions.


I have a friend who works on my team for a game project, but he's experiencing an issue I haven't seen before. He is unable to select the selection modes for vertex, edge and face selection, which can be toggled using the three buttons at the bottom panel of the 3D view.  This image shows his issue. The red circle shows where the buttons are supposed to be positioned.  These are the three buttons he's missing (Screenshot taken from my Blender)    I've already suggested CTRL+TAB while in Edit Mode, but this does not work for him.   As far as I know, he's using a default Blender setup (He have received instructions to not mess with the settings in Blender, part from the settings I have written down, such as unit size, export defaults, etc.)


Why 32bits OSs can't address more than 3.2/3.2 gb of memory?

Don't know if this is the right place to ask this question.  I've been reading that 32bit OSs (like the Ubuntu i'm running right now) can't adress more than 3.2gb or 3.3gb of RAM memory.  I remember for my old Computer Architecture course that the memory limitation was 2^32 "pointers" (don't remember the right word). I mean, the memory was represented like an array where the CPU can acces it directly, but up to its limit. If the CPU is 32 bit, then it can address 2^32 words, if it's 64 bits 2^64, etc.  So, if what i said before is right, then, my OS should be able to address 2^32 = 4294967296 = 4Gb.  I'm thinking maybe some sort of space is reserved to the particular use of the Kernel, cache, buffering or swapping. But don't have the correct answer.  Can you give me a hint?


Windows XP with Ubuntu 14.04 on 2 separate hard drives

I am new to Ubuntu. I have Windows XP Professional 32-bit on one 300GB IDE hard drive and Ubuntu 14.04 running on another 61GB IDE hard drive, and I cannot get my Windows XP to boot with Grub! When I select Windows XP from the boot menu, Grub just restarts my computer. The computer I have with those two hard drives is a Dell Optiplex GX240, so the hardware is old, and its BIOS won't let me change the boot priority on the two IDE hard drives.  What can I do now? Is there a step I missed when installing Ubuntu? Can I edit Grub to boot Windows XP without messing with the BIOS? Do I have to downgrade to an older release of Ubuntu to make it work? I am willing to reinstall Ubuntu, if that's what it takes.


Some times I come accross an answer that is super good, and I know I will need to look at this again.. I usually upvote such questions/answers.. but, some times it is  hard to find them again (unless I do something as oldfashion as bookmark it), so I would like to "save" it... for myself.. so that later I can look at my own "saved" answers, and this is a much smaller subset of all the answers out there (think reddit save funtion).


How can I match double-quoted strings with escaped double-quote characters?

I need a Perl regular expression to match a string. I'm assuming only double-quoted strings, that a \" is a literal quote character and NOT the end of the string, and that a \ is a literal backslash character and should not escape a quote character. If it's not clear, some examples:  "\""    # string is 1 character long, contains dobule quote "\\"    # string is 1 character long, contains backslash "\\\""  # string is 2 characters long, contains backslash and double quote "\\\\"  # string is 2 characters long, contains two backslashes   I need a regular expression that can recognize all 4 of these possibilities, and all other simple variations on those possibilities, as valid strings. What I have now is:  /".*[^\\]"/   But that's not right - it won't match any of those except the first one. Can anyone give me a push in the right direction on how to handle this?


I tried resizing my VirtualBox disk (.vdi) with VBoxManage, but it didn't resize the hard drive.  The command while in the root folder of VirtualBox was:    VBoxManage modifyhd "C:\Users\<name>\VirtualBox Vms\Linux Mint 14.1\Linux Mint 14.vdi" --resize 30000.    The output showed 0%...20%....40%...100% looking like it was successful.  Now my .vdi in VirtualBox shows the virtual size as being 29.30gb, but the actual size is still 7.90gb.  When I boot into Linux Mint, it still notifies me that the hard drive is out of space.


How do I stop pgrep from interrupting the terminal screen on a nogui minecraft server after multiple restarts?

Hi I have a problem with a solution to my previous question about getting something to check if the server is started. So when I use Pgrep -f in my startup script to check if the MC server is running, it does the job, but after multiple restarts the terminal window starts showing pid numbers instead of the actual Minecraft commandline. This was not a problem before since I used to run it with GUI which I don't do anymore.  My startup script looks like this #!/bin/sh while true do     if ! pgrep -f server.jar     then         java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -          XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -          XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -          XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -          XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -          XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -          XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true          -jar server.jar --nogui     fi     sleep 5 done


Please notify us when a question we ask or answer is closed or reopened

This would go in the recent activity page.


Slow SQL query from app, fast from SQL Studio

I have a query that takes 30+ seconds when called from app, but takes <1sec when called directly from SQL SMS.  Here is the query :  SELECT T0.pk      FROM   products T0      WHERE  (( ( T0.pk IN (SELECT T1.target                                 FROM   catrel T1                                 WHERE  ( T1.source = 87960962008461 )                                        AND ( T1.type = 87961011815221 ))                  AND T0.pk NOT IN (SELECT T2.target                                         FROM   varexc T2                                         WHERE  ( T2.source = 87960962008461 )                                                AND (                                        T2.type = 87961020990261 )) )                 OR ( T0.pk IN (SELECT T3.target                                     FROM   varinc T3                                     WHERE  ( T3.source = 87960962008461 )                                            AND ( T3.type = 87961021066258                                                )) ) )  )             AND ( T0.type IN ( 87961022300198, 87916102426706 ) )      ORDER  BY T0.p_code    I have no idea where to start debugging that. When run directly in the SQL databse, the response in instant :    The query does appear in the "recent expensive queries" (only when run from another client)  PS: SQL Server does not recommend any additional indexes.


I'm trying to set up nginx. When serving a file I get the following error:  [crit] 64347#0: *4 stat() "/home/zmbq/web/static/index.html" failed (13: Permission denied)  I've set the proper permissions to the file and all its parent directories, restart nginx and the error persists.  Running sudo -u nginx cat /home/zmbq/web/static/index.html displays the file's content. stating the same file also works.  Permissions down the path:  [zmbq@csm-web var]$ ll / drwxr-xr-x.   3 root root   18 Aug 30 09:25 home  [zmbq@csm-web var]$ ll /home drwxr-xr-x. 13 zmbq zmbq 4096 Aug 30 12:17 zmbq  [zmbq@csm-web var]$ ll /home/zmbq drwxrwxr-x.  8 zmbq zmbq       77 Aug 30 11:53 web  [zmbq@csm-web var]$ ll /home/zmbq/web drwxrwxr-x. 4 zmbq nginx 4096 Aug 30 11:46 static  [zmbq@csm-web var]$ ll /home/zmbq/web/static -rw-rw-r--. 1 zmbq nginx     683 Aug 30 11:46 index.html


why path of an electron in an orbit is uncertain?

I have read the quantum mechanical model of an atom which says that path of an electron around the nucleus is uncertain due to uncertainity principle which says that it is impossible to measure both momentum and position of an electron at the same time so it is impossible for an electron to move in a well defined circular orbit.But  what if we simply do not measure the elcetron then it should move in a well defined path.So what really restrict it from moving like that?


Where is a particular snap program located

I installed Opera and found it is a snap program. It's not listed in the Menu and a search for opera* found all kinds of listings. How can I find where it is installed? Thanks.


Does anyone know what happens to the special cars you get in the garages (Turismo, etc) if they get destroyed while out in them?  What about if you just park it up and then do other stuff? Do you still lose your mods?


What is \subcaption@CheckCompatibility and how to fix it

I write my thesis in TeXstudio and i use for package manager MiKTeX. In the text who i write I want to put two shapes side by side. I find a very good solution for that "application" the subfigure.  I try to use it but i have an errors  My code:  \documentclass[a4paper,12pt,twoside,openany]{okonbook} \usepackage[dvips]{graphicx}  \usepackage{makeidx}  \usepackage[english,greek]{babel}  \usepackage[iso-8859-7]{inputenc} \usepackage{okonstyle}  \usepackage{amssymb} \usepackage{amsfonts}  \usepackage{float}  %% The amsthm package provides extended theorem environments %\usepackage{amsthm} \usepackage{amsmath}  \usepackage{subfig}  \usepackage{url} %\usepackage{algorithm} \usepackage[linesnumbered,ruled,vlined]{algorithm2e} \usepackage{algpseudocode}  \usepackage{mathtools}  \usepackage[usenames,dvipsnames]{pstricks} \usepackage{marginnote} \usepackage{comment}  %% My packages %\usepackage[super]{nth} \newcommand{\gr}{\selectlanguage{greek}} \newcommand{\en}{\selectlanguage{english}} \usepackage{enumerate} \usepackage[document]{ragged2e} \usepackage{ mathrsfs } \usepackage{cleveref} \usepackage{caption} \usepackage{subcaption}  \usepackage{drop} \begin{document}  \begin{figure} \centering \begin{subfigure}[b]{0.1\textwidth}     \includegraphics[width=\textwidth]{images/grafima3.eps}     \caption{Graph 1}     \label{fig:Graph 1} \end{subfigure}  \begin{subfigure}[b]{0.1\textwidth}     \includegraphics[width=\textwidth]{images/grafima4.eps}     \caption{Graph 2}     \label{fig:Graph 3} \end{subfigure}  \caption{Graphs}\label{fig:Graphs} \end{figure}  \end{document}   When I run it I have the following erros:  subcaption.sty line 60 Package subcaption Error: This package can't be used in cooperation(subcaption) with the subfig package. \subcaption@CheckCompatibility Environment subfigure undefined. \begin{subfigure} Missing number, treated as zero. \begin{subfigure}[b]{0.1\textwidth} Illegal unit of measure (pt inserted). \begin{subfigure}[b]{0.1\textwidth} \begin{figure} on input line 979 ended by \end{subfigure}. \end{subfigure}   Does anyone know what conflict I have with the packages and how to fix it.  P.S. Μy packages are up to date Thank you for your time.


Okay so the full problem as stated is:     Let $p$ be a prime number. Show that $$(p-1)! \equiv -1 \mod p.$$   I attempted to use induction, where we let p=2 be our base case then consider all primes $\geq 3$ (which we know to be odd integers. But I am really not sure how to actually show this result. It is apparent that me and Number Theory are not getting along very well... Should I try to find the inverse of $(p-1)!$ or is that superfluous? If anyone could give me a hand, I'd be very thankful.


What does 'Clear Origin' (Alt-O) do in the 3d view?

What does 'Clear Origin' (AltO) do? Someone mentioned it on our general chat.


Differentiate vector transpose using rules

I am referring to Tom Minka's . I don't have the book by Magnus & Neudecker so I can't refer to the details of the theory. Regarding rules (6): $d(XY) = (dX)Y + X(dY)$ and (12): $dX^*=(dX)^*$, I am not clear how to apply them. My notation used is numerator layout, i.e. $\dfrac{dx}{dx} = I$ Question 1. $f(x)=x^Tx$ , $\dfrac{df}{dx}=2x^T$ However, if I use $\dfrac{df}{dx}= x^T\dfrac{dx}{dx} + \dfrac{dx^T}{dx}x$, firstly, $\dfrac{dx^T}{dx}$ is $1^T$? Second, according to rule (12), $\dfrac{dx^T}{dx} = (\dfrac{dx}{dx})^T = I^T = I $? Question 2. $f(x) = x^TAx$ $\dfrac{df}{dx}=x^T\dfrac{dAx}{dx}+ \dfrac{dx^T}{dx}(Ax) = x^TA + ???$ $???$ is supposed to be $x^TA^T$, however, it seems to me no matter $\dfrac{dx^T}{dx}$ equals $1^T$ or $I$ it does not give the expected result.


I am reading Vol.1 of "The Quantum Theory Of Fields" by S. Weinberg. However I have come to a halt when connected  were introduced. I have solid knowledge in elementary group theory and general topology. I will now turn to studying Lie groups and algebras, and my question is:   What parts should I focus on?   What can I skip?   When is it "safe" to stop, and go back to the physics?


Help me to get command or ansibile Regex to fetch below details

My data: KVM05786Y: The Communication host "ADMK05786HTREDIRECT_JA3A" is SUCESS KVM05786Y: The Communication host "KOPYUTRCEPORT_JA3A" is SUCESS KVM05786Y: The Communication host "ADMK05786HTSRM_JA3A" is SUCESS KVM05786Y: The Communication host "ADMK05786HTIAS_JA3A" is SUCESS KVM05786Y: The Communication host "ADMK05786HTOTN_JA3A" is SUCESS KVM05786Y: The Communication host "ADMK05786HTWPM" is SUCESS KVM05786Y: The Communication host "OCAIDEKD_JA3A" is SUCESS KVM05786Y: The Communication host "ADMK05786HTSC_JA3A" is SUCESS  From the above data, I want to display only the names below. This means taking the text that is found after host and before is. Please give me a Linux command that can do this. ADMK05786HTREDIRECT_JA3A KOPYUTRCEPORT_JA3A ADMK05786HTSRM_JA3A ADMK05786HTIAS_JA3A ADMK05786HTOTN_JA3A ADMK05786HTWPM OCAIDEKD_JA3A ADMK05786HTSC_JA3A  I tried this in ansible: name: "Get data" shell: cat /var/tmp/http_data.txt register: key_data set_fact: service_name: "{{ service_name | default([]) + [item|regex_search( 'The Communication host\s+"(\S+)"\s+is SUCESS.*','\1' )] }}"  with_items: "{{ key_data.stdout_lines }}"


How to prevent a function from being overridden in python

Is there a way to make a class function unoverriddable? something like java's final keyword. i.e, any overriding class cannot override that method.


Implementing the "earn resource every N seconds" mechanism common to F2P games

In many free-to-play games, play will be rate limited in some manner by a resource that you naturally earn on a timed interval, but can opt to increase artificially through buy-ins.  A current example of this is the popular game Candy Crush, which refills 1 life (retry) on some set interval.  Key requirements:   The client should be able to accurately predict the time to the next resource, such that it might display a countdown, etc. Resource gain is not regular.  It can be offset by, at least, resource buy-ins, or perhaps varying intervals between users. Resource gain is capped, and thus not continual.  E.g. maximum "lives" might be 5. The server is the resource authority, obviously.  The client might predict resource generation without actual notification as to such, but the resource count is determined server side.   Naively, one might simply implement this as a database update across the collection on the interval (if the interval is constant), but this would surely not scale.  It would become more and more out of sync with the client timers as the dataset scales and the operation takes more time.  Not to mention, it would be wasteful, as it's likely that only the percentage of your membership currently online needs to see realtime updates.  It seems like it would be possible to calculate the resource as a function of time since creation, time spent uncapped, resources earned, and resources spent.  Would this be a viable option?  The question is, what is the best way to implement this mechanism to scale?


Are cleric domain spells unlimited like cantrips?

I'm trying to make a level 1 Cleric. I'm going to use the Life Domain; at level 1 it says the Domain spells are Bless and Cure Wounds.  It also says they are always prepared and don't use up a spell slot when cast.    Can I use these two Domain spells as often as I use cantrips, or do I have limited number of uses per day/long rest?


In Stack overflow within searching my problems solution I finished my total no of voted ie 40 vote and this is two times but it is still not showing in my badges why ??


What is the word for when you say something like "I'm dying" but don't mean it?

I'm really have trouble even describing the definition of this word, but I saw a post somewhere that was talking about how people these days say things like, "I'm dying" or "I'm dead" or something like that but they obviously don't mean it. Like they are being extreme. This is truly murdering my brain right now. (Kinda like that.)


NullPointerException thrown from Fragment

Here's the fragment class code which has a logout button.  import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button;  import com.marshall.gruppo.R; import com.marshall.gruppo.helper.SQLiteHandler; import com.marshall.gruppo.helper.SessionManager;  public class MyPageFragment extends Fragment implements View.OnClickListener {      Button logout;     View view;     SessionManager session;     SQLiteHandler db;      public MyPageFragment(){}      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         View rootView = inflater.inflate(R.layout.fragment_mypage, container, false);         logout = (Button) view.findViewById(R.id.logout);         logout.setOnClickListener(this);         return rootView;     }      @Override     public void onClick(View v) {         switch(v.getId()) {             case R.id.logout:                 logoutUser();                 break;         }     }     private void logoutUser() {         session.setLogin(false);         db.deleteUsers();         Intent intent = new Intent(getActivity().getApplicationContext(), LoginActivity.class);         startActivity(intent);         getActivity().finish();     } }   But when I run the code, it throws a NullPointerException with the following log.  07-10 13:03:25.521  13363-13363/com.marshall.gruppo E/AndroidRuntime﹕ FATAL EXCEPTION: main     Process: com.marshall.gruppo, PID: 13363     java.lang.NullPointerException             at com.marshall.gruppo.ui.MyPageFragment.onCreateView(MyPageFragment.java:28)             at android.app.Fragment.performCreateView(Fragment.java:1700)             at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)             at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)             at android.app.BackStackRecord.run(BackStackRecord.java:684)             at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1453)             at android.app.FragmentManagerImpl$1.run(FragmentManager.java:443)             at android.os.Handler.handleCallback(Handler.java:733)             at android.os.Handler.dispatchMessage(Handler.java:95)             at android.os.Looper.loop(Looper.java:146)             at android.app.ActivityThread.main(ActivityThread.java:5602)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)             at dalvik.system.NativeStart.main(Native Method)   When writing the code it did not show any errors, so I really wonder where it has a fault.. According to the log, it is this part that throws the exception.  logout = (Button) view.findViewById(R.id.logout);   Any advice on this issue?


How did "sinister", the Latin word for "left-handed", get its current meaning?

Sinister is the Latin word for left-handed.  What evolution of meaning turned left-handed into evil and threatening?


How to obtain $||x|-|y||\le|x-y|$ from $|x|-|y|\le |x-y|$?

Having the following inequality: $$|x|-|y|\le |x-y|$$ does it imply that $||x|-|y||\le|x-y|$ if it does (i think it does) how to prove it?


A question to ask about birth rank or serial number

Are you the third of your parents' children? or the second issue?  Or, you are the third guy, eh?  What is the question for which "he came third in the race" is an answer?.  Instead of resorting to such a questioning is there a single  word to interrogatively  seek information of placement on a  time marker line ?  All Indian languages have such a word, none in English afaik..


What's the proper interpretation of canceling infinitesimals?

In most textbooks of physics I've found this demonstration of work-kinetic energy theorem:  $$\begin{align} W &= \int_{x_{1}}^{x_{2}} F(x)\ dx \tag{1}\\ &= \int_{x_{1}}^{x_{2}} m\cdot a\ dx \tag{2}\\ &= m\int_{x_{1}}^{x_{2}}  \frac{dv}{dt}\ dx \tag{3}\\ &=  m\int_{x_{1}}^{x_{2}}  \frac{dv}{dx} \cdot \frac{dx}{dt}\ dx \tag{4}\\ &= m\int_{x_{1}}^{x_{2}} \frac{dv}{dx} \cdot v \ dx \tag{5}\\ &= m\int_{v_{1}}^{v_{2}} v \ dv \tag{6}\\ &= \frac{1}{2}mv_{2}^{2} - \frac{1}{2}mv_{1}^{2} \tag{7} \end{align}$$  I don't fully understand how they go from (5) to (6). It seems that they cancel the dx as if they were algebraic elements. I know from calculus that $\int f(g(x))\cdot g'(x)\ dx = F(g(x))$, where $f(x)=F'(x)$ because we are applying the chain rule reversed. And in order to do so, Leibniz's notation can help us. If we define $u=g(x)$ and the "differential" $du=g'(x)dx$ the former integral turns in  $\int f(u)\ du = F(u)$. But du and dx doesn't exist, they are just a notation we use to realize more easily that we can find the antiderivatives applying the chain rule reversed. So, what are the true mathematical operation they are doing between (5) and (6)?


I performed a 5-fold CV to select the optimal K for KNN. And it seems like the bigger K gets, the smaller the error...    Sorry I didn't have a legend, but the different colors represent different trials. There are 5 total and it seems like there's little variation between them. Error always seems to decrease when K gets larger. So how can I choose the best K? Would K = 3 be a good choice here because the graph kind of levels off after K = 3?


I asked a question  but, rather stupidly, added extra information after it had been answered.  My additional question is this: I have a table with varying lengths of words. I want to encircle different groups of cells, including diagonals. If possible, it would be great if the rectangles don't overlap each other where possible.  I looked at the answer , which, whilst tedious, worked except for the overlap.    This is where I've got to so far:  \documentclass[fleqn,12pt,a4paper,landscape]{article}  \usepackage{tikz} \usepackage{tabularx}  \begin{document}  % Introduce a new counter for counting the nodes needed for circling \newcounter{nodecount} % Command for making a new node and naming it according to the nodecount     counter \newcommand\tabnode[1]{\addtocounter{nodecount}{1} \tikz \node     (\arabic{nodecount}) {#1};}  % Some options common to all the nodes and paths \tikzstyle{every picture}+=[remember picture,baseline] \tikzstyle{every node}+=[inner sep=0pt,anchor=base, minimum width=1.8cm,align=center,text depth=.25ex,outer sep=1.5pt] \tikzstyle{every path}+=[thick, rounded corners]  \begin{table}[ht]   \begin{minipage}[b]{1 \linewidth}\centering    \begin{tabular}{cccccc} % Turn the cells needed for defining the circling paths into nodes with our     custom command \tabnode{Long ago}& \tabnode{A few days ago}& \tabnode{Day before         yesterday}& \tabnode{Yesterday} &  &  \\      & & &  & \tabnode{Today} & \tabnode{Now}\\      \tabnode{Long time in the future}& \tabnode{A few days on}&     \tabnode{Day after tomorrow}& \tabnode{Tomorrow} &  & \\      \end{tabular}    \end{minipage}   \begin{tikzpicture}[overlay] % Define the circle paths \draw [blue](1.north west) -- (1.north east) -| (7.north east) |- (7.south     west) |- (1.north west); \draw [red](8.south west) -| (2.north east) -| (2.south west) |- (8.south     west); \draw [yellow](9.south west) -| (3.north east) -| (3.south west) |- (9.south     west); \draw [green](8.south west) -| (3.north east) -| (2.south west) |- (8.south     west);   \end{tikzpicture}  \end{table} \end{document}  %%% Local Variables:  %%% mode: latex %%% TeX-master: t %%% End:


Let $f \colon \mathbb{R} \to \mathbb{R}$ be an increasing function. Prove or disprove: $f$ is Lebesgue measurable.  Thank you all for the great comments I'll receive! :D


I accidentally set the preview sample rate to 3329 samples. I left blender to go eat food, and when I came back, the render was surprisingly good.  I don't want to render for another 4 hours, is there a way to save the preview render?  (besides taking a screenshot, I have that already.)  🔥🔥🔥🔥🔥


Is my B1/B2 visa for USA from India valid after a name change?

I currently hold a valid B1/B2 visa for the USA from India. However this visa is printed in my old passport and has my old name i.e. Namita Piyus Agarwal. I have changed my name to Namita Asnani, and I have a fresh passport with this name. Will I be granted entry into the United States with my visa, or will I have to obtain a fresh visa? I have legal papers documenting the name change, including newspaper publications and court affidavits, I will also carry my old passport.  I understand that for some countries the embassy websites say very clearly that it should not be an issue, especially if you have legal documentation of the name change, eg. UK, Turkey etc. There are also some countries for which the US State Department requires a fresh visa to be issued. For India however, this is what the embassy website says: "If your name has legally changed through marriage, divorce, or a court ordered name change, you will need to obtain a new passport.  Once you have a new passport, the Department of State recommends that you apply for a new U.S. visa to make it easier for you to travel to and from the United States."


In 2018, I was able to be claimed as a dependent, as listed on my tax return, but my parents didn’t claim me in 2018, in 2019 I was no longer a dependent.  Will I receive the check?


Is there a better way to combat SQL Injection?

I've watched Computerphile's video many times on this subject(for any of you who want, this is the link: ). He provides some really good advice on how to combat SQL Injection and make your app more effective. These are the key points from his video:   Don't use straight and unprotected SQL commands because this is the way hackers can perform a SQL Injection, stealing, modifying, or even deleting your data. A good approach is to use the mysql_real_escape_string(String s) function. This basically places on the start of every dangerous character (/,", {, }, etc) a slash (/). So basically this makes the quote or slash inside the string useless. The best thing to do is to use prepared statements. So, you basically say:  SELECT * FROM USERS WHERE username = ?   Later you go and replace the question mark with the string you want to input as the user name. This has the advantage of not confusing PHP or any other fault-tolerant language, and using this simple and (kind of, hacky) elegant solution to just say replace this with the string and tell the language that what is given is just a string and nothing more than that.    That is good and all, but this video is really outdated. It was made way back in 2013 and since then a lot of new technology has emerged. So, I tried to search the internet to find if there were any new approaches or if this is the one. But the problem was that either I couldn't find it or either I found something that was super confusing.  So, my question is: Is there a better and enhanced way to combat SQL Injection that has been introduced, or if prepared statements are still the norm and if they are vulnerable to any kind of attack?


What is the probability that the second player will win in this random game?

I'm working through Stanford's  on Probability for Computer Scientists, and on #15 there's an extra credit question I can't explain:        Consider a game that uses a generator which produces independent random integers between 1 and 100 inclusive. The game starts with a sum $S = 0$. The first player adds random numbers from the generator to $S$ until $S > 100$ and records her last random number as $x$. The second player continues adding random numbers from the generator to $S$ until $S > 200$ and records her last random number as $y$. The player with the highest number wins, i.e. if $y > x$ the second player wins. Is this fair? Write a program to simulate 100,000 games. What is the probability estimate, based on your simulations, that the second player wins? Give your answer rounded to 3 places behind the decimal. For extra credit, calculate the exact probability (without sampling).      By creating a Python script to simulate 100,000 games, the probability of the second player winning hovers around $0.532$. Yet, I suspected it to be $0.495$ since each players' last number could be any number from $1$ to $100$ since $S \leq 100$ is met to allow them to keep generating numbers. The same goes for player two and $S \leq 200$. Since each number seems equally likely, I found:  $$P(y > x) = \frac{99 \cdot 100}{2} \cdot \frac{1}{100^2} = 0.495$$  But this is definitely not correct as the simulation shows. Where is the problem in my analysis? I made sure I used a uniform distribution for generating numbers in my simulation.


Is there any way to use ubuntu to convert an ISO to DMG?

I have an intel Imac (early 2006).  I recently decided to install ubuntu on it as the sole OS as it was running 10.4.11 and was unable to meet my current needs.  The optical drive on it is broken,  so I downloaded the ubuntu iso,  converted it to a DMG and created a bootable flash drive.  Everything seemed to be going great.  I used gparted to wipe the hard drive and than began running the installer from the live enviro.   That's when things took a turn for the worst..  Half way through the installer crashed.  I attempted it a few more times,  but it eventually just froze solid.  I asked around what to do and was told to just reboot and try again.  Now it is not seeing the flash drive, and there is no OS to boot to,  so I'm just getting the ol' grey screen with a flashing question mark..    I bought a new 500gig external that I can format for a mac..  I'd like to try and install ubuntu on it and see if I can maybe boot the mac off it to try and fix and finish the install..    I mainly want to know how to convert an iso to a dmg using my other ubuntu machine,  but failing that,  I'm open to any suggestion.


How to take screenshot of complete webpages?

I have used shutter and screenshot applications for a long time for taking screenshots.But they can only take screenshots as big as the physical screen.    Sometimes I have to take an screenshot of an whole webpage,because the page can't be saved properly by the browser or I want to include pop-up's as well.This situation requires a software that can take a screenshot longer than the physical screen.  Is there any software to do this?     Note that  question and it's answers are about webpage saving apps.They won't save pop-up's, which is essential in my case.I don't want a converter.I need an literal screenshot app or anything that could save the pop-up's as well.   And I use Mozilla Firefox, because it has really nice plugins.The solution should be working fot Firefox itself.


in a mountain climbing expeditions 5 men and 7 women are to walk single file so that no 2 men are adjacent. How many ways are possible?


What are the good introductory resources for M-theory towards AdS/CFT?

I see a list here with a section titled M-theory -   In there these two look promising,  and   I would like to know if people have opinions of good starting points towards understanding M-branes and how they are used for constructing exact examples of AdS/CFT. [...I guess all exact AdS/CFT scenarios are M-theory constructions..]


What does (?i) mean in a Python/pexpect regex?

I'm trying to understand what the repeated (?i) syntax means in the following code:  i = self.expect([   "(?i)are you sure you want to continue connecting",   original_prompt,   "(?i)(?:password)|(?:passphrase for key)",   "(?i)permission denied",   "(?i)terminal type",   TIMEOUT,   "(?i)connection closed by remote host" ], timeout=login_timeout)


Implement Pagination in Lightning Component by standard functionality

I want to implement pagination on lightning componet. Is there any standard functionality present in salesforce? The pagination should be as displayed in image.    Basically, need an ability to jump to any page, end, beginning, next, previous, and knowing approximately how many pages.


QGIS3 - Clipping polygons to a hemisphere for azimuthal orthographic projection

I'm a bit of a novice with QGIS, so this is really throwing me for a loop.  For the maps I'm intending on making, an azimuthal orthographic projection would be my preference.   For example, one map I'm trying to recreate is this map of the Pacific islands :    I've been using the NaturalEarth Quick Start package, which has been a really good launching-off point, but I'm running into some issues at the horizon of the orthographic projection.  I've tried adding a custom projection:  +proj=ortho +lat_0=0 +lon_0=170 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs   But that gives the following map:    Which certainly is close to being right, but the ocean is obviously being cut off in the Arctic and on the southern horizon.  I understand the issue is that naively mapping layers described in WGS 84 to an orthographic projection leaves you with artifacts at the horizon, but how do I fix it?    I first tried to use the Clip to Hemisphere plugin described in , but it seems incompatible with QGIS 3; when I try adding the plugin, QGIS3 gives an error message and places it in the "Invalid" section of the Plugins window.    I then tried both solutions presented at  Again the issue is with QGIS 2/3 incompatibility.    For Solution 1, both Numerical Digitize and CAD Tools are again incompatible with QGIS 3 and give the same result as Clip to Hemisphere.    For Solution 2, I can't disable on-the-fly-reprojection in settings since that setting was removed in QGIS 3.


How do you find all subclasses of a given class in Java?

How does one go about and try to find all subclasses of a given class (or all implementors of a given interface) in Java? As of now, I have a method to do this, but I find it quite inefficient (to say the least). The method is:    Get a list of all class names that exist on the class path Load each class and test to see if it is a subclass or implementor of the desired class or interface   In Eclipse, there is a nice feature called the Type Hierarchy that manages to show this quite efficiently. How does one go about and do it programmatically?


How do I design a website logo so it's not pixelated?

I designed my website logo for WordPress but it's too small, pixelated, and unappealing.  I'm designing my logo in sketch. What artbord size should I design on? What size do I export?  What size is the standard? How do I design a logo in sketch so it's high res? And not pixelated while PNG?


I am trying to create two new macros:   braces: compiles some text between curly brackets squakets:  compiles text between two square brackets   I defined as follows.  \documentclass{article}  \newcommand{\braces}[2]{$\left\{\begin{tabular}{@{}c@{}}     #1\\     #2\\     \end{tabular}\right\}$}       \newcommand{\squakets}[1]{$\Big[ #1 \Big]$}  \begin{document}  \squakets{\squakets{\braces{$\sqrt{}$}{$\alpha$} \braces{$x$}{$\beta$}} \braces{$y$}{$\gamma$}} $\rightarrow$ \braces{$\sqrt{}$}{$\alpha$} -- \braces{$x$}{$\beta$} -- \braces{$y$}{$\gamma$}  \end{document}   Console still compiles, even though it warns me that:     Missing $ inserted.   I was curious of understanding how to fix this. I guess it is something related to the fact I am embedding multiple squakets command in one another, but can someone help figure that out?


Which of the Following Sets are compact (C.S.I.R 2015)

$\{ (x,y,z) \in \mathbb R^3 : x^2 + y^2 + z^2 = 1 \}$ in the Euclidean Topology $\{ (z_1,z_2,z_3) \in \mathbb C^3 : z_1^2 + z_2^2 + z_3^2 = 1 \}$ in the Euclidean Topology. $\prod_{n=1}^{\infty} A_n$ with product topology , where $A_n = \{0,1\}$ has discrete topology  for $n = 1,2, \dots$ $\{ z\in \mathbb C : Re z \leq \alpha \}$ in the Euclidean topology for some fixed positive real number $\alpha$.   I think   For 1) and 2)  I know that any subset in $\mathbb R^n$ which is closed and bounded iff it is compact.  for 3)   Since $A_n$ is a finite discrete topological space . So it is compact. So by Tychnoff's Theorem $\prod A_n$ is compact.  for 4)  Since $K= \{ \alpha + i n : n \in \mathbb N \}$ is a subset of the given set which is unbounded. So it is not comact.  Please check my Solution, If you find any error  , then correct me. Thank you


Let A be a ring and b be an ideal of A. The quotient ring of A by b, denoted A/b is the ring of all equivalence classes A + b.  Prove that the assignment $$c → c/b$$ induces a one-to-one correspondence between the ideals of A that contain b and the ideals of A/b.  I am completely at a loss. I understand one-to-one to mean bijective so I assume it is necessary to show the mapping is both injective and surjective? I also don't know what c is supposed to be - is it an element of A? Please help!


How to open gvfs SMB/CIFS mount location in terminal from Caja?

I'm using Ubuntu 16.04.3 LTS with MATE DE. I have Samba server in my network (its name is server, share is share).    I open Caja 1.12.7 file-manager and put smb://server/share to Location. I have caja-open-terminal installed.  In previous Ubuntu versions such as Ubuntu 12.04 LTS I was able to open terminal from Caja when it shows contents of smb://server/share. Terminal was opened inside ~/.gvfs/share on server/ folder. I was able to start for example Midnight Commander (mc) here.  How I can open terminal in such SMB locations in Ubuntu 16.04 from Caja?  Note: I understand that I can navigate to  /run/user/`id -u`/gvfs/smb-share   manually. But this solution is not user-friendly.


I replaced my laptop charger with new one  Old charger:    input 100~200v (1.5a)  output 19v (3.45a)   New charger:   input 100~200v (1.4a) output 19v (4.25a)   Can I use the new charger? Will the input amperage harm my laptop?


Is the speed of light greater if traveling at an initial velocity greater than zero?

I'm reading "a brief history of time" and he states "the speed of light should be the same whatever the speed of the source, and this has been confirmed," (24). Why is it not increased if it has an initial velocity- if you shine your headlights while driving versus while parked, should it not be greater? I'm supposing it has to do with there being no absolute space/position, but I may be wrong.


An user is not permitted to write in directories it owns, on a external mounted ext4 partition. What could be the problem there?

I'm trying to get a user to be able to write in a directory on an external ext4 partition but I'm experiencing strange access problems, even though the user owns the directory and seems to be permitted to use it. The partition is mounted at /media/external/ owned by root (with mount reporting /dev/sda0p2 on /media/external type ext4 (rw,sync,relatime)). In that partition there is a directory owned by user myuser: root@mymachine:~# ls -la /media/external/testdir drwx------    3 myuser   myuser        4096 Mar 31 11:02 . drwx------    3 root     root          4096 Mar 31 11:02 .. drwx------    2 myuser   myuser        4096 Mar 31 11:02 testdir  However, I don't seem to be able to write in testdir as its owner: root@mymachine:~# sudo -u myuser touch /media/external/testdir/testtouch          touch: /media/external/testdir/testtouch : Permission denied  That said, if the ownership of /media/external/ is changed to myuser the write will proceed fine. Why is the ownership of a parent directory affecting permissions of child directories? mount reports the partition being mounted on /media/external type ext4 (rw,sync,relatime) What am I missing here?


I have a laptop with a 128GB SSD and a 1TB HDD. But i don't know how to setup ubuntu to work properly with them. Any tips or tutorial ? thanks in advance.


I found that every character has a "Personal Item" in his inventory after you start the game. My question is: What is the purpose of it? I mean yeah you could sell it for 100$ but that really is absolutely nothing. It also doesn't have any stats so what can I use it for?


How to move huge popup window in Yosemite?

After upgrading to Yosemite / Chrome updating (one of these two), I have difficulties to submit files via Google Chrome because the popup window for submitting is huge and lower buttons cannot be seen at all. The only way to operate that - double click on the file (I found that after some days!).  Look at the screenshot - it is the lower visible part of the popup window, but it is not a lower border of this window.     Is there any way to resize/move this window?


Automorphism group of direct product of groups

I was working on a problem in group theory, which asks about the automorphism group of a direct product of groups.  Okay, so I know that if $G,H$ are two groups whose orders are relatively prime, then $\operatorname{Aut}(G\times H)\cong\operatorname{Aut}(G)\times \operatorname{Aut}(H)$.  I also know that if $G,H$ are abelian and simple and isomorphic, then $\operatorname{Aut}(G\times H)\cong \operatorname{GL}_2(\mathbf{Z}_p)$ where $p$ is the order of $G$.  What I don't know is the following: what if $G,H$ are simple, yet not abelian? Let us for now focus on a more restricted case where $G\cong H$, in particular, $G=H$. What can we say about the group $\operatorname{Aut}(G\times H)$? (I heard something about this group being related to what is called "wreath product", which I do not know...)  Thanks bunch in advance!


Ubuntu Desktop 17.04 64-bit with encrypted home, slow boot

I reinstalled Ubuntu 17.04 Desktop 64-bit UEFI on my Laptop on a harddisk.  Laptop: Intel Core i5-5200U, Intel HD Graphics 5500, 16 GB Ram.  Booting takes ~120 seconds (from pressing the powerswitch to loginscreen, with Ubuntu 16.04.2 on a ssd it takes less than 20 seconds).    $ systemd-analyze blame           5.187s dev-sdb2.device           4.268s ModemManager.service           3.138s accounts-daemon.service           2.852s fwupd.service           2.688s grub-common.service           2.421s irqbalance.service           2.367s apport.service           2.360s gpu-manager.service           2.269s NetworkManager.service           1.641s thermald.service           1.632s polkit.service           1.567s rsyslog.service           1.336s keyboard-setup.service           1.241s lightdm.service           1.240s plymouth-quit-wait.service           1.231s speech-dispatcher.service           1.172s udisks2.service           1.159s apparmor.service           1.019s alsa-restore.service            976ms repowerd.service            957ms upower.service            900ms bluetooth.service            821ms systemd-resolved.service            792ms dev-hugepages.mount            792ms dev-mqueue.mount            789ms avahi-daemon.service            755ms sys-kernel-debug.mount            689ms systemd-cryptsetup@cryptswap1.service            663ms systemd-modules-load.service            638ms rtkit-daemon.service            599ms systemd-backlight@backlight:intel_backlight.service            540ms systemd-rfkill.service            511ms systemd-udevd.service            505ms systemd-fsck@dev-disk-by\x2duuid-F685\x2d7079.service            456ms systemd-machine-id-commit.service            455ms openvpn.service            444ms systemd-timesyncd.service            386ms systemd-user-sessions.service            326ms systemd-journald.service            321ms kmod-static-nodes.service            273ms systemd-logind.service            243ms colord.service            239ms systemd-udev-trigger.service            227ms wpa_supplicant.service            199ms networking.service            192ms console-setup.service            191ms systemd-tmpfiles-setup-dev.service            188ms pppd-dns.service            184ms systemd-hostnamed.service            171ms user@1000.service            170ms systemd-localed.service            165ms setvtrgb.service            162ms systemd-tmpfiles-setup.service            131ms dns-clean.service            101ms systemd-journal-flush.service             92ms resolvconf.service             91ms sys-fs-fuse-connections.mount             82ms systemd-sysctl.service             79ms systemd-remount-fs.service             70ms systemd-random-seed.service             51ms ufw.service             44ms systemd-update-utmp.service             42ms boot-efi.mount             37ms snapd.socket             14ms plymouth-start.service             11ms plymouth-read-write.service              6ms snapd.autoimport.service              4ms ureadahead-stop.service              4ms dev-mapper-cryptswap1.swap              3ms systemd-update-utmp-runlevel.service              1ms swapfile.swap     Any ideas?


What do I do if I believe a user to be operating a sock puppet account?

I have, in my view, strong, albeit circumstantial, evidence that a particular user is operating a sock puppet account. It appears not to have been detected by any automated mechanisms–both users are still here.  The individual in question is not interested in collecting lots of rep but rather uses the account to carry out prolonged vindictive down-voting attacks. The down-voting account loses rep over time (due to the down-votes) and when it gets close to falling below 125, it is topped up.  Do moderators want to hear more details (e.g. via a flag)? Or do we just accept that if the automated detection scripts don't pick it up, then there's nothing more to be done.


Show that $\aleph_{\alpha}^{\aleph_{1}} = \aleph_{\alpha}^{\aleph_{0}}\cdot 2^{\aleph_1}$

So basically I want to show:  $\aleph_{\alpha}^{\aleph_{1}} = \aleph_{\alpha}^{\aleph_{0}}\cdot2^{\aleph_1}$ , Where $\omega\leq\alpha<\omega_1$  There is a proof that I found;    But I don't understand his proof for the limit case of $\alpha$.  To be more specific, I dont understand why $ \left( \sup_{\omega \le \beta < \alpha} \aleph_{\beta}\right)^{\aleph_1} \le \left( \prod_{\omega \le \beta < \alpha} \aleph_{\beta}\right)^{\aleph_1}$  Any insights or help is deeply appreciated.  Cheers


I am in math, and it occurred to me that in average, I receive answers to submission of my papers after about 8 months. In the journals I submit to, there is almost always only one referee report.  In recent years I served as a reviewer for many of these journals. The editors of these journals almost always ask me for a report within 2-3 months.   Where do the extra 5-6 months of wait come from?


Short story about a bureaucracy becoming (extremely) over-efficient

I remember what I believe is a short story, possibly by Isaac Asimov, where in a not-so-strange human (?) civilization bureaucracy suddenly goes over efficient at performing its duties. This results in a Kafkaesque nightmarish life for all citizens who face constant harassment, something which is not too far from what many of us experience in modern all-connected world.   E.g., they suddenly receive unwanted benefits which get removed in the following day (early in story) or hour (later), if I remember correctly. It seems to me the pace of that all was going exponentially, but the end was rather an anti-climactic one, where everything returns to the "normal" state of things of not being able to get things done from administrations.  I believe this was in the style of Asimov's short stories, it could be Ray Bradbury or even French writer Marcel Aymé though. I've read it in the 90s, but I'd say it was written long before that, in the 1920s-60s range.


Desktop Shortcut Won't Work after Reboot

I have Ubuntu 14.04 LTS installed in a dual boot along with Windows 8.  When I create a desktop shortcut for a folder on a windows partition in Ubuntu using "Make a link and move it to the desktop", it won't work after I reboot.  It tells me "the link is broken, move it to trash?".  I searched for similar problems but the proposed solutions didn't work.


Why didn't Yoda or Obi-Wan tell Luke the truth about his father?

Is the reason neither Yoda or Obi-Wan thought it a good idea to inform Luke that      his father and Vader were the same person   ever discussed? Were they hoping that       Vader himself   didn't realize this, and that it wouldn't come up? Or was there an explicit rationale behind hiding this fact from Luke?  Wouldn't it seem risky to send Luke in blind, with the chance of him finding out without their support, considering how emotional attachment can be a door into the Dark Side?


What does: r, g, b, *a = img_list[generated_number]: mean in python3?

r, g, b, *a = img_list[generated_number]   What does this means in python3? I'm porting the stegano library to python 2 (since burgled-batteries has trouble with libraries in python3 while importing from sbcl).  Is there a way of converting this notation to python 2 notation (like how type annotation can be overcome with import typing and x.__annotations__ = {})? More generally, what is this supposed to signify? Since it raises a syntax error when run on python 2.  Thanks!


Google Play Services Has stopped message continually popping up on my Samsung phone

The following message keeps appearing on my Samsung Galaxy S4 phone screen about every three seconds  "Unfortunately, Google Play Services has stopped".    Is it actually a virus or it is a problem with the Google Play Service?  I have tried disabling the Google Play Service but the message keeps appearing.  I have Norton Mobile running on my phone to pick up on viruses and to alert me to any possible security issues and also Lookout. They haven't picked up anything.  Does anyone have any suggestions?


Ubuntu - saying your security settings have blocked an application from running with an out-of-date version of java

I have this new problem since 2014 begin. I cant remotely login to this enterprise network for giving them support. Its keep showing this new error.  How to fix it please?    EDIT:


Is there a way to left-click links in gnome-terminal or am I out of luck?

I'm using irssi hosted on a remote computer for IRC, and it'd be super helpful not to have to hold Control or right-click every single link (so I can avoid multiple clicks or multiple hands).  At this point I'm willing to download gnome-terminal's source and manually patch it and rebuild the package.


I'm connected to a remote shell and many keys aren't working properly such as arrows and the escape key. This answer  suggested I might be in the wrong shell, so I referenced .  Using the methods described, I get strange results.  echo $SHELL  /bin/bash   but   echo $0 sh   Which shell am I using?


'using' keyword before local variable declaration in C#?

Hi I was going through some examples in C# and came across some code similar to below : private void WriteData(string filePath) {     using var writer = new System.IO.StreamWriter(filePath);      //Logic to write data here }  I want to know what is the use and significance of using in variable declaration. Also how is it different from simple variable declaration : var writer = new System.IO.StreamWriter(filePath);


Can you use a weapon with two hands and it still count as a monk weapon?

Martial arts is a monk skill where, if you are using a monk weapon, you can attack with that weapon and also make an unarmed strike as a bonus action.   Monk weapons are shortswords and simple melee weapons that don't have the heavy or two-handed properties. But if you use a quarterstaff (which is a simple melee weapon that doesn't have the two-handed property) with two hands, could you still make an unarmoured strike as a bonus action?


What is the best way to deal with Controller methods with the same parameter list?

I came across an issue when coding methods in a controller that have separate Get and Post executions.  Normally when we scaffold a controller against a model, the Get and Post methods have different parameter definitions because the Post method is normally capturing data from the form to save to the model/database.  But I was just coding an original set of Get/Post methods where the parameter list was actually the same.  I can later post my example code to show this, but that might be distracting from my question; i.e., we can acknowledge there's always another way to code any given method.  In this case, I'd rather get an answer to this question.  If the Get and Post methods have the same parameter definition, then that's a syntax error.  So I needed a way around this problem.  The following was my logic.  Since I can't change the name of the method (that's an assumption on my part that may not be valid), the only way around this is to change the parameter definition of one or the other of the Get/Post variations.  So I added an additional parameter to the Get method and the compiler was happy.  I don't actually supply that parameter when invoking the method, and of course I don't use the parameter in the method, but it does give the method a different parameter definition and it solved my dilemma.  But I wanted to ask if everyone else handles this coding issue different ways so I might learn a better way to do it.  It may be that my assumption about method naming is incorrect as well.  Added after original post: (@CodeCaster, lesson learned). I removed the internal code as it's not related:  Function ChannelTopicSelector(ByVal ChannelType As ChannelType, ByVal Topic As String) As ActionResult   Return View() End Function  <HttpPost()> <ValidateAntiForgeryToken()> Function ChannelTopicSelector(ByVal ChannelType As ChannelType, ByVal Topic As String) As ActionResult   Return View() End Function   The first method above returns the 'multiple definitions with identical signatures' error.  I followed CodeCaster's link which I believe is also Brad's point and I understand how the ActionName Attribute is applied.  I hadn't noticed this before as my coding never got into yet.  Regards the duplicate question, I did look for other posts, I just didn't know how to frame the question correctly for it to come up in the search.  Should this post be deleted then?  Anyway, my question is answered - thx


In Unix, when exec  If Real user ID is not same with file owner, and Set user ID bit is on, then, effective user id is changed to file owner's, and saved set user ID too. Because Effective user ID is copied to Saved set user ID when exec.     At this moment, Why saved set userID is needed?   Because of security problem? if it is right, especially what case?


Table column widths disproportionate due to multicolumn cell being too long

I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve this by having a multicolumn cell spanning all the columns of the first row. The problem is that if the text is too long, the column widths are uneven, with the last column accumulating excess width. I would expect all of the columns to be of approximately the same width (although I cannot find a decent source that would say they should), given the fact that all the text in the second row is of approximately the same width.  I find this behaviour quite puzzling and have no idea what the cause could be. I know I could perhaps remedy this by manually setting the column widths, but am curious as to how to fix this without doing that (I do not need or indeed want the columns to be of the same width, but roughly proportional to the length of their content), preferably but not necessarily by using the tabular environment only (some other conflict with the document class I am using).   What is it that I'm doing or assuming wrong? And why?  MWE:  \documentclass{article} \begin{document}  \begin{tabular}{ccccc} \multicolumn{5}{c}{This is a piece of text. The longer it is, the longer the last column.} \\  1 & 2 & 3 & 4 & 5 \\ \hline \end{tabular}  \end{document}   Resulting table. Notice how the last column of the second row accumulates excess width.


I have two questions here:   To which action we can use Stop + gerund? And to which action we can use Stop + to + infinitive?


Is there a way to make Finder always expand to "Show All" by default in "Icon View"?  I am referring to this situation where the "Show All" is collapsed by default:


Define a equivalence relation For any (x,y)∈N...

For any $(x,y)∈ \Bbb N$ ,  x ~ y is an equivalence relation if and only if $xy$ is a perfect square. What are the equivalence classes? Here is my progress so far.  By the rules of multiplication we know that it is already symmetric and reflexive because for any $x∈\Bbb N$,$ x*x= {x^2}$  is by definition a perfect square and for any $x,y∈\Bbb N,xy=yx$ . But for transitivity and finding the equivalence classes I have hit a road block. My professor mentioned that prime factorization can be used but I just aren't seeing it.


Xorg: High CPU Usage (94%) on Moving Mouse (Ubuntu 18.04)

whenever I move my mouse enough it causes high cpu usage. Screenshot provided is on a fresh X session.    This also causes some frequent freeze ups if I'm running some other programs e.g gaming.  [1075299.085] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077813.434] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.079] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.246] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.682] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (EE) client bug: timer event4 debounce: offset negative (-18ms) [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (II) event4  - Corsair Corsair Vengeance M90 Mouse: WARNING: log rate limit exceeded (5 msgs per 30000ms). Discarding future messages. [1120008.128] (II) event4  - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost.   Is there any way for the CPU usage not to be this high?  EDIT:  I tried with other mice. The CPU usage appears to increase with the Mouse DPI or to be exact, a generic mouse will cause a CPU usage spike, but not as much as a gaming mouse.  I also checked if I have hardware acceleration enabled.  $ glxinfo | grep "direct rendering" direct rendering: Yes   EDIT 2:  CPU is an AMD FX-6350  GPU is AMD RX Vega 56


Why is any number (other than zero) to the power of zero equal to one? Please include in your answer an explanation of why $0^0$ should be undefined.


Let $x \in \mathbb R$  Find a closed form of $\int_0^\infty\dfrac{\cos(xt)}{1+t^2}dt$ .   Let me give some context: this is an exercise from an improper integrals course for undergraduates. My teacher was not able to give a valid solution without  resorting to Fourier series.   He actually wanted to prove first that the function is a solution of the ODE $$ y-y'' =0$$ without succeeding in proving it.   Anyway the result sould be $\dfrac{\pi}{2}e^{-x}$  Thanks for any help on this subject.


Create a list of lists from a one-dimensional list, grouping each element by length

Let's say that I have a flat list:  flat_list = ["one", "a", "two", "b", "ab"]   My goal is to get a list of lists, each one containing every element with the same length, something like this:  list_lists = [["one", "two"], ["a", "b"], ["ab"]]   Is it possible to accomplish this with a simple list comprehension?


Use of properties in C# if there are no checks

If I have a class as follows:  class A {   private int _xyz;   public int XYZ   {      get { return _xyz; }      set { _xyz = value; }          } }   Is there any use in defining a property or does it make sense to just make '_xyz' public?


How to use wc and piping to find how many files and directories are in a certain directory?

How can I use word counter (wc) and piping to count how many files or directories are in the /usr/bin directory?


Now that Android 4.4 aka KitKat is out, I couldn't find out whether Samsung Galaxy Nexus will get the upgrade or not.  Does anyone have any information on this?  I hope it will get it, this why I bought Nexus device in the first place.


I'm looking for ways to speed up the combat in my D&D 3.5 game. It seems that turns - both player and non-player - simply take too long. I have thought about giving everyone a 30 second timer, but I'm afraid that might inhibit their ability to come up with strategy and tactics.


Newbie Question : How to program/burn the chips on a self-made PCB

I am in the middle of building my own PCB Board with different kind of MCUs (ESP32/8266, ARM Cortex, W5500) - Because each of these in a Dev Board are to big I want to just get the chips onto the board itself and make everything how I want it to be connected. But I only worked with dev boards before and programming/testing these is really simple but I realised I am really just a beginner in this field and so I don't know how I would get the code for the chips I created on the dev board onto the finished PCB. The only way I could say would build the code on a dev board, remove the chip and but it onto the PCB but if there is any kind of code problem I would really run into a pain to always remove the board. The other alternative I thought of would be to put a USB port - Because I don't want 3 USB ports for each chip I would also build in a jumper to change which chip I want to program. But I doubt that these are the "best" methods, so could help me there and give me an idea how I would do that ? I know helping a beginner isn't easy but I need to start somewhere to get better. Thanks !


Python Beautiful Soup Regex Positive Lookbehind and Lookahead (?<=)(.*)(?=) Ignores Lookahead until Last Instance

# python 3.7.3 import requests import csv from bs4 import BeautifulSoup import re   url = "https://www.brownells.com/ammunition/handgun-ammo/usa-white-box-ammo-380-auto-95gr-fmj-prod95261.aspx"  response = requests.get(url,headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'}) src = response.content soup = BeautifulSoup(src, 'lxml') price = soup.find("script", {"id": "rawData"}) price = re.search(r'(?<=\\u003cspan\\u003e\$).*(?=\\u003c/span\\u003e\\u003cspan)', price.text) print(price[0]) # print(price[1]) # There are multiple patterns to match in the string, and I'm planning to pull the 2nd or 3rd one, not just the first.  # For simplicity I'm just pulling the first above.   Expected: 16.99  Actual: 16.99\u003c/span...\u003cspan\u003e$32.99 (rest of the string until the last instance of \u003c/span\u003e\u003cspan)   I tested my regex in regexr and regex101 and it works there:      I also tried the regex on a string, and it works fine:   import requests import csv from bs4 import BeautifulSoup import re   price = "\\u003cspan\\u003e$321.99\\u003c/span\\u003e\\" # \u003cspan\u003e$321.99\u003c/span\u003e\ print(price) price = re.search(r'(?<=\\u003cspan\\u003e\$)(.*)(?=\\u003c/span\\u003e)', price) print(price[0]) # print(price[1]) # \\u003cspan\\u003e$321.99\\u003c/span\\u003e\\ # View OSHA SDS\u003c/a\u003e\r\n        \u003c/section\u003e\r\n # \u003cspan\u003e$321.99\u003c/span\u003e\   Something with Beautiful Soup seems to be tripping something up and causing it to skip to the last instance of the positive lookahead.  Why is python's regex taking the positive lookbehind but ignoring positive lookahead after the string match until the last instance of the lookahead?


I am sorry for the title, which seems to be into the philosophical discussions about reality going random in quantum scale. My aim is to approach the question in a definite and most reasonable, though basic way. Is quantum mechanics deterministic, if the equations allow to predict quantum state? The answer is: yes. Is this correct?  I cannot imagine how this cannot be correct and it is weird that there is so much internet discussion about this, doing so much harm to basic perception of physical reality. Wikipedia states what can help understand the doubts:     The Schrödinger equation, applied to the aforementioned example of the   free particle, predicts that the center of a wave packet will move   through space at a constant velocity (like a classical particle with   no forces acting on it). However, the wave packet will also spread out   as time progresses, which means that the position becomes more   uncertain with time. This also has the effect of turning a position   eigenstate (which can be thought of as an infinitely sharp wave   packet) into a broadened wave packet that no longer represents a   (definite, certain) position eigenstate.[30]   However, the fact that some part of the system behaves in a particular way - a spread in this case - doesn't mean that it isn't deterministic. It just means that we do not have direct grasp on the particle in the equations, however it behaves predictibly, i.e. deterministically, because.. its evolution is predictable. Is this correct?


What is the correct notation for flipping $a$ and $b$ values in a complex?

I'm currently doing some experiments on fractals and in one of my equation I need to flip the real and imaginary components of a complex number, such as :  $$ z = a + bi $$  Becomes :  $$ z = b + ai $$  What would be the correct mathematical term or notation for this ? flip ?


Prove that Hopf maps on $S^3, S^2$ and $\mathbb{C} \mathbb{P}^1$ are smooth submersions

Endow $S^3$ with its standard smooth structures from the stereographic projections, i.e. $$\chi_1:S^3 \setminus \{(0,0,0,1) \} \to \mathbb{R}^3, \chi(x,y,z,t) = \frac{1}{1-t}(x,y,z) $$ and $$\chi_2: S^3 \setminus \{(0,0,0,-1) \}   \to \mathbb{R}^3, \chi_2(x,y,z,t) = \frac{1}{1+t}(x,y,z).$$   Do the same for $S^2$, call the charts $\eta_1, \eta_2$ (in the same order as the ones for $S^3$). Now, consider the complex projective space $\mathbb{C} \mathbb{P}^1$ endowed with the smooth structure given by the charts $\{(U_0, \varphi_0), (U_1, \varphi_1)\},$ $$U_0 = \{[z_0:z_1] \ \mid \ z_0 \neq 0 \} \text{ and } U_1 = \{[z_0: z_1] \ \mid \ z_1 \neq 0 \},$$ where $[x:y]$ represents the complex line through the point $(x,y)$ and $0$ in $\mathbb{C}^2$, and $$\varphi_0([z_0: z_1]) = \frac{z_1}{z_0} \text{ and } \varphi_1([z_0: z_1]) = \frac{z_0}{z_1}. $$   Now define the Hopf maps: $$h: S^3 \to S^2, h(x,y,z,t) = (x^2+y^2-z^2-t^2, 2(yz-xt), 2(xz+yt)) $$ and $$H:S^3 \to \mathbb{C} \mathbb{P}^1, H(x,y,z,t) = [(x+iy):(z+it)]. $$  Is there an easier way to prove that $h$ is a well-defined smooth submersion and that $H$ is a smooth submersion (with respect to the respective smooth structures)? By this I mean we can of course compute $\eta_i \circ h \circ \chi_j^{-1}, \forall i,j \in \{1,2 \}$ and $\varphi_k \circ H \circ \chi_l^{-1}, \forall k,l \in \{1,2 \}$ and prove that they are smooth (in the classical real-analysis sense) and that they are submersions, but this is a very tedious process. So, are there easier ways to do this? Will this maybe be easier if we switch the smooth structure of the unit spheres from stereographic projections to, say, normal projections (though we increase the number of combinations of charts to verify from 4 to 48), since they induce the same smooth structure?


How can I prove following problem in number theory?     Show that $13$ is the largest prime that can divide two successive integers of the form $n^2+3$.


Visa refused under V 4 (A-(C) how to overcome this for new application

I am a student in London and my mother applied for a visitor visa to come and visit me. But it was unfortunately refused.   Among the reasons for the refusal which you will read in the refusal letter that i ill attach is the fact that the proof of study i provided her was not legible. Also, for some reason, the ECO did not have a record of my new tier 4 visa, instead he had only my previous 6 months visa. the above problems can be easily fixed as i can provide her with a new legible proof of study certificate, my brp, my home office letter, my police registration, proof of address, my CAS letter,social security number, my sponsorship letter (as i am sponsored by my government to study in the UK) my offer letter, y visa montinoring record, a letter from my employer ( i work part-time job) my supervisor will also provide me with a proof of supervision, my birth certificate...etc. Anything i can get my hands on.   But the for financial reasons, i should explain that my mother has at the moment one income which is her pension.However, she used to be a freelance dressmaker. She is a certified dressmaker and used to rent a store in which she worked for a year and a half. It was a profitable business, but she had to stop due to some health issues as she was getting old. Unfortunately she did not mention this business in her first application, and on that basis, the ECO was not satisfied that she would spend 1400 pounds which is 7 times her pension on an 8 days vacation. Please note that my mother's certification and store lease papers are with her. and she can use them for another application. Please read the refusal letter and advise me on what changes should i make for the next application? should i include my bank statement? I miss my mother so much and i wish she would come visit me.  I have copy pasted the text of the Refusal Letter      The Decision      You have stated that you intend to travel to the UK to   visit your daughter resident in the UK as a student for a period of 8   days. Whilst you have provided letter of support from your UK sponsor,   I note that the document provided by you is not legible to   substantiate her valid leave to remain in the UK until now. From the   information I have, your daughter was only granted 6 months short   student visa valid until May 2018.      You have indicated on your   application form that you are Pensioner with a monthly income of 53342   DZD (£352) and I accept on the balance of probabilities that you   receive this income. However, you have indicated that you spend 25000   DZD (£165.22) per month on living costs and supporting your family,   leaving a disposable income of 28342 DZD (£187.30).      You have indicated   that your trip to the UK will cost you personally £1400 which   represents over 7 times of your disposable income. I am not satisfied   that this expenditure is credible when compared to your social and   economic circumstances. I am also conscious that this appears to be a   significant portion of your life savings and I am not satisfied that   this expenditure is credible for a short holiday.      Given above, and on   the evidence before me, and the balance of probabilities, I am not   satisfied that you have accurately presented your circumstances or   intentions in wishing to enter the UK. I am not satisfied that you   intend to leave the UK at the end of your visit, that you will not   live in the UK through frequent or successive visits, that you are   genuinely seeking entry for a purpose that is permitted by the visitor   routes. This means that your application for a visit visa has been   refused under paragraph V4.2 (a-(c). Rate of exchange £1 = [DZD151.32]   (reference www.oanda.com on [14/12/18]      Future Applications      Any future   UK visa applications you make will be considered on their individual   merits, however you are likely to be refused unless the circumstances   of your application change.


How to resize my root partition with unallocated space with Home and Swap directory in between

how to merge my root partition with unallocated space with Home and Swap directory in between


Old science fiction short story about a man controlled by electrical devices in his home

I'm looking for the short story I read when I was teenager or above (before 2000). Maybe it is from Philip K. Dick.  It's about a man that is thinking to be controlled by the electrical devices in his home. I remember he starts a relation with a girl with t-shirt, big tits, a dental appliance (tooth brace) and very clever. Later in the story she tried to kill herself by putting her head inside a micro-wave oven.  A very melancholic story.


Can we have a search filter to exclude questions closed as duplicates?

Back before the procedure for closing duplicates was changed, the text "Possible duplicate:" was inserted into question bodies. And that made it relatively easy to search for questions that were candidates for re-opening or deletion, by searching for:  closed:1 migrated:0 -"possible duplicate:"  But that's not useful any more, now that the "possible duplicate:" text is not inserted into questions closed as duplicates, nor is the "This question already has an answer here:" text. So, can we have something that we can search on, to exclude duplicates? Either by putting "[Duplicate]" in the title, or adding search term "duplicate:[0|1]", or something?


Single supply op amp to convert 0-5VDC to +/-2VDC (microcontroller to line level)

I am generating a 0-5 volt sine wave using an arduino with a DAC. I would like to level shift this signal (DC bias?) by -2.5 volts and have a gain of .8, so that I end up with a line level sine wave.  Thus I am trying to design a single supply op amp with the following equation:  $$V_{\text{o}} = (V_{\text{i}}-2.5) \times 0.8$$  I found this white paper that is supposed to describe a way to do this but I'm having trouble following as I am new to op-amps.    Does anyone know of a way to do this with a single op amp or IC?  The frequency range of 20Hz to 20KHz must be preserved.


How to comment out a block of text (or just a part of the line)?

So % is used to start an end of line comment, that's clear. But is there a way to comment a part of code at once like in many other programming languages?  Examples:   HTML: <!-- comment --> C++ : /* comment */ Matlab: %{ comment %}   This could be useful in two cases:   To comment out a bunch of code at once (instead of putting a % in front of every line To comment "inline" within a paragraph/function/macro   I know many editors have shortcuts to comment text blocks, but I'm not looking for that.


I've run the lm code below, with one DV and three IVs, and I'm not sure how to interpret the output.  What does (Intercept) refer to, and what is that row telling me?  What are the other rows telling me?  I'm mainly interested in understanding the p-values. Thank you! Call: lm(formula = NL_EN_M ~ A_S_S + A_P_S + A_A_S, data = IV)  Residuals:      Min       1Q   Median       3Q      Max  -1.12516 -0.22312  0.00767  0.23596  1.06969   Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept)  2.79551    0.36485   7.662  6.6e-09 *** A_S_S        0.03037    0.10404   0.292    0.772     A_P_S       -0.01776    0.12650  -0.140    0.889     A_A_S       -0.11809    0.10122  -1.167    0.251     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 0.5771 on 34 degrees of freedom


How can I make my code only "listen to" a submit button click and not an ENTER key?

I have the following HTML code for a user to enter a question with a subject:  <form class="cf" id="question-form">
Welcome to My Website!

Enter a subject and question to get started.

                 <input type="text" name="subject" placeholder="Subject" />

                 <textarea rows="5" cols="40" name="question"                     placeholder="Question"></textarea>
              <input type="submit" class="btn" value="Submit" />          </form>   I have an text input form for the subject of the question, and I have the 'textarea' element for the question itself. I want to add an event listener to listen to the 'submit' button after both the subject form and the question forms, and handles the event before the user can enter a question. However with the following JavaScript code, the code 'listens' to the ENTER key pressed in the subject form. I want to enter some subject test, press the enter key, put some text in the question text, and then click the submit button.  var questionForm = rightPane.childNodes[1];  questionForm.addEventListener("submit", function(event) {  // do something      alert("I have been clicked");  });


What is the difference between Property and Field in c#?

Example (note the case): public int number; public int Number { get; set; }  What are the guidelines for the use of each? And what are the differences?


My attempt 1: Let $x_n=\left(1+\frac{1}{2^2} + \cdots + \frac{1}{n^2} \right)$, and we have $x_{n+1}>x_n$. Since $$ 1+\frac{1}{n^2} \le 1+ \frac{1}{(n-1)(n+1)} = \frac{n}{n-1} \cdot \frac{n}{n+1}, $$ then $ x_n < \frac{2n}{n+1} <2$. Hence $\{x_n\}_{n=2}^{\infty}$ converges. Let $$ \lim_{n \to \infty} x_n =a, $$ and notice that $x_{n+1}=\left(1+\frac{1}{(n+1)^2}\right)x_n $. By this, we can only get $a=a$. We can't know the value of $a$.  My attempt 2: We write $$ \prod_{k=2}^n \left(1+\frac{1}{k^2} \right)=\exp\left(\sum_{k=2}^n \log\left(1+\frac{1}{k^2}\right)\right) $$ So it suffices to know what's the limit of the serise on the right. I still don't know how to finish it.  Finally,I used Mathematica to calculate the limit, and it tells me that is $\frac{\sinh(\pi)}{2\pi}$. But I don't know how to know it without computer. Can you help me?


I am getting warning "Empty Bibliography" using bibtex at backend. It's been 2 days I am unable to resolve this problem

I tried to compile latex 2 time after bibtex compilation. My references are in bib file and I am using jabref.  \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage[backend = bibtex, sorting=none]{biblatex} \usepackage{xcolor} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em     T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}   \addbibresource{facial expression recognition.bib} \begin{document}  \title{}  \cite{Ekman1971}   \maketitle  %\begin{abstract} %This document is a model and instructions for \LaTeX. %This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes,  %or Math in Paper Title or Abstract. %\end{abstract}  %\begin{IEEEkeywords} %component, formatting, style, styling, insert %\end{IEEEkeywords}  \section{Introduction}    \printbibliography \end{document}


So First off .Thank You everyone for the enormous help that you all have given me. Any problem i had i would always come digging here. Now i have a common dual boot system. Ubuntu & Windows . What i want to do is . I want to remove windows properly.(Not just deleting the partition ) I have the grub Boot Loader. I want to do it properly so that windows doesnt show up on Grub. So i might need to modify something in Grub. The reason im trying to open a question because i couldn't find one like this. All i get is how to remove grub or ubuntu. Not the one i want.


What is Stack Overflow's business model?

I once , but that was . Now, , and they have , but where's the business model? The  its own Q&A about its site (since it wasn't included in the ), and just about the only dig in there that halfway has merit is the business model dig:  We switched to a premium model to keep out of the Venture Capital business (been there, done that, got the t-shirt). Companies like StackExchange couldn't do it without the VC cookie jar. Where's the model? Huh, Spolsky? (I’m sorry. Did that slip out?)  It hurt, but I can't help but wonder if they're on to something.  How would Stack Overflow Internet Services pay back the VCs? Ad revenue alone?  There is only one 'paid' product, Stack Overflow careers, but it doesn't seem like that could sustain a business as large as Stack Overflow (Joel once mentioned on his blog that his jobs board brought in an extra million a year in revenue). So what does Stack Overflow do when the VC cash runs out? Is this a get-big-and-take-the-company-public maneuver? Is that the only viable business model for Stack Exchange? Edit: With the size of Stack Overflow's team, it isn't a stretch to say that payroll is at least $2 million  a year, probably as much as 4 when you think about benefits (average 120K for a developer in New York City; x2 for benefits/taxes/all-that-other-good-stuff). Office space can't be cheap, so how long does $6 million last before you need another VC infusion?


I'm trying to understand PPT and in particular what the differences are in uniform and non-uniform PPT's. First, this is how I see it:  A probabilistic polynomial-time (PPT) algorithm $A$ is an algorithm that runs in polynomial time but also has access to some oracle which provides true random bits. So if we input $x$ into $A$, instead of getting an output $y = A(x)$ that is a deterministic value, we get a random variable $Y$ which has a certain probability of being a set of different values.  A non-uniform PPT $A$ is PPT whose description size (i.e., $|A|$) is not constant, but polynomially increasing with its input. I've seen definitions like $A = \{A_1, A_2, \dots\}$ where every $A_i$ is a PPT.   Are my observations/conclusions wrong? And if so, please correct me. Some definitions I have seen for a non-uniform PPT is that we insert some "advice string" along with the input to $A$. But what exactly is that advice string?   Best regards


If $|\mathbb{C}|=|\mathbb{R}|$ and thus $\mathbb{C}$ is isomorphic to $\mathbb{R}$, why can't $\mathbb{C}$ be totally ordered?


Is there any good, complete API for the GDAL Python bindings?  I am interpolating and rasterizing points with elevation data using the gdal.Grid() method;  output = gdal.Grid('outcome.tif','newpoints.vrt')     In its most basic sense, it's working perfectly. But now, I'd like to try the linear approach;  output = gdal.Grid('outcome.tif','newpoints.vrt', algorithm = 'linear:radius=0')     That does generate a new .tif file (512kb), but is just one big black image. Also, not all options seem to be accepted.. for the invdist:power=4 for example it also results in a useless image. What is going wrong, am I missing something? Below is the .vrt I'm using;  <OGRVRTDataSource> <OGRVRTLayer name="newpoints">     <SrcDataSource>newpoints.csv</SrcDataSource>     <GeometryType>wkbPoint</GeometryType>     <GeometryField encoding="PointFromColumns" x="long" y="lat" z="depth"/> </OGRVRTLayer>       EDIT As a next example I used the gdal.GridOptions(), putting the parameters in that one. It is resulting in a correct file, but still ignores the options. How to actually pass the GridOptions onto the gdal.Grid() ?  edit I found this question also;   Is the linear interpolation just a bug in GDAL?  See my example workfiles;


What do you call a person who always compares before buying anything?

What do you call a person who always compares before buying anything ?


Postpone unimportant OS updates on Fedora (dnf)

I have installed the package texlive-scheme-full. Occasionally, when I perform OS updates (via dnf update) I need to update n > 5000 packages. This sometimes takes about half an hour or longer and requires hundreds of MB of download volume.  Is there a way I can update my OS, installing only the most important updates, when I don't have the time nor the bandwidth to install everything?  By "most important" I mean packages relating to core functionality of the OS, especially kernel and security relevant packages. Especially unimportant I consider the updates of my tex-distribution.  I have noticed this related question, whose answers appeared a bit cumbersome to me:       Is this the only way to go?


Gravity is sometimes described as the weak force. How can something that has an infinite range, i.e. Supposedly have an effect on matter at the other side of our universe, possibly be called weak ?


How can Bernoullis be solved without Vectors

Some time ago I asked a question why Dynamic pressure is considered scalar.     This still puzzles me so I hope to give a scenario that doesn't make sense to me   If mass fluid flow always occurs from high pressure to low and we consider that  Bernoullis tells us that Total pressure is constant along a streamline * how do we explain flow without considering the vectors of the components of that total pressure?    Total Pressure along a streamline of unchanging height is constant and is the sum of Static pressure and Dynamic Pressure components ?


Why is it we can't print out array variable content in Java?

I'm used to javascript where if for exemple I call :   var tab1 = [0,1,2,3,4];   I can call tab1, and it returns my array content as :   [0,1,2,3,4]   I've noticed in java if I declare an integer array like so :    int tab1[] = {0,1,2,3};   If I want to print out my array the only way I tought of was doing a loop to print out   tab1[i];   If I call "tab1" alone, I get something like : "[I@15db9742", but why ? What is that piece of code, and why can't we just call variables as loosely ?


How to merge elevation from a raster image onto a shape road network with QGIS?

I have a shape file with Stockholms road network and a raster image with elevation data from the same area.   Is there any way to merge the two somehow, either by adding the slope direction as positive or negative numeric values through an extra column in the attribute data or in any other magic way?  The purpose would be to calculated shortest path with regard to the elevation, to be able to avoid unnecessary uphill climbs.  I work with QGIS and pgRouting so an answer compatible with that would preferable, but other solutions are welcome as well!


Einstein's postulates $\leftrightarrow$ Minkowski space for a Layman

What's the cleanest/quickest way to go between Einstein's postulates [] of   Relativity: Physical laws are the same in all inertial reference frames. Constant speed of light:  "... light is always propagated in empty space with a definite speed $c$ which is independent of the state of motion of the emitting body."   to Minkowski's idea [] that space and time are united into a 4D spacetime with the indefinite metric  $ds^2 = \vec{dx}^2 - c^2 dt^2$.  Related to the question of what is the best derivation of the correspondence are: Is the correspondence 1:1? (Does the correspondence go both ways?) and are there any hidden/extra assumptions?    Edit  Marek's answer is really good (I suggest you read it and its references now!), but not quite what I was thinking of.   I'm looking for an answer (or a reference) that shows the correspondence using only/mainly simple algebra and geometry. An argument that a smart high school graduate would be able to understand.


I'm looking for a solution to write-protect the contents of a USB key. The idea is to prevent its contents from being inadvertently removed by the user or changed by malicious programs -- not to restrict the re-cycling of the key for something else.  Here is a summary of my findings so far:   Some keys have a switch which makes them read-only. Unfortunately this is not always the case.  With a FAT32 filesystem the only solution seems to be setting the files "read-only". But this protection is too weak. There is a slightly stronger write-protection available for NTFS, which can be achieved by removing write privileges from "All Users" it will make the files read-only to every account, except "Administrator". Formatting the disk as UDF makes it read-only under Windows XP SP3, but read-write in Windows Vista, Windows 7, Linux and Mac OS X. Formatting as ISO9660/CDFS makes it read-only under Linux and Mac OS X, but unfortunately the contents are not readable anymore from Windows. With microcontroller-specific software is possible (if supported by the chip) to re-partition the key so it displays for example a write-protected and a read-write partition. The problem is that it is very confusing for the users: the write-protected partition can appear as a CD-ROM drive (which it is not), after insertion some drivers are apparently installed on the computer (in fact they are not really drivers), and it can lead to prompting for reboot. Besides, this solution cannot be applied universally because it requires knowing which chip is used in the drive, and the existence of publicly available tools to re-program the device.  John Reasor mentions utilities able to fill all free space on the device, making it impossible to create new files (see below).   Does there exist a general solution to store non-modifiable contents on a USB key?   It protects the contents from modifications typically done from the shell (e.g. delete, rename, move) or from the files and folders being modified by a standard applications (e.g. save-as) It should work with most of the devices The user can still re-format the device into a regular key to re-cycle it for another usage (for example, with )


It's the 13th day since I applied. Four days ago, I received an email that said my application reached Sheffield and ECO would make a decision. How long does that usually take?  The tracking site doesn't say anything: it was 'green' until  reached the UKVI; after that, the status is 'red' and hasn't been updated.   My husband and children have German passports, but I don't, so I need a visa so that we can attend a party.


can someone help me with this question:  $\Bbb Q[\sqrt2]: = ⟨a + b\sqrt2 \mid a,b ∈ ℚ ⟩$  prove that $\Bbb Q[\sqrt2]$ with the addition and multiplication of ℝ, and that it is a field.  I don't know how to write the accurate symbols, so if you're not sure of something please let me know.  i know that there's a quick way to show that Q[√2] is a sub field but i don't understand how to do it.  (English is not my first language so please, try to explain your logic a bit slower than usual.. much appreciated!)  thank you


How to show previous line to matching pattern with grep and not the matching line?

I know I can use -A, -B and -C to show surrounding lines but all of them also show the matching line. What I'm trying to make here is so, in this example file:  foo bar   I'd be doing something like grep <option> "bar" file and my output should be foo  Side note: I know the way of doing it with another grep or using sed but I would like to do it just by using one time grep


Subequation: Counter too large and alphalph does not work

I have an urgent question. I am writing a document and I have equations (but they are more than 26). I get the error 'counter too large'. I saw in other topics that I need to use alphalph package but it does not work and I still get the same error. I would be so grateful if you help me solve this. I have copied and pasted a minimal example of my code and all packages which I am using:  \documentclass {article}  \usepackage[T1,T5]{fontenc} \usepackage{amsthm} \usepackage{latexsym} \usepackage[cmex10]{amsmath} \usepackage{amsfonts,amssymb,amsthm} \usepackage{graphicx} \usepackage{psfrag,balance,arydshln} \usepackage{rotating} \usepackage{mempatch} \usepackage{ifdraft} \usepackage[cp1252]{inputenc} \usepackage{acronym} \usepackage{textcomp}    \usepackage[swedish,english]{babel}  \usepackage{cleveref}    \usepackage{xr}      \usepackage{nomencl}   \usepackage{bibentry} \usepackage{color} \usepackage{url}     \usepackage{bbold}   \usepackage{paralist} \usepackage{enumitem} \usepackage{bm}      \usepackage{pgfplots}    \usepackage{epstopdf}    \usepackage{nameref}     \usepackage{dsfont}      \usepackage{verbatim} \usepackage{glossaries}  \usepackage{gensymb} \usepackage{algorithmic} \usepackage{enumerate} \usepackage{booktabs} \usepackage{amsmath} \usepackage{epsfig} \usepackage{cite} \usepackage{hhline} \usepackage{multirow} \usepackage{framed} \usepackage{lipsum} \usepackage{enumerate} \usepackage{graphicx} \usepackage{subcaption} \usepackage{capt-of} \usepackage{makecell} \usepackage{appendix} \usepackage[none]{hyphenat} \usepackage{pgfplots}    \usepackage{pgfplotstable}   \usepackage{mathtools} \usepackage{tikz}        \usepackage{xcolor}      \usepackage{alphalph,etoolbox}     \allowdisplaybreaks  \begin{document} \section{section 1} \begin{subequations} \label{equation1} \begin{align} & a=b+c \\  & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c \\ & a=b+c  \end{align} \end{subequations} \end{document}   Thank you


What exactly does "nights" means when you book? Is it number of night you are going to sleep, or simply days you are going to stay?

For example, suppose that I'm going to travel London and will arrive at 10am, 1st December. And will stay a week, means will leave 10am, 8th December. Technically it's 7 nights, but also 8 days. Should I book 7 counts(nights) or 8 counts?


What is the difference between Mem and Swap?

I want to monitor my memory usage with free -h. Then, I got 2 rows of information: 'Mem' and 'Swap'. What is the difference between them?