Prove or disprove : $\det(A^k + B^k) \geq 0$

This question came from . As the OP hasn't edited his question and I really want the answer, I'm adding my thoughts.      Let $A, B$ be two real $n\times n$ matrices that commute and $\det(A + B)\ge 0$.   Prove or disprove : $\forall k\in \mathbb{N}^*$   $$\det(A^k + B^k) \geq 0$$   What I think about it I think we can consider two cases : k even and k odd. For k even, the result is pretty easy considering $$\det(A^{2k}+B^{2k})=\det(A^{k}+iB^{k}){\det(A^{k}-iB^{k})}=\det(A^{k}+iB^{k})\overline {\det(A^{k}+iB^{k})}\ge 0$$ For k odd, I thought about this equality but I don't know if it can help $$A^{2k+1}+B^{2k+1}=(A+B)\left(\sum_{i=0}^{2k} (-1)^i A^{2k-i}B^{i}\right)$$ so $$\det(A^{2k+1}+B^{2k+1})\ge 0 \iff \det\left(\sum_{i=0}^{2k} (-1)^i A^{2k-i}B^{i}\right)\ge 0$$


Motion Tracking. Why is my solve error so high?

When i track my points (Black dots on white paper) it looks pretty good yet my solve error comes out to about 12.5. Please help me out


Employment office encounters an alien masquerading as a human

I'm looking for a story where a guy who has done job interviews for years is approached by an applicant, and because of his experience talking to people (I remember he specifically mentions having done something like 250,000 interviews), he immediately is able to tell the applicant is actually an alien in human form.  He goes on to help the alien understand human emotions & teaches him how to fit in.


Talk to a customer/ talk with a customer

what's the difference between the two expressions I stated in the title?  I am guessing that "talk to a customer" is more common, because when I google them there are many more results for that. But "talk with a customer" shouldn't be "incorrect" neither.  Please let me know!


I have to prove that $\cos(x)<\frac{\sin^2(x)}{x^2}$ for $0<x<\frac\pi2$. By using the MVT I got that $\frac{\sin^2(x)}{x^2}=\cos^2(c)>\cos^2(x)$ for a $c\in[0, x]$ but this doesn't help since $\cos^2(x)<\cos(x)$ because $0<\cos x<1$. The derivative didnt help either, since the derivatives of both $\cos(x)x^2-\sin^2(x)$ and $\cos(x)-\frac{\sin^2(x)}{x^2}$ don't have roots that I can easily find/I don't see a way to prove that they don't have roots. Any help is appreciated!


URLFOR statement in outputLink to direct to object creation page

So I want to put a button on a visualforce page that when pushed it will redirect the user to a new custom object page. However, this custom object has 4 various Record Types. I can construct the URLFOR to redirect to the following page and have the correct record type prepopulated in the field   The URLFOR statement that I am using is this:  <apex:outputLink style="font-size:125%" styleClass="btn" target="_top" value="{!URLFOR($Action.Relationship_Detail__c.New, null, [p3='012o0000000I2ie'])}">   What I would like that whenever I click the link it automatically pushes that continue button so that I can get to the actual creation page.


How "slow" can I take a picture at a boxing match?

I'm to take pictures at a boxing match, probably under low lights conditions.   My plan is to set the camera on a fixed shutter speed, and the let the camera automatically set aperture and ISO. But how slow can I safely take the pictures. I hope I can bring my tripod, so it's not as much a question of camera shake, more a question of catching the action.  My equipment is a canon EOS 500D and a Canon 24-105mm f/4L IS USM lens.


I was curious whether it makes sense to talk about positive functions of a complex variable. I.e, does it make sense to talk about $f(z) > 0$, if $z$ is complex, say? As an example, what if $f(z) = \cos z + i \sin z$?


I tried $ whoami dims $ groups dims adm cdrom sudo dip plugdev sambashare lpadmin lxd $ sudo usermod -a -G audio dims $ groups dims adm cdrom sudo dip plugdev sambashare lpadmin lxd  and I am still not in the audio group. Why and how to force?


Still have mortgage on old house to be torn down- want to build new house

Here is my situation: My husband and I have a house that is over 60 years and we still owe a mortgage on it. The house is in need of lots of repairs and we feel that it would be a money pit if we tried to just make all the repairs, so we are wanting to tear this old house down and build a new house on the same land the old house sits on. I want to know if there are any banks or mortgage companies that will give us a loan to pay off the old mortgage and also finance a new one.


Do I need a transit visa in Heathrow as a Bolivian Citizen?

I'm a bolivian citizen currently living in Bolivia until November 6th at which point I will join my family in Norway. The Norwegian visa application has been approved, I hold a Schengen visa (already stamped on my passport) to enter Norway and I am supposed to stop by the authorities having jurisdiction in Norway to get the permanent visa stamped on my passport upon arrival.   I will arrive to the UK via Heathrow and will be in transit for 2 hours before I board my flight to Oslo on the same day.   I also have a 10-year tourist visa to the US. Will I need a visa to pass through the UK? If so, which one?


TV Arcs with Cablebox through both Coax and HDMI

Here is our setup  Outlet in older house that was replaced with a GFI last year. (no issues until recent)  The GFI doesn't have a ground wire running up from the basement. Just the white and black wires. (From my understanding this is an acceptable configuration)  The outlet reads 119.0v when checked with my multi-meter.  The outlet reads less than a volt when the "positive" line and the ground are checked with the multimeter. Same with the "negative" with the ground.  A (real) surge protector plugged into the outlet  A large tv plugged into the surge protector  A cox cable box plugged into the surge protector  A coax cable (run by cox) from the outside of the house, split and sent to a modem and the cable box. The coax reads 0v (no leakage at all) when a multimeter is placed on the inner coax wire and the outer shielding. I tried this on both DC and AC settings on multimetter   The problem: When either a coax cable or HDMI cable is run from the cable box to the TV, an Arc appears. This has already fried one TV. My theory: The coax cable is improperly grounded. I just need a way to prove it. The basis for this theory is the coax cable in a separate apartment tests with an AC voltage of 1.5v. The cable technicians are somehow less informed about circuitry than me. This is a hobby for me so I am lost in the sauce. Any Ideas? Update So I took the time to diagram what I have observed. This further supports my theory that the cable isn't grounded properly. I'm not 100% sure how coax is supposed to be run from a telephone pole though so I could be incorrect. Just in case there is confusion, no the neutral is not plugged into the ground. I was just demonstrating that there is only two wires going to the GFI.


In VMware ESXi 5.x, does it make a difference if I select 2 CPU cores vs. 2 CPU sockets?

Title pretty much says it all. I'm just wondering if this makes a difference in the way VMs will process things and if one method is preferable vs. another.


Where can I find a list of all the Stack Exchange sites?  I need to ask a question about cars (where my total knowledge is about zero) but I can't find a cars Stack Exchange site - tried guessing all the obvious (and pun based) names.  I assume the list of a dozen or so at the bottom of this page is only a subset? There must be a site on a topic as geeky as cars!  A list of future/beta sites would also be useful - I found a few on topics I'm interested in only after they had been up for a while.


I'd prefer to use root user as my default user instead of writing sudo command to get temporary root access. is the root user disabled by default ? how can i start using root user? what are the costs/benefits of this?  ps: I'm using Ubuntu 14.04 LTS and I'm completely new in Linux world.  Thanks,


I have 25 people who will be split in to groups of 5 people each day over 5 days. Can I rotate them so they all meet each other only once? Help! Sorry forgot to mention they all meet in 5 different locations


If "No One" uses a face from the Hall of Faces to become someone then how did he do this

In season five of Game of Thrones, when Arya becomes blind there is a very interesting detail most of us might have missed.   Let's not stretch the question:    Arya returns after assassinating Ser Meryn Trant Jaqen H'ghar "No one" comes in the scene, Waif is present as well Arya and Jaqen talks, he appears to be giving the poison to Arya but drinks it and dies. Arya cries, says he was her friend when Waif asked her something (I don't recall what) Waif removes her face, reveals she is actually Jaqen Arya removes face of Jaqen from the dead body, keeps removing it until her own face appears.   What sorcery is going on in here? How could they use a face of a person who is still alive. They remove the faces of a dead person for a reason? So that the face can be used by the Faceless-men.   Is there something I am missing or can the Faceless-men do these kinds of magic as well?


What does "leverage" mean in this sentence?

"The biggest problem is that Deutsche Bank has too much leverage," noted analysts from Berenberg bank.  Source:


How can I show hidden files/folders in Finder

How can I see the hidden files in Finder?  For instance, if I have a file named: .something  is is not listed.  Right now I have to open the terminal and type ls -la.


Installing latest Nvidia from Xorg PPA gives black screen

After several years of using dual boot (windows to play and Ubuntu to work) I decided to just use ubuntu, but I have a problem after installing nvidia-drivers 331.20 and rebooting the screen is black, I have seen many solutions for this problem, in particular I have run the following command sudo apt-get purge nvidia* then sudo reboot after which I am ready to use ubuntu.  How can I fix this problem since I really want to play but the latest drivers (331.20) are the ones that are optimized for the 700 series.


Defining shell environment variables in tcsh

Unable to create environment variables using a tcsh script.  Tried set, but works only inside the script. setenv doesn't work outside the script. export says "command not found" in the terminal I'm trying to run.  #!/usr/intel/bin/tcsh #set WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv" setenv WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv" echo $WV env $WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv"   I expect the output to be /p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv, when i echo the environment variable WV on the terminal, but i am getting the error of undefined variable.


Customizing Package.xml for updating Sandboxes with Continuous Integration

I am setting up a continuous integration for a team development process using GitHub and Ant (and eventually Jenkins) and have a problem with deploying to dev sandboxes to keep them in sync with Production:  How do you programmatically customize the Package.xml and the src/ folders to only include the metadata files that have changed in Production?  Our Production environment has over 5000 files so if I retrieve the entire metadata set from Production to the master branch, rebase the dev sandbox branch and attempt to deploy that to its dev sandbox, I hit the API limit for deploying metadata via the API. The metadata in Production changes both from packages deployed from sandboxes as well as from changes made directly in Production by Admins, so I cannot rely on combining all pushed metadata files and package.xml files.


Getting more than 1 object from session.createQuery in hibernate

I have a composite key which houses 3 keys.  Composite key =>  @Embeddable public class CompositeId implements Serializable{      @Column(unique = true)     private int deliveryId;     @MapsId     @OneToOne     @JoinColumn(name = "invoiceId",unique = true)     private Invoice invoiceId;     @MapsId     @ManyToOne     @JoinColumn(name = "customerId",nullable = false)     private Customer customerId; }   Delivery Class=>  @Entity public class Delivery {     @EmbeddedId     private CompositeId compositeId; }   That's how the composite ID is used. deliveryId is for delivery entity itself and other keys are for shared primary keys.  When I write a session.createQuery  Query query = session.createQuery("from Delivery where compositeId.deliveryId=?"); query.setParameter(0,1);   and when it runs, it throws an exception:     javax.persistence.PersistenceException: org.hibernate.HibernateException: More than one row with the given identifier was found: 1, for class: example.test.Delivery   So I though of overriding equals and hashcode methods  @Override     public boolean equals(Object obj) {         if (this == obj) {             return true;         }         if (obj == null) {             return false;         }         if (obj instanceof Invoice) {             Invoice invoice = (Invoice) obj;             if (invoice.getInvoiceId() == this.invoiceId.getInvoiceId()) {                 return true;             }             if (invoice.getDeliveryId() == this.invoiceId.getDeliveryId()) {                 return true;             }         }         if (obj instanceof Customer) {             Customer customer = (Customer) obj;             if (customer.getCustomerId() == this.customerId.getCustomerId()) {                 return true;             }             if (customer.getDeliveryId() == this.customerId.getDeliveryId()) {                 return true;             }         }         return false;     }   but still I get the same error. And I thought It will fix it. But it didn't. I found the reason by following SQL and the reason is this gets 2 Customer and Item objects because of bidirectional relations. So how can I solve it?  Thanks :)


$A$ and $B$ are square complex matrices of the same size and $\text{rank}(AB − BA) = 1.$ Show that $(AB − BA)^2= 0.$  I am trying to  understand the solution given here:     Let $C = AB − BA.$ Since $\text{rank} C = 1$, at most one eigenvalue of $C$ is different from $0.$ Also $\text{tr} C = 0$, so all the eigevalues are zero. In the Jordan canonical form there can only be one $2 × 2$ cage and thus $C^2 = 0.$   I do not understand the argument in the bold part. I know that every matrix with complex entries can be put into the Jordan Canonical form but why is there only one $2\times 2$ cage? Please explain. I am still learning this concept.


Cluster office workstations when not in use?

We've got around ~15 relatively decent Windows machines in the office and I'm wondering if it's possible to set up a system that clusters them as a single virtual machine when they're not in use during office hours.  We run a lot of CPU intensive numerical simulations and rather than buying standalone simulation machines, it'd be nice to leverage the unused office workstations at night/over the weekend (ideally as a single VM with many CPUs).  If this is possible, where would one start looking to go about this? Are there any common issues/considerations I should be aware of?  Thanks.


NullPointerException when declaring RecyclerView

I am trying to declare a RecyclerView in an activity in my project. When I switch to this activity, the project crashes. I am getting a NullPointerException when I try to instantiate my RecyclerView, see error below:  E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.marykate.marykatefordefyp, PID: 13490     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.marykate.marykatefordefyp/com.example.marykate.marykatefordefyp.ViewFavourites}: java.lang.NullPointerException         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2313)         at android.app.ActivityThread.access$1100(ActivityThread.java:141)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:136)         at android.app.ActivityThread.main(ActivityThread.java:5336)         at java.lang.reflect.Method.invokeNative(Native Method)         at java.lang.reflect.Method.invoke(Method.java:515)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:681)         at dalvik.system.NativeStart.main(Native Method)      Caused by: java.lang.NullPointerException         at com.example.marykate.marykatefordefyp.ViewFavourites.onCreate(ViewFavourites.java:54)         at android.app.Activity.performCreate(Activity.java:5302)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2228   I have looked at similar questions on this site but none have the answer I am looking for. I am not referencing the wrong xml file and I am calling the correct RecyclerView. See my code below:   RecyclerView eventsListview; List<Favourite> favourites = new ArrayList<>();     FaveAdapter adapter = new FaveAdapter(this, R.layout.eventlist_layout, favourites);  @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_view_favourites);          eventsListview.findViewById(R.id.eventsListview1); //the line causing an error   Does anyone know what might be causing this?


How did Harry's watch work in Hogwarts as magic is supposed to render Muggle inventions like electricity and batteries incapable of normal functioning?


Firefox window always starting maximized

Intermittently Firefox reverts to opening its windows maximized.  I expect it to remember last size and revert to that.  Ubuntu 18.04, latest patches, Firefox as supplied with Ubuntu, default GNOME desktop.  When I was 17.04/Unity desktop (if that matters) it did re-open at same (non-maximized) size as last time I closed it.  Now it sometimes does that, and that continues to work for a while, but sometimes reverts to always opening maximized, which I don't want.  As of today, for example, no matter what I do in the way of closing it, it re-opens maximized.  I tried created a new temporary profile, but that didn't seem to change behaviour.  I have done nothing "special" that I am aware of since it last worked, and I cannot figure how to get desired behaviour back.   Does anyone else suffer this intermittent behaviour? Does anyone know what I can do to sort this out? If it is saving this setting somewhere in the profile (~/.mozilla/firefox/xyz.default/), which exact file is it in?


Prove that $p$ divides $F_{p-1}+F_{p+1}-1$

Given the Fibonacci sequence $(F_n)$, defined by $F_0=0,F_1=1, F_{n+2}=F_{n+1}+F_n$, and $p$ an odd prime number, how to prove that $p$ divides $F_{p-1}+F_{p+1}-1$?   Is induction a good idea here?


I've win xp and win 8 installed at the same time (dual-boot) and now I'm thinking about removing windows xp and just keep windows 8 for the usage,  The problem is that I'm unsure how to proceed on with the process or even using what terms should I google for a tutorial of such nature..  Any help would be greatly appreciated :)


Is there a limit to the number of answers per time period?

The site reasonably has a limit to the number of questions per time period, e.g. .  Is there a comparable limit to the number of answers per time period? If not, why not?  Is there a theory that writing good answers is easier/harder than writing good questions? For instance, if the theory is that it is twice as hard to write good questions as good answers, the limit for answers might be 12 answers with a 24-hour period.


java.lang.NullPointerException using page object model in selenium webdirver

I am facing an issue in POM selenium webdriver. This is my code for one class.  package Pages;  import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement;  public class KnowledgeBase { private static WebDriver driver = null;  public void opening_correlation_explorer() {     driver.findElement(By.xpath("//*[@id='warren-nav']/div[2]/ul/li[3]/a")).click();     driver.findElement(By.xpath("//*[@id='warren-nav']/div[2]/ul/li[3]/ul/li[1]/a")).click();  }   This is my code for another class:  package Pages;  import java.util.concurrent.TimeUnit;  import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions;  public class LoginPage {     private static WebDriver driver = null;      public void login()     {         System.setProperty("webdriver.chrome.driver", "chromedriver.exe");          ChromeOptions options = new ChromeOptions();         options.addArguments("--start-maximized");         driver = new ChromeDriver(options);         driver.get("https://www.website.com");          driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);          WebElement loginButton = driver.findElement(By.xpath("/html/body/nav/div/a[7]"));         loginButton.click();          WebElement Email = driver.findElement(By.xpath("//*[@id='loginform']/div[2]/div[1]/div[1]/input[1]"));         Email.sendKeys("abc@gmail.com");          WebElement Password = driver.findElement(By.xpath("//*[@id='loginform']/div[2]/div[1]/div[1]/input[2]"));         Password.sendKeys("123456");          WebElement signin_button = driver.findElement(By.xpath("//*[@id='login']"));         signin_button.click();     }  }   And I am running a test case where user logs in (from class LoginPage) and then redirects to a new page (from class KnowledgeBase). Test case class is as follows:  package TestCases;  import Pages.KnowledgeBase; import Pages.LoginPage;  public class correlation_explorer {      public static void main(String[] args) {         // TODO Auto-generated method stub         LoginPage user_login = new LoginPage();         KnowledgeBase correlation = new KnowledgeBase();          user_login.login();         correlation.opening_correlation_explorer();      }  }   In this test case class, I made 2 objects of both classes from which I had to call methods, but when I run this test, only LoginPage class test is run. After that it gives me the following exception.  Exception in thread "main" java.lang.NullPointerException     at Pages.KnowledgeBase.opening_correlation_explorer(KnowledgeBase.java:20)     at TestCases.correlation_explorer.main(correlation_explorer.java:18)   Any help will be highly appreciated.


How can I solve this integral using the Residue theorem?

$$ \int_{-\infty}^\infty \frac{\sin(x)}{x^2 + 4x + 5}dx$$  What I now is you can use residue theorem, and evaluate this integral  $$ \oint \frac{e^{iz}}{z^2 + 4z + 5}dz$$ and through calculating the residues and using the residue theorem I get that the answer for the above integral is $$\pi e^{-1-2i}$$  However after this I am completely lost.  Any guidance will be much appreciated. I would like to know why I can evaluate the integral as an exponential integral as well.


Could we travel faster than the speed of light in a medium, but slower than the speed of light in vacuum?

It is well accepted that nothing with mass can travel at the speed of light in vacuum, $c$. Now let's say that a light wave is traveling through a medium that slows the wave's speed significantly (less than $c$). Since we are able to accelerate objects to over 99% the speed of light (via LHC), could we potentially create a situation in which we could view a stationary light wave as Einstein first wondered during his childhood?


How to allow file xfer for users to/from a system, but not ssh, without changing their shell

Clunky title, but wanted to be clear that it's not the same as previous variations on this question. Here are the parameters:   HPC cluster where users auth via LDAP They may use interactive logins to certain nodes We want them to be able to sftp, or scp, or something secure, to/from the fileserver where their $home lives ...but they should not have ssh access to that server.   Most solutions I've seen to the variations of this question involve changing the users' shell to something restrictive. They have no local accounts, so changing their baseline shell in LDAP is not an option, as they have normal shell logins to the interactive nodes.  At the same time, the target server we want them to transfer from does allow shell logins from specific sysadmin accounts, so I can't use the option to force sftp or suchlike at the system level.  What does leave? Anything? Thanks!


Continuity of 'derivative of a function'

I just learn one theorem which says If "$f^{'}$ exists and is monotonic on an open interval (a,b),then $f^{'}$ is continuous on (a,b)."I got the proof but now I am looking for one example in which if I relaxe the hypothesis of monotonic-ness then resulting $f^{'}$ is not continuous.I am thinking but unable to get such example. Thanks.


Will i lose my facebook acount if I force- stop it?

My facebook account is causing my mobile phone to run slow and it keeps restarting. Is it safe to force stop facebook?


Couldn't load plugin 'processing' on starting QGIS3 on a mac

I'm getting an error message when I start QGIS3. I've tried all sorts but don't know what else to do?   Couldn't load plugin 'processing'   ImportError: cannot import name 'ogr'  Traceback (most recent call last):   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 312, in loadPlugin     __import__(packageName)   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 674, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 28, in      from processing.tools.dataobjects import *          # NOQA   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 674, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/dataobjects.py", line 51, in      from processing.algs.gdal.GdalUtils import GdalUtils   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 674, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/gdal/GdalUtils.py", line 38, in      from osgeo import ogr ImportError: cannot import name 'ogr'   Python version: 3.6.5 (default, Apr 25 2018, 14:22:56) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]  QGIS version: 3.2.1-Bonn Bonn, exported   Python Path: /Applications/QGIS3.app/Contents/MacOS/../Resources/python /Users/Lauh/Library/Application Support/QGIS/QGIS3/profiles/default/python /Users/Lauh/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins /Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins /Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages /Users/Lauh/Library/Application Support/QGIS/QGIS3/profiles/default/python


Debug logs not working for salesforce sites with webservice class

How to set the debug logs for the Force.com Site data in new winter release. Because initially it was working few days back but not working now.  I am getting the data on the site from the external source but the logs are not getting generated.  Please help.


sketching simple arrows with different direction

I want to sketch this figure.. if you guide me to draw one of this arrows with direction i would be grateful..


How is pressure reduced on the upper part of an aircrafts wing?

I have heard part of the explanation and that is that air on the top part of the aircrafts wing wants to move in a straight line, but the air is pulled down the slope or camber, but that's as far as I got. So why would pulling air downwards cause this pressure difference?


Given $X_i$ takes a Poisson distribution with parameter $\lambda$, what it the distribution of a sum of $n$ of these independent $X_i$?

My thoughts are that $X$ itself would follow a Poisson distribution?


What is the minimum web storage when creating a 500 user email accounts?

I have a client that needs a website and an email server. Web hosting provider nowadays offers a package of domain registration, web hosting and email hosting.  Now, my client needs to create at least 500 email user accounts. It is a construction company which means the users will be sending/receiving graphical images using their emails which was created with the domain.  Now my question is, what is the minimum web storage of 500 email accounts? Is 20gb web storage will satisfy the 500 users?  Note that the email content is more on images.


Given $x,y\in\mathbb{Q}$ such that $x<y$, $\exists r\in\mathbb{Q} : x<r^2<y$

Given two postive rational numbers $x$ and $y$ such that $x<y$, how do you prove that there exists a rational number $r$ such that $x<r^2<y$. I am aware that since  $\mathbb{Q}$ is dense in $\mathbb{R}$, and $x$ & $y$ are positive, there exists a rational number $r$ such that $\sqrt{x}<r<\sqrt{y}$. But I would like a proof which gives such a rational number, while just staying within the context of the rational number system.


I am new to Linux and using Terminal. If I open an application within terminal, I noticed that it renders my terminal session to be unusable and I can't enter any more commands.The Terminal session is focused on the task of running the application only. Is there a way to bypass this or do I just have to wait until I end my session with the process.


Best practice in versioning / backing up work?

When I work on a paper I end up with folders paperXYZ, paperXYZ_R1, paperXYZ_R2, etc. Same thing happens with my code, project material, etc. This creates clattering and confusion. In addition, I need to backup things very often, to make sure nothing gets lost. Finally, once a paper / project is done, I need to archive it somewhere with easy access and searchable.  For a long time I was using the old fashion copy and rename the folder and every week backup everything to an external hard drive. Then, I moved to keeping everything on Dropbox, this lived shortly because I ran out of space. Now, I am slowly migrating my code to git repositories (bitbucket.org) and I still copy and rename the folders for my papers.  My questions are:   How do you keep the versions of your work, mainly concerning publications? But also other projects and code. Where do you backup your final versions (the editable material, not the final pdf)?   Points like easiness of use, safety of material, easiness to search, etc. are welcome.  I know this is a subjective question (i.e. I know I'm pushing my luck), but I would like to see what people actually use and maybe get some ideas on what is considered best practice.


What is a simple way to create a binary relation symbol on top of another?

What is a simple way to have \ll on top of \gg with equal size and vertically center aligned and have them work as a binary relation symbol like \lessgtr? The commands \underset and \overset cannot be used because they do not treat the two symbols equally, and they do not vertically center.


Undefined control sequence caused by citations when using hyperref

I am relatively new to LaTeX and most of my answers have been solved with some quick googling, but this specific problem has left me scratching my head with its specificity.   I am writing a paper and trying to include some hyperlinks, so I imported hyperref which caused many of the citations I used to create the following three errors:    ! Undefined control sequence.\hyper@@link ->\let \Hy@reserved@a\relax@ifnextchar [{\hyper@link@ }{\hyp... ...ies them out \cite{Griff_1997, Natura2000} ! Argument of @@cite has an extra }.\par ...ies them out \cite{Griff_1997, Natura2000} ! Paragraph ended before @@cite was complete.\par ...ies them out \cite{Griff_1997, Natura2000}   My preamble is defined as:  \documentclass[titlepage]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \usepackage{graphicx}  \usepackage{titlepic} \usepackage{apacite} \usepackage{setspace} \usepackage{textcomp} \usepackage{gensymb} %to wrap the urls in the references \usepackage[hyphens]{url} %\usepackage{multicol} \usepackage{listings} \usepackage{hyperref}   \font\myfont=cmr12 at 28pt  \font\myfontini=cmr12 at 20pt \font\myfontinini=cmr12 at 18pt  \geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm}   With an example of the first created error being   \begin{document}  Mediterranean temporary ponds (MTPs) are bodies of water under 10 hectares which  exist across southern Europe as ephemeral habitat and home to many creatures  which have evolved to the annual cycle which dries them out \cite{Griff_1997,  Natura2000}.  \bibliographystyle{apacite} \bibliography{testref}  \end{document}   and my bibtex for those two entries being   @report{Natura2000, author = {Ernesto Ruiz}, title = {Management of {N}atura 2000 habitats $*$ {M}editerranean temporary ponds 3170}, institution = {European Commission}, year = {2008}, OPTlanguage = {EN}, url = {https://ec.europa.eu/environment/nature/natura2000/management/habitats/pdf/3170_Mediterranean_temporary_ponds.pdf}, }  @article{Griff_1997, author = {Griffiths, R. A.}, title = {Temporary ponds as amphibian habitats}, journal = {Aquatic Conservation: Marine and Freshwater Ecosystems}, volume = {7}, number = {2}, pages = {119-126}, doi = {10.1002/(SICI)1099-0755(199706)7:2<119::AID-AQC223>3.0.CO;2-4}, url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/\%28SICI\%291099-0755\%28199706\%297\%3A2\%3C119\%3A\%3AAID-AQC223\%3E3.0.CO\%3B2-4}, year = {1997} }   Perhaps it is just something small that I am not noticing, but I would appreciate any help in this matter. Thank you!


In the outside world ...  Let us imagine that we have enough meat to make two stews. Is it best to split meat and cook one today and one tomorrow or cook both today and reheat tomorrow?  Either way, there is no fridge.


Python printing with and without newline

How can I print all of the output on the same line? Something like ",,,key, value". The below creates a newline for every preceding ','.  for i in range(0, depth):     print(',') print("{}, {}".format(key, value))


Are $|X|$ and $\operatorname{sgn}(X)$ independent?

Let $X$ be a real valued random variable.  Let $\operatorname{sgn}(x)$ be $1$ when $x>0$, $-1$ when $x<0$ and $0$ when $x=0$.  Why  are $|X|$ and $\operatorname{sgn}(X)$ independent, when the density function of $X$ is symmetric with respect to $0$?  Are $|X|$ and $\operatorname{sgn}(X)$ independent, when the density function of $X$ is not necessarily symmetric with respect to $0$?  Thanks!


Is there a broadly-accepted term for the stylized scene separators in novels, like ⁂?

Often in novels (and other written works, though I'm personally most familiar with them from novels), within a chapter you'll find a little glyph that marks a transition to a different scene.    Usually it is centered, and has at least a couple of blank lines both preceding and following it, thus:                                                                                ⁂  or:                                                                                ❧❧❧  I had thought there was an official name or at least broadly-accepted term for these marks, but  claims:     Space between paragraphs in a section break is sometimes accompanied by an asterism (either proper ⁂ or manual * * *), a horizontal rule, fleurons, or by other ornamental symbols.      An ornamental symbol used as section break does not have a generally accepted name. Such a typographic device can be specifically referred to as dinkus, space break symbol, paragraph separator, paragraph divider, horizontal divider, thought break, or as an instance of filigree or flourish.   Is that true?    Please note: I am asking for the name of the general typographic convention, not the specific glyphs. So the symbol names  (⁂), or dinkus (***) are inadequate.


Converting an HEX to unsigned INT16 in python

I've been struggling for a while doing that and can not find the right way to do it. I have a HEX   8a:01   which is the unsigned INT16   394   How can I do that in python 3.X ?  Thanks in advance


Repeated training examples in Gradient Descent

I am new to machine learning and trying to understand stochastic gradient descent.  I understand in stochastic gradient descent, in each epoch, randomly an example is picked and given to the model. So is the case for min-batching; randomly picking b number of training examples in each iteration.  Based on this definition, if randomization is not perfectly uniform in the range of training set size, depending on the number of iterations till convergence, some samples might be visited multiple times and some might not be visited at all (again relative to number of iterations) which might end up with a model biased towards the luckier examples. Or am I wrong to assume that? My question is, in SGD, is it important that batch randomization is uniform (assuring uniform probability of example being picked) or having a normal randomization algorithm which does not guarantee no-repetition will converge to an optimum model as well?


Why are there posts with votes cast before their creation date?

I was playing around with the Data Explorer and  that several posts have received votes before they were created:   have received up-votes, down-votes, and/or favorites before their creation date. About a third of these were just within a week before its creation, but most were several months before with the most extreme having three favorite counts dated 1328 days before its creation date.   exhibit being favorited before their creation date.   have been favorited before their creation date.   For all the sites I have tried running this query, I find posts like these. Curiously, only on Stack Overflow, a lot of posts have been up-voted and down-voted "before time" besides being favorited. Why do votes cast before the creation date of the post exist? Is it because of migration? If then, shouldn't the creation date be migrated properly as the vote cast dates are? Or is this a bug?


I have been taught to use the if I had form in conditional clauses referring to the past:     If the president had asked me, I would have told him the same thing.   As far as I can tell though, the would have construct is sometimes used in conditional clauses as well, so it wouldn't be incorrect to say:     If the president would have asked me, I would have told him the same thing.   What is the difference between the two and the proper use of the latter?


Unable to change band rendering style of rasters in QGIS 2.10.1

I am new to QGIS.   I have multiple DEM raster files (.tif) added to my map. However, I am unable to alter any of the style options under the "Band Rendering" section.  I have attempted to make changes and then save it as a new style, just clicking okay, just clicking apply, etc. Yet, every time, the original style choices are still there when I reopen the raster's properties. I am able to make changes to all other style options.  I'm particularly interesting in changing the color gradient from "Black to white" to "White to black".


This is a question back when I was in the third year of my (junior) middle school. However I still do not know an elegant answer to it. The question is composed of a single line.     Measure the body surface area of a person, listing necessary steps in the procedure and briefly explain how it works.   Wikipedia does have the page  and it provides a formula for the estimation. However I don't see how that formula would fit into a question designed for middle school students using only textbook knowledge.  So I would know what the expected answer may be to the original question. Any help will be appreciated. I believe the measurement does not need to be very accurate.    This is a closely related question:   The statement of that question is basically the same as this one, but the requirement is different. In the referred question, it is required the measurement be safe only. Some of the methods mentioned there (e.g. using a 3D imaging device) are clearly out of the scope of this question. In the highest voted answer there, honey is used to coat the person being measured. I think that method should work but just like my attempted answer of wrapping the person in latex, this renders the person being measured uncomfortable for quite a while, which is the part I find not elegant enough. I expect there is some simple and smart ways that will render the person measured no more uncomfortable than measuring the height or the weight, and only uses the middle school textbook knowledge.  I believe somewhere in the book I saw this question from I also saw the statement that this information may be important to a surgeon dealing with a person who got injured from fire. However of course in that latter case we may just as well use the formula from the Wikipedia.


Show $F_{n+1} \cdot F_{n-1} = F_n^2 + (-1)^n$ for all $n \in \mathbb{N}$

By calculating for $n\in \{1,2,3,4,5,6,7\}$, I've formulated the rule  \begin{equation} F_{n+1} \cdot F_{n-1} = F_n^2 + (-1)^n, \end{equation}  where $F_n$ is the $n$th fibonacci number. I want to show that this is true for all $n \in \mathbb{N}$.   I tried using induction, with $n=1$ as the basis step, but didn't get very far:  For the induction step, we assume the formula holds for a $n = k$, and checks for $n=k+1$: \begin{align*} F_{k} \cdot F_{k+2} &= F_{k} \cdot (F_{k+1} + F_{k})  \\ &= F_k \cdot F_{k+1} + F_k^2 \\ \end{align*} If somehow $F_k \cdot F_{k+1} = (-1)^k$, then I would be done. But I don't see how that's possible.   Is there a better way of proving this, maybe without using induction? Or am I just going about it the wrong way?


Are there surface-mount pin header footprints for KiCAD?

I'm designing a small module that breaks out a DIP SPI EEPROM to a 2x5 pin header socket(more info here: ). I want to mount the socket on the end of the board, with the pins lying parallel to the board.  I think two 5x1 surface-mount header footprints, on both sides of the board right near the end would do the job. Trouble is, KiCAD doesn't come with such a footprint(if it does, I haven't found it yet). Where might I find one? If one doesn't exist, that's OK; I'll have a shot at making my own.


How can I software update over cellular data? I've got enough data on my SIM but when go to update my iPad to iOS 8, it requires Wi-Fi. I do not have a router.


What is the largest possible frequency of AC that could be produced inside of an electric circuit (if there is such a limit). And what effects would such a high frequency have?


How to get size of class / struct object in C#

How to get size of an object of a class/struct in C#.  hello h = new hello(); Base b = new Base(); Console.Write(Marshal.SizeOf(h) + "," + Marshal.SizeOf(b)); Console.Read();   I tried above code, but it gives error. ERROR:     Type 'Virtual.Base' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.   THanks!


I'm starting to see more and more abuse of the tagging system. Not always intentional, but prevalent none-the-less. I think this started when people began adding the not-programming-related tag, which is odd...if it's not programming related (a condition for closing), then close it.  Today I am seeing tags like belongs-on-serverfault or do-my-homework-for-me. The first should be replaced with voting to migrate, or asking that others vote to migrate, and the second should just be discouraged altogether. If you feel somebody is asking a homework question, comment.  That being said, what is the appropriate action to take when we come across things like this?


Is there a book analogous to Introduction to Algorithms (CLRS) for Machine Learning, that covers all the models and explanations comprehensively?


Repeat HTML Table in Render as PDF VF Page

In my PDF Visualforce page, below table breaks and goes to new page. Is there any way that I can repeat the header of the table if it breaks to new page at the beginning?  Visualforce HTML Table

                                 Please PRINT FULL NAME NEATLY First Name, Last Name	                                                      Attendee signature	                                 Opt out of meal
                             <apex:variable var="color" value="{!1}"/>                              <apex:repeat value="{!attlist}" var="att">
                                      {!att.seqNo}	                                     {!att.attendeeName}	                                                             	                 <apex:variable value="{!color+1}" var="color" />
                           </apex:repeat>

   Can someone please help me?


Transferring Skyrim saved games from one machine to another

Is there a way of easily transferring a saved game from one machine to another?   PC to PC XBox to XBox PS3 to PS3 Cross platform transfers


I didn't understand the difference in the two below statement :-   HashMap<Integer,String> hashmap = new HashMap<Integer,String>();   Map<Integer,String> hashmap = new HashMap<Integer,String>();   The above two statement work in the same manner , no difference in the ouptput OR  there is any time difference on running two statement.


CM clearer than CMsuper? After applying \usepackage[T1]{fontenc}, fonts get blurry

minimum working code:  \documentclass{article} % \usepackage[T1]{fontenc}  \begin{document}  abc ABC 123  \end{document}      It opens as pdf in Mac's preview and Acrobat X respectively.  The left is original, the right uses T1.  Should I assume the T1 encoding or CMsuper is not anti aliased or so?


Dual citizenship, question about which one can I use

I have a Swiss passport and an American passport. My American passport is expired. So I am going home in 2 weeks to Switzerland and I am asking if I can come back, with a Swiss passport, to the United States?


Minimum sample size per cluster in a random effect model

Is there a rational for the number of observations per cluster in a random effect model? I have a sample size of 1,500 with 700 clusters modeled as exchangeable random effect. I have the option to merge clusters in order to build fewer, but larger clusters. I wonder how can I choose the minimum sample size per cluster as to have meaningful results in predicting the random effect for each cluster? Is there a good paper that explains this?


Show that if terms of a series have ratio less than the ratio of convergent series, then the series converges

We have two infinite series $\sum a_n $ and $\sum b_n$, such that $a_n > 0,\ b_n > 0$ and $a_{n + 1}/a_n \leq b_{n + 1}/b_n$ for all $n$. Show that if $\sum b_n$ converges, then $\sum a_n$ also converges.   Any hints on how to prove this? I can sort of picture why this must be true, but I'm not sure how to prove this rigorously. I'm not sure using the ratio test would help here..


I am trying to write and I have no idea how to I am a beginner and I'm not advanced THANK YOU. I tried using the terminal and entering the codes people suggested!


Why is 'no connection' error appearing while accessing Google Play store?

I have this common, annoying problem while trying to access Google Play Store from my phone. It just shows 'no connection', and won't load, even though the internet access is surely working. The suspected cause is a synchronization error of my Google account, likely due to incorrect time settings (it's reported while running WhatsApp for example). Here's what I've done so far:   Set the time automatically Manually set the time, without using the network Clearing cache of Google Play store application Reinstalling Google Play store manually using .apk Logging out and back in with my Google account Rooting the phone and using ClockSync app to set the time Doing a factory reset of my device Making sure Freedom application is not installed   I'm slowly running out of ideas...if anyone has the smallest hint, I'll be really grateful.


Is this a User Profile page CSS problem?

There appears to be a User Profile page CSS problem. See screenshot, taken browsing with Firefox 24. Applies to all Stack Exchange sites, including Server Fault, Super User, unix.stackexchange, etc. Haven't checked any other browsers.


How do I keep a volume mounted when I boot up in Ubuntu 18.04

How do I keep a volume mounted when I boot into Ubuntu 18.04  It disappears on every boot.  Thank you


How do you create a REST client for Java?

With JSR 311 and its implementations we have a powerful standard for exposing Java objects via REST. However on the client side there seems to be something missing that is comparable to Apache Axis for SOAP - something that hides the web service and marshals the data transparently back to Java objects.  How do you create Java RESTful clients? Using HTTPConnection and manual parsing of the result? Or specialized clients for e.g. Jersey or Apache CXR?


How to get last ocurrence of a match in a string

I have this string: {text"{id1}"},{text"{id2}"}  I'm using this regex: {.*"{id2}"},?  But I'm getting the whole string and what I want to get is only this: {text"{id2}"}  And if I use use id1 in the regex I want to get: {text"{id1}"}  How can I do this?


while I use the ccmake, I got the error message, which is   ccmake: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: Error 40   libssl.so.1.0.0 even exists in lib/x86_64-linux-gnu/ but it doesn't work.  I already tried to reinstall that with  sudo apt-get install libssl1.0.0:amd64   and  sudo apt-get install libssl1.0.0   The command was worked properly but I don't have an idea where the file was installed and whether it could fix the problem.


After installing Ubuntu , the menu to choice between Windows an Ubuntu doesn't appear and it goes to windows as Ubuntu hasn't installed . how can I solve this problem??? thank you.


hi I have made a olaf model with textures and materials and I want to sell this model but I don't know to export the textures and materials in a FBX and OBJ file


I try to run SP Flash Tool under Ubuntu MATE but after I chmod +x the executable file, I get this error:  bash: ./flash_tool: cannot execute binary file: Exec format error bash: ./flash_tool.sh: Permission denied   Anyone have any idea why?


php error insert data with value including addition sign (+) to database

There is an error while i insert "3 + 1 room" or update description area with "3 + 1 room" in MySQL database.  I saw there is no addition sign "+" in MySQL log (data inserted in database)  UPDATE testtable set status='0',title='3   1 room', description='3 1 Daire. 1 Balkon kapalı.' WHERE id='60';  create table testtable ( id int(11), status tinyint(4), title varchar(20),  description text) ENGINE=InnoDB DEFAULT CHARSET=utf8    php file  $baglanti=new PDO("mysql:host="localhost";dbname="test";charset=utf8",$us ername,$passwd) or die("error"); $val=$baglanti->exec("UPDATE testtable set status='0',title='$title',     description='$dest' WHERE ad_no='$ad_no' "); return $val;   What should I do?  EDIT  update.php  <?php         include("database.php");          $fields = array();         $values=array();         $fvalue=$_POST['id'];          $table=$_POST['table'];         foreach ($_POST as $key => $value) {                  if( $key!='table' && $key!='id' && $key!='alan'){                         if( strpos($key,"date")){                                 $datet=new DateTime($value);                                 $value=$datet->format('Y-m-d');                         }                         array_push($fields,$key);                         array_push($values,$value);                 }         }         $alan=$_POST['alan'];  $ID=Updt($table,$fields,$values,$alan,$fvalue);          if($ID!=0){                  echo $ID;         } ?>   database.php  <?php       $baglanti=new PDO("mysql:host="localhost";dbname="test";charset=utf8",$us ername,$passwd) or die("error");  #UPDATE function Updt($table,$set,$value,$field,$fvalue){         $bag=$GLOBALS['baglanti'];         $sts='';         if(is_array($set)){                 for ($i=0; $i < count($set); $i++) {                         $sts.=$set[$i]."='".$value[$i]."',";                 }                 $sts=rtrim($sts,",");         }else{                 $sts=$set."='".$value."'";         }         $val=$bag->exec("UPDATE $table set $sts WHERE $field='$fvalue'");          return $val; }  ?>   this one, programmers wrote code. I try to take question parts from all code. There were lots of codes in file.


Javascript function that is equivalent for PHP function

I have the follwing code in PHP:  if(is_numeric($first_name[0]) === true){    //Do something }   How would I be able to do the same check using JavaScript?  I also would like to get a PHP script to check if there is a number in $first_name at all, as I don't want the user to add a number in their first or last names please?


SQL Server 2014 - Disabled All Admin Users

I made the most ridiculous thing. I accidentally disabled both remote logins and database accesses for the Administrator accounts (including the one with Windows Authentication (Administrator account) and sa account on the production server! Please tell me a way that there is a way to access the server with administrator privileges! :(  Is it possible from an installation or some kind of command line etc?  Again, Administrator account IS disabled for SQL Server (but I have remote connection to server, the account itself is working...) So I literally cannot access to the sql instance with admin privileges.


ConTeXt : using \MPtext in different textbackgrounds

I am trying to change my theorem environment, and I played a little with MetaPost (that I don't know well, being more of a TiKz user). I ended with this layout (which I really like) with the help of , but the behavior doesn't fit : it uses the last \MPtext for all calls to the textbackground (see MWE below). When I place a big chunk of text and theorems in a bufer, the behavior is even worse. Is there a way to correctly handle this ? Thank you in advance, \startuseMPgraphic{mp:axiomframe}   begingroup;     numeric u; u := 1EmWidth;     for i=1 upto nofmultipars :       pair bl, br, ul, ur;       bl := llcorner multipars[i]; br := lrcorner multipars[i];       ul := ulcorner multipars[i]; ur := urcorner multipars[i];       % Draw the surrounding box       path p;       p := ( bl -- br -- ur -- ul -- cycle ) enlarged (-0.5u,0.5u) ;       fill p withcolor 0.95 white ;       draw p withcolor 0.8 white ;       draw (p cutbefore point 0 of p cutafter point 2 of p) withpen pencircle scaled 1.2bp withcolor 0.8 white ;       p := ( ul -- (ul shifted (0,-2u)) -- (ur shifted (0,-2u)) -- ur -- cycle) enlarged (-0.5u,0.5u);       picture lab;       lab = thelabel.lrt(\MPstring{TitreTh},ul) shifted (2u,u);       p := (llcorner lab -- lrcorner lab -- urcorner lab -- ulcorner lab -- cycle) enlarged (0.5u,0.5u);       draw p withpen pencircle scaled 1.2bp withcolor 0 white ;       fill p withcolor 0.8 white;       draw lab;      endfor ;   setbounds currentpicture to OverlayBox ;   endgroup; \stopuseMPgraphic  \definetextbackground   [theoremFrame]   [mp=mp:axiomframe,     location=always,     leftoffset=1em,rightoffset=1em,     topoffset=0ex,bottomoffset=0ex,     frameoffset=5\bodyfontsize,     before={\testpage[3]\blank},     after={\blank[medium]}]  \def\starttheorem[#1]{   \setMPtext {TitreTh} {\bf #1}   \starttextbackground[theoremFrame]   \vskip 1em } \def\stoptheorem{\flushsidefloats\stoptextbackground\\\blank[big]}   \starttext \starttheorem[Knuth]   \input knuth \stoptheorem  \vskip 2em  \starttheorem[A formula]   \startformula     a + c = x   \stopformula \stoptheorem \stoptext


Can I skip first segment of multi-airline ticket?

I want to book a ticket through an online travel agent which combines two airlines. The flight itinerary is A-B-C and C-B. Segment A-B is operated by airline company A1 and segment B-C-B operated by airline company A2.  Can I skip A-B segment of this itinerary and just board in B?


Transparent model when exporting fbx file to Unity

So I have this shark model which I animated and ready to export it on fbx and transport it to Unity.  But When I put it on Unity, It looks transparent like this.    Many of the solutions online say that the problem is because of my faces, and they told me to recalculate it or something, but normals are just fine. Is there any other solution?  here's the blend file:


Using "respectively" with "and" vs. "or"

Is it acceptable usage to use "or" with "respectively", or is it possible only with "and"?  Example:     If the light changes from red to blue or from blue to red, you must catch or throw the ball, respectively.   I've seen lots of construction with "and" but none with "or".


Install APK from ADB and bypassing the prompt on Redmi

Device = Redmi 5 Plus.  I have 250 apps as a .bak created by PC app. But the cheater PC app is asking for premium to restore it now. So, I can extract the .bak and find my apps.  I wanted to batch install those apks. I tried adb install apkname.apk to check if it works. But the phone keeps prompting me to accept the install and countdown starts, or else it will auto deny after countdown finishes. I've also tried 3rd-party app like ApkInstaller but it's the same.  I read many articles and they say it works without prompt. So, why am I getting this issue? How to bypass this prompt automatically?


c# linq Query how to write multiple And condition

This is My Query in Linq   VAR x = FROM n IN _db.tbl_maint_activity_material_details             JOIN availablity IN _db.tbl_maint_item_availability ON n.mamd_lotno equals availablity.mia_lot_no && n. ////   Here im not able to countine my Code Please Help me  This is My SQL query  SELECT * FROM   tbl_maint_activity_material_details AS _material        JOIN tbl_maint_item_availability AS availablity             ON  _material.mamd_maint_item_id = availablity.mia_maint_item_id             AND _material.mamd_lotno = availablity.mia_lot_no WHERE  _material.mamd_status = 24


Preface: I love bash and have no intention of starting any sort of argument or holy-war, and hopefully this is not an extremely naive question.  This question is somewhat related to  on superuser, but I don't think the OP really knew what he was asking for.  I use bash on FreeBSD, linux, OS X, and cygwin on Windows.  I've also had extensive experience recently with PowerShell on Windows.  Is there a shell for *nix, already available or in the works, that is compatible with bash but adds a layer of object-oriented scripting into the mix?  The only thing I know of that comes close is the python console, but as far as I can tell it doesn't provide access to the standard shell environment.  For example, I can't just cd ~ and ls, then chmod +x file inside the python console.  I would have to use python to perform those tasks rather than the standard unix binaries, or call the binaries using python code.  Does such a shell exist?


Why can't I provide a string argument to printw in ncurses?

For an application that I'm writing, I have a string type variable that I want to display within an ncurses window:   #include <iostream> #include <ncurses.h> #include <string>  int main(){   std::string mystring = "A sample string\n";    // Entering the ncurses window   initscr();   printw(mystring);   getch();   endwin();  }   which throws the following error at compilation:   test_app.cpp: In function ‘int main()’: test_app.cpp:12:18: error: cannot convert ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘const char*’ for argument ‘1’ to ‘int printw(const char*, ...)’    printw(mystring);   Where am I going wrong? How can I rectify this?


Wake on LAN working in Windows, but not in Ubuntu 16.04

I have a 16.04 server running and have set up Wake On Lan through   {ethtool - s <NIC> wol g}   and  {auto <NIC> iface <NIC> inet dhcp up ethtool -s <NIC> wol g}   in /etc/network/interfaces.  I use rtcwake -m mem to test, but cannot get the server to start up. I have used ngrep to control that the server receives the magic packet, and I have tried to install Windows on the server to confirm that the hardware supports WOL.  Others have reported that they can bypass this problem by shutting off with the power button, but that does not have any effect here.  What am I missing?


Can there exist a holomorphic function such that $f(\frac1n) = \frac{1}{2^n}$ where $n \in \Bbb Z$

Can there exist a holomorphic function defined on the unit disk $D = \{ z \mid |z| <1\}$ such that $f(\frac1n) = \frac{1}{2^n}$ where $n \in \Bbb Z$?  I thought of using CR equations to find a contradiction but unable to do.


Book about a man sent to multiple planets, surgically altered to fit in with the aliens

The book was about a man who would be surgically altered to investigate different planets, and live with the alien beings on them. He would learn about them, and their social/linguistic behaviours. On one planet he became a being that would curl into a ball and roll. On another, he became some type of lizard-type thing that had a pyramidal structure sticking out from it, the purpose of which he did not know. It's not a recent novel, I probably read it 25 years ago. There were at least two or three different life forms he was altered to be. At the time I was reading a lot of Heinlein, Pohl, and Poul.


I am new to Ubuntu and have a quesion:  I have Ubuntu 16.04 running on VMware. My initial setup had one disk. I added another 2 disk (one 2GB and one 1GB). Now I want to add them to the Ubuntu, how can I do that? First I know I should format them but when I want run fdisk command I get this error:  Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xd5a1dff9.  Command (m for help):   And here is my disk info:    *-disk:0                        description: SCSI Disk        physical id: 0.0.0        bus info: scsi@32:0.0.0        logical name: /dev/sda        size: 10GiB (10GB)        capabilities: partitioned partitioned:dos        configuration: logicalsectorsize=512 sectorsize=512 signature=bcc12dac   *-disk:1        description: SCSI Disk        physical id: 0.1.0        bus info: scsi@32:0.1.0        logical name: /dev/sdb        size: 1GiB (1073MB)        configuration: logicalsectorsize=512 sectorsize=512   *-disk:2        description: SCSI Disk        physical id: 0.2.0        bus info: scsi@32:0.2.0        logical name: /dev/sdc        size: 2GiB (2147MB)        configuration: logicalsectorsize=512 sectorsize=512   *-cdrom        description: DVD-RAM writer        physical id: 0.0.0        bus info: scsi@3:0.0.0        logical name: /dev/cdrom        logical name: /dev/cdrw        logical name: /dev/dvd        logical name: /dev/sr0        capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram        configuration: status=open   My question is how to solve this issue using command only?


Why don't Ubuntu package version numbers match version numbers in the rest of the space?

Ubuntu version numbers don't match the rest of the space, and it's not clear why they don't or how they actually work.   For instance, there's openSSL 1.0.1n and 1.0.1f-1ubuntu9.8  What's the reasoning for this? What does the ubuntu part of the version number mean? I'm not asking why 1.0.1n isn't available yet, I'm asking why the equivalent (in terms of security patches) has a name that cannot be compared.


Completely lock user into a single applications

I'm planning an exhibition where I need to run an app which needs a keyboard, but no mouse. I want to lock the viewers into one fullscreen application. They should never be able to see anything except this one app. Nothing whatsoever.  So I'd set up a new user which will start the app (in fullscreen mode) as soon as the user logs in. The machine it's running on will be physically secured.  But they have access to the keyboard and could do unwanted things (even closing or switching applications is unwanted). Is there any way of preventing all keyboard based application switching, launching, shutting down, access to tty, login prompt... - such that the only way to leave the application (or simply see anything else) is using the power off button on the (secured) hardware?   The app is intended for Ubuntu 17.10.


Tablets always turned on (usb-powered). Problems?

I need to install about 20 tablets powered 24/7 (24 hours, all week). Is there any problem or potencial damage about it?


Does Knowing Two Proper Factors of an RSA Public Key Permit Decryption if $N$ is Not a Semiprime?

It is my understanding that the public key modulus $N$ for the RSA cryptosystem is presumed to be a semiprime. I have also read where it is not necessary that $N$ be a semiprime, but it could be some other type of composite number. My question is: If one wants to decrypt a message knowing $N$ and one of its prime factors, can the message still be decrypted if $N$ is not a semiprime?


javaj: input / if statement malfunctioning

Having a slight problem with the following block of code:  newusr = c.readLine("New user? "); if (newusr == "y") {     System.out.println("IF");     usnm = createNewUser();     usnm = loginToClient(); } else {     System.out.println("ELSE");     usnm = loginToClient(); }   Basically, when i enter the single character "y" to the prompt, it takes me to the else case and thusly straight to the loginToClient method. What's going on; is the "y" in a different encoding or something?  c is a console.


LaTeX: problem with table captions when using the subfig package

I run Arch Linux with texlive version 2019.52579-1. When I compile the LaTeX (Beamer) code below the table caption is "Figure: A simple table." That is, it includes "Figure:" instead of "Table:". The problem does not occur when the subfig package is not used. Suggestions (other than removing the subfig package) are welcome. Thank you.   \documentclass{beamer}  \usepackage[utf8]{inputenc} \usetheme{default}  \usepackage{subfig}  \begin{document}  \begin{frame}{A simple frame}  \begin{table}  \caption{A simple table.} \begin{tabular}{ll} \hline a & b \\ c & d \\         \hline                  \end{tabular}  \end{table}  \end{frame}  \end{document}


Do the Q know about and take heed of the Prophets?

I just looked online to see if I could find a theory that I just had.  I was just watching TNG for the umpteenth time (thanks to Netflix), after watching DS9 through to the end first (as my personal favourite series).  Watching TNG Encounter at Farpoint, after they split the disc section away so that the warp section could turn around and face Q, Miles O'Brien is on the battle bridge, but isn't taken by Q. Although everyone else on the battle bridge is taken to the 21st century court, at no stage does Miles get taken or mentioned. It's almost like Q is actively avoiding Miles and leaving him out of his meddling with the humans.  The theory being - is it possible Q was aware of the Prophets and was told to stay away from Miles because of his involvement with the events that would unravel in the battle to come involving Sisko, the Prophets and the Pah-wraith?  It seems that although he boarded DS9 because of Vash, maybe he had heard of "The Sisko" and thought he would meddle whilst he was on board, we know how brash he is, and seeing how quickly he ultimately withdrew never to be seen again after fisticuffs with Sisko, seems odd knowing that he was happy to screw with the TNG crew for several years.  Anyway, I look forward to your thoughts and if there is anything I'm not aware of that can debunk this theory.


How to list *.tar.gz, one filename per line?

I am trying to list every .tar.gz file, only using the following command:  ls *.tar.gz -l  ...It shows me the following list:  -rw-rw-r-- 1 osm osm  949 Nov 27 16:17 file1.tar.gz -rw-rw-r-- 1 osm osm  949 Nov 27 16:17 file2.tar.gz   However, I just need to list it this way:   file1.tar.gz  file2.tar.gz   and also not:  file1.tar.gz file2.tar.gz   How is this "properly" done?


I need your advice please. Any advice will be appreciated! My first interview for B1 US visa was denied in 17th April. 2019 and I again applied to new interview with same purpose. Interview date is 25th April. I wore suit with tie. And my interview started with nise VO.   VO: Good morning  Me: Good morning sir.  VO: Can I have your passport  Me: sure  VO: Where do you study  Me: ABCD university PhD student   VO: what is your purpose  Me: IEEE s&p conference  VO: how long you will stay Me: 4 nights  VO: what your parents do? Me: I said my father is taxist instead of( taxi driver)  my mom is seller  VO: sorry I don’t understand your father’s job Me: again taxist instead of( taxi driver), after 2 secon I corrected my mistake he is taxi driver. Sorry   VO: have you been other countries (last question) Me: no  VO:( gave me one yellow paper) everything is explained here.  Me: Thank you very much( I read this Paper after leaving interview room. It was Section 214(b) But I live with my wife in korea. It is not  strong tie? He did not asked about my marriage and supporting documents. I had following documents: -financial support ; -letter of guarantee (returnt bact Korea); -invitation letter; -round trip ticket ; -hotel booking; 1)I wanna give all of my docs with passport. Is it polite? How VO react for this situation? 2)Making mistake with my father’s job and correcting that mistake will it lead to a rejection? 3) what kind of questions I can expect in the 25th next interview? And how many % of chance I have for approving my visa in next immediate interview? Thank you for sharing you time!


Is it recommended to notify the answer "Edits" with an heading followed by the edit content?

Many times I see that when an user edits his own answer he notify it with an heading like this:     Edit      content added to the previous version of the answer   I don't like it very much because in my opinion this make the answer more ugly. And I think that it is more useful to integrate the content, adjusting the part without any heading. I don't know if this is not a good practice, and I imagine that someone can think that with the edit heading it is easier to see the improvements and that the previous up-vote refers to the original question, but in fact I think that this does not make much sense. What is the best practice?


How to change # into %23 before inserting into database?

This question has not been asked before.  That link above is no help.  When trying to pass TXTurl variable in URL everything after the hashtag does not pass as the variable because it is a fragment.  I was doing some reading, and it the variable does pass as %23.  I have been trying to change the # to a %23 before it goes into the database.    I have tried urldecode() urlencode() - I have tried the below myUrlEncode function I found.  function myUrlEncode($TXTurl) {     $entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');     $replacements = array('!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");     return str_replace($entities, $replacements, urlencode($TXTurl)); }   try {     $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);     // set the PDO error mode to exception     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);      // prepare sql and bind parameters     $stmt = $conn->prepare("INSERT IGNORE INTO MyFAQlist (TXTurl, TXTlinkname)      VALUES (:TXTurl, :TXTlinkname)");     $stmt->bindParam(':TXTurl', $TXTurl);     $stmt->bindParam(':TXTlinkname', $TXTlinkname);     myUrlEncode($TXTurl);       // insert a row      $TXTurl = "$TXTurl";     // insert a row     $TXTlinkname = "$TXTlinkname";     $stmt->execute();   I want to replace # with %23 when inserting TXTurl into database.  Also Tried to use rawurlencode. ddint' work  $stmt = $conn->prepare("INSERT IGNORE INTO MyFAQlist (TXTurl, TXTlinkname)  VALUES (:TXTurl, :TXTlinkname)"); $stmt->bindParam(':TXTurl', $TXTurl); $stmt->bindParam(':TXTlinkname', $TXTlinkname); $TXTurl = rawurlencode($TXTurl);


Is there an analogue of the Casimir effect for gravity?

Having recently learned about the  I began to wonder about spacetime and the effect of intervening bodies on gravitational forces:  Does a mass have a "shadow" behind it or some sort of "dampening" effect on gravitation from body C as sensed at point A with body B in between?  In relation to the Casimir effect, if there is some sort of "dampening" effect, then gravitational changes (e.g., a pair of rapidly-circling stars) might produce an additional force between two bodies which are close together where the changes are diminished (or possibly amplified?) in between the two bodies.  Has any such force been measured or given research time?


references are displayed strangly including some characters

here is one of my references i use \bibliographystyle{plain}  @article{chambrin2001alarms,   title={Alarms in the intensive care unit: how can the number of false alarms be reduced?},   author={Chambrin, Marie-Christine},   journal={Critical Care},   volume={5},   number={4},  pages={184–-188},   year={2001},   publisher={BioMed Central} } it gives me an error and displayed as you see  184a^ - 188 even that there is no a^   \documentclass{article} \RequirePackage[latin1]{inputenc} \RequirePackage{fancyhdr}   blabla \cite{chambrin2001alarms}   \end{document}


Don't count non-printing characters, HTML comments or other content not displayed toward minimum character requirements

A follow-up to , and an extension of .   shows that it is possible to circumvent minimum character requirements using null bytes.  Can we exclude such non-printing characters as ASCII NULL and other control characters from counting toward minimum character requirements?  Edit: Users have demonstrated that , unmatched or invalid HTML tags, and other content that is not displayed after Markdown parsing can be used to bypass such requirements as well.  Can we cover this case as well, except for links?


I've spent to much time in the DOS world where cd.. (no space) works.  I tried to do the same in ubuntu by defining a bash file in /usr/local /bin called "cl.."  its body is   #!/bin/bash cd ..   I have chmod +x on the file.  It doesn't work, ubuntu doesn't complain about command not found.  what did I do wrong?


Does Mercy's Damage Boost apply to Ana's healing?

I know it's called , but unlike other healers  is using her weapon to heal allies, so maybe it would increase her healing. Does anyone know how these two abilities affect each other?


How many subgroups or order 8 an abelian Group of order 72 can have

Let $G$ be an abelian group of order 72. How many subgroups of order 8 and 4 can it have?    I have listed all possible abelian groups there are 6. Then i said that if I'm looking for an abelian group of order 8 I have 3 possible abelian groups and for each 1 of the 6 first abelian groups must check if 1 of the 3 of the later ones are subgroups. But that is taking forever and I don't have any easy way to check if they are subgroups. I use "If A is a subgroup of G and B is a subgroup of H, then the direct product A × B is a subgroup of G × H". So I found that for every possible G there is 1 subgroup of order 8. But is that correct? If I have a subgroup of a direct product say A × B of a G SxS1xS2x...xSn then A must be subgroup of S and B of S1?


I want to downgrade some packages. I search and find  and this  and this .  But i just want to do it with dpkg.  Could i just run dpkg -i package-name? If yes then what will be done with the highest already insatlled version?!


For java I/O I am reading from a file but when I get the data and try to send it to another method it gives me a null pointer error

I want to take integers from a file and put put them into an array but it keeps giving me a null pointer error. The text file is 100 lines with a single integer on each. When I debug it the file is being read and the proper integer is being stored but when I try to send it to my popBArray method it doesn't work.  public void readBoardFile(String filename) {     try {         Scanner filescanner = new Scanner(new File(filename));         while (filescanner.hasNextLine()) {             String line = filescanner.nextLine();             int num = Integer.parseInt(line);             popBarray(num);         }         filescanner.close();     } catch (IOException e) {         System.out.println(e);     } catch (Exception e) {         System.out.println(e);     } } int c = 0; public void popBarray(int sent) {     BoardA[c] = sent;     c++; }


Axiomatization of a Topology using the Boundary

The axioms of a topological space are usually stated in the "open set" form: A topological space $X$ has a set of subsets $\tau$ whose members satisfy:   $\emptyset$ and $X$ are in $\tau$. $\tau$ is closed under arbitrary unions. $\tau$ is closed under finite intersections.   We will call this the usual open set axiomatization of a topological space. The open set axiomatization is probably the most economical, but of course there are other ways as well, such as the  which axiomatizes the topology using the closure operator.   In his note , Pete L. Clark gives several alternative characterizations of a topology, most of which have details given. It was mentioned, I think originally by Willard, that it is "possible, but unrewarding to characterize a topology completely by its [boundary]". I could find no further references on this, and I am wondering how it might be done (unrewarding as it may be).  So my question is this: How can a topological space by axiomatized using the boundary operation as the primitive notion? A complete answer should give a list of axioms required for the formulation, as well as a sketch of how they are equivalent to the usual open set formulation.


How can I upgrade filezilla to the current version?

Filezilla was acting weird with version 3.21, which is pretty old; the current one is 3.30. So, I decided to update it but it looks like this is not possible. After spending hours trying it, I returned to the old version 3.21.  Is there any possible way to update it , or is there any other FTP client that works better (and can be updated)?  Update:  I run Ubuntu 16.04 TLS, the post about repositories not having latest versions is not relevant because I need procedures to follow, not an open discussion.


Suppose $H$ is a subgroup of $S_n$ but $H$ is not a subgroup of $A_n$. Prove that |$H$ ∩ $A_n$| = $\frac{1}{2}|H|$?

i know that|$S_n$|=$n!$ and |$A_n$|= $\frac{n!}{2}$ but i'm not sure where to go from there. Thanks.


Changing count number on input line every time?

So I am writing a code and I want my input line to change the number with every guess. For example;  Enter a letter for guess #1: (take input)  Enter a letter for guess #2: (take new input)  Is there a way I can change the number after the # every time?  My code right now is  letterguess = input("Enter a letter for guess #")  I know that the input line can only take one argument, so when I try to add a , count it doesnt work. I've tried to look up functions that can help but I'm getting stuck. Any advice helps! Thanks!


how to create regular expression for phone numbers


I just thought about the safety of my php script and read a lot about sql injections.Now I have a question to save me from it.Is it right when my script doesnt accept characters like ' , ; or " ? Or I just catch this from my Android app ? So I just see the problem in these caracters. Am I right ? Or is there sth I dont see ? If not what would be the easiest way to safe it ?


Efficient way to find $[\mathbb{Q}(\sqrt{5}, \sqrt{3}, \sqrt{2}): \mathbb{Q}(\sqrt{3}, \sqrt{2})]$

I want to show rigorously that this is 2. I'm sure there's a faster way than by trying to see if $\sqrt{5} = a + b \sqrt{2} + c \sqrt{3} + d \sqrt{6}$ (linear combination of the basis elements for $\mathbb{Q}(\sqrt{3}, \sqrt{2})$). I'm just not sure what.


The proof of shrinking coefficients using ridge regression through "spectral decomposition"

I have understood how ridge regression shrinks coefficients towards zero geometrically. Moreover I know how to prove that in the special "Orthonormal Case," but I am confused how that works in the general case via "Spectral decomposition."


I'm planning to have a house built. I want to draw up some sketches on the computer, so I am looking for a program that can help me do this. It doesn't have to be a professional architecture tool; in fact that would be too complicated just yet (but maybe later on, for the detailed work...?). A simpler tool would be better.   Features should include such things as ability to draw and move walls (not just using simple boxes), calculate room/floor area, add windows and doors, and the like. That's why Inkscape or OOo Presentation won't do. On Windows, a friend would just download a cracked professional architecture tool but that is not what I want to do.  Suggestions?


How do i deactivate "Your comment has been posted." after user posted a comment

How do I deactivate -Your comment has been posted- after user posted a comment.  Is it possible to deactivate the message above with out touching the core?


Keyword 'let' from LINQ syntax is not supported by syntax highlighting

I found that neither on SO. nor here, on meta, LINQ syntax keyword let isn't being highlighted:  from f in db.Foo let b = f.Bar where b.Count == 1 select new FooBar(b);   Please add.


27.5 x 2.00 tyre, is different width a problem

like i said i have a 27.5 inch by either 2.2 or 2.0 (rather 2.0 but i'm not 100% sure) width and there aren't many tires with size 2.0 in shops at my place. Probably will go with a different width and i want to Ask is that fine. For ex. 2.2 inches. Will that fit fine? I want to go tubeless too. Which tyre will be good for dry terrain and asphalt under 40€?


Please help me prove: $v(a+b)\leq v(a)+v(b)$, and $v(ab)\leq v(a)v(b)$ where $v(x)=\inf{\{\vert x^n \vert}^{1/n}: n\in\mathbb{N}\}$

I'm reading a book functional analysis, and reading and have seen an example of somebody please help me if you can. The example that I've seen is the following:   If $A$ is a normed algebra and $a,b\in A$ so that $ab=ba$, then $$v(a+b)\leq v(a)+v(b),$$ and $$v(ab)\leq v(a)v(b).$$  Remarks: Let $A$ is a normed algebra whith unit. For $x\in A$ number $$v(x)=\inf{\{\vert x^n \vert}^{1/n}: n\in\mathbb{N}\}$$ is spectral radius of element $x$.  Please help me. Thanks for your attention.


Div horizontally center and vertically middle

I want to align a div horizontally center and vertically middle of the body of a page.  The css:  .loginBody {     width: 100%;     height: 100%;     margin: 0;     padding: 0;     background: #999; /* for non-css3 browsers */     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */     background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */     background: -moz-linear-gradient(top,  #ccc,  #000); /* for firefox 3.6+ */ } .loginDiv {     position: absolute;     left: 35%;     top: 35%;     text-align: center;             background-image: url('Images/loginBox.png');     width:546px;     height:265px; }   And I have this html:  <body class="loginBody">     <form id="form1">     <div class="loginDiv">      </div>     </form> </body>   Now it is behaving as I want it to, but if I resize the browser, it became completely distorted, perhaps this is because the absolute positioning. I am showing some of the screenshots: in resized firefox:   in resized chrome:   in resized ie:   in maximized window it is:   Is there any way to solve this problem and achieve this centered alignment using relative positioning?   Thanks.    Edit:  In firefox no scrollbar appears while resizing but it appears in other browsers.


Adding a small colored rounded box around inline text

Is it possible to write a command using TikZ to produce a small rounded and colored box around a piece of text, inside sentence? I know the \framedbox command gives a rectangle around a piece of text (but not a rounded rectangle as far as I know).   I guess one could also adjust the color of the background when using framebox (using tips from answers to  question), but I don't think it could help with other factors such as the box's edge-width, the amount of roundness, etc.   The following picture was produced with Inkscape for the purpose of the question.


E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) finally fixed

I was configuring my local Ubuntu installation (14.04 LTS). I got this error while trying to run apt-get. I have seen many answer regarding this issue. None of a single answer solve my issue. So I have decided to post a question even many duplicates exists. See my answer below.


I have a php function for getting info out of my database. When they go to   I want to create a fake test.txt (text is dynamic) and download it. It's contents should be the equivalent of executing foreach(databaseContent() as $content)  { echo $content . '<br/>' } inside of it.  How can I get started on this? (Using php)


So I have a bit of an issue. I accidentally chown'd everything to my user, recursively.   sudo chown -R me:me /*   I meant to only do this to one directory which I thought I was in.  I cancelled it very quickly (3 seconds?) and I'm not sure how much damage I caused, but what I do know is that I can't use the system properly anymore.  Here's an image of who owns what at this time: (yellow = stuff I accidentally chown'd)    (CentOS)  I assume I'm going to have to move all of my files and stuff off the machine and reinstall, but I'd rather not, obviously.  Right now I can't use sudo or su:  /etc/sudo.conf is owned by uid 1000, should be 0 /etc/sudoers is owned by uid 1000, should be 0 no valid sudoers sources found, quitting unable to initialize policy plugin   It's an OVH machine (i7 4970k) and I don't think the IPMI is working (or I just don't know how to use it... I think that's the case)  Is there any hope in fixing this?


PFRPG; Multiple Primary Natural Attacks' (Claws, Bite) Attack Bonus

Specifically, this is referring to creatures with a Bite and two Claw attacks. As far as I understood previously, they are both Primary natural attacks, and ruled that my player's Eidolon could use them all at full BAB in a full attack.   My basis for that was as such; Natural attacks are listed in this way (using the grizzly bear example I'd seen in another question)  Melee 2 claws +7 (1d6+5 plus grab), bite +7 (1d6+5)  Whereas Weapon attacks for say, a Cyclops, are listed this way;  Melee greataxe +11/+6 (3d6+7/×3)  It pretty clearly marks the BAB -5, indicating it's full attack setup. But I've also read that the PF rules for natural attacks are basically the same as 3.5. So, in that line of thinking, I've pulled up the listing for a tiger, which specifies full attacks as such;  2 claws +9 melee (1d8+6) and bite +4 melee (2d6+3)  So! I'm fairly confused. I'm thinking that if my player's Eidolon wants to full attack anymore, should it use the -5 BAB (and half strength) for his bite?


Standard position of xbutton1 and xbutton2?

I have three cheap mouses which has two extra mouse buttons for going forward and backward.  However, two of them have the xbutton1 (the one which performs backward) closer to me but one have it farther from me.  Which is the standard? I tried some googling but nothing useful turned out.  Just FYI, these buttons are on the side, lies left to the left mouse button, and can easily be pressed by the thumb. The one closer to me can be pressed easier than the one farther from me.


why won't GMAIL allow me to enter my password in the password field EACH TIME I log in? All the maintenance man in my apartment complex has to do when I'm gone  is start my computer and click on the gmail icon and my account comes right up WITH THE LITTLE BALLS pretending they're hiding my password when all the repair guy has to do is click on "sign in" and BOOM -he's in my account!!. Help!!!!!


What is 408 Time-out error and why only on Stack Overflow?

I've been facing this error since a lot of months now though it has been occurring annoyingly very often during last few days.  408 Request Time-out Your browser didn't send a complete request in time.   I'm using Google Chrome on a Windows Server 2008 machine and have a fairly stable internet connection. Never seen this error on any other website.  What actually causes this error and is something wrong on my end?


Is the inflation theory based on the inflaton field or electronuclear force carriers decay?

Some sources introduce the inflaton field as the cause of the inflation period in the big bang theory, and some others relate it to the decay of electronuclear bosons. Which one of these is responsible for the expansion of the universe during inflation period?


How can I run a GUI on my server through SSH?

Most people want to be able to forward a window through ssh to the machine they're logging in from. I want to do the opposite.  I'm on my desktop and I'm logging in via ssh to my server. The server is essentially a media center and its screen is my TV. I want to be able to start chromium-browser from my ssh session but have it display on the server - not on my local machine.  Only running chromium-browser & doesn't work and gives me the Gtk: cannot open display error. Do I have to set an environment variable on the server to "export the display to itself"?


What time zone and time scale do SE sites use?

I am often puzzled by the time indication on this platform  I asked a question yesterday and this morning I noticed that I asked it today:    Since it is already past midnight on the west coast in the US, this would only make sense if the Stack Exchange servers are in Hawaii.   At the same time I often also noticed that 1 hour lasts longer then an hour on my laptop or watch. This is specifically visible in chat, where you sometimes see asked 1 hours ago, while it is often already 2-3 hours later.


Single MVC Web Application with multiple URLs redirecting to diferent Controllers

To share the code of 2 landing pages (ex. footer, newsletter subscription) I need to be able to redirect http://page1.company.com to the Index() method of Page1Controller and http://page2.company.com to Index() method of Page2Controller. How can I do this in a MVC C# Web Application with IIS7?  Is this a good practice or should I create 2 diferent Web Aplications? In this solution, how could I share a common view like a footer?


Enable two-step verification for all Stack Exchange sites

I have two-step verification (via Google Authenticator) enabled for almost all of my accounts on the Internet. I somehow feel safe with that.  I have enabled two-step verification for almost all my accounts since I have read these news:      I want hate remembering passwords, allow me to use 12345 (just kidding) everywhere and let two-step authentication take care of security for me. I wish to enable two-step authentication for all my Stack Exchange sites. How would I do that?  I Googled, but I couldn't find a way to enable it. So, may be it's a feature request (correct me if I am wrong).


In my example code below, is the counter = 0 really required, or is there a better, more Python, way to get access to a loop counter? I saw a few PEPs related to loop counters, but they were either deferred or rejected ( and ).  This is a simplified example of my problem. In my real application this is done with graphics and the whole menu has to be repainted each frame. But this demonstrates it in a simple text way that is easy to reproduce.  Maybe I should also add that I'm using Python 2.5, although I'm still interested if there is a way specific to 2.6 or higher.  # Draw all the options, but highlight the selected index def draw_menu(options, selected_index):     counter = 0     for option in options:         if counter == selected_index:             print " [*] %s" % option         else:             print " [ ] %s" % option         counter += 1   options = ['Option 0', 'Option 1', 'Option 2', 'Option 3']  draw_menu(option, 2) # Draw menu with "Option2" selected   When run, it outputs:   [ ] Option 0  [ ] Option 1  [*] Option 2  [ ] Option 3


An easy way to make a deep copy of a list of records in c#?

I want to make a copy of a list of records.  The code below only copies references of the records so changing Data in myRecs1 also changes it in MyRecs2.  Besides doing a loop in a loop, is there an easy way to get a full copy of myRecs2 from myRecs1?      static void Main(string[] args)     {         List<MyRec> myRecs1 = new List<MyRec>()         {             new MyRec() {Id = 1, Data = "001"},             new MyRec() {Id = 2, Data = "002"},             new MyRec() {Id = 3, Data = "003"}         };          //List<MyRec> myRecs2 = myRecs1.ToList(); // does not work of course          // ugly but works         List<MyRec> myRecs2 = myRecs1.Select(rec => new MyRec()         {             Id = rec.Id,             Data = rec.Data         }).ToList();          myRecs1[2].Data = "xxx";           foreach (var rec in myRecs2)         {             Console.WriteLine(rec.Data);         }     }      public class MyRec     {         public int Id { get; set; }         public string Data { get; set; }     }    edited to show working example I don't like


How to take picture with blur background using FujiFilm HS10

I tried a lot to take portrait pictures with blur background using my FujiFilm HS10 but haven't succeeded yet. I use f2.8 but still cannot get the effect. Can any of the experts give me any suggestion.


How to assign a list with keys and values from a dictionary in Python

I'm a real beginner and I want to know if there's method where you can assign the keys and values from a dictionary to a list of tuples? If there's a method to do this, I also would like to know the full source code?  This is the given dictionary   dict_count = {'z': 4, 'b': 4, 'a': 6}   I expect the output to look like this  [(‘a’ 6), (‘b’ 4), (‘z’, 4)]


javascript now to create two ways currency format?

I have found this link have a simple and useable funciton to convert number to currency.    but how to turn it back form currency to number...  I already try this :   [http://jsfiddle.net/vb2cb1tm/3/]...   But its failed...  I try to read a formatted string using javascript and make a counting on this valua...


How to put exclamation mark in loop to stdout

I write a script to find string in the txt file:  @ECHO off Setlocal EnableDelayedExpansion for /F "tokens=2,3" %%c in ('findstr /IRC:"568923" "List.txt"') do (     Set "A=%%c"     Echo !A! )   List.txt like this: 568923 Can't_Help_!Falling_In_Love Music  Result is: Can't_Help_Falling_In_Love missing !  How do I keep exclamation mark ! in stdout


Looking for desktop program to find images on my local hard drive similar to a sample image

I know this question has been asked before (many years ago), and there have seen suggestions for programs, but some don't exist anymore and none of them seem to do what I want to do. Octagon doesn't seem to work. VisiPics searches for any and all duplicates. What I want to do is point the program at a sample image, then have it search through my hard drive and find similar images to that image. Maybe a different size, or a slightly different crop, or a slightly different color balance, or maybe even a slightly different (but still quite similar) view of the same subject. I've found several programs that attempt to search the entire drive for similar/duplicate images. On a large drive with lots of images this takes forever and the matches aren't flexible enough. So I'm basically looking for a local version of Tineye or Google Image search that's smart enough to find similar (but non identical) images on my hard drive. I have an image which is small and possibly slightly cropped from a much larger image.  I'm pretty sure the larger image is somewhere on a 1TB drive, but as yet I have not been able to find it. Is there now a tool that can help me? I don't really care how long it takes to do the search.


Question about mounting, 'input not supported' error and grub-probe error: failed to get canonical path of '/cow'

I am trying to install Kubuntu 15.04 from a liveUSB on a hard drive without a prior OS. The machine has a GeForce GTX 980 GPU. The primary problem is that when I boot from the USB and begin the installation process, I eventually see the message Input Not Supported floating across a blank screen. I open a terminal, use the default login parameters, and edit the GRUB config file using the following command:  sudo nano /etc/default/grub   I find the following line and remove the hash (#):  #GRUB_GFXMODE=640x480   I save the grub config file and try to run the following command:  sudo update-grub   I am met with the following error:  /usr/sbin/grub-probe: error: failed to get canonical path of '/cow'   I have read the articles here about this error, such as , but I do not understand the nature of mounting here. My hard drive is sda and the usb where ubuntu installer is located is sdb. The lsblk command also shows -sdb1 as a location with a type of part /cdrom.   I have included an image below which elucidates my configuration. Could someone please clarify how I have to mount grub given my configuration? My goal is to get Ubuntu to install and run with this 640x480 resolution so that I can update the drivers and all that once I have finally booted to the desktop. I have used the nomodeset option in the past, but it does not further the installation process. If anyone has any advice on how best to proceed from here to get to that goal, I would be exceptionally grateful.


How to open a file with the default associated program

How do I open a file with the default associated program in Java? (for example a movie file)