We don't remember Apple email or id and now can not use ipad

It is ipad 3 with a1416 model  It is currently factory reset but it keeps saying this ipad is bound to an apple id   It freakingly shows only first letter of the email which doesn't help at all  We don't remember the email. It wasn't used for a long time later its screen was broken so we sent it to the service and they changed screen along with factory reset  Now we can't access the device and we do not remember its apple id or email or password  I tried recovery mode but all goes to this ipad bound to apple id so enter its password  What can i do? Now this owned device became a trash?  I always hated apple and now i hate 10x more. I am not able to use a device that i own.


If $f:S \to T$ . $f$ is a one-to-one continuous function . $V $ is an open subset of $S$ , can we prove that $f(V)$ is an open subset of $T$?

Definition. Let $S$ and $T$ be topological spaces and $f:S \to T$ . $f$ is  a homeomorphism is $f$  is a one-to-one correspondence and both $f$ and $f^{-1}$ are continuous .  (Here one-to-one correspondence means both injective and surjective)   Since for real-valued function in $R$ , $f$ is a one-to-one correspondence and continuous implies $f^{-1}$ is continuous . Does this still hold for arbitary topological space $S$ and $T$ ? Or , if $f:S \to T$ . $f$  is a one-to-one correspondence continuous function . $V $ is an open subset of $S$ , can we prove that $f(V)$ is an open subset of $T$?


What data type to use for hashed password field and what length?

I'm not sure how password hashing works (will be implementing it later), but need to create database schema now.  I'm thinking of limiting passwords to 4-20 characters, but as I understand after encrypting hash string will be of different length.  So, how to store these passwords in the database?


I m new for latex, When I try to create my document, I have following part. But its not functioning and giving      $ missing   error.  \textbf{Algorithm 1}\\ \textit{ld  \Leftarrow (ld_1,ld_2,ld_3,...,ld_N)} \\ \textit{D \Leftarrow ld_1 + ld_2 + ld_3+...+ld_N } \\ \textit{P$_a$ \Leftarrow available power} \\ \textbf{for }  i $ = 1 $ to  N \textbf{ do}\\     \textit{la$_*i$ \Leftarrow P$_a$ \div D \times ld$_i$}\\ \textit{\textbf{end for}}\\ la$_*$ represents the allocated power to each load and its calculated using\\ \textit{la$_*$ = la$_*1$,la$_*2$,la$_*3$...,la$_*N$}\\ \textit{la$_*1$+la$_*2$+la$_*3$+ ...+la$_*N$}   What am I missing here??  Thanks in advance.


Say I have a toy dataset as follows:   Harry Potter and  Harry Potter and the Goblet of  Goblet of Fire  Harry Sorcer's Stone  Harry Potter and the Sorcer of The Rings The Lord of the Rings  The Lord of    Each of the above is part of, or the full title, of a book. In the example above there are Harry Potter Books and Lord of the Rings Books. If I wanted to cluster these by book (say Harry Potter is cluster 0 and Lord of the Rings is cluster 1) would the following approach be appropriate:   Approach: To preprocess the data I would keep only letters, lowercase letters, remove stop words, and tokenize. I would then use a tf-idf feature vector with K-Means clustering. Is there a better or more sound approach for this kind of problem? This is not limited to Harry Potter or Lord of the Rings books, there could be thousands of different books. Thanks!   EDIT: What are some alternative features that are used for clustering short text? It seems that the tf-idf features are very sparse.


How does Diviner Wizard's Portent work with bonuses/penalties?

I've been trying to find the answer to this question, but haven't been able to find it yet, as I seem to find conflicting answers online. The description of Portent is as follows:  When you finish a long rest, roll two d20s and record the numbers rolled. You can replace any attack roll, saving throw, or ability check made by you or a creature that you can see with one of these foretelling rolls. You must choose to do so before the roll, and you can replace a roll in this way only once per turn. Each roll can only be used once.  My group has been having some questions:  An enemy has to roll 1d20 + 5 for an ability check. The wizard uses portent to replace the ability check with 2.  Does the enemy still add +5 (2+5 = 7)?  The Portent text doesn't mention it only replaces the roll, but the "ability check", so we're unsure if only the die is changed, or the entire check. An ally would roll for an attack roll, but the wizard replaces it to 20 with Portent. Is that considered a critical hit and roll critical damage as appropriate? (same for replacing an enemy roll with 1. A character would roll with disadvantage/advantage. The wizard uses Portent. Does the character still roll one die, and check for advantage/disadvantage (higher/smaller between his roll and the Portent number), or the check itself is replaced in it's entirety, no need to roll the second die?  So, it's three questions:  Do bonuses (+/- to roll) apply to the Portent chosen number? Does critical success/failure apply to the Portent chosen number? Does Portent both rolls in the case of advantage/disadvantage rolls?  As we understand, the die is never really rolled, as it's result is defined by the Wizard in the foretelling. So far, we've been considering if the Portent roll was 8, then no bonuses are applied at all, no advantage/disadvantage second die is rolled, and the result is just a flat 8.


How do I make VMware run the VM slower to simulate old hardware?

I've set up an MS-DOS 6 + Windows 3.1 VM in VMware. Player. It works, but "too well". I want it to run like I remember it. I have set the RAM to 8 MB and the HDD size to match my first 486, but there are no GUI settings for the CPU at all. Nothing like "simulate 486" or anything like that. It goes at super speed. It's not fun and doesn't feel genuine to run it like that. No, I can't use DOSbox. DOSbox is bad software for several reasons, and does some kind of non-MS-DOS approximation instead of actually emulating it. PCem's website doesn't even have an "about" section and I don't trust it whatsoever. Besides, it seems just like DOSbox. After all, I've already set up the VMware VM, and all I want is to make it run slower. There's got to be some kind of configuration file option or something to set this?!


What is this math symbol and its latex representation?

What symbol is the one after the word "code" above? Is this \varrho or just the @ symbol? How do I pronounce it?  \[ \varrho \]


How to determine how many subsets of a set contain a particular element?

Let's say set A contains 500,000 elements. Inside set A, there is a particular element, which we will call x. How do I go about finding the number of subsets of A that contain x?


Bicycle chainring dropping/ making a click sound. Help!

My bike is a bit dirty but can someone explain whats happening and a possible fix for this issue?


Example where Hamiltonian $H \neq T+V=E$, but $E=T+V$ is conserved

I'm looking for an example of a Hamiltonian $H$, where $H\neq T+V$, but the total energy in the system, $E=T+V$, is still conserved.   While I'm at it, I might as well add that I'd be most interested in an example from a classical field theory. Furthermore, I am looking for a nontrivial example, e.g. where $H$ doesn't just differ from $E$ by some gradient function that integrates to 0 in the action.   In particular, I am trying to get a better understanding of the physical implications of $H$ being conserved when nontrivial variables are used, i.e. physically, what does $H$ this correspond to. Conversely, can one have a system where $E = H$ in one frame, and is conserved, while in another frame $E'\neq H'$, and $H'$ is conserved while $E'$ is not?


Grand theft auto V has exited unexpectedly (after notebook fix update)

For some reason my GTA V still keeps crashing even after the update which should "fix" the problem with 2 graphics cards.  Also when I try to run only with my Intel/AMD graphics card it ends up giving an error that DirectX 9 wasn't found on my device? Which I get for my Intel but not my AMD. It has to be installed on at least one of them cause it doesn't give this error with both enabled.  Specs: i7 4700MQ AMD HD8970m 8GB of ram Windows 7 64 bit  My GTA is installed on a hdd and there is over 400gb of space left. I also tried repairing my files with the uninstaller you can also repair your game there instead of uninstalling.


What was the rate of Black Hole - Black Hole mergers expected to be detected by LIGO prior to GW150914?

My question is a more detailed version of the one found , which elicited some good information but the question was never really answered.   From table 4 in a  we see the estimated rate of BH-BH mergers ranged from $10^{-4}$ to $0.3 \rm \,Mpc^{-3} Myr^{-1}$. This corresponds to $10^{-10}$ to $3\times10^{-7} \rm\,Mpc^{-3} yr^{-1}$. They write:      For BH–BH inspirals, horizon distances of ...2187 Mpc are assumed. These distances correspond to a choice of ... 10M for BH mass.    In the left panel of figure 4 found in  there is a plot of BH mass vs horizon distance. For 2015-2016 sensitivity levels and 10M mass, the horizon distance is 300 Mpc. So we need to multiply the above numbers by $300^3=2.7\times10^{7}$. This gives a range of $2.7\times10^{-3}$ to $8.1$ detectable mergers per year, given the prior assumptions that a typical signal would come from black holes with ~10 solar masses. Also, in the  we find:      We present the analysis of 16 days of coincident observations between the two LIGO detectors from September 12 to October 20, 2015.    Therefore the duration of the experiment was $16/365$ years. This gives an expected rate ranging from $1.18\times10^{-4}$ to $3.55\times10^{-1}$ mergers during the experiment. As far as I can tell, this can be taken as an upper bound, since not all of these events will really be detected (due to non-optimal location, coincident noise, etc).   Are there other factors to take into account?


Let $F$ be a finite field. Define $f : F \rightarrow F$ as $f(x) = x^3$ be a ring homomomorphism. I need to show that $F = \Bbb{Z_{2}}$ or char$F$ = $3$ I have attempted it like this Let $x, y$ in $F$ be arbitrary. Then $f(x+y) = f(x)+f(y)$ So $(x+y)^3 = x^3 + y^3$ or $x^3+3xy(x+y)+y^3 = x^3+y^3$ or $3xy(x+y) = 0$ Let $y = 1$ Then $3x(x+1) = 0$ This implies that order of $x(x+1)$ is $1$ or $3$. If it is 1, then $x$ is either $0$ or $1$. How should I proceed further?


Unit testing code which has logic around the CreatedDate

An example of the problem would be trying to test a trigger on a case which will fire on update, and look for time differences between when a case was created and now. Ideally in the unit tests I want to create a case with a CreatedDate in the past. The problem here is that CreatedDate is an audit field and not writeable[1]. Is there a standard work around to this problem?  [1] I know you can get audit fields turned on to be writeable temporarily when doing data migration. This is not a viable solution for every time you want to get your code coverage up for deployment.


Extra vertical space after frame in document class {book} when a image not fit on the page

I create a two side document for a book. When I insert a image  after some text and frame that not fit on the page, the text between frame and image starts in bottom of  the page and created extra vertical space. But if I use for example the command \documentclass{report} this problem solved and the text starts immediately after frame no vertical space. How do I use the command \documentclass[11pt,twoside]{book}  does not create a vertical distance? This is the document:   %\documentclass[11pt]{report} \documentclass[11pt,twoside]{book}  \usepackage[a4paper, landscape, top=3cm,headsep=10pt, textwidth=15cm, right=3cm,  outermargin=7cm,     marginparwidth=5cm,        marginparsep=10pt]{geometry}  \usepackage{color} \usepackage[framemethod=TikZ]{mdframed} \usepackage{mdframed} \usepackage{fancyhdr}    \usepackage{graphicx} \usepackage{color} \usepackage{tikzpagenodes}                       \newmdenv[skipabove=7pt, skipbelow=7pt, rightline=false, leftline=true, topline=false, bottomline=true, backgroundcolor=black!5, linecolor=red, innerleftmargin=5pt, innerrightmargin=5pt, innertopmargin=5pt, leftmargin=0cm, rightmargin=0cm, roundcorner=0mm, linewidth=2pt, innerbottommargin=5pt]{dbox} \begin{document} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \begin{dbox} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \end{dbox} some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  \begin{center}  \includegraphics[width=0.5\textwidth]{example-image}    \end{center}  \end{document}


How can I upgrade Ubuntu LTS to the next one offline?

I'm using Ubuntu 12.04 on my computer and I want to upgrade to Ubuntu 14.04.  I do not have internet at home, so I need to do the upgrade offline.  On openSUSE there a way to make the upgrade offline simple and effective way is by using  the iso DVD.  My question is: Is there any way to make Ubuntu upgrade offline as in openSUSE ?


Zend_Form: how to check 2 fields are identical

I have created a form to add a user to a database and make user available for login.  Now I have two password fields (the second is for validation of the first). How can I add a validator for this kind of validation to zend_form?  This is my code for the two password fields:      $password = new Zend_Form_Element_Password('password', array(         'validators'=> array(             'Alnum',             array('StringLength', array(6,20))             ),         'filters'   => array('StringTrim'),         'label'     => 'Wachtwoord:'         ));      $password->addFilter(new Ivo_Filters_Sha1Filter());      $password2 = new Zend_Form_Element_Password('password', array(         'validators'=> array(             'Alnum',             array('StringLength', array(6,20))             ),         'filters'   => array('StringTrim'),         'required'  => true,         'label'     => 'Wachtwoord:'         ));     $password2->addFilter(new Ivo_Filters_Sha1Filter());


Arcane Trickster Multiclass - Spell Preparation

I'm making level 5 character, Rogue 3 (Arcane Trickster) Wiz 2 (Conjuration).  I can't find anything in the handbook explaining how (if?) the Arcane Trickster needs to prepare his spells in any way.  The way I read it, I would end up with my Wiz-3-worth of 'prepared spells', and then all of my Arcane Trickster spells would just be 'always prepared'. Is this correct?


How do I get flood control to respect X-Forwarded-For?

We're using JWilder's excellent dockergen switchboard to proxy vhosts on our main server. Like most nginx proxies, it sets an X-Forwarded-For header but it can't mask it's own IP address on each request. As a result, when one user attempts to many incorrect logins, all users are locked out of the server until the timeout expires. I've set the flood control to be fairly permissive but I'd rather just tell Drupal to respect the header because too many people are being locked out and permissive settings are a security risk.  TCP documentation states that applications which perform IP-level logic should respect the X-Forwarded-For header. How can I get Drupal's flood control to do so, and to stop locking legitimate users out of the server?  Apparently, Aquia had the same problem some years ago so there must be some solution...


After how much time does Spider-Man's web decompose?

Spider-Man can spin web from his wrist, and once he does so, uses it to swing. then he releases it and it is hanging all around the city buildings. So my question is: after how much time does Spider-Man's web decompose?


could someone explain the outcome entries into a file?

I have read a really good answer explaining what -rwxr-xr-x 1 root root 523454 Aug 8 2014  name means.  However, It did not explain the number before the root root. Also, could you explain what lrwxrwxrwx means, please?


I use free to get the amount of free space on some of my servers. Its output is something like:  $ free -m              total       used       free     shared    buffers     cached Mem:           374        366          8          0         58         98 -/+ buffers/cache:        209        165 Swap:         1906        120       1785   How much free space do I really have?


Can someone intuitively explain the towers of Hanoi and how a proof by induction can be used?

I'm having trouble understanding precisely how the proof by induction is used to show that it takes at most $2^n-1$ moves to get all the disks from one peg to another.  Are there any helpful sources or particular insight that you have that may help me, and others, understand this problem more intuitively?


I've mistakenly run "sudo chown -R $USER:www-data /". Now I can't login through ssh, it shows this message "ssh_exchange_identification: read: Connection reset". What should I do now?


JavaScript how to get geo location from ip address?

Is there a way to get Geo location from the IP address of the user?  If user agrees, I collect Geo Location using: navigator.geolocation.getCurrentPosition()  but if the user refuses, I want to get it from the IP address although it is not accurate.


Type backtick on windows italian keyboard

How can I type a backtick (`) or tilde (~) using my Italian keyboard on Windows 8?  Right now, I'm using ALT+96.  Are there any other key combinations?


i.i.d assumption: formal definition vs. intuition

Intuition In ML, as I constantly run into the i.i.d assumption for datasets, I have an intuition of what this assumption really means. So if I'm not mistaken:  "independent" means that samples (rows of a tabular dataset) do not carry information of each other. A violation of independence might be when multiple samples of a few patients build a dataset, where multiple rows coming from the same patient are correlated. "identically distributed" points to the fact that the samples must come from the same joint distribution, and a case of violation might be when the cases are sampled over a long period of time (a shift in underlying data generation mechanism) with no time indicator (I hope these intuitions are correct)  Formal Definition Then I came across a formal definition of i.i.d assumption in Blitzstein & Hwang's "introduction to Probability" which is stated for random variables:  Random variables are independent if they provide no information about each other; they are identically distributed if they have the same PMF [or PDF] (or equivalently, the same CDF). Whether two r.v.s are independent has nothing to do with whether or not they have the same distribution.  So they are talking about i.i.d random variables not samples. the examples are: X result of first dice roll and Y result of second dice roll are i.i.d. . whereas X result of dice roll and Y price of a stock market index is independent but not identically distributed. or X number of heads in n trials and Y number of tails in the same trial are dependent but identically distributed as both are simulated by $\text{Bin}(n, 1/2)$. Question So what is actually i.i.d referring to: samples or variables? clearly my intuition and the formal definition do not match. are both true and distinct matters? is there something wrong here?!  p.s. I even found a third explanation on i.i.d in this  which says:  Hence the classical assumption of 𝑖𝑖𝑑 is with respect to 𝑢∼𝑖𝑖𝑑, not the set {𝑦𝑖,𝑋𝑖}.  where $u$ is the additive noise term... so what about this?!


Find hypotenuse given acute angle bisectors

In a right triangle $ABC$ (right-angled at $B$), $D$ and $E$ are points of $\overline{AB}$ and $\overline{BC}$ respectively such that $\overline{CD}$ and $\overline{AE}$ are the angle bisectors of the acute angles of the triangle. Given that $AE=9$ and $CD=8\sqrt{2}$, find the length of the hypotenuse $\overline{AC}$.


... for the reaction to, and prevention of, waste, loss and theft. (Commas correct?)

Is the comma correct after "to" and after "of" as shown below? Should a serial comma be inserted after "loss"? I cannot rephrase.  Herb is responsible for the reaction to, and prevention of, waste, loss and theft.  Thank you.


How to exit from gnu grub menu and start linux normally

Kindly consider this, have tried tried exit on grub terminal its not working


Here is what I am trying to do. I am writing a document which has many figures. In order to manage the figures it is very convenient for me to keep different types of figures in different folders. Now in the .tex file how can I change the graphicspath to the folder that my graphics are in. If there are multiple different folders where my graphics are located then I shall like to change the directory multiple times. Can you suggest how to do this?


Photoshop CC - crop canvas to fit the image

I was sent an image (.psd) that has transparent background. When I export it the resulting .png preserves the transparent background so the image actually takes more space on a website than necessary. It's a logo image.  I'm trying to adjust the transparent canvas site to only take the space by the image itself.  Alternatively, how do I export it so that the resulting .png is only the size of actual logo (rectangle) not including the transparent space (bigger rectangle).  Thank you.


Relation of gravitational pull with no air friction

I am confused between the gravitational pull and the air friction on the moon. Let me give you an example,  I have learned that the greater the mass of the body the more gravitational force it generates.  The other point is, On the moon, there is no  air friction so if we drop a feather and a hammer, both will reach the surface simultaneously.  My question is, The mass of the Hammer is clearly more than that of feather. Shouldn't it be pulled toward Moon faster than the feather due to greater gravitational pull?  How come, the gravitational pull be constant from the moon for all the object regardless of their mass?


what is the use of script 2>/dev/null in the following script?

$!/bin/sh if grep "$1" /etc/passwd 2>/dev/null               #Search username at beging of line1 then          echo "Pattern found - Job Over" else           echo "Pattern not found"  fi


If $f(\frac{1}{n})=0$ all $ n\to \mathbb{Z^{+}}$ then find $ f'(0)$?

Let $f: \mathbb{R}\to \mathbb{R}$ be a twice differntiable function and $f(\frac{1}{n})=0$ all $n\in \mathbb{Z^{+}}$? then which of the statement (s) are correct from below.  (a)$f(0)=0$  (b)$f^{'}(0)=0$  (c)$f^{''}(0)=0$  (d)$f$ is a non zero polynomial  I tried of using Tyler series but I wasn't able to do this any help would be appreciated thank


How can I define a neighborhood (not only $\delta$ neighborhood) in $\mathbb R$.

How can I define a neighborhood (not only $\delta$ neighborhood) of a point in $\mathbb R$.  without using metric concept.  According to rudin's definition which must be a open set.


When you call ping name.domain, it goes through both /etc/hosts and the DNS resolver to obtain an IP. It could be an IP hard-coded in /etc/hosts, or it could be one from the DNS server. It does so by calling getaddrinfo() or equivalent, not directly, of course.  How do I call getaddrinfo() from shell? How do I reproduce the effect of "normal" net utilities to obtain an IP from an address?  This is not about using dig/host which only go through DNS, or getent which only goes through hosts. I want to reproduce common application behavior (e.g. ping) when it receives a name it needs to resolve. There are other questions about dig/host. This question is not a duplicate of those.  Update: here are my findings (based partly on answers to other Qs)   on Ubuntu (and Debian?) there is gethostip -d name.domain from syslinux. perl -MSocket -le 'print inet_ntoa inet_aton shift' name.domain works reliably and is terser than the accepted answer. Using getent may also work: getent ahostsv4 name.domain | grep STREAM | head -1 | cut -f1 -d' '   This seems to be the best one can do.


Missing links to responses to comments on nomination posts

In the responses tab in my profile, responses to comments on nomination posts include a working link in the page source, but because there's no title the links are empty and useless.    When listed in the inbox such posts do have a title, though in this case the link is to the post and not directly to the comment. (Actually, the links in responses end up being redirected and also go to the post and not to the comment, but they try to go to the comment.)  In Supercollider:    In Global Profile:


When I enter my terminal with "sudo apt-get update" the following jumps up:  Err:19 http://ppa.launchpad.net/flimm/ooo-thumbnailer/ubuntu bionic Release     404  Not Found [IP: 91.189.95.83 80]  Get:20 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [644 kB]  Err:21 http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu bionic Release         404  Not Found [IP: 91.189.95.83 80]  Get:22 http://gb.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [941 kB]  Get:23 http://gb.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [954 kB]  Err:24 http://ppa.launchpad.net/pcf/miro-releases/ubuntu bionic Release         404  Not Found [IP: 91.189.95.83 80]  Err:25 http://ppa.launchpad.net/ubuntuone/nightlies/ubuntu bionic Release       404  Not Found [IP: 91.189.95.83 80]  Reading package lists... Done   E: The repository 'http://ppa.launchpad.net/flimm/ooo-thumbnailer/ubuntu bionic Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.  E: The repository 'http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu bionic Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/pcf/miro-releases/ubuntu bionic Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.  E: The repository 'http://ppa.launchpad.net/ubuntuone/nightlies/ubuntu bionic Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.   So, the question is, how to do update properly? Or else, how to correct the obvious previous mistakes?


Spatial data not aligning after Define Projection?

I have three shapefiles and two buffers made from two separate shapefiles. I was trying to do a spatial join and it kept coming up with an empty file even though there was clearly overlap. I realized that some of the shapefiles had different projections. I changed them all to NAD 1984 for zone 18 and I also tried WGS, and then GCS WGS, but two of the shapefiles and a buffer file are now unaligned with a shapefile and its buffer. They are all the same coordinate system and they aren't aligning when they were before I changed the coordinate system. Is there a way to change them back? The undo button just says "remove layer." Or suggestions to fix this? I don't want to start from scratch with the original data.


I have a burning desire to install RPMs onto my Ubuntu installation - is this possible? Can I use Yum - or another RPM Package Management tool?


Most elegant way of turning bits on and off

I've got a register which can either be 0x02 or 0x01 (0010 or 0001). What is the most elegant way of setting the bits in a single operation? E.g. if the register is currently 0x02, I need to turn off bit 2 and turn on bit 1.  Many thanks


I have bought a Google Nexus 7 3G Tablet.  But, My country and area doesn't allow me to use 3G sims/Wi-Fi.  We have only 2G sims. When I insert the sim, I can connect to the Internet. I can send and receive SMS messages via "Go SMS Pro" application.   But, I am unable to use voice call system which is available in any simple nokia / samsung java supported mobile.  Will my Nexus 7 allow me to send and receive Voice calls in 2G network? Because, to know sim balance we have to call on *XXX# or to know about data usage (Internet MB), we have to dial a number. Also, to call any phone number, we have to dial. So, what can I do to send and receive Calls like any simple mobile phone?


How To Clean The Malware Infected & Hacked WordPress Websites?

I have some websites build with WordPress. My sites are affected by Malware programs and Hacked by someone frequently. Finally got a solution to stop this issue.  I create this post for share my tips because i have found lots of sites got affected by the same issue daily.  Do this for your WordPress site to clean your Malware infected and Hacked wordpress sites. It will also helpful to secure your websites from attacks.


How to align an input field using inline CSS?

I want to centre align an input text box on a webpage and (for certain reasons) I want to use inline CSS only. I tried the following and several other techniques but none worked. <input type="text" id="myInput" style= "margin: auto; width: 80%;background-repeat: no-repeat;" >  I suspect I am making a conceptual mistake, but I am unable to identify it. Please shed some light. If required, here is the full code:   function myFunction() {   var input, filter, ul, li, a, i, txtValue;   input = document.getElementById("myInput");   filter = input.value.toUpperCase();   ul = document.getElementById("myUL");   li = ul.getElementsByTagName("li");   for (i = 0; i
 -1) {       li[i].style.display = "block";     } else {       li[i].style.display = "none";     }   } } * {   box-sizing: border-box; }  #myUL {   list-style-type: none;   padding: 0;   margin: 0; }  #myUL li a {   border: 1px solid #ddd;   margin-top: -1px;   /* Prevent double borders */   background-color: #f6f6f6;   padding: 12px;   text-decoration: none;   font-size: 18px;   color: black;   display: block }  #myUL li a:hover:not(.header) {   background-color: #eee; } <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for a product.." title="Product Search" style="margin: auto; width: 80%;background-repeat: no-repeat;">

phones

laptops

desktops

headphones

speakers

cameras

fridges


.NET String.Format() to add commas in thousands place for a number

I want to add a comma in the thousands place for a number.     String.Format()?


How do I resolve these unmet dependencies?

Opening the Ubuntu software center yields an error that says:  Items cannot be installed or removed until the package catalog is repaired. Do you want to repair it now?   After clicking repair, the following error is returned:  Package dependencies cannot be resolved   After doing some research, many people suggest running:  sudo apt-get -f install   However, it returns:  Correcting dependencies... failed. The following packages have unmet dependencies: libnss3-1d: Depends: libnss3 (= 2:3.16.3-1ubuntu1) but 3.15.4-0ubuntu0.12.04.3  is installed  libnss3-nssdb : Depends: libnss3 (=2:3.16.3-1ubuntu1) but 3.15.4-0ubuntu0.12.04.3 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies   I have no idea where to go from here. If I recall correctly, I was trying to install a flash plug in for Firefox, because youtube was occasionally throwing me an error and telling me to upgrade flash player.  This error is especially frustrating, as I cannot install software until it is resolved. It is worth noting that I have also tried using Synaptic Package Manager's "fix broken dependencies" or whatever, and it didn't work.


In a metric space,two disjoint closed sets can be separated by two disjoint open sets.

Consider $2$ closed sets $A,B$ with $A\cap B=\emptyset$.Note that for $x\in A$,$d(x,B)>0$, because if for some $x\in A,d(x,B)=0$ then $x\in \overline B=B$, which contradicts the disjunction between $A$ and $B$. So, for each  $x\in A$, we can choose $\eta_x$ such that $B(x,\eta_x)\cap B=\emptyset$. Consider $E=\cup_x B(x,\eta_x)$. Similarly construct $F=\cup_yB(y,\eta_y)$. Now, it is clear that $E\cap F=\emptyset$ and $A\subset E$ and $B\subset  F$ and $E,F$ are both open. Is this correct?I just want to make sure whether my approach is correct or how can I proceed through this method.I am not looking for a solution to this problem.


Displaying errors to a user - One at a time or all at once?

For context: This is a desktop application interacting with a service running on W7.  I'll try and leave all the technical details out of this, but here goes:  Part of my application has to send a large amount of data to the server which is then validated server side. Any errors found are sent back to the client to handle.  My 'problem' is that this large amount of data (in this case, a person) can have a lot of things 'wrong with it' which can be summarised into two main errors:   Required fields not being filled in. (Name not provided) Data being entered but still invalid due to a business rule (person is under the age of 18, phone number entered as ABC123, assessment was completed, but no completion date was entered, etc.)   Now even with all the client side validation I can put in, there still might be cases when a number of errors that aren't detected. (business rules, mostly) How should these errors be displayed to the client? I only see three real options here:   Displaying the server side errors into the UI somehow. I'd like to avoid this possible since I'm not 100% sure on how to code this without writing a mass of spaghetti code to determine which error is for which field. List one error at a time. When a user submits the data, show the first error that is returned and ignore all the others. When the user resubmits, shows the next one, and so on. I have a feeling this could annoy some people who will probably send me angry emails along the lines of 'Why don't you show me all the errors at once?!?!?' Show them all at once. I could have all the errors showing at once, but this is going to cause a few problems:   The dialog box should potentially be huge if they've somehow got 15 or so errors. No one is going to remember all 15 problems unless they screenshot the message or write them down. The API on Windows might not allow me to fit all message in one dialog leaving users to click through an unknown amount of dialogs.    How should I approach this?


Can we use "should" instead of "" and vice versa? I've noticed that mostly they mean the same thing in the subjunctive and the conditional clauses. Especially when the "were to" isn't in the if-clause but an  instead.  What I mean to say is that these mean the same:   Should we get more money next month, we would be able to buy an oven. Were we to get more money next month, we would be able to buy an oven.   But my British friend says that "should + would" is incorrect grammar and "will" should be used instead. I cannot find a way to prove that my examples are correct. And he says the inversion is too formal and best be avoided. His variants are:   If we should get more money next month, we will be able to buy an oven. If we were to get more money next month, we would be able to buy an oven.   That makes them completely different in meaning.


Is it okay to use Stack Overflow as the support forum for a product or project?

I recently saw a question about a problem (or possible bug) with some product on Stack Overflow. At first, I wanted to suggest that the asker post his question to that product's support forum.  When searching for the URL of that forum, I noticed that the product developer closed its support forums and now advises users to post all their questions on Stack Overflow instead.  Is this within the intended use cases of Stack Overflow, or is this abuse?


I want to loop through a Python list and process 2 list items at a time. Something like this in another language:  for(int i = 0; i < list.length(); i+=2) {    // do something with list[i] and list[i + 1] }   What's the best way to accomplish this?


I think this problem should be relatively simple, but I don't know how to do it.


TypeError: () missing 1 required positional argument: 'self'

I made a class "var" that has on_set(),on_get() and on_change() methods: class var:     def __init__(self):         self.v = None     # setter = lambda self,v: print(self.v,v)     def set(self,v):         if v != self.v:             self.v = v             self.on_change()         self.on_set()     def get(self):         self.on_get()         return self.v     def on_set(self):         pass     def on_get(self):         pass     def on_change(self):         pass      then i did this: a=var() a.on_set = lambda self: print(self.v) a.set(2)  Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\api\py\Styg\Styg.py", line 44, in set     self.on_set() TypeError: <lambda>() missing 1 required positional argument: 'self'  what am i doing wrong?


How do I fix my code?  At the moment my character goes up for as long as you hold the up key.  I want a more jump like effect where the character will drop back down when it reaches a certain height.  I want the character to only be able to jump again once it's fallen back down.  Below is my code so far.  var canvas = document.getElementById("mainCanvas"); var context = canvas.getContext("2d");  var keys = [];  var width = 500, height = 400, speed = 4;  var score = 0;   var player = {         x: 40,         y: 350,         width: 20,         height: 20,         gravity: 20,         weight: 1     };  window.addEventListener("keydown", function(e){         keys[e.keyCode] = true;     }, false);  window.addEventListener("keyup", function(e){         delete keys[e.keyCode];     }, false);  function game(){     update();     render(); }  function update(){     if(keys[38]) player.y-=speed;      if(speed < player.gravity) player.y+=player.weight;      if(player.x < 0) player.x = 0;     if(player.y < 0) player.y = 0;     if(player.x >= width - player.width) player.x = width - player.width;     if(player.y >= height - player.height) player.y = height - player.height; }  function render(){     context.clearRect(0,0,width,height);      context.fillStyle = "blue";     context.fillRect(player.x, player.y, player.width, player.height);      setInterval(function(){             game();         }, 1000/60) }


In $\mathsf{ZF}$, for each set $A$ exists an ordinal $\alpha$ such that no surjection $A\to \alpha$ exists

Some observations.  The statement can easily be proven in $\mathsf{ZFC}$, but we do not assume that $\mathsf{AC}$ holds.  If one proves that $S=\{\beta \mid \text{there is a surjection $A\to    \beta$}\}$ is a set, the statement follows by taking $\alpha=\sup S$.  An obvious candidate would be $\alpha=h(A)$, the Hartogs number of $A$.   All my attempts to prove the statement required some form of $\mathsf{AC}$. I'm starting to wonder if the statement can be proven in $\mathsf{ZF}$.


On this , I tried to format code, (indented 4 spaces) followed by a Unordered List to document the params, then another line of code, and more documentation.  The second line of code will not appear as code.  I've tried a variety of BR and P and other separators, but it doesn't work.  What am I seeing? Is it browser specific? is it already known? Am I doing something wrong?    Student* findhighest(Student*class, int length, Type search);    class - the array of Student Stuctures length - how many students are there type - the enum telling the functions which part of the structure to access return: The function returns the student with the highest average specified by the enum.  void getaverages(Student* class, int length, Type Search); // This does not appear as code. class- the array of Student structures length- how many students there are type - the enum telling the functions which part of the structure to access.


How long will a battery last based on these numbers

Hi I asked  question on SU but seemed to have gotten into a bit of trouble, I was referenced here.  I am getting into doing hardware build based on things like microcontrollers and microprocessors.  I am curious how to calculate how long a battery can power a certain object.  Let's say we have a motor that says something like  3.5V and 100W   I don't have a motor yet a search lead me to this one: AmpFlow G43-500 Motor  The big G43-500 motors work great for applications that require sustained power output of up to 500 Watts (0.67 horsepower).  Specs Watts - Continuous  500 Diameter    4.3 in. Length  5.3 in. Efficiency  80% No-Load RPM @ 24V   3300 Output Shaft    11-Tooth #25 Sprocket Weight  8.6 lb The above specifications are for 24V. The motors can also be used at 12V or 18V. The RPM is proportional to the voltage so running at 12V will result in half the no-load RPM that is shown above for 24V. The lower voltage also reduces the maximum achievable torque by 50%. The motors have also been tested and used at higher voltages resulting in higher RPM, torque, and power. Shorter duty-cycles are recommended for higher voltages to allow the motors time to cool.   I also saw these specs on another site  Model                G43-500     Watts - Continuous   500         Diameter (inches)    4.3         Length (inches)      5.3         Efficiency           80%         Voltage*             24*         No-Load RPM @24V     3300        Output Shaft         Sprocket       The above specifications are for 24V. The motors can also be used at 12V or 18V. The RPM is proportional to the voltage so running at 12V will result in half the no-load RPM that is shown above for 24V. The lower voltage also reduces the maximum achievable torque by 50%. The motors have also been tested and used at higher voltages resulting in higher RPM, torque, and power. Shorter duty-cycles are recommended for higher voltages to allow the motors time to cool.   or something like that, how can I then say okay I have a  3.5 Volt 1000mAh battery  How long should it last?  If there's a formula that I can follow that would help. I am not trained EE.   [EDIT] I want to thank  for actually providing a good information to help clarify what I needed to then go do further research and learn the math behind all of this. I'd like to add  on how to calculate how much batteries you will need. I didn't go to school for engineering so this is all new to me.


How do I put a stencil-like texture across a sectioned object PART II

Because this 3rd answer is very good I am creating a Part II post so as not to confuse this answer with the previous two answers as found here in the first post:   To recap: I have an object I am trying to add a secondary graphic across sectioned planks of wood. In other words, (and not outlined in the first Question) is that there is also a wood texture on the crate that the text UVmap has to go OVER. Doubling the images.   Unlike the previous 2 answers this essentially maps two images to the side of the crate.


Let $c>0$. Let a sequence $(a_n)$:  $a_1=1$,   $a_{n+1}=\frac{1}{2}(a_{n}+\frac{c}{a_{n}})$.  Calculate $$\lim_{n \mapsto\infty }a_n$$  So, my solution is: I can show in induction that $a_n$ is determinated for all $n$. I showed in induction that $(a_n)$ is trupped between $1$ and $c$, (by seperating the cases of $c>1$ and $c<1$).  I guess I need to separate for the 2 above cases and show that the sequence is monotonous and then I can conclude that the sequence converges, and show that the limit is $\sqrt c$. But I cannot know for sure that there's exist a limit to the sequence.


I'm working on a SharePoint app where I need to run SP.RequestExecutor.executeAsync() in order to grab some information from one of the Host Web's lists. Depending on what method is calling the oData call I want to do something different.   Unfortuntely, executor.executeAsync() isn't playing as nice as $.ajax() does in terms of using $.when().done() and executing code after an async call is made. Below is some code if you'd like to see:      load = function (){         $.when(getEntries()).done(function () {             ViewModels.Calendar.addEventSource(ko.utils.unwrapObservable(eventList));         });     }      getEntries = function () {         return executor.executeAsync({             url: appweburl                 + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('" + LIST + "')/items?@target='" + hostweburl                 + "'&$select=Title,OData__x006e_ot5,qnlu,OData__x0066_x20"                 + "&$filter=OData__x0066_x20 eq '" + ViewModels.Person.user.userName() + "' "                 + "and qnlu ge DateTime'" + startDate().toString("yyyy-MM-dd") + "T00:00:00' "                 + "and qnlu le DateTime'" + endDate().toString("yyyy-MM-dd") + "T00:00:00' ",             method: "GET",             headers: { "Accept": "application/json; odata=verbose" },             success: onGetEntriesSuccess,             error: onoDataCallFailure          });     },      onGetEntriesSuccess = function (data) {         var jsonObject = JSON.parse(data.body);         $.each(jsonObject.d.results, function (index, item) {             eventList.push(new Event(item.qnlu, item.OData__x006e_ot5));         });     },      onoDataCallFailure = function (data, errorCode, errorMessage) {         alert('Failed to get host site. Error:' + errorMessage);     };   Any ideas/suggestions would be appreciated.


Update 12.04 LTS to 14.04 on dual boot laptop with win7 already installed

Have 12.04 LTS on laptop with win7 as a dual boot install. Want to upgrade it to latest LTS version 14.04.  So what is the best process, upgrade or do a clean install? Upgrade will be long path but should not affect current app;ications, thunderbird libre office  clean install will require thunderbird to be configured for all mail boxes. if clean instal how does one handle the partitions? will 1404 install recognise existing 12.04/win7 partitions or will I have to re-image win7 onto laptop as well?


Let $H$ be separable Hilbert space.I’m trying to prove that      The only  proper closed ideal of $B(H)$ is $K(H)$, the compact operators on $H$   I can see that every closed ideal of $B(H)$ must contain $K(H)$ but I cannot see the other part.   I’m sure that that there must be many books which contains proof of this result but I could not find any. Any references which has proper  proof of the same fact?


Three ways of grouping: compare and contrast

Grouping is often important in TeX/LaTeX programming. I know of three ways to delimit a group:   Via a \begingroup…\endgroup pair; Via a pair of matched braces {}; Via a \bgroup…\egroup.   Now I am wondering: what is the difference between these three? Does their effect depend on whether they appear in math mode or text mode? In which way, if so?  Note: I am sure that if I look through the TeXBook, TeX By Topic, and some other resources I will find an answer. However, I am sure there are many others who are curious about this and do not have the time to engage in such a search -- just like me. It would surely be useful to have the info all in one place -- e.g. as an answer here.


Gnome-screenshot not showing prompt for setting file name in Ubuntu 18.04

I'd like to set every screenshot name manually and choose the place to save it. The prompt was showing in Ubuntu 16.04 but is not showing in 18.04. There is no option to enable that prompt in:    gsettings list-keys org.gnome.gnome-screenshot


Whether all attempts to determine the ip address successfully if Master DNS shutdown and secondary DNS work

Domain exemple-domain.com has two DNS server: dns1.exemple.com (master) and dns2.exemple.com (slave).  questions: If dns1.exemple.com temporarily disabled and dns2.exemple.com works, is it possible that some attempts to define ip addresses fails?  I try it many times in succession  dig @8.8.8.8 exemple-domain.com | awk '/^;; ANSWER SECTION:$/ { getline ; print $5 }'   and part of the query does not receive a reply  Could there be a part of that traffic would be lost if dns1.exemple.com not working and dns2.exemple.com work?


I would like to know how to manually insert a line break inside a table cell. Sometimes, this just looks so much better. However, I have not found anything that helped me out. I tried using \shortstack but the headspace to the horizontal lines is very small.  Here's my code:  \begin{table}[htbp] \centering     \resizebox{0.8\textwidth}{!}{         \begin{tabular}{p{4cm} c|c}             Parameter Category & Mathworks Toolbox & LMN Toolbox \\             \hline             Estimation Focus (Prediction or Simulation) & Focus-Parameter & kStepPrediction Value \\             \hline         \end{tabular}         }     \caption{ARX vs. OE Model Structure}     \label{tab:modelParameters} \end{table}    I'd like to put '(Prediction or Simulation)' in a new line in the same cell under Estimation Focus.  Thank you in advance !


On the Stack Overflow help center article about review queues, , it says on the bottom:  Note: These two queues do not exist on Meta sites.  But there are Late Answer and First Posts review queues on Meta Stack Overflow, as far as the  says. So shouldn't that last sentence be removed?


Remove CSS class from element with JavaScript (no jQuery)

Could anyone let me know how to remove a class on an element using JavaScript only? Please do not give me an answer with jQuery as I can't use it, and I don't know anything about it.


I am using Ubuntu 14.04.  Mostly I study from e-books, so I read e-books in fullscreen or play games in fullscreen. How to set a sound alert for low battery?


If the fact that $f_y$ and $f_x$ are continuous can implies $f$ is continuous?

Let $X,Y,Z$ be topological spaces, and $$f:X \times Y \rightarrow Z$$be a function, it induces  $$f_y:X \rightarrow Z$$ where $f_y(x)=f(x,y)$, and  $$f_x:Y \rightarrow Z$$ where $f_x(y)=f(x,y)$. Obvious that if continuous $f$ implies continuous $f_x$ and $f_y$, but my problem is:   If $f_x$ and $f_y$ are continuous for all $x\in X$ and $y\in Y$, is $f$ continuous? (On metric space the answer is yes, but I don’t know it if $X,Y,Z$ are general topological spaces.)


Hydrogen is the lightest element, so it's cable of lifting the most weight in out atmosphere (probably not the best terminology there, but you get the picture)  Would hot hydrogen (in the same sense as hot air) be able to lift even more mass? Would a higher or lower density of hydrogen in a ballon lift more? If you could have a balloon which had nothing in it (it was a vacuum inside) would that lift more than a hydrogen balloon?  Basically what are the physics to balloons and lifting?  (really not sure what to tag this, so if someone else could that'd be great)


Transportation options from EWR to JFK airport

I have to catch an international flight from JFK on a Monday night. Looking for transportation options from EWR to JFK. Is Uber the cheapest option?


What does the expression $Pr(x|y;\theta)$ mean? As in: $$ {\displaystyle {\begin{aligned}L(\theta |x)&=Pr(Y|X;\theta )\\&=\prod _{i}Pr(y_{i}|x_{i};\theta )\\&=\prod _{i}h_{\theta }(x_{i})^{y_{i}}(1-h_{\theta }(x_{i}))^{(1-y_{i})}\end{aligned}}} $$   I've never been able to figure out what $Pr$ means. What's the difference versus $P$?


Run command whenever someone joins a Minecraft server

Is there any way to run a command automatically when a player joins the server? I need to do this without the use of a Bukkit plugin. I think it's possible with MCP but I want to know how!


If $p$ and $p^2+2$ prime, then $p^3+2$ prime.

first time doing such a proof. I somehow can't make it work, where's the problem?  Claim: If $p$ and $p^2 + 2$ is prime, then $p^3+2$ is prime. Proof:  Basic idea: Since we are always adding $2$, we are cheking the remainder of modulo $3$.  Case: $p=2$  this doesn't hold the claim, omit.  Case: $p=3$  since 3 is prim and $p^2+2=11$ is prime, we calculate $p^3+2=29$ which is also prime.  We now check for the remainder of mod $3$. The idea is, that if $p$ is a prime and we take it mod $3$, we get $R_3(p)\in\{1,2\}$.  We can now make a case distinction.  Case 1: $R_3(p) = 1$  If that is the case, $p$ is prime. We check, if $p^2+2$ is prime:  $R_3(p^2+2)=R_3(R_3(p^2)+R_3(2))=R_3(R_3(R_3(p)\cdot R_3(p))+2)=R_3(R_3(1+2))=R_3(0)=0$. So $p^2+2$ isn't a prime. Thus, we can omit this case.  Case 2: $R_3(p) = 2$  $R_3(p^2+2)=R_3(R_3(p^2)+2)=R_3(R_3(R_3(p)R_3(p))+2)=R_3(R_3(6))=0$  This case doesn't hold either.  So somewhere in my though process I made a terrible mistake but I can't see where. :/


UK visa refusal for undocumented deposits?

My short term study visa was refused and the only cause mentioned in the letter was the presence of undocumented old deposits in the bank transactions. I haven't explained the deposits as they are old and have entered and exited the account long ago (no longer in my balance). Now I am planning to apply again but I am so afraid of having a second refusal.  How can I explain the deposits? Most of them are from one friend. I will explain that they are an old debt and my friend has returned it to me via multiple deposits. I will let him sign a paper confirming this. Will this be enough?  Also, I was afraid of other reasons that they did not mention at all in the refusal letter. Can they refuse me for other reason that they didn't explain in the first refusal?


Removing a group from layers panel using PyQGIS?

How can I remove a group that I created previously using :  groupName="machin"  root = QgsProject.instance().layerTreeRoot()  group = root.addGroup(groupName)


In English possessive adjectives and reflexive pronouns are   I - My - Myself You - Your - Yourself He - His - Himself * She - Her - Herself * It - Its - Itself * They (sing.) - Their - Themself * We - Our - Ourselves You (pl.) - Your - Yourselves They - Their - Themselves *   Except for the starred ones, all reflexive pronouns are formed by combining possessive adjectives and the word "self". But starred ones are formed differently. They use objective pronouns. Why are the formations of these reflexive pronouns different?


Let $M$ be a smooth close $4-$dimensional manifold and let $p\in M$ be a point. Denote by $\hat{M}$ the blow-up of $M$ at $p$ and let $E \cong \mathbb{C}P^{1}$ denote the exceptional sphere which is embedded. How can one show that the self-intersection number of $E$ is $-1$, i.e. $E \cdot E = -1$?


Could not load file or assembly 'System.Web.Mvc'

My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server...    Server Error in '/' Application.    Configuration Error  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.     Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.    Source Error:    Line 44:         <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 45:         <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 46:         <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Line 47:         <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> Line 48:         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>   Source File: C:\inetpub\www.example.org\web.config    Line: 46    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.     WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].     Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053    Do I need to install the AspNetMVCBeta-setup.msi on the server?  Or is there a different installer for servers?


Combinatorial argument for $1+\sum_{r=1}^{r=n} r\cdot r! = (n+1)!$

Combinatorial argument for $$1+\sum\limits_{r=1}^{r=n} \ r\cdot r! = (n+1)!$$  The algebraic proof is easy as $r=(r+1)-1$.


If $(I-A)(I+A)^{-1}$ is orthogonal then prove that A is skew symmetric.  I can't solve this question.


let $a,b$, and $c$ be integers with $b \ne 0$, and $b|c$. Prove that $\gcd(a,b) =\gcd(a+c, b)$

since $( b|c)$, $c = xb$ So, $\gcd(a,b) = \gcd(a + xb, b)$ Euclidean algorithm shows shows that for $a=bq + r$, $\gcd(a,b) = \gcd(b,r)$ This is where im stuck, I've approached this quesiton so many ways but can't figure out how to apply the algorithm for the proof.


Prove that  $GL(n, \mathbb{C})$ is isomorphic to a subgroup of $GL(2n, \mathbb{R})$.  My Proof: For an $A \in GL(2, \mathbb{C})$, $$ A = \begin{bmatrix} a+bi &c+di \\ e+fi & g+hi \end{bmatrix} =  \begin{bmatrix} a &c \\ e & g \end{bmatrix} + i \begin{bmatrix} b & d \\ f & h \end{bmatrix} .$$ It follows that $ GL(n, \mathbb{C})$ is a subset of $GL(2, \mathbb{R}) \oplus GL(2, \mathbb{R})$. (it is a subset because the condition that $\det A \neq 0$ puts more restrictions on the elements of $A$ than the condition that the two little matrices are invertible.) Thus the result holds for $n=2$.  Can this argument be generalized to any $n$? The hint was to use group actions, of $GL(n, \mathbb{C})$ on $GL(2n, \mathbb{R})$, using the fact that $\mathbb{C}^n \cong \mathbb{R}^{2n}$. I don't understand why a group action would be helpful?


doubt about the solution to an induction problem exercise

I need to prove that $5^n-1$ is divisible by $4$, $\forall n \in \mathbb{N}$.  So for the inductive step I know that:  $$5^{n+1} -1= 5\times5^n -1$$  but how do I get from there to:  $$(5^n -1) + 4\times 5^n?$$  (That is the solution to the exercise.)


Change the "major dimension" that Orthographic Scale affects?

I have an orthographic camera to capture a plane of width 1. When I set Orthographic Scale to 1,  the camera captures 1 unit of the space in the height dimension.  Can I change the "major dimension" that Orthographic Scale affects?


Problem installing build-essential on 14.04.1 LTS

I'm trying to install VM Player on Ubuntu 14.04.1 LTS.  I've seen threads for earlier versions of Ubuntu that say to install build-essential and linux headers first.  It appears that linux headers is already the newest version.  However build-essential will not install for me.  sudo apt-get install build-essential  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package build-essential   Is there something I am missing here?  Thank you in advance for your help.


Is it possible to stop an algorithm midway through processing in QGIS?

This question come about do to an annoying though infrequent issue I have been having in QGIS. On occasion, I will begin processing a tool that will take some time to run but realize midway through that I do not want to complete the algorithm with the provided inputs. Previously I have had to end the task with my task manager since I have found that closing out of the window does not always stop the process. Ending in this way can cause data loss sometimes. Does anyone know of a way, inside the QGIS console, to stop a process?


Does Lily Potter's sacrifice make Harry and Voldemort immortal?

I know that when Lily sacrificed herself for Harry, Voldemort could no longer touch him and any attempted Avada Kedavra on Harry by Voldemort would rebound onto himself, until, of course, he took some of Harry's blood and put it into himself.   Now Harry and Voldemort share Lily's sacrifice and protection and also share Voldemort's soul since Harry is a Horcrux. When Voldemort tried to kill Harry in the Forbidden Forest, Harry was kept alive by his own blood which ran through Voldemort's veins. When Harry then challenged him a second time, Voldemort's killing curse rebounded onto him yet again since the Elder Wand won't kill its master.   But Voldemort shouldn't have been able to die since Lily's blood sacrifice lived in him and Harry should never be able to die either... shouldn't they both be immortal? I don't get it, someone help!


Can I / how do I explicitly terminate a long running xhr request?

Can I cause an xhr request to interrupt/terminate clientside? I have a number of long running requests, and I want to abandon them once they're no longer relevant.


Where is the right place to register/enqueue scripts & styles

I am using WordPress 3.1.4 by now. I am confused with where (which hook) do I use:   to register and/or enqueue  scripts and styles  on front- and back-ends?   Questions:   Which are right hooks to use? All front end register/enqueue scripts/styles in init? Why is there no admin_print_styles-{xxx}?


Operator whose spectrum is given compact set

Let $A\subset \mathbb{C}$ be a compact subset.   Since $A$ is compact and metric space, it is separable, say $\overline{\lbrace a_n\rbrace_{n=1}^\infty}=A$.   Let $\mathcal{l}^2(\mathbb{Z})$ be the Hilbert space consisting of $L^2$-summable sequences and $\lbrace e_n\rbrace_{n=1}^\infty$ be the canonical basis of $\mathcal{l}^2(\mathbb{Z})$.  Define an operator $T\colon\mathcal{l}^2(\mathbb{Z})\to\mathcal{l}^2(\mathbb{Z})$ by sending $e_n$ to $a_ne_n$. I want to prove that $A=\sigma(T)$, where $\sigma(T)$ is the spectrum of $T$.   What I can prove is that $A=\overline{\lbrace a_n\rbrace_{n=1}^\infty}\subset \sigma(T)$ because each $a_n$ is an eigenvalue of $T$ and $\sigma(T)$ is closed. How can I prove the other inclusion, namely $\sigma(T)\subset A$?


CryptoLocker Ransomware. Can you recover files?

Today one of our PCs got infected with nasty CryptoLocker trojan crap.  The PC was a Windows XP machine with up-to-date NOD32 a/v. As you probably know the virus encrypts your file with an 2048 bit RSA public key and only the bad guy has the private key. So... they ask for 1.16 BTC or 500 EUR as a ransom via TOR.  I glanced through google results I saw some of the resources mentioning that it encrypts the files and then deletes the original ones. So, is it possible to recover those deleted files using some recovery tools like "Recuva"? Maybe some Linux magic? Or have they thought of that too and the data loss is permanent?   Some of the search results say, that they could have left the private key behind in %appdata% folder or that kind of stuff, though I seriously doubt it :)  Please share your experience if you had that happen to you and you managed to recover or if you have any suggestions. Any help is appreciated!  PS. I can't physically access the machine as of right now as it didn't get shipped from branch office yet, so can't really try anything. Just want to prepare for the good or the bad.


Finding installed packages and the version

I'm very new to ubuntu and I'm trying to find a command that tells what packages and the versions are installed on my "sandbox" I'm looking to bundle this as a output file


C# - MS Test - Create a test that runs another test first

In our application, I have created a login test for our website. If this test is successful then login is successful. Now to create tests for other parts of the website, I need to perform login first.  Is there a way so that all the other tests that I will create will run the login test first? For example: is it possible to create a custom login test attribute that I can put on all other test methods, so that they will run login first? But then I also need the return value from that login test !  If not, then I will have to just write a plain C# function that performs login operation and I will need to put that function call, as the first line of every test.


Find the value of: $$I=\int_{\pi /4}^{65\pi /4} \frac{dx}{(1+2^{\cos x})(1+2^{\sin x})}$$  First, I rewrote the limits as the function goes from $\frac{\pi}{4}$ to $\frac{9\pi}{4}$. Now the integral with the reduced limits has the value $\frac{I}{8}$. I used standard properties of definite integrals like converting $f(x)$ to $f(a+b-x)$ where $a,b$ are the lower and upper limits of the integral. Considering symmetry of the trigonometric functions, I believe I can even change the limits to $0$ to $2\pi$. However, this does not simplify the problem as much as I would like. Please advice.


Why isn't my composer installation working?

I followed the instructions on  for installing Drush, proceeded by the recommended steps for  and a new Drupal 8 project. My project (cfbtv) is located at ~/sites/cfbtv and it appears the composer template (whatever that is) installed Drupal in the web directory.  When I try the recommended Composer commands they fail. composer update devel outputs the following.     Package "devel" listed for update is not installed. Ignoring.   Loading composer repositories with package information   Updating   dependencies (including require-dev)   Nothing to install or update   Generating autoload files   When I run composer require devel, I get this message.     [InvalidArgumentException]   Could not find package devel at any version for your minimum-stability (stable).   Check the package spelling or your minimum-stability.    require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...    So what is the problem here? Composer seems to have installed properly, but I'm surprised these commands aren't working. Maybe it works and I'm not using it correctly.


Unable to solve using exact method after finding integrating factor

I have been trying to solve the following problem, but I am getting stuck...  we have: $-y^2dx + x^2dy = 0$   given: $u(x,y) = \frac{1}{(x-y)^2}$  both have partial derivative: $\frac{-2xy}{(x-y)^3}$  so we have the exact equation: $\frac{-y^2}{(x-y)^2}dx + \frac{x^2}{(x-y)^2}dy = 0$  now, I try integrate the dx expression: $\int\frac{-y^2}{(x-y)^2}dx$  This gives me: $\frac{y^2}{(x-y)} + g(y)$  Differentiating with respect to y gives: $\frac{-y(y-2x)}{(y-x)^2} +g'(y)$   I have checked my work for the above integral and derivative and also used an online calculator to verify that they are correct. Every other problem of this type that I have tried has had something meaningful come of:  $\frac{-y(y-2x)}{(y-x)^2} +g'(y) = \frac{x^2}{(x-y)^2}$  However, I have not been able to get anywhere using this to try to find a value for $g(y)$


I learned that the functions in class must be 'inline' from a book But, I can't understand why... That book wasn't enough I'm not native speaker in English, and so I'm very poor at searching in web described by Engilsh And my country's web sites is very closed to students like me So please answer me  I think If a function(not inline) were in a class, the function' s stackframe (some adresses, arguments and so on) would be created repeatedly whenever compiler refer to that function so this is why funtions in a class must be inline? Sorry for my poor English


To the best of my knowledge, light will always travel at the speed of light. How then does it get reflected and change directions? Wouldn't it have to decelerate, come to a stop, and then accelerate in the opposite direction?   Or would the direction of motion be discontinuous when graphed as a function of time?


How to use plugins_url() inside PHP stylesheet file

I created a plugin and use php file as stylesheet file  PHP style sheet file:  <?php     header('Content-type: text/css; charset: UTF-8');     $x_position = 0;     $y_position = -40px; ?> .blugin_box{     width:140px;     height:140px;     background:url("/mysite/wp-content/plugins/myimgfolder/my_img.png") no-repeat $x_position $y_position; }   It works well , but when I try to use plugins_url() as below, stylesheet stop loading  background:url(plugins_url()."/myimgfolder/my_img.png") no-repeat $x_position $y_position;   How can I make it work?


Shapefile layer no longer editable (toggle edit option greyed out) in QGIS

I am using QGIS 2.16 / Windows 10.  I have a point shapefile which I have been using for a little while that has always been editable.  Today I was editing the layer, saved my edits and left my computer for a few hours. When I came back I was not able to toggle the editing button on the toolbar and when I right click on the layer it longer has toggle editing as an option.  I have googled the problem every way I can think of and have not been able to find an answer to why the layer is suddenly un-editable or how to fix this.


Encapsulated PostScript files in TexShop

Error message:  LaTeX Error: Unknown graphics extension: .eps"   Graphics command:  \begin{figure}[t]   \includegraphics[ ]{graphics/"new checkers order M 0200.eps"}  \end{figure}   Unsuccessful variants:    \includegraphics[ ]{graphics/"new checkers order M 0200"}    \includegraphics[ ]{graphics/"new checkers order M 0200".eps}    File header:  \documentclass[conference]{worldcomp}  \usepackage[hmargin=.75in,vmargin=1in]{geometry} \usepackage[american]{babel} \usepackage[T1]{fontenc} \usepackage{times} \usepackage{caption}  %%% Recommended to use for better results and compatible with the worldcomp.cls \usepackage{textcomp} \usepackage{epsfig,graphicx}   %%% <========== \usepackage{xcolor} \usepackage{amsfonts,amsmath,amssymb} \usepackage{fixltx2e} % Fixing numbering problem when using figure/table*  \usepackage{booktabs} \usepackage{colortbl}   Using TeXShop v 3.51 with Typeset flags LaTeX and PdfTex. Distribution: TeXLive-2014, Intel 64.  The PDF versions from Mathematica have inferior typesetting and EPS fixes the problem. How can I use the EPS files?  ====== addendum: EPS vs PDF  The top figure is the eps version, notice the label for the dependent parameter. In the subsequent PDF version the letter "a" collides with the absolute value operator.


Publishing while working from home independently, what affiliation to give?

Currently I do not belong to any institution and work from home.  Now can I put the name of the last university I attended  in place of affiliation in a journal paper?   I have masters degree from Linkoping University, Sweden. Do I need to ask permission in this case ?  Regards, Umair


Why do the measurements of this object seem erroneous?

I just found out about the Mesh Display : Length feature in the "N" panel (thanks to ) that allows one to measure the length of a face or vertice.  But my first encounter with this tool gives me complex feelings of love and hate, see how, as I was trying to measure the aspect ratio of this TV screen, I am getting WIDTH = 20.33 and HEIGHT = 37.57.  These values seem awfully wrong, since my betrusted eyes tell me the height should be shorter than the width.    I have tried measuring the single vertices as well, to identical results.


"Failed to download repository information" after updating Ubuntu

I used the Software Updater and at the end it said     Failed to download repository information   Check your Internet connection     I saw an article said use sudo apt-get update  I tried and it said  Ign:1 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic InRelease Err:2 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release   Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs Hit:3 http://mirror.ehost.vn/ubuntu bionic InRelease Hit:4 http://mirror.ehost.vn/ubuntu bionic-updates InRelease Hit:5 http://mirror.ehost.vn/ubuntu bionic-backports InRelease Hit:6 http://mirror.ehost.vn/ubuntu bionic-security InRelease Hit:7 http://archive.canonical.com/ubuntu bionic InRelease          Reading package lists... Done                           E: The repository 'cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   I also saw a post saying that I should go to Settings and select Select best server in Download from in the Ubuntu Software tab.   However, when I closed that window this appeared:    I pressed Reload and it ran a cache update, but when it finished it again said      Failed to download repository information   Check your Internet connection      Details   E:The repository 'cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release' does not have a Release file.   My network is totally fine.


How to make tables in good format in asking questions here (which is understandable by others)?

When we paste a table from a note pad or word or any other source its not coming in a good table format in this Stack Overflow question editor/text box space. My question is how do you make an unscrambled table (good format table) here. What do you do to make this happen? For example I paste the following table from Notepad, but it looks non-understandable:  ID    LinkID  PC  TotalnoofoccurenceofID                  10R46   R*1005  8017    2 10R46   R*10335 5019    2 100R91  R*1005  8017    1 10R91   R*243   8870    1 10M95   R*4918  8305    3 10M95   R*9017  8305    3 10M95   R*9470  8221    3    I saw some people changed this into a good HTML-like table format.


Lost all hdd partitions. Formatting fails

I lost all partition hard drive (1 TB). It's completely formatted. Now it's in ext4 file system. I cannot make partition from that 1 TB. I used terminal window and tried to make it as a Linux logical volume manager, but failed.  Image showing my disks in Gparted:    Terminal window making Linux logical volume manager failed while writing:     please help me to fix this....


Permanently turn off new Google Maps and go back to old one

I found new Google Maps slow, useless (routes with only two points) and wrong. Is there any way, I can turn it off completely and go back to favored old Google Maps? Or is this — as with everything in Google — one way trip?  I found  text on this matter, but it seems useless. I have the feeling, that it discuss something completely different. It says about lite indicator in bottom-right corner. I don't have something like that. And provided links, that should switch new Google Maps engine between WebGL and canvas-based, simply doesn't work. All of them opens new window with annoying advertisment about new maps.  I even tried pasing part of URL, they're talking about (force=canvas) into any URL that my new Google Maps uses. Of course without any luck.  So... is there any way, I can get rid of new Google Maps, once and permanently?  UPDATE: In these days (April, 2015) Google , that soon new Google Maps will be the only one available. To my extremely negative surprise, this question will become invalid soon! :(


Passing a pointer to char array, and getting that arrays length in C?

How can I get the length of the array 'source'? I have this so far I was wondering if anyone had any suggestions. Thank you  For size I get -2074.   I do not know the length of the array, it's a random input.  #include <ctype.h>  int StrToUpper(char *destination[],  const char *source[]) {     int size = *(&source + 1) - source;      return size; }


ARIMA time trend analysis using R and SPSS and poor datasets: opposite signs for the Moving Average part

I want to study a time series using ARIMA. To understand what is the best ARIMA model, I use the function Arima (dataset, order, seasonal) from the package forecast in R. You can see dataset I am trying to analyse below.  TEST <- c(0, 0, 0, 8.718396e-04, 6.345178e-04, 4.752852e-04, 7.390983e-04, 2.973536e-04, 0, 0, 0, 0, 0, 1.138822e-04, 9.984026e-05, 0, 0, 7.015575e-05, 6.248828e-05, 0, 0, 8.847600e-05, 7.894841e-05, 3.533444e-05, 3.162255e-05, 2.840909e-05, 2.558068e-05, 2.313048e-05, 2.099782e-05, 0, 0, 0, 0, 0, 1.159205e-05, 1.077714e-05, 0, 0)   Using Arima(TEST, c = order(0,1,1), seasonal = FALSE) in R, I obtained the following results:  Series: TEST  ARIMA(0,1,1)                      Coefficients:           ma1        -0.2155 s.e.   0.1741  sigma^2 estimated as 3.221e-08:  log likelihood=274.33 AIC=-544.67   AICc=-544.33   BIC=-541.39   However, if I try to load the same dataset in SPSS, via Analyze > Forecasting > Create Traditional Models... and I select ARIMA(0,1,1), my results are different and, in particular, the sign of my ma1 is opposite, i.e.  ma1 = .215 SE = .163   I am a newbie in time trend analysis, and I performed these calculations for multiple datasets, some of them very poor. Initially, I associated my sign differences to the low quality of the dataset, however I am not sure if this could be the case also in this situation, given that the dataset does not seem so bad to justify radically difference results using different programs and, consequently, different algorithms.   I also tried to compare the plots obtained from R and from SPSS, and at first glance the seem identical.  Finally, I did some tests also looking at the autoregressive part, and I did not notice a similar phenomenon of sign inversion.  For example, if I use the same dataset and an ARIMA (1,1,0) I get the following results in R  Coefficients:           ar1       -0.1549 s.e.   0.1580  sigma^2 estimated as 3.26e-08:  log likelihood=274.11 AIC=-544.23   AICc=-543.89   BIC=-540.95   and in SPSS  ar1 = -.155 s.e. = .165   What could be the reason for this difference? And which results should I trust?


How to batch create number folders using CMD?

Is there a way to batch create multiple number folders using cmd in Windows 8.1 64-Bit?  I need something that'll create multiple number folders without using the following md command:  c:\users\user\desktop> md 1, 2, 3   I need something more like that'll make, per say "make folders 1-10" and I have those 10 folders after running the command.


Problem with wifi drivers ( BCM4322) on Macbook after ubuntu 17.04 instalation

I installed Ubuntu on an old Macbook. All looks fine but I have a problem with internet connection. Can't connect with wifi, and I can't connect with cable.   All tutorials of drivers installation I find are about wired-connection.  The question is:     Can I download drivers with other PC, put them on usb and them install on Macbook  If so - how can I do it?      My wifi hardwere is BCM4322. To know this I enter in terminal  mariana@mariana-MacBook:~$ lspci -knn | grep Net -A3; rfkill list  03:00.0 Network controller [0280]: Broadcom Limited BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01)    Subsystem: Apple Inc. AirPort Extreme [106b:008e]    Kernel driver in use: b43-pci-bridge     Kernel modules: ssb  0: hci0: Bluetooth  Soft blocked: no  Hard blocked: no   What should I do in order to solve it?


Dealing with new Factor Levels in a Regression in R

I originally posted this in stackoverflow (as given ) but was told to try here since it might be more relevant here. I am very new to statistics and R in general so my question might be a bit dumb, but since I cannot find my solutions online I thought I should try ask it here.  I have a data frame dataset of a whole lot of different variables very similar to as follows:   Item | Size   | Value    | Town ---------------------------------- A     |  10    |   800   | 1 B     |  11    |   100   | 2 A     |  17    |   900   | 2 D     |  13    |   200   | 3 B     |  15    |   500   | 1 C     |  12    |   250   | 3 E     |  14    |    NA   | 2 A     |        |   800   | 1 C     |        |   800   | 2   Basically, I have to try and 'guess' the Size based on the type of Item, it's Value, and the Town it was sold in, so I think a regression method would be a good idea.  I now use a regression as follows:  lm(Size ~ factor(Item) + factor(Town) + Value,...)  The problem however, occurs when I try and predict the Size using this model. I have the following lines of code:  pmodel <- lm(Size ~ factor(Item) + factor(Town) + Value,...) prediction <- predict(pmodel, dataset2)   (where dataset2 is a subset of dataset which has all the empty "Size" values which I want to predict)  But this now comes up with the error:  Error in model.frame.default(Terms, newdata, na.action=na.action, xlev = object$xlevels): factor factor(Town) has new levels   Is there any way around this, or is there any way I can get the model to make prediction based on the other values if it encounters a 'level' which is not in the original dataset?


If an equitation like $1 + 2 + 3 + 4 + 5$ doesn't fit to the line it's continued at the next line. But $1, 2, 3, 4, 5$ is extended to page margins and then cropped. What is wrong with it?


Proper Formating and Spacing in bibliography with Url

I have I bibliography where I have Author, Title and I want to provide an external link . I use BibTeX and I make an entry like this:  @misc{DLVS,     author    = "KDnuggets",     title     = "Data lake vs Data warehouses: Key differences",     note      = {\url{https://www.kdnuggets.com/2015/09/data-lake-vs-data-warehouse-key-differences.html}} }   but my bibliography is formatted like this    which is far from optimal. Is there a way to improve the formatting? For example how can we avoid the big gaps and split the url in two lines? Any suggestion is appreciated.


Bevel Perfectly Round Corner Irrespective of Face Length

In this screenshot, I have a rectangular-shaped mesh that is taller than it is wide:  I am trying to get a perfectly rounded, symmetrical corner using the bevel tool.  Using the green cylinder as a reference, I have green arrows to show where I want the bevel to begin and end, and the red arrow shows the actual endpoint of the curve.  It appears that the bevel tool takes into account the lengths of the affected faces, among the other settings, when determining where the bevel begins and ends.  Is there a way to have the bevel tool constrained to keep the curve symmetrical regardless of how long the faces are?  I did try unchecking the Loop Slide option, but that didn't seem to make a difference.  I know that I can set edge loops to constrain the placement of the bevel begin and end edges, but I truly hope that there is another, simpler way to create perfectly round corners. In this simple example, I would have to do that for all four corners of this mesh, and that seems to be a lot of unnecessary steps.


SE has  for different communities, which are fun and enhance competition (willingness to participate) among users. Can we have a Stack Exchange Network reputation league, where users will be ranked as per the total reputation they have across all the SE networks.


As I expected / had expected / have expected

It is not such a pretty place as I (expected / had expected / have expected).   Which is the correct tense to use here ? I am not able to figure out any difference in the meaning of the three difference tenses used here.  Edit : I used google translate to translate it in my native language, have expected sounds wrong to me here but still had expected and expected seem to convey almost same meaning.


Suppose $R=k[x,y,z]$ and $S=k[t]$. Consider the map $f:R\to S$ s.t. $f(x)=t$, $f(y)=t^2$ and $f(z)=t^3$. I suspect the kernel of this map is the ideal $(y-x^2,z-x^3)R$.    It's clearly contained in the kernel, but I am not sure how to prove the reverse inclusion.


Why do I feel a force from a non-accelerating punch?

If I'm getting punched by a fist that is moving at a constant velocity (let's say $20 \mathrm{m/s}$), I still feel a force that is being applied to my body. However, according to $F=ma$, in order to feel a force, the object needs to be accelerating. Then, how can a non-accelerating object apply a force to me?


i am trying to update a listitem in a event receiver on FeatureActivated in a document library.   public override void FeatureActivated(SPFeatureReceiverProperties properties)     {          SPSecurity.RunWithElevatedPrivileges(delegate()         {             using (SPSite site = SPContext.Current.Site)             {                 using (SPWeb myweb = site.OpenWeb())                 {                   SPList list = myweb.Lists.TryGetList("Document Library");                 SPListItemCollection items = list.GetItems();                  for (int i = 0; i < items.Count; i++)                 {                      SPListItem item = items[i];                        Guid fieldID = item.Fields.GetFieldByInternalName("Age").Id;                      string valueField = item[fieldID].ToString();                     valueField = "";                     item.Update();                 }                 }             }         });                 }   My field does not get empty?


how to cancel fired event in jQuery and JSON?

I have a div and when click it ,it goes to fetch some information from server and put themes to itself content to show it to  user it works fine but I do not know how to handle it ,when user clicked on other part of page cancel this event that fired?

   my function:  function getit(picdiv, pid) {    $('#picdiv').html('please wait...');   $.ajax({     url: "/Getcontent",     type: 'POST',     dataType: 'json',     data: null,     contentType: 'application/json; charset=utf-8',     success: function (content) {         $('#picdiv').html(content);      },     error: function (content) {        //do something     }    }); }


Short story about aliens that are parts of a spaceship

I have a very vague recollection of a short story in which somehow the parts of a spaceship were aliens of different races, whose innate powers allowed them to perform a function (braking, steering...). The end revelation is about the nature of the ship's accelerator.  Any bell ringing?


How to delegate task to someone else when task assigned to person is out?

I have a situation where a task is assigned to a person thru workflow. That person is now gone. I know site admin can delegate the task to someone else.  But I would like manager (say from a group "managers" or manager's field) to delegate a task when necessary in the event the task owner is out on ill, vacation, or left the company.  How is it done?


Using Python to bake all materials to a texture?

I'll start this off by saying I'm not the most knowledgeable person with Python, or Blender's API. I'm trying to write a script that loops through all the mesh objects in a scene and does the following:  Creates an image designated to be the baked texture for the object Inserts image texture nodes into every material in that object Does a Lightmap Pack on the object Does a Diffuse bake with Color only After that it saves the baked texture image and an exported fbx of the current object mesh to a given file path  Here's what I have so far: import bpy  scene = bpy.context.scene  # deselect all to make sure select one at a time bpy.ops.object.select_all(action='DESELECT')  for obj in scene.objects:       if (obj.type == 'MESH'):         imageName = "Texture" #Just a filler name for now         img = bpy.data.images.new(imageName,1024,1024)                  for m in obj.data.materials:             m.use_nodes = True             nodes = m.node_tree.nodes              # Add a image texture node and set its location:                 tex = nodes.new("ShaderNodeTexImage")             tex.location = (100,100)             tex.image = img           bpy.context.view_layer.objects.active = obj         obj.select_set(True)          bpy.ops.object.shade_flat()                  lm =  obj.data.uv_layers.get("LightMap")         if not lm:             lm = obj.data.uv_layers.new(name="LightMap")                      lm.active = True         bpy.ops.object.editmode_toggle()         bpy.ops.mesh.select_all(action = 'SELECT') # for all faces          bpy.ops.uv.lightmap_pack(PREF_CONTEXT='SEL_FACES', PREF_PACK_IN_ONE=True, PREF_NEW_UVLAYER=False, PREF_APPLY_IMAGE=False, PREF_IMG_PX_SIZE=1024, PREF_BOX_DIV=12, PREF_MARGIN_DIV=0.24)         bpy.ops.object.editmode_toggle()         bpy.context.scene.render.engine = 'CYCLES'         bpy.ops.object.bake(type='DIFFUSE', pass_filter={'COLOR'}, save_mode='EXTERNAL')          img.save_render(filepath='C:\\Users\\TestUser\\Desktop\\TestImage.png')           So far I've only been testing it in scenes with 1 object so not how it works for multiple, but it's sort of working. It creates a proper (or at least proper looking) baked texture image from all the materials and properly saves it to the desktop. No exporting the obj as an FBX yet as I haven't been able to figure out the chunk of code for that. One issue is that the texture map doesn't properly apply to the object, it winds up looking tiled. Here's a photo to show what I mean:  The biggest issue however is that it doesn't seem like UV map is actually being "connected" to the object. I'm not a pro at Blender so I don't know exactly how to word this, but I've manually exported the obj as an FBX before and tried inserting into a game engine, only to have it error telling me the texture couldn't be found. Very important note is if I do all this manually everything works properly, so my code is definitely off. Here's a reference photo for what the end result is supposed to look like (this is one material with it's base color set to be the baked image texture):  Any help is much appreciated!


How to use the /testfor command to detect what a player says in chat

How do I use the /testfor command in a command block to test for a specific word that a Minecraft player playing on the server says. For my example, if a player says:     [Player] - Hi   The command block then says:     [Command Block] - Hello.   Please help, just trying to create a cool command =) {If This Works Please Tell Me}


Given a random variable $X$ which follows a normal distribution $X \sim (\mu,\sigma^2)$ with unknown mean and known variance. Say we have $n$ observations $y_i$ where $1\le i \le n$ and each $y_i$ is sampled from a normal distribution $Y_i \sim N(x,\sigma_i^2)$ (not i.i.d.) where $x$ is sampled from $X$ and it is the same for all $\{Y_i\}$, but $\sigma_i$ is different for different $Y_i$.  The question is: how to compute the posterior distribution $X$ given the observations p(X|{y_i})? The question is different from the answer listed in  because $y_i$ is not sampled from i.i.d. distribution.


My teacher said (without explaining why) that because $R^{n}$ is finite dimensional then set of all linear functions (Dual space) is equal to the set of all continuous linear functions. Can someone explaining why this true?  Thank you.


Does the elephant get bigger when I bring in the ballista?

:     At the beginning of each end step, if a +1/+1 counter was placed on a permanent under your control this turn, put a +1/+1 counter on Fairgrounds Trumpeter.   :     Walking Ballista enters the battlefield with X +1/+1 counters on it.   If I bring in a new Walking Ballista - then it enters the game with the +1/+1 counters already on it. Technically you could interpret that as meaning that the +1/+1 counters were not placed on it that turn - they were already there as it entered the battlefield.  So does the trumpeter trumpet louder and the crowd cheer more when they see the ballista walk onto the field?  (Obviously if a new counter is added after the Ballista is on the field then it would, this is specifically about the replacement ability on entering the battlefield).


add-apt-repository returns unexpected length error

Ubuntu 11.10 (oneiric ocelot): When I try to add a new ppa through add-apt-repository, it returns with:  rene@rene-MS-N104:~$ sudo add-apt-repository ppa:tualatrix/ppa Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 88, in <module>     ppa info = get_ppa_info_from_lp(usr, ppa_name)   File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp     curl.perform() pycurl.error(35, 'gnutls_handshake() failed: A TLS packet with unexpected length was recieved.')   I'm fairly new to Ubuntu and am not sure how to proceed.


“…the city of Berlin was divided ________ the USSR, the USA and the UK”

After the second world war, the city of Berlin was divided ________ the USSR, the USA and the UK. Options  by  with  between  among    My Approach: I am not able to solve this question what will be the best suited one and why? Though I think "between" is the best suited one. What do I need to know in these types of questions?


Add "too minor" audits to Suggested Edits review queue

I've thought about proposing this for a while.  It would be very easy to make or curate "too minor" review audits.  Chances are, many of them are approved.  I don't know how big of a problem it is for too many review items to be approved, but , and think this probably happens way to much.  So proposal is to add "too minor" audits in addition to the spammy fake text ones.  Picking audits shouldn't be hard - how about ones that were unanimously rejected as "too minor" and where the diff is fewer than 5 characters (since yes, these exist I think in abundance).  Note another advantage is this gives us genuine reviews in the audit queue at all.  The fake ones have some efficacy but I've seen people complain about them on various meta-threads, to a greater extent than say, audit close questions.  Note: the linked edit actually breaks the code by dropping a {. All the more egregious it went approved; however I imagine the reviewers didn't notice the breaking change since they approved it...  which more or less means they either 1) didn't read at all or 2) saw a tiny formatting diff and approved it instead of rejecting as too minor.  So, more complicated but, still case in point.


How do you keep a cheesecake from absorbing water baked in a waterbath? I put four sheets of aluminum foil around my springform pan and it still leaks onto the crust.


Find all $(x,y)$ of positive integers s.t. $x^3-y^3=xy+61$

Given  $x^3-y^3=xy+61$. Find all pairs (x,y) of positive integers which satisfies the given equation.  I tried solving this by following method-  $(x-y)(x^2+y^2+xy)-xy=61$  $(x-y)[(x-y)^2+3xy]-xy=61$  $(x-y)^3+3xy(x-y)-xy=61$  I don't know if doing this was in any means fruitful or not.   Remember $x>y$, only then a solution is possible.


How to find the AD user that logged in to SQL Server using SQL Login

Some users are logging into database servers locally, opening SSMS and logging in to SQL Server using SQL logins to run queries.  How can I find the AD user that logged in to SQL Server using a SQL login on the local database server using SSMS?


Do I need to use a comma between two adjectives?

You can also contact me to customize your template, or create a new unique one.   Do I need to put a comma between the new and unique adjectives in this sentence?  In my native language (if I am not mistaken) we don't put a comma if the adjectives are of a different type. Not sure about English though, and if it's the case here anyway. Any help would be appreciated!


Position of subscript associated with summation symbol

To conserve space, I wish to generate   $\sum_{i \in B}$     However, when I put the Latex code into \begin{equation}, using   \begin{equation}     \sum_{i \in B} \end{equation}   it becomes   No. Just no.  Can someone please help to make the subscript more like the top one. Thanks!


Does MD5 hash have quasi commutative property?

I am implementing a one-way accumulator using MD5 hash, wondering wheather it has quasi commutative property or not.


Function declaration vs function definition in JavaScript

Can anybody please explain what the difference is between a function declaration and a function definition in JavaScript?


Is every norm in a dual space a dual norm of some norm?

Let $(X,\|\|)$ be a normed space, and  $(X^*,\|\|_*)$ and $(X^{**},\|\|_{**})$ be it's topological dual and topological bidual respectively. Now consider a norm $\rho$ in $X^*$which is equivalent to $\|\|_*.$ Does there exists a norm $\mu$ in $X$ such that $\mu_*= \rho$? (Of course, $\mu_*$ denotes the dual norm of $\mu.$)  I know that if $X$ is reflexive, such a norm indeed exists, and it is just $$\mu(x)=\sup_{\rho(x^*)\leq 1} |x^*(x)|.$$   The question is: can we remove reflexivity? I think that for a proof we could use Goldstine's Lemma. A proof or counterexample would be nice.


Is it necessary to eject an external drive before sleeping?

I have a question similar to a  about ejecting before shutting down.  Is it necessary or recommended practice to eject external drives before putting a Mac to sleep, whether it be via an explicit sleep command (e.g., from the Apple menu or other equivalent means), if Energy Saver puts the Mac to sleep, or the closing of a lid on a laptop Mac?  Edit: To add a clarifying point, I do not plan to physically disconnect the drive before waking the Mac from sleep?