For an ideal OpAmp the voltages at the inputs are said to be of equal value and the currents 0, however, for we also know that $$V_\text{out}=A(V_p-V_n)$$ but if the voltages are the same the output should always be 0!  I know that what I'm saying is wrong, but I don't know where the loophole is, and I can't find it anywhere.

Here is what I know about the Ideal Op-Amp.   The open loop voltage gain is infinite The output voltage is given by the following \$v_o = A(v_+ - v_-)\$ Only with a negative feedback loop is \$ v_+ = v_-\$   My query is with regards to the negative feedback loop as shown below:   My queries are as follows:   Clearly, \$v_o = A(v_+ - v_-)\$ should still apply and since \$ v_+ = v_-\$, shouldn't the output voltage \$ v_o = 0 \$ always? Since \$v_o = A(v_+ - v_-)\$ should still apply, is A still the open-loop voltage gain which for an ideal op-amp is infinity. Thus, would the output voltage always be infinity?


I’m having trouble with the %RANDOM% environment variable in the following command:  FOR /l %%A in (0,1,30) do set /a results=1600 + %RANDOM% %% (1900 - 1600 + 1) && echo %%A--!results!   I expect this output:  0--1656 1--1743 2--1629 3--1887 …   But I’m getting this:  0--1656 1--1656 2--1656 3--1656 …   The %RANDOM% variable is supposed to return a random number, but it’s giving the same number. What’s the problem and how can I fix it?

I have two examples of very simple batch files:  Assigning a value to a variable:  @echo off set FOO=1 echo FOO: %FOO% pause echo on   Which, as expected, results in:  FOO: 1  Press any key to continue . . .   However, if I place the same two lines inside an IF NOT DEFINED block:  @echo off IF NOT DEFINED BAR (     set FOO=1     echo FOO: %FOO% ) pause echo on   This unexpectedly results in:  FOO:  Press any key to continue . . .   This shouldn't have anything to do with the IF, clearly the block is being executed.  If I define BAR above the if, only the text from the PAUSE command is displayed, as expected.    What gives?    Follow up question: Is there any way to enable delayed expansion without setlocal?   If I were to call this simple example batch file from inside another, the example sets FOO, but only LOCALLY.   For example:   testcaller.bat   @call test.bat  @echo FOO: %FOO%  @pause    test.bat   @setlocal EnableDelayedExpansion  @IF NOT DEFINED BAR (      @set FOO=1      @echo FOO: !FOO!  )    This displays:   FOO: 1  FOO:  Press any key to continue . . .    In this case, it appears that I have to enable delayed expansion in the CALLER, which may be a hassle.


How can I add a gutter margin (different for odd and even pages) to a PDF document so that there is room to hole-punch it after I print it? I am familiar with Ghostscript and the Linux Terminal but have been unable to find commands to fulfil this specific need.  Currently some content is too close to the edge. I could use scaling in the print dialog box to create room for the binding, but this would reduce the size more than absolutely necessary and leave a gap on both sides of the page.  A solution that simply adds an extra centimetre to either side of the page (left for odd pages and right for even) would be adequate here since I can then choose "scale to fit" feature when I print it.  My question was initially marked as a duplicate of , but neither answer solves my problem. I tried using both Briss and PDF Scissors, but they are PDF cropping tools and can only make the pages smaller, not larger. My question is also different because I need to resize differently on odd and even pages. The asker of the original question did not have this requirement.

I would like to split pages in pdf so that each page would be divided into 2 pages ( e.g. form 100 pages I would go into 200 but smaller - exactly half size).  I need this to read pdfs on my ebook reader.  Anybody knows how can this be done ?


I always feel more afraid in the dark than in light conditions. Is this a common phenomenon in all the people? Does it have biological underpinnings?

For example, horror movies appear to be scarier when viewed at night than during broad day light.  Does light have any role in this phenomenon?   Are there changes in hormones at night versus during the day that makes fear stronger?


I am making a class, class numToBin <T>, and I need to make sure that T is a numeric value (Ex., Float, Double, Int, Long, UInt, Ulong, byte, short, BigInteger).  I have seen a lot of posts asking the same question, but they are all a couple of years old.  My question is:  Have there been any changes to the language to allow it now?  Currently I have:  class numToBin <T>     where T : struct, IEquatable<T>, IFormattable, IComparable, IComparable<T>   But something like T a = 0; doesn't work.

Can anyone tell me if there is a way with generics to limit a generic type argument T to only:   Int16 Int32 Int64 UInt16 UInt32 UInt64   I'm aware of the where keyword, but can't find an interface for only these types,  Something like:  static bool IntegerFunction<T>(T value) where T : INumeric


I am creating a 2D game for mobile phones. It's in pixel style. Now I want the player to be able to create his own character based on givin items like: Hair, Eyes, Skin, Clothes, etc. (like in Starbound for example)  What is the best way to achive that. Should I create everything as a single texture with all frames of the animation of it (like a moving hair and clothes) and after the creation of the character, put those together to a single sprite with the giving items and frames? Or do you guys have any better ideas?  I am thankfull for every piece of help!  EDIT  Actually I did not started programming the character generation yet. I am creating a RPG and want the players to be able to create individual characters (also with armor contents). Just kind a like in Starbound.   What I want from you guys are the best ways to realize such a system. With best I mean fast, simple and safe.

I'm want to create avatar animations (sprites) for a browser-based MMORPG. The player is able to customize the character, and the content changes often (new weapons, armors, and so on). How can I structurally manage the creation and updating of all the sprite sheets?  The amount of different combinations are big enough that simply generating all permutations won't work.  This can be server- or client-based, but if it works entirely on the client, please keep it to just HTML5/CSS/Canvas/WebGL.


I factory reset my ps4 now the controller wont pair through the usb intial set up or in safe mode. My computer will still recognize it and I can pair it with my phone but not the ps4 system. When trying to pairnive used multiple cords and have used the reset button on the controller and a hard reset on the system. The controller just blinks white when trying to pair never connects to the system

I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help?


Written with .          Defining for $A,B \subseteq \Bbb R$, $A+B = \{ a+b : a \in A,b \in B \}$. If A and B are two bounded closed subsets, must A+B be closed?     The question arose from the previous case where A and B were not given to be bounded and the answer came false with the example of $A = \{ 1,2,...\}\  and \ B = \{ 1-1,1-(1/2),1 - (1/3),... \}$      However, how do we prove/counter in this case?    EDIT : -  I had written 'bounded' instead of 'closed'    EDIT 2 : - I saw that there are proofs available using properties of arbitrary metric spaces but since I haven't studied them, they are beyond me. I would like to know if a proof is possible using the properties of $\Bbb R$

Let $A,B$ two non-empty compact subsets of a normed space X. How can we prove that the set $S=A+B=\{a+b : a \in A, b \in B\}$ is compact?  Here's my reasoning:  Let $\Omega = \{\Omega_1, \Omega_2,…\}$ be an open cover of $S$. $\Omega$ induces two open cover $X,Y$ respectively of $A,B$, where   $X_i = \{a \in A : a+b \in \Omega_i~~for~some~b\}$   $Y_i = \{b \in B : a+b \in \Omega_i~~for~some~a\}$  in practice $\Omega_i = X_i + Y_i$.  Now my idea is build a finite subcover this way: consider a finite subcover $X_F = \{X_j : j \in J\}$ where $J$ is a finite set of indices. If $Y_F = \{Y_j : j \in J\}$ is a finite subcover of $B$, then we are done as $\{\Omega_j : j \in J\}$ is a subcover of $\Omega$. Otherwise we can keep adding indexes to set $J$ until $Y_F$ becomes a finite subcover of $B$.   This is not too formal but I don't want to make a simple question unreadable, I think the idea should be clear.   Does this works? Is there a better/easier way to get the same result?


How can I draw a big {} as below shape:  I tried by \big{ but it does not solve.

How to type big \{ and \} braces in this sentence:  $$P_{n,k}=\{\{x,y\}\in [X]^2: n=\min \{m\in \omega: B_m(x)\cap B_m(y)=\emptyset\}; (x,y)\notin G_k\}$$   Could somebody help me?


i'm trying to render a frame and everything looks good besides the upper frame edge that makes the blindfolds window just get cut mid-way.  Anyone have any idea why is this happening?  i've attached a viewport and rendered image.  thanks in advance!

I started to work with EEVEE short time ago and I was amazed by the capabilities of this engine. However, I noticed something strange when I was rendering some tests. Some objects/reflections/shadows dissapear when they're off canvas. I imagine that maybe this is for save memory data, but it can be not suitable to some projects. To make my point graphical, I made a simple scene with simple objects. The main object is the sphere with a mirror-like shader. Out of focus there are different objects with different shaders. A yellow cone, a blue cylinder and a white cube light. But surprisingly, those objects dissapear when the composition is rendered. See the rendered animation below:  Notice that the blue cylinder is not even showing at all in the final render. And the blooming effect from the light cube also dies. I would like to improve this bahaviour and render the objects that are still out of canvas using EEVEE. Do I missing something like memory configuration or reflection/shadow tweaks? Is this caused by the EEVEE engine or by my GPU config (GTX1060)? Thank you in advance!


I know that we can only read voltage across a capacitor if it's two pins are connected to the voltmeter or can't talk about any potential difference between totally different systems if they do not have a common ground. But as I think about it more, I started getting confused and can not understand the physical reason why this is the case. Let me introduce a case;         – Schematic created using  First I charge my capacitor via battery. Numbers are trivial. Then;         Then I measured the voltage to be sure that its charged. After that;         Than I connected the negative probe to any universal ground(earth, a big copper plate etc.) and from common knowledge I know that I could not measure any voltages but I could not understand the physical reason of why. If voltmeter is measuring the current across its probes than why the charge carriers do not flow from the capacitor plates to ground? If voltmeter measures the electric field like an electroscope than why a plate with charge carriers and a ground do not create an electric field? Thanks for reading and sorry for trivial question.

I'm a bit confused about the concept of ground, and perhaps voltage as well, particularly when trying to analyze a circuit. When I learned about Ohm's law in grade school, I learned how to apply the law to calculate current, voltage, and resistance of simple circuits.   For instance, if we were given the following circuit:    We would be could be asked to calculate the current passing through the circuit. At the time, I'd simply compute (based on the rules given) 1.5V/1Ohms=1.5A.  Later on, however, I learned that the reason the voltage of the resistor would be 1.5V is because voltage is really the difference in potential between two points, and that the difference of the voltage across the battery would be the same as that of the resistor (correct me if I'm mistaken), or 1.5V. I got confused, however, after the introduction of the concept of ground.   The first time I tried to do the current calculation for a circuit similar to the previous circuit on a simulator, the program complained about not having a ground and "floating voltage sources". After a bit of searching, I learned that circuits need ground as a reference point or for safety reasons. It was mentioned in one explanation that one can pick any node for ground, although it's customary to design circuits so there is a "easy place" to pick ground.   Thus for this circuit    I picked ground at the bottom, but would it be okay to pick ground between the 7 ohm and 2 ohm resistor - or any other place? And what would be the difference when analyzing the circuit?  I've read that there are 3 typical ground symbols with different meanings - chassis ground, earth ground, and signal ground. A lot of circuits I've seen used in exercises either use earth ground or signal ground. What purpose is there in using earth ground? What is the signal ground connected to?  Another question: since the ground is at unknown potential, wouldn't there be current flowing to or from ground to the circuit? From what I've read we treat the ground as 0V, but wouldn't there be some sort of effect because of a difference in potential of the circuit and ground? Would the effect be different depending on what ground was used?  Finally: In nodal analysis, one customarily picks a ground at the negative terminal of the battery. However, when there are multiple voltage sources, some of them are "floating". What meaning does the voltage of a floating voltage source have?


I've dual booted Windows 7 and Ubuntu on my computer and I'm having trouble uninstalling Ubuntu.  I don't remember how I installed it but I've ruled some things out.  Most tutorials tell me to delete the disk partition through disk management in Windows, but when I check there, there's only the Windows partition.  This makes me think that I installed using Wubi, but when I go to uninstall Ubuntu as a program, its not listed in the programs list.  Anyone have any ideas how to uninstall ubuntu from windows?

I installed Ubuntu (I had already had Windows 8.1) from USB (I still have live Ubuntu on it). Is there a way I can uninstall Ubuntu in a way that my Windows will remain bootable? All the tutorials I have seen say that uninstalling ubuntu will delete GRUB also so I will need a Windows recovery CD to boot into it, but I don't have one. Is there a solution?


In Python, we know that looking up a key in a dictionary takes O(1) run time, but what is the run time to look up in the dictionary.values() ?  dictionary = {'a':[66,77,88], 'b':[99,100]} key = 'a' if key in dictionary: # takes O(1) run time   number = '99' if number in dictionary.values():  # What is the run time here?   Edit #1: The values for the keys could be either lists or sets. Many folks have responded that if the values are lists the run time is O(1).     Will it be O(N) if values are sets?  dictionary = {'a':(66,77,88), 'b':(99,100)} number = '99' if number in dictionary.values():  # What is the run time here?

I have about 10million values that I need to put in some type of look up table, so I was wondering which would be more efficient a list or dict?  I know you can do something like this for both:  if something in dict_of_stuff:     pass   and  if something in list_of_stuff:     pass   My thought is the dict will be faster and more efficient.  Thanks for your help.  EDIT 1  Little more info on what I'm trying to do.  .  I'm making a look up table to see if a value calculated has all ready been calculated.   EDIT 2  Efficiency for look up.  EDIT 3  There are no values assosiated with the value...so would a set be better?


On my iPhone, when WiFi is turned off and I use GPS/Navigation apps, the phone suggests that I should turn on WiFi for improved location accuracy. If I have WiFi turned on and am not connected to a network, this message doesn't appear.  How's the mere turning on of WiFi radio helping estimate my location? I can understand how it works with the network radios (cell towers, triangulation etc.) but how does the WiFi radio help?

I build a simple HTML5 website that takes my location (in latitude-longitude), and simply shows my location in Google maps.  I opened the HTML document with my laptop Asus K53E-B1 and I found that when I connected to a wireless network, it showed almost my precise location (about 100 meter of inaccuracy),  while when I plug in the network cable, and test again, it's a bit Inaccurate. (showed a street 12KM away from me).  Can you explain me why is a wireless network gives more accurate location?  Tested with Google Chrome.


I'm trying to determine if there is a theoretical maximum  rating one player could attain in a closed group of $N$ players (assuming for simplicity that they all start with some rating $c$, such that the total Elo of the system is always $Nc$), and if there is a maximum what that maximum is in terms of $N$ and $c$ (or even if it can be lower bounded in those terms). I believe it's easiest and potentially useful to think of the $N=2$ case first, and see whether there is a maximum difference in rating between two players which could be obtained through their playing successive games. Elo Background In an Elo system, each game scores such that the winner receives 1 point and the loser 0 points, with both players receiving 0.5 points for draws, and the change to a player's Elo rating is based on the difference between their actual score and their expected score, where expected score is calculated as a function of the involved players' relative Elo ratings. More precisely, given Elo ratings $R_A$ and $R_B$, the expected scores in a match between players $A$ and $B$ are given from: \begin{align} &E_A = \frac{1}{1+10^{(R_B-R_A)/400}} \in (0,1)\\  &E_B = \frac{1}{1+10^{(R_A-R_B)/400}} = 1- E_A \end{align} and, given that player $A$'s actual score is $S_A$, Elo ratings are updated (for some positive constant $k$) as: \begin{align} R_A' &= R_A + k(S_A-E_A) \\ R_B' &= R_B -k(S_A-E_A) \end{align} where generally $k=16$. Original Problem Assuming player $A$ wins the game with player $B$, we can express the rating difference after $A$'s victory $d' = R_A' -R_B'$ as a function of their initial rating difference $d = R_A - R_B$: \begin{align} d' &= R_A' -R_B' \\  &= R_A -R_B + 2k(1-E_A) \\ &= d + 2k(E_B) \\ &= d + \frac{2k}{1+10^{d/400}} \end{align} We could then express the difference in rating between players $A$, $B$ after $A$'s winning $n$ games with a recurrence relation: \begin{align} &d_0 = R_A - R_B \\ &d_n = d_{n-1} + \frac{2k}{1+10^{d_{n-1}/400}} \end{align} If $\lim_{n\to \infty}d_n=\infty$ for arbitrary $d_0$ then that would of course imply the maximum Elo score in any group of players is $\infty$. This seems unlikely given that the change between terms of this sequence approaches 0 as $n\to\infty$ (the winner starts to win essentially no Elo as the number of games goes to infinity), though I'm not sure if the Elo change actually approaches 0 fast enough for the series to be convergent. If the series does converge, however, it seems that if we could determine $\lim_{n\to \infty}d_n$ for particular $d_0$, then  we could use it iteratively to calculate the maximum possible Elo in a group of $N$ players with initial ratings $c$ through first calculating how much Elo some given player $A$ is able to pull off another player $B$ (by dividing the limiting term $d_\infty$  with $d_0=c-c=0$ by 2 and adding that amount to player $A$'s rating while subtracting it from $B$'s), and then repeating this for all pairs of players $A$, $B_i$. You could then continue to iteratively maximize among the remaining players $B_i$ into some player $B_j$, and extract from $B_j$ into $A$, but I'm not sure if this iterative process for increasing $A$'s rating would approach any particular limit in terms of $N$ and $c$. I also don't know how one would calculate $\lim_{n\to \infty}d_n$, so I'd would appreciate any help there or a nudge in a better direction if that is very nontrivial/if anyone sees an alternative way to a closed form solution for the maximum Elo rating given arbitrary $N$ and $c$.

I only take two players starting out at 0 Elo and have them play against each other with one player winning all games. Also I consider a pure version of the Elo system without artificially introduced cut-offs (like FIDE's 400 point rule).  The winner is constantly gaining rating while the other player is losing Elo rating. The gain is decreasing because the rating difference of the players increases.  How does (mathematically) the Elo rating scale with the number of games (n) played for large n?


I started the "Under Saarthal" quest a while ago but stopped because I couldn't find the Arch-Mage as the final part of that quest.   Now I'm working on it again but no matter how many times I leave and come back, wait, load previous save files, or wonder aimlessly around the college, the Arch-Mage will not come down from the upstairs door in his quarters. And a key is required to open that door but for me to obtain it, I will receive it after he dies.   I've looked at so many others' similar questions but am not finding an answer.  I've gone back to Saarthal and spoke with Tolfdir. A lot of people were saying that he's either in the courtyard or sitting in a chair in his room, which he isn't. At first I didn't realize it was to that top door because when I have the quest selected, it sends me out of the college and behind it between the college and sky temple ruins. I can't access the area where he is by going through the hall of attainment. I've tried going elsewhere and waiting and sleeping and returning but nothing changes. He doesn't go to bed, he doesn't come out at all. I'm thinking I must have missed something. Someone else wrote that I had to get the scroll first from alftand, I've had that before I reached this problem.

I've finished the Under Sarhaal quest on the PS3, and by finished I mean I'm on the last step:  Talk to the Arch-mage  I have scoured the College, and even gone into the Midden Dark (and out the other side, there's a great shipwreck out there), and I still can't find the arch-mage.  The 'arrow' seems to indicate he's somewhere in the vertical structure around his quarters, but I can't find him there.  I've tried to wait until the middle of the night to see if he comes to bed, but this guy never sleeps.  Where is the Arch-mage?


Could someone explain how to use the lookup tables provided on  with the regular Marching Cubes algorithm?  I'm not even talking about the whole LOD System etc. I actually understand how that is supposed to work and why Transvoxel uses different tables, I just can't seem to figure out what modifications to make to the regular Marching Cubes algorithm to use them.

After wasting over three days of researching on DuckDuckGo/Google, trying to understand  and existing implementation, I come here to clarify the subject for me and made it easier for the next person who wants to implement it.  Here is the  which explains well what the algorithm solves. So now I'm happy to find something that solves my current problem, so I would like to implement it to my code, but the website doesn't explain how to implement it or sharing code (except tables). So I was looking for existing implementation of the transvoxel algorithm:   : Looks great but this solution all-in-one (octree, caching, voxel, etc.) I really tried to understand the transvoxel class into this one, but no. : Looks great too but again, all in one. I tried too to understand, I translated the code from C++ to C#, but no again.   Finding for marching cube was so easy, one class copy&paste, one public function.  So I gave up the idea to use existing implementation. Why not implementing it myself? (Sadly I don't have the skill to fully understand what the paper said, for example the ambiguous case).  The first thing I didn't understand was if transvoxel is a modified marching cube or a seconds layer that modify the work of the marching cube. In the C++ code (second link of the list) the code uses a implementation of marching cube and transvoxelize each border, on the paper they talk about 19x19x19 voxel data on 16x16x16 chunk and about a modified version of marching cube.  So do you guys can explain me how the transvoxel algorithm works and how can I implement it on my existing project?  My existing project is an Unity3D project which uses marching cubes for an infinite world, LOD chunk are ready, the only one thing missing is fixing crack between different LOD level chunk.


If they knew the place was compromised with Snape knowing its location and the Order thinking him a traitor, why didn't someone just remove and recast the Charm? Obviously, we know that he didn't tell the Death Eaters. The idea that how to cast the Charm isn't widely known doesn't hold weight either as someone within the Order cast the Charm on Shell Cottage. Unless they specifically had to learn it for that, but at the same time, the same logic applies, why didn't they just do that for Grimmauld Place?  For that matter, a Fanfic that I read that was released after HBP figured the idea out. Even if it was going on the original logic that if the Secret Keeper (or the caster, can't remember which.) dies, the Charm cancels out. I guess that Hermione was right, Wizards really don't use Logic a lot do they? But I'm surprised that Hermione didn't come up with the idea herself for that matter.

When the Order of the Phoenix fears that Snape will reveal Grimmauld Place to the Death Eaters, they have to evacuate, leaving . Why could they not have cast another Fidelius charm, which would protect them? Surely if you cast another charm, it would hide it from people that already know, since you can hide a house from people that already know (otherwise it'd be useless - surely Voldemort/a Death Eater would have known where James Potter's house was before the Fidelius Charm was set up).


Hi  Thanks to people that responded my first question, but now I’m going to elaborate more about my problem.  So, I switched from canon (EOS 600d) to Sony (a7ii) two weeks ago, I gotta say the transition is quite hard since i used canon for like 1 year.  One thing that is quite problematic on sony is that it always washes out the highlight, as you can see on the first picture, the cloud was supposed to be seen but somehow, sony washed it over and it looks bad, meanwhile on canon, and and also my phone, the highlight is not blown out, it is visible, as you can see on the second picture, it’s just fine.  I did check the settings on my camera, and I believe I don’t change that much from default in both camera, i use manual mode, set the white balance on auto, JPEG, and the rest is all just on default, so I don’t really know what is wrong on sony.  If you guys know what the problem is, than your help is needed, if you need to know about certain settings just tell me and I’ll check the setting.  Thank you. And have a great day everyone

Hai.  I have a question, I switched from Canon to Sony a while ago and I found out that if I shot bright places, like the sky, the cloud that is supposed to be seen clearly, looks like a blown-out highlight (like real crazy), as you can see on my picture.  I have to set a low exposure just so the highlight is not blown out, and it’s only happening on Sony, not on Canon. On Canon the object is visible, but the background (cloud) is still seen all just fine.  Do you guys know what to change on the Sony to get that good look? Is it the setting or the lens? (BTW, I’m using a Sony 35mm f/1.8 lens.)


Here is a sentence I have trouble parsing:     A member of staff objects to their image being used in a particular way.   I cannot find a grammar reference according to such sentence. Is it passive continuous infinitive? But why do we put their image after to?

I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions:     He does not want to destroy his parents' dream of him achieving a Cambridge degree.   I am especially interested in the: dream of him achieving a Cambridge degree.  I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?


Are empty-sets equal to themselves? Is there one universally acepted empty-sets? Or many? And to stipulate on this, are there any axioms by which we can follow such a premise if one is put forward or am I to assert three potential outcomes? That empty sets are equal to themselves, are not equal, or are equal given certain parameters

I have a definition that claims that two sets are equal A = B, if and only if:  $\forall x ( x \in A \leftrightarrow x \in B)$  An empty set contains no elements. If I define the sets:  A = $\emptyset$  B = $\emptyset$  then can I conclude that A $\neq$ B? Since they contain no elements? Or would I have to show that an elements exists in one but not the other? To me it seems that these are not equal, but I'm struggling to wrap my head around this.  Thanks, Paul


I tried to install Ubuntu 20.04 on my Lenovo T14s with Windows 10 on it. I first create some space on the drive by shrinking the windows partition, then disabled secure boot and installed the live iso of Ubuntu on a USB pen with Rufius selecting GPT. I can boot from the usb pen and install Ubuntu from there, selecting 'Install along Windows'. However, when I restart I can only see the classical Grub screen that lists two options: i) Windows Boot Manager and ii) UEFI starting options. Ubuntu is not listed. If I try to repeat the installation process the assistant however recognizes the installed Ubuntu and asks 'Erase and reinstall Ubuntu'. Nothing however changes and the Grub does not detect Linux. What am I doing wrong?

I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition. When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen.  If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu.


I have this little script here: #!/bin/bash  for i in {"$@"} do  echo "fping -g $@" done  fping command in used for scanning purposes. I want to feed it with multiple arguments but when I execute the script it passes all positional parameters at the same time. fping -g 1 2 3 4 fping -g 1 2 3 4 fping -g 1 2 3 4 fping -g 1 2 3 4  My goal is to have it like this : fping -g 1 fping -g 2 fping -g 3 fping -g 4  Could you help?

I would like to write a bash script with unknown amount of arguments.  How can I walk through these arguments and do something with them?  A wrong attempt would look like this:  #!/bin/bash for i in $args; do      echo $i done


lst=[2,5] sum(lst)   This returns 7 as expected  lst[0]   This returns 2 as expected  lst[1]   This returns 5 as expected  sum(lst[0:-1])   why does this return 2 instead of 7??

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


Im using Unity and some application is hanging up. A sub screen from the install printer program. As in I have no idea what program, window. In gnome, and mate, there is the force quit applet. I searched for it in the dash menu and nothing. How do unity users kill arbitrary crashed GUIs?

I have been playing around with Ubuntu installing new themes and and docks. Sometimes during the installation, whole screen just hangs. What is the best way in Ubuntu to Kill a process/application? Anything similar to Ctrl + Alt + Del of windows?


I know that Siri has "code words" which are not directly transcribed but which insert punctuation.   I find it essential to be able to restart or to go back and clear out words which were dictated improperly.  Is there a way to do this? I have tried saying "Delete", "backspace" and "cancel" and a few more, but they are all (properly) just simply getting dictated.

iOS dictation is a great feature, which mostly works both for Siri and for apps supporting an onscreen keyboard.  However: is there a voice command I can use to backspace or delete the last word?  I found a good guide here, but there is no delete command:


I have obtained some parameter estimates and corresponding t-values. How can I use the t-values to say more about the significance of these estimates? For example, if t = \hat{\beta} / s.e.(\beta), then are larger values for t better or worse? What is the estimation error? I am confused in how to interpret their values.  Can someone recommend me a website or book where this is explained?  Thanks!  PS. If in the hypothetical equation Y = aX + e the error e is normally distributed with mean zero and variance (\sigma_e)^2, does that mean that a is normally distributed as well? Because from my understanding one needs a distribution for the parameter in order to apply a significance test, right?

After taking a statistics course and then trying to help fellow students, I noticed one subject that inspires much head-desk banging is interpreting the results of statistical hypothesis tests.  It seems that students easily learn how to perform the calculations required by a given test but get hung up on interpreting the results.  Many computerized tools report test results in terms of "p values" or "t values".  How would you explain the following points to college students taking their first course in statistics:   What does a "p-value" mean in relation to the hypothesis being tested?  Are there cases when one should be looking for a high p-value or a low p-value? What is the relationship between a p-value and a t-value?


On this site, I've not seen a whole lot of very upvoted questions, unlike on other sites.  But in the past couple of days alone at least two questions have been downvoted up to 26 times. I personally took very long to get to even the rep I have now on this site.  Why do you think that is? Is this site really that controversial?

Meta Stack Exchange seems to have different rules and user behavior than the "regular" Stack Exchange sites.  How is it different?    Individual questions answered below:                Related


When I open up the command line and type in git, I get a bunch of completions for arguments of git, like add, commit, merge, and so on.  How do I add this kind of completion to my own apps?  So far, I've been able to specify the first level of completion like this:  $ complete -W "asd asdf" ./test.py  $ ./test.py asd asd asdf   But it tries to keep going after that:  $ ./test.py asdf asd asd asdf   I've tried setting a completion for the second level by running complete -W "lol" "./test.py asd", but that doesn't work.  What's the proper way to set these up? And once I've figured out all of the commands, where do I have to put them? Running a big list of these commands in .bashrc, every time a terminal is opened, doesn't seem too efficient (plus I don't want to mess with users' files if I don't have to).

When I use program like svn and I type in Gnome Terminal:  svn upd   and hit Tab it's autocompleted to:  svn update   Is it possible to do something like that in my custom bash script?


A friend of mine posts on Facebook multiple times a day every day. I made a comment and we had a conversation on one post a few months ago. I almost never comment or interact with this person.  How do I find the conversation we had? Is there a way to search for interactions between two people on one of their posts?  (I wish FB would allow you to just query their DB if its public info. At least query your own activity if nothing else.)

I remember I commented on a friend's post some years back, but I cannot find the post. Also, in our friendship page I have no access to posts where we both interacted.  Given a friend, how can I retrieve all his/her posts where I commented on?  Is it possible that some posts where I commented are now hidden to me?


I updated my xubuntu and after some time, screen became black.  Moving mouse, pressing keyboard keys don't work so I restarted my laptop.  Then I got the following error and cannot boot up.    Please help

Upon trying to upgrade from 10.10 to 11.04 all seemed to go well until the restart. This error message is what comes up:  Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)   How do we fix that?


I split the dataset with   X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)   and the fit   from sklearn.metrics import log_loss clf.fit(X_train, y_train) clf_probs = clf.predict_proba(X_test) score = log_loss(y_test, clf_probs) print(score)   is final submission with   clf.fit(X,y) or clf.fit(X_train,y_train)???

A common technique after training, validating and testing the Machine Learning model of preference is to use the complete dataset, including the testing subset, to train a final model to deploy it on, e.g. a product.      My question is: Is it always for the best to do so? What if the   performance actually deteriorates?   For example, let us assume a case where the model scores around 65% in classifying the testing subset. This could mean that either the model is trained insufficiently OR that the testing subset consists of outliers. In the latter case, training the final model with them would decrease its performance and you find out only after deploying it.   Re-phrasing my initial question:     If you had a one-time demonstration of a model, such as deploying it   on embedded electronics on-board an expensive rocket experiment, would you trust a   model that has been re-trained with the test subset in the final step without being   re-tested on its new performance?


I have been reading  and  about how to insert a binary array into a varbinary, but what if I don't have a byte array ready? What if I am serializing an object instead? So if I have    var Formatter = new BinaryFormatter(); Formatter.Serialize(SerializeStream, NewEmployeeTree);   when I want to serialize into a file, I pass SerializeStream as    var SerializeStream = new FileStream(SelectedPath, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);   but this time I want to serialize into the database. how can I do it?

What is the prefered method for creating a byte array from an input stream?   Here is my current solution with .NET 3.5.   Stream s; byte[] b;  using (BinaryReader br = new BinaryReader(s)) {     b = br.ReadBytes((int)s.Length); }   Is it still a better idea to read and write chunks of the stream?


I'm trying to create a circuit that uses 3.3 and 5v.  I'm thinking about use a 9v battery, a 7805 to get 5v and a LM3940 connected to the 7805 to get 3.3v. But I can use the LD1117 connected direct to battery to get 3.3v. Some sites says that if I do this (9v to 3.3v) the LD1117 can get too hot.  Some sensors that I'm using I can connect directly to the battery.  What is best in terms of consumption?

Sorry if this is a stupid question, but I am mainly working with 5V PIC circuits and now want to integrate a component (nRF24l01+) that needs a 3.3V supply.  As I have a box full of ~7V wall-warts, I normally use a 7805 or similar LDO regulator to power the circuit. Now I want to also get 3.3V without using a separate external supply.  I'm looking for guidance on the "right" way to do this. I think the options are:   Use a voltage divider on the output of my 5V regulator to get 3.3V Use a 3.3V LDO regulator fed directly from the 7V wall-wart   Use the output of the 5V regulator as input to a 3.3V regulator   I can see that all of these would work (would they?) and that option 3 seems to waste least power, but I don't know what gotchas might arise by chaining two regulators like this.  What things do I need to consider when making this choice?


I am using SQL Server 2008 R2.   I am stuck on the following situation and I am wondering how to achieve this.  table1:  ID   Data 1     Alpha 1     Beta 1     Gamma 2     Alpha 2     beta 3     Gamma   taking the data from table one and showing it like this  Table2:  ID   Data 1    Alpha, Beta, Gamma 2    Alpha, beta 3    Gamma

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


I'm writing a basic "Hello world" program in Flask which exits without giving any output. The following is my code:  import flask  app = flask.Flask(__name__)   @app.route("/") def hello():     return "Hello World"   if __name__ == "main":     app.run(debug=True, host='0.0.0.0')     print("test")    I'm getting the following output:  Process finished with exit code 0   But my http server is not starting, I get the following output:  $ curl -I http://127.0.0.1:5000 curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused

Given the following code, what does the if __name__ == "__main__": do?  # Threading example import time, thread  def myfunction(string, sleeptime, lock, *args):     while True:         lock.acquire()         time.sleep(sleeptime)         lock.release()         time.sleep(sleeptime)  if __name__ == "__main__":     lock = thread.allocate_lock()     thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))     thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock))


Question can you carbonate a stout with c02 and then pour it on beer gas(nitrogen) and have the same cascading effect? Or do I have to carbonate with the beer has only

I don't think I explained myself right. I have a c02 canister and I have beer gas. Can I carbonate an Irish stout with the c02 take it off the c02 then took it up to the beer gas and get the same pour effect creamy head or do I have to carbonate the stout with just the beer gas for it to pour like a Guinness with the cascading effect? Sorry for the same question again as I am new and a bit dim at this. Cheers


I would like to run a command in a bash script with arguments however the arguments are conditional. What I would like to achieve is this  command --myflag var="value with space"  In the case above I would like to have --myflag var="value with space" conditional and it also has to have the double-quotes because of the space (among other reasons). So I attempted something like this  if [ $somecondition ]; then   FLAG="--myflag var=\"value with space\"" fi  command $FLAG   When I run the above in debug I can see that is run is this  command --myflag 'var="value' with 'space"'   Notice the single quotes. I dont know why this is but after several attempts at trying this I seem to fail to find a solution,  How would one go about solving this?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I have a database, that due to some silly code issues has grown hugely. It is now sitting at 24GB, most of it is very unnecessary logging information (system generated debug information).  My server lives on a cloud hosted server. I am now sitting with 2 issues because of the file size:   I pay for storage. I am happy to pay for my core business, but paying for silly data seems....silly My backups are now huge also. I do nightly full backups, and then ship them off to an FTP server. This process is taking longer and longer.   Given my issues, is shrinking so bad? I will rebuild all my indexes. I did a dry run, and brought my database down to 6GB.  This guy (who I have always trusted as my SQL guru), says it's bad....mkay

I know shrink is the devil: It reverses page order and is responsible for skin cancer, data fragmentation, and global warming.  The list goes on... That being said, say I have a 100 GB database and I delete 50 GB of data -- not on one table, but a general pruning of old data on a database wide level, covering 90% of the tables -- does this constitute an appropriate use case for shrinking the database?  If not, what are the appropriate steps to take to clean house after removing such a high percentage of data from a database?  I can think of two: Rebuild Indexes and Update Stats. What else?


In my application, I'm using a package that reads a specific type of file (let's say .custom) that describes a house. It has custom types to describe objects (t_doors and t_windows to keep it simple)  This package has a function Reader.GetAll<t_type>() that gives me all the objects of said type in the file, and a Reader.GetItem<t_type>(int itemId) that gives me a specific t_type object with itemId ID.  Now i'm reading a list of required updates from a user-provided file that includes the type, the id and the changes in the form of a List<List<string>>. This part is outside my control.  I need to be able to read the type from the string and pass it to my generic function.  So far I've tried :  var r = new List<string>(){ "t_door", "1", "Color:Red" }; Type T = Type.GetType(r[0]); ModifyProperties<T>(r[1], r[2]);  'T' is a variable but is used like a type.   Same error with:  ModifyProperties<typeof(T)>(r[1], r[2]);   And :  ModifyProperties<T.GetType()>(r[1], r[2]);  Operator '<' cannot be applied to operands of type 'method groups' and 'Type'    Here is the signature of the ModifyProperties function :  public static void ModifyProperties<ObjectTypeToEdit>(string id, string modification) where ObjectTypeToEdit : t_object   So far my workaround has been to use a switch on the type and call the method with the correct type :   switch (r[0]) {     case "t_door":         ModifyProperties<t_door>(r[1], r[2]);         break;     case "t_window":         ModifyProperties<t_window>(r[1], r[2]);         break;     ... }   Which is far from ideal considering there are hundreds of types of objects that could possibly be required.  Also i read something about an Activator class but i'm not sure how it would help.  Same with reflections :  object obj = System.Reflection.Assembly.GetExecutingAssembly().CreateInstance(r[0]);

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I need help so I can get back to GUI: I just pressed Ctrl+Alt+F11 but it took me to a black screen! What do I do?

I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.  The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?


My question is about rings. I know there exists epimorphisms that are not surjective (e.g. the inclusion of $\mathbb{Z}$ in $\mathbb{Q}$), but I want to know if there is an equivalence (on rings, more exactly, commutative rings with unity) between monomorphisms and injective homomorphisms. If there's that equivalence, would you provide an elementary proof? Or some book where I can find them?

Let $R$ and $S$ be rings and $f:R\to S$ a monomorphism. Is $f$ injective?


I've made a research and found out that without dedicated graphics games use max 50% of each processor's core. And it seems to be an artificial limitation. For a  powerful processor 50% is a very big number compared to a powerful graphics card.  So if you could buy 1 car engine vs. 10 motorcycle engines that apply twice the power for half the cost and weight, which would you buy?  I dont need your long lectures about the cpu and gpu architectures You cant answer the simple question why I must buy 10 motorcycles when I already have an universal car (processor) fastened with prediction and loaded only at 50% that can turn into 10 motorcycles and a car. And by the way today motorcycles (gpus) costs almost as much as cars (cpus)  Sure, some people and companies write inefficient code.  There is no problems to make a code which will use 100% of a processor's capacity. So it is rather the artificial limitation than unwilling.

Maybe my question sounds naive because I'm not a game developer but I dont see objective reasons for this. An average cpu is in times more powerful than an average gpu like a few graphics cards in one. The most repeated reasons in internet:  the GPU isn't as busy as the CPU  If the gpu renders the screen how it can not be busy The modern cpus are powerful enough. They are not busy most of time. For example my cpu's usage is 3%.  many GPU's are designed to process graphics commands in parallel, CPU single threads them  What bothers the games to run a few parallel processes even on one cpu core? In my opinion its not correct to tell that the gpu is better if games never use 100% of the cpu's capacity. To be specific they dont use even 50%.  To clarify my question based on responses in the comments:  Did you mean to ask "Why do games render more slowly on the CPU?"  Yes I mean why the cpu cant do the whole work for games when it is underloaded and especially if it does the largest part of work in any case.  You can not compare GPUs and CPUs directly, because they do different things.  What bothers them to do the same things?  The CPU isn't as well suited to performing rendering calculations  I dont understand what "suited" means. And why the cpu is not suitable for primitive tasks aka paint roller.  adding additional parallel processes doesn't improve performance  Then why do you produce multicore graphics cards and multicore central processing units? Just give various parts of one task to a few processes if one process is slow and 100% of the capacity is not used. What bothers to emulate the gpu? Its also unclear for me why when you play without a separate graphics module the games see only one cpu core when you play with the gpu they see and use all the cpu cores. May be some magic.


Is there any way I can disable the stupid rectangle selection mode thing in the Windows command line? I want to select line by line like normal. Currently it's a giant pain when I need to copy things that span multiple lines because the copied text gets lineendings where there shouldn't be any...

Is there a way to select text across lines as a single line in the Windows command prompt? For example, selecting this rectangular selection:    puts two separate lines in the clipboard, even though the lines are contiguous. Doing the same thing in xterm on Linux will put one line on the clipboard, which is what I want. Is there a way to get cmd.exe to behave like xterm?


I have a problem within the reference list. Namely I have some references where the authors first surname letter is Š (\v{S}) and when listing them in the references they appear amid those authors whose surname starts with V instead after those whose surname starts with S and those whose starts with T (it should list R, S, Š, T... and not R, S, T, U, V with Š in between)  Here is my minimal working example:   \documentclass{article}  \usepackage{filecontents}  \begin{filecontents}{AA.bib}  @article{simovic13, Author = {\v{S}imovi\'{c}, H. and Deskar-\v{S}krbi\'{c}, M.}, Journal = {Zbornik radova Ekonomskog fakulteta u Rijeci}, Number = {1}, Pages = {55--78}, Title = {Dynamic effects of fiscal policy and fiscal multipliers in {Croatia}}, Volume = {31}, Year = {2013}}  @misc{tenhofen07, Author = {Tenhofen, J. and Wolff, G. B.}, Note = {Deutsche Bundesbank Discussion Paper Series 1: Economic Studies No. 14. Frankfurt am Main: Deutsche Bundesbank}, Title = {Does anticipation of government spending matter? Evidence from an expectation augmented {VAR}}, Year = {2007}}  @misc{spilimbergo09, Author = {Spilimbergo, A. and Symansky, S. and Schindler, M.}, Note = {IMF Staff Position Note No. 11. Washington: International Monetary Fund}, Title = {Fiscal multipliers}, Year = {2009}}  @misc{ver11, Author = {Verhelst, S.}, Note = {Egmont Paper, No. 47, Brussels: Egmont Institute}, Title = {The Reform of European Economic Governance: Towards a Sustainable Monetary Union?}, Year = {2011}}  @article{vuckovic10, Author = {Vu\v{c}kovi\'{c}, V.}, Journal = {Privredna kretanja i ekonomska politika}, Number = {125}, Pages = {61--88}, Title = {Political Business Cycles: Do They Exist in {Croatia?}}, Volume = {20}, Year = {2010}}  \end{filecontents}   \begin{document} \nocite{*}   \bibliographystyle{plain} % works % \bibliographystyle{alpha} % works ... % \bibliographystyle{apalike} % works \bibliography{AA} \end{document}   I am thankful for any help!!!  Ana

How to write in bibliography (package natbib) letter "a" with two dots above? Specially, I mean the word Birkhäuser.  Is there a general rule or way how to write such umlauts or other accented letters in bibliographies?


I tried to look up info on export and set using man and was surprised to see there is nothing. Is this true, or is this something distribution specific? Why is the page missing?

All shell builtins share the same manual page:  BUILTIN(1)                BSD General Commands Manual               BUILTIN(1)  NAME      builtin, !   etc.   Then there is a little text describing what shell builtins are, and then a list that  looks something like this:    Command       External    csh(1)    sh(1)        !             No          No        Yes        %             No          Yes       No   But if we do man grep we get sections such as   Bugs History See also Standards Description   etc.  Don't shell builtins have their own history, description and arguments like -A or -r? Why isn't that provided in the manual pages and how would I learn to use them correctly and efficiently?


Evaluation of $\displaystyle \lim_{x\to 0}\left\lfloor \frac{x^2}{\sin x\cdot \tan x}\right\rfloor$ where $\lfloor x \rfloor $ represent floor function of $x$.  My Try:: Here $\displaystyle f(x) = \frac{x^2}{\sin x\cdot \tan x}$ is an even function.  So we will calculate for $\displaystyle \lim_{x\to 0^{+}}\left\lfloor \frac{x^2}{\sin x\cdot \tan x}\right\rfloor$  Put $x=0+h$ where $h$ is a small positive quantity, and using series expansion  So limit convert into $\displaystyle \lim_{h\to 0}\left\lfloor \frac{h^2}{\sin h\cdot \tan h}\right\rfloor = \lim_{h\to 0}\left\lfloor \dfrac{h^2}{\left(h-\dfrac{h^3}{3!}+\dfrac{h^5}{5!}- \cdots\right)\cdot \left(h+\dfrac{h^3}{3}+\dfrac{2}{15}h^5+ \cdot\right)}\right\rfloor$  Now how can i solve after that, Help me   Thanks

Find $$\lim_{x\to0}  \left\lfloor\frac{x^2}{\sin x \tan x}\right\rfloor$$ where $\lfloor\cdot\rfloor$ is greatest integer function   I am a high school teacher. One of my students came up to ask this limit.  For $\lfloor\frac{\sin x}{x}\rfloor$, I have used $\sin x > x$ using increasing decreasing functions.  I tried to prove $x^2 > \sin x \tan x$ using increasing /decreasing  function but I am not getting it.


I'm trying to find the maximum value of the function $f(x,y)=(ax+by)^p+x^p$ subject to the constraint $x^p+y^p=1$. Here, $a,b$ and $p$ are constants with $a,b>0$ and $p>1$, and $x,y>0$. I have found the maximum in the special case $p=2$ and tried to use Lagrange multipliers in the general case but couldn't success. Any help?


I am playing Skyrim. My two kids won't move to my new house in Riften. Before, the game gave me the option to tell them that it was time to move, but as soon as I bought the house it doesn't have that option anymore...?

I'm playing Skyrim with Hearthfire and I'm wondering how do I move my family(Wife and Daughter) to my new Manor near Morthal?


I have a spare Nexus 4 phone after recently upgrading to a Nexus 5. I would like to root the device and use it to share a wifi connection. To be clear, I am not talking about the stock android wifi hotspot functionality which shares a mobile 3G/ 4G data connection wirelessly. I would like to connect to a wifi hotspot from the device and then share that wifi connection to other devices, creating a WLAN. So wifi in, wifi out.   Does the Nexus 4 support this? Can it be done without rooting / installing a custom rom? If not, what ROM / apps do people recommend?

Can we use an Android phone as a Wi-Fi repeater?  Imagine situation when you can access a weak Wi-Fi signal from a free hotspot (coffee shop) signal near window, but want to work in the middle of the room. Then we can put the phone on the window sill to spread the signal over the entire home.  Is it feasible?


I have inserted a table, but it is too wide compared to the text and the space between the bottom table and the next paragraph is too small. How could I fix that problem?  \section{Description} \justify In the implementation of the client-space, we must take  into account registered and non-registered customers. Hence,  on the home page of the current website \url{www.test.com}, we will insert two buttons in the upper right corner:  \emph{Registration} and \emph{Login}.  The \emph{Registration} button will be a workflow by which the customer will have to fill each step to place the first  order and create a customer account. This workflow will be done in three steps: \emph{Select Plan \& Preferences}, \emph{Personal Information} and \emph{Review \& Payment}.  \begin{center} \begin{tabular}{ |c|c| } \hline \multirow{1}{*}{\textbf{Select Plan \& Preferences}}  & First step of the workflow asking the customer to choose \\  & the place of picking the order, the number of portions, \\  & add products to his order if necessary and insert the date \\  & and time of picking.\\  \hline \multirow{1}{*}{\textbf{Personal Information}}  & Second step of the workflow asks the customer to enter \\  & information about his/her place of residence, phone number \\    & and first and last name. \\   \hline \multirow{1}{*}{\textbf{Review \& Payment}}  & Last step of the workflow by informing the customer of the \\   & total amount of his order in Canadian dollars, requesting \\   & payment information (Visa, MC, American Express) for the \\   & order and additional information for the creation of a  \\   & customer account. Knowing that the customer account is \\   & created only if the order transaction has been accepted. \\  \hline \end{tabular} \end{center}  The \emph{Login} button will allow the customer to access their client-space once they have placed their first order. The client-space is built so that the customer can be aware of the next order, see the history of the current and the  next menus, see the history of all the orders, see the messages,  modify the profile, place or modify an order and place a request  for information if necessary.

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met:   The table is too wide to fit within the text block or page. That is, I'm exceeding some horizontal restriction. The table is too tall to fit within the text block or page. That is, I'm exceeding some vertical restriction.   What are my options to make this table fit? If it doesn't fit, regardless of my attempts, what other options exist?


What I understand that, in a fixed bias BJT scheme the problem is beta dependence.  Below is an example from a text:    Now I read that this is not a good design. But I will still solve this by assuming we have a constant unchanging beta:  So the aim is to obtain around 7.5V(half-rail) at output when there is no small signal input.  I will use beta and write KVL as follows:  I neglect Vbe since it is small relative to the 7.5V; I also take Ie=Ic=100*Ib.  KVL:  Ib * Rb + Ie * Re = 15V or  Ib * Rb + 100 * Ib * Re = 15V  Since we want 7.5V output it means:  Ib * Rb = Ie * Re = 7.5V this yields:  Rb = 100 * Re  Using the KVL equation with this becomes:  Ib * 100 * Re + Ib * 100 * Re = 15V  Re = (15/200) * (1/Ib)  Re = 7.5/Ie  So if we set Ie = 1mA  Re = 7.5k Ohm  Rb = 750k Ohm  Now above assumes beta is known equal to 100 and is fixed and never changes. And I read it is bad design. Now the reason is given as because it is dependent on beta.  But here what is meant by beta dependence? Does that mean two same models have different beta or does that mean beta is changing by time for the same unit?

hfe of a npn bjt transistor is given by collector current / base current so to calculate hfe you need to know the collector current and base current (which can be set using resistors) . I have to ask , what is the point of doing this ? You can simply calculate the emitter current using Kirchhoff current rule . This is obviously pointless since the transistor acts like a resistor between collector and emitter and unless you know the resistance of the resistor you can't find the current .    I see in transistor datasheets a maximum and minimum value of hfe . This leads me to believe that hfe is a constant and I do not undersand the point of a varying constant ; I think for a single transistor only a single value of hfe exists which must be measured using a multimeter and the collector current is dependent of the base current so the collector current can be measured .     And also , if the collector current is entirely dependent on the base current (Ic = Ib*hfe) then what is the point of the adding a resistor to the collector end of the transistor ? Surely there must be some change in current if a greater resistance is added to the collector end . I checked this with a multimeter with base resistance of 10k ohms and collector resistance of 330 ohms and I found no change in current when I connect the multimeter in common emitter topology (I think , I connect the emitter to ground and tested the current flowing through the collector )     I think there is a big hole in my understand or a big misunderstanding in my not understanding . Please help     Thank you


I am trying to implement a simple HashTable in Java that uses a Linked List for collision resolution, which is pretty easy to do in C, but I don't know how to do it in Java, as you can't use pointers...  First, I know that those structures are already implemented in Java, I'm not planning on using it, just training here...  So I created an element, which is a string and a pointer to the next Element:  public class Element{         private String s;         private Element next;          public Element(String s){             this.s = s;             this.next = null;         }          public void setNext(Element e){             this.next = e;         }          public String getString(){             return this.s;         }          public Element getNext(){             return this.next;         }          @Override         public String toString() {             return "[" + s + "] => ";         }     }   Of course, my HashTable has an array of Element to stock the data:  public class CustomHashTable {     private Element[] data;   Here is my problem:  For example I want to implement a method that adds an element AT THE END of the linked List (I know it would have been simpler and more efficient to insert the element at the beginning of the list, but again, this is only for training purposes). How do I do that without pointer?  Here is my code (which could work if e was a pointer...):  public void add(String s){         int index = hash(s) % data.length;         System.out.println("Adding at index: " + index);         Element e = this.data[index];         while(e != null){             e = e.getNext();         }         e = new Element(s);     }   Thanks!

What's the best way to make a linked list in Java?


I'm fairly new to GIS and I'm having an issue that I hope someone can help me resolve?  Basically, what I'm trying to do is merge features based on a single attribute so that my table no longer displays the duplicates and the features are merged/grouped on screen. Other than going through my attribute table and manually selecting the features before clicking 'merge', the only other way that I could think to do this would be to use 'dissolve'. However, using this tool causes the features that are touching or overlapping to become one entity, which is the opposite to what I want to achieve.  In short, I wish to keep my features as separate entities that are grouped/merged together based on a single attribute whilst removing duplicates from my attribute table - is this possible?  Also, it's worth noting that I have 1000's of features to do this with, so I'm looking for an automated method of some kind?

Using ArcMap (ArcGIS 10.2 for Desktop), is there a way to symbolize two features within the same feature class as one feature without editing the feature and merging them?   For example, if I have a map of the United States (feature class) and all the states are individual features within this feature class and I want to symbolize the United States as a whole without the state divisions, could I do this?   I realize I could remove the outline, but that would also remove the outline from the United States as a whole, and I don't want to do that.   I feel like there is a simple answer for this, that I just have not discovered.


I want to access an IIS server programmatically in C# and I choose to use Microsoft.Web.Configuration.dll. Is there a way to get the current IIS version with this dll or another?

How to detect IIS version using C#?  Update: I meant from a winapp (actually the scenario is developing a custom installer that wants to check the version of the installed IIS to call the appropriate api's)


I asked a question on Super User and some answers didn't answer my question and there were comments asking for further information. I replied to the comments, and I also replied to the answers that didn't answer my question. However, no one responded. Am I allowed to ask a similar question now, but with updated information now that I've done more research? Or would that qualify as a duplicate or violet the rules in some other way?

I asked a question almost as soon as I got my account. I got a few decent answers, but none of them helped solve my problem. The question has long since become buried by newer questions, and there's still no accepted answer. Unfortunately, because there are quite a few answers with votes, to a casual observer it probably looks like the question was answered and I just neglected to mark an answer as accepted, and the system does not consider it "unanswered".  Or, I asked a question that was a bit more difficult to answer. After waiting for some time, I received no answers, little or no comments, and only a few views. The question does show up in the "unanswered" list, but no one has answered my question.  In either case, what's the protocol for me to try to get this question answered?  I see several options:   Post the question a second time, possibly linking to the original, to get attention for the original question. This is encouraged on sites like Reddit.  However, it's probably not appropriate here, since we're encouraged to check for duplicates and not submit a question that's already been asked by someone else, so this probably falls under that heading. Wait for some kind of wiki-like talk page to be implemented, then post a plea on the talk page for input and hope that activity on the talk page bumps up the question. Edit the question, but do nothing further on the Stack Exchange site. If I edit my post to say that I haven't accepted any of the current answers but am looking for more, then the question might get answered eventually by people browsing through old questions to find something they can answer. Post the question on other sites, but link to my original question on Stack Exchange. People will either answer here, or they'll answer on the other site and I can post the accepted answer here myself.  This might be considered spamming, so it might be better to do this without the link.      For more information, see the "" page in the .


I could use some help, aligning images (different sizes) at the middle of a container div. Have made a picture where you can see the div (the gray background) and that the images should align in the middle.    As you see, if the images are different in size, it will not look nice. How can I align all the images in the middle (vertical) so they are inline?  I'm not sure I can use position: absolute because I still want the images to resize itself (height: auto & width: 100%).   Html:

                     Fri fragt!

{{item.Header}}

{{item.Description}}

   CSS:  .item-imagegroup {     text-align: center;     padding-top: 1rem;     height: 350px;     background-color: grey;     vertical-align: middle;  }  .item-imagegroup img {     width: 100%;     height: auto; }  .item-image {     margin-top: 1rem;     margin-bottom: 1rem;      }   Have made the div fixed, so the text under also will be aligned. Not sure if there is a better solution here.  Hope someone can give me some advice.

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


Two months ago, I submitted a (mathematical) paper to a journal. On the journal's website, there is a status concerning the paper, e.g. "Rejected", "Awaiting reviewer selection" and so on.  About two weeks ago, the submitted paper's status was "Awaiting reviewer assignment", and then it changed to "Awaiting reviewer selection". This seems more like a backtrack in terms of statuses rather than a step forward to get the paper reviewed (correct me if I'm wrong).  Now my question is:  What could be the reason for that step back in terms of statuses?  (I always thought that if somebody declines to review the paper for some reason, then it will be rejected?)

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I want to load some html elements from another html document to another. There is no access-origin problem. The elements (<img>) are appearing on the "hosting" html page, but they lose all JS capability - for example, they don't respond on click. Why is it happening and how can I solve it? I tried inserting the .load method at the start\end\inside .ready to no avail.  Thanks in advance.

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


Is the following statement is true/false ?  Is the spaces $S^1$ and $S^2$  with  their topology inherited from $ \mathbb{R}^2$ and $\mathbb{R}^3$ respectively are homeomorphics ?   My thinking  : yes , I think  both are homeomorphics  because both $\mathbb{R}^2 - \{0\} $ and $\mathbb{R}^3-\{0\}$ are connected

I have to prove that the unit circle $S^1$ is not homeomorphic to the sphere $S^2$ using connectedness. Intuitively I know this is true, but I'm not sure how to prove this.. Can someone help me?


Using Rhino 1.7.6, this script works: input = [ { foo: [ "aaa", "bbb", "ccc" ] } ]; var output = []; input.forEach(function (obj) {     obj.foo.forEach(function(s) { output.push(s); }); });  but this one does not: input = [ { foo: [ "aaa", "bbb", "ccc" ] } ]; var output = []; input.forEach(function (obj) {     obj.foo.forEach(output.push); });  instead, throwing this exception on line 4: org.mozilla.javascript.EvaluatorException: Cannot modify a property of a sealed object: 0.  Why? I feel like I'm missing something obvious here...

I'm having some trouble with plain old JavaScript (no frameworks) in referencing my object in a callback function.  function foo(id) {     this.dom = document.getElementById(id);     this.bar = 5;     var self = this;     this.dom.addEventListener("click", self.onclick, false); }  foo.prototype = {     onclick : function() {         this.bar = 7;     } };   Now when I create a new object (after the DOM has loaded, with a span#test)  var x = new foo('test');   The 'this' inside the onclick function points to the span#test and not the foo object.  How do I get a reference to my foo object inside the onclick function?


I have recently falled into an  because I didn't use % when I was supposed to. My question is now: When do I have to use % at the end of the line and when should I leave it out?

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?


1) Eventually, we developed a strategy, grounded in prospect theory and its associated biases like loss-aversion and availability heuristic, which exploited the tendencies of players to fold too often when they did not have money invested and fold too infrequently when they had money invested.   2) Eventually, we developed a strategy, grounded in prospect theory and its associated biases like loss-aversion and availability heuristic, that exploited the tendencies of players to fold too often when they did not have money invested and fold too infrequently when they had money invested.   My question is whether "which" or "that" is appropriate. Which word is better? Word says that "that" cannot follow a comma. Is there any basis to this?

When is it appropriate to use that as opposed to which with relative clauses?


This is the assumption they give me: Let $a, b$ be integers and $d$ a positive integer. Let $d|a$ and $d|b$ so there  there exists $a=dk_1$ and $b=dk_2$.  I can go the backwards direction but I'm going in circles when I go forward. Any hints?

Could someone please help me with this proof?     Suppose that $a, b \in N$, and $d = \gcd(a, b)$. Since $d$ divides $a$, we have $a = de$ for some integer $e,$ and similarly $b = df$ for some integer $f$. Prove that $\gcd(e, f) = 1$.   I understand why it works. Since d is all the common factors of $a$ and $b, e$ and $f$ had no common factors, therefore the $\gcd(e,f) = 1$. But how do I prove this?  Thanks in advance.


Code blocks are frequently used in Markdown as shown in the picture below. I am wondering whether there is a way to display the same thing in LaTeX, namely an auto-sized, shaded, rounded-corner box around a word.  Thank you in advance!

I'm trying to incorporate tikz nodes within running text, but have them align nicely with the text surrounding them. My MWE is:  % !TEX program = xelatex  \documentclass{scrbook}  \usepackage{tikz}  \begin{document}  Some text \tikz \node[rectangle,rounded corners=0.5mm,text=white,fill=black!65,inner sep=2pt] {\scriptsize{}foo}; more text.  \end{document}   This produces:    I would like to shift the node down so that the baseline of "foo" aligns with the baseline of the surrounding text. There's quite a bit of information on aligning relative to other nodes, but really all I need to do is shift it down vertically by a set amount, but I can't figure out how.  What is the easiest/best way for me to shift the entire node down so that baselines align?


Can Somebody  please tell me the difference b/w Hibernation and sleep?And also why sleep is not available on Ubuntu and only Hibernation is available.?

What is the difference between Sleep and Hibernate in Windows Vista?


I've read some articles about translating map units into page units for getting distances in an MXD.  I have not seen a post about how to get the page units programmatically from ArcPy.  Is it possible to in any version of ArcMap 10.x to get the page units programmatically?  DisplayUnits and mapUnits from dataframe do not suffice.  Edit:   only answers how to translate units between map and page units.  It does not answer how to retrieve with arcpy page units (cm, in, etc.). I am not looking for the answer to how to translate units from map distance to page distance and back.  I am simply asking about how to retrieve page units.

I am using ArcPy to export PDFs from my ArcGIS Server application. I want to move a TextElement in my layout view to the centroid of a selected feature. I can get the centroid of the feature, but that's in my projected coordinate system (PCS). I need to convert that point into inches in my layout view. elements = arcpy.mapping.ListLayoutElements(mapDoc, "TEXT_ELEMENT")     for elem in elements:         if elem.name == "SiteText":             elem.elementPositionX = center.X             elem.elementPositionY = center.Y  center.X and center.Y are in a projected coordinate system (PCS), not inches. I know it can be done with ArcObjects, as I've done it in desktop addins using C#. I need to do it from ArcPy and I don't see how. Any ideas?


I've got a test tomorrow, and in one of the practice problems I'm asked to solve     $$\sum_{n=0}^{\infty}\frac{1}{(n+1)2^n} = ?$$   Now, I couldn't figure out a way to transform this in to some sort of mixture of a geometric and arithmetic partial sum, which would allow me to take the limit. Hence I asked WolframAlpha, but they returned the partial sum with something called the "Lerch transcendent", which is definitely not something we needed to learn.  This leaves me to asking here about how to tackle this problem.  Thanks in advance!

What is the sum of $$\sum_{n=0}^{\infty}\frac{1}{2^n(n+1)}$$    I've spent an insane amount of time on this problem. I checked on Wolfram and it gives $ln(4)$, which I assume you get from $2\ln(2)$.   I know that the integral of $\frac{1}{n+1}$ is $\ln(n+1)$. What am I missing?  Thank you!


A friend asked me what are the solutions to this equation. I know for sure it has 2 solutions (thanks to Desmos) - (0.159, 0.159) and (3.146, 3.146).   I have no idea even where to start solving this problem.  My knowledge in mathematics is sadly high school tier so please keep it as simple as possible.  Thanks in advance!

Can someone help me solve the equation $x^2 - 1 = e^x$ ?  I tried taking the natural logarithm of both sides but I don't know where to go from there..  I got:  $\ln(x^2 -1) = x$ But I don't know how to solve it from here. Any help please?


For reasons I won't go into on this thread, I would like to simply backup the home files on my machine using live cd.  I have downloaded a live usb, and am currently running on it now. I cannot boot into Ubuntu, and would like to rather backup my files on my hdd, and do a fresh install thereafter.  My issue is, once I log into live cd, and attempt to recover my files by using:  sudo ecryptfs-recover-private  I get the following error:     INFO: Searching for encrypted private directories (this might take a   while)... find: ‘/proc/1670/task/1670/net’: Invalid argument find:   ‘/proc/1670/net’: Invalid argument find: ‘/proc/2541/task/2541/net’:   Invalid argument find: ‘/proc/2541/net’: Invalid argument find:   ‘/run/user/999/gvfs’: Permission denied   I am able to use nautilus to browse the hdd, and the home user directory I want to copy, however, they are all encrypted.  I have been stuck on this for the whole day now and all I want to do is simply use live cd to browse my files on my hdd (decrypted), copy them to an external hdd, format my machine, and re-install ubuntu.  I am using Ubuntu 17.10, and if you must know, Kali or Katoolin took over the machine and grub. It must have overwritten major system files because it won't even boot. Not worried about that, Just want to be able to get my files from live cd (de-crypted)  Thank you in advanced.

If I have an encrypted external disk (or an internal disk that is not in fstab), I see an entry for it in Nautilus -- with an entry like "X GB Encrypted Volume".  I can click on this volume, and am prompted for a password to decrypt and mount the device.  But how do I do this from the command line?  , and other docs I can find, only refer to GUI methods of decrypting the device; but this won't do in the context of headless servers or SSH logins.  Is there a simple way to get devices to mount to automatic locations in /media just like they would with the GUI?  (I'm not asking about encrypted home directories -- I'm aware of ecryptfs-mount-private.  This question is about additional encrypted volumes.)


I have finally binged Star Trek: TNG and the movie series together so something stuck out for me so I apologize if this had been answered in a novelization or somewhere outside the TV series. In TNG the Federation met the Borg in "Q-Who" but in the beginning of Star Trek Generations Guinan and the rest of the El-Aurian were being sent to Earth (after what I think is the Borg attack on their world). When Guinan is rescued it was  2293, so wouldn't the El-Aurian people have told Starfleet about the Borg 80 years before the start of the series?

In the episode Q Who, at the end, Guinan says that the encounter with the Borg happened before it should have. Picard says "they will be coming" in response to Guinan saying that they are now aware of The Federation's (or humanity's) existence implying this was the Borg's first contact with them as well.  However, earlier in the episode, after Q first sends the enterprise light years away, when scanning a Class M Planet Worf comments that the suspected industrialized civilization that had been there there appeared to have been ripped away from the planet identical to what happened to the outposts along the Neutral Zone in the episode The Neutral Zone.  This made me think that in both cases the perpetrators were the Borg and that the Federation and the Romulans have encountered the Borg already.....just that no one's survived to report back.   If that is the case then didn't the Borg already know about the Federation? If Guinan was expecting the Federation to encounter the Borg much later, was she not aware that the encounter had already happened and they are already seen as they are just raw material for the Borg?


I'm rather new at this so please try to make it simple.    Reading the wikipedia's adjunction Definition via counit–unit in the following link: , I came across the symbol $F\eta$, where $\eta:1_{\cal D}\rightarrow GF$ and $F:\cal D\rightarrow\cal C$ and  $G:\cal C\rightarrow \cal D$; $\eta$ is a natural transformation, $F,G$ are functors and $\cal C, \cal D$ are categories.     This is probably a silly question but what does $F\eta$ represents? is it $F\circ\eta$? In that case, how does it work? in the diagram it says: $F\eta(F)\rightarrow FGF$, but $\eta$'s domain does not contain $F$.. Clarification would be much appreciated.

So I'm doing a project in Category Theory. I fully understand natural transformations and functors, but what does it mean to compose them, for example in the monad axioms where you have something like $GF\eta \circ G\epsilon F = 1$ etc. What exactly is $F\eta$? Thanks


I have this:  #!/bin/bash  wlan=`/sbin/ifconfig wlan0 | grep inet\ addr | wc -l` if [ $wlan -eq 0 ]; then echo wlan0 not connected, connecting... echo sudo ifup wlan0 logger wlan0 reconnected. echo echo wlan0 reconnected. else echo echo wlan0 connected. Nothing to do. fi       Maybe with sleep command i can make this wait a minute, but i've been reading that there is no "goto" command in shell scripting so i don't know how to jump from the end to the start of scripts so it can repeat the steps forever..

I have a few cleanup commands to run for my datacaching scheme.  I was thinking a bash script would be an easy way to check if the full clean up job needed to be run.  But the cache is very time sensitive, so the check script needs to run every second.  What's the best way to do this?  Crontab only goes down to minutes, which makes sense for most applications.  Can I install a bash script as a background service?  On second though, can I just start it with the & command and make it loop forever with a one second sleep?


how to set without user loging inner pages is disable or display message please loging Frist  Ex. I want if user not loging and open abouts us page and display message please loging Frist and don't see any countain. When user login click on about us page see all countain

How can I disable access non registered users? If the user is not logged in I would like to redirect them to a custom registration/login page. Is it possible this using below code as I dont want to use plugin.  <?php if ( is_user_logged_in() ) {     echo 'Welcome, registered user!'; } else {     echo 'Welcome, visitor!'; } ?>   Thanks.


's description of a brachistochrone curve is      the one lying on plane between a point A and a lower point B, where B is not directly below A, on which a bead slides frictionlessly under the influence of a uniform gravitational field to a given end point in the shortest time.   I was wondering if there was a counterpart to the brachistochrone curve, which would be the curve such that, given the aformentionned conditions, a bead would travel from A to B in the longest, finite amount of time.  I assume such curve would be some kind of concave version of the brachistochrone.

Suppose a particle only influenced by gravity is going from point a to point b on an x,y plane. Is there an equation in which the particle takes the longest amount of time, yet still makes it to point b? I know the equation for brachistochrone is the parametric for an inverted cycloid, yet I'm not sure of the opposite. For reference, I am a high school student wanting to try this for a research project. I really only need to know whether this has already been done or not, but attempted solutions are obviously appreciated.


I want to transfer a domain from one  to another, without revealing my contact information.  I use  services.  The registrars tell me I need to disable domain privacy on the originating registrar before initiating the transfer.  This will expose my personal information (address, email address) publicly in Whois.  Unfortunately, I know that there are operations who regularly crawl Whois data and archive it and later allow people to search those historical archives of Whois information, so disabling domain privacy for even a few days or weeks is enough that it might expose my private information forever after.  I don't want that.  Is there any way to transfer a domain name between registrars, without exposing my personal information to the public?

I currently own several domains on which I am using a Whois privacy protection service to hide my personal details. In the near future, I would like to transfer some of these domains to a different registrar.  It has been many years since I last performed domain transfers, so I am no longer knowledgeable about what it involves. However, I have read from several registrars that they ask their customers to disable Whois protection before effecting a domain transfer. Since there are several websites out there that publish archived versions of Whois information (and ask handsome money for the information to be hidden, of course), I would prefer to avoid having such a "gap" in my privacy protection.  I figured that these websites would fetch Whois information mainly when a query is effected through their own website. However, I have found out that at least one of these sites had a copy of the Whois information for a new domain up on their site within hours after I registered it, so they must have some other source (of course I used a Google search to find that out, not their own site). What that tells me is that the time it takes for the domain transfers to go through would be more than enough for these rogue websites to cache my information.  If my new registrar offers privacy protection for domains right from the point of registration as well, is there no way to transfer the domain between the two without reverting to my default Whois information in between?


The expression $\displaystyle (-10)^\frac{1}{3}$ returns errror when calculated with scientific calculator returns an imaginary number. But it's power is $\dfrac{1}{\text{odd number}}$.

Excuse my lack of knowledge and expertise in math,but to me it would came naturally that the cubic root of $-8$ would be $-2$ since $(-2)^3 = -8$.  But when I checked Wolfram Alpha for , real it tells me it doesn't exist.  I came to trust Wolfram Alpha so I thought I'd ask you guys, to explain the sense of that to me.


I don't find a notification when I somehow earn or lost reputation points. But, in the web version I get notified by +2 or +10.   App version: 1.0.95 Device manufacturer: Symphony Device model: V75   OS version: 6.0 (eng.android.1482838674)

The Recent achievements & Recent inbox messages are not functioning in the Android app. They do function in the browser (on Android and otherwise) and in the iPhone app:


I have this function using Python :  def myFunction():     """     function which return 2     """     return 2   And I would know how can I do to display the comment of this function ?  Thank you !

I have the following function:  def my_func():     """My docstring is both funny and informative"""     pass   How do I get access to the docstring?


Here is a sample picture:    Do we call this a cantilevered roof? Or is there a more apt description?

Here are some pictures (see the red arrow):    In the second picture is the platform with the little trees growing on top.    What are they called?


Is there a way to declare a structure with default initalisation values?  I have a header file which defines a structur like this:  typedef struct struc_s {     size_t cost const = 2000;     size_t dmg const = 100;     size_t def const = 100;     size_t hull const = 1500;     size_t shield const = 300;     size_t capacity const = 2;     size_t destruc const = 10; } struc_t;   But this ofcourse doesn't work.  I would also be fine with a way of declaring a var of type struc_t in this header file. But as I remember right. I would have to decalre it in the c file as extern  What I want to do is every where where this header is included i want to be able to do var = struc_s.dmg and and the result should be that var holds the value 100. But I dont want to declare struc_s anywhere else then in the header. Is there a way to archive this behavior?

I want to initialize a struct element, split in declaration and initialization. This is what I have:  typedef struct MY_TYPE {   bool flag;   short int value;   double stuff; } MY_TYPE;  void function(void) {   MY_TYPE a;   ...   a = { true, 15, 0.123 } }   Is this the way to declare and initialize a local variable of MY_TYPE in accordance with C programming language standards (C89, C90, C99, C11, etc.)? Or is there anything better or at least working?  Update I ended up having a static initialization element where I set every subelement according to my needs.


What "is" means in python, if it's actually not equal to "=="?  >>> c = 300 >>> b = 300 >>> b == c True >>> b is c False

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


Is there a way to prove this without using Bertrand's postulate?

How to prove that there exists a prime number between $n$ and $ n!$, for all $ n> 2$?    ( gives a much better bound, but this question is about obtaining a self-contained proof.)


This is a re-hash of a  on  that seems to have grown stale...  I received an un-upvote immediately followed by a "re-upvote". To me this means that the user experimented with the voting system, thinking that they could add another upvote after my answer was updated, or the site loading caused them to prematurely click/upvote when they've already done so in the past. Either way, here's a visual:    and here's a per-time view:    The total reputation for the day should be 230 (200 + 2 accepted answers @ 15 reputation) However, the reputation tally for this day is short by the "un-upvote count" of 10. Un-upvote/re-upvote happened 1 second apart.  This is clearly a bug. Why does an "un-upvote" followed by a re-upvote count as -10 reputation rather than 0?

This can be seen on :  This sequence resulted in a 10 points reputation loss:       12 mins ago    upvote  Javascript load images in canvas with JCanvaScript -10  12 mins ago    unupvote    Javascript load images in canvas with JCanvaScript   (Unupvote is first)  Why? Is that a bug as I imagine?


is there a way to get a list of all the package names I have installed additionally to those that shipped with my copy of Ubuntu?  I didn't find options under the manual files of apt, dpkg and apt-get that seemed like they could do this kind of function.  EDIT to clarify: assuming Ubuntu came with packages a,b,c,d,e,f and I manually installed packages x,y,z, how can I get a list of x,y,z?

I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that from the command line?


By default under "Settings/Sound" I see only: "Headphones - Built-in Audio".  Because of which I am not able to use my laptop speakers.  It is only after I plug in a headphone does the speakers work i.e., under "Settings/Sound" then I see "Speakers Built-in Audio".   But then I am not able to use headphones. So basically, I am never able to use headphones.  == EDIT == I have had this issue on Ubuntu 18.04 also. I thought upgrading might fix the issue. But it didn't.  System: Dell Latitue E6430  OS: Ubuntu 19.04  OS type: 64 Bit  Please suggest how could I fix it.

On my fully updated Ubuntu 18.04.3 system, audio doesn't work unless I switch between outputs. When I boot my PC, the right output (stereo speakers) is already selected by default, but there is no audio from Chromium, Firefox, VLC or any other program. However, the GNOME speakers test works. I can hear "front left" and "front right" from there, but no audio from other programs. In order to fix that, I can simply switch to another audio output (e.g. HDMI out) and then switch back to the stereo speakers, and the audio will magically work. Any idea why? It's not a big deal because it takes a couple of seconds to switch between outputs, but it's kind of annoying to do that after every reboot.


I was on Catalina 10.15.6 on MAcBook Pro yesterday and my fan started making too much noise and the battery was down to 7% from 90% in 20 minutes. I closed all the apps and still it is the case. Later looking at few similar posts I tried the update to 10.15.7 which was popping up on systems. The build is 19H2. The issue has not gone. Tried to connect to apple support but didn't get any useful answers. Can some one please help.

Why are the accountsd and securityd processes using so much CPU on OS X 10.10.3? I am on a Early 2011 Macbook Pro.  What are these processes for? Is it safe to kill them? The machine has only been up 4 hours so has been rebooted recently.