wireless driver is not working correctly

After an update a few days ago, my wireless driver is not working anymore, unfortunately. I tried several things, but it all didn't work and now i dont have any clue what to do. maybe someone can help me.  Basic info: Ubuntu 14.04. Ethernet is working. When ethernet unplugged, no wifi connections show up. Before the update everything was working fine. I bought a wifi USB adaptor, however this also didnt work. (TP-Link T2U)  I run a scripted to provide some information (from  ):   I installed an additional driver (bcmwl-kernel-source ) as explained . This did work till the update. Also followed  for the USB adaptor, but also didn't work. I also tried the live version of 16.04, but neither the USB adaptor nor the internal driver is working.  Can anyone help me and maybe tell what i could try?  Thanks a lot!  EDIT: Did the sudo modprobe wl code, outcome was:     modprobe: ERROR: could not insert 'wl': Required key not available   My secure boot is disabled. No clue what this means.


I was surfing the web looking for the incoming conferences in computer science, and I finished in this website     Here, it seems that the conferences are ranked as A*, A,B C.  While this is the only place where I have found this rank explicitly, I have heard many other researchers refer to a conference as a "A* conference" or so.  So I am wondering: is this ranking official? Who is maintaining it? And on what is it based?


Can a moderator help me track down the email of a student who copied his homework?

A student copied homework from Stack Overflow. If possible - can a staff member give us his e-mail address so we can contact that individual?


TA struggling with how much time grading takes

This semester I was assigned as a TA to a Class that I am not very familiar with. As a result, grading takes me too much time. For example, for a class of 74 people, it took me 24 hours to grade their assignments (7 exercises per person). One of the reasons it takes me that much time is that I have to study in order to refresh the content in my head before grading.  What should I do in order to make the procedure more time-efficient? Should I tell my concerns to the professor I am TA for and as well as my PhD supervisor ? I fear I might seem lazy or unproductive.  To cope with workload whenever I have grading to do I make sure I finish it within one day so that I can focus on the other stuff I have to do in the next days of the week.  -----------------------Edit with answers to questions-----------------------  Since people asked more questions about my situation here are answers: I keep office hours for 2 hours per week. I have to grade 3 packages of these assignments for the whole semester. The first package was for 91 people the second was for 74. The was provided with indicative solutions but the answers are open-ended


Biblatex conditional elimination of fields

Is there a way to add some code in the preamble of a LaTeX document so that certain fields of the .bib file are ignored conditionally? More precisely, I want the url field of my .bib entries to be ignored in the case the entry already has a DOI or a arXiv identifier.


Horizontal and vertical center with flexbox not working

I've got very basic HTML/CSS code. I am trying to center everything inside the center class using flex box but it is not working. I've managed to center the content horizontally but not vertically. Any idea hat am I missing?   .content {   display: flex;   flex-direction: column;    align-items: center;   justify-content: flex-start; }  .searchContainer {   display: flex;   flex-direction: row; } <!DOCTYPE html>         <meta charset="UTF-8" />     <meta name="viewport" content="width=device-width, initial-scale=1.0" />     <title>Document</title>     <link rel="stylesheet"/>           Header

Find Your Next Thing

SearchBar

SearchButton


Aspect (simple, perfect and progressive): What are the differences?

Could you please explain to me the differences between the simple, progressive and perfect aspects.  "Simple aspect" means completed action (action starts and finishes) but I don't really understand the fine details.  For example, with these sentences:     It usually rains in the fall.   He smokes 15 cigarettes a day.   I slept for a long time yesterday.     Here's what I understand: if I didn't complete sleeping I should use "I was sleeping". If it doesn't stop raining we can't say "it is finished". Is that correct?  For continuous aspect, duration is an important factor – but how?  For example:     She is wearing a jacket.   Normally "to wear" action is completed but we can use here present continuous aspect.  Another example:     She has been wearing the same jacket for 3 days.   and why can't I use continuous aspect here?     I have cleaned my room.   It means that my room is clean now. Action is finished but why can't I say "I have been cleaning room" like "They have been playing in the mud"? Action is completed but we don't care here about completed, we are caring about duration, why?


Prove that if $B$ is the set of rationals in $[0,1]$ with a finite subcover, then: $1 \leq \sum_{k=1}^n m^*(I_k)$

I have the following homework problem:  Let $B$ be the set of rational numbers in the interval $[0,1]$, and let $\{I_k\}_{k=1}^n$ be a finite collection of open intervals that covers $B$. Prove that $\sum_{k=1}^n m^*(I_k) \geq 1$.    This is my approach, First we have that $B = \mathbb{Q}\cap [0,1]$. Now, $B \subset \bigcup_{k=1}^nI_k$, where $I_k$ are open intervals.In particular $0 \in B \wedge 1 \in B$.Now, since $B \subset \bigcup_{k=1}^nI_k$ then there exist positive numbers, $\epsilon_0, \epsilon_1$ such that: $$(0-\epsilon_0,0+\epsilon_0)\subset \bigcup_{k=1}^nI_k$$ $$(1-\epsilon_0,1+\epsilon_0)\subset \bigcup_{k=1}^nI_k.$$   Clearly, $-e_0 \notin [0,1]$ and $e_1 \notin [0,1]$.I am not sure, if so far I am in the right track.


Does the new star trek universe share the same history as the old one?

It's difficult the get the question correct in the header:  When the whale probe in 2286 reach Earth and they have to travel back in time , will they travel to the past of their universe ?  If yes , than the second part is not necessary to answer.  If No , could they meet the other crew of the enterprise in the past?  Thanks


When reviewing revision side-by-side, the column width is much smaller than a normal question box. However, images are not resized in this view, resulting in overlapping images.


Traveling to Puerto Rico while in US legally, but without visa

I am in the US as a student. I came on a tourist visa and changed to F1 status. This means that I do not currently have a valid visa in my passport, although I do have a valid I20 and my SEVIS record is fine. According to  I should be fine for traveling to Puerto Rico, but my school agent says this is risky. She told me that despite the fact that I should be able to go, immigration does spot checks in the Puerto Rico airport and that if an agent stops me, I shouldn't count on them knowing this. They might just look at my passport, see that I have no visa, and I would end up deported. I know that people in my situation sometimes go to Puerto Rico with no problems, but this would be a terrible thing if it happened and I don't want to risk it even in the chance is small. Is she right that there's a small chance this could happen?


A phrase meaning a drawback turned out to be an advantage

I remember having heard one before but can't say how it went. The phrase says that what initially seemed like a disadvantage — became an advantage. If anyone knows anything even similar to this definition, it'd be much appreciated.


Why is the inclusion $\mathbb Z \to \mathbb Q$ in $\text{Rings}$ an epi, but not a surjection?

I'm new in Category Theory and I just learned about epis and monos. I've been doing some exercises so far, but one of them is confusing me:  Let $i:\mathbb Z \to \mathbb Q$ be the inclusion of integers to rationals (equipped with the usual ring structure):  Show that $i$ an epimorphism Show that it is not surjective   I tried to assume $g,h: \mathbb{Q} \to R$ and that $g \circ i = h \circ i$. But now I have no idea how to get $g=h$. It is clear for me that it has something to do with the fact $i$ is an inclusion, but I just can't construct any argument. I attempted proof by contrapositive as well, assuming $g\neq h$, but the difficulty persists. Thanks in advance!


I am working on a multiplayer game.. and i came up with a really weird situation. It's even possible? -   System.out.println(foo);                    // left System.out.println(foo instanceof String)  // true System.out.println(foo == "left")         // false   I don't understand how it's even possible..   I really don't think it will be a good idea to post all of my code. Any ideas why its like that? and how can i fix it?  Thanks in advance


Mysterious problem: Deleting massive amount of files doesn't free up disk space

I have a disk that is 100% used, 400 GB of 400 GB, however I have moved more than 44 GB of files from it, but no extra space got available, the usage is still 400GB of 400GB.  Filesystem                        Size  Used Avail Use% Mounted on /dev/mapper/system-root            49G  5.1G   41G  12% / udev                               32G  192K   32G   1% /dev tmpfs                              32G  148K   32G   1% /dev/shm /dev/sda3                         158M   37M  114M  25% /boot /dev/mapper/vg00-lv_hana_backups  500G  471G   30G  95% /backup /dev/mapper/vg00-lv_B1H           200G   78G  123G  39% /hana/SAPBusinessOne /dev/mapper/vg00-lv_hana_data     400G   19G  382G   5% /hana/data /dev/mapper/vg00-lv_hana_log      400G  400G  280K 100% /hana/log /dev/mapper/vg00-lv_hana_shared   200G   35G  166G  18% /hana/shared /dev/mapper/vg00-lv_usr_sap       200G   45G  156G  23% /usr/sap //10.1.1.201/HANABackups          1.9T  698G  1.2T  38%  /windbackup/HANABackup comapny-sap:/hana/log # du -h 1.3G    ./mnt00001/hdb00001 794M    ./mnt00001/hdb00003 286G    ./mnt00001/hdb00004 288G    ./mnt00001 288G    .   As it can be seen from lsof, there are no files still being held open by processes>  lsof -n | grep '(deleted)' nautilus    6184       root   31r      REG              253,0       752    1753275 /root/.local/share/gvfs-metadata/home (deleted) nautilus    6184       root   32r      REG              253,0     32768    1753307 /root/.local/share/gvfs-metadata/home-bc638f00.log (deleted) shutdown  111517       root    0u      CHR              136,0       0t0          3 /dev/pts/0 (deleted) shutdown  111517       root    1u      CHR              136,0       0t0          3 /dev/pts/0 (deleted) shutdown  111517       root    2u      CHR              136,0       0t0          3 /dev/pts/0 (deleted)   I have also tried copying 44 GB of files of that partition and than I could not copy any of the files from that 44 GB back, not even one 1 GB file?


How fast does the sequence $y_t$ defined by $y_{t+1}=y_t(1-y_t)$ decay to zero?

The question is in the title; I'm looking for the exact decay rate. Naturally, assume the starting point $y_0$ belongs to $(0,1)$.   This is motivated by one of the answers to .


Traveling from Ireland to UK on a South African passport

I have dual nationality ie a British and a South African passport. My British passport has expired I will be renew once in the UK. I will be travelling from South Africa, into Dublin and on to Heathrow.  Do I need a visa using my South African passport commuting from IRELAND to UK?


Display numbers in the form of two decimal places

I am developing an algorithm, which needs to read the total price of all items purchased in a receipt. I need to be able to parse a value from string and convert it into a double. s = ents.get(j).getDescription(); isConvertableValue = Double.parseDouble(s.replace("$", "").trim()); boolean check = BigDecimal.valueOf(isConvertableValue).scale() >= 2;  My approach, is that I check if the string passed is in the format of 12.XX, if it is, I set it as the total price of all items bought in that receipt. However here is the problem, if the total sum of all purchases is $12.00, if I was to convert this value into a double it would be 12.0, my algorithm only accepts values in the 12.XX format. The same applies for numbers such as 12.10, or 12.X0, however for numbers such as 12.56 or 123.435 my algorithm works. Does anyone know how I can get it to display a string with value 12.00 or 12.10 as 12.00/12.10 without it removing the trailing 0s. I have searched for other posts but those do not answer my question, so essentially in this line of code if (check) {     return isConvertableValue; }  Ff the converted number is in the format of 12.XX NOT 12.X then return that number, as a double, now the problem is I am not returning it as a string, I wish to return it as a double/float/long whatever how can I do this?


In multivariable calculus, definite integrals with multiple variables seem routine. However, I have not seen any example of an indefinite multiple integral. In fact, it seems as if limits of integration are a necessary part of multiple integrals. Is there actually any way to evaluate indefinite integrals of functions with more than one variable?


Finding probability distributions associated with moment generating functions

I think the answer to my question is pretty simple, but I'm not able to figure it out.  The question is:     Find the distribution which corresponds to the moment generating function $\frac{2e^t}{3-e^t}$.   I've checked a few tables that list common MGFs and their associated distributions, but couldn't find any that matched this MGF. Do I need to modify the function before using a table?


Do superconductors really have 0 resistance in reality?

Do superconductors really have zero resistance in reality? If yes, then by ohm's law, I = V/R. I = V/zero. I = Infinity?


Traditional beginner's commentary on Aristotle's categories

I am looking for a traditional beginner's commentary on Aristotle's categories in order to start learning Aristotle's system of logic.  Even better would be a "road map" for studying Aristotle's logic through commentaries. I aim to eventually be able to read and understand Aquinas's commentary on the Posterior Analytics, as well as other works of Aristotle such as his Physics.


Estimator for $\theta$ using the method of moments

Exercise :     Using the method of moments, find the estimator for $\theta$ for a random sample $X_1, \dots, X_n$ that follows the distribution with pdf $f(x) = \theta x^{-2}, \; 0 < \theta \leq x < \infty$, where $\theta$ is the unknown parameter.   Attempt :  $$m_1' = \bar{X}$$  $$μ_1' = \int_\theta^xu\theta u^{-2}\mathrm{d}u=\int_\theta^x\theta u^{-1}\mathrm{d}u=\big[\theta \ln u\big]_\theta^x =\theta\ln x - \theta\ln\theta$$  Thus, the estimator is given by :  $$m_1' = μ_1' \Rightarrow \theta\ln x - \theta\ln\theta = \bar{X}$$  But we cannot solve that equation with respect to $\theta$, so we'll take the moments of bigger order :  $$m_2' = \frac{1}{n}\sum_{i=1}^nX_i^2$$ $$μ_2' = \int_\theta^x u^2 \theta u^{-2} \mathrm{d}u = \int_\theta^x \theta \mathrm{d}u = \big[\theta u\big]_\theta^x =\theta x - \theta ^2 $$  Thus the solution of the following quadratic equation for $\theta >0$, gives as the estimator of $\theta$ :  $$\theta^2-x\theta +\frac{1}{n}\sum_{i=1}^nX_i^2$$  Question : Is my solution correct ? Shall the upper bound be $x$ or $\infty$ ?


Exporting a function to the front-end with Webpack

I'm new to webpack and trying to set up a basic implementation. I have a file script.js with some functions in it scripts.js export foo = () => {    console.log('foo') }  export bar = () => {    console.log('bar') }  And I'm trying to add it to my webpack bundle.js such that I can use these functions in the markup. webpack.confi.js const path = require('path')  module.exports = {     entry: './index.js',     output: {         path: path.resolve(__dirname, 'dist'),         filename: 'bundle.js'     } }  My index.js looks like this: import * as scripts from './scripts.js';  This works in node because if I add console.log(scripts.foo()) to my index.js below the import line, I can observe the console log. But if I try to call foo() in my markup, I get an undefined error: Uncaught ReferenceError: foo is not defined index.html <script src="./dist/bundle.js"></script> <script>      scripts.foo(); // throws undefined error  </script>  What am I missing?


How do I force a refresh after rendering animation?

This has probably been asked and answered elsewhere, but I can't find it, so....  I designed a simple animated logo in Blender, with a spinning earth between two light-emitting text objects, with two point lamps for extra light. I rendered and saved the animation, and then used a gif conversion utility to save it as a gif. That all worked fine, but ...  ... I decided I wasn't satisfied with the lighting. So I did Save As to start a new file, deleted the two point lamps from my original file, then added two Sun lamps (a Sun emitting a golden color from the left, a Moon emitting a pale blue from the right) and two dim Hemi lamps for high- and low-fill.  But when I Render I still get my original lighting. Similarly, if I Render Animation, I still get the original lighting.  How do I refresh the render process so I can see my new lighting?  Here is the Blender file:    UPDATE: Simply, it's not performing new renders. I deleted all of the original render frames, then clicked Render ... and I get a blank screen, because render image it had been displaying is no longer there.  UPDATE2: I went back and reopened the original file, from which I did a Save-As to create this new file ... and the original will not perform a new render either.  If I click the Render button, I get a blank screen, because the previous render (that it had been displaying) has been deleted.  Again, this is not about what I see in my 3D View. I see my lighting changes there. But I can't render a new image, or a new animation, at all.  UPDATE3: The solution was, per the answer below, to turn off Sequencing and Compositing in Properties > Render > Post Processing.  The relighted animation starts with this frame:    In the 180th frame, the earth has almost completed one rotation:    The lighting looks as I'd hoped: warm sunlight from direct left and cool moonlight from direct right, with dim neutral lights along the centerline to mute what would otherwise be a deep shadow at the sunset-moonrise horizon.  In clock terms, it's 12:00 noon on the left rim of the earth, and 12:00 midnight on the right rim. In terms of physics, my moonlight is far too bright; it's 1/2 the intensity of the sunlight, whereas in reality the ratio is about 1:400,000. But with the cooler color, it gives the effect I wanted.


Best place (if any) to ask legal/law questions about software

Following , I would like to ask, what is the best place in SE network (if any) to ask questions concerning legal part or side of software or services:   What user can, can't, should or shouldn't do in Facebook, Twitter and many more web apps. Can I use this or that software or service commercially or legally in my company? Other questions about license of particular software or service (not general law-related questions).    was given a year ago. Do we have any update? Is there any real chance, any of mentioned Area51 sites will grow to fully-functional SE site? Or do we have any chance for any other place in SE to ask software/service-legal- related questions, not being concerned as off-topic?


Wireless card Realtek RTL8723AE-BT is not recognized

I bought a new laptop with a RTL8723AE-BT wireless card, but it seems there is nothing that makes it work. Realtek usually makes drivers available for its card, but this specific one doesn't have a driver available on Realtek's website. I have tried the following steps in order to try and make it work:  Installed ndiswrapper versions 1.57 (from repositories, with dkms) and 1.58rc1 (compiled from source from ndiswrapper's website). Both failed: version 1.57 does not provide an interface for the functions IoWMIOpenBlock and IoWMIQueryAllData. 1.58rc1 has dummy functions in their places, but it fails with a "ioremap failed" message. Upon further investigation, I have found that the function NdisMMapIOSpace (ndis.c:808), in 1.58rc1, gets called with physical address and length zero, which causes the failure. Since this function doesn't seem to be called from anywhere in ndiswrapper's code, I'd assume the Windows driver is somehow calling it with bogus parameters.  I tried using both the 64-bit version (on my installed system, which uses the x86_64 version of Ubuntu) and the 32-bit version (on a live-USB x86 system with persistence enabled) of the Windows XP driver. The same errors occurred for both versions.  Since Realtek's Linux drivers for RTL8192CE/SE/DE actually mention the 8723 chipset in its sources, I tried compiling them and modprobing them, but they don't pick up the card ID (10ec:8723). I also tried to echo 10ec 8723 > new_id on the sysfs  (/sys/bus/pci/drivers/rtl8192de) location ( of the driver (actually, on each of them, one at a time), but I get a "Permission denied" error even with sudo. If I sudo su and try again, I get the error bash: echo: write error: Invalid argument.   I have run out of ideas. It's really frustrating to buy a new notebook to use only with Ubuntu and not be able to use its wi-fi connection. If anyone can shed a light on alternatives, I'd be very thankful. Edit: lshw -C network output $ sudo lshw -C network -numeric   *-network UNCLAIMED             description: Network controller        product: Realtek Semiconductor Co., Ltd. [10EC:8723]        vendor: Realtek Semiconductor Co., Ltd. [10EC]        physical id: 0        bus info: pci@0000:03:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:d000(size=256) memory:f7900000-f7903fff   *-network        description: Ethernet interface        product: RTL8111/8168B PCI Express Gigabit Ethernet controller [10EC:8168]        vendor: Realtek Semiconductor Co., Ltd. [10EC]        physical id: 0.2        bus info: pci@0000:04:00.2        logical name: eth0        version: 0a        serial: 00:90:f5:cd:6d:f7        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=N/A ip=192.168.0.106 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:43 ioport:c000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff


I removed some of the black metallic covering of my pan, is it still safe to use?

I have a Seagull "4 star" "Marathon" "non-stick cookware" pan. I have decoated much of the black metallic coating of that pan with a .  I made the above decoating the above after a few months in which the pan had some matt black carbonated stain with some scratches in it, which kept staying there insistently and no liquid soa[ liquid-soap marination with gentle cloth scotch brite wiping helped.    My problem  First, I am not sure it is still safe to use and second, after removal, one might be able to see a new, even bigger such black "carbonated" stain, appearing around the newly exposed metal.  My question  I removed some of the black metallic covering the pan (and now one part of the metal is exposed and another became blacker → matt black), is it still safe to use?  Update  I tried to pour some well refined sunflower oil and heat it, then most of the uncovered metallic part became yellow (I have no idea how to explain it); this yellowishness didn't come down with a napkin → why wouldn't it?


/fill area of command blocks with commands?

So I'm making this adventure map, and kinda got tired of placing NBT command blocks one by one.  Is there a way to fill an area with command blocks that already have a command in them?  The closest i got was just filling an area with command blocks, then manually putting the command on each one of them. But honestly that was too tiresome.  /fill ~ ~-1 ~ ~15 ~-1 ~15 minecraft:command_block    Am i missing anything?


During the Great War, Kabuto resurrects a lot of very, very powerful shinobi (Madara or Hashirama the 1st, e.g.). However, he doesn't bring someone as powerful and impactful as Jiraiya.  My girlfriend pointed this out a few days ago and since now, I wasn't able to find a reason. I see that this Edo Tensei no Jutsu brings up some questions ( or even ) on the table, but it seems that everyone forgot Jiraiya in this equation.  Why didn't Kabuto resurrect Jiraiya during the Great War?


Before the SE topbar was implemented, there was a hottest-questions-across-the-network feature I was quite fond of. Where did this feature go? Was it completely wiped out?  I'm sad to see it go.


Just to make this clear, this is not my usual avatar on GTA online. I was playing a recent game and went into a quick mission, but when I entered the game with 3 other random players, I looked like this:  This is not my avatar and somehow a snowman has been added over, in addition a camp fire, which is constantly burning me until I die (the only reason I am not currently is because I am in my garage.) I am not sure but my account may have been hacked. Any help on how I can stop constantly burning and revert my character to my original avatar (without burning)?


Prove that the inner product $\langle f,g\rangle= \int f(t)g(t) \, dt $ satisfies the property positive definiteness

In $C[a,b]$, define the product   $\langle f,g\rangle= \int f(t)g(t) \, dt $.   Show that this product satisfies the property, $\langle f,f\rangle$ is greater than zero for all non zero $f$ using a non graphical proof and no  δs to explain your answer.   Although this question was claimed to be a duplicate of , I would like an explanation without  δs.


As an engineering undergrad, I refer to "cyclic motion". My friend, an arts student, uses the term "cyclical unemployment" (whatever that means) instead.  The only article I can find on the web about this didn't reach any conclusion except that words with -ic and -ical endings were normally the same, but occasionally the language has evolved to use them in different contexts (for example most people would see a difference between "magic" and "magical") .  Is this divide entirely just convention in respective subjects?


I am getting an error from the last line of my code. The app stops working. Error:     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference.   My code is below:  package com.cal.sam.calculator;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText;  public class MainActivity extends AppCompatActivity {     Button buttonCal;      EditText feet1, feet2, feet3, inch1, inch2, inch3, res;      float mFeet1, mInch1, mFeet2, mInch2, mFeet3, mInch3, len, wid, hig = 0;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          buttonCal = (Button) findViewById(R.id.buttonCal);          feet1 = (EditText) findViewById(R.id.feet1);         feet2 = (EditText) findViewById(R.id.feet2);         feet3 = (EditText) findViewById(R.id.feet3);         inch1 = (EditText) findViewById(R.id.inch1);         inch2 = (EditText) findViewById(R.id.inch2);         inch3 = (EditText) findViewById(R.id.inch3);          buttonCal.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 mFeet1 = Float.parseFloat(feet1.getText() + "");                 mFeet2 = Float.parseFloat(feet2.getText() + "");                 mFeet3 = Float.parseFloat(feet3.getText() + "");                 mInch1 = Float.parseFloat(inch1.getText() + "");                 mInch2 = Float.parseFloat(inch2.getText() + "");                 mInch3 = Float.parseFloat(inch3.getText() + "");                 len = ((mFeet1 * 12) + mInch1);                 wid = ((mFeet2 * 12) + mInch2);                 hig = ((mFeet3 * 12) + mInch3);                 res.setText((len * wid * hig) + " ");             }         });     } }


how to make Kalman filter results equivalent to linear regression?

Statistics gurus, Kalman filter appears to be a powerful estimator for linear problems. I understand one can tune the performance by adjusting parameters like process noise and measurement noise. Is it possible to adjust these parameters to make Kalman filter results converge to a classic linear regression? If yes, how? Please kindly share your opinions. Thanks. Rgds,


I got 2 functions in javascript (Chrome and IE):  function call(param1, param2){    console.log("call param - 2"); }   and   function call(param1){    console.log("call param - 1"); }   I called like this:  call(1,2);   But I receive this on console:  call - param - 1


how can I best replicate an ink-in-water effect in Photoshop CS6? I'm guessing the best way is most probably to use brushes.  The following image is a good example of what I wan't to achieve:    Thanks in advance, any help would be much appreciated!


I am building a list with the following requirements:   Indent the description according to the longest label (ideally automatically). Enumerated list. Normal font for numbers. Bold font for "An item:", "A long item:", etc.   Here's what I have:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{enumitem}  \newlength\widest  \begin{document}  \newcounter{descriptcount} \settowidth\widest{\textbf{3 An even longer item:}}  \begin{description}[before={\setcounter{descriptcount}{0}},leftmargin=\dimexpr\widest+\labelsep\relax,labelindent=1cm,labelwidth=\widest,noitemsep,font=\stepcounter{descriptcount}\thedescriptcount~]    \item[An item:]              lalallalalallala   \item[A long item:]          item two   \item[An even longer item:]  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.  \end{description}  \end{document}     As you can see, the numbers are bold (which I do not want), the indentation is not aligned after the first line (on item 3) and the label width has to be set manually.   I've been messing with enumitem and eqlist but can't seem to get the settings right.


What tyre characteristics should I look for in a commuting tire?

I am living in London, but moving to a suburb where my commute would take me through a park. Being rainy England, the track can get quite muddy and my current tyres don't seem to be suitable. What features should I look for in a tire for this purpose? The bike in question is am aluminum Trek Checkpoint. I currently have 32mm Continental Gator Hardshell tires, which are slick tires with puncture protection.


Extract string between characters and include new lines?

Having issues using string to extract string between two characters. I need to get the everything between these characters including the line breaks:  reprEx <- "2100\n\nELECTRONIC WITHDRAWALS| om93 CCD ID: 964En To American Hon\nELECTRONIC WITHDRAWALSda Finance Corp 295.00\nTotal Electronic Withdrawals $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DES $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DESCRIPTION AMOUNT\n04/09 Pmt ID 7807388390 Refunded IN Error On 04/08"  desiredResult <- "| om93 CCD ID: 964En To American Hon\nELECTRONIC WITHDRAWALSda Finance Corp 295.00\nTotal Electronic Withdrawals $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DES $93,735.18\n["   I have tried using:  desiredResult <- str_match(reprEx, "ELECTRONIC WITHDRAWALS\\s*(.*?)\\s*OTHER WITHDRAWALS")[,2]   but I just get NA back. I just want to get everything in the string that is between the first occurrence of ELECTRONIC WITHDRAWALS and the first occurrence of OTHER WITHDRAWALS. I can't tell if the new lines are what is causing the problem


For every $x,y \in \mathbb{R}$ $$\dfrac{\mid x+y\mid}{1+\mid x + y \mid} \le \dfrac{\mid x \mid}{1+\mid x \mid} + \dfrac{\mid y \mid}{1+\mid y \mid}$$  Having hard time proving this statement . Please help ! Thanks


Secure and deterministic MACs which are not strongly secure?

One of the practice problems I was given for an exam that I'm preparing for is as follows:     Let $\Pi$ be a secure, deterministic MAC that uses canonical   verification. Show how to construct a MAC $\Pi'$ that is secure and   deterministic but is not strongly secure.   In my book, it says that if a MAC uses canonical verification, then it is a strong MAC. This seems to suggest that $\Pi'$ should not use canonical verification.  By the definition of a strongly secure MAC, for our construction, an adversary should be able to generate a new valid tag on an existing message-tag-pair that it has seen before. However, if the MAC is deterministic, doesn't that mean that each unique message only has one valid tag?  How do I approach such a construction? If all deterministic secure MACs can use canonical verification, and all secure MACs that use canonical verification are strongly secure, then doesn't that mean that all deterministic MACs are strongly secure?


Automatically style raster using unique values in QGIS?

In ArcMap, it is possible to automatically calculate the unique values for a raster and then apply a different style to each unique value (see 1st image).  However, in QGIS, I have to manually add values for styling when using the "Singleband pseudocolor" style (see 2nd image). Is there a way of auto-populating the unique values like ArcMap does?  ArcMap:    QGIS (how to auto-populate the value list with unique values?):


Android Stack Exchange app keeps crashing when I check Achievements

Over the last day, every time I tried to check the Achievements the app crashes, even just after the app launch. Here's a snippet of the error report I sent:        I'm not sure if it's related, but my app also still displays the Embedded Engineering site which was closed as Unknown Site embedded which also crashes the app if selected.


In Pandemic can I immediately cure disease to return to the 7 card limit?

I have 7 cards in my hand 4 red, 3 yellow (both uncured diseases). I take a red card from another player in my city, can I immediately cure disease (there is a research center in my city) to enable me to return below the 7 card limit?


Prove the following equality involving $f'(0)$

I was doing the following problem:  $f$ is an analytic function defined in a neighborhood of $0$, and $f'(0)\neq 0$. Show that  $$\frac{1}{f'(0)}=\frac{1}{2\pi i}\int_{|z|=r}\frac{1}{f(z)-f(0)}dz,$$ provided that $r>0$ is sufficiently small.  I was trying to use the Cauchy integral formula for the inverse of $f$, but it doesn't seem to give the desired integral. Any help would be appreciated.


Grassmannians $G(k, n)$ and $G(n-k, n)$ are diffeomorphic

Let $f:G(k, n)\to G(n-k, n)$ be the map taking a $k$-plane $V$ (i.e., a $k$-dimensional subspace of $\mathbb{R}^n$) into it's orthogonal complement $V^{\perp}$. Show that $f$ is a diffeomorphism.   My question is whether or not the following strategy can work:   Since $f$ is obviously a bijection, it is enough to prove that $f$ is a local diffeomorphism, so the plan is to prove that the linear map $f_{*_{p}}$ has full rank $k(n-k)$ for every $p\in G(k, n)$.   My difficulty is: I'm having trouble to calculate $f_{*_{p}}(v)$ for an arbitrary $v \in T_p(G(k, n))$ because I don't know how to concretely represent such a $v$.   Is this strategy doable? Thanks!


When a character has less than 0 but more than -10 HP, they are considred "dying". According to the SRD:     A dying character loses 1 hit point every round. This continues until the character dies or becomes stable.   However, a character or creature with damage reduction takes an x-amount less from any source of physical damage, which arguably includes the above. Obviously (to me), having damage reduction doesn't automatically mean you're immune to bleeding out. However, is there any official source that explains this? If so, what does that source have to say about the matter?


Can I change the value of an attribute passed by constructor of another class?

I want to change a boolean attribute, based in main class, through a constructor. This is the code:  public class NewJDialog{      public boolean CHECK;     java.awt.Label label; . . .     Trasporta valore = new Trasporta(CHECK,label); . . . }   Class2   public class Trasporta implementsMouseListener,MouseMotionListener{    public  boolean value;  java.awt.Label label;    public Trasporta(boolean value, java.awt.Label ... pns){      for ( java.awt.Label genericlabel : pns){          genericlabel.addMouseListener(this);          genericlabel.addMouseMotionListener(this);                  }     this.value=value; }     @Override public void mousePressed(MouseEvent e) {       this.value = true; }   In this way, CHECK attribute will not become "true".  Can you tell me why? How can I fix it?  Thanks in advance for your reply.


US which Immigration line with girlfriend?

Me (US citizen) traveling with fiancee (EU citizen been to the US several times with ESTA) to Atlanta.  Should we use the visitors line together or can she go through the citizens line with me?  Most importantly we dont want to be seperated. Dont really care which line we go through.  Thanks!


Am trying to install for dual boot system. OK on one XP computer but on XP laptop I receive following message  -  "unable to boot - please use a kernel appropriate for your CPU.  Not present pae. Don't understand what is meant by pae. Have burnt two DVDs one on each machine, and whilst both work on the PC, both come up with the same message on the laptop. Can anyone please point me in the right direction to correct this error. Thanks, Roy


I am having a file named as new11 and new12 and the path is source=\Users\user.CLPSTPDFC46\Desktop\new11 and dest=\Users\user.CLPSTPDFC46\Desktop\new12  Now I need to copy the content from new11 to new12. how can I approach this ?


Are there any rational numbers $x$ and $y$ such that $x^2+y^2=3$. I think there are no rational solutions, but I haven't been able to prove it.


how to create a term-life annuity timeline on LaTex

how to create a term-life annuity timeline like this


Can't add context menu item to .mp4 file

So for the past 30minutes I've been searching on the internet and seen some possible solutions, but none of them seem to work.  I know how to do it because I've successfully added my context menu item to the astrix (*), but I just can't find where to place my key to only show up on .mp4 files.  So far I've tried:   .mp4 WMP11.AssocFile.MP4 WMP11.AssocFile.MPEG mpegfile MPlayer     EDIT SINCE IT IS MARKED AS DUPLICATE:  I like how you set this as duplicate. But I used that method and it still didn't work. SO THAT IS WHY I ASKED IT. So if you are so kind to mark it as duplicate please help me then, I also see that someone upvoted this post so I'm not alone!


Unreadable flashdisk / ERROR and RAW format on Windows 10

I'm a newbie and I want to ask.. When I insert FD into my PC, it is illegible and always format.  and FD in RAW format, when I format from CMD a notification like this occurs :  when chkdsk / R F: then it doesn't work because FD is in RAW format.If i format with with format fs=fat32 it doesn't work either.. Please someone help me fix my flashdisk..


Word for a place where knowledge is shared

I am looking for a word that represents a place where knowledge is shared. Words like academy or school convey the idea of one-way sharing (from teachers/instructors to students), and I want something where everybody shares knowledge, preferably technical.  The proposed usage is to brand a group where people will meet to share knowledge (and anyone can be a teacher at any given time).  Any ideas?  Thanks!


Maybe a stupid question...but I often see the usage of \csname in code -- especially in packages. Can someone explain what its purpose is?   As far as I see it generates a new command based on an argument.


Prove $(p \lor q) \land (\neg p \lor r) \to (q \lor r)$ is a tautology

I am looking for a way to prove that the statement,  $$(p \lor q) \land (\neg p \lor r) \to (q \lor r)$$  is a tautology without the help of the truth table, by using only laws and theorems like De Morgan's Law, Domination Law, etc. Also, I can't use the rules of inference. Please help, thank you.


As of now my uploaded files are organized by year and month.  But I would like to organize them by year, month and day.  I mean like this 2012/10/30/image goes here  PS: There is a  to do this. But I don't want to use a plugin for this simple task. Thanks


How to block and unblock https access on OS X 10.9

I am working on a test project that requires me to block https access for a specific app on my Mac (OS X 10.9).   The instruction provided are "Chinese" to me and I have no idea where to start:  (Example: Alter the iptables) Steps:   Block the port:  root@QA9:/opt/appname/appnamerouter2# iptables --list root@QA9:/opt/appname/appnamerouter2# iptables -A INPUT -p tcp --destination-port 443/8443 -j DROP root@QA9:/opt/appname/appnamerouter2# iptables --list  For Open the Port:  root@QA9:/opt/appname/appnamerouter2# iptables -D INPUT 1


A. A. Markov's paper on insolubility of the homeorphy problem

I am aware that this has been asked before, but the paper is nowhere to be found online, the provided link in the old thread leads to nowhere, and I'm really at wits end to find this paper, can anyone provide a working source for this paper in either english or spanish?


how to change user roles for users who doesn't have any. (about 8000 users)

We have about 8000 users who doesn't have any roles. we need to change them to "contributor". How can I change them to "contributor"? Should I do on database? if so, which fields I need to update?  Thanks,


generate log .txt file on PC for arduino serial terminal log (send and receive commands)

I am trying to generate a .txt file on my Windows 10 PC of Arduino serial terminal data. I am not using SD card on Arduino Mega board just need to send commands to Arduino baord from serial terminal and save the generated results in .txt file on PC.   Please guide for best possible solutions.  Thank you....


We have two variables from 2 to 99. Their sum is A. Their product is B. I know A, the other person knows B. We have to get the numbers without asking each other. But I call the other person and say that I have no idea what these numbers can be. The other person tells that he knew for sure that I wouldn't understand the numbers. Then as I hear that he knew I wouldn't get the right answer , I say that I understood the answer just now. Hearing me the other person says the same. How is this possible?


I installed QGIS 3, and tried to execute tools like "sieve" "merge" and "polygonize". All of them gave me the error message:  GDAL command output: /bin/sh: (scriptname).py: command not found   I found the scripts in both /Username/miniconda3/bin and /Username/miniconda3/lib/python3.6/site-packages/GDAL-2.2.2-py3.6-macosx-10.9-x86_64.egg-info/scripts.  Checking env in Terminal shows that miniconda3/bin is in the path:  PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin://Users/Username/miniconda3/bin  What could be causing the failure of executing those scripts?


During my course I came across that expression: A(:,end:-1:1)   I have trouble to understand and read the morphemic structure of the 2nd Operand "end;-1;1"   Lets take the example: A=[1 2 3; 4 5 6; 7 8 9]  I am aware of: A(:)..   Outputs [1 2 3; 4 5 6; 7 8 9] as rows. Operator is :. A(1,:).. Outputs [1 2 3; 4 5 6; 7 8 9] as columns Operator is , then , . A(:,1).. Outputs [1 2 3; 4 5 6; 7 8 9] as rows. Operator is , beforehand : . A(:,end:-1:1)  Output in Matlab show me: 3x3 Matrix. How am I supposed to read the structure?  Graphem: : ..show me the rows, Graphem: end:-1 .. ?? Graphem: :1 ..  Somehow ":" was for me the operator for show all of the elements. It makes sense to me that the "Operand1 , Operand2" shows me the 2 Dimensional Matrix.  First Idea: The end:-1:1 expression seemed to me like a loop. So -1, 0, 1 => **3x Elements** ? But when I type A(1,end:3) it only shows me the 3rd row.  Second Idea: A(end:-1:1,1) It shows me the inverted Matrix..   My background: I am a undergraduate student from the field of language. I build in my freetime the 8-Bit Sap1 according Ben Eater. So I am familiar with program memory or instruction memory. I  only the result, but not how it is achieved by the MATLAB compiler. Someone said to me that the "Matrixaddressing is somehow optimized". Looking forward to a helpful answer in each step. :) Thanks in advance!


What is the name of this kind of character illustration?

I have seen lots of UI designer nowadays including this kind of illustration i want to know the name of this style so that i can also learn and try this in my designs.


How to get the value without round up/down in Java?


Covariance when exponentiating a normal random variable

Say $Z \sim N(\mu, \sigma^2)$.  I am trying to figure out what is the variance of $Y = exp(Z)$.  The first thing that came to mind was approximate $exp(Z)$ with a second order taylor series, then it boils down to finding the variance of a polynomial.  But then what is the covariance term of $(Z, Z^2)$?


64-bit kernel, but all 32-bit ELF executable running processes, how is this?

The output from uname:  root@debian:~ # uname -a Linux 5asnb 2.6.32-5-amd64 #1 SMP Mon Jun 13 05:49:32 UTC 2011 x86_64 GNU/Linux   However the /sbin/init executable shows up as 32-bit:  root@debian:~ # file /sbin/init /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped   Other aspects of the system seem to contradict things as well:  root@debian:~ # echo $HOSTTYPE i486  root@debian:~ # getconf LONG_BIT 32


command line tool for viewing files of arbitrary file-type?

Is there a command line tool (e.g. called "view") that will select a program to open / view a file with automagically based on the file extension and/or other hints to the format?


Publishing map services in ArcMap gives ERROR 001487: Failed to update published service with server-side data location?

I am using the python script provided by arc help to publish map services but keep getting this error. I am using desktop ver 10.3 and publishing to arc server 10.1. Different version isn't a problem. I looked into that already. Here's what I'm getting..  Executing: StageService //gis/noble/Region/GulfOfMexico/MAPS/Rusty/PTRL_GOM_GBDS1.sddraft \\gis\noble\Region\GulfOfMexico\MAPS\Rusty\PTRL_GOM_GBDS1.sd Start Time: Wed Jul 27 12:58:45 2016 Submitted. Executing... Start Time: Wed Jul 27 12:58:57 2016 Succeeded at Wed Jul 27 12:58:58 2016 (Elapsed Time: 0.33 seconds) Succeeded. Succeeded at Wed Jul 27 12:58:58 2016 (Elapsed Time: 13.03 seconds) Executing: UploadServiceDefinition //gis/noble/Region/GulfOfMexico/MAPS/Rusty/PTRL_GOM_GBDS1.sd "GIS Servers\arcgis on hougsagis01.gs.nblenergy.com_6080 (publisher).ags" # # FROM_SERVICE_DEFINITION # STARTED USE_DEFINITION NO_SHARE_ONLINE PRIVATE NO_SHARE_ORGANIZATION # Start Time: Wed Jul 27 12:59:10 2016 Submitted. Executing... Executing (Publish Service Definition): PublishServiceDefinition i24681d7c-eb34-40ef-8223-32f7fc1c7e34 # {"buildInitialCache":false} # Start Time: Wed Jul 27 12:59:13 2016 Validating publish options. Connecting to the server. Getting basic item metadata for service definition upload. Getting server information (server folders, data stores, etc.). Extracting manifiest from uploaded service definition. Deriving arcgis server service from hosted service (hosted service definition). Validating service definition. Determining service's input folder name. Attempt to find service's input folder. Creating the service. ERROR 001487: Failed to update the published service with the server-side data location. Please see the server's log for more details. ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed at Wed Jul 27 12:59:14 2016 (Elapsed Time: 0.92 seconds) Failed. ERROR: the server's publishing job didn't succeed. Failed to execute (UploadServiceDefinition). Failed at Wed Jul 27 12:59:13 2016 (Elapsed Time: 3.01 seconds)   I cannot access the server folders past  Directory /opt/ags/arcgis/server/usr: permission denied. I cannot access the logs. Has anyone else run into this?


What does "%:" (percent colon) mean in C?

In one of my courses I've been given this cryptic c code.  %:define BBRACE ( %:define BRACEE ) %:define CCURLY_BRACE { %:define CURLY_BRACEE } %:define SEMICOLON ; %:define COMMA , int main BBRACE int argc COMMA char *argv<::> BRACEE CCURLY_BRACE return 1^2^3^4^5^6^7 SEMICOLON CURLY_BRACEE   Its not that complicated but I've never seen %:define ... is there any difference to #define ...? I found nothing about %:online.  Same goes with char *argv<::> but I don't know if this really deserves a second question.


I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new language like TikZ?


why inheritance is strongly coupled where as composition is loosely coupled in Java?

I have heard this favor composition over inheritance again and again in design patterns. some of the reasons cited for this are  1)Inheritance is strongly coupled where as composition is loosely coupled 2) Inheritance is compile time determined where as composition is run-time 3)Inheritance breaks encapsulation where as composition does not 4) anything else I am not aware of   It would be great for beginners like to me follow these by illustrations as how inheritance and composition differs with respect to above points. I have read various SO links that talks about them, but walk through examples on these key points would be great for Java beginners.  I think it is very crucial to understand the difference clearly than just memorizing the points.


Inversion/non-inversion in wh-questions with long phrases after the wh-words

Can a sentence like this:      "I don't know who the first man that made such and such thing in such and such place was,"    be grammatically correct if we don't put "was" at the end of the long phrase, that is, if we write:      "I don't know who was the first man that made such and such thing in such and such place"?    I can see in Google Books examples that in such cases the verb is often put after the wh-word, but I don't know if there is a grammar rule to support this. Some examples:  "We do not know who was the first man who ascended above a poor and humble people to become Egypt's first king ..."  "... we do not know what was the ultimate judgment of the various members of the community ..."  "I do not know who was the first to suggest a connection between the problem of free will and the breakdown ..."  "I do not know what was the date of this change in me, nor of the train of ideas ..."  "We do not know what was the primitive text from which Codex Bezae derived its Latin or its Greek ..."  "We do not know what was the practice in the days of the monarchy, but the story of Athaliah shows ..."


what is the difference in PCI "type" between these PCI cards?

The PCI cards happen to be different colours, so let's call them the black one and the green one. (i'm guessing the colour is just coincidence?!).   I have an old computer that takes the green PCI card pictured.  It's a PCI  dialup modem card.  I've taken it out and photographed it as an example of what the computer takes.  I got a cheap old PCI card off ebay(PCI-USB) - the black one (I guess perhaps black is unusual too!)- but it doesn't fit.  What is the name of the specification of each of the two cards such that I can see what distinguishes them. What are they called.  I remember back in the day there being a 3.3V PCI, vs a 5V PCI, so for those i'd know ok one is called the 3.3V PCI and one is called the 5V PCI.  No doubt things have changed since then. What's the difference between the two cards pictured in terms of for example what they're called?  I can see the black one has about 7 pins on the smaller section and the green one has about 11 pins on the smaller section


Can an ext4 formatted hard drive work on MacOS out of the box

I need a cross platform file system for an external hard drive that will be used on both Linux and MacOS. Will an ext4 file system work on MacOS right from the moment it is plugged in?


Problems to upgrade from 18.04.5 to 20.04 LTS, again!

I use Ubuntu Studio 18.04.5 in one of my desktop PCs. Since a week, the system is offering me the chance to upgrade to the last 20.04 LTS, but... When I ask the system to perform the upgrading, the system tells me that I have to upgrade all the packages of my today (18.04.5) version before to upgrade to the last 20.04 LTS. The only one package I know I could to upgrade is WineHQ. But, that package is hold to the 18.04.5 version, I don't know why. So... My simple question is: If I uninstalled the WineHQ package, Will be able to upgrade all the system to the last 20.04 LTS version?


Three couples are supposed to sit down at a round table such that no one sits next to his/her partner. The six seats are not numbered such that any rotation of a given configuration is regarded as the same configuration. Use the principle of inclusion and exclusion to compute how many ways are there for the six people to sit down at a table.


If $n$ is an $\underline{\text{integer}}$ > 7, prove that $\big(^n_7\big) - { \begin{bmatrix}{\frac {n}{7}} \end{bmatrix} }$ is divisible by $7$.

$\big(^n_7\big)$ denotes the number of ways of choosing $7$ objects from among $n$ objects. For a real number $n , [n]$ denotes the greatest integer not exceeding x.  My attempt : I simplified $\big(^n_7\big)$ as $\frac {\prod_{j=0}^{6} {(n-j)}} {7!} $. For ${ \begin{bmatrix}{\frac {n}{7}} \end{bmatrix} }$, the only thing I could infer was that if $n=7k+m $, where $(k,m) \in N$ and $m < 7$ , ${ \begin{bmatrix}{\frac {n}{7}} \end{bmatrix} }$ would equal $k$. How should I proceed? Can anyone help?


Please have a look at the code below (excerpt from a C# book): public class MyClass  {     public int val; } public struct myStruct  {     public int val; } public class Program  {     private static void Main(string[] args)      {         MyClass objectA = new MyClass();         MyClass objectB = objectA;          objectA.val = 10;         objectB.val = 20;          myStruct structA = new myStruct();         myStruct structB = structA;          structA.val = 30;         structB.val = 40;          Console.WriteLine("objectA.val = {0}", objectA.val);         Console.WriteLine("objectB.val = {0}", objectB.val);         Console.WriteLine("structA.val = {0}", structA.val);         Console.WriteLine("structB.val = {0}", structB.val);          Console.ReadKey();     } }  I understands it produces the output below: objectA.val = 20 objectB.val = 20 structA.val = 30 structB.val = 40  The last two lines of the output I have no problem with, but the first two tell me that objectA and objectB are pointing to the same memory block (since in C#, objects are reference types). The question is how do make objectB, a copy of objectA so that it points to a different area in memory. I understand that trying to assign their members may not work since those members may be references, too. So how do I go about making objectB a completely different entity from objectA?


Ubuntu 12.10 doesn't recognize partitions

I just did a clean install of Windows 7 on a brand new laptop (Packard Bell EasyNote LE).  I created 3 partitions:   150 GB on which I installed Windows 7 50 GB for Ubuntu 270 GB for file storage   When I installed Windows 7, I rebooted and fired up the Ubuntu 12.10 live CD and I was represented with only 2 choices:   Install Ubuntu and erase everything   Something else   So I selected something else and it lists the 500GB as free space.


How can I get any programs to only/always interact with D: instead instead of C:?

I've built a rig with a small SSD for C: which I want to be pretty much only for the OS, and a HDD D: drive. Problem is, even when I tell them to install and run from D: a lot of programs keep sending stuff to C: anyway, which constantly fills it up. In short, can I somehow tell any program when it opens a folder "go here"? Is there some sort of script I can write for it or setting I can tweak?  Unlike other questions, this is more about being proactive about installing new programs on a new machine rather than rebuilding an existing machine or moving files around. I'm running Windows 10 (home). EDIT: This question applies to things like globally installed software/plugins and databases as I'm a web developer. (To be specific, NPM and other Node.js dependencies for the former and MongoDB for the latter).


I want the arrow to scale with the arc scale. See my example below. You will notice that the arrow looks fine as long as the arc radius is large.   \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,shapes}  \begin{document}  \tikzset{     pics/carc/.style args={#1:#2:#3}{         code={             \draw[pic actions] (#1:#3) arc(#1:#2:#3);         }     } }  \begin{tikzpicture}     \draw[thick] (4,2)  pic[red, -latex]{carc=10:290:0.2cm};      \draw[thick] (8,2)  pic[red, -latex]{carc=10:290:1.2cm};  \end{tikzpicture}  \end{document}


Maybe the answer is obvious. I'm sorry for this  I know for all $x \in \mathbb{R}$ that  $$ \lim_\limits{n \to \infty}\left(1 + \frac{x}{n} \right)^{n} = \exp(x). $$  Now suppose I have a sequence $\{x_{n}\}_{n \in \mathbb{N}}$ such that  $$ \lim_\limits{n \to \infty} x_{n} = x \in \mathbb{R}. $$  Can I also conclude that  $$ \lim_\limits{n \to \infty}\left(1 + \frac{x_{n}}{n} \right)^{n} = \exp(x)? $$


Interpretation of Ramanujan summation of infinite divergent series

I am not mathematician by any means so this question might be rather stupid. I came across this Wikipedia article on  and found this bewildering formula,   $$1 + 2 + 3 + \dots  = - \frac1{12}$$  The article also says that "Ramanujan summation of a divergent series is not a sum in the traditional sense". I am wondering then what this summation actually implies?  Is there any interpretation of this confounding result in the physical world that someone not so math-savvy can understand?


The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

When I look for my error key number 0429ACCAF7AA50B3, it is not in the database, thus I cannot receive or generate anything even none of this did not work:      Please, do you know what to do next? Thank you!  This is what it shows:  $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0429ACCAF7AA50B3 [sudo] password for jiri:  Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ag55619bV6 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/nilarimogard-webupd8.gpg --keyring /etc/apt/trusted.gpg.d/webupd8team-y-ppa-manager.gpg --keyserver keyserver.ubuntu.com --recv-keys 0429ACCAF7AA50B3 gpg: requesting key F7AA50B3 from hkp server keyserver.ubuntu.com gpgkeys: key 0429ACCAF7AA50B3 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0


Accessing private member variables from prototype-defined functions

Is there any way to make “private” variables (those defined in the constructor), available to prototype-defined methods?  TestClass = function(){     var privateField = "hello";     this.nonProtoHello = function(){alert(privateField)}; }; TestClass.prototype.prototypeHello = function(){alert(privateField)};   This works:  t.nonProtoHello()   But this doesn’t:  t.prototypeHello()   I’m used to defining my methods inside the constructor, but am moving away from that for a couple reasons.


I'm trying to install Ubuntu and in BIOS there is no boot from USB drive or anything like that. I would boot it from disk, but my laptops CD/DVD reader is broken and it can't read anything. Please help?


Is there a word for "divulging unintentionally"?

The President * information to an unauthorized staff of the White   House.   I am wondering if there's a word for divulging unintentionally like as in a person leaking corporate information to a person who's not supposed to have that information unintentionally. Is there such a word?


Can't connect to WebService android.os.NetworkOnMainThreadException

I am trying to connect to a PHP page in my Android app. I have the permissions set. However, I keep getting Invalid ip address. It seems I need . However, I don't know how to set it up, maybe a class that runs separately like this:  , but on that link I have no idea why they are returning the RSSFeed   The actual website link works. It is just my app throwing this error.  ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();  nameValuePairs.add(new BasicNameValuePair("id", "123")); nameValuePairs.add(new BasicNameValuePair("name", "test name")); nameValuePairs.add(new BasicNameValuePair("family_memb_id", "456");  try {     HttpClient httpclient = new DefaultHttpClient();     HttpPost httppost = new HttpPost("http://mysite/insert.php");      httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));     HttpResponse response = httpclient.execute(httppost);     HttpEntity entity = response.getEntity();     is = entity.getContent();  }   catch(Exception e)  {      Log.e("app", "Failed 1: " + e.toString());  }   try  {      BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8);      StringBuilder sb = new StringBuilder();       while ((line = reader.readLine()) != null)          sb.append(line + "\n");       is.close();      result = sb.toString();  }   catch(Exception e)  {      Log.e("app", "Failed 2: " + e.toString());  }   try  {      JSONObject json_data = new JSONObject(result);      code=(json_data.getInt("code"));       if(code==1)      {          Toast.makeText(getBaseContext(), "Inserted Successfully",                         Toast.LENGTH_SHORT).show();      }      else      {          Toast.makeText(getBaseContext(), "Sorry, Try Again",                         Toast.LENGTH_LONG).show();      }  }  catch(Exception e)  {      Log.e("app", "Failed 3: " + e.toString());  }   Error Log:     Failed 1: android.os.NetworkOnMainThreadException   Failed 2: java.lang.NullPointerException: lock == null   Failed 3: java.lang.NullPointerException: Attempt to invoke virtual  method 'int java.lang.String.length()' on a null object reference   This is not a duplicate of null pointer exception; although my log shows a null pointer exception, my problem happens before that. The null pointer is a side effect of what the real issue is.


I found this problem on a well-known problem solving website. It is apparently from Ramanujan.     With   $$\LARGE{a = \frac{1}{1 + \frac{e^{-2\pi}}{1 + \frac{e^{-4\pi}}{1 + \ddots}}}},$$   what is $a$?   The basic methods I know for questions of this type were not helpful to me.  I do not require a full solution, but feel free to post one if you would like. Hints or lecture notes on how to solve problems of this nature would be appreciated.   Keep in mind that I am at an undergraduate level in mathematics.


Find all the group homomorphisms from $(\mathbb{Q}, +)$ into $(\mathbb{R}, +)$.  My attempt:  If $\mathbb{Q}$ were a cyclic group, I could tell that any homomorphism will be determined by the image of generator. But here $\mathbb{Q}$ is not a cyclic group, so there's no generator. All one can say is that:   if $f$ is a homomorphism then $f(0)=0$.   But this doesn't help me to solve this problem. So how should it be tackled?


How long did it actually take to construct the original Death Star?

Inspired by , how long did it take to build the original Death Star?  Much of the dialogue in  indicates that the battle station is not "operational", but no mention is mead of how long it actually took to construct the station.  One could deduce that it took 19 years to build, since the construction begins at the end of  and is only just operational near the beginning of Episode IV, which is 19 years later.  However, it is equally as possible that the station has been built and ready for a while, but has simply not yet been used.  How long did the actual construction of the original Death Star take?


I voted to close a question as dupe   The dupe I found had the answer in C# so it wasn't quite a dupe and poster commented asking  for an answer in python.  I then found an exact dupe, in python, - but I can't vote to close again and I can't edit my dupe link in the autogenerated comment because the edit window had passed.  Should dupe comments be editable for longer? Or should there be a mechanism to change a close vote?


Standard deviation of revenue where numbers are only positive

Is there a way for standard deviation to ignore negative numbers? In other words, how can you make it so that 2 or 3 deviations do not extend into negative territory?   When looking at a set of only positive numbers, within one or two standard deviations, I end up with negative numbers. It's essentially impossible for a data point to be negative.  Am I doing something wrong?   Also, when using deviations from the mean, do you add or subtract the full deviation from the mean or divide by two and plus and minus that to get one deviation from mean   I'm sure this embarrassingly simple for this group but this is not my strong point!   Please let me know if I can clarify.  My recent experience with statistics is relatively limited.  Thanks!


how to combine values in list of tuples?

I have a list of tuples which I want to combine similar values:  This is the list of tuples I've got when I combined multiple lists using list(zip(a,b,c))  data = [('name', 'id', 'isp', 'num'),         ('name1', 'id1', 'isp1', 'num1'),         ('name2', 'id2', 'isp2', 'num2')]   I want to group together similar values.   Desired Output:  data = [('name', 'name1', 'name2'),         ('id', 'id1', 'id2'),         ('isp', 'isp1', 'isp2'),         ('num', 'num1', 'num2')]   Are there any tricks to achieve this output?


One of my div's names is "N/A (nationwide)", and I have an scss file for css properties. How would I apply css to this div?  neither   .N/A{  }  .(nationwide){  }   seem to work.


What does it mean when ST_Equals returns false and `=` returns true?

There are two methods of determining equality in PostGIS.   The equals operator     Obviously these two methods work different, but the docs on ST_Equals are not clear why,     Returns TRUE if the given Geometries are "spatially equal". Use this for a 'better' answer than '='. Note by spatially equal we mean ST_Within(A,B) = true and ST_Within(B,A) = true and also mean ordering of points can be different but represent the same geometry structure. To verify the order of points is consistent, use ST_OrderingEquals (it must be noted ST_OrderingEquals is a little more stringent than simply verifying order of points are the same).   This seems to mean there is two criterion for ST_Equals, and that is that   ST_Within(A,B) = true  ST_Within(B,A) = true   However, that ordering of points does not matter with ST_Equals. Presumably, that would matter with the equal operator then =? But, that doesn't match up with my observation.  So as three in the same questions..   What does the equal operator (=) do? What does the ST_Equals() do? What criteria does spatially equal include that = does not include?


I don't understand the purpose of for in loops

I've been working my way through the Javascript development track on Treehouse and am struggling with for in loops. I have been unable to locate any explanation of this loop in everyday language and am subsequently getting confused. What does for in actually do, and why would you use this loop as oppose to another loop? Is it basically just a way to assign a common label to each individual property of an object?


How to execute shell script via crontab?

I have a notify.sh script that looks like:  notify-send "hi welcome"   My crontab notification for 2 PM:  0 14 * * * home/hacks/notify.sh   However, this doesn't work. What is the problem?


How to get snap installed SimpleScreenRecorder to save output file to removable media?

I installed SimpleScreenRecorder with command:  $ sudo snap install simplescreenrecorder   I then tried to configure a record session so that the output would be saved on a USB drive, but as soon as I try and access the /media folder for the Save As path, I get the following error:   Having experienced the same issue with GIMP in an earlier post, I tried the following command (which worked for GIMP) to solve the problem:  $ sudo snap connect simplescreenrecorder:removable-media   However, that resulted in the following error message:  error: snap "simplescreenrecorder" has no plug named "removable-media"   Is it possible to have SimpleScreenRecorder output to removable media, or is there a technical barrier preventing this?  Update: I find that SimpleScreenRecorder is now available to install from apt directly. So I removed the snap version:  sudo snap remove simplescreenrecorder   Then installed from apt:  sudo apt install simplescreenrecorder   The trust and permissions that come with being a core apt package means the application has access to removable media without further configuration.


Create Apex Trigger / Class using Python

I am trying to automate a few things for Salesforce using Python. I am using OAuth for Rest API for other processes like creating or updating records. I need to figure out how to create Apex Trigger/Classes through API calls. I have tried the below API and it works for development instance. https://[instance].salesforce.com/services/data/v51.0/sobjects/ApexTrigger But I see this message in the .  Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create or update them using the API. Instead, use the Ant Migration Tool, the Salesforce user interface, or the Salesforce Extensions for Visual Studio Code to create or update Apex classes or triggers.  Is this warning applicable to the Production environment? If so, then what method we can use which will work for both development & production using Python? PS: I tried looking up Metadata API but it looks like Force WSC which is required for it is only available for Java.   To run the samples, first download the latest force-wsc JAR file and its dependencies from mvnrepository.com/artifact/com.force.api/force-wsc/.  Edit:  This question does not answer whether this will work in production instance or not.  suggests that it will not.


How can I display only the first screenfull of output, including all terminal colours, and lines that will be wrapped?

I have a command (a compiler) that can output lots to the terminal when there's a compilation problem. Some of the lines are longer than my terminal is wide, and it also uses terminal colours  (red text for errors etc). I want to run that command, and only show the first screen/page of output, but taking account of line wraps & colours. Update I am using cargo, the Rust compiler, and if there's a syntax error, it will produce lots of output, including colours. with --colors=always, and |& I can show both. e.g. cargo build --colors=always |& head -n 20 shows the first 20 lines. I want to show the first page only, so that I can I use entr to auto run find ./src/ -type f -name '*.rs' | entr -r bash -c 'cargo build -- color=always |& less -R will not work, because the less command gobbles everything and I can't stop it. In fact that hides all output.


I was under the assumption that if I disabled a div, all content got disabled too.  However, the content is grayed but I can still interact with it.  Is there a way to do that? (disable a div and get all content disabled also)


How to achieve this effect that looks smoky/blurred and was used in a Balenciaga campaign?

This effect looks like smoke with a little blurring. There are many examples of this because it has been used in some erotic movies.  I don’t know if it’s a lens filter, a specific camera, a technique, or a type of film. How is this effect achieved?


Could not activate iPhone because "activation server cannot be reached"

I just purchased an iPhone 5s and attached to my iCloud. After that it seems that App Store applications were not installing properly. I did a factory reset and the following screen is shown:  Could Not Activate iPhone Your iPhone could not be activated because the activation server cannot be reached. Try connecting your iPhone to iTunes to activate it, or try again in a few minutes. If this problem persists, contact Apple Support at apple.com/uk/support Try Again


I haven't tried Archipack previously but anyways, after going like this: and when I click on Windows it shows up this black patch in middle of the viewport: I tried Wall and it worked well as it added a wall type mesh, but in this case windows aren't showing up, that black patch covers my viewport..


BMO1 2009/10 Q5 functional equation: $f(x)f(y) = f(x + y) + xy$

Find all functions $f$, defined on the real numbers and taking real values, which satisfy the equation $f(x)f(y) = f(x + y) + xy$ for all real numbers $x$ and $y$.  I worked out $f(0)=1$, and $f(-1)f(1)=0$, but then I hit a wall.


Remove appendix page numbers in TOC while using appendix package

I'm using \usepackage[title,titletoc]{appendix} and putting my appendices in the appendices environment. I'm trying to remove the appendix page numbers from the TOC.  I've looked at the documentation for the appendix packaged and tried using \noappendicestocpagenum without success.  \documentclass{article} \usepackage[title,titletoc]{appendix} \usepackage{lipsum}  \begin{document}      \tableofcontents     \clearpage     \section{first}     \section{second}     \pagebreak     \begin{appendices}          \section{additional material}         \setcounter{page}{1}         \renewcommand{\thepage}{\thesection -\arabic{page}}          \lipsum          \pagebreak         \section{more of it}         \setcounter{page}{1}         \renewcommand{\thepage}{\thesection -\arabic{page}}          \lipsum      \end{appendices} \end{document}     Advice on better formatting of my page numbers would also be welcome.


BTRFS: what system directories should have copy-on-write disabled?

In the "Gotchas" section of the  it's mentioned that performance issues could occur with highly fragmented files (vm images and databases). The solution for this is to disable copy-on-write for those files.      For a Debian installation, in what system directories should we also disable copy-on-write (mounting them in a nodatacow subvolume)?   edit To reduce the broadness of the question, assume it's a server with full allocation image VMs (log server, file server, for example). Also, operations like btrfs add/remove missing causes a lot of logging to occur in the host machine.  My question is, besides disabling copy-on-write for those "write active" VMs, is disabling it on the /var/log directory enough or are there other system directories/files that I could also do this from the start (like all of /var and /tmp as Stephen Harris suggested)? Or is it just a matter of starting somewhere, checking regularly for fragmented files and performance issues, and disabling the copy-on-write when needed?


Is the number $7$ a polynomial expression.

I mean to ask  that $7$ is an arithmetic  expression  but it can also  be  written  as $7x^0$.  which is a constant polynomial  expression.  Every polynomial  expression  is an algebraic  expression  so with  this logic is $7$ an algebraic  expression  or an arithmetic  expression.  Further $7=5+2$, is it an arithmetic  equation  or algebraic  equation  because  it can also be written  in  $7x^0 = 5x^0 + 2x^0$ form. please help.  Thank you.


Is it possible to resize/move root and encrypted home partitions in Ubuntu 14.04 without losing data?

There seems to be quite a few pages on how to re-partition a hard-drive without lead to loss of data. There are also pages that state that it is not possible with encrypted drives, and other stating that it is only possible using the command line utilities. I am a bit sceptical as there does not seem to be any hands on instructions how this can be done. Some guidance and links to how this can be done would be helpful. I understand that without encryption one needs to boot from a live-CD or usb, and run Gparted. I have a dual boot Ubuntu 14.04 Windows 7 laptop. The partitions are as follows: I want to increase sda10 (/) and move/decrease sda9 (/home).  Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x75487944     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      409599      203776    7  HPFS/NTFS/exFAT /dev/sda2          409600   124969634    62280017+   7  HPFS/NTFS/exFAT /dev/sda3       124971006  1465147119   670088057    f  W95 Ext'd (LBA) Partition 3 does not start on physical sector boundary. /dev/sda5      1435705408  1464936447    14615520    7  HPFS/NTFS/exFAT /dev/sda6      1464936511  1465147119      105304+   c  W95 FAT32 (LBA) Partition 6 does not start on physical sector boundary. /dev/sda7       124971008   124973055        1024   83  Linux /dev/sda8      1415692288  1415694335        1024   83  Linux /dev/sda9       124975104   184971263    29998080   83  Linux /dev/sda10      184973312  1403674623   609350656   83  Linux /dev/sda11     1403676672  1415677951     6000640   82  Linux swap / Solaris /dev/sda12     1415696384  1435697151    10000384    b  W95 FAT32  Partition table entries are not in disk order  Disk /dev/mapper/cryptswap1: 6144 MB, 6144655360 bytes 255 heads, 63 sectors/track, 747 cylinders, total 12001280 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x4079e40a  Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table


What is the proper sizing/image/resolution or whatever for shooting artwork for submission?

I create colored pencil art and I'm very confused about the whole thing of resolution: A professional print provider is doing the photo shoot of my artwork, and I was just handed an image that is 72 dpi, but the picture is very large. I thought it should be 300 dpi so I could save it into the various sizes I need for mags or printing or submission for shows.  What is the correct way to do this? When I shoot my art myself just for my own use I resize the images to 72 dpi and they then look quite small, the right size for posting on my blog but the 72 dpi image he sent me as mentioned was very large at 72 dpi.  Some advice here please and thank you.  I am new at this and the question was answered but I did not understand a word of it.  Could someone please explain this process in layman's terms please?


File permissions in /var/www not changing

For some reason I can't change the file permissions of my var/www folder or anything else inside it. I've tried using gksu-nautilus to change the permissions but it doesn't work. When I open the properties window, and select a different level of permission for myself, it instantly switches back to the previous setting.  Any idea of how to fix this?


Regular Expression to exclude a particular filename in Java

I have filename as Day=17_$folder$,trying to exclude this particular file given in a regular expression  in Java. I have tried [^Day=17_$folder$]


Put section number in reference to subsection, but not in title

The below code produces    I'm wondering if it's possible to have the subsections show up as i, ii, etc, on the subsection title (because it's clear which section they're in when they show up), but as 1.i, 1.ii, etc. when I refer to them. (So that the reader can distinguish between 1.i and 2.i, for instance.)  Possibilities:   Just enter the section number manually when I refer to it. This is worst, since it isn't robust to renumbering the sections. Find a way to store the section number of Fruit Section, and use that when I make the reference. This is OK, but not robust to changing which section Apples is a part of. Inside Apples, get the current section somehow, store it, and then refer to it. This would be robust, but would have to be done every time I want to make such a reference. Better once-and-for-all solution to this problem.   .  \documentclass{article} \usepackage{hyperref} \renewcommand\thesubsection{\roman{subsection}} \begin{document} \section{Fruit Section} \subsection{Apples} \label{Apples-subsec}  \subsection{Bananas} \label{Bananas-subsec} \section{Vegetable Section} \subsection{Kale} \section{Conclusion}  As we recall from sections \ref{Apples-subsec} and \ref{Bananas-subsec}, apples and bananas are healthy to eat. \end{document}


How do I split the output from mysqldump into smaller files?

I need to move entire tables from one MySQL database to another. I don't have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql files smaller than 2MB. But the compressed output from a mysqldump of the first database's tables is larger than 10MB.  Is there a way to split the output from mysqldump into smaller files? I cannot use split(1) since I cannot cat(1) the files back on the remote server.  Or is there another solution I have missed?  Edit  The --extended-insert=FALSE option to mysqldump suggested by the first poster yields a .sql file that can then be split into importable files, provided that split(1) is called with a suitable --lines option. By trial and error I found that bzip2 compresses the .sql files by a factor of 20, so I needed to figure out how many lines of sql code correspond roughly to 40MB.


I am generating my PDF document (thesis) with LuaLaTeX. Almost all of my figures are made with the  package and do not exceed 40 kB. The document is 178 pages. The size of this document is 34 MB. It is too large to upload to our library server.  Even if I exclude all non-PDF images the size does not decrease much. It decreased on the size of png images I'm using.  Is there a way to reduce the quality of the document and compress it? For example: compress all figures...


Why can't we visualize Higher dimensions greater than 3? Is it just because the dimensions doesn't exist (Certainly I know that space-time is four dimensional) or any other physical reasons.


How to show that $x_n$ is bounded by $2$ and converges?

Let $$x_n=\sqrt{1+\sqrt{2+\sqrt{3+\dots+\sqrt{n}}}}$$ Show that $x_n<x_{n+1}$ and $x_{n+1}^2\le 1+\sqrt{2}x_n$. Hence show that $x_n$ is bounded by $2$ and converges.   Trials:I can show that $x_n<x_{n+1}$ and $$x_{n+1}^2= 1+\sqrt{2+\sqrt{3+\dots+\sqrt{n}}}\\=1+\sqrt 2[1+\sqrt{3/4+\dots+\sqrt{n/2^{n-1}}}]\ \\\le1+\sqrt 2 x_n$$ Then I can't show $x_n$ is bounded by $2$ and converges. Please help.


How do I run scripts from a custom button in panel?

I've created a python script that creates a specific folder structure for my projects, and also saves the first instance of my project. I want this script to be run by clicking on a custom button in the render panel. Since this is to be done at the start of new projects I want this button to be part of the default startup in Blender. However, I can't find the information to do these things.  Here is my code, saved in a file called "EinarOptions.py":  import bpy  class EinarOptions(bpy.types.Panel):     """Creates a Panel in the render context of the properties editor"""     bl_label = "Einar options"     bl_idname = "RENDER_PT_layout"     bl_space_type = 'PROPERTIES'     bl_region_type = 'WINDOW'     bl_context = "render"      def draw(self, context):         layout = self.layout          # Different sizes in a row         layout.label(text="Different button sizes:")         row = layout.row()         row.operator("render.render")  def register():     bpy.utils.register_class(EinarOptions)  def unregister():     bpy.utils.unregister_class(EinarOptions)  if __name__ == "__main__":     register()   This creates a panel in Blender:    After having read through a lot of tutorials and getting lost in the documentation, I still got no clue. How do I create a button(similar to the one I have now, which says 'Render') that executes my script when pressed?  The script to be run is called "CreateFolderStructure.py" and is stored on my harddrive.


How does the unit circle work for trigonometric ratios of obtuse angles? I know that the x coordinate is cos(θ) and the y coordinate is sin(θ). But I understand these in context of only acute angles? I don't understand why the unit circle definition works for other than acute angles? Somebody please provide me some good intuition.


javascript: determining percent of loading of a file

i see some javascript/jQuery project that add a progress bar to webpage, for displaying body elements loading percentage, but i want to display loading bar of one big file.  is it possible for javascript to detect how much percent of a file is loaded?  note: i can't split the file to multiple pieces!


How to properly redirect all request to non-www inside nginx with reverse proxy

I have a react website served by reverse proxy inside nginx. On top of that, I have SSL. Certbot is handling redirects from http to https. I would also like to setup redirects from www to non-www. I am wondering what is the correct way to do this?  My config looks like this:  server {     server_name example.com www.example.com;     location / {         proxy_pass http://localhost:8000;         proxy_http_version 1.1;         proxy_set_header Upgrade $http_upgrade;         proxy_set_header Connection 'upgrade';         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;         proxy_set_header X-Forwarded-Proto http;         proxy_set_header X-Forwarded-For $remote_addr;         proxy_set_header X-Forwarded-Host $remote_addr;         proxy_cache_bypass $http_upgrade;         proxy_hide_header X-Powered-By;         add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;         add_header X-Frame-Options "SAMEORIGIN" always;         add_header X-XSS-Protection "1; mode=block" always;         add_header X-Content-Type-Options "nosniff" always;         add_header Referrer-Policy "origin-when-cross-origin" always;     }     error_page 502 /index.html;     location /index.html {         root /var/www/subdomains/service;     }      listen 443 ssl; # managed by Certbot     ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot     ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot }  server {     if ($host = example.com) {         return 301 https://$host$request_uri;     } # managed by Certbot      if ($host = www.example.com) {         return 301 https://example.com$request_uri;     }      server_name example.com;     listen 80;     return 404; # managed by Certbot }   Note that both of the pages (www and non-www) are currently working. I just want to avoid duplicate links, so I would only like the non-www version.


Creating grid to divide large map into smaller sections using ArcGIS for Desktop?

I have a map of small remnants of forest along creeks for an entire county in California. I need to divide the whole map into equal sections so I can print it so you can actually see the sections of forest. I'd like a map with a grid which I can look at, and then look at a zoomed in map of (for example) section A1.  I've tried the Grids and Graticules wizard, which gives me a grid for the map, but when I zoom, the grid remains the same. I want the grid sections to be georeferenced with the map, so when I zoom in, the grid zooms also.   I'm using ArcMap 10.1.


Pinhole camera: How "How to See Without Your Glasses" works?

If you see through small enough aperture, you can see things without glasses.   How does this trick work?


Threshold frequency in photoelectric effect

If I take a metal sample and I throw light on it, and the emitted photons have frequency less than the threshold frequency required to make an electron come out of that particular metal. So the electron won't come out and photoelectric effect will not be observed.  My doubt is that if the electron absorbs the photon having energy less than the work function of the metal, it must gain some kinetic energy and before it gets hit by another atom or electron, it again gets hit by another photon and in this way many photons are absorbed by it, increasing its kinetic energy till it becomes greater than the work function of the metal, and finally the electron should come out. Why this does not happen? Why there is a minimum frequency of photons to observe the photoelectric effect?


how can I extract/harvest/export all sender addresses from outlook 2003?

I'd like to build a list of all the people who email me but can't figure out a way of doing it.  Tools such as Xobni offer a list, but it is not possible to select the data from the 'analytics'.  How can I harvest this data?  EDIT: Needs to be recursive from root inbox folder


How to install Ubuntu 18.04 alongside Windows 10?  I have tried different process to install Ubuntu 18.04 in my PC in dual boot mode alongside Windows 10. But it turned out that most of the process didn't worked for my PC. My PC's configuration is 500 HDD, 3.5GHz Intel processor, 4GB RAM, 1GB Intel graphics & supports both BIOS & UEFI.


What is wrong with questions about favorite things on Stack Overflow?

What is with the ban against Stack Overflow questions concerning preferences? I understand the focus on facts, but information regarding preferences can be very valuable.  Some examples:          These were all closed as "not constructive," except for the last which was closed as "primarily opinion-based." So why the ban?  If Stack Overflow isn't the right place, is there a more appropriate Stack Exchange community for questions about preferences?


I have a circuit where I am using triacs to switch home appliances like fan, tube light etc. This is the circuit I am using:    (TRIAC1, TRIAC2, TRIAC3 come from arduino GPIO pins)  First load is a fan with a capacitor based regulator. (Sorry for showing fan and tubelight as a resistor). Speed is controlled by rotating a knob which changes the series capacitance. Lower capacitance means lower fan speed.   As seen from the circuit, I didn't use a snubber because I thought using a snubberless triac will do the job, however the following incident made me rethink about the situation:  1) When Bulb and tubelight are off and fan is ON, and I try to regulate the fan speed by rotating the knob, sometimes there is a flicker in the tubelight and bulb. Flicker is very short lived but still visible. Flicker doesn't happen at higher speed. It usually happens at lower speed levels. For ex - There are these levels: OFF, 1, 2, 3, 4, 5 (5 means direct connection to Live). When I switch speed from 2 to 1 (or vice versa), I see a short lived flicker in the tubelight.  2) If the fan is running at low speeds - 1 and 2, and I try to turn the fan OFF by pulling the GPIO (TRIAC1) LOW, the fan won't turn OFF. Instead it produces humming sound and continues to rotate at a lower speed which indicates partial turn ON of triac.  Now in order to fix this, I am planning to use a snubber. I read a few articles and this is the circuit I could come up with:    Rs and Cs are usually mentioned as 39 ohms and 0.01 uF respectively. However I have a few questions:  1) Is my assumption of spurious triggering correct? If yes, will the proposed circuit improve the behavior?  2) Usually snubber design for inductive load shows a pure inductor as the load and a parallel RC circuit as the snubber. Here, the load is LC due to the presence of capacitor based regulator. Should there be a modification in snubber circuit due to this?  Here is the fan regulator I am talking about:    EDIT:   Fixed the snubber circuit.  Added the image of fan regulator.  UPDATE:   Tried the snubber. It didn't work. I am assuming some sort of resonance when the regulator is kept at low speeds. This resonance might be preventing the triac from turning off completely.


How to move and overwrite subdirectories (and files) to parent directory?

I have a ton of files and dirs in a subdirectory I want to move to the parent directory. There are already some files and dirs in the target directory which need to be overwritten. Files that are only present in the target should be left untouched. Can I force mvto do that? It (mv * ..) complains  mv: cannot move `xyz' to `../xyz': Directory not empty   What am I missing?


To copy and paste a line i use the following method  C-a - beginning of line  #save the line to kill-ring using kill-line(this is faster than marking, # move to end of line and C-w) C-k - kill-line C-/ - undo kill-line   # move point to required line C-p or C-n or C-s (search for the nearest line where the paste must be done)  C-y # paste the line   Is there more efficent method than this. In vim just type yy, navigate and p does the job


I am very fond of the fonts M.R.C. van Dongen used to typeset his book LaTeX and Friends. I believe it is the same as Hatcher uses for his books (for instance Algebraic Topology), and also the one in which the Princeton Mathematical Companion is written. It is called FF Nexus, and it costs 200$. Here's what  looks like.  Is there a free alternative, that contains very similar fonts?


What is the number of automorphisms (including identity) for permutation group $S_3$ on 3 letters?  I believe the answer for this is 6. As we can write the group elements as below   (a)(b)(C) (ab)(c) (ac)(b) (bc)(a) (abc) (bac)   Can we generalize that for any $S_n$ onto $n$ the number of automorphisms will be $n!$ Also I cannot find this anywhere in my text, can we have a permutation $S_n$ onto $m$ where $n\neq m$? (for eg: is it possible to have a permutation group say $S_5$ on say 2 elements?)


tikz: wires not connecting up to the nodes

I don't know why the wires are not connecting upto the nodes (a) and (b). Can someone please help? Thanks in advance.  \begin{center}   \begin{tikzpicture}[circuit logic US]     % The two gates     \node[xor gate, inputs={nn}] (xor) at (0,1) {};     \node[and gate, inputs={nn}] (and) at (0,0) {};      % XOR input wires     \draw (xor.input 1) --++(left:1cm);     \draw (xor.input 2) --++(left:1cm);      % Drawing the nodes to be connected with the AND gate inputs     \draw (xor.input 1) node[left=4mm](a) {};     \draw[fill] (a) circle (0.02);     \draw (xor.input 2) node[left=7mm](b) {};     \draw[fill] (b) circle (0.02);      \draw (and.input 1) -| (a);     \draw (and.input 2) -| (b);   \end{tikzpicture} \end{center}


Doubly periodic entire function with periods that are linearly independent over $\mathbb{Q}$ is constant.

Question  Let $f$ be entire and suppose there exists $\lambda_1,\lambda_2 \in \mathbb{C}$ linearly independent over $\mathbb{Q}$ such that $f(z+\lambda_1)=f(z)=f(z+\lambda_2)$. Then $f$ is constant.  Attempt  A similar question was asked  but I don't think the answer is satisfactory. I want to (hopefully) show that for any $\epsilon>0$ I can find integers $m_1,m_2$ such that $|m_1\lambda_1+m_2\lambda_2|<\epsilon$. Then I will be able prove the result as follows:  Let $z_0\in \mathbb{C}$. Then $g(z)=f(z)-z_0$ has a zero at $z_0$ and this zero must be isolated. Consequently we can find an $\epsilon>0$ such that the epsilon ball about $z_0$ contains only one zero ($z_0$) of $g(z)$. However, by the above, we can find $m_1,m_2$ so that $|m_1\lambda_1+m_2\lambda_2|<\epsilon$ and by assumption $g(z_0+m_1\lambda_1+m_2\lambda_2)=g(z_0)=0$ which is only possible if $f$ had been constant.


Is there a word for a style of art that is a great example of its own style? And a word that can be applied to its artist?

I was mainly thinking about musical artists whose songs have style that is very recognizable as an "artists name" song or as a specific genres song. Not a super pressing question but just something that I am curious about.


Is there a word for words with specific meaning?

A word that group words that give the impression "There is a word for that!" and "Mot juste" is what I inquire. I can't find any term for it, and my search of the list only leads to a website like    A word for a list of words such as cajole and desiderium. I am not asking about words that have specific meaning, I am asking whether those words have a name that group them together.  Another way to see it, some words exist in dictionaries but not in thesaurus, what those words are named is my question.


How to formally prove that $\gcd(a,1) = 1$ when $a \in Z$

I was trying to prove that $$\gcd(2a+1,9a+4) = 1 , a\in Z$$ My proof went like this: $$ (9a+4) = 4(2a+1) + a$$ $$ (2a+1) = 2(a) + 1 $$ $$ \Rightarrow \gcd(9a+4,2a+1) = \gcd(2a+1,a)=\gcd(a,1) = 1$$ The last line of reasoning seems intuitive for me; The greatest common divisor of any integer with 1 is definitely one because the only divisor of 1 is itself. However, the question of how to prove it formally arose. Thanks for any suggestions!


Six particles at the corners of a regular hexagon of side $a$ move at a constant speed $v$

Each particle maintains a direction towards the particle at the next corner. Calculate the time the particles will take to meet each other.  When the particles move with same speed,how can they ever meet each other?Will someone clarify me?