My system is not working after updating to kernel 4.15.0-23

System: Lubuntu 18.04 x64  Yesterday I tried updating my system using "Software Updater" and after the update the system wouldn't boot up!  After update it asked my to restart, I restarted and it gave me some messages while booting up but I couldn't read them because they were gone quickly..  When the system was up it couldn't connect to any wifi network.  I tried restarting and it wouldn't boot up again.. It gives me this messages:    (Check the kernel error thing)  After that, this appears:   If I press enter, it gives me the root terminal.  And this is the apt log from /var/log/apt/history.log  Start-Date: 2018-06-12  00:08:08 Commandline: aptdaemon role='role-commit-packages' sender=':1.376' Install: intel-microcode:amd64 (3.20180425.1~ubuntu0.18.04.1, automatic), iucode-tool:amd64 (2.3.1-1, automatic), linux-headers-4.15.0-23:amd64 (4.15.0-23.25, automatic), amd64-microcode:amd64 (3.20171205.1, automatic), linux-modules-4.15.0-23-generic:amd64 (4.15.0-23.25, automatic), linux-headers-4.15.0-23-generic:amd64 (4.15.0-23.25, automatic), linux-modules-extra-4.15.0-23-generic:amd64 (4.15.0-23.25, automatic), linux-image-4.15.0-23-generic:amd64 (4.15.0-23.25, automatic) Upgrade: linux-headers-generic:amd64 (4.15.0.22.23, 4.15.0.23.25), gnupg-utils:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), linux-libc-dev:amd64 (4.15.0-22.24, 4.15.0-23.25), gpg-wks-client:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gnupg-l10n:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), linux-image-generic:amd64 (4.15.0.22.23, 4.15.0.23.25), gpg-wks-server:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gpg:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), linux-signed-generic:amd64 (4.15.0.22.23, 4.15.0.23.25), dirmngr:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gpgv:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gnupg:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gpg-agent:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), linux-generic:amd64 (4.15.0.22.23, 4.15.0.23.25), gpgconf:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1), gpgsm:amd64 (2.2.4-1ubuntu1, 2.2.4-1ubuntu1.1) End-Date: 2018-06-12  00:09:44   My processor is Intel 4710hq and the update operating installed something related to AMD processors.. Maybe it broken something ?  So why my system isn't working? Is it a kernel problem? and how can I fix it?


How can I achieve this type of illumination?   This is my result, and it isn't similar as image above  Can anyway tell me the scene setup, and material node setup? Thanks


Digging Deep into the Profile page - About me section

I have a quick question about profiles or the "about me" section of your profile, I know a lot of people might feel it's nonsense but hey: I respect your opinion so don't brush off, just let me know what you think...   I have seen people link their blogs, facebook, or twitter, etc... - so I want to know how deep can you go with your profile - with deep being the definition of can anything, you put in your profile not seem to look like spam, or self exposure, or abusing the site or violating it??   What I intend to do after getting a response from you guys is link or add referrals, banners, projects, or other content that tends to only merit me.  By the way, I am a young developer so improvements and progression is what I am yearning for...!


I'm trying to understand how we got to the "citardauq" formula   (note: "quadratic", reversed)  I found , first answer by Andre says      Multiply "top" and "bottom" by $-b\mp\sqrt{b^2-4ac}$. After the smoke clears, we obtain $$\frac{2c}{-b \mp \sqrt{b^2-4ac}}.$$   Question is, how does the smoke actually clear? I was able to get to the final result by just distributing and canceling out terms but I wasn't sure I went about it the right way, the $\mp$ confused me a bit. How do you multiply $\pm \sqrt{b^2-4ac}$ with $\mp \sqrt{b^2-4ac}$?


GRUB: No such device after deleting the partition Ubuntu was installed on

Today I did something extremely dumb. I found that I barely use Linux and decided to delete it. To do so, I deleted the partition with the plan to use it as some free space for storing backups while working with my Windows. I installed Ubuntu via unetbootin and it was dual-booted with Windows 10. The problem is, now I am redirected to the grud rescue screen everytime I power on the computer and I get some text, saying that the file system is unknown and the device cannot be found. I made a Windows 10 bootable USB to repair the Windows Bootloader but I can't load it for some reason. When I turn on the computer, I press F11 (as instructed) and I get a screen with some options. I pick the bootable USB but I get a message saying that the system disk is invalid, giving me the advice to replace it and press any key after doing it. I'm not really sure what all of this means, I would love to get some help!


Chapterwise page range in the TOC including bibliography and index

Follow-up question to    The provided solution is working fine with chapter's range only. But, it is not working with the References' section and the Appendix. Can you kindly provide a suitable solution?


what factors can cause major drop in ranking after site migration?

My client has implemented the changes below:   website platform URL path structure (adding some subfolders) removing www from the URL content (meta tags)   They have lost theirs ranking even for branded keywords from 1 to nothing.but they haven't lost traffic. I guess these might be the problems:  - I checked the previous URLs' search console accounts and some of the uRLs are still valid.  - There are lots of redirect chains  - some of the new meta tags focus on the same keyword  - There have been lots of unnecessary changes in the URLs like adding a hyphen. so there are lots of unnecessary redirections as well.  - Also it is a dental services website. I've heard that Google new algorithms my have affected it as well.  That would be great if you let me if I am right or not. Also should I exclude all the redirected links in the previous search console accounts?


Reading excel from c#, converts long numbers to exponential values

I am reading the Excel having a column of long numeric values of more than 8 digit. It also may start from 0 for example 003787677. Examples in my case are 173370148, 142350093 etc.  The values in dataset have issue for the columns having more than 8 digit length, it converts them in to exponential value like 1.4235e+008  I don't want this value to be converted to exponential or a way to convert it back to correct value.  I cannot change excel column format to number as i may have values started with 0 in front or 00 in front. So i am using text as column format cell  I am using following type of connection while reading .xls at windows 2003 server machine 32 bit:  provider = "Microsoft.Jet.OLEDB.4.0;Data Source=@filename;Extended Properties='Excel 8.0;HRD=Yes;IMEX=1";   Using below statements to read excel:  OleDbDataAdapter oleAdpt = new OleDbDataAdapter("SELECT * From [Sheet1$]", con);   oleAdpt.Fill(dtexcel);


g++ undefined reference to library symbols

There are linker errors to Symbols defined by SFML, but i cannot see how they occur despite that I linked the lib. I'm using make, which I currently learn and I want to build a minimalistic dev-environment with it.  Give a holler if you need anymore information than the following. I'd just like to minimize the questions size.  XXX@XXX ~/Documents/dev/cpp/proj/beep $ make clean                                                                                rm -f build/*.o build/release/*.o build/debug/*.o build/test/*.o XXX@XXX ~/Documents/dev/cpp/proj/beep $ make tests //test obj first g++ -std=c++14 -Wall -pthread -Iinclude   -c test/Packager.ut.cpp -o   build/test/Packager.ut.o -g3 //now the src obj  g++ -std=c++14 -Wall -pthread -Iinclude   -c src/ClientAddress.cpp -o build/debug/ClientAddress.o -g3 g++ -std=c++14 -Wall -pthread -Iinclude   -c src/Packager.cpp -o build/debug/Packager.o -g3   g++ -std=c++14 -Wall -pthread -Iinclude   -c src/Package.cpp -o build/debug/Package.o -g3 Built debug object files. //now the first test itself g++ -std=c++14 -Wall -pthread -Iinclude  -lsfml-network  build/test/Packager.ut.o build/debug/ClientAddress.o build/debug/Packager.o build/debug/Package.o -g3  -o bin/test/Packager.ut  build/test/Packager.ut.o: In function `main': /home/XXX/Documents/dev/cpp/proj/beep/test/Packager.ut.cpp:69: undefined reference to `sf::IpAddress::IpAddress(char const*)' build/debug/ClientAddress.o: In function `nw::udp::ClientAddress::ClientAddress()': /home/XXX/Documents/dev/cpp/proj/beep/src/ClientAddress.cpp:21: undefined reference to `sf::IpAddress::IpAddress(char const*)' build/debug/ClientAddress.o: In function `nw::udp::operator==(nw::udp::ClientAddress const&, nw::udp::ClientAddress const&)': /home/XXX/Documents/dev/cpp/proj/beep/src/ClientAddress.cpp:33: undefined reference to `sf::operator==(sf::IpAddress const&, sf::IpAddress const&)' ...   and so on ... every mentionings of sf:: inside the files are quoted  I get the same error pattern if I try to compile the other tests (for ClientAddress for example)  Of course i now want to know what i linked wrong how there. As you can see the lib is linked with -lsfml-network. I also checked the SMFL installation, so it is at least less likely a lib file gone missing from standard directory.  I guess there is an error in my usage of g++ , compiling and linking orders or smth.  My project tree:  >bin ----mainexec --->test     ----.ut >build --->debug     ----.o --->release     ----.o --->test     ----.ut.o >src ---- .cpp >include ---- .h >test ---- .ut.cpp   As a second part of the question, I'd like to ask if there is a better way to build tests, because I simply link every src-obj with my test-obj, even if there are way more src-obj linked than it actually needs. It should work and I do not have to maintain my test dependencies all the time, which later would be very cumbersome. What is common ?


I can't send a JSON object to JAX-RS (Jersey) service with POST

I developed an Angular application and I will consume the RESTful service developed using Java (JAX-RS - Jersey).  This is my service:  @POST @Path("/add") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response addNewContact(Contact instance) {     Contact contact = new Contact(instance.getLastName(), instance.getFirstName(), instance.getPhone_1(),             instance.getPhone_2(), instance.getEmail());     contact.setPicture("Unknown.png");     try {         dao.save(contact);         return Response.status(200).entity(contact).build();     } catch (Exception e) {         return Response.status(400).entity("IMPOSSIBLE D'AJOUTER CETTE PERSONNE").build();     } }   This is the config in web.xml :  <servlet>  <servlet-name>jersey-serlvet</servlet-name>  <servlet-class>     com.sun.jersey.spi.container.servlet.ServletContainer  </servlet-class>  <init-param>   <param-name>com.sun.jersey.config.property.packages</param-name>   <param-value>ma.restfull.services</param-value>  </init-param>  <init-param>   <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>       <param-value>true</param-value>  </init-param>  <load-on-startup>1</load-on-startup> </servlet>  <servlet-mapping> <servlet-name>jersey-serlvet</servlet-name> <url-pattern>/api/*</url-pattern> </servlet-mapping>   My entity is this:   @AllArgsConstructor @NoArgsConstructor @Entity(name = "contact") public class Contact {  @Id @GeneratedValue private int id;  @Column(name = "first_name", length = 50, nullable = false, unique = false, updatable = true, insertable = true) @Getter @Setter private String firstName;  @Column(name = "last_name", length = 50, nullable = false, unique = false, updatable = true, insertable = true) @Getter @Setter private String lastName;  @Column(name = "phone_1", nullable = true, unique = false, updatable = true, insertable = true) @Getter @Setter private String phone_1;  @Column(name = "phone_2", nullable = true, unique = false, updatable = true, insertable = true) @Getter @Setter private String phone_2;  @Column(name = "email", nullable = true, unique = true, updatable = true, insertable = true) @Getter @Setter private String email;  @Column(name = "picture", nullable = true, unique = false, updatable = true, insertable = true) @Getter @Setter private String picture;  public Contact(String lastName, String firstName, String phone_1, String phone_2, String email) {     super();     this.firstName = firstName;     this.lastName = lastName;     this.phone_1 = phone_1;     this.phone_2 = phone_2;     this.email = email; } }   but, when I send the request I get this   the object sent by Angular is like this:   Object { lastName: "Nom", firstName: "Prénom", phone_1: "12346565464", phone_2: "1234567890", email: "aaa@aaa.com", id: 0, picture: "Unknown.png" }


Is the Russell paradox the only possible contradiction to the axiom schema of comprehension due to Frege (1893)? $\{x:P(x)\}$

Is the Russell paradox the only possible contradiction to the axiom schema of comprehension due to Frege (1893)? The axiom that says that if $\varphi$ is a property, then there exists a set  $Y = \{X: \varphi(X)\}$ of all elements having property $\varphi$.  If not then what are other paradoxes that result from that axiom?


Subversion and shared files across repositories/projects?

I am migrating a client's SourceSafe repository (3 projects) to SVN and two of the projects share source files.  (These projects are separate products - with different names and release versions, etc)  Has SVN resolved this shortcoming?  How do people generally handle this scenario?  Of the options I know about/can think of   Use the external or extern or whatever for SVN.  I hear this is not a good option for various reasons Create a new project (maybe called shared) that contains the source.  The problem with this is that we still have to get that code (it is not a library) and import it into the project somehow.  It can be shown to be the same problem as the one above and it introduces the overhead of an additional product/project. Just check in the files in both repositories and cross-update them.  This requires developers to know about the sharing and to remember to check in.  I suppose I could write a script that checks all known shared files and updates them when needed. Have one repository for the two projects that share.  This leaves me with the problem having to create a top level project/repository that contains the two and it is a problem for labeling.  I do not really want to label the top pseudo project.  (the tags, trunk and branch things are not exactly where I would want them.)   I will probably go with the last option.  Any other comments?


I have a medium-sized list (about a few dozen items, the container is very likely to have internal vertical scrolling). There is no sorting, so items are displayed in the order of their addition to the list. They are added through a series of controls located above the list with a "submit" button at the end. A colleague and I disagree as to where the new items should appear – at the bottom of the list, or at the top.


Plural form of "brother-in-law" when a possessive case is involved

1) My brother's friend's opinions      2) My brothers' friend's opinions   I hope "1" and "2" are pretty clear and correct.  Now, let us suppose that the brother in "1" is a brother-in-law and that all the brothers in "2" are brothers-in-law.  Question is: How do we rewrite "1" and "2" in these cases?  Following the J.R.'s suggestion, I have done some preliminary researches and I found that when in-laws become possessive brothers-in-law is written brother-in-law's. So, I would conclude that we should rewrite "1" and "2" in the same way, as follow.     i) My brother-in-law's friend's opinions.      ii) My brother-in-law's friend's opinions.   But, if it is so, how can we distinguish the two different cases?


Why doesn't $d(x_n,x_{n+1})\rightarrow 0$ as $n\rightarrow\infty$ imply ${x_n}$ is Cauchy?

What is an example of a sequence in $\mathbb R$ with this property that is not Cauchy?  I know that Cauchy condition means that for each $\varepsilon>0$ there exists $N$ such that $d(x_p,x_q)<\varepsilon$ whenever $p,q>N$.


In the film , Jennifer Lawrence's character is seen drinking some kind of yellow substance several times. She pours it from what looks like an old bottle into a glass of water, then drinks it.  What is it, and why does she drink it?  The bottle it's poured from and her drinking it can be seen briefly in this trailer.


Virtualbox not seeing any usb devices in the usb filters settings

I was following this question but found a problem.   I used guvcview to test the camera, it works. I installed the 12.04 virtualbox release from their website and installed the extension pack. But when I click the usb with the green plus sign it says no devices available.


Why does my calculated column not pick up the correct ID

I'm trying to create a calculated column that uses the list item's ID field as part of the calculated string value. When I create a new list item, the calculated field seems to always use 0 as the ID value. I know that during creation, the new list items ID is 0 until the content database is updated, which apparently generates the actual ID. Is there a way to get the calculated column to accurately reflect the ID value of the list item?


Consequences of changing a value (struct) type to a reference (class) type

Consider a struct type defined as follows: public struct Device {     public string Name {get; set;}     public string Data {get; set;}      public void UploadData(DataSource source)     {         source.data += Data;     } }  Now, I would like to change the Device to a class type and use it to describe different types of devices: public class Device {     public string Name {get; set;}     public string Data {get; set;}      public virtual void UploadData(DataSource source)     {         source.data += Data;     } }  I'm aware that one should be cautious in making this step because the parameters are passed by reference in the second case. But somehow I can't figure out a use case where this change will have negative consequences for uploading data to the data source.


Priority of grammar, spelling and punctuation in questions

How much priority should be given to grammar, spelling and punctuation when editing a question? How relevant are those? Should questions and answers be edited because of the sole reason there are spelling/grammatical errors?


Hi everyone plz can someone help me i am looking for the Ubuntu 16.04 printer driver for a zebra GK420g label printer. I have been looking for driver for about 3 monts and i cant find it


SharePoint 2013: Calendar control click takes to top of the page

I am using date time field (Calendar control) in SharePoint 2013 page layout, the calendar control is half way down to the page. Once calendar control is clicked, it takes to the top of the page instead of positioning the right control in chrome browser. Its working fine in IE and Firefox.  Is this default behavior of Chrome or is this resolvable issue?  Same issue reported on Technet with no answers:


Why is my Mega Stone not in the location it should be?

I upgraded my Mega Ring and have been looking for Mega Stones, and I found . However, the Mega Stone isn't in the place it's supposed to be, and I'm sure the location is right. Why isn't my Mega Stone here?


I want to write an algorithm such that what I have attached, I am somehow elementary in writing algorithms with latex. I do not want the exact answer, only a tip or an example similar to what I have attached.


I just performed a search on SO and clicking on the last page of the result list I see .  Some results are listed with too much details IMO. I suppose that since my query was body:"same problem" the engine is trying to highlight the same problem string, but it seems that it gives too much context around the occurrences of that string.  Is this a bug or is it by design?


Can't install country-restricted app even if I'm physically in this country

I am trying to install this banking app from Google Play:   This app is allowed to be installed only by users in Poland. My Google account was created in Brazil, but I am in Poland since almost 7 months, so I should be allowed to install this app.  On Google Play, it says: This app is incompatible with all of your devices., further more, on my phone's tooltip, it reads: This item cannot be installed on your device's country..  That is very problematic, as this device was bought in Poland, is using a Polish SIM card and most importantly, it is physically in Poland, so how can it not be compatible?  How can I force-install this app on my device? It is a Sony Xperia Z Ultra, rooted and flashed with CM12.1.


How to test whether a file uses CRLF or LF without modifying it?

I need to periodically run a command that ensures that some text files are kept in Linux mode. Unfortunately dos2unix always modifies the file, which would mess file's and folder's timestamps and cause unnecessary writes.   The script I write is in Bash, so  I'd prefer answers based on Bash.


After I choose Ubuntu from the GRUB menu which appears on the primary monitor, the login screen appears on the second monitor which is something that I don't want.  How can I prevent this, so that everything appears on the primary monitor?


Can the symmetric group $S_n$ be imbedded as a subgroup in $A_{n+1}$?

I'm working through Rotman (1994). It's the 2nd chapter where my curiosity lead me to a question that is not from the book. Here's the problem that inspired the question:      2.8. Imbed $S_n$ as a subgroup of $A_{n+2}$, but show, for $n\ge2$, that $S_n$ cannot be imbedded in $A_{n+1}.$    Since the alternate subgroup has the property of even parity, I thought that a little investigation of parity for the second and third symmetric groups was in order. So I constructed a table for each of them, grouped by even and odd number of disjoint products.   I'll forego writing the actual table and simply provide the answers. In symmetric groups with an even idegree, two even permutations come together under composition to produce an even permutation. Two odds also make an even. Two different parities produce odd elements.   When the symmetric group has an odd degree, e.g. $S_3$, two odds make an odd, two evens make an odd, and two different parities make an even element. Exactly the opposite results from the symmetric groups with even index.   Two questions: is this enough to prove the $A_{n+1}$ case? And can this be generalized modulo 2 e.g. $A_{2n+1}$?


Fitting sheetrock(plasterboard) to a ceiling, to be taped and skimmed. Should the joints be tightly butted, or leave a gap, of what size?

I'm fitting square edge 1/2" sheetrock to a ceiling. I've not been able to find any best practice for how this should be fitted. When the plasterer comes to skim it, some mud will squish through the mesh tape into the gap between the boards. Should the boards be butted tightly together to minimise the length of the tape/mud bridge between them? This also minimises the amount of wet mud below the board surface, that will presumably shrink as it dries. Should I aim for a 1/16" or even a 1/8" gap between the boards, to encourage a 'fill' of the joint, thus perhaps stiffening the joint between the boards, helping to prevent any movement and the possible development of hair-line cracks? There is now even more wetness below the surface which could exacerbate shrinkage issues. If I do aim for a significant gap between the boards, is it worth filling this gap with either mud or caulk and allow to dry well before the plasterer skims? This would stiffen the joint, and reduce the amount of wet mud below the tape. I probably can get a tight joint between the papered long edges of the boards, but with cutting irregularities, that's going to be less possible on any cut ends.


Provide more meaningful error message when user is logged off

When you're in the middle of the edit process of anything (tested on editing my own question) and you're logged off during that (on another tab, etc.) you'll see "An error has occured during posting" error (or something similar).  Could this be changed to something more meaningful (like in many, many other web pages in the very same conditions), e.g.:  "It seems, you have been logged off (possibly in another tab). Login again and submit this form", or something similar?


Looking for a novel (or author of it) where the world is a seemlingly endless vertical cliff

This is a long shot, but wondering if anyone can help. Trying to recall a sci-fi author. One of his books was about a world that was all vertical, people lived on this eternal cliff (I think they caught up-draughts and down-draughts to go up and down the cliff).   Another story by the same author was about a criminal who was imprisoned in a giant, inescapable structure in distant space (I think that had a red cover).


Can't update, apt-get -f install error "no space left on device"

I have been using Ubuntu on my laptop for a while now but am not proficient in it. I am using Ubuntu 14.04 LTS on a Dell Inspiron Laptop, Pentium(R) Dual-Core CPU T4200 @ 2.00GHz × 2, 3GB memory.   The Software Updater crashes and updating from the Terminal gives back unmet dependencies. When I try apt-get -f install I get the following:  Reading package lists... Done Building dependency tree        ... 0 upgraded, 2 newly installed, 0 to remove and 201 not upgraded. 5 not fully installed or removed. Need to get 0 B/10,7 MB of archives. After this operation, 87,5 MB of additional disk space will be used. Do you want to continue? [Y/n] y ... (Reading database ... 896154 files and directories currently installed.) Preparing to unpack .../linux-headers-4.4.0-112_4.4.0-112.135~14.04.1_all.deb ... Unpacking linux-headers-4.4.0-112 (4.4.0-112.135~14.04.1) ... dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-112_4.4.0-112.135~14.04.1_all.deb (--unpack):  error creating directory `./usr/src/linux-headers-4.4.0-112/drivers/isdn/act2000': No space left on device No apport report written because the error message indicates a disk full error    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../linux-headers-4.4.0-112-generic_4.4.0-112.135~14.04.1_amd64.deb ... Unpacking linux-headers-4.4.0-112-generic (4.4.0-112.135~14.04.1) ... dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-112-generic_4.4.0-112.135~14.04.1_amd64.deb (--unpack):  error creating directory `./usr/src/linux-headers-4.4.0-112-generic/include/config/lp8788': No space left on device No apport report written because the error message indicates a disk full error                                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/linux-headers-4.4.0-112_4.4.0-112.135~14.04.1_all.deb  /var/cache/apt/archives/linux-headers-4.4.0-112-generic_4.4.0-112.135~14.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   df -h shows the /boot partition is 84% full  $ df -h Filesystem      Size  Used Avail Use% Mounted on udev            1,5G  4,0K  1,5G   1% /dev tmpfs           298M  1,4M  296M   1% /run /dev/sda1        41G   20G   19G  52% / none            4,0K     0  4,0K   0% /sys/fs/cgroup none            5,0M     0  5,0M   0% /run/lock none            1,5G   24M  1,5G   2% /run/shm none            100M   56K  100M   1% /run/user /dev/sda5       945M  734M  147M  84% /boot /dev/sda7        12G  8,1G  3,0G  74% /usr /dev/sda3       178G  152G   26G  86% /media/andrei/OS


How to declare new path commands in TikZ?

The TikZ Manual, section 59.5 and     explain how to declare new shapes for TikZ nodes with \pgfdeclareshape{myshape} ... to later use them with  \node[shape=myshape] (name) {text};   But is it also possible to create a new shape to place on a path, which would then be used like this?  \draw (0,0) myshape (5, 7);   How can one declare a new path command?


How do I change the mode of perspective?

I'm working on a scene that, currently, is much more convenient when the view is.. not the correct perspective. There's a word for this, but I have no idea how to phrase it and my tries to look it up has all come up with weird results. (usually directions on how to make your view point from a certain direction) This has probably already been answered here, so please bear with me; I just cannot find anything that has to do with the problem I'm having. I drew a photo to make it easy: (excuse my crappy mouse-drawing skills)  Thanks!


Grab a specific property bag using ECMA script

I am trying to grab a key/value pair from a specific property bag but can't find any documentation or example code on how to grab a property bag. Currently I can only seem to grab allProperties. Here is my code:      <CommandUIHandler           Command="FCS.Intake.Tab.Reports.TL"           CommandAction="javascript:           function getWebProperty() {          var ctx = new SP.ClientContext.get_current();         var web = ctx.get_site().get_rootWeb();         this.props =  web.get_allProperties();          ctx.load(web);          ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));     }      function gotProperty() {       window.location.href = this.props.get_item('PropertyKey1');            }      function failedGettingProperty() {         alert('failed');     }   getWebProperty();"         />   This doesn't work because the key/value pair is located in a property bag as opposed to a site property.  Does anyone know how to grab a specific property bag using ECMA script?


Difference between generic argument constrained to an interface and just using the interface

What is the difference between this:  void MyMethod(IMyInterface value) {     //... }   and this:  void MyMethod<T>(T value) where T : IMyInterface {     //... }


Indie movie about alien abduction on popcorn time, guy wakes up in a hospital with super strength, eventually realizes he's on a spaceship

A guy wakes up at a place similar to an hospital and begins to run away from there. Seems to be on Earth and he's being chased. At some point he realizes he has super strength, like an orange glow comes out from his arms. At the end he realizes he's not on Earth, he's on a spaceship that imitates Earth.


As the "computer guy" in the family, I am the default person to ask computer questions.  My 10 year old nephew wants to install a Minecraft mods and asked me how to do it.  I have never played Minecraft, so I am unfamiliar with it.  I did some quick searches and it appears Curse supports Minecraft.  I used Curse back in my Warcraft days and found it easy to use for installing mods.   Is Curse as easy to use for Minecraft as it was for Warcraft?  If I get it installed on their computer remotely, will it be easy for a 10 year old to use?


brew search generates mail notification "You recently used a password to access an endpoint through the GitHub API using Homebrew/2.2.2"

I got a mail from GitHub:     You recently used a password to access an endpoint through the GitHub   API using Homebrew/2.2.2 (Macintosh; Intel Mac OS X 10.15.2)   curl/7.64.1. We will deprecate basic authentication using password to   this endpoint soon:            We recommend using a personal access token (PAT) with the appropriate   scope to access this endpoint instead. Visit    for more information.      Thanks, The GitHub Team   The mail came after I searched for formula:  ~ brew search test Warning: Cask 'sqleo' is unreadable: undefined method `method_missing_message' for Utils:Module Warning: Cask 'squirrelsql' is unreadable: undefined method `method_missing_message' for Utils:Module Warning: Cask 'yiddish-klal' is unreadable: undefined method `method_missing_message' for Utils:Module ==> Formulae cpptest                      cxxtest                      memtester                    phoronix-test-suite          slowhttptest                 testdisk                     unittest                     vttest cpputest                     git-test                     minetest                     shelltestrunner              speedtest-cli                testssl                      unittest-cpp  ==> Casks aja-system-test                                colortester                                    emacs-pretest                                  nsregextester                                  sqlitestudio clementine-latest                              eclipse-testing                                latest                                         socket-io-tester                               synology-note-station-client   Always a prompt like this pops up:    It look like I have some kind of misconfiguration? I don't like that brew uses my GitHub credentials.


How many days does one have to wait before reusing a surgical or respiratory mask so that it is free of the SARS-CoV-2 virus?

I read the following in a private email:     One of my neighbors emailed me and said he has a few masks that he uses and recycles them; he wears one, when done he carefully stores it into a sealed plastic bag, uses the next one, does the same, and eventually 7 or more days (or masks) later, he rotates back to the original one and repeats the entire cycle. He mentioned that his assumption is that after 7+ days, the coronavirus is probably neutralized.  I’m considering whether to adopt this method, or perhaps combine it with some combination of heat, ozone, and/or UV.   How many days does one have to wait before reusing a surgical or respiratory mask so that it is free of the ?    I have crossposted the question at:


Run program through terminal with custom name

I want to run a program, for example gedit from terminal.  How can I run gedit through terminal by just typing ge on terminal?


How to remove a Windows 7 bootcamp partition from Mojave?

I installed Windows 7 via bootcamp several years ago with much older version of macOS but now when I want to delete it via Boot Camp Assistant, it doesn't recognize my bootcamp to remove and also tells me I need to have my whole partition as one, which makes sense.  I read around and can try to remove my Bootcamp partition via Disk Utility but I don't think that would remove the Bootcamp menu and because I'm planning to install Windows 10, I'm not sure how things will go since I have already "a bootcamp" configuration.  Thanks.


Software to block specific internet web pages

I am looking to download some software on an old laptop that runs the Ubuntu Operating System on it.  The software that I am interested in is something that will allow me to block specific internet web pages.  Does anyone know of any such software for the Ubuntu system?


Context: I need to solve one variation of the . Problem: Two players ($A$ and $B$) throw a coin until one of the victory sequences appears. For player $A$ the victory sequence is $HTT$, for player $B$ the victory sequence is $TTH$. What is the probability that $A$ wins and what is the expected number of throws given that $A$ won? My attempt: Intuitively, it seems that player $B$ is more likely to win. Basically, I reliase that we can use the Markov-Chains, but my idea is only draw a binary tree and consider the sequences on the n-th step. My another idea was to calculate the expected number of throws to get, say, $HH$ that would be equal to $r_{HH}$: $$r_{HH} =  \frac{1}{4}E(number|HH) + \frac{1}{4}E(number|HH)+ \frac{1}{4}E(number|TT)+ \frac{1}{4}E(number|TH) = \frac{1}{4}(9 + \frac{5}{2} r_{HH})$$  And get $r_{HH}$. My issues: I don't really understand how to join these ideas to get a proper solution.


Is there a Kill() command in python that doesn't kill blender as well?

Pretty simple but didn't see any viable solutions and couldn't come up with a simple one myself.  is there a kill() command in Blender that kills only the current script/process but doesn't also kill blender?  I'd rather not have to grab the process manually first then end it.  Any help would be much appreciated thanks in advanced.


I install new kernel (from launchpad mainline kernel) in my Ubuntu 12.04, in order to test some issues I'm having.  Now, older kernels don't appear in the list at boot, just the new kernel. I can boot from the old kernel changing boot parameters at grub time, but I rather like to have a list entry I can select.


adding 1 to an integer within println statement in Java

super beginner here, so please bear with me. I am writing this program to print Fibonacci series. What I want is the result to display the series with prefix like F0 = 0, F1 = 1, F2 = 1, F3 = 2 and so on. Some others who faced this problem were not using parenthesis in the println statement, but I am using them, still getting a wrong display.  I wrote the following program:  public void run () { int firstNo = 0;  int secondNo = 1;  int n = 0;  println ("F"+(n)+ "= " + firstNo );// FIRST LINE  println ("F" +(n++)+ "= " + secondNo);// SECOND LINE  for (int i =0; i <7; i++) { firstNo += secondNo; println ("F"+(n++)+ "= " + firstNo ); secondNo +=firstNo; println ("F" + (n++) + "= " + secondNo); }}   The display I am getting is F0 = 0, F0 = 1, F1 = 1, F2 = 2 and so on  However if I cahnge the SECOND LINE from n++ to n=n+1 the display I get is F0 = 0, F1 = 1, F1 = 1, F2 = 2 etc  Q1 : Why am I not able to get the suffix of F in sequence? Am I doing something wrong in adding 1 to integer n within the println statement?  Q2 : Isn't n++ the same as n = n+1? Then why am I getting this difference in the display?


If $a,b$ are positive integers such that $a^{n}+n$ divides $b^{n}+n$ for every $n$, then $a=b$

I need help with this question.     Let $a$ and $b$ be positive integers such that $a^{n}+n$ divides $b^{n}+n$ for every natural number $n$. Show that $a=b$.   Any help would be appreciated! Thanks!


How to make Bootable USB of Windows 8.1 from Ubuntu 14.10

I want to make a bootable USB of Windows 8.1 from Ubuntu 14.10 so that I can install it on my laptop.   I tried using winusb and UNetbootin, but both of them failed.   What else can I try?  I have Windows 8.1 Pro 64-bit iso, and I am using Ubuntu 14.10 64-bit.


What is a single word for "point(s) of personal information"?

I can't recall if the word has a singular form. The plural form has a meaning closely analogous to "personal data" and my vague personal recollection is that it ends with an 'i' or an 'a'.  It is not a general word like 'miscellany', 'factoids', 'data', etc. It refers specifically and exclusively to bits of personal information such as name, age, favourite food, etc.  Any help jogging my memory would be much appreciated.  Example sentence:     When it came time to introduce himself, James divulged only the basest [word]: his given name, his occupation, and the names of his dogs.


sum of independent normally distributed random variables in regression model

In the simple linear regression model, $\hat{b}$ is the sum of independent normally distributed random variables .   Is it false because it talks about $\hat{b}$ and not $b$? because in the simple regression model the equation is $y=a+bx+e$ and not $y=\hat{b}x+a$


Latest MiKTeX: suggestions on how to install new fonts using the MiKTeX Console

MiKTeX has changed its look by introducing the MikTeX Console:    In the past I have always updated and added fonts not included in the MikTeX distribution using the mask Settings, Update and Package Manager.  Now I don't understand the procedure for installing additional font packages  not included into the MiKTeX distribution (for instance, the mtpro2 and `classico packages) using the MiKTeX Console.   Please can you help me and explain, step by step, how do I install these fonts using the MiKTeX Console?


Why use safe casting instead of declaring for generic data?

Why is it that in so many books they would say something along this line:  private E[] data;//E is a generic type  public ArrayList(int capacity){   data = (E[]) new Object[capacity];//safe casting }   instead of saying   data = new E[capacity];   why use safe casting when you can just declare it this way? does it have anything to with the fact that generic data will be declared during runtime instead of compile time? or does it more or less make no difference??


$\operatorname{gcd}(ab,a+b)=1$ if $a$ and $b$ are relatively prime

I'm trying to show that if $\operatorname{gcd}(a,b) = 1$, then $\operatorname{gcd}(ab,a+b)=1$.  I've tried  to use the gcd properties: $$\operatorname{gcd}(a,b)=1 \implies  \operatorname{gcd}(a,a+b)=1\\\operatorname{gcd}(a,b)\implies\operatorname{gcd}(ab,b^2)=b$$ but I got stuck. Any hint will help.


Java - My program is rounding down when it should be rounding up

I am building a program that calculates the total cost of a restaurant bill. My program is rounding $18.135 down to $18.13. This is the code that I am using to round it to two decimal places:  tip = Math.round((charge * TIP_PERCENTAGE) * 100) / 100d;   All of the variables are doubles, and charge is equal to 100.75 and TIP_PERCENTAGE is equal to 0.18.  I tried a couple of things but I have not had any luck. I want the program to round $18.135 up to $18.14.


RewriteCond pattern all match and logs showing the correct redirect link but website still not redirect

I have done N times of redirection and not successful for N times and now this is the most close to what I want but my website still wasn't redirect. I want my website to redirect from http+example.com to https+www.example.com Below is my .htaccess redirect:  RewriteEngine On #Options +FollowSymLinks RewriteCond %{HTTPS} !on  RewriteCond %{HTTP_HOST} example.com [NC] RewriteRule .* https://www.example.com%{REQUEST_URI} [R=301,L]also    This is the logs that I got:  RewriteCond: input='off' pattern='!on' => matched RewriteCond: input='www.example.com' pattern='example.com' [NC] => matched rewrite '' -> 'https://www.example.com/' explicitly forcing redirect with https://www.example.com/ escaping https://www.example.com/ for redirect redirect to https://www.example.com/ [REDIRECT/301]   The logs looks perfect and it is what I hope it redirect to but it wasn't. Also, when I scroll down deeper, I found some weird redirect as below:  rewrite 'ads.txt' -> 'https://www.example.com/ads.txt' [Thu Apr 09 16:57:40.910510 2020] [rewrite:trace2] [pid 5472:tid 1148] mod_rewrite.c(482): [client 66.249.79.219:43577] 66.249.79.219 - - [www.example.com/sid#5f3b3aead0][rid#5f3bc4a2c0/initial] [perdir D:/wamp64/www/example/] explicitly forcing redirect with https://www.example.com/ads.txt   The link itself is correct but why with ads.txt? I also found this referrer which I don't know where it come from:  rewrite '' -> 'https://www.example.com/', referer: https://unknownsite.az/ explicitly forcing redirect with https://www.example.com/, referer: https://unknownsite.az/   I also notice it sometime rewritecond input with some IP address but I didn't define any IP address anywhere. Please do help me on this, I know that I'm getting close to the answer.  Kindly help me and thanks in advance! Do let me know if you guys need any more info, I will update it accordingly.


Why is the CPU frequency stuck at half the maximum tolerance?

I have an old Processor Intel® Core™2 CPU T7200 @ 2.00GHz × 2 Why is the current frequency stuck at 1GHZ if the CPU is built for up to 2GHZ? Here are the frequency #s when I run the following script root@imparoUbuntu-ThinkPad-T60:~#  paste <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_min_freq) <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq) <(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq) | column -s $'\t' -t 1000000  1000000  2000000  Min          Current        Max  1000000      1000000       2000000   1000000      1000000       2000000  Also please see "current policy" below: $ cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0:   driver: acpi-cpufreq   CPUs which run at the same hardware frequency: 0   CPUs which need to have their frequency coordinated by software: 0   maximum transition latency: 10.0 us.   hardware limits: 1000 MHz - 2.00 GHz   available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz   available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil   **current policy: frequency should be within 1000 MHz and 1000 MHz.**                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1 GHz.   cpufreq stats: 2.00 GHz:100.00%, 1.67 GHz:0.00%, 1.33 GHz:0.00%, 1000 MHz:0.00%  (4) analyzing CPU 1:   driver: acpi-cpufreq   CPUs which run at the same hardware frequency: 1   CPUs which need to have their frequency coordinated by software: 1   maximum transition latency: 10.0 us.   hardware limits: 1000 MHz - 2.00 GHz   available frequency steps: 2.00 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz   available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil   **current policy: frequency should be within 1000 MHz and 1000 MHz.**                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1 GHz.   cpufreq stats: 2.00 GHz:100.00%, 1.67 GHz:0.00%, 1.33 GHz:0.00%, 1000 MHz:0.00%  (5)  PS: I already changed governor to "performance" but current policy keeps frequency range at 1000 MHZ for both min and max despite the CPU being built for 2Ghz


Creating a bibliographic entry for, and referencing a report from a Governmental Commission

I want to reference a report by The Financial Crisis Comission. For that, I've used the following:  \documentclass[12pt,a4paper]{report}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath}  \usepackage[backend=biber,style=authoryear]{biblatex}  \addbibresource{Bibliography/Bibliography.bib}  \begin{document}  some loooooooooooooong text\footnote{ See \textcite{FCIC11} }  \printbibliography[heading=bibintoc]  \end{document}   In the Bibliography.bib file I have   @report{FCIC11,     author      = {The Financial Crisis Inquiry Comission},     title       = {The Financial Crisis Inquiry Report - Final Report of the National Comission on the Causes of the Financial and Economic Crisis in the United States},     institution = {US Government Printing Office},     year        = {2011} }   However, in the text, what is shown is Comission(2011), as if The Financial Crisis Inquiry Comission was the name of a person.   How can I reference it as The Financial Crisis Inquiry Comission (2011)


I have recently started using Vim as my text editor and am currently working on my own customizations.  I suppose keyboard mappings can do pretty much anything, but for the time being I'm using them as a sort of snippets facility almost exclusively.  So, for example, if I type def{TAB} (:imap def{TAB} def ():<ESC>3ha), it expands to:  def |(): # '|' represents the caret   This works as expected, but I find it annoying when Vim waits for a full command while I'm typing a word containing "def" and am not interested in expanding it.   Is there a way to avoid this or use this function more effectively to this end? Is any other Vim feature better suited for this?     After taking a quick look at , it looks like it's the best option and much easier to customize than I first thought.  To continue with the previous example:  :Snippet def <{}>():   Once defined, you can expand your snippet by typing def{TAB}.


I got apt error during executing commands

I tried to execute the following command but i got below error  sudo apt-get apt install -y ruby-dev nodejs postgresql-client redis-server wkhtmltopdf memcached      E: Invalid operation apt


I am working on trying to solve this problem:     Prove: $\int \sin^n{x} \ dx = -\frac{1}{n} \cos{x} \cdot \sin^{n - 1}{x} + \frac{n - 1}{n} \int \sin^{n - 2}{x} \ dx$   Here are the steps that I follow in the example that I am reading:     $u = \sin^{n - 1}{x}$      $du = (n - 1) \cdot \sin^{n - 2}{x} \cdot \cos{x} \ dx$      $v = -\cos{x}$      $dv = \sin{x} \ dx$            $\int \sin^n{x} \ dx =  \sin^{n - 1}{x} \cdot \sin{x} \ dx$      $\int \sin^n{x} \ dx = \underbrace{\sin^{n - 1}{x}}_{u} \cdot \underbrace{-\cos{x}}_{v} - \int \underbrace{-\cos{x}}_{v} \cdot \underbrace{(n - 1) \cdot \sin^{n - 2}{x} \cdot \cos{x} \ dx}_{du}$      $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \cdot \cos^{2}{x} \ dx$      $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \cdot \left(1 - \sin^{2}{x}\right) \ dx$   Here is where I get lost. How did we go from $\int \sin^{n - 2}{x} \cdot \left(1 - \sin^{2}{x}\right) \ dx$ to $\int \sin^{n - 2}{x} \ dx - (n - 1) \int \sin^{n}{x} \ dx$? Even more specifically, where did $\sin^{n}{x}$ come from?     $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \ dx - (n - 1) \int \sin^{n}{x} \ dx$   I get this part.     $n\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \ dx$      $\int \sin^n{x} \ dx = -\frac{1}{n} \cos{x} \cdot x \ \sin^{n - 1}{x} + \frac{n - 1}{n} \int \sin^{n - 2}{x} \ dx$   Could someone please explain what I am missing?  Thank you for your time.


how to change colors of my ps1 root terminal permanently

I want to change the colors of root@MyComputer:~#and when i type the ls command show me the result as colors!  I write a simple BB code to display what i want:  [color=red]root@MyComputer:[/color][color=blue]~[/color]#    I had this command but it does not apply whan open a new terminal window  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\:\[\033[01;34m\]\w\$ '   thank you in advance


Achievement messages in top bar are being double-HTML-encoded

See screenshot:    Curiously, there are older badge achievement messages further down the list which display properly.


Delete a second row if it's found in Mysql

Im trying to delete a row in MySql if there are 2 rows for a merchant. It doesn't matter which row is deleted.   When I run:  SELECT * FROM products.merchant_configs WHERE `configKey` = 'CHECK_BALANCE_SUBJECT' AND merchantId = 6;   I see:    Now I try to delete one of the rows:  DELETE FROM products.merchant_configs WHERE id = (     SELECT id FROM products.merchant_configs WHERE `configKey` = 'CHECK_BALANCE_SUBJECT'     AND merchantId = 6     LIMIT 2 OFFSET 1 );   I receive the error:  Error Code: 1093. You can't specify target table 'merchant_configs' for update in FROM clause   What's going on?


I saw a lot - I mean really a lot - of people putting a comma between verbs or verb phrases in their writings e.g.      The house was colored in brown when it was built by my father in 1920,   and had a tall Zelkova tree in its front yard.   even native speakers often make same mistakes. As far as I know, if I want to keep the comma sentence should be as follows:     The house was colored in brown when it was built by my father in 1920,   and it had a big Zelkova tree in its front yard.   Or should take out the comma.   Am I missing something or wrong? there are so many people making same punctuation errors that I feel I am wrong. I checked the Purdue OWL, and I am pretty sure it says such comma usage is wrong.  (Ref)  Comma abuse > #13


Is momentum conserved in the collision of a ball with a hanging rod?

Suppose we have a situation like      A ball of some mass $m$ with some velocity collides with rod hinged at point $A$. Is momentum conserved in this situation? I know that hinge will give impulsive force on rod but that is internal force when we take ball and rod together as a system so that shouldn't stop us using conservation of momentum equation


Creating polygon from current display extent using ArcPy?

I am trying to create a polygon from current display extent using Python. I would like to use the polygon to clip features in the current display extent or set a boundary limit for similar procedures.


When does the $n$th bound state of a 1D quantum potential have $n$ maxima/minima?

In Moore's introductory physics textbook Six Ideas that Shaped Physics, he describes a set of qualitative rules that first-year physics students can use to sketch energy eigenfunctions in a 1D quantum-mechanical potential.  Many of these are basically the WKB formalism in disguise;  for example, he introduces a notion of "local wavelength", and justifies the change in amplitude in terms of the classical particle spending more time there.  He also notes that the wavefunction must be "wave-like" in the classically allowed region, and "exponential-like" in the classically forbidden region.  However, there is one rule that he uses which seems to work for many (but not all) quantum potentials:     The $n$th excited state $\psi_n(x)$ of a particle in a 1D potential has $n$ extrema.   This is true for the particle in a box (either infinite or finite), the simple harmonic oscillator, the , and presumably a large number of other 1D quantum potentials.  It is not true, however, for a particle in a double well of finite depth;  the ground state, which has a symmetric wavefunction, has two maxima (one in each potential well) and one minimum (at the midpoint between the wells).  The following questions then arise:   Are there conditions can we place on $V(x)$ that guarantee the above quoted statement is true?  For example, is the statement true if $V(x)$ has only one minimum?  Is the statement true if the classically allowed region for any energy is a connected portion of $\mathbb{R}$?  (The second statement is slightly weaker than the first.) Can we generalize this statement so that it holds for any potential $V(x)$?  Perhaps there is a condition on the number of maxima and minima of $V(x)$ and $\psi_n(x)$ combined?   I suspect that if a statement along these lines can be made, it will come out of the orthogonality of the wavefunctions with respect to some inner product determined by the properties of the potential $V(x)$.  But I'm not well-enough versed in operator theory to come up with an easy argument about this.  I would also be interested in any interesting counterexamples to this claim that people can come up with.


I've noticed this phenomenon a few times before: find a question that was posted 10 minutes ago, look at the questioner's profile.  Last seen 20 minutes ago.  Does updating last seen happen asynchronously with posting a question?  How long might the lag be?  I'm reluctant to , since the phenomenon is probably short lived, but I just noticed it there.  Here are screen images as of this writing...  On the question:        In the profile, clicked a second later:


I am in Ubuntu 12.04 (precise) 64bit and downloaded the btsync executable from  but running it doesn't seem to have any effect. Double-clicking the executable does nothing, and running ./btsync in the terminal also exits immediately without any output.  Has anyone successfully ran this under Ubuntu, and if so, is there any special configuration changes that need to be made to make it work?


How do you join on the same table, twice, in mysql?

I have 2 tables. One (domains) has domain ids, and domain names (dom_id, dom_url).  the other contains actual data, 2 of which columns require a TO and FROM domain names. So I have 2 columns rev_dom_from and rev_dom_for, both of which store the domain name id, from the domains table.  Simple.  Now I need to actually display both domain names on the webpage. I know how to display one or the other, via the LEFT JOIN domains ON reviews.rev_dom_for = domains.dom_url query, and then you echo out the dom_url, which would echo out the domain name in the rev_dom_for column.  But how would I make it echo out the 2nd domain name, in the dom_rev_from column?


I want to have a vector with a superscript:  \vec{o}^t   But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first place) ?


What is the difference between the mass of 100g and the weight of 1newton?

I was flicking through my physics textbook (as you do when you need to revise for a test that is going to decide your grade of the whole year), when a certain question caught my eye it read: Explain the difference between a mass of 100g and a weight of 1newton.


Arranging finite balls of different color such that no balls of the same color are adjacent

The problem involves arranging balls of different color in a line such that no two balls of the same color are adjacent to each other. Eventually I would like to find a generalization of having $m$ different colors of balls and $n$ balls of each color, where each ball besides color are indistinguishable. But for now I will start with $3$ colors, red blue and yellow, and having $3$ of each color.  If we had an infinite number of each ball, then i know the answer would be $3(2^8)$ but this is including arrangements where we might only have red and blue balls alternating and not have any yellows.  One thought was to consider "grouping" the colors in its $3!$ permutations and finding the number of arrangements of the groups. But this wouldn't consider arrangements such as $RYRYBYBRB$  I feel like recurrence may be needed for a generalization but without being able to find this simple case I don't know if I can use it. Searching other questions of this sort doesn't help me either as it isn't this type of restriction.  Brute forcing it is one option but it seems like a mess even for this smaller case, so it would only be good for smaller cases.  Any help would be greatly appreciated


How to get a layover longer than a few hours?

I want to visit some countries my flights transit through. I live in Pakistan and flights to America often transit through the UK or Europe. Flights to Europe mostly transit from Middle East. I assume that I need to have a regular visit Visa for these countries.  Can I book some flight that allows me to exit the airport and stay about 2-3 days (48-72 hours) in the country I'm transiting through?


Add an Image Upload button to the Mobile Site

With the release of iOS 6, the most commonly used mobile browser now supports standard generic image upload buttons. This is actually really handy.  I can take screenshots on my phone or iPad, and use them to answer questions about apps made to run on those devices (or ) to answer questions. Until the release of iOS 6 however, the only way to use these images in my answer was to either sync them over to my computer, and then answer from a desktop, or use a specialized app to upload the images, such as PicUp or DropBox, and then manually write out the markdown code.  After iOS 6, the Image Upload button works just fine, if I switch to viewing the full site from my iDevice, rather than the mobile view. I can upload images directly, and the markdown is handled for me. It's awesome, except for the fact that the non-mobile site is decidedly non-awesome on the small screen of my phone.  Which brings me to my feature request: Add the Image Upload button (and other markdown shortcuts, as deemed worthwhile) to the ask/answer editors on the mobile version of SE sites.


What is special about square numbers here?

I'm not not schooled in math. I'm 50 years old and I only have about a grade 8 level. But I do enjoy math and heard a question in the show "Growing Pains of a Teenage Genius" that interested me. So please forgive me. I do not speak "math."   The question has been posted here already, but I don't think the correct answer was given, and since I'm new, I haven't earned the points to be able to comment on that post. So I've started my own post.  The question is, if you have 1000 pennies lined up in a row, all heads up, and you turn over every second penny, then every third penny, then every fourth penny, etc. all the way until you turn over the thousandth and last penny, which ones will be heads up?  I've figured out that the answer is that the square numbers will be heads up. It is only the square numbers that will be flipped an even number of times to land them in the position they started out in. But I don't know why that is.  What is it about square numbers that they are the only ones that get flipped an even number of times through the process of flipping every 2nd, 3rd, 4th,...etc, penny?   I thought it must have something to do with factoring since the primes will only get flipped once, but the widening gap between each succession of flips is a bit complicated to visualize, and I don't know how to work that with factoring square numbers.    Is there something special about factoring square numbers that's applicable here?  How do you visualize this problem mathematically?


Directions of static & kinetic friction?

Static friction : Static friction opposes relative motion between two surfaces. The car is moving at some tangential velocity relative to the road. Thus, static friction should act in the opposite direction. Yet it acts down the incline rather than parallel to the motion of the car. If it acts down the incline, it's essentially helping the car maintain the same relative velocity w.r.t the incline rather than opposing this relative motion.   Kinetic friction :  Consider a block placed on a long, rough plank which is moving to the right at some constant speed, and the block is moving to the right, but slower compared to the plank, so relative to the plank, the block is sliding towards the left. Will kinetic friction act to the left to reduce the kinetic energy of the block, or will it act towards the right to oppose the relative motion of the block and plank? If it acts to the right, doesn't that increase the kinetic energy of the block, which is something kinetic friction should not do?


A good screen mirroring app for Ubuntu 14.04 LTS

I am wondering whether there is any screen mirroring software that will work with my non-rooted Android phone using 4.4.2.


Hexproof vs enchantment affecting all creatures

My opponent controls , a 7/6 hexproof creature. I control two s, which give opponents' creatures -1/-0. Would Dampening Pulse affect the hexproof creature? I think it would because it's not directly targeting the hexproof creature.


Why did Aragorn and Theoden ride out at the Hornburg?

In the Battle of the Hornburg from The Two Towers, Aragorn and Theoden say "We must ride out." Why did they do this?  Was it just a matter of honor? Did they ride out on their horses in the middle of battle because they thought it was the end, as they were outnumbered? Was it because Aragorn knew Gandalf was coming so they were confident they were about to win?


How do you convert CString and std::string std::wstring to each other?

CString is quite handy, while std::string is more compatible with STL container. I am using hash_map. However, hash_map does not support CStrings as keys, so I want to convert the CString into a std::string. Writing a CString hash function seems to take a lot of time. CString -----> std::string  How can I do this? std::string -----> CString:  inline CString toCString(std::string const& str) {     return CString(str.c_str());  }  Am I right?  EDIT: Here are more questions: How can I convert from wstring to CString and vice versa? // wstring -> CString std::wstring src; CString result(src.c_str());  // CString -> wstring CString src; std::wstring des(src.GetString());  Is there any problem with this? Additionally, how can I convert from std::wstring to std::string and vice versa?


Convergent or divergent series ? Given that $\sum a_n $ is already convergent.

Could anyone please give me some hints ?   Let $\sum a_n$ be a convergent serie of real number. Prove or disprove that $\sum a_n \sin n$ and $\sum n^{\frac{1}{n}} a_n$ are also convergent.


Google Spreadsheets Enter/Return Key Behavior

In Microsoft Excel, the default behavior of pressing the Enter (return) key is this:     If you are in a cell, and tab over as   you input data, at the end of the   series when you click Enter, the focus   will go to the cell directly under the   cell that you began the series of   tabs.      For example, if you are in cell A1,   tab over to C1, and then click Enter,   the focus will go to cell A2.   Is there any way to get this behavior in Google Spreadsheets?


Why does "is" operator behave differently then expected, in `id(i) is id(j)`?

I know that the operators is and is not test for object identity: x is y is true if and only if x and y are the same object     I initialize two variables i and j with the same value 10, and when I am comparing the id of both variable with is operator it gives me a False   even though the id(i) and id(j) are the same.   I need a clarification, Here is my code  >>> i = 10; >>> j = 10; >>> print(10==10); True >>> print(id(10)==id(10)); True >>> print(10 is 10); True >>> print(5+5 is 10); True >>> print(i == j); True >>> print(id(i) == id(j)); True >>> print(i is j); True >>> print(id(i) is id(j)); # Why this statment Evaluate to False this is my quetion? False >>> id(i); 140718000878704 >>> id(j); 140718000878704


Hi i'm using the Commerce Shipping Postal Code Weight module. It works fine but I just want to get shipping costs in the cart page.


My university offers two courses, ECN470 and FIN470. If I ask someone whether they both are same courses(by study materials), what should I ask?   ‘Is’ ECN470 and FIN470 the same course?   Or   ‘Are’ ECN470 and FIN470 the same courses?


I was using wifite command I know that WiFi state goes to down when we run wifite command. And, WiFi state goes to up after restarting laptop also. I was running that command few hours ago. When I restarted my laptop I noticed it(WiFi) was working properly. But, when I have start laptop again I am not getting any WiFi list even WiFi isn't showing after typing ifconfig  After running ifconfig -a  Sorry I am unable to format my question and copy and paste those texts from terminal. ~ cause, I am using Unix SE from android device I have tried answers from  when I tried sudo service network-manager restart I got error Failed to restart network-manager.service: Unit network-manager.service not found.


Can we have a high-speed low-drag close vote review queue?

I almost never use the review queue.  I mean, look at this big dumb thing        It lumbers along, slowly plodding through the list of questions with close votes, one by one, until I die from boredom.  It's slow, inefficient, and wastes what little time I have to help close crap.  What I want is to jump in my F-15 SCREAMING EAGLE CRAP QUESTION SLAUGHTERING SPEED DEMON, zoom over the landscape looking for targets of opportunity upon which I can swoop down and strike with my depleted uranium VTC rounds.    It could look like your normal questions list, but only featuring those questions that have active close votes        (Wow, Jarrod, I didn't think you were behind those spam posts!)  I can skim through hundreds of questions in minutes, popping open interesting candidates for further review into background tabs.     "Oh, hell no, we don't recommend web hosting companies!" ctrl-click "What moonspeak is this translated from???" ctrl-click "Did you just link your website in your title?" ctrl-click "Did you just say best practice???" ctrl-click "I'll give this guy a Tutorial!" ctrl-click "BROTHER PRINTER SUPPORT NUMBER!!!!" ctrl-click   Essentially this is the same workflow I follow when going through the regular list of questions.  I see a question which smells funny, I pop it open in a new tab, and when I get to it I can deal with it as I do any other question.    I find this workflow so much superior for finding and dealing with questions that need closin' than the actual review queue.  It's much faster and I get to help quickly do the needful.  Please make it even better by showing me a list of questions with close votes.


Is it possible, that one of my slide in beamer is  11 pt    and I want 10 pt font in other slide?


How do I split a string so I can access item x?

Using SQL Server, how do I split a string so I can access item x?  Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?


Toggle visibility of solutions in LaTeX output for exams

So I have my own layout for my exams based on scrartcl and to prevent anomalies during some changes I want to have only one file per exam which holds both questions/excercises and solutions. Yet I would like to be able to set a variable etc. whichever method might be more convenient so that I can chose for one compilation whether solutions should be visible or not. What is the suggested approach for this?


Let $R=\prod_{n\in\mathbb{N}}\mathbb{Z}$ and $M$ be $R$ regarded as $R$-module is usual way.  The submodule $N=\bigoplus_{n\in\mathbb{N}}\mathbb{Z}$ is it finitely generated?  Thanks


Opt out of getting notifications about binding edits to some or all community wiki answers

I recently posted . It is a community wiki looking to identify 378 characters. In less than 48 hours, . That translates to over 50 notifications sent to me about teensy edits to one big thing that I don't have much investment in.  was  in less than two months! Can we have the ability to not get notifications from edits to community wiki answers, other than ones that require review to be published?


What is the correct use of "even" as an adverb, with the verb "to be"?

gives some examples of correct use of "even" as an adverb to indicate that something is surprising or unexpected:-  "She even forgot my birthday" "He can’t even spell his own name!"  However, using "even" with "to be" results in some odd-sounding sentences:-  "" ""  And, (famously?)  ""  Adverbs usually come after auxiliary verbs, but in this case it doesn't seem like moving the adverb makes a more pleasing sentence:-  "What is even that thing?" "What is that thing even?"  Is there a correct way those sentences could even be formed, or should "even" not even be used with "to be"? As an additional point, these formations seem very common - especially colloquially or in writing on the internet. Is there anywhere I would be able to investigate the frequency of usage and perhaps find some early examples? EDIT:- For anyone interested, I found these:-     Suggesting that the use of "even" in this context is new/wrong, rather than specifically the pairing with "to be", e,g:-  "" "" ""


I have a question and want to receive your advices. Please help me. I am writing some codes with using pointer. My code bellow:  #include <stdio.h> #include <stdlib.h>  void test_pointer (char *t);  int main (){     char *t = "abcdef";    printf("Before excuting func: %s\n", t);    test_pointer(t);    printf("After excuting func: %s\n", t);    return 0; } void test_pointer (char *t) {    printf("In function - before allocating: %s\n",t);    t =(char *) malloc(10);    t = "123456789";    printf("In function - after allocating: %s\n",t); }   In this main(), I declared a char pointer and let its pointed to a string "abcdf" (length 7). But in the test_pointer() function, I used malloc() for allocating a new memory partition for that char pointer and then assigned a new value. That means char pointer had to be updated after using this function. But in real, it's not. Why?  when I executed this code, what I got is: Before excuting func: abcdef In function - before allocating: abcdef In function - after allocating: 123456789 After excuting func: abcdef  Please help me figure out what happened. Thank you very much.


Min value of $\cos(\sin x)+\sin(\cos x)$

The max value of $f(x) = \sin(\cos x) + \cos(\sin x)$ is equal to $1 + \sin 1$.  What is the minimum value of $f(x)$?  I found the max value using that range $\sin(\cos x)$ is $[- \sin 1, \sin 1]$ and range of $\cos(\sin x)$ is $[ \cos 1, 1]$ and the maximum of both occurs at $x=0$.  Although I can't find the min value using this approach. Please try to find this  without using graphing calculators.


Following the discussions here on SO I already read several times the remark that mutable structs are “evil” (like in the answer to this ).  What's the actual problem with mutability and structs in C#?


Does the universal approximation theorem for neural networks hold for any activation function?

Does the universal approximation theorem for neural networks hold for any activation function (sigmoid, ReLU, Softmax, etc...) or is it limited to sigmoid functions?   Update: As shimao points out in the comments, it doesn't hold for absolutely any function. So for which class of activation functions does it hold?


Replacement character being used question URL

Some questions, for example    Instead of using a correct URL, such as  http://meta.stackexchange.com/questions/79543/٩●̮̮̃-̃۶-forbid-unicode   are using  https://superuser.com/questions/516363/what-is-the-��-character   What is causing this behavior?


What are questions to ask during oncampus visit?

During the campus visit, I meet the faculty members, dean and provost individually and they asks me if I have questions to them. Actually, since I got all answers from the chair, I reply "no, I donot have questions". My question is what should I ask the dean, and provost, and other faculty members?


Why can't my Java method change a passed variable?

I was kind of baffled when I saw the following code did not work as expected.  I thought Java always passed variables by references into functions.  Therefore, why can't the function reassign the variable?   public static void main(String[] args) {    String nullTest = null;    setNotNull(nullTest);    System.out.println(nullTest); }  private static void setNotNull(String s) {   s = "not null!"; }   This program outputs null.


So I'm stuck with the question: Find the radius of convergence for the power series:  $$f(z) = \sum^{ \infty}_{j=0} 2^{j} z^{j^2}$$  My issue is that there are two solutions depending if the $a_{n}$ is a perfect square or not, how should I approach this problem? Thanks in advance!


Working with binomial coefficient $\sum_{k=0}^n (-1)^k \binom nk=0$

I'm sure there's an identity or some known "trick" to solve this but I couldn't find it (Looked in Wikipedia, Wolfram and here):  $$ \sum_{k=0}^n (-1)^k{n \choose k} =0 $$  I want to know how this can be proven. I tried induction but I'm not sure what to do with ${{n+1}\choose k}$.  Thanks!


If user input is inserting without modification from SQL query, then the application becomes vulnerable to SQL injection, like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value '); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


How to combine measurement error with statistic error

We have to measure a period of an oscillation. We are to take the time it takes for 50 oscillations multiple times.  I know that I will have a $\Delta t = 0.1 \, \mathrm s$ because of my reaction time. If I now measure, say 40, 41 and 39 seconds in three runs, I will also have standard deviation of 1.  What is the total error then? Do I add them up, like so?  $$\sqrt{1^2 + 0.1^2}$$  Or is it just the 1 and I discard the (systematic?) error of my reaction time?  I wonder if I measure a huge number of times, the standard deviation should become tiny compared to my reaction time. Is the lower bound 0 or is it my reaction time with 0.1?


Allow me to draft a question in the Stack Exchange Android app

As far as I could see, I can't draft a question in the Stack Exchange Android app. If I press the X to back out of submitting when I next go in, the fields are all blank. Could we have the ability to draft questions, either with an explicit draft button or simply having it persisted when leaving the submit screen?  Ideally this should persist between the website and the app, in both directions.


What to call Primary School + High School, but not College

I was creating a web form for a client who requested the highest-grade completed for primary and high school and then college.  The original paper form had the following     Circle highest grade completed 1 2 3 4 5 6 7 8 9 10 11 12 College 1 2 3 4   For the web form, I turned these into two dropdowns. Labeling College was easy, but the 1-12 was harder.  Due to space issues, I chose "Compulsory" as grades 1-12 in the US are compulsory, but my project manager felt it wasn't a layman term, so I switched it for K-12, which is what the Department of Education calls it, even though kindergarten is not included.  So, my question is, is there a one-word (or very short phrase) equivalent to Primary + High School?


Unable to install any package or software

I am a new user on Ubuntu. Currently, i am running Ubuntu 14.04 32-bit on my PC. Lately, I've been facing problem in installing any software or package using terminal. I've also tried the following codes to fix this but it failed...    sudo apt-get autoclean   sudo apt-get clean   So this is how it looks like....  sajal@sajal-945GCMX-S2:~$ sudo apt-get install aircrack-ng Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  aircrack-ng : Depends: libc6 (>= 2.15) but it is not going to be installed                Depends: libgcrypt11 (>= 1.4.5) but it is not going to be installed                Depends: libsqlite3-0 (>= 3.5.9) but it is not going to be installed                Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed                Depends: wireless-tools but it is not going to be installed                Depends: iw but it is not going to be installed                Recommends: wget but it is not going to be installed  minitube : Depends: libc6 (>= 2.3.6-6~) but it is not going to be installed             Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed             Depends: libphonon4 (>= 4:4.2.0) but it is not going to be installed             Depends: libqt4-dbus (>= 4:4.5.3) but it is not going to be installed             Depends: libqt4-network (>= 4:4.5.3) but it is not going to be installed             Depends: libqt4-script (>= 4:4.5.3) but it is not going to be installed             Depends: libqt4-sql (>= 4:4.5.3) but it is not going to be installed             Depends: libqtcore4 (>= 4:4.8.0) but it is not going to be installed             Depends: libqtgui4 (>= 4:4.8.0) but it is not going to be installed             Depends: libstdc++6 (>= 4.2.1) but it is not going to be installed             Depends: phonon but it is not going to be installed             Depends: phonon-backend-gstreamer but it is not going to be installed or                      phonon-backend             Depends: dbus-x11 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)   Please help me with this........


I need to make this head smoother. I am already using subdivion surface 3 on whole object.  I found here and try select head and use shade smooth.  Head stil had that visible lines and just not look smooth.    Here is file, I hope I upload it right.


Converting from 7-speed to 10-speed rear wheel

My Bridgestone MB-5 currently has a 7-speed rear wheel. I'd like to convert it to a 10-speed. Is this possible? Is it practical?


Multiple choice question about the set $A = \{ m + n\sqrt{2} \}$.

let $A = \{m + n \sqrt{2}\}$ where $m,n$ are integers, then  $a.$ $A$ is dense in $R$.  $b$. $A$ has no limit point in $R$.  $c$. $A$ has only countably many limit points in $R$.  $d$. only irrational numbers can be limit point of $A$  Set $A$ is similar to the set $N \times N$, so all points are isolated in $A$. therefore option $b$ should be correct. In answer key, option $a$ is marked as correct. Please suggest if I am doing something wrong.


How to render an image with holdout material in Cycles 2.8?

thats almost litterally the question asked here but these don't seem to be working with 2.80   i have PNG, Rgba, 8bit, 15% compression  and the holdout material still renders as black.


Let $U$ be an open set in $\mathbb{C}$ and $f$ differentiable in the real sense. Prove that if $c$ is such that the following limit exists: $$\lim_{h→0}=\frac{|f(c+h)−f(c)|}{|h|}$$ Then $f$ is differentiable in the complex sense or $\bar{f}$ is differentiable in the complex sense.  $h$ is a complex number.


My terminal prompt has a weird, unfamiliar name in it.

What's up with that? Breezy's iPhone?  This is the beginning of all my terminal prompts.


Show that if $(x,y) =1$ then $(x-y, x+y)$ is either $1$ or $2$.

Show that if $gcd(x, y) = 1$ then $gcd(x − y, x + y)$ is either $1$ or $2$  I think the question is asking me to show if the $\gcd(x,y)$ then the $\gcd(x-y,x+y)$ is $1$ or $2$.  so, for the first bit. Let $d=\gcd(a,b)d=\gcd(a,b)$; by definition there are integers $a'a′$ and $b'b′$ such that $a=a'da=a′d$ and $b=b'db=b′d$, so $a'dx+b'dy=da′dx+b′dy=d$. Dividing through by $dd$, then $a'x+b'y=1′x+b′y=1$.  Let $e=gcd(x,y)e=gcd(x,y)$. As before, there are integers $x'x′$ and $y'y′$ such that $x=ex'x=ex′$ and $y=ey'y=ey′$. Substituting these into the previous equation, we get $a'ex'+'ey'=1a′ex′+′ey′=1$, or $e(a'x'+b'y')=1e(a′x′+b′y′)=1$. Since $a'x'+b'y'a′x′+b′y′$ is an integer, this implies that $e=1$ or $e=−1$: these are the only divisors of $11$. But $e$ is a greatest common divisor and hence by definition positive, so $e=1$


I am attempting to delete a database entry, and am matching the entry in the database by searching via the user's email. This means a variable with the @ symbol is placed in my database entry as such:  DELETE FROM `table` WHERE id=$id AND uEmail=$email   I understand that the @ symbol has a usage in SQL, so I presume this is the problem with the statement above. I tried removing the email from the statement and just leaving id, and it worked. How can I escape the @ symbol present in the $email variable?  Thank you for help in advance!


Why didn't Harry go to the Burrow immediately following the end of his sixth year?

In the beginning of the Deathly Hallows, the main objective is getting Harry Potter safely from his current residence at Number 4 Privet Drive to the new headquarters of the Order of the Phoenix at the Burrow. This involved the hugely complicated plan of the Seven Potters with escorts and several homes being protected and portkeys and all that jazz. This plan seemed to me over-complicated for a few reasons.   Many of the threats could have been avoided if the plan was formulated and executed sooner.   I understand the Seven Potters wasn't the original plan, as Harry found out the day of the move:     "You, Harry," Dedalus continued, "will wait here for your guard. There has been a little change in the arrangements --"      "What d'you mean?" said Harry at once. "I thought Mad-Eye was going to come and take me by Side-Along-Apparition?"      Deathly Hallows, Chapter 3 "The Dursleys Departing"   But Dumbledore is a smart guy and was most likely expecting something like this to happen, where the Ministry of Magic would become untrustworthy and close to being taken by Voldemort, and Death Eaters ready to attack Harry around Number 4 Privet Drive.      Dumbledore's portrait even masterminded the whole scheme, with the decoy Harry's and Snape telling the Death Eaters the date of the plan.   Knowing these threats would be around when Harry would be moved from home, Dumbledore let the Order arrange to protect Harry from all these threats (which put plenty of people at risk) when really the threats could have been avoided in the first place if Harry was moved sooner. It seemed Dumbledore could have set up a different, simpler plan a lot sooner. Harry couldn't call Number 4 Privet Drive home any longer.  For all of Harry's years at Hogwarts, he still had to return to Number 4 Privet Drive to call it home and be protected by Lily's enchantments, but he could only take advantage of this till he was 17:     "We can't wait for the Trace to break, because the moment you turn seventeen you'll lose all the protection your mother gave you." - Mad-Eye Moody      Deathly Hallows, Chapter 4 "The Seven Potters"   Forcing Harry to return to the Dursleys for just a month would eventually require moving him to another safe spot, which we saw unfold. If Harry had to be moved some point during that summer when he turned 17, he might as well have gone straight to the Burrow as a new protected home, instead of making him vulnerable in the middle of the summer. It did not seem like Harry had to return to Number 4 Privet Drive that summer. Hogwarts was a very secure and public place, surrounded by many talented wizard and witches. It would have made sense to transport Harry immediately from Hogwarts to the Burrow.   So this leads to my question for a simpler plan:  Why wasn't the plan to move Harry to the Burrow right after he finished his sixth year at Hogwarts?  I'm looking for canon based answers, nothing from the harry potter wikia.


Hi I'm new to Java programing and I am having some trouble with doubles. I am trying to subtract .2 from 4.6 but instead of receiving 4.4 i get 4.3999999999999995. I know that Decimals can't be represented exactly in binary but is there any way around this problem. Any advice would be appreciated.


Check a column if doesn't exists in SqlDataReader

I have to check a column if it doesn't exists in SqlDataReader. I tried using reader.IsDBNull and reader.GetOrdinal, but still getting error "Index Out of range".


Use a baseline including all observations in lm()

When using factors in a linear model,  I would like to retrieve the 'average' effect as baseline (intercept), rather than level 1 of all factors. Is this possible?  tab <- data.frame(gl(2,5),rnorm(10)+as.numeric(gl(2,5))) colnames(tab) <- c('pred','dat') mylm <- lm(dat~pred,data=tab) coefficients(mylm)   returns something like  (Intercept)       pred2    0.5879712   1.8542153    coefficients are on average 1 for both intercept and pred2. I would like to rather have intercept = 1.5, pred1 = -0.5 and pred2 = +0.5  model.matrix(mylm)   returns           (Intercept) pred2     1            1     0     2            1     0     3            1     0     4            1     0     5            1     0     6            1     1     7            1     1     8            1     1     9            1     1     10           1     1     attr(,"assign")     [1] 0 1     attr(,"contrasts")     attr(,"contrasts")$pred     [1] "contr.treatment"   I would like a matrix like this            (Intercept)  pred1   pred2     1            1    1     0     2            1    1     0     3            1    1     0     4            1    1     0     5            1    1     0     6            1    0     1     7            1    0     1     8            1    0     1     9            1    0     1     10           1    0     1   Does that make sense? if not, why? Is there some command to generate such a design matrix? I've been looking for a way to do this without success...


Wire in parallel thermostat and timer to an air extractor

as the title: i have a room with with a heat generation that i need to keep under a certain temperature. Anyhow, i want to grant a minimum of air circulation even if the temperature is not reached (winter scenario) and i thought it can be a good idea to connect a thermostat and a timer in parallel to the air extractor (set for 10 minutes every 2/3 hours for example). In this scenario, if the temperature is reached, the fan is working thanks to the thermostat, if is not reached for as long as 2 hours, the fan is activated by the timer.  Thanks for help!


Was I “laying” on the bed, or was I “lying” on the bed?

Should this sentence use laying or lying?     Last week at this time, I was ____ on Sarah’s bed.    Can someone fill in the blank for me?


If I edit a closed question will it automatically enter the re-open queue?

I'm trying to figure out why I saw a question in the re-open queue.  It doesn't appear that the user requested that it be re-opened.  It did have a recent edit from a different user on this site.  If I were to edit a closed question, would it automatically enter the re-open queue?


How secure is information is Cognito Forms?

I have already read through your answer discussing the securities in November 2014. Are there not any updates since then? and if we would prefer to call Cognito and discuss this in detail over the phone where can I find a phone number?  We were previously using Adobe Forms Central for client Questionnaires. These forms are for our estate planning law firm and so the data put into the forms by our clients ABSOLUTELY needs to be secure. Can someone please give me a complete explanation of the securities, not just a generic answer? We really love your forms here but will not be able to use them if our clients information is exposed in any way. Thank you


Short story about astronauts visiting a planet for the first time that smells and tastes them

We read a short story at school (around 1992 in the UK) which I've always wanted to identify and much googling hasn't gotten me anywhere.  From memory... It had astronauts visiting a planet for the first time.  They landed in an abandoned city and as they got out to explore.  The city was automated to sense them.  One of the most vivid moments I remember talked about how the smell of the astronauts was drawn through the cobbles in the street where a (mechanical) machine was analysing them to see what type of person (species) they were.  I can't remember the ending but I have a funny feeling they died or were about to die as the city disposed of them and lay in wait for the next visitors but I may have made that part up in my head :-p  It must have been a short story although could also have been a poem.  It was short enough that we covered it all in a lesson.  Funny the things you remember :-D  Thank you in advance


Evaluating $\lim_{x\to 1^{-}} \prod_{n=0}^{\infty} \left (\frac{1+x^{n+1}}{1+x^n}\right)^{x^n}$

$$L=\lim_{x\to 1^{-}} \prod_{n=0}^{\infty} \left (\frac{1+x^{n+1}}{1+x^n}\right)^{x^n}$$ I found this limit as below $$L=\exp\left[ \lim_{x\to 1^{-}}\sum_{n=1}^{\infty}x^n \ln  \left (\frac{1+x^{n+1}}{1+x^n}\right)\right]=\exp\left[ \lim_{h\to 0}\sum_{n=1}^{\infty}(1-h)^n \ln  \left (\frac{1+(1-h)^{n+1}}{1+(1-h)^n}\right)\right]$$ Using binomial approximation: $(1+z)^\nu \approx (1+\nu z)$ where $|z|$ is as small as we please. Then $$L=\exp\left[ \lim_{h\to 0}\sum_{n=0}^{\infty}(1-h)^n \ln  \left (\frac{2-h(n+1)}{2-hn}\right)\right]=\exp\left[ \lim_{h\to 0}\sum_{n=0}^{\infty}(1-h)^n \ln \left (\frac{1-h(n+1)/2}{1-hn/2}\right)\right]$$ $$L=\exp \left[\lim_{h\to 0} \sum_{n=0}^{\infty}(1-h)^n \ln[(1-(n+1)h/2)(1+hn/2)]\right]$$ $$L=\exp \left[\lim_{h\to 0} \sum_{n=0}^{\infty}(1-h)^n \ln[1-h/2-h^2(n^2+n)/4]\right]=$$ $$L=\exp \left[\lim_{h\to 0} \sum_{n=0}^{\infty}(1-h)^n \ln[1-h/2]\right]=\exp \left[\lim_{h\to 0} (-h/2)\sum_{n=0}^{\infty}(1-h)^n\right]$$ $$\implies L=\exp \left[\lim_{h\to 0} (-h/2)\frac{1}{1-1+h}\right].$$ Finally, $$L=e^{-1/2}.$$ I would like to know if this answer is correct? Somehow numerical results do not seem to support this result!


According to Physics, Black Body absorb all incoming light reflect nothing when compared to White body. This phenomenon is called Black-body radiation. So Melanin should turn your skin into white for protect the body from harmful rays in sunnier regions, that is not happening in Biology of Human Beings.   This is why Most of School Uniforms are specifically white on Saturdays (Because of intensity of sunlight is more on that day)  Then How Dark skin protects humans in sunnier climates?   My Question is different from this  because I mentioned physics subject also in my question.


How to change horizontal alignment for \frac?

Typing \frac{W+W^*}{2} gives $\frac{W+W^*}{2}$ in which the denominator appears to the eye to be in the wrong position. Is there a way to correct this, ie place the 2 in under the + (without using arbitrary negative spacing)?


80s or earlier story about a portal to another dimension with violent humanoids dressed like the Gay Nineties

Basically somehow a portal is opened or discovered and they see humans which are dressed like the Gay Nineties in the USA or England (one character says, "It looks like Jolly Bicycle Tours...") but when a soldier from our side gets through, the creatures instantly attack and devour him, IIRC, shedding their clothing and revealing that they are somewhat differently built than humans.  The "father" creature seems to understand what has happened and fetches a book that might contain, say, a formula for traveling to our dimension and of course we are worried about this.  That's all I remember except the story is at least 40 years old but probably older.


Why a fan make us feel colder instead of warmer in a cold room?

Stay in a cold closed room, turn on a fan directed at you, it makes you feel colder instead of warmer. why? Here is the definition of heat:  Matter exists in different physical forms – solids, liquids, and gases. All matter is made of tiny particles called atoms, molecules, and ions. These tiny particles are always in motion – either bumping into each other or vibrating back and forth. It is the motion of particles that creates a form of energy called heat (or thermal) energy that is present in all matter...  so before turning on the fan, the air molecules are relatively still and not moving much. After turning on the fan, they are moving a lot faster so the motion of the particles is more and it should create heat, but why can't we feel the heat on our body and skin when standing in front of the fan? (at least in my experience)


---- Minecraft Crash Report ---- // There are four lights!  Time: 3/8/16 12:44 PM Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bcf.ap(SourceFile:594)     at bcf.an(SourceFile:430)     at bcf.a(SourceFile:377)     at net.minecraft.client.main.Main.main(SourceFile:124)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bcf.ap(SourceFile:594)     at bcf.an(SourceFile:430)  -- Initialization -- Details: Stacktrace:     at bcf.a(SourceFile:377)     at net.minecraft.client.main.Main.main(SourceFile:124)  -- System Details -- Details:     Minecraft Version: 1.9     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_73, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation     Memory: 82180336 bytes (78 MB) / 148647936 bytes (141 MB) up to 523501568 bytes (499 MB)     JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.9     LWJGL: 2.9.4     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Using VBOs: No     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs:      Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     CPU: <unknown>   Operating system details: win 10 Ram 4 GB Java updated