I am doing some research work on anatomy of human body, for which I want to use this project:    This project is a 3D Model of human anatomy, containing hundreds of .obj files. Each .obj file is actually a model of a part of human body. I want to import all the .obj files in such a way that the overall anatomy of the figure is intact, i.e. all the structures are in their right place (so that I don't have to manually correct their position).  Edit:  Thanks @poor and @zeffii for your input. After a couple of hours of head-banging, everything seems to work now. Here is what I did:   Used the script given in the post mentioned by @poor. Modified the directory structure given in the script (which is for windows) to work with linux. Imported the .obj files using the script     The script now looks like this:  #Script to import multiple .obj files into blender import os import bpy  # put the location to the folder where the objs are located here in this fashion path_to_obj_dir = '/home/user/Desktop/brainstem/'  # get list of all files in directory file_list = sorted(os.listdir(path_to_obj_dir))  # get a list of files ending in 'obj' obj_list = [item for item in file_list if item.endswith('.obj')]  # loop through the strings in obj_list and add the files to the scene for item in obj_list:     path_to_file = os.path.join(path_to_obj_dir, item)     bpy.ops.import_scene.obj(filepath = path_to_file)   Note:  There is something specific to this Human Anatomy project (link given above) that I want to share (hoping that it might help someone).  As mentioned by @zeffii, this project is huge. If yout try to import all the files at once, your system may crash.  The project contains some reference files, which have information about the file names and anatomical structures covered in them. This is very useful information because in this way you can divide the whole project into regions/systems and work with one region/system at a particular time.  The image given above is of "Brain Stem" which is made up of 11 .obj files.    Edit # 2:  @poor has written an add-on for blender in order to import multiple .obj files simultaneously in a more user friendly way. I am now using this addon and it works flawlessly.  Here is the link:   How to add this Addon:  Step # 1:  First of all copy the code of the plugin and create a file named io_import_multiple_objs.py   Step # 2:  In blender, goto "User Preferences" > "Addons" > "Install from file" and select the "io_import_multiple_objs.py" file you created in step # 1.    Step # 3:  Enable the addon    Now you can batch-import multiple .obj files. :D   Thanks @poor for this great addon :D

Is it possible to batch import Wavefront .obj to blender? I'm working on 2.69. If I select multiple .obj files, only one gets imported. Also if I hit A on file selection window to select all files (.obj and .mtl) I get an error, nothing gets imported. I have to import several hundreds of .obj into the blender file, is this possible?


The following post has 'show 1 more comment' link, but, when I click it, there are no more comments:      Update: 8 hours later (02:15UTC), and there is still a 'broken' reference to 'show 1 more comment'    Clicked:

There is something strange with  and . Basically, I left a comment on my answer. Some time after, I deleted it to "rewrite" it and the system seems to see a "ghost" comment now:  But if you click, look, there is no 1 more comment:  I see that the label also says "add" but it's the first time I see "folded" comments with 2 comments. Looks strange to me.


I am passing values to a table from my dropdown values using JavaScript.   I need to give a link on the last row of my table. I tried the following code, but it's not working. Can anyone suggest any other idea please?  $("#btnadd").click(function(){     var lov_name  = $("#lov_name option:selected").text();     var lov_value = $("#lov_value").val();     var markup    = "
" + lov_name + "	" + lov_value + "	 Edit
";      $("table tbody").append(markup);     $(".alert-success").css('display','block'); });

What is the best method in jQuery to add an additional row to a table as the last row?  Is this acceptable?  $('#myTable').append('
my data	more data
');   Are there limitations to what you can add to a table like this (such as inputs, selects, number of rows)?


I am looking for a way to construct a function that has some inheritance.    What I am looking for is an object that is a function that can be instantiated in a program, but that has new properties attached to it's prototype.  So, what we shouldn't do is this:  Function.prototype.x = function(){  };  Function.prototype.y = function(){  };   so what I want to do is something like:  const proto = Object.create(Function.prototype);  proto.x = function(){};  proto.y = function(){};   however, at some point later in the program, I would like to actually define the function body for proto, so that I can actually call proto like a function:  proto();   is there a way to do this? The above definitely does not work :)  This is a little closer, and the error message is telling:  function F(){  }  F.prototype = Function.prototype;  var f = new F();  f.apply(null);   Run the above and we get:     TypeError: Function.prototype.apply was called on [object Object],   which is a object and not a function           at Object. (/Users/amills/WebstormProjects/oresoftware/suman/exp7.js:15:3)           at Module._compile (module.js:541:32)           at Object.Module._extensions..js (module.js:550:10)           at Module.load (module.js:458:32)           at tryModuleLoad (module.js:417:12)           at Function.Module._load (module.js:409:3)           at Function.Module.runMain (module.js:575:10)           at startup (node.js:160:18)           at node.js:449:3

Possible Duplicate:          I'm looking to make a callable JavaScript object, with an arbitrary prototype chain, but without modifying Function.prototype.  In other words, this has to work:  var o = { x: 5 }; var foo = bar(o); assert(foo() === "Hello World!"); delete foo.x; assert(foo.x === 5);   Without making any globally changes.


I am not able to call this method in my test class:  WebServiceCallout.invoke(            this,           request_x,           response_map_x,           new String[]{endpoint_x,           'https://www.imed.com.ar/Producto',           'https://www.imed.com.ar/',           'Producto',           'https://www.imed.com.ar/',           'ProductoResponse',           'wwwImedComAr.ProductoResponse_element'}

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  How do I unit test code that includes a SOAP or REST-based callout, or indirectly calls code that makes a callout? I'm getting an error saying that callouts are not supported.


If a continuous function between locally compact Hausdorff spaces is proper (i.e. preimages of compact sets are compact), then it is also closed. How to prove it?

Let $f: X \to Y$ be continuous and proper (a map is proper iff the preimage of a compact set is compact). Furthermore, assume that $Y$ is locally compact and Hausdorff (there are various ways of defining local compactness in Hausdorff spaces, but let's say this means each point $y \in Y$ has a local basis of compact neighborhoods).  Prove that $f$ is a closed map.  I know that this proof cannot require much more than a basic topological argument. But there's just something that I'm missing.   We can start with $C \subseteq X$ closed, and then try to show that $Y \setminus F(C)$ is open (for each $q \in Y \setminus F(C)$, we would want to find an open set $V_q$ with $q \in V_q \subseteq Y \setminus F(C)$).   Hints or solutions are greatly appreciated.


I keep reading that \begin{align} is preferred to \begin{eqnarray}.  Unfortunately, I can't get align to justify rcl. I'll change between align and eqnarray, and the rightmost column is right justified. So, align for me looks like rcr. Does anyone know what I could be doing? I want the old rcl justification.  Thanks, Aaron

Motivation  I want to include a list of related equations, say, for a proof, in my LaTeX document. As far as I know, I have two good options, eqnarray and align.   Question  What is the difference between eqnarray and align, and how do I know which I should be using? Or does it matter at all?


I have a simple batch process running once per day to manage a disk quota (simply deletes all folders in excess of quota, oldest first).  Works fine for what it's designed to do.  Among other tasks, it appends a list of the deleted folders to a log file (a simple text file). To prevent inadvertent changes to the log file, I have the read-only flag set (not attempting any real security, just protecting against a reflexive "save changes" if viewed in Notepad, for example).  It's simple to use ATTRIB to turn the "R" off at the start & back on again at the end of the process. I notice, however, that Windows doesn't appear to provide write access control to text files:  I find that multiple instances of Notepad (or Notepad and another text editor; or a text editor and a CMD window) can each "save" to the text file (if read-only is off)--meaning those inadvertent changes (or wholesale deletion) could happen while the file is "vulnerable" because the process is running & it has the read-only turned off. OK, it's not that big a deal for this specific application (the process typically takes ~30 seconds to run, and I'm the only user with access and "theoretically" know better)--but, I'd like to understand how to deal with this. How can I save (append) to a read-only log file without opening it up to any other writes?  I'd like something along the lines of: take exclusive write control of log file turn off read-only perform rest of script turn on read-only release exclusive write control  It's those first & last steps I can't figure out....

I want to hold an exclusive lock on a file so it cannot be read or written by anything else. Is there a simple Windows tool or command to do this?   I suppose the tool or utility would implement the  Windows Function.  Note: I've tried text editors like Notepad and Notepad++ on a text file but they don't hold an exclusive lock on it.


let $\{a_{n}\}_{n=1}^{\infty} $ be a sequence defined as $$0<a_{1}<\frac{\pi}{2}$$ and          $$ a_{n+1}=\frac{a_{n}}{\sin(a_{n})},\ \forall n\geq2$$  prove that $\{a_{n}\} $ converges, and find the limit of $\{a_{n}\}$.

Given $0 < a_1 < \frac{\pi}{2}$, for $n\geq 1$ we define $$a_{n+1} = \dfrac{{a_n}}{\sin({a_n})}.$$ I need to show that $\lim_{n\rightarrow\infty}{a_n} = L$, and then I need to find $L$.  I can't find a way to bound $\{a_n\}_n$ so that  $$0 <a_n < \frac{\pi}{2}$$ I've tried to use every convergence test I know, but I always have the same problem which I want to bound $\{a_n\}_n$ and can't to that without bounding $\{\sin(a_n)\}_n$.


Prove that if $d$ is a common divisor of $a$ & $b$, then $d=\gcd(a,b)$ if and only if $\gcd(\frac{a}{d},\frac{b}{d})=1$   I know I already posted this question, but I want to know if my proof is valid:  So for my preliminary definition work I have:  $\frac{a}{d}=k, a=\frac{dk b}{d}=l,b=ld $  so then I wrote a linear combination of the $\gcd(a,b)$,  $$ax+by=d$$ and substituted:  $$dk(x)+dl(y)=d              d(kx+ly)=d              kx+ly=1              a/d(x)+b/d(y)=1$$  Is this proof correct? If not, where did I go wrong? Thanks!

Prove that if $d$ is a common divisor of two integers $a$ and $b$, then $d=\gcd(a,b)$ if and only if $\gcd(a/d,b/d)=1$.   So far I used what was given so I have $a=dk$, $b=ld$ and $\gcd(a,b)=d$ can be written as a linear combination of $ax+by=d$ but I am unsure how to use the information.   Where do I go from here? Can someone show me how to solve this using Bezout's Identity if possible?


How to prove this statement use the most simple way:  if $f$ is continuous on $[a,b]$, then $f$ is bounded on $[a,b]$

So here is my proof, which after looking up others seems to be too simple, or not rigourous enough, though I don't see why (hence I am asking!):  We take the contrapositive, and so prove that if $f$ is unbounded on $[a,b]$, then it is not continuous on this interval.  By hypothesis, $\exists c \in [a,b] : \displaystyle\lim_{x\to c} f(x) = \infty \implies f(c)$ is undefined. (or, $ \displaystyle\lim_{x\to c} f(x) \not= f(c)$ so we get discontinuity instantly)  Since $f(c)$ doesn't exist, the definition of continuity cannot be applied so $f$ must be discontinuous at at least $x=c$, as required.


I am new to Ubuntu and I want to download and install it on my personal laptop, so could you please help me for the same. Is it free or have to pay for it? I am a web developer.

I would like to see a full how-to guide on how to install Ubuntu.


I am writing an expression in code where I am solving the angle where I know the Opposite $(2.5)$ and Hypotenuse $(5.0)$ and want to solve the angle. However, I do not have the inverse sin available. How do I solve the following equation without using the inverse sin function? $$ x = \sin^{-1}(0.5) $$ I know that $x$ will be $30^\circ$, I don't know how to solve the equation without the inverse sin function.

An example question is: In radian measure, what is $\arcsin \left(\frac{1}{2}\right)$? Select one: a. $0$ b. $\frac{\pi}{6}$ c. $\frac{\pi}{4}$ d. $\frac{\pi}{3}$ e. $\frac{\pi}{2}$  So, in the exam, I will be given only four function calculator. And is it possible to calculate this kind of trigo function? Or, do I have to memorise common values of trigo functions? Is there any tricks and tips for this problem?


So I am trying to install and update some packages and for that I need some space (around 1 GB) in my root because every-time I open my Ubuntu I get a message that there is not enough space in your root. My gparted looks like this:  I am having a hard time understanding how can I increase my root space as I have much unallocated space in my drives. I have already tried resizing2fs my /dev/sda5 but nothing worked. I got an output saying that "The filesystem is already 9301770 blocks long. Nothing to do". What else can I do or how should I proceed ?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


Right now, when I look at the feed in the Stack Exchange app, the featured blog  seems to be part of . It's not just the logo; when I tap on it, it takes me to the Italian SE questions. This behaviour occurs both on iOS and Android, so it's probably an API issue.

Today in the feed on the Android Stack Exchange app there is a Stack Overflow blog post. This post had the site icon next to it for  rather than the proper site logo (Meta).        Stack Exchange Android App Version 1.0.73 and 1.0.74 Android 5.1 on a Moto X (2013) running stock firmware.  Same behavior on a Nexus 7 (flo) running Android 6.0 (stock).  This issue also happens on the iOS app.    The most recent featured SO blog post (as of 17 Nov) is showing up with the "edX" site logo.  The logo is seemingly randomly incorrect.


I’ve been working with Illustrator CC 2014 on a floor map for a ~400 rooms building. To allow visitors to find rooms more quickly, I wanted to generate a series of images with highlighted rooms. The rooms are mostly rectangles with their object name corresponding with their room number.  In short, I need some sort of procedure that does the following tasks:   Change colour of object Export to PNG using the object name within the file name Change colour back Go on to the next object   I have no problem with steps 1, 3 and 4 using Automating tasks, but cannot figure out how to do step 2.

Is there a way to export objects to separate files in Illustrator?    The output I want is AI or vector files, not raster images. The objects are not on separate artboards, and I am looking for a solution that does not require them to be. (Putting the objects into separate art boards would take as much time as copying and pasting them into separate documents, which is what I am trying to streamline.)   My use case: I am designing characters in a font, and each font contains upwards of a hundred characters. I need to get each character into a separate file in order to bulk import them into my font program.


I am using Ubuntu 17.04 and connect Internet from WiFi hotspot using my android mobile. It successfully connected and get ip address but Internet is not working. When I ping Google, it shows output as      ping: google.com: Name or service not known   while the connection information showing 1 to 72 MBPS speed. I also found another question with same issue but got no benefit.    internet is working if i connect it with usb cable or LAN etc.

My Panda USB wi-fi adapter works just fine on 16.10, but when I try to connect to my wi-fi router in 17.04, GNOME network manager reports "Connection failed." I did some tinkering, and noticed that my MAC address for my wifi adapter, according to GNOME, is DIFFERENT every time I make it forget my wifi settings and try to reconnect. Any leads on a possible fix or work-around?   I'm running Ubuntu GNOME 17.04, kernel 4.10.0-19-generic, GNOME 3.24.0.


I'm trying to include some awk commands in a bash script, and I've run across some unexpected behavior. Can you give me a clue as to what I'm overlooking?   For example, given a file named list:  1 2 3 4   This simple awk command does what you'd expect:  $ awk -F, '{ print $1 }' list 1 2 3 4   But if I put this command in a bash script:  #!/bin/bash echo "list:" cat $1  echo "list after awk:" echo `awk -F, '{ print $1 }' $1`  exit 0   I get this output:  $ ./script list list: 1 2 3 4 list after awk: 1 2 3 4   The awk in the bash script has mysteriously stripped away the carriage returns.  I've seen this behavior in bash on OS X as well as in zsh on BSD.  Any ideas?

I have a text file named links.txt which looks like this  link1 link2 link3   I want to loop through this file line by line and perform an operation on every line. I know I can do this using while loop but since I am learning, I thought to use a for loop. I actually used command substitution like this   a=$(cat links.txt)   Then used the loop like this  for i in $a; do ###something###;done   Also I can do something like this  for i in $(cat links.txt); do ###something###; done   Now my question is when I substituted the cat command output in a variable a, the new line characters between link1 link2 and link3 are removed and is replaced by spaces  echo $a   outputs  link1 link2 link3  and then I used the for loop. Is it always that a new line is replaced by space when we do a command substitution??  Regards


I noticed that I have accidentally casted a down-vote, and now it is locked for removal.   I noticed this by my reputation gain not being equal to a multiple of 5 and when I looked it up (I thought somebody gave me a down-vote) I found out that this down-vote must have occurred accidentally while browsing on the small touchscreen of my phone.  This happened before and in that case I made some cosmetic edit to the post and removed the vote. This does not really seem like a good option especially when the answer/question is fine.  Is there a better way to remove a locked vote?

I accidentally downvoted a , which I didn't mean that.  It must be because I used my iphone this afternoon and I didn't close my browser when I put my iphone back to my pocket.  I want to undo it but it was done more than 5 hours ago.  I feel really sorry for the person who asked the question.  How can I undo it?


What is the best practice for configuring a Domain Controller's adapter DNS settings?  We have an MPLS network with 6 DC's located in different locations.  HQ - DC1 & DC2 WH - DC3 Branch - DC4 Cloud - DC5 Colo - DC6  My thoughts were to use the DC's IP address as the primary and one of the other DC's as secondary.   Thoughts?  Thanks!

This is a  about Active Directory DNS Settings. Related:     Assuming an environment with multiple domain controllers (assume that they all run DNS as well):  in what order should the DNS servers be listed in the network adapters for each domain controller? Should 127.0.0.1 be used as the primary DNS server for each domain controller? Does it make any difference, if so what versions are affected and how?


How can I force to show citations for three or more authors as et al.   Like,    A. Mike, B. Smith, C. Oliver, "blah blah", in Proc. ABC 2001 , ...(original) A. Mike et al., "blah blah", in Proc. ABC 2001, ...  (desired)   there is an answer here:   it works with style=authoryear. But when I add style=ieee,  \usepackage[backend=biber, style=ieee, maxnames=3]{biblatex}   it does say "conflicting options (maxcitenames/mincitenames), thus does not work. I noticed in ieee.cbx file, there are some parameters set as below  \ExecuteBibliographyOptions{     maxcitenames = 3,     minnames     = 3,     sorting      = none }   According to above there should not be more than three names in references, right? But I am getting more than three names in references. I do not see any "et al." in references, regardless of proceedings or book articles.  My solution was to edit ieee.cbx and ieee.bbx file, and comment out the paremeters, that works but I was wondering if there is another solution that does not require editing the files.

In the header of my document I set the maximal author names to 2:  \usepackage[style=authoryear-icomp, maxbibnames=9, maxcitenames=2, backend=biber]{biblatex}   Now, when I cite texts with two authors, LaTeX gives me the following:     (Author_A/ Author_B 2012: 232)   When I have three authors or more, LaTeX makes it:     (Author_A/ Author_B et al. 2012: 232)   But I want LaTeX to just name the first author if there are more than two authors ... like this:     (Author_A et al. 2012: 232)   Any tips on how to achieve this ?


I got reputation as -1. When I try to check that, I am not able to find where I got -1.  Please see below screenshot.

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


i have this question :  in an example of the compact embedding, the autor gives a demonstration of : the sobolev space $W^{1,1}(\mathbb{R}^n)$ is not compactly embedded in $L^1(\mathbb{R}^n)$ and it is this one :  So let $F\in D(\mathbb{R}^n)$(=the space of smooth functions with a compact support in $\mathbb{R}^n)$ ., not identically equal to zero and $\{x_n\}$ a sequence such that lim $x_n=+\infty$ when $n\rightarrow \infty$. so $F_n(x)=F(x-x_n)$ is bounded in $W^{1,1}(\mathbb{R}^n)$ and it converge a.e. to 0.  so if it converge strongly in $L^1$ we will have :$||F_n||_{L^1}=||F||_{L^1}=0$, an this is a contradiction .  my question is : where is the contradiction and how to prove that the embedding is compact in "this case or in normed (Banach) spaces (general case)"?  thank you very much.

i have this question :  in an example of the compact embedding, the autor gives a demonstration of : the sobolev space $W^{1,1}(\mathbb{R}^n)$ is not compactly embedded in $L^1(\mathbb{R}^n)$  So let $F\in D(\mathbb{R}^n)$(=the space of smooth functions with a compact support in $\mathbb{R}^n)$ ., not identically equal to zero and $\{x_n\}$ a sequence such that lim $x_n=+\infty$ when $n\rightarrow \infty$. so $F_n(x)=F(x-x_n)$ is bounded in $W^{1,1}(\mathbb{R}^n)$ and it converge a.e. to 0.  so if it converge strongly in $L^1$ we will have :$||F_n||_{L^1}=||F||_{L^1}=0$, an this is a contradiction .  my question is : where is the contradiction and how to prove that the embedding is compact in "this case or in normed (Banach) spaces (general case)"?  thank you very much.


I change tlmgr repository  sudo tlmgr option repository http://mirror.switch.ch/ftp/mirror/tex/systems/texlive/tlnet   Then when trying to install a package, e.g.  tlmgr install logreq   I get the following error:  Unknown directive ...containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955...  /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, <$retfh> line 5579   How can I make this work?    By installing texlive from scratch as described in tug.org/texlive/quickinstall.html and (IMPORTANT) not forgetting to change the path as described in the mentioned link I access the TexLive 2016 version.   tex --version  TeX 3.14159265 (TeX Live 2016)  However, the checksum problem persists.

I haven't used tlmgr for a while but when I tried to install any package with it today, It returned following message:     (running on Debian, switching to user mode!) Unknown directive ...containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210,  line 5579.   I've tried to use fix specified on :     You have to download update-tlmgr-latest.sh from the tlpretest repository   and run it. Afterwards you will be able to work with tlmgr as usual   (announced by Norbert a few hours ago).   I've downloaded it from , but it returned another error:  Verifying archive integrity... All good. Uncompressing TeX Live Manager Updater............................................................................................................................................................................ ./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT. ./runme.sh: Please set your PATH as needed, otherwise it's hopeless.   Minimum example  Install cleanly vanilla TeXLive 2016 with tmlgr after having old TeXLive in the system successfully: there is no errors/warnings in /usr/local/texlive/2016/*.log, complete log example . Run the following but you get the same output as above when trying to update the system  root@masi:/home/masi/Downloads/t/install-tl-20161019# tlmgr update --self (running on Debian, switching to user mode!) Unknown directive ...containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, <$retfh> line 5579.


Given the following code:  <form>     <h1> My form <h1>     <input type="text" />     <?php do_action( 'woocommerce_checkout_after_customer_details' ); ?> </form>   How can I locate the "woocomerce_checkout_after_customer_details" defined?  It prints a button where I have to add functionality, maybe can I just use add_action() to add new features? in that case: how can I use remove_action() to stop rendering the old button?  Thanks in advance

I'm trying to debug a plugin which I didn't develop and I want to list all the registered actions. I've read this SO thread:    - StackOverflow   But it's specific to one hook and it's about filters, not actions.  Is there any variable like $wp_filter or something?


Please help I cant find how to move the ball along the path! any help would be huge thanks!

I want to make this sphere follow a path, but everything I try creates a giant distance from the actual path. I guess what I'm asking is how do I get the blue line extending from the path to the sphere to be basically 0 at all times?


Given IID $X_1, X_2 \sim \mathcal{N}(0,1)$, we want to determine $P(X_1 > 0 \mid X_1 + X_2 > 0)$. This is what I think is the approach for this problem: \begin{align}     P(X_1>0\mid X_1 + X_2 > 0) = P(X_1 > 0 \mid X_1 > -X_2) \\     P(X_1 \leq x \mid X_1 > (-X_2=x_2)) = \int_{-x_2}^x \frac{1}{\sqrt{2\pi}}\exp(-\frac{1}{2}x_1^2) \, dx_1 \end{align} I integrate the above to get $P(X_1 \leq x \mid  X_1 > (-X_2=x_2))$, and then I integrate $P(X_1 \leq x_1\mid X_1 > (-X_2=x_2))$ over all $x_2$: $$ P(X_1 \leq x_1\mid X_1 > X_2) = \int_{-\infty}^\infty P(X_1 \leq x_1\mid X_1 > (-X_2=x_2)) \, dx_2 $$ Is this a correct approach? I feel that there is something simpler than this.

Suppose  $X, Y$ are i.i.d and $X,Y\sim N(0,1)$. What is $P(X > 0 \mid X + Y > 0)?$   What I got so far is listed below:  $\begin{align*} P(X > 0 \mid X + Y > 0) &= \frac{P(X+Y>0\mid X>0)\cdot P(X > 0)}{P(X+Y > 0)}\\ &= P(X+Y > 0\mid X > 0)\\&=P(Y > -X\mid X>0) \\&=\int_{0}^{\infty}\int_{y=-x}^{\infty} \frac{1}{\sqrt{2\pi}}e^{-\frac{y^2}{2}}dydx\end{align*}$  However, I don't know how to calculate this integral. Is there anything that I did wrong in the process? And also is there any easier way to approach this kind of problem?


How can I rewrite the regex below so it won't return the square brackets in the results. I have to use match since it's part of other code. Can someone help?   var s = '{[{main}(other data)][{data}(other data)][{address}(other data)]}'; m = 'data' var qm = function(str) {   return s.match(new RegExp('\\[{' + str + '}\\(.*?\\)\\]', 'gi')); } console.log(qm(m)); // returns "[{data}(other data)]"  // trying to get "{data}(other data)" no square brackets

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


ALL, I have a Windows 8.1 laptop that I recently put some updates on. Unfortunately it looks like I got some stupid "Wish Application" pinned to my task bar (the icon looks like an Alladin lamp). I tied to uninstall it from the Control Panel, but it doesn't list it. Does anybody know how to get rid of it? TIA!

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I expect the output will be the string in the wordList when it matched the search before the for loop exits but it does not print out every time when the if statements met the condition.  search = "ABC"  wordList = [["ABC", "123"], ["ABC", "456"], ["DEF", "123"]]  public void biDi(String searchWord, String[][] wordList) {     int start = 0;      int end = list.size ()-1;     String search = searchWord;      int path = 0;     for (int i = 0; (i < (list.size ()/2)); i++) {         if (search == wordList[start][0]) {             System.out.println (wordList[start][1]);         }         if (search == wordList[end][0]) {             System.out.println (wordList[end][1]);         }          start++;         end--;         path++;     }      System.out.println (path);  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $(G, .)$ be a finite abelian group, $G=\{x_1, ..., x_n\}$ and let $x=x_1. \cdots. x_n$.   Show that $x^2=e$ Suppose $G$ has no element of order $2$ or that $G$ has more than one element of order $2$. Show that $x=e$. Suppose $G$ has a single element $y$ of order $2$. Show that $x=y$.   Progress: I have done part $1, 3$, and I shown that if $G$ has no element of order $2$ then $x=e$. For this part, It's easy since as $x^2=e$ and $o(x)\neq 2$ then $x=e$, but I'm stuck in the second part of part 2. Can someone help me?

Suppose $G=\{a_1,...,a_n\}$ is a finite abelian group, and let $x=a_1a_2\dotsm a_n$.   Prove that if there is more than one element of order $2$ then $x=e$.   What I've done so far: (#1 is just for illustration, There should be at least $3$ such elements)   $G$ has an even number of elements with order $>2$ (They are paired so: $(a,a^{-1})$ ). And then there are $e$ and $\{b|o(b)=2\}$. Also, if $G$ has at least one element of order 2 then $|G|$ is even (Lagrange). Thus $|\{b|o(b)=2\}|$ must be odd. If there is exactly one element $b$ of order $2$ then $x=b$. That's because $G$ is abelian, and we can write: $x=e\cdot b\cdot(a_1 a_{1}^{-1}\dotsm a_n a_{n}^{-1})=b\cdot(e\dotsm e)=b$. If there are exactly $3$ such elements $a,b,c\in G$, then, as shown above, $x=abc$ and thus $x=e$ (That's because $(abc)^2=a^2b^2c^2=e$ which means $abc\in \{a,b,c,e\}$. If $abc=a$ then $b=c^{-1}=c$ which is false, same goes for $abc=b,abc=c$.)   I haven't managed to find a reason why the claim must hold for $5, 7, ...$ (i.e. All other odd integers). Does anyone have an idea?  Thanks in advance. Please excuse my English.  edit: Not a canonical answer but a simple one (if such even exists).


How does Ubuntu distribution nomenclature is done? For example why does 14.04 Ubuntu is given the name "Trusty Thar"? Likewise what are the motivation for such nomenclatures for all the released versions? Also who is the authority to decide a name?

What criteria is used to select an Ubuntu release codename, and who is ultimately responsible for the decision?


Let $V$ be a $\Bbb R$-vector space, with $J$ being an endomorphism $J: V \to V$ with $J^2=-id$ (identity).  I already had to show that $V$ became a $\Bbb C$-vector space with the scalar multiplication: $$(a+bi)\cdot v=av+bJ(v).$$  Now $V$ is set to be finite-dimensional. The problem is the following:  Show that $\operatorname{dim}_{\Bbb R} V$ is even.  Any ideas on how to show this? (I've seen the post  which has the same problem but I don't really get the solution that is offered there, they write $J$ as a matrix, so far so good, but from there I don't get it.)

Let $V$ be a real n dimensional vector space & let $T:V→V$ be a linear transformation satisfying $T^2(v)=-v$ for all $v\in V$. Then how can we show that $n$ is even?  I am completely stuck on it. Can anybody help me please?


I am trying to write a simple recursive program that prints the squares of numbers within certain bounds:  (defun show-squares (i end)     (if (> i end)         'done         (format t "~A   ~A~%" i (* i i))         (show-squares (+ i 1) end)))    I get the error: *** - SYSTEM::READ-EVAL-PRINT: variable SHOW-SQUARES has no value What goes wrong here?

Is this just a bit of historical cruft left over from the 1950s or is there some reason syntactically why multi-expression bodies of (if) forms require (progn)? Why can't you wrap the multiple expressions in a set of parentheses like with (let):     (if some-cond      ((exp1) (exp2) (exp3)) ; multi exp "then"      (exp4)) ; single exp "else"   It appears it would be trivial to write a macro to test each body to see first if it is a list and then if it is, if its first element is also a list (and thus not a function invocation) and then to wrap its subcomponents inside a (progn) accordingly.


Please, can you explain why isn't the $$\int\frac{du}{\sqrt{a^2-u^2}} = \int\frac{du}{a\sqrt{1-(u/a)^2}}=\frac1a\sin^{-1}\bigg(\frac{u}{a}\bigg)+c$$ if $a > 0$ is a positive constant.

Today in calc we learned these three identities: $$\int{\frac{du}{\sqrt{a^2-u^2}}} =  \arcsin{\frac{u}{a}}+C$$ $$\int{\frac{du}{a^2+u^2}} =  \frac{1}{a}\arctan{\frac{u}{a}}+C$$ $$\int{\frac{du}{u\sqrt{u^2-a^2}}} =  \frac{1}{a}\arctan{\frac{|u|}{a}}+C$$  These identities are too complex for me to derive myself. I found it curious that the arcsine one was the only one without $\frac{1}{a}$. What's the reason for this?


I know that if $F$ is a field of $p^n$ elements contained in an algebraic closure $\overline{\mathbb{Z}/p\mathbb{Z}}$ of $\mathbb{Z}/\mathbb{Z}p$, then the elements of $F$ are the zeros $x^{p^n}-x$, and also that the degree of $F$ over $\mathbb{Z}/p\mathbb{Z}$ is $n$, but I don't know where to go from here. Since the elements of $F$ are the zeros of $x^{p^n}-x$ in $\mathbb{Z}/p\mathbb{Z}[x]$, that means $x^{p^n}-x$ is the product of polynomials whose zeros are the elements of $F$, but how do I know that the degree divides $n$?

In the finite field of $q$ elements, the product of all monic irreducible polynomials with degree dividing $n$ is known to be $X^{q^n}-X$. Why is this?  I understand that $q^n=\sum_{d\mid n}dm_d(q)$, where $m_d(q)$ is the number of irreducible monic polynomials with degree $d$, and that each element of the field satisfies $X^{q}-X$.  How does the conclusion follow from this? I tried substituting the exponent to $X^{\sum_{d\mid n}dm_d(q)}-X$ but this doesn't seem to do much good.


Edit - My question doesn't refer to bank loans or credit card accounts.  Nor does it refer to getting things out of other people's generosity. It is specifically about money and the putative duplicate doesn't address that. If there is no specific word for someone who never pays back his debts, then the answer here should be "there is no specific word for that".   I'm looking for a slang word or idiom for a person who borrows small amounts from friends or relatives (say US$ 50-200) and never pays them back. Usually this kind of person has low-income or is jobless. He is irresponsible, he knows he won't be able to pay his debts but doesn't care. (Perhaps because he knows nobody will be taking him to court because of US$20 or 50.)     "I wouldn't lend him one cent. Everybody knows he's a ........."

What would you call someone who isn't afraid to ask for money or any kind of favor or who misinterprets someone's generosity for a consistent resource for what they need?


I am a vegan and love to bake cakes. But every cake recipe requires egg which I don't want to use. So can anybody tell me what should I use in replacement of eggs without affecting the results?

I spent about 2 1/2 years as a lacto-ovo vegetarian but, I gave up eggs in October. The problem is that I really like cake. Unfortunately, the cake recipes that I've found that don't use eggs produce very dense cakes. Is there a way around this?


In Guardians of the Galaxy      Peter Quill is able to hold on to an infinity stone for quite a long time because of his celestial father   My question comes from the fact that in the second movie      He loses all his celestial power with his father's death   Would he still be able to hold on to an infinity stone?

Spoilers for the end of the second film      Towards the end of the fight against Ego, we see that the bomb Groot set off blows up Ego's core. Shortly thereafter, it cuts to a scene where Quill is shown apparently losing his powers.   Given that the movie builds up this finale so much, I'm left wondering:      Did Quill lose his powers or merely the means to access them after Ego's apparent death?   Answers from the film or comics are very much welcome.


How can I proof that $$\sum_{n=1}^{\infty} \sqrt[n]{3}-1$$ diverges? Which criterium should I use? I have tried integral criterium, but it was difficult to calculate. Maybe comparison test would be great, bu I have no idea with which serie should I compare.

Does $\sum_{n=1}^{\infty} \sqrt[n]{3} - 1$ converge or diverge?   Hints please  I have that $0 \le \sqrt[n]{3}  - 1 \le 1$  Does this help?


As you can see, it shows 2 events and +10 reputation. But there are 3 events below.

I have six upvotes for the one question with no intervening history. They have been summarised into two groups - one with 4 events and one with 2 events. However, when you expand either, both show all 6 events. Minor I know, just letting you know.


I have a  laptop with Win10(Barebones).  Downloaded Ubuntu and copied to a flash drive.  I cannot get it to install.

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


When should the front sprocket and back cassette be replaced.I have a 2014 Trek 520 Touring bike with 6500 miles and am planning a cross country touring trip in August.

How do you tell when it's time to replace a cassette? Are there any specific wear patterns on the teeth to watch for or symptoms specific to a worn-out cassette?


EDIT     The issue as exposed here is   solved (about files modes of the .ssh folder.      But an other issue persists so I create a new question : >    I can no longer connect with ssh-rsa key for a specific user, but it still work for other users.  The git user defined as follow :  # cat /etc/passwd | grep git git:x:1002:1002:,,,:/var/git:/bin/bash   So you noticed that this is the git user thus its home is /var/git, it's not in /home.  Now, ssh always prompt me for password :  $ ssh git@srv git@srv's password:   I checked logs :  # tail -n 1 /var/log/auth.log [...] Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys   So authorized_keys as some ownership or modes missconfiguration.  I don't understand because here is the conf for this file :  # ls -l /var/git/.ssh/ | grep auth -rw-rw-r-- 1 git git 394 mai   22 17:39 authorized_keys   And here is (in case...) the parent .ssh dir:  # ls -al /var/git/ | grep ssh drwxrwxr-x  2 git  git  4096 mai   22 17:39 .ssh   And the $HOME directory :  # ls -l /var/ | grep git drwxr-xr-x  7 git  git    4096 mai   27 10:49 git   So owners are always git, like owner groups. And files are readable so where could be the trick ?

I'm working from the URL I found here:    My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 bit. I have followed the directions. I still get a password prompt on ssh.  I'm not sure what to do next.


I've posted , and then I've got a answer that I considered as the answer to my question. This answer was upvoted by four people. And then my question was considered as a duplicate of . The new question has an answer with one upvote.  So my oldest question was considered as a duplicate of a newest question on what base?

I have seen this many times, a question is being asked because a previous, duplicate question was asked and answered a few years ago and has no longer relevant answers.  The  is to edit the old question, or add new answers to it, but it is not always happening.  I was wondering, should I still mark it as duplicate and vote to close it? Or just leave it as is?


Hello I have table like  scheme.table ( a int, b string, c, date )   I want to select all b, values in one line like  b1, b2, b3, b4.  How can I do it avoiding making procedure?

I am looking for a way to concatenate the strings of a field within a group by query. So for example, I have a table:  ID   COMPANY_ID   EMPLOYEE 1    1            Anna 2    1            Bill 3    2            Carol 4    2            Dave   and I wanted to group by company_id to get something like:  COMPANY_ID   EMPLOYEE 1            Anna, Bill 2            Carol, Dave   There is a built-in function in mySQL to do this


I have installed Ubuntu Bionic Beaver on my Lenovo Yoga 510 Laptop.   I need Skype, but my webcam does not work. It seems not to be recognized. Cheese does not work either: "No Device Found"  My lsusb result is this:  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0cf3:e360 Atheros Communications, Inc.  Bus 001 Device 002: ID 3938:1031   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   dmesg | grep cam shows nothing, as does dmesg | grep video.  What can I do?

Yesterday I updated my Thinkpad T530 from Ubuntu 13.10 to 14.04 (both x64). Since then the integrated webcam is not working anymore. I tried to use it with Skype and Google Hangouts, but it says that no video device is found. I found some solutions but they did not work.  First thing I did was to check if the integrated webcam is activated in bios settings. Then I found this "" but I don't have any /dev/video* device.   Can anybody tell me what to do? Thanks.


I set the background of my PDF reader to be light green in order to describe my question. I want to insert an image into the PDF using LaTeX and hope the inserted image become part of the PDF file. Just like this figure:  However, I used the  package and inserted one image (EPS figure) into the PDF. The result looks like this:  How can I insert an image into a PDF file in LaTeX like the first figure? This is not transparency. It is a SVG problem.

I am trying to embed an image with a transparent background in my LaTeX poster. However a quick google search has taught me that it is not possible to do so. However I intend to know any clever workarounds as I believe LaTeX is frequently used for making scientific posters, which require inclusion of transparent images.  Exact problem. I am trying to include a logo (with transparent background) in a textbox with gradient fill. Any method to accomplish this without getting a white (or any other) background is appreciated.  My current work around is the brute force technique of copying the gradient pattern in the background of the image.


In my Activity A, I have 8 toggle buttons that the background of them is set within the layout xml to an xml file to change the pictures on change state. After choosing 4 of them, the image strings are saved to a SQLite database. In my Activity B, I am trying to set the background of another set of toggle buttons from the choices made from Activity A.  Each of the 8 original toggle buttons has 4 images associated with them.  So i have 32 change state xmls but when I try to set the background during if statement, they do not show.  The original image strings are saved to a sqlite database in (A) and then retrieved in (B).  I know the database retrieval works, its just setting the toggle button background based on the value from the database.  JAVA  if(imgData1 == "img1.png")     {         tbTest1.setBackgroundResource(R.drawable.test1);         tbTest2.setBackgroundResource(R.drawable.test2);         tbTest3.setBackgroundResource(R.drawable.test3);         tbTest4.setBackgroundResource(R.drawable.test4);     }     else if(imgData1 == "img2.png")     {         tbTest1.setBackgroundResource(R.drawable.test5);         tbTest2.setBackgroundResource(R.drawable.test6);         tbTest3.setBackgroundResource(R.drawable.test7);         tbTest4.setBackgroundResource(R.drawable.test8);     }     else if(imgData1 == "img3.png")     {         tbTest1.setBackgroundResource(R.drawable.test9);         tbTest2.setBackgroundResource(R.drawable.test10);         tbTest3.setBackgroundResource(R.drawable.test11);         tbTest4.setBackgroundResource(R.drawable.test12);     }     else if(imgData1 == "img4.png")     {         tbTest1.setBackgroundResource(R.drawable.test13);         tbTest2.setBackgroundResource(R.drawable.test14);         tbTest3.setBackgroundResource(R.drawable.test15);         tbTest4.setBackgroundResource(R.drawable.test16);     }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I want to compare this field value with another field value  How can I do that?  Thank you very much!

I have a product content type that has 2 price fields.  I want to create a view that shows all products where price-A is less than price-B.  I was hoping I could just add a filter and select price-A then choose operate less than and set the value as price-B, however you can't do that.  I have looked into using a views hook, mainly hook_views_query_alter but haven't had any luck.  I've also tried using the Views PHP module and been unable to get it to work.  Does anyone know the best way to achieve this?


In vim I am now using wrap on. I need to indicate wrapped line by prepending character. I know it is possible - I was using it years ago, but my old .vimrc is lost. Or any other useful indication of wrapped line would be helpful.

I'm getting back in touch with my inner (g)vim due to an unscheduled MacBook mother(board) of a meltdown (my emergency backup Linux box won't run TextMate). All told I'm happy with vim's efficiency and power, but I'm mortified at how hard it is to get the kind of word wrap that even stupid HTML textareas achieve with no apparent effort.  Consider the text  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nullam.  By default, with an 80-character width vim displays this as  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nu llam.  This wrapping doesn't care about whitespace, so sometimes it just slices words into pieces (nullam in this case). Of course, you can turn on word wrap, and get this:  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nullam.  The problem is that vim inserts a newline at the linebreak, which I most emphatically do not want. In other words, I want the text to display exactly as vim displays it with word wrap turned on, but without inserting a newline. (This way it can be pasted into HTML textareas and email programs, among other places.)  Web searches have yielded nothing of use, despite diligent effort; I hope StackOverflow can succeed where my Google-fu has failed.


Hello I am a python beginner and I am actually writing  a programm which calculates the area of an circle by asking the user for an radius. My Problem: The ouput is like this '47529.15525615998' So my question is how to shorten the output so that it would be for example '47529.155'?   Here is my code:  import math  def compute_area(r):  area=(r*r)*math.pi  print(float(area),("Centimeter"))  r=(float(input("Radius: ")))   compute_area(r)

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


So here's how the desktop looked after fresh install: . After restarting the system, however, it turned to this: . I tried tweaking the themes and icons using GNOME tweak tool but to no avail. How do I fix this?

This is how my desktop looks after the update, the top bar turning grey and the addition of the bottom bar happened after the update.    From my searching of screenshots this does not appear to be how it is supposed to be. Is there any way to fix it?


I am trying to write a query to return the users, some info about them and which security group they're assigned to. Some users have more than one group however, so I instead of returning 2 rows, I would like to combine the security group names.   SELECT  ur.loginname         ,ur.firstname         ,ur.lastname         ,sg.securitygroupname         ,jt.description  FROM    users ur         ,usersecuritygroup us         ,securitygroup sg        ,jobtitle jt  WHERE  ur.doctorfacilityid = us.doctorfacilityid         AND us.securitygroupid = sg.securitygroupid         AND ur.jobtitle = jt.jtid    So instead of getting 2 rows like this:  jdoe     john     doe     group1     xyz jdoe     john     doe     group2     xyz   I would like to return 1 row like this:  jdoe     john     doe     group1, group2   xyz   The security group would be the only column that would have more than one row to meet the criteria (if that matters).

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


What I'm doing is basically using 3 files which I describe below    //File1.php $('button.button1').click(function(e){         $.ajax({                  type: "POST",                  url: "file2.php",                   timeout: 180000                 })                 .done(function(data) {                  //load data returned in modal                 })                 .fail(function(msg) {                   //do something                 }); });   Then, my next file load modal code html (header,body and footer) with a button called 'OK'. (The body modal contains a form with the button 'OK')  //file2.php      $('button.ok').click(function(e){               $.ajax({                         type: "POST",                         url: "File3.php",                         contentType:false,                         processData:false,                         cache:false,                         data: formData,                         timeout: 180000                     })                     .done(function(data) {     //do something                     }                      })                     .fail(function(msg) {                         //do something                     });                 });       In my file3.php do bd operations and save the values   So, when executing the program from the first script, the page is automatically returned to the index and the query is not executed in the bd, what is this? That I should return in each file to be executed correctly and why the values are sent through the get method (they are seen in the url) when it is specified that the method is post? HELP  to conclude, i have one button that do an ajax call , load a modal and inside the modal another ajax call is done

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


My work involves trying stuff online and offline, on a Mac. Sometimes a try can be less than 10 seconds of needed offline time. Most of the time I still need to be online.  Instead of going to Network -> Ethernet/Wifi and disable everything manually, I'd like to know if there is a way to disable it all at once, and re-enable it just as easily.  I've also simply removed the ethernet cable for a while but that's just ridiculously annoying. Since I'm working on a Mac Mini, that also forces me to have it's back facing me for easier reach, and all cables lying just under my screen/behind my keyboard. While that is an "okay" option, I'd like to get rid of it.  I'm thinking maybe there is an App that could be on the top bar and I'd just tap On/Off.  I already use the NetworkConditioner which is amazing for simulating lag, but the only "offline" I can get here is just "100% packet loss" which isn't really offline, it's just infinite lag.  If you have an easy on/off switch (ideally on the top bar so I don't have to Alt-Tab between apps) or something similar to airplane mode, I'm all ears !

Mac OS X doesn't recognize rfkill from its terminal, and I am looking for an alternative command that has similar functionality (toggling "Airplane Mode").  NOTE: I don't wish to open an .app to toggle. I'd like to execute the command from command line or within script in Bash (or equivalents).    By "Airplane Mode", I meant to borrow the term from iOS support page . I would like to disable all incoming/outgoing network communications from my system.


On some sites, such as Music Fans (beta), it shows me a number at the top:    But when I click on it, there are no reviews available.  This also happens on Movies & TV.    Does this mean reviews exist that I don't have enough rep for?  Or is it a glitch?

So far, I thought that the number shown in the orange box in the top-bar was the number of items available for review. However, when I acually visit /review, the numbers don't match:    Note that top-bar shows 15 items (?) but the queues only add up to 8.  Since I can't think of a reason for this being by design (which, as experience shows, is not a good indicator for "this is not an SE feature) I'm tentatively labelling this a (UI) bug.


In a similar way to Google's , I want to search on my PC. I have a similar photo with me, but not the exact one. How to do this?

I'm looking for a desktop search engine for finding images on my local hard drive with high visual similarity. I've only found paid for ones so far. It could be Linux or windows one, either would be helpful.  A Google desktop plug-in would be nice!


Contour integration is a very powerful tool.  But what if a function has no poles or zero's ?  For instance :  How to find $\int_{-\infty}^\infty \exp(-x^2) \, dx$ with contour integration?

How to prove  $$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$


The question says it all, basically. Is there any way to write in Aurebesh characters, the writing system for Galaxy Basic (Star Wars fictional language)? Does such font exist, or is there a specific package for this?

One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like to prepare for use, and I definitely want to make sure I have vector versions of these fonts (i.e not type 3/bitmapped versions). Is there a relatively painless way to do this ?


I have a question regaring the titlingpage environment of the memoir class. I use \thanks multiple times on the title page, but the footnote symbol marks are all the same (the last symbol, which in my case is the last of the asterisk-dagger-ddagger ... set).  What is causing this and how can I fix it?  You van view both my entire code and compile the document here: [EDIT: removed url, as it doesn't exist anymore]  I tried making a MWE, but couldn't reproduce it. The code is not very extensive yet, so I believe it is an incompatibility of memoir with a package or package setting.

I have discovered a behavior that I cannot explain. When compiling the MWE  \listfiles \documentclass{article} %\usepackage{fontspec} \title{foo\thanks{bar}} \author{baz\thanks{qux}} \setlength{\textheight}{2.25in} % just for the example  \begin{document} \maketitle \end{document}   with XeLaTeX or LuaLaTeX, the result is as expected:    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)  ***********   However, uncommenting \usepackage{fontspec} and compiling with either XeLaTeX or LuaLaTeX results in    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option) fontspec.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX    expl3.sty    2015/02/13 v5524 L3 programming layer (loader)  expl3-code.tex    2015/02/13 v5524 L3 programming layer      etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB) l3unicode-data.def    2015/02/12 v5523 L3 Unicode data l3xdvipdfmx.def       xparse.sty    2014/11/25 v5471 L3 Experimental document command parser fontspec-patches.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe X fontspec-xetex.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX  fontenc.sty   eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings   eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth er characters in Unicode lower plane  eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live    xetex.def    2014/07/25 v4.03 LaTeX color/graphics driver for XeTeX (RRM/JK)  fontspec.cfg    t3cmr.fd    2001/12/31 TIPA font definitions  ***********   As you can see, only one distinct footnote mark is used when fontspec is loaded. This happens even if I load a system font using \setmainfont and/or friends. I use vanilla TeX Live 2014 (updated today) on Windows 7.  Is there a reason for this behavior or a problem with my setup? Or is this a bug that should be reported?


When I have large lists or new ones that could become large lists I would like to create an automated way to move items into folders to help with performance on the root level of the list.  For a custom list that has folders enabled I am aware that as an administrator I can use the content and structure part of SharePoint to move items into folders manually. I think it would be great to automate this in some way using workflows.  I was planning on moving items into folders by Year / Month biased on the created date of the items. Other things I could add to my lists would be a status to indicate when the archive move would be appropriate for the items to move into the folders such as a "completed" status of some sort.  My archive folder tree would be as follows   Archive 2016   January-16 February-16 March-16    etc...  Looking forward to your ideas around automatic folder archiving, This would be done on a SharePoint 2013 on prem site where 2010/2013 workflows could be used.

How to move item to folder automatically when it has been added or edited in a library? The folder is in the same library. The correct folder will be defined by metadata. This should happen automatically when the item has been added or edited. The listitem Id should be preserved. No server-side code should be deployed.  Can this be done using workflows (SP2010/SP2013)? If not then what would be the other options?


I'm using Shotwell to re-group my large photo collection; version 0.20.2. There are a number of Canon .crw files. If I use the 'camera' developer, every time I rum shotwell it creates hundreds of *embedded.jpg files. Or embedded_1.jpg.. _2.jpg..... If I use the 'Shotwell' developer the same happens but with shotwell_n.jpg files.  How can I prevent this misbehaviour & is it a known bug (not found here or Googling)?

I've noticed that Shotwell has imported many images twice (e.g. from my camera SD card). Apparently the  once a photo is imported, tagged and then re-imported.  I have "write meta data tags" enabled in the settings. If I import a photo test-images.jpg and add tags to it the photo will not be picked up by the duplicate detection upon another import of the same file. The second time the file is imported it will be named test-images-1.jpg and placed in the library folder as per the active rules (not necessarily into the same folder).  test-images.jpg and test-images-1.jpg will have the same image data but due to the added tag/metadata the files are not the same anymore and won't be picked up by searching for duplicates (e.g. md5 hash).  My usage scenario that caused multiple duplicate is as follows:   I take pictures with my phone I import the photos from my phone, add tags but leave the images on the phone as I want to keep them for sharing etc. I add further tags to the imported photos After some weeks I repeat the import step from the phone and old photos that I have already imported will be imported again (with '-1.jpg' or '-2.jpg' added)   How to clean up the duplicates? Using a file name based search would be possible but I can't exclude that I have not imported a file ending with -1 to which was not imported as a duplicate.  How can I clean up my photo library? I tried to use the search function in Shotwell but with more than 1000 photos there must be a better, more reliable, less error prone an simpler way.  I'm not to worried about tags getting lost, typically the second import (the duplicate) has no tags applied.


In iOS, I only need to be asked once whether I want to allow a website to share my location data. Is it possible to permanently do this in OS X version of Safari as well?

The method mentioned in this question no longer works:   Is there some way to achieve the same effective in High Sierra?


I have a Dell Vostro 3500 laptop with Intel I3 processor with 4GB RAM. Can you please tell if I will be able to run Ubuntu 14.04.2 on my laptop? It has Intel Core i3 CPU M380 @ 2.53 Ghz. Installed memory is 4GB(2.93GB usable). System type is 32-bit operating system. Please inform if my laptop will be able to run Ubuntu smoothly. I had earlier used Ubuntu 10.04 on my desktop pc running with Intel Atom processor and 1GB of RAM. Waiting for your reply. Thanks

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Why does the Ubuntu installer touch my internal HDD when I don't use any of its partitions and when I tell the installer to install GRUB on the external HDD?   I have tried this approach over the years, and this always happens. The latest attempt is with Ubuntu 18.04.  I know this sounds like a million-time-asked dup, but I am stuck. The fact that people suggest the VirtualBox work around, or they suggest to disable the internal HDD (which I can't short of unplugging it) indicates to me that this is surprisingly hard to fix.   I have a Thinkpad laptop. BIOS settings allow legacy boot devices. The internal HDD is dual boot Windows and Mint, and it is an UEFI boot method.  I want to install ubuntu on an external SSD drive and have this drive one of the boot options from BIOS. External HDD is a MBR partition style, so traditional boot method is required. The BIOS is set to be ok with this.  If I install onto the external drive via VirtualBox, it works. This means that what I want to do is possible. My internal HDD is completely isolated when I do this.   However, if I do the installation a more traditional way, it always screws up my internal HDD booting. That is, I have use a usb stick to make a live installer and boot from it, the normal way to install Ubuntu, things go wrong.  During the installation process, I can choose where to install grub. I choose the external drive. I would expect this not to touch the internal drive. But after installation, I can no longer boot from the internal drive. grub seems to be missing. I can boot from the external drive.   (I fix it by connecting the external drive and booting into the HDD installation, and using boot repair.)  Why is my internal HDD being changed by the install process when I have followed all advice to leave it untouched?

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


According to Wikipedia,  were introduced in 1932, at which time they were placed 10 yards in from the sidelines.  They have since migrated inward to 15 yards in 1935 and 20 yards in 1945, ending up in 1972 at their current position of 23 yards 1 foot 9 inches in from the sidelines. The 1972 movement is explained in , but what were the reasons for the 1935 and 1945 movements?

Typically as you move up to more competitive levels of a sport, elements are adjusted to account for the increase of skill/speed/power of better players.   NBA 3-point line is farther from hoop than NCAA 3-point line MLB uses wooden bats while NCAA uses metal bats NFL requires 2 feet for completion, NCAA requires 1 foot for completion   Why are NFL hash marks closer together than NCAA hash marks?   If the difference relates to field goals, I don't understand why the NFL would narrow the marks and make it easier for kickers. If the difference relates to location of ball spots, is there a reason the NFL chooses to keep lateral ball spots closer to the center of the field?


Inside the nucleus of an atom is the Coulomb's law valid? I mean that between proton, neutron and other elementary particles, i.e., meson etc. What will be the limit or validity of charges between them. I mean can Coulomb's law can be applied here?

What is the smallest and biggest distance in which  is valid?  Please provide a reference to a scientific journal or book. Just saying that this law is valid from this range to that range is not enough. Which experiments did result to these ranges?


When I use OMZ, I have a very, very nice feature I like to call context-sensitive history. It's easier to show than describe. If I run:  % abc % cba   And then I type % a[up], without CS history I get% cba. With it I get % abc. What in OMZ causes this?  EDIT: I want this to give me results based on the beginning of the command. With the substring search suggested by @Thomas Dickey, it matches if what I typed was anywhere in the command.  EDIT 2:  @jasonwryan's answer in  is almost it; the only thing is that the cursor should be at the end of the new line rather than staying at its current location.

In zsh, I know that I can search history with Ctrl+r. However, oftentimes I start to type a command directly at the prompt, but then realize I should be searching history. When I hit Ctrl+r, it brings up a blank history search prompt like this:    Notice how there is text at my prompt but not at the history search prompt. How do I start the history search with the text already in the prompt, so it looks like this:


I used   \usepackage{lineno} \linenumbers   For numbering my lines. I know it has problem with double dollars and for that case I replaced double dollars with \[\] and it worked but now I used \begin{gather*}\end{gather*} to fit an equation but it caused line-numbering doesn't work for a few lines before this equation. Id there any solution for this?

The line numbers for the text of a paragraph with an equation defined by \begin{align} command do not show as expected. How to fix this?    The LaTeX codes are attached here.   \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc}    % Use the UTF-8 encoding \usepackage{amsmath}           % For the use of math \usepackage{amsfonts} \usepackage{amssymb}           % For the use of AMS symbols \usepackage{indentfirst}       % For indentation \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}  \usepackage{lineno} \linenumbers  \usepackage{titlesec} \titleformat*{\section}{\large\bfseries} \titleformat*{\subsection}{\normalsize\bfseries} \titleformat*{\subsubsection}{\normalsize}   \renewcommand{\baselinestretch}{1.5}    \usepackage{authblk}           % Use author package \renewcommand*{\Authfont}{\large} \renewcommand*{\Affilfont}{\normalsize\normalfont}  \makeatletter \g@addto@macro\normalsize{%   \setlength\abovedisplayskip{0pt}   \setlength\belowdisplayskip{0pt}   \setlength\abovedisplayshortskip{0pt}   \setlength\belowdisplayshortskip{0pt} } \makeatother  \title{\textbf{Globally cumstomize the spacing between the text and equation}}    \date{}  \begin{document}  \maketitle  \section{Air filter} The air filter is simulated by the Control Valve module (AFT in Fig. 2(a)). The pressure drop through the air filter ($ \Delta P_{af} $) is given by the following equation [11,16]. \begin{align} \Delta P = \Delta P_{d} \left( \frac{m}{m_{d}}\right)^{1.84}  \left( \frac{T}{T_{d}}\right)  \left( \frac{P}{P_{d}}\right)^{-1}  \end{align} where, $ \Delta P_{af} $ is the pressure drop, $ m $ is the mass flow rate, $ T $ is the temperature, and $ P $ is the pressure, and subscript $ d $ denotes the design condition.  \newpage \section{Air compressor (AC)} The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. \begin{align} & \text{Relative pressure ratio:} && PR_{r} = \frac{PR-1}{PR_{d}-1}\\ & \text{Relative isentropic efficiency:} && \eta_{r} = \frac{\eta}{\eta_{d}} \\ & \text{Relative corrected mass flow:} && m_{cor,r} = \frac{\left(\frac{m_{in}}{P_{in}}\sqrt{T_{in}}\right)}{\left(\frac{m_{in,d}}{P_{in,d}}\sqrt{T_{in,d}}\right)} \\ & \text{Relative corrected speed:} && N_{cor,r} = \frac{\left(\frac{N}{\sqrt{T_{in}}}\right)}{\left(\frac{N_{d}}{\sqrt{T_{in,d}}}\right)} \end{align} where, $ \eta $ is the efficiency, $ N $ is the shaft speed, and $ PR = P_{in}/P_{out} $. Subscript $ cor $ denotes the corrected value, $ r $ denotes the relative value, $ in $ denotes the inlet, and $ out $ denotes the outlet.  \end{document}


I have two tables: Person, PersonType      Person                         PersonType                          PersonTypeMapping personId   name                 typeId     typeName                tId   personId   typeId   101         p1                  1        Student                 123       101       1   102         p2                  2        Employee                124       102       1   103         p3                                                   125       102       2                                                                    126       103       1                                                                    127       103       2   Now I need to fetch the person names and their corresponding typeNames.   This is my query   SELECT Person.personId, Person.name,PersonType.typeName  from Person      INNER JOIN PersonTypeMapping ON PersonTypeMapping.personId = Person.personId      INNER JOIN PersonType ON PersonType.typeId = PersonTypeMapping.typeId;    My Output:     personId       name        typeName    101             p1          Student    102             p2          Student    102             p2          Employee    103             p3          Student    103             p3          Employee   But I need output like this:     personId       name        typeName    101             p1          Student    102             p2          Student, Employee    103             p3          Student, Employee   What can be done for this?

Basically the question is how to get from this:   foo_id   foo_name 1        A 1        B 2        C   to this:   foo_id   foo_name 1        A B 2        C


I get this error when I try and install it:  $ sudo apt-get install ubuntustudio-audio Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  ubuntustudio-audio : Depends: libavdevice-extra-53 but it is not going to be installed                       Depends: libavfilter-extra-3 but it is not going to be installed                       Depends: libavformat-extra-54 but it is not going to be installed                       Depends: libavutil-extra-52 but it is not going to be installed                       Depends: libswscale-extra-2 but it is not going to be installed                       Recommends: ardour3 but it is not going to be installed                       Recommends: audacity but it is not going to be installed                       Recommends: idjc but it is not going to be installed                       Recommends: pd-aubio but it is not going to be installed                       Recommends: pd-readanysf but it is not going to be installed E: Unable to correct problems, you have held broken packages.   At the top of this page -  it says =OUTDATED=. I'm not sure if that's referring to the whole page (and why this install isn't working) or if it's just referring to the first thing on there (ubuntustudio-desktop).

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Is there a positive integer $n$ such that $\sum_{k=0}^{n}\sqrt{n+k}$ is also an integer?

Can a sum of a finite number of square roots of integers be an integer? If yes can a sum of two square roots of integers be an integer?  The square roots need to be irrational.


I referred to the urban dictionary and it says meta means something used to characterize something that is characteristically self-referential.  But I'm still confused. Cause I don't see any difference between English Language & Usage text and English Language & Usage meta

I asked about  a few days ago, quoting Maureen Dowd’s review of the movie, “J. Edgar” in New York Times.   I received six answers. But I still don’t get a clear idea of what “It’s meta” means because I don't understand (or have a total inability to comprehend) the concept of “self-referential.”   An answerer : “Meta in this fairly recent, casual context is supposed to mean self-referential, or recursive in some way. This is the sense in which my teenagers would use this term.”  So let me resubmit the question on “meta” in simpler format. When your teenager boy says “It’s (or this is) meta,” what does it mean? In what situation and of what sort of object they use this phrase?  I’m sorry for many users who lent me kind answers to my previous question. But I would like to get it fully on the meaning and usage of “it’s meta,” as a colloquial expression, not the meaning of meta as a prefix.


I am a sockpuppet account of . I am going to help him test the XMPP chat integration system he's building.  Am I allowed to exist? I promise to behave, and never leave Meta or Meta's chat. If so, may I please have enough rep to chat?  EDIT BY JOSH: I have drawn a freehand circle for my sock:

A high-reputation, highly-active user has already been dinged once for a sockpuppet, and I just dinged him again. He probably has another sockpuppet as well.   What are the guidelines for handling users who game the system in this fashion? Specifically,   How can I be sure I'm looking at a sockpuppet? When should sockpuppets be considered a problem? How should moderators handle problematic sockpuppets once they've been identified? I was suspended for sockpuppetting and feel this is unfair


[new info below post] -- I'm having trouble resizing an APFS partition on the 240Gb SSD in my Mac. I want to make all space available to the system partition "Macintosh SSD".  Output of diskutil list:  /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *240.1 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_Boot Boot OS X               134.2 MB   disk0s2    3:                 Apple_APFS Container disk1         81.9 GB    disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +81.9 GB    disk1                                  Physical Store disk0s3    1:                APFS Volume Macintosh SSD           54.8 GB    disk1s1    2:                APFS Volume Preboot                 44.7 MB    disk1s2    3:                APFS Volume Recovery                509.5 MB   disk1s3    4:                APFS Volume VM                      20.5 KB    disk1s4    5:                APFS Volume Nieuw                   655.4 KB   disk1s5   I tried resizing the container, but this results in an error (see below). I believe due to the fact that the system partition is located at the end of the drive.  Mac-mini:~ admin$ diskutil apfs resizeContainer disk1 239g Started APFS operation Aligning grow delta to 157.073.416.192 bytes and targeting a new physical store size of 238.999.998.464 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 81.926.582.272 bytes Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space   Can anyone help me how to add the free space to the "Macintosh SSD" partition?  Thanks, Koen  Update 1: Thanks for the quick response! Though, I got replies that it may be a duplicate with . I think it is not, because:  - I have no disk0s3 "storage" volume that may be blocking the space; and - Running the command in step 3 in that post results in this error:  sh-3.2# diskutil apfs resizeContainer disk0s3 0 Started APFS operation Error: -69743: The new size must be different than the existing size   Thanks again for any help, it is much appreciated.  Update 2: Output of diskutil info disk0s3 | grep -e "Partition Offset" -e "Disk Size" as requested by David Anderson:     Partition Offset:          158130806784 Bytes (308849232 512-Byte-Device-Blocks)    Disk Size:                 81.9 GB (81926582272 Bytes) (exactly 160012856 512-Byte-Units)

/dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         125.7 GB   disk0s2    3:                  Apple_HFS Storage                 100.0 GB   disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +125.7 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            122.9 GB   disk1s1    2:                APFS Volume Preboot                 19.9 MB    disk1s2    3:                APFS Volume Recovery                506.6 MB   disk1s3    4:                APFS Volume VM                      2.1 GB     disk1s4   I checked the different similar questions and tried the suggested solutions but in vain. Disk utility doesn't help at all.  I tried running this command from the terminal as suggested.  sudo diskutil apfs resizeContainer disk0s2 0   Error: -69771: The target disk is too small for this operation  I have more than 25 G of free space:


Recently, I came across , which is a English question but the code is obviously not.  I've searched around and found the  on foreign languages and wondered if this applies?  To be fair, the code is legal (as in it compiles and runs) and there isn't exactly a rule mandating language of code, but I find incomprehensible identifiers very hard to read.

I know it's of course a dispute whether or not to support foreign languages on StackOverflow. However, my question is a bit different.  is in English, but has code with comments and identifiers in a foreign language. This limits the ability for people to leave answers.  Despite the fact that the example question I linked is poor regardless of language barrier, how should we [the users] handle such questions? Should we...   Accept them into StackOverflow and try to translate them? Cast close votes because we cannot understand to answer? Ask the OP to translate it to English for us? Wait for someone else to come translate it for us?   The same also applies when the code its self includes identifiers in a foreign language. In case this original question I linked gets deleted, here's the source from that question:  procedure TForm1.Button1Click(Sender: TObject); var   X: Integer; begin   for x := 1 to 5 do     if Sender = Botones[x] then //Valida el Boton que provoco el evento     begin       Codigo := x;   //Captura la posicion donde se eonctro el objeto que generó el evento       // ShowMessage(IntToStr(x));       Exit; //sale del bucle     end; end;


I entered the US under the Visa Waiver Program (VWP) which allows me to stay in US for 90 days. I moved on to Canada after 30 days and I am now doing an extended stay in the Canada for 80 days. I would like to re-enter the US after my trip of 80 days in Canada. As I understand the VWP will have expired by then.  Since it is an extended trip to Canada (and obviously not crossing the border simply trying to extend my VWP) can I re-enter the US and restart a new VWP?  If not, do I actually have to leave Canada (for a non-neighboring country of the US) within the 90 days of my first entry under the VWP as I am still in the system and Canada doesn't count as a permanent leave from the US?  Thanks in advance for your help

I'm on a New Zealand passport.  From most US Embassy webpages:     The Visa Waiver Program (VWP) enables nationals of certain countries,   including Australia, New Zealand, and the U.K., to travel to the   United States for tourism or business for stays of 90 days or less   without obtaining a visa, if certain requirements are met. Under the   VWP, time spent in Canada, Mexico, and adjacent islands counts towards   the maximum of 90 days stay allowed under the program.   I'll be there on a 1-year working holiday visa starting when I arrive in Vancouver. I'm spending 3 days in Hawaii en route to Vancouver. This seems to imply that 90 days after landing in Hawaii, my time will be up and I won't be able to get back into the US, as my living in Canada will not reset the clock. What if after this time I want to say, pop across the border to Seattle? How can I restart the 90 days, without having to resort to say, flying to Japan and back just to reset it?


I'm a bit new to desktop programming, and I currently prefer to work with scripting languages (open source and all). When I polish a tool off I then want to release it for installation via apt-get but I have not found any guides or information whatsoever on how to release software on apt-get.  I understand that distributing the files to install can be done via a personal launchpad ppa, with the overhead of manually adding my ppa via apt-add-repository (Though I have not experienced this step, I just presume my understand is sound); Though I'm more interested in the next steps. Do I need to fill an application to get onto apt-get's default lists or what?  Appreciate your help <3

As a developer of free software, I want to get my application into Ubuntu.  Should I provide a source tarball and ask for packaging? Or should I create a package myself? Should I target Ubuntu directly, or should I try to get into Debian and then into Ubuntu automatically?


How can I prove that this matrix is a manifold?  $\begin{pmatrix} \cos(a) & -\sin(a) \\ \sin(a) & \cos(a) \end{pmatrix}$  Thanks!

I have just been exposed to rotation matrices, and it is showing extremely strong connection with group theory and differential geometry which I am both totally inept at.  Can someone in simple term explain what it means for a group to have a manifold structure and how this affects the mathematics of rotation group?


Especially when "nostalgia" is presented in terms of "a longing for the past" and "evoking fond memories." For example, a word which would mean "a fondness for the present or future."   A contextual sentence might be:     He never seemed to dwell on past times—good or bad—and had countdown calendars around his house for nearly every holiday imaginable. When making conversation with him, you could always sense an excited anticipation in his words. He claimed that it was an intense feeling of ___ which drove him to look forward so enthusiastically.

Context: You made the decision not to see a person any more. The relationship was good, you were both happy with one another but the one main stumbling block (for you) in the relationship was never dealt with. It remained, a permanent fixture, that forced you to make that sad, and final decision.   Is there a word, an idiom, or a famous line that expresses the sadness for something that might have been; e.g. a rich and fulfilling relationship. It's not nostalgia, because that expresses a wistfulness for the past.   Instead, you are wistful for the future.


I have the following problem: I am writing a couple of algorithms using algorithm2e. I have a bunch of longer if statements and longer if conditions. The lines are broken, but the new lines are not indented properly:  \begin{document}    \begin{algorithm}[H]     \SetAlgoLined     \KwInput{Parameters...}      \KwOutput{$\emptyset$}      \If{the lines through $x_{1}, x_{2}$ and $y_{1}, y_{2}$ intersect in a single point $z$         which lies on the circle $C$        }     {       Do something \;     }     \caption{Algoritm test...}   \end{algorithm}  \end{document}   I could force line breaks at certain positions using \, but that does not fix the indentation problems either. I saw the solution provided here:   But I don't understand what is happening in that code and I was not able to reproduce the result with my problem. How can I indent the code correctly (is it possible to use something like an mbox?)?

I am trying to (partially) reproduce the algorithm displayed in Figure 4 from   My problem is with the multi-line conditions present in the "IFs". I want them to be indented, but \Indp does not seem to take effect if a new line \\ is not present in the same line.  This is what I tried:  \begin{algorithm}[htb]     \SetAlgoNoLine%     \SetNoFillComment     \SetKwIF{If}{ElseIf}{Else}{if}{:}{elif}{else:}{}%      \If{(SYNs from both hosts and \\             \Indp SYNs in earliest NFs of both hosts and \\             \Indp hosts' earliest packets differ)}{         Host with earliest NF is originator      }     \If{(SYN only from one host and \\         \Indp SYN is in connection's earliest NF)}{     Host is originator     }     \If{one host uses port 20 (ftp-data)}{     Host is originator     }     \If{only one host uses a well-known port}{     Host is responder     }     \If{start of hosts' first packets differ}{     Host with earliest NF is originator     }     Arbitrarily choose originator     \caption{Pseudo code for determining connection server side}     \label{algo:serverside2} \end{algorithm}   For instance, the line "SYNs in earliest NFs of both hosts and" is indented correctly, but "hosts' earliest packets differ" is not.


I have a request to display all related opportunity records for a particular product2 using a visualforce page on thé product2 object

I'm trying to display opportunities associated with an OpportunityLineItem on a Visualforce page on the OpportunityLineItem object   I have a problem in the select I do not know how to retrieve the OpportunityLineItem name in this request I have hard code the OpportunityLineItem name  public List<OpportunityLineItem> getOpp() {     return [SELECT TotalPrice, Opportunity.Name, Opportunity.StageName,                     Opportunity.Account.Name, Opportunity.id, Product2.Name              FROM OpportunityLineItem               WHERE Product2.Name='GenWatt Diesel 10kW'     ]; }


I have sentences in which sometimes the numbers are written as words, e.g.: He takes classes of yoga two times per week.  I need to replace numbers written as words by numbers: He takes classes of yoga 2 times per week.  In case of He takes classes of yoga twice per week., it should be left as it is. I found a library called word2number that converts words to numbers (). But how can I update a sentence to get He takes classes of yoga 2 times per week.? from word2number import w2n  w2n.word_to_num('He takes classes of yoga two times per week.') # output: 2

I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything?


If I have a folder with the following file names:  cluster_sizes_0.txt cluster_sizes_1.txt cluster_size_2.txt   etc.  Each file contains a single column of values.  Is there a command within linux such that I could combine all files into cluster_all.txt?  The first column in this new file would correspond to cluster_sizes_0.txt, the second column would be cluster_sizes_1.txt etc.  There could be as many as 200 cluster txt files, but it changes for each folder. I am looking for a way to combine these files, instead of copying each one by one.  Also, I need to make sure they are pasted into the file in order. This may have some issues with the numbering system, since I only include single digits if below 10.  For instance:  paste cluster_size.* > cluster_all.txt doesn't paste them in order due to the numbering. How can I fix the numbering without manually changing all of them?

I want to print two files in two columns -- first file on the left side and second on the right side. paste doesn't do the job, because it can only insert a character as delimiter, so if first file lines have different length output will be twisted: $ cat file1 looooooooong line line $ cat file2 hello world $ paste file1 file2 looooooooong line   hello line    world  If it was a command to add trailing spaces like fmt --add-spaces --width 50 the problem would be solved: $ paste <(fmt --add-spaces --width 50 file1) file2 looooooooong line                                 hello line                                              world  But I don't know a simple way to do this. So how to merge and print several files horizontally without twisting? Actually, I just want to look at them simultaneously.  UPD: command to add trailing spaces does exist (for example, xargs -d '\n' printf '%-50s\n') But solution like $ paste <(add-trailing-spaces file1) file2  does not work as expected when file1 has fewer lines than file2.


I am extremely new to Ubuntu, and upgraded my OS for the first time.  It seemed to go fine until I rebooted and came face to face with this error:  TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x25 (or later)   I so far have tried using the recovery option, but I'm not sure if my GRUB is up to date because the recovery mode seems to display earlier versions of my Ubuntu boot.  Also, in other questions they have used commands and such, but I don't know how to run them when I can't even boot into my Ubuntu install.  Any help is appreciated.

I saw several bugs and error messages when I was looking by chance into the tool called "logs".  Being a newbie in Ubuntu I have no idea how to deal with these bugs, where to report them or how to fix them.  Any help to guide me here?  The bug I have (which is listed under important) reads:  [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)


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

How can I redirect the user from one page to another using jQuery or pure JavaScript?