I have an image on my smartphone and I want to paste it into Google Image Search to see if I can get similar images.  I can do this by pasting the image using desktop but not using Android ...  Is there such a possibility?


Low battery level circuit - Changing "trigger" level

I am re-creating a simple low-battery level circuit that turns on a low-power LED to indicate that the battery needs to be changed. The circuit is shown below.    There are two things I would like to change on this circuit.   The cutoff voltage is approximately 6.9V. Based on my initial analysis, all I need to do to change this is to swap out the zener diode. The cutoff voltage is the sume of Vz (the zener knee voltage) and the 0.7V drop across the diode, Vd. So, if I want to have the cutoff be sooner during the discharge cycle (ie: 7.5V), my assumption is that I just need to swap out the 6.2V Zener diode with a 6.8V Zener diode. Is this assumption correct? Do any of the resistor values need to change? I want to remove the green LED from the circuit, and the left-most Bc547 NPN BJT, and just have a "low battery" indicator. How do I reduce the existing circuit to just this?


Potential drop in a wire having negligible resistance

What causes a potential drop in a resistor or load?  Why a wire having neglible resistance have same potential across it? The given figure is of a stretched wire potentiometer. My question is why point a and A have same potential after connection through a wire of negligible resistance. Before connection there can be different potentials on poinrs a and A. So how the same potential achieved after connection. I wants it's machanism and explanation.


Does this type of memory get allocated on the heap or the stack?

In the context of C++ (not that it matters):  class Foo{     private:         int x[100];     public:         Foo(); }   What I've learnt tells me that if you create an instance of Foo like so:  Foo bar = new Foo();   Then the array x is allocated on the heap, but if you created an instance of Foo like so:  Foo bar;   Then it's created on the stack.  I can't find resources online to confirm this.


Is there, a better method to remove duplicates values from a list when using a dictionary instead of set(), to preserve the values insertion order?

When using set() to remove duplicates values from a list the values order of insertion is not preserve:  mylist = ['b', 'b', 'a', 'd', 'd', 'c']  results = list(set(mylist))  print(results)  # output >>> ['a', 'd', 'b', 'c'] To preserve the values insertion order when removing duplicated values from a list, I found away around set() by using a dictionary as fallow:  mylist = ['b', 'b', 'a', 'd', 'd', 'c']  results = list({value:"" for value in mylist})  print(results) >>> ['b', 'a', 'd', 'c'] Does a better method exist, than one that I used above, to duplicates values from a list when using a dictionary instead of set(), to preserve the the values insertion order?


How to find Listen and Open ports in Linux.?

I want to list Listen ports and Established ports and unused activated ports. I need to know commands for this..?


Need ios app for read and mark pdf documents

I need some ios app for ipad where I can read scientific pdf documents and mark part of text and do some notes on the margin of the document and then read it with marks at my PC.  An option can be to get translate of selected word in small pop-up window near word.  What you can suggest?


Efficiency of a heat pump water heater during the winter

In my understanding, heat pump water heaters pump energy from the room around the water tank into the water.  Clearly, this must be energy efficient in the summer time, especially if I am using AC anyway. The heat pump water heater may actually cool the house a bit.  However, in the winter time the savings are not so obvious. If I am using a heater to heat the home, including the water tank room, then I don't see how there can be any savings. Instead of generating heat using a coil in the water, I generate heat in another area of the house which gets pumped into the water. A joule is a joule and I need to get it from somewhere. It seems to me that if I am actively heating the house, and lets assume everything is electric, then a heat pump water heater cannot be more efficient than a traditional one.  Am I missing something in the winter case?


Is it accurate to say that nothing can travel faster than $c$ in a GR context, where more space can be created?

Years ago, my brother and I had an argument where I was trying to convince him that nothing could travel faster than the speed of light. I was pursuing this in the context of Special Relativity. My main thought was to contrast the behaviour of light to the behaviour of baseballs thrown from train-cars, say. To me, this is an interesting and surprising feature, and I thought he'd be interested.  Instead, he turned the argument into "you don't really know that nothing can go faster than light". Over the years, we've gone back and forth where he'll claim that some new result proves that I was wrong. I've mostly been dismissive, since the cites are mostly pop-sci or will say something like there might be some 1 part in 10^17 discrepancy, or something.  So, recently, I sent him the Wikipedia article on Metric Expansion, and he shot back with "see, matter is traveling faster than the speed of light."   Is this an accurate statement, or does it hinge on interpreting "traveling"? I.e. one can make a distinction between traveling through space, and space itself expanding.  Was I wrong to say (again, according to GR not SR) "nothing can travel faster than the speed of light" (ignoring tiny fluctuations, and according to currently known physics)?


Can you get virus by clicking .zip file?

I tried to uncompress a zip file but I get error  “The compressed (zip) folder is invalid or corrupted”.   Is it possible to get virus just by trying to uncompress the zip? Can zip extension be manipulated so it is not actually a zip file but a virus?


Formatting a number with leading zeros in PHP

I have a variable which contains the value 1234567.  I would like it to contain exactly 8 digits, i.e. 01234567.  Is there a PHP function for that?


I have often wondered if there's any common view on using a question mark on a statement meant as a question, such as "I assume you've watered the plants?". Is it right/wrong/merely a written representation of something that sounds perfectly fine in spoken language? I personally lean towards the last.  Cris


How much damage does a weaponless skeleton do?

The Monster Manual lists .   If a skeleton is disarmed, how much damage does it do?  Unarmed Strike is listed as a melee weapon on p.190 of the Player’s Handbook that does 1 bludgeoning damage.  Under using Ability Scores under Strength, it says, "You add your Strength modifier to your attack roll and your damage roll when attacking with a melee weapon ..."   As noted previously, there are often discrepancies between a monster’s stats and PCs stats with weapons. A skeleton’s attack and damage with swords and short bows have +4 modifiers to hit and +2 to damage even though its strength is listed as 10.   Do the +4/+2 modifier discrepancies carry over to its unarmed attacks too - or does one just use its base strength modifier (thus making its bludgeoning attacks 1 damage)?


Attempting to install hplip-3.20.3.run on Ubuntu 20.04  missing dependencies: Package-Name         Component            Required/Optional    pil                  scan                 OPTIONAL             pyqt4-dbus           gui_qt4              REQUIRED             reportlab            fax                  OPTIONAL             pyqt4                gui_qt4              REQUIRED             python-notify        gui_qt4              OPTIONAL   Unable to find dependent files. Install aborted.


Problem 1 Conway singularities. Page 132.

Suppose $|f(z)|\leq 1$ for $|z|<1$ and $f$ is analytic. By considering the function $g:D\to D$ defined by $g(z)=\frac{f(z)-a}{1-\overline{a}f(z)}$ where $f(0)=0$, prove that $\frac{|f(0)|-|z|}{1+|f(0)||z|}\leq |f(z)|\leq \frac{|f(0)|+|z|}{1-|f(0)||z|}$ for $|z|<1$. $g(0)=0$ obvius but I can't prove that $|g(z)|\leq 1$ to be able to use  Lemma's Schwartz and conclude. Why is it fulfilled? I can't prove this part.


Birthday problem: why is this solution wrong?

This question is about the birthday problem: the probability that in a group of n people, at least two of them have the same birthday ().  An easy way to calculate the probability is to calculate first the probability that no two people have the same birthday.  Let's say that I want to calculate the probability that in a group of 20 people, NO two people have the same birthday.  So, for 20 people with different birthdays, I can choose the first birthday in 365 ways, the second in 364 ways and so on, while for 20 people who can have the same birthday, I can choose the first birthday in 365 ways, the second also in 365 ways, and so on. At the end:  $p={365 \cdot 364 \cdot 363 \cdot ... \cdot 346 \over 365 \cdot 365 \cdot 365 \cdot ... \cdot 365}\approx 0.59$  This is the right method and I understand it. I don't understand why the following method is wrong:  The probability that in a group of 20 people NO two people have the same birthday is the ratio between the combination without repetition of 20 birthdays and the combination with repetition of 20 birthdays:  $$p={C_{365,20} \over C'_{365,20}}={\binom{365}{20} \over \left(\binom{365}{20}\right)}={\binom{365}{20} \over \binom{365+20-1}{20}}=\frac{{{365!}\over {20!\cdot(365-20)!}}}{{(365+20-1)!}\over{20!\cdot{(365-1)!}}}\approx 0.35$$  I understand the mistake is in the denominator (as the numerator is the same of the other method, after simplifying that 20!), but why? Isn't it right to calculate the k-combination with repetition of 20 birthdays?  Thanks for helping!


Transit visa in the UK and Canada for Libyan citizens

Do Libyan citizens who live in Libya and don't hold any other nationality need transit visas for the UK and Canada? The plan would be to travel on British Airways from Istanbul, Turkey to the Dominican Republic, with stops in the those two countries.


Can I install Ubuntu on blackberry passport?

Can I install Ubuntu on a blackberry passport?


Is there some way to do multi-threading in JavaScript?


Can't reach login screen after accidental power loss during an upgrade

During the upgrade, my computer shut down.  After starting it I see a black screen with [OK] sentences with finished tasks after them. The last one is:  [OK] Started GNOME display Manager.       Dispatcher Service...ed database.s.pp link was shut down...   Do I need to format my computer? If not, what else can I do?


Show that $P(\mathbb{N})$ is equivalent to $2^\mathbb{N}$

How would I show that $P(\mathbb{N})$ is equivalent to $2^\mathbb{N}$? The questions asks to form a theorem from the statement I just gave. Any help would be appreciated.


Why are approaching discharging initially charged pith balls almost at equilibrium?

The question is-     Two point charges each having mass m are suspended from same point by silk thread of length l. The distance between them is x (x << l). Find the rate ${dq\over dt}$ with which the charge leaks off each sphere if their velocity of approach varies as v = $\frac{a}{\sqrt x}$ where a is positive constant.   I tried this problem by assuming equilibrium at the instant. From here I got-  $$\frac{mgx^3}{2l} = \frac{q^2}{4\pi\epsilon_o}$$  Differentiating this equation and substituting the value of $v = {dx\over dt}$ = $\frac{a}{\sqrt x}$ and obtaining an expression for ${dq\over dt}$, I substituted the value of q from the above written expression. On solving I got my answer as-  $$\frac{dq}{dt} = \frac{3}{2}a\sqrt{\frac{2\pi\epsilon_o mg}{l}}$$  Which is the answer given in the answer key. But I do not understand that why are the pith balls at equilibrium when they have given an expression for velocity and we can obtain some value of acceleration which is not negligible.


What is the sum of $k$ normal random variables where $k$ is sampled from a Poisson distribution?

Let's say you have a sequence of i.i.d. random variables $r_1,r_2,r_3,\dots$ that are distributed as $\mathcal N(0,1)$. Now, consider the process where we sample a $k$ from $\text{Pois}(\lambda)$ and let $z$ equal $$\sum_{i=1}^{k}r_i$$  My question is what the distribution of $z$ is?  My first guess is that it would be $\mathcal N(0,\lambda)$. I do not how I would proof this, however. The variance might be slightly larger due to the uncertainty introduced by the Poisson distribution, for example. Proving the mean is $0$ is easy by symmetry.


Can't upload or link to any images - Image tool seems broken

I'm attempting to upload a profile picture using the uploader tool on Stack Overflow, but the tool appears to be broken. The file is not too large, it's only about 336 kB, which is well under the 2 MB limit, so I know that's not the issue, and even if it was, I'm not getting any error message.  What happens is when I drag the image file I want to upload into the "upload area" instead of uploading the image to the servers, it just opens the local file in my browser, which strikes me as the wrong action. I also don't get any option to browse my hard drive using a normal OS dialogue box to try and upload my profile pic that way either. The drag option is the only way I'm seeing.  Here are some screenshots:  can't insert, image tool completely broken  *Update: This issue seems to be with more than just the profile picture updates, but a general issue with the image upload/insert tool. I can't upload images or link to external images at all. It also loads way too big to fit on the screen, and I have to adjust the zoom feature to see the full popup.  This appears to be a bug with the image uploader tool. I'm using Chrome 58.0.3029.110 on Windows 8.1.  EDIT: I don't see any other questions that are as specifically about this exact issue. There are some similar ones but they're about some other specific issue that's different from what I'm reporting here. I'm reporting a general bug with the image upload tool, and doing a search, I see no other posts reporting this bug. Also, doing a quick check, this issue seems not to have been resolved yet, the tool is still broken in the exact same way as I reported almost a month ago.


How do I get grid workspaces in ubuntu 20.04?

I know that I have to use some tweaking tool and then a extension for this. But all extensions that are suggested for this(Workspace grid, Workspace matrix), aren't available in the software center.


Find all $P\in \mathbb{C}[X]$ such that $P(\mathbb{Q})\subset \mathbb{Q}$

I came up with a proof for this question, rather simple, that I didn't find here.  And I wondered if my proof was correct, and if anyone had a different proof ? Thanks for you time.  I will show that only polynomials  in $\mathbb{Q}[X]$ work.  My proof is based on induction on the degree of the polynomial,  For d = 0, it is obvious.  Suppose the result true for polynomials of degree $d$, and let P be a polynomial of degree $d+1$ that satisfies the problem,  $P(X) = a_0+\ldots+a_{d+1}X^{d+1}$.  Evaluating at 0, we find $a_0\in \mathbb{Q}$. Because $Q$ is stable by multiplication and addition, the polynomial $\dfrac{P-a_0}{X}$ is a polynomial of degree d that satisfies the constraints, the result follows by induction.


Find the limit of the sequence $\sqrt{2} ,\sqrt{2\sqrt{2}} , \sqrt{2\sqrt{2\sqrt{2}}} ,.....$ = ?

find the lim of the sequance when n $\to \infty  $          $\sqrt{2} ,\sqrt{2\sqrt{2}} , \sqrt{2\sqrt{2\sqrt{2}}} ,.....$


Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able to unzip it.   Consider the file name is file1.zip and when I give unzip -p -a and while the command executes, it shows the content of the file in the Unix box. I want to know the same 7z command. @Volker:  you have suggested as COMMANDTOUSE="/usr/bin/7z e -so -bd .. but its not working.  This is how much code is defined,  if the file is in zip format, then the unzip -p -a comes into picture. yes the command works for smaller files, and if fails for larger size. I have tried with 7z e -so -bd but its failing. @Volker :  can you suggest an alternate command. Thanks for your continuous help till now.


trying to split a template member function into header and cpp files

The following code gives me an error "unable to match function definition to an existing declaration". Is my syntax correct?   CharPlayer.h  class CharacterPlayer     {     public:     template <class cType>         cType createCharacter(cType characterType);      };   CharPlayer.cpp  template <class cType> cType CharacterPlayer::createCharacter(cType characterType) {     return 3; }   Main  CharacterPlayer *controllerPntr = new CharacterPlayer;     controllerPntr->createCharacter(1);


ESTA Transiting first, then entering the US

I need help with one of the questions on the ESTA application form. 'Is your travel to the US occurring in transit to another country?'  I am flying in on the 3rd February from Sydney Australia to Vancouver Canada, transiting in San Francisco. Then I will fly on 17th February from Vancouver to Boston and staying in Boston.  Do I answer yes or no to this question?  Does the question on the ESTA application form 'Is your travel to the US occurring in transit to another country?' asking about the first entry into the USA? or for the entire trip.  If someone could just let me know whether I answer 'yes' or 'no' that would be much appreciated.


How is experience calculated in HearthStone? I understand you get more exp for playing against people, but i can't find how to work out the exp gained.


What are the Minecraft weather commands and how do they work?

My son loves the weather and he would like to use these commands to alter the weather. However, he's tried but nothing seems to work.  How do we use the weather and wm commands?


The feed in the Stack Exchange Android app only shows new questions from Stack Overflow. But my favorites are Game Development, Raspberry Pi, Super User, Ask Ubuntu and Stack Exchange.  I think it should show all of these in the feed.


Find sci fi short story about invisible creatures on everyone's heads

I read a sci f- short story in the 80s that I'd like to find. It's not "Unwelcome Tenant" by Roger Dee, although it has many similarities. Here's what I remember:   It could have been written anytime before 1988. I would guess 50s or 60s as most likely. The protagonist somehow discovers invisible bean-shaped creatures on everyone's head. He somehow removes his own, and discovers everyone is repulsed by him, and he feels repulsion to everyone else. He works on freeing other people from their parasites, but few agree, and they are equally repulsive to those with parasites.  Eventually figures out he's now being influenced by a different being, perhaps called "Grrr".  Grrr seems more like some kind of octopus somewhere in the universe, with 'psychic tentacles' or something that reach across the stars to his head. (Yeah, it's a bit weird) He discovers if he somehow 'crushes' one of the invisible bean-like parasites, it acts like a helmet, preventing either Grrr or the beans from attaching to his head and influencing him. With the helmet, there's less repulsion between him and other people with parasites. Not sure how it ends. Could be some kind of journey (real or imagined) across the universe to confront and destroy Grrr, who turns out to be a small jellyfish-looking thing in a puddle on a distant planet.   This was probably in some sort of sci-fi short story collection, but apparently none of the ones still remaining in my possession after all this time.


How to `str.join` two list to strings of all combinations in Python3?

I want to get a list of ('A_1','A_2','B_1','B_2','C_1','C_2'), with something like '_'.join() and [(x, y) for x in ['A','B','C'] for y in [1,2]].  How to write this?


An old short story about a teacher who goes to Mars to work?

A person I know is trying to find a story about a teacher who travels from Earth to Mars and starts working there. It's old, maybe from Bradbury or Asimov. That's the only information she gave to me.


How should one respond to "duplicate answer" flags?

The flag queue lists automatically-detected .  According to  and other questions on MSO, there is nothing wrong with such duplicate answers—except insofar as they are potentially indicative of a duplicate question.  So, having verified that the answers do not merit a flag for any other reason (and having flagged the questions as duplicates if appropriate: although if that was the purpose of this exercise, shouldn't the system have raised automatic flags on the questions instead?), how should one respond to these flags?  It seems that the only option is to flag for moderator attention, either:   because "I do not agree with the existing flags on this answer, they are incorrect and should be ignored." (invalid flag), even though I do agree that the answers are indeed duplicates; or for a custom reason.   Neither of the above really feel very appropriate.  Perhaps if the flag was instead "suspected spam" (or similar) it would be easier to flag as being invalid?


Drupal add class to body if page is unpublished

I would like to be able to add an unpublished class to the body tag of a node (for both its main view and edit view) if the node has been unpublished.   How can I do this?    Steps I have taken:  1) Node Object The  contains if a node has been published or unpublished (with $node -> Status), but I am not sure how to test this for each node and then add it to the body class.  , but the provided answer doesn't work.  2) Drupal 6 This  how to do it for Drupal 6, but the code doesn't work for Drupal 7.


Here is a very simple question about light. As far as I remember from the school program, each color is merely one of the frequencies of light. I also remember that each color's wave length is different. On the other hand, when talking about the speed of light, I've always heard only one value. Why is it so? Shouldn't it be like the red color's speed must be way higher (or lower) than, say, the purple color's speed? I am quite confused here.    (Sorry if my question is too foolish, but it has bugged me for years and I was quite bad at physics at school and have never touched it since I finished school)


oracle how to change the next autogenerated value of the identity column

I've created table projects like so:  CREATE TABLE projects (   project_id NUMBER(10,0) GENERATED BY DEFAULT ON NULL AS IDENTITY ,   project_name VARCHAR2(75 CHAR) NOT NULL   Then I've inserted ~150,000 rows while importing data from my old MySQL table. the MySQL had existing id numbers which i need to preserve so I added the id number to the SQL during the insert. Now when I insert new rows into the oracle table, the id is a very low number. Can you tell me how to reset my counter on the project_id column to start at 150,001 so not to mess up any of my existing id numbers? essentially i need the oracle version of:  ALTER TABLE tbl AUTO_INCREMENT = 150001;   Edit: Oracle 12c now supports the identity data type, allowing an auto number primary key that does not require us to create a sequence + insert trigger.   SOLUTION: after some creative google search terms I was able to find  thread on the oracle docs site. here is the solution for changing the identity's nextval:  ALTER TABLE     projects    MODIFY  project_id  GENERATED BY DEFAULT ON NULL AS IDENTITY ( START WITH   150000);


If I open Unity tweak tool, it mentions com.canonical.unity.webapps is missing

following message appears:    If I press okay, nothing happens. What do I have to do?


So I currently have this string: "//..\Desktop\vine.png" However, to use it when loading an image I need the \ to be \\ , so:    "//..\\Desktop\\vine.png"  path = "//..\Desktop\vine.png" image = bpy.data.images.load(path)   I've tried using  bpy.path.abspath(path)   however this is what it throws back at me:    For some reason it changes the "v" to "x0b" and doesn't change the last \ to a \\  Anyone have any ideas why this might be? Or any other methods to change the \ to \\


I have 5 different email accounts: iCloud, GMail, Hotmail and two others which my iPhone does not give the option to sync its contacts.   So, I have only synced my contacts with iCloud and since barely a month ago, when I edit a contact it appears immediately a copy of it and if I delete one, both of the are deleted.  Does anyone know what is going on?


What's difference between "ignore_sticky_posts" and "post__not_in"=>$sticky_posts

what's the difference in results from:  new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );   and  new WP_Query( array( 'ignore_sticky_posts' => 1 ) );   ?


When both players have the same 2 pair, can a 3rd pair be used as a valid kicker?

player A : 4,4 player B : A,10 board : K,K,Q,Q,2  Which player wins? I guess Player B but player A claims he has a pair of 4 which is a bigger kicker. who is correct?


Let's say i have a string.  "Hello this is a "string need" to split"   I need to get he output as   Hello this is a string need to  split   Any help would be appreciated.


Schengen visa as a spouse of an Italian citizen

This is my second trip to Italy with my wife who is an Italian citizen. First trip was in 2011 for a duration of two weeks but at that time we were not married.  I am currently unemployed and worried they might refuse the visa. I will be able to prove that I have funds to sustain me for the duration of the visit but cannot prove I am permanently employed as I am basically freelancing. For my last application the Travel Agent, who is an accountant, gave a letter stating he is the bookkeeper of the sole-proprietor business I owned (a restaurant at the time) and they accepted it.  Will I be able to do it the same way?  As background, I am South African and the marriage is legitimate. We have even applied for an unabridged marriage certificate but only in November last year and apparently it takes up to eight months to obtain. In the previous visa, we submitted our Islamic Marriage Certificate.  We might travel to Germany as well, where my wife's sister resides. In theory, I would like to stay in Europe. I am 59 and my wife and I have known each other 30 years but never got married. We made  in 2009 and registered at Home Affairs in 2016; otherwise, I would hold an EU passport by now.  Should I rather apply for a spouse reunification visa, as my wife is applying for emigration from South Africa?  She has dual citizenship, so as to be able to cash her retirement annuity before the age of maturity.  I was thinking of applying for a spouse visa for a one month visit, and then remain in Italy for the 90 days and thereafter apply for a longer visa.


Is there an allocated time period in Ray Bradbury's novel? I'm not too sure if there is a timeline that led up to the events in the book, so the time in which it is set is unclear to me.


So i am running this piece of code here: username='john' print('Weclome ',(username),'!')  but it keeps putting a space between the username and the exclamation mark. How do I remove it so it just outputs 'Welcome John!'


Show $GCD(a_1, a_2, a_3, \ldots , a_n)$ is the least positive integer that can be expressed in the form $a_1x_1+a_2x_2+ \ldots +a_nx_n$

Given $a_1, a_2, a_3, \ldots , a_n$ not all zero, show $\gcd(a_1, a_2, a_3, \ldots , a_n)$ is the least positive integer that can be expressed in the form $a_1x_1+a_2x_2+ \ldots +a_nx_n$. Also deduce $a_1x_1+a_2x_2+ \ldots +a_nx_n = b$ has solutions $\iff \gcd(a_1, a_2, a_3, \ldots , a_n)|b$.   I know that $ax+by=n$ has integer solutions $\iff \gcd(a,b)|n$. I'll need to use induction to show $a_1x_1+a_2x_2+ \ldots +a_nx_n = \gcd(a_1, a_2, a_3, \ldots , a_n)$ has solutions, and then I will be able to say that as $\gcd(a_1, a_2, a_3, \ldots , a_n) | a_1x_1+a_2x_2+ \ldots +a_nx_n $ for any $x_1,x_2, x_3 \ldots x_n$ then $c \leq \gcd(a_1, a_2, a_3, \ldots , a_n)$ and $c \geq \gcd(a_1, a_2, a_3, \ldots , a_n)$, and thus $c=\gcd(a_1, a_2, a_3, \ldots , a_n)$.


PPA error while installing Albert application launcher in Ubuntu 18.04

I tried those two command and get some error:   sudo add-apt-repository ppa:flexiondotorg/albert  An amazing, desktop environment agnostic, omnilauncher. https://github.com/ManuelSchneid3r/albert  More info: https://launchpad.net/~flexiondotorg/+archive/ubuntu/albert Press [ENTER] to continue or Ctrl-c to cancel adding it.  Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:2 http://dl.google.com/linux/chrome/deb stable Release                      Hit:4 http://mirror.dhakacom.com/ubuntu-archive bionic InRelease                Get:5 http://mirror.dhakacom.com/ubuntu-archive bionic-updates InRelease [88.7 kB] Ign:6 http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic InRelease     Get:7 http://mirror.dhakacom.com/ubuntu-archive bionic-backports InRelease [74.6 kB] Get:8 http://mirror.dhakacom.com/ubuntu-archive bionic-security InRelease [83.2 kB] Hit:9 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease            Hit:10 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu bionic InRelease Err:11 http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic Release        404  Not Found [IP: 91.189.95.83 80] Hit:12 http://archive.canonical.com/ubuntu bionic InRelease                     Reading package lists... Done                                                   E: The repository 'http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  sudo apt-get update && sudo apt-get install albert  Hit:1 http://mirror.dhakacom.com/ubuntu-archive bionic InRelease                Get:2 http://mirror.dhakacom.com/ubuntu-archive bionic-updates InRelease [88.7 kB] Get:3 http://mirror.dhakacom.com/ubuntu-archive bionic-backports InRelease [74.6 kB] Get:4 http://mirror.dhakacom.com/ubuntu-archive bionic-security InRelease [83.2 kB] Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:6 http://archive.canonical.com/ubuntu bionic InRelease                      Hit:7 http://dl.google.com/linux/chrome/deb stable Release                Ign:9 http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic InRelease Hit:10 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease Hit:11 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu bionic InRelease Err:12 http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic Release        404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                                                   E: The repository 'http://ppa.launchpad.net/flexiondotorg/albert/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


So, I wrote a review for an app. Both positive and negative thoughts in it, then I refreshed it and its not there. Help? Do I need a review account because all the people who review have some kind of username.


How can I concatenate dicts (values to values of the same key and new key)?

I have a problem with concatenating dictionaries. Have so much code so I show in example what my problem is.  d1 = {'the':3, 'fine':4, 'word':2} + d2 = {'the':2, 'fine':4, 'word':1, 'knight':1, 'orange':1} + d3 = {'the':5, 'fine':8, 'word':3, 'sequel':1, 'jimbo':1} = finald = {'the':10, 'fine':16, 'word':6, 'knight':1, 'orange':1, 'sequel':1, 'jimbo':1}   It is prepering wordcounts for wordcloud. I dont know how to concatenate values of the keys it is puzzle for me. Please help.  Best regards


Salesforce Toolkit for .Net with silverlight 5

I am creating a application with Silverlight 5 in which I have to communicate with Salesforce APIs.  Currently I used Salesforce toolkit for .net (version 1.2.1) by I am gettting error after using authentication method as -     The base class or interface 'System.Object' in assembly   'System.Runtime, Version=4.0.0.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a' referenced by type   'Salesforce.Common.AuthenticationClient' could not be resolved.   System.runtime dll is referenced my application.   And Latest version of toolkit is even not installing in application. There is some compatibility issue with silverlight 5.  As per github and blogs Salesforce Toolkit is compatible with Silverlight 5. I installed it using nuget package manager.  Any idea to fix this ?  Thanks,


How can we deduce the relation $m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}$ between relativistic mass and rest mass in special relativity?

I was watching a video on Youtube which deduce Einstein's relation $E=mc^2$ and the process of deduction used the relation between , which is  $$m= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}.$$   So I look for a nice deduction of this relation.


Why the dimension and edge length numbers does not tally when scaling objects?

I created a plane and set its dimensions to 32m x 4.5m. When using the edge length measurement tool, it shows 1m for every edge in the viewport.       Q: Why it doesn't display 32m x 4.5m in the viewport?


Why is there no permittivity-type constant for gravitation?

When I look at electric or magnetic fields, each of them has a constant that defines how a field affects or is affected by a medium. For example, electric fields in vacuum have a permittivity constant $ϵ_0$ embedded in the electric field expression of a point charge: $E = q/4π ϵ_0r^2$. However, if I put this point charge in some dielectric that has a different  permittivity constant $ϵ$, the value of the electric field changes. On a similar note, magnetic fields behave very similar but have the permeability constant $μ_0$ instead.   From my understanding, I believe that this is not the case for gravitational fields since the universal gravitational constant $G$ is consider to be a fundamental constant. So I am assuming that even though gravitational fields do operate in different types of mediums, this somehow doesn’t affect the gravitational field value. My question is why is this the case, that is, why isn’t there a permittivity-type constant for gravitation?


I'm trying to use \ifthenelse from the ifthen package to vary the size of \headheight within a document. I'd like this to be larger for the first page and then smaller for each subsequent page.   I had thought I could accomplish this using code like the following in my preamble.  \ifthenelse{\thepage=1}   {\setlength\headheight{72pt}}   {\setlength\headheight{14pt}}    Unfortunately, that's not working for some reason. Below is some code that illustrates what I'm trying to do.   \documentclass{article}  %%%% Margins %%%%  \setlength{\textwidth}{6.5in} \setlength{\oddsidemargin}{0in}  %%%% Packages %%%%  \usepackage[usenames,dvipsnames]{color}  \usepackage[lastpage,user]{zref} \usepackage{fancyhdr} \usepackage{ifthen} \usepackage{parskip} \usepackage[pdfstartview=Fit]{hyperref}  %%%% Headers/Footers %%%%  \setlength\headheight{72pt} \renewcommand\headrule{{\color{BrickRed} \hrule height 1pt width\headwidth}} \pagestyle{fancy} \definecolor{light-gray}{gray}{0.65}  \lhead{\ifthenelse{\thepage = 1}               {\textcolor{light-gray}{My Name} \\ [4ex] \vspace{36pt} \textcolor{light-gray}{Telephone Number}}               {\textcolor{light-gray}{My Name}}}  \rhead{\ifthenelse{\thepage = 1}               {\textcolor{light-gray}{Page \thepage \ of \zpageref{LastPage}} \\ [4ex] \vspace{36pt}                \textcolor{light-gray}{Email Address}}               {\textcolor{light-gray}{Page \thepage \ of \zpageref{LastPage}}}}  \chead{\ifthenelse{\thepage = 1}               {{\large\bfseries MY NAME, TITLE} \\                Address Line 2 \\                Address Line 3 \\                Address Line 4 \\ [1ex]}               {}}  \cfoot{}  %%%% Main Document %%%%  \begin{document}  Some text  \newpage \setlength\headheight{14pt}  More text  \end{document}   This code produces the desired output. The drawback though is that I need to manually specify where the first page break should occur and then reset the headheight using:  \newpage \setlength\headheight{14pt}   Is there some way to automate this, using \ifthenelse or some other means? Setting things manually when the contents of the first page change doesn't require much effort, but I'd like to understand what's going wrong and how to do this properly.


hindi text displayed correctly on webpage but inserted wrongly in mysql databse

I am using ajax request to send a value from client side to server side to update in mysql database using ajax request. The value is in hindi language (हिन्दी मतलब जाने). But on client side when i alert it i get the hindi text as shown above but after the server side request is processed it gets inserted in the database as Ã Â¤Â¹Ã Â¤Â¿Ã Â¤Â¨Ã Â¥ÂÃ Â¤Â¦Ã Â¥â‚¬ Ã Â¤Â®Ã Â¤Â¤...While if i use alert in my javascript for request.ResponseText then it shows correctly  as हिन्दी मतलब जाने. Now again if i load the page the updated value gets displayed as ¤Â¹Ã Â¤Â¿Ã Â¤Â¨Ã Â¥ÂÃ Â¤Â¦Ã Â¥â‚¬ Ã Â¤Â®Ã Â¤Â¤... but the values which were not updated previously displays correctly as हिन्दी मतलब जाने.   i have used in the client side  var requestDatah = "values=" + escape(valued) +"&texts=" + encodeURIComponent(texted);     request1h[k].setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8;");     request1h[k].send(requestDatah);   and on the server side header with php  <?php header("Content-Type: text/html; charset=utf-8"); mysqli_set_charset($con,"utf8");   Please help me how to store correctly in mysql and display ?


Group-theoretic proof that $n$ does not divide $2^n-1$.

I know a elementary way to prove that for $n>1$, $n$ never divides $2^n-1$:     Suppose that $n$ does divide $2^n - 1$. Then $n$ must be odd. Let $p$ be the smallest prime dividing $n$. Then $2^{p-1}\equiv1 \pmod p$. Let $m$ be the smallest divisor of $p - 1$ such that $2^m \equiv1 \pmod p$. Since $m$ is smaller than $p$ it must be coprime to $n$, so $n = qm + r$ with $0 < r < m$. Hence $2^r \equiv 1 \pmod p$. Contradiction.   One can find this solution  (it's from an old Putnam exam). But I heard that there is a nice way to prove the claim utilizing group theory and Lagrange theorem. Could somebody provide such a proof?


Why doesn't my loop over the output of ls work?

I am trying to feed Directory names into a for loop.  My code is as follows:  td='/Test/TopDir/' cd "$td"  for x in $(ls -d */ | cut -f1 -d'/'); do   echo x=$x done   The top directory I run this on looks like this when running an ls command:  ls -l drwxrwxrwx    4 Jason    users         4096 May  6 06:36 2014-02-02 - Jebby ( drwxrwxrwx    3 Jason    users         4096 May  6 06:09 2014-02-04 - Jebby ( drwxrwxrwx    2 root     root          4096 May  6 06:09 @eaDir -rw-r--r--    1 Jason    users      3956225 Jan 26 10:17 DSC01062.JPG -rw-r--r--    1 Jason    users      3927603 Jan 26 10:18 DSC01063.JPG   The results of my for loop is as follows:  x=2014-02-02 x=- x=Jebby x=( x=2014-02-04 x=- x=Jebby x=( x=@eaDir   As you can see the for loop is breaking the directory names into sub-pieces after each space.  In this example I only want the For Loop to execute three time with the three directories:    2014-02-02 - Jebby ( 2014-02-04 - Jebby (  @eaDir   What am I doing wrong?


Problem on divisibility (Fermat's Theorem?)

Let $p, q$ be prime numbers and $n \in \mathbb{N}$ such that $p \nmid (n-1)$. If $p \mid (n^q - 1)$ then show that $q \mid (p-1)$.   Using Fermat's Theorem I got $n^{p-1} \equiv n^q \, (\text{mod}\, p)$. How do I get to $p \equiv 1 \, (\text{mod} \, q)$? Have I used Fermat's Theorem correctly or did I overlook some hypothesis?  A detailed proof would be much appreciated.


Give an example of an ideal that is not a subring, and a subring that is not an ideal. For the latter part, let $\mathbb{Q}$ be a ring and consider $\mathbb{Z}$ as a subring of $\mathbb{Q}$. Then we observe that $\mathbb{Z}$ is not an ideal of $\mathbb{Q}$ since the multiplication of integer and rational number gives rational number. But for the first part, I have no idea. Can anyone guide me ?


Make it ask me for my ssh passphrase again?

I am trying to disable all password logins except for that through my ssh key. However now any time I ssh into my server, it just logs in automatically and doesn't prompt me for my ssh decryption passphrase anymore. How can I get it to "forget" and ask me again?


Finding duplicates in two fields using ArcGIS Desktop?

I am using ArcMap 10.2 and I want to find duplicates in 2 columns.  For example,  Street_Name, HSN and ID are my columns.  Street_Name:Pyxis--HSN:24--ID:2356  Street_Name:Pyxis--HSN:24--ID:4234   As you can see in example I want to find same HSN on Same street.  How can I do that? Any ideas?


Use of definite article in "the more" and "the less"

Why is the definite article used in expressions like the more and the less? For example,  The more you study, the more you know. The less you study, the less you know.


Is there a "high temperature" variant of 0 degrees Kelvin?

I know that -273.15 degrees celsius, also known as Absolute Zero or 0K is the low temperature limit for objects, but is it possible that there is a 'highest temperature?'  I would have to guess that it's when it allows objects to reach light speed, but I believe there has to be some 'set temperature' that is the limit for anything. Am I wrong or is there an actual answer?


SPEEDLINK MEDUSA NX 5.1 this is how to setup

I just bought this headphones and i wondered how do i set them up when there is no linux driver for.  I am using ubuntu 14.04


I was working on an important email in Gmail over several days, on both my iPad and computer.  When I look for it now, it's not there. I DID NOT DISCARD THE DRAFT.  It's not anywhere in Gmail, not in trash, not in drafts.  How can I recover this email?


Showcase of brace tricks: }, \egroup, \iffalse{\fi}, etc.

There have been a few questions about braces recently, specifically about when to use them (see  and  question). Note: I had mistakenly stated that SamB was the author of both questions.  But there are other ways to get token lists that behave like braces. For instance,  { and  }  \let\bgroup{ and  \let\egroup}  \def\Egroup{\iffalse{\fi}} and  \def\Bgroup{\expandafter{\iffalse}\fi}  \def\bbgroup{\expandafter{\ifnum0=`}\fi} and \def\eegroup{\ifnum0=`{\fi}}   Of course, this is not a complete list. It would be nice to have a showcase of typical situations where one can/should use each. Share on any brace hack that appears in your macros, or in packages that you've written/read about/used...  I guess one hack per answer.


How to calculate a sensor size when all I know is focal length and resolution?

A lot of the related questions require variables that we simply do not have. I would like to calculate sensor size for a video camera. We have focal length and resolution but I do not know the field of view or crop factor or any other additional camera information. Is there a way to calculate just from this? If I have to have something like field of view angle, can I calculate this without sensor size and then use it to find sensor size?


Null Pointer Exception error while creating array of files

Inside the for loop, depending on if condition, files need to be created every time. While executing the code, NullPointerException pops up.      File[] tempDir=null;      for(  )     {     if(condition){         try {             tempDir[l]=new File(tempFileName);             if(l==0){                 tempDir[l++].mkdir();                 /*code*/             }             if (!tempDir[l].exists()){                 tempDir[l++].mkdir();                 /*code*/             }         }     }


A good title helps your question get the attention it deserves.  What goes into a good title?


When flagging a post or comment, provide a freeform text entry field for all reasons, not just "other"

I'm an elected diamond moderator on one site, and a user of several others. I think it would be extremely helpful for our flagging process if users had the option to enter freeform text explaining their flag on types of flags other than the "in need of moderator attention" flag.  An example of when this is relevant: Sometimes posts have had rude/abusive flags, but the rude/abusive part might be difficult to notice, or it might be a single word or sentence buried somewhere in the middle of the post. Users have to choose between "flag it as rude with no explanation" or "flag it as misc and explain what's going on". Often they'll pick the first because of course it seems like what they should do (e.g. they know the system has special handling attached to rude/abusive flags) but it means they can't explain what's going on to us, so we have to reach out directly in private to find out.  Sometimes it also helps to be able to explain why a comment is no longer needed, because past experience tells me the "no longer needed" flag on its own might be declined on a particular site -- so I pick the custom reason instead of "no longer needed" just so I can provide explanation.  I'd prefer users be able to understand they can pick the appropriate reason and be able to attach any explanation they deem necessary to further direct moderators to the issue. If not for all kinds of flags, then at least for spam or rude/abusive flags.


Can the name under the Bank Account be different from Account holder?

My sister made an iTunes Connect account and signed up for the developer program (she is over 21). I am the developer of the account; i'm just not exactly 18 yet (will be in a couple months).  In setting up the agreements/tax/banking, can she input my bank account information, since it has a different name than that on the developer account? If not, is there anything she can do (add me as a developer or something) to be able to?


Java counting the frequency of words in an array

I'm counting the words and my increment operator is not increasing even after matching with the similar word. And the output is like this   Enter a paragraph to check number of words and its frequency rahul rahul rahul  rahul 0 rahul 0  rahul 0   Scanner y = new Scanner(System.in); System.out.println("Enter a paragraph to the words and its frequency\n"); String para = y.nextLine(); String a = para.toLowerCase(); String array[] = a.split(" "); int l = array.length; int count[]; count = new int[1000]; for (int i = 0; i < l; i++) {     for (int j = i + 1; j < l; j++) {         if (array[i] == array[j]) {             count[i]++;         }     }     System.out.print(array[i] + " ");     System.out.println(count[i]); }


What would happen if we didn't map the kernel's memory in the virtual memory of every process, and force a context switch instead?

So can someone explain to me that what will happen if they did this and how much overhead will this cause, to have a seperate  process for the kernel part of the virtual memory, and make a context switch when a process needs to access it? is it even possible?  and how often do normal user processes even need to jump in the kernel?  do all the base functions like printf and scanf all end up in the kernel part of memory to execute their low level stuff?   I'm asking this because of the meltdown vulnerability, considering if it was implemented this way, then we would be safe from that attack


Is there any way to verify why SSH key exchange between 2 servers is not working?  In Server A: I did the following steps:   ssh-keygen –t rsa cd /.ssh cp id_rsa.pub authorized_keys   Then in Server B: I created the .ssh directory and uploaded the authorized_keys from Server A  I tried logging in from Server A to Server B but the system is still prompting me to enter password.  I tried using this: On server(A) you connect via ssh user1@host? You might try ssh -o PreferredAuthentications=publickey user1@host but it show permission denied Permission denied (gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive).  Any advise on how to check what is wrong? Just additional info in Server A i am not using the root account.


I need to save an animation as an animated GIF.  Can this be done from Blender? cheers.


I made up the word, "performant". Has it occurred in the English language?

By , I mean something that performs well. A piece of computer program code could be performant, meaning that enough thought went into it to make it perform well, making it an adjective; likewise, a merchant banker could be performant, meaning his performance record monetarily is in good stature.  A close cousin would be  (from ).  If you describe an athlete, you're allowed to say he's fast without having to compare to any competing athlete. In the same way, it should be possible to say a person is performant - whatever his field of endeavor.   Or, indeed, his or her works, without the person involved.  The works of an artist, writer, or musician might be , from . Isn't it a fact that some professions simply measure works by performance?  Twice removed from a person, a product could be performant in a market, meaning it performs well in sales, due to any reason, not exclusively its qualities.  It seems clear that  is not a complete synonym, although I would accede it for describing a piece of computer program code's performance.  Has it occurred in the English language, or are there existing words similar in meaning to what I described that I can use instead?


How do I mirror the faces of a cube (edit all of them when I edit one)?

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


How to print PowerPoint 2010 slides after animation?

I have an animation on a couple of slides in my PowerPoint 2010 presentation. I would like to print the slides in the "post-animation form" (i.e. in the state the slide finishes when the animation is done) but instead I am getting an "initial-state" for each object on the slide. Is there a way to either print or save-to-PDF the slides in the post-animated form, except for removing the animation?  Thank you very much.


Very new to Python.  I have a Python script with a menu. At one selection, I want to start or call another script but it's BASH. The result is put in a text file in /tmp. I want to do this: Start Python script. At menu selection, have it start the BASH script. At end return back to Python script which processes the file in /tmp. Is this possible? How would I do it?


Prove that $\sum_{cyc}\frac{a^2}{ca^2 + 2c^2} \ge 1$

$a$, $b$ and $c$ are positives such that $ab + bc + ca = 3abc$. Prove that $$ \sum_{cyc}\frac{a^2}{ca^2 + 2c^2} \ge 1$$   Here's what I did. My stupidity has reached a spiritual level.  We have that $ab + bc + ca = 3abc \implies \dfrac{1}{a} + \dfrac{1}{b} + \dfrac{1}{c} = 3$.  $$\sum_{cyc}\dfrac{a^2}{ca^2 + 2c^2} = \sum_{cyc}\dfrac{1}{c}\left(1 - \dfrac{2c}{a^2 + 2c}\right) \ge \sum_{cyc}\dfrac{1}{c}\left(1 - \dfrac{2c}{2c + 2a - 1}\right)$$  $$ = \left(\dfrac{1}{a} + \dfrac{1}{b} + \dfrac{1}{c}\right) - 2\sum_{cyc}\dfrac{1}{2c + 2a - 1} \ge 3 - \dfrac{2}{9}\sum_{cyc}\left(\dfrac{1}{c} + \dfrac{1}{a} + \dfrac{1}{c + a - 1}\right)$$  $$ = 3 - \dfrac{4}{9}\left(\dfrac{1}{a} + \dfrac{1}{b} + \dfrac{1}{c}\right) - \dfrac{2}{9}\sum_{cyc}\dfrac{1}{c + a - 1} \ge 3 - \dfrac{4}{3} - \dfrac{1}{18}\sum_{cyc}\left(\dfrac{1}{c - \frac{1}{2}} + \dfrac{1}{a - \frac{1}{2}}\right)$$  $$ = \dfrac{5}{3} - \dfrac{2}{9}\left(\dfrac{1}{2a - 1} + \dfrac{1}{2b - 1} + \dfrac{1}{2c -1}\right)$$  I am done with my life.


Search specific word inside document using ssh

Currently i have to analize some big files looking for a espefic word in .css  located on my /var/www/ located on ubuntu server (ssh). There a way to make something like Ctrl+f in windows programatically in ubuntu to search the words ?  Or just i have to use some ftp tool to download my file in windows and looking for there ?


I don't see any option for sharing the screen as we see in this .  Also, the sharing button automatically switches off if I navigate away from this screen. If I try to share the entire screen from the browser(during discussions), a black page is shared.  vino is already the newest version (3.22.0-3ubuntu1). I've tried many available solutions related to this issue. I don't know what's wrong. Kindly help. The ubuntu version I'm using is 18.04


How to include a pdf in LaTex along with other texts on the same page

I already know how to include pages of a pdf file into a LaTex document. However, I actually want to include a pdf along with some other texts, such as a topic, on the same page. Can anyone please give me the correct code that I should write?


I want to install java in an Ubuntu server in the Amazon aws. How Can I find the model number of that server so I can install the right version of java?


I recently was convinced of the benefit of using align over eqnarray, but I am really not writing \begin{align} ... \end{align}  every time, so I just did what I always do: \def\bea{\begin{align*}} \def\eea{\end{align*}}  However, align do not seem to work with my defined commands. I even tried other ways of defining, with \let and \newcommand, but none seem to work. I always get the same error. To give an example, if I type: \bea     E = mc^2 \eea  which is very simple, I still get:  Runaway argument? E &= mc^2 \eea ! Paragraph ended before \align* was complete.  \par  However if I write the full commands, it does work. How can it be so and how do I solve it? I know LaTeX only expands \eea into \end{align*}, so there should be no way one can result in error and the error cannot.


Comparing Byte Arrays In C# (without for loop)

What is the best way to compare two byte arrays in C#? I do not wish to use a for loop.  I have the following arrays:  byte[] hashBytes = Convert.FromBase64String(pass);   and:  byte[] hash = pbkdf2.GetBytes(20);   I have tried using:  bool isEqual = Enumerable.SequenceEqual(hashBytes, hash);   However, it always returns false.


How do I force a player turn his head when i hit them?

Is there anyway that can force a player that I have hit to turn his head upward? I try to create something like an uppercut in 1.15.2 minecraft multiplayer server. I believe it is related to damagedealt scoreboard and hurttime detection but i dont know how to put them together though.


using $$ in a post causes strange number series to appear

So, in one of my recent Code Review questions, I have a function $$ and posting it (even inside the code block) causes the following issue.  So you can see that my code looks like the following:    but then in the post:    All the space between the two dollar dollar blocks is seemingly replaced with a series of numbers, a key perhaps. (I blurred it out, just in case)


Calculate Distance to Object in Android knowing the Size, Focal Length

I'm trying to find the distance to an object with my Android.  I know the real size of object, also done some camera calibration with OpenCV to calculate focal length, camera matrix and distortion parameters as well. To easy up the question, it's assumed that the orientation is 0 degrees (can compute the angle of the android device when detecting the object)    My previous method was using some sort of manual calibration:  - Calculated the area in pixels at several known distances and saved both values (area and distance). Every time I see the object i compute a regression based on the area measured. But this method is obviously inaccurate.   So based in the parameters I know that I mentioned above, what do you recommend as best method?   Cheers


Why divide surface area to volume for strength in living beings?

As the title says, why divide surface area to volume for strength in living beings ? I mean why all surface area ? Shouldn't it be area touching the ground ? Thanks in advance! :)


Prove that any (simple, undirected) graph $G = (V, E)$, with $m = |E|$ edges has chromatic number $χ(G) ≤\sqrt {2m} + 1$.  Could any please give me any hint about this question? I don’t know how to start it. Maybe induction?   Edit: I'd say they seem similar but it's hardly the same question


How make a specific color have a different shader

So this is my output and material node setup:    As you can see I want the marked portions to have a glossy shader.  There is another question similar to mine which has been answered here :    But, I don't know how to integrate that solution into my shader as I'm using a Color Ramp.


Why $L$-structures cannot satisfy a contradiction

Looking at Tarki's semantics wrt First Order Logic, I have some problems in pinning down the true reason why, given an $L$-structure $M$, and any $L$-sentece $\sigma$ (atomic for simplicity), we have $$M \not\models \sigma \wedge \neg\sigma$$ In this context, structures are sets with given functions and relations that interpret their symbolic counterparts. Given the actual definition of "$\models$", everything boils down to the fact that the sets we are working with are well-behaved, in the sense that we cannot have $$a \in P \wedge a \not\in P$$ But then I ask myself why the reason behind this. Is it a "consistency" assumption we are making on these sets? And if these sets are described by ZF, are we assuming the consistency of ZF?   Thanks


Noether's first theorem and classical proof of electric charge conservation

How to prove conservation of electric charge using  according to classical (non-quantum) mechanics?  I know the proof based on using Klein–Gordon field, but that derivation use quantum mechanics particularly.


How do you describe "x > y > 5 ", inequality or inequalities?

x > y > 5   ... (1)   This is a combination of two inequalities; x > y and y > 5 , so should this be described as "inequalities" not "inequality"? For example, which of the following is suitable?        Solve the inequality (1)   Solve the inequalities (1)


I have a IN clause query in which I pass this ID'S (10,19,23,24,28,33,45,46,1,4,7,8,12,16,18,22,29)  My query is,   SELECTpost_jobs.idFROMpost_jobsWHEREidIN(10,19,23,24,28,33,45,46,1,4,7,8,12,16,18,22,29)  It execute correctly and returns result first id likes 1 then 4 then 7 and so on...that is ascending order  My Need is to get first result of id 10 then 19 then 23 as the order of ID that I passed is there any way to get such type of result in output.


How to dynamically add jar to classpath in java

So, I won't go into detail into why I can't add it normally through an IDE, but I need to dynamically add a local jar to my classpath at runtime, how would I do this?


Expectation of an absolute value of a normal random variate

Given that a random variable $X$ is a normally distributed variable with mean $\mu$ and variance $\sigma^2$. Why exactly is:  $$\mathbb{E}[|X|] = \mathbb{E}[X\mid X>0]P(X>0) - \mathbb{E}[X\mid X<0]P(X<0)$$  Because we have that:  $$\mathbb{E}[X\mid X>0] = \frac{\int_0^\infty xf_X(x)\,dx}{P(X>0)}$$  Therefore my definition immediately above must be incorrect?  Because if it is not we have that:  $$\mathbb{E}[|X|] = \int_0^\infty xf_X(x)\,dx - \int_{-\infty}^0 xf_X(x)\,dx$$  and where does the minus there come from anyway, and why?


Given $I,J$ ideals of $R$, show that $\forall m \geq 1; I^m + J^m =R$

Given $R$ a commutative ring and $I,J$ ideals of $R$, such that $I+J=R$, show that $I^m+J^m=R, \forall m \geq 1$   My problem is that I don't know what is the meaning of $I^m$ and in literature I didn't find anything. I know that, given $A,B$ ideals, then $AB= \{ \sum_{i=1}^n a_ib_i |a_i \in A, b_i \in B, n \in \mathbb{N} \}$, but with this notation $I^2=II=I$, so what is the meaning of $I^m$? It could be $I^m = \{ x^m | x \in I \} $?


I am new to Ubuntu. Please help me with the following question. what is the meaning of ~/ in ls -la ~/


I got hold of this computer and I am wondering if anyone would enlighten me as to whether it will be able to run ubuntu . I am new to the linux world and need advice.  I have a Dell Precision M4500 Core i7 M640  15.6"  2.8GHz  8GB RAM 500GB  HDD  1920 x 1080    I think The Unit is probably older than Alabama if it can run a proper version of Linux Ubuntu I down with it.  Thankyou good neighbors Cad Willager  Cad


$\sum_{n=1}^{\infty}\frac{1}{n^{1+\left|{\cos n}\right|}}$ - convergent?

Is $\sum_{n=1}^{\infty}\frac{1}{n^{1+\left|{\cos n}\right|}}$  convergent?  Yes because $|\cos n|>0$  and   $\frac{1}{n^ \alpha}$ is convergent for $\alpha>1$.  Is this a good way?


Can you explain the sentence structure 'In a hole in the ground there lived a Hobbit'? Why put the verb before the subject?

The opening sentence to The Hobbit by J.R.R. Tolkien reads,     In a hole in the ground there lived [verb] a hobbit [subject].   I wonder if there are accepted stylistic purposes for such a structure.  When is it natural, and when is it unnatural?


Time Machine does not complete ‘preparing backup’ step and shows no progress

I am stuck on ‘preparing backup’. I have tried to cancel the inProgress folder in the backups but still Time Machine doesn't work. Time Machine is just stuck for hours and I do not see any progress at all in the backup. The hard drive for the backup has a lot of free space.  I have tried all the potential solutions given in  but the backup is still unable to proceed.  MacBook Air (13-inch, Mid 2013), High Sierra 10.13.4.


How can I make a /testfor command emit a signal when there is only one player in the required area? I understand /testfor @a[x=,y=,z=,r=].


Is this a comma splice?   What makes a sentence a comma splice?     Being left at the altar on her wedding   day, Pamela became furious.


After reading it, this is not a duplicate of . The answer may be related (or even the same) but the question is different.    What is the difference and what should go in each?  If I understand the theory correctly, the query optimizer should be able to use both interchangeably.


What does the equation $P=\vec{F}\cdot \vec{v}$ really mean?

Let's say that we have a car travelling at a constant velocity (V) on a flat plane , let's assume that it's applied force or the force applied from its engine ( Fapp ) balances the frictional force ( Ffrict ) , hence the power due to Fapp is equal to Fapp×V , now let's assume that the same car now moves up an incline with the same engine power as previously stated and at a constant velocity ...but this time it will travel at a much lower constant velocity since the force which the engine exerts is much higher now in order to balance Fparalell and Ffrict , but what I don't understand is what caused this reduction in velocity , if the engine applies an equal force to that of the counteracting forces shouldn't that mean that there is no net force hence no change in velocity ,also if p=FV and if we now apply a greater force for the same velocity V why does the power increase , I know the answer can be simply explained using mathematics but my intuition says that power is the rate at which kinetic energy is transferred to a particle , so why would a greater force at the same constant velocity mean that you are transferring a greater amount of KE per unit time ?


Are there any known methods of finding peers without using a dedicated central server?  ie: If I have peers which are disconnecting and reconnecting to the internet but getting a new IP address each time, and I want to connect to them without setting up a dedicated server to register with.  I was thinking about using peers email address to send a manifest of connected peers periodically, with some sort of timecode, negating the need for a dedicated server.  This would be a fallback if none of the peers could be connected to after trying all the previously known peer addresses.  But existing models of finding peers would be preferable.


frequency modulation and incoming signal selection

I have some understanding of what frequency modulation entails - it entails "adding" a new frequency to the frequency spectrum of a signal. But how, exactly, is a modulated signal selected in the receiver? Say you're listening to your car radio and want the radio signal modulated at 80 Hz or something. How does the actual system select it? In general, not in car radios specifically.


A Mars based movie where the mission crew discover ancient-advanced martian installation revealing humans are a product resulted of martian DNA?

I've been trying to remember the name of a Mars based movie. The plot takes place in the near future when the first mars man mission just leaves the earth.  While inside the martian installation, the mission crew are revealed that humans are a product resulted of martian DNA left by the martians (to be seeded on earth) millions of years in the past right after they left their planet behind.


What is the fastest method of parsing an XML file in C#? I'm using .Net 2.0


Best way to reward an exceptionally good answer

Have you ever gotten an answer soooo good, you wished you could give a +20 instead of +1 ?  Bounty System  That's a good mechanism, but they're not always right for this situation:   Bounties are usually associated with giving incentive to answer or draw traffic. I would expect that most users offered bounties before getting an answer, not after. Bounties are usually offered by people with plenty of reputation. "New" users should be able to reward exceptional answers too.   Thanking in a comment  A warm comment on the answer is always nice, but I'm not sure comments are intended for saying thanks - but to clarify / improve the answer itself.  So what is the recommended way to reward this truly exceptional answer?  Other suggestions?  I know there is an answer of the week blog, is there a way to nominate an answer to be there? Sometimes exceptional answers are hidden in low-interest questions that receive less traffic - so those will never be upvoted enough to become noticed.  Or maybe instead of a single blog for the entirety of SO, there should be an entire section called "Answer of the week" with more than one answer (maybe on a per-tag basis). Answers should arrive there based on manual nominations and not on upvotes so unpopular questions will not be discriminated against.  Clarification:  It's not that I'm personally against bounties - I use them plenty of times. I'm mostly concerned about what other people tend to do. I suspect the bounty post-answer reward is not used as much as it should. I believe the majority of people don't consider bounties for this purpose.


Multiple mortgage pre-approvals and effects on credit score

Background Info: My wife and I are looking to purchase our first home/condo. Given our combined gross annual income of ~$100k and lack of any actual debt, we're looking at properties in the $200-250k range. We currently have enough cash to put down ~10% and some semi-liquid stock assets (UTMA funds) to bring that up to 15% and have still some emergency cash. We wanted to save up 20% to avoid PMI and tax escrow and whatnot, but we ran the numbers and decided we'd be paying less than rent even with PMI and such included. Apparently we have to continue paying PMI for at least 2yrs (at least with our bank we would), but our plan is to pay down the principal faster and keep the PMI to a minimum.  Question: It seems that getting pre-approved (not just pre-qualified) for a mortgage can help make the decision between you and another non-pre-approved applicant and makes closing quicker and easier (with some of the leg work up-front), but I'm having troubles reconciling that with 1) getting multiple quotes for mortgage rates (which tend to change from time to time :p) and 2) limiting potential damage to your credit score from multiple hard-pulls.  My understanding is that (correct me if I'm wrong here) a pre-approval would require a hard-pull of both of our credit reports from all three bureaus as well as additional info like proof of income, tax returns, residence history, etc. (requirements here may depend on lender, but my understanding is that they [generally?] get scores from all three and use the middle one, and I don't know if it's possible, or even worth it, for them to get scores without the report - credit reports & scores continues to be a confusing matter)  Any pulls within the same ~30 days count as one credit inquiry as far as credit-scoring is concerned, though, so it would seem to make sense to have all potential lenders pull it within that time period. I'm considering four lenders (two brokers recommended by friends, one broker recommended by Google maps reviews, and my standard local/national/international bank - too many?), which seems like a lot of work, but I assume much of that will be similar for all four (e.g., we don't have different tax returns, income stubs, etc. to give to different lenders - they'd all be the same).  I'll sum this up in two somewhat-competing questions:   Assuming you're within the 60-90 days that the pre-approval is valid for, will the lender do another hard-pull before approving the final loan? I assume not, but if that's not the case, it would seem to weaken the argument of getting multiple pre-approvals right away b/c you could have just had one done, find the best rate later, and close with the lender with the best rate (who would then do a final pull). If you just get pre-approved from one lender, what's to say they'll have the best deal when you decide to close? (no matter which method you use to pick that one initial lender)   Alternatively, am I over-thinking this? I do tend to do that, and perhaps an initial pull and a later final-pull won't hurt that much anyways... After all, the final-puller would know what the initial pull was all about...


Has anyone in this community been through this book in its entirety? I started it about 18 years ago when I was just beginning undergraduate mathematics study and couldn't make any headway past the first three chapters. Now before you all start asserting that this is a much more advanced text than the undergraduate level, let me just say that even now, with the benefit and maturity of graduate studies I still have trouble getting past chapter 5 in this text. I realize that this is a concise, condensed presentation of results (hence the scarcity of examples) but my problem with this text is the complete lack of motivation for its results. Take for instance the Consistency Theorem and Herbrand's Theorem in chapter 4. I've tried hunting down the original works where these results first appeared,  for more background and examples, but these works either not available or, when they are, they're too obscure to read. Reverting to other, more elementary texts, is of no use either. They're either too elementary and deal almost exclusively with the basic predicate calculus (as if everyone needs a new text daily for THAT), or are equally inaccessible and by the time you master the author's favorite notation you're already lost in the abstraction. Is there any hope for material that introduces the advanced results more gradually, through background and examples, and more importantly through motivating questions? Motivation would be especially helpful with the advanced results of model theory presented in Chapter 5.


Subgroup which is generated by odd elements

Let $G$ be a finite Group, let S=$\{s_1,s_2,s_3 ... |s_i\in G $ has odd order $\}$. Let $H=\langle S\rangle$ The question is:   Prove that $H$ is normal subgroup of $G$. prove that $G/H$ has order $2^k$ for $k \in \mathbb{N}$.   I tried look at $$gHg^{-1}$$ but can't understand why $gHg^{-1} \subseteq H$ probably because I cant understand what unique in H. Thanks much for help.


Why is plural -s used in "collecting stamps", but not in "stamp collecting"?

I was wondering why in some cases, both phrases mean the same thing, and one phrase has the plural -s and the other does not? Eg:     Collecting stamps (plural -s)   Stamp collecting (no plural -s)   Is that in the 1st scenario, the word "stamps" is a complement to the gerund "collecting" and in the 2nd scenario, "stamp" acts as an adjective and the linguistic structure of an adjective does not have the plural -s?


How can I persistently remap keys in Ubuntu 16.04?

This is working for the current session:  costales@dev:~/Desktop$ xmodmap -e "keycode 166 = less" costales@dev:~/Desktop$ xmodmap -e "keycode 167 = greater"   Then I created this config file:  costales@dev:~/Desktop$ cat ~/.Xmodmap  keycode 166 = less keycode 167 = greater costales@dev:~/Desktop$    But it's not working after a reboot. How could I force the remap to survive reboot?


Proof of No Unique Factorisation in $\mathbb Z[\sqrt{d}]$ for $d \leq-3$

How would I prove there is no unique factorisation in $\mathbb Z[\sqrt{d}]$ for $d \leq-3$, where $d$ is a square-free integer?   I think it's something to do with the only invertible elements being $\pm 1$


Are scientists missing the point with distant cosmic objects, or is it just me?

I was reading this article this morning:    Scientists have discovered a gamma-ray burst whose light has taken 13.14 billion years to reach Earth. This much is cool and interesting. However, the assumption is then stated that this is "the most distant single object yet spied by a telescope".  But hold on a minute. It is also known that galaxies are moving away from each other at incredible speeds, most faster than the speed of light, because the space/time between them is expanding (or something like that... I'm no scientist!)  So these so-called amazingly distant objects, well for starters, they don't exist any more... They are things that happened billions of years ago. But not only that, they are probably objects that were only a few million light years away from us when they actually took place. So surely then, the objects themselves aren't the most distant ones, but the light from them has been distorted such that the light has taken that long to reach us?  Furthermore, if the galaxies are spreading out faster than the speed of light, who is to say this explosion actually happened 13.1 billion years ago? Isn't it possible that the light was created say 5 billion years ago, but has taken much longer to reach us because of the expanding space between the galaxies?  I'm sure this stuff has already been considered by scientists, but I find it weird the way news articles always assume that just because light travels at a specific speed, that it's always going to take the same amount of time to reach us.  Or am I getting it wrong? I'd love to know!  EDIT: For people discussing the whole faster-than-light-speed thing, I came across :     As you look at galaxies further and further away, they appear to be moving faster and faster away from us. And it is possible that they could eventually appear to be moving away from us faster than light. At that point, light leaving the distant galaxy would never reach us.   When that happens, the distant galaxy would just fade away as the last of the photons reached Earth, and then we would never know it was ever there.   And :      That mysterious dark energy force, which is accelerating the expansion of the Universe is making the most distant galaxies move faster and faster away from us. Eventually, they will cross an event horizon and appear to be moving away from us faster than the speed of light. At this point, any light emitted by the galaxy will cease to reach us. Any galaxy that crosses this horizon will fade away from view, until its last photon reaches us. All galaxies will disappear from view forever.


How to configure Subversion to send email to all developers and administrators when I commit source code?


What should I do when Windows Boot Manager comes instead of GRUB, even after boot repair?

I know that this question has been asked before, but none of the solutions have solved my problem.   Ubuntu boots and runs properly with the USB I used to install it plugged in to the computer, but when I shut down, remove the USB, and reboot, Windows Boot Manager appears. I am very confused why my computer wants anything to do with Windows because I chose to wipe my drive when installing Ubunbu.   I have tried using Boot-Repair, but Windows Boot Manager still launched when I restarted without the USB.  is the log from Boot-Repair.


install windows after installing ubuntu and kali?

Hello  have dual boot my laptop Running Kali linux 1.0.7 and Ubuntu 14.04. For some Application i need windows,As wine does not support that apps and not have sufficient RAM to run windows in virtual machine, my Question: i have ubuntu's grub loaded in my laptop, so when i delete kali linux partition and made un-allocated space , can i install windows 7 in that un-allocated space? if yes after installing windows 7 should i need to re-install grub (i don't think so because i have ubuntu's boot loader) and install kali after installing windows 7


Prove that $a \equiv b \mod n \implies\frac{a}{c} \equiv \frac{b}{c} \mod n$

I’ve found this problem in a number theory book, it says: If $a \equiv b \pmod n$ with $c>0$ and $\gcd(c,n)=1$, prove that $$\frac{a}{c} \equiv \frac{b}{c} \pmod n$$ It seems trivial but unfortunately i don’t know how to prove it . I don’t know is it necessary to $c\mid a,b$ Because if $c\nmid a,b \implies \frac{a}{c} \notin \mathbb Z$ But modular arithmetic deals only with integers (I’m new to congruences  so maybe I’m wrong.)


Ensuring my application complies with SSL3.0 being disabled?

I have developed an application in C# that makes use of the Salesforce API via a WSDL and need to ensure that the upcoming disabling of SSL3.0 will not affect functionality. I have never had to do any specification of the security protocol when using the webservice, so I am not sure what to do.  How do I:   Determine what protocol is currently being used in my implementation. Set it to use TLS (if necessary)


How to learn the language for a stay in Ukraine?

I am considering to live in Kyiv for a couple of months. I visited the city last summer and it pleasantly surprised me. I would like to learn the local language to make my way around easier. Any suggestions?


When I try to label the polygon on my Leaflet map I always get the error:     t is undefined   I am trying to do it as shown below:        <title>Page Title</title>     <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />

        I want to show some text inside the polygon. I've tried to accomplish it using label but unable to do it.


Does a run score if the batter is tagged for the 3rd out before he reaches first?

There is a runner on third with two out. Batter hits a slow roller to first base. First baseman charges and picks up the ball. Runner from third crosses home. First baseman tags the runner running from home to first, does the run count ?


If $x=(x_1.x_2,x_3,...,x_n,...)$ and $\sum^\infty_{k=1} |x_k|^p<\infty$,$p\geq 1$ can you help me to show that $\lim_{k\to\infty}|x_k|^p=0$?


I'm trying to sequence frames into video, and I noticed all of my output is a bit darker than it should be. So I set up a pure white render through the compositor, and that's gray too.  compositor setup (through testing, "Use Alpha" and the Alpha slider do not impact the result)    compositor is enabled    nodes are active in the compositor    and this is what I get, a gray render    I don't have film transparency enabled. This seems super odd  EDIT: it does appear that the output is white, w/ values of R:1 G:1 B:1, but clearly it is gray


In the bibliography, is it possible to adjust the page header to include the range of references?

In dictionaries (of all sorts), it is usually the case that one has some sort of range expressed in the page headers, for :    I am writing a large document with Bibtex, natbib, and a numerical citation style. My bibliography spans many pages -- an [attempt at a MW] example is below:   \documentclass[openany,a4paper]{memoir} \usepackage{filecontents} \begin{filecontents}{Bibliography.bib}  @article{Bayes1763, author = {Bayes, Mr. and Price, Mr.}, doi = {10.1098/rstl.1763.0053}, journal = {Philos. Trans.}, pages = {370--418}, title = {{An Essay towards Solving a Problem in the Doctrine of Chances. By the Late Rev. Mr. Bayes, F. R. S. Communicated by Mr. Price, in a Letter to John Canton, A. M. F. R. S.}}, url = {http://rstl.royalsocietypublishing.org/content/53/370.short}, volume = {53}, year = {1763} }} @Book{test1,   author    = {Goossens, Michel and Mittelbach,                Frank and Samarin, Alexander},   title     = {The LaTeX Companion},   publisher = {Addison-Wesley},   location  = {Reading, Mass.},   year      = {1994}, } @article(test2,} @article{test3,} @article{test4,} @article{test5,} @article{test6,} @article{test7,} @article{test8,} @article{test9,} @article{test10,} \end{filecontents} \usepackage[T1]{fontenc} \usepackage{leading} \usepackage[numbers,square,comma,super,sort&compress]{natbib} \bibliographystyle{ieeetr}  \settrims{0pt}{0pt} \setlrmarginsandblock{3cm}{2.25cm}{*} \setulmarginsandblock{2.4cm}{*}{*} \checkandfixthelayout[classic]  \pagestyle{ruled} \chapterstyle{ruled} \begin{document}  \frontmatter \chapter{Page 1} \leading{50pt} %Try and break onto a second page sooner. I am an irritating \LaTeX{} test.\cite{Bayes1763,test1,test2,test3,test4,test5,test6,test7,test8,test9,test10} \bibliography{Bibliography} \end{document}   How may I display the range of citations in the header, i.e. something like "Bibliography --- [No. First on page]--[No. Last on Page]" above the page?


I recently got Ubuntu 16.04 alongside my Windows 10 installation. I got steam since I mostly use my computer to play games. I downloaded CS:GO and clicked play. First weird thing I noticed. It didn't say "Launching Counter Strike Global Offensive" and it didn't pop up in the dash. On my steam library it said Counter Strike Global Offensive - Running. Everything was still fine on Ubuntu besides the fact that CSGO wont start. Help would be appreciated Here is what the terminal says when i run CSGO with it:  Generating new string page texture 155: 128x256, total string texture memory is 2.67 MB Installing breakpad exception handler for appid(steam)/version(1468023329) Game update: AppID 730 "Counter-Strike: Global Offensive", ProcID 5470, IP 0.0.0.0:0 ERROR: ld.so: object '/home/dylan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/dylan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. pid 5473 != 5472, skipping destruction (fork without exec?) ERROR: ld.so: object '/home/dylan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/dylan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. libGL error: unable to load driver: r600_dri.so libGL error: driver pointer missing libGL error: failed to load driver: r600


Changing DPI of Composer Output in QGIS?

I need to export and print a high quality raster image as a pdf from QGIS 2.18.    No problem exporting the image as a pdf from composer but how can I change the DPI output to maximize quality?


Add a list of appendices to classicthesis

I'm using classicthesis for my dissertation. By default the TOC begins with "List of Figures", "List of Tables", and "Listings", as can be seen in the Contents.tex source file.  As per university style requirements, I need to add a "List of Appendices" section.  Modeled on the sections above it in Contents.tex, I've added the following code to produce a "List of Appendices".  %---------------------------------------------------------------------------------------- %   List of Appendices %----------------------------------------------------------------------------------------  \refstepcounter{dummy} \addcontentsline{toc}{chapter}{List of Appendices} \pdfbookmark[1]{List of Appendices}{List of Appendices}  \chapter*{List of Appendicies} Appendix \ref{app:1} Foo \pageref{app:1}\\ Appendix \ref{app:2} Bar \pageref{app:2}\\ Appendix \ref{app:3} Baz \pageref{app:3}\\  \vspace*{8ex} \newpage   But this is inelegant. Is there a way to do this so appendices are automatically picked up and listed, the way figures, tables, and code listings are?  Currently, I declare my appendices in main.tex as:  \include{Chapters/Chapter0A} \include{Chapters/Chapter0B} \include{Chapters/Chapter0C} ...   so they are already listed individually in the TOC.  According to the style requirements, the TOC should include a separate "List of Appendices" entry, and below, only display an entry for the beginning of the set of appendices, called "Appendices".  In other words:     TOC      Dedication   Acknowledgements   Foreword   Abstract   List of Figures   List of Tables   List of Appendices   Introduction   Chapter 1   ...   Chapter N   Conclusion   Appendices   Bibliography     And the "List of Appendices" section should appear as:     List of Appendices      Appendix A    Foo    X   Appendix B    Bar    Y   Appendix C    Baz    Z   ...   analogously to "List of Figures" say.


C++ is executing cmd command by input possible?

I want to create sth like: int main () {     string s{};          std::cout << "Enter CMD: \n";          getline(cin,s);          system(s); }  But since I can use only const char on system, its not working at all, is there any different solution to this? mabye shellexecute?


Is it possible to use JS to open an HTML select to show its option list?

Is it possible to use JavaScript to open an HTML select to show its option list?


Is it true, that $\lim_{x \to \infty} {\bigg(\frac {\int_a^b{g^{x}(t)dt}}{b - a}\bigg)}^{\frac {1}{x}} = max(g(t))$?

Is the statement, that $\lim_{x \to \infty} {\bigg(\frac {\int_a^b{g^{x}(t)dt}}{b - a}\bigg)}^{\frac {1}{x}} = max(g(t))$, where max(g(t)) is the maximal value, taken by function g(t) on [a, b], true for each real-valued function g(t), that is continuous on [a, b] and takes only positive values on it?  I could neither prove it, nor find any counterexamples to it.  Any help will be appreciated.


I've created a command to count the number of sessions each user on our server has. It is:  who | awk '{ print $1}' | sort | uniq -c | sort   which works fine, but when I move this into an alias on the server I'm only get the return of who,  alias who_con="who | awk '{ print $1}' | sort | uniq -c | sort";   I thought it might have been the double quotes so I tried single quotes for the encapsulation but I have the same behavior,  alias who_con='who | awk "{ print $1}" | sort | uniq -c | sort';


If a linear map, $φ: U→V$ is bijective, then $φ(x)=0$ has only the solution $x=0$.  "an attempt":  $$φ(0)=φ(0\cdot x)=φ(0)+φ( x)$$


During a discussion, I was trying to make a point; I told the woman I was speaking to,     You're wrong! I have a girlfriend who plays videogames!   This backfired; she assumed I had a girlfriend. How does one refer to a female/male friend?


Is it possible to add some disk space to ubuntu installed drive?if then what is the way?

I have installed Ubuntu in a drive that has low disk space I need more space on that disk. How can I add more space to that disk?     NAME   FSTYPE LABEL            UUID                                 MOUNTPOINT  sda                                                                  ├─sda1 ntfs   System Reserved  6A60F08B60F05F6F                      ├─sda2 ntfs                    DE921B35921B119F                      ├─sda3 ntfs   Software & Study 04747C18747C0EA4                      ├─sda4                                                               ├─sda5 ntfs   Videos           E8B4589FB45871D4                      ├─sda6 ntfs   Audio & Natok    C616AD7C16AD6E5D                      ├─sda7 ntfs   SSSS             464C2B9B4C2B8531                      ├─sda8 swap                    ee80a977-2201-4144-b63a-53ac92557ab4 [SWAP] └─sda9 ext4                    1d5eb22e-590d-4773-abb5-80906f0709d0 / sr0                                        Filesystem      Size  Used Avail Use% Mounted on udev            2.9G     0  2.9G   0% /dev tmpfs           591M  9.1M  582M   2% /run /dev/sda9        26G   21G  4.1G  84% / tmpfs           2.9G   77M  2.9G   3% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           2.9G     0  2.9G   0% /sys/fs/cgroup cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           591M   76K  591M   1% /run/user/1000 /dev/sda3       127G  110G   18G  87% /media/sazib/Software & Study


Is it possible to change the tab order of MENU_LOCAL_TASK items on a given page?

I have created a couple MENU_LOCAL_TASK items for my advanced search page in Drupal 6, but they appear at the end of the tab list on the far right. I would like my new items to appear first in the list of tabs.   Is there an easy way to accomplish this? I tried setting the weight of my new task items to -99 but this appeared to do nothing.


Why are the orbits of planets in the Solar System nearly circular?

Except for Mercury, the planets in the Solar System .  Is this property special to the Solar System?  :     Most exoplanets with orbital periods of 20 days or less have near-circular orbits of very low eccentricity. That is believed to be due to tidal circularization, an effect in which the gravitational interaction between two bodies gradually reduces their orbital eccentricity. By contrast, most known exoplanets with longer orbital periods have quite eccentric orbits. (As of July 2010, 55% of such exoplanets have eccentricities greater than 0.2 while 17% have eccentricities greater than 0.5.) This is not an observational selection effect, since a planet can be detected about equally well regardless of the eccentricity of its orbit. The prevalence of elliptical orbits is a major puzzle, since current theories of planetary formation strongly suggest planets should form with circular (that is, non-eccentric) orbits.   What is special about the Solar System that orbits of planets here are nearly circular, but elsewhere they are moderately or highly eccentric?


In Amazon EC2, where I set "security groups", It says: Source:  0.0.0.0/0 And then it gives an example of: 192.168.2.0/24  What is "/24"?  I know what port and IP is.


Getting the name of a symbolic link from shell script

So I have a symbolic link called "script_link" and another called "script_link2" and they are both pointing to a bash script (this is hypothetical, I could have a lot more than 2 links to the script). In my script, how can I get the name of the link that called the script? So if I type "./script_link" in the shell, I want my script to echo "script_link" and if I type "./script_link2", I want it to echo "script_link2". Is there anyway to do this in bash?


My homework key says that a is the correct answer, but I'm unsure why. How does the addition of "three props" change anything? In other words, how do I recognize when to apply this rule: "Use a colon after an independent clause to introduce a list ofparticulars, an appositive, an amplification, or an illustrative quotation".  Which of the following statements uses colons correctly?  a.  Your dedicated whittler requires three props: a knife, a piece of wood, and a back porch.  b.  Your dedicated whittler requires: a knife, a piece of wood, and a back porch.


Reading the data from a glucometer externally with a microcontroller or arduino board

What would be the easiest way to read data from a USB glucose meter externally with a microcontroller or arduino board and not with the software that is provided. So how could I incercept the digital signals that are being sent out? I don't have a particular glucometer in mind has I want you guys suggestions in buying one. Thanks for your anticipated response.  Best regards,


I have got a template class as follows:  class MyClass<T> {     T field;     public void myMethod()     {        field = new T(); // gives compiler error     } }   How do I create a new instance of T in my class?


When and where can I find the Tower's exotic item vendor (Xur Agent of the Nine)?

I found this Xur Agent of the Nine guy in the corner of the Tower near the Crucible Quartermaster a few days ago but he disappeared soon after. He had lots of exotic (rare) items that looked scrumptious. I've read online that he shows up on weekends, but I don't see him there now. Is he only in certain Towers? What are his spawn conditions?


Want only 4.13.0-19 generic or anything other than 32 until nVidia fixes CUDA toolkit

Back in December I downloaded and burned an Ubuntu install CD that had kernel 4.13.0-19-generic.  I built two minimal servers and they worked fine with nVidia CUDA.RUN package.  I recently tried building a 3rd system openssh server using the same CD.  I see kernel ...19 go in but after the download from the US repository I end up with kernel ...32 which has a bug documented on the nvidia developer forum that does not allow the kernel to be built.  I assume they will have a fix for this eventually but in the meantime I would like to install ...19 or any version that still works with the nVidia cuda run package.  I retried the install from my old CD but there was no option to select the version of the package to download.  I see 19 come off the CD but end up with 32.    How do I restrict the install to 19?  Maybe I can revert back to 19 after getting 32 running?  Alternately, I could clone the flash drive from one of the other systems.  I did try that with acronis clone tool under windows 10, but it didnt boot. Maybe there is a better cloning tool?  Thank you for looking at this.  [SOLVED WITH HELP FROM MIKEWHATEVER thanks mike!]  sudo apt-get install linux-image-4.13.0-19-generic   (reboot and select 19)  sudo apt-get purge linux-image-4.13.0-32-generic sudo apt-get purge linux-headers-4.13.0.32 sudo apt-get install linux-headers-$(uname -r) sudo apt-get install libxi-dev libxmu-dev freeglut3-dev build-essential binutils-gold sudo sh ./cuda384.run --override   results as follows:  27-Jan-2018 12:24:55 [---] CUDA: NVIDIA GPU 0: GeForce GTX 670 (driver version 384.81, CUDA version 9.0, compute capability 3.0, 1994MB, 1874MB available, 2704 GFLOPS peak) 27-Jan-2018 12:24:55 [---] OpenCL: NVIDIA GPU 0: GeForce GTX 670 (driver version 384.81, device version OpenCL 1.2 CUDA, 1994MB, 1874MB available, 2704 GFLOPS peak)   I thought I had to use update-initramfs -u after the CUDA install.  That put 32 into the boot which caused a problem.  It was not necessary and forced a re-install to recover.  I went back to 19 because it worked with the nVidia CUDA kit and nVidia has not released a fix yet for having their source headers out of order when being built into the 32 kernel.  [EDIT]  Strange - I see where 5 gurus here report this question is "an exact duplicate of an  question".  I went there and looked and that question was how to prevent an upgrade which is nice if you know the upgrade will cause a problem.  This question was how to recover from an upgrade.  I actually spent some time googling for how to restore a previous version.  I found nothing informative until I came here and was told to use "apt-get install linux_image...".  Want to ask the gurus here, what good is it to install 32 and get protection from meltdown and specter when there are no known exploits of those defects and the application you are required to run requires a package that does not work under 32?


I'm thinking about replacing my actual OS (Windows 7 Home Premium 64 bit) with the latest version of Ubuntu, but i'm totally new with this "switching OS" thing. What steps should i follow to correctly replace Windows with Ubuntu? I'm using a Samsung laptop, model 305V5A S02.


Set Object to Object Without Pointer Javascript

In my program, I have 2 objects, A and B, with some code like this:   var a = {"color":"blue"}; var b = a; a.color = "orange"; console.log(b.color);    By setting B to A, they point to the same memory, and I don't want them to do that. I thought of running a for loop of all the keys and values, setting them individually to B, but there's got to be a better way. Any ideas?