I've a problem with this: Let $f:V \to W$ be a linear function between two vector spaces, let $K$ be a subspace of $W,$ then $\dim (f^{-1}(K \cap \operatorname{im} f))= \dim (\ker f)+ \dim(K \cap \operatorname{im} f)$  How can I prove that? I can't understand this completely, it is similar to the rank-nullity theorem, is there any link between them? Thanks a lot in advice


How do I change the buffer units from degrees to meters for my CSV layer in CRS EPSG 4326?

I'm trying to add a buffer to a CSV layer, in QGIS, which is overlaid onto an OpenStreetMap layer but I do not know how to change the units from degrees to meters. I've tried to change the CRS to EPSG 3857 which does change the units to meters but then the points are not where they are supposed to be on the OpenStreetMap overlay and seem to be at a completely different scale because I have to zoom into the ocean to see them. Even when I set the OpenStreetMap layer to EPSG 3857 it seems to be a completely different scale. Just wondering if if there is a way to change the buffer unit to meters but keep using EPSG 4326 as then all my layers seem to be at the right scale.


Every time I try to add a torus with a major radius of 1317ft (401.42M), the major radius defaults to a value of around 984ft (300M). I also tried doing this by adding a torus with a major radius of 131.7ft (40.14M), or 1/10th scale and then increasing the scale in “Item” to 10 in the X-Y-Z fields, but then the ability to scale tops out at around 5 in the X and Y fields and only will allow a scale value of 10 in the Z field. I suspect the Z direction allows this value because the minimum radius I’m trying for is only 20ft (6.09M). I’ve also tried starting from scratch by changing units to meters, no joy, then starting again using feet, and lastly starting over again using inches. Still can’t add a torus without the major radius topping out at around 300M. I also reset the clipping distances. That didn’t help either. Suggestions?


Why does the UNIX system need so many [0-byte] drives at /dev/*

So I recently asked , which lead me to run this command:  $ du -sk /dev/*  Which outputs about 353 different entries that look like this:   0   /dev/sdt 0   /dev/stderr 0   /dev/stdin 0   /dev/stdout 0   /dev/systrace 0   /dev/tty 0   /dev/tty.Bluetooth-Incoming-Port 0   /dev/tty.Bluetooth-Modem 0   /dev/ttyp0 0   /dev/ttyp1  Can someone please elaborate on what these directories are? And why are they all zero bytes?


Determine necessary and sufficient conditions on $x, N$ so that the following holds: for any $a, b$, if $ax ≡ bx \pmod N$, then $a ≡ b\pmod N$

Been working on it for a couple of hours with no success. My intuition tells me that it has to do something about $\gcd(n,x) = 1$ I have managed to prove that if $\gcd(x,n) = 1$ the claim holds, now I try to prove the other way around. Any hint or a solution will help. thanks!


How do I make this map remove those lines and just view the map as one?   What I mean is I wanted to remove those lines so that the outcome will just be a plain map without those lines.


from the Game of Thrones intro sequence shows the Sunset Sea and the lands to the west of Westeros.  But what exactly is west of the Sunset Sea? Has anyone ever traveled there?


Does a quantum commutator exist for energy and time?

In quantum mechanics the position operator $\hat{x}$ and the momentum operator $\hat{p}$ have a commutator $$ [\hat{x}, \hat{p}] = i\hbar $$ Does a similar commutator also exist for the uncertainty relation between energy and time? And how do these observables commute with the Hamiltonian?


If I have a file with contents similar to:  FirstSection     Unique first line in first section     Unique second line in first section  SecondSection     Unique first line in second section     Unique second line in second section  ...  NthSection     Unique first line in Nth section     Unique second line in Nth section   Is it possible to use unix commands (e.g. sort, awk) to sort the file alphabetically by the first non-indented line in each three line group, whilst keeping the indented lines under their existing group?


I am a newbie to the ubuntu and dual booting also. so please do explain from basics. I was a win 10 user and due to hdd failure i had to install ubuntu on a 256gb ssd. My installation went well and i started using it very well. I then dual booted android os along side ubuntu-20.xx and that was also working fine. then i created multiple users in ubuntu because of which my storage messed up and when i use to use "sudo apt-get update" i used to get many errors. after few days i messed up with pulseaudio and i couldn't get my speakers working. I tried many ways and got tired. Then i again dual booted linux mint and now its falling short of storage. i want to clean install ubuntu by deleting it from base, along with that i don't want to lose data from my linux and android os.(android os data loss is okay btw) i just want to uninstall ubuntu again without effecting other installed os linux mint here. Can i get a detailed procedure for doing that


Any way to make a WPF textblock selectable?

How to allow TextBlock's text to be selectable? I tried to get it to work by displaying the text using a read-only TextBox styled to look like a textblock but this will not work in my case because a TextBox does not have inlines. In other words, how to make it selectable?


Is there a way to determine the left 3D view sidebar's current width with python?

I want to display a custom menu when it will be in the left top corner of the 3D View, over the view name ("User Persp" etc).  I guess this is the long way, but if I'll also know the window location and area (already answered here ), and mouse position, then I'll be able to calculate if the mouse is in the right spot or not.


I was designing a dual H bridge board which uses some logic signals to drive 8 mosfets. Initially I was using 8 optocouplers per board which was really annoying to wire up. after a bit of searching, I found that I can use 4 channel optocouplers instead (I want to use the  CNY74-4H ). I was wondering if I could use one resistor to limit the current for all 4 channel leds, or if I should use 4 separate resistors(one per channel). I know with normal LEDs they can draw unbalanced current, but is it the same case with an optocoupler?


Connection for a 2 switch ceiling fan additional question

So I separate the 2 white wires and label the hot one black? How do I determine the hot white wire without a tester?  Thank you guys for your help!


How to measure supply currents ranging from 1μA to 10mA?

I’m building a battery powered data logger with a microcontroller and several sensors. I’d like to measure the supply current of individual parts with idle currents in the μA range and peak currents in the low mA range. The current is not constant which rules out a simple multimeter.  Usually I’d (temporarily) replace ferrite beads on the PCB with a 10Ω resistor and measure the voltage drop with my DS1104Z oscilloscope. However, the voltage drop of some μV for 1 or 2 μA of current is simply drowning in the noise and peak currents of ~10mA already result in a noticeable supply drop (so increasing the resistance is out of the question).  I was thinking about building a small board with a 5Ω resistor and OPAMP set to something like 100x amplification, but first wanted to know if this is a good idea or if you know of any affordable, ready-made solutions. Obviously the bandwidth doesn’t have to be high, but some accuracy would be desirable.  Thanks in advance.  Michael


How to quickly identify who carries which weapon?

I have an under-armed vault. That is, I only have 3 or 4 weapons in a vault with almost 30 dwellers. When there's an invasion, I often have to quickly scramble a defense squad but I cannot tell who's got the big guns.  How can I quickly tell who's got which weapon?  Does the game provide an interface that let's you find that out quickly? If not, what would be a useful way for me to keep track of who's carrying which gun?


Okay so I have been having a problem and would really appreciate any help. I have posted a table below with the aim of making this as simple/precise as possible.  Value          %              Rounded %     Direction 10     1.515151515151520%       2%              Up 20     3.030303030303030%       3%             Down 30     4.545454545454550%       5%              Up 40     6.060606060606060%       6%             Down 50     7.575757575757580%       8%              Up 60     9.090909090909090%       9%             Down 70    10.606060606060600%      11%              Up 80    12.121212121212100%      12%             Down 90    13.636363636363600%      14%              Up 100   15.151515151515200%      15%             Down 110   16.666666666666700%      17%              Up T660        102%       Table explanation: Value is a number (total=660). The % is the percentage of the total ((value/660)*100%). Rounded is the % rounded at the percentage level rather than rounding the total. Direction is whether the rounding is up or down.  (row begining with T, = Totals)  Problem: I understand why I am getting 102%. I am creating a report that uses percentages and I want the rounded percentages to add up to 100% but be as mathematically accurate as possible.  Is it possible to determine which decimals in the % column are most significant to the overall increase in the total percentage?  Is there some universal equation that can be derived to perform this?  I know that this is pretty vague, so please comment if you need any clarification, but any help would be appreciated.   Thank you!


$\delta_2(n)$ the sum of the squares of the positive divisors of $n$.

The question is:  Develop a formula for $\delta_2(n)$, the sum of the squares of the positive divisors of $n$.


How many points do I need for the community icons appear on my Flair?

So, I have a few accounts on the Stack Exchange Network, and most of them are around 100 points. I've recently added the Network Flair to my profile, but it's only showing the Stack Overflow icon; other communities do not appear. I'm wondering if this is either a bug or it's based on a number of points for the icons to appear on the Network Flair.  How many points do I need for an icon appear to appear on the flair?


How many ways are there of getting to Hogwarts?

We know that most students get to Hogwarts by train, and that Harry Potter and Ron Weasly arrived by flying car, but are there other ways to get to the school?


Function to determine if two numbers are nearly equal when rounded to n significant decimal digits

I have been asked to test a library provided by a 3rd party. The library is known to be accurate to n significant figures. Any less-significant errors can safely be ignored. I want to write a function to help me compare the results:  def nearlyequal( a, b, sigfig=5 ):   The purpose of this function is to determine if two floating-point numbers (a and b) are approximately equal. The function will return True if a==b (exact match) or if a and b have the same value when rounded to sigfig significant-figures when written in decimal.   Can anybody suggest a good implementation? I've written a mini unit-test. Unless you can see a bug in my tests then a good implementation should pass the following:  assert nearlyequal(1, 1, 5)  assert nearlyequal(1.0, 1.0, 5)  assert nearlyequal(1.0, 1.0, 5)  assert nearlyequal(-1e-9, 1e-9, 5)  assert nearlyequal(1e9, 1e9 + 1 , 5)  assert not nearlyequal( 1e4, 1e4 + 1, 5)  assert nearlyequal( 0.0, 1e-15, 5 )  assert not nearlyequal( 0.0, 1e-4, 6 )    Additional notes:   Values a and b might be of type int, float or numpy.float64. Values a and b will always be of the same type. It's vital that conversion does not introduce additional error into the function. Lets keep this numerical, so functions that convert to strings or use non-mathematical tricks are not ideal. This program will be audited by somebody who is a mathematician who will want to be able to prove that the function does what it is supposed to do. Speed... I've got to compare a lot of numbers so the faster the better. I've got numpy, scipy and the standard-library. Anything else will be hard for me to get, especially for such a small part of the project.


Is starch a better coagulant than cellulose?

In an experiment, I used plantain peels (with a very high starch content and very little cellulose) and grapefruit peels (with a very high cellulose content and no starch) as coagulants (ensuring that I used equal masses of each peel) to improve the turbidity of water contaminated with wood chips and kaolin. Although the grapefruit was able to remove turbidity, I found that the plantain worked better. By the way, the same amount of cellulose was present (50%) in the grapefruit peels as starch present (50%) in the plantain peels. However, I can't work out why a coagulant concentrated with starch is more effective at lowering the turbidity of water compared to a coagulant concentrated with cellulose? Essentially, I don't know why starch helps more than cellulose with coagulation. Help would be much appreciated :)  If you use this link, you will find the method I used under "Preparation of Bio-flocculant" to turn the peels into coagulants: akademiabaru.com/doc/progeeV1_P47_56.pdf. To summarize, I dried them in an oven and turned them into very fine powder.  Search this up and you'll find previous experiments using polysaccharides (i.e. starch and cellulose) for coagulation: Chapter 2 Mechanistic Insight into the Coagulation Efficiency of Polysaccharide-based Coagulants


I've  been trying to put a vector in the title of a section but no matter what I've tried, I keep getting the same error message (see below). I am using pdfLaTeX. \section{Das Drehmoment $\overrightarrow{M}$}  The error message I receive is the following : ! Illegal parameter number in definition of \@themark.   to be read again  \crcr   l.71 \section{Das Drehmoment $\overrightarrow{M}$}  Edit:  \vec  works just fine, but because I've used \overrightarrow for all my other vectors, I don't want to break the tradition.


Our Lennar at Laurel Creek Quads in Rogers, MN has been completed and it's now 3 years old. How do we get the community listed on Google Maps? It shows up on Apple Maps, but not Google Maps.


How to split a String sentence into words using split method in Java?

I need to split some sentences into words.   For example:  Upper sentence. Lower sentence. And some text.   I do it by:   String[] words = text.split("(\\s+|[^.]+$)");   But the output I get is:  Upper, sentence.Lower, sentence., And, some, text.   And it should be like:  Upper, sentence., Lower, sentence., And, some, text.   Notice that I need to preserve all the characters (.,-?! etc.)


Windows 7 shows red "X" on network icon, but I'm connected

In Windows 7, after a few weeks of running Hamachi VPN, the internet icon in the system tray shows a red "X", indicating I have no network connection:    This is false, as I am not only connected to two networks, I'm also connected to the internet (as shown below), therefore, the icon should show no errors.    I've researched the LogMeIn Hamachi help forums and several other related forums and no one seems to have posted a working solution.  What I've Tried So Far:   I have uninstalled Hamachi I reset the local LAN adapter. I have changed the order of listed connections in Network Connections > Advanced > Adapters & Bindings I have disabled IPv6 on both networks, and one at a time I deleted the "Incoming Connection" I had for my Windows 7 VPN in Network Adapters   I've run my research resources dry and I'm out of ideas. Any suggestions?


Java Class that implements Map and keeps insertion order?

I'm looking for a class in java that has key-value association, but without using hashes.  Here is what I'm currently doing:   Add values to a Hashtable. Get an iterator for the Hashtable.entrySet(). Iterate through all values and:   Get a Map.Entry for the iterator. Create an object of type Module (a custom class) based on the value. Add the class to a JPanel.  Show the panel.   The problem with this is that I do not have control over the order that I get the values back, so I cannot display the values in the a given order (without hard-coding the order).  I would use an ArrayList or Vector for this, but later in the code I need to grab the Module object for a given Key, which I can't do with an ArrayList or Vector.  Does anyone know of a free/open-source Java class that will do this, or a way to get values out of a Hashtable based on when they were added?  Thanks!


How to change the number of equations  to the desired effect? for example , (1-4)


How would I solve this mathematical induction proof? I am stuck after the first part of the induction.


Upscaling video with different filter on each side

I need scale up video from one DOS game using . But with  on left side and  filter on the other one.  Input (320x200)    Output (1280x800)    Here is a command, where's xBR processing whole screen...  ffmpeg     -i input.avi     -sws_flags neighbor     -vcodec libx264 -strict -2     -preset veryslow -qp 0     -filter:v "xbr=4"     output.mp4


How would the Borg collective work with two Borg queens?

In the movie Star Trek: First Contact, future Borg tried to contact their home world in 2063. If the communication was successful and the Borg from the Delta Quadrant came to Earth in 21st century, there'd be two Borg queens. The Borg queens had individuality which represented the collective. And, technically all Borg were able to connect to both queens. How would the collective work then?


How to join repeated values to the same feature using QGIS?

I new to QGIS, and programming in general.  I'm trying to join a csv file with another file that is already in the project. However, the csv file has repeated values that should allocate to the same feature in the project, which doesn't happen. When I join the values only one of the repeated values appears; the others don't.  How do I solve this problem?


I have developed a java desktop application for windows i need to make exe file, I don't know procedures to develop exe from my project


How to insert the =now() function in a cell automatically when I write in another and hit enter

I would like to know how to:  Automatically have the =now() function in the column B of Excel, only displayed in each cell (B1, B2, .. Bν) whenever I write something in column A in the respective cells (A1, A2, .. Aν).


Word to describe using sarcasm or a similar approach to lead someone to recognise their own mistake

When reading some work of a friend, I noticed the sentence "When in doubt ask me". Instead of simply pointing out that it could use a comma after doubt, I read the sentence aloud with no gaps or punctuation, as it is written.  When I was corrected that there should be a pause, I smiled and remarked that there was no punctuation to indicate this and my friend realised their own mistake.  When asked why I didn't just say that, I remarked that I was just being __ for the sake of amusement.  I used "spurious", but having re-read its definition, that is not the correct word to describe the way I acted, because it means: Not being what it purports to be; false or fake: "spurious claims".  I don't think "sarcastic" covers what I did either and I'm at a loss for the word to use.


I was wondering if someone might explain this to me...  We were playing TFTYP last weekend and one of the players said that we've been doing Perception checks wrong all the time. Below is an example of how I understood it from this player.  Player 1 has a passive perception of 15. Player 1 does a perception check and rolls a 6. Player 1 still notices what is going on in the area because of their passive perception being 15.  Is this correct? To me, this doesn't seem right. If a player rolls perception, regardless of their passive perception they will only notice what they rolled for. Otherwise a player could just put a load of points into Wisdom and have 17 passive perception in the first couple levels.


Rhino: Cannot modify a property of a sealed object

Using Rhino 1.7.6, this script works: input = [ { foo: [ "aaa", "bbb", "ccc" ] } ]; var output = []; input.forEach(function (obj) {     obj.foo.forEach(function(s) { output.push(s); }); });  but this one does not: input = [ { foo: [ "aaa", "bbb", "ccc" ] } ]; var output = []; input.forEach(function (obj) {     obj.foo.forEach(output.push); });  instead, throwing this exception on line 4: org.mozilla.javascript.EvaluatorException: Cannot modify a property of a sealed object: 0.  Why? I feel like I'm missing something obvious here...


Is it possible to run Microsoft Office 2010?

I was curious seeing as how my work uses it, so will it run? or is there a way of getting it to run?


How to trigger a warning when a certain function is called (not compiled)?

If we write: void foo() { #warning "Danger Will Robinson!" }  we'll get a warning when compiling foo(). Now, What I want to do is for the compilation not to emit a warning, but for a warning to be emitted if foo() is called. Is that possible, using g++ and/or clang++? Note: This question is somewhat similar to , about marking functions as "deprecated" (a-la C++14's [[deprecated]] attribute). However, it's a different semantic. I do not want people to get the notion that my function is deprecated, but rather get a custom warning.


After upgrade to 16.04 LTS rc.local is not executing a command

On previous installed version kubuntu 15.xx i added a line into /etc/rc.local - /home/diet/scripts/my-auto-mount-script which obviously referred to a script that if on home wifi network drives should be mounted.   This worked flawlessly on kubuntu 15.xx  After the upgrade it seems /etc/rc.local is being ignored on boot because running the command /etc/rc.local still seems to do the trick. The reason I think rc.local is being ignored is because the script it refers to should produce logs on script success but also on script fail, but there are no logs.  Can anyone give me some pointers on how to troubleshoot this matter?  PS : yes I know that putting stuff in /etc/fstab is also a way of mounting the drives, but when I'm not at home I hate it that I can see the drives on dolphin and have those little red crosses on them because the are not there. This way when I'm on the road (it is a laptop) people can't see what i have at home.


What mechanisms tell temperate trees when to drop leaves?

I've been looking around and cannot find a definite answer on what it is that tells trees to change their metabolism and drop leaves. I see that such activity is called .  What interests me are the specific mechanisms by which a tree knows that it's time to drop leaves. Is it photoperiod shortening (day duration?) Is it temperature changing metabolism? Is it build up of some toxic compound?  Thank you for your input!


Move vertex away from edge in current direction

The Slide tool GG is perfect to move vertices along an edge when modeling organic shapes. But what if I want to move a vertex (make the edge longer) in the end of an edge away, but still in the current direction as the edge? Is there a way to do that?


How would one *exclude* a tag from a page?

This may seem like an odd request, but right now in Movies & TV there are dozens upon dozens of Game of Thrones questions.  I don't care about Game of Thrones, I can't answer their questions, nor do I particularly want to see references to their sordid and demonic tribulations.  Is there a setting where a user can exclude a tag, and never see anything tagged with said tag until they deem they wish to see it again?  Doesn't seem like a difficult request; just add an additional piece to the WHERE clause that brings back the questions to display.  Any chance we can do something like this?  It would sort of be like the opposite of the Favorites tags.  In some stacks, I think this could be quite useful.


I am confused why clientIf even though declared as uint32(unsigned int - size 4 bytes), is taking up 8 bytes. I have explicitly printed sizeof(uint32) and that shows 4 bytes.  Can someone throw some insight.  I am running this code on a little endian machine x86.  #include <stdio.h> #include <string.h>  /* network defines */ typedef char uint8; typedef short uint16; typedef unsigned int uint32; typedef uint32 ipv4Addr;  /***********************    V6 IP ADDRESS   **********************************/ typedef struct _v6IpAddr {     union _Bytes     {         uint8       rbyte[16];         uint16      doublebyte[8];         uint32      wordbyte[4];         long long   dwordbyte[2];     }unionv6; #define dbyte   unionv6.doublebyte #define wbyte   unionv6.wordbyte #define dwbyte  unionv6.dwordbyte #define xbyte   unionv6.rbyte }v6IpAddr;  typedef struct _v6IpAddr uint128;  typedef union _comIpAddr {     ipv4Addr v4Ip;     v6IpAddr v6Ip; }comIpAddr;  typedef struct abc {     /*|*/uint32         clientIf;          /*|*/     /*|*/comIpAddr      clientIp;          /*|*/     /*|*/uint8          mac[6];            /*|*/     /*|*/uint16         zero;              /*|*/ }ABC;  void print_bytes(const void *object, size_t size) {   // This is for C++; in C just drop the static_cast<>() and assign.   const unsigned char * const bytes = object;   size_t i;    printf("[ ");   for(i = 0; i < size; i++)   {     printf("%02x ", bytes[i]);   }   printf("]\n"); }  int main() {     ABC test;     memset(&test,0,sizeof test);     printf("sizeof test = %u\n", sizeof test);     printf("%d-%d-%d\n", sizeof(uint8), sizeof(uint16), sizeof(uint32));      print_bytes(&test, sizeof test);     test.clientIf = 10;     test.clientIp.v4Ip = 0xAABBCCDD;     print_bytes(&test, sizeof test);     printf("%p-%p-%p\n", &(test.clientIf), &(test.clientIp), &(test.clientIp.v4Ip));     return 0; }   $ ./a.out  sizeof test = 32  1-2-4  [ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]  [ 0a 00 00 00 00 00 00 00 dd cc bb aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]  0x7fff113b0780-0x7fff113b0788-0x7fff113b0788 $   Edit:  Why will compiler add padding after clientIf since it is already a multiple of 4 bytes?


Why to use StringBuffer in Java instead of the string concatenation operator

Someone told me it's more efficient to use StringBuffer to concatenate strings in Java than to use the + operator for Strings. What happens under the hood when you do that? What does StringBuffer do differently?


Is the Polynomial Factor Theorem true over all commutative rings?

I'm reading Fraliegh's text on abstract algebra, and his statement for the factor theorem is, "An element $a\in F$ ($F$ is a field) is a zero of $f(x)\in F[x]\iff$ $(x-a)$ is factor of $f(x)$ in $F[x]$." The proof is straightforward, and seems to be the most common one, but I don't see where exactly you need to use the fact that $F$ is a field; it seems like this result would hold for any ring $R$. Is this true?


NVIDIA graphics card "performance driver" what is it for?

I saw a computer for 3D modeling (Autocad, 3DsMax, Sketchup, etc) which has an NVIDIA graphics card on it.  The computer had several "NVIDIA Performance Drivers" installed on it, including one specifically for Autocad.  What are these for?  Does the graphics card not handle this well enough by default?  Does this mean each and every program could potentially require a performance driver??!!!    ...and for multiple systems with different graphics cards, potentially a separate performance driver, for each card, for each program!?!


Would you reach a singularity before evaporation of the black hole?

When going to a physics camp the other day, we discussed the Schwarzchild-metric for a rotational symmetric non-spinning black hole and its famous time-dilation properties.  However, we know that black holes, after really quite a while, begin to evaporate and eventually disappear completely. Now, given that as you get closer and closer to the singularity, your time dilation with respect to the outsider's reference frame increases unboundedly - could it be possible for the blackhole to completely evaporate before you actually reach the singularity?  Would this not be true for ALL matter which falls into a blackhole?


How to use Ffmpeg to downmix 5.1 EAC3 to stereo AAC with Dolby Pro Logic II, while keeping the 5.1 audio track?

I'm creating audio tracks from movies that can be direct played on Roku and iOS devices. Handbrake can downmix 5.1 audio to stereo with Pro Logic II matrix encoding, but it cannot re-encode just the audio; Handbrake also re-encodes the video, resulting in poorer quality and longer encode durations. How can I do this with Ffmpeg? I found  but Ffmpeg has changed since then:  "libfdk_aac" AAC encoder doesn't work anymore. The native "-aac" encoder is the default.  This is the command I'm entering:  ffmpeg -i input.mkv -map 0:v -c:v copy -map 0:1 -c:a:0 copy -map 0:1 -c:a:1 aac -b:a:1 256k -ac 2 -af aresample=matrix_encoding=dplii -map 0:7 -c:s:0 copy -map 0:6 -c:s:1 copy output.mkv  I'm trying to stream copy the video, stream copy the EAC3 audio, and create a new, 256kbps, Dolby Pro Logic II-encoded AAC track (and stream copy English and English SDH subtitle tracks). But I run into this error:  Filtergraph 'aresample=matrix_encoding=dplii' was defined for audio output stream 0:1 but codec copy was selected. Filtering and streamcopy cannot be used together.  I guess Ffmpeg can't both streamcopy (-map 0:1 -c:a:0 copy) and filter (-map 0:1 -c:a:1 aac -b:a:1 256k -ac 2 -af aresample=matrix_encoding=dplii) the same source audio track into two destination audio tracks. If I remove the streamcopy track, the command runs, but I don't want to abandon the original, high quality EAC3 audio track. Is there any way to execute this command so I get my two audio tracks?


Puppet server hostname does not match certificate - can't authenticate. How to disable puppet authentication?

I am having issues with getting the puppet agent to authenticate the master.   On the agent, I first did  sudo puppet agent --test  info: Creating a new SSL key for m-agent-2 info: Caching certificate for ca info: Creating a new SSL certificate request for m-agent-2 info: Certificate Request fingerprint (md5): 43:30:57:53:5B:20:F7:12:CD:94:59:17:12:28:68:A4   Then on the master I did sudo puppet cert list and got  "m-agent-2" (43:30:57:53:5B:20:F7:12:CD:94:59:17:12:28:68:A4)   Then I did sudo puppet cert sign m-agent-2, which returned  notice: Signed certificate request for m-agent-2 notice: Removing file Puppet::SSL::CertificateRequest m-agent-2 at                  '/var/lib/puppet/ssl/ca/requests/m-agent-2.pem'   Then I did sudo puppet agent --test, which returned   info: Caching certificate for m-agent-2 err: Could not retrieve catalog from remote server: Server hostname 'puppet' did not match server certificate; expected master-node-1 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run err: Could not send report: Server hostname 'puppet' did not match server certificate; expected master-node-1   The conf file contains the line in both certname = master-node-1 in both [main] and [master] sections. I have regenerated the master's certificate by doing   sudo find $(puppet master --configprint ssldir) -name "$(puppet master --configprint certname).pem" -delete    sudo puppet master --no-daemonize --verbose   Also, my /etc/hosts file contains the lines 10.20.32.10 learn.localdomain   learn puppet.localdomain puppet and I can ping both puppet and puppet.learn from the agent.  However I still get the same issue. Is there some way to fix this. Or disable authentication in puppet all together. Both the master and the slave nodes are running Ubuntu 12.04 and I am running puppet 2.7.11. Any help is greatly appreciated.


Does encrypting twice using the same block cipher produce a security weakness?

If I use the output of a cipher, for example a block cipher such as AES and encrypt it again with the same algorithm, I read that this introduces weaknesses into the overall security of the system.  Is this the case?


Why is Lightroom not rendering what I see in every other JPG viewer?

I'm new to Lightroom 5.  To learn I tried to take an existing photo and improve it in the Develop module.  I exported the results but the color cast is different in every other JPG viewer and browser from what I see in Lightroom.  Even after adding the export to the Lightroom library and opening it in Lightroom it continues to look like what I had Developed.  Why is Lightroom rendering images with different colors than everything else?  I'm guessing there's a gamut adjustment somewhere I need to disable but can't find.  In the export settings I've tried both the sRGB and AdobeRGB (1998) colorspaces with the same results.  Here is the original, followed by the developed image export as seen in Lightroom (via screenshot), and then the same image viewed everywhere else:  Original:   Developed and viewed in Lightroom (screenshot), including exported and reimported   Developed Export in any viewer:


I have a typical clone() pattern like:  class Base {     virtual Base *clone() const; };  class Derived : public Base {     Derived *clone() override;     // ^-- note the contravariant type! };   Now I would like to do away with dumb pointers, so I'd like to replace the return type with std::unique_ptr:  class Base {     virtual std::unique_ptr<Base> clone() const; };  class Derived {     virtual std::unique_ptr</* Can't be Derived here */> clone() const; };   But std::unique_ptr<Base> is not a base of std::unique_ptr<Derived>, so the method can't return it. But there are other methods in Derived that need to call clone() and need to treat the result as Derived (which they can be certain there is).  Now std::shared_ptr at least has the std::static_pointer_cast. But that does not apply to unique_ptr. What is the cleanest way to do this?


Intel Chipset Software Utility, should I install it?

I just installed windows 7. Intel recomends to install the Inf utility after you install the operating system and before you install everything else.  There is no version for windows 7 yet.  I sometimes installed but sometimes had my machine without it after a fresh install, are they really needed or all the needed drivers come with windows by default?


Tricky problem on skew-symmetric matrices

Problem: If $S$ is a skew-symmetric matrix, show that $(I+S)(I-S)^{-1}$ is orthogonal.  This appeared on a list of standard questions asked of Princeton graduate students. It has been a while since I've studied linear algebra, and frankly I cannot even see why $(I-S)$ must be invertible.


Does the little boy Brock know who poisoned him?

During Breaking Bad Walt poisoned the little boy Brock using Lily Of The Valley.  But while  he did that, I was particularly wondering about Brock's behaviour around Mr. White. It was a bit odd after he comes back from the hospital. Does he know that Walt poisoned him?  Is there a clue in any of the episodes about it that I might have missed.


<?php     var_dump($isHoster); // prints int(0)      if ($isHoster == 'all')         $conditionsHoster = '0, 1';     else         $conditionsHoster = intval($isHoster);      var_dump($conditionsHoster); // prints string(4) "0, 1" ?>   What is going on?? Who can explain that? This never happened to me...


I want to obtain a prediction model using support vector regression on a time series data set. In literature, I have read that the break up ratio for training/testing/validation of data should be around 60/20/20 percent. But the length of my data set is very large, so if I use 60% of it for training, it takes a lot of time.   Instead of taking the ratio as said above, is there a minimum length of training sequence that if used is less time consuming and still ensures statistical reliability of the proposed model?


How does the size of a cube area of effect work?

I was wondering what exactly does X-foot cube mean in a spells range description.  Let's look Thunderwave for example. It says:     A wave of thunderous force sweeps out from you. Each   creature in a 15-foot cube originating from you must   make a Constitution saving throw.   We took that to mean, all points a square 15 feet from the caster. Or does it mean a 15×15 foot square with the caster in the middle?  Let P be the player and X a 5 foot block that the spell affects.  We decided it to be:                    Or is it Really:       xxxxxxx                        xxx      xxxxxxx                        xPx       xxxxxxx                        xxx        xxxPxxx      xxxxxxx      xxxxxxx      xxxxxxx


What is game+ in Defenders Quest: Valley of the Forgotten

I've seen quite a few references to it in the achievements but I'm not sure what it is or how I access it.


I am just wondering if I want to remove a package from my system say google-chome-stable, i have two ways of doing it:     sudo apt-get remove google-chrome-stable   and  dpkg -r google-chrome-stable   just wondering if both are exactly same or there is some technicality? and which one is the best practice?


What is the purpose of Jordan Canonical Form?

I don't claim at all to be an expert on this topic. In many (advanced) linear algebra textbooks for undergraduates, I usually find something about the "Jordan Canonical Form" of a matrix.   What is the purpose of such a form? I have taken a usual first-course in linear algebra (did another semester with Axler, but I don't claim to be an expert) and have taken abstract algebra (most familiar with group and ring theory) and have briefly skimmed through linear algebra books covering this material, but I don't quite understand the "big picture" idea, i.e., why is this useful in application? One person once told me it is the "most straightforward and useful algorithm for solving systems of linear equations, once you get beyond 3 variables or so," but maybe I'm missing something, since I usually don't see anything like what this person described to me in the linear algebra books I have. Most textbooks I've seen tend to have a more theoretical focus on this topic.  Also, any suggested texts which have good coverage on this topic would be very helpful.


How to make a sprite jump up and return to original position?

I am just trying to make my game character, which is a texture (ball), to jump up in the air and then return back down to the position that it started at when the screen is pressed. I was just wondering if someone could give me a code example or help me to do this with my current code which is below. I have basically just drawn the background and the ball texture and positioned the ball where I want it to start the jump. The ball texture is what I want to make jump straight up.      public class MyGdxGame extends ApplicationAdapter {     SpriteBatch batch;     Texture background;     Texture ball;      @Override     public void create () {         batch = new SpriteBatch();         background = new Texture("gamebackground.png");          ball = new Texture("ball2.png");         ball.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);     }      @Override        public void render   () {          batch.begin();           float scaleFactor = 2.0f;            batch.draw(background, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight    ());         batch.draw(ball, 80, 145, ball.getWidth() * scaleFactor, ball.getHeight() *     scaleFactor);         batch.end();     }      @Override     public void dispose () {     } }


If there a formal definition for the sum of two irrationals is rational if it is only the additive inverse plus some rational?

If $x$ and $y$ are two irrational numbers and $x + y$ is a rational number, I know one of them has to be the additive inverse with/without some rational term I believe. I know it is not always the case that the sum of two irrational numbers is irrational. for example: $(\sqrt2 -1) + (-\sqrt2 +4) = 3$ But I can only seem to come up with examples that are of this nature and that seems to be the general consensus. But is there a formal definition stating it has to be of this form or is there a counterexample I am ignorantly unaware of. then if $x+y\in\mathbb{Q}$ would it be true that $x-y$ would always just produce a multiple of that irrational plus some rational implying that if $x$ and $y$ are irrational and $x+y\in\mathbb{Q}$ then $x-y\not\in\mathbb{Q}$


How to change a players game mode when crossing a threshold

I am running a vanilla Minecraft server on my Azure account and have an idea for it that I'm not sure is possible or not. Essentially I want to set up an area, something like 8x8 chunks that is designated as a creative area.  In order to achieve this I'm thinking that I will need at least one command block running constantly checking for players entering or exiting the area and adjusting their game mode accordingly. The problem I'm having is that I can't think of or find a way to reliably detect the threshold crossing, specifically for any height.  One potential solution I've come up with is to surround the creative chunks with barrier blocks to limit the ways in which the player can leave the area, but this is not ideal.  Bonus #1: If the player attempts to fly out of the creative zone it would be nice to also teleport them to the ground so they don't die when the game mode is switched.  Bonus #2: Can I have another set of command blocks that will store/restore a players inventory when crossing the threshold.


Science fiction short story where explorers land on planet inhabited by humanoids who eat algae

A short story where: Two explorers land on a planet which has almost nothing except barren ground, oceans covered with thick algae, and humanoids whose only food source is the algae.  Since there is extreme competition to live near the shore, the inhabitants have evolved into a physically competitive / tall / strong species.  The explorers land away from the shore, and as they walk toward the alien species, they are spotted and chased down - one is captured (presumably killed, eaten), the other escapes back to the ship.  (I think) Before they land, there was discussion about the spaceship's windows being awful and causing weird vision problems or nausea, and that the next ship should not have windows.  Before they were chased, the explorers discussed how unfortunate the planet's inhabitants were.  They had nothing to begin a civilization with, (not even trees/wood?) and they were probably abandoned by an alien race eons ago.  I read this in the 1990's, probably from a paperback anthology I found in a dusty box from my dad's collection of classic sci-fi in the garage - I'd guess it was from 1950 - 70's(?).  If my details are too fuzzy to identify a specific story, a likely author or book title would help. Thanks.


Complete Riemannian manifolds and lengths of curves diverging to infinity

I've been working on the following exercise and got stuck:  "Prove that a connected Riemannian manifold is complete if and only if every regular curve that diverges to infinity has infinite length."  Here, a curve with domain $[0,b)$ (and $b$ possibly infinite) diverges to infinity if for every compact subset of the manifold, there exists a time beyond which it does not intersect the compact set anymore.  I was able to prove the forward direction, but I can't figure out how to get the converse. I've tried both to show that maximal geodesics are defined for all time, and when that didn't work, I tried to show Cauchy sequences converge, but I didn't have success in either case. Any advice is greatly appreciated.


Any idea to change the blank appearance on password

whenever i edit the terminal or change password in linux it appears as blank(i.e it wont show the password), any idea to make appearance of it (as *)  i face the following difficulty   i dont know how many characters i am typing for correct password   Any third party tool or tweak to make apperance of typing password as *?


I have been programming JavaScript for a little and am completely confused by the interchangeable usage of single and double quotation marks.  I spent some time researching such matters and it appears there are now performance differences or memory impact, so what gives?  Are they really just the same or is there something I am missing?  AFAIK the only benefit of double quotation marks is that you can reference single quotation marks without the pain of including the backslash escape character.  console.log('here is my sentence'); console.log("It's my sentence");   --- Update --- Forgot to say thank you for all of the responses and time taken to think about such questions and creating/fostering such a nice community.


"dpkg was interrupted" when trying to install Java 9 after adding PPA

I tried to install Java several times. but dpkg was interrupted. I do not know what it means.


Let someone run your code, but not see it

Description I'm curious if there is a way to let someone run your python code, but  Without having to give them the python file. --> Ex. get_curl.py Not allow that person see what inside the code. I'm thinking of an encrypted python file. But if we encrypt it, how can python execute it.   Attempt I've tried post my sample code on github gist and use curl and pipe into it. But then my URL is there, so they could have see the file, if they visited that URL.  curl "https://gist.githubusercontent.com/bheng/b23d775ee7b106cd7cc0ae5ac71b81a9/raw/c6ecd3ed7bc04699d73e1b9ed521f481ac6a41c4/get_curl.py" -s -N > cool; python cool   Question Is this something that is not possible ? Or Is this something that can be achievable via library / plug-in / framework ? How would one go about and implement this ?  I'm opening to any suggestions at this moment. Any hints / suggestions / helps on this be will  be much appreciated !


How to handle well-formulated duplicates vs bad original question

Problem  I came across  that must have been asked before. While searching for the same question on SO, I stumbled upon , which asks essentially the same thing. So far, so good.  I couldn't bring it over me to flag a well-formulated and high quality question as a duplicate of a question that is clearly inferior in terms of clarity, even though the core of the question is equivalent.   Options  Now there are three options, in my opinion:   Not flagging and ignoring the dupe Flagging the new question as a dupe Thinking of the quality of SO, it may even make sense to flag the initial question as a duplicate of the new question!    All three options seem unfitting and wrong for different reasons. Please note that this question is not about whether the two questions in my example are actually regarded as dupes or not.   My question is: What would be the appropriate behaviour to handle a situation like this?  Edit  This question does not focus on how to handle dupes, that arise as a result of the original question being outdated and/or requires new, updated answers (this was dealt with in this ). The issue here is purely about the quality of the original post.


Cannot boot Kubuntu (NvidiaGTX970): error noveau MMIO write of 80000102 FAULT at 10eb14

I've been trying to install the latest Kubuntu from USB flash drive on my PC. Once I choose the default installation at the boot menu I end up with an error:  [   4.347654] nouveau 0000:01:00.0 bus: MMIO write of 80000102 FAULT at 10eb14 [IBUS]   The USB drive is fine; the Kubuntu installation menu shows up properly on laptop.  From what I searched, it has something to do with nvidia drivers, but I haven't found any proper explanation of how to fix this. Got latest drivers on NVIDIA GeForce GTX 970.  unetbootin menu:    error content:


here is my code:  object test extends App {    private val PLAYER_REGEX = """[\s\S]*(?: <s class="text-muted">|)(.*)(?:</s>
|
)""".r   val str =""" <s class="text-muted">first</s>
"""   val str2 ="""second
"""    private def find(str:String) = {     PLAYER_REGEX.findFirstMatchIn(str) match {       case Some(data) => data.group(1).trim       case None => "Not found"     }   }   println(find(str))   println(find(str2)) }   And Output is   first</s> second   My question is - why those redundant   </s>    in first case? I thought that   (?:</s>
|
)     should select first occurence   </s>
    but looks like it select
???   Off course I can trim it, but it looks ugly. If you can provide another regex I'll also will be glad:)


What is the joint distribution of $Z=\min(X,Y)$ and $I_{Z=X}$?

Assume that $X$ and $Y$ are independent random variables with $X \sim \exp(\lambda)$ and $Y \sim \exp(\mu)$. It is impossible to obtain direct observations of $X$ and $Y$. Instead, we observe the random variables $Z$ and $W$, where $Z = \min\{X,Y\}$ and $W =1$ if $Z=X$ and $W=0$ if $Z=Y$.  How to find the joint distribution of $Z$ and $W$?


Do we need to provide LIMIT in soql query while using REST API?

I was using simple-salesforce library to query the salesforce through REST API but getting query timeout error. I have not added the LIMIT keyword in the query as I thought salesforce will automatically only return 2000 result and after that, it will provide nextRecordURL for other 2000 records.  My Current implementation looks like this,  json_response = self.sf_api_instance.query_all_custom(query) parent_mapper = SalesForceMapper(json_response, field_mapping=field_mapping)  self.send_data(parent_mapper, object_type) is_done = json_response.pop("done", False) next_records_url = json_response.pop("nextRecordsUrl", '') while True:    if not is_done:       json_response = self.sf_api_instance.query_more(next_records_url, True)        parent_mapper = SalesForceMapper(json_response, field_mapping=field_mapping)        self.send_data(parent_mapper, object_type)       is_done = json_response.pop("done", False)       next_records_url = json_response.pop("nextRecordsUrl", '')    else:       break   So is my understanding is right or I need to provide LIMIT in every query.


Constructing a building in the "Past" scene, and finding a different version of it in the "Future" scene

I am trying to create a game where one scene would be the "Past" and one scene would be the "Future". The player can travel through a portal to move between the past and future scenes. In the past scene, the player makes a wooden house and in the future scene it will be turned into something else. There can be multiple instances of these buildings in different places in the scene. So far, I've tried...  Using DontDestroyOnLoad to carry the object through from the past to future when loading between scenes.  Using singletons to avoid duplicating the object multiple times when loading back and forth. But that has a problem: using singletons causes restricts me to just one instance of the building per scene, and I want to have several.   The reason why I wouldn't want to unload the old object when the scene unloads is because I wanted the player to be able to build in any area available within the scene. Something like the Fallout 4 building mechanics, where you can build in certain areas and keep those buildings, but I want it to become a different prefab in the future scene. How can I implement a feature like this?


Is it better to say "How do I..." or "How can I..."?

Is it better to say "How do I do something?" or "How can I do something?"


Is there an elementary argument to show that $\prod_{n=0}^\infty \frac{2n+1}{2n+3}=0$

I managed to prove it by rewriting the partial products in terms of $n!$ and then applying Stirling's approximation. But I was wondering if there is a more elementary method to show that the limit is zero, without using such heavy machinery.  Also, is it true that in general $$\prod_{n=0}^\infty \frac{an+b}{an+c}=0, \qquad a>0\ \textrm{and}\ c>b$$


null pointer exception in a java binary search tree

I keep getting a null pointer exception. any help on why this is would be great. I believe that the problem resides in my find(String name, Node root) method. Any help with how to fix this would be great. Thank you  public class FamilyTree{      private Node root;      private class Node     {         private String name;         private Node father;         private Node mother;         private Node(String name, Node father, Node mother)         {             this.name = name;             this.father = father;             this.mother = mother;         }     }      public FamilyTree(String ego)     {         this.root = new Node(ego, null, null);     }      private Node find(String name)     {         return find(name, root);     }      private Node find(String name, Node root)     {         if( name != null) {             if (root.name.equals(name)) {                 return root;             } else {                 find(name, root.father);                 find(name, root.mother);             }         }         return null;     }      public void addParents(String ego, String father, String mother)     {         if (find(ego) == null)         {             throw new IllegalArgumentException();         }         else         {             find(ego).father = new Node(father,null, null);             find(ego).mother = new Node(mother, null, null);         }     }      public boolean isDescendant(String ego, String ancestor)     {         if(find(ego) == null ||find(ancestor) == null )         {             return false;         }         else         {             return isDescendant(find(ego), find(ancestor));         }     }      public boolean isDescendant(Node root, Node ancestor)     {         if( ancestor != null)         {             if (root.equals(ancestor))             {                 return true;             }         }          return false;     }  }


Why can I feel my seven pound cat walking across floor of my home?

The house is only 9 years old. (I am the second owner)   I know they settle but in the last year I can feel all movement across the floor- year ago I could barely feel anything but did notice that when someone walked across I could feel them go by.  But more recently the cat walking across to go to the chair I can feel that.  What is going on?  I know I should not feel the cat who is 7 lbs walking by or across the floor. Split level home 9 years old Minnesota location  Is anyone out there that can explain this?


Using the definite article before a country/state name

The Punjab is a rich state.   Is it correct to use the before Punjab?


Why does this double arithmetic give two different answers on a single machine?

In the depths of some software I'm working on there is a line of code...  double DataNoise = StatsStuff.MeanofSquares() - average * average;   Example numbers:    StatsStuff.MeanofSquares() = 1.9739125181231402E-13   average = -4.3328988592605794E-07 DataNoise = 9.6511265664977283E-15 //(State1)   DataNoise = 9.6511265664977204E-15 //(State2)   If I relaunch the analysis from the GUI repeatedly, sooner or later the result of this calculation changes, sometimes on the first re-run of analysis, but it will usually give a few consistent results before switching to a different answer (the number of times before the switch is significantly variable).  Once the software has switched to returning this second value, it never reverts to returning the first.  I'm using C# and Visual Studio, testing on a Windows 7 machine with an i5 4570 if that helps anyone.  I have seen the problem in both Debug and Release builds.  Each time the analysis is launched all the analysis objects are recreated within the analysis method, so there shouldn't be anything persisting.  I've logged the values going into the calculation and they do not change; I have also used BitConverter.GetBytes() to check the numbers are the same.  I've already seen the question below and many other articles like it online, but they all relate to the differences between two different machines.   The answers in   seem to suggest that I should be able to expect deterministic behaviour from a single machine and instruction set, yet I don't.  Any help explaining why this happens and/or how to ensure a consistent result would be greatly appreciated.  Some additional byte values from debugging: Inputs: average: 48, 51, 51, 18, 221, 19, 157, 190 MeanOfSquares: 205, 250, 200, 243, 196, 199, 75, 61    Outputs: DataNoise (state 1): 192, 220, 244, 228, 126, 187, 5, 61 DataNoise (state 2): 187, 220, 244, 228, 126, 187, 5, 61


Protect Google Spreadsheet formatting while allowing changes to data

I would like to protect the formatting of a cell (or a range of cells) in a Google Spreadsheet, but still allow changing the data in that (or those) cell(s).  For example, I want to add a validation rule on a cell that says the cell has to contain a number between 1 and 10, and I would like others to be able to change the value in that cell, but not the validation rule itself.  How do I do that?  So far I was only able to completely protect the cell (content + formatting) or not at all (the user can change the content as well as the formatting).  To me this seems to be an important functionality when adding access rights to spreadsheets. Is it possible that it is completely missing from Google Spreadsheets?


A profile makes mozilla firefox killed. How to repair?

Mozilla firefox fills system memory and gets killed during startup if I use my "default" profile, even when started in safe mode. I'm using Kubuntu Linux.  $ firefox -safe-mode Killed $   Upgrading did not help (from firefox 3.6.13+build3+nobinonly-0ubuntu0.10.04.1 to firefox_3.6.16+build1+nobinonly-0ubuntu0.10.04.1_i386.deb).  I created a new profile and it works, safe mode is not required.  How can I repair the "default" profile? I'd like to have access to the data stored there (bookmarks, history, scrapbook, passwords etc).


VT-x enabled in BIOS, but disabled in Windows 10

I'm tryting to run NOX app player but show warning message Virtualization is off and in task manager the vt-x is indeed disabled.  I already enabled it in BIOS and i don't have AVAST antivirus to block it as I saw in other posts.  I already tried several things, like disable it, reboot, enable and reboot again, nothing worked.  Any help I would appreciate!  EDIT: I only had vt-x enabled and forgot to enable Intel Virtualization in CPU options. Problem Solved!


If computer RAM was to be non volatile like other persistent storages, then there would be no such thing as boot up time. Then why is it not feasible to have a non volatile RAM module?


Problem is to find sum  $$\frac{1}{3!}+\frac{4}{4!}+\frac{9}{5!}\cdots$$  What I knew doesn't apply on this problem  Some series are telescoping, some types are solvable using binomial , both look useless here Binomial gives  $$n (n-1) (n-2)x^3=1$$  $$n (n-1)( n-2)(n-3)x^4=4$$  What approach to use here?


"Failed to start LSB: VirtualBox Linux kernel module"

Ubuntu-server 17.04 x64, Cinammon 3.2.7, Kernel 4.13.3 generic.  Attempting to set up VirtualBox, though so far I have been unable to start any virtual machine. Upon installation (apt install virtualbox), I get the following lines near the end of the installation process:  ● virtualbox.service - LSB: VirtualBox Linux kernel module Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-09-21 19:57:07 +04; 18ms ago Docs: man:systemd-sysv-generator(8) Process: 463 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE) CPU: 28ms  Sep 21 19:57:06 Hiigaran systemd[1]: Starting LSB: VirtualBox Linux kernel module... Sep 21 19:57:06 Hiigaran virtualbox[463]:  * Loading VirtualBox kernel modules... Sep 21 19:57:07 Hiigaran virtualbox[463]:  * No suitable module for running kernel found Sep 21 19:57:07 Hiigaran virtualbox[463]:    ...fail! Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Control process exited, code=exited status=1 Sep 21 19:57:07 Hiigaran systemd[1]: Failed to start LSB: VirtualBox Linux kernel module. Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Unit entered failed state. Sep 21 19:57:07 Hiigaran systemd[1]: virtualbox.service: Failed with result 'exit-code'.   Tried following the top answer in  question, by removing virtualbox-dkms and installing it again. This resulted in the same lines as above.  Attempting to start a virtual macine, I get an error giving the following details:  Kernel driver not installed (rc=-1908)  The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing  'modprobe vboxdrv'  as root.  where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.    The modprobe command results in:  modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.13.3-041303-generic


Understanding the AdS/CFT Correspondence

I am beginning to learn about the AdS/CFT correspondence, but I can't find a comprehensive introduction that includes the relevant gravitational/string theory physics. What specific areas of general relativity and superstring theory are essential for understanding the correspondence?


Can a multiclassed warlock expend a Spellcasting spell slot of a non-warlock class to use the Eldritch Smite invocation?

Can a multiclassed Warlock use a spell slot from the Spellcasting feature of a non-Warlock class to perform Eldritch Smites?  Eldritch Smite says:     Once per turn when you hit a creature with your pact weapon, you can expend a warlock spell slot to deal an extra d8 force damage to a target, plus another d8 per level of the spel slot, and you knock the targert prone if it is huge or smaller.   The multiclassing rule for Spell Slots (PHB, page 164) says:     You determine your available spell slots by adding together all your levels in the bard, cleric, druid, sorcerer, and wizard classes, half your levels (rounded down) in the paladin and ranger classes, and a third of your fighter or rogue levels (rounded down) if you have the Eldritch Knight or the Arcane Trickster feature. Use this total to determine your spell slots by consulting the Multiclass Spellcaster table.    Pact Magic (PHB, page 107) says:     If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   (All emphasis mine.)  It's pretty clear to me that spell slots are supposed to be interchangeable. You can't know which ones are paladin and which ones are sorcerer, for example. It is easy to tell warlock spell slots apart from the others however, but it seems you can cast paladin spells using warlock slots, so the intention here seems to be interchangeable as well.  Can you use a Spellcasting spell slot to Eldritch Smite?  I know from the question "" that Divine Smite can use Warlock slots, but I want to know if it works the other way around as well.


I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.  In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is) I want to grab the data from the database. I want to save the results in cache and on the second call to use the cached version if it exists.  Can anyone show an example of how this would work, where this should be implemented (model?) and if it would work.  I have seen this done in traditional ASP.NET apps , typically for very static data.


non-countable subset of $\mathbb 2^{\mathbb Z}$ with finite pairwise intersection.

Does a non countable subset of the power-set of $\mathbb Z$ exist so that the intersection of any two elements is a finite set?  If we ask for the sets to be pairwise disjoint then the answer is a clear no. I'm pretty stumped, something which may be helpful is that the number of finite subsets of $\mathbb Z$ is countable.


I admit. The articles are the most difficult things I find in this language but I'm learning and I'm better than before! I've been reading about the articles in several authentic books and have a question now.      Does the adjective 'same' ALWAYS have the definite article 'the'?    In fact, looking at complexities of using the articles for zillions of nouns, I feel at least this word -same will make me sure using the article the if this is the case! So, next time on, I'll never make a mistake by not putting the before same.


Site for computer networking project ideas

Is there any Stack Exchange site where I can ask questions about computer networking project ideas?


When I go on Blender, the whole thing is pink

I am creating this Minecraft animation and I saved and left my WIP, 2 hours later I came back on, went on my save and the whole world was pink, how do you fix it? Thanks!


How do I prove that the isometries to the unit sphere are the restriction to S^2(1) of the orthogonal lineal applications of R^3?

This is apparently a classical differential problem yet I struggle to find the demonstration of the next affirmation: The restrictions to $S^2(1)$ of the orthogonal lineal applications of $R^3$ are the isometries of the unit sphere.


I touched a CRT television monitor and have some feelings in my hand.what is the reason?

It felt like some sort of vibration. Even though when I unplugged the power cable it is maintained.


Why are Harry's GoF dreams in the third-person?

In Goblet of Fire, when Harry dreams about Voldemort, it's always in the third-person. For the first dream, when Frank Bryce is being murdered, the text makes it clear that Harry is not dreaming from Voldemort's perspective.  He closed his eyes tightly and tried to remember what Voldemort had looked like, but it was impossible...All Harry knew was that at the moment when Voldemort's chair had swung around, and he, Harry, had seen what was sitting in it, he had felt a spasm of horror, which had awoken him...or had that been the pain in his scar? (GoF, "The Scar")  Later he has a second dream. Again, Harry sees the dream in third-person perspective, from behind Voldemort's chair:  "Harry - did you see Voldemort?" "No," said Harry. "Just the back of his chair. But - there wouldn't have been anything to see, would there? I mean, he hasn't got a body, has he? But...but then how could he have held the wand?" Harry said slowly. (GoF, "The Pensieve")  However, every other time in the series, Harry dreams of Voldemort from Voldemort's perspective, or the perspective of whoever he's possessing. The only other time he sees Voldemort is when he looks in a mirror. So what gives? Are Harry's Goblet of Fire dreams different than his other dreams in some important way?


There are many questions here unsure about the difference between user's/users'/users guide and the like, whether that's called posessive, genitive or whatever. bridesmaid for example clearly does describe only one bride, and possibly no plurality or other inflection of brides.  Coming from German, I'm rather sure that -s was originally not plural and I've gone around leaving a few comments to that effect.  Now the pertinent question is, did the genitive, e.g. Smith's, lead to the plural reading?  Disclaimer: I did not take the pain of picking up books on the reconstructed Proto-Germanic grammar. For the purpose of this venue, it might still be worthwhile to have a link for reference.  PS: The first  question does not show a satisfying answer. Duplicating the question would be ill-advised, and contributing to the former would be a possibility. But the answer implies that the plural -s was directly inherited. I think it's downright wrong and I would expect references to back-up the claim.


Grammatical explanation of a sentence that begins with "there"

There was a loss of 36 billon.   I don't know how to explain the grammatical concept of this sentence. Can you kindly explain me? Please tell me the sentence pattern of this also.


How can I install more recent versions of software than what Debian provides?

Suppose I want a more recent version of software than is available for my current version of an operating system, what can I do?  Cases to consider:   There are semiofficial/official sources of additional packages available for that version of the OS. E.g. backports.org for Debian or PPAs for Ubuntu. There are no more recent versions of the package available for that version of the OS, but there are more recent versions available for more recent versions of the OS. This is the standard case for backporting. There are no packaged versions of more recent versions of the software available. Options available are to package the more recent version.     Per  this is intended as a place to put canonical answers for the following. Answers should probably be made community wiki.


If $\overrightarrow a$,$\overrightarrow b$,$\overrightarrow c$ & $\overrightarrow d$ are unit vectors such that $(\overrightarrow a\times \overrightarrow b).(\overrightarrow c\times \overrightarrow d)=1 $ and $\overrightarrow a . \overrightarrow c =\frac{1}{2}$ then (A) $\overrightarrow a$,$\overrightarrow b$ & $\overrightarrow c$ are non-coplanar (B) $\overrightarrow b$,$\overrightarrow c$ & $\overrightarrow d$ are non-coplanar (C) $\overrightarrow b$ & $\overrightarrow d$ are non-parallel (D) $\overrightarrow a$ & $\overrightarrow d$ are parallel and $\overrightarrow b$ & $\overrightarrow c$ are parallel. The official answer is C My approach is as follow $\cos \theta  = \frac{{\overrightarrow a .\overrightarrow c }}{{\left| {\overrightarrow a } \right|\left| {\overrightarrow c } \right|}} = \frac{1}{2},\theta  = {60^o}$ Let $\overrightarrow t=(\overrightarrow a\times \overrightarrow b)$, $\overrightarrow u =(\overrightarrow c\times \overrightarrow d) $ How do I proceed from here and check each option


Why differentiability implies continuity, but continuity does not imply differentiability?

Why does differentiability implies continuity, but continuity does not imply differentiability?   I am more interested in the part about a continuous function not being differentiable.  Well, all I could find in regards to why continuous functions can not be differentiable were counter- examples...   I just wanted to know if there was a more detailed way of explaining this.


We can say ‘fried fish’, ‘baked potato’ or ‘minced pork’ using past participles for modifiers.  However, ‘roast’ is different - either ‘roast duck’ or ‘roasted duck’ works, it seems to me.  How should we analyze this?  Is ‘roast’ a noun modifying a noun here, or is it a different form of the past participle?  (According to freedictionary.com, in Middle English the past participle was ‘roste’ – does that mean that this was once a strong verb?)


Prove equality between binomial coefficients.

Using the Binomial theorem, prove that:  $$ \binom{m+n}{k}=\sum_{j=0}^k \binom{n}{j}\binom{m}{k-j},\; 0\leq k\leq m+n$$


Joint density for exponential distribution

Let $X_1$ and $X_2$ be independent random variables each having a exponential distribution with mean $\lambda = 1$.  (a) Find the joint density of $Y_1 = X_1$ and $Y_2 = X_1 + X_2$.  (b) Get the marginal density of $f_1(y_1)$ and $f_2(y_2)$.  $f(x_1)=e^{-x_1}$, $f(x_2)=e^{-x_2}$  Since $X_1$ and $X_2$ are independent, $f(x_1, x_2)=f(x_1)f(x_2)=e^{-x_1-x_2}$  However, how could I find the joint density?  I mean, it is quite easy to find marginal ones from the joint one, but how can I do the opposite?


I want to make notes. How can I make big document?

I am undergraduate mathematics student.I used latex I know all basic of latex. Right now I want to make my notes where I can collect my all Important Theorem,Lemma Definition on Latex. I want to make notes but can not understand How to make notes on latex. which packages I need? how can I set my Page?  I exactly want make collection of my notes just like book structure. Index, Chapter ,Remark etc It become big document . How can I make such big document.


Identify book where boy transports forward in time to a future Earth

I read this book 15 years ago or so and am trying to find it again. A teen-aged boy transports through time, I think via a fountain, to a world which he doesn't recognize (comes to find out it is earth hundreds, if not thousands, of years in the future) When he is first transported he comes out in a jungle type area. The book goes on to have him captured and then enslaved by a clan.  He eventually wins his freedom by acts of valor in battle. He becomes a major warrior in the clan and falls in love with one of the girls. Once everything falls into place with his life there, he is chasing an enemy in that same jungle and I want to say a beam of light transports him back to his own time without him aging. He appears at that same fountain wearing his battle gear about to throw a spear with everyone in the mall area wondering what he is doing.  I'm pretty sure this is fairly accurate, but it has been a while and I could be misremembering some events.  Thanks for your help!


I found out recently that my computer is afflicted with the Service_KMS.exe Trojan. I detected the Trojan with Avast Free Antivirus. After running a boot-scan Avast deleted the files associated with this Trojan. After a day, the Trojan was detected again. I ran another boot-scan with Avast and the process repeated. The Trojan is still there.  Current Problems:   Computer has drastically slowed down Computer Shutsdown/Restarts/Logs Off Computer Freezes temporarily and either unfreezes or shutsdown/restarts   I began to research the Trojan and it says that it is very dangerous. I have tried the methods so far in this article; however, I was not able to locate the files after selecting Show All Hidden Files   Thank you for your time


Android Studio NullpointerException using Intent + Bundle

I'm trying to pass a text field from an activity to a fragment, using this code:  EditText textPlayer1;  public void goToSinglePlayer() {     Intent intent = new Intent(this, ActivitySinglePlayer.class);     String player1Name = textPlayer1.getText().toString();     Bundle bundle = new Bundle();     bundle.putString(player1Name, "player1Name");     intent.putExtras(bundle);     startActivity(intent); }   I want a player to enter the text, and then pass the name to the fragment. When I recieve the bundle, I have this code:     public SinglePlayerGameFragment() {     // Required empty public constructor }  @Override public void onCreate(@Nullable Bundle savedInstanceState) {     super.onCreate(savedInstanceState); }  @Override public View onCreateView         (LayoutInflater inflater,          ViewGroup container,          Bundle savedInstanceState) {     View view = inflater.inflate(R.layout.fragment_single_player_game, container, false);     TextView player1Name = view.findViewById(R.id.player1Name);     String name = (getActivity().getIntent().getExtras().getString("player1Name"));     player1Name.setText(name);     return view; }   This gives me the error:  Caused by: android.view.InflateException: Binary XML file line #13: Binary XML file line #13: Error inflating class fragment                Caused by: android.view.InflateException: Binary XML file line #13: Error inflating class fragment                Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference   I've been racking my brain trying to figure this one out, but I'm stuck. Anyone have an idea?  Thank you in advance.


My textbook says that the product of two ideals $I$ and $J$ is the set of all finite sums of elements of the form $ab$ with $a \in I$ and $b \in J$. What does this mean exactly? Can you give examples?


Put two equations under a math symbol vertically

I want to write an equation like this:  I know how to achieve this  by using l_j(x) = \prod_{i = 0, i \neq j}^{N}\frac{x- x_i}{x_j - x_i}.  But as you can see the two equations under the symbol \prod are not stacked up vertically. I tried to use \underset to put one under another l_j(x) = \prod_{\underset{i \neq j}{i = 0}}^{N}\frac{x- x_i}{x_j - x_i}.  Then I got:  The second equation is smaller than the first one. Does anyone know how to stack them vertically and maintain the same size? And also, I am not sure how to generate the curly "l" in the first figure I showed. I tried \mathit{l}, but it does not work.


How to check for a duplicate row before inserting using PHP


Strange things happen to my Google Chrome (35.0.1916.114) in Ubuntu 14.04 LTS.  Before    After    As you can see icons and fonts are different and also tab styles changed. Sometimes after system start fonts all over Ubuntu are different. Restart usually solves desktop fonts, but Chrome (and also Chromium) are still messed.  I also noted Chrome's "indicator" icon in toolbar.  I am using standard Google repository ().  Can anyone please help me how to solve this?


How do I remove all desktop-related packages, leaving server only?

I've got a VPS server, on which I surprisingly find packages like bluez or thunderbird-gnome-support or firefox or libqt4.  Do I have to list all the packages like in ""?


How to get correlation between two categorical variable and a categorical variable and continuous variable?

I am building a regression model and I need to calculate the below to check for correlations   Correlation between 2 Multi level categorical variables Correlation between a Multi level categorical variable and continuous variable  VIF(variance inflation factor) for a Multi level categorical variables   I believe its wrong to use Pearson correlation coefficient for the above scenarios because Pearson only works for 2 continuous variables.   Please answer the below questions   Which correlation coefficient works best for the above cases ?  VIF calculation only works for continuous data so what is the alternative?  What are the assumptions I need to check before I use the correlation coefficient you suggest?  How to implement them in SAS & R?


How do we identify if a number can be represented as the sum of squares of$ 3$ integers?

How do we identify if a number can be represented as the sum of squares of $3$ integers?  For eg: $434 = 11^2 + 12^2 + 13^2$ but $432$ is not?


Let $\mathbb{Z}\left [ i \right ]=\left \{ a+bi:a,b \in \mathbb{Z} \right \}.$   Show that the field of quotient of $\mathbb{Z}\left [ i \right ]$ is ring isomorphic to $\mathbb{Q}\left [ i \right ]=\left \{ r+si: r,s \in \mathbb{Q} \right \}$   Let's try to construct the field of quotient:  The field of quotient is the smallest field of fraction contained in an integral domain.   Try: $F=\left \{ \frac{a+bi}{c+di} : a+bi, c+di \in \mathbb{Z}\left [ i \right ]\right \}$  I never liked these sort of questions involving function construction. I wish I could obtain a bit of help here to get me further.  Thanks in advance.


Caption issue when placing figure side by side

I placed 2 figures side by side using the minipage method from , and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how can I fix it?    My code is like this:  \begin{figure}[htbp]   \centering   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure1.png}     \caption{Caption for figure 1.}     \label{fig:fig1}   \end{minipage}%   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure2.png}     \caption{Caption for figure 2, but longer.}     \label{fig:fig2}   \end{minipage} \end{figure}


I want to open a file for reading, the C++ way. I need to be able to do it for:   text files, which would involve some sort of read line function. binary files, which would provide a way to read raw data into a char* buffer.


So here I got a descent explanation that what actually is a virtual function and why do we really need it,        But there still remains a question in my mind that how compiler actually interpret that which definition should be used in case of multiple or hybrid inheritance. For example consider this example  class Up {  public:   void func(){       ...     }  };  class Middle_1 : public virtual Up {  public:  ... };  class Middle_2 : public virtual Up {  public:  ... };  class Down : public Middle_1, public Middle_2 {  public:  ... };   In above example code, class Down is receiving two definition of class Up (i.e one from Middle_1 and another from Middle_2). However we had ensured to use the virtual tag in Middle_1 and Middle_2 class which will remove the case of ambiguity (because compiler will take only one definition) and that is where my question arises.  Actually I am having a bunch of questions,   How will compiler select the best suited class? Will the selection be similar in all conditions? Didn't it contradict the fact that compiler have zero IQ?   Thanks in advance.


How to make a content management system to load webpages without a PHP loader and its query strings?

I have a MediaWiki 1.35.2 Hebrew website which is principally all core; I host that website on a shared Apache, Nginx (as reverse proxy), PHP and MySQL hosting environment. The default behavior of MediaWiki is to load any webpage with the PHP loader* index.php and at least one query string; The MediaWiki phenomenon I have described often raises errors in Google Pagespeed Insights about too many resources which consume loading time (maybe it's better to load these informally without query strings) and it also makes my URLs "long" instead "short" (i.e. without using this index.php method) when they are already long because of Right-To-Left language Encoding. For some reason/s I have a very hard time finding my way in the following MediaWiki guides on how to get shorter URLs without index.php and its query strings (guides that include explicitly outdated parts and/or many warnings and exceptions):


Why do we require quotient to be surjective?

Definition. Let $X$ and $Y$ be topological spaces; let $p : X \to Y$ a   surjective map. The map $p$ is said to be a quotient map provided a   subset $U$ of $Y$ is open in $Y$ if and only if $p^{-1}(U)$ is open in $X$.      Definition. If $X$ is a space and $A$ is a set and if $p : X\to A$ is a surjective map, then there exists exactly one topology $\tau$ on   $A$ relative to which $p$ is a quotient map; it is called the quotient   topology induced by $p$.      Definition. Let X be a topological space, and let $X^*$ be a partition of $X$ into disjoint subsets whose union is $X$. Let $p : X  \to X^*$ be the surjective map that carries each point of $X$ to the element of $X^*$ containing it. In the quotient topology induced by $p$, the space $X^ *$ is called a quotient space of $X$   It seems that to induce a quotient topology by using $p$, we don't need the property of $p$ being surjective. Why do we require a quotient map to be surjective? Are there some important applications of the surjection property? To prove a function is a quotient map, do we need to explicitly prove the function is surjective ?   Does the following picture give some intuition? It's from Wikipedia. The next stage of this gif is the $S^2$ obtained by gluing the boundary (in blue) of the disk $D^2$ together to a single point.


Is redirection with `>>` equivalent to `>` when target file doesn't yet exist?

Consider a shell like Bash or sh. The basic difference between > and >> manifests itself in a case when the target file exists:   > truncates the file to zero size, then writes; >> doesn't truncate, it writes (appends) to the end of the file.   If the file does not exist it is created with zero size; then written to. This is true for both operators. It may seem the operators are equivalent when the target file doesn't yet exist.  Are they really?


please forgive my ignorance, but need some help. My ex installed Ubuntu 12.04lts on my Asus laptop, and everything running well. This morning all good, mousepad working, 2 finger scrolling working, put it into hibernation and on waking mousepad not working.   I found what to put into terminal to make mousepad work again, but was confused by instructions of what to do make it permanently work. And 2 finger scrolling doesn't work and there is no option in mousepad settings.  Any clear directions would be gratefully appreciated as I don't want to have to contact the ex for help....ever!!


ArcGIS 10.2 Changing 'null' to 'zero' in attribute table?

I have a table (Excel, csv) with county names and three additional column headings. I would like to ensure that everything under the three additional headings have a zero rather than a 'null' value.   I do not know Python (I see Python as an answer in other questions).


Ubuntu 14.04 not booting after error message. /tmp could not be mounted

I recently installed Ubuntu 14.04 using WUBI and after installation when it booted it showed an error:   Serious errors were found while checking the disk drive for /.    There were three options:   press [I] to ignore, press [S] to skip mounting and press [M] to mount manually.    After I pressed I, it showed /tmp could not be mounted and my Ubuntu isn't booting.   Can anybody please guide me to how to solve this problem?


How hard/expensive is it to set up and maintain a Dojo alone?

I've been playing long enough to get most weapons that don't require research. Since I don't have anyone to play with and don't want to go out searching for a clan, I guess I'm going to have to do this alone.  How expensive (credits/forma/platinum/other resources) is it going to be to start a clan and build enough Dojo facilities to start researching new stuff? Are there any maintenance costs or tasks that I need to be aware of after the Dojo is built?


Tiny white very hard cell bug! Please help to identify!

I found these bugs walking on the floor/ wall and on my laptop.  And unfortunately I think they could be in my bed, too, since I bring my laptop to bed sometimes.   I live in a big city in the Netherlands without pets. My house has humidity issues.  I have noticed that the bugs are very tough to exterminate; meaning that when trying to squeeze them it really needs a lot of effort for their size. Their size is about 1 - 2 mm and their color is whitish.    Please note that my lightbulb is having a yellow color.so it makes it look darker than normal. It's more white than looks in the picture          This is a pic of it walking on my screen...


This is the question I've run into: Show that given a set of  positive n integers, there exists a non-empty subset whose sum is divisible by  n  I'm having trouble understanding how they came to the conclusion    the part that I'm having trouble understanding is how subtracting the two subsets results in a sum that's divisible by n given that the two subsets have the same remainder


Wrapping my head around the mathematical definition of infinity and just curious here: Are there more real numbers than irrational numbers? It would intuitively seem so, but they are both just uncountable infinite sets, right? Some I guess there would be the same number of irrational numbers as real numbers? But I can't imagine a "bijection" between them. (A term I just learned about five minutes ago...)


How does gnome-shell / dash-to-dock choose an icon for running java application (Talend)

I have installed Talend Open Studio by simply unzipping the archive in my home folder. The application is launched via a shell script. Then I created a desktop file :  [Desktop Entry] Name=Talend Open Studio Comment=ETL Exec=/home/franck/devel/outils/TOS/TOS_DI-linux-gtk-x86.sh Path=/home/franck/devel/outils/TOS/ Terminal=false Icon=/home/franck/devel/outils/TOS/24_talend-icon.svg Type=Application Categories=Development;ETL   I put it in ~/.local/share/applications/tos.desktop Finally I added the launcher to my favorite apps, so it stays in my dash-to-dock bar (Ubuntu Dock).  Now when I click on the icon (second on screenshot), TOS launches, but another icon (fourth) pops up for the running application; instead of the custom icon I put in my .desktop file, I get another (pixelized) icon.    So here are my questions:   how does gnome-shell affect an icon to a running application? where does it find a suitable icon? (a poor one in my case) how can I force it to take my .desktop icon? ideally, it would not show two icons while running (the launcher and the running one). What mechanism is implied here?


I have a score of some feature, $F_1$ and $F_2$ where this score is the logarithm of probability.  This score is very low and very sparse, for example i have:  $F_1$ with score $-800$  $F_2$ with score $-3000$  I need to get the probability with the exponential function and make the sum of probability like this:  $e^{-800} + e^{-3000}$  But if I make the exponential of this number i get 0 for the underflow problem. With log-sum-exp trick i can do:  $\log(e^{-800}+e^{-3000})$  $= \log(e^{-800+800}+e^{-3000+800})-800$  $= \log(e^{0}+e^{-2200})-800$  But now i have $e^{-2200}$ that is too small.   What's wrong? how I can make my $e^{-800} + e^{-3000}$ sum ?


How to pluralize a last name like Thomas

If I am addressing a card to multiple family members with the last name Thomas, is the correct spelling Thomas's or Thomas'?


A book from the 60s or 70s about a crashed spaceship and their colony

I read these books in the late 60s or 70s. There were two books in the series. I don't remember the author or titles.  There is a war between humans and aliens. A human ship crashes on a unexplored planet. They struggle to survive and live in a bunch of caves. One of the politicians refuses to work and is finally executed for hoarding. There is native life on the planet. A wolf-like species battles the humans but eventually they are found to be sentient and a truce is made. Another alien is a gopher-like creature that is telepathic and can relay messages.  After many years the humans, wolves and gophers live in harmony. Then an alien spaceship lands on the planet. The humans and their allies kill the aliens and take over the ship.  The second book is about them going out and conquering the alien empire and rescuing the human planets. It has a little of the flavor of Poul Anderson's The High Crusade.


Integrating into knob-and-tube wiring: okay to borrow a ground

I have a mixture of knob-and-tube and NM-B. If I'm extending from knob and tube, but I have a (different) an NM-B circuit nearby, is it technically allowable to ground via ground wire in the other cable? If not, what is the right way to do it?  (Please don't tell me to replace all the knob and tube -- it's not going to happen.)


how to use pre-loaded sqlite database [Android Studio]

recently i am trying to build an application that can open existing SQLite database using Android Studio, and i am still a newbie on android programming...when i was searching for the way to open the database, i found this link :    btw i still don't know how to implement the code on that link into my project...is there anyone here who is kind enough to help make the examples (or at least give some direction) about how to use it? Just a simple example is really enough for me...thx before :)


dealt with the error:  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 23: invalid continuation byte   Now there is a different problem. The code is:  import bpy import csv import sys  file = open('test.csv', 'rU', 'ignore') reader = csv.reader(file)   The error message is:  TypeError: an integer is required (got type str) Error: File format is not supported in file '/PI-SAT/proj001/test.csv'   I have verified that test.csv is a valid .csv file by running a different script:  import csv  path = "test.csv" file = open(path,'rU') reader = csv.reader(file)  header = next(reader) # 1st line is header #data = [row for row in reader] # Read remaining data print(header)  data = [] for row in reader: name0 = row[0] name1 = row[0] vid_file = 'test-videos/' + row[5] + '.m4v' cli_line = name0 + '", "' + name1 + '", "' + vid_file print(cli_line)   This runs exactly as expected as a stand alone Python script.  What is causing the error when I attempt to run the code as a Python script in Blender?


What will be total number of solutions of $a+b+c = n$?

Please tell me how to find the total number of intergral solutions of $$ a+b+c=n $$ I already know that total number of solutions will be $(n+3-1)c(3-1)$.  But what will be the case when a varies from let $2$ to $6$ , $b$ varies from $2$ to $6$, $c$ varies from $2$ to $6$.There can be other conditions also. Please give the generalized result. It will be really helpful.


My guess would be:  function isNumber(val) {     return val === +val; }   Is there a better way?  Previous Reference


How do I lower the brightness further than the limitations on the iPhone / iPad?


Why do I sometimes see a user card under a question or answer which looks like the following?        Has the user been deleted?


"(CRON) info (No MTA installed, discarding output)" error in the syslog

I have a fresh install of Ubuntu 12.04.1 LTS an a number of servers.  I have not added any cron jobs or edited my crontab on those servers, however, at around the same time for each machine, I get a 75% CPU spike and the following info in my syslog at the time of the spike:  CRON[8380]: (CRON) info (No MTA installed, discarding output)   I have mono-complete installed and am running a service stack webserver.  What is the best way for me to stop this from happening?  I would like to be able to remove the CPU spike.


$M /K \land L /K$ algebraic $\implies ML/K$ algebraic?

Let $K \subset M$, $L\subset K'$, and let $ML$ denote the subfield of $K'$ generated by $M$ and $L$.  Is the following true? $M/K$ and $L/K$ algebraic $\implies ML/K$ algebraic?  Any hints proof or counter-example? Cheers


I’ve just started second year at the University of Bristol, of which one of my modules is Metric Spaces.  I looked up what it means for a set to be well defined and also saw that $X = \{\emptyset\}$ is considered non-empty.  Continuing with that though process I wondered if the set defined below,  Let $X = \{\emptyset, \{\emptyset, \{\emptyset, ... \}\}\}$  is well defined.  My questions are is $X$ countable, could you define a metric on it and does it have any interesting properties or applications.  EDIT: Within ZFC set theory, $X$ violates the axiom of foundation. However, I still am interested in knowing if the set above has ... replaced with strictly finite repetitions, is defined as a set.  And if so, can you not define the set such that it has n repetitions. Then, the set would be defined $\forall n\in\mathbb N$, exept in the case of infinity  Thanks


I have a method that takes a parameter of the type DateTime?  I need to convert what I receive to a string of the format - yyyy-mm-dd  What is the cleanest optimal way to achieve this?


Compare date not working with toLocaleDateString() in javascript?

When i am trying to compare the two dates using date.toLocaleString() it is not giving the correct answer for some months date.  var date1 = new Date(); var date2 = new Date((new Date()).valueOf() + 1000*3600*24); if(date1.toLocaleDateString() < date2.toLocaleDateString()) {   alert("Correct"); } else {   alert("Incorrect"); }   Can anyone have solution for this.


In an inner product space,  $\langle x,y \rangle + \langle y,x \rangle = 2\operatorname{Re}\langle x,y \rangle$  and  $\langle x,-y \rangle + \langle -y,x \rangle = -2\operatorname{Re}\langle y,x \rangle$  Why are these two identities true? What is the significance of writing Re instead of leaving the sum as $\langle x,y \rangle + \langle y,x \rangle$?


Warrior race trapped on their home planet by aliens. Their society turns out to be hyper-advanced

I read this story in a collection of short stories the 1980's and I am now looking for the publication.  All I can recall is that it was about a warrior race imprisoned on their own planet by an Alliance of other planets.  This imprisonment took the form of placing a force field around the entire planet that was controlled by the planet's moon.  The Alliance does not contact the warrior race for years; but eventually sends a delegation to the planet to ask for their help defending against an invader.  The Alliance finds what appears to be a peaceful agrarian society with little or no appearance of a warrior race.  Most of the Alliance delegation thinks there is little that the former Warrior race can do to help so they agree to turn off the moon force shield and the former Warrior race agrees to come to their aid.  In the mean time an away party, not the negotiation party finds out that the entire planet is filled with machinery, but they are unable to communicate this to the negotiation party before they leave.   At the end of the story the Alliance ask will the Warrior race help since they do not appear to have any ships; the story ends with the entire planet being revealed as a ship and the formal imprisoning moon being drawn along with the planet ship, once the force field generator is destroyed.  Can anyone name this story or help me find it???


Proving that $(b_n) \to b$ implies $\left(\frac{1}{b_n}\right) \to \frac{1}{b}$

In my textbook (S. Abbott. Understanding Analysis 1 ed. pp 47 Theorem 2.3.3.iv), the author proves $b_n \to b$ implies $\frac{1}{b_n} \to \frac{1}{b}$ the following way:   $$\left|\frac{1}{b_n}-\frac{1}{b}\right|=\frac{|b-b_n|}{|b||b_n|}$$  therefore, since we can make the numerator as small as we like by definition, we just need to find a "worst-case estimate" for $\frac{1}{|b||b_n|}$ by considering $|b_n| \geq \lambda > 0$. He then argues that we need to look far into the sequence so that  the terms are closer to $b$ than to $0$. So, considering $\epsilon_0$=$|b|/2$, we can use $|b_n-b|<|b|/2$ for all $n \geq N_1$. Thus, $|b_n| \geq |b|/2$. Then we choose $N_2$ s.t. $n \geq N_2$ implies $|b_n-b|<\frac{\epsilon |b|^{2}}{2}$. Finally, if $N$ = max {$N_1, N_2$}, then $n \geq N$ implies  $$\frac{|b-b_n|}{|b||b_n|}<\frac{\epsilon |b|^{2}}{2} \frac{1}{|b|\frac{|b|}{2}}=\epsilon.$$  What confuses me is why we need to pick elements closer to $b$ than to 0. What makes picking $\epsilon_0$=$|b|/3$ and $|b_n-b|<\frac{\epsilon |b|^{2}}{3}$ wrong for the proof? Thanks.


Indication required for up voted comment in Android app

There is no indication for the comments on question which I have already up-voted.  In app, user can do vote-up as many as he wants to play with it (Though its not incrementing up vote counter on Web or app) but there should be 2 things:   It should be disable or shouldn't show vote-up option if user has already voted up comment. At the same, it should show indication (same as on site) that the particular comments are up-voted by me.


How to recover data from a deleted pen-drive?

I accidentally deleted my pen drive partition.  How can I recover the data from the usb-pen-drive?