my internal hard disk is not mounting used to mount before.. suddenly stopped

Error mounting system-managed device /dev/sda3: Command-line `mount "/mnt/5CE0040FE003EDD8"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.


"Whom" or "who" where the referent is both subject and object?

I understand there has been so much on this topic but I am still confused. I get that if the person is the subject it is who and anything else is whom. However, I'm really struggling to work out this rule for the following sentence:     The scope of which his account of morality applies to is therefore restricted to those whom/who the ‘notion of justification to a being of that kind makes sense.’   Should it be who or whom? I can't work out the subject and object.


Elementary explanation for motion of a gyroscope

Gyroscope is a remarkable rigid body, and all the explanations that I have found, that describe its motion, are in terms of angular momentum and torque. An exception to it is the Feynman lectures on physics, which tries to give an explanation without appealing to angular momentum, and using more elementary concepts of force and acceleration (see Figure 20.4 in the link ) .    But Feynman's explanation is not very detailed, as he spends just a paragraph on it. Moreover, when coming to the more complex phenomena of wobbling motion of gyroscope, he goes back to the notion of torque. This is not surprising, as the notions of angular momentum and torque are defined to conveniently deal with rigid rotating bodies and to `coarse grain' the complicated interaction of particles which are constrained to be moving as a single rigid body.  Question: Is there a complete explanation of the motion of a gyroscope purely in terms of force and acceleration?  If it is too complex a task, then is there a paper that has been published on this matter?   I am not sure if such an explanation would tell us anything more about gyroscope than we already know, but I certainly hope that it does.


Does it make sense to include a factor as both fixed and random factor in a Linear Mixed Effects Model?

I know this sounds contradictory, if we think of main effects, as the random factor would remove some of the variation that we want to explain by the fixed effect.  But let’s look at a study design where fields were paired (according to land use in the surroundings, distance etc.). In each field pair one was randomly assigned to be sown with an insecticide while the other one served as control. In each field several bee colonies were placed and a response variable (e.g. the weight) was measured.   # Example data:   set.seed(123)  colony = as.factor(1:96) colony_effect = rnorm(96, mean = 2)  field = as.factor(sort(rep(c(1:16),6))) field_e = rnorm(16, mean = 2) field_effect = rep(field_e, each = 6)  field_pair = as.factor(sort(rep(c(1:8),12))) field_pair_e = rnorm(8, mean = 2) field_pair_effect = rep(field_pair_e, each = 12)  treatment = as.factor(rep(c(rep("control", 6), rep("treat", 6)), 8)) treatment_effect = rep(c(rep(0, 6), rep(1, 6)), 8)       response = treatment_effect + field_effect + field_pair_effect + colony_effect df1 = data.frame(treatment, field_pair, field, colony, response)   Intuitively, I would specify the model like this, if I want to test for a treatment effect on the response:   library(lme4) lmm2 = lmer(response ~ treatment + (1|field_pair/field), data = df1) summary(lmm2) anova(lmm2, update(lmm2,.~1 + (1|field_pair/field)), test = "LRT") # p = 0.008118   I think my colleagues used the same model only that they specified it slightly differently:  lmm2_2 = lmer(response ~ treatment + (1|field_pair) + (1|field_pair:treatment), data = df1) summary(lmm2_2) anova(lmm2_2, update(lmm2_2,.~1 + (1|field_pair) + (1|field_pair:treatment)), test = "LRT") #  p = 0.008118   However, an answer in this  on a question on the choice of random factors, made me wonder whether or not field pair should be included in the model. The asker wanted to explain the fish growth of two fish populations that were placed in several tanks and exposed to two temperature regimes (crossed fixed effects: population type and temperature).  @Aron answered:     ”It doesn't make sense to both include tank as a random effect and   nest tank within the pop/temp fixed effect. You only need one of   these, depending on how tank is coded.”   And:     “Including the tank random effect is only desired if the tanks were   first divided into two groups and then randomized to treatment; if the   eight tanks were completely randomized to treatment, this is not   necessary.”   This made me wonder whether the random structure that my colleagues used (and that I intend to use) is correct, since   Treatment is both fixed and random effect Field pair was included rather than just field (which I believe would be analogous to tank in the fish example, if the tanks were grouped beforehand)  For comaparison, model without field pair:   lmm1 = lmer(response ~ treatment + (1|field), data = df1) summary(lmm1) anova(lmm1, update(lmm1,.~1 + (1|field)), test = "LRT") # p = 0.0126


couldn't open the software-center and sources

Failed to download repository information  W:GPG error: (http)://ppa.launchpad.net raring Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 464AD83D4631BBEA, W:Failed to fetch http://ppa.launchpad.net/bisigi/ppa/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found W:Failed to fetch http://ppa.launchpad.net/bisigi/ppa/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.   I've try all the way from the question 'failed to download repository information'  thanks for the help


Is it possible to run Starcraft in windowed mode?

I don't play any games online, I only play offline for passing the time, and I need to run in windowed mode to see the taskbar and chat and stuff.    I know I can just hit Esc it or Alt+Tab it or Alt+Enter or the Windows key, but I need to see my taskbar at all times and can only do that in windowed mode.   I've tried changing the shortcut path adding the -w or -windows, as well as Alt+Enter, d3d windower, dxwnd, and the option in 3dAnalyze to force windowed mode.  Is there a way to run Starcraft/Brood war in windowed mode offline?


Difference between "not a", "no" and "not any"

I wonder what differences a native speaker could point out between these three sentences.  1) There is not an apple on the table.   2) There is no apple on the table.   3) There is not any apple on the table.


What do I do if my brakes keep squeaking when I press on them? Do I use lubricant or what?

It’s really annoying in public places when I’m trying to stop my bike. Please explain


How do you check if a string is not equal to an object?

I ave a code where I want to use != sign. But since I am using String, How do I not equals Sign. Hers is my code. So I want all this statement not to equal to each other so it can print Tie Game.       if (Array[0] == Array[currentPlayer] &&  Array [1] ==      Array[currentPlayer] && !Array [2] == Array[currentPlayer])   The above code is when everything equals to each other. But I want this statements not to equal each other.  Keep in mind that I have not used Int or Char, I am using String.


Download/Export installed Packages on Ubuntu Server (local, without repo)

i'm trying to save the installed Packages on my Ubuntu Server in order to add them to a repository. I can download the installed packages with apt-get download  but this will attempt to download the packages from the official repositories. Is it possible to export/save the installed packages without redownloading them from an official repo? I've seen some solutions with --upgrade --no-download but they do not really for work for me.


Difference between the pronunciations of "The"

I have heard normally people speaking the in two different ways.      First the,  th-uh    Second the, thee   I think there is something with vowel sound.  Is there is really a difference or just accent.


TeX capacity exceeded trying to load biblatex (using MikTex 2.9.7206 and TexStudio 2.12.22) on Windows 7

Trying to finish a dissertation here. When clicking Build & View in TexStudio, I get an Error Message plus a Warning Message:     logreq.def error line 8 Tex capacity exceeded, sorry [parameter stack   size=10000]. ...Container{requests}{(internal | external)*}      leipzig.sty warning line 503 Font shape `OT1/cmr/bx/sc'undefined(Font) using `OT1/cmr/bx/n' instead   The error is evidently caused by the mere attempt to load biblatex. It occurs even if no \addbibresource or \printbibliography are called within the document, and even if no settings are specified within the \usepackage call. Both errors (including the warning message) disappear if I simply disable the line that loads biblatex. Here's my main.tex (the individual chapters are separate files and clearly irrelevant):  \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \graphicspath{ {images/} } \usepackage{enumitem}  \usepackage{booktabs}  \usepackage[table,xcdraw]{xcolor}  \usepackage{rotating}  \usepackage{tikz}  \usepackage{longtable}  \usepackage{tabu}  \usepackage{float}   \usepackage{tipa}  \usepackage{leipzig}  \usepackage{gb4e}  \usepackage{caption}   \usepackage[backend=biber, style=authoryear]{biblatex} % Deactivating this line enables the document to compile without errors. % \addbibresource{sources.bib}  \noautomath \begin{document}  \author{My Anonymized Name} \title{My Anonymized Title} \date{October 2020}  \frontmatter \maketitle \newpage \tableofcontents \clearpage \mainmatter \include{./TeX_files/chapter01} \include{./TeX_files/chapter02} \include{./TeX_files/chapter03} \include{./TeX_files/chapter04} \include{./TeX_files/chapter05}  \backmatter % bibliography, glossary and index would go here.  % \printbibliography \end{document}


Will a ball thrown straight up in a train land in same spot (in real world)?

I have a question that came up in a discussion with friends.  If I throw a ball straight up in an enclosed train car moving with constant velocity, I believe the basic physics books say it will land in the same spot.  But will it really?  I think I can say that the answer is "not in the real world".  Trivially, a train car is never enclosed.  Fresh air is being allowed into the carriage or the passengers would all die.  Thus there's currents of air that would affect the ball, agreed? If we remove the passengers and have a trusty robot (who does not need oxygen) throw the ball up in a carriage that really is completely air-tight, I'm still not sure it will land in the same spot.  I would imagine that there must still be air circulation.  The train had to start from a stop.  It's true the floor and the roof will drag the air right at the boundary along with it, but just as an open convertible car does not drag all the air in the world with it, I assume that the air in the middle of the car will not be dragged along at the same speed.  The air in the middle will remain stationary with respect to earth and pile up at the back of the car. Then it will be forced along.  I further imagine that this "pile of air" will try to redistribute itself uniformally. Won't all this set up currents?  Will the air come to be completely still in the reference frame of the car? [I'm guessing the answer is yet] How long would this take?    Bonus question:  I believe if I'm sitting in a convertible car and throw a ball straight up it will land back in my hand as long as I don't throw it too far up.  At some point, I'll throw it to high and will lose the ball out the back of the car.  What's the relevant equation covering this in a car travelling at X miles per hour in still air?  Put another way, I'm trying to get a feel for how extensive the "boundary" layer of air around the car is and how it dissipates with distance.


How to import SQL file from input with PHP?

I have a form with an input file, I want the user to upload a sql file, read it with php and import it to my database  My form code is

          <input type="file" accept=".sql" class="form-control" name="sql">

          <button type="submit" formaction="upload_sql.php" style="margin-top:8%" class="btn btn-primary" name="upload_sql">Upload</button>

   But I don't know how to import that file into my database, I tried with "mysql -u root -p database < file.sql"


Finding example of $f\left(\bigcap\limits_{i\in I}A_i\right)\subset \bigcap\limits_{i\in I}f\left(A_i\right)$.

I want to find the example of $$f\left(\bigcap\limits_{i\in I}A_i\right)\subset \bigcap\limits_{i\in I}f\left(A_i\right).$$(proper subset).  I have find the example of that, but $$f\left(\bigcap\limits_{i\in I}A_i\right)= \bigcap\limits_{i\in I}f\left(A_i\right),$$ like this  \begin{eqnarray} f:\mathbb{Z}&\to& \mathbb{Z}\newline x&\mapsto& x^2 \end{eqnarray}  $A_1=\{2,3,5,7,11\}$  $A_2=\{1,2,3,4,5,6\}$  $A_3=\{1,3,5,7,9,11,13\}$  $\bigcap\limits_{i=1}^3A_i=\{3,5\}$  $f\left(\bigcap\limits_{i=1}^3A_i\right)=\{9,25\}$  $f(A_1)=\{4,9,25,49,121\}$  $f(A_2)=\{1,4,9,16,25,36\}$  $f(A_3)=\{1,9,25,49,81,121,169\}$  $\bigcap\limits_{i=1}^3 f(A_i)=\{9,25\}$  So,  $\bigcap\limits_{i=1}^3 f(A_i) = f\left(\bigcap\limits_{i=1}^3A_i\right)$.  Now I want to find the example of $$f\left(\bigcap\limits_{i\in I}A_i\right)\subset \bigcap\limits_{i\in I}f\left(A_i\right).$$(proper subset).  Can anyone help me to find it?


I know its not recommended to leave a pure "Thank you" comment for a good answer, but if I have posted the answer, and someone's comment for my answer    is useful, can I (besides up-voting the comment) to post a thank    you comment to show my acknowledgement?  I'm asking because I have forced myself (by looking at the watermark in the comment box) to not say thank you and instead upvoted the comment, but later see other user act in the other way...


series of young adult science fiction books from early 1980s about last of a race of martial experts that sees the destruction of his home planet

I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders.


How to blink leds with for cycle on .C with Texas MSP430

I'm new in the C language and im trying to make a luck fortune with leds, it will "spin" blinking the 8 leds in order and then blink only the winner one but i dont know if i can do it in C without making a case switch for every P2OUT of the microcontroller (the interrupt is because it will interact with a bluetooth module across with a cellphone application ) #include <msp430g2553.h> #include <stdlib.h> // libreria para el uso de rand() #include<time.h> int x; int a; int numero; volatile int Counter=0; /**  * main.c  */   #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer_A (void){     Counter--;     //Disminuir el Contador en 1     LPM3_EXIT;      //Salir del modo de bajo poder 3 }     void wait(int seconds){        Counter= seconds*2;        while(Counter){            LPM3;        }    }   void main(void) {     WDTCTL = WDTPW | WDTHOLD;   // stop watchdog timer     BCSCTL1= CALBC1_1MHZ;     DCOCTL = CALDCO_1MHZ;      P1SEL=0x06;     P1SEL2=0x06;       P2SEL=0x0;     P2SEL2=0x0;     P2DIR=0xFF;     P2OUT=0x00;      UCA0CTL1=0x81;//Enabled USCI logic held in reset state     UCA0CTL0=0x0;//UART Mode, Odd Parity, 8bit Data, 1 bit de parada, asynchronous     UCA0BR0=0x68;//Baud rate 9600     UCA0BR1=0x0;//Baud rate (UCA0BR0+UCA0BR1x256=9600)     UCA0MCTL=0x2;     UCA0STAT=0x0;     UCA0CTL1 =0x80;//Disabled USCI logic held in reset state     IE2=1;     __enable_interrupt();        for (;;){                           if (a==49){  // 1 recieved from bluetooth "49" in code ASCII                 srand (time(NULL));  //seed  of random number based on the time                numero = rand(1,9);    //generated random number between 1 and 9                for(int i=0,i<9,i++){                    P2OUT=BIT(i);  //HELP HERE BLINKING THE LEDS WITH CYCLE FOR                     wait(5) //function of delay                }                P2OUT=;             } }          }   }  #pragma vector=USCIAB0RX_VECTOR  //interruption for bluetooth module HC-05 __interrupt void uartbt(void)       {     a=UCA0RXBUF;//INTERRUPCION DONDE SE ALMACENA EL VALOR CUANDO HAY COMUNICACION EN EL BLUETOOTH     IFG2=0;//Limpiamos bandera de interrupción para salir    }


Where can we find information about the cause of a flight's delay?

Having experienced a few flight delays on my own, I'd like to know if there is some source of precise information about the delay (including up-to-date estimations of the delay and causes). So far it seems to me the only people who can actually inform about it is the air company staff, at the airport, and via oral announcements only.  I'd expect this information to be some sort of obligation, since compensations are related to the cause of the delay (if it's weather, it's OK for the company, otherwise the passengers have more rights, and so on), but I could not find a reliable source for this. At best, websites such as  indicate the estimated delay length, but never the cause (or probable cause).  Is this information available anywhere? I tried the airport's website and the flight company's website as well, but I couldn't find anything.  I see plenty of reasons why the company would not like to disclose this information, but I would expect some organism to enforce it.    Besides, the fact that they currently inform the passengers only via oral announcements seems quite inefficient and prone to generate stress among the passengers (and extra work to ground staff, which is forced to repeat again and again the same information...).


As we know that matter-antimatter asymmetry is one of unsolved problems in physics. One possible solution to this problem is given as baryogenesis which produce asymmetry in rate of creation between matter and antimatter particles. But doesn't alternate solution like "different regions of space with different type of particles " holds more ground..  Means in one region matter particle dominates (the region we live ) and another region anti matter particle will dominate. When particle-antiparticle pair created from energy (at that energy is so much high that particle- antiparticle pair could be created from energy according to $E=mc^2$) before they meet and annihilate with each other they also has equal chance of meeting with same type of particle in neighborhood, because after some time of big bang the four force were united and gravity was as powerful as remaining three forces. So now in 50% of all pairs destroyed by annihilation and other 50% clumps together with same type of particle means matter with matter and antimatter with antimatter and then inflationary epoch throw these clumps from each other at very large distance so that they can not meet each other and have chance of annihilation. And we now can not see these regions because of accelerated expansion of universe because of dark energy.   Doesn't this hypothesis is more or at least equally valid with baryogeneis hypothesis.


No shadowing in Python when using with-statement?

Consider the following Python code:  class Test(object):     def __init__(self,name):         self.name = name     def __enter__(self):         return self     def __exit__(self,type,value,trace):         return True  t = Test("a") with Test("b") as t:     print t.name print t.name   I would have expected the output to be b,a, but it actually is b,b.   Is there no such thing as shadowing in Python? Is this really expected behavior?


my fridge went out. It was a good 2 days that the temp inside of the fridge wasn't too warm but it wasn't cold either. I took most of the contents out and placed them on ice. A whole day and a half past and Well my fridge finally came in, however the ice melted and I thought I stacked it well but when i woke my eggs were completely submerged in the water. The ice was packaged and from the store. Do you think my eggs are still good to consume?


There are recently many websites using full screen scrolling pages since Apple launched their own with the iPhone 5C. (website not available anymore, but a reproduction can be found )  Some other examples are:            Is there any study about this practice from the UX point of view? More than about the scroll highjacking, about the use of full screen content?  It seems to me that it's an easy way to present information to the user when used properly and in a simple way, just like a good Power Point presentation. A way to show the user the most important things in a beautiful and smart way.  I see many developers complaining nowadays about this kind of sites, mainly because of the scrolling highjack, but it seems to me users in general, as well as clients, like them.  Any thoughts about this?


Change password for encrypted disk in Ubuntu 17.10

How can I change the password for Ubuntu 17.10 encrypted disk?


SOQL: Comparing two custom relationship fields in a nested query

I think I may be hitting some sort of SOQL limitation in the WHERE clause. I am trying to return fields from two parent objects, after comparing two date fields on both Objects.  The goal is to have a list of contacts with associated opportunity fields where the opportunity date field is equal to some contact field.     NOTE: We have a custom junction between Opportunity and Contact named "Opportunity_Contact__c" due to the limits on the standard OCR sObj.   Specifically:  SELECT NAME, Con_Custom_Date__c,   (SELECT Opportunity__r.Name FROM Opportunity_Contacts__r     WHERE Contact__r.Con_Custom_Date__c = Opportunity__r.Opp_Custom_Date__c) FROM Contact   This returns a parsing error. However, if I try switching the query to something like:  SELECT NAME, Con_Custom_Date__c,   (SELECT Opportunity__r.Name FROM Opportunity_Contacts__r     WHERE Contact__r.Con_Custom_Date__c = TODAY and Opportunity__r.Opp_Custom_Date__c = TODAY) FROM Contact   This works. So the date fields are working and I am able to use them in the WHERE clause. However, when I compare one field directly to the other, I get a parsing error..  Why would   WHERE Contact__r.Con_Custom_Date__c = TODAY and Opportunity__r.Opp_Custom_Date__c = TODAY   work while   WHERE Contact__r.Con_Custom_Date__c = Opportunity__r.Opp_Custom_Date__c   triggers a parsing error?  Thanks!


How to use one Android phone as a handsfree device to another (via Bluetooth)?

I have an extra Android device (a mobile phone, Samsung Galaxy Y Duos, S6102B, Android 2.3.6 - rooted), that I call D1 here, and would like to use it as my "car brain", like a low-cost multimedia central, to do a lot of things.  On this question, I would like to know:   If I have another Android device, called here D2; How to play every sound from D2 on D1 using bluetooth connection.   Example:   I'm on a call on D2. When I enter the car and turn D1 on, when D1 and D2 become bluetooth-paired, I can drive and continue talking via D1 (like a handsfree device), with D2 on my pocket; I'm hearing music on D2 with my headphones. When I enter the car and turn D1 on, when D1 and D2 become bluetooth-paired, I can hear the music from D2.


Can someone rectify this. Thanks in advance.  \textbf{Sub interval 1:}($t_{o}-t_{1}$)\\\ This sub-interval starts when D1 and D4 are Forward biased, so in this sub-interval D1-D4 and D6-D7 are conducting Bridge voltages $V_{h1}$, $V_{h2}$ and primary current $i_{r1}$ is as shown in waveform. This sub-interval ends when current is commuted from D6-D7 to S6-S7and from D1-D4 to S1-S4. Hence for ZVS operation of S1 and S4, primary current \fbox{ $i_{r}(t_{0})<0$}.\\


14.04 Not Auto-Mounting External Drives Since Upgrading from 12.04

I've upgraded from 12.04 to 14.04 via command-line when my system froze, had to do REISUB and dpkg --configure -a to recover from crash after rebooting.  Now everything seems to work except automatically mounting external thumb drives and external hard disk drives. After plugging in said drives, they fail to show up on the left pane and remains unmounted. I can see the device if I run lsusb and fdisk though, so it's possibly to manually mount it but I'd rather resolve why it's not automatically mounting.


Let $R$ be a ring except that addition and multiplication in $R$ are not assumed to be commutative. Show that addition must be commutative.  (Hint : for $a,b,c,d \in R$ look at $(a+b)(c+d)$)  The question is not very clear to me, especially the first statement and haven't been able to make much progress, looking for some hints to finish the proof.


I created the following method that I use to validate Roman numbers converter. In JUnit the test passes but the program doesn't throw any exception. Where did I wrong?  public void validateState(String number){     if(!number.matches("^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$"))         throw new IllegalArgumentException("Invalid number");      System.out.println("Invalid number"); }   Test:  @Test(expected = IllegalArgumentException.class) public void test15() throws Exception {     new RomanNumber("").validateState("MMMMM"); }   Thank you for the help.


Why are continuous maps more important than open maps?

An open map between topological spaces is one that maps open sets to open sets. It says  that  Although their definitions seem more natural, open and closed maps are much less important than continuous maps.  The usual "explanation" is that continuous functions are morphisms in Top, but why should that be the case? What does preserving pre-images have to do with being the "right" morphisms in a category? This also happens with concepts like measurability, where the "right" functions to look at are those where pre-images of measurable sets are measurable. I see no inconsistencies with defining morphisms to be e.g. open maps between objects in Top and something similar for the category of measurable sets, so why are these categories not as important? The morphisms here seem just as "structure-preserving" as the usual ones. Is there some deeper reason why it's the pre-images we should be looking at in both these cases (and more)?


Understanding the simplification $\frac{x(x-1)}{x-1} = x$

May somebody explain why this expression results into "$x$"?  $$\frac{x(x-1)}{x-1} = x$$     Note: This is the final simplification in the problem described .


Could someone explain how ridge regression algorithm works, step by step? Without focusing too much on formulas but rather how the mechanism works.


Ubuntu upgrade failing from 16.04 to 16.10: 'Failed to lock /var/cache/apt/archives/lock'

I am unable to upgrade Ubuntu from 16.04 to 16.10.   Error message:  Failed to lock /var/cache/apt/archives/lock   There are numerous answers on how to fix it. I tried all. But no success. Can anybody help?  Existing posts on the same topic:         Error Message:  Calculating the changes     Calculating the changes Do you want to start the upgrade?      10 installed packages are no longer supported by Canonical. You can  still get support from the community.  16 packages are going to be removed. 293 new packages are going to be  installed. 1842 packages are going to be upgraded.  Installing the upgrade can take several hours. Once the download has  finished, the process cannot be canceled.   Continue [yN]  Details [d]y Fetching Fetched 0 B in 0s (0 B/s)                                    Upgrading Could not download the upgrades  The upgrade has aborted. Please check your Internet connection or  installation media and try again.   Failed to lock /var/cache/apt/archives/lock   Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in <module>   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeMain.py", line 242, in main   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1880, in run   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1263, in doDistUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1385, in abort   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook     pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])   File "/usr/lib/python3/dist-packages/apport/report.py", line 544, in add_proc_info     self['ExecutableTimestamp'] = str(int(os.stat(self['ExecutablePath']).st_mtime)) PermissionError: [Errno 13] Permission denied: '/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety'  Original exception was: Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in <module>   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeMain.py", line 242, in main   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1880, in run   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1845, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1263, in doDistUpgrade   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/DistUpgradeController.py", line 1385, in abort   File "/tmp/ubuntu-release-upgrader-kfjtjdko/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError:  [Errno 1] Operation not permitted: '/etc/apt/sources.list'


Ubuntu iso version for dell inspiron 1150

somebody through a dell Inspiron 1150 laptop(2004) with Ubuntu 10.10 on it but it needs a password which i don't have i tried to install 13.04 but i got an internal error message saying  executablepath /usr/lib/nux/unity_support_test   than i tried to download the 10.10 version but when i turned on with the burned cd inside  it didn't work  I'll be happy if someone could help and would like to help me.


Multiple rows to one comma-separated value in Sql Server

I want to create a table valued function in SQL Server, which I want to return data in comma separated values.  For example table: tbl  ID | Value ---+-------  1 | 100  1 | 200  1 | 300       1 | 400    Now when I execute the query using the function Func1(value)  SELECT Func1(Value)  FROM tbl  WHERE ID = 1   Output that I want is: 100,200,300,400


Minecraft World Loaded Detection Using Redstone (Save file load detection)

I've been trying to search for an answer to this question for some time now (World Load Detection / Chunk Load Detection / Join World / etc)  However, despite my effort, I've been unable to find a solution...  Details:   This is a single-player world, NOT a private or public server The use of command blocks is acceptable It needs to activate when I open the world, but only once    (and every time the save is loaded, but only once)  It is a 1.15 save file   I found a lead on this reddit post:     This also seemed promising but I couldn't quite follow...   However, the solution appears to be outdated (1+ year ago) and no longer works in version 1.15  Does anyone have any ideas?  I've tried the /tag and /scoreboard approach but those only seem to work on servers (local or public) since the command blocks will be running regardless of players being on the server With this being a local save (and not a server), that does not appear to work.


I need a good book to study abstract algebra (group,ring, field) from basic.I have artin's , rotman's and dummit and Foote in my mind. But Artin's book is somewhat hard for me to understand. Please suggest me which of the above books explain group theory   from basic.   But please be specific...I am already confused.. please help me.


Looking for short science fiction story about a television program with people being "tortured" on stage..?

I am looking for a short story I read once in the 10th grade.. I apologize if this is vague.. I don't remember much from it however would really like to read it again. Also I'm sorry if the title sounds weird, it wasn't a nasty story, I think it may have been loosely based on 1984 (we had just finished reading that book when we were assigned this)  It involves a television program or some sort of game show where the "contestants" have to wear these balls and chains attached to them to bog them down while they danced in front of a camera. It was very descriptive and wacky-- I think the people may have been described as looking like clowns.  Once again sorry if this is vague but it's killing me to find out! I'm considering just e-mailing my old English teacher and asking him if he knows!


I have an inbox of messages for my users, I have a 'messages' table and a 'users' table. Messages table has to and from fields which contain the user IDs.  I want to select the latest message from every user, where the to field is the current user ID, i.e.  "select (latest Message, by Message.ID) from (unique users) where Message.to = $currentUserID (and left join User where UserID = Message.from)"  I want to end up with something like this:    I can't figure out the query I need for this, please help..!


Software Uses SQLite and Has Frequent DB Lock Errors. Zero Access to Code. Anything we can do?

I've written an API for a client that accepts orders from clients and converts them into print jobs that go to an HTTP bridge into the company's RIP software. On the backend, the bridge is reading and writing job data to an SQLite database. It stores the job in SQLite and then sends it to the RIP. The RIP communicates back to the bridge when the status changes. It updates the record in SQLite, and through a series of subscriptions and webhooks sends the status update back to the API.  Neither the bridge nor the RIP automatically cleans up after itself, and the bridge imposes a limit of 5,000 tracked jobs at a time. So if we try to send job #5001 while it's storing 5,000 additional jobs, it will fail.  So the solution, at least in theory, would be to clean up jobs as they complete. Which is what we're doing.  When jobs complete my API enqueues a cleanup task, which is run from a separate process and requests the bridge remove that job.  The problem arises here. When we request cleanups the bridge starts failing job submissions due to DB lock errors. We're not deleting active jobs so there should be zero conflict between what is currently being INSERTed or UPDATed and what is being DELETEd as a result of our removal request.  I can only assume SQLite is locking the entire database for the duration of the delete instead of locking only the rows in use.  Would this make sense?  From the outside of the black box that is this software, is there anything I can do to affect this locking behavior in SQLite?  If not I essentially have to work around it by putting a buffer between everything our API does and the bridge that switches between a print mode and a cleanup mode but never does both synchronously. This will work but will slow production, and ultimately requires me to build a hack around a limitation in a $200,000 software product that just can't handle our volume.


Is it possible to check in an additional piece of luggage in Singapore on a layover?

Say you are travelling from Australia to Dubai with a layover in Singapore. If I have a transit visa for Singapore, I can go out and very well buy some stuff. The question is, can I check in these items at Singapore?


Show the convergent of sequences and limit?

a)Show that the following sequence of functions is convergent.  $f_{1}(x) = \sin(x)$   $f_{2}(x) = \sin(\sin(x))$  $f_{3}(x) = \sin(\sin(\sin(x)))$  ...  $f_{n}(x) = \sin(\sin(\sin(...(\sin(x))))$ ($n$ times)  b) Find limit of the above sequence.


How to enclose a user-generated URL in an `` tag safely?

I'm developing a community site. When a user posts a comment that contains a URL, I want to enclose that url in an  tag. Input Hello. Please take a look at this video. https://example.com  Output Hello. Please take a look at this video. https://example.com  Code I would like to know what I should put in regex and sanitizer below. const el = document.getElementById('comment') const commentText = `Hello. Please take a look at this video.\nhttps://example.com`  el.innerHTML = commentText.replace(/regex/g, function(match){     const sanitizedText = sanitizer(match)     return `<a href="${sanitizedText}">${sanitizedText}</a>` })  Or if there is a better way, please let me know.


Equivalent formulations of analytic/ $\omega$-suslin sets (in Baire Space)

I'm aware that there are more general formulations of these concepts, but I'm just starting to learn these and have been looking at them in a very restricted and simple context. Let $A \subset \omega^{\omega}$. We say $A$ is analytic if there is $B \subseteq \omega^\omega\times \omega^\omega$ Borel such that $A = proj(B)$ ($proj$ being the projection). We say $A$ is $\omega$-suslin if there is a tree $T \subseteq \omega^{<\omega}\times \omega^{<\omega}$ such that $A = proj([T])$ (where $[T]$ is the set of branches of the tree). We say $A$ is $\sum^1_1(z)$ for some $z \in \omega^\omega$ if there is a computable set $P \subseteq \omega^{<\omega}\times\omega^{<\omega}\times\omega^{<\omega}$ such that $$x \in A \iff \exists y \in \omega^\omega \forall n\in \omega P(x_{\big|n}, y_{\big|n}, z_{\big|n})$$ where the bars indicate function restrictions. We say $A$ is $\sum^1_1$ if it is $\sum^1_1(z)$ for some $z \in \omega^\omega$. Goal: Show these three notions are equivalent, i.e, $A$ is analytic $\iff$ $A$ is $\omega$-suslin $\iff$ $A$ is $\sum^1_1$ $\omega$-suslin $\implies$ analytic is trivial. I'm struggling with analytic $\implies$ $\omega$-suslin.My guess is to notice that the topology on $\omega^\omega \times \omega^\omega$ has a base of countable clopen sets. This implies that every Borel set is clopen (I think? that seems way too strong), and closed sets correspond to trees, which would solve the issue. However, this seems too easy; I'm pretty sure I'm missing a lot here. As for $\omega$-suslin $\iff$ $\sum^1_1$, I'm completely lost. I'm garbage at recursion theory to begin with, and I'm not at all comfortable with the concepts being used here. I appreciate all the help I could get; I would especially appreciate being pointed to a book or a set of notes that deals with $\sum^1_1$ and the projective hierarchy more slowly and help me understand where to start at least.


How to debunk this perpetual motion machine?

I know it's impossible. I normally find the flaw behind the principle, but  is hard to crack. The two wheels are geared together, so that no magnet on one wheel "backlashes" the wheel in a way that this magnets is between two magnets of the opposing wheel. I will use the term "opposing magnets" to describe magnets of two wheels facing one another and repelling one another.  The magnets on both wheels are oriented with the same pole pointing to the axis, so that opposing magnets repel each other. The net rotary force is zero, because the opposing magnets on the top side attept to spin each wheel in one direction while the magnet pair at the bottom apply the same force in the opposite direction.  The inventor believes that he can break this symetry by placing an iron plate between the lower portions of the two wheels. This plate is attracted to the magnets, and mitigates the repulsive force between two opposing magnets. The end result is (according to the inventor) that the opposing magnets on the top part have a stronger repulsion than the opposing ones at the lower part. This, is supposed to give a net non-zero force that should spin the wheels forever...  Where is the catch?  EDIT: This is not a v-gate engine or any type of single-wheel motor with a magnet mounted on a lever. The only moving parts are the two wheels, and the links in the duplicate question (those links which worked) show different designs. In addition, the link I provided is about a device whose dominant force is a repulsive, and not an attractive one. So, if the magnets lose their magnetic field, the device may act differently. Maybe the wheels will oscillate and then stop at a sticky point?


Can't enable script component on a prefab instance in Unity

Prefab structure:   MainObject (parent; prefab instance in the scene)  |-Child  |-Child  |-Triggers      |-Trigger1   MainObject has: ScriptIWantToEnable (Script) component (Disabled)  Trigger1 has: ScriptThatTriesToEnableIt (Script) component  Hello,  I'm trying to enable a script component on a prefab instance(MainObject) from a child object script component(Trigger1). For some reason though it doesn't get enabled. Run-time error shows up and the game breaks. Trigger works fine, up until the "enable" part. I checked it with the Debug.Log(). The MainObject is in the Hierarchy view already when the game starts.  Error:     NullReferenceException: Object reference not set to an instance of an   object ScriptThatTriesToEnableIt.Update () (at   Assets/Scripts/ScriptThatTriesToEnableIt.cs:30)   Part of the code in ScriptThatTriesToEnableIt that tries to enable the ScriptIWantToEnable script component of MainObject:   public class ScriptThatTriesToEnableIt : MonoBehaviour {      public GameObject MainObjectRef; //MainObject prefab instance drag&dropped in the Inspector       void Update() {          // if triggered          MainObjectRef.GetComponent<ScriptIWantToEnable>().enabled = true; //breaks here and throws the error      }  }


shapiro wilk for testing normality in ANOVA

This questions might be simple to most of you but while reading about Shapiro Wilk test to test the normality assumption for one-way ANOVA, I got confused. Can somebody tell me which is the correct procedure, do we perform Shapiro-Wilk for each treatment level (so for example if I have treatments A, B, and C, then we can have 3 shapiro-Wilk test results) or  is it tested for the entire treatment (meaning, performing Shapiro-Wilk once)?


putting the decoupling capacitor merely/only near the vcc line

I know I am wrong, this question is just to understand logically why, I am not an engineer but an hobbist While designing a pcb for a mcu I should put a decoupling capacitor near each power lines. We do it because the current draw of the ic could change and the capacitor will supply it immediately Until here i hope we all agree but why can't i put this cap only near the Vcc? this is a hyperbole/example of what i am trying to say:  I heard that the answer could be: "Because the electrons moves from - to +" but i don't think that this is correct logic, because this could bring me to make the board in the opposite situation: the cap near gnd and a very long track until vcc I hope that i m not going to "shock" anyone with this dumb question, please it is just a curiosity


In certain books like David Griffiths electrodynamics , he treats current as a vector in some places. Moreover certain problems like current in a strip are often dealt with by taking current components. I am having a difficult time understanding this.  After going through books and dealing with problems,i think that when current flows in a wire, of negligible dimensions, it is bound to flow along a line, so we treat it as scalar. But when we talk about current in a strip or in a volume, we can take components of current.Is it so?


\xrightarrow not changing size with \scriptstyle and \scriptscriptstyle

Consider the following MWE.  \documentclass[fontsize=12pt]{scrbook} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[libertine]{newtxmath}  \begin{document}     \begin{align*}         v\xrightarrow{e}w &\quad v\overset{e}\rightarrow w \\         \scriptstyle v\xrightarrow{e}w &\quad \scriptstyle v\overset{e}\rightarrow w \\         \scriptscriptstyle v\xrightarrow{e}w &\quad \scriptscriptstyle v\overset{e}\rightarrow w     \end{align*} \end{document}   The result looks like this:    While \rightarrow is changing in size when using \scriptstyle or \scriptscriptstyle, \xrightarrow is not and produces arrows of wrong size and hence height, as well as too little spacing.  Is there a way to fix \xrightarrow?


Which one of the following is correct?   Each employee wanting their workday adjusted or time off to vote must request it from their supervisor.  or Each employee wanting his/her workday adjusted or time off to vote must request it from his/her supervisor.     Thanks  GeorgeV


Travelling on Business visa to UK for tourism purposes

I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds.  I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time?


Is there any danger in using a 12V 3A adapter with a device that ships with a 12V 1A?

I've always heard an adapter's amperage being higher isn't an issue as long as the voltage and polarity match .  In audio, you get more head room (better sound at higher levels) if more power is available when the voltage demands it. This is proven even by using thicker cables on the AC side of things in my experience as a mastering engineer.   Is there any chance of frying gear with a substantially higher amperage than the advertised amperage of the unit?  My immediate goal is to use a 12V 3A adapter to replace a 12V 1A adapter that shipped with my class A tube mic pre to improve its low end and headroom.  Please avoid any skeptical responses on the impact on sound. I'm just trying to ensure I don't create any danger for the mic pre. Again, my understanding is that there is no threat.  If this safe, what constitutes an unsafe ratio of amps?  Thank you.


Easy proof the set of finite Set in countable is countable

Suppose I know a result that the set of finite sets in $\mathbb{N}$ is countable.   Is there a very quick way to show that the set of finite sets in any $X$ countable is countable?  Idea...two sets have same cardinality if there is a bijection, we biject set of finite sets, bijection preserves cardinality. End of proof.


Proof for $\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$ without complexes?

This is what I needed. Practically, a link were also okay.  $$\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$$


Why this JS program of recursion is not working, It worked for recursion with return value

I created on recursion program to find of sum of all values till the number via recursion(with return values). Then I thought of making same program by passing the total as argument. this one didnt work. When I tried debugging i found that last else(when n==1) takes the porgram to loader.js. I am new and couldn't understand what is happening here. Looking for your expert feedback.  function sum(n, total = 0) {   console.log(n, total);   if (n !== 1) {     console.log("insie IF");     total += n;     sum(n - 1, total);   } else {     console.log("inside ELSE");     total += 1;   }   return total; }


How to create launcher for java program in Ubuntu 17.10 (Gnome+Wayland)

Since upgrading from Ubuntu 17.04 to Ubuntu 17.10 I have issues with launcher icons for java programs.  For instance I use JPasswords password manager and have a .desktop file for it in /usr/share/applications/ and this file has specified also an icon. In Ubuntu 17.10 this desktop file still works, I can see the icon in the launcher and among all applications when click on Show Applications, but in case I launch it, it will create another icon with an icon taken from the jar file and I am not able to add it among favorites (make it permanent on the launcher). Further issue is the newly created icon has user non-friendly name displayed when cursor is hovered over it - for instance my JPasswords has name "org-jpws-front-PwsafeJ". Very same problem has also Oracle SQLDeveloper, so I assume any java app could be affected.  Is there some fix or workaround for this?  Example of the issue can be seen on this screenshot:


I want to use upright greek letters in times text. I am unable to install mtpro package installation for MikTex 2.9


Constructing a bijection between $(0,1)$ and $[0,1]$.

I am trying to prove the proposition indicated in the title. Will it work if i define $h:(0,1)\to[0,1]$ as follows $$h(x) = \begin{cases}x\text{ if }x\in(0,\frac{1}{4})\cup(\frac{1}{2},\frac{1}{4})\cup(\frac{1}{2},1)\\0\text{ if }x = \frac{1}{4}\\1\text{ if }x = \frac{1}{2}\end{cases}$$


What is the easiest way to make a backup of an entire hard disk

I got myself a dell laptop from the local computer store. Its a used machine with Windows Vista Home Basic on it. I want to load Ubuntu Desktop 10.10 though so I can do perl development. BUT I want to keep a copy of the entire harddrive with the dell utility partition and Windows Vista in case I want to go back. I was thinking I could image the drive but I not sure what to use, I don't have Ghost or anything, Someone had told me about Clonezilla. Would that work for me? Is it hard to use? Also I want to burn the data to a DVD or something more storable than a harddisk.


Why does the air we blow/exhale out from our mouths change from hot to cold depending on the size of the opening we make with our mouth?  It's not just a subtle difference, but significant in my opinion. I'm inclined to discredit the notion that it's just a matter of speed because I can blow fast with an open mouth and still, it's hot; and blow slow with an almost closed (tighter) mouth and again, it's cold.


What is the difference between events and action delegates

I am learning events and found that similar functionality can be achieved with Action delegates as well. With Action delegates, it is not publish subscribe model but it does allow the clients to pass in the method reference similar to events and actual class can call it when required.   class Program     {         static void Main(string[] args)         {             Subscriber s = new Subscriber();             NewSubscriber n = new NewSubscriber();          }     }      class TimeTick : EventArgs     {         public DateTime Current { get; set; }         public TimeTick()         {          }     }     /**Publisher suscriber model using events**/     delegate void MyDelegate(object o, TimeTick e);     class Publisher     {         public event MyDelegate MyEvent;         public Publisher()         {          }         public void Start()         {             while (1 == 1)             {                 Thread.Sleep(5000);                 if (MyEvent != null)                 {                     MyEvent(this, new TimeTick() { Current = DateTime.Now });                 }             }         }     }     class Subscriber     {         public Subscriber()         {             Publisher p = new Publisher();             p.MyEvent += P_MyEvent;             p.Start();         }          private void P_MyEvent(object o, TimeTick e)         {             Console.WriteLine(e.Current);         }     }      /**Publisher suscriber model using Action delegates**/     class NewPublisher     {         public NewPublisher()         {          }         public void Start(Action<TimeTick> MyAction)         {             while (1 == 1)             {                 Thread.Sleep(5000);                 if (MyAction != null)                 {                     MyAction.Invoke(new TimeTick() { Current = DateTime.Now });                 }             }         }     }     class NewSubscriber     {         public NewSubscriber()         {             NewPublisher p = new NewPublisher();             p.Start(new Action<TimeTick>(P_MyEvent));         }          public void P_MyEvent(TimeTick e)         {             Console.WriteLine(e.Current);         }     }


Using a new document class/template with LyX?

I tried googling this elsewhere but I'm new to LaTeX and extremely confused about certain things. Basically I downloaded MikteX and I'm using the latest version of Lyx with it. Now all I basically know how to do is make pretty looking mathematics and add contents pages/titles/references/etc.  I'm looking to make a dissertation and my unviersity provides a template,  (available for download at that link).  So, what exactly do I need to do (and please be super specific as I am totally clueless to all the jargon I read).   Basically, I need to download ociamthesis.cls in the first line of that webpage. Does it matter where I save it? What exactly do I do next?


Is an explanation of 'effect of Earth's rotation on $g$' possible from an inertial reference frame?

Edit : Added a picture for better understanding of my querry. All the texts I have studied has used an non-inertial frame to explain the phenomenon. But every time I see something explained with pseudo forces, I try to realize in real forces.   But in this case I tried to explain it in a frame which is centered in Earth's center and not rotating. But I couldn't explain what happens to the tangential component (to the point on Earth's surface where $g$ to be measured) of centripetal acceleration in this scenario. It doesn't cancel out.   But then I thought the tangential component is so low that practically it would have no effect.  Is my explanation wrong?


Wikipedia onebox is dropping random text

Random text is getting dropped from Wikipedia oneboxes. See . Screenshot:  This occurs regardless of HTTP/HTTPS and of whether a redirect URL is entered into chat. I initially thought the bug is triggered by <span>s or other HTML formatting elements, but in the Burj Khalifa article's HTML source code, there is no formatting around one of the deleted words. Possibly related to , but this is not specific to numbers.


How to set system time in linux using time_t variable

I have a time_t variable, I want to set system time (linux) using this variable.  lets say,  time_t tmp;   I know that I can print this time using ctime(&tmp), and output would be like this.  Tue Jan 13 15:54:47 2015   how can I use this tmp variable to set my system time?  EDIT: This question is not a duplicate of question marked by moderator. For answer, please refer comment section.


I am not a physicist but this question has bugged me for a while now. The second law of thermodynamics states that the total entropy of an isolated system can never decrease over time. However, if the Universe is considered to be an isolated system, which as far as I know many people suggest, wouldn’t the formation of stars cause a decrease of the entropy?


In a remote shell, how can I find out from which computer I logged into the remote machine?

In a remote shell, how can I find the domain name of the computer from which I logged into the remote machine? Example: My local machine is mi.pona.com. On this machine I run ssh toki@sina.pona.com  to login into the remote machine sina.pona.com. In the shell  which opens (running on the remote machine) I want to find out from which computer I logged in, so I want to get the result "mi.pona.com". Is there a command for this?


Why do same/opposite electric charges repel/attract each other, respectively?

I know plus pushes another plus away, but why, really, do they do that? On the other hand, molecules of the same type are attracted to each other. I find that weird.  I do know some stuff about four universal forces. But why in general the general "rule" is that opposite charges pull each other?   Yes, I do realize this could be connected to very basic stuff that science is still trying to figure out, and can be traced to the Higgs,  but still, there must be something to tell.


As we know Arabic characters behaves differently when they are compounded to form a word. This behaviour of Arabic language makes difficult to calculate width of words. Currently, we've implemented the logic for doing same for english words in java where we calculate the width of a word by summing the width of individual character to check if we have enough space to place that word there or not. If not, we move it to next line. Now with, Arabic character it's difficult to find the width of a word because of its compounding behaviour. If there's anything which can help in anticipating the width of Arabic word, that'll be helpful. For e.g., شو -> This is a word formed using these two chars ش و You can see, how different the word has come out visually. Any help will be appreciated.


I don't understand why a cavity with a hole is a black body

It makes no sense to me that a cavity with a hole is identical to a black body.  Sure, the cavity will probably be a near perfect absorber, but I don’t see how it will be a perfect emitter as well.  Why exactly does a cavity with a hole behave like a black body? Why can I make such a contraption and simulate and skip considerations of a special chemical makeup that has to occur in a black body?  Another thing that bothers me is that these cavities are not “absorbing” light, they are simply hogging it and letting it bounce inside.  Also, on the typical graphs where intensity is graphed against frequency (or wavelength): this isn’t really intensity, right? I have to integrate this curve in order to get useful information, right?  Some call it the spectral energy density. Is the integral under the curve then the energy density inside the cavity (as in, $J/m^3$)?


I'm interested in the process of automatically generating advice when a player is consistently struggling through parts of a game.  Suppose I already know what advice I want to generate (e.g., "Press A twice to double-jump across long gaps").  My question is twofold:   Has it been shown that this intervention can be useful to gamer experience? Has it been shown that excessive intervention will be ignored or will cause frustration?   References to game design or psychology research papers is a plus!


Property of an irreducible Gaussian integer

$a\in\Bbb{Z}[i]$ is an irreducible element such that $a$ divides $p$ ($p$ is a prime number such that $p \equiv 1 \pmod 4$). Then show that $N (a) = p$.    $N (\alpha) = a^2 + b ^ 2$ with $\alpha = a + ib$  Does somebody know the proof of that ?


Could anyone help to analyze the circuit? I think block A should be a OP comparator. How about the other blocks function? Thanks a lot! The V1 is a adjust voltage source from a DAC between 4V to -4V


Letters tty terminal text mode are very small in debian. How to increase?

My Debian 7 is with letters tty terminal text mode are very small. How to increase?   I know that Fedora 20 is possible to install in a troubleshooting installation.   Thanks!


In the Matrix part II and the beginning of part III the crew member who was infected by Agent Smith (Bane) cuts himself.   The female crew member in part III who brought Trinity food told her the same and speculated that they might be "VDT's".  I don't fully understand this. What are VDT's and why would Agent Smith engage in self-cutting unless he has borderline personality disorder or depression or something?


$(x_1-a_1, x_2-a_2)$ is a maximal ideal of $K[x_1,x_2]$

$K$ is field. $a_1$,$a_2$ elements of $K$. Show that $(x_1-a_1,x_2-a_2)$ is a maximal ideal of $K[x_1,x_2]$.   $K[x_1,x_2]$ is UFD so if $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ is field then $(x_1-a_1,x_2-a_2)$  is maximal ideal.  If I can show that $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ isomorphic to $K$, we can verify that $(x_1-a_1,x_2-a_2)$ maximal ideal of $K[x_1,x_2]$.  thanks for helps and comments.


How to remove technical noise by discarding several leading PCA components?

I have a large metabolomics dataset, 6000 samples and 3300 features. For the samples the only thing that differentiates each sample from the rest is that one gene was knocked out, which will not affect most of the metabolites.  The features are metabolite concentrations.  There are some 'known'/measured batch and technical variables such as different Mass Spec runs, differential growth of the bacteria in the samples.  However, I also want to adjust for the unknown variables.  It has been suggested that I perform PCA then throw out the first few principal components.  However, I'm not sure how I can use the PCA information to predict values for the original features using the remaining principal components.  df.pca <- prcomp(as.matrix(df.rw),              center = TRUE,              scale. = TRUE)   df.pca.x.minus12<-df.pca$x[,-c(1,2)]   How to predict values of the original 3300 features after removing the first 2 components?


Proving that factor ring R/I is local if R is local

Here I asked how to prove that a ring is local iff the set of non-units is an ideal:     Now we are supposed to show in our homework that if $R$ is local (i.e., it contains exactly one maximal ideal) and $I\subsetneq R$ is an ideal, then $R/I$ is local. I found this previous post:   Now, I read through the marked answer and showed that $\pi(M)$ is an ideal (easy exercise). [I use the notation $\pi: R\rightarrow R/I, r\mapsto r+I$ instead of $f$.]  So it remains to be shown that $\pi(M)$ is maximal. I thought of using the fact that $I$ is maximal iff $R/I$ is a field.  Would I then - in this task - have to show that $(R/I)/I$ is a field in this task, or am I misunderstanding it? However, how could we show that $(R/I)/I$ is a field?   Kind regards, MathIsFun


How to set up VirtualBox Bridged Network on Windows 7 Host?

I have virtualbox running on a Windows 2008 server, with a guest running ubuntu 10.04. The ubuntu guest is given a static IP of 192.168.1.4, which also has openssh installed. The guest has bridged network setup, I can ping 192.168.1.4 from any machine in the LAN, the ubuntu guest can also access the LAN. However, when I try to PuTTY into the ubuntu machine, I always get "connection refused". Below are some setup details:  ubuntu IP: 192.168.1.4  hosts.allow  sshd : 192.168.1.38   hosts.deny  ALL : ALL   when I the following command, I can see that sshd is listening on port 22:  lsof -i tcp:22   Any idea?  EDIT:  It turned out to be a wrong VirtualBox Bridged Network setup. I give the Ubuntu guest a static IP of 192.168.1.4 (assigned to eth0). Then in the Windows 7 host, in the Network and Sharing Center, there is a new connection named "VirtualBox Host-Only Network" after the bridge is setup, that connection is again given the same static IP of 192.168.1.4. Once I change the "VirtualBox Host-Only Network" to automatically obtain an IP address, it's getting a different IP address of 169.254.249.70(Tentative). And now I can SSH into 192.168.1.4 with no problem, even without touching hosts.allow and hosts.deny.  I've also noticed that in the properties windows (see screenshot below) of the "VirtualBox Host-Only Network", the second checkbox, "VirtualBox Bridged Networking Driver" is unchecked. While the same checkbox of the physical NIC (that is bridged to) is checked. So my further question is: is this how VBox bridged networking supposed to be setup? Any rationale behind this? I'd appreciate if someone could provide some explaination on VBox bridged networking setup on Windows host and I'll accept it as an answer.


Why is Python 3.6 not available via official Ubuntu repositories?

Maybe this is the wrong forum for this question, in which case I apologise, but why isn't Python 3.6 in the official repositories for Ubuntu 16.04 LTS? According to  it seems like Python 3.6 is in the repos for 16.10 and onward, although it's buggy.  Is it because it's buggy and 16.04 is supposed to be stable because it's an LTS? Tutorials online (specifically  for getting started with Python on Heroku) says you need Python 3.6. Will Python 3.6 become available via official repos for 16.04 once bugs are resolved? How does this work? It's been quite a few months since the above question and answer and it's still not available in the official repos. I would think that Python updates would be important enough to get added to the official repos rather quickly?  Edit  After reading the answers to "" most of my questions have been answered but I still don't feel certain regarding:   Will Python 3.6 become available in the official 16.04 LTS repos?   If it will become available once bugs have been worked out, how long can one expect that to take?   According to the referenced question, packages are frozen and only bug fixes and security issues results in updates. Does that mean that Python 3.6 will never become available for Ubuntu 16.04 since it's frozen at 3.5?  This doesn't seem reasonable to me as 16.04 is an LTS. It can't be that users are expected to you use old - 2016 - versions of compilers and interpreters for an LTS, can it?


I didn't go to party.   I didn't went to party.


This is a question about the 'Second Proof of Bloch's Theorem' which can be found in chapter 8 of Solid State Physics by Ashcroft and Mermin. Alternatively a similar (one dimensional) version of the proof can be found at   The Schrodinger equation is given by $$\left[-\frac{\hbar^2}{2m}\mathbf{\nabla}^2+U(\mathbf{r})\right]\psi=\epsilon\psi$$ We write the periodic potential as the Fourier series $$U(\mathbf{r})=\sum_{\mathbf{K}}U_{\mathbf{K}}e^{i\mathbf{K}.\mathbf{r}}$$ where $\mathbf{K}$ is a reciprocal lattice vector, whilst the eigenfunctions may be written as the plane wave expansion $$\psi(\mathbf{r})=\sum_{\mathbf{q}}c_{\mathbf{q}}e^{i\mathbf{q}\cdot\mathbf{r}}$$ Substitution yields the condition on the coefficients $$\left(\frac{\hbar^2}{2m}q^2-\epsilon\right)c_{\mathbf{q}}+\sum_{\mathbf{K'}}U_{\mathbf{K'}}c_{\mathbf{q}-\mathbf{K'}}=0$$ This couples wavevectors that differ only by a reciprocal lattice vector. My question is why does this imply that $c_{\mathbf{q}}=0$ unless $\mathbf{q}=\mathbf{k},\mathbf{k}+\mathbf{K},...$ (with $\mathbf{k}$ in the first Brillouin zone) so that the eigenfunctions are given by $$\psi_{\mathbf{k}}=\sum_{\mathbf{K}}c_{\mathbf{k}-\mathbf{K}}e^{i(\mathbf{k}-\mathbf{K})\cdot\mathbf{r}}$$ I see no reason to suggest that the eigenfunctions aren't given by $$\psi(\mathbf{r})=\sum_{\mathbf{k}}\sum_{\mathbf{K}}c_{\mathbf{k}-\mathbf{K}}e^{i(\mathbf{k}-\mathbf{K})\cdot\mathbf{r}}$$ but this doesn't seem to explained in much detail in either of the above sources. Thanks!


Trouble file StringProperty subtype FILE_PATH

I have a StringProperty(subtype="FILE_PATH) and I am trying to make it so the user selects a folder and then a file is saved out to the location, but the filepath comes out looking really funky.  The folder selected is D:\Pictures, what the StringProperty shows is //..\..\. What is going on here?


"sudo do-release-upgrade" or "do-release-upgrade"?

I see to upgrade Ubuntu to a new release version that I have to do do-release-upgrade which checks for the new version and allows me to upgrade. But would it not be better to do sudo do-release-upgrade? Would there be any difference in the outcome if you ran it with sudo rather than without, and would this outcome, if at all different, be any better?


Do Sleight of Hand checks cover stealthiness?

The PHB and basic rules describe  as follows:     Whenever you attempt an act of legerdemain or manual trickery, such as planting something on someone else or concealing an object on your person, make a Dexterity (Sleight of Hand) check. The DM might also call for a Dexterity (Sleight of Hand) check to determine whether you can lift a coin purse off another person or slip something out of another person's pocket.   Say Bob wants to steal Alice's wallet without her noticing. As a DM, should I call for only a Sleight of Hand check, or also for a Stealth check, to determine whether Bob manages to do it without being noticed?  While the description doesn't mention anything about being furtive while stealing these things, planting implies it is without the person's knowledge. But then again, Perception checks are (always?) pitted against Stealth checks to determine whether someone perceives something else.


Find largest directories/files recursively

I'm looking for a script/program which will display the top x largest directories/files and then descend into those folders and display the x largest directories/files for a configurable depth.  231MB bin  - 220MB ls   - 190MB dir   - 15MB def   - 3MB lpr  - 10MB asd  - 1MB link   How can I do that?


I tried the all powerful google to answer this question - but I am not getting the answer I seek. I know we turn darker because the skin produces melanin. The question remains - why darker?   I am a physicist and it would make sense to me that the bodies response would want us to turn whiter- since a higher albedo would reflect more UV radiation. It seems that evolution took the way of absorbing more and more UV radiation by this melanin and then converting it to heat. Which begs the question as well - do black people get hotter than white people given the temperature is constant? Although this a side point to my original question.  What sparked this question was the use of thousand of black balls being dumped into LA's water reservoir in the hopes to reduce evaporation. Again... BLACK balls. This makes no sense to me - why the heck not use white balls to reflect more sunlight?


To get intersection points of help lines and a line, I wrote the following code.  \documentclass[margin=3mm]{standalone}  \usepackage{tikz} \usetikzlibrary{positioning,intersections}  \begin{document} \begin{tikzpicture} \path [draw,help lines,name path=grid] (0,0) grid (3,2); \path [draw,name path=line] (8mm,4mm) --++ (45:2cm); \path [name intersections={of=grid and line, by={A,B,C}}]; \draw [fill=blue!50](C)--(A)--(2,1)--cycle; \filldraw (A)circle (0.75pt)node [below]{A}; \filldraw (B)circle (0.75pt)node [left]{B}; \filldraw (C)circle (0.75pt)node [right]{C}; \end{tikzpicture} \end{document}   As you seen in my code, the sequence of the intersection points are {A, B, C}. But the sequence on the output is {B,A,C}.  How do I change the locations of A and B, for expected sequence?


After Shift D, original object wrongly move with the copy

I did the below.   Shift D ( Duplicate ) ESC ( cancel Grab ) Move object by Maniplator   At 3, not only the copy but also the original object moves. But I want the original object to stay the original position before duplication.  Please see this gif and .blend file if necessary.          Could you tell me how to avoid this problem?


Mean and variance of bernoulli of two normally distributed random variables

I am looking for the mean and variance of a bernoulli distribution of two normally distributed random variables.  An example would be as follows: A coin flip   heads: draw from a $N(\mu1,\sigma1)$ tails: draw from a $N(\mu2,\sigma2)$   For the expected value of the coinflip I would think it equals $p*\mu1+(1-p)*\mu2$. Where $p$ is 0.5 in this case.  But I have no idea how to compute the variance of this bernoulli distribution.  Could somebody help me with this?


Now that I have Firefox 49 or higher, how do I watch Netflix?

Just got the Firefox 49 update (yay!)  But Netflix still wants to install Silverlight (boo!)  How can I watch Netflix in Firefox, as ?


Confidence Level and Interval probability

I understand that the confidence level denotes how reliable is my test and the confidence level is not the probability associated with the confidence interval. This is well explained on Wikipedia:  Nevertheless, in Wikipedia it is also stated in the subsection "Misunderstandings" that: A 95% confidence level does not mean that for a given realized interval there is a 95% probability that the population parameter lies within the interval.  This is illogical to me. If the confidence interval denotes how reliable a test is, and if the test provides a given interval, I would deduce that the confidence interval is reliable with 95% of probability and hence the parameter is in the interval with 95% probability.  Why is my reasoning wrong?


What part of speech are non-human "interjections" like "oink" and "bang"?

As a spin-off from :  If a human exclaims something like "ouch!", I believe it's considered an interjection.  But if a pig exclaims "oink!", what is the part of speech?  And if a bell goes "bong!", what is the part of speech?  You could speak of "an oink" and "a bong" as nouns, but I mean in a context like      The man went "ouch!", the pig went "oink!" and the bell went "bong!"   Are interjections only for humans?


Suppose $f:\mathbb{C}\to \mathbb{C}$ be a function defined by $f(z)=\frac{z}{1+|z|}$.Show that $f$ is one-one.  How can I show this?From normal straight forward definition it became very complex.There is also no concept about monotonicity in $\mathbb{C}$.So,what is the procedure?


Count vassal gained independence from conquering a duchy in war

Is this supposed to happen? Why would conquering a duchy in war via claim work differently than usurping the title (if a count usurps a duchy and you are king they stay your vassal normally)?


Using EventWaitHandle to ensure a single instance application with notifications

What is the correct way to set up the EventWaitHandleSecurity in the following sample that uses EventWaitHandle to ensure a single instance application?      /// <summary>     /// The method either:     /// 1) acquires mutex and starts listing if anyone tries to get the same mutex,     /// or     /// 2) notifies the instance that actually owns the mutex     /// </summary>     /// <param name="isSystemWide">     /// true if mutex is system wide (can belong to any user of the system),     /// false if there could be one mutex per active user     /// </param>     /// <param name="instanceName">The name of the mutex</param>     /// <param name="callback">Callback to be raised after the mutex is acquired     /// on every time another instance tries (and fails) to acquire the mutex</param>     /// <returns>     /// true if mutex is acquired (and event is subsribed),     /// false otherwise (and the mutex owner is notified)     /// </returns>     public static bool TryListenOrNotify(bool isSystemWide, string instanceName, Action callback)     {         var name = (isSystemWide ? "Global" : "Local") + "\\" + instanceName;          var securityIdentifier = new SecurityIdentifier(WellKnownSidType.WorldSid, (SecurityIdentifier)null);         var rule = new EventWaitHandleAccessRule(securityIdentifier, EventWaitHandleRights.FullControl, AccessControlType.Allow);         var waitHandleSecurity = new EventWaitHandleSecurity();         waitHandleSecurity.AddAccessRule(rule);          bool createdNew;         var eventWaitHandle = new EventWaitHandle(false, EventResetMode.AutoReset, name, out createdNew, waitHandleSecurity);         if(createdNew)         {             // mutex not acquired             var thread = new Thread(() =>             {                 using(eventWaitHandle)                 {                     // listening for notifications                     while(eventWaitHandle.WaitOne())                     {                         callback();                     }                 }             });             thread.IsBackground = true;             thread.Start();             return true;         }         else         {             // mutex is not acquired             using(eventWaitHandle)             {                 // notifying the mutex owner                 eventWaitHandle.Set();             }             return false;         }     }   In particular, I don't like to blindly grant all access to everyone. But I can't figure it out what is the default security settings and what is the least privilege set in that case?  Thank you.


Do there exist functions satisfying $f(x+y)=f(x)+f(y)$ that aren't linear?

Do there exist functions $f : \mathbb{R} \rightarrow \mathbb{R}$ such that $f(x+y)=f(x)+f(y),$ but which aren't linear? I bet you they exist, but I can't think of any examples.  Furthermore, what hypotheses do we need to put on $f$ before no such functions exist? I feel continuity should be enough.


Everytime my server reboots it seems I have to reset my iptables to default, I used to use firestarter but removed it a while ago. Is there any settings that are making iptables change when the server reboots?


If $p,q$ are primes, then there are only two groups of size $pq$ up to an isomorphism?

Let $p,q$ be primes. Show there are exactly two groups of order $pq$, up to an isomorphism $\mathbb{Z}_p\times\mathbb{Z}_q\simeq\mathbb{Z}_{pq}$  I am not too sure what this question is asking or if it even makes sense. I am rather new to group theory, and would appreciate it if someone could guide me through this problem, or direct me to the actual question incase the above makes no sense. I did some research and it has to do with something regarding the Sylow Theorem's. The above "$\times$" indicates a direct product. I am however, not familiar with semi-direct products. I apologize regarding the ambiguity of the question and the lack of work. Any help would be much appreciated. Thanks in advance!


Static or dynamic linking the CRT, MFC, ATL, etc

Back in the 90s when I first started out with MFC I used to dynamically link my apps and shipped the relevant MFC DLLs.  This caused me a few issues (DLL hell!) and I switched to statically linking instead - not just for MFC, but for the CRT and ATL.  Other than larger EXE files, statically linking has never caused me any problems at all - so are there any downsides that other people have come across?  Is there a good reason for revisiting dynamic linking again?  My apps are mainly STL/Boost nowadays FWIW.


Does anyone ever use stopwatch benchmarking, or should a performance tool always be used?  Are there any good free tools available for Java?  What tools do you use?  To clarify my concerns, stopwatch benchmarking is subject to error due to operating system scheduling.  On a given run of your program the OS might schedule another process (or several) in the middle of the function you're timing.  In Java, things are even a little bit worse if you're trying to time a threaded application, as the JVM scheduler throws even a little bit more randomness into the mix.  How do you address operating system scheduling when benchmarking?


How can one prove that for any $x>1$: $$\lim\limits_{n\to \infty }\left(\frac{n^x \Gamma \left(n+1\right)}{\Gamma \left(x+n+1\right)}\right)=1$$   It is easy to show this for $x$ a natural number since we can write the gamma function as a factorial but I would like some ideas on how to prove this for $x$ not a natural number.


My Apple ID has been locked because of security problems. Now I can't access or recover it. When will Apple delete this account? I want to re-create it after it is deleted.


Upgrade Ubuntu 7.04 to Ubuntu 14.10 on dual boot system using USB stick w/no network

I have an older laptop that has Windows XP and Ubuntu 7.04 installed with no network connection currently. I can boot either partition using GRUB to select which to load. Since the Ubuntu version is so old I would like to upgrade or install Ubuntu 14.10. There is nothing on the Ubuntu 7.04 installation that has any value, but I don't want to mess up the Windows XP partition.  I've used Universal USB Installer to create a bootable USB with Ubuntu 14.04 using ubuntu-14.04.2-server-amd64.iso. I am able to boot with the USB flash drive and see a Ubuntu menu. One of the options is to install Ubuntu Server. I tried that option initially, but apparently it needs to download packages over the Internet to perform the install.  Without a network connection the install won't continue.  I assume that there must be a way of including the required packages on the USB flash drive so that network connectivity is not required, but I'm not sure where these setup packages can be found or even where to put them on the USB flash drive.  How can I create a bootable USB flash drive that contains all of the required install packages?  Once I've created the USB flash drive without networking requirements, how do I install to the partition containing my existing Ubuntu 7.04 partition without messing up my Windows XP partition? I am using GRUB. The installation help page has so many different options. One of them is close to what I think I need, but I don't see instructions specifically for installing to an existing Ubuntu partition in a multiple boot scenario.


How can I find out what color scheme is used by Google App

I'm from programmer background.  I would like to mimic the color scheme used in most Google Android app such as GMail, Google Analytic, to use them in my own app.      Those color looks   Elegant Harmony Comfortable   I was wondering, usually, for a designer, how does they generate such color scheme?


What are the differences between (varimax and promax) rotations in PCA?

What are the differences between varimax and promax rotations in PCA?


How do I prove that $3$ does not divide $n^2+1$, for all $n\in\mathbb{Z}$, thought of in separate cases, but did not get, induction also was unable to ....


How to convert Wubi install into regular install?

I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install.


Creating some buttons in a function and then calling a function when they are clicked. jquery

$(document).ready(function(){  var nam="";  $("#sayHello").click(function(){   nam = $("#textBox1").val();   if(nam == ""){    alert("Please let know what your name is.");   }   else if(/  /i.test(nam)){    alert("Try to make sure that your not adding an extra space. It can be any name make one up if that helps.");   }   else{    $("#welcome").html("
Hello "+ nam +",
 How was your day?
" +     "<button id='good'>GOOD</button> <button id='okay'>okay</button>" +    " <button id='bad'>Bad</button>
").show();    $("#inputBox").hide();   }   });   $("#good").click(function(){    $("#goodHit").html("
I'm so happy for you!
" +     "
Here is a quote to help you along your way.
" +     "<blochquote>The good old days are now.</blochquote>" +     "
Tom Clancy
").show();    $("#hi").hide();     });   }); <!doctype html>       <title></title>

   Here is my first text box.      <input id="textBox1" type="text" value=""/>      <button id="sayHello">Submit</button>

                      In my first .click(function(){..}); I make some buttons and put them into a div. I then hide my div that gave me that ability and show the buttons but when I want to use those buttons nothing is happening. I am new to javascript and jquery please help. here is my code.  $(document).ready(function(){ var nam=""; $("#sayHello").click(function(){     nam = $("#textBox1").val();     //some checks are here but unimportant   Here is where the buttons are made and put into my html.          $("#welcome").html("
Hello "+ nam +",
 How was your day?
" +          "<button id='good'>GOOD</button> <button id='okay'>okay</button>" +         " <button id='bad'>Bad</button>
").show();         $("#inputBox").hide();     }     });    I then try and use one for what I want next to happen.  $("#good").click(function(){         $("#goodHit").html("
I'm so happy for you!
" +          "
Here is a quote to help you along your way.
" +          "<blochquote>The good old days are now.</blochquote>" +          "
Tom Clancy
").show();         $("#hi").hide();  });


Short story about stranded astronauts who miss the color green

This short story is probably from the 1950s or 60s. In it, a pair of astronauts are stranded on a planet where all the vegetation is red and there is nothing green to be seen. The only time they ever see the color green is when they fire their ray-gun style weapons, which produce a green glow. As the story progresses and their chances of rescue slowly diminish to zero, one of the pair grows increasingly unhinged, eventually murdering his partner.


When I'll click td get td text dynamic in jquery

i'm create table using javascript but i stuck when i'll click table td,get dynamically td text value in jquery without using for loop/each     function table_form(day, month, year) {   var tr = '';   var table = '

<	Mar	>		<	2016	>

Sun	Mon	Tue	Wed	Thu	Fri	Sat

';   //~ dynamic_date_form(2,2016);   var tr_inc = 0;   for (var i = 0; i < 5; i++) {     tr += '
';     for (var j = 0; j < 7; j++) {       tr_inc++;       tr += '' + tr_inc + '';     }   }   tr += '
';   tr_inc++;   return table += tr; }  $(document).ready(function() {   $("#date_id").one("click", function() {     this.insertAdjacentHTML("afterEnd", "

");     $('#lbl_date').html(table_form(1, 1, 1));   });      $('#tbl').click(function() {     alert($(this).text());   }); }); #lbl_date{     position: absolute;     background-color:#FFAA41; }  <input type="text"  id="date_id" class="date" /> date


Assume $C_n$ is the number of triangulations of a polygon with $n+2$ sides. Using a combinatorial proof, show that $(4n+2)C_n=(n+2)C_{n+1}$.  I don't even know where to start with this one. I understand the triangulation after doing some googling, but I don't know where to go from here to prove the above using just a combinatorial formula.


YA novel about boys travelling to post-apocalypse future

This is a novel I read when I was young; it would have been sometime in the 1970s. I thought I remembered the author being Peter Dickinson, but I just checked a catalogue of his novels and found nothing that seemed similar (I suspect I was getting this book confused with his Changes trilogy, which I read at about the same time; there are some similarities in the setting but it's definitely not any of the Changes books).  Two present-day schoolboys travel (I don't remember how) into what they first assume is the past but then realise is the future. After some apocalypse, probably nuclear war, a medieval society has been rebuilt around a religion that forbids the wheel. I distinctly remember a scene where a heretic, accused of making a wheel, is executed by being tied to a giant (golden?) wheel and rolled down a ramp to their death. The two boys help overturn the oppressive regime (don't they always?), and then one of them returns to his own time, the other choosing to stay and help rebuild the world.  I remember a scene right at the end where the returned narrator doesn't know how to explain what happened to the other boy's parents, but it turns out one of the parents had dreams (presumably psychic) about what happened to their son and were willing to believe the truth.


Output in landscape form while using revtex4-2

The output PDF while using revtex4-2 is in landscape form, how can the problem be resolved?    \documentclass[aps,prstper,preprint,groupedaddress]{revtex4-2} \usepackage{amsmath} \usepackage{hyperref} \usepackage{makecell} \usepackage{graphicx,lipsum,afterpage,caption,subfigure} \usepackage{supertabular} \usepackage{morefloats} \usepackage{tablefootnote} \usepackage[final]{pdfpages} \usepackage{import} \usepackage{filecontents} \usepackage{multirow} \usepackage{booktabs} \usepackage{siunitx} \usepackage[inline]{enumitem} \usepackage{enumitem} \usepackage{soul} \usepackage{textcomp} \usepackage{threeparttablex} \usepackage{supertabular} \usepackage{morefloats} \usepackage{ucs} \usepackage{color} \usepackage{array} \usepackage{calc} \usepackage{multirow} \usepackage{hhline} \usepackage{ifthen}   \usepackage{floatrow} \begin{document}  \title{Development and Validation}   \end{document}


How had the Avalon traveled 19 light years in just 30 years if it was moving at half the speed of light?

During the journey from Earth to Homestead II, Jim tries to send a message back to Earth. The computer informs him that it will take 19 years for the message to reach Earth.  Since we know that the ship is travelling at 50% of lightspeed and since we know that it's been 30 years since the ship set off, shouldn't the message should reach Earth in 15 years rather than 19?


Draw Normal, Bump and Specular Map manually in Blender

I am going to make a rusty nut. Some portion of it is still glossy, but most of them are covered with rust.  Now for rust I have an image. I want to paint normal map, bump map and specular map manually in Blender.   Previously I used insane bump plugins in Gimp to make those maps. But I noticed that using those maps in Blender nodes doesn't look that great. No matter how much I try. So I am planning to draw everything manually in Blender. And it is justified because I might need custom adjustment.  How to draw Normal map, Specular map and bump map manually in Blender?


present perfect continuous vs. present continuous

how can we differenciate present perfect continuous . we use it for the actions which started in the past and still continuing but we start doing the exam in present continuous tense. I am working on the project. I have been working on the project.


cshtml view page and Script issue in mvc razor

this is the scenario  i am using MVC 5 in visual studio 2015  created a view  and add following inside it     @{     ViewBag.Title = "test page"; }
test page
  ';         }  </script>   you will notice that   str += '</script>';   wont work   can any one tell me what i am doing this wrong  or is it Bug


How to get the non-file rightclick menu when files is in list view?

When Gnome Files (nautilus) is in list view I sometimes still want to open the right-click menu that otherwise appears when you right-click into the empty space of a folder. (The one that lets you open the terminal etc.) Is that somehow possible?  Here a screenshot of the current situation: Where the menu of the corresponding file opens.


Do we still need Community Wiki now that we have "suggested edits"?

In my opinion, auto-conversion to community wiki status has a nasty habit of ruining great posts on Stack Overflow. You pose an interesting question, and people post a bunch of copycat answers hoping to catch a ride on the reputation train. You work to maintain an answer over time, and you're punished by having it expropriated by "community wiki."  As I understand it (and I may very well misunderstand it, since the whole feature has never made sense), community wiki is to encourage more collaboration on posts by lowering the reputation threshold for editing. However, the suggested edits feature provides a better mechanism for allowing low reputation users to contribute to existing posts.   I think community wiki is obsolete.  Could we have some data on how many edits on community wiki posts were made by users under the normal reputation requirement? How do those compare to the number of suggested edits?  There are still plenty of problems with auto-conversion to community wiki. I'd like to see it go away.


Can I bring my laptop, camera on flight to USA?

I am going to the US in the coming week. However, I heard that laptop and camera are not permitted to bring on board as carry-on. What are the latest rules about these larger electronics?


Assuming $F(0,0)=0$, can I solve $F(F(x,y),y)=0$ for $y=f(x)$ near $(0,0).$


The question "" was asked in 2012, and the status was initially declined. Since then the timeline feature has evolved and become more useful, and 2015 the status was changed to deferred.  Can we revisit this and get a permanent link to the timeline on every post? It is quite a pain to have to manually change the URL anytime you want to use it. This request seemed to be well received initially, and as Shog9 said in , it has become much more useful since this feature was first proposed. Sha Wiz Dow Ard even proposed a  which doesn't add any new text to the posts.


I'm trying to open a row of block with an animation. The goal is to go from 2 block to 3 blocks by clicking a button. The block that I want to add has to go in the middle and has to fade in from left to right.  I have two problems:   The blocks are not aligned on 1 single line. (The first block is lower) When I click to open the middle block it opens from the bottom to the top (I want it to go from left to right)  This is the code that I used the rest you can see in the   $('.openRed').on('click', function (e) { $('.redHide').toggleClass('redShow').toggleClass('redHide');   Thank you, if it's not clear let me know!


I use Blender 2.83. For a addon (accessible from the 3D-View) I want to bake texture maps. I am perfectly able to do it without scripting. But with python I was not sucessful sofar. To reduce my problem to the barest minumum I start with a selected object with valid UV. I then execute the following python script: import bpy  obj = bpy.context.active_object  # Creating a texture node, linked with a new image mat = obj.data.materials[0] mat.use_nodes = True texImage = mat.node_tree.nodes.new('ShaderNodeTexImage') img = bpy.ops.image.new(name= obj.name + '_BakedTexture') texImage = img  # !!! No image is linked to the texture node !!!  # Baking to the newly created image # The following part works if I create the texture node and the assigning of the image by hand bpy.context.view_layer.objects.active = obj bpy.ops.object.bake(type='DIFFUSE', save_mode='EXTERNAL', filepath='C:\\TEMP\\baked.png', use_automatic_name=True, width=512, height=512)  I think what I am missing is the correct linking of the image to the texture node. I consulted similar questions such as  but their answers did not help (code for Blender 2.7 that is not compatible anymore, i guess).


Python 3.6 regex match unexpected results

I am using a simple regex to try and classify strings as either relating to entitlements (wages) or other.   I have tested the regex in regex101.com and it seems to work as expected but when I run the code I get some strange results  import re  wages_regx = re.compile(r" pay | payment | salary | salaries | wages? | rates? | hourly rates? | allowances? | penalties | penalty | overtime | under payments? | over payments? | entitlements? ", re.I)  def classify(string):     if wages_regx.match(string):         return 'Entitlements'     else:         return 'Other'   Tests  classify('I have an question about my wages rate.')  # Returns: Other (Should return Entitlements) should match on (wages? and rates?)  classify(' wages ')  # Returns Entitlements as expected  classify('ras wages c')  # Returns Other (Should return Entitlements)  classify(' wages c')  # Returns Entitlements as expected


I'm new to git and when I try to merge one branch into another, I'm getting a bunch of errors, like this:  CONFLICT (modify/delete): src/controller/app.js deleted in feat_branch and modified in HEAD. Version HEAD of src/controller/app.js left in tree. CONFLICT (modify/delete): src/controller/service.js deleted in feat_branch and modified in HEAD. Version HEAD of src/controller/service.js left in tree. ...   Im trying to merge using this command git merge feat_branch --no-ff  What am I doing wrong or why this is generating these errors?


Obtaining print quality PDF or PNG output from QGIS?

I work with people who use ArcGIS Desktop and they have found the best resolution output images are made by creating PDFs. They tell me that *.png and the rest out of ArcGIS Desktop are not satisfactory and that they do not bother with them. Typically we are making the output appear in a report and so the PDFs of the maps and words are assembled in a PDF editor package to make the final document.   As a result I have been toying around with QGIS on my Windows 7 machine and notice that the best output comes by printing directly out of the map composer.  This output on my Docuprint C2120 printer is as good as any of the ArcGIS Desktop PDFs and is truly impressive. QGIS makes very attractive maps in this configuration.   However, I do not seem to be able to create PDFs or .pngs and then print them which are anywhere near as good. I find the .svg output to Inkscape unrealiable where, for instance, the grid/graticule may come out oversized.   By way of example, the good quality output is where a sub-6 pt font can be read easily off the printed page.   Any thoughts?  I am using QGIS trunk.


Is there a way to transform the data before I could query it?

MySQL column:  phone = '(999)-666-333'   String to search '999666333'  Is there a way I could search by transforming the value '(999)-666-333' within WHERE command? I want to strip all non-digits and leave only digits. something like: select * from users where regex(phone, '[0-9]') = '999666333';


.bbl is not importing all bibliography items from Bibdesk

I'm writing my thesis in texshop, using Bibdesk as bib library. The problem I'm having is; I can't import all references into my thesis. there are 50 items and I can see only 30 of them.   I'll be glad for any help.


I found out that I am able to flag my answer on Stack Overflow. But I did not press ok. It appears to be an accepted answer.  I believe there is no use of having this option for my own answer because it seems meaningless. Shouldn't this thing be disabled for my own answer? I don't know how this is useful. How could flagging your own posts be useful?