Find an element $p$ which is an irreducible element but the ideal $\langle p\rangle $ is not a maximal ideal?

Does there exist an element $p$ in a ring $R$ such that $p$ is an irreducible element but the ideal $\langle p\rangle $ is not a maximal ideal?  I could only find that $R$ is not a PID but I could not find any counterexample to the problem.Please help.


I reorganized everything in a room to make it into a "official" server room so to speak.  It was full of boxes, old junk, etc. and right now there is only a cabinet with office material. The reason I cleaned it out is because I think that random stuff (boxes) generate more heat and more dust (is this correct?) Im not too much of a fan of letting random employees enter in and out of the server room (we are a small company of only 20 but still) but that cabinet is pretty large and cant be moved...  Anyways, there is a rack with 4 exhaust fans inside of the roof of the rack and inside with 1 server and one NAS. One is a R730 and the NAS is a QNAP. Besides the rack, there is another server which is a PowerEdge 2900. It is outside the rack because in rack there are several battery packs for a UPS we have.  I have my doubts about the cooling inside the room. I have the "luck" that there is a AC unit in the room but the problem is that there are also AC units in the next rooms and if those ACs are on heat, the AC inside the server room does not allow cooling. It is either all heating or all cooling. Meaning I cannot have that AC unit spitting 24/7/365 all year except in summer.  Further, the room I would say is 4 meters by 4 meters (small) and has no windows. You enter it from the common office.  My question is what would be a good cooling plan? Right now, our idea is to make a chimney from the top of the rack to the roof where the fans would blow air out. The problem is that there is 0 airflow to bring cool air in. A solution is that even though you enter the room thru the office, the right wall gives directly to a large factory which is basically cold. From there, we had a idea of putting a fan that draws cold air from the factory into the server room. I think its a idea but I imagine some kind of filter would also have to be put in place to avoid dust.   Is this a good plan? What would the ideal temperature be for something like this?


Probability that a Wiener process greater than zero at two given moments

What is $P(W_t>0,W_s>0)$?  Since increments are independent it may be helpful to split it into two processes as $W_t=W_{t-s}+W_s$.  Each of it has Gaussian probability density function and I think that pdf of sum of two independent processes may be evaluated as in case of independent random variables: $f_{W_s+W_{t-s}} (t) = \int\limits_{-\infty}^{+\infty} f_{W_s}(s) f_{W_{t-s}}(t-s) ds = \frac{1}{\sqrt{4\pi \sigma^2}}e^{\frac{-(-2\mu+t)^2}{4\sigma^2}} \sim N(2\mu,2\sigma)$.  What should I do next? If I integrate it over the area $0<t<+\infty$ than I will find probability that $W_s+W_{t-s}>0$, but I can't proceed forward.


Do I need a visa to transit Seoul on my way back from Jeju to Manila?

I will be travelling from Jeju island bound for Manila, my plane will land in Seoul Gimpo and will transfer to Incheon, Do i need to secure a visa to get to Incheon airport from Seoul Gimpo?


How do servers allow right-click events?

I am working on a minigame on my Spigot server and can't seem to find out how to make right-click events like servers do. For example, I want to be able to receive speed effects after right-clicking sugar, but I currently have repeating command blocks that detect if a player meets "SelectedItem"requirements.  Some use teleporting armor stands to trigger when they right-click them, but that seems like a hassle. Others use carrots on a stick and retexture it to detect its use, but I don't want custom resource packs on my server.  Do servers use these methods to detect right-clicks? There must be another way.


How was Boromir going to use the One Ring?

During the course of the Lord of the Rings, many people suggest using the One Ring against Sauron, for example Boromir, who proposes using it to defend Gondor. Likewise, more knowing characters such as Gandalf and Elrond are diligent to explain that using the Ring against Sauron himself is foolish and destructive.  However misguided Boromir's ideas about the Ring may have been, I'm intrigued: How did he think the Ring would have helped him protect Gondor? How did Boromir envision using its powers?


I am using Resharper 5.1 code analysis many a times i get a comment from resharper as    "Event unsubscription via anonymous delegate"    #Part of Code    if (((bool)e.NewValue)) {     listView.PreviewTextInput += (o,args) =>         listView_PreviewTextInput(o,args,listView); } else {     listView.PreviewTextInput -= (o, args) =>          listView_PreviewTextInput(o, args, listView); }   How could i correct or  optimze this thing


Can I play the original Destiny on my XBox One with someone on XBox 360?

There are questions similar to this, but none are helping me. I love the Destiny games. Always have. My Dad is looking to spend some video game time with me, and I thought this would be the perfect game for us to play together. Problem is, I have an Xbox One S and he has an Xbox 360. I know that there is backwards compatibility. If I get two copies of the Xbox 360 Destiny; one for each console, would the backwards compatibility feature allow us to play together? We both have Xbox Live. Thanks!


I am stuck on a question Algebra:Sequence and series, Can we make an infinitely long arithmetic progression from the set of prime integers?

Today, I came across this question while learning sequence and series, the question is Prove that we cannot make an infinite AP in the set of prime integers. I tried to solve it, but I couldn't proceed as there is no general formula for prime numbers so how can I prove that no infinite AP will be possible, so I resorted to proving that any AP which has all terms prime integers will end at kth term.  I also consulted the Wikipedia article of Green-Tao Theorem  () but I wasn't able to understand the solution present there.  I also saw some StackExchange answers but none answered my question or at least gave me a hint.  I also read this research paper   So I would request you to please guide me with a hint, not a solution.  Please note this is not my homework exercise, I am just learning algebra for my competitive examination preparation.


In an SSH session or local terminal session (xterm), using Alt+left or right arrow allows me to skip forward and backward one word. In the example below, when using Alt+left arrow, the cursor stops on, from the end of the command, 'p', 'R', 'F', '2', '2', '2', '4', '1', '1', '1', '1', 'f', 'p', 'R', '1', '2', '0', 'F', 'T', 'f', 'f', 'u', and 'c'. This leads me to believe the delimiters would be "._/:{}- ", among others. Can I get rid of some of these delimiters? /etc/inputrc doesn't seem to define the delimiters from what I can ascertain.  curl -u ftpuser:ftppass -T{File1_04-20-16_Rev1.pdf} ftp://192.168.10.100/4_20_2016/20160420_File1_Rev1.pdf


How do I add an ajax item on the submit button?

I created a form using the module "Webform". Now I want to add an #ajax item to the submit button.  Here's what I already did:  use \Drupal\Core\Form\FormStateInterface;  function mytheme_form_alter(&$form, FormStateInterface $form_state, $form_id) {   $form['#submit']['#ajax'] = array(     'callback' => '\Drupal\mymodule\Controller\DefaultController::process_form_submission'   ); }   The '#submit' field of the form now looks like this:  '#submit' => array(2)     '0' => string(12) "::submitForm"     '#ajax' => array(1)         'callback' => string(72) "\Drupal\mymodule\Controller\DefaultController::process_form_submission"   But the process_form_submission function is not called. Instead the page reloads on submit as before.


I am trying to format a string a certain way. Currently I have  String timeString = hour + ":" + min + ":" + sec ;   however I have hour min and sec as integers and whenever they are a single digit i would like to add a placeholder 0 in front. How would I do that?   Edit:  did not answer my question.


I have been thinking about a logical curiosity I came across years ago.  It went something like this:     Three married women live in a circle of friends in which:      1) Any infidelity on the part of a husband is immediately known by   everyone except that husband's wife. 2) Any wife who becomes certain   that her husband has cheated will divorce him that day. 3) All the   women are perfect reasoners 4) All the women know that 1-3 are true      Call the wives A,B, and C.      Suppose all the husbands are faithful until Superbowl weekend, during   which they all cheat on their wives.      After one day, A thinks "B did not divorce her husband because she   knows that C's husband cheated and C did not divorce her husband   because she knows that B's husband cheated."  And that situation   remains unchanged for a while.      However, after several weeks, an anonymous person whom the wives all   believe for some reason, sends each of them an e-mail stating "not all   of your husbands have been faithful".      After the first day, A thinks "B did not divorce her husband because   she knows that C's husband cheated and C did not divorce her husband   because she knows that B's husband cheated.  Now, however, B knows   that C did not divorce her husband (and because my husband is surely   innocent), B knows the reason C did not divorce her husband is because   C knows that B's husband has cheated.  C will reason similarly and   learn that her own husband has cheated.  Tomorrow, they will surely   both divorce their husbands".  B and C both reason exactly as A did,   but from their own points of view.      After the second day, when B and C still have not divorced their   husbands, A realizes that is can only mean that her husband has also   been unfaithful.  B and C both reason exactly the same a A did, and   so, on the third day, all three of them divorce their husbands.   (Aside: I think the logic can be extended to m wives and n cheating husbands: on the nth day, all the wronged wives will divorce their husbands.)  Here is my problem:  I have not been able to figure out how any wronged wife would concluded her husband has cheated without the anonymous e-mail.  Yet, in cases where there are at least 2 cheating husbands, all the wives already know that there has been cheating and they know all the other wives know there has been cheating.  So, it seems that the anoymous e-mail is the key element that allows wives to reason out their husbands' guilt, in spite of the fact provides no new information to anyone.  Can someone either (A) explain how that is possible or (B) point out the flaw in my logic elsewhere (e.g., maybe there is a way to determine a husband's guilt without the letter)?  Thanks!


Can I add jars to Maven 2 build classpath without installing them?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too." It seems like this ought to be simple, but if it is, I am missing something. Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.


I've been playing a couple of games on my Surface Pro 2 while travelling. When I launched a game on my desktop after I got home, I noticed my savegames did not sync.  While I realize Steam couldn't sync while I didn't have access to the internet, I did turn my Surface on after I got back home. Steam simply didn't bother syncing then, so I was forced to launch each game I had played so Steam would sync.  Having to launch every game while an internet connection is available is quite inconvenient, especially when some games have unskippable intro videos. Is there an option where I can tell Steam to sync all savegames without having to launch a game?


Polynomial ring $R[X] $ has zero Jacobson radical, for $R$ a domain

Let $R$ be a commutative domain.   Prove that the Jacobson radical of $R[X]$, i.e. the intersection of all maximal ideals, is the zero ideal.  Thank you.


Integral $\int_0^{\infty} \left( \frac{\sin x}{x} \right)^2dx$.

Consider the contour $C_{\epsilon,R} = \Gamma_R \cup \gamma_{\epsilon} \cup [-R,-\epsilon] \cup [\epsilon, R]$ and $f(z)=\frac{1-e^{2iz}}{z^2}$. By Cauchy's Theorem we have $$\int_{C_{\epsilon,R}}f(z)dz=0$$ It is easy to see that $\int_{\Gamma_R}f(z)dz \rightarrow \infty $ as $R \rightarrow \infty$.  Therefore $\int_{-\infty}^\infty \frac{1-e^{2ix}}{x^2}dx=\int_{\gamma_\epsilon} f(z)dz = \frac{1}{2}2\pi i \operatorname{Res}(f,0) =2\pi$. My question here is why the integral on $\gamma_\epsilon$ is exactly half of the residue of $f$ at $0$. I can't see why the integral of $f$ on the upper semi-circle and the lower semi-circle are the same. I know there is an alternative way to compute $\int_{\gamma_\epsilon} f(z)dz$ but I want to know why $\int_{\gamma_\epsilon} f(z)dz = \frac{1}{2}2\pi i \operatorname{Res}(f,0)$ holds.


For text-heavy pages on the web, is there evidence to suggest that serif fonts are a better option? The studies I've found seem very murky in pointing one way or another indicating that yes, users read serif fonts quicker but they're not more legible while other studies suggest there is no difference between the two.   Are there any conclusive studies that define serif fonts as being a better choice?


Scaling sequences from i.i.d random variables

Consider i.i.d. random variables $(X_i)$ drawn from a uniform distribution on $[0, 1].$  In the following find scaling sequences $a_n$, $b_n$ such that $a_n(M_n − b_n)$ converges in distribution to a non-trivial limit function $G$.  (a) $Y_i = X_i,$ and $M_n = \max(Y_1, . . . , Y_n);$  (b) $U_i = \frac{1}{X_i}$, and $M_n = \max(U_1, . . . , U_n)$;  For each case find first of all the probability distribution function $P(M_n ≤ u/a_n + b_n)$ as a function of $u_n = u/a_n + b_n$. After I would like to find suitable scaling sequences $a_n$, $b_n$ so that you get a non-trivial limit $G(u)$ as $n → ∞$.  I'd be very grateful and would really appreciate some help with this.


How can I have a Linux machine join a Windows Domain?

Sorry if I am misusing terms here; I actually don't know much about Active Directory and the related technologies.  Basically I have a Linux computer and I'd like it (or my user on that computer) to be associated with my user on the Domain, so that I can browse the network and all that stuff windows has.  Is this feasible?  What do I need to look into to do something like this?


Ubuntu 18.04 upgrade stuck on splash screen

Just did an upgrade to Ubuntu 18.04 from 16.04 and i am getting stuck on the splash screen.  Right now i have turned off quiet splash and found that I am getting stuck on:  "Started Update UTMP about System Runlevel Changes". It hangs here while the screen flickers off and on.


Using electrolyte capacitor in AC application

I know electrolyte capacitor explode when used in AC current but Can we using two parallel electrolyte capacitors as shown in fig. for AC applications since they have lower size than PPC capacitors (for 400v), for using in transformerless power supply as Xc or for power factor correction?


Why is there no article "the" before "bed" in "in bed"?

Jamaica Inn episode 5 from BBC learning English drama section:  The dialogue says:     Mary: My aunt is in bed.   She doesn't say -      My aunt is in the bed.   That section is for teaching English.  Are they using incorrect English?


Is there a way to display a player name in /tellraw command?

like the title says, I'm looking for a way to display a player name in a /tellraw command which is run by a command block. Example:  /tellraw @a {"text":"","extra":[{"text":"A player has won the game!","color":"blue"}]}   And the output is something like this:  A player has won the game!   But I want the output to be something like  JasonSPQR has won the game!   Using the @p parameter


Solve $x$, where $x\in[0,9]\cap\mathbb{Z}:$ $$13^{11^7}\equiv x\pmod{10}$$  Here is my thoughts: Since $13\equiv3\pmod{10}$ Implies $13^{11^7}\equiv 3^{11^7}\pmod{10}$ $$3^0=1,3^1=3,3^2=9,3^3=27,3^4=81\cdots$$ For mod $10$, have reminder repeat between: (they have to repeat, but i will skip the induction here) $$R_1=\{1,3,9,7\}$$ Then solve $$11^7+1\equiv x\pmod{|R_1|}$$ $$11^0+1=2,11^1+1=12,11^2+1=122,11^3+1=1332$$ For mod $4$, have reminder index repeat between: $$R_2=\{2,0\}$$ In another word, the reminder repeat between second and last term in $R_1$ Then solve $$7+1\equiv x\pmod{|R_2|},\text{ that }x=0$$ $x=0$, means the reminder is the last term in $R_1$ which is $7$, that implies $$13^{11^7}\equiv7\pmod{10}$$ Therefore $x=7$  My qeustion: is there any theorem to apply so this calculation could be simpler$?$ Any help would be appreciated.


Please help I need to flash stock rom on my dead samsung device but I can't find it, I attempted to remove the case but I don't know where sould I find it.  Here are some the phone info Model found on settings : N5200  Rom : 4.2.2 Jelly Bean Processor in board: MediaTek ARM MT6572A  Found this unknown numbers and letters Rated 5V = 2A FCC ID: A3LGTP1000 Dual Core2 Tablet: N5200 V710-1-V710_bin_V04 SN:8145051101607  14E08025 SAMSUNG ----- 410 KMN5X000ZM B209 T V710-1-2G  Thats All ! Thanks


Can you make an opportunity attack against a moving object?

With the recent addition of the revisited artificer class to 5e, I did a quick playthrough with a level 3 artillerist. The artillerist can summon a turret; an object (not a construct) with a speed of 15 and they can command the turret to move as part of a bonus action. When I attempted to move the turret out of melee range of an enemy NPC, the DM tried to make an attack of opportunity against it. I pointed out to him that opportunity attacks are made against creatures, and the turret is not a creature.  This got me thinking about whether or not you can make opportunity attacks against other objects that move, such as a vehicle or even a rolling stone.


Now whenever I get to a SE answer from Google, the site yells at me:  Welcome back! If you found this question useful, don't forget to vote both the question and the answers up.  Is there a way to disable it? I'm quite aware of how to vote on questions and answers and it's annoying to see it every time I click on questions (sometimes many times in a day). Perhaps this could go along with some rep requirement. At least have an option to only nag me once a week or something like that?


I have a list of integers, List<Integer> and I'd like to convert all the integer objects into Strings, thus finishing up with a new List<String>.  Naturally, I could create a new List<String> and loop through the list calling String.valueOf() for each integer, but I was wondering if there was a better (read: more automatic) way of doing it?


I'll start by saying, I am asking this question after having read most of the similar threads out there and tried what they suggest but with no luck.  So, I have this laptop .  I had Windows 7 installed but I erased them and I only have Ubuntu now.  When I restart my laptop and right after the Asus starting screen I get a black screen with a flashing underscore.   Editing grub file - Does not work. Shift key pressed or spammed - Does not work. Whole keyboard spammed - Works some times.   So what are your opinions? Any suggestions? Cause it's annoying to spam the whole keyboard every time, plus it's not a guaranteed solution.  Edit: Common fixes that worked for others like reinstall grub, run boot-repair, keys pressed during startup do not work in my case. I'm not an expert but I think it either is my graphics card (I don't know why but I've seen it being mentioned in other threads) or it's like the system is not booting from the right partition. Partitions are as follow:/boot(flaged for boot), / "root", swap and /home.  Edit: Here is the report from the last repair-boot just in case....


Unix Timestamp Conversion to local time date in C#

I want to convert Unix timestamp (long value) to local tried to covert it. but its not showing local time (UTC +05.30).   here local time is 29-12-2018 01:38:09 PM  but Its showing 29-12-2018 05:51:09 AM  My code is as below. please suggest what i am missing?  var lastRecieved = DateTimeOffset.FromUnixTimeMilliseconds(1546062669090).DateTime.ToLocalTime(); string Timetest = lastRecieved.ToString("dd-MM-yyyy hh:mm:ss tt"); Console.WriteLine("Value in datetime format : " + Timetest);


When is this true: If $m^2$ is a multiple of N then m is a multiple of N

I'm looking for a set of conditions and maybe a proof of said conditions for the thought proposed in the title. It seems to me that what was stated in the title always is true when N is not a perfect square and N < m, but I can find instances that work for perfect squares N, e.g. m = 12, N = 4.  If it's not clear what I'm asking, I'm looking for a general case of what's asked in   Any help is appreciated! Thanks.  Edit: m and N are positive integers.


I am a South African travelling to Canada with 2 passports. Passport one is expiring 2 days after I leave Canada and has a valid visa in it.  Passport 2 is a new passport. is this okay


prove that $\phi(xy) =\phi(x)\phi(y)$ for any $x$ and $y$ with $(x, y) = 1$.

Prove that $\phi(xy) = \phi(x) \phi(y)$ for any $x$ and $y$ with $(x, y) = 1$.  I understand the concept, and have done several examples proofing this but cannot put it in "proof form" because unless its a counterexample, it cannot be proven by just using the numbers that I have from a table.


horizontal bands on sony Ar7ii (some photos)

recently I acquired a sony ar7ii and have done about 2k photos with it.  works amazingly, but occasionally i see these black bands.   i have no idea what is causing it, and how to prevent it. any insight would be appreciated!


I'm learning c and try to understand how c handles the memory space.  When I read the topics about struct and union, I learned that struct do some kind of lining in memory to save space and union put the elements in the same memory location.  I tried code like:  typedef struct {    double a;    char b; } number;   when I try to find the size of the struct, it shows 16 bytes, if I changed  the type of a to int, size will be 8 bytes. So I'm a bit confused because the addition of char byte seems to increase the size of struct differently.  Another question is about the union, I did something like:  typedef struct{     double a;     union{         int b;         double c;         long d;     }; } number;   and I set all the fields to the MAX of its type.  In my understanding, union is like a "shared memory", but this test somehow violates this definition.  It turns out that size of this entire struct is 16 bytes, where should the numbers be stored if I set them all to the max, where should the extra bits go. I'm confused.


Exporting composer with 2 maps in QGIS: wrong extent in one map after export

After creating this map in the QGIS 2.18.2 map composer     (note that the red dot in the upper left map is shown in India),   I then export it to a PNG image file. However, the overview map in the upper right corner seems to have changed its extent and zoom during the export process, as the red dot is now located in Iran.   Any ideas why and how to solve this?


How can I create a file with multiple lines from the command-line?

How can I enter the following contents in a file:  Hi abcd   I tried using echo "Hi\nabcd" >> ab.txt, but in the file it's written as is (the \n is included, instead of a newline)


Does Apple Watch Series 4 with LTE require paid service for the fall detection call to work? Will it make the call anyways? I’ve heard 911 calls don’t require paid service.


The MathJax help link should point to a more specific guide

When editing a post on a site where MathJax is enabled there in "how to format" there is a link  which points to a page not as useful as the  on .  So I suggest to replace that link with


Drag'n'drop files Desktop  File manager with 20.04 LTS doesn't work ; it worked on 18.04 LTS

With Ubuntu 18.04, I can drag and drop files from Desktop to File manager and vice versa. On my other Ubuntu 20.04 install, this is no more possible. Has this fetaure been voluntarily removed or is it an accidental regression? How to enable it again? Many people seem to have noticed the same problem, see for example the 100+ voted comment about this on the video : "Love Ubuntu, but I'm still disappointed a basic feature like drag & dropping files to/from desktop into the file manager is missing.". Note: This is strange for a LTS; why did they accept this a-little-bit-broken state for a Release version, did they consider it's not important? All major OS support drag n drop out-of-the-box from/to Desktop since Win 95 probably. (Without having to tweak some parameters). Do you think there's a hope to have this solved in 20.04.1 or 20.04.2?


If A is a $m\times n$ matrix, and $\text{rank}(A)=1$, then $A^2 =\lambda A$

If $A$ is $m \times n$ matrix with rank$(A)= 1$. How do we show that   $$A^2 =\lambda A$$  for some $\lambda$?  How do we show this? All I could show is that if rank$(A)=1$ then rank$(A^2)=1.$  Am I heading in the right direction?


Symptoms  Internet connection is mostly stable, but will occasionally drop in situations where there is high throughput on the connection, such as downloading large files or streaming video (sometimes it will be stable for hours, other times it might drop a couple times per hour). When this happens, attempting to access the router times out. This usually lasts for up to a minute. As soon as the connection to the router is reestablished the internet access works again without issue.  System   ROG Strix Z370-E Gaming onboard Realtek 8822BE Wireless LAN 802.11ac PCI-E NIC 5 GHz channel WiFi connection Windows 10 (Version 10.0.17134 Build 17134) Google Fiber router GFRG200   Troubleshooting  I've had this problem for over a year at this point. It started on my previous PC build based on P8Z77-V with A7000 WiFi USB Adapter when I had to switch from an ethernet connection to wifi. The new system has this problem with both the onboard wifi adapter and with A7000. No issues when connected to the router via ethernet. Tested also with two different laptops (Windows 7 and a macbook) and smartphone and the issue does not reproduce there. I've tried several different drivers for both adapters, the latest today with 2024.0.4.102 driver for the onboard adapter.  The router is within 10 feet of the PC with no obstructions in between. Looking for interference with Wi-Fi analyzer doesn't indicate much congestion on the 5GHz frequency. I've also tried changing the channels with no effect.  I recorded a session of this happening while streaming from Twitch with Wireshark and nothing really stands out in the recording other than a number of TCP Dup ACKs before the connection is lost.  What would be some further steps to take to narrow down the cause?


How can I convert a Unix timestamp to DateTime and vice versa?

There is this example code, but then it starts talking about millisecond / nanosecond problems.  The same question is on MSDN, .  This is what I've got so far:  public Double CreatedEpoch {   get   {     DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0).ToLocalTime();     TimeSpan span = (this.Created.ToLocalTime() - epoch);     return span.TotalSeconds;   }   set   {     DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0).ToLocalTime();     this.Created = epoch.AddSeconds(value);   } }


I just watched season 1 (episodes 1-22) of Psycho Pass on Netflix and now I want to watch the rest.  On the Funimation site there is:   Episodes 1-22 (Season 1) Specials 1-11 Episodes 23-33 (Season 2) Also there is the recently released movie.   I haven't started any of the specials or season 2 yet; I don't want to accidentally watch something out of order and spoil it. My question is: Where do the specials fit into the series? Between the two seasons? Side stories? Prequel? After season 2? When should I watch them?  The episode lists I've found seem to leave out the specials so I'm not sure how they fit in.


I am trying to set a cron job for taking backup from my slave machine. So I need to stop the slave  I issued a command   mysqladmin --user=root --password=test_pass stop-slave   But it is throwing error:      mysqladmin: connect to server at 'localhost' failed error: 'Access   denied for user 'root'@'localhost' (using password: YES)'   Now I tried with the command  mysqladmin --user=root --password stop-slave   It prompts for password and I gave as test_pass and everything was fine.  Why so happened? What is the alternative?  NB: BTW my mysql version is mysql-5.0.95-5, it it make any sense.


Upper bound for the rank of a nilpotent matrix , if $A^2 \ne 0$

I came across the fact that the rank of a $n \times n$-matrix A with $A^2=0$ is at most $\frac{n}{2}$. The easiest way to proof this is using the inequality $\operatorname{rank}(A)+\operatorname{rank}(B)-n\leqslant\operatorname{rank}(AB)$. With $A=B$ and $A^2=0$, this immediately yields $\operatorname{rank}(A)\leqslant\frac{n}{2}$  Can this result be generalized? What is the upper bound for the rank of a $n\times n$-matrix $A$ with the property $A^k=0$?  Additional question : Is the above bound for $k = 2$ sharp? In other words, is there  a $n \times n$ matrix $A$ with $\operatorname{rank}\left\lfloor\frac{n}{2}\right\rfloor$ and $A^2=0\;\forall n\in\mathbb N$?


Can the term "etymology" be applied to a phrase or only individual words?

I have always heard the term used in referring to a single word. When browsing questions on this site, I've seen it used applied to entire phrases, and have suppressed the compulsion to edit them and replace the term with origin.


I have tried many ways to integrate $\sqrt {\tan x}$ including integration by parts but didn't get to any final result. I also assumed, $$ \tan x = t^2 $$ $$ \int  \sqrt {\tan x} \,dx $$ $$⇒\int \frac{2t^2}{1+t^4}dt$$ but it's getting a bit complicated further, kindly help. Also, are there any simpler ways to integrate this. Answer, $$ \frac{1}{\sqrt 2} \tan^{-1}\left[\frac {\sqrt {\tan x}-\sqrt {\cot x}}{\sqrt{2}}\right] +\frac{1}{2\sqrt 2}\ln\left[\frac {\sqrt {\tan x}+\sqrt {\cot x}-\sqrt {2}}{\sqrt {\tan x}+\sqrt {\cot x}+\sqrt {2}}\right] +C $$


how to fix Exception in thread "main" java.lang.NullPointerException ?

I'm a beginner at programming in Java.  I'm aware of the number of topics on this particular message error but I haven't been able to fix this issue. The error is indicated to be in line 23 in the following code.  I'm aware the problem seems to be linked to null references, but I'm failing to see how my method "Recommander" isn't assigning values to all the references.   public class Recommander{  // predetermined array of series  private String[]  serie= {"Friends S1","Friends S2",      "Friends S6","Friends S7", "Friends S8", "How I met your mother S1",     "How I met your mother S2","How I met your mother S3 ","Castle S3",      "Santa Clarita Diet S1", "Modern Family S1","Modern Family S2",     "Family Guy S6", "The Simpsons S5"};   // array of the purchases of one customer   private int[] profil ;   //number of profiles in the database private int nbProfils = 10 ;   // array of all the profiles from the database and the series available private int[][] records ;  // creation of an instance of the object Recommander  public Recommander() {      for (int k=0;k<=nbProfils-1; k++) {         for (int i=0; i<=serie.length-1;i++) {              records[k][i]= (int) (Math.random())*2 ;          }     }  }   // Display of the series available in store public String affichageSerie() {      String Affichage = "" ;      for (int i = 0 ; i<=serie.length-1; i++) {          Affichage = Affichage + serie[i] +  "\n" ;      }      return Affichage  ; }    }


Get numbers from string and set them in array in JavaScript

I have a string like this 100 and 20000 and I need to extract the numbers with regex and push them to array and access them by indices. Can you give me a little push here, my knowledge on regex are very limited. Thanks.


Why isn't this program running properly?

The assignment was to create a postfix to infix converter using Stacks. The program compiles properly but when I tried to make a demo class, I received a null point exception line 32. Please share any observations, better coding conventions, or solutions.  import java.util.Stack;  public class PostfixtoInfix {     private String expression;     private Stack<Character> s;     Character pOpen = new Character('(');     Character pClose = new Character(')');      public String PostfixtoInfix(String e) {         expression = e;         String output = "";         for (int i = 0; i < e.length(); i++) {             char currentChar = e.charAt(i);             if (isOperator(currentChar)) {                 while (!s.empty() && s.peek() != pOpen                         && hasHigherPrecedence(s.peek(), currentChar)) {                     output += s.peek();                     s.pop();                 }                 s.push(currentChar);             } else if (isOperand(currentChar)) {                 output += currentChar;             } else if (currentChar == '(') {                 s.push(currentChar);             } else if (currentChar == ')') {                 while (!s.empty() && s.peek() != pClose) {                     output += s.peek();                     s.pop();                 }             }             while (!s.empty()) {                 output += s.peek();                 s.pop();             }         }         return output;     }      public boolean isOperator(char c) {         if (c == '+' || c == '-' || c == '/' || c == '*' || c == '^')             return true;         return false;     }      public boolean isOperand(char c) {         if (c >= '0' && c <= '9')             return true;         if (c >= 'a' && c <= 'z')             return true;         if (c >= 'A' && c <= 'Z')             return true;         return false;     }      public int getOperatorWeight(char operator) {         int weight = -1;         switch (operator) {         case '+':         case '-':             weight = 1;             break;          case '*':         case '/':             weight = 2;             break;          case '^':             weight = 3;         }         return weight;     }      public boolean hasHigherPrecedence(char operator1, char operator2) {         int op1 = getOperatorWeight(operator1);         int op2 = getOperatorWeight(operator2);         if (op1 == op2) {             if (isRightAssociative(operator1))                 return false;             else                 return true;         }         return op1 > op2 ? true : false;     }      public boolean isRightAssociative(char op) {         if (op == '^')             return true;         return false;     } }


How to use a content type form as a block

I need a page to be half content, half node edit form. How can I do this? I thought I'd put the content type's form display into a block. Sounds easy enough. I've been trying contrib and custom modules, but I can't seem to grab the form. Thought I could get away with something like this. class EvaluationBlock extends BlockBase {    /**    * {@inheritdoc}    */   public function build() {     $node = \Drupal::routeMatch()->getParameter('node');     if ($node instanceof \Drupal\node\NodeInterface) {       $render_array = EntityFormDisplay::collectRenderDisplay($node, 'project_evaluation_form');       // error_log($render_array);       return $render_array;     }   } }


I received my Schengen visa today from the French Embassy. I wrote in my application that I will stay for 14 days. They gave me 1 month (valid from 23-10-18 until 21-11-18) but on the side it says duration of stay 14 days. Can I stay for only 14 days?  Now I regret that I did not make it for 20 days. I had no idea that they would just allow me 14 days. I thought that if it's valid for one month I could stay for one month. Also, is it okay if I change my mind and stay only 3 days in Paris and go to Rome for 5 days?


Should \left and \right almost be used for brackets?

Apart from automatically setting the size for brackets, the commands \left and \right also adds spacing around the corresponding brackets. The spacing in which one uses both \left( and \right) and parentheses without these commands  the spacing might therefor be inconsistent. Is the intention behind this that the commands \left and right should always be used when parentheses are inserted into equations?  If not, what is good practice for when to use these?


Using Photoshop or Illustrator, what would be the easiest way to recreate the geometric mosaic effect seen below on an image? I realize the image below was likely hand drawn and recreating it in an automated fashion would yield different results but I'm just looking for the tools that may exist to recreate something similar.


Prove that $x^2+y^2=z^n$ has a solution in $N$ for all $n \in N$

My proof goes like this     For $n=2$ there are infinite solutions.   Let $x^2+y^2=p^2$ be one such solution.As there are infinite solutions, We can assume that $ p = q^3$ for some integer $q$.  Then after substituting,we get  $x^2+y^2=(q^3)^2$  $x^2+y^2=(q^2)^3$  We found a solution for $n=3$.Instead of $p=q^3$ we can put any power to q.Therefore we can find a solution for any value of $n$.  Is this correct proof or are there any loopholes in my proof or is there any more elegant proof


Some of my students have a disagreement about transcribing the pronunciation of "trade" in American English. Some say it's (a) [t͡ʃeɪd] while others (and they point to dictionaries that support them) say it's (b) [treɪd]. I thought it was the former; the latter sounds a little like a fast "tirade". But now as I try to articulate it more, it seems like (c) [t͡ʃreɪd]. Any insights on this?


Site hacked, need help to look for clues about how it happened

i recognized a successful hacking attempt where someone managed somehow to modify a file under my drupal installation and to inject javascript code  the file that was hacked was :jquery-1.9.1.min.js which is a general javascript library file that i downloaded earlier (clean with no hacking code)  i cleaned the file now but i want to know how the person got in?  and also another very strange thing , the last modified date of the file was intact since years even though the code was added to the file recently, can someone hack the site then change the last modified date as well to cover their tracks?  My question in simple words, where do i start looking to find clues to find the security hole?


Does QGIS - through one of its rich algorithms library - allow for reduction of raster DSM/DEM resolution? I want to speed up the analyses and reduce effect of detailed raster on results readability.   The problem lies in the detail level of the raster. Input dsm was made based on the uav survey (output format: .tiff), so its size (area) is not large, but very, very detailed. This makes results of every analysis run on it difficult to view - i.e. QGIS calculates the aspect for every bump even 10 cm high, or streams for catchments for completely irrelevant areas.


Physical significance of knot vector in B-spline.

A B-spline blending curve formulation is:     $P(u)=\sum_{k=0}^np_k B_{k,d}(u)$      Given $n+1$ control points, B-spline blending functions are polynomials   of degree $d-1$, $(1<d<=n+1)$.    This much is easy to comprehend. Now comes the part I am not able to make any sense of.      Each polynomial function is defined over $d$ subintervals of the total   range of $u$. The selected set of subinterval endpoints $u_j$ is referred   to as a knot vector.   What is the purpose of knot vector? What is its physical significance?


How to prove if $\Bbb R^n=W_1\cup W_2\cup \cdots\cup $ where each $W_k$ is a subspace, then $\Bbb R^n=W_i$ holds for some $i$

I know if $W_1,\ldots,W_k$ are subspaces of a vector space, their sum is the span of their union. ie. $W_1+W_2+\cdots+W_k=W_1\cup W_2\cup \cdots \cup W_k$. But how to prove $\Bbb R^n=W_i$ holds for some $i$? Is there anything to do with direct sum? Because if $\Bbb R^n$ is the direct sum of $W_1+W_2+\cdots+W_k\iff$ the sum of the dimensions of the $W_i$ is $n$.


Any tips on developing an RTS unit movement collision?

so I am developing an RTS and I am a little stuck at this. I am not talking about pathfinding algorithms like A*. The problem is moving units in bulk and their collision along the way. Can anyone give me some pointers or tips on how to start working on this. Older RTSs have a lot of problems in this. Warcraft 3 for example. When playing it now after some SC2 it is excruciating when units collide and block each others path and so on. I really want to avoid that. Thanks.


I did cut out pictures white background and I expect to save it to jpg file without background. I do export and save to jpg. Unfortunately I still have background in new file. How to fix it?    I would like to ommit white frame around PCB board


How to calculate cumulative Poisson probabilities without adding each one if no. of outcomes is large and hence, adding (without excel) is difficult?

One can calculate the probability of a correct score of a football match by Poisson(Number of Team1 goals, Mean average Team1 goals) x Poisson(Number of Team2 goals, Mean average Team2 goals)  So for 0:0 scoreline, Poisson(0, 1.05) x Poisson(0, 2.5)  if mean Team1 is 1.05 and mean Team2 is 2.5.   But how does one calculate the probability/odds of "home team to win by exactly one goal"? Adding double Poissons for each 2:1, 1:0, 3:2, etc scorelines might be one of the methods but it will be a tedious task and I am trying to avoid Excel for the time being to find the simplest method to calculate this. How do you involve the other team in your calculations?   Was hoping an easier, simpler way was there (something like calculating P=0 and then 1-P(0) to find odds of P>=1).


Intuituive reason why Fermats last theorem holds

I am unsure of whether it is normal, but to me, intuitively Fermats last theorem should not hold.  If anyone intuitively believed it to be correct, why?     Can someone explain so I understand somewhat why FLT holds without reading a massive and complex proof?


How do we add a matrix to a LaTeX document?


I am using Quartz.Net scheduler library in .Net Core. And it has an extension method. But I want to use it dynamically. How can I pass generic type of my classes from its string key ? RUQRAktarim is my generic class. I have another classes like it. And I don't want to repeat code which is in below. I have my class names as a string in appsettings. So i want to repeat this code from string class names. [app.UseQuartzJob<"classname">] Original code like that : app.UseQuartzJob<RUQRAktarim>(new List<TriggerBuilder> {     TriggerBuilder.Create()                   .WithIdentity("Trigger" + i.ToString(),jobName)                   .WithCronSchedule(cronExpression,                        x => x.WithMisfireHandlingInstructionFireAndProceed()), });


Why do we use $x - y$ rather than $x + y$ in the definition of the convolution? Is it just convention? (If we are thinking of convolutions as weighted averages, for instance against "good kernels," it should make no difference.)  Why $(f * g) (x) = \int f(y) g(x - y) dy$ rather than $(f * g) (x) = \int f(y) g(x + y) dy$?  Edit: I'm finding it really hard to choose a best answer. There are at least three very good ones here.


Laptop battery indicator saying "plugged in, not charging"

My Toshiba Satellite with Windows Vista is a couple years old.   The battery lately is completely shot. Even after charging for a long time, it barely lasts five minutes when you unplug it. I'm assuming it's related to this new problem.   Anyway, the last couple days it's been saying "plugged in, not charging", and it's down to 0% now. I've already tried taking out the battery and reinstalling the battery in device manager. Is there anything else I can do?


Stack Exchange keyboard bindings trumping mine

I'm using the  extension in Firefox to give me Emacs keybindings.  This works in most cases, but not on Stack Exchange.  Your editor is defining its own bindings, and not checking for collisions.  For example, C-g should deactivate mark, but instead it's popping up some sort of image insertion dialog.  Even if it's not possible to check for collisions in JavaScript, could you please provide a mechanism for disabling your accelerators?  It's severely impacting the usability of the site.


How to get apache to send a 404 based on no matching VirtualHost section (based on ServerName) being found?

I am rebuilding an old server.  Only one of the five old sites need to go live and all five of the old sites point to the same IP address.  Unfortunately any time a request is made for one of the old sites via their own unique domain names they are passed the pages from the one site that I'm trying to make live.  I would just like the old sites to display a 404 instead of the one site that I'm actually trying to make live.  As an example:   Site 1 (192.168.0.1) [www.first.com] Site 2 (192.168.0.1) [www.second.com] Site 3 (192.168.0.1) [www.third.com]   I want to move site 1 live again.  So I turned on apache on the machine with the IP address of 192.168.0.1, with all of site 1's files in the /var/www directory.  When I browse to 192.168.0.1 or www.first.com I correctly see site 1. When I browse to www.second.com and www.third.com I also receive site 1 which is the problem.  Is there a way I can 404 any request which comes in without www.first.com?  Here is my sites-available:  NameVirtualHost *:80  LogFormat "%h %l %u %t \"%r\" %>s %b" common  <Files ~ "^\.ht">     Order allow,deny     Deny from all     Satisfy All </Files>  <Directory />   Order Deny,Allow   Deny from all   Options None   AllowOverride None   Options None </Directory>  <Directory /var/www>   Order Allow,Deny   Allow from all </Directory>  <VirtualHost *:80>         ServerName first.com         ServerAlias www.first.com         DocumentRoot /var/www         ErrorLog /var/log/first.com.err         CustomLog /var/log/first.com.log common </VirtualHost>  <VirtualHost _default_:*>         ServerName unknown         DocumentRoot /var/www_404 </VirtualHost>


I am having a hard time wrapping the exponential map around my head. So if $G$ is a Lie group we have this map : $exp : T_eG \rightarrow G $ My understanding of lie groups is that they represent stuff like rotations. So if I take $G=O(n)$ the rotations, then I know that $T_{I_n}O(n) = \text{skew symmetric matrices}$. So I take one skew symmetric matrix $S$ which as I understand it somehow represents an infinitesimal rotation. Then $exp(tS)$ is a curve for which the elements are rotations of $O(n)$. But what do these element mean? How to think intuitively about what this exponential map actually is?  Edit :  Sorry, but I don't see how the linked answers tell me how to think about the curve $\gamma(t)=exp(tX)$, and neither did OP since apparently they were not accepted...


Why is uniform prior on log(x) equal to 1/x prior on x?

I'm trying to understand Jeffreys prior. One application is for 'scale' variables like the standard deviation $\sigma$ (or its square, the variance $\sigma^2$) of Gaussian distributions. It is often said that using a uniform prior over $\sigma$ is not really non-informative and instead one should either:   Use instead $\ln \sigma$ as the free parameter, with a uniform prior (this is often called a log-uniform prior) Or keep using $\sigma$ as the free parameter but use $1/\sigma$ as the prior (which is not uniform).   Why are the above two methods/priors equivalent? I feel it has something to do with the fact that the derivative of ln $\sigma$ is $1/\sigma$ but I can't take the next step.   Also, why does this even matter, in simple language with minimal jargon? I see all these complicated explanations online involving the Fisher information matrix but in the end all I see is that the above log-uniform or $1/\sigma$ priors preferentially weight lower values of $\sigma$ more highly. Why? If possible, a simple analytic example or python snippet would be very helpful.


How to divide the money based on the below conditions?

Two cheeky thieves have collectively decided to rob a bank.  They have carefully counted a total of exactly $100$ dollars in the bank vault. Now they must decide how to divide the booty. But there is one problem: the thieves have only M($0\le M \le 100)$ minutes to leave the bank before the police arrives. Also, the more time they spend in the vault, the less amount could carry away from the bank. Formally speaking, they can get away with all of the billion dollars right now, but after t minutes they can carry away only $100 * p^t$ dollars, where $0 \le p \le 1$, and at t = M, they get arrested and lose all the money. They will not leave the vault until a decision on how to divide the money has been made.  The money division process proceeds in the following way: at the beginning of each minute starting from the 1st (that is, t = 0), one of them proposes his own way to divide the booty. If his colleague agrees, they leave the bank with pockets filled with the proposed amounts of dollars. If not, the other one proposes his way at the next minute etc. To escape arrest, they can only propose plans till the beginning of the Mth minute (i.e., till t = M-1). Each thief wants to maximize his earnings, but if there are two plans with the same amounts for him, he would choose the one which leads to a larger total amount of stolen dollars.   What will be the final division of money, if each thief chooses the optimal way for himself?


Help with 200k record limit for SOQL query (query selectivity error)

We are experiencing an issue around an insert and update for Opportunity Line Items. When creating/updating the OLI, a class is called to creates/updates records on a custom object. The error message is received because a query is run on the custom object and the custom object has over 200k records.  The code was created by a consulting firm and we don't have any devs to help us fix this. Was wondering if this is a quick fix that we could handle with our very limited knowledge of APEX or would we require someone to come in?  Here is the error message:  execution of AfterInsert caused by: System.QueryException: Non-selective query against large object type (more than 200000 rows). Consider an indexed filter or contact salesforce.com about custom indexing. Even if a field is indexed a filter might still not be selective when: 1. The filter value includes null (for instance binding with a list that contains null) 2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times) Class.AutoScheduling.CreateSchedules: line 206, column 1 Trigger.OpportunityLineItemTrigger: line 46, column 1  Here is the part of class containing the SOQL query.          String theQuery = SOQL_SCHEDULE_QUERY_PT1;     for (AutoScheduler_Mapping__c s : theCustomSettingMapping.values()) {         //v1.1 - Check to make sure the field isn't contained in the mandatory fields         // so taht we prevent duplicate field errors         if (!theOppScheduleSet.contains(s.Opportunity_Line_Item_Schedule_Field__c.toLowerCase())) {             theQuery += ', ' + s.Opportunity_Line_Item_Schedule_Field__c;         }     }   Thanks.


Atime value changing only once after file creation

I've mounted disk with explicit given value - atime:  mount -o mount -o atime /dev/disk1 /myDisk   then I've created a file by  touch file_A   after this operation stat output looks like that:  Access: 2013-08-30 11:38:48.141970758 +0200 Modify: 2013-08-30 11:38:48.141970758 +0200 Change: 2013-08-30 11:38:48.141970758 +0200   after cat /myDisk/file_A stat output changes but only once:      Access: 2013-08-30 11:39:11.141970758 +0200     Modify: 2013-08-30 11:38:48.141970758 +0200     Change: 2013-08-30 11:38:48.141970758 +0200   and then doing cat multiple times doesn't change Access time value at all. What's wrong with that? Where this behavior coming from? I would expect that access time will change after every single cat operation on this file. Why it shows only the first access?  (Mounting disk with noatime option causes another behavior, any of cat's changes access time in stat. Still remains equal to modify and change)


How can fix null pointer exeption android problem?

Why am I getting java.lang.NullPointerException?   package com.example.vinhpt.listviewcoban_dulieucodinh;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast;  public class MainActivity extends AppCompatActivity {      ListView lvThu;     String []arrThu;     ArrayAdapter<String>adapterThu;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         addEvents();         addControls();     }      private void addControls() {         arrThu = getResources().getStringArray(R.array.arrThu);         adapterThu = new ArrayAdapter<String>(                 MainActivity.this,                 android.R.layout.simple_list_item_1,                 arrThu         );         lvThu = (ListView) findViewById(R.id.lvThu);         lvThu.setAdapter(adapterThu);      }      private void addEvents() {         lvThu.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 Toast.makeText(MainActivity.this, arrThu[position],Toast.LENGTH_LONG).show();             }         });     }     }


How do you make an UIPickerView component wrap around?

I would like to show a set of consecutive numbers in a UIPickerView component but have it wrap around like the seconds component of the Clock->Timer application. The only behavior I can enable looks like the hours component of the Timer application, where you can scroll in only one direction.


I would like to see which files are in my jar File. I've found out that I need to use java -jar  on my CentOS VM. But how do I add the parameters tf.  At the end I have something like: java -jar "MyJarFile.jar" -tf.  When I do it like that the parameters are getting ignored..


Which one is the correct (or more commonly used) form: "3-month retreat" or "3-months retreat"?  How about "3-day" vs. "3-days" and "3-week" vs. "3-weeks" in the same context? (This is retreat as in meditation retreat and for U.S. English.)


How to validate a number with preceding zeros with regex

I have the following rule:  Don't allow numbers of any sequence with 4 or more 0s at the beginning.  So this number:  0000438967   will fail validation (4 zeros)  But this number:  0004389678 (3 zeros)  Will pass validation.  the reason for this question was I needed verification on whether I was doing it correctly as, when checking in online Regex validators, I was getting mixed verification results. I know it sounds like a simple question but verification from others is important.  thanks Russ


Standardization (or normalization?) before PCA (vegetation soil cover and environmental variables)

The soil cover percentages of some plant species have been measured in a number of plots between control and treatment. In the same plots also some environmental variables have been measured. I am brand new of statistics but I need to run a PCA with these vegetation soil cover data for some plant species (ranging from 0 to 100) and other environmental variables that are expressed at different scales and with different units. In order to standardize data, I started calculating z score but I noticed that it seems to be not satisfying since for a species that has high values of soil cover in many plots z score seem to flatten the differences among plots. Differently, with species that are observed in few plots the z score values are very high in the few cases in which the species is present even if with low soil cover values. I am afraid that this would make poorly represented species weight more than other species that are more represented in the plots when running the PCA. I would like to know if there is a way to analyze the relation between the aforementioned variables through a PCA. Sorry if the issue is not clear. In the case I can provide a more precise explanation. Thanks in advance


What is the wattage of the Death Star's superlaser?

A question on /r/askscience talks about how big a nuke would have to be to . A question here on StackExchange talks about whether or not the Death Star could  due to the planetary shields around it (from the EU/Legends).  Just how strong was the Death Star's superlaser, in terms of of tonnes of watts?   I'm guessing there is no exact number, but if we know that the Death Star destroyed Alderaan (that should be fairly easy to calculate using the formula for gravitational binding energy of a spherical mass) and if we assume it could have destroyed Coruscant, how strong would its laser need to be?  EDIT: I suppose I wasn't clear in my question, I wasn't asking for Wookieepedia entries on how powerful the superlaser was, I was asking based on the fact that it could destroy a planet and overwhelm planetary shields, how strong would the laser have to be.


Sentence:  He helped hone President Trump's message of law and order and America first during the 2016 election, work that he continued as an adviser to the president after the election. Source：  It seems two verbs in a sentence. Is it correct?


Placement of question mark for a question quoting a question

Suppose I am writing to a friend, asking if he remembers a certain question I asked him.  Do any of the following sentences correctly use the question mark?  Do you remember when I asked you "do you know the time"? Do you remember when I asked you "do you know the time?" Do you remember when I asked you "do you know the time?"?  Less specifically, what is the general rule that can be applied to such a situation?


if/else statement inside a switch statement

I am working on a simple ATM program and I am attempting to use an if/else statement to either stay in or exit a loop while inside a switch statement.  Here is my code so far:                  while(continues == true)                 {                       System.out.println("Please select one of the following:\r\n"                             + "1 - Deposit\r\n"                             + "2 - Withdrawal\r\n"                             + "3 - Check Balance\r\n"                             + "4 - Log Out");                      accountChoice = menuChoice.nextByte();                     switch(accountChoice)                     {                         case 1:                             System.out.println("How much would you like to Deposit?");                             depositAmt = deposit.nextDouble();                             bob.deposit(depositAmt);                             System.out.println("Thank you, your current balance "                                     + " is $" + bob.getBalance());                             System.out.println("Do you want to make another "                                     + "transaction?");                             yesNo = yN.next();                             if(yesNo == "Y" || yesNo == "y")                             {                                 System.out.println("You will make another transaction");                                 continues = true;                                 break;                             }                             else                             {                                 System.out.println("You will not make another transaction");                                 continues = false;                                 break;                             }                         case 2:                             System.out.println("You chose Withdrawal");                             break;                         case 3:                             System.out.println("You chose Check Balance");                             break;                         case 4:                             System.out.println("You chose Log Out");                             continues = false;                             break;                     }// end switch                 }// end while loop   My output is "You will not make another transaction" followed by my program ending regardless of what I actually enter. My problem seems to be that the else statement is always picked, but I do not know why.  Any help would be greatly appreciated.


Why isn't the gamma function defined so that $\Gamma(n) = n! $?

As a physics student, I have occasionally run across the gamma function  $$\Gamma(n) \equiv \int_0^{\infty}t^{n-1}e^{-t} \textrm{d}t = (n-1)!$$  when we want to generalize the concept of a factorial.  Why not define the gamma function so that   $$\Gamma(n) = n!$$  instead?  I realize either definition is equally good, but if someone were going to ask me to choose one, I would choose the second option.  Are there some areas of mathematics where the accepted definition looks more natural?  Are there some formulas that work out more cleanly with the accepted definition?


Why, in Beamer, letters written in math mode look as written in normal mode

I'm making a presentation with beamer and have noticed that letters written in math mode look exactly the same as letters written in normal mode; in other words $K$ looks in the PDF exactly like K, while when you write a paper using, for example, article letters in math mode look italicized. Why is this happening? In case you wonder, my preamble is this:  \documentclass{beamer}  \usetheme{AnnArbor}   \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{amssymb} \usepackage{amsthm} \usepackage{placeins} \usepackage{amsmath} \usepackage{amscd} \usepackage{graphicx}  \newtheorem{defi}{Definici\'on} \newtheorem{ejem}{Ejemplo} \newtheorem{teo}{Teorema}    Thanks for the help.


Sometimes I want to sort stuff, but not the header. So, for example, when I list loaded modules in Apache, there is a 1-line header that gets included in the sort:   $ /usr/local/apache2/bin/apachectl -M | sort   alias_module (shared)  asis_module (static)  cache_disk_module (static)  cache_module (static)  core_module (static)  data_module (static)  env_module (shared)  ext_filter_module (static)  file_cache_module (static)  filter_module (shared)  headers_module (shared)  heartbeat_module (static)  heartmonitor_module (static)  http_module (static)  include_module (static)  info_module (static) Loaded Modules:  log_config_module (shared)  macro_module (static)  mime_module (shared)  mpm_event_module (static)  ratelimit_module (static)  reqtimeout_module (shared)  setenvif_module (shared)  so_module (static)  ssl_module (static)  status_module (shared)  substitute_module (static)  unixd_module (static)  version_module (shared)  watchdog_module (static)   I tried using the -b option, but that had no effect. In any case, ignoring leading spaces would just be a workaround anyway. What I really want to do is exclude N lines of header from the sort. How can I do that?


Unable to set proper permission in my centOs6

I am trying to setup WordPress on CentOs6 for the first time and facing issue with proper file permission. I am using Linode VPS hosting and have chosen centOS6 as my OS.I am able to install WordPress at following location  /var/www/html/wordpress   As per WordPress doc Wordpress folder should have 755 permission.I have cross checked using WinSCP, and folder permission has been set as 755  But still while I am trying to update / create something new inside my WordPress installation, I am getting an error indicating that it is not able to create directory.  I have noticed one more issue, there is an .htaccess file inside wordpress folder and its permission are also 755, but still Wordpress says     If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file.   It seems that there is something wrong with file permission but being new to Linux and its file permissions, I am not sure what is wrong and how it can be fixed  can any one suggest me where I am doing wrong


Why can't I put a load between hot and the ground line?

Normally the load goes between hot and neutral line.  Since neutral is grounded why can't I put a load between hot and the ground line?


Evaluating the limit $\lim_{n\to\infty} \left[ \frac{n}{n^2+1}+ \frac{n}{n^2+2^2} + \ldots + \frac{n}{n^2+n^2} \right]$

Evaluating the limit $\displaystyle \lim_{n\to\infty} \left[  \frac{n}{n^2+1}+ \frac{n}{n^2+2^2} + \ldots + \frac{n}{n^2+n^2} \right]$  I have a question about the following solution:  We may write it in the form:  $$ \frac{1}{n} \left[ \frac{1}{1+(\frac{1}{n})^2} + \ldots + \frac{1}{1+(\frac{n}{n})^2} \right] $$  Somehow I need to figure out that the limit is actually the Riemann sum of $\frac{1}{1 + x^2}$ on $[0,1]$ for $\pi = 0 < \frac{1}{n} < \ldots < \frac{n}{n}$.  Can you explain to me to reach this conclusion?


Possible to remove section number and page number from TOC?

I would very much like that the the appendix sections of the Table of Contents doesn't have a section numbers, dots, and page numbers. If I do the following  \documentclass{article} \usepackage{tocloft} \addtocontents{toc}{\cftpagenumbersoff{section}} \renewcommand{\cftdot}{} \begin{document} \tableofcontents \newpage \section{Appendix} \section*{Another Letter} \addcontentsline{toc}{section}{Another Letter} \end{document}   then the section "Another Letter" is left aligned, so it doesn't look like the  others.  Question  Is it possible to have "Another Letter" styled the same way as normal TOC entries, but just without section number, dots, and page number?


How can I run brew upgrade automatically on a daily schedule?


Service crashes when using AppleScript to click menu bar icon

The following AppleScript code clicks the WiFi icon found in the menu bar :  tell application "System Events" to tell process "SystemUIServer" to tell (menu bar item 1 of menu bar 1) to click   Please complete the following steps to reproduce the bug:   In Automator.app, click File → New → Service. Drag a Run AppleScript action to the workflow. Paste the above line of code into the AppleScript body. Save and title the Service. Run the Service.   The WiFi icon is never clicked, and I am instead presented with the following (painfully ambiguous) error message:    Observations about this bug:   The code works properly when compiled and tested in Script Editor or Automator. The Service works properly when the Service is triggered from within Automator (i.e., when the the frontmost application is Automator). The bug persists no matter which menu bar icon is specified. Adding administrator privileges does not solve the issue: do shell script "osascript -e 'tell application \"System Events\" to tell process \"SystemUIServer\" to tell (menu bar item 1 of menu bar 1) to click'" password "thePassword" with administrator privileges     Do you know what might cause this conflict?  Does a workaround exist, so that a menu bar icon can indeed be clicked by an AppleScript Service?    OS X El Capitan, version 10.11.6.


"Being myself of the feminine gender...." Gender ? Or sex?

From the section of letters of a woman's magazine:      "Being myself of the feminine gender, I suppose..."      Can we say a person is of "the feminine gender" ? Shouldn't we say "the feminine sex"?  Or "the female sex?"  Or "Being myself a woman...?"  To quote the whole sentence:     "Being myself of the feminine gender, I suppose I should be favorably disposed towards any proposal which would place women on an equal footing with men."


One form of Jensen's inequality is     If $X$ is a random variable and $g$ is a convex function, then   $\mathbb{E}(g(X))\geq g(\mathbb{E}(X))$.   Just out of curiosity, when do we have equality? If and only if $g$ is constant?


Why are badges hidden in user cards when the account is suspended?

For suspended users, badges are not shown in their user cards at all. They only show "1" with their avatars and usernames, as if they are new users.  Why is this?


phpmyadmin 404 error on fresh ubuntu 12.04 install

I regularly set up Virtualbox ubuntu setups to run as local webservers. I have set these up several times and never had an issue. However, something has changed:  1)VB guest additions no longer allow me to copy and paste (I'll worry about that later)  2)More importantly phpmyadmin no longer works as installed - Initially going to localhost/phpmyadmin gave a message that the page could not be found. So I have followed some instructions which told me to do the following in var/www:  sudo ln -s /usr/share/phpmyadmin phpmyadmin   which has created a phpmyadmin directory in /var/www but now I get an error saying:      the mysqli extension is missing.   If I run phpinfo mysql and mysqli are listed.  All I have done so far is   sudo apt-get update   sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install mysql-server   and   sudo apt-get install phpmyadmin    I found a post of a similar question which suggested I should do   sudo apt-get install php5-mysql   (I've done this) and edit php.ini and uncomment the line:  extension=mysqli.so   This is not there, so I tried adding it but no joy. I have restarted apache and still no phpmyadmin.  I'm running a windows 7 machine and the guest os is ubuntu 12.04


Run Time Error on Java: "Null Pointer Exception"

I am getting this run time error which says there is a null pointer exception. I am just a beginner at Java and don't understand what this means. Error message is as follows:  Exception in thread "main" java.lang.NullPointerException at MyLongArray.insert(MyLongArray.java:26) at MyLongArray.main(MyLongArray.java:69)  import java.util.*;  public class MyLongArray {     private long a[];     private int nElems;          public MyLongArray(int size)     {                  long[] a = new long[size];                  nElems = a.length;     }     public int find(long searchKey) {         int m =0;         for(int i=0; i < nElems; i++)             if(searchKey == a[i])                 m = i;         return m;     }     public void insert(long value) {         @SuppressWarnings("resource")         Scanner  sc = new Scanner(System.in);         System.out.print("At what index do you want to insert? "); int i = sc.nextInt();             a[i] = value;              }     public long getElem(int index) {         return a[index];     }     public boolean delete(long value) {         long[] temp = new long[nElems];         int f = 0;         int o = 0;         for(int i=0; i < nElems; i++)         {             if(value != a[i])             {                 temp[o++] = a[i];             }             else                 f = 1;                          }                  for(int j=0; j < nElems; j++)             a[j] = temp[j];                  for(int i=0; i < nElems; i++)             System.out.print(a[i] + " ");                  if (f==1)             return true;         else             return false;                  }     public void display()      {         for(int i =0; i < nElems; i++)             System.out.print(a[i] + " ");     }           public static void main(String[] args)     {         MyLongArray m = new MyLongArray(5);         m.insert(5);         m.find(21);         m.getElem(2);         m.delete(3);         m.display();          }         }


How many unique n-tuples add to integer m?

(Taken and generalized from COMC 2018 B4) How many tuples exist in the form $(x_1, x_2,..., x_n)$, where all x are positive integers so that the sum of $x_1$ to $x_n$ is equal to some number m? In the specific question, n=5, m=10. The question goes as following: Determine the number of 5-tuples of integers $(x_1, x_2, x_3, x_4, x_5)$ such that $x_i ≥ i$ for $1 ≤ i ≤ 5$ and the sum of $x_1, x_2, x_3, x_4$, and $x_5$ is 25. The solution shown on the official COMC answers says to draw 10+5-1=14 boxes, crossing out 5-1=4 boxes, such that each element of the tuple is equal to the number of boxes before each of the crossed-out boxes. Can someone explain the solution to me and generalize it? (the actual solution is 14 C 4 = 1001) Yes, there is a similar question , but the sum does not have to be unique


Absolutely convergent, conditionally convergent or divergent series

Show if the following series $$ \sum_{n=2}^{\infty}\frac{(-1)^n}{(-1)^n + n} $$ are absolutely convergent, conditionally convergent or divergent. I think I succeeded in proving that it is NOT absolutely convergent. My attempt: $$ \sum_{n=2}^{\infty}\left|\frac{(-1)^n}{(-1)^n + n}\right| = \sum_{n=2}^{\infty}\frac{(-1)^n}{\left|(-1)^n + n\right|} $$ Then we have $$ \lim_{n\to\infty}\frac{\frac{(-1)^n}{\left|(-1)^n + n\right|}}{\frac{1}{n}} = \lim_{n\to\infty}\frac{n}{(-1)^n+n} = 1 $$ Therefore $$ \sum_{n=2}^{\infty}\frac{(-1)^n}{\left|(-1)^n + n\right|}\ \text{is convergent}\ <=> \sum_{n=2}^{\infty}\frac{1}{n}\ \text{is convergent.}\ $$ The last series are NOT convergent, so our series are NOT absolutely convergent. I'm still stuck on proving if it is conditionally convergent or divergent. intuitively, I think It's divergent, but I need a formal proof. It crossed my mind that I can show $a_n = \frac{1}{(-1)^n +n}$ is NOT monotonously decreasing so It's divergent(Leibniz). But I think Leibniz's theorem doesn't work in this direction. So I'm still stuck. Looking forward for any ideas!


What is the best backup strategy for macbook pro laptop?

I have a lot of data on my macbook pro retina laptop and i am looking for the best backup strategy.  I have previously had a windows desktop with an external harddrive connected all of the time and a backup program that copied to the external harddrive incrementally.  I am trying to figure out the best backup strategy given its a laptop that i move around with and travel with alot (so can't really have a external hard drive always connected)  What is the recommended backup solution for map laptops?


How can I find out the very first time linux machine start up?

When we use uptime, it only shown us the up-time of ours machine since it started from the last time it turning on/shutdown/reboot.  But, what if I want to get the time when our machine started from the very first time when it installed?  Do Linux own this tools? Or any clues about how I can find out the answer of it?


I am trying to determine if a site collection exists, but the SPSite.Exists method always seems to return false regardless if the site collection exists or not.  Snipp:  bool exists; Uri uri = new Uri(mySite);  exists = SPSite.Exists(uri); //exists is always false return exists;   In this case mySite == https...mysite.com/mySupposedSiteCollection. I can browse to the URL described, so why then does the method always return false? Am I trying to check the site collection incorrectly?    UPDATE  Please note that this is being called from a C# console application and is not a solution that is being deployed to the farm. Possibly a limitation i'm running into?


I recently found the collections tab in the cartel market and was surprised that there was a mega list of items that you can get from the cartel market.  About 2 years ago i bought a whole republic trooper set from the cartel market and i see now that i can 'unlock' it for other characters  the price is about half of what i paid, but if i unlock it on say my trooper, will it also be unlocked on my assassin then?  And if its unlocked and i want more copies, are these free or do they also require a fee?


MariaDB: select all fields but one field is modified

i am using MariaDB.  i have a table with 50 columns.  i want to create a simple query like SELECT * FROM myTable but the id column is a binary UUID which needs converting into human readable format, like this: SELECT LOWER(CONCAT(   SUBSTR(HEX(id), 1, 8), '-',   SUBSTR(HEX(id), 9, 4), '-',   SUBSTR(HEX(id), 13, 4), '-',   SUBSTR(HEX(id), 17, 4), '-',   SUBSTR(HEX(id), 21) )) FROM myTable  the problem is, AFAIK, i now have to explicitly name each subsequent 49 columns if i want to get them all.  now i know this is dumb, and i'm sure there is a correct way to do this but i can't find how to do what i want: simply get all 50 columns with this ONE modified SELECT.  it striked me a something that is doable, regardless of how or which column needs modifying, but i haven't been able to find such information. if this were just mySQL, i could use the built-in commands for managing UUIDs, but MariaDB doesn't have those; they didn't make it into the last update as they'd hoped.  :P so how can i build a query that does what i need it to do? EDIT: for the knucklehead that flagged this with 'already answered', READ THE TITLE. I do NOT want to exclude a column, I want to MODIFY one. >_>


Get/use/read external non local JSON from your project

It's been few mounths i've been working on Vue.js, everything is great. But Now i'm dealing with a bigger problem, i've been tryng to solve since too much time :p    There is the problem :   I have a JSON file wich is located at  : /usr/local/bin/JSONTEST/ScrapMonitorFerry_2019-12-02_14-05.json  I also have a project in Vue.js in a different folder :  /usr/local/bin/MyApplication  I would like to access to the JSON file from my application and use some of the data. Even if this JSON is located in an external folder !  Do you guys have any method in mind  to do that ? Is it even possible ? ** **I've found some lead on the web but none of them got me to the wanted outcome :   -using JSONP  -using Vuex  -using Webpack  -using React or Angular   I've been looking for answer for a while, I found at how to get JSON file directly when it's located in the Application folder using Ajax :  $.ajax({ url: 'ScrapMonitorFerry_2019-12-02_14-05.json', dataType: 'json', type: 'get', async: false, //cache: false, success: function(data) {   console.log("**************LA : *************");   console.log(data);   console.log("fin 1er fction");    $(data.info).each(function(index,value) {   console.log("on affiche value :  ");   console.log(value.website_name);         });      } });   I also find out how to acces to a JSON file located in a different local folder :  using fetch method :   "use strict"; var myInit= {   method: 'GET',   headers: {     'Content-Type': 'application/json'   },   mode:'cors',   cache: 'default' };  let myRequest = new Request("./data/ScrapMonitorFerry_2019-12-02_14-05.json",myInit);  fetch(myRequest)   .then(function(resp) {     return resp.json();      })     .then(function(data) {     console.log(data);     });    Thanks for all the answers and lead you guys might right,  léo


I have a multiple-entry Schengen visa issued by Switzerland, can I come back home and then go to France?

I have a multiple entry Schengen business visa issued by Switzerland which will expire in July. Can I travel to Switzerland next week for work and then travel again to France for work at the beginning of July for a week? Or do I have to apply for another visa at the French Consulate?


If $(a,b)$, $(a,y)$ and $(b,x)$ = $1$, show that $(ab, ax + by)$ = $1$ I tried to do this by showing that $(a,by)$=$1$ and $(b,ax)$=$1$. But then I got completely stuck. I tried to use Bezout's theorem, but ended up with nothing.


Find the limit of the sequence $x_{n+1}=x_n-x_n^{n+1}$ where $0<x_1<1$.   I think zero is the limit but how do I  prove that? I prove that sequence is monotone decreasing and bounded so convergent.


Why $a\equiv b\pmod n$ implies $a$ and $b$ have equal remainder when divided by $n$?

How does $a\equiv b\pmod n$ implies $a$ and $b$ have the same remainder when divided by $n$?     I don't understand the huge jump from modular equivalence to having equal remainders.   I see by definition  $a\equiv b\pmod n\,$ implies $n\mid (a-b)\,$ so $\,a-b=nk\,$ so $\,a=b+nk$.     But I do not see how this implies that $a$ and $b$ have the same remainder when divided by $n$.


Solve over the integers the equation $2^n+1=m^2$

I tried to discuss two cases when $m$ is even and odd. By discussing both cases, $m$ must be odd, and by using the fact that every odd perfect square is congruent to $1$ modulo $8$.  It is clear that $n=3$ and $m=3$ is a solution, and it seems that it is the only one? I tried to prove that the equation admits one solution, but I failed.  Can I get some help, and thanks in advance.


I am implementing a USB to UART conversion board with a FT232RQ. What confuses me is the fact that the USB_D+ and USB_D- pins of the package are sequenced in precisely the opposite order as they are on any USB connector. What options do I have to properly route the USB traces? I have come up with the following but I am not really satisfied with any. On the other hand I am at most a beginner so your hints might help clarifying the issue.  use a through-hole USB connector and place the FT232RQ on the opposite side to the connector such that the traces go straight use a SMD connector and place the FT232RQ on the opposite side, but route the traces through vias place the components on the same side and do some crazy trace gymnastics (having to match their length).  Additionally, being a quad-flat package, there is no possibility of routing the USB traces "under" the package. Is this even a "real" problem? The confusion might be fully due to my lack of experience in the field. Thanks you!


Recovering data from a dead computer - Access Denied

So I took the hard-drive from my dead laptop and plugged it into my desktop, and the drive shows up but no other info is available; the occupied space/capacity are unavailable, and of course, Access Denied pops up when I try to open it.  I tried a few softwares after doing some research: StellarDataRecovery, EaseUSPartitionMaster, and TakeOwnershipPro.  The first two could not find any recoverable information, and TakeOwnershipPro was able to see the folder names in the drive, but could not let me take ownership of the folders.  I tried to change the permissions on the drive, but the following is confusing   It is saying the administrator has full control but yet I also need read permission to view the properties.


Increasing Enhancement Bonus on Specific Magic Weapons

Is there a way within the rules of Dungeons and Dragons 3.5 Edition to increase the enhancement bonus on specific magic weapons. For example if my character had a  (a +2 heavy mace with some extra magical abilities) would there be any way for it to be improved so that it would be a +3 heavy mace with the same magical capabilities?


Please suggest a way to post to salesforce rest resource without using the username and password as the authentication

I'm trying to post to a Salesforce Rest Resource from a java console app. Currently I'm exposing it as a public resource via custom portals.  I'm looking for suggestions for a way to implement the authentication without passing username, password. I have checked OAuth flows but I believe all of them require a callback implementation to read the tokens. It will be helpful if you can suggest a way to authorize in an implicit manner.


Where can I stay once I get a private visa invitation from my Russian friend

When my Russian friend invites me to Russia, will he have to specify that I (the person coming to visit) will have to stay at his personal residence? Can that be specified as elsewhere (such as an Airbnb location)?  In the scenario where he has to specify his address, am I required to stay at my friends place once I get the private visa? or will I be able to choose a specific place from Airbnb?  I'm from France if that changes anything


How to get my external IP address (over NAT) from the Windows command-line?

The Windows  command can only show me the parameters from the Ethernet interfaces from my machine (even with the ipconfig /all argument). It can show detailed information about the interface, but it will never show me my external IP address over a  network.    However, there are several websites, such as  that can get and show my external IP address. So I'm wondering, whether it is possible to get this value externally? Should I expect that there is some way to get this information from a command line at my local machine...  I need to get this value to log on an application that I'm doing with . Is there a way to do this, from a cmd on Windows?


I generated Excel with Data from BD, All is correct a except the type float.  In my BD I have "3.2" but in my Excell I have -> 3,20000004768372      try {          XSSFSheet sheet = workbook.createSheet(eyelash);         XSSFDataFormat format = workbook.createDataFormat();         style.setDataFormat(format.getFormat("Text")); //I need type text for others inputs in my Excel         styleRow.setDataFormat(format.getFormat("Text"));         String[] header = {"width"};         XSSFRow rowhead = sheet.createRow((short) 0);         XSSFCell cell;              int myRowData = 1;             XSSFRow row = sheet.createRow((short) myRowData);              List<MyClass> list = this.select();              for (int i = 0; i < list.size(); i++) {                  row.createCell(0).setCellValue(list.get(i).getWidth());                  myRowData++;                 row = sheet.createRow((short) myRowData);          }      } catch (Exception ex) {}   CLASS JAVA->  public class MyClass{   private float width;   public MyClass(){}   public MyClass(float width){    width=width;  }  public void setWidth(float width) {     this.width= width; }   public Float getWidth() {     return width; }    }  I can't use round because else never know width real.


How to achieve same heights for overline above 'a' and 'b'?

In math mode, I tried to type in $$\overline{a}+\overline{b}$$, and this happened:     Obviously, the lines over a and b look different. How do I fix this?


My GPA of bachelor is about 3.0, and I just want to know how much it would approximately be in German Grade? Would it be lower than 2.7 in German Grade? I have read other questions on this website, but none of them could help me, can you simply tell me how to convert GPA to German grading system?


Combinatorial proof of $\sum_{i = 0}^{n} \binom{i}{r - 1} = \binom{n + 1}{r}$ and then use result to find a formula for $1^2 + 2^2 + \ldots + n^2$

a) Give a combinatorial proof that for every $n \geq r \geq 1$ that:  $$\sum_{i = 0}^{n} \binom{i}{r - 1} = \binom{n + 1}{r}$$  And use (a) to concoct a formula for $1^2 + 2^2 + ... + n^2$


packed vs unpacked vectors in system verilog

Looking at some code I'm maintaining in System Verilog I see some signals that are defined like this:  node [range_hi:range_lo]x;   and others that are defined like this:  node y[range_hi:range_lo];   I understand that x is defined as packed, while y is defined as unpacked.  However, I have no idea what that means.  What is the difference between packed and unpacked vectors in System Verilog?  Edit: Responding to @Empi's answer, why should a hardware designer who's writing in SV care about the internal representation of the array?  Are there any times when I shouldn't or can't use packed signals?


Do I need UK Transit Visa from India to USA with valid US Visa

I will be travelling to Phoenix, USA via London with valid US Visa and onwards journey boarding pass with Indian Passport. I have 18+ hours layover in London. I want to know How likely is to get the 24 hours transit in London. Its a long time and I don't want just to waste it by staying at airport. I want to go to hotel to have some rest and then probably visit some places.  I can see I come under "Transit without Visa concession" but I heard it depends on visa officer to allow to go out or deny. If they won't allow Will I get visa on arrival.   Also I tried to apply for Transit Visa. Its asking me Whether you want to go for sight seeing or not. I said Yes. Its saying me you have to apply for different visa. If I am going out of airport then its natural I will go for sightseeing? I just can't close my eyes and roam around. What other reasons would be there to go out? What do you guys suggest? What to do? I am totally confused.  For those of you who are saying its already answered before. Please read question carefully. Here I am trying to get the exact meaning of Visitor in Transit Visa. That's never answered here in this community.


Why is there no apparent clone or fork in simple bash command and how it's done?

Consider the following (with sh being /bin/dash):  $ strace -e trace=process sh -c 'grep "^Pid:" /proc/self/status /proc/$$/status' execve("/bin/sh", ["sh", "-c", "grep \"^Pid:\" /proc/self/status /"...], [/* 47 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7fcc8b661540) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fcc8b661810) = 24865 wait4(-1, /proc/self/status:Pid:    24865 /proc/24864/status:Pid: 24864 [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24865 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24865, si_uid=1000, si_status=0, si_utime=0, si_stime=0} --- exit_group(0)                           = ? +++ exited with 0 +++   There's nothing unusual, grep replaced a forked process (here done via clone()) from main shell process. So far so good.  Now with bash 4.4:  $ strace -e trace=process bash -c 'grep "^Pid:" /proc/self/status /proc/$$/status' execve("/bin/bash", ["bash", "-c", "grep \"^Pid:\" /proc/self/status /"...], [/* 47 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f8416b88740) = 0 execve("/bin/grep", ["grep", "^Pid:", "/proc/self/status", "/proc/25798/status"], [/* 47 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f8113358b80) = 0 /proc/self/status:Pid:  25798 /proc/25798/status:Pid: 25798 exit_group(0)                           = ? +++ exited with 0 +++   Here what's apparent is that grep assumes pid of the shell process and no apparent fork() or clone() call. Question is, then, how does bash achieve such acrobatics without either of the calls ?   Note, however, that clone() syscalls appears if the command contains shell redirection, such as df > /dev/null


How check,what compiler used for compiling of pdf document

I want to change some package,but in the beginning of the package i need in checking,what compiler use. For example,if i use latex,i want to require one packages,for lualatex i want to require other packages,and for any other compiler i want to require other packages,which i not require for latex and lualatex. Give me please small example,which show,how to check latex,lualatex and any other compilers. Thanks everybody for the help.


How does eigenvalues measure variance along the principal components in PCA?

I understand that eigenvalues measure variance along the principal components.  Questions   How are eigenvalues and variance same for PCA?  What is the intuition behind this being the same?  What is the mathematical proof behind this theory?


Unobtrusive JavaScript:  at the top or the bottom of the HTML code?

I've recently read the Yahoo manifesto . They recommend to put the JavaScript inclusion at the bottom of the HTML code when we can.  But where exactly and when?  Should we put it before closing </html> or after ? And above all, when should we still put it in the <head> section?


Why would anybody edit my answer to change links to cppreference?

Today my answer was edited and a link from  was changed to cppreference.com. The edit comment was "use better reference".  I read this , which was provided by the editor.    The problem is that the word "better" is extremely relative. Better for someone is worse for another. I absolutely don't care about cppreference.com and cplusplus.com, but changing links to another website, just because you prefer that one, is wrong. I don't think one is better than the other, but I edited it back to cplusplus. People, don't try to push your opinions onto others.  Imagine  is my favorite cpp reference. Why would anybody edit the link to another reference?


All over the net, it is stated that the parametrization of the lemniscate with Cartesian equation $(x^2 + y^2)^2 = 2a^2 (x^2 - y^2)$ is: $$\varphi: t \mapsto \left(\frac{a\sqrt{2}\cos(t)}{1+\sin^2(t)}, \frac{a\sqrt{2}\cos(t)\sin(t)}{1+\sin^2(t)}\right)$$  I don't understand how to get there…  My method is as follows:  I transform the Cartesian equation to polar coördinates, and I find: $$r=a\sqrt{2\cos(2\vartheta)}$$  Then replacing $r$ in $(r\cos(\vartheta), r\sin(\vartheta))$ gives: $$\psi: t \mapsto \left(a\sqrt{2\cos(2t)}\cos(t),a\sqrt{2\cos(2t)}\sin(t) \right)$$  Are these equivalent? (I guess theory says that there must be a certain function which maps $\psi$ into $\varphi$; I can't seem to find which function…)


Combinatorial proof of $\sum_{i=0}^n {{i}\choose{ k}} = {{n+1}\choose{ k+1}}$

It's easy to prove  $\sum_{i=0}^n {{i}\choose{ k}} = {{n+1}\choose{ k+1}}$ by induction with ${{n}\choose{ k}} = {{n-1}\choose{ k-1}} + {{n}\choose{ k-1}}$, but what is its combinatorial proof?


How can the universe expand if there is gravitation?

We live in an expanding universe - so I'm told. But how can that be possible? Everything imaginable is attracted by a bigger thing. So, why can't gravitation stop the expansion of the universe? I know the "Big Bang" theory, but is it possible that the expansion of the universe is caused by the attraction of a bigger object?


What is the physical significance of curl $\nabla\times\boldsymbol{V}$?

What is the physical significance of  $$\nabla\times\boldsymbol{V}~?$$  I mean I read 'curl V represents the rotation of the vector $V$. My question what is it about the term $\nabla\times\boldsymbol{V}$ that it represents the rotation of the vector?


I'm looking to build a simple vase for 3d printing and I'm keen to understand how I can do this.    I've tried the screw modifier, however it appears to be lacking the right level of detail to work properly (I've create a simple shape and then applied several subdivides to it in order to increase the mesh density)  There's bound to be a smart way to achieve this, appreciate any pointers/tips!


CPU Emulation and locking to a specific clock speed

If you had read my other , you'll know I've spent this weekend putting together a 6502 CPU emulator as a programming exercise.  The CPU emulator is mostly complete, and seems to be fairly accurate from my limited testing, however it is running incredibly fast, and I want to throttle it down to the actual clock speed of the machine.  My current test loop is this:      // Just loop infinitely.     while (1 == 1)     {                         CPU.ClockCyclesBeforeNext--;          if (CPU.ClockCyclesBeforeNext <= 0)         {             // Find out how many clock cycles this instruction will take             CPU.ClockCyclesBeforeNext = CPU.OpcodeMapper.Map[CPU.Memory[CPU.PC]].CpuCycles;              // Run the instruction             CPU.ExecuteInstruction(CPU.Memory[CPU.PC]);              // Debugging Info             CPU.DumpDebug();             Console.WriteLine(CPU.OpcodeMapper.Map[CPU.Memory[CPU.PC]].ArgumentLength);              // Move to next instruction             CPU.PC += 1 + CPU.OpcodeMapper.Map[CPU.Memory[CPU.PC]].ArgumentLength;                                                 }     }   As you can tell, each opcode takes a specific amount of time to complete, so I do not run the next instruction until I count down the CPU Cycle clock. This provides proper timing between opcodes, its just that the entire thing runs way to fast.  The targeted CPU speed is 1.79mhz, however I'd like whatever solution to the clock issue to keep the speed at 1.79mhz even as I add complexity, so I don't have to adjust it up.  Any ideas?


I have a content type that has a taxonomy field with two options. If Option A is selected, I want a further taxonomy field with items from Taxonomy X. If Option B is selected, I want another taxonomy field, but with items from Taxonomy Y.   In Drupal 6 I used , which was great. However, there exists no stable D7 version yet, and I need this functionality for a project due this week. The project page even says: "Drupal 7 version (3.x): 7.x-3.x is currently in development. It is a complete rewrite of the module that leverages the new entities system and the States API. Not ready for use on production sites yet." So I feel like I'd be really dumb if I put this on a production site and something broke, when the module project page itself specifically tells me not to.  The other option seems to be , but that's used on a total of 274 sites (compared to the ~18,000 of Conditional Fields).   Are there any other D7-compatible modules that allow forking of field display based on the value of another field? If not, how stable is Field Conditional State? Should I just suck it up and write a module that does what I'm wanting?   Many thanks.


Format USB Flash Drives with command prompt

How can I format ( delete all files ) an USB Flash Drives with the command prompt ?  I have the last version of Windows 10 and my USB Flash Drives is fat32.


I have tried many tutorials but none of them are clear enough. I have also tried installing it using Wine but it won't update and Wine goes gray and stops working.  Does anybody know an easy way to install Minecraft though the Java file without using Wine?


Configuring OS X Firewall to enable SSH/SCP only on the local subnet?

We would like to configure OS X to only allow Remote File Sharing (SCP) from a specific range of internal IP addresses. That way they only accessible when the user is connected via the VPN.  What's the preferred method? Doesn't seem to be doable via the Security & Privacy tab.


Do Chinese citizen need finland transit visa?

I'm a Chinese. I will start from Korea, transit Finland(transit time is about 3 hours) to Germany, Berlin. I already knew I must have Germany visa. Must i have a Finland visa? i just am going to transit in Finland without getting away Finland airport.