I was playing the game with two friends and there were just two cards left on the second day, when my friend decided to use the [Escape!] card which allowed him to Randomize and discard 2 cards.  After this the day ended, we drew the next 12 cards. Then, my friend collected the first noble in line, saying that his last play (from day 2) was not over because he didn´t collect a noble, which is obligatory according to the rules.  Is this allowed?

If there is one noble left in line and you play "fled to England" to discard it (thus, ending the day) do you collect a noble from the new day?


In the first episode of Game of Thrones, a Night's Watchman deserts his patrol after seeing his two comrades killed by White Walkers, is caught (south of the wall), and beheaded.  My question is, how did he escape to the south? I thought the only way south was through a gate that was manned by the Night's watch. But if he made it that far, then surely he had made it to safety anyway, and so could have just reported back from his patrol as he was supposed to.

In S01E01 of Game of Thrones, Eddard passes death sentences on a deserter. In a conversation, the desserter says:     I know I broke my oath, and I'm a deserter. I should have gone back to the wall and warned them, but I saw what I saw.   My understanding is there is only one way to enter Winterfell and it is through the Wall. So how did this guys manage to escape the White Walker without going through/crossing the wall?  Please watch both the videos for the reference:


I've just started learning Blender 2.8 but I'm having trouble with what seems like a glitch.  I have a shoe mesh which I have used knife on to create three stripes so that I can assign materials. I have created a vertex group for all the faces of each stripe.   When I select each individual stripe, the selection is fine, and I can select stripes 1 and 2 together. But when I select stripes 2 and 3, an extra face between the stripes is also selected.  I've tried breaking up this face, deleting it and re-making it, breaking up the adjacent face in the stripe, all kinds of things, but I cannot stop this behaviour from happening! As I'm so new to the software I keep thinking it's something I've done wrong, or neglected.  But I've removed the vertex groups and re-made them (several times) but the same behaviour occurs.

I'm trying to find a way to save selection faces, tried Vertex Group, the issue with Vertex Group is that it adds the faces that are marked by 4 vertices that are added to the Vertex Group, there are some cases were this doesn't apply, the image explains what I mean. So is there a way to save my selected faces, so I don't have to go through the whole process of reselecting them each time I need to do so? If you check the image, I didn't assign the hatched faces to the Vertex Group, still when I select the Vertex Group, they get selected, I understand that they got selected because the four boundary vertices are assigned to the Vertex Group, I need to save only face selection, not vertex selection.


I know that C++ holds memory management internally with a lot of given points, and I know of the delete command to remove dynamically allocated data, and this question, could seem pointless within the fact that it may not ever come to be an issue due to the destruction of variables outside of the scope of the function that is using them, but is it possible to use a function such like delete to remove a variable that the user is no longer putting to use. Like say that you are on a heavily memory depleted piece of hardware, and need to make sure that even something as small as the 4 bytes that an integer normally takes up are given straight back. Is it possible to do this without wrapping the variable inside some function to make the assembler know to remove it immediately? This is in a sense of a point that I don't believe could ever happen, due to the expansion of memory, and the ways that it could be manipulated these days, but it seems as if it may have been an issue before, if I'm not mistaken.  Summary: Is there a way to manage non dynamic data directly, allocate it to the stack, and remove it from the stack through a function call, or is this completely run by the programs internal instructions?  Example:  void foo(){    short int operator;   /*Did what needed to be done with the operator variable***********/   //Pseudo-code     delete operator;    /*Even though it was not allocated dynamically,     and with the use of another function call*/ }

Ignoring programming style and design, is it "safe" to call delete on a variable allocated on the stack?  For example:     int nAmount;    delete &nAmount;   or  class sample { public:     sample();     ~sample() { delete &nAmount;}     int nAmount; }


I am trying to install Microsoft Office 2013 on Ubuntu 12.04 LTS (32-bit). I have downloaded an iso file of said product and installed wine1.4-i386 using the apt-get command on the terminal.  The question is I don't know the steps how to install it. I can't get much tutorials on Internet how MSOffice2013 can be installed on Ubuntu.  If any versions of wine isn't an option, what other options can be used to run Microsoft Office 2013?

I try to install MS office 2013 in Ubuntu 12.10 using Wine. But It says:  error: newer windows version needed.   How Can I fix this error.


There are two pronunciations of "via".   ˈvaɪə ˈviːə   What's the difference?

Over the years, I've heard people say 'v-ē-ə', 'v-ī-ə', and sometimes the 'uh' is an 'ah' sound. (edit- It has come to my attention that 'via' was once a 'wee-ah' from Latin, but I don't feel like this helps my question. If anything, that just makes me wonder why there is that variation in the beginning 'ē' and 'ī'.)  Now, I'm guessing the difference between 'uh' and 'ah' may just be regional, but that doesn't explain the first part of such a teeny word.   This has been driving me nuts for awhile. I've tried online dictionaries, asking English teachers, and they all are the reason (as well as TV and movies) for why I'm still clueless. (As for the English teachers over my years of schooling, all of them agree to disagree with how it is said. I have one teacher saying 'no' to 'vee-uh' and one saying yes to that way and vice versa.) As for the dictionaries, they can mention the two variations but they don't explain why.  (edit)  I guess the reason why I had been confused is because I didn't understand why there was a disagreement about how 'via' is pronounced. Can anyone shine some light on this as well? (I do appreciate the answers I received before I edited my question, but now they are insufficient.)   Is it appropriate to pronounce it both ways or is only one way correct? Also, where did these variations come from? (Via is Latin, yes. However, in Latin, it only had one way of pronouncing it. In English, there are two variants that are questionably debatable, and that is what this question is asking about.)


Noobie here, I found out there was a hidden .android_secure folder in my sd card. However I encounter an error when trying to delete asec files. Could I do it from the computer instead?

I have an Android 9 tablet, rooted by way of Magisk. It has an external SD card mounted as sdfat on /mnt/media_rw/1234-5678 which is mounted on four other mount points, all as type sdcardfs, with some variation in owner and group.  From a terminal window I type ls -al /storage/1234-5678. Lots of files and directories are shown with one error message:  ls: permission denied: .android_secure   I try as root. I get the same result. Using /mnt/media_rw/1234-5678 and root, I can see the entry for .android_secure. I'm told that .android_secure itself is empty.   The external SD card is FAT32.  Anything on it has the same set of permissions.  How is .android_secure different from everything else on the card? Even if .android_secure has different permissions from the other files in the directory, why is that stopping me from displaying the directory entry? I become root and I still can't even display the directory entry for .android_secure. How can that be?   I tried stat. I tried lsattr. Still: permission denied.  I have read  but it doesn't answer my questions:   If I have the permissions needed to list some directory entries, how am I being forbidden to list a specific entry in that directory? How is it ever possible to deny root the ability to list a directory entry?  (And then change the protections on that entry.)   I can accept that the magic filesystem and/or SELinux makes it possible to have different protections on one file.  I just can't understand root being unable to even see what those different protections are.


The description of this badge is: "Answered your own question with score of 3 or more".  It seems that this badge can be earned multiple times, but when I examined many users who have earned it, I found no one had earned it multiple times.  Why doesn't Stack Overflow describe it as "First answered your own question with score of 3 or more"?

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


I am stuck in a seemingly simple but strange thing. I am finding sinks in an area by LiDAR data. after finding the sinks, I want to determine their elongation and for this purpose I use minimum bounding rectangle tool. I have the area and the length of the rectangles, and I divide the area by length to obtain width. after having the width, I divide the length by width. But the problem is that I get a very high number for ELG and it does not look like it. I will attach the pictures .sink

I am generalizing geological map. In the initial step I am dealing with small polygons which should be either deleted, enlarged, aggregated and etc.   Before applying operations mentioned above I would like to start with the shape analysis, such as elongated polygons or more round polygons and so on, as this may be key factor to deal with.   Geological maps have quite complex shapes which should be considered and maintained as much as possible.   Is there any way that identifies the shapes of the polygons based on the geometry?  I am using ArcGIS, Python basically.


I use Blender as a video editor.  After setting up the video I want to process including correct Start and End frames I click "Properties->Render->Animation".  My CPU usage climbs to a range from 20% to 25%. I am running an i7-3770K @ 3.50 GHz with 32 GB Ram. Blender is working on a physical drive, not an ssd. The i7 has 4 cores. With hyper threading that is 8 Hyper threads. I think Blender is running animation on only one core.  When I try to research this topic I get a mixed message.  I can find performance analysis multi core vs single core. I can find a Microsoft demo how the job queue can be executed parallel on a cloud service.  I can find entries that say the Renderer is multi core the rest is not.  But I can not find the settings to enable my animation to be multi core. I assume this is possible since it looks like it is part of the Renderer .  Is there something definitive like an official source on this? How do I set up my Renderer so that It utilizes all (or most) of my machine?

Whenever I render a video using the blender video editor only one core is ever used at any time. I have an 8 core CPU(FX-9590) yet regardless of whether blender is set to auto detect or a fixed 8 threads only one core ever sits at 100% at any given time. The rest of the cores sit and really low usage as if blender is completely ignoring them. I'm running blender 2.77a on Linux. I'm using Theora as the codec with an ogg container and Vorbis audio. How do I get blender to use all my cores?


I currently have only Ubuntu stored on my new SSD, and am looking to add a dual boot to Windows 10.  However, I can't find much online explaining how to do so when Ubuntu was first. I don't really want to go through the hassle of uninstalling Ubuntu, installing Win10, and then reinstalling Ubuntu.  Anyone know a way around this?  Thanks

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


I have the latest edition of ubuntu, formated my pc 1 week ago. I Right clicked on the USB flash partition and I sow the format option. It is not grayed out, I do the format, it shows no files when I open the usb file, but when I click on priorities, it shows 94% full.

In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?


I have a JetBlack M1 Pro Mag Trainer. I use my road bike on it, with slick tires. However it is still pretty noisy.   What are the ways to reduce noise from a magnetic trainer?

I use a trainer at home. It works quiet. But living in an apartment I would like to make it work quieter. What can I do to minimize noise of a trainer?


I need to use allowframebreaks to break my frame which cotains many items, added to it I added th \pause but it does not work with allowframebreaks:  \begin{frame}[allowframebreaks]{title} \begin{itemize}  \item {     text here   }  \begin{figure}    \centering    \includegraphics[width=3cm, height= 3cm]{images/image.png}    \caption{}    \label{}  \end{figure}  \item {     \pause     ext here   }  \framebreak  \item {       text here   }  \end{itemize}  \end{frame}   How can I do combine \pause and allowframebreaks?

My question is closely related to , but slightly different, so that @samcarter's answer to that question doesn't help.   I want to combine the allowframebreaks option with the <+-> option but using the standard way to combine options doesn't achieve this.   Here's an MWE.  The first frame uses allowframebreaks in the standard way, producing two pages.   The second frame tries to combine the two options, implements the \pause command but ignores the allowframebreaks option.     Reversing the order of the two options generates an error.  \documentclass{beamer} \begin{document} \begin{frame}[allowframebreaks]{Title} This is a test  \pause This is a test  \newpage Page 2 \pause  This is a test  \pause  This is a test \end{frame} \begin{frame}[<+->,allowframebreaks]{Title} This is a test  \pause This is a test  \newpage Page 2 \pause  This is a test  \pause  This is a test \end{frame} \end{document}


Let f be a convex and  bounded function, meaning there is a constant $C$, such that $f(x) < C$ for every $x$.  I need to prove that $f$ is a constant function.  Thanks!

How can we show that a bounded and convex function on $\mathbb R$ is constant? Derivatives are of no use since the function does not have to differentiable. I saw an answer here I think a while ago but did not understand it at all.  Since derivatives are useless, we would have to use the definition and somehow show that the function lies between two values which are equal to each other. But I am unable to progress any further.


I m trying to make an animation using keyframes.When I press on "I"and location nd rotation,this error comes up no suitable context info for active keying set. Plz provide a solution in a simple manner.I am new to this,so I need a descriptive answer.I need to know exactly what to do,what to press,where to find.

I have an armature associated with a mesh. In Pose Mode I have oriented the armature the way I want, so I press A to select the entire armature and then I press I to insert keyframes.  I've done this successfully on simple models while following tutorials, but back in my real model I'm getting the following error and I don't understand what context is being looked for.     No suitable context info for active keying set   What constitutes a "context" in Pose mode?  What should I be looking for in my model structure that is leading to such an error?


In the United States, a white sleeveless shirt is often referred to as a "wife-beater".  Typically I try to avoid using "wife-beater" due to its negative connotation. I've tried using a few different terms in the past, but each felt a bit too broad or generalized.   Tank Top: Can refer to , , or . Comes in a variety different , , and . Singlets: This term is most commonly used in Australia. In the U.S., I've typically heard it used when referring to one-piece spandex . Sleeveless Shirt: Describes     . Undershirt: Available as  or  shirts for both  and . Typically the most common alternative I've heard.   Is there a more appropriate term I can use in place of wifebeater here in the United States?    Note: This question is asking what alternative terminology can be used when referring to a "wife-beater". This question is not asking why the term is used or where it originated from. For that, see:     For those interested in how region affects the local terminology, I've included a Google Trends comparison for "" below.

I'm a native English speaker (from Ireland) and to this day I'd hesitate in saying "wife-beater" when referring to a sleeveless shirt. It seems to be much more common in the U.S.  Where did this term come from and why?  gave conjecture that apparently it's from how people are dressed as they are arrested on the TV show "Cops" and/or men who commit domestic violence, but I find that really unconvincing to lead to such widespread usage while also not maintaining the negative connotation.   And how is it so commonly accepted without implying the more literal meaning? I just don't understand how it became natural usage and something people ultimately say without needing to clarify or lose a straight face.


I have to prove the identity:     $$\binom{n}{0} + \dfrac{1}{2} \binom{n}{1} + \dfrac{1}{3} \binom{n}{2}  + ... + \dfrac{1}{n+1} \binom{n}{n} = \dfrac{2^{n + 1} - 1}{n + 1}$$   First thing I tried was to think about a combinatorial proof, but I couldn't interpret the identity in any way that makes sense. So, how should I prove this?

The left hand side has terms involving  $\binom{n}{m}= \dfrac{n!}{(n-m)!m!}$    $$1+\dfrac{1}{2}\binom{n}{1} +\frac{1}{3}\binom{n}{2}+...........+\frac{1}{n+1}\binom{n}{n} = \dfrac{2^{n+1}-1}{n+1}$$  I've done induction and proved $P(0)$ holds and also $P(1),P(2)$ holds (Just in case)  Now I've found $P(K+1)$ so the sum on the left is going to equal $\dfrac{2^{n+1}-1}{n+1}$ + $\dfrac{1}{n+2}$  and the right hand side is going to equal $\dfrac{2^{n+2}-1}{n+2}$  My problem is coming with the algebra though. I can't get those sides to equal. I can't get rid of the $n+1$ in the denominator.   Anyone have any ideas for me? They'd be much appreciated!  P.S. Someone gave me a hint and said that you can use the binomial theorem to solve this.


It is well known that there is a one-to-one mapping between the integers and the rationals.  It is also well known that there no such mapping between the rationals and the real numbers.  Is there a one-to-one correspondence between the set of real numbers and the set of complex numbers?  As part of the answer, could you either provide a high-level sketch or a reference (either the name of a famous theorem or a url) that would help me to understand the argument.

So it's easy to show that the rationals and the integers have the same size, using everyone's favorite spiral-around-the-grid.  Can the approach be extended to say that the set of complex numbers has the same cardinality as the reals?


I learned that pair production near black holes can cause them to loose energy, and eventually stop. But this is because quantum fluctuations cause particle and anti-particle pairs and the anti-particle gets pulled into the black hole while the other particle goes off into space. The anti-particle causes the black hole's energy to decrease. My question is why the anti-particle goes in the black hole instead of the normal particle? I read it had something to do with a red-shift, but the response was quite vague. Also if nothing was to cause the anti-particle to go in the black holes, it would be a 50-50 chance that the normal particle or anti-particle enters the black hole. This 50-50 chance would in the long run lead to no change.  I got my information after a lecture on the matter a few months ago.

I was reading Brian Greene's "Hidden Reality" and came to the part about Hawking Radiation. Quantum jitters that occur near the event horizon of a black hole, which create both positive-energy particles and negative-energy particles, produce the so-called Hawking radiation. However, I do not understand why only the negative-energy particles are being absorbed into the black hole, while the positive-energy particles shoot outward. Shouldn't there be 50/50 chance that each type of particle is being absorbed by the black hole? Also, the book mentions that a negative-energy particle would appear to an observer inside the black hole as positive. Why?


I am trying to solve an RSA problem. In order to calculate $d$, I have to calculate $d$ with $e=3$ and $$d\cdot e\equiv1 \pmod{40}$$ Obviously the answer is $d=27$, but I want to solve this with the extended Euclidean algorithm. Though I know how this works, I am stuck because in the first step of the algorithm I get $$40=3\cdot13+1$$  The remainder is 1 and the algorithm stops there.  How do I get $d=27$ by using the extended Euclidean algorithm?  I dont have a problem solving other similar examples that dont stop in the first step. But here, because it stops in the first step of the algorithm, I get confused.

When given $p = 5, q = 11, N = 55$ and $e = 17$, I'm trying to compute the RSA private key $d$.  I can calculate $\varphi(N) = 40$, but my lecturer then says to use the extended Euclidean algorithm to compute $d$. That's where I get stuck.    Here's my work so far:  First I use the Euclid algorithm to calculate:  40 = 2(17) + 6  17 = 2(6) + 5 6 = 1(5) + 1 = gcd   So I know the GCD is 1. Applying the 'extended' section of the algorithm:  6 = 40-2(17) 5 = 17-2(6) 1 = 6-1(5) 1 = 6-1(17-2(6)) 3(6) = 1 (17) 3(40 - 2(17)) - 1(17) 3(40) - 3(17)   I know the answer is $33$, but I have no idea how to get there using the extended Euclidean algorithm. I can't figure out why I'm getting $3(40) - 3(17)$ when I know the answer should contain $33$.


I am using my WiFi network adapter on the laptop to connect to the internet on Ubuntu 10.04. I have tried the following steps and got the below messages on the Ubuntu terminal. Please let me know what has gone wrong. Thank you.  I have used the following instructions I have seen on a web page.   Open the terminal. Type ifconfig wlan0 and press Enter. You will not see any output in the terminal, as this command just turns your wireless card on. Most wireless cards are designated wlan0. If yours has a different designation, use that instead. Type iwconfig wlan0 essid name key password and press Enter. Replace name with the actual network name, and replace password with the actual security key for the network. If your wireless network does not require a security key, do not enter key password. Type dhclient wlan0 and press Enter to obtain an IP address and connect to the WiFi network.   What I see on the terminal are given below.

Since the network manager is troubling me so much I want to replace it (possibly wicd orNM from ppa:volanin).  I do not know how to connect and disconnect to the network through the terminal without using network manager.  I would like a command-line way of managing the network.


If $ f, g \in L(I), $ does $ fg \in L(I)$?  I tried to solve this that way:  $f$ and  $g$ are Lebesgue integrable for each function there is a sequence of step function ${f_n}$ and ${g_n}$ that satisfy:  ${f_n}$ and ${g_n}$ are increasing, bounded and $ f_n \rightarrow f , g_n \rightarrow g $ $ \int_{I} f_n, \int_{I} g_n $ is bounded  so the sequence $\{f_n g_n\}$ satisfy those conditions and therefore $fg \in L(I)$  Am I right? thanks

I have a homework problem that says;  Give Borel functions $f,g: \mathbb{R} \to \mathbb{R}$ that are Lebesgue integrable, but are such that $fg$ is not Lebesgue integrable.  I saw this page too: , but the question does not mention boundedness.  I also am not sure what to do with the fact that the functions are Borel. (Any help on this would be especially appreciated)  I know that if $fg$ were Lebesgue integrable then both $\int (fg)^+\,d\mu$ and $\int (fg)^-\,d\mu$ would be finite. This could lead to utilizing the finiteness of their difference (the function's integral) or their sum (the absolute value). I also know that $f+g$ are Lebesgue integrable if $f$ and $g$ are so I thought of using $$fg = \frac{1}{4}\,\big( (f+g)^2 - (f-g)^2 \big)\longrightarrow \int (fg)\,d\mu = \frac{1}{4}\,\int (f+g)^2\,d\mu - \frac{1}{4}\,\int (f-g)^2\,d\mu,$$ assuming linearity of the integral etc.  I also thought of the Hölder inequality, $$\int \mid fg \mid d\mu \leq \bigg( \int \mid f \mid^p d\mu \bigg)^{(1/p)}\,\bigg( \int \mid g \mid^q d\mu \bigg)^{(1/q)},$$ but there was no mention in the question of what $L^p$-space this was in. Maybe by the definition I gave it is such that $p=1$ and $q=1$? Then $$\int \mid fg \mid d\mu \leq \bigg( \int \mid f \mid d\mu \bigg)\,\bigg( \int \mid g \mid d\mu \bigg).$$  However, I still can't seem to think of an approach to show that $fg$ is not Lebesgue integrable, while $f$ and $g$ are.  Thanks for any guidance!


i am trying to use a simple method to invoke two functions based on the class name selector. it's a toggling function. so function A toggles the class name so that the class name matches the selector used for function B and vice a versa. The problem is even after the element class has been changed jquery seems to be firing the function for the old class.  example.  $(".unfav").bind('click', function (e) {     $(this).toggleClass('unfav fav'); });  $(".fav").bind('click', function (e) {     $(this).toggleClass('fav unfav'); });   if .fav was rendered originally and was triggered the consecutive clicks to the same element executes the .fav selector and not the .unfav selector. i tried using .on and doesn't seems to help.  How do it force jQuery to unbind the original trigger when class is changed?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Suppose that $(a_n)$ is a bounded sequence of positive numbers. Show that $\lim_{n\rightarrow \infty} \frac{a_{1}+a_{2}+.....+a_{n}}{n}=0$ iff $\lim_{n\rightarrow \infty} \frac{a_{1}^2+a_{2}^2+.....+a_{n}^2}{n}=0$. In this question, I proved $\lim_{n\rightarrow \infty} \frac{a_{1}+a_{2}+.....+a_{n}}{n}=0$ $\implies$ $\lim_{n\rightarrow \infty} \frac{a_{1}^2+a_{2}^2+.....+a_{n}^2}{n}=0$, by using A.M and G.M inequality. I tried to prove the reverse inequality, but stuck in every attempt. Can anyone suggest some hint for the reverse inequality?

Let $(x_n) _{n\ge 1}$ be a sequence of real numbers such that $\lim\limits_{n\to \infty} \frac{x_1^2+x_2^2+...+x_n^2}{n}=0$. Prove that $\lim\limits_{n\to \infty} \frac{x_1+x_2+...+x_n}{n}=0$. I used the definition of the limit to conclude that $\exists N\in \mathbb{N} $ such that $|\frac{x_1^2+x_2^2+...+x_n^2}{n}|<\frac{1}{n^2}$, $\forall n\ge N$. Hence, we get that $|x_1^2+x_2^2+...+x_n^2|<\frac{1}{n}$. Now here comes the part where I am not really sure. I think that this implies that $\sum_{n=1}^{\infty}x_n^2=0$, and as a result $x_n\to 0$,which solves the problem because if we use the Stolz-Cesaro lemma we get that $\lim\limits_{n\to \infty} \frac{x_1+x_2+...+x_n}{n}=\lim\limits_{n\to \infty} x_n=0$.


My trip will be from Vietnam to Canada. I will have a 4 hr layover in Tokyo.  I am a Bangladeshi passport holder and permanent resident of Canada.  Will I need a transit visa for Tokyo airport?

I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita?


When and where did the  present tendency begin for interviewees on the radio to preface many answers to questions with the word 'So'?

This also came up on either a BBC or CBC science program, but not as a linguistically-oriented discussion.  Over the last two or three years I've noticed a lot more people starting a sentence with "so": "so when we take the ...", "so I have this ...", "so the basic idea ..." and (uh) so on.  What is "so" when a sentence begins with it? When did it start? Is it just a "pause" word (and is there a word for that)? Is it grammatically correct? Am I the only one that finds it annoying?  Edit: Much of its usage in scientific discussions is as a "therefore".


When flagging a question as duplicate a comment is auto posted on the first one to flag (or vote to close) behalf. Can it please get proper case?        Or in words, make it:     Possible duplicate of ...   Instead of:     possible duplicate of ...

The comment reads:     possible duplicate of [link]   The missing capitalization bothers me a lot; it should be Possible.


I'm trying to copy to clipboard a link ( the current link of the page ) using JS, but the console tells me that toCopy.select is not a function, why's that ? Here's the code :  HTML/PHP  <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/icons/link.png" alt="link">      <textarea id="to-copy" style="display: none;"><?php echo $current_url; ?></textarea>   JS   var toCopy = document.getElementById('to-copy'),     btnCopy = document.getElementById('copy');  btnCopy.addEventListener('click', function () {     toCopy.select();     document.execCommand('copy');     return false; });   Can anyone tell me why ? Thanks !

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData("Text", text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using :


I am facing issues with serial version id mismatch.  My server is having code with serialVersionID=20150301L; and myt client code is having diffrent so changed it manually but still facing the same issues.  Error:  java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.io.InvalidClassException: com.fedex.supplies.j2ee.common.client.reqresp.CustomerDataRequest; local class incompatible: stream classdesc serialVersionUID = 20150901L, local class serialVersionUID = -955959537118369236.   I tried option like implementing serilizable,manually defined serialVersionID same as server but getting the same error each time.

Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem.


So I've been stuck with this thought for a few days and have not been able to find an answer which can clear this doubt.  Is it necessary for an object to have certain mass associated with it if it has some electric charge?   I sure know that in the case of it's converse, surely an object with some mass may not have a charge associated with it.  Any help would be appreciated!

Are there any massless (zero invariant mass) particles carrying electric charge?  If not, why not? Do we expect to see any or are they a theoretical impossibility?


I've got an error message from the linker undefined reference to wrapper<char>::Free() when I call this function inside ~wrapper(). It appeared after I decided to rewrite the entire class into a template class.  Here the code,  wrapper.h  #include <iostream> #ifndef WRAPPER_H     #define WRAPPER_H #define ALLOC_FAILED 3048  template <class T> struct wrapper {     T * data = nullptr;     int dsize = 0;      void Free();     void Alloc(int s);     void Copy(const wrapper<T> & other);      wrapper(): data(nullptr), dsize(0){               }     wrapper(int s)                    { Alloc(s);     }     wrapper(const wrapper<T> & other) { Copy(other);  }     ~wrapper()                        { Free();       }      const wrapper<T> & operator = (const wrapper<T> & other){ Copy(other); return *this;} }; #endif // WRAPPER_H   wrapper.cpp  #include "wrapper.h" template <class T> void wrapper<T>::Free() {     if(data)     {         delete [] data;         dsize = 0;         data = nullptr;     } } template <class T> void wrapper<T>::Alloc(int s) {     if(data) Free();     data = new (std::nothrow) T[s];     if(!data) throw ALLOC_FAILED;     dsize = s; } template <class T> void wrapper<T>::Copy(const wrapper<T> & other) {     Alloc(other.dsize);     for(int i = 0; i < this->dsize; i++) data[i] = other.data[i]; }   log :  ||=== Build: Debug in wrapper (compiler: GNU GCC Compiler) ===| obj\Debug\main.o||In function `ZN7wrapperIcED1Ev':| wrapper.h|19|undefined reference to `wrapper<char>::Free()'| ||error: ld returned 1 exit status| ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|   but the code worked just fine when the structure wasn't a template  wrapper.h  #include <iostream> #ifndef WRAPPER_H     #define WRAPPER_H #define ALLOC_FAILED 3048  struct wrapper {     char * data = nullptr;     int dsize = 0;      void Free();     void Alloc(int s);     void Copy(const wrapper & other);      wrapper(): data(nullptr), dsize(0){               }     wrapper(int s)                    { Alloc(s);     }     wrapper(const wrapper & other)    { Copy(other);  }     ~wrapper()                        { Free();       }     const wrapper & operator = (const wrapper & other){ Copy(other); return *this;} }; #endif // WRAPPER_H   wrapper.cpp  #include "wrapper.h"  void wrapper::Free() {     if(data)     {         delete [] data;         dsize = 0;         data = nullptr;     } } void wrapper::Alloc(int s) {     if(data) Free();     data = new (std::nothrow) char[s];     if(!data) throw ALLOC_FAILED;     dsize = s; } void wrapper::Copy(const wrapper & other) {     Alloc(other.dsize);     for(int i = 0; i < this->dsize; i++) data[i] = other.data[i]; }   Thank you for your answers.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


The three fundamental constants $h$, $c$ and $G$ are manipulated and rearranged in different ways to get the Planck time, Planck mass etc. The Planck time is said to be the smallest time possible and Planck length the smallest length(If I'm not mistaken). But, why the  doesn't fit to this list?

Unlike most  named after "Planck" such as Planck length, Planck temperature, etc, the  seems more closed to daily life. It is about $10^{-5}$g, same order of magnitude of one eyebrow hair or a flea egg.  I am just wondering is there any interesting explanation about the relation between Planck mass and the mass of small lives such as flea.


I am trying to load the GRASS plugin in QGIS but it is not shown in the plugin manager (no matter if I turn on experimental and deprecated plugins). Under processing / options / providers GRASS GIS 7 commands and GRASS commands are visible and activated.  I am running Linux Mint 17.3 Rosa. QGIS 2.14.1 (after upgrading from 2.8. where I had the same problem), GRASS 7, and the qgis-plugin-grass (version 1:2.14.1+20trusty) are installed.  I have read this post . There it is said that QGIS 2.8 is not compatible with GRASS 7. Therefore I installed QGIS 2.14, which should be compatible ().  Some more information. I get this errors in the QGIS plugin log:  Failed to load /usr/lib/qgis/plugins/libgrassplugin6.so (Reason: Cannot load library /usr/lib/qgis/plugins/libgrassplugin6.so: (libgrass_gis.so: cannot open shared object file: No such file or directory))  Failed to load /usr/lib/qgis/plugins/libgrassprovider6.so (Reason: Cannot load library /usr/lib/qgis/plugins/libgrassprovider6.so: (libgrass_gis.so: cannot open shared object file: No such file or directory))  Failed to load /usr/lib/qgis/plugins/libgrassrasterprovider6.so (Reason: Cannot load library /usr/lib/qgis/plugins/libgrassrasterprovider6.so: (libgrass_gis.so: cannot open shared object file: No such file or directory))  So, it seems QGIS looks for Grass 6 plugins while Grass 7 is installed. I can set LD_LIBRARY_PATH, but then the Plugin (6) does not match Grass (7). In /usr/lib/qgis/plugins only the lib...6.so are available. How can I get the 7?

Apparently, my linux ubuntu setup of QGIS doesn't contain grass gis, although when I initially installed it last week I added grass gis to the command line. Anyway, I typed in once again and installed grass gis 7.0, however while GRASS starts, the plugin QGIS for it doesn't show up. Any ideas?


On Physics Stack Exchange I have 96 reputation points. I'm able to upvote something, but when I tried downvoting a question it said that my vote would be recorded, but not displayed.  Is there a different amount of reputation points needed to downvote than to upvote?

Formerly Reputation requirements compared. What are the reputation requirements for privileges on the various sites in the network? Also, how do reputation requirements for various privileges compare on different Stack Exchange sites? Specifically, the following types of sites:  Designed sites e.g. Stack Overflow, Ask Ubuntu, Gaming, etc. Public beta and non-designed sites Private beta sites  ...as well as any site-specific differences.


How can I take the information stored in a HashMap<Integer, ArrayList<Integer>> and create unique arrays of values. I do not need them in reverse order or any other ordering.  For example, assuming I have:  Key      Value ---      --------- 1        {1, 2, 3} 2        {10, 11} 3        {29}   How can I turn this into the following:  {1, 10, 29} {1, 11, 29} {2, 10, 29} {2, 11, 29} {3, 10, 29} {3, 11, 29}   Ive tried a variety of loops. I also pondered tail end recursion however it still has me stumped. I would appreciate your guidance so I may solve this.  What my goal is: The key value is the primary key for an attribute. Each attribute has options which are contained in the value. I would like to restructure the information so it fits the format shown.

Do you know some neat Java libaries that allow you to make cartesian product of two (or more) sets?   For example: I have three sets. One with objects of class Person, second with objects of class Gift and third with objects of class GiftExtension.  I want to generate one set containing all possible triples Person-Gift-GiftExtension.  The number of sets might vary so I cannot do this in nested foreach loop.  Under some conditions my application needs to make a product of Person-Gift pair, sometimes it is triple Person-Gift-GiftExtension, sometimes there might even be sets Person-Gift-GiftExtension-GiftSecondExtension-GiftThirdExtension, etc.


Is it possible to use Copy Parallel tool in a python script or in modelbuilder for ArcGIS 10.2? Does anyone have a workaround or script for a tool that essential does the same thing as Copy Parallel. I have a modelbuilder model that needs to copy parallel lines from a street centerline shapefile, buffering will not work in this case.

I am trying to create an offset polyline using arcpy, identical to the function in ArcObjects (constructoffset). After trying to access ArcObjects in arcpy, which I found difficult for those not well-versed in COM languages, and after much searching for functionality in the regular geoprocessing toolboxes, I discovered that this functionality seems to only exist in ArcObjects. There may be ways to program this functionality in arcpy using trig, but that seems really hard. Essentially, the product I'd like is an offset polyline that preserves all original geometry and curvature. Simply using a SearchCursor on the input and building a new feature class based on its geometry requires some algorithm I don't know. This is because without an algorithm based on slope, etc., a one-size-fits-all addition or subtraction will not preserve an offset shape for all slopes. Any help?


Today out of the clear blue I received the following message when I ran my updater under Ubuntu 13.10 laptop. Failed to download repository information. I see there are a ton of questions regarding this issue but this is not a duplicate because this is just more of an over view that I am looking for. So I did apt-get update and started seeing a bunch of 404 errors. I am far from a Linux pro, so how do I read these errors and how can I tell if these are important? I can tell you I have never manually modified the source list directly. And if these are dead ppa sources how can I remove and what does the letter mean in the below, almost looks like a drive letter but I dont have a W: drive.  W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I am working on an application and while writing a rest client using Jersy I want a single method to return objects of different classes from the method. I can get this done having Object as the return type of the method but I am looking if I can use generics for this, so I don't have to worry for the type safety.  So far I have the following code, but I am not able to get any further with this:  public <T> T getContent(final String resourceUrl, Class <T> cls) {         //"http://localhost:8080/RESTfulExample/rest/json/metallica/get"         final Client client = new Client(); final WebResource webResource = client.resource(resourceUrl);         final ClientResponse response = webResource.accept("application/json").get(ClientResponse.class);          if (response.getStatus() != 200)         {             throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());         }          final T output = response.getEntity(cls.getClass());          System.out.println("Output from Server .... \n");          //get content         //return T         return output;  }

Consider this example (typical in OOP books):    I have an Animal class, where each Animal can have many friends. And subclasses like Dog, Duck, Mouse etc which add specific behavior like bark(), quack() etc.  Here's the Animal class:  public class Animal {     private Map<String,Animal> friends = new HashMap<>();      public void addFriend(String name, Animal animal){         friends.put(name,animal);     }      public Animal callFriend(String name){         return friends.get(name);     } }   And here's some code snippet with lots of typecasting:  Mouse jerry = new Mouse(); jerry.addFriend("spike", new Dog()); jerry.addFriend("quacker", new Duck());  ((Dog) jerry.callFriend("spike")).bark(); ((Duck) jerry.callFriend("quacker")).quack();   Is there any way I can use generics for the return type to get rid of the typecasting, so that I can say      jerry.callFriend("spike").bark(); jerry.callFriend("quacker").quack();   Here's some initial code with return type conveyed to the method as a parameter that's never used.   public<T extends Animal> T callFriend(String name, T unusedTypeObj){     return (T)friends.get(name);         }   Is there a way to figure out the return type at runtime without the extra parameter using instanceof? Or at least by passing a class of the type instead of a dummy instance. I understand generics are for compile time type-checking, but is there a workaround for this?


I trying to solve following problem. With great helps of others here, I can write and understand simple do loop in bash scripting.   Now I try to do this:  In "mein_directory" directory I need following first to  create let say 10 subdirectories, with name subdirectories1.... subdirectories10   then I need to copy file to each subdirectories,   and then I need to enter in to each subdirectories and change specific word in file that has been copy from main directory.   And this is my main problem at the moment, because I need to change a the specific word is actually a number and I need to change this number of an increment multibly by number of subdirectory   so my code looks like this:  #!/bin/bash increment=10  for i in {1..10}; do     mkdir subdirectory_$i; done   for d in */; do     cp FILE "$d"; done  for j in {1..10}; do     cd subdirectory_$j/     increment=increment*$j     sed -i 's/old_word old_digit/old_word old_digits+increment/g' CONTROL     cd ../; done   So let say the in file "FILE" in subdirectory_1  I need to change following  from  Paul 10 to Paul 20  And in subdirectory_2  from  Paul 10 to Paul 30  Please does anybody know how to around this?  Thanks a lot

I tried the following code to replace QQ with ZZ, but it doesn't do what I want:  var1=QQ sed -i 's/$var1/ZZ/g' $file   However, this code does what I want:  sed -i 's/QQ/ZZ/g' $file   How do I use variables in sed?


I was looking at the edit history for a question:  Notice how edit #3 is supposed to be a tag edit, but the diff is blank:  Why?

I was doing some re-tagging and I noticed that the automatically generated revision comment says that I edited the post body where I only edited the tags.


For example as the: sum n   has the general formula >>> n(n+1)/2  Is there a formula for the n!

I came across a question where I needed to find the sum of the factorials of the first $n$ numbers. So I was wondering if there is any generic formula for this? Like there is a generic formula for the series: $$ 1 + 2 + 3 + 4 + \cdots + n = \frac{n(n+1)}{2} $$ or $$ 1^{2} + 2^{2} + 3^{2} + 4^{2} + \cdots + n^{2} = \frac{n(n+1)(2n + 1)}{6} $$  Is there is any formula for: $$ 1! +2! +3! + 4! + \cdots + n! $$ and $$ {1!}^2 +{2!}^2 +{3!}^2 + \cdots + {n!}^2 $$?  Thanks in advance. If not, is there any research on making this type of formula? Because I am interested.


I want to bind a single property to two buttons for Visiblity. I am using BooleantoVisibility Converter. I am able to hide or show button based on the Property value. My issue is, I want to show only one of two buttons. Below is my Code. Is there a way to bind using "NOT" or I have to create a new Property ?   <telerik:RadButton Content="Close" x:Name="btnClose" Visibility="{Binding Path=IsNewRecord, Converter={StaticResource BoolToVisiblity}}" Command="{Binding CloseCommand}" CommandParameter="{Binding ElementName=ProductCombobox, Path=Text}"/>  <telerik:RadButton Content="Delete" x:Name="btnDelete" Visibility="{Binding Path=IsNewRecord, Converter={StaticResource BoolToVisiblity}}" Command="{Binding DeleteCommand}" CommandParameter="{Binding ElementName=ProductCombobox, Path=Text}"/>

I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if it's false.


I see sometimes that some really huge viruses can eat the thorn blobs. However, some more have gotten popped when tried to do it.  So, what should be the general size and cases in which a virus can be able to eat a thorn blob?

There are those big green spiked things that my friends call viruses. I don't know what they do and I want to know. Do the viruses do something to the device you are playing on? Are they good or bad?


when I try to install g++  by  "sudo apt-get install g++" command line gives me the msg "Unable to install....You have broken packages." How can I fix it??? And what does that "broken package" mean??? plz help....

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I have 2 different lights (yellow area light for the gold watch and purple for the silver one) making 2 shadows on the surface. I want to keep the blended light on the gold watch but take out the blue shadow and vise versa for the silver one. Is there a way to make each light affect its own surface without impacting the other? I'm not good at lighting so please feel free to give me any advice for light setups as well!

Is (or will be) there any sort of light linking in Cycles, or a method to get a light to affect only certain objects that doesn't involve compositing two or more different render layers? Sort of what 3Dstudio does with the Include/Exclude methods.


I finally managed to reach to Ubuntu after many unfair-unsolved errors and boot errors as well..  Now another unfair issue detected. I made an user account with password, great, I downloaded steam, I double click it, authenicator shows up but when I type something, it doesnt show on authenticator!!!  It wants a password for the user name account I use to let steam download packages, but when I type anything, it does not show on authenticator!It does do nothing but to say error that I typed nothing. I even deleted password of my username account and it still shows up. What the h!!! is this problem? Its even annoying than Justin Bieber!!  Authenticator is my next nightmare...How do I solve it?

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


I am learning LWC(newbie). I have the below situation where I want to add one additional property to an Object.   I am wiring an Apex method as below and inside loop, I am trying to add one additional property to all Contacts. Going through the Docs, I came to know that the Object is read-only.    JS File :  import { LightningElement, api, wire } from 'lwc'; import allContacts from '@salesforce/apex/contactAuraService.getAllContacts';  export default class TestPopover extends LightningElement {     @api contacts;      @wire(allContacts)     cons({error, data}) {         if(data) {             this.contacts = data;             this.error = undefined;             //alert('data = '+JSON.stringify(this.contacts));             for(let i=0; i<this.contacts.length; i++) {                  Object.defineProperty(this.contacts[i], 'short', {                     value : this.contacts[i].Level__c.charAt(0)                 })             }         }         else if(error) {             this.contacts = undefined;             this.error = error;             alert('In error');         }     }  }   Please help how do I add this additional property to each contact. This is my first question in here. Please excuse if anything is unclear, I will try to edit it again as required.  Thanks, Lokesh

Am not doing anything fancy, just trying to update a field on Contact in JS of LWC but getting this exception.  Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'Name' throws at mydomain/auraFW/javascript/mhontaYdOya4Y_lBu7v9yg/aura_prod.js:2:27687  HTML Code:   <template>      <template if:true={wiredContact}>          {wiredContact.Name}          <lightning-input value={wiredContact.Name} onchange={updateName}></lightning-input>     </template>  </template>   JS:   import { LightningElement ,wire,track,api } from 'lwc'; import myContact from "@salesforce/apex/ContactController.fetchContact";  export default class Myrefreshapextest extends LightningElement {    @track wiredContact;   @wire (myContact)         fetchedContact({error, data}){             if(data){                 console.log(JSON.stringify(data));                 this.wiredContact = data;             }else if (error){                 console.log(error);             }     }      updateName (event){         console.log(JSON.stringify(event.detail.value));         console.log(JSON.stringify(this.wiredContact));         this.wiredContact.Name = event.detail.value;     }  }   Apex:  public class ContactController {      @AuraEnabled(cacheable=true)     public static Contact fetchContact(){         return [SELECT Id,Name FROM COntact LIMIT  1];     } }   On top of my head, am not doing anything wrong, anyone has idea what's wrong with my code?  When I print console.log(JSON.stringify(this.wiredContact)); I get old values so am pretty sure it exists.  I tried with @track and @api, but same response. Can anyone shed some light?


Let $H$ be a infinite dimensional Hilbert space on $K$ and let $B$ be a basis of $H$ that $H=\overline{span(B)}$  moreover, let $T : H \rightarrow K$ be a linear functional (i don't know if it is bounded)  If $T(B)$ is a bounded subset of $K$, then, is the linear functional $T$ bounded (norm of $T$ is finite)?

Let $H$ be a infinite dimensional Hilbert space and let $B$ be a basis of $H$ that $H=\overline{span(B)}$  moreover, let $T : H \rightarrow K$ be a linear functional   If $T(B)$ is bounded, is $T$ bounded?


I'm trying to run AndyOS. Its an Android emulator to run Android apps and games on my PC.  My system meets the hardware specifications and since I have prior experience in running virtual machines, I know a thing or two about virtualization support.  I had enabled Hardware Virtualization through the BIOS and installed the virtual machine,but it fails to start up.  I contacted AndyOS support forums and they suggested to disable Hyper-V as it would prevent the virtual machine to start. They told me to run the following command on an elevated command prompt to disable Hyper-V  dism.exe /Online /Disable-Feature:Microsoft-Hyper-V  Here's what I got  C:\Windows\system32>dism.exe /Online /Disable-Feature:Microsoft-Hyper-V  Deployment Image Servicing and Management tool Version: 6.3.9600.17031  Image Version: 6.3.9600.17031   Error: 0x800f080c  Feature name Microsoft-Hyper-V is unknown. A Windows feature name was not recognized. Use the /Get-Features option to find the name of the feature in the image and tr y the command again.  The DISM log file can be found at C:\Windows\Logs\DISM\dism.log   What does this mean? Is Hyper-V having a problem in my PC, even though the PC fully supports Hyper-V?  I have "Windows 8.1 Single Language" preinstalled by OEM HP.  I am able to run the virtual machine with hardware virtualization disabled but its extremely laggy.

Lately i wanted to get into Windows Phone 8 development and i installed Visual Studio 2013 + Windows Phone SDK 8 + Visual Studio 2013 Latest update. My system parameters are: - 8gb ram - Windows 8.1 64bit system - Intel i5 The moment i try to run a Windows Phone project a dialog appears and it says: Title - " Cant start the windows phone emulator" Subtitle - "The Windows Phone Emulator requires Hyper-V.Your PC is missing the following pre-requisites required to run Hyper-V: -Windows 8 Professional(64 bit)"  After i saw that i checked for how to upgrade Normal Windows 8.1 to Windows 8.1 Professional. With no luck i tried to find out more about to install Hyper-V with the BIOS configuration with no luck as well.  Usually i develop on Android with Eclipse(with the Emulator) so i can't understand the reason why a emulator of Windows Phone can't run on my system.  P.S I don't have Hyper-V feature to be turned on/off in the windows feature list.  Thanks heads up for each answer! :)


I'm working on a textbook exercise for my upcoming Computer Science class, and I've run into a problem, specifically, the goal of the program is to have three items inputted (as String), and three prices inputted, then have them outputted. In addition, if one of the names of the items is "Peas" (not case sensitive), also display the average price, if not, display "no average output".  The problem that I'm having is that the program never displays the "no average output" as needed, even if none of the values are "peas", "Peas", etc.  In addition to the code below, I've tried the following..   Just declare the boolean peas, don't initialize as false Integrate the average price/no average price string as part of the result string and display one big message box instead of two Use a separate if statement within a for loop outside of the original for loop that receives data inputted      // Import JOptionPane to display message boxes of the data inputed import javax.swing.JOptionPane; public class PeaPrice { public static void main(String[] args) {  // Declare arrays for the 3 String names, the 3 double prices, and the average price String[]names=new String[3]; double[]prices=new double[3]; double avg;  // Initialize the boolean value for if "peas" is inputed, and the result to be displayed boolean peas=false; String result="Results... \n";  // Loop 3 times to receive 3 string values for(int i=0; i<3; i++){     names[i] = JOptionPane.showInputDialog("Please input the name of item number " + (i+1) + ":"); // If the string entered is peas, set the boolean to true     if(names[i].toLowerCase()=="peas"){         peas=true;                   } } // Loop 3 times to receive 3 double values for(int i=0; i<3; i++){     prices[i] = Double.parseDouble((JOptionPane.showInputDialog("Please input the price of item number " + (i+1) + ":"))); }     // Loop 3 times to go through each array index for price and name to add them to the result string to be displayed for(int i=0; i<3; i++){ result +="Item name: " + names[i] + " Item price: $" + prices[i] + "\n"; }  // Display the result string JOptionPane.showMessageDialog(null, result);  //Calculate the average price avg = (prices[0]+prices[1]+prices[2])/3;  // Display the average price accordingly based on the boolean value if(peas=true){     JOptionPane.showMessageDialog(null, "Average price: $" + avg); } else if (peas=false){     JOptionPane.showMessageDialog(null, "no average output"); }    System.exit(0);   } }   Thank you for the assistance!  EDIT Sadly the solution provided by the other issue I was referred to, I tried modifying the if statement to the following and still have the same problem   if(names[i].toLowerCase().equals("peas")){             peas=true;                       }   I also tried removing the toLowerCase and still have the same problem  if(names[i].equals("peas")){             peas=true;                       }   EDIT 2 Solved - thank you @jegesh!

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I'm planning on making a short animation so I kept all the models, props and assets separated in folders. Problem is, when I try to append each object into one scene, their colors (Basic colored Materials) is excluded. I've also noticed the same problem when I open those files (FBX format) in Mixed Reality Viewer, and all I get is a plain object    compared to what I am expecting that was rendered in blender (see image below);    I'm EXTREMELY worried that I have to apply UV mapped textures to every model I made for this to work properly especially for the future since I need to be exporting these models as well in UNITY. Any workaround on this or on how I may be able to fix this problem without applying uv map? Note: I tried baking but it didn't work for me :(

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


Let $n$, $m$ - natural numbers, at least one $>0$. Let $a$ - natural number $>1$. Prove  $\gcd(a^m - 1, a^n - 1)=a^{\gcd(m,n)} - 1$.  It is probably easy, but I cant catch it. I thought abut treating these guys as polynomials of variable "$a$". Looking that way, I know that $a^d-1$ divides $a^n - 1$ (both treated as polynomials) if and only if $d$ divides $n$. Therefore, I see that guy on the right divides guys on the left. But how I can it is the biggest common divisor? I don't see it. Looking from the ideal point of view is also pointless. That exercise does not have hint at the end of book I'm working with. Thanks in advance for help and Merry Christmas.


Please, I would like some Help about a problem in Probability-theory. A candy store produces have $10$ different kinds of chocolates, which then are placed in bags. Each bag should have $30$ chocolates. How many different bags can the store offers?  I tried to solve it using combinations.  Is this correct? Thank you very much in advance.

The number of different ways to choose $k$ out of $n$ unique items:   Without repetition and without order-significance: $\binom{n}{k}=\frac{n!}{k!(n-k)!}$ Without repetition and with order-significance: $\binom{n}{k}\times k!=\frac{n!}{(n-k)!}$ With repetition and with order-significance: $n^k$ With repetition and without order-significance: $?$   Thank you!


I have a question with a query in PostGIS. I try to calculate the area from a polygon. It actually works but the area-result is not correct. My Query is:  SELECT name, ST_Area(way)/10000 AS hectares FROM osm_data ORDER BY hectares DESC LIMIT 1;   The problem is, that the amount of ha is completely wrong. So i tryed to change the EPSG in the standard 4326 EPSG. But when I use than the query it shows me an error:  SELECT name,ST_Transform ((way, 4326)ST_Area(way))/10000 AS hectares FROM planet_osm_polygon ORDER BY hectares DESC LIMIT 1;      SQL state: 42601   Where is the mistake?!

I am trying to get from a particular point more informations about the surroundings (which are also points). So I wrote this:  SELECT *    FROM osm_point    WHERE ST_DWithin(way,(ST_SetSRID(ST_MakePoint(12.2385578688105, 51.8435615931295), 4326, 1000);   But there is an error     ERROR: FEHLER:  LINE 3: ...T_MakePoint(12.2385578688105,   51.8435615931295), 4326, 1000) ^ SQL state: 42601 Character: 133   What is wrong?


I'm building an appendix, and there are a lot of PDF-documents. Each document should be its own appendix, that is each should be its own chapter.  The problem is that I want the PDF inserted right after the chapter-heading, but in practice its pushed to the next page.   \usepackage{pdfpages} % in config-file \begin{appendices}     \chapter{Appendix name }     \label{app:label}     \includepdf[pages={-}]{appendices/mypdf.pdf} \end{appendices}   That is: I get a page with a chapter-header, and no content, then a new page where the PDF is inserted. I haven't found any resources that explain this.  I looked in the answer given , but that does not work either. (\includepdf[scale=0.8,pages=1,pagecommand=\chapter{chapname}]{testpdf} ), gives the following result:    The other answer in the same question is to do the following (except it wants to do it section not chapter:  \includepdf[pages=1,pagecommand=\chapter{Chapter Heading}]{appendices/backend-README.pdf} \includepdf[pages=2-,pagecommand={}]{appendices/backend-README.pdf}   Which gives the same result as above.

I am using pdfpages which works quite well.  But this time, I want to include a 5 page pdf and the first page should be scaled down a bit such that above the first page is enough space for a subsection (in the LaTeX document).  Using just  \usepackage{pdfpages} ...  \subsection{Interesting Letter} \includepdf{letter.pdf}   does not work, because includepdf inserts a newpage command before the first page.  I looked at the pdfpages manual but could not find options relating to that.  I hacked this command, which kind of works:  \newcommand{\insertrep}[1]{% \hspace*{-2.4cm} \fbox{\includegraphics[page=1,scale=0.8]{#1}} \includepdf[scale=0.8,pages=2-,frame]{#1} }  \subsection{Interesting Letter} \insertrep{letter.pdf}   The subsection is printed on the same page as the first page of the pdf, but an empty page is inserted before the section ...  The empty page vanishes if I scale the first page to 0.5 - which is too small ...  It seems that \includegraphics inserts an empty page before the graphic, if the inserted graphic violates the margins of the page.  Besides, the hspace value does not always fit.  Thus, my question: How to solve this right?


Do you know why this horizontal line appears at the top of this headline text? It shows in Illustrator and when saved as JPG, and in some PDF viewers.    This is a single click text line (not a text box). The font is Bodoni 72, size 130 pt. I'm using Illustrator CC on the latest Mac OS.

I designed a christmas card and I normally print it on vista print.  When I ask for a print proof the outlines show. They don’t show when I print it at home.  Why are there unwanted white lines appearing in this PDF print proof and how can I solve this problem?


My question is pretty much asked within the title. Basically, I just want to know what, if anything, the Difficulty Setting affects in terms of Aerial Combat.  Will my Interceptors struggle more in Classic than in Normal?  Or will I begin to see bigger, stronger UFO's sooner in a higher difficulty game?

I can't seem to find a good list of info of all the changes that classic mode offers over normal other than that 'its much harder'.  Does any of the enemy AI improve in classic mode?  Do enemies have more health and do more damage?  Does the panic meter increase faster for countries?


Say I have designed a logic circuit. If I were to construct it, due to the cost of individual components as IC's, it would be very expensive (and tedious). Is there a way that I can get my circuit printed into an IC?  So far it seems from my research that companies don't like to print a single IC and would rather that you ordered thousands and pay a minimum fee of ~$10,000 which for my budget is out of the question.  The circuit I have now I estimate is around $600 which is still not within my budget (under $200).  Is there any reasonable way to do this? I can't imagine it is this hard for people to build their own (largeish) logic circuits.  Edit: I should add that this is a hobby and only one or so IC is needed.

I have browsed several ASIC manufacturer's webs, but I haven't found an actual number. I assume there would be a fixed cost associated with creating masks and such and then there will be a cost per unit.     Note: that I don't actually want to have an ASIC made, I'm just curious.


I was trying the following code,  public void test() {     List<Integer> list = new ArrayList<>();     list.add(100);           list.add(89);            System.out.println(list);     update1(list);     System.out.println(list);     update2(list);     System.out.println(list);        }  public void update1(List<Integer> list) {     list.remove(0); }  public void update2(List<Integer> list) {     list = null; }   I am getting the following output,  [100,89] [89] [89]   My question is, why I am not able to assign the list as null inside a called function?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I have problem that with my command because it still return me null rows with value but i dont know why.  If i use this:  SELECT count(ad.idfirmy) as id FROM aadresar as ad WHERE ad.idfirmy IN (SELECT DISTINCT f.idfirmy FROM ddoklfak f WHERE f.modul = 'FAV' and f.datvyst >= '2019-01-01' and f.datvyst <= '2019-06-30')   It´s return me result count 6652  And this command result me 49463.  SELECT count(ad.idfirmy) as id FROM aadresar as ad   But this result me 0 rows but i dont know why, because its important for me, what is not in function "NOT IN"  SELECT ad.idfirmy as id FROM aadresar as ad WHERE ad.idfirmy NOT IN (SELECT DISTINCT f.idfirmy FROM ddoklfak f WHERE f.modul = 'FAV' and f.datvyst >= '2019-01-01' and f.datvyst <= '2019-06-30')   and result is 0 so why? Please help.

Which of these queries is the faster?  NOT EXISTS:  SELECT ProductID, ProductName  FROM Northwind..Products p WHERE NOT EXISTS (     SELECT 1      FROM Northwind..[Order Details] od      WHERE p.ProductId = od.ProductId)   Or NOT IN:  SELECT ProductID, ProductName  FROM Northwind..Products p WHERE p.ProductID NOT IN (     SELECT ProductID      FROM Northwind..[Order Details])   The query execution plan says they both do the same thing.  If that is the case, which is the recommended form?  This is based on the NorthWind database.  [Edit]  Just found this helpful article:    I think I'll stick with NOT EXISTS.


I'm trying to calculate the level of testosterone released from different testosterone esters. Here are some graphs of testosterone levels after single injections of 250mg of each ester.  Testo U    Testo B   Each ester have a specific half life. e.g. testo e have an half life of 4.5 days. testo b 29.5 testo u 20.9  After an injection of an ester, there will be a specific amount in your body. say 250mg.  Those 250mg will follow a normal half life curve for that ester. And I know how to calculate that.  However, when the ester is reduced, the testosterone bound to it will be released.  So over time , more testo will be released from the ester, and the testosterone itself have some sort of half life I assume.  Not doing drugs here ;) working on a medical app.  (sorry for the homework tag but I have no clue what this goes under..)


I want to know if one can open an iron door via right clicking, perhaps with a specific item in one's hand?  Edit: Since 1.8, there is a "lock" command. Does this command work with buttons? Or is it only for chests?

Is there a way so that I make make it when I left click/right click with a certain item it applies an effect? I know that you can apply attributes to wearing armor and things but I want it so when you use the item it applies an effect on your player.  For example, let's say I want something so that when I right click with a certain item (let's say an iron ingot that was given to me) I'll then have a jump boost for 10 seconds. So kinda like a potion in a way.  Is this possible with command blocks/commands/any mods?


Is there a rule or guideline for when a word ends in 'or' or 'er'? For instance teacher vs professor.

What’s the rule to decide whether you add -er or whether you add -or when creating an agent noun from a verb?    Sometimes it’s -er:      read > reader hate > hater hit > hitter   But other times it’s -or:    meditate > meditator collect > collector


I created a new direct LWC quick action form in the new version for Summer 21 without Aura. I cannot find documentation, how to close the quick action panel. Has anyone already experience with it?

I have created a Lightning web component quick action for account object in the Summer 2021 sandbox org. This is the screen action and working fine, but I am not able to close the action using JavaScript. I know we can use $A.get("e.force:closeQuickAction").fire(); in the Aura Components, but what is the Lightning web component equivalent for this? I tried to find the documentations for this but seems to be not available at this time.


Having found a lot of different questions on Ask Ubuntu regarding NVIDIA graphics drivers installation generating various issues and problems on Ubuntu systems - I do want to know:    What do Ubuntu users have to care about when installing the NVIDIA graphics drivers?    Explanation:  Being aware that this topic already has many good questions and answers it actually always stays up-to-date. One example : Many new notebooks come with hybrid graphics and Optimus support so they depend on proprietary NVIDIA drivers being installed to function properly but most of all existing posts point to  which doesn't provide the drivers anymore since ubuntu  was introduced, so many old answers are mostly obsolete or wrong.

I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site?  So which driver is the best for me?


I know that a charged particle is defined as a particle that experiences a force in an electric field, as explained in this post:   However, I still don't understand: Where does this force come from? Quantum mechanically, what does it mean for particles to repel or attract one another? Or more broadly, What does charge in general actually mean?

Is charge of something for (e.g.) an electron related to electromagnetic space if it exists due to energy, due to which it may have mass? I don't know about quantum mechanics or advanced particle models. Can anyone just simply give an intuitive idea?   EDIT I want to mean what actually gives electron charge if it is not assumed fundamental but result of some other physical phenomenon or it is  just the quantity defined to explain physical interactions?I think now it is clear


So, I flagged  for being off-topic, and the flag has been pending for 2 days. Why? Here's a relevant screenshot.

Looking at my flagging history, I see quite a few (got 8 now) active ones dated as far back as August 9.  Sometimes a flag gets addressed almost instantaneously, other times it just sits & wait there.  Is it because I tend to flag edge cases /debatable stuff (like  questions , or questions posting working code and asking for a code review, which is suitable for CodeReview.SE)? Or am I "flagged" as a trigger-happy flagger and my flags are just being ignored unless they're obviously warranted?  I'm sure it's only because there's too many flags and not enough flag reviewers (is that 10K+ users or just diamonds/mods?), but what would be a "normal" delay for a flag to be reviewed?  --  As I was tagging this question, the  tag came up as a suggestion; this makes me wonder, have I shot myself in the foot? Where can I see my "flag weight" and what's an ok value? Lastly, what can I do to "flag better"?


i would like to attach eventListener to dynamically created input Text or other objects. Since the objects are not yet present in the DOM or the objects are not visible, attaching an event to these object fails. There's a proper way in plain Javascript or JQuery to avoid this problem?  Thank you

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


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

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


I want to add www in front of a subdomain e.g. www.subdomain.domain.com.  My blogs are hosted on Blogger and am using GoDaddy for having custom domains.  I have HOST @ entries for 'domain' pointing specified by blogger. The following subsdomains are configured by adding CNAME alias as follows:  subdomain -> ghs.google.com www -> ghs.google.com      For domain (including www.domain) I have one blog.  For subdomain, I am pointing it to seperate blog using above entries and subdomain.domain.com works fine.   I read articles on this issue and tried adding following CNAME entry but no luck:  www.subdomain  ->  subdomain.domain.com   How do I make www.subdomain.domain.com work ?

I have a WordPress installation that is not redirecting URLs not starting with www.  Example: http://example.com/dir/ doesn't send to http://www.example.com/dir/ instead goes to http://example.com/.  How do I change the .htaccess below to always redirect to the page either using www or not?  # BEGIN WordPress RewriteEngine On  RewriteBase / RewriteRule ^index\.php$ - [L]  # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]  # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]  RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]  # END WordPress


I am looking for a precise definition of what is meant by an "algebra".  The reason is that I want to compare the difference between an "algebra" and other algebraic structures, i.e. a group, ring, field etc.  I have found the definitions of the others in books, while I haven't been able to find the definition of an algebra, surprisingly.  The only thing I found is in Folland's book on real analysis, p.21:     "An algebra of sets on some nonempty set $X$ is a nonempty collection   $\mathcal{A}$ of subsets of $X$ that is closed under finite unions and   complements..."   I hope someone can help.

What is the difference between "algebra" and "field"? In term of definition in Abstract algebra. (In probability theory, sigma-algebra is a synonym of sigma-field, does this imply  algebra is the same as field?)


So, I need to show that the functional $T_x : (C[0,1], \| \cdot  \|_1) \rightarrow \mathbb{R}$ is not bounded. That means that I need to show that there is no $M>0$ such that $|T_x(f)| \leq M \|f\|_1 $. Equivalently, I need to prove that there is no $M>0$ such that $ |f(x)| \leq M \int_{0}^{1}|f(t)|dt $.  Any help would be greatly appreciated.

The following is a problem out of Hunter's Applied Analysis that I am working on. I am looking for proof verification for the first part, and any constructive feedback/hints/tips for the second part of the question.     Let $\delta : C([0,1])\to\mathbb{R}$ be the linear functional that evaluates a function at the origin $\delta(f)=f(0)$. If $C([0,1])$ is equipped with the sup-norm,   $$\|\ f \|_{\infty} = \sup_{0\leq x\leq 1} |f(x)|,$$   show that $\delta$ is bounded and compute its norm. If $C([0,1])$ is equipped with the one-norm,   $$\|\ f \|_1 = \int_0^1 |f(x)|dx,$$   show that $\delta$ is unbounded.    First recall that for normed spaces $(X, \|\ \cdot \|_X)$ and $(Y, \|\ \cdot \|_Y)$ the norm of a linear operator, $T:X\to Y$ is defined as: $$\|\ T \|_{\text{op}} = \sup_{\|\ x \|_X = 1} \|\ Tx \|_Y $$ So in our example we're tasked with finding  $$\|\ \delta \|\ = \sup_{\|\ f \|\ = 1} \|\ \delta(f) \|\ = \sup_{\|\ f \|\ = 1} |f(0)|$$ Then, note that  $$\|\ \delta \|\ =\sup_{\|\ f \|\ = 1} |f(0)| \leq \sup_{\|\ f \|\ = 1 } \left( \sup_{0\leq x\leq 1}|f(x)| \right) = \sup_{\|\ f \|\ = 1 } \|f\|_{\infty} = 1 $$ this establishes that $\delta$ is bounded.   As far as the second bit of the question, consider the norm as: $$\|\ \delta \|\ = \sup_{\|\ f \|_1 \neq 0} \dfrac{\|\ \delta(f) \|\ }{\|\ f \|_1 } = \sup_{\|\ f \|_1 \neq 0} \dfrac{|f(0)|}{\|\ f \|_1 } $$ So I want to show the existence of an $f\in C([0,1])$ such that $f(0)= c > 0$ and $\int_0^1 |f(x)| = 0$. My first thought was $\cos(2\pi x)$ but the absolute value messes that example up. Anyway, needless to say, I'm stuck here. Any tips or hints?


I have a sql query which i managed to filter joining different tables, Below  NoOfCounts - Duplicate count of same Question in a Form having different Answer NoOfRowsPerAnserId - Used a Rank Partition by and order by AnswerId  My resultset looks somewhat like this now,  What I expect ( I just omitted other column but it can be there if this is not possible)  Query I have CREATE Table #myData ( Id INT Identity (1,1) ,NoOfCounts INT ,NoofRowsPerAnswerId_RankFunction INT, AnswerId INT, Value NVARCHAR(256) , FormId INT, QuestionId INT, AnserNameofItem NVARCHAR(256), DesiredValue NVARCHAR(256))  INSERT INTO #myData  VALUES (1,1,11,90,101,1,'Equity','')  ,(2,1,22,$1000,101,2,'CashInFlow','') ,(2,2,22,$1001,101,2,'CashOutflow','') ,(3,1,33,$99,101,3,'Chase','') ,(3,2,33,$100,101,3,'Capital','') ,(3,3,33,$101,101,3,'Citi','') ,(4,1,44,$800,101,4,'Equity','') ,(4,2,44,$801,101,4,'Fund','') ,(4,3,44,$802,101,4,'Credit','') ,(4,4,44,$804,101,4,'Debit','')   SELECT * FROM #myData

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


When I started my laptop (hp pavillion series with Ubuntu 16.04) this morning, I got the usual login prompt, but when I entered my password and logged in, there was no launcher, no menu, nothing.   I searched for solutions on Ask Ubuntu and got the link to .  I did the mentioned steps and I got back my launcher only with limited icons and no menu bar. Then, I rebooted my laptop and again the launcher disappeared. So, this is the current status of my laptop.  How can I fix it?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


i need to insert multiple records from one org to another org using rest API(bulk) am unable to insert multiple records ..as of now am able to insert single record successfully.can you please tell how to do this ..

I am using cURL to insert data into salesforce. It works with single record but I need to insert multiple records at a time. Is it possible to do so and is it possible via a REST interface?


I recently installed python 3.8.2 on to my Ubuntu 18.04 laptop. However, I then found the built-in python 3.6 installation and I don't know how to remove 3.8. I've tried make uninstall because it was built from source, but this didn't work. Any advice would be appreciated.

I used source code to build one package such as below:  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static make make install   But unfortunately, i discovered that its the latest version, and has lot of bugs, so i need to remove it/uninstall it. But how can i do so? I tried make clean; make uninstall but still i see it exist:  # pkg-config --list-all | grep Myplugin myplugin-.... $ ls /usr/lib/myplugin/libXYZ.so exist....   How do you remove this now?


I have createad a report in jasper report, when i have wrote the code in servlet to export the report in pdf it is not displaying the report.   JRPdfExporter pdfExporter = new JRPdfExporter(); pdfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); //OutputStream ouputStream = response.getOutputStream(); //pdfExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, ouputStream); pdfExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "C:/reports/payment.pdf"); pdfExporter.exportReport();   Now during debugging when debugger came to at this line     JRPdfExporter pdfExporter = new JRPdfExporter(); it simply goes in finally block rather in next line. I am stuck into this any solutions.  and the Exception is:  java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException java.lang.ClassNotFoundException: com.lowagie.text.DocumentException

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


Title pretty much sums it up - I bought my friend's old Samsung S6, did a factory restore but when I try to set up the phone for myself, it won't let me. It says "This device was reset. To Continue, sign in with a Google Account that was previously synced on this device".   How do I bypass this and start fresh with a new google account? Do I need them to log into the phone themselves to do something?  Please note I'm planning on using this without a sim card, just as a portable video device.  Thank you!

I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it.  Now the person can't get past setup because it's saying he must login with an account previously synced to the phone.   Is there anything I can do from my side to remove this lock?


Is there a way to add a perpendicular line to the end node of each polyline? Something like this:

I have some lines. I want to draw perpendicular lines at the start and end of the lines, on both sides of the lines.  Can somebody help me in Python?  I am using ArcGIS.


SHA-1 is on the way to deprecation, in particular for digital certification (x509). But I can't find ressources about SHA-1 deprecation from SSL/TLS Cipher Suites.   Is it implicit, as deprecation implies that SHA-1 usage will be deprecated in all cases ? Or is there a different strategy concerning SHA-1 usage in Cipher suite ?  I also don't understand how attackers could forge SHA1 certificate signature, as the hash is still "protected" by the signature (CA private key). So forging the hash with collisions, ok, but one would detect that hash is not trusted anymore (signature wouldn't be the same). I miss something ?

Many browsers and Internet companies have recently claimed that SSL Certificates with a signature algorithm of SHA1 will imminently no longer be considered secure.  Most notably, .  Yet I've read that since the SSL/TLS negotiation and Cipher Suite don't make use of plain SHA1 (or even MD5), and instead use SHA1 within an ; that using a Cipher Suite with SHA1 is still an acceptable security practice.  Is this the case?    While we're on it, is it also the case of using MD5 in a cipher suite?


Most of the questions here are about creating a live/installation bootable USB key, but what I need is different and I can't find an answer. I have a Linux installation on the hard drive, which, after installing Windows 10, is (obviously) not bootable. "Start with a liveCD and reinstall grub" I hear you say, but I don't want to do that: I don't want to install grub because the Linux installation is only temporary. What I need is really just a way to boot (once or twice, to run some tests) into the Linux partition. I'm pretty sure what I have to do is start from a LiveCD and enter some custom boot parameters, but I'm pretty ignorant in the matter so I have no idea what the command line should look like. Help please!

I've two different OS, which one is ubuntu. I'm using a PC, NOT a Mac. I use Chimera bootloader that don't find Ubuntu. So, i'd like to install grub 2 in EFI-mode on flash-drive USB. In this way, i can load Ubuntu only if the usb flash-drive is connected.  I followed this guide  replacing "/dev/sda" in  sudo efibootmgr --create --gpt --disk /dev/sda --part 1 --write-signature --label "GRUB2" --loader "\\EFI\\grub\\grub.efi"   with the usb-pen directory. Then, i've copied the grub.cfg file that exists in Ubuntu partition.Result? Grub2 loads, but when i select the menu entries, grub2 doesn't find any command, or disks. How can i fix this problem?  P.S. Here, there are the photo of the error(when i select ubuntu entry in grub2), the usb-drive's contents and the grub.cfg file


I've ran into an unexpected behavior when using a nested list in python, that took a while to debug. If a list is initialized like this:  a = [[None] * 2] * 2 a [[None, None], [None, None]]   and another list initialized like this:  b = [[None, None], [None, None]] b [[None, None], [None, None]]   I would expect the same behavior from both these lists, but if I do:  a[0][0] = 3 a [[3, None], [3, None]]   and if I do:  b[0][0] = 3 b [[3, None], [None, None]]   Can someone explain the reason why this happens? thanks

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


Can any one please let me know whether we can declare static variables inside an inline function and if we can how it is going to work between function calls.

I have a function that is declared and defined in a header file. This is a problem all by itself. When that function is not inlined, every translation unit that uses that header gets a copy of the function, and when they are linked together there are duplicated. I "fixed" that by making the function inline, but I'm afraid that this is a fragile solution because as far as I know, the compiler doesn't guarantee inlining, even when you specify the "inline" keyword. If this is not true, please correct me.  Anyways, the real question is, what happens to static variables inside this function? How many copies do I end up with?


If I want to take a paper or pdf version out to test with typical users, one to one, how many users should I find to test on to get the most helpful results?

I'm currently rebuilding our entire intranet from scratch, mostly because the tech behind is out-dated and it has been proved that a lot of information is difficult to find.  Though that is beside the point, what I am wondering is what would be the optimum amount of users to use for qualitative and quantitative testing with a userbase of around 1000 users?  Is there a general rule of thumb for both based on the total number of users you have? or is it just say 5 for qualitative and 10 for quantitative?  What would be the best approach?


I know that both of them wipe data and revert the device settings as they were - - but let's say I notice a bug on the device.   Should I pursue a hard reset it factory reset? What are the key differences?

It is mentioned at  that one should do Factory reset or hard reset. I'm a bit confused about what is hard reset?  Factory reset I suppose is using the option in settings to reset phone to the factory state i.e. when it was unboxed.


So I recently learned about the concept of a One Time Pad; and I from what I understand it means that if a XOR key is completely random and equal to or longer than the plaintext, it makes it so that anyone trying to break the encryption would basically only be able to narrow it down to all appropriate possibilities from the selection field.   Is there a way to renew the key over each transmission between clients sharing a key? In other words, if the original key is xxxxxxxxxxxxxxxx and the sent data is made of the first half being a message and the next half being some form of data, can a pre-determined protocol be fed the data to generate a new full-length key? Or is it impossible to do this without compromising the integrity of the randomness of the new key? What would theoretically be required of such a protocol to make it secure?  Thanks in advance!

For multiple OTP keys, why not do this:  Key = Hash[(EC)DH Shared Secret + Counter]  The counter will increase per message, and the output of the hash will be random for each new unique input into it. What are the problems or weaknesses with this design??  EDIT: For clarification: both parties will have the shared secret from an ECDH exchange, random numbers from Pythons os.urandom for generating the ECC key


It is possible to click on the TOC to a subsection. I saw in a book that when you then lick on the title of the subsection, you went back to the TOC page. Is this possible to create this programmatically and nor wrap the title with a link to the TOC

What I'd finally like to have are clickable backlinks from the headings to the table of contents. The goal is to click on a heading and land on that exact heading in the toc. As far as my search efforts are concerned there is no easy way to reach this. So I tried to start by linking to the toc like . But I already fail to place links in headings, which seems to be impossible and results in this error message:  pdfTeX error (ext1): \pdfendlink cannot be used in vertical mode.   Just to clarify this, as there seem to be potential misunderstandings in other discussions on the web: I don't want to change the style of the headings! The links should be invisible like when using the hidelinks option. I left the links visible in the MWE for better overview.  So here's the MWE with one of my error producing lines NOT commented out:  \documentclass{scrreprt} \usepackage{hyperref} % \usepackage[hidelinks]{hyperref}%Works like a charm  % And I would like to do something like that too: % \renewcommand{\chapter}[1]{\hyperlink{toc}{\chapter{#1}}}  \begin{document}  \hypertarget{toc}{\tableofcontents}  \chapter{This is a great headline}%Working % \chapter{This \hyperlink{toc}{is} a great headline}%Not working % \chapter{\hyperlink{toc}{This is a great headline}}%Also not working \hyperlink{toc}{\chapter{This is a great headline}}%Also not working Here is some text to prove, that \hyperlink{toc}{links} to toc work, if they're not in headings\ldots \section{This is a section heading} % \section{This is a \hyperlink{toc}{section} heading}%Also not working \section{and another}  \chapter{This is a bad headline!} \section{last section}  \end{document}   In the end it would be great to get the links automatically in every heading, like I tried to with the renewcommand.