International TLD's vs. duplicate content

I currently work at a pretty big website that has visitors from around the globe. My job is to help out on the SEO, and one thing we've been discussing lately is the use of international TLD's. The ones we use range between:   (partly) translated websites like .es and .de that serve most of the content in the country's language non-translated (english) websites for non-english languages (due to a lack of translations) like .ro and .cz english websites for english speaking countries with localized TLD's (.co.nz, .co.uk)   On one hand I really have the feeling this is causing a lot of duplicate content, especially for the last two categories of TLD's.   On the other hand though it seems a lot like country-specific TLD's tend to score a lot better in that country's Google. Would it be advisable to keep on using these domains, or should we canonicalize them all to the .com version?


Trying to solve the linear system below for $x,y$ and $z$ in terms of $a,b,c$ and $\zeta_3$: $x+y+z=a$ $x+{\zeta_3}y+{\zeta_3}z=b$ $x+{\zeta_3}^2y+{\zeta_3}^2z=c$ where $\zeta_3=-1/2+-i(\frac{\sqrt 3}{2})$ i.e. ${\zeta_3}^3=1$ From a book by the Russian author Smirnoff (translated by Silverman) - the author says the answer is $x=(a+b+c)/3$; $y=(a+b{\zeta_3}^2+c{\zeta_3})/3$; $z=(a+b{\zeta_3}+c{\zeta_3}^2)/3$ Got part of the way with Gaussian elimination, but couldn’t figure out how to use the information about e to finish the solution.  Any thoughts?


What is the remainder of $3\text{^}(15\text{^}2019)$ when divided by $29$?

I think you are supposed to use Fermat's little theorem but I don't know how to apply it. I tried using exponent laws but I don't know about any such laws that work in this scenario.


I am running Ubuntu 14.04 and windows XP in dual boot mode. I am ready to kick XP to the curb and only run Ubuntu. How do I do this and not lose my settings in Ubuntu?


I have a 1TB hdd, which I have been using for 9 yrs and which had 10.10 maverick on it. the other day I booted it up and I was taken to the grub screen then into a initramfs screen...   I can't get into the OS anymore... I know that OS is outdated but I want to recover the data on there and put it on another HDD  What should I do?


Can any one tell what is numeric promotion?


In Bayesian hypothesis testing, where one actually commits to estimates of the probabilities of each hypothesis, an analog of the Bonferroni correction is easy to justify. Namely, in the multiple comparison scenario, we might ask when Bayesian hypothesis testing: "what is the probability that at least one of these hypotheses is true, already knowing the probability of each individual hypothesis separately?". Then the  should give something analogous to Bonferroni.     Question: Is there an analog of Benjamini-Hochberg for Bayesian hypothesis testing?   More generally I am interested in the extent to which the theory for the multiple comparison problem is analogous between Bayesian and non-Bayesian hypothesis testing. But for the sake of specificity, and since that is the method I am most interested in right now, I refer to the Benjamini-Hochberg procedure. In particular, it is unclear to me whether the absence of p-values in the Bayesian setting makes procedures or considerations like Benjamini-Hochberg irrelevant.  Pointers to references will more than suffice for an answer. But of course if you want to share your unique insights into these issues, please do not hesitate.


Examples for almost-semirings without absorbing zero

What is an instructive example of a set $X$ equipped with two monoid structures $(X,+,0)$, $(X,\cdot,1)$, such that $+$ is commutative, the distributive laws hold, but $0 \cdot x = 0$ or $x \cdot 0 = 0$ do not hold?  Notice that in case these two absorbing laws hold, one calls $(X,+,0,\cdot,1)$ a semiring. At first sight, it might be surprising that these laws have to be imposed, but this is quite natural from a more general point of view, namely the multiplication $\cdot : X \times X \to X$ should be an additive monoid homomorphism in each variable, and it is known that one has to demand that monoid homomorphisms preserve the neutral element.


In Captain America: The First Avenger, Bucky dies before coming back as The Winter Soldier in Captain America: The Winter Soldier.  Why was he chosen to become The Winter Soldier and how was he resurrected after his death?


Do professors get paid for supervising students?

Do professors get paid for supervising PhD students / honours student's projects?  If so, typically how much?


I am writing a Angular web app that needs to do regex pattern matching for input fields. One of the fields is for a registration key. We have two distinct key formats. Our older products used a simple key that was created using the users name and some unique digits. So this regex matches that format...  ^([^\s^\\]){1,10}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}$   the newer products use a more robust key that matches this regex format....  ^([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}$   I want to have a single input control in my app that will accept either format but only evaluate to true if it matches one or the other, nothing in between. Is there some way to do an OR in regex to make it so the the input has to match one or the other? I'm actually using the HTML5 pattern parameter and Angular's built in Forms stuff to do the validation. So I'd rather not do it in code if I don't have to. But I will if that's the only option.


I'm trying to draw two automata for these two languages:   For the first one, I know that the minimum is n = 1, m = 1, but I'm having troubles drawing a NFA for it.  The second one the minimum is n = 2, m = 1, but I still don't know how to start the NFA.  I have this for q2:


someone  with two distinct changes, one of which was good and one bad. (The first improved the markup of the answer, the second introduced a bug in the code)  Could the reviewers be given the option to approve(or rollback) separate hunks of an edit? ...Or even better: could the post author be given this option?  I reverted the bad change through a new edit, but it would have felt better to rollback the bad hunk with a comment to the editor.


How would I go about evaluating...  $$\int_{0}^{2}\int_{0}^{4-x^2} \frac{xcos(3y)}{4-y}dydx$$  I don't really have any work to show, since I don't even know how to start this problem, but I'll offer my thought process to show you what I've thought about and we'll see where to go from there.  I can't think of any particular reason why circular, spherical or cylindrical substitutions would make sense here. For this reason, I feel like a different type of substitution would be necessary...but...what? I don't know what type of substitution would make this easier. I couldn't just say that $ u = 4-y $, because in the numerator, I already have that nasty $ cos(3y) $ term.   Any help would be greatly appreciated.


I'm doing some stuff to share a hair style for Jinryuu's DBC/NC mods, but I need pictures of it. I haven't been able to find the screenshots folder, or even the .minecraft folder! I am using Windows 10.


How would I connect to a proxy on Ubuntu Studio?

So I am running Ubuntu Studio on my laptop and what do I do to connect to a proxy? I search for proxy and in network settings their is no PROXY tab. What are key words in the tabs to look for?


How to change the Orientation of the Local Origin?

I have a mesh with a crooked origin. I understand how to center the Origin to its center of mass, a component selection or to the 3D Cursor. No issues here. What I can't seem to find is how to Align, or Oriente the origin to affect the Local Origin of my Object permanently. It seems that all Origin tools affect the Location of the Origin, but not the Rotation. Thoughts? -Berube


Showing that Möbius band can't retract onto the boundary circle

Trying to prove that Möbius band can't retract onto the boundary circle, I got an idea that I must show the below thing.   If $\alpha\in\pi_1 (\partial M)$  is a generator, its image $i^*(\alpha) \in \pi_ 1 (M)$  under the inclusion $i:\partial M\to M$  is the square of an element of $\pi_1 (M)$.  I can visualize such phenomenon in my head, but can't formulate an argument using explicit homotopies and paths. Could anyone suggest me how to rigorously prove the above fact?


Visualize and Visualise national recognition?

Which spelling is recognized more as the proper spelling globally?


I have runkeeper installed and within the app they direct yoy to there website to create routes. However when I browse to runkeeper.com it redirects me to the playstore app automatically.  How can I force to open and browse the website?


I'm not sure how floating point are represented in C, and how much of a precision someone could get. In a c source file, I have the macro:  #define NUMBER 123.367   In the main function there are these 2 instructions:  float x = NUMBER; printf("x is %f\n", x);   When I run it, I get:      x is 123.366997   Which is quite close to 123.367, but it kinda messes the purpose of the program. Is there any way to round up x to the desired value? Or is this a flaw of floating point arithmetic-representation that can't be fixed?


Which non-abelian finite groups have the property that every subgroup is normal?

If $G$ is an abelian group, every subgroup $H$ of $G$ is normal.  I searched for non-abelian finite groups $G$ , such that every subgroup is normal and GAP showed only the groups $G'\times Q_8$ , where $Q_8$ is the quaternion-group of order $8$ and $G'$ is an abelian group with the additional property that $C_4$ is not a subgroup of $G'$. The largest group I found with GAP was $C_{15}\times Q_8$.     Is it true that every non-abelian finite group $G$ with the property that every subgroup of $G$ is normal, is isomorphic to $G'\times Q_8$ with an abelian    group $G'$ without $C_4$ as a subgroup ?


How do I determine whether Windows 7 is 32-bit or 64-bit?

I have a Windows 7 computer. How do I determine whether my Windows installation is 32-bit or 64-bit?


How to convert float raster to vector with python GDAL

I have float raster and now I want to convert it to vector. How is it possible with the Python GDAL library?  I have tried with gdal_polygonize.py of GDAL utilities on the command line and it worked excellently. But this utility is based on GDALPolygonize() of C++ library and I want to C++ method GDALFPolygonize() to be used instead, which manipulates float raster data as far as I know.


Generate some number of lists of pairs given a list of people

Given a list of people:  [   1,   2,   3,   4,   5,   6 ]   The goal is to generate some number of lists of pairs.  [   [     [1,2],     [3,4],     [5,6]   ],   [     [2,3],     [4,5],     [6,1]   ],   [     [3,1],     [5,2],     [4,6]   ],   [     [2,6],     [3,5],     [4,1]   ],   [     [4,2],     [5,1],     [3,6]   ] ]   Each list of pairs represents the schedule for that week. Each pair represents the people who should meet with that week.  In the example above, in the first week, persons 1 & 2, 3 & 4, 5 & 6 will meet. In the second week, persons 2 & 3, 4 & 5, 6 & 1 will meet and so on until everyone has meet with each other.  After some experimenting, it appears that for a list of n people, if n is even, there will be n - 1 lists of pairs. If n is odd, there will be n lists of pairs and one person will have a bye week where they don't meet with anyone.  Is there an algorithm to generate this list of pairs given a list of people?


How does one find the algebraic solution of a Complex number raised to the power of another Complex number?  Here is the work I have done so far, if there are any mistakes please inform me.  A real number with a Complex Exponent: $$A \in \Bbb R, \space z \in \Bbb C,\space z = x + iy$$ $$A^z = A^{x+iy} = A^xA^{iy}$$ $$\implies e^{iy\ln A} = A^{iy}$$ $$\exp(iy\ln A) = \cos (y\ln A)+i\sin(y\ln A)$$ $$A^z = A^x[\cos (y\ln A)+i\sin(y\ln A)]$$  A Complex number with a Complex Exponent: [Using previous variables] $$C \in \Bbb C,\space C = a +bi\space|\space re^{i\theta}, \theta =\arg C$$ $$C^z = (a+ib)^z$$ [After previous mistake the following notes are inaccurate] $$C^z = a^x[\cos (y\ln a)+i\sin(y\ln a)] + ib^xib^{iy}$$  And this is as far as I could go as the expansion of $ib^xib^{iy}$ is being problematic. Could I have some help with this expansion?


Consider the Roberston Walker metric in 4D, $$ds^2 = -dt^2 + a^2(t) \left( \frac{dr^2}{1-kr^2} +r^2 d\Omega^2_2 \right)$$ Now, if we consider the collapse of a spherically symmetric fluid, spherically symmetrythen requires in general its 4-velocity to be as $$u^\mu = (u^t(t,r), u^r(t,r),0,0),$$ where I ignore normalization here for simplicity. In most papers, I see that they pick what looks like a special case of the above by taking $u^r = 0$ (which they then call co-moving coordinates). Is there a particular reason why we do not seem to mind that this is only a special case? Indeed, at first view, it would seem that it should be in principle possible to find other solutions for which $u^r \neq 0$ identically. How would these two different solutions then be related?


Is there any way to simplify the product of cosines?

I recently saw a problem: Estimate the following: $cos(\frac{\pi}{15})cos(\frac{2\pi}{15})\ldots cos(\frac{7\pi}{15})$, and the options were between different consecutive power of ten.  How would I do this, no calculator of course, and is there's any way to shorten any general products of sines or cosines or other trig functions?


How do I show that the set of natural number N has the same size as NxN?

How do I show that the set of natural numbers $\mathbb{N}$ has the same size as $\mathbb{N}\times\mathbb{N}$? I know that for two sets to have the same size, there must be an injection from the set $\mathbb{N}$ to the set $\mathbb{N}\times\mathbb{N}$ and there must be and injection from the set $\mathbb{N}\times\mathbb{N}$ to the set $\mathbb{N}$.  But I have no idea on how to prove this.


I am working on the lab which is allowed to ask other people for hints.  Below picture is part that I don't understand.    In the image, program called "Audacity" is used to capture that waveform.  My question is, is there a way to convert each Y-axis values of each pulse in signal in audacity into volts? (since the description in the photo made an example with volts V)  For example, first pulse in first signal in the picture, I can assume that it spans from around -0.1 to +0.8 by just looking at it. How can I convert this value into volt, V?


How to remap Super(left) key to control key

Could anyone please tell me how to remap my Super(left) key to Ctrl key?  I mean Super(left) should work as Ctrl key.


sorting instance of dict_items/sorting dictionary by value


How to determine the convergence of $\sum_{n\geq 2}{} \frac{(-1)^{n}}{(-1)^n+n}$?

This is most likely very easy to show, but with the load of midterms I had, my brain just declines to work properly. How do I determine the convergence of $$\sum_{n\geq 2}{} \frac{(-1)^{n}}{(-1)^n+n}$$?


Today I was cut off in the middle of the following sentence:     Between Cook, Strauss, and Pietersen—   My friend said I was wrong. He said that for more than two entities, among/amongst are used, and that between is only for two entities.   I vaguely remember some rule like this, but I asked him to hear the whole sentence, which was:     Between Cook, Strauss, and Pietersen, they’ve notched up 56 centuries in Test cricket.   Should I have used among here? Seems correct to me to use between, but my friend was certain.   Another friend pointed out the following sentence:     I’m still choosing between Harvard, Yale, and MIT.    Certainly among doesn’t seem to fit here, and she, to me, was correct in using between.


How to show fullscreen popup window in javascript?

Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This:  window.open(src, 'newWin', 'fullscreen="yes"')   apparently only worked for old version of IE.


Why am i getting this Drush error after updating a site?

I use Drush 8.1.17 to update my Drupal 7 sites, and as I have been updating my sites today after the latest security update I have noticed that after I update a site if I try to run any update related command (ex: drush up -n | grep available) I get this error:  The external command could not be executed due to an application error.                                      [error] The command could not be executed successfully (returned: PHP Fatal error:  Uncaught                         [error] TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///usr/local/bin/drush/includes/.." in /srv/www/htdocs/fac-dev/misc/typo3/drupal-security/PharExtensionInterceptor.php:39 Stack trace: #0 /srv/www/htdocs/fac-dev/misc/typo3/phar-stream-wrapper/src/Behavior.php(72): Drupal\Core\Security\PharExtensionInterceptor->assert('phar:///usr/loc...', 'url_stat') #1 /srv/www/htdocs/fac-dev/misc/typo3/phar-stream-wrapper/src/Manager.php(83): TYPO3\PharStreamWrapper\Behavior->assert('phar:///usr/loc...', 'url_stat') #2 /srv/www/htdocs/fac-dev/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php(412): TYPO3\PharStreamWrapper\Manager->assert('phar:///usr/loc...', 'url_stat') #3 /srv/www/htdocs/fac-dev/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php(401): TYPO3\PharStreamWrapper\PharStreamWrapper->assert('phar:///usr/loc...', 'url_stat') #4 [internal function]: TYPO3\PharStreamWrapper\PharStreamWrapper->url_stat('phar:///usr/loc...', 2) #5 phar:///usr/local/bin/drush/includes/filesyste in /srv/www/htdocs/fac-dev/misc/typo3/drupal-security/PharExtensionInterceptor.php on line 39 , code: 255) pm-updatestatus failed.   Does anyone know why this error only appeared after I updated the site and how I can fix it?


A Direct Summand of Finite-Free Module over a Local Ring is Again Free.

Let $R$ be a local ring (commutative with identity) and suppose we have $M$ and $N$ submodules of $R^n$ such that $M\oplus N\cong R^n$. Then $M\cong R^s$ and $N\cong R^t$ for some $s$ and $t$ such that $s+t=n$.   I am completely lost here.


How can I get Internet Explorer 10 or 11 to install on Ubuntu 16.04

I'm trying to get IE 10 or 11 to install with wine an get stuck with either "Operating system not supported" when wine is set to vista or win 8, or "Internet Explorer needs an update before installing" Win 7. The required update appears to be Windows 7 Service Pack 1. Is there any way I can get the windows 7 in wine to service pack level 1.  I'm no fan of IE or Edge but I have an important needed program (Sabre Red) that apparently has a dependency on Internet Explorer 10 or later in order to run. This is my primary holdup to escape the MS stronghold as my primary production machine.  Thanks in advance for any help.


Have "Interesting Tags" that are combinations of tags

There are many tags that can have multiple uses.  This is fine and good.  However, it would help in finding questions that I can actually answer if there was a way to join tags for my Interesting Tags and Ignored Tags.  Here is an example to make it clearer:    Tags:  Generics and .Net    or  Tags: Generics and Java    The first one I can help with.  The second one I know very little about.  I know a bit about Java in general, so I don't want to add that to my ignore list, but I am not much help with a deep Java Generics issue.  This would also help some with categorization.  There are tags like [wpf-binding].  That tag is used because databinding can be for WPF or other things.  This leads me to tag my WPF Databinding questions with both (wpf-binding and databinding)  Anyway, I am not dying to have this feature, it just hit me as a good idea so I thought I would throw it out there.


How to trigger 12v environment on PowerBank

The Desired Result: via rechargeable battery, power a 12v 1 meter led strip that takes 1.2 amps.  I have purchased an orico power bank with 12v 1.35amps output as it meets the dimensions needed for the project.   The issue: the power bank automatically detects the charing environment and currently is stuck with the 5V output option and can not power the leds.   Possible Solution: I am curious if there is a way to, perhaps use a micro-controller to cause the power bank to detect the desired charging environment to output the 12V.    alternatively: if there is another power bank that outputs 12V and 1.35+amps close to these dimensions: 102 x 76.8 x 21.5 mm that doesnt require additional steps, id be open to purchasing another. ( I have searched quite a bit for rechargeable packs and seem to have only found the one listed above)  or  some configuration of rechargeable batteries like the 18560 to power it (I'm just hoping to use a recharge pack as it often has additional feature to keep it more safe)


I have a directory full of images:  DSCN4749.JPG DSCN4750.JPG DSCN4892.JPG ...   And I would like a one-liner to rename them to (say).  dscn4749.jpg dscn4750.jpg dscn4892.jpg ...   How do I do this?  Alternatives/extenstions/caveats   I want to recurse The directory contains a mix of file types I only want to rename DSCN*.JPG files. bash solution perl solution zsh solution I want a new directory tree with hard links existing files. I want to change name more than just a case change eg dscn5555.JPG to 05555.jpg   ...


How to uninstall matlab from ubuntu 14.04

How can I uninstall matlab from Ubuntu 14.04? Its not a licensed one I guess.   When I run: sudo apt-get purge matlab-support, it shows: Matlab not installed  Also tried sudo apt-get purge matlab  Can anyone please help me?


Asking for help regarding Statement of Purpose

I am a Masters' student applying from India to US graduate schools for a Ph.D. in Mathematics(some of them are top departments like Stanford, MIT, UCLA, Berkeley, Illinois Urbana-Champaign). I wish to work at the interface of Analysis and Differential Geometry. Hence, I wanted to explore Geometric Analysis and took extensive differential geometry courses, a winter course on Geometric Measure Theory and did self-study on Geometric Analysis. However, as we did not have anyone in our department working in these areas, I did my Masters' thesis (ongoing) on noncommutative geometry. For this, I studied operator algebras, followed by compact quantum groups and am currently working with quantum isometries of noncommutative manifolds.  I am a little confused about what I should include or exclude from my Statement of Purpose(SOP). I have written that I am interested in both Analysis and Geometry and have mentioned: (1) Geometric Analysis, and (2) Operator Algebras and Noncommutative Geometry, as the fields that interest me. Then I explain my background in both. Is this a valid approach? Or will it give the impression that I don't have a well formed research interest and work against my selection at the graduate school?     While I was towards the end of my school life, I had a publication modelling a small physical problem. I am currently developing it into pedagogic material with a retired professor in the USA. Also, during my undergraduate studies I had two more publications in applied mathematics (control theory). I am including the first one in my SOP to illustrate my motivation in research from younger days. But should I include the other publications? I am afraid that I might run the risk of giving the committee the false impression that I am too inclined in applied mathematics.


How to create a label containing values from different layers in QGIS

I have several layers which are stagged on each other. I need to create a label (or text-window / description, doesn't matter) which should contain values from different layers. Creating a regular label I can only choose attributes from this layer. Because the features have different nodes, it is not possible to just merge the layers.


2017 macbook pro multiple monitor setup for a photographer

Hi :) I've got a 2017 macbook pro w/ touch bar  According to this site:        2nd Display Support:  Dual/Mirroring*     2nd Max. Resolution:    4096x2304   (x4*) Details:    *In addition to simultaneous support of the internal   display, this model supports a maximum resolution up to 4096x2304 at   60 Hz at millions of colors on four external displays or two external   displays at a maximum resolution up to 5120x2880 at 60 Hz at over a   billion colors via Thunderbolt 3 (USB-C).   If I'm reading that correctly, it means you can connect up to 4 external displays, and they can be 2K or 4K displays.  If it's a 5K display, you are limited to only two of them?  If I wanted to a setup with 3 external displays that are 2K resolution, how would I set that up?  Do I need adapters for all of them? Is there something I can get that would daisy chain all the monitors together from a single USB-C?  Any help or guidance would be appreciated.


Let $f =f(x(t),y(t))$  Then the total derivative of f with respect to t is given by:  $$\frac {}{} = \frac {}{} + \frac {}{}$$  Say still we have  $f=f(x(t),y(t))$. What is then $\frac {\partial^2 f}{ \partial t^2} $? Is it just $$ \frac {\partial f}{ \partial x} \frac {d^2x}{dt^2}+ \frac {\partial f }{\partial y} \frac {d^2y}{dt^2} $$ ? (Just by applying chain rule again?)  Also, this seems to be related to the Jacobian  J=J(f). Is this correct? If so, can we define $\frac{\partial^2 f}{ \partial t^2}$ as $JJ^T$ , where $J^T$ is the transpose of $J$?


I already saw that I get 3 candies when I catch a new Pokémon for the first time.   What are the others ways to get candies?


Theorem: $X$ is a finite Hausdorff. Show that the topology is discrete.   My attempt: $X$ is Hausdorff then $T_2 \implies T_1$ Thus for any $x \in X$ we have $\{x\}$ is closed. Thus $X \setminus \{x\}$ is open. Now for any $y\in X \setminus \{x\}$ and $x$ using Hausdorff property, we get $\{x\}$ is open.  Am I right till here? And how to proceed further?


Trilateration algorithm for n amount of points

I need to find algorithm that can calculate centroid A (aka gravity center, geometric center, center of mass) from the figure where circles T1,T2,T3,T4,T5,..,Tn intersect AND length of line R from centroid to farthest corner of mentioned figure   Following information is given:   T1   Latitude    =   56.999883   Longitude   =   24.144473   Radius  =   943 T2   Latitude    =   57.005352   Longitude   =   24.151168   Radius  =   857 T3   Latitude    =   57.005352   Longitude   =   24.163356   Radius  =   714 T4   Latitude    =   56.999042   Longitude   =   24.168506   Radius  =   714 T5   Latitude    =   56.994226   Longitude   =   24.15709    Radius  =   771   Result should look like this:  A Latitude = XX.XXXXXXX    Longitude = XX.XXXXXXX  Radius = XX    As you probably already figured out, I am working on software that can find device location by closest Wifi Access Points or Mobile Base stations, as number of access points or base stations might change, I need an algorithm that can adapt to uncertain amount of points.  There are some similar questions  and , but none of them exactly answers to my question.


Firefox is aksing me to choose an application when I try to download something, but I can't find any of them - I just find folders

When I click on a link to download something, such as a torrent, I guet a window that asks me to select an application. I want to choose a software on my computer (like transmission), but the only things I can find are folders (.doc, .pdf, .mpd3, etc.).  It does the same when I want to download from the Ubuntu apps directory.   I have checked the other topics related to the same problem, but mine is for every download attempts, not just for torrent files.  Is it a general configuration problem ?  I use Ubuntu 12.04 with firefox browser


I need a Broadcom Cooperation BCM4312 802.11b/g LP-PHY Driver  Please note: I have no ethernet card, and my Ubuntu laptop has no internet access.


Is it ethical to refuse a postdoc offer after lab visit

I am a Ph.D. student, close to finishing up. I am looking for a post doc position and have been in talks with multiple professors in various universities. However, most of them want me to visit their lab for a talk or a presentation, without having directly confirmed anything. Although they sound positive about me, there is no confirmation yet. Moreover, this being a relatively early stage of my post-doc job hunt, I haven't truly made up my mind yet.   I would like to know if it is unethical to accept reimbursement for travel and stay to these labs and subsequently refuse the offer, since obviously I can't accept all of them (if they happen to confirm me). Please share your opinion on this.


Calculate force of electric charges "suspended" by strings

In a question:            Two small plastic balls hang from threads of negligible mass. Each   ball has a mass of 0.110g and a charge of magnitude q. The balls are   attracted to each other, and the threads attached to the balls make an   angle of 20.0 deg  with the vertical, as shown in the figure   How do I compute the magnitude of electric force acting on each ball?   I tried using coulomb's law: $F = k \frac{Q_1\cdot Q_2}{r^2} = 2.248 \times 10^{13} q^2$ but seems like the answer is wrong. The hint was that the answer did not depend on $q$ I guess I have to use other info? But how?


What Can Be Done To Secure Ubuntu Server?

I have a project to secure Ubuntu Server as much as I can. The server is a web hosting server. The server will be running LAMP , Mail , and DNS.


See the last comment on  and the comments on  for more details. In those two cases, I tried to tag a user and the tag just vanished. Now I don't know if that is normal at the start of a comment or with those users, or both, or if it's a malfunction, but I wanted to report this and ask if it was or not a bug in the @-tagging function. And since it was from two different SX sites, I thought I'd ask about it on the general Meta, i.e. here, rather than on the Meta of either of those sites.


Show that $\lim\limits_{n \to \infty} \frac{(n!)^{1/n}}{n}= \frac{1}{e}$

Show that $$\lim_{n \to \infty} \left\{\frac{(n!)^{1/n}}{n}\right\} = \frac{1}{e}$$   What I did is to let $U_n = \dfrac{(n!)^{\frac{1}{n}}}{n}$ and  $U_{n+1} = \dfrac{(n+1)!^{\frac{1}{n+1}}}{n+1}$. Then  $$\frac{ U_{n+1} }{U_n } = \frac{\frac{(n+1)!^{\frac{1}{n+1}}}{n+1}}{\frac{(n!)^{\frac{1}{n}}}{n}}$$  Next I just got stuck. Am I on the right track, or am I wrong doing this type of sequence?


How to view the properties of a word document using the Terminal window

Can someone please advise how you would be able to view the creation of a file i.e birth of a file. The stat command in the terminal doesn't work for me. thanks


Blackboard bold variants for Greek letters

It is common (or it used to be) to use a blackboard-bold variant of \mu to denote roots of unity in some mathematical papers.  However, despite searching (several times, periodically over several years) I have never been able to locate any package or technique that makes this possible, other than using Metafont or possibly hunting through the font definitions to see if it is something I can create a variant of (along the lines of the suggestions in Section 8 of the Comprehensive LaTeX symbol list).  Thus far, I haven't been sufficiently motivated to learn how to do any of this (although it probably would have resulted in a net time savings), and I feel like I cannot be the only person who would have tried.  Is anyone aware of an existing way to produce this character?


How do I get icloud to stop emailing me about my google calendar events?

iCloud, iCal and Mail integrates pretty well with Google Calendar, even though they are not both from Apple.  But I have a hassle when it comes to Calendar Notification in Mail App specifically.  I get notifications correctly on OS X, iPhone, about Google Calendar. But, my Mail.app keeps trying to send me emails about my notifications, so I either get duplicated emails (from both Google ou Apple) or, nowadays, I get hundreds of Draft in Mail since I've got 2 SMTP address from both accounts in Mail and it prompts me in each to decide which server show be default.  The thing is. I don't want either. What I really wanted is that Mail could stop sending me mail alerts, but keeping Google Calendar and iCal/iOS calendar in sync.   Thanks!


If the actual size of a 1TB Hard Drive is 931GiB, would it not be possible for manufacturers to create a 1TiB Hard Drive and market it as 1TB?

I wanted to know more about whether there are technical issues with building a 1TiB Hard Drive (same for 1GiB, 1MiB, etc.) Do these things relate to how 8 bits fit into a byte, and how computers operate?   Or are we simply in a time where manufacturers have decided to just continue with the status quo of building 1TB Hard Drives that are 931 GiB, and there are no actual technical issues that would arise from creating a 1 TiB Hard Drive (marketed as 1TB).  Thanks


Is it worth it to take a car loan to improve credit ratings?

I've been considering buying a car recently, but I know that, as I am young, I don't currently have a credit score, as I really haven't needed credit up until now.  So, would it be better to take a loan out on this car/lease the car/just pay in cash, given that eventually I might want to buy a house (which is currently something that I couldn't pay for in cash).  EDIT: Note that this is different from other questions that have been mentioned due to the fact that I currently don't have a credit score at all, and due to the current financial markets, it may now be possible to make more by investing the money than the payments on the potential loan.


Which one is more acceptable?     1. Each boy and each girl has done his duty.      2. Each boy and each girl has done his or her duty.      3. Each boy and each girl has done their duty.   Edit: Here is what I think.  I think (1) isn't acceptable because 'his' is in masculine gender, which doesn't fit the noun 'girl'. (3) isn't acceptable because the verb 'has' is singular but the pronoun 'their' is plural. (2) is ok but the expression "his or her" looks awkward.


Make WordPress search for only this tags or exclude certain tags from search

Is there something like a function for letting the WP search form search for ONLY some tags you fill in. in example:  function wordpress_search{     //search for tagname1, tagname2, tagname3 }   If that is not possible, will it be possible to do the opposite? So to exclude tags from search?  I have no idea where to begin and google only points me to plugins where you have to (un)check a checkbox in every article


$Null (A) \subseteq Null(A^T A)$ if and only if $Null(A^T A) \subseteq Null(A)$

Let $A$ be an $m \times n$ matrix. Show that $Null (A) \subseteq Null(A^TA)$ if and only if $Null(A^TA)  \subseteq Null(A)$.   I can not really come up with the idea how to show that. Can someone help me? I would really appreciate that.


How to remove "switch user" button on Windows 7 lock screen?

Is there a way to remove the "switch user" button shown in the photo below?  Thanks!


Proof for absolute value inequality of three variables: $|x-z| \leq |x-y|+|y-z|$

$|x-z| \leq |x-y|+|y-z|$  We know that both LHS and RHS are non negatives. So, I thought of proving this by comparing the squares of both sides but can't advance beyond that step. Any help would be appreciated.


how to make bokeh background in cycles just like picture shows and also can change color.


Is there an easier or more 'correct' way to open gedit as root?

I have ubuntu 12.04 running in a virtual machine on virtual box.  Its existence is mainly as a 'toy' to play about with Ubuntu, so for this reason I wanted the GUI (is that what 'Dash' is in ubuntu 12.04?  Anyway...)  One thing I am currently using this machine for is a LAMP server.     I use 'gedit' to edit my files, but because I haven't correctly set permissions yet I just open it with sudo in terminal.  Just now, to try to simplify this process I created a shell script on the desktop with a very simple job - sudo gedit  I can't help thinking there must be an even more obvious way to open gedit as root from the GUI than this.  So is there?  Edit:  I just 'improved' my script by replacing sudo with gksudo.  Now I don't have to have a terminal window open while gedit is open.   So I guess this is quite convenient for now :)   It would be good, for the sake of knowledge, to know if this is anything close to how the more seasoned ubuntu users would do this type of thing.


What is 'casting nines' - how and why does it work mathematically?

I have never encountered this term before and was never taught this at school.  What is it used for and what mathematical principle does it rely on to work?


Getting missing holes when cutting holes into a cylinder

I'm trying to cut a bunch of holes (created using two Array Modifiers and an empty) into a cylinder using a boolean modifier. It looks legit in the wireframe. However, when I turn on the shading mode, I get this instead:    Some of the holes are clearly missing. I'm not sure what's going on.


What happens when the black hole at a galactic core eats the galaxy?

I'm making several assumptions, not sure if any are correct:   there is a black hole at the center of a galaxy the black hole is eating the galaxy   Eventually the galaxy will be gone, right?  Has this been observed? Do we know what happens afterwards?  Posting here since astronomy got merged into physics


Selecting a front derailleur: parameters

The spec sheet for the Shimano Alivio FD-M430 front derailleur contains a number of points that I don't understand.   What does "Maximum capacity: 22 teeth" mean? Why are "Top gear teeth" constrained to "44/48T"? Is there anything wrong with 46? What is "Cable Routing: dual-pull type"? And most puzzling, what is "Chain Stay Angle  63-66 / 66-69" and how do I measure mine?


I want to write line such that there is no indentation of the beginning line for the paragraph, but there is an indentation from second line onwards. For instance.   This is what I am saying. This is what I am saying. This is what I am               saying. This is what I am saying. This is what I am say-              ing. This is what I am saying. This is what I am saying.    I am facing diffiulty in how to do this Latex. Any suggestions will be appreciated. Thanks!


Where is the .minecraft folder on Windows 10?

I have windows 10 and have already tried holding the Windows button and R at the same time.  I typed %appdata% and couldn't find it, so then I typed %appdata%\.minecraft but to no avail.  What am I doing wrong?


Screensharing option is not working in Skype 8 with Ubuntu 17.10

I have installed Skype 8 in Ubuntu 17.10, in that the screen sharing option is not working. The option itself is not available in the "+ option" during the call.  It was working fine in Ubuntu 17.04


I have just learned that one should "Never defragment your SSD". But I have no idea if that is true.  I believe that Windows 10 was automatically scheduled to finish  defragmentation on my SSD, but I cancelled it. Would it cause any problems for defragmentations done before?  The SSD is still not partitioned, because I cannot see the SSD drive in My Computer folder, only in system hardware manager. What are the correct steps I should take to install Windows on an SSD (it's my first SSD)?


Can I set a breakpoint on 'memory access' in GDB?

I am running an application through gdb and I want to set a breakpoint for any time a specific variable is accessed / changed. Is there a good method for doing this? I would also be interested in other ways to monitor a variable in C/C++ to see if/when it changes.


Independent assessment of a selected model

The test data set is used for an independent assessment of the selected model, can anybody explain how this process works?


Dynamic target for declarative service in OSGI

Given a consumer which uses a service, how can this consumer select a specific provider dynamically using declarative service ?  Example  Service.java  public interface Service {     public void do(); }   Provider1.java  public class Provider1 implements Service {         @Override     public void do(){         //a way      }    }   Provider2.java  public class Provider2 implements Service {         @Override     public void do(){         //another way      }    }   Consumer.java  public class Consumer {     private Service myService;      protected void bindService(Service s){ // Actually it's Provider1         myService = s;     }      protected void unbindService(Service s){         myService = null;     }      public void useThisKindOfService(String s){         // Do something crazy     } }   So, what I would like it's instead of "Do something crazy", to find a way to reconfigure the consumer in order to release Provider1 and ask for Provider2.  Is it possible ?   Update related to "Duplicate Question"    In my context I cannot use the declarative target because the value of the target has to be know at build time, in my case the target could be defined by a user at runtime.


Threads created in for loop does not work

So I am currently experementing with Sockets and I want to have 3 ports open for client sockets to connect to. So this works if I manually add my threads. Thread t = new Thread(() => SyncServer.StartListening(new IPAddress(new byte[]{127,0,0,1}), port)); t.Start(); Thread t2 = new Thread(() => SyncServer.StartListening(new IPAddress(new byte[]{127,0,0,1}), port + 1)); t2.Start(); ....  But I want to do it a bit cleaner so I tried with a for loop List<Thread> threads = new List<Threads>(); for(int i = 0; i<3;i++) {     Thread t = new Thread(() => SyncServer.StartListening(new IPAddress(new byte[]{127,0,0,1}), port + i));     t.Start();     threads.Add(t); }  The socket server does fully work but when I work with threads and add them manually. If I work with a for loop, the socket server with the port becomes unavailable. Probably because the thread is stopped and I fail to understand why. Note: SyncServer is a static class and StartListening is a static method. If I use a for loop, they always get the latest portnumber (in this case 11003).


How to find an item in array which has the most occurrences

How do I find an item in array which has the most occurrences?  [1, 1, 1, 2, 3].mode => 1  ['cat', 'dog', 'snake', 'dog'].mode => dog


This is far from a game breaking oversight but it been bugging me for sometime.  Why isn't Jungle part of the rules for different environments?   Now ever since Tolkien the fantasy genre has as a rule been Eurocentric with a focus on western feudalistic societies. As a result most natural environments and settings depicted in fantasy is usually Northern European forests and mountains. DnD's different settings through the years has been no exception. That said not including one of the largest natural environments on Earth in the core rules is kind of a glaring oversight.  I feel it worth stifling one counter-argument I know will crop up before it does. Jungle isn't (or at least shouldn't be) covered by the rules for forests. It's easy to equate jungle with rainforest. The thing is not all jungles are rainforests nor is all rainforests jungles. In fact, there exists coniferous rainforests. Just as there exists plenty of jungles that isn't forests at all.


Mention two-body-problem in PhD applications? If so, where?

My significant other and I finish our master degrees at the same time and thus we are applying for PhD programmes at the same time. One major factor of accepting a potential offer would be if we could study at the same university, so I feel that mentioning a two-body problem would be advantageous for both, us and the admission committee. But where do I mention this? Is a line in the statement of purpose suitable here?     If you admit me, please also consider admitting my significant other Jane Roe.   Some additional information: We both do research in computer science. While I do research in natural language processing my partner does research in computer vision.


testing soql in apex with the developer console

I put this code into the execute anonymous windows:  List<Id> ids =  new List<Id>(new Map<Id, Account>([select Id from Account]).keySet()); system.debug(ids);   I get a list of ids in the log as expected.  But then when running a test:  @IsTest public class AccountProcessorTest {  static testMethod void testCountContacts(){     Test.startTest();     List<Id> ids =  new List<Id>(new Map<Id, Account>([select Id from Account]).keySet());     system.debug(ids);     AccountProcessor.countContacts(ids);     List<Account> testers = [select Id, number_of_contacts__c, (Select Id from Contacts) from Account where Id in :ids];     for (Account test :testers){         System.assertEquals(test.number_of_contacts__c,test.contacts.size());                 }     Test.stopTest(); }   I get nothing, ids is null.  Then, of course, when I pass it into my actual controller to test, it doesn't work.  Is there a way to step through the code to see if it works.  I know its all run on the server etc. but google figured it out with their google sheets, etc.  salesforce can't do the same thing?


Is there an explanation for how the Klingons look in the rebooted Star Trek films?

Klingon appear in the new JJ Abram's Star Trek reboot films. Based on the various canonical explanations of head ridges vs. no head ridge Klingons (epidemic disease or whatever), and the timelines of those vs. the splitting of the TOS vs reboot timelines it would seem that they shouldn't have ridges.    Has anything been said about the reasons for their possession of head ridges?


iTunes sometimes doesn't recognize connected device

When I plug in my iPad or iPhone (USB), iTunes frequently recognizes its presence.  BUT, nearly as frequently, it doesn't seem to notice the device at all.  Un-plugging and re-plugging does no good.  The only thing that seems to help is quitting and then re-starting iTunes -- which I seem to need to do more and more often any more.  iPhoto, BTW, seems to always recognize that a new device is present.  Ideas?


Is it really possible to create some mass only from equivalent energy?

From Special theory of relativity we know that $E=m_0 c^2$, which says about mass energy equivalency.  But my question : **Is there any real experiment where some mass is created purely from energy? **


I have an error "apt-get -f install", help me fix it

So in the last time I kinda' broke my Ubuntu server and I'm getting the following error, I want to say that I deleted some of the libjpeg8:i386 things and now I can't install any packages!  root@s1:~# apt-get install php-apc  Reading package lists... Done  Building dependency tree  Reading state information... Done  You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:   libgd3:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libgphoto2-6:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libsane:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libtiff5:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libv4lconvert0:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   php-apc : Depends: php5-apcu but it is not going to be installed  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).  root@s1:~# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   libjpeg8:i386 The following NEW packages will be installed:   libjpeg8:i386 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 11 not fully installed or removed. Need to get 0 B/2,188 B of archives. After this operation, 26.6 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 247834 files and directories currently installed.) Preparing to unpack .../libjpeg8_8c-2ubuntu8_i386.deb ... Unpacking libjpeg8:i386 (8c-2ubuntu8) ... dpkg: error processing archive /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libjpeg8/copyright', which is different from other instances of package libjpeg8:i386 Errors were encountered while processing:  /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


What is the boat programming meme about?

I remember some time ago there was some huge problem regarding some question that had something to do with a boat, and I think I missed that topic completely. As I see it being mentioned every now and then, I'd just like to know what it was about.


I have been wondering, why can I not write my code like so:  char myChar[50]; myChar = "This is a really cool char!";   Or at least like this:  char myChar[50]; myChar[0] = "This is a really cool char!";   The second way makes more sense that it should work, to me, seeing that I would  start the array at the point I want it to start moving the letters into each spot in the  array.  Does anyone know why C++ does not do this? And can you show me the reasoning behind the right way to do it?  Thank you all in advance!


Can I reinstall Windows 7 32-bit Installer in my 64 Bit laptop. Lost it's user account password

I forgot my password in my 64-bit laptop and I have a 32-bit installer. I have not tried it yet because I am not sure, I will run it in BIOS.


SQL Identity (autonumber) is Incremented Even with a Transaction Rollback

I have a .net transaction with a SQL insert to a SQL Server 2005 database. The table has an identity primary key.   When an error occurs within the transaction, Rollback() is called. The row inserts are rolled back correctly, however the next time I insert data to the table, the identity is incremented as if the rollback never occurred. So essentially there are gaps in the identity sequence. Is there any way to have the Rollback() method reclaim the missing identity?   Am I not approaching this the right way?


Thermistor control of peltier voltage with Arduino (for DSLR chill box project)

I am mildly familiar with electronics, mostly from playing around with electronics kits as a kid. That was a long time ago, though, maybe as much as 20 years ago. I am currently working on a cold or "chill" box for my Canon 5D III, so I can keep it's temperature very low, and very consistent, for doing low noise astrophotography.  I have a general design for the box, and I'm using a single 12v 5.8amp peltier (TEC) attached directly to a copper box for cooling. The box is currently insulated with extruded foam board, and the hot plate of the peltier will be cooled with a water cooler from an old computer kit.   I'm getting more ambitious with my project, however. I want thermal regulation, to maintain a consistent temperature, and I'd eventually like to get into two-stage cooling to achieve a Delta-T of closer to -55-60°C relative to ambient (the chill box will be cooling the camera, so the sensor will be warmer, probably by as much as 10°C, than the temperature of the copper plating in the box itself.) I want to have two primary modes:   Rapid cooling mode, operating the peltier at 12v or higher (max voltage is 15.4v) to quickly cool the box down to the target temperature. Regulated maintenance mode, operating the peltier at lower voltages to maintain a consistent temperature, above the maximum potential cooling the peltier can supply (for headroom as the voltage is adjusted in response to small temperature fluctuations).   I'd like to maintain temperature within 2-3°C if possible. I've looked into Arduino (and I've messed with similar things in the past), and it seems perfectly ideal for the task, with one exception: It doesn't seem to handle the kind of current I need top power a single peltier, and certainly not two.   I've done some research on how I might achieve this, but I'm falling up short on my understanding of the electronics involved. I've found a two-relay "shield" for Arduino Uno that can power two devices with up to 8amps each, and up to 30v each. That can be controlled from the Arduino itself. It seems the design of a relay uses a magnetic coil to actuate a switch that allows an independent power source to be used to power components like a motor, solenoid, or in my case a peltier. I haven't found any way of actually regulating the voltage of the relay with the Arduino, however.  So I kept investigating, and I came across some schematics that showed how to use transistors, specific mosfets to be exact, where the base was connected to an Arduino output, and the collector/emitter were connected to the power loop of whatever needed to be powered at a higher voltage (not sure about current here), and this still allowed control of the voltage.   It's been so long since I messed with any of these components, my memory is extremely rough, and I'm not quite connecting how it all works. I'd be happy with some references to complete examples of powering, and controlling the voltage of, high powered devices via an Arduino, but if anyone here can explain how all this works and why, that would be most ideal. I'd rather understand the concepts, so I can reapply them later, than just have a pattern to follow.


I'd like a hint rather than a full solution.  The problem I am considering is the following:     $X$ is an $n\times m$ matrix $Y$ is $m\times n$      Show that      $(I - XY)^{-1}\cdot X = X\cdot(I - YX)^{-1}$   The first $I$ is of dimension $n$ and the second $I$ is of dimension $m$.


Complex numbers: How to solve the "contradiction"?

$$-1 = i\cdot i = \sqrt{-1}\sqrt{-1} = \sqrt{(-1)(-1)} = \sqrt{1} = 1$$  $$-1 = 1$$  Obviously, something is wrong here, but I can't put my finger on it.    How to solve this "contradiction"?


About ubuntu as server and configuring ip tables

Please help me to setup a linux based server machine for sharing internet connection in my network. Since I am a new user, please assist me ...


How sun gravitational field changes the rate of flow of time on earth

According to the Theory of relativity More the gravitational field slower the time because of more bending in spacetime fabric. Earth orbit is not completely elliptical it means distance from sun is not same throughout the year. When the earth far from sun will the time move faster on earth because of lesser gravitational field of Sun?


My IBM quantum account has been disabled

As shown in the picture above, my IBMQ account is unavailable, and I found that my friend's account is also unavailable, but I have not received any email or message notification. what happened?


New to vim and and I want to be able to compile code from within vim without running a new terminal and calling the compiler.  How do I go about doing this? Note that this requirement is not restricted to gcc only, I sometimes need to call python also on the current script I am working on, so you get the idea...


How do I start from a 10% discount and find the original price?

I have a database of prices that already have a 10% discount.  For example a product could be $100 after a 10% discount.  Is there a reusable formula I can use to determine what the original price was of all the 10% discounted prices in the database?  Edit: Thank you for the fast responses.  Is there any way to account for rounding errors?  A real example is a product with a discounted price of \$129.00  Using the X/.9 formula, I get \$143.33 as the original price, which does not actually work out.  To have had \$129.00 as the discount price, the original price would have needed to have been \$143.34.


I have this two arrays.  url = ["http://www.linkedin.com/in/jannuelanarna", "http://www.linkedin.com/in/jannuela", undefined, undefined];  publicUrl = ["http://www.linkedin.com/in/jannuelanarna", "http://www.linkedin.com/pub/jay-r-bautista/64/b29/45b", undefined, "http://www.linkedin.com/pub/ronilo-canson/75/927/4a3", "http://www.linkedin.com/pub/siddharth-chaudhary/33/aa1/8", "http://www.linkedin.com/in/rojohnh", "http://www.linkedin.com/pub/lara-martinez/74/777/a3b", "http://www.linkedin.com/pub/alena-ortega/69/72a/415", "http://www.linkedin.com/in/nivlek1416", "http://www.linkedin.com/pub/emmar-reveriza/59/a91/132", "http://www.linkedin.com/in/samsanchezcb", "http://www.linkedin.com/pub/mitch-stevens/6b/375/3a0", "http://www.linkedin.com/pub/irish-jane-sumadic/29/339/910", "http://www.linkedin.com/pub/joel-sumadic/45/31b/ab3", "http://www.linkedin.com/pub/luna-cielo-yniesta/68/4b2/690"];   What will be the code so that I could search if a url exist in an array?


I was given a Python test and one of the questions was: what should be passed to the following function, so that it will return True? def fun(x):     if x + 1 is 1 + x:         return False     if x + 2 is not 2 + x:         return False     return True  In my opinion this doesn't make much sense but I just would like to know the right answer (if such answer exists).


So I'm using Latex for the first time everything seems to work, except the citation and \printbibliography. The text in brackets is the cite ID [amsldoc02] not the number [1] and it is bold. I have looked for the problem for some time now and tried different things but I don't seem to find anything that works. My code looks like this right now.  \RequirePackage[l2tabu,orthodox]{nag} \documentclass[paper=a4,oneside,fontsize=11pt,headsepline,toc=bibliography,toc=listof,titlepage=true,DIV=15,BCOR=15mm]{scrbook}  \usepackage[ngerman]{babel} \usepackage{cmap} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[protrusion=true,expansion=true]{microtype} \usepackage[automark]{scrpage2} \usepackage{enumitem} \usepackage[babel,german=guillemets]{csquotes}  \usepackage{booktabs} \usepackage{longtable} \usepackage{array} \usepackage[colorlinks=false,pdfborder={0 0 0}]{hyperref} \usepackage{cleveref}  \usepackage[nottoc]{tocbibind} \usepackage{graphicx} \usepackage{tikz} \usepackage[percent]{overpic} \usepackage{pict2e}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{siunitx} \usepackage{exscale} \usepackage{bm} \usepackage{verbatim}  \usepackage[backend=biber,style=numeric-comp,sorting=none]{biblatex}  \graphicspath{{images/}} \addbibresource{literatur.bib}  \begin{document}      \frontmatter          \include{sections/titlepage}         \include{sections/kurzfassung}         \include{sections/abstract}         \include{sections/erklaerung}         \include{sections/danksagung}         \tableofcontents         \listoffigures         \listoftables      \mainmatter          \include{sections/einleitung}         \include{sections/grundlagen}         \include{sections/konzept}         \include{sections/modell}         \include{sections/konstruktion}         \printbibliography      \appendix          \include{sections/anhang_a}  \end{document}   The .bib file looks like this  @manual{amsldoc02,     author={{American Mathematical Society}},     title={User's Guide for the amsmath Package},     year={2002},     month={2},     version={2.0},     url={ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf}, }   Also I don't know if there is anything wrong with the whole code. Packages, order, etc.  I'd really appreciate the help!


Disprove that if $n$ is an odd positive integer greater than $1$ then $2^n-1$ is prime.   So my approach to this is as follows but I have no idea where to go from here or whether this is the right approach.  Let $n=2x+1$ where $x\in\Bbb Z^+$  Then  $2^n+1=2^{2x+1}-1$  $=6(2^n)-1$


How to get the degree of freedom when doing multiple linear regression?

In the book An introduction to statistical learning with Applications in R, when testing the relationship between the Response and the Predictors using null hypothesis, it gives a formula: $$F = \frac{(TSS - RSS)/p}{RSS/(n-p-1)}$$ where $$RSS = \sum_{i=1}^{n} (y_i-\hat{y_i})^2$$ $$\hat{y}=\hat{\beta_0} + \hat{\beta_1}x_1 + \dotsb + \hat{\beta_p}x_p$$ $$TSS = \sum_{i=1}^{n} (y_i-\bar{y})^2$$  I googled the F test and learned that the degree of freedom in F statistic means number of values in the final calculation of a statistic that are free to vary.(, )   But, here I cannot get why in this formula the degree of freedom are p and (n-p-1)?


What community are "How do you tell if..." questions in?

I would like to know if there is a certain community for questions such as, "How do you tell if a person likes you", or "How do you tell if your friends are good for you"? Are these types of questions in a certain community, are they in a different community based on the type of question, or is there no stack exchange community for it at all?


Best method to obfuscate or secure .Net assemblies

I'm looking for a technique or tool which we can use to obfuscate or somehow secure our compiled c# code. The goal is not for user/data security but to hinder reverse engineering of some of the technology in our software.   This is not for use on the web, but for a desktop application.  So, do you know of any tools available to do this type of thing? (They need not be free)  What kind of performance implications do they have if any?  Does this have any negative side effects when using a debugger during development?  We log stack traces of problems in the field. How would obfuscation affect this?


I am using pgfplots to plot the following diagram with monthtly data over 20 years. However, I am not quite satisfied with the labels on the x axis. I'd like to have steps of say 3 years (e.g. 1994, 1997, 2000, 2003, 2006, 2009, 2012). Right now there are steps of 2 years and 3 years. Can anyone help?     \documentclass{article}    \usepackage{pgfplots}    \pgfplotsset{width=8cm,compat=newest}    \usepgfplotslibrary{dateplot}       \begin{document}  \begin{figure}[h!]    \begin{center}   \begin{tikzpicture}   \begin{axis}[       width=13cm, height=9cm,       date coordinates in=x,       xticklabel style={/pgf/number format/1000 sep=},       date ZERO=1993-01-01,       xticklabel={\year},           xmin={1993-01-01},           xmax={2013-11-01},           ymin=0.01,           ymax=30,           tick pos=left,            legend pos=outer north east,        legend cell align=left,        ]    \addplot table[x=year,y=greece] {data.csv};\addlegendentry{Greece}        \addplot table[x=year,y=portugal] {data.csv};\addlegendentry{Portugal}        \addplot table[x=year,y=ireland] {data.csv};\addlegendentry{Ireland}        \addplot table[x=year,y=italy] {data.csv};\addlegendentry{Italy}        \addplot table[x=year,y=spain] {data.csv};\addlegendentry{Spain}        \addplot table[x=year,y=belgium] {data.csv};\addlegendentry{Belgium}        \addplot table[x=year,y=austria] {data.csv};\addlegendentry{Austria}            \addplot table[x=year,y=france] {data.csv};\addlegendentry{France}            \addplot table[x=year,y=netherlands] {data.csv};\addlegendentry{Netherlands}            \addplot table[x=year,y=germany] {data.csv};\addlegendentry{Germany}     \end{axis}   \end{tikzpicture}   \end{center}   \end{figure}    \end{document}


A question about path-connected and arcwise-connected spaces

If $X$ is a Hausdorff topological space and it is path-connected, then it is arcwise-connected.


Show that if $x$ and $y$ are nonnegative reals, then $\frac{x + y}{ 2} ≥ \sqrt{xy}$

Show that if $x$ and $y$ are nonnegative reals, then $$\frac{x + y}{2} ≥ \sqrt{xy}$$ Can anybody help me?, I'm not quite sure how to prove this.


Opening Careers notification crashes app

I got a notification from Careers 2.0 today. Clicking on the notification opened the app, and was promptly followed by a crash.   Now, I know that Careers is probably not a priority for the app, (is it?) so, either notifications from careers should not be shown in the app inbox, or they should directly open up the browser.  Version: 0.1.26  UPDATE: It seems to have been resolved in 0.1.27 as the notification now opens up in a browser window.


Many sources say that composite video input should be AC-coupled. Voltage levels for blank, black and white signal are also specified. How is it possible to detect these voltage levels after AC coupling (aka dc-blocking capacitor)?  Doesn't the DC-component (average) of the signal vary wildly depending if the content is all black (0V-0.3V) or all white (0V-1V)?


Function definition in a for loop using local variable

I'm at a loss here. I'm trying to define a function inside a for loop. The function uses a variable defined inside the loop and could look something similar like that :  myFuns = [] for i in range(10):     j = i + 4     def fun(): print(j)     myFuns += [fun]   At the end of this loop, my functions in myFuns are differents, but they do the same thing, as apparently, this is not a new variable j that is passed to fun(), but the reference of j.  I'd be very glad to know how to pass the value of j and not just the reference.  I didn't know that a variable created in a loop could outlived the loop, so this is new territory for me here...


Can I write the output the of time difference command to a file?

Can I write the output of the time difference command to a file?  For example, I tried:  $ time foo.sh > bar.txt   But it only gives the output of foo.sh to bar.txt.


I would like to access multiple pages through this API. Each page has the same URL except for the market_id. I would like to loop through the pages based on the market_id using the specified range. for marketid in range(1.166871138,1.171064031):     r = requests.get('https://betfair-data-supplier-prod.herokuapp.com/api/race_results/?market_id={marketid}&nz_tote_event_id=', headers={'User-Agent': 'Mozilla/5.0'})   When I use this code I get an error saying 'float' object cannot be interpreted as an integer.


Inconsistent output on /proc. Can some processes be hidden?

When I list /proc/<PID>, works as expected. But when I use ps or ls /proc | grep <PID>, the process is hidden. How & Why is this possible?  [user@host ~]$ ls /proc/12263 attr             cpuset   limits      net            projid_map  statm autogroup        cwd      loginuid    ns             root        status auxv             environ  map_files   numa_maps      sched       syscall cgroup           exe      maps        oom_adj        sessionid   task clear_refs       fd       mem         oom_score      setgroups   timers cmdline          fdinfo   mountinfo   oom_score_adj  smaps       uid_map comm             gid_map  mounts      pagemap        stack       wchan coredump_filter  io       mountstats  personality    stat [user@host ~]$ ls /proc | grep 122 12230 12231 12260 12297 [user@host ~]$ ls /proc/12263 attr             cpuset   limits      net            projid_map  statm autogroup        cwd      loginuid    ns             root        status auxv             environ  map_files   numa_maps      sched       syscall cgroup           exe      maps        oom_adj        sessionid   task clear_refs       fd       mem         oom_score      setgroups   timers cmdline          fdinfo   mountinfo   oom_score_adj  smaps       uid_map comm             gid_map  mounts      pagemap        stack       wchan coredump_filter  io       mountstats  personality    stat [user@host ~]$ ls /proc | grep 122 12230 12231 12260 12297 [user@host ~]$ ps -fp 12263 UID        PID  PPID  C STIME TTY          TIME CMD [user@host ~]$


Showing that an isometry of a compact space $X$ into itself is surjective

let $f : X \to X $ be an isometry $d((f(x)),f(y)) = d(x,y)$ for all $x,y \in X$. It could easily be shown that $f$ is continuous and injective. Now if we let $X$ to be compact, need to show that it is surjective in this case. The proof proceeds as following:     Suppose $f(X) \neq X$. Then there exists a $a \in X$ such that $a \not \in f(X)$. The function $f$ is continuous, and since $X$ is compact so is $f(X)$. Notice that $f(X)$ is compact in $X$, being hausdorff $f(X)$ is closed, making $X - f(X)$ open. Then for this $a$, I can find a $\epsilon$ neighbourhood such that $B(a,\epsilon) \subset X - f(X)$.   This is ofc, not the whole proof. However I understood the other part easily, only problem I have is here that why $X$ is hausdorff so that $f(X)$ is closed in $X$. I'm not given that it is Hausdorff or anything.  Thanks!


Random Variable absolute value distribution (PDF and CDF)

X has a Uniform distribution $U(0,1)$. I have to find the distribution of the variable $U =|X-1/3|$.  This is what i can get so far :  $F(U) \;{= P\{U < u\} \\ = P\{| X-1/3 | < u\} \\ \ddots}$  I know that i shall get something like $P\{-(U-1/3) < X < U -1/3\}$. Could anyone explain how to get the PDF and the CDF for this problem and explain how can i easily change this absolute values for other problems ( other examples $Z=1-|X|,~~G=|X|-1$ etc..).


Writing a reviewed article in resume/ Statement of purpose

I am applying to several places for Masters in pure mathematics in the month of December.  I submitted a paper in a math journal and received its review. The reviewer mentions and I quote "I recommend this article for publication". However, he has suggested to make some changes and upload a revised version. I am working on the changes but it may take a while and the next review might take more time and thus cross the application deadlines.  Now for university applications, I want to ask what can I write in my CV/SOP to show the current progress as in it is almost sure that it will be accepted and writing just submitted doesn't show the actual situation. Also, writing accepted will be wrong as it isn't accepted yet.


Is there a difference in image when using a two different combinations of exposure time and diaphragm?

My camera, aimed at a motionless object, is mounted on a tripod. Do I get a different image by changing exposure time and the diaphragm in such a way that the total amount of light coming in stays the same?


I have a query that will output something like this:  1 | 1 | Project A 2 | 0 | Project B   And I would like to obtain this:  1 | Yes | Project A 2 | No  | Project B   So, 1 must be converted to Yes and 0 to No. How can I do that directly in the query?  SELECT      project.id,     project.status,     project.name FROM     project


Is there a way to cd back multiple times in bash?

I often use cd - to go back to where I was. How can I do this multiple times in bash? Or would zsh or some other tool support this?


I can't write Chinese characters in edited posts, but OP could when posting

Note  is related, but not exactly the same, as this posts asks why OP could post (but I couldn't), whereas the other one states that OP shouldn't be able to.  Following :    All I tried to do was a retag (remove inappropiate  tag) and remove unnecessary content (thanks).  Though, I couldn't submit my edit. This was the error I was getting:    Just to clarify, this is the original question body, fully unmodified (apart from the "TIA" I removed):    My question now, why can't I post his post containing Chinese characters? And more importantly,  Why could OP post this, but I cannot?  Yes, I understand you shouldn't attempt to salvage very low quality questions. I just wanted to retag it, because it doesn't belong in .


Scaling a tikzpicture for a Beamer slide

I have the following Beamer slide:  \documentclass{beamer}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  \tikzstyle{decision} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=4em] \tikzstyle{line} = [draw, -latex    ] \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm, minimum height=2em]  \begin{document}  \begin{frame}{Simulated Annealing (SA)}     \begin{center}         \begin{tikzpicture}[node distance = 2cm, auto]             \node[block]                  (init){Init $n=0$, $T_0$, and $S_0$};             \node[block, below of=init]   (nbrh){$S_{n+1}=N(S_n)$};             \node[decision, below of=nbrh](ovgt){$f(S_{n+1}) \le f(S_n)$};             \node[block, below of=ovgt]   (accp){Accept $S_{n+1}$};             \node[decision, right of=ovgt](rand){$e^{-\frac{\Delta f}{t_n}}$};             \node[block, right of=nbrh]   (rejj){Reject $S_{n+1}$};             \node[block, below of=accp]   (incr){$T_{n+1} = K(T_n)$ and $n++$};             \node[block, below of=incr]   (stop){Stop};             \node[decision, left of=stop] (stcd){Stop?};              \path[line] (init) --          (nbrh);             \path[line] (nbrh) --          (ovgt);             \path[line] (ovgt) -- node{yes}(accp);             \path[line] (ovgt) -- node{no} (rand);             \path[line] (rand) -- node{no} (rejj);             \path[line] (rejj) --          (nbrh);             \path[line] (rand) |- node{yes}(accp);             \path[line] (accp) -|          (stcd);             \path[line] (stcd) -- node{yes}(stop);             \path[line] (stcd) |- node{no} (nbrh);         \end{tikzpicture}     \end{center} \end{frame}  \end{document}   and I got the code mostly from .  The only problem is that it doesn't fit in the beamer slide. It isn't auto scaled, and it runs way off the bottom.  I have tried adding scale = 0.25 to the \begin{tikzpicture}[] but that didn't do anything at all.  Is there any way to auto-fit the whole tikzpicture into the available space in my frame?    Bonus question: Why is Reject S_{n+1} not horizontally aligned with the exponential decision underneath, and as such - why is the arrow connecting them at an angle? (i.e., how is this fixed?)


We know for a metallic conductor   Current $\frac{I}{enA} = v$ where $v$ is drift velocity , $e$ is the charge of an electron, $n$ is no of electrons per unit volume and $A$ is area of cross section.  Ok my questions that I am struggling with:   Does it depend on length of wire? (let's say if the current is the same and area is also the same but one wire is longer and one wire is shorter then is the drift velocity for both wires the same?) Does it depend on the cross sectional area of the wire? (Yes, according to the relation, if the area is greater, drift velocity is lower, correct?)   I have digged university physics still I couldn't get my answer :( .


Is it possible to pipe stderr while keeping stdout?

I have a long running process which is writing status information to stdout, and logging debug information to stderr.  I would like to pipe the stderr output to logger, so that anything written to stderr actually ends up going to syslog, while at the same time being able to read the process' stdout.  Is it possible to do this?


I'm trying to create a line snapping tool in my Android app where I'm using the spatialite-android lib. I'm using the function ST_Snap where I want to snap a linestring with another linestring on the point where a line string is touching another one. here is the preview    Here is my gis query   SELECT ST_AsText(ST_Snap(line, input, ST_Distance(input,line)*10.0))  FROM (SELECT    ST_GeomFromText('LINESTRING(88.4656805545 22.6896467287,88.4632558376 22.6896841575,88.4614285827 22.6882649519)',4326) As input,    ST_GeomFromText('LINESTRING(88.4654606134 22.690117835,88.4655571729 22.6896761149)',4326) As line);   But the above query snapping the line to the end. I'm guessing the query is not appropriate.  This is what happening


I'm pretty inexperienced with LaTex, but I'm trying to make this table, and all of the cells are finally lined up correctly with their text in them, etc., etc., but for some reason the very last cell's text "0.9" is lifted above the others. I'm not sure why, the number may feel a bit elitist, or maybe he got caught up on a cliff and can't come down. Either way, I need the text to be level with the other numbers. Here's the code I used:  \documentclass{article}  \usepackage{calc} \usepackage{ifthen} \usepackage{tikz} \usepackage{pgfplots} \usepackage{mathtools} \usepackage[margin=1in]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{array} \begin{document} \begin{center}  \begin{flushleft}Figure 1 \end{flushleft} Average Percent of \textit{Doremifasolati Arangeous} Frequencies (\%) \begin{tabular}{ | m{2cm} | m{2cm}| m{2cm} | m{2cm} | m{2cm}| m{2cm} | m{2cm} | }  \hline Doramus & Refaltido & Misanit & Fanatha & Sonphay & Laoli & Tidanme\\  \hline  $ 60% $ & $17% $ & $6% $ & $6% $ & $5.1% $ & $5% $ & $0.9% $  \\ \hline \end{tabular}  \end{document}    Thank you.


True or false: if $\sum\limits_{n = 1}^\infty {a_n} $ converges then so does $\sum\limits_{n = 1}^\infty {{{\left( {a_n} \right)}^3}} $

True or false:  If $\sum\limits_{n = 1}^\infty  {{a_n}} $ is a convergent series of real numbers then $\sum\limits_{n = 1}^\infty  {{{\left( {{a_n}} \right)}^3}} $ is also convergent.  My attempt:  Note that since the series converges, we have $\mathop {\lim }\limits_{n \to \infty } {a_n} = 0$ and thus ${a_n} \le 1$ for a large enough $n$.  The claim is obviously true if ${a_n} \ge 0$ since if that's the case then ${\left( {{a_n}} \right)^3} \le {a_n}$ for a large enough $n$ and by a comparison theorem (for non negative series) we conclude that $\sum\limits_{n = 1}^\infty  {{{\left( {{a_n}} \right)}^3}} $ converges.  The claim is also true if ${a_n} < 0$ for all natural $n$ by symmetry.  Since ${a_n} < 0$ iff ${\left( {{a_n}} \right)^3} < 0$.  But I'm stuck if ${a_n}$ is sometimes positive and sometimes negative. I've tried to take a "classic" example like $$\sum\limits_{n = 1}^\infty  {{{{{\left( { - 1} \right)}^n}} \over n}} $$ But that doesn't disprove the claim.  Hints would be welcome!


Which topics of mathematics should I study?

I'm a first year econometrics student with a great interest in mathematics. I very much enjoy my study, but still I am interested to learn about more topics in mathematics which are not part of my study. Some of the main topics which I am already familar with or which will soon be covered in my study are: calculus, linear algebra, optimization, statistics/probability/combinatorics.  Which topics in mathematics would you advise me to study still (that are not part of this list)? I have a general interest in mathematics, so any advice on interesting and or essential topics in mathematics that are worth studying is appreciated.   If possible, could you also give me advice on books/references which I should study from?  Thanks in advance.  Edit: To be more specific, I am looking for topics on which the general consensus is that they are essential to know of for any mathematician or very interesting to study.


Drawing a variable width line in openGL (No glLineWidth)

What is the best way to draw a variable width line without using glLineWidth?  Just draw a rectangle?  Various  parallel lines? None of the above?


how to display all the elements of a table?

I am trying to display all the information of my csv file. Except that in my visualforce page, he shows me the last element of my table.  public class ImportExcel {        public String fileName{get; set;}     public Blob contentFile{get;set;}     public String[] csvFileLines{get;set;}     public String[] data{get;set;}      public ImportExcel(){         csvFileLines = new String[]{};     }      public void readFile(){         try         {             fileName=contentFile.toString();             system.debug(fileName);                      csvFileLines = fileName.split('\n');             system.debug(csvFileLines);                  for(integer i=0;i<csvFileLines.size();i++){                     data=csvFileLines[i].split(',');                     system.debug('***'+data[0]+'**'+data[1]+'**'+data[2]+'**'+data[3]);                 }           }catch(Exception e){             ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.FATAL,'Please upload a valid CSV document');             ApexPages.addMessage(myMsg);              return ;          }           }  }  <apex:page controller="ImportExcel">     <apex:pageBlock>         <apex:form >             <apex:pageBlockSection columns="4">                <apex:inputFile value="{!contentFile}"  filename="{!fileName}"/>                <apex:commandButton value="Import Excel" action="{!readFile}"/>             </apex:pageBlockSection>                  <apex:pageBlock >                 {!data}              </apex:pageBlock>               </apex:form>     </apex:pageBlock> </apex:page>


Are there any generators that help with drawing circuits?    More or less R2 is supposed to be a rhetostat but i really have no idea how to code a drawing.      edited to make circuit little better (drew it in illustrator), i am trying to include it as a pdf but coming out lousy figure the circuit drawing method would be pretty cool nevertheless.


How to create keyboard shortcut for WiFi toggle?

I want to create keyboard shortcut for Turning ON WiFi when it is turned OFF, and vice versa.


chrome:// link does not show up as a link

Possible Duplicate:          I would like to link to chrome://net-internals/ (a local Google Chrome page for debugging purposes), but it won't let me do that:   When I click the link button, it results in chrome://net-internals/ (notice the http:// prepended to the actual URL). When just pasted, it doesn't show up as a link: chrome://net-internals/   I understand that there are hardly any links of this type, but since this format (foo://bar/) is clearly a link, could such links be parsed as actual links?


How to filter rows with orders of special product?

There is customer table:   ---+-------+------------+ id + name  + region     +  ---+-------+------------+   There is also orders table:   ---+--------------+------------+----------+----------------+ id + cusomer_id   + product    +  price   +  amount_total  + ---+--------------+------------+----------+----------------+   If I want to form a list of products, which have ever been bought by every customer, in a line with ';' , I make a request:               SELECT GROUP_CONCAT(orders.product separator ';')              FROM orders             WHERE orders.customer_id = customer.id   Everything work fine, however if I want to add some filters there is an error appear:   SELECT customers.id,        (SELECT GROUP_CONCAT(orders.product separator ';')         FROM orders        WHERE orders.customer_id = customers.id) as products  FROM  customers         WHERE customers.region like 'USA'        AND products not like '%fish%'   Query Error: Error: ER_BAD_FIELD_ERROR: Unknown column 'products' in 'where clause'


How can I represent the  (i.e, vec(A))? I am talking about this simple operator:


Are the XBLA and PC versions of Minecraft compatible?

Can players on a PC and an Xbox play together in any way? I.e. can Xbox users connect to a (modfied?) PC server, or vice versa?


Transferring through US airport. Do I need traveling visa?

I'm not a resident of USA. But I work on a cruise ship which required me to have C-1/D visa. I am leaving USA and traveling to Mexico but I will have a connecting flight somewhere in another US airport with 1-2 hours waiting for connecting flight to Mexico.   Do I need B1/B2 visa for that? Or my transit visa C-1/D will be enough as long as I am leaving USA?


Is it possible to use a primitive type (int) in as a generic type in Java?

Specifically, with a SortedMap<Vector<String>, int> I get "dimensions expected after this (int) token." Help!


Reinstalling drivers after DBAN on custom built pc Windows 10

Hello and welcome to my problem  I have successfully used a bootable USB to nuke my laptop using DBAN, and have now reinstalled Windows 10 (had a pesky virus, and this seemed the only option that would finally free me)  The virus has - due to recklessness - transfered it's way to my stationary PC. So my question is, due to the fact that my pc is not made complete in a factory, and therefore each part was manually put in and installed, is it then neccessary for me to backup all of the drivers and the like for various things (CPU, GPU etc.) - and if so, what is the easiest way to do this?  I haven't build the computer myself, and I only managed to DBAN my laptop after several hours of Googling.   My specs are as follows


Somehow, something is eating up around 80GB of HDD space and I cannot figure out what. This is starting to become a major problem for me as I only have 100GB to play with and if I find something to delete, something else will just fill that space, until I can barely use the computer.  I have tried running ncdu -x -q to clear up as much as possible and it says that I am down to about 22G usage. I get the same with du, but I guess ncdu uses du  du -x -d1 -h / 4,0K    /srv 28K     /media 4,0K    /mnt 4,0K    /lib64 16K     /lost+found 3,3G    /home 588M    /opt 360M    /lib 23M     /build 9,7M    /bin 48M     /boot 27M     /etc 1,4G    /root 4,0K    /cdrom 6,9G    /usr 16M     /sbin 9,0G    /var 22G     /   And if I run df:   df Filesystem      1K-blocks       Used Available Use% Mounted on udev              2748080          4   2748076   1% /dev tmpfs              559400       1568    557832   1% /run /dev/sdc2       109481872  104180864         0 100% / none                    4          0         4   0% /sys/fs/cgroup none                 5120          0      5120   0% /run/lock none              2796996        688   2796308   1% /run/shm none               102400          8    102392   1% /run/user overflow             1024        236       788  24% /tmp /dev/sdd2      1953382140 1874376664  79005476  96% /media/munhunger/Shaman /dev/sda1      1953382140 1926088316  27293824  99% /media/munhunger/Holy /dev/sdb1      2930264060 2930264060         0 100% /media/munhunger/Glory  df -aTh Filesystem     Type             Size  Used Avail Use% Mounted on sysfs          sysfs               0     0     0    - /sys proc           proc                0     0     0    - /proc udev           devtmpfs         2,7G  4,0K  2,7G   1% /dev devpts         devpts              0     0     0    - /dev/pts tmpfs          tmpfs            547M  1,6M  545M   1% /run /dev/sdc2      ext4             105G  103G     0 100% / none           tmpfs            4,0K     0  4,0K   0% /sys/fs/cgroup none           fusectl             0     0     0    - /sys/fs/fuse/connections none           debugfs             0     0     0    - /sys/kernel/debug none           securityfs          0     0     0    - /sys/kernel/security none           tmpfs            5,0M     0  5,0M   0% /run/lock none           tmpfs            2,7G  688K  2,7G   1% /run/shm none           tmpfs            100M  8,0K  100M   1% /run/user none           pstore              0     0     0    - /sys/fs/pstore overflow       tmpfs            1,0M  236K  788K  24% /tmp binfmt_misc    binfmt_misc         0     0     0    - /proc/sys/fs/binfmt_misc systemd        cgroup              0     0     0    - /sys/fs/cgroup/systemd gvfsd-fuse     fuse.gvfsd-fuse  0,0K  0,0K  0,0K    - /run/user/1000/gvfs /dev/sdd2      fuseblk          1,9T  1,8T   76G  96% /media/munhunger/Shaman /dev/sda1      fuseblk          1,9T  1,8T   27G  99% /media/munhunger/Holy /dev/sdb1      fuseblk          2,8T  2,8T     0 100% /media/munhunger/Glory   Running du with sh flag(and x because I do not want to scan mounted disks)  du -xsh / 22G     /   What could be causing this, and what can I do to mitigate the problem? Running on a linux mint 17 from uname -a: 3.16.0-38-generic #52~14.04.1-Ubuntu  From running lsof | grep -Fw deleted:  lsof | grep -Fw deleted lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs       Output information may be incomplete.


MongoDB - Best practices for Feed restructuring in a social app database

I have a social app, where users can post to the school they chose on registration. Each post can have a hashtag and a school (all pointers, (hashtag is optional, school is not)).  Users see posts based on school or hashtag. Now we want to introduce a new feature, Polls. Polls are another type of post... Users will be seeing them in their feed among other posts! Besides other properties, they too have a hashtag and a school.  Right now when a user asks for posts, I'm just making a query to the Post collection, comparing only the school or hashtag field (depending on the screen they're at). So if they're on the Home screen, I'm going to have something like:     find all documents in Post, where school equals <some_value>   And if they are on the Hashtag screen, we have something like:     find all documents in Post, where hashtag equals <some_value>   Since we are going to have the new Poll collection, I'm wondering what implementation would be best... Here's what I have so far:  1st implementation  We keep the posts query as is and we add another one, pretty much the same, for the polls and we combine the results. Have in mind here, that our app fetches data with pagination, so we bring the posts 20-by-20. I'm saying this because in case we have a page and the responses of the 2 queries bring 20 documents each, we'll have to compare dates to know what the response should be... eg 16 posts and 4 polls.  2nd (and last) implementation  We create a new collection, Feed, which would combine both collections and it would look like this:  Feed  post: <Pointer to Post> poll: <Pointer to Poll> creator: <Pointer to User> // we need this for block checking or if you open your profile school: <Pointer to School> hashtag: <Pointer to Hashtag>   Every time a post or poll will be created, their triggers will create a Feed document, with all the necessary values.  I believe the second solution is the best, as it is much cleaner than the first. I also think they're pretty much the same complexity-wise.  Any ideas on which one is better? If you have any other implementation to suggest, please do so!  NOTE: All collections are indexed.


Why won't my Broadcom BCM4312 LP-PHY work with the STA driver?

I tried the steps here for a 4312:   Both of these:  sudo modprobe -r b43 ssb wl sudo modprobe wl   return:  FATAL: Module wl not found. FATAL: Error running install command for wl (this one is only for the second one actually)   I tried the broadcom-sta, didn't work. What's confusing is down below in the next steps for STA with internet access it says to use the bcmwl one. So I install that and it succeeds but with some errors:  sudo apt-get install bcmwl-kernel-source  Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   module-assistant Use 'apt-get autoremove' to remove it. The following NEW packages will be installed:   bcmwl-kernel-source 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,181 kB of archives. After this operation, 3,609 kB of additional disk space will be used. Selecting previously unselected package bcmwl-kernel-source. (Reading database ... 168005 files and directories currently installed.) Unpacking bcmwl-kernel-source (from .../bcmwl-kernel-source_5.100.82.112+bdcom-0ubuntu3_amd64.deb) ... Setting up bcmwl-kernel-source (5.100.82.112+bdcom-0ubuntu3) ... Loading new bcmwl-5.100.82.112+bdcom DKMS files... Building only for 3.5.0-21-generic Building for architecture x86_64 Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed. ERROR: Module b43 does not exist in /proc/modules ERROR: Module b43legacy does not exist in /proc/modules ERROR: Module ssb does not exist in /proc/modules ERROR: Module bcm43xx does not exist in /proc/modules ERROR: Module brcm80211 does not exist in /proc/modules ERROR: Module brcmfmac does not exist in /proc/modules ERROR: Module brcmsmac does not exist in /proc/modules ERROR: Module bcma does not exist in /proc/modules FATAL: Module wl not found. FATAL: Error running install command for wl update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.5.0-21-generic jtaylor991@jtaylor991-whiteHP:~$ sudo modprobe wl FATAL: Module wl not found. FATAL: Error running install command for wl   Then I do the modprobe wl commands listed above and it gives the above listed errors. It didn't work with the broadcom-sta driver either. I installed the b43 ones but nothing happened, and I don't know why so those are still installed. firmware-b43legacy-installer, b43-fwcutter and firmware-b43-lpphy-installer (yes it is a LP-PHY) are currently installed.  If I go into System Settings > Software Sources > Additional Drivers it says "Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary) But bcmwl-kernel-source isn't installed. I could try again but I remember rebooting and it still said this.  What's funny is it found wireless networks during the Ubuntu setup/installation, I don't remember if I got it to connect or not though. I think it kept asking for a password when I put it in (yes it was right I showed password and looked at it) so I just ignored it. But right now the Enable Wireless option in the top right is just gone, it's just Enable Networking and I'm on ethernet on this HP Pavilion dv4-1435dx right here.  If I run rfkill list it shows:  0: hp-wifi: Wireless LAN     Soft blocked: no     Hard blocked: no   It was hard blocked at the beginning but unblocking it makes no change. Also it's a touch sensitive button, and it appears to be always orange no matter if it's enabled or not because when I touch it the hard blocked changes between yes and no in rfkill list. I think it was blue for a minute at one point.  What is going on?!?! Help me! Lol, thanks for any and all of your time guys. Oh yeah this is Ubuntu 12.10 fresh install.


Okay this is kind of hard to explain but I'll try my best.  I'm creating a program that reads from a .data file, saves each line of the file into an array list, then the user specifies the building and room number to look for, the program then searches through the whole array list (couple thousand lines) for matches, then with those matches calculates how often those rooms are used using some of the data obtained from the data file.   Now, the problem is that I can get up to the program searching through the array list, but it seems to be doing something incorrectly.    String buildingNum = jTextField2.getText(); String roomNum = jTextField1.getText();  int strDuration = 0; int totalDuration = 0; int meetings = 0;  for (int x = 0; x < Global.globalLength; x++) {     if ((buildingNum != "XXXX") && (list.get(x).building != "XXXX") && (list.get(x).room != "XXXX") && (roomNum != "XXXX")) {         int intBuildingNum = Integer.parseInt(buildingNum);         int intRoomNum = Integer.parseInt(roomNum);         int listBuildingNum = Integer.parseInt(list.get(x).building);         int listRoomNum = Integer.parseInt(list.get(x).room);         if (listBuildingNum == intBuildingNum) {             System.out.println("Second STEP WOO");             if (listRoomNum == intRoomNum) {                 strDuration = Integer.parseInt(list.get(x).duration);                 meetings = list.get(x).days.length();                 totalDuration = totalDuration + (meetings * strDuration);                 System.out.println(strDuration + " and " + meetings);                 System.out.println(" and " + totalDuration);             }         }     } }  int utilization = totalDuration / 50; jTextArea1.setText("The room utilization is: " + utilization);   In the data file, there are a few places in which data is entered as XXXXXXXXXXXX for whatever reason.  Because of this, when trying to convert said data into an integer there's a problem (for obvious reasons).  So to fix this, I made that odd if block right after the for loop so that the program would try not to do so. However, When running it, I am able to get the program to display the total duration a couple of times before it gives an error that says  Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "XXXX" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)   Which I THOUGHT I had fixed.  Can anyone see why it would still be trying to convert the XXXX into integers?


Energy-momentum tensor in general relativity vs. field theory

In general relativity, the energy-momentum tensor is written as   $$ T^{\mu \nu } \sim \frac{1}{\sqrt{|g|}}\frac{\delta \mathcal L}{\delta g_{\mu\nu}},$$  while in field theory it is written as   $$ T^{\mu}{}_{ \nu } = \frac{\delta \mathcal L}{\delta \partial_{\mu} \phi} \partial_{\nu} \phi - \delta^{\mu}_{\nu} \phi .$$   I am having trouble reconciling these two expressions. Also since diffeomorphisms, and hence translational invariance, are a gauge symmetry in general relativity, how can there be a non-zero conserved current for translational invariance, i.e. the energy-momentum tensor?


Output in variable shouldn't be interpreted as command

So this question was asked some times already, but the answers didn't seem to work for me. So I have this simple script  #!/bin/bash charon_id = $(pidof charon) kill -1 $charon_id   And console says charon_id: command  not found*  I've tried different versions, with " around the $( ), ; after the lines, even the $(... 2>&1) I saw somewhere. Nothing has helped so far. Suggestions?  * translated from console language into English


How to give class name to the text field in drupal

I am new to drupal and I have a problem in drupal text-box.  Question : how to give a class for text box?  my html :   <input type="text" name="uname" class="uclass" id="uid">   i want the same in drupal  My code is :  function my_module_my_form($form_state) {  // This is the first form element. It's a textfield with a label, "Name"  $form['name'] = array(  '#type'  => 'textfield',                     '#title' => t('Enter Your Name'),                     '#value' => t('Enter user name'),                     '#name'  => 'uname',                     '#id'    => 'uid',                     '#class' => 'uclass',                     '#maxlength' => 5                    ); return $form;  }   Note: through inspect element , i find the class name is "form-text", but actually my class name is uclass, It is not taking, can one help me.


In Norwegian schools,  is widely used for plotting graphcs, calculus, algebra, etc. However, by the looks of it, it is not very commonly used, so the documentation and resources is very limited (especially on the Computer Algebra System). Is there any good alternatives to it? What is most used in other countries/professionally? This is only basic functions, like finding derivatives/extrapolating and solving polynomial equations, no 3D.


Is this grammatically correct- "My husband came running when he heard me call out for help."

"My husband came running when he heard me call out for help."  In the above sentence, should there be 'calling out' or simply 'call out' is fine.