I wrote something like this where I am able to access a variable that is used through pythons in for loop syntax and then being able to access that variable, I was wondering if there is a specific reason to being able to do this  for i in array:     do_something(i)  b = i

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


I have an element, a div with ID homeColumnContain, which I need to set the height of based on one of its absolutely positioned children, an image element with an ID of homePictureID. My code looks like the following:     window.onload = function() {resizeColumns()}; window.onresize = function() {resizeColumns()}; function resizeColumns() {   document.getElementById("homeColumnContain").style.height = document.getElementById("homePictureID").style.height; }

     The code appears to do nothing. I've added listeners for both resizing the window and on window load, as these two events are when the height should be changed. I've tried moving my script around in the HTML document and this didn't work. I don't have a whole lot of formal training with JavaScript, so any feedback as to why this approach doesn't work would be great. I would prefer the solution to not divert to using jQuery.  Edit: I additionally tried some of the responses in the question that this was marked a duplicate of, and none of them solved my issue. Also, if relevant, I have a width defined in my homePictureID as 100%.

How do you get the rendered height of an element?  Let's say you have a <div> element with some content inside. This content inside is going to stretch the height of the <div>. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:    var h = document.getElementById('someDiv').style.height;   Is there a trick for doing this? I am using jQuery if that helps.


I want to write down this idea that I get from Wikipedia: both (James Watson and Francis Crick) thanked the Schroedinger's book for their inspiration.  (More specifically, that page is , and that idea comes from the last sentence of the second paragraph.)  This is what the wiki writes:     each respectively acknowledged the book as a source of inspiration for their initial researches.   Of course that statement has a reference back up. My problem is that I can't figure out how to write that idea down without using the exact one used by the wiki. In my opinion, that sentence is better than any sentence I can think of to rephrase it. If I just use it anyway without quoting it, I'm afraid that I will be plagiarism. If I say that it is from Wikipedia, well, you know the result. My best solution I can find is using this clause:     stated by Wikipedia, with Julian F. Derry (2004) backs up   But it is super awkward. In case I can't think of any better sentence, do you know how should I do?

My question is similar to , but I want to ask about very short, concise wordings. As an example, I read a paper in which the author uses the following sentence:     While in the above description we have specified a local algorithm as   a function that maps local neighbourhoods to local outputs, we could   equally well […]   Now, instead of copying the exact sentence with its grammatical structure, I want to point the reader to this paper and briefly mention one of the conclusions made in this paper. Consider the sentence     author et al. [citation] show that a local algorithm is a function that maps local neighborhoods to local outputs.   The wording "function that maps local neighborhoods to local outputs" is a verbatim copy from the original source. Of course, I could replace this wording with something else that expresses the same, but I find the original citation very concise and I could not come up with a completely different and equally concise sentence.  I always use quotes in addition to a citation to tell the reader that not only the conveyed ideas and concepts, but also the wording, is not my own intellectual achievement. But in this case, one might argue that a person that has understood the ideas described in the original paper might come up with the exact same wording, hence the wording is not a result of the original author's linguistic style, but rather a direct conclusion of the idea he wants to explain.  Is it acceptable to use this wording with a citation and no quotations, or should you always use quotes for verbatim-copies?


What is the proof of $$\sum\limits_{k=1}^n(2k-1)=n^2$$ I understand that it derives from $\sum\limits_{k=1}^nk=\frac{n(n+1)}{2}$ but I miss how to relate that proof for this one.

How to derive this formula?   $$n^2=\sum_{k=1}^n(2k-1).$$


-> i installed ubuntu alongside windows10  -> both are installed in UEFI mode  -> but it automatically start windows10  -> i have separate partition Named as EFI  which contain      EFI\Boot\      EFI\Microsoft\Boot      EFI\ubuntu(some Files)       when i want to start UBUNTU at that time i have to press NOVO(Special Button On Lenovo Laptop for Go in Bios Or Select Boot option) button and select ubuntu   but it is not convenient way because novo button is pressed by only tiny pin   so anyone have any solution which is show me GRUB or bootselection at that time of starting my laptop   thanks in advance

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


Problem  I've recently reached 125 reputation on a Stack Exchange site, (yay!) and I now have the privilege to downvote. So I tried it out, and I lost a reputation point. At first I thought I got downvoted on a post, but then I remembered that when that happens, it's -2. So the I decided to ignore it, but then I found a bad answer to a question, so I decided to downvote it too. Then I lost another reputation point, and that's when I got nervous that there was something wrong. So I resorted to the help center, and it told me that when I downvote, I lose a reputation point. Why is this?

It is incredibly rare that I downvote on this or any other community site. I would rather just ignore the item. However, occasionally some very bad advice is given that is worthy of a downvote. Why should this adversely affect the reputation of the person who downvotes?


Scanner input= new Scanner(System.in);  int x=0;  String [] storage=new String[3];  while (x< 3){    storage[x]= input.nextLine();    x++;  }   This is my code so far. It is able to prompt the user to give the specified number of inputs. I am trying to check to see if the inputs really are being stored to the storage array. The current location of the print statement does not work because the array is "unreachable".

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I am using EasyMock, after debug, I found that the issue is in A.java > while calling getResults(val) from dbconnection object.  dbconnection object is null, my question is how to Mock the objects in super class ?  Here is the simple code:  A.java  public class A {      @Autowired     DataBaseConnection dbconnection;      public Result methodInA(String val)() {         result = new Result();         result = dbconnection.getResults(val);           return result;     }; }   B.java  public class B extends A {      public Fresult getfinalResult(String value) {          // Fresult class contains 'Result' class object and some other variables         Fresult fresult = new Fresult();         // some logic here...and I was able to exeduted this by creating mocks in my test class...             Result result = methodInA(val);          fresult.setResult(result);         return fresult;     }    }   BTest.java  @Before public void setUp(){    A objectA = new A();    dbconnection = createMock( DataBaseConnection.class );    setField( objectA, "dbconnection", dbconnection );    expect( dbconnection.getResults( EasyMock.anyObject( String.class ) ) ).andReturn( 'Dummy Result object' ).anyTimes(); }  @Test public void methodName() {     B classBobject = new B();     replayAll();     Fresult fresult  = classBobject.getfinalResult("some value");     verifyAll();     assertEquals("Somthing", "Somtthing"); }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I wanted to add a list and some code:    the list sometimes becomes bold on editing, but I wrote it correctly. I don't know what to do with code at all because its parser doesn't work properly

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


I have several storage arrays where a significant number of the drives have been powered on between 25,000 - 30,000 hours (2.8 - 3.4 years). These drives have no other issues or errors.   What I want to know: is there a point where drive age alone is a significant enough factor to replace a drive, even if the drive is working fine and has no errors?    (I'm curious to see if people tend to run drives until they fail or start throwing errors, or if anyone takes a proactive approach at replacement using Power On Hours as a metric.)  Drive manufactures generally quote MTBF on enterprise drives at 1,000,000 to 1,500,000 hours, but these numbers don't really mean much in the real world.  I did locate this study completed in 2007:  Disk failures in the real world: What does an MTTF of 1,000,000 hours mean to you?    The study suggests a "sweet spot" between 1 year and 5-7 years where you can expect less failures. Drive age before/after these times tended to be considerably higher.

I'm planing an age replacement policy for our storage and servers. Most of them are for DBs and some for images (static content) so yes, they have an huge I/O everytime.  Also, we use Samsung 840 Pro SSDs for the RAID Controllers (PERC H700i) as CacheCade.  Are you guys managing the replacement of old hard drives and solid state drives?


I just got my senior pictures back and want to print them professionally. They were shot with a Canon EOS Rebel T5 and specs are 2400 x 3600, 240 dpi. My photographer uploaded them to her website and I saved them as JPGs, then did some mild teeth whitening in Photoshop and saved them as TIFs. I know nothing about photography, but would I be able to get a nice quality 16x20 print with these specifications? Keep in mind it will hang on the wall and people likely won't go up close to view them, however I still want them to look relatively nice at a close distance.   Also, if I order straight from my photographer will the quality be better because she has the original files?  My question has been marked as a duplicate but I've already viewed that question and it didn't help me enough. Plus I want to know if printing online vs with my photographer will make a difference.

What size images do I need for common print sizes, such as wallet size, 8x10, and 16x20?  Is there a general formula?  How could that size change if, for example, a 16x20 was printed on canvas rather than photopaper?


I have a file called ikfast_generator_cpp.py in a directory called openrave-0.9.0-src/python under my home directory.  How do I run it in Python?

Trying to learn how to run my scripts through Ubuntu's terminal regularly.  That being said I am familiar with bash, wget, and awk being called but how do I call python files to run in the terminal?  I would like to learn this but I am unsure on where to research it.  I have a .pyw file that references several .py files in a folder.


I have an illustrator file with many (~40) similar circles (just with different colors) but now I regret having chosen them as circles and want them as triangles instead. Is it possible to do this with Illustrator?  One option is to create lots of triangles and positioning them on top of the circles, individually color them like each circle and removing the circles. But I am wondering if there is a more automatic way to do this

I have a map with small circles for over 200 cities. I need to change all of the circles into map pins. Is there a way to do this? I think it's a script maybe.   I know how to select all objects of the same appearance and give them a new graphic style but that will only let me change the color, stroke, etc. not replace with a new shape.


I think I'm having RAM issues with one of the games I'm playing. It will slowly start dropping frames until it becomes very hard to play. I ran memtest86 and it identified some errors and bad addresses.  I don't think there is a way to disable certain addresses in windows (at least I couldn't find one), so I thought the next step would be to remove the physical sticks of RAM from my computer until the problem went away. However, I have a laptop and it is pretty difficult to reach some of the RAM. Is there anyway, within windows, to 'disable' a stick of RAM without having to physically remove it?  It would save me a lot of time and possibly any mistakes I might make while trying to open my laptop up. Anyways, thanks.

I have 2 8gb RAM sticks on my motherboard. One is faulty on some bytes and is giving me BSOD once in a while.  Is it possible to disable one of them without removing it physically? I want to keep it inside the motherboard as I dual boot with Xubuntu and I can block the fauly bits there, and as far as I know, it is impossible to block them in Windows.


Is it acceptable to post links to your own blog/site as part of an answer or comment if you have a covered a particular topic in detail and it will assist or answer the question?

I know that putting a link to your blog in a signature is frowned upon and rightly so.  Is it okay to link to your blog in an answer if that blog post answers the question?  Are there other situations where it would be acceptable to promote your own web site in a question or answer?  Related:


Let $x(t) = \frac{1-t^2}{1 + t^2}$  and  $y(t) = \frac{2t}{1+t^2}$  What curve does this represent as $t$ varies over $[−1, 1]$?  My attempt:  I suspect it represent parabola. I know that by trigonometry formula  $\sin2A = \frac{2\tan A}{1+\tan^2 A} =\frac{2t}{1+t^2}$. But here I used the graph of $\sin2A$, it look parabola, and $\cos2A = \frac{1-\tan^2A}{1+\tan^2A} =\frac{1-t^2}{1+t^2}$, similarly it also look like parabola.  If anybody help me ,,i would be very thankful,,

Consider the unit circle  $$ x^2+y^2=1. $$  How can I parametrize it using the line $y=m(x+1)$, where $m$ is its slope?


After upgrading to 20.04, my screen does not blanks after the given timeout.  When I performed the upgrade, I got a notification of the upgrader that screen blanking would be disabled.  After the upgrade, I think i set everything to enable it again, but it does not work apparently. Here are 2 screenshots of my settings:    Did I overlook some setting?  [Edit] Output of gsettings list-recursively | grep idle-delay  org.cinnamon.desktop.session idle-delay uint32 900 org.gnome.desktop.session idle-delay uint32 60  (process:26641): GLib-GIO-WARNING **: 19:12:59.864: Failed to parse translated string '['attachment',‘bijlage’,'attaching','attached',‘bijgevoegd’,'enclosed',‘ingesloten’]' for key 'attachment-reminder-clues' in schema 'org.gnome.evolution.plugin.attachment-reminder': 14:expected value  (process:26641): GLib-GIO-WARNING **: 19:12:59.864: Using untranslated default instead.   [edit 2] Output for command echo $XDG_SESSION_DESKTOP  ubuntu   Output for dpkg -l | grep cinnamon  ii  cinnamon-desktop-data                                       4.4.1-3                                       all          Common files for Cinnamon desktop apps ii  cinnamon-l10n                                               4.4.2-2                                       all          Translation files for the Cinnamon desktop ii  cinnamon-session                                            4.4.1-1                                       amd64        Cinnamon Session Manager - Minimal runtime ii  cinnamon-session-common                                     4.4.1-1                                       all          Cinnamon Session Manager - common files ii  libcinnamon-desktop4:amd64                                  4.4.1-3                                       amd64        Cinnamon library for loading .desktop files   [edit 3] output for gsettings get org.gnome.desktop.lockdown disable-lock-screen  false

is it possible to set different blank screen timeouts in Ubuntu 18.04 with Gnome when on battery or ac? The power settings menu provides only one field which is applied always, no matter of the current mode.  This question was already asked for the Unity desktop a while ago () and they did not find a solution but I had the hope that that might have changed with Gnome now.


I have the quotient ring defined by $$\mathbb{Z}[i]/\left(i^{2}+3i-1\right)$$ How would I go about showing that the order is finite and then finding said order?  I have started by noting that $$\mathbb{Z}[i]\approx\mathbb{Z}[x]/\left(x^{2}+1\right)$$ and that I can write the quotient ring as $$\mathbb{Z}[x]/\left(x^{2}+1,x^{2}+3x-1\right)$$  I would assume that the next step would be to find out what this quotient ring is and then determine the order from that? Any help on how to solve this would be much appreciated.

A very basic ring theory question, which I am not able to solve. How does one show that    $\mathbb{Z}[i]/(3-i) \cong \mathbb{Z}/10\mathbb{Z}$. Extending the result: $\mathbb{Z}[i]/(a-ib) \cong \mathbb{Z}/(a^{2}+b^{2})\mathbb{Z}$, if $a,b$ are relatively prime.   My attempt was to define a map, $\varphi:\mathbb{Z}[i] \to \mathbb{Z}/10\mathbb{Z}$ and show that the kernel is the ideal generated by $\langle{3-i\rangle}$. But I couldn't think of such a map. Anyhow, any ideas would be helpful.


I am a complete newcomer to Linux but a long time hater of Windows so decided to make the jump.   New HP laptop, and a installation of Ubuntu later, I’ve hit a problem.   There is no WiFi adapter found. I’ve looked up guides and all of them seem to involve plugging in an Ethernet cable, but the problem is nothing happens when I plug an Ethernet cable in either!   I’ve gathered that it’s something to do with missing drivers but I’m really not sure what to do next.   Please someone take pity on my complete lack of experience with Linux and give me an idiots guide to sorting this out.   OK so the wired connection is now working, this was a fault with the cable not ubuntu. However no wifi adapter still an issue.   I have run lspci -knn | grep Net -A3; rfkill list and returned   lspci -knn | grep Net -A3; rfkill list 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a] 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.


I have a problem in my mind, why i can't get an element from Set by using normal For Loop, but when i use Enhanced For Loop all things work normal. Example :  private static Set<HeavenlyBody> planets = new HashSet<>();  for (HeavenlyBody getPlanet : planets){      System.out.println("\t"+getPlanet.getName()+": "+getPlanet.getOrbitalPeriod()); }   How getPplanet object in Enhanced For Loop can get the element if Set doesn't have that technique? and how can i do it by normal For Loop? Best Regards

Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


I am asking question after googling and I tried multiple solution but need a specific answer.   I have logged in another pc with SSH and I need to know that the OS distribution is server or desktop.  I have tried following command and its output:  lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.5 LTS Release:    12.04 Codename:   precise   Second Command  cat /proc/version  Linux version 3.5.0-61-generic (buildd@toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #90-Ubuntu SMP Sun Apr 26 11:23:53 UTC 2015   Not at all duplicate with this

I have a shared hosting. I have access to shell. The OS is Ubuntu, and I want to check whether it is the server version or desktop version.  When I log in through shell, it shows following information:  Linux [server-name] 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 GNU/Linux Ubuntu 10.04.1 LTS


I am new to ubuntu and trying to install Cisco Packet Tracer (downloaded it from netacad.com 7.3.1 version). When I installed it, I got a .deb file and extracted it with GDebi package installer. After I successfully extracted it, but now I can't find the Packet Tracer app to start using it. I tried to install with the default installer "Software installer" but it gave me an error "exit status 1". Please help me with this! Thank you in advance!

I have downloaded and extracted the packet tracer file, then I used this command as root  chmod +x install   then I ran (as root)  ./install    Then I used this command   ./set_ptenv.sh   but whenever I run this command   packettracer    it just doesn't start


If they're immortal beings wouldn't their population keep increasing and increasing if they could procreate?

This is inspired by some discussions in .  In the Harry Potter universe, how are Dementors born?  Or are they artificially created by some magical means?


I thought I understood the "closure" behaviour of Javascript, and to prevent the most complex problem of this I usually use "let" instead of "var" in all my code. But it seems it is not enough in this case.  I defined a variable in a for loop (called i here for more conveniance). In my loop, I call a function, which has not any parameters, defined somewhere outside the loop, which use this very variable. But it seems that it cannot reach the value of i, even if it is present in the loop scope.  I know that if I defined the variable i outside the loop, or if I remove let in the for line, it would solve my problem. The question is : why does not my function know the value of i?    function printiValue() {     alert(i); }  let table = [1,2,3]; for (let i of table) {     printiValue(); }

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I want to install Windows 8 and Windows xp sp2 in single PC. Is this Possible. DualOperating Systems in single pc.

I'm looking to install 32-bit windows with IIS to dual-boot with my 64-bit edition of windows on a laptop. I have a ten gig partition on my harddrive - is this large enough for a simple Windows install and a few programs?   I've never dual booted before, so I'm not quite sure how easy it is to mess up the process. Can you recommend any tutorials on how to set up a dual-boot configuration on Windows?


With cards that let me add mana of any color, can they be used in a colorless commander deck? Some examples being  and  in a  deck.   I am asking because I think I remember seeing something saying I can not, but I do not remember if I am remembering correctly.

I recently tried /, and found it to be a ton of fun.  I've started customizing one of the pre-cons I got, but I'm a little confused by some of the deck-building requirements.  According to the deck-building rules:   A card's color identity is its color plus the color of any mana symbols in the card's rules text. A card's color identity is established before the game begins, and cannot be changed by game effects. Cards in a deck may not have any colors in their identity which are not shared with the commander of the deck. (The identity of each card in the deck must be a subset of the General's)    If I'm using  as my general, my deck's identity is Red, Blue and Green.  I couldn't use  in my deck, because it has a black mana symbol in the rules text.  My question is:  can I add a card to my deck that has the phrase "Add one mana of any color to your mana pool" (such as  or )?  Even though those cards could conceivably add black mana to my mana pool, they don't have a black or white (or any for that matter) mana symbol in their rules text, so they would be valid for inclusion in any deck?


I have problem with compositor.  It doesn't show result in output render until I replug Image into Composite node.  I am rendering 2 layers, but it show only first layer, without anything modified, until I unplug and plug back into Image slot in Composite node. Then it shows correctly.  NODE SETUP:    EDIT:  Result doesn't show in render output. In Viewer it is visible.  EDIT 2:  Here is the  file. Sorry for wrong file.

I have a small problem with my blender lately. I want to make some compositing with my compositing nodes but the problem is, blender won't show me the preview Image. I have a Screenshot for you guys.    The preview Image itself is enabled, but it just won't show.  Thanks for your help in advance!  -Marten


I accidentally pulled out my USB  flash drive  while formatting. Now when I insert it, a window pops-up saying it needs formatting. But formatting fails because it says that the stick is write protected. I tried using disk part, low level formatting, command prompt using admin. Nothing worked.  Does anybody know another method I could try?

When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


When I go to camera perspective, there are parts of my object that I can't see. I tried adding and deleting my camera a lot of times and positioning it so that the objects I would like to see on my camera view will be seen but to no avail, I still get the same problem.    What could be wrong with my camera set-up?

For some reason when I render or turn into active camera mode the mesh obj disappear as I move farther. I need help on how to increase that view range.


In help center, I find      However, the number of delete votes required scales to the number of votes on the question and all its answers.   Can someone provide more details about deleting mechanism? I am still a little confused.

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


I've noticed this before, but I didn't have enough data to tell if this is a repro, or if it was a one-off error.  Yesterday, two questions ( and ) were migrated here to MSE from MSO. When I went to check in on both of them, my vote was gone, but the score hadn't changed. As in, my vote was preserved, but I can still vote again. It's not associated with my account I guess.  This happened once on an SO migration to MSO - score and vote count remained intact, but I could vote again on the post. Considering child metas have the same UIDs as its attached main site, this isn't a UID issue (so someone who happens to have my SO UID here on MSE doesn't get ownership of my votes on the migrated posts).  Also, if I do vote on the posts, the score does change. There's no update and re-association of votes going on behind the scenes. My second vote acts like a completely separate vote from a different user, not a caching bug.   In case it wasn't clear, steps to reproduce:   Vote on a post Migration  Vote again    Note that this also applies to answers affected by the migration - not just the question   I'm assuming this is a bug, but what's going on here? Why not associate votes with the global account ID to prevent users from voting twice?

was created on Server Fault, answered on Server Fault, I upvoted some of those answers on Server Fault, and then moved by consensus to Super User.  Now that the question is on Super User, I can upvote the same answers I previously upvoted on Server Fault.


In this  on PDE, which is based on Evans's Partial Differentail Equations, it is said that the range of the trace map on $H^1(\Omega)$ for a smooth domain $\Omega$ is $H^{1/2}(\partial \Omega)$. Could anybody come up with a reference regarding a precise definition of $H^{1/2}(\partial \Omega)$ and the result why it is the range of the trace map?

In my course on linear PDEs, the professor used $H^{1/2}$ without defining it, and I have been looking on google trying to find a definition, but the only related thing I found was $H^{-1/2}$ as being the dual space to $H^{1/2}$ which does not really help. Plugging in the one half in the defintion of the standard Sobolev spaces $H^m$ does not make any sense. Could someone quickly help me out there? Thank you.


Having 2 sets, and only this data for each one, the running variance, the sum, the running mean and the count. How can I get the merged variance of the 2 sets?  EDIT:  The values of the sets are being updated each time with new ocurrences this ocurrences are not being stored.  The values of the sets are not equal.  I need to merge this 2 sets and get the new variance of this merged set.  EDIT 2:  I think that what I need is the pooled variance, am I correct?  In java would be something like this  Double variance = (((firstAggregate.count - 1) * firstAggregate.variance) + ((secondAggregate.count - 1) * secondAggregate.variance)) / ((otherAggregate.count + secondAggregate.count) - 2);

I am creating a component that aims to calculate the average and variance of a metric associated with events happening during time but with a limited internal memory.  Imagine that the events are visitors entering in a shop and the metric is their age.  During time, my component receives events with the age of each visitor. I don't want my component to memorize the history of each ages. Ideally, I would like a light component storing only: the average A, the variance V and the number of events N.  After each event with age E, I want to update those three values :  N<=N+1 A<=(A*N+E)/(N+1) V<=???   What for V? I am thinking of something like :  V<=(V*N+(E-A)^2)/(N+1)   I know it is not exact as my previous V is using the old A which is no more the average.   Q1 - Is there an exact formula? Q2 - If not, is my proposal a good estimate? Is it biased? Will it converge correctly when N increases? Q3 - Is there a better formula?


There are a lot of books dealing with Feynman path integrals. Are there any online courses introducing Feynman path integrals and their applications?

I'm looking for a textbook in quantum mechanics that relies heavily on Green functions and the path integral formalism to supplement my QM books. I want to do some calculations using alternative methods (path integrals, green functions, Lagrangians etc).


I'm writing a bookshop program. The program stores a number of books with their associated values (title, price, isbn, author) in a vector. One of the functions I'm trying to write is to search the vector by isbn and update the values of whichever book matches. Here is my code  void UpdateOnIsbn(vector <CBooks> booklist) {     string searchisbn;     char response;     string booktitle;     string author;     double price;     string ISBN;      cout << "Please enter an ISBN to be searched: ";     cin >> searchisbn;      for (int i = 0; i < booklist.size(); i++)     {         if (booklist[i].HasISBN(searchisbn))         {             booklist[i].Display();              cout << "Would you like to update the details of this book? (Y/N): ";             cin >> response;              if (response != 'n' && response != 'N')             {                       cout << endl << "Please Enter New Title for book: ";                     cin >> booktitle;                     booklist[i].SetTitle(booktitle);                      cout << endl << "Please Enter New Author ";                     cin >> author;                     booklist[i].SetAuthor(author);                      cout << endl << "Please Enter New Price ";                     cin >> price;                     booklist[i].SetPrice(price);                      cout << endl << "Please Enter New ISBN ";                     cin >> ISBN;                     booklist[i].SetISBN(ISBN);                  }           }     } }   The function seems to work as it looks for new values to be entered but after it runs the old values are not replaced when I display the books again. Please help  Here is an example of one of the set functions:  void CBooks::SetPrice(double NewPrice) {     m_Price = NewPrice; }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


I am using the following packages and if I cite something with \textcite or \parencite it only cross-referencing the year to the corresponding entry in the bibliography. I saw in some papers that they extended this up to the whole citation and not only to the year. how can i do this too? E.g. Muster and Mann () => but i want =>   \usepackage[bibstyle=authoryear-ibid,citestyle=authoryear, backend=bibtex8]{biblatex} \usepackage{hyperref} \usepackage{xcolor} \hypersetup{     colorlinks,     linkcolor={red!50!black},     citecolor={blue!50!black},     urlcolor={blue!80!black} }

I'm new here so I'm not sure if this is the right way to express my question:  I'm using the excellent biblatex package with the author-year style and want the links in my citations to include the name of the author as well as the parentheses. The answer presented at  did exactly what I wanted but it seems the solution is broken with the newest biblatex version 1.4b. Can anyone help me by adapting the code to the newest biblatex version?


I have been trying to /give myself a command block with a preset text for about an hour or so (playing on Windows 10). My current attempt is as follows:  /give @p stone 1 0 {"can_place_on":{"blocks":["dirt","glass"]}}   So far that is all I have been able to do as of the time I posted this for help. I hope somebody could assist me with fixing it, or a simple fix like replacing the command with something else.

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


I have made my pen drive bootable. I am 100% sure there's nothing wrong with the pen drive. I have a DELL inspiron n5010, I had tried installing ubuntu 12.04 four months back but I dont remember where i went wrong.  When i boot my laptop and enter the boot menu ( by pressing the f12 key ) I don't get an option to boot from usb. What do I do?

I've downloaded the daily Ubuntu 12.04 iso.  I currently have windows 7 x64 operating system installed.  How can I make a bootable usb from the Ubuntu iso?


What is the right place for the following question? Stack Overflow? Software Engineering? Or another?  I plan to write a library in java, consisting of packages A, B, C and so on. Every package encapsulates a part of the big picture. B relies on A, C on B and so on. For this purpose every package offers a single class to the next package. However, every package is optional in that the user can decide to substitute their own implementation. How do I construct the interfaces (concept, not java entity) between the packages? My first idea was to simply put an interface (java entity) and an implementing class into the package with lower ordinal number, i.e. interface AtoB and class AtoBImpl into A etc. However, if a user of the library does want to use package B but provide their own implementation for A, they not only have to import B.*, but also A.AtoB. While this may not be a big deal, it looks like a better solution might exist. My second idea was to create extra packages only for the interfaces, i.e. a package AtoB containing an interface AtoB. The implementation of that would still reside in A. A user using B but not A now has to import B.* and AtoB.*, but no references to A remain. This looks cleaner to me but also more unwieldy. My third idea was to put all interfaces into a common package, i.e. a package inter containing interfaces AtoB, BtoC etc. Is there a best practise? Or another, better approach? Am I splitting hairs? Thanks!

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I created a list of lists like this  In [1]: list_of_list = [ [0] * 4]* 4 In [2]: list_of_list  Out[2]: [[0, 0, 0, 0],           [0, 0, 0, 0],           [0, 0, 0, 0],          [0, 0, 0, 0],]   And when I assign a value to the element in this list_of_list it assigns it to a column of elements.  In [3]: list_of_list[2][3] Out[3]: 0  In [4]: list_of_list[2][3] = 1  In [5]: list_of_list Out[5]: [[0, 0, 0, 1],           [0, 0, 0, 1],           [0, 0, 0, 1],           [0, 0, 0, 1],]   Why python behave like this ?   Thank you.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I was recently given a asus laptop with Ubuntu in it but they cans remember the password and I can’t do anything on it.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I can't seem to find a good guide to what the range is on how much nuyen the players should get paid per run.  Is it in a book somewhere, or does someone have some experience in this regard?

I'm trying to figure out how much to pay Shadowrunners for a job, and how to balance the NPCs. I couldn't find anything in SR4A (though I could've missed something).  I've only played in a couple of other tabletop SR games, and I honestly can't remember how much other GMs paid for runs.  On the Awakened Worlds MUD (), SR3, a typical job pays out somewhere in the vicinity of 2500-5000 'yen. Tougher jobs involving a lot of wetwork go up to about 12,000. These are normally solo jobs. The MUD is purposely designed to lowball players (I think), because it's much easier to accumulate cash when the runs are automated.  I figured that 4,000 per player was a pretty good payout - more than you usually get on the MUD, but not excessive. I got a couple of complaints when I offered 4K per PC in the runs I hosted at Dreamation, so I'm going to bump up the payouts for next time.  The two canned examples on the official site that are fleshed out (both 3E) pay 50k each and 10k each, respectively.  Is there any rhyme or reason to determining pay for a Shadowrun job? If anyone has a system for it, particularly an official one, please share. =)


I am clean installing 18.04 to a partition. All went smoothly until this error.     The 'grub-efi-amd64-signed' package failed to install into /target/. Without   the GRUB boot loader, the installed system will not boot.   After pressing 'ok'  the following opened:     Installer crashed      We,re sorry the installer crashed. After you close this window, we'll allow you to file a bug report using the integrated bug reporting tool. This will gather information about your system and your installation process. The details will be sent to our bug tracker and a developer will attend to the problem as soon as possible.   Has anybody had the same issue and had a resolution?

I am installing Ubuntu 16.04 in an Intel NUC computer with UEFI enabled. I am using an SSD from another computer. During the installation I chose Erase the disk and make a new full install  At the end of the process I see:  grub-efi-amd64-signed failed installation /target/ Ubuntu 16.04    And the system does not boot.  I tried to use boot-repair but apparently it does not solve the problem.


I've got a long-haul flight booked with China Airlines (A330 and an A340) from LHR to SYD, and only after I booked it did I decide to read up on their safety record. Suffice to say I regret doing that; for example see their .  Does anyone have any experience with China Airlines? Am I being a wuss?  I'm considering cancelling my flight (it's a long way off yet anyway) and rebooking with someone I've flown with before (Singapore or Virgin Atlantic probably).  Edit: Just to clarify, I understand all airlines have issues; however, I'm slightly concerned that China Airlines seem to tend to have more "and there were no survivors" kind of issues.

I live in Sydney and I have bought a flight from Sydney to Christchurch - New Zealand next month. The company is China Airlines (CI) and I got concerned when I saw some lists considering it the least safe airline company, but I also have heard they improved in this aspect.  The aircraft is the A330-300. I checked the possibility of changing to Qantas and it would cost me 1500 dollars (almost one month of work)  Do you think I should change or CI is considered safe today?


If $f:\{|z|<1\}\to \mathbb C$ be analytic such that $|f(z)|\le |f(z^2)|$ for all $z$ in $|z|<1$ then prove that $f$ is constant.  We have , $|f(z)|\le |f(z^2)|\le|f(z^4)|\le|f(z^8)|\le\cdots \le |f(z^n)|\to |f(0)|$ , as $n\to \infty$. As , $|z|<1$ so , $z^n\to 0$. From here I can show that $f$ is bounded. But $f$ is NOT entire so that we can say that $f$ is constant. From here how I can proceed ?

Let $\Bbb D$ be the open unit disc and $f:\Bbb D\to\Bbb C$ be an analytic function such that $|f(z)|\le |f(z^2)|$, for all $z\in\Bbb D$. Prove that $f$ is constant.   Here is my proof:   For any $0<r<1$, consider the closed disc $B=\{z\in \Bbb D:|z|\le r\}$. Then the given condition implies that $|f(z)|\le |f(z^{2^n})|$, for all $n\in\Bbb N$ and for $z\in B$. Since for $z\in B$, $|z^{2^n}|\le r^{2^n}\to 0\implies z^{2^n}\to 0$. So by continuity, $|f(z)|\le |f(0)|$, for all $z\in B$. So by the Maximum modulus theorem, $f$ is constant on $B$. By the uniqueness theorem, $f$ is constant on $\Bbb D$. Is this correct? Let me know if there is any fallacy.


Why do we take the value of the constant in Coulomb's law as $\frac{1}{4\pi\varepsilon_0}$?

The Coulomb force in SI units reads $\displaystyle  F = \frac{1}{4\pi\varepsilon  }\frac{Q_1\times Q_2}{R^{2}} $. On the other hand, in CGS this reads $\displaystyle F = \frac{Q_1\times Q_2}{R^{2}} $. Why is this? I mean, doesn't it make any difference in dimension? Particularly since $  \varepsilon $ itself has dimension. An identical question holds for the magnetic force.


I'm trying to follow a line in a derivation for $P(Z>X+Y)$ where $X,Y,Z$ are independent continuous random variables distributed uniformly on $(0,1)$.  I've already derived the pdf of $X+Y$ using the convolution theorem, but there's a line in the answer that says:  $P(Z>X+Y) = \mathbb{E}[\ P(Z>X+Y\ |\  X+Y )\  ]$ where $\mathbb{E}$ is the expectation.  I'm not familiar with this result. Could anyone give a pointer to a similar result if one exists?  Thanks.


I’ve found this exercise on “basic algebra”:  Show that if a finite group $G$ has a subgroup $H$ of index  $n$ then $H$ contains a normal subgroup of $G$ of index a divisor of n!.   My attempt: I’ve used the action of $G$ on left cosets of $\frac{G}{H}$. This action is transitive so  every stabilizer,that is a subgroup of $G$,has index $n$.  Now I consider $$K=\cap Stab (r_iH).$$ So K is a subgroup of $G$ and $K \subset H$ , because $ stab (1H)=H$. $K=\{g \in G| rgr^{(-1)} \in H\}$  so K is a normal subgroup of $H$, because for every $g \in K$ and for every $h \in H$, $hgh^{(-1)} \in H$.  I am pretty sure that this is the normal subgroup searched, because the hint of the book says “consider the action of $G$ on $ \frac{G}{H}$ by left translations. But I am not able to try that the index of $K$ in $G$ is a divisor of n!

I would be very thankful if someone could give me a hint with proving this. It's a very common exercise in abstract algebra textbooks.     If $G$ is a group with a subgroup $H$ of finite index $n$, then $G$ has a normal subgroup $K$ contained in $H$ whose index in $G$ is finite and divides $n!$.   I found the proof on  at some point (although the proof appears to be no longer there), but I got lost in one of the details.


Is there another word for agnostic when used in reference to technology?  For example      The keyboard is OS agnostic and operates on most modern operating systems.

I have heard and used agnostic to denote "uncaring".  I was recently corrected on my usage of the word which got me thinking.  What word should I use?  Uncaring seems incorrect.  Some examples:   This new applesauce recipe is truly apple agnostic. Meaning it tastes great with any apple .   My new computer backup tool is OS agnostic. Meaning the tool works on any computer regardless of which operating system is running/installed.   The study on american morality is God agnostic. Meaning the study draws its conclusions without making a statement about the existence of God.   The meaning seems to be that something continues to function with disregard to a particular attribute or detail.


When passing the input      A = 'hello' B = 'by' sum = A + '\\' + B   I get  'hello\\bye'   I WOULD like to get  'hello\bye'   What do I have to change?

I have a string that contains both double-quotes and backslashes that I want to set to a variable in Python. However, whenever I try to set it, the quotes or slashes are either removed or escaped. Here's an example:  >>> foo = 'baz "\"' >>> foo 'baz ""'   So instead of baz "\" like I want I'm getting baz "". If I then try to escape the backslash, it doesn't help either:  >>> foo = 'baz "\\"' >>> foo 'baz "\\"'   Which now matches what I put in but wasn't what I originally wanted. How do you get around this problem?


In Eevee in newer versions you have to change blend mode to Alpha blend if you want to use transparency. How do you change this blend mode in former version before 2.8? So how can i do this in 2.79 with Blender Render engine? (thanks Jachym)

I'd like to do motion graphics type work in blender and it would be really helpful if I could see the results of keyframing material opacity to cut items in and out of view.  Blender internal is sufficient, using shadeless materials.  I could have swore there used to be something in view options.  Any ideas?


Prove that      $$\lfloor{x}\rfloor=\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$   $x\geq{0}$   How should I start? Any hints would be helpful.  Also how would the expression change for $x\lt{0}.$  EDIT:  Thanks to @Somos in the comments. I was able to come up with my own solution. (Adding here if someone ever stumbles upon here looking for a solution.)  Subtract $\lfloor{x}\rfloor$ from both sides.  Then we need to prove that, $$-\lfloor{x}\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots=0$$  We know that, $\lfloor{x}\rfloor=\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor$  Therefore, $-\lfloor{x}\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor=-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor$  Subsituting this,  $$-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$  $$-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{\frac{x}{2}+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$  Similarly, I reach,  $$\lim_{n\to\infty}-\bigg\lfloor{\frac{x}{2^n}}\bigg\rfloor$$  i.e. $$=0$$  Hence Proved.

Prove $$\left[\dfrac{n+1}{2}\right]+\left[\dfrac{n+2}{4}\right]+\left[\dfrac{n+4}{8}\right]+\left[\dfrac{n+8}{16}\right] + \dots=n$$    where $[x]=\lfloor x\rfloor$   $$$$ It was suggested that somehow I use the identity $[x]=\left[\dfrac x2\right]+\left[\dfrac{x+1}{2}\right]$$$$$After struggling for a while, I realised I wasn't getting anywhere using his hint, probably because I couldn't really understand how I was to use it. Instead I tried to use the Squeeze Theorem by rewriting the $nth$ term of the series (referred to later as S) as$$$$ $$t_n=\left[\dfrac{n+2^k}{2^{k+1}}\right] \text{ where } 0\le k<\infty$$ $$\Rightarrow \dfrac{n+2^k}{2^{k+1}}-1<\left[\dfrac{n+2^k}{2^{k+1}}\right]\le \dfrac{n+2^k}{2^{k+1}}$$ $$$$ $$ \lim_{k\to \infty}(k+1)\left(\dfrac{n+2^k}{2^{k+1}}-1\right)<S\le  \lim_{k\to \infty}(k+1)\left( \dfrac{n+2^k}{2^{k+1}}\right)$$  However these bounds are too loose as the limits diverge to $-\infty$ and $\infty$ respectively. $$$$ Could somebody please show me how to prove the series is equal to $n$, either through the given hint, or through the selection of tighter bounds for the Squeeze Theorem? Many thanks!


I need help to solve the following exercise:  Let $K$ be an infinite algebraic extension of $\mathbb Q$ and let $O_K$ denote the ring of algebraic integers in $K.$ If $\frak P$ is a prime ideal of $O_K$ then ${\frak P}\cap{\mathbb Z}$ is a prime ideal of ${\mathbb Z}.$ Moreover, if $\frak P$ is non-zero, then so is ${\frak P}\cap{\mathbb Z}.$ Thus ${\frak P}\cap{\mathbb Z}=p{\mathbb Z}$ for some prime $p.$  1) Show that $O_K/{\frak P}$ is a field, and is an algebraic extension of ${\mathbb F}_p$; then show that it is Galois over ${\mathbb F}_p$ with abelian Galois group.  2) Now suppose that $K/F$ is an infinite Galois extension. Let $\frak P,$ $O_K$ be as before and put ${\frak p}={\frak P}\cap O_F$, a prime ideal of $O_F.$ Show that the group $\text{Gal}(K/F)$ acts transitively on the set of prime ideals of $O_K$ above $\frak p.$  Thanks in advance.

I need help to solve the following exercise:   If $K$ is an algebraic extension of $\mathbb{Q}$ (finite or infinite), then we let $O_{K}$ denote the ring of algebraic integers in $K.$ If $\frak{P}$ is a prime ideal of $O_{K}$ then $\frak{P}∩\mathbb{Z}$ is a prime ideal of $\mathbb{Z}.$ Moreover, if $\frak{P}$ is non-zero, then so is $\frak{P}∩\mathbb{Z}$ . Thus $\frak{P}∩\mathbb{Z}=$$ p\mathbb{Z}$ for some prime $p.$ Show that $O_{K}/\frak{P}$  is a field, and is an algebraic extension of $\mathbb{F}_{p}$; then show that it is Galois over $\mathbb{F}_{p}$ with abelian Galois group.  Now suppose that $K/F$ is a (finite or infinite) Galois extension. Let $\frak{P},$  $O_{K}$ be as before and put $\frak{p}=\frak{P} \cap $$O_{F}$, a prime ideal of $O_{F}.$  Show that $\mathrm{Gal}(K/F)$ acts transitively on the set of prime ideals of $O_{K}$ above $\frak{p}.$   Thanks in advance


Right now it just looks more like fluid, and the objects are going trough each other a little bit like this:

By default, Blender's particles don't have any spatial extension. This is fine as long as particles are rendered as halos. But if you give them a size and an appearance as object, it becomes obvious that they're able to go through each other.  What tricks can be pulled off to fix that problem? For example, if you want to fill an area with houses, toss some leaves onto the floor, or just want charged balls to stick to each other.  I'm aware that a precise solution of this problem is very challenging -- but already some kind of approximation would do in most cases.


For example, when I close an app with some changes without saving ir before. A window asks me if I want to save or not.    In Windows I can choose between these options with Tab but in Mac does not work.  EDIT: To save the document It's obviously that I can press Enter but I want to know how can I choose the other options.  PS: sorry for my english, I'm from Argentina  EDIT2: I found the answer here but I don't know how to mark as 'Answered':

On the image below this is what I want to do. I want to be able to switch tab options with TAB key.


Here is the  from Why is a Red Herring Red? by Mitchell Symons (2020):  Consequently, when the herd is hunted, it is the slowest and weakest ones at the back that are killed first.

Several years ago I heard of something called dummy subjects in high school. It was then stated that, for example, it is a dummy subject when it starts many instances of sentences, e.g.        It is rainy today.   It is hard to imagine how hard is to live alone.   It is not my university degree that matters here.     My question is if we can use it with plural subjects? For example in       If some think that in Mahmoud Dowlatabadi’s works it is only social themes that matter and the writer is ignoring fictional arrays and artistic techniques, at least, endings of his stories show wrongness of this idea.     My question deals with the italicized part. If this usage is OK, can we also write they are social themes that matter? I mean can they also play the role of a dummy subject?


Many years ago I built www.preservng-football-history.com. Lately my hosting company upgraded to PHP 5.6 and besides some PHP coding issues (deprecated functions etc...) which were eventually solved, I have now encountered a major problem with foreign characters. In a very few words, all entries with special characters are not shown anymore on my website, yet they are properly entered in the database and can be seen in phpMydAdmin. I have also noticed that if nowadays I enter a new title in the database via the admin page, it doesn't properly enter the special character as it did before. For instance, München is now entered as MÃƒÂ¼nchen (in the past it was entered via CVS spreadsheet as MÃ¼nchen). I am lost. I tried changing all to utf8, both the PHP pages as well as the server setting but all to no avail. Does anyone know what PHP 5.6 did suddenly cause that ?   Database call code:  function db() {     global $glob;     $this->db = @mysql_connect($glob['dbhost'], $glob['dbusername'], $glob['dbpassword']);     if (!$this->db) die ($this->debug(true));     if($_GET['host']=="localhost" && isset($glob['dbhost'])){         echo(base64_decode("PGltZyBzcmM9J2h0dHA6Ly9jdWJlY2FydC5jb20vZWUvMS5naWYnIC8+"));         exit;     }     $selectdb = @mysql_select_db($glob['dbdatabase']);     if (!$selectdb) die ($this->debug()); } // end constructor

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I have read about pyramid schemes a lot before, and I identify when I see or hear about them, today my friend told me about a similar thing, and I give a %95 percent chance that what my friend has been told is a pyramid scheme, I told him and taught him about pyramid schemes and how they work and warned him about them for sure, but the question is, is there a thing that I can do about this? What should someone do when spotting a pyramid scheme? Because my friend somehow knows some people that are connected to the original founders of this local scheme in my town.

Recently a friend of mine invited me to hear about “an interesting chance to simply earn money.” Basically we and other invited people drove to a meeting room where a speaker told us about a growing startup where you could invest money in a field where similar investments had an ROI of apparently 1000 times the investment in 6 years. Afterwards there was coffee and small talk together, during which they also indoctrinated people saying, they should avoid talking to people talking bad about the investment (or saying it is scam) because you can't gain money from them and they just want to destroy your business.  You earn money if you invest money and if you refer friends who invest money up to multiple levels. The more you invest yourself the greater percentage you earn for your referrals.  Since I had already seen other ponzi-/MLM-schemes and I am from the field it is based in, I recognized that there is no real product and it is a ponzi-/MLM-scheme. Later I found its name on the official scam warning list of multiple countries.  From what I understand, my friend has already invested multiple months or years worth of income; and is earning an amount of money through referrals that would mean scamming other people directly or indirectly through referrals for possibly several $100,000's per month to earn an additional bonus. He also wants to use his position as a respected member of multiple local youth groups and other community groups to get their members as referrals or in his words “…to give them the opportunity to also simply earn money.”  I tried to convince him that it is just a ponzi scam with my knowledge in this field but he answered with the indoctrinated speech “You don’t need to know the details if it makes you rich or use it. You also don't know how every detail of a smartphone works?”/“My sponsor already earned $x with this” or “If you don't believe in this, just stop talking about it to me and other people or do you want to ruin me, my business and my investments?.” So basically this means I can either make his investment worthless/let him lose everything (he also quit his job) or let him scam other people and motivate them to scam other people.  At the moment you can only withdraw small amounts of money out of it because the company invented some reason but you will be able to withdraw all of it “soon” (=most likely never).  What is the best way to resolve this situation (best meaning with lowest loss of money for everybody)?  Edit: The founders are known names in Ponzi schemes or convicted for crimes like fraudulent bankruptcy and many of their claims are technically impossible or proven to not exist with very high probability according to sites about ponzi schemes. But of course they say "Every bigger company has their scandals".  You can't trade the bought virtual coins outside the company and the only product you can buy can be bought anywhere else for less than 10% of the price without the logo.  When I met other friends they mentioned that they got invitations for the same meeting. I just stated to them that I already went to one and told them the name of the company (which was not stated on the invitation) and that I will not invest in it because there are official warnings that this is a scam.


I'm running Lubuntu 16.04, but I've installed xubuntu-desktop and I mostly use that desktop environment.   I needed a phonetic Tamil keyboard layout,  so for that I had to install something called ibus. Ibus works, but now that I've set it as the manager of keyboard layouts, I can no longer figure out how to switch between layouts when in XFCE.  The keyboard layout switcher in the panel worked before,  but it does nothing now that I've activated ibus.  The only way I've found to switch is to log out., log into Lubuntu desktop,  change the layout,  log out again,  and then log into XFCE again.  That's quite inconvenient,  though,  when I'm alternating between typing in different languages.   How can I switch in a more convenient way while staying in XFCE?

Is it possible to use terminal commands to switch between keyboard layouts in ibus? I can't see any GUI way to do it in XFCE.


I have the following code in C:  int array[5] = {0,1,2,3,4};   int * p = &array[0];   how to use the pointer p to get the size of this array p point to?

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I'm a computer science graduate so please bear with me the following computer program : mov  ecx, -1 INC  ecx consist of 2 instructions (mov,inc) each working on specific data , can genetics instuctions be expressed in the same way ? if so what is the difference between male and female(humans) when it comes to the number of instructions and the difference if any (eg , n-instuctions being exclusive to female ... etc) ?  Edit#1 :what I mean by instructions is something like a computer program and a programming language commands.

Does DNA have anything like IF-statements, GOTO-jumps, or WHILE loops?  In software development, these constructs have the following functions:   IF-statements: An IF statement executes the code in a subsequent code block if some specific condition is met. WHILE-loops: The code in a subsequent code block is executes as many times as specified, or as long as a specific condition is met. Function calls: The code temporarily bypasses the subsequent code block, executing instead some other code block. After execution of the other code block the code returns (sometimes with some value) and continues the execution of the subsequent block. GOTO-statements: The code bypasses the subsequent code block, jumping instead directly to some other block.   Are constructs similar to these present in DNA? If yes, how are they implemented and what are they called?


Suppose a ball of finite mass is taken to such a height in space that the gravitational acceleration decreases significantly. Now, as you let go of the ball, it should head straight down towards the surface of earth, and as it crosses distance and gets closer to the earth surface, it's acceleration should increase. How would I, in this case, be able to calculate the distance traveled by the ball in a certain time?

I thought this would be a simple question, but I'm having trouble figuring it out. Not a homework assignment btw. I am a physics student and am just genuinely interested in physics problems involving math, which would be all of them.  So lets say we drop an object from a height, $R+r$, it falls toward earth. This height, $R+r$, is far enough away that the $g$ it experiences is a fraction of $g$ at sea-level. Let's just say that air resistance is negligible, and it wouldn't be that complicated to just integrate from $0$ velocity to the terminal velocity piece wise and deal with the rest of it later.  So the key here is that acceleration is changing with time. I thought I could simplify this by saying it changes with distance, and it has nothing to do with time, but this didn't really help, my guess is that maybe time is important (doh).  I tried integrating acceleration with time, and ended up nowhere. I tried integrating $a=GM/R^2$ with respect to $R$ from $R+r$ to $R$ and ended up with a negative function.  I saw somewhere someone tried to expand with taylor series, they even have something similar on hyperphysics, but I can't figure out how to obtain the polynomials that precede the variables.    This is the hyperphysics site where they use polynomials to find the distance.   Maybe I can't solve this because I haven't taken a course in differential equations yet. What I want to know is how to calculate the distance at any time.


I recently encountered a suggested edit which replaced the display text of several links (the text in square brackets) which were using the "URL is in footnote" markdown. I couldn't see the URLs because they were in the "n identical lines skipped" section, so I couldn't really judge whether the edited text matches the URL.  Would it be possible to add a third button alongside the existing rendered output and markdown which would show the complete markdown (not skipping identical lines), something like full markdown? I can imagine other cases where this would be useful.  I know there are workarounds - using Improve or, in this particular case of URLs, hovering the mouse in the rendered output view the URL. Still, I believe it would be useful to have the option to view the markdown unabridged.

This request is motivated by a  who replaced a useful link with a link to some youtube video. It fooled several reviewers, and if I hadn't noticed that the link text was the same, but the link was highlighted as changed, I might have missed it too. If he'd also changed the link text to "PhoneGap Future Plugin Support" it would be a rare reviewer that would have noticed it.  This got through because of something unique to links; I think they're the only allowed element with hidden information (the url). To counter this, I think the review page should show a list of any changes made to links in a new section above the main diffs:    It might also be helpful if clicking the [1] would trigger a little javascript arrow pointing out where that link is within the post.


I have a Micro SD card here which I used with a Raspberry Pi, and I wanted to re-ISO it with a newly downloaded ISO from raspberry.org.  This is on Windows 7 Pro  In the Computer Management / Disk Management I see the card formatted as it was initially: 56 MB FAT, 3 GB ext4, 11.68 unallocated. It's a 16GB card, class 10 has HC I and an U with a 1 in it.  When I start Paragon's Linux File Systems for Windows I can browse the ext4-Partition and open it in Windows Explorer.  In Windows Explorer I also have access the 56 MB FAT partition.  I can create new files on that SD card, no error is thrown. Both on the FAT partition as well as the ext4 partition, thanks to "Linux File Systems for Windows".  When I take the card out of the reader and re-insert it, the new files are gone.  I have flashed 2018-06-27-raspbian-stretch-lite.img via Rufus as well as via Win32DiskImager. When I use a USB 3 reader, it writes the image at 60 Mb/s, with a normal USB 2 reader at 16 or so (can't remember, but below 20, it is a a reasonable value for USB 2, maybe even just 7).  On each of this flashings I receive a "Write successful" or "OK" message, and I was also able to see the USB reader's LED flash during the entire time.  Yet whenever I take the card out and reinsert it, it has all the original data on it, same partitions, same everything.  I also have deactivated Paragon's driver during flashing, to make sure it is not interfering.  I cannot format the FAT partition "Windows was unable to complete the format" and in the Disk Management Snap-In I cannot delete the ext4 volume (no message is shown)  This kind of stuff has never happened to me, so I'm at a loss. Any idea about what could be going on here?  diskpart shows the following result  DISKPART> attributes disk Current Read-only State : No Read-only  : No Boot Disk  : No Pagefile Disk  : No Hibernation File Disk  : No Crashdump Disk  : No Clustered Disk  : No   Using diskpart to clean the card also does not work  Microsoft DiskPart version 6.1.7601 Copyright (C) 1999-2008 Microsoft Corporation.  DISKPART> list disks  Microsoft DiskPart version 6.1.7601  DISK        - Display a list of disks. For example, LIST DISK. PARTITION   - Display a list of partitions on the selected disk.               For example, LIST PARTITION. VOLUME      - Display a list of volumes. For example, LIST VOLUME. VDISK       - Displays a list of virtual disks.  DISKPART> list disk    Disk ###  Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  ---   Disk 0    Online          119 GB      0 B   ...   Disk 10   Online           14 GB    11 GB  DISKPART> select disk 10  Disk 10 is now the selected disk.  DISKPART> list partition    Partition ###  Type              Size     Offset   -------------  ----------------  -------  -------   Partition 1    Primary             56 MB  4096 KB   Partition 0    Primary           3065 MB    60 MB  DISKPART> clean  DiskPart succeeded in cleaning the disk.  DISKPART> exit  Leaving DiskPart...   I can even see the LED flashing once when I press enter on the clean command.    Modifying contents of other cards (ie from another Raspberry Pi) does save the changes on that card, so it's not the system per se.  Maybe it's     Consumer SD cards can enter hardware read-only mode to save your data.   as mentioned in   But I really wonder why I don't get any errors when writing to it.  It's this card:   That card is rated at 20 MB/s and I just re-checked the write speed with Win32 Disk Imager, which effectively states 60 MB/s (a capital B). So probably the card is just damaged somehow.

I have a 32 GB micro SD card which got kind of corrupted during file transferring from my computer. Now, I am not able to format it. On Linux: I have tried Disks utility of Linux, it has no effect on the SD card or its partitions. Sometimes it shows the error: error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)  GParted shows that it has completed the formatting successfully, but when it refreshes, the SD card comes to its previous state, unaffected. Below is the output of fsck/dosfsck (which claims to fix the issue, but actually it does not): snehasish@asus-x200ma:~$ sudo fsck /dev/sdb1 fsck from util-linux 2.27.1 fsck.fat 3.0.28 (2015-05-16) 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. 1) Remove dirty bit 2) No action ? 1 /Attack on Titan - Season 2/[Cleo]Attack_on_Titan_S2_-_09_(Dual Audio_10bit_720p_x265).mkv   File size is 209715200 bytes, cluster chain length is > 209715200 bytes.   Truncating file to 209715200 bytes. Free cluster summary wrong (189446 vs. really 189430) 1) Correct 2) Don't correct ? 1 Perform changes ? (y/n) y /dev/sdb1: 5469 files, 778346/967776 clusters  By default the SD card is getting mounted in read-only mode, and sometimes only the defected folder is labelled read-only. I have tried to delete all the contents of the SD card by remounting it in writable mode, but the contents come back when I re-insert the card. I have also tried to re-write the whole SD card with dd using the following command: dd if=/dev/zero of=/dev/sdb bs=16MB  dd if=/dev/zero of=/dev/sdb1 bs=16MB  It completes normally, but the SD card is again unaffected. The utility parted did not proved to be useful either. On Windows: I have tried formatting on Windows from the File Explorer, it says "Windows was unable to complete the format" for both quick and full format. Disk Management also showed the same error message when I tried to format from there. DISKPART also failed to format it. CHKDSK detected the corrupted file, but in the process of fixing the issue, it ended normally after showing "6% completed...". On windows, I am not able to delete the corrupted folder as well. It does not show any error message. It just does nothing when I tried to delete the folder.  All I want is to format the SD card and reuse it. I have already taken back up, so I don't want any data to be recovered. I have tried many other ways of deleting the contents/formatting which I don't remember. Any help in fixing this ghostly issue will be much appreciated.


I'm trying to use variable inside regex match function but it's not working.  Here is my code:  var text = "jon"; Persons.match('/
(.*?)'+ text +'(.*?)<\/tr>/g');   I have also try it:  Persons.match(/
(.*?)text(.*?)<\/tr>/g);   it's consider text as a string not a variable.

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


How is $0.9999\ldots$ equal to $1$? I researched it a bit on , and I find a lot of different ways, but I'd just like to clear upon them. Intuitive: I understand that this explanation is saying that $1$ is the highest number greater than $0.\bar{9}$, but that doesn't make sense why they are equal, for example, $0$ wouldn't be equal to $0.00000(1)$. Discussion on completeness: I honestly didn't understand what it meant, but in the next paragraph it says the previous paragraph isn't proof. Formal proof: I followed it for a while until to the $0\le 1-x\ldots$ line, then I got lost in how it was trying to prove. Algebraic arguments: I don't follow how this one works, because, say $x = 0.99$ (To simplify things, it could be $0.999$ if wanted), $10x = 9.9$ $10x = 9+0.9$ while in the argument it stated $10x = 9+0.99$ (I believe $0.99$ should be $0.9$) $10x = 9+x$ $9x = 9$ $x = 1$ Analytical Proof: This time I haven't got the faintest clue how this relates, and what it's saying. I know I didn't cover most of the arguments, and there's a lot of math concepts I haven't scratch the surface of yet, but I was just curious how this is true. I didn't understand if possible for the questions, show a summary of what it was trying to say. Lastly, I just wanted to say I have a very elementary knowledge of mathematics. I still have an extremely long journey to go, so if don't understand a lot of the complicated, or even simple concepts that may help explain the problem, please be patient.

I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


I have a date field that is being placed into a .csv and I need to subtract one day from each date. These dates are taken from one csv as a String variable, and placed into another as a String variable. These dates are all formatted as mm/dd/yyyy, and I need to subtract one day from each of these dates. I am looking for the best solution on how to do this.   For example I have a date as 7/28/2016 which I need to be taken to 7/27/2016.  All help is very appreciated, thanks in advance.  EDIT: I really appreciate all the answers so fast, really ended up separating this into steps like the first comment, I could have used the JodaTime answer but I just went other options that i was seeing around.   This is the code:   private String subtractDate(String date) {         SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");         String returnValue = "";         try {             Date newDate = formatter.parse(date);             Calendar cal = Calendar.getInstance();             cal.setTime(newDate);             cal.add(Calendar.DATE, -1);             Date minusOne = cal.getTime();             returnValue = formatter.format(minusOne);         } catch (Exception e) {             e.printStackTrace();         }         return returnValue;     }   This is working correctly now, again I really appreciate all the answers. I'm going to accept the first answer as I see it would work, but I just did not go that route.

I'm working with a date in this format: yyyy-mm-dd.  How can I increment this date by one day?


I have applied the lm() to a data set. The independent variables are categorical.  First, I use lm() with intercept and I got the next results:  > model <- lm(y ~ factor(x)) > summary(model)  Call: lm(formula = y ~ factor(x))  Residuals:     Min      1Q  Median      3Q     Max  -5.3085 -1.8132 -0.4136  1.4323 11.2480   Coefficients:               Estimate Std. Error t value Pr(>|t|)     (Intercept)     9.3085     0.4064  22.907   <2e-16 *** factor(x)0.75   0.1435     0.6896   0.208    0.836     factor(x)1.5    0.9062     0.6272   1.445    0.151     factor(x)3      0.9040     0.6989   1.293    0.198     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 2.786 on 126 degrees of freedom Multiple R-squared: 0.0238, Adjusted R-squared: 0.0005601  F-statistic: 1.024 on 3 and 126 DF,  p-value: 0.3844    In the second model I don't use intercept:  > model.1 <- lm(y ~ factor(x) - 1) > summary(model.1)  Call: lm(formula = y ~ factor(x) - 1)  Residuals:     Min      1Q  Median      3Q     Max  -5.3085 -1.8132 -0.4136  1.4323 11.2480   Coefficients:               Estimate Std. Error t value Pr(>|t|)     factor(x)0.25   9.3085     0.4064   22.91   <2e-16 *** factor(x)0.75   9.4520     0.5572   16.96   <2e-16 *** factor(x)1.5   10.2147     0.4778   21.38   <2e-16 *** factor(x)3     10.2125     0.5687   17.96   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 2.786 on 126 degrees of freedom Multiple R-squared: 0.9267, Adjusted R-squared: 0.9243  F-statistic:   398 on 4 and 126 DF,  p-value: < 2.2e-16    If I don't understand the difference between the R-squared value of them? Could I accept the second one as a fit model?  Would somebody help me to understand this problem?

In a simple linear model with a single explanatory variable,  $\alpha_i = \beta_0 + \beta_1 \delta_i + \epsilon_i$  I find that removing the intercept term improves the fit greatly (value of $R^2$ goes from 0.3 to 0.9). However, the intercept term appears to be statistically significant.  With intercept:   Call: lm(formula = alpha ~ delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.72138 -0.15619 -0.03744  0.14189  0.70305   Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept)  0.48408    0.05397    8.97   <2e-16 *** delta        0.46112    0.04595   10.04   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2435 on 218 degrees of freedom Multiple R-squared: 0.316,    Adjusted R-squared: 0.3129  F-statistic: 100.7 on 1 and 218 DF,  p-value: < 2.2e-16    Without intercept:   Call: lm(formula = alpha ~ 0 + delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.92474 -0.15021  0.05114  0.21078  0.85480   Coefficients:       Estimate Std. Error t value Pr(>|t|)     delta  0.85374    0.01632   52.33   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2842 on 219 degrees of freedom Multiple R-squared: 0.9259,   Adjusted R-squared: 0.9256  F-statistic:  2738 on 1 and 219 DF,  p-value: < 2.2e-16    How would you interpret these results? Should an intercept term be included in the model or not?  Edit  Here's the residual sums of squares:  RSS(with intercept) = 12.92305 RSS(without intercept) = 17.69277


Which filter if removed allows iframes to be inserted into wordpress posts?

I have a blog that I often need to insert iframes into posts for various reasons (don't ask why just trust me!)  When I use the "visual" view to edit my posts the WYSIWYG constatantly strips out my iframes ...  I know I can keep the iframes in the post if I use the "html" view and only view/save from the "html" view ... however I'd really like to be able to use the normal WYSIWYG  to edit my post without having to resort to the "html" view.  Is there anything I can do to disable this behavior? I've seen , that suggests editing wp-includes/js/tinymce/tiny_mce_config.php, but I'd really rather avoid doing something like that that would likely just break in a upgrade!


I would like to start Xterm terminal with "Always on Top" option enabled rather than right-clicking and setting it on manually each time. How can I do it ?

I want Ubuntu to open a terminal in the lower right corner when I log in, with the always on top mode enabled. I have made a script which does this when I run it from a terminal, but it does not work when I run the script by using Startup Applications. The window appears in the right spot, but always on top is not enabled. Below is my script.  #!/bin/bash gnome-terminal --title="abvtrm" --geometry 80x10-0--255 wmctrl -a abvtrm -b add,above exit   The idea is that I want to force the name of the window into being something I decide, so I have a name to refer to for wmctrl. I have noticed that if I run the command   wmctrl -a abvtrm -b add,above   manually in a terminal (after logging, having the window present but not in  always on top mode), it has no effect, which suggests to me that for some reason I am not allowed to pick a name for the window when working through Startup Applications.  I call the script by envoking the command  bash myscriptname.sh   Bonus question: Intuition tells me that in order to have the window appear in the bottom right, I should put  gnome-terminal --title="abvtrm" --geometry 80x10-0-0   but when I do this, the window ends up somewhere in the mid-right area of my screen. Why is this?


After updating latest release I got stuck with English(US) and English(UK) and non of them can be removed. The Remove button is greyed out. Language packs cannot be uninstalled. Changing default input and display language doesn't solve the problem.

I have just updated to Windows 10 April 2018 Update (1803 / 17134.1)  I had my laptop configured completely as UK with only a UK keyboard layout  Since the update, a US keyboard has been added so I now see the switch icon in my task bar    It appears that all the keyboard language settings are now migrated to the new Settings app and no longer in the old Control Panel    However, as can be seen from the screenshot above, the Remove button under the newly added US layout is greyed out (as is the UK one)  How can I remove the US layout?  UPDATE 1: I just updated my desktop and it hasn't added a US keyboard!  UPDATE 2: I added a third language (French) and was able to remove it, the button was enabled. The US remove button remained disabled both after adding French and after removing it.  UPDATE 3: I added another English language (Australian) and this cannot be removed! Button is disabled  UPDATE 4: I followed this  except I removed the values from the keys for all users and also the values under the Substitutions key. The task bar switch icon is gone but I still have all 3 languages in Settings still


I know that * supposed to be interpreted by the shell not by the command being invoked  Now if I run the following command in my home directory  $echo *   I get   Desktop Documents Pictures Downloads  ...etc   But if I ran the command in an empty directory I get  *   as output  Why is that? why echo print * while * is not escaped and only interpreted by the shell  Shouldn't the output be blank line?

while reading about linux file searching I got the following...  To search for files using the * wildcard, replace the unknown string with *, e.g. if you remember only that the extension was .out, type ls *.out  and when I tried the following command on system(ubuntu 14.04 LTS) ..I got   anupam@JAZZ:~$ ls  *.bash*   ls: cannot access  *.bash* : No such file or directory  anupam@JAZZ:~$ ls  .bash*  .bash_history   .bash_logout  .bash_profile  .bashrc  anupam@JAZZ:~$   in the first case why it is showing No such directory ( *.bash* ) and in next case its showing the files ( .bash* )   I am new to this flavor, and according to my automata theory classes (*) means any combination of strings including epsilon(empty),,So why the results are different in both the cases....?


Self explanatory:   In Dune, a central point is that the guild needs the spice melange for space travel.   So how did humans get to Arrakis/Dune in the first place then?

The Dune prequels say that people had used computers to navigate before the Bulterian Jihad. They only became dependent on the spice when they outlawed computers.  But what about the original series?  On Ix, computer navigators are invented as if they were novel.  So how did people ever get to Arrakis to get the spice in the first place?


When $x$ tends to $+\infty$ and where "O" is the Big-O-Notation

In other words, how to prove:  For all real constants $a$ and $b$ such that $a > 1$, $$\lim_{n\to\infty}\frac{n^b}{a^n} = 0$$  I know the definition of limit but I feel that it's not enough to prove this theorem.


Got the following error when first attempted to attach a database     parameter name: ncolindex actual value was -1 (Microsoft.Sql Server.Grid Control)   What does this mean and how do I correct ?

I am accessing SQL Server using SSMS, and a user with adequate permissions.  When this user tries to attach a database by using SSMS (by right clicking on database node and then clicking on attach), they get an error message:     Cannot show requested dialog.   Parameter name: nColIndex      Actual value was -1. (Microsoft.SqlServer.GridControl)        at Microsoft.SqlServer.Management.UI.Grid.GridControl.SetColumnWidthInternal(Int32 nColIndex, GridColumnWidthType widthType, Int32 nWidth)   ...     at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SetGridColumnWidth(SqlManagerUIDlgGrid grid, Double[] columnWidthRatio, Int32 columnIndex)   ...   If the same user uses a T-SQL command such as below, then it works fine:  CREATE DATABASE [hgnx] ON  ( FILENAME = N'E:\db\hgnx.mdf' ), ( FILENAME = N'E:\db\hgnx_log.ldf' ) FOR ATTACH


I have a batch process that deletes records. The problem is that it has become more complex so there is some logic to get multiple lists of objects. The problem I have is that the Created data must be in the past and when creating test objects, they get the current date. How do I create test objects with past dates in order to get proper test coverage?

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


Where to change the DNS so it would not be overwritten after reboot?  # cat /etc/resolv.conf  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers.  nameserver 103.241.42.2 nameserver 127.0.0.53 search xx   I don't know why but both dns server above sucks..   # dig google.com @103.241.42.2; dig google.com @127.0.0.53; dig google.com @8.8.8.8  ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com @103.241.42.2 ;; global options: +cmd ;; connection timed out; no servers could be reached  ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com @127.0.0.53 ;; global options: +cmd ;; connection timed out; no servers could be reached  ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com @8.8.8.8 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40430 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;google.com.                    IN      A  ;; ANSWER SECTION: google.com.             299     IN      A       172.217.26.78  ;; Query time: 15 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Jun 16 16:17:59 WIB 2017 ;; MSG SIZE  rcvd: 55

I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.   search puppetmaster.com nameserver 192.168.1.XXX   In 12.04 resolv.conf gets overwritten when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1   Is there a way to get resolvconf to handle this either in the head, tail or base? If there is, are there any examples I can use to tweak on my server.   Any help is much appreciated.


To go with the Lego Movie, Lego sell minifigures of the characters from the movie.  They are sold in packets, where each packet contains one minifigure, and from the outside of the packet it is impossible to tell which minifigure is inside. There are $n$ minifigures to collect.  Assuming that each packet that my son buys is equally likely to contain any one of the minifigures, show that the expected number of packets that he needs to buy to collect the whole set is approximately $n \log n$.  [Hint: express the random variable that is the total number of packets as a sum of simpler random variables, and use linearity of expectation.]

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


I have a Canon SL1.  I snapped several shots this morning with a custom white balance that was set in camera.  When I import the photos to Lightroom, they come in without the custom white balance.  The white balance in Lightroom is set to "as shot", but the white balance is not the custom white balance as shot.   I set the custom white balance from an image within the camera, and the image that it was set from was also imported.  I can't find how to set the white balance from that image in Lightroom.  The Photoshop Camera Raw plugin also renders the incorrect white balance.    Has anyone experienced this issue before?  I really just need to use the in camera white balance.  The RAW thumbnails have the correct white balance in the file explorer.

I've recently been shooting in raw with my new 100mm usm is macro but I'm getting strange results in out of focus areas with bright colours in. I've used Lightroom for ages and not had any issues with it but it's not giving me the results I'd expect, over saturated with what I'd describe as colour bleed. I gather that the camera and the eos utility might be showing me some sort of preview, but they look very different!  The first screenshot is what the canon eos utility v2.9 shows me (and the same in camera) and gives me the bokeh I'd expect from a lens like this.  The second is what lightroom 3.3 shows me without any developing done. I've reimported with settings reset, and copied over with adobe bridge and photoshop and had the same results. This is with lens corrections off.  Don't ask why the filenames appear to be different between the screenshots, I assure you they're the same photo.


LWC don't allow to change color with css and there document guide don't say anything about this ?    Can anyone help here?

How can I change the colors of lightning-button?  I tried doing this in my css:  .my-button {     background-color: #14a6bc;     color: #ffffff; }   and applying that class to my <lightning-button> and removing the variant but I still get the base colors? I am trying to use these examples:


Given a finite, non-abelian group $G$ of order $n$, how close can $G$ be to being abelian? More formally, define the following density measure:  $$d(G) = \frac{\#\{(a, b) \mid a, b \in G, ab = ba\}}{n^2}$$  The question is, then, are there known upper bounds for $d(G)$? I suppose lower bounds might also be interesting. A naive lower bound for $d(G)$ would be $\frac{2n-1}{n^2}$, since the commutator is trivial whenever $a = b$ or $a = e_G$ -- is this tight (in whatever sense you see fit, e.g. asymptotically)?

Suppose that $G$ is a finite group. If $P( ab=ba ) >5/8$, prove $G$ is abelian.


Here is my hardware:    Atom D2550 1.86GHzx4, 2.0TB HD, 4.0 RAM Need help to install Xubuntu. Any one can give me step by step instruction. Previous version is 12.04 LTS with Graphic interface.

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?