Below is a simple circuit involving an Arduino, a push-button, and an LED. However, I don't quite understand what the purpose of the resistor is. Wouldn't the circuit function without it?     Note: Since this question is concerning the behaviour of the circuit rather than the functioning of the Arduino, I've posted this here instead of the Arduino stack exchange.

I'm quite new to electronics and I'm having a hard time understanding the "pull-up resistor" principle. I have read a lot of articles about that, and I think I've got it but I'm not 100% sure so I have a question. In , after the first image, it says:     When the momentary button is pressed it connects the I/O pin to Vcc and the microcontroller would register the input as a high.   But I don't get it. Where is VCC? From what I see, there is no power source on this schema, just a microcontroller wired to a button that are both wired to ground so how can there be any voltage at all in this circuit?


How do i evaluate this limit : $$\displaystyle \lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+............+\frac{1}{\sqrt{n}}\right)$$ ?  Thank you for any help .

Evaluate the limit $\displaystyle \lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\ldots+\frac{1}{\sqrt{n}}\right)$, without using a Riemann sum   $\bf{My\; Try:}$ Using the graph of $\displaystyle f(x) = \frac{1}{\sqrt{x}}\;,$ we get  $$\int_{1}^{n+1}\frac{1}{\sqrt{x}}dx <\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\ldots+\frac{1}{\sqrt{n}}\right)<1+\int_{1}^{n}\frac{1}{\sqrt{x}}dx$$  So we get $$2\sqrt{n+1}-2<\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\ldots+\frac{1}{\sqrt{n}}\right)<2\sqrt{n}-1$$  So $$\lim_{n\rightarrow \infty}\frac{2\sqrt{n+1}-2}{\sqrt{n}}=2<\lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\ldots+\frac{1}{\sqrt{n}}\right)<\lim_{n\rightarrow \infty}\frac{2\sqrt{n}-1}{\sqrt{n}} = 2$$  So using the Sandwich Theorem, we get $\displaystyle \lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\ldots+\frac{1}{\sqrt{n}}\right)=2$  My question is can we solve it by using any other method? If yes then please explain it here.


Is there a way that I can have something which appears as a file, but when being read some code executes which fills the content of the file "on the fly"?  Like FIFO/ named pipe, but without the need to start the writing process by hand.  Or like CGI on webservers, but on the local file system.  EDIT: To guard myself against "why I want this"-doubts:  I want this to be able to have an audiofile whose content is generated on access, and then delivered to the audio player. And it should not be streaming, since when accessed by the audio player the length of the audio should be known.

Is there any way to create a virtual file, such that reading from the file actually reads from the stdout of a command; writing to the file is acually writing to the stdin of a command?  So far I have kludged this with an inotifywait on a file, which calls a command when the file is modified, taking it's input from the file and writing back to it.  I don't like that the inotifywait has to be constantly restarted though (and I have to ensure that it is always running). I only use this file perhaps twice a week.


My basement shop has been fully wired to operate by one power switch.  I would like to add another switch to power up the shop by entering from another door.

I have a box in the hall which includes a 3-way switch (with another switch at the other end of the hall), a single pole switch to the garage lights and a single pole switch to the exterior lights on the garage.  The single pole switch to the garage is wired with a 3 wire plus ground. The white and black wires feed the garage lights from the switch and the red wire feeds the garage ceiling outlets and is hot all the time.  In the garage I would like to add a 3-way switch for the garage lights and another 3-way switch for the exterior garage lights.  In other words I would like to be able to turn on both of those light locations from both the inside hall and the garage as well. I know that I will of course have to replace the existing single pole switches in the hall with 3-way switches and add a junction box in the garage with 2 3-way switches in it.  The thing that I don't know is what wiring connections I need to make.  Can you help?


What does static succeeded only by two curly brackets means?  Sorry for the beginner question. I tried to look for a tutorial on it, but couldn't find one. This use of static as: static {}, is not clear for me. I found it being used by others here. I thought it may be a multiline, or group, modifier and tried the code below, but other type modifiers give errors not like static.   public class MyClass { private volatile int v1=0; private final int v2=0; private static int v3=0; static {             <----- No error here.     int i1=0;     String s1="abc";     double d1=0; }; final {              <----- Error here.     int i2=0;     String s2="abc";     double d2=0; }; volatile {           <----- Error here.     int i3=0;     String s3="abc";     double d3=0; }; }

My question is about one particular usage of static keyword. It is possible to use static keyword to cover a code block within a class which does not belong to any function. For example following code compiles:  public class Test {     private static final int a;         static {         a = 5;         doSomething(a);     }     private static int doSomething(int x) {         return (x+5);     } }   If you remove the static keyword it complains because the variable a is final. However it is possible to remove both final and static keywords and make it compile.   It is confusing for me in both ways. How am I supposed to have a code section that does not belong to any method? How is it possible to invoke it? In general, what is the purpose of this usage? Or better, where can I find documentation about this?


I know, $|S_4 |=24 =2^3\cdot3$. So here the order of sylow $2$ subgroup is $8$ and by the third sylow theorem we can say the number of sylow $2$ subgroups is $1$ or $3$. Then by finding the sylow $2$ subgroups explicitly we can conclude that its $3$. But here we also know the number of sylow $3$ subgroups is $1$ or $4$.  My question is can we find the exact number of sylow $2$ and $3$ subgroups without calculating the the sylow subgroups explicitly, just by element counting of the subgroups, because sometimes we need only the exact number in of sylow subgroups ?

I am trying to find all the Sylow 2 subgroups of S4 using Sylow’s theorems. Now, I know that a Sylow 2 subgroup of S4 has size 8, and that there are either 1 or 3 of them (as the number of of Sylow 2-subgroups has form 1+2k and divides 3, the index).  Now my lecturer states “stabilisers of the 3 different bisections of {1,2,3,4} yield 3 distinct Sylow 2 subgroups”  Now my questions are:  1) What does it mean by stabilisers of 3 different bijections of {1,2,3,4}? Is that to say the elements of S4 which send {1,2} and {3,4} to {1,2},{3,4} i.e. by (12)(34)?  2) How does he know that there are 8 elements of this set? Perhaps this will become clearer after the 1st question is answered.  Many thanks, group theory is hard.


I have made a model, UV mapped it and made a UV image, but it doesn't show up on the actual model. I feel like I'm doing everything right, and don't understand what I'm doing wrong. Blender version is 2.77.

I'm tryning to apply a Texture Image to an object, but it don't work. I unwrapped the object and created the image in the UV/Image Editor. If i try to assign any other simple materials with just color, it won't work either. In the material preview it's showing nicely. As you can see   Thanks!


Ive created an UFO and when it came to texturing I encountered a problem. Ive made this object of default cube so basically these two parts are a one object, so texturing works fo both of them. How can I divide it to two different objects (like body and glass)? Thank you.

How do you add more than one material to a mesh?   I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it.  I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.


I often need to select a number of rows from each group in a result set.  For example, I might want to list the 'n' highest or lowest recent order values per customer.  In more complex cases, the number of rows to list might vary per group (defined by an attribute of the grouping/parent record). This part is definitely optional/for extra credit and not intended to dissuade people from answering.  What are the main options for solving these types of problems in SQL Server 2005 and later? What are the main advantages and disadvantages of each method?  AdventureWorks examples (for clarity, optional)   List the five most recent recent transaction dates and IDs from the TransactionHistory table, for each product that starts with a letter from M to R inclusive. Same again, but with n history lines per product, where n is five times the DaysToManufacture Product attribute. Same, for the special case where exactly one history line per product is required (the single most recent entry by TransactionDate, tie-break on TransactionID.


Every time I create new folder in windows explorer I don't need it to be named New Folder. I need current date and time as folder name. For example 20:12 10.12.2016.  And, lets say, I'm too lazy to watch at the time and change folder name manually every time I create folder.  Is there any addon/extension/widget/alternative for windows 10 explorer which handle some folder_created_event or something else and change it's name when folder is created?

Every time I create new folder in windows explorer I don't need it to be named New Folder. I need current date and time as folder name. For example 13:41 16.12.2012.   And, lets say, I'm too lazy to watch at the time and change folder name manually every time I create folder.   Is there any addon/extension/widget/alternative for windows7 explorer which handle some folder_created_event or something else and change it's name when folder is created?


A person who does work with the maximum care in order to avoid waste.  Example: A wife who cooks only for the number of guests invited at that moment.

Is there a word (or words) for a person who uses all resources to the maximum; for example, a person who keeps on using pencils even if they are very small?


What is the method to tell the console to wait for x seconds. Is there a built in method or must I make one.

I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at?  I wish I had more details on how I am implementing this timed delay, but until I have more information on how to add a timed delay I am not sure on how I should even attempt to implement this.


What could be an example of three positive integers $m, n$, and $r$, and three integers $a, b$, and $c$ such that the $\mathrm{gcd}$ of $m, n$, and $r$ is $1$, but there is no simultaneous solution to  $x ≡ a \pmod{m}$  $x ≡ b\pmod{n}$  $x ≡ c\pmod{r}$

Can someone give an example of three positive integers m, n, and r, and three integers a, b, and c such that the GCD(m,n,r) = 1, but there is no simultaneous solution to: x ≡ a (mod m) x ≡ b (mod n) x ≡ c (mod r)


I'm trying to extend my root partition with the unallocated space but it seems like the unallocated space didn't exist. When I reinstalled the system I had two different Free Spaces, one with 32GB and other with 19GB but wasn't able to fix them in the same partition.  I've tried with the solutions in other posts with no result...

I tried to grow my LVM (on luks) root partition with  lvresize -L +5G -r /dev/vg/lv-root   and found that the file system wouldn't grow because it was mounted. Now I found this  https://ubuntuforums.org/showthread.php?t=1537569   that says I should boot from something else, and do  resize2fs /dev/vg/lv-root <size>   My question is: can I omit the size and just let the filesystem fill the partition (which was successfully enlarged before)? I'd try it but afraid of messing things up. Using (up to date) Arch and the filesystem is ext4.


Is DNS required to be a role on an Active Directory server? Is it possible to run 2 servers that support DNS only and 2 for Active Directory? Or is AD required to be on a machine that runs DNS.

So as the title says, I need to promote a standalone Win2008R2 server to a Domain Controller, and I don't a DNS Server (I think), as there will be no clients connected to the domain, it will be only used for Remote Desktop Services. Yes, I know, it's considered bad practice to install other roles on the DC, but in this case, it's necessary.  Do I need to install the DNS Server, and if I do, how to make it as transparent as possible?  EDIT: Seems that I need to install the DNS Server, so I can I configure it not to mess up my entire domain?  For example:  The server I need to promote is rdc.mydomain.com, and it has an A entry to it's IP in the current DNS, while other servers under mydomain.com are running Linux and don't need to know anything about this Windows box. The domain uses a third-party DNS and all edits and updates need to be done via a separate web page, our servers don't have write/update access.


For any natural number $a$, prove that $a^2$ when divided by $5$ cannot have a remainder of $3$. (Hint: What are the possible values of the remainder when $a$ is divided by $5$?  Using the hint, I found that the possible values of the remainder are $1, 2, 3, 4$, and $0$, and $3$ is only a remainder when the last digit of $a$ is $3$ or $8$.  But I'm not sure how to explain this in a proof, and I don't know how to extend it to $a^2$. Any help would be much appreciated!

Show that there is no solution to the congruence $x^2\equiv3\bmod5$.   I'm not sure if the fact that the only numbers divisible by $5$ are those ending in $0$ or $5$ will help…


Here is a quote from the "Lois & Clark" series:     A: Who are you?   B [a guy]: I'm a friend of her ["her" is another female character whom B is looking for].   A: A boyfriend, a "friend" friend or just a friend?   Do you have any idea what "a 'friend' friend" is supposed to mean? Is that ironical or something?

I am referring to phrases such as: "Do you like her, or do you like like her." Can someone provide an explanation of this? There are many more examples but none come to mind at the moment.


I'm using ArcMap 10.3 on Windows 10.  I have a number of .bil and .tif files pertaining to altitude and weather data. I want to open these in ArcMap. When I attempt to add them to the map I get this dialogue box:   Can someone walk me through how to use this to open these files in ArcMap?  This is the error that I've encountered trying to do this myself:   Or it throws up a generic "can't open this" error. I would share a screenshot of this but I can't replicate the error.   The goal is to use these data to find the average temperature, slope, etc for a number of points (n=157), so I assume I would need the .bil/.tif to have a spatial referencing system. I'm using the Irish Grid coordinate system.   EDIT I used the Define Projection tool on the files and they did change to Irish Grid (when I right click the feature class go to Properties < Source it does say it's in Irish Grid) - but the data doesn't line up with all my shapefiles in the Irish grid, it's "off in space" just the same as having no coordinate system. I tried this with both file types and the result is the same.

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


>>> x = 5 >>> id(x) 40186104 >>> x += 6 >>> id(x) 40185960 >>> z = 5 >>> id(z) 40186104   Python deletes all objects once there are no more references to it.   Here when x is bound to 11, there are no more references to 5. So I suppose it is deleted. Then why does its id remain the same after reallocation?   The other possibility is that 5 is not deleted at all. If so, then why?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


I just became curious about this sequence, so I tried several method to get exact value of the sum. I know it converges, but I have no idea to calculate the exact value. Is the value of $\sum_{n=1}^{\infty}\frac{1}{1+n!}$ already known, or does any nice method for it exist?

Here is an interesting infinite series. It would be great to see a method to evaluate it, if possible. I know it converges to a little less than 11/40  $\displaystyle\sum_{k=1}^{\infty}\frac{1}{4^{k}+k!}$  I could not think of any good identities to start this.  Thanks a million to those who can show how to evaluate it.   Maybe even in general, $\displaystyle\sum_{k=1}^{\infty}\frac{1}{x^{k}+k!}$, where $x\geq 1$


Quantum physics tells us that even a perfect vacuum be populated by "virtual" pairs of subatomic particles.  I have read that these particles are allowed to violate the Conservation of Matter and Energy because they do so for such a short amount of time before annihilation that they don't count. I don't buy it. As we.have established that "Virtual Particles" are "real"  (by virtue of the fact that well known processes don't occur with out them) .  The question still begs. As no conversion is 100 percent efficient ( a photon is still left in our reality even after annihilation) To preserve the laws of physics, the energy to create them must come from somewhere.  *  .Given this, I have two questions:   Have " virtual" pairs ever been observed and/or isolated?  Where do "virtual" particles come from? (As they would have to come from somewhere to satisfy conservation; regardless of how short a time they spend in our universe.)   post is edited and reflects (to clarify what I am asking) information discussed below where Question 1 is answered. Question 2 remains.

I (as a middle-school student) was wondering how virtual particles even conserve energy of the entire system? I don't mean just the particle's energy, but conservation with respect to the surroundings?  Let me explain more, Einstein proved that $E = mc^2$ and equivalently, we can say $m = \frac{E}{c^2}$ . We however know mass causes curvature in space-time (gravity well). Now that statement being completely valid we can use Quantum Fluctuation, implying energy and time can be related by the relation:  $\Delta{E}\Delta{t}\approx\frac{\hbar}{2}$ and by that simple relation we can make the following points:   As the energy increases, the time allowed to be "borrowed" decreases, before it gives it back to the universe. As time increases, the energy allowed to be "borrowed" decreases.    These are completely satisfactory points I've made, I believe.  Now, I have read that the vacuum is filled with constantly bubbling virtual particles that get created from the energy "borrowed" by the above relation and is destroyed again, which satisfies the energy conservation laws.   This seems to imply that  in the short time the virtual particle exists, they must have a very small mass which is: $m_{1} = \frac{\Delta{E}}{c^2}$ and using basic classical mechanics rather than GR (for sake of simplicity) we calculate that the gravitational force mediated by this short-lived virtual particle;  $F_{g}= G\frac{m_1 * m_x}{r^2}$   where $m_x$ is an particle\mass in question. Nevertheless since we know the force set upon an object moves the object in a direction, we can say it would increase its kinetic energy by this factor: $F_g = \frac{1}{2}mv^2$ which is equal to $G\frac{m_1 * m_x}{r^2} = \frac{1}{2}mv^2$.  Surely, this implies that every time quantum fluctuations happen, energy of real-particles\masses increases and therefore violates energy conservation, but what prevents this violation from taking place?  If virtual particles are not really present and interact with objects like I thought, how can Hawking radiation (currently a large concept in black hole physics) then be accepted in physics community?


How do you rotate around an object with the editor camera instead of orbiting around the center of the scene (middle mouse button).

I am starting to learn using blender, and at some point I managed to do something to the 3D view camera.  Usually the camera orbits around an object, but now the rotation seems to happen (atleast very close to) around the "camera's origin". Neither the input setting in "User Preferences", the pivot point selection nor Ctrl-Alt-Shift-C (as suggested on some forum) do anything to the issue.


I've just got annoying things in my entire life. Youtube keeps translating my youtube title and it's totally annoying. Is there a way for google translate not translating my youtube title. I tried to change my country and language and it didn't work(Its only work yesterday). Did Google make another annoying update and how do I stop this translation from happening.

Is there any way to prevent the YouTube app from translating (some) video titles from the original title (e.g. English) to the phone's configured language? (e.g. Spanish)  It's really annoying as those translations look auto-generated and are often wrong, and also gives the impression that the video itself is in a different language than the one it is really in.  In YouTube's web interface this does not happen, using the same Google account.


I asked this question to my Biology teacher and he, in collaboration with a Chemistry teacher, couldn't find the answer. My question is the following: "What does the $\alpha$ and $\beta$ represent in the secondary structure of a protein? I do reference to the $\alpha$ helix and $\beta$ sheets in proteins." I had a similar question with the glucose and we concluded that it was related to the Chemistry, the $\alpha$ or $\beta$, was related with the functional groups bonded to the carbon.

In my biochemistry textbook the terms alpha helix and alpha subunit are both used. Are these two terms synonymous? For instance, hemoglobin has an alpha and beta subunit, are these the same thing as alpha helix and beta pleated sheet?


I am getting a PDO error which seems related to the Mass Contact module. I installed, played with and then disabled the Mass Contact module. Now when I run cron I get the error:     PDOException: SQLSTATE[42S02]: Base table or view not found: 1146   Table 'drupal.field_data_field_mass_contact_category' doesn't exist:   SELECT field_data_field_mass_contact_category0.entity_type AS   entity_type, field_data_field_mass_contact_category0.entity_id AS   entity_id, field_data_field_mass_contact_category0.revision_id AS   revision_id, field_data_field_mass_contact_category0.bundle AS bundle   FROM {field_data_field_mass_contact_category}   field_data_field_mass_contact_category0 WHERE   (field_data_field_mass_contact_category0.deleted =   :db_condition_placeholder_0) AND   (field_data_field_mass_contact_category0.bundle =   :db_condition_placeholder_1) LIMIT 10 OFFSET 0; Array (   [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] =>   mass_contact ) in field_sql_storage_field_storage_query() (line 585 of   /var/www/modules/field/modules/field_sql_storage/field_sql_storage.module)   If I try to uninstall Mass Contact I get the error:     PDOException: SQLSTATE[42S02]: Base table or view not found: 1146   Table 'drupal.field_data_field_mass_contact_category' doesn't exist:   UPDATE {field_data_field_mass_contact_category} SET   deleted=:db_update_placeholder_0; Array ( [:db_update_placeholder_0]   => 1 ) in field_sql_storage_field_storage_delete_field() (line 312 of /var/www/modules/field/modules/field_sql_storage/field_sql_storage.module).   The table 'field_data_field_mass_contact_category' does not exist. It is not even created if I enable the Mass Contact module and create a category.  I have tried clearing all cache tables (using phpmyadmin) both with the Mass Contact module enabled and disabled.  I am using Drupal 7.32 on ubuntu localhost.  I have no idea how to proceed. I have found no relevent solution searching the questions here with "PDOException: SQLSTATE[42S02]: Base table or view not found". Any help/advice about how to proceed to track this problem down appreciated.

I have Drupal running on MariaDB 5.5.33. When I run update.php (after upgrade to Drupal 7.28 from Drupal 6) I get an error:     Failed: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webdb.location_country' doesn't exist: CREATE TABLE {location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter ISO Country Code', name VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Full Country Name ', PRIMARY KEY (code) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Country data managed by location.module.'; Array ( ) indb_create_table() (line 2720 of /home/web/public_html/includes/database/database.inc).   When I try to run command     CREATE TABLE {location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter ISO Country Code', name VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Full Country Name ', PRIMARY KEY (code) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Country data managed by location.module.';   in phpMyAdmin I get an error     #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter IS' at line 1   But I wasn't able to find out where is the problem.


This was basically the same as other questions I've asked, except it specifies the array modifier, as modifiers allows for control over the stages which other modifiers are used on an object. I'm changing the question, in the hopes of finding the solution I'm looking for. I'm as sorry as I can make myself feel, as a sociopath (a victim of sociopath characteristics), that I duplicated questions. I did it because I thought each question might be more specific or cover a slightly different area. Now that I've thought about it, I realise I can just edit the same question next time. Again, I'm sorry. If I could be, I'd be very sorry. My problem would be completely solved if I just learned how to do one more thing and that is use three array modifiers on the same stage of the mesh, so that all three array modifiers are arraying only 1 plane, instead of the first one arraying one plane, the second one arraying 4 planes and the third one arraying 1 plane. Is there an inbuilt feature or Python code or a plugin or a mod that does this? Also, if you know of a better way of finding out this information, please let me know. Thank you very much for any help. :)

I'm trying to create a design for a retro-futuristic computer and I need the faces of a cube to look the same and see the results as I edit them, to see how the edges of the cube interact. Furthermore, if I want to one day be a professional at Blender, it will be a good skill to have. How do I do this? Thank you for any help. :)


What I am trying to do is fetching all answers posted by me which are tagged with a particular tag. Here the example tag I have chosen is  and the site is .  Visit this link:   So, it shows that I have posted 2 answers in the last 30 days whereas I have posted 61 answers in all for that particular tag.  When I click on the  it should return all those 61 answers and it is doing so too.  But when I click on the "2", instead of returning just the 2 answers, it is returning all the 61 answers.  Similar is the case if I switch to any other tags. For example, let's take the .  Here too, it shows only 2 answers for me in the last 30 days, but when I click on the "2" the search returns  that I have posted so far.  So, is this a bug or that is the way it is supposed to be?

In the  you can see as All Time top users as well as Last 30 days top users. Link from the post count refers to the search request, and doesn't work as expected for Last 30 days section. E.g. I see "8 answers provided" in the tooltip for "8" number near Shog9:        But the search request returns all Shog's answers:        For the current time there are 296 results. This is slightly more than 8, isn't it?  Thereby I suggest to add a created:30d.. option to the search request to reflect the actual post count.  You can try this:     ..


Que: I am making a bunch of tables in which i want to remove three vertical lines from last table.  MWE:  \documentclass[12pt]{article} \usepackage[a4paper,             vmargin=0.7in, hmargin=0.7in,             headheight=14.5pt,]{geometry} \usepackage[misc]{ifsym} \usepackage{mathtools}   \usepackage{amssymb}     \usepackage{forest} \usepackage{tikz} \usepackage{parskip} \usetikzlibrary{intersections} \usepackage{tkz-euclide} \usetkzobj{all}  \begin{document} \large \setlength\extrarowheight{5pt}     \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $1$                &                 \\\hline     $2$                &                 \\\hline     $3$                &                 \\\hline     $4$                &                 \\\hline     \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $5$                &                 \\\hline     $6$                &                 \\\hline     $7$                &                 \\\hline     $8$                &                 \\\hline \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $9$                &                 \\\hline     $10$                &                \\\hline     $11$                &                 \\\hline     $12$                &                \\\hline \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $13$                &                 \\\hline     $14$                &                 \\\hline     $15$                &                 \\\hline     $16$                &                 \\\hline \end{tabular}  \vspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $17$                &                 \\\hline     $18$                &                 \\\hline     $19$                &                 \\\hline     $20$                &                 \\\hline \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $21$                &                 \\\hline     $22$                &                 \\\hline     $23$                &                 \\\hline     $24$                &                \\\hline \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.               & Ans.               \\ \hline     $25$                &                 \\\hline     $26$                &                 \\\hline     $27$                &                 \\\hline     $28$                &                 \\\hline \end{tabular} \hspace{1cm} \setlength\extrarowheight{5pt} \begin{tabular}{|c|c|}     \hline     Que.                & Ans.               \\ \hline     $29$                &                 \\\hline     $30$                &                 \\\hline                             &                    \\                         &                          \end{tabular}  \end{document}

I am trying to implement the following K-map with a table    AB C     00 01 11 10       ______________     0| 1  0  1  0     1| 0  1  1  0   I implemented it like this:   \begin{table}[htdp] \begin{center} \begin{tabular}{c|c|c|c|c|}  &00 & 01& 11& 10 \\ \hline 0&1&1&1&1\\ 1&0&0&0&0\\ \end{tabular} \end{center} \label{default} \end{table}   However on the top row I have vertical lines that I'd like to not see. I went with this approach because if i was to use a one row with the information so that I wouldn't have to worry about aligning the headings. So is there a way I can get the vertical lines not to appear in the heading row?


Is it possible to analytically solve the expression $x^{x^x}=3$? And how to solve this problem numerically? Simply testing some results, I found that $\sqrt{2.6}<x<\sqrt{2.7}$. What matches the result provided by  in the comments. But in addition to a numerical solution, like the technique posted by , is it possible to find a "closed" formula for the solution of this problem?

We can solve the equation $x^x=c$ using the Lambert $W$ function, but how do we solve $x^{x^x}=c$ ,


See the product   Ok, I cannot think why I would want the handle to be conductive. What is the deal?

My current setup is an ESD mat and ESD wristband both connected via alligator clips to unpainted screws that are screwed into a secondary PC power supply (not mounted in a PC case.) This power supply is then connected to an outlet. Would this be a good solution to be safe from static discharge and component safety from it?   I use regular screwdrivers and some of them are from a gunsmithing set, some from an electronics set. Would these screwdrivers cause damage since they are not specified ESD safe? Wouldn’t me touching the screw drivers ground them to the same level as me?  Is this a good set up to prevent ESD damage to components?  Are ESD safe screwdrivers and tools necessary in this case?


A. The two youths walked back, each recounting to the other what had happened to them.   B. The two youths walked back, recounting to each other what had happened to them.   Which sentence is more common?

They recounted to the other what  had happened to them. They  recounted to each other what had happened to them. They recounted  each other what had happened to them.   Which sentence is more correct?


UPDATE: I reorganized the code in a way that now it runs and does what is meant to do when opening the file explorer. But still I fail on having the directory path on the UI. I have this script made by stephen_leger over BlenderArtist which does what I need, now I need to add the file path in the UI, and I found another script (sorry don't remember the author) which does exactly what I want. The problem right now is how to combine both so when I hit the Sync button it loads the file that is set in the file path. Can anyone please shed some light on this? This is the UI that I'm looking after:  Here is the code updated:     import bpy     import os          from bpy.props import StringProperty, BoolProperty     from bpy_extras.io_utils import ImportHelper     from bpy.types import (Panel,                            Operator,                            AddonPreferences,                            PropertyGroup,                            )               class OT_TestOpenFilebrowser(Operator, ImportHelper):         """Sync materials from older file"""         bl_idname = "object.sync_mats_from_file_operator"         bl_label = "Sync Materials"         bl_options = {'REGISTER', 'UNDO'}              filter_glob: StringProperty(             default='*.blend',             options={'HIDDEN'}         )                      def execute(self, context):             """Do something with the selected file(s)."""                  filename, extension = os.path.splitext(self.filepath)                                      library_path = self.filepath             # get mat names available in library             with bpy.data.libraries.load(library_path) as (data_from, data_to):                     available = set(data_from.materials)                  old_mats = {mat.name: mat for mat in bpy.data.materials if mat.name in available}                  # assign temp name to old materials             for name, mat in old_mats.items():                 mat.name = "{}_tmp".format(name)                  # load from library             with bpy.data.libraries.load(library_path, False, False) as (data_from, data_to):                 data_to.materials = list(old_mats.keys())                  # replace or remove temp name             for name, mat in old_mats.items():                 new_mat = bpy.data.materials.get(name)                 if new_mat is None:                     mat.name = name                 else:                     mat.user_remap(new_mat)                     bpy.data.materials.remove(mat)                          return {'FINISHED'}               class SomePanel(Panel):         """Creates a Panel in the Object properties window"""         bl_space_type = 'VIEW_3D'         bl_region_type = 'UI'         bl_category = "TEST CATEGORY"         bl_label = "Material Sync"         bl_idname = "TEST"              def draw(self, context):             layout = self.layout                  box = layout.box()             row = box.column()             row.operator("object.sync_mats_from_file_operator")               def register():         bpy.utils.register_class(OT_TestOpenFilebrowser)         bpy.utils.register_class(SomePanel)               def unregister():         bpy.utils.unregister_class(OT_TestOpenFilebrowser)         bpy.utils.unregister_class(SomePanel)               if __name__ == "__main__":         register()  Thanks in advance, Juan

I was watching this  on making a custom UI tab using Python, and in the line from bpy.types import Menu, Panel, UIList, I see the names of objects that look like they can all be used to make different UI elements. Does bpy.types contain all the objects that people use when they want to make custom UI elements?


I'm trying to show only content with all paragraphs (possibly divs,...) but with no attached images.  I had some success with:  echo preg_replace('/<img[^>]+\>/i', '',get_the_content());   But it removes paragraphs not just images.. Any idea why?

i've implemented a jQuery gallery for displaying several images within a post. the problem is that the_content(); also displays the post image. any ideas how to filter it? thanks


Can you refrigerate Brie cheese for about two weeks unopened and expect it to still be as good? I have a round of it and it does not smell or anything. I kept it at a certain temp.

I have a Brie Cheese that has not been opened. It shows an expiration date that is 6 weeks ago. Is it still safe to eat?


In the theorem of , it is assumed that, given two sets $A$ and $B$, and  there is an injective map from $A$ to $B$ and an injective map from $B$ to $A$. It then concludes that there is bijection between $A$ to $B$.  My question here is based on hypothesis of the theorem, although it may not be closely related to the theorem, but it came to me when I first re-read the statement.  Question: Given non-empty sets $A$ and $B$, is it true that there is always an injective map from $A$ to $B$ or $B$ to $A$.

Let $A,B$ be any two sets. I really think that the statement $|A|\leq|B|$ or $|B|\leq|A|$ is true. Formally:     $$\forall A\forall B[\,|A|\leq|B| \lor\ |B|\leq|A|\,]$$   If this statement is true, what is the proof ?


What is the definitive way to determine which user created a tag on a SE site, along with exact date and time of creation?

How can I query the  for tags I've created?


I have an Thinkpad R61e that I've installed Ubuntu 16.04 LTS on. When the system suspends WiFi will not connect until I reboot. I've tried restarting network manager, but this does not correct the problem.  Any suggestions or help appreciated.

This particular version of the "doesn't work after suspend" came after upgrading to 16.04. It seems that the upgrade includes a Wicd applet (added to Metacity Classic Gnome task bar alongside regular network icon), but doesn't seem to work after a suspend. A sudo service network-manager restart duplicates this problem. It takes a complete reboot to get Wifi going again. Any ideas why?


I have read of the special variables used in a script $@ and $*. As far as I understand, the arguments used while executing the script are stored into two special variables, once all arguments into $@ and once all arguments into $*, this way they can be accessed inside the script.  I do not understand why there must be two special variables for the same set of arguments. What is the difference, when is the one and when the other special variable used ?

Consider the following code:  foo () {     echo $* }  bar () {     echo $@ }  foo 1 2 3 4 bar 1 2 3 4   It outputs:     1 2 3 4       1 2 3 4   I am using Ksh88, but I am interested in other common shells as well. If you happen to know any particularity for specific shells, please do mention them.  I found the follwing in the Ksh man page on Solaris:     The meaning of $* and  $@  is   identical  when  not  quoted  or  when  used  as a parameter   assignment value or as a file name. However, when used as  a   command argument, $* is equivalent to ``$1d$2d...'', where d   is the first character of the IFS variable,  whereas  $@  is   equivalent  to  $1 $2 ....   I tried modifying the IFS variable, but it doesn't modify the output. Maybe I'm doing something wrong?


I have amassed a small collection of *nix boxes (Fedora, Ubuntu, CentOS and Puppy) and there are a couple of projects I'm considering that I need to install additional libraries. Specifically, this OpenCV stuff:   However, his instructions are for Ubuntu, using apt-get, and I want to do the same on CentOS which uses "yum". So is there some place that maps packages across package managers? I tried this on Fedora:  sudo yum install build-essential libgtk2.0-dev libjpeg62-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev   There are a few hits, but a lot of "No package xxxx available". So, I'm hoping there is a place that shows what the package names are in what package manager.

I am currently looking for a website or a tool that would allow me to compare the package state of a particular software in different Linux distributions.  For instance, which version of gimp is provided by Mint, Ubuntu, Debian Sid and Fedora 18?  An immediate interest would be to be able to avoid reinventing the wheel when packaging software (for instance re-use patches from other distros).


When I use the search engine, when and why does it auto-convert some keywords to tags?   For example, when I input "jav" in the search engine, it gives me 283 results including relevant questions and answers.   When I input "java" in the search engine, it links to the tagged questions page. How does that work?

Asume the following search queries: osx, cocoa, iphone, xcode, applescript, mac, carbon    Searching for osx, cocoa, iphone or xcode like:   http://stackoverflow.com/search?q=osx   Results into searching by tag:   http://stackoverflow.com/questions/tagged/osx   While searching for applescript, mac and carbon like:   http://stackoverflow.com/search?q=applescript   Results into searching by string.  Yes, I know how to search by tags using brackets: [applescript] But why are the queries above interpreted differently? All queries are valid Stack Overflow tags! Why not convert all queries into search by string or search by tag? What is the logic behind? Tag popularity? It seems rather inconsistent to me.


I've read this already:   Recently I went on a mass retagging effort to clean up  from , so I'm not sure how many edits I have where I have edited something in addition to or apart from the post tags.  However, the progress meter on the review page seems to indicate that I have already earned the badge:    Yet I still have no gold badges. It says 515 here but under my revisions I see 723 so I assume that 208 of them are either pure retagging or multiple edits made to the same post (if that matters)?  Is this a bug in the progress meters and if so, is there a way to check my actual progress for the badge?

Do badges get calculated in real time, or do they get calculated by an external service? How long does it take for a badge to be awarded, once its requirements are met?  Does Stack Overflow use any external services to do things, like maintenance, e-mailing or badge calculation?


My laptop down arrow key just stopped working, so how can I remap the right shift key to work as the down arrow key?

I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work.  I have a file named .Xmodmap in my home folder which contains the desired mappings. If I run it manually it works fine, so there is no error there. In order to make it run on startup, I have tried:     Using various .xinitrc containing one of the following commands:      xmodmap .Xmodmap xmodmap ~/.Xmodmap   /usr/bin/xmodmap /home/NAME/.Xmodmap if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi  Using .Xresources instead of .xinitrc with the same variations. Setting it as a startup application.   None of the above works in Ubuntu 13.04 (64-bit). I also saw a few ideas about globally changing the keyboard mappings, but most of them were not applicable in Ubuntu 13.04 (i.e. the corresponding files did not exist where specified) and I prefer not to touch the global settings anyway.


Problem:  I have situation like this:     When I move The highlithed object the green human object moves its component as well and it shoudln't.      Objects are in no parent-child relationship.  Linked - maybe?  I thought that object may be linked. SO I tried unliking: - I highlithed the object (but not green human) - I pressed U --> Object - Is that all you have to do to unlink objects?  Can you point me in what I am doing wrong?  Side question: How can I check if an object is linked with another object?

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks.


I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory.  However, my script also generates a thumbnail immediately after the file is uploaded. This part is not working. I'm assuming that the files uploaded by the script are locked (they have a small lock appearing near them when going to the directory manually) and it can't grab the uploaded file and create a new thumbnail file based on it.  I'm not getting any error or something.  How do I edit the permissions in the way that lets me create new files using "locked" files?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.


I like having a clock showing the current time and date in the menu bar, but this morning when I logged in it's not there anymore. Everything under System Settings > Time & Date > Clock is greyed out. Ubuntu 13.10 64-bit.

I've upgraded to 13.10 and now I don't have the standard menu clock, which I need for work.  I checked and 'indicator-datetime' is installed.  I even uninstalled/reinstalled that applet with no luck.  Also my "clock" settings under System Preferences are all disabled.  I can't change anything.  Does anyone know how I can get the old menu clock back?  Alternatively is there another menu clock app I can download?  Edit 1  Thanks for the responses    I've restarted several times and that didn't fix the issue. I just ran the 13.10 update today.  But I ran it again a few minutes ago.  I got   about 200KB in random updates.  The issue is still present after a reboot. # apt-cache policy indicator-datetime indicator-datetime: Installed: 13.10.0+13.10.20131016.2-0ubuntu1 Candidate: 13.10.0+13.10.20131016.2-0ubuntu1 Version table: *** 13.10.0+13.10.20131016.2-0ubuntu1 0     500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages     100 /var/lib/dpkg/status   Edit 2  I believe the issue is related to 'rarings' changing the systray somehow...   Or , although I haven't got that solution to work yet.  Edit 3  Because of a suggestion from RolandiXor I've check the binaries.  My system is missing 'libical.so.0' but it has 'libical.so.1'.    ldd /usr/lib/x86_64-linux-gnu/indicator-datetime-service libical.so.0 => not found   Does anyone know how to get the libical.so.0 binary that the datetime service needs but doesn't install?


I have often come across this confusion when im using English. Which word ( if or whether) is to be used in what specific contexts?How do they differ in the contexts they are used in? Or are they just used interchangeably?

In the past, some experts wondered if Tut died in a chariot crash.   Can I use whether to take the place of "if" in this sentence?


On my Lenovo Yoga Pad 2 with Ubuntu 14.04 there is no option to dim the screen when in battery mode.  There is one option "Dim screen to save power" but it doesn't seem to have any effect:    How can I set the brightness to another dim level on battery power in Unity?

KDE and XFCE4 has a program to adjust the screen brightness automatically in battery mode to a preset value. How can i set the same with Unity ( or Gnome3 )?


In most cases (in the USA) the major ISP's offer moderate download speeds, but the uploads speeds are a fraction of the upload speeds (normally about 10%).    Why is this done?  It would seem better to have the same speed for the upload and download even if this would make the download slower.  Is the ISP's infrastructure set so that more is dedicated to downloads as that is what more people in the world use?

I have used dial-up and/or broadband services from many service providers (in India) and one thing I noted is that the upload bandwidth is lower than the download bandwidth.  Is there any reason for this?


I would like to package Nagios 4 on Ubuntu. Installation from source involves multiple make commands and a configure command.  wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.3.4.tar.gz tar xzf nagioscore.tar.gz cd /tmp/nagioscore-nagios-4.3.4/ ./configure --with-httpd-conf=/etc/apache2/sites-enabled make all make install make install-init make install-commandmode make install-config make install-webconf    How do I make a deb or apt package out of this?   I tried following the Ubuntu instructions  When I run the bzr dh-make package version package.tar.gz, I get the following error  bzr: ERROR: Either run the command from an existing branch of upstream, or move nagioscore-nagios-4.3.4 aside and a new branch will be created there.

I have always had a problem installing and removing compiled software, so I have decided I would like to build software from source into a .deb package for easier installation/removal.  I would like to know of an easy and short way to build source into a .deb package, as an end user.  I have tried:   , which did not work for me This  guide, but I found it too long


By mistake I ran   sudo apt-get purge 7.0.*     instead of   sudo apt-get purge PHP 7.0.*   Now my system is not opening. What to do now?  I updated the system but still no progress.

I accidentally removed all the packages starting with the name jpeg with:  sudo apt-get remove jpeg*   This screwed up a lot of things, removed Unity, Firefox, Flash player etc.  I somehow managed to recover the desktop and unity but then a lot of things are still buggy. For example .rpm files and .tag.gz just won't open up at all.  What I want is a way to fix everything that's amiss. Something that is the equivalent of a 'repair installation' with a windows disc.  Any tips, anyone?


I forgot my Ubuntu 13.10, so I reset my password from revoverymode using "passwd". Now when I log in to my system the keyring prompts "The password you use to login to your computer no longer matches that of your login keyring". I googled to change the keyring password but it requires my old password that I don't remember.  Any suggestions on how to solve this.?

I am on Ubuntu and I have forgotten the password for my Gnome Keyring (yes, stupid me, I know). Any way I can get it back? I have already looked at , but it says it's not possible if my home directory is encrypted and unfortunately my home directory is encrypted.


A problem in Bohr's day was understanding why an orbiting electron does not continuously radiate an EM field. An orbiting electron is a moving charge and according to Maxwell, this should generate an electric and magnetic field. Bohr said that photons (packets of EM energy) are only emitted when an electron jumps from a high quantum state to a lower one. Does that mean that an electron in a stable atom really isnt moving? Conversely, does Bohr's model mean that all motion requires energy transitions from one qunatum sate to another?

I'm having trouble understanding the simple "planetary" model of the atom that I'm being taught in my basic chemistry course.   In particular,    I can't see how a negatively charged electron can stay in "orbit" around a positively charged nucleus. Even if the electron actually orbits the nucleus, wouldn't that orbit eventually decay?  I can't reconcile the rapidly moving electrons required by the planetary model with the way atoms are described as forming bonds. If electrons are zooming around in orbits, how do they suddenly "stop" to form bonds.     I understand that certain aspects of quantum mechanics  to address these problems, and that there are  of atoms. My question here is whether the planetary model itself addresses these concerns in some way (that I'm missing) and whether I'm right to be uncomfortable with it.


I have class X and in it there is a static method called doStuff() and I have several other classes with methods that call to doStuff() for some reason. Is there a way for example to have a print method in doStuff() that prints from which methods and classes it is called ?

I need to find the caller of a method. Is it possible using stacktrace or reflection?


I have Ubuntu on my external hard drive and I would like to boot Ubuntu when I plug it in. When it's not plugged, it should boot Windows.  Currently, when my external HDD is not connected, I get to the GNU GRUB version 2.02 screen. Can this be fixed too?

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files.   Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry?  Can anyone post detailed guide how install Ubuntu on external hard drive?


There is a bit of a discrepancy when showing when a flag was submitted. A flag submitted yesterday does not show at what time it was submitted, it just states "yesterday".  Other, older, flags show the time, as well as the date.         Not sure if this discrepancy is due to the "Pending" status.  It would be nice if the time is shown.  Why? Because I was wondering whether I should reflag my question for migration (in case it had fallen down a hole, or been forgotten about), and wanted to know how much time had passed. I thought that I had actually submitted the flag two days prior, and comparing its response time to those of my previous flags, it seemed as if the pending flag was taking its time in being "seen to". However, I was unable to determine exactly how long the delay was, as the time is not shown. Minor quibble, maybe.    With respect to this question being a possible duplicate, yes, agreed it is the same issue, relating to the timestamp mechanism, although those two questions ( and ), relate only to questions/answers and make no  explicit mention of the issue occurring with flags as well.  However, looking through the answers to the other question(s), I have just discovered that  provides the time stamp that I was looking for:

As I've looked through questions Stack Overflow recently, I've noticed that recently asked questions use relative time (posted yesterday or last edited 2 days ago), which is fine. Yet if I find an older question, I'm given a fuller date range like Sep 20 '11 at 20:55.  Why is the specific time given on older questions but not on newer questions? Couldn't the time stamp use relative time plus the hour, minute it was posted? An example would be posted yesterday at 12:05pm.


Let $G=\{ z \mid |z| < 1\} $. Show there are not function such that $f \in A(G)$ and $f(0)=1$ and $|f(z)| \ge 1 + |z| ^ 2$  So I assume by contradiction that there is such function $f$. I thought to start using Cauchy's formula and I get  $$ \int_{|z|= 1} \frac{f(z)}{z} \,\mathrm dz= f(0) = 1$$  It seems that I should somehow use the maximum principle, but since here $f$ is greater than something, I am not really sure how.  Help would be appreciated

Show there is no analytic function in $\{|z|<1\}$ such that $f(0)=1$ and $|f(z)|\ge 1+|z|^2$. I guess something went wrong along the way and I would like your assistance.   $f$ does'nt get a maximum in the domain, because if it did, it would be constant in the domain, meaning $|f(z)|=1\ge 1+|z|^2$ which doesn't hold for all z. Since $f$ isn't zero in the domain, ${1\over f}$ is analytic in the domain. but $|{1\over f(z)}|\le {1\over 1+|z|^2}\le 1={1\over f(0)}$, which indicates a local maximum making ${1\over f}$ constant, contradiction the fact the $f$ isn't. What am I really lacking here?


Is it possible to access the property of a javascript object using a string?  example: I have a javascript object "obj" that contains a property 'index'.  obj.index = 4;   Now let's say I have a string whose value is the same as a property name of my object:  var str = "index";   Can I use the value of the str variable to access the 'index' property of 'obj'?

I'm pulling items out of the DOM with jQuery and want to set a property on an object using the id of the DOM element.   Example  const obj = {}  jQuery(itemsFromDom).each(function() {   const element = jQuery(this)   const name = element.attr('id')   const value = element.attr('value')    // Here is the problem   obj.name = value })   If itemsFromDom includes an element with an id of "myId", I want obj to have a property named "myId". The above gives me name.  How do I name a property of an object using a variable using JavaScript?


Recently I have been writing a chatbot, and in part of the process it expands contractions. While doing this, I have found odd behavior for the contraction "isn't". There are two different way to expand this contraction:     isn't this great → is this not great?   or:     what isn't great → what is not great   Essentially, in some cases the "not" goes after the following word (the word following the contraction); in others it doesn't. I can't seem to nail down in which cases this happens and in which cases it doesn't. Is there some rule to specify how it expands?

I refer to the usage of "don't" as an imperative to tell someone what not to do. As in,     Hey! Don't you dare touch that button!   When it is used in the interrogative or as part of a statement, "don't" can be expanded like most other contractions. It either just breaks up right in the sentence, or surrounds the subject.     Don't you love me, Juanromeo? -> Do you not love me, Juanromeo?      I don't love you, Marijuliet. -> I do not love you, Marijuliet.   However, I have no idea how one breaks up the imperative. "Do you not dare[...]" sounds like it's a lead up to a question, "You do not dare[...]" comes across as a statement moreso than a command, and "Do not you dare[...]" just sounds silly.  "Don't" is a bit unique among "not" contractions (at least that I know of) because it is the only one that can be used in an imperative sense. Couldn't, shouldn't, wouldn't, haven't, isn't, doesn't, aren't, can't... none of these can be used in an imperative sense because you cannot command someone to could, should, etc.  Is it possible to expand the don't contraction when it is used as part of a command? Or is its unique case such that it exists as its own linguistic construct?


I got my visa Type D Mult for Talent/Researcher from France since I will be starting my postdoc there. But my contract signing is on 6th January. So I want to go to Netherlands on Christmas to my fiancée.   If I land in Amsterdam on this bus, would it be a problem?  Dates of the visa are okay and not an issue.

I have requested for a French long term (Type D) student visa from a consulate in India. It's a national Type D visa and not a Schengen visa. My question is that can we still go to other Schengen countries on this visa? If not then can we get a Schengen visa from a consulate in France?


I have just started an algorithm design and analysis class and I am completely lost. We seem to be moving thru material that I am unfamiliar with and my book is terrible. My instructor tried to help but I still do not understand. The question:  Show that if f(n) is O(g(n)) and d(n) is O(h(n)), then the summation f(n) + d(n) is O(g(n) + h(n))  If someone could help me understand this proof and show me the methodology for proving something like this I would be so grateful. This isn't homework, but is similar to stuff we are doing in class and it's going right over my head. Give me the child's explanation if you could.   I have used this as a reference:     but im still very confused. Thanks so much in advance.

Suppose $f(n)$ is $O(g(n))$ and $d(n)$ is $O(e(n))$. How do I use Big O to show that  $f(n) + d(n)$ is $O(g(n) + e(n))$?


Here is my code snippet:  inline uint8_t &AT(uint16_t addr) { // non-const version     return (addr < 0x2000 ? Ram[addr & 0x7ff]:        \     addr < 0x4000 ? PPURegister[(addr - 0x2000) & 0x7]: \     addr < 0x4020 ? APUIORegister[(addr - 0x4000)]:     \     addr < 0x6000 ? ExpansionRom[addr - 0x4020]:        \     addr < 0x8000 ? SRam[addr - 0x6000]:                \     addr < 0xc000 ? LowerPRGRom[addr - 0x8000]:         \     UpperPRGRom[addr - 0xc000]); }  inline const uint8_t &AT(uint16_t addr) const { // const version     return AT(addr); // Function `AT` will recurses infinitely! But I don't want to copy the body of non-const function here. }   There are functions uses it:  uint8_t &operator[](uint16_t addr) { return AT(addr); } const uint8_t &operator[](uint16_t addr) const { return AT(addr); }   so, how to implement the function which returns const simply and clearly?

Let's say I have the following class X where I want to return access to an internal member:  class Z {     // details };  class X {     std::vector<Z> vecZ;  public:     Z& Z(size_t index)     {         // massive amounts of code for validating index          Z& ret = vecZ[index];          // even more code for determining that the Z instance         // at index is *exactly* the right sort of Z (a process         // which involves calculating leap years in which         // religious holidays fall on Tuesdays for         // the next thousand years or so)          return ret;     }     const Z& Z(size_t index) const     {         // identical to non-const X::Z(), except printed in         // a lighter shade of gray since         // we're running low on toner by this point     } };   The two member functions X::Z() and X::Z() const have identical code inside the braces.  This is duplicate code and can cause maintenance problems for long functions with complex logic.    Is there a way to avoid this code duplication?


At pinterest.com, a user can type in anything into the search box. As soon as the mouse leaves the search box, all the words are converted into a button with a close button.  The same thing happens in the 'Tags' input box here at stackoverflow.  How was this implemented? Is there a jquery plugin for it?

What solutions accomplish the same auto-completion that SO uses for entering tags?  There are plugins that can handle one word but I haven't seen any that handle multiple words.


I'm desperate, I've tried everything. I can't install Skype no matter what. I've tried every command I could and still nothing. When I download from the website I get a read only folder.  Whatever command I use, this is the result   Unable to locate package Skype

I want to install Skype, but I can't locate it in Software Center or by using Synaptic Package Manager. Can anyone help me?


I am searching for vertical short dash (similar to \vdash) but couldn't find one. Fourier and mathpazo packages do contain this symbol but there is no corresponding macro defined.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


The following is taken from M.A. Armstrong's Groups & Symmetry, #15.6  If $H,J$ are normal subgroups of a group $G$, and if they only have the identity element in common, show that $xy=yx$ for all $x\in H, y\in J$.  This question looks so easy, but I cannot seem to answer it. Since $H,J$ are normal, $yH=Hy$ and $xJ=Jx$, and $yh=h'y$ for $h,h'\in H$ and $xj=j'x$ for $j,j'\in J$. I'm missing the hypothesis $H\cap J = \{{e}\}$. How does this figure?

Let $H,K⊲G$ be two normal subgroups such that $H∩K = \{1_G\}$. Prove all elements in $H$ commute with all elements in $K$.  I have no idea how to do this.


We know for $f(x)=0$ and $f(x)=e^x$ the function is same as its derivative. I was wondering if there are any other such functions and how do we go about finding it?

I was wondering on the following and I probably know the answer already: NO. Is there another number with similar properties as $e$? So that the derivative of $\exp(x)$ is the same as the function itself. I can guess that it's probably not, because otherwise $e$ wouldn't be that special, but is there any proof of it?


Whenever I add a text object it always defaults to Bfont. How do I change that? I have not seen any settings in the user preferences. (However there is a setting to change the UI font.)

I have been playing with the settings for the text object recently, and every time I add a new text object, I need to change the font to my favorite one. (Eurostile LT ExtendedTwo) Is there any way to change the default font so I do not need to change it every time I add a new text object?   Example:


The website I'm working on pulls in and displays data from various SQL Server databases. These databases can be set up with different collations depending on where they are used and there is no possibility to alter these collations. I'm using PHP with the sqlsrv_query library to query the database and display the results on the page. The webpage itself is encoded in UTF-8 (meta tag and file type are both UTF-8). If I enter some accented characters in the body of the webpage they display correctly. However, any data pulled in from the database, when displayed, has a <?> symbol instead of the accented characters. If I output the data to a text file as it's read in, the characters are OK in the text file. file_put_contents($fileName,PHP_EOL .'data item '.PHP_EOL .$itemName,FILE_APPEND);  The text file is created by the PHP command in ANSI encoding (Windows 10) in a local folder. If I add this: $itemName = utf8_decode($itemName);  the <?> symbol changes to a simple ? I'd prefer not to strip the accents but if there's no other way, I'll do that. However, I've tried the normalize and slugify functions from this link  but normalize does not change anything and slugify throws an error on an unexpected character. Normalize works just fine on a string passed to it by other means so I presume that, even though it looks right to the eye when output to a file, the character is already broken by the time I try to convert it. Is there any way to display the characters on the webpage without making any changes to the remote database?

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


I want to generate random colors for a graphic chart but what I tried is not recognizable and generated color are similar to each other generally. Is it possible to create such colors?  My method:      public Color[] GenerateColors(int n)     {         Color[] colors = new Color[n];         for (int i = 0; i < n; i++)         {             int R = rnd.Next(0, 250);             int G = rnd.Next(0, 250);             int B = rnd.Next(0, 250);              Color color = Color.FromArgb(R, G, B);             colors[i] = color;         }         return colors;     }

I'm looking for a simple algorithm to generate a large number of random, aesthetically pleasing colors. So no crazy neon colors, colors reminiscent of feces, etc.   I've found solutions to this problem but they rely on alternative color palettes than RGB. I would rather just use straight RGB than mapping back and forth. These other solutions also can at most generate only 32 or so pleasing random colors.   Any ideas would be great.


If I have a list of n items and I want to refer to the item that is just before the end of the list, do I say "first to last" or "second to last"?  For example:     First item   Second item      ...      99th item   100th (and last) item   How do I properly refer to item 99. In my thinking, item 99 is not the last, it is the first to last. But other are telling me that the proper way to refer to item 99 is as the "second to last item".  Which is correct?

In German there is a pattern for counting items from the end of a list. The last item is "das letzte", the one before is "das vorletzte", the one before that is "das vorvorletzte" and for each other item there's just another "vor" added.  While searching for an English translation for the German word "vorvorvorletzte" I came across   and  but none of them showed any usage pattern. Furthermore I didn't find any indication of which variant ("to", "from", no preposition) is used most nor to what area of the world those translations apply.  So I am still wondering: When there are items 1, 2, 3, 4 and 5, how can/will item 2 be called?   third from last? fourth from last? anteantepenultimate? fourth-last? fourth to last? the last but three item? the last but four item?   Is this a question of dialect/local use?


I am looking for a tool that reformats my LaTeX source code so that it becomes nice and readable. For programming languages like C, C++, etc. such pretty printers exist.  Are there any pretty printers for LaTeX source?

I'm looking for a LaTeX code sniffer and/or code beautifier, because I'm creating a CI server for my LaTeX books and I wanted a few things. :D


Unlike everyone elses problems! Mine crashes after I've logged on; at the part that says: "Mojang".   I had mods installed but have since removed them completely and it still isn't working.  Below I've attached the minecraft crash report:  ---- Minecraft Crash Report ---- // My bad.  Time: 7/20/15 9:27 PM Description: Initializing game  java.lang.OutOfMemoryError: Java heap space     at bmi.a(SourceFile:230)     at bmh.b(SourceFile:130)     at bmh.a(SourceFile:77)     at bot.j(SourceFile:553)     at bot.a(SourceFile:139)     at bou.a(SourceFile:23)     at bnn.a(SourceFile:99)     at ave.am(SourceFile:448)     at ave.a(SourceFile:310)     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 bmi.a(SourceFile:230)     at bmh.b(SourceFile:130)     at bmh.a(SourceFile:77)     at bot.j(SourceFile:553)     at bot.a(SourceFile:139)     at bou.a(SourceFile:23)     at bnn.a(SourceFile:99)     at ave.am(SourceFile:448)  -- Initialization -- Details: Stacktrace:     at ave.a(SourceFile:310)     at net.minecraft.client.main.Main.main(SourceFile:124)  -- System Details -- Details:     Minecraft Version: 1.8.7     Operating System: Mac OS X (x86_64) version 10.9.5     CPU: 2x Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz     Java Version: 1.6.0_65, Apple Inc.     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.     Memory: 282712 bytes (0 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)     JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.8.7     LWJGL: 2.9.2     OpenGL: NVIDIA GeForce 320M OpenGL Engine GL version 2.1 NVIDIA-8.24.16 310.90.9.05f01, NVIDIA Corporation     GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported.      Using VBOs: Yes     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs: [PureBDcraft 512x MC18, herobrinepack9110877]     Current Language: English (US)     Profiler Position: N/A (disabled)   And this is the text Mojang/Minecraft shows me all the time!     Uhoh, it looks like the game has crashed! Sorry for the inconvenience.      With magic and love (?) we've managed to grab some details about the crash and >we will get on it as soon as we can   You can see the full crash below    Can anyone here help me? It would mean the world to me!

Similar to  on the bugs in Minecraft, I would like a complete list of what error codes exist in Minecraft and how they occur, as well as how they can be resolved.


Will this series converge? $\sum \frac {1/2 + (-1)^n}{n}$  MY Try:  Dirichilet  , Abel , libnitz rules can not be used.   $\sum \frac {1/2 + (-1)^n}{n} = \sum \frac {1}{2n} +  \sum\frac {(-1)^n}{2n} $. Is it possible to write in that way? If yes the how?   Can anyone please help me out?

Does  the following series converge?: $$\sum_{n=1}^{\infty} \frac{\frac{1}{2}+(-1)^n}{n}$$   Liebnitz test shouldn't work here...Also I try to find out the partial sum sequence but it was not so fruitful ....Please help.


1) I have two classes class A and class B which both have a method called foo but with different argument lists.    class A { public:   void foo(int a); };  class B { public:   void foo(int a, int b); };   2) Further, I have a class C with template argument T that also has a foo method as following  template <typename T> class C { public:   void foo(); private:   T t_;   int a_;   int b_; };   3) I would like use both class A and class B as template argument for class C. Saying that I would like to have a method C::foo to be implemented like following:  template <typename T> void C<T>::foo() {   if (compile time check: T has foo(int a, int b))    t_.foo(a_, b_);   else    t_.foo(a_); }   How can I express the if statement above in C++11?

Is it possible to write a template that changes behavior depending on if a certain member function is defined on a class?  Here's a simple example of what I would want to write:  template<class T> std::string optionalToString(T* obj) {     if (FUNCTION_EXISTS(T->toString))         return obj->toString();     else         return "toString not defined"; }   So, if class T has toString() defined, then it uses it; otherwise, it doesn't. The magical part that I don't know how to do is the "FUNCTION_EXISTS" part.


I have 245 rep on Stack Overflow and just made an account on GameDev (and here). Both of those have 1 rep.  Why didn't I get the +100 association bonus?

I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit "" in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)


I am currently attempting to run a Python code that has this basic structure:      var = 0     def Function2():         if var == 1:             ...        def Function():         var = 1         Function2()   However, when it runs, it doesn't recognize the global variable. Is there any way to fix this?

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I am trying to make sense of this logic diagram for an ON Semiconductor 7-segment display driver. What is this logic symbol? I have never seen it before, and I have not seen it anywhere online after looking for about an hour.    Here it is in the larger logic diagram:

Could someone please tell me what the symbol ringed in red represents?     I know it has ON Switch pointing to it, but the symbol has other lables in different parts of the document.


If $n$ be a non-negative integer then solve for $n$:$$\left\lfloor \frac{n}{27} \right\rfloor=\left\lfloor \frac{n}{28} \right\rfloor$$  My Attempt: $$\left\lfloor \frac{n}{27} \right\rfloor=\left\lfloor \frac{n}{28} \right\rfloor=k$$  I am able to get $k<28$ but can't proceed from here

How many non negative integral values of $x$ satisfy the equation :$$\biggl\lfloor{\dfrac{x}{5}}\bigg\rfloor=\bigg\lfloor{\dfrac{x}{7}}\bigg\rfloor$$.   My try:  Writing few numbers and putting in the required equation.  $\underbrace{0,1,2,3,4}_{\implies 0=0},\underbrace{5,6}_{\displaystyle\times},\underbrace{7,8,9}_{\implies 1=1},\underbrace{10,11,12,13}_{\displaystyle\times} ,\underbrace{14}_{\implies 2=2},\underbrace{15,16,17,18,19,20}_{\text{LHS gives 3 but RHS gives 2}},\underbrace{21,22,23,24}_{\text{LHS gives 4 but RHS gives 3}}$.  The point which I wish to make here is that after $14$ we'll get $5's$ multiple before than $7's$, hence $\forall x \geq 15 \implies \biggl\lfloor{\dfrac{x}{5}}\bigg\rfloor>\bigg\lfloor{\dfrac{x}{7}}\bigg\rfloor$  Hence the only solution are: $\{0,1,2,3,4,7,8,9,14\}$. Does these make sense?  I need to know other solutions that don't incorporate such analyzing, means using some properties and framing it to solve above.


I would like to limit one of my sudo users to only be able to reset a users password. I do not want them to have any other administrative privileges but that.  I know how to block certain access, but how would I block everything but passwd.

I would like to run fastboot command without sudo. it's working if I put sudo in front of it, otherwise it wont.  like this:  $ sudo fastboot devices 2738006a    fastboot  $ fastboot devices no permissions  fastboot   How do I solve this?


I am not sure why this question is marked as a duplicate of . That question and this question are two totally different questions.  I have installed libcppunit-dev with apt-get on my Debian system.  $ dpkg -l libcppunit-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                       Version            Architecture       Description +++-==========================-==================-==================-========================================================== ii  libcppunit-dev             1.13.2-2.1         amd64              Unit Testing Library for C++  $ dpkg -L libcppunit-dev | grep "libcppunit\." /usr/lib/x86_64-linux-gnu/libcppunit.a /usr/lib/x86_64-linux-gnu/libcppunit.so   I have written a simple test. Since my concern right now is only linking cppunit, I don't have a test runner yet. Ignore the lack of test runner for now. Here is my test.cpp:  #include <cppunit/extensions/HelperMacros.h> #include <iostream>  class FooTest : public CppUnit::TestFixture { protected:     void testFoo()     {         CPPUNIT_ASSERT_EQUAL(1 + 1, 2);     }  private:     CPPUNIT_TEST_SUITE(FooTest);     CPPUNIT_TEST(testFoo);     CPPUNIT_TEST_SUITE_END(); };  CPPUNIT_TEST_SUITE_REGISTRATION(FooTest);  int main() {     std::cout << "hello\n";     return 0; }   Dynamic linking works fine:  $ g++ -lcppunit test.cpp && ./a.out hello   Static linking fails:  $ g++ -l:libcppunit.a test.cpp /tmp/ccwMWIsX.o: In function `CppUnit::AdditionalMessage::~AdditionalMessage()': test.cpp:(.text._ZN7CppUnit17AdditionalMessageD2Ev[_ZN7CppUnit17AdditionalMessageD5Ev]+0x14): undefined reference to `CppUnit::Message::~Message()' /tmp/ccwMWIsX.o: In function `FooTest::testFoo()': test.cpp:(.text._ZN7FooTest7testFooEv[_ZN7FooTest7testFooEv]+0x70): undefined reference to `CppUnit::SourceLine::SourceLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' test.cpp:(.text._ZN7FooTest7testFooEv[_ZN7FooTest7testFooEv]+0xa5): undefined reference to `CppUnit::SourceLine::~SourceLine()' test.cpp:(.text._ZN7FooTest7testFooEv[_ZN7FooTest7testFooEv]+0xe9): undefined reference to `CppUnit::SourceLine::~SourceLine()' /tmp/ccwMWIsX.o: In function `FooTest::getTestNamer__()': test.cpp:(.text._ZN7FooTest14getTestNamer__Ev[_ZN7FooTest14getTestNamer__Ev]+0x41): undefined reference to `CppUnit::TestNamer::TestNamer(std::type_info const&)'   What can I do to ensure that static linking with cppunit succeeds?

Why does the order in which libraries are linked sometimes cause errors in GCC?


Let $A,B$ be commutative rings, and $f:A\to B$ be ring homomorphism. Then, we get group homomorphism $f^{*}: A^{*}\to B^{*}$. When $f$ is surjection, is $f^{*}$ surjection?

I know ring homomorphisms map units to units, which made me curious about the following. Suppose $f:R\to R'$ is a surjective ring homomorphism, mapping $1$ to $1'$. Is it necessarily surjective from $U(R)\to U(R')$?  I know if $f(u)$ is a unit in $R'$ with $f(w)$ its inverse, then $f(uw)=f(wu)=1'$, but I see no reason to conclude $uw=wu=1$ in $R$ without assuming $f^{-1}(1')=\{1\}$. But I can't find a counterexample, so I'm not sure whether it's true or not.


My mid-2010 MBP is malfunctioning. For all the keys I have to press down quite hard to get a response. "slow keys" is off. I spilled some water around the keyboard a few days ago, that's about when this started. I started popping keys off and it was rather dirty under each key, I cleaned them with a cotton swap and rubbing alcohol. Has made an improvement, more responsive but still hard to press. Is there another method for cleaning them better. Or something else that could cause low responsiveness?

This is an attempt to write a canonical QA for this issue, as per the Meta post:   I expect it to be periodically edited with the goal of becoming a comprehensive information resource.  I have a MacBook Pro that has a key(Shift, Return,   Command, P, etc.) that doesn’t respond when pressed or is stuck in the down position.    It's possible that my favorite beverage was spilled (or some other liquid damage).  It's also possible that I have no idea what happened.  It was working yesterday and suddenly today it's no longer working.  Is there any way to bypass or remap the key?  Can I  have the system ignore it completely?  (This question can also apply to external USB keyboards or the Bluetooth keyboards)


I'm making a simple script that adds a cube and moves it, and then I want to shift some of the faces, in order to change the cube's width height or depth. When I run it, the cube is created and moved, but altering de cube's dimensions gives an error:   convertViewVec: called in an invalid context   I'm using the code that's shown in the Info window when I select a face and drag it along one of the axes. I'm new to Blender and I can't figure out what's missing here..  import bpy  bpy.ops.mesh.primitive_cube_add() bpy.ops.transform.translate(value=(0, 6.04281, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.transform.translate(value=(0, 0, -5.22667), constraint_axis=(False, False, True), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.transform.translate(value=(0, 2.9328, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.object.editmode_toggle() bpy.ops.transform.translate(value=(0, 1.03954, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True)   Edit - Solved it by creating a custom geometry, as shown here:  (Pointed out by @poor)  The following code now creates a flat cube:  import bpy    verts = [ (2.0, 1.0, -1.0),  (2.0, 0.99, -1.0),  (-1.0, 0.99, -1.0),  (-1.0, 1.0, -1.0),  (2.0, 1.0, 1.0),  (2.0, 0.99, 1.0),  (-1.0, 0.99, 1.0),  (-1.0, 1.0, 1.0)]  faces = [ (0, 1, 2, 3),  (4, 7, 6, 5),  (0, 4, 5, 1),  (1, 5, 6, 2),  (2, 6, 7, 3),  (4, 0, 3, 7)]  mesh_data = bpy.data.meshes.new("cube_mesh_data")   mesh_data.from_pydata(verts, [], faces)   mesh_data.update()  obj = bpy.data.objects.new("My_Object", mesh_data)    scene = bpy.context.scene     scene.objects.link(obj)     obj.select = True

I have an array of values and I need to extrude each face - faces[i] - of an icosphere with the amount of arr[i] in the direction of it's normal.  I managed to extrude the face I have selected by hand and managed to get the list of all faces of the mesh, but can't find a way to combine these solutions.


Will all XP files be deleted? I'm new to Ubuntu and all I want to know is if those files of XP won't get lost at all.

At this time, Wubi does not work with Windows 8 default boot-loader. Thus at this point Wubi would not work on a new Windows 8 machine.      Citation fom    Question  Recently I've learned of , a way to install Ubuntu right from Windows.  Besides installing from Windows, I would like to know key differences between a regular "alongside Windows" or Dual-boot Ubuntu installation and one done with Wubi. Are there any disadvantages (for example a performance penalty) or incompatibilities I should look out for when using Wubi?


I have a new MacBook Pro that I leave plugged in and closed because I use an external display, keyboard, and mouse. My monitor, keyboard, and mouse are also used by my PC. When I'm finished with work, I'd like to be able to easily sleep the Mac so that my monitor can automatically switch over to my home PC.  say:  Option–Command–Power button* or Option–Command–Media Eject : Put your Mac to sleep  But my Windows keyboard doesn't have a "Media Eject" or "Power" button on it. What are my other options for easily putting my Mac to sleep? I already know I could use the mouse to click Apple > Sleep. And I could open the lid and use the power button. But I'd prefer a keyboard command.

I am looking for a quick way to sleep without closing the lid, or using the mouse.  If it matters, I have Lion version OS and a MacBook Air.


I am looking to write a GUI in Java that will give standardized information from the computer's hardware (for example, I want to know what my processor is, and discover that it's an Intel i7 processor, with an integrated graphics card). Are there any external libraries to download that would enable me to read this information?  Keep in mind, all I want is the name of the processor/graphics card/operating system, not anything within it.  Edit:  I understand that there is another question asking something similar, however, that question is asking about the usage of the specific parts of hardware, where I am simply looking for the names of the hardware.

I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows.  Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just what the Java app itself is consuming?  Preferrably I'd like to get this information without using JNI.


I am attempting to dynamically add FrameLayouts inside a RelativeLayout but am getting the following error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RelativeLayout.addView(android.view.View)' on a null object reference  which occurs during rl.addView(fl)  public class StartingPage extends AppCompatActivity {  //set to 1 temporarily int count = 1;  @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_starting_page);      RelativeLayout rl = (RelativeLayout) findViewById(R.id.mainMenu);     FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100, Gravity.CENTER_HORIZONTAL| Gravity.CENTER_VERTICAL);      for(int i=0; i < count; i++){          FrameLayout fl = new FrameLayout(this);        fl.setLayoutParams(params);         TextView item = new TextView(this);        fl.addView(item);         rl.addView(fl);     } }  }   My research seems to conclude that this would work, why is the FrameLayout fl null? I understand that a LayoutInflater is an option, which I have briefly tried to no avail, but it seems that many people were simply able to create the layouts and views and add them to the desired parent in this simpler manner.   <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"     android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     android:paddingBottom="@dimen/activity_vertical_margin"     android:id="@+id/mainMenu"     tools:context="com.marcel.joseph.project.Main_Menu">  </RelativeLayout>   Furthermore, what makes a layout null? Is it the lack of children, undefined attributes, or something else?  Thanks

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


Only when is the green light on vehicles may cross the train track.  Only when the green light is on vehicles may cross the train track.  which of these is grammatically correct to use, as I have learnt the word only at the beginning of the sentence followed by auxiliary verb(inversion), but it sounds a bit odd to me.

I have seen this construction quite often:      Online ads have been around since the dawn of the Web, but only in   recent years have they become the rapturous life dream of Silicon   Valley.   What is the rule there?. When your sentence doesn't start with pronoun + verb, invert them as verb + pronoun?. I know it sounds awkward but is it possible (grammatically correct) to use something similar to:      Online ads have been around since the dawn of the Web, but only in   recent years they have become...   And in any case, does this only work with have (or has)? Maybe it works fine with 'had' but I can't think of an example right now.


Our current implementation method uses SFMC's client-side code snippet that returns and places it's HTML in our module and outputs the following on the page:  <script src="https://[MID].recs.igodigital.com/a/v2/[MID]/category/recommend.js?category=Living%20and%20Wellness&amp;item=182520" async=""></script>   We'd like to get the JSON object directly from our client-side script but the request is blocked by the following CORS (cross-origin resource policy) error:  Access to XMLHttpRequest at 'https://[MID].recs.igodigital.com/a/v2/[MID]/category/recommend.json?category=Living%20and%20Wellness&item=182520' from origin [Site URL] has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.   Has anyone else ever seen this? Any suggestions for addressing?

According to , web recommendations can be delivered via JSON response or HTML/JS. It mentions that the JSON response is the best method. However, there is no documentation for getting it. The only documentation they have covers the .  Now I am able to see the JSON object when I view the URL in the browser (details removed for security purposes): https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}  but using it in JavaScript like this yields this CORS policy error, preventing me from getting anything:  JavaScript snippet  <script>     $.getJSON("https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}",         function(response, status, xhr) {             //Do something with response         }).error(function(xhr, status, errorThrown) {             //Do something with error, I always end up here with the CORS error         }); </script>   Error     Access to XMLHttpRequest at   'https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}'   from origin {SITE_URL} has been blocked by CORS policy: No   'Access-Control-Allow-Origin' header is present on the requested   resource.   Obviously I cannot adjust the server settings for igodigital to modify the JSON file's headers to allow my site access since that's managed by Salesforce.  I attempted to whitelist my site's domain using , but I can't get past step 1 because it's only available in Salesforce Classic and Lightning Experience, not Marketing Cloud.  I did find a "whitelist" section in my settings where I added my domain and checked the box to activate them, but it didn't do anything.  If this isn't the way to get the JSON response, what is??


ΔE⋅Δt⩾ℏ/2  Does the energy time uncertainty principle imply that an object would have to stay for an infinite amount of time in a state for there to be no uncertainty in the energy of that state?

In non-relativistic QM, the $\Delta E$ in the time-energy uncertainty principle is the limiting standard deviation of the set of energy measurements of $n$ identically prepared systems as $n$ goes to infinity. What does the $\Delta t$ mean, since $t$ is not even an observable?


Is it possible to remove the menu/tool/status bar in windowed mode? The bar containing the Player menu, pause button, full screen and the audio, network, disk etc. status icons on the right.    I am asking about the bar immediately under the Windows title bar which contains the program icon, title and the minimize, maximize and close buttons <- I would like to hide this one also, but not a VMWare question.  I am assuming there might be some setting for it that can be set in the configuration file, as in this example:   Update  I managed to hide the window title bar using:

I like playing computer games in windowed mode, as opposed to full screen. I don't like staring at the title bar, frame, and other UI junk. I also don't like seeing other stuff on my desktop around the window. Is there a simple Windows program that will strip the UI chrome off of an arbitrary window from some other application? Extra points for an easy way to put a black screen underneath the window, hiding the desktop.  Note: I'm looking specifically to handle windows that are smaller than my desktop size. There's a variety of 'windowed maximized' options that make a window exactly the desktop size, and positioned so all the UI decorations are off screen. (E.g.: ShiftWindow). I'm trying to strip all the decorations away from a window that's smaller than desktop size.