I downloaded Ubuntu 13.4 and I can only sign in as guest. I entered the User and Password I originally chose and nothing works. I can't do anything because I don't know the root password either. I run Ubuntu as well as Windows 7 Home Premium on my compaq. I'm brand new to Ubuntu and not too smart when it comes to coding. Please help if you can. And I'm not able to access the internet due to the fact I don't have the root password!


The master link that came with my chain won't fit

I have this master link that came with my chain (Snap On type). In the first picture it is distinctly the one on the left - not a spring clip.  Try as I might - it doesn't seem to be long enough? Do I need to use those funky chain pliers for it? How much can I compress that link? Thanks.


Unable to read source lists in Ubuntu 18.04

In my previous  I got an answer N0bert and I believe it caused the problem apparent in the  and post title.  "malformed line 2 in source list"  Does anyone know how to resolve this?  Regards


Sudo apt-get update error (ubuntu 14.04)

Hello Fellow Ubuntu users,   sudo apt-get update    on ubuntu 14.04 it keeps saying:  E: Malformed line 10 in source list /etc/apt/sources.list (type) E: The list of sources could not be read.   Please help me it has been like this for a while now and I just found this website. Thanks!


If I run ubuntu-drivers list the output is:  bcmwl-kernel-source nvidia-driver-396 nvidia-driver-390 nvidia-340   No clue what bcmwl is, but nvidia drivers 340 and 390 I have uninstalled. Why are they still displayed?


One word for things that would be nice to have, but not required to have?

Something a bit professional sounding?  In a scenario where there was also a bunch of Requirements, this situation could be easily solved by labelling one as Required and this specific bunch of things as Optional. But in an independent context, where no requirements exist to provide contextual flavor, what can be a concise way of referring to a bunch of things that would be great if you could have / have access to, but they're not things you need to have / have access to.  Perhaps the word which fits -  Required : Optional :: Requirements : ????  ETA: Though I'm also hoping for a better word than optional which also conveys the extra / positive nature of 'it would be really good to have this, even if it's not a requirement'.


Calculate the distance of an object in a picture?

I'd like to know the distance between the camera and the object, just by looking at the object height (pixels) or it's width and the real life dimensions. Here is a formula we can get on the internet:    But there is something very wrong with it. The "Sensor height" parameter is wrong and cannot be inversely proportional to distance. It is giving obvious absurd answers.  Let's take a very simple example. If a person is roughly 100 meters away from the camera, with a camera with a "sensor height" of 100 mm from the ground, its size on the image will be of 50 pixels height. If I am 200 mm from the ground I should not get a result of twice less distance... like 50 meters away from the camera... try it, it's wrong !  Please help me out here, this do not make sense...


How to form possessive for a list of people? "(Jane Doe and I)'s"

I'm writing a sentence, and I'm not sure if it's grammatically correct.      Here are my partner, Jane Doe, and I's completed assignment.   Would this be alright? I never know how to properly use possessives when I'm including myself and someone else.  Also, in case you didn't see my comment below, I need to include my partner's name. It can't just be "me and my partner's completed assignment". Otherwise, I wouldn't have an issue.


Difference between "acute", "chronic" and "obtuse" in the sense of illness

I've checked  for acute:  an acute illness is one that has quickly become severe and dangerous Compare:CHRONIC  And for chronic:  lasting for a long time Compare:ACUTE  Can a disease be both "acute" and "chronic" simultaneously? For example it could be the case where a certain illness quickly becomes serious and have long term consequences Are there any "obtuse illnesses" ?


Color of questions with accepted answers on user profile page

Related to these questions:    When viewing the Meta user profile, the difference between questions with accepted answers and questions without is pretty subtle. At first glance, I couldn't tell the difference at all. Can the contrast between the styles be increased a bit to make it easier to see?     This screenshot doesn't look too bad, but when looking at a list going down a whole page, it gets a bit difficult to pick one out at a glance. (I'm guessing even more so for some of the color-challenged users)


A few minutes ago, when I viewed profile pages on my phone, the tabs were all in Portuguese:   On the mobile interface:   On the full site     But it didn't happen on my desktop, and now it's back to normal.  Other users report that the site is normal, but  says it's still happening, so I've decided to post this bug report even though it seems to be working for me at the moment.   Perhaps it's some sort of intermittent problem.  I'm posting this on Meta.SE, since it seemed to happen on both Japanese.SE and ELL.SE, so it doesn't seem to be specific to a particular site.


How can I show $i^{-1} = -i$, where $i$ is the imaginary unit?  Here's what I've tried: $i^{-1} = (-1)^{-1/2} = \dots ?$


Do we hear anything special when the beat frequency is in audible range, but the sounds producing the beats are not?

When the beat frequency is very low, we hear periodic maxima and minima. Our ear cannot perceive a on-off like sound when its frequency is more than 10 Hz. So, beat frequency in audible range will not appear like a sound going on and off. Do we perceive any special when the beat frequency  is in the audible range (20 to 20000 Hz) ? (Let us assume that we can perceive every sound whose frequency is in the audible range)


Add markdown support for hidden-until-you-click text (aka spoilers)

Use cases:   Programming puzzles. This way the answer can be posted the same time as the question, eliminating doubt that no answer is possible for hard questions and proving that the question is not a homework exercise (since the author already has the answer) The socratic method. In your answer you can ask a leading question, and then once the reader has a guess they can click to reveal the answer.     EDIT: now that several new websites have been created through SE 2.0, this became much more important.  Websites such as  really need it.


Lost all my partition after installing Ubuntu 14.4 LTS

Yesterday I installed Ubuntu 14.04 LTS with a bootable pendrive. Before that I had 3 partitions on my windows system (C:, D:, and E:). During the installation process I thought it would be the same as windows where it formats the C: drive and that Linux gets installed in C:. I chose the second option where it said erase disk and install Ubuntu.  Now I cannot find any of my drives. I have read hundreds of threads in this forum and tons of youtube tutorial to retrieve it by using testdisk but could not figure it out. When I use it with liveUSB it shows two storage systems. When I run (disks) from the application the result shows:  Disk Drives: 500gb Hard disk Hitachi HTS727550A9E364 Size:500gb  Partitioning : Master Boot record Device: /dev/sda1 Partition Type : Linux Bootable Contents : Ext2(version 1.0) not mounted   And below Disk Drives section there is Other Devices which has:  491GB block device 8.5gb block device 967mb loop device   And when I run fdisk -l it shows:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00045999     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      499711      248832   83  Linux /dev/sda2          501758   976771071   488134657    5  Extended Partition 2 does not start on physical sector boundary. /dev/sda5          501760   976771071   488134656   8e  Linux LVM  Disk /dev/mapper/ubuntu--vg-root: 491.3 GB, 491333353472 bytes 255 heads, 63 sectors/track, 59734 cylinders, total 959635456 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000  Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table  Disk /dev/mapper/ubuntu--vg-swap_1: 8464 MB, 8464105472 bytes 255 heads, 63 sectors/track, 1029 cylinders, total 16531456 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000  Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table  Disk /dev/sdb: 15.9 GB, 15925772288 bytes 64 heads, 32 sectors/track, 15188 cylinders, total 31105024 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x20ac7dda  This doesn't look like a partition table Probably you selected the wrong device.     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   ?  3224498923  3657370039   216435558+   7  HPFS/NTFS/exFAT /dev/sdb2   ?  3272020941  5225480974   976730017   16  Hidden FAT16 /dev/sdb3   ?           0           0           0   6f  Unknown /dev/sdb4        50200576   974536369   462167897    0  Empty  Partition table entries are not in disk order   How do I recover my partitions?


Command substitution, assignment, tests and spaces

I know the whole language is confusing, but I am having trouble understanding assignments with command substitutions:  x=Example sentence                  #1 fails due to space x='Example sentence'                #2 ok  echo $x                             #3 ok [ -n $(echo $x) ]  && echo foo      #4 fails due to space [ -n "$(echo $x)" ]  && echo foo    #5 ok y=$x                                #6 ok y=$(echo $x)                        #7 ok, not like 1? [ -n $y ]                           #8 fails due to space    With practice, I have learned that command substitutions in tests should always be surrounded by quotes (e.g. [ -n "$(cmd)" ]), and that quotes can be used inside the substitution without interfering with outside quotes. Quoting a substitution seems to capture stdout, but not stderr (unless redirected).  Q1. But what happens when the substitution is not quoted (cases 4 and 7)?   Specifically, I am confused with the apparent difference in behaviour between assignments x=$(cmd), which seem to work fine with spaces, versus tests [ -n $(cmd) ], which seem to always be truthy.  Q2. Is it bad practice to assign command substitutions without quotes x=$(cmd)? Should I always quote them x="$(cmd)"?


Python sorting a dictionary by values based on key

From what I understand, you can sort a dictionary by items, keys, and values which will then show the respected part in a sorted list   sorted( d.items...) shows the entire entry, keys to keys, and values to values.  How would I go about showing only the values in a dictionary based on the key being sorted?  I've tried  sorted(d.values(), key = (lambda x:...) - but I'm not sure if I'm going about this the right way  d = { 2: (4,6) , 5: (3,2), 3: (5,9) } would be an example of a dictionary and I want it to display   { (4,6), (5,9), (3,2) } - ordered based on key but only show values.  I'm trying to only use the sorted function and not import anything else


So this is pretty obvious. Image upload?    How about allowing to attach images in questions from the photo gallery, by perhaps sending the image for off-site storage like done from the full-web version?


Complex sum of sine and cosine functions

By using the complex representations of sine and cosine, show that $$\sum_{m=0}^n\sin m\theta =\frac{\sin\frac{n}{2}\theta\sin\frac{n+1}{2}\theta}{\sin\frac{1}{2}\theta}$$   So I am not too sure how to go about this proof. I tried to substitute sine for its complex representation but I can't see how to evaluate the sum?


"A classmate and I was" vs "A classmate and I were"

I'm writing a resume right now targeted towards a specific company. My girlfriend (a classmate) and I were (see, I don't know if that's the right word, hence this question!) the first from our school to be awarded a scholarship from this company.  Is it more correct to say:     Awarded such and such scholarship in 2011. A classmate and I were the first students from my college to be awarded this scholarship.   Or:     Awarded such and such scholarship in 2011. A classmate and I was the first students from my college to be awarded this scholarship.   The first seems much more correct when spoken, but the rule I've been taught is to take the other person out and use the words that make sense about just you.


Textbook for first course in linear algebra

I am looking for a textbook to aid me in self studying linear algebra. I currently own Axler's Linear Algebra Done Right, but I fear it is not sufficient for an initial treatment. Any recommendations?


what do i use as zipcode in usa when ireland doesnt have zipcodes?

My friend is visiting from Ireland and wants to know what she would use as a zipcode at the gas pump in USA when in Ireland they don't have a zip code ???


Calculating $\displaystyle{ \int_{-\infty}^{\infty}\frac{\cos\left(a x\right)}{(x^{2} + 1)(x^{2} + 4)}\,{\rm d}x\, \quad}$ using complex integration

I want to calculate $\displaystyle{ \int_{-\infty}^{\infty}\frac{\cos\left(a x\right)}{(x^{2} + 1)(x^{2} + 4)}\,{\rm d}x\, \quad}$. I started of by rewriting the integral cos(ax) into e^{iax}+e^{-iax} and then integrating along the line segment $\left[-R, R\right]$ and the semicircle $C = \left\{z: \left\vert z\right\vert = R, \; z\geq 0\right\}$. I am very new to complex integration and I got stuck there so I would appreciate any help on what to do next or guidance to solving this.


Can I allocate everything to '/' and a small amount to '/home'?

I followed a guide to install ubuntu and put 20gb in '/' and the rest (150gb) in '/home'. I realized that everything I install goes to '/'. I am running out of space after installing Matlab, PyCharm, docker and still need to install many other stuffs. I don't know wtf '/home' is used for then. What are the dangers of allocating all my space to '/' ? Eg 200gb to '/' and 1 gb to '/home' for god knows what.  How can I make the Ubuntu installation / partition similar to Windows so I don't have to worry about partitions and shit EG: like a C drive for every effin thing ? I don't care if I lose everything if I do a re-install or upgrade Ubunutu.


pros and cons of HSA in Investment account

I have my HSA that is currently in savings or checking account. The Insurance company provides option to keep the money in Investment account.  What are the pros and cons of parking HSA fund in Investment ?


Let $a_0=5/2$ and $a_k=a^2_{k-1}-2$ for all $k\geq 1$.The question is to compute $$\prod_{k=0}^{\infty} \left(1-\frac{1}{a_k}\right)$$  I tried to calculate few terms.$a_0=5/2$, $a_1=17/4,a_2=257/16$ it seems that $a_k$ is of the form $2^{2^k}+2^{-2^{k}}$ however I am not sure about it.How to proceed without doing much guesswork.Any ideas?


How do I eject the Time Machine backup drive automatically after each backup?

How do I set Time Machine to eject my external Time Machine backup drive automatically after each backup?


I need test class for the below class i have for code coverage. Please help.  class and its code is  public CodeCoverageController(){         HttpRequest request = new HttpRequest();         HttpResponse response = new HttpResponse();         Http httpObj = new Http();         request.setEndpoint('https://ap5.salesforce.com/services/data/v39.0/tooling/query/?q=SELECT+ApexClassorTriggerId,ApexClassorTrigger.Name,ApexClassorTrigger.Type,LastModifiedBy.Name,LastModifiedDate,NumLinesCovered,NumLinesUncovered,Coverage+FROM+ApexCodeCoverageAggregate+ORDER+BY+NumLinesCovered+ASC');         request.setMethod('GET');         request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());         request.setHeader('Content-Type', 'application/json');         response = httpObj.send(request);         String responseReq = response.getBody();         deserializeResponse jsonResponse = (deserializeResponse)JSON.deserialize(responseReq, deserializeResponse.class);         copyJsonResponse = jsonResponse;          HttpRequest req = new HttpRequest();         HttpResponse res = new HttpResponse();         http h = new http();         req.setEndpoint('https://ap5.salesforce.com/services/data/v39.0/tooling/query/?q=SELECT+PercentCovered+FROM+ApexOrgWideCoverage');         req.setMethod('GET');         req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());         req.setHeader('Content-Type', 'application/json');         res = h.send(req);         String responseReqObj = res.getBody();         deserializeResponse responseObj = (deserializeResponse)JSON.deserialize(responseReqObj, deserializeResponse.class);         totalCodeCoverage = responseObj.records[0].PercentCovered;     }


I am using an SSH client to connect to a Solaris server.  I had a process running but my connection disconnected.  I reconnected and can see the process running when I do ps -al.  How can I bring this process to the 'foreground'?  I want to see its output.


"When" or "Where" when refering to scenario?

In a sentence like, "This bias may not be acceptable in all scenarios, especially where/when recall is important," which of where/when should be used?


I don't understand what does the dollar sign do. Especially in this context:  for url in  $(cat   example.txt);   do  host    $url;


Find $(a,b)$ if $x^2-bx+a = 0, x^2-ax+b = 0$ both have distinct positive integers roots

If $x^2-bx+a = 0$ and $x^2-ax+b = 0$ both have distinct positive integers roots, then what is $(a,b)$?   My Try: $$\displaystyle x^2-ax+b = 0\Rightarrow x = \frac{a\pm \sqrt{a^2-4b}}{2}$$  So here $a^2-4b$ is a perfect square.  Similarly  $$\displaystyle x^2-bx+a = 0\Rightarrow x = \frac{b\pm \sqrt{b^2-4a}}{2}$$  So here $b^2-4a$ is a perfect square.  But I did not understand how can I solve after that.


I have a series of complicated content I'm trying to present using TikZ.  The code is highly regular, so I wanted to write  a simple command to handle everything.  In the following code, \aelabelA and \aelabelC are not working properly at all and I don't understand why.  However, \aelabelB does work.  Could someone explain why the content of the boxes for scenario A and C is not visible?  \documentclass{standalone} \usepackage{xparse} \usepackage{tikz}  \ExplSyntaxOn \newsavebox\aebox \NewDocumentCommand\aelabelA{ mu{~located~at~(}u{);} }   {     \begin{lrbox}{\aebox}       \begin{minipage}{1in}         \Large\ttfamily\bfseries         \centering\makebox[0pt]{#1}       \end{minipage}     \end{lrbox}     \node[draw] ~ at~  (#3)  ~ {\usebox{\aebox}};   }  \NewDocumentCommand\aelabelB{ m }   {     \begin{lrbox}{\aebox}       \begin{minipage}{1in}         \Large\ttfamily\bfseries         \centering\makebox[0pt]{#1}       \end{minipage}     \end{lrbox}     \usebox{\aebox}   }  \ExplSyntaxOff  \def\aelabelC#1 located at (#2);{%%     \begin{lrbox}{\aebox}       \begin{minipage}{1in}         \Large\ttfamily\bfseries         \centering\makebox[0pt]{#1}       \end{minipage}     \end{lrbox}%%     \node[draw] at (#2) {\usebox{\aebox}};   }  \begin{document}  \begin{tikzpicture}    \coordinate (AA) at (0,0);   \coordinate (BB) at (2,2);   \coordinate (CC) at (4,4);    \aelabelA {Keys} located at (AA);    \node[draw] at (BB) {\aelabelB{Keys}};    \aelabelC{Keys} located at (CC);  \end{tikzpicture}  \end{document}


I am struggling to center my H1 tag inside my main tags. If I use position fixed with top:50% and left:50%, it works a bit, though I am never able to center it to the middle. Nothing else will work. Any advice ?    main .container {   margin-top: 40%; }   main .container .row h1 {     text-align: center !important; }

WELCOME

          Could other elements like a navbar or html interefere with this ? I also have this property for my html:    html {   min-height: 100%;   background-size: cover;   background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),   url("/static/images/background.png") no-repeat fixed center center; }     For me it's rendered like this:


I am using this to get my current PC time but it not giving me the exect time of my pc and giving me some other time which is not correct... So how i can get my exact PC time in php??. echo "The time is " . date("h:i:sa");


In the definition of limit why delta depends on epsilon ? why not epsilon depends on delta?

Please anyone help me i am bothered with epsilon I delta definition of limit. Can anyone had a good explanation of epsilon I delta definition.


I am an new blender user. But can someone tell how to get 2 objects together. I want those object in UV mapping on an single file. This model is imported from sketch up and loaded in blender. I Did that becasue texturing is easier in blender I heard.  Thanks for the help already!


An iron needle when placed horizontally on water, floats (sits) on the surface of the water. The phenomenon is usually justified as "surface tension".   From what I understand, for the needle to float without sinking, some force has to balance its weight. Since no part of the needle is under the water, buoyant force can be ruled out. I learnt that force due to surface tension always acts tangentially to a surface. So, this force should not have any vertical component. However, according to the first answer to this question  "attractive forces of the water molecules result in a net upward force on the legs of the insect". The water surface near the needle is deformed due to the adhesive force between the needle and the water surface. Isn't the adhesive force an upward force on the water (or a force with some vertically upward component) due to the needle? It would imply that there is a downward force on the needle itself which will add to the weight.  I think the part where I describe the forces between the needle and the water is wrong. Can you tell me what is wrong?


I have read things like if the sun disappeared, it would take 8 minutes or so before we knew this, cf. e.g.  Phys.SE post.  However, in real life the sun will never disappear and if it exploded, its center of mass would remain more or less the same anyway.  So what real life experiment or phenomenon reveals the speed of gravity?   If you had a very heavy mass and moved it using very sensitive equipment to detect this movement via change in gravitational attraction, would not the movement of the mass have to be a the speed of light or near it to prove that gravity propagated at the speed of light? Or is there in fact some experiment like that where a mass is moved at fairly slow speed to establish the speed of gravity?  EDIT: It seems to me that light-speed measurement is accomplished most easily by turning off and on a source or blocking a light source neither of which can be done with gravity.  EDIT 2: I think I am not understanding how the experiments work. How does a massive object in motion allow one to determine the speed of gravity since this motion is continuous? That is, the object is not suddenly some large distance away from where it was -- I could understand as previously indicated that if a mass was created from nothing somehow, one could watch how long this new source of gravity took to affect an existing mass but if the mass is merely moving relative to another mass, I can't visualize how this can be used to measure the speed of gravity which is always affecting the second mass, just slightly less so if the as the objects move apart.


How does Ubuntu synchronize time without ntp?

By clicking "System settings -> Time & Date -> Automatically from the Internet" I can synchronize time from the Internet.   However, I find that I don't have a ntpd daemon (It's not even installed). So how does the synchronization work?


How to commit my current changes to a different branch in Git

Sometimes it happens that I make some changes in my working directory, and I realize that these changes should be committed in a branch different to the current one. This usually happens when I want to try out new things or do some testing and I forget to create a new branch beforehand, but I don't want to commit dirty code to the master branch.  So, how can I make that uncommitted changes (or changes stored in the index) be committed to a different branch than the current one?


Ruby attr_writer methods in singleton classes

I can get a method that sets an instance variable in a singleton class to work if it does not end with =:  class Aaa   class << self     def config(&block)       instance_eval(&block)     end      def set_blah(blah)       @blah = blah     end      def blah       @blah     end   end end  Aaa.config {set_blah("something")} Aaa.blah # => "something" as expected   When the method that sets the instance variable ends with a =, it doesn't work anymore:  class Bbb   class << self     def config(&block)       instance_eval(&block)     end      def blah=(blah)       @blah = blah     end      def blah       @blah     end   end end  Bbb.config {blah=("something")} Bbb.blah # => nil, not sure why  # This works Bbb.blah=("hi") Bbb.blah # => "hi"   Why are the set_blah and blah= methods working differently?


How do I configure the launcher to "dodge windows"?

I don't like the auto hide launcher for it is too annoying for me. The launcher stays hidden and to reveal it, the mouse pointer has to be moved to the default hot spot. I'd instead like to have the hide to dodge windows previously available in Ubuntu 11.10. How do I change back to this behaviour?


I'm not understanding why the below are equal, can someone please explain?  Thanks!  $$\frac1{(1-x)^5}=\sum_{n\geq0}{n+4\choose 4}x^n$$


Find a line in quotes after known word in a file in php

I am new to PHP. I need help to open file and find a line within double quotes after known word(namespace) and store it in another variable. The line after the word may be after a space or may be in the next line. Here is my code.  $string = 'namespace      "urn:fsd:fsdf:fdsfs"'; if (preg_match('/namespace  *"([^"]+)"/', $string, $m)) { echo $m[1]; }   This displays null.  Sample input:  $string = 'namespace      "urn:fsd:fsdf:fdsfs"';   Output should be:  urn:fsd:fsdf:fdsfs   I am not getting the value i.e. urn:fsd:fsdf:fdsfs. I get a null. If the input is in the same line as below :  $string = 'namespace  "urn:fsd:fsdf:fdsfs"';   I get output. But if it is in next line null is displayed.


Error 505 when installing Facebook Messenger

I have a Sony Z5 Compact running Nougat.  I am unable to install Facebook Messenger. When I try I get the Error Code -505.  I have tried installing using ADB with the following command:  adb install com.facebook.orca_108.0.0.10.70-51197341_minAPI21\(armeabi-v7a\)\(280,360,400,420,480,560,640dpi\)_apkmirror.com.apk   Which seems to be the latest stable version from apkmirror.com.  I get the error message:     Failed to install com.facebook.orca_108.0.0.10.70-51197341_minAPI21(armeabi-v7a)(280,360,400,420,480,560,640dpi)_apkmirror.com.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.facebook.orca attempting to redeclare permission com.facebook.receiver.permission.ACCESS already owned by com.facebook.appmanager]   Is this something I have done? The phone is not rooted, nor have I unlocked the boot loader.  Apart from wiping the phone is there anything I can do to get the app installed? (I'm aware of all the 3rd clients, but I would really like to solve this problem.)  The app was installed before the upgrade to Android 7, but an update would not install.  I have done the usual steps like restarting, empty cache and data of Play Services, etc.  This is not a duplicate of , which was supposed to be solved with an upgrade to Android 5.0.2. I am running Android 7.


How to write a shscript to kill -9 a pid which is found via lsof -i

I'm using tomcat, and sometimes when I tell it to stop it doesn't properly kill the process.  My way around this is too do:  lsof -i tcp:8080   which outputs:  COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME java    888 root   35u  IPv6 780659      0t0  TCP *:http-alt (LISTEN) java    888 root   39r  IPv6 790103      0t0  TCP localhost:58916->localhost:http-alt (CLOSE_WAIT) java    888 root   40r  IPv6 792585      0t0  TCP localhost:58936->localhost:http-alt (CLOSE_WAIT) java    888 root   75r  IPv6 785553      0t0  TCP localhost:58701->localhost:http-alt (CLOSE_WAIT) java    888 root   77r  IPv6 787642      0t0  TCP localhost:58814->localhost:http-alt (CLOSE_WAIT) java    888 root  130u  IPv6 783894      0t0  TCP localhost:58686->localhost:http-alt (CLOSE_WAIT) java    888 root  353u  IPv6 780929      0t0  TCP localhost:58632->localhost:http-alt (CLOSE_WAIT)   I then run   kill -9 pid   I want a way to get all the pid numbers and kill them.  Thing is I don't know how to isolate that field.


Variance of Minimum and Maximum of 2 iid Normal

Let $X$ and $Y$ be iid $\sim Normal(0,1)$  Let $A=max(X,Y)$ and $B=min(X,Y)$  What are $Var(A)$ and $Var(B)$?  From simulation, I get $Var(A)=Var(B)$ approximately 0.70.  How do I get this analytically?


So if I understand correctly you can learn new words and the souls will activate these words. I just killed a dragon and when it died it looked like I absorbed the soul but it didn't unlock any of the words I have.   I noticed some dragons actually have a name so do certain dragons unlock certain words?


How to find drivers for ubuntu 20.04 LTS

I'm new to Ubuntu. I am trying it in a VM from the past 2 months and I like it! I want to dual boot it alongside Windows. Now I know how to install it, but I don't know how to install drivers. So can anyone help me to find drivers? Here are my comp's specs Intel(R) Core(TM) i7-3610QM 8 GB DDR3 RAM NVIDIA GeForce GT 630M 1 TB SSD Model: ASUS K55VM


Style of technical warnings. Why is it acceptable to omit verbs?

Dear language professionals,  What are grounds for using shortish phrase "Life vest under your seat" on the warning sign on the planes.  Is it stylistically caused? If this style allows main verb omission? Or it is just an unmotivated verb omission?


How many group homomorphisms are there from $\Bbb Z_{20}$ to $\Bbb Z_{10}$?

Can someone please explain what determines whether or not you can have a group homomorphism from one set to another, and then what determines how many you can have?


In the book I'm using on Catalan numbers, the author gives a scenario in order to develop the formula for Catalan numbers.   The scenario is that a boy has an empty jar. Every day he either puts in a dollar coin or takes on out for $2n$ days. At the end of the $2n$ days, the jar is empty. In how many ways can this happen?  I understand how he gets to the Catalan numbers. But there is one part where he says this:     note that if $n\gt 0$ then there had to be a first day other than the starting day when the jar was empty.   I'm having trouble understanding why this is the case. When I think of taking or putting a coin in a jar as the equality $y=x$, you could just add a coin in for the first $n$ days, then take one out for the remaining $2n - n = n$ days.   Why does there have to be a day other than the starting day in which the jar was $0$?


When I navigate to http://example.com it correctly redirects to https://example.com.  The problem I'm having is that when I navigate to http://example.com/sub/directory/page.htm it redirects to https://example.comsub/directory/page.htm.  Why is it not redirecting to https://example.com/sub/directory/page.htm?  Here is the apache config:  <VirtualHost *:80>         ServerName example.com          Redirect permanent / https://example.com/  </VirtualHost>  <IfModule mod_ssl.c>  #NameVirtualHost *:443  <VirtualHost *:443>          ServerName example.com          [...]          ProxyRequests Off         ProxyPass               /          http://localhost:8444/         ProxyPassReverse        /          http://localhost:8444/  </VirtualHost>   The Apache version I am using:  Server version: Apache/2.4.18 (Ubuntu) Server built:   2017-09-18T15:09:02


Two lines in space must intersect to be perpendicular between them?

Or is not necessary and why? Where is the definition?


Why is "you cannot buy all what you like" wrong?

I got the following sentences from      Wrong: You cannot buy all what you like!   Right: You cannot buy all that you like!   Why is the first one wrong? I do see the structure "you can do what you..." many times, e.g. "how to talk about what you want".


Refreshing open attribute table in ArcMap using ArcPy rather than ArcObjects?

I am running the Calculate Field GP tool from the arcpy in ArcMap. When a row value is updated, it does not show up untill I use the Reload Cache tool (Table Options > Reload Cache). How do I refresh the attribute table automatically without using ArcObjects?  I have tried updating the definition query as @blah238 suggested , but this doesn't help. Resetting the data source is not an option because the feature class might be in the editing session and I don't want to lose the connection to the source data.


What to buy for my British phd supervisor for christmas?

I want to buy a gift for my lovely Ph.D. supervisor for Christmas. But as I am a foreigner and we don't celebrate Christmas in our country, I  have no idea. Could somebody please help me?


Positioning of decorations on parallel lines

I'm displayed three lines on a pgfplot. I want to show a marker for the slope of each line and the difference in height between lines.     I'm showing the slopes by adding triangles under the lines  (at a manual position) and placing an annotation inside the triangle (at a manual position). I'm showing the difference between the height of the lines by adding a brace manually as well.   How can I place the braces on the plot and anchor them at a certain point on each line? The triangles can be added at the end of each line declaration, but doing it like this is ok. The braces are put in place manually, which is not sustainable as I create more plots.   I want to avoid using xshift, yshiftand manual adjustment to put the braces,traingles and annotations in the right place. How can I do this?      \documentclass{article} \usepackage{pgfplots}  \pgfplotsset{compat=1.9}  \begin{document}   \begin{tikzpicture}[scale=0.45,trim axis left, trim axis right]     \begin{axis}[ylabel={$\hat{S(4)}$},xlabel={$S{^*}_{breakeven}$},ylabel style={rotate=-90},domain=1:25, legend style={legend pos=north west,font=\scriptsize}, legend cell align=left]  \addplot+[samples=200,mark=none]                                    {6.26 + 0.28*x} coordinate[pos=0.5](x) coordinate[pos=0.9] (y) (x)-| (y) node [midway,xshift=-0.6cm,yshift=0.3cm] {\footnotesize $Slope X$};;  \addplot+[samples=200,mark=none, dotted, thick]             {2.66 + 0.28*x}  coordinate[pos=0.3](a) coordinate[pos=0.6] (b) (a)-| (b) node [midway,xshift=-0.5cm,yshift=0.2cm] {\footnotesize $Slope 1$};  \draw [decorate,decoration={brace,amplitude=5pt,raise=4pt},xshift=4pt]  (225,107) -- (225,73)  node [midway,xshift=0.6cm] {\footnotesize $\beta_1$};  \end{axis} \end{tikzpicture} \end{document}


Somebody who is kind, yet hard, but fair

A person who speaks kindly. Sometimes she might be hard, but fair.   What is an adjective to describe such person?


Can I tell if a device has an active Activation Lock before inserting a SIM card?

I got an iPhone 5c off of eBay and I can't tell if it's iCloud locked (Activation Lock) or not because I don't have a SIM card for it yet. It was restored by iTunes with no problems. The phone asks me for my language, country, WiFi, then tells me to insert a SIM. Is it going to tell me I need the previous owners password after I get the SIM card and insert it?


Where is input source in ubuntu gnome 15.04

I want to set my input source to ibus-unikey(i installed it and set my input to ibus) but can't find it anywhere in setting.  In 14.10 there are a input source tab in Region and Language but now it isn't.  I opened the language section but there is nothing in it.  Is there any way to open ibus please help me.


Mean value of time working, if it stops after not receiving message for $\theta$ seconds

A machine receives messages according to a Poisson process of rate $\lambda$ messages per second. If it does not receive a message for $\theta$ seconds, then it is programmed to stop functioning. Evaluate mean value $E(T)$ of the total time $T$ the machine is working.   Attempt. If $N$ is the total amount of messages the machine receives while working, then for $N=n$, the time working is $T=W_1+\ldots+W_n+\theta$, where $W_i$ are the intermediate times between the arrivals of the $n$ messages (each of the exponential distibution, parameter $\lambda$). Somehow we should take into account that the intermediate times above are $<\theta$ and also that $W_{n+1}>\theta$, in order to evaluate $E(T|N=n)$ and then $E(T)=E(E(T|N))$.  Thanks in advance for the help.


Not sure why this is not matching and not working?  It appears something is wrong with the regex such that it doesn't match even though i tested it out in the online regex tester  current_name = "bob[0]" regex_match = re.compile('%s'%current_name) if re.match(regex_match, current_name):     print "matched"


Is there a well known way of splitting a piece of information so that the information is only recoverable if all the pieces are together?

By "splitting", I mean turning one chunk of information into more than one chunk. The new chunks do not necessarily have to be of a smaller size. I imagine the use of this could be something similar to the nuclear launch protocol, where two people with separate keys must be present.    Unfortunately, this is one of those hard-to-google questions. Google always returns results about splitting a file into smaller pieces for easier file transfer, which is unrelated.    A simple protocol I came up with for this is to XOR the data with random values. For example, to split a plaintext $p$ into 3 chunks, you generate two random values $r_1$ and $r_2$. You then save $r_1$, $r_2$, and $r_1 \oplus r_2 \oplus p$ as your pieces.    Is there a better known algorithm like this?


Persisting a preexisting Entity Instance is ignored by the persist operation

I was going through the JPA 2 specification and found two statements that sounds contradictory to me.   "If X is a preexisting managed entity, it is ignored by the persist operation." - Pg 76  "The EntityExistsException may thrown by the persistence provider when the persist operation is invoked and the entity already exists." - Pg 129    The statement 1 says something that sounds different from statement 2. So, my question is what is the difference between "preexisting managed entity" and "entity already exists"?


Prove that:$\binom {2n}{n}$=$\sum_{r=0}^n [\binom nr ]^2$

Prove that : $$\binom {2n}{n}=\sum_{r=0}^n \left[\binom nr\right]^2.$$   First of all, I tried to do in the principle of mathematical induction but I failed. Next, I expressed the binomial in algebraic form but I am not able to calculate $c$ this huge number. Somebody please help me.


How to save null value as "N/A" with Java bean class? Every time it gives me exception as null. How to save the null form as "N/A"? I want to save null value as "N/A".     package javaonline;     import java.sql.*;     public class SavaData {       private String uname;      /**      * @return the uname      */     public String getUname() {         return uname;     }      /**      * @param uname the uname to set      */     public void setUname(String uname) {         this.uname = uname;     }     public int insertdate()     {      int i=0;     try{         Class.forName("com.mysql.jdbc.Driver");           Connection con=DriverManager.getConnection(           "jdbc:mysql://localhost:3306/test","root","root");         PreparedStatement st=con.prepareStatement("insert into nulltest values(?)");       if(!uname.isEmpty() || uname!=null)       {           st.setString(1,uname);       }       else{           st.setString(1,"N/A");             }       i=st.executeUpdate();         }     catch(Exception e)     {         e.getMessage();         System.out.print(e.getMessage());     }         return i;     }      }


ECDSA Compressed public key point back to uncompressed public key point

From the ECDH demo , if I generate a private key for Alice I can get _  P = 1175846487558108474218546536054752289210804601041   Which gives the following public key point.  X = 583857549063195252150226340830731484791130788759 Y = 1195037839477751118658084226553581900533276838164   For ECDSA public key compression the above coordinates would be prepended by 02 and the X coordinate would be used. So the compressed key for the above (based on X9.62) is:  02583857549063195252150226340830731484791130788759   If I only have the compressed key given above, how would I derive Y i.e. the uncompressed point?


Incompatibility between tabu/floatrow and array.sty[2018/11/13 v2.4j]?

I just upgraded my texlive and can no longer use tabu spread when floatrow is loaded.  It seems that array.sty might be the problem as this is the only package to change recently. I tried downgrading array.sty from [2018/11/13 v2.4j] to [2018/04/30 v2.4h], the MWE compiled without problems.  I am working on a template, so I have no control over package version.  Can anyone suggest a workaround?  MWE  \documentclass{article} \usepackage{floatrow} \usepackage{tabu} \listfiles \begin{document}  \begin{tabu} spread 0pt {|X|}   anything \\ \end{tabu}  \end{document}   It yields:  ! Missing } inserted. <inserted text>                 } l.9   \end{tabu}   File versions in use:   article.cls    2018/09/03 v1.4i Standard LaTeX document class   size10.clo    2018/09/03 v1.4i Standard LaTeX file (size option) floatrow.sty    2008/08/02 v0.3b floatrow: float package extension   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) caption3.sty    2018/09/12 v1.8c caption3 kernel (AR)     tabu.sty    2011/02/26 v2.8 - flexible LaTeX tabulars (FC)    array.sty    2018/11/13 v2.4j Tabular extension package (FMi) varwidth.sty    2009/03/30 ver 0.92;  Variable-width minipages    color.sty    2016/07/10 v1.1e Standard LaTeX Color (DPC)    color.cfg    2016/01/02 v1.6 sample color configuration    xetex.def    2017/06/24 v5.0h Graphics/color driver for xetex


typedef enum enumStruc_2 {     ENUM_5 = 0xFFFFFFF0, ENUM_6, ENUM_7, ENUM_8 } enumStruc_2;   Here, size of enum is 4 bytes(Integer size). How it saves all of its enum member values within 4 bytes? Is always enum size 4 bytes irrespective of value of its member?


.htaccess https to http xampp not working

For some reasons i am trying to Redirect all traffic coming to port 443 to port 80 i.e from https to http and kindly this is not duplicate because i searched a lot but did not found any working solution. I created the following .htaccess file in root folder  RewriteEngine On  RewriteCond %{SERVER_PORT} 443  RewriteRule ^(.*)$ http://www.localhost.com/$1 [R,L]   this is not working but my .htaccess file is being read correctly i confirmed it by running following tests   I put random garbage character and Server shows error 500 The reverse of above code is working i.e Properly redirecting from http to https   If any one has experienced this before then kindly guide me to the solution  Best Regards!


Given a topological space $X$, why are both $X$ and $\emptyset$ open and closed?

I think this is a basic question, but it's hard to wrap my head around.


Question: is this a valid procedure for finding the limit of $$\bigg(\frac{1}{n^2}\bigg)^{(\frac{1}{n})}$$ as $n\rightarrow \infty$.   background: This is one of the examples of the failure of the root test to determine whether a sequence converges or diverges for the series $\sum_{n=1}^\infty \frac{1}{n^2}$ in baby Rudin. I was wondering how one would compute the superior limit but thought that this might give a way to calculate the limit in general. I did manage to evaluate the limit to the correct answer but, am unsure if all of the techniques I used are valid. Thanks in advance.  Proof. Set $x=\frac{1}{n}$. Then $\lim\limits_{n\rightarrow \infty} \frac{1}{n}=0=\lim\limits_{x\rightarrow 0} x$. We may then rewrite the above as $$\bigg(\frac{1}{n^2}\bigg)^{(\frac{1}{n})}=(x^2)^x$$  Now let $y=(x^2)^x$. We will be attempting to use that $\lim\limits_{x\rightarrow 0} y= \lim\limits_{x\rightarrow 0}x^{2x}. $ It follows $\log y=\log ((x^2)^x)=\log(x^{2x})=2x\log x$. We may rewrite our limit again as, $\lim\limits_{x\rightarrow 0} e^{\log y}=\lim\limits_{x\rightarrow 0} y = \lim\limits_{x\rightarrow 0} e^{2x\log x}=e^{\lim\limits_{x\rightarrow 0} 2x\log x}$. Evaluating our previous limit, $$\lim\limits_{x\rightarrow 0} 2x \log x=\lim\limits_{x\rightarrow 0}2\frac{\log x}{\frac{1}{x}}$$ by L'Hopitals rule we have $$ \lim\limits_{x\rightarrow 0}2\frac{\frac{1}{x}}{-\frac{1}{x^2}}=\lim\limits_{x\rightarrow 0}-2x=0$$  Therefore, $\lim\limits_{x\rightarrow 0} y= e^0=1 $ and $\lim\limits_{n\rightarrow \infty}\big(\frac{1}{n^2}\big)^{(\frac{1}{n})}=1$.


Why is cardinality the of real numbers $2^{\aleph_0}$? While I know that real numbers can be constructed using sets of natural numbers, that solely does not mean that the real numbers has cardinality $2^{\aleph_0}$. So, what makes the real numbers cardinality $2^{\aleph_0}$?  I can't find why it is like this in my textbook...


Why did Tom Riddle change his name to Voldemort? What was the point of Lord Voldemort, specifically, not Lord Tom or, Lord Riddle? Tom Riddle was his officially documented name, after all...


How many zeros are there in the number $50!$?  My attempt:  The zeros in every number come from the 10s that make up the number. The 10s are, in turn, made up of 2s and 5s.  So: $\frac{50}{5*2} = 5$ zeros?


Can you remove the encryption of a drive?

When I installed Ubuntu I encrypted the drive mostly out of curiosity and because someone told me to do it, but now it is more of a hustle than anything.  Is there a way to remove encryption or am I stuck with it?


Remove subdomains from Google index and stop indexing them

I am running static content through a CDN, cdn1-cdn5 I am using such subdomains for that.  I am loading just images, CSS and JS files this way, but apparently Google has indexed some pages on subdomains and they now appear in the Google index and they are duplicates of my "normal" pages.  The thing is that CDN is set the way to have files appear on subdomains without any extra uploading of stuff, meaning subdomains are mirror copies of content that is on main site, I can't upload files to subdomains, I can upload to main site and change www to cdn1 in address bar to show the same content through the CDN as is on my site.  I have 2 questions:   how do I remove the subdomains from Google index in GWT if it only allows to write anything that goes after ` ? how do I prevent from bots indexing the pages on subdomains when I can't upload special robots.txt files or upload a google's verification files to them to prove my ownership in GWT?   Maybe there is something else that I need to know related to this matter?  UPDATE: text in bold is updated


In the universe of Star Trek, there's said to be no use of money in the Federation (at least, not in Starfleet). They talk a lot about it in TNG; I don't want to get side-trekked into debating the best label for their system, but I have a few questions on their system.   When did this economic system become adopted? When a new planet joins the Federation, are they forced to adopt this system? Is it just Starfleet or all of the Federation? Is there some sort of indoctrination or other mechanism whereby the Federation prevents lazy individuals from coasting through life, or is that the individual's perogative?


Why file executing are prefixed with dot and slash?

Why to execute a shell script I have to write:  ./shell   why can't I execute it just using  shell   being in the directory with the file?


I have seen many articles that use quotes from players like:     We gonna [sic] be working hard over the summer cause we gotta [sic] get better.   What is sic? Where does it come from?


There was no one who would not talk ill of him.  What does this "would" mean grammatically?


How can i redirect command output in OS X to both console and file at the same time

I need to basically see the output of a command which are logs that could run into 1000+ lines while at the same time send it to a file. please help.


Recovering *permanently* deleted emails from Gmail

person in distress here.  Dont ask me how, but I ended up deleting all my 12,000 inbox emails from Gmail into Trash and then erased my Trash as well. Gmail gave me a warning box and took 20 seconds to delete. This was not what I intended. I have searched high and low to check if there is any way of recovering my 10 years worth of emails and could not find any.  Any one here know of a way, ANY WAY, to recover my accidental permanent deletion of all my 10 years worth of email (deleted from Trash as well)?


Humans have approximately 25000 genes. Why are these genes on 46 chromosomes? Why not 40 or 50?


Is there a way in Sketch to expand a shape? For example, let's say I have an outline of something. I'd like to expand that outline to be a solid shape so I can apply boolean operations to it with other shapes. Is that possible?


Unable to type the section char in Minecraft 1.14.3

Whenever I try using Alt+2+1 to get the section char (§) in Minecraft, I get ☻.  I also am unable to paste the section char.  I use a Corsair K55 RGB Keyboard and am running Windows 10.\  If you need more information, let me know.


Do I need a transit visa for Manchester UK

I am traveling from Monrovia, Liberia to Saint George’s, Grenada. My flight leave Liberia on Sunday 9/16 and lands in Manchester on Monday 9/17. My flight from Manchester to Grenada is also on 9/17. Do I need a transit visa to get on the flight or can I transit without a visa


Does L1 regularization (Lasso) always leads to feature reduction?

This is a basic question about regularization term but I have searched for a while and cannot find the answer. My question is: does Lasso regularization always make some coefficients zero? A famous explanation figure is something like this:  (FIGURE 3.11 on the top of the linked page) I can understand most of the plot. However, I am wondering what if the minimum of the whole objective function (RSS + L1), where RSS stands for residual sum of squares, does not happen at the corner but at the edge? I can't see why this is not possible. If this is possible, then we don't have zero coefficients in this case, correct? To be more precise, the contour of the L1 regularization term is a diamond shape square other than a spherical shape circles. Usually, posts explain the sparsity of coefficients is achieved by L1 regularization because the minimum happens at the vertex of the contour, while anywhere on the circle of the L2 contour is symmetric and hence the coefficients need not to be zero. However, I don't see why the minimum of the whole objective function must happen at the vertex of the diamond. So, can someone show that the minimum is not possible at the edge? Thank you guys! edit: Thanks for the link from anonymous  I think this post solves some of my solution. Basically the solution of the $\beta := \hat{\beta} = (y^Tx - \lambda)/(x^Tx)$ indeed possibly nonzero. However, the key is that $\lambda$ is a hyper-parameter and tuning $\lambda$ is possibly to drive $\hat{\beta}$ zero. Changing $\lambda$ changes the shape of the whole objective function and it is by changing the shape of the objective function that we can set the coefficients zero.


I have a master module master.py and a helper function stored in a folder functions/helper1.py (I have many of these helper functions actually, which is why they are stored in a separate folder).  The helper1.py file looks like this:  def main():     # Do some stuff     return stuff  if __name__ == "__main__":     main()   I need to import the helper function into the master module and I can think of two ways of doing it.  1. master.py:  from functions import helper1  def main():     # Call helper1.     vars = helper1.main()  if __name__ == "__main__":     main()   2. master.py:  from functions.helper1 import main as helper1  def main():     # Call helper1.     vars = helper1()  if __name__ == "__main__":     main()   I'd prefer 1. but I'm wondering if there's a recommended pythonic way of doing this?


35-pass erase for files; will it recover or not?

OK, I admit it; downloaded raunchy pictures and now want to ensure they're deleted from a MacBook Pro bought in 2018 whenever I decide to gift it to someone. Admittedly, the pictures are nothing illegal; just pictures of Holly McGuire, Jakki Degg, Samira Mighty and Georgia Toffolo. I want to make sure they're erased and unrecoverable, in addition to ensuring sensitive files are deleted too (the files are nothing more than 2004 tax data which is backed up on a Mac mini, anyway). In general, I've used Edenwaith permanent eraser to do the job, set it to Gutmann 35-pass. I'm not an expert in data recovery or erasure, but will this sort of tool make sure they're unrecoverable, even after I reinstall the Macbook when giving it away as a gift? Sure, Christmas is a long time away... but I want to do this right.


hardship veiwing PDF and trying adobe reader

On the immigration canada web page viewing PDF and some of them worked and some gave me this notice:  Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/go/reader_download. For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countrie   on abobe's page there is no linux or ubuntu option. i am using ubuntu 14.04 what do i do?


What does a ">|"-redirection ("greater-pipe"-redirection) mean?

What does the >|-redirection in bash do?  I just found out, that echo text >| somefile creates the file somefile (if not existing yet), and fills it with text. Similar as echo text > somefile would do.  Further experiments suggest that the >|-redirection behaves as the >-redirection does.  So, what is the >|-redirection exactly?  Since it's hard to google for the string ">|", I could not really search the web (so I have added "greater-pipe" in the title of this question since that is google-able).


Learning from other photos. Histograms: how do I know if the original photo was over/under exposed?

There is a photographer who shoots mostly indoors with natural light (no soft box) but sometimes he also shows outdoors photos in natural light conditions. His site is at .  I'm trying to learn from his photos by looking at their histograms. I don't know if is possible to know from the histograms if he over/under exposes. Most of his photos have no clipping on the darker or brighter regions.  He shoots with a Sony RX1 and uses his custom-made Aperture presets.  Notes: Most of his photos are of products, details outside windows preserved and have a great white balance. However, when his hands are shown the skin tone is distinct depending on the products and sometimes hands are looking pale or tanned.


Test logistic regression model using residual deviance and degrees of freedom

I was reading . They are performing a logistic regression (with R). At some point they calculate the probability of getting a residual deviance higher than the one they got on a $\chi^2$ distribution with degrees of freedom equal to the degrees of freedom of the model. Copying-pasting from their website...   > glm( cbind(using,notUsing) ~ age + hiEduc + noMore, family=binomial)  Call:  glm(formula = cbind(using, notUsing) ~ age + hiEduc + noMore,            family = binomial)   Coefficients: (Intercept)     age25-29     age30-39     age40-49       hiEduc       noMore       -1.9662       0.3894       0.9086       1.1892       0.3250       0.8330    Degrees of Freedom: 15 Total (i.e. Null);  10 Residual Null Deviance:      165.8  Residual Deviance: 29.92        AIC: 113.4        The residual deviance of 29.92 on 10 d.f. is highly significant:  > 1-pchisq(29.92,10) [1] 0.0008828339       so we need a better model     Why does it make sense to compute 1-pchisq(29.92,10) and why does a low probability indicate that something is going wrong with their model?


prove that $f$ is continuous over $[0,1]\cap\mathbf{Q}^{c}$

Consider the function $f:[0,1]\to\mathbf{R}$, with    $$f(x)=\begin{cases}\frac{1}{b} ,\quad x=\frac{a}{b}\in[0,1]\cap\mathbf{Q},  \ (a,b)=1 \\ 0 , \quad x \in [0,1]\cap\mathbf{Q}^{c} \text{ or } x=0 \end{cases}$$      Prove that $f$ is continuous for every $r\in [0,1]\cap\mathbf{Q}^{c}$   Could I have some kind of hint or help?


Running, or "injecting" software with specific date

Is there a package or a way to run a software with a specific date or time so that when you run it, it uses the date you input instead of your system date.


Exact formula for coefficients of linear discriminants in R

I am looking for the exact formula for the coefficients of linear discriminants in lda() from the package MASS. Consider the following data set.  set.seed(1) sample<-data.frame(X=c(rnorm(40,-1),rnorm(40,1)),Class=c(rep("First",40),rep("Second",40))) library(MASS) lda.fit<-lda(Class~X,data=sample)   lda.fit contains the following data.  Call: lda(Class ~ X, data = sample)  Prior probabilities of groups:  First Second     0.5    0.5   Group means:                 X First  -0.9079738 Second  1.1202668  Coefficients of linear discriminants:        LD1 X 1.103193    What is the exact formula used to calculate the coefficients of linear discriminants? How is 1.103193 calculated?  Any help is much appreciated!  P.S. I saw many answers on this website about LDA, but I am not able to find the exact formula used in lda() from the MASS package.


Book recommendations for beginners about probability distributions

I'm studying machine learning and every book I open I bump into chi-squared distribution, gamma-function, t-distribution, Gaussian, etc.   Every book I have opened so far only defines what the distributions are: they don't explain or give the intuition on where the specific formulas for the functions come from.   For example, why is chi-squared distribution the way it is? What is the t-distribution? What is the intuition behind the distribution? Proofs? etc.   I would like to have a clear and fundamental understanding of the most commonly used distributions so that every time later on when I see them, I truly understand what is a t-distribution, what is a Gaussian distribution and most importantly why are they the way they are.   It would be nice if the books / tutorials  can explain the concepts to a layman so that in order to understand them you don't already need to understand them x) Many books are like this, they don't fit for beginners :(


2K and 4K Dual monitor DPI (many topics problem NOT solved)

I was about to reply to some topic but I see this thing is NOT solved and decided to make my own topic.  Let's begin, You see because of this sort of things I can't quite move to Ubuntu. And this is one of the hundreds of things that are fixable but NOT easily, and in most cases people end up settle for less then.  I have 2 monitors. 1440p and 4k. Solution in Windows is keep 2560x1440 monitor with 100% DPI that looks amazing and big enough for any work. And 4K monitor I have 4K resolution but I bump up DPI to 200% and everything is just a bit bigger than on my 1440 monitor but I still love it because everything is sharp and resolution is native.   Now in Ubuntu is a mess. Right now solution is 1440 on both sides. And obviously 4k monitor running at 1440p looks like crap. I mean all text and everything is simply not sharp. In Nvidia or Display properties there is a way to adjust DPI but it's not working for individual monitors. If I set 100% on one monitor it's for BOTH. I can't set one 100% and another 200% .... WHY ? Again I read I all of this tricks and tips, you need to have a programming degree just to set damn resolution on you monitor ? I mean come on now.  So yeah having two 1000$ monitors and $800 card is simply too much for Ubuntu. I don't understand why simple things can be so difficult on Ubuntu but that's how it is and that's a reality. So I stopped QQ, can someone give me advice or you degree in programming to get it done ?  Thanks !  P.S.  I remember back in a day before NVIDIA and AMD had it's own surround monitor solutions build right in to drivers third party had apps to create custom desktops with 3 ,4 ,5 ,6 etc monitors. And you could do whatever you wanted, like 2 on right side 3 on left and may be 2 above with vertical position, something like that. IS something similar available for Ubuntu that will set proper resolutions , positions, dpi for me ?  Specs: Ubuntu 17.10 ROG PG278Q and Acer XB271HK connected to 1080ti card. Running Nvidia 384.111 Drivers.  I tried Ubuntu Display settings and Nvidia Display settings, In Nvidia I don't even see DPI settings.  Thanks guys !


As far as I understand, pressure acts downwards on a surface of a body in water because pressure $P$ is given by  $$ P = \frac{F}{A} = \frac{m \, g}{A} $$ where $F$ is the gravitational force on the body of mass $m$ with surface area $A$, and $g$ is the gravitational acceleration.    But I cannot see how pressure acts in all directions; namely, at the sides where apparently $F \neq mg$.


I was having a time getting my bootable USB 3, 32GB W10 install USB to be recognized. It recognized one time but I had to restart for something and it never came up again. I eventually removed all other boot up options to make it easier and faster to try again (no F12 needed).  Finally I gave up and tried another drive (16GB this time FWIW) and then it worked.  HOWEVER, it's stuck on a reboot loop now. I can choose to install, then to select the right disk, then it says it's loading file and then next thing I know it's saying do you want to install or upgrade.


keras categorical CNN prediction always output [[ 0. 0. 0. 0. 0. 0. 1. 0.]] No probability for other classes?

print(model.predict(image)) print(model.predict_proba(image)) print(model.predict_classes(image))   Using the above different predict methods I always get predictions like     [[ 1.  0.  0.  0.]]   but I want the probabilities of each classes something like this     [[ 0.8  0.05  0.05  0.1]]   This is the model  model = Sequential([     Conv2D(32, (3, 3), input_shape=input_shape, padding='same',activation='relu'),     Conv2D(32, (3, 3), activation='relu', padding='same'),     MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),     Conv2D(64, (3, 3), activation='relu', padding='same', ),     Conv2D(64, (3, 3), activation='relu', padding='same', ),     MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),     Conv2D(128, (3, 3), activation='relu', padding='same', ),     Conv2D(128, (3, 3), activation='relu', padding='same', ),     MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),     Conv2D(256, (3, 3), activation='relu', padding='same', ),     Conv2D(256, (3, 3), activation='relu', padding='same', ),     MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),     Conv2D(512, (3, 3), activation='relu', padding='same', ),     Conv2D(512, (3, 3), activation='relu', padding='same', ),     MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),     Flatten(),     Dense(512, activation='relu'),     Dense(num_classes, activation='softmax') ])   Compiled as   sgd = SGD(lr=0.0001,momentum=0.9) model.compile(loss = "categorical_crossentropy", optimizer =sgd,metrics=['accuracy'])   Not sure if this has any effects, but this is how I loaded the data     train_datagen = ImageDataGenerator(       rescale=1./255,   )      train_generator = train_datagen.flow_from_directory(folder+'apex/train',                                                       target_size=(200, 400),                                                       batch_size=batch_size,                                                       class_mode='categorical')


Google App Engine: how can I programmatically access the properties of my Model class?

I have a model class:  class Person(db.Model):   first_name = db.StringProperty(required=True)   last_name = db.StringProperty(required=True)   I have an instance of this class in p, and string s contains the value 'first_name'. I would like to do something like:  print p[s]   and   p[s] = new_value   Both of which result in a TypeError.  Does anybody know how I can achieve what I would like?


I am a minor with accompanied visa.The parent who is displayed on a visa is traveling with me but will leave UK earlier than me.Will I be granted entry and is it a problem?


Can we opt for fast track service after the refusal?

Last Saturday, I got a refusal from BHC due to lack of funds and my reasons to come back to India. I am planning to visit my family who are settled in the UK. I am married and planning to visit my family along with my husband. My father is sponsoring our whole trip. But we got a refusal as we didn't show much funds in our account. We thought that if my father is sponsoring, we should show his documents only. But now I have applied again with a fast track service. Will BHC will consider it under the fast track process? This time I have cleared all their doubts which they mentioned in the refusal letter.


Make div expand to take all the available space

I want a desktop-like full-page width layout. Some menu at the top (uknown height, depending on the content),  and div underneath that takes ALL the available space in viewport.    div {   padding: 0px }  html, body {   height: 100%;   padding: 0px;   margin: 0px; }  .outer {   background: olive;   height: 100%; }  .menu {   background: orange; }  .should_fill_available_space {   background: brown; }

     Lorem Ipsum Lorem Ipsum Lorem Ipsum

     Brown color should go all the way down

     I've got a codepen for this case:   I want should_fill_available_space go all way down, as in the case where menu would have height:10% and should_fill_available_space have 'height:90%`.


Is a self-embedding of a compact metric space automatically an isometry?

Let $(X,d)$ be a compact metric space. Let $f:X \to X$ be an isometric embedding, which means that for each $x,y\in X$, we have: $$ d(f (x),f (y)) = d (x,y). $$  Is then $f$ automatically surjective? In other words, is it true that $$ \inf_{y\in X} d (x,f (y)) = 0 $$ for every $x\in X $?  What I've figured out so far: this is clearly true if $X $ is finite, and clearly false if $X $ is not compact.


Easiest way to extract some html from string

I have a long c# string of HTML code and I want to specifically extract bullet points "

".  Say I have the following HTML string.  var html = "
Here is a text that should be ignored.
This text should be ignored too

*&nbsp;&nbsp;Need this one

Another bullet point I need

A bulletpoint again that I want

And this is the last bullet I want

Ignore this line and text

Ignore this as well.
Text not important."   I need everything between the '
' to '
' tags. The '
' tag can be excluded.  Now regular expression is not my strongest side, but if that can be used I need some help. My code is in c#.


I'm getting this:  atul@ubuntu:~$ sudo apt-get install traceroute [sudo] password for atul:  Reading package lists... Done Building dependency tree        Reading state information... Done Package traceroute is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'traceroute' has no installation candidate   Can any one tell me how to solve this problem?


Area of Convergence for $\sum_{n=0}^\infty \frac{z}{(1+z^2)^n}$

I want to show that the series $$\sum_{n=0}^\infty \frac{z}{(1+z^2)^n}$$ converges for all values of $z\in \mathbb{C}$ outside the region $|1+z^2|=1$.  I've tried using ratio test, but I get the condition that the series will convergence only when $|1+z^2|>1$. I'm not sure if this is all the points outside there region $|1+z^2|=1$ and the calculation quickly gets messy. Any slick ways of solving this?


I read this sentence in a book:     I just took part in a study over in the Psychology Department.   Why do we add over in front of in the here?


Can I respond to a draw from Gitaxan probe?

If I resolve a , can I crack a  before I draw?


The union of growing circles is not homeomorphic to wedge sum of circles

Let $X$ be the subspace of $\mathbb{R}^2$ that is the union of the circles $C_n$ of radius $n$ and center $(n,0)$ for $n \in \mathbb{N}$.  Show that $X$ and $\bigvee_\infty S^1$ are homotopy equivalent, but not homeomorphic.   It is unclear to me why the "obvious" maps between the two spaces do not give a homeomorphism.   It seems like the difference would have to be a result of the behavior of the map near the origin.  Could I get a hint?


Are connectedness preserving monotone functions continuous?

Does there exist any monotone function $f : \Bbb R \longrightarrow \Bbb R$ which takes connected sets to connected sets without being continuous? If the answer is "no" then can we extend this result to arbitrary topological space?


My /User directory permissions always changes… should I be worried?

I've noticed that my /Users directory on OSX always gets changed to "rwxrwxrwx"  I'm not sure how this is being changed? Only just started happening  Could it be malware or such?


What are the main goals of administering preliminary / qualifying exams to graduate students?

If I were a Spanish Major as an undergraduate and decide to pursue a PhD in a completely unrelated field (like Theoretical Physics), it makes sense to give a qualifying exam to check that I had the necessary skills to begin the program.  But if I'm coming from a B.S in math to a PhD program also in math, it doesn't seem to make sense to give a qualifying exam, as if the knowledge I gained in my undergraduate was insufficient.  I presume that one is accepted into a PhD program because he/she has already demonstrated the "qualifying" skills.  Thus, I'm baffled by the notion of the qualifying / prelim exam.   I'm curious about the ultimate goals of these exams, and how they relate to the professional development of a graduate student.


How to show window contents while dragging in Windows Server 2008 R2?

I just installed Windows Server 2008 R2, including the Desktop Experience feature, and activated the Themes service. I've activated Aero.    I have everything there, except that when I drag windows, I only see the border of the window as I'm dragging.  In other/older SKUs of Windows, there was a checkbox that I think said "Show Window Contents While Dragging", but I can't find such a checkbox on this OS.


Oracle gives no table or view exists for lowercase table name

Insert into "user" (colums) values (?):   When executed with apache query runner library in java code gives error  saying no table or view exists But when executed directly works fine.


Battlelog shows I am not Premium even though I've purchased Premium Edition

I dont get any of the bonus stuff on battlelog. For example, it says I got 200 something kills with the regular knife but most of them were on the ACB 90 knife. I bought this premium edition the one with the code and game. This was a long time ago but it still doesn't say that I'm premium. I tried contacting tech support but all they say is that im not a member. I get all the in game stuff like assignments and expansion packs though. When people kill me it says im premium, proof from friends. Whenever I try to look at premium stuff, it tells me to buy premium first. It only says I have b2k.


Let $S$ be the set of 3$\times$3 real matrix $A$ with  $$A^TA= \left( \begin{array}{}  1 & 0 & 0\\ 0 & 0 & 0\\ 0& 0 & 0 \end{array}\right).$$ Then the set $S$ contains    a nilpotent matrix a matrix of rank one a matrix of rank two a non-zero skew-symmetric matrix   Here $S$ is contains a matrix of rank 1, Take $\left( \begin{array}{}  1 & 0 & 0\\ 0 & 0 & 0\\ 0& 0 & 0 \end{array}\right)$ itself.  I am confusing with other options, help me.


Part of the file name of my image is printed in the document, twice

Possible Duplicate:          When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words appear.    Code:  \begin{figure}     \centering         \includegraphics[width=0.9\textwidth]{C:/Thesis/Latex/thesis_1(1)/Pictures/study area.jpg}         \rule{35em}{0.3pt}     \caption{The Grand St. Bernard wireless sensor network deployment (a) the coordinates of nodes according to the Swiss coordinate system (b) the distribution of the nodes in the study site \citep{r33}}     \label{fig:study area} \end{figure}   Problem:


Show that   $$\sum_{n=- \infty}^{\infty} \frac{1}{(3n-1)^2} = \frac{4 \pi^2}{27}$$   I'm pretty sure I need to use the Residue Theorem to sum the series, but I'm unsure how to apply it. Here's what I know:   There is a double pole at $3n-1=0 \Rightarrow n= \frac{1}{3}$ $\sum_{n=-\infty}^{\infty} f(n) = -\sum$ of the resides of $ \pi \cot( \pi z) \cdot f(z)$ at the pole(s) of $f(z)$   Using the above information, here's what I've done to calculate the residue at $z= \frac{1}{3}$ so far: $$ \frac{1}{(2-1)!}\lim_{z\to\frac{1}{3}} \Bigg[ \frac{d^{2-1}}{dz^{2-1}} \Bigg((z- \frac{1}{3}) \pi \cot( \pi z) \frac{1}{{(3z-1)}^2} \Bigg) \Bigg]$$  $$= \Bigg(\lim_{z\to\frac{1}{3}} \frac{d}{dz} \pi \cot (\pi z)\Bigg) \Bigg(\lim_{z\to\frac{1}{3}} \frac{d}{dz} \frac{z-\frac{1}{3}}{(3z-1)^2}\Bigg) $$  $$= \Bigg( \lim_{z\to\frac{1}{3}} {- \pi^2 \csc({\pi z})} \Bigg) \Bigg( \lim_{z\to\frac{1}{3}} \frac{1}{(3z-1)^2}\Bigg)$$  But  $$\lim_{z\to\frac{1}{3}} \frac{1}{(3z-1)^2}= \infty$$  I know I've gone wrong somewhere (maybe when I split it up into two limits?), but I'm not sure where. Any help or guidance would be greatly appreciated. Thank you!!


SP2013 Customize email body of all alerts

How to create your own email content for all the alerts emails which are sent OOTB . I need to modify the email content of all the alerts send OOTB (The immediate emails, update email , delete email , daily summary alert email and weekly summary alert ) .  I know of creating copy of alerttemplate.xml and editing it but how to ensure all email alerts content are modified .


Why is there no Stack Overflow YouTube channel and/or stackoverflow.tv

Has a Stack Overflow YouTube channel or a stackoverflow.tv site ever been contemplated, in doing so taking advantage of a medium where the Stack Overflow experience could be expanded and extended beyond reading material and the (nonetheless proven) Q&A format?  EDIT: I'm not talking about  or that  that has the one video, I'm talking full-fledged  style but a lot wider in terms of technologies.  Beyond the (undoubtedly enormous) challenges, there are also enormous potential rewards.  I'm convinced this has, at least at some point, been on the table and would be interested to hear what made it an unsuitable medium to further explore.  To clarify the question, I can easily imagine that:   digging into the audio-visual market would be easy for a site that has already reached a certain standard, status and reputation there are a lot of very smart people on Stack Overflow who are not only celebrated authors but also experienced public speakers who, given the chance / asked / coerced could bring a wide range of topics in their respective fields of expertise to a wide audience this might be a cash cow in terms of ad revenue (I could be way off here, I have no idea how that "world" works...) there could be a standard in terms of audio-video quality and content that I sometimes miss on YouTube ...


How to keep flat faces flat when using smooth shading

Is there a way to make a smooth shaded mesh look like the third column in this example? The six sides of the cube should have their vertex normals aligned with the face normal.  Here is what I've tried so far:   Beveled, smooth shaded (faces are not flat) beveled, smooth shaded, edge split (faces aren't joined) Modified in external application (faces are flat, bevels are smooth)


How to make Ubuntu 18.04 (GNOME) workspace prohibit alt-tab to windows on other workspaces

I am using Ubuntu 18.04 running GNOME desktop environment  I have two workspaces, one and two, with following windows   Work space 1: shell 1, chrome 1 Work space 2: shell 2, chrome 2   I want: when I'm in a particular workspace, I can only alt-tab to windows that were opened in that workspace (other windows that were not opened in that workspace should not show up).  I'm aware of some of these related questions:


What if residuals are normally distributed, but y is not?

I've got a weird question. Assume that you have a small sample where the dependent variable that you're going to analyze with a simple linear model is highly left skewed. Thus you assume that $u$ is not normally distributed, because this would result in normally distributed $y$. But when you compute the QQ-Normal plot there is evidence, that the residuals are normally distributed. Thus anyone can assume that the error term is normally distributed, although $y$ is not. So what does it mean, when the error term seems to be normally distributed, but $y$ does not?


Electrolytic Capacitor Voltage Rating vs capacitance

I have always believed that it was ok to replace a capacitor with a slightly higher voltage rated one. eg 16v with 25v.Going higher than this would risk the capacitance value being out at the working voltage. However I just read the following quote from this       Electrolytic capacitors are non-ferroelectric with a very low dielectric constant. Their capacitance is derived from a very high surface area and nanometer thick dielectric layers. Their capacitance is not a function of applied voltage.‐Design Solutions For DC Bias In Multilayer Ceramic Capacitors (August 2010 Electronic Engineering Times)   So does this rule not apply to aluminum electrolytics? Eg will I have no issues replacing an electrolytic 25v 100uf with a 50v 100uf assuming both are low esr, similar footprint and good quailty?


Run the script file after 5 or 10 min after restarting the system

I have created a ruby script file that checks the connection present or not. For example checking port 22 is opened or not.  Firstly I tried with cron job as follows  @reboot find ${HOME}/my_app/check_conn.rb   But it is executing immediately after starting the system.  Now I have to run this script after 5 or 10 min.  How can I do this. Is there any other way for doing this.  Thanks in advance.


Incomprehensible "Your post appears to contain code that is not properly formatted as code" error

I just tried to post a question containing the following text:    I'm building a music app, which has an ongoing notification. I meet the text color problem of notifications:   1. On Galaxy S with Android 2.3.3, the notification background is black, and also the texts are. That makes Galaxy S users hard to read the texts.  2. On Motorola Droid with Android 2.2.2, the notification background is white, and so the texts are. That also makes text hard to read.  My current code is:   ### Layout XML ###     <LinearLayout android:layout_width="fill_parent"         android:layout_height="wrap_content" android:orientation="vertical">          <TextView android:id="@+id/notifbar_trackname"             style="@style/NotificationTitle"             android:focusable="true" android:singleLine="true"             android:layout_gravity="left" android:layout_width="wrap_content"             android:layout_height="wrap_content" />          <TextView android:id="@+id/notifbar_artist"             style="@style/NotificationText"             android:layout_gravity="left" android:scrollHorizontally="true"             android:ellipsize="end" android:layout_width="wrap_content"             android:layout_height="wrap_content" />          <TextView android:id="@+id/notifbar_queue"             style="@style/NotificationText"             android:layout_gravity="left" android:scrollHorizontally="true"             android:ellipsize="end" android:layout_width="wrap_content"             android:layout_height="wrap_content" />      </LinearLayout>  ### styles.xml in values/ ###     <style name="NotificationText">         <item name="android:textColor">?android:attr/textColorPrimary</item>     </style>     <style name="NotificationTitle">         <item name="android:textColor">?android:attr/textColorPrimary</item>         <item name="android:textStyle">bold</item>     </style>  ### styles.xml in values/v9/ ###     <style name="NotificationText" parent="android:TextAppearance.StatusBar.EventContent" />     <style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title" />  Does anyone know what's wrong in my code? Thank you!   When I try to confirm, the system says:     Oops! Your edit couldn't be submitted because:      Your post appears to contain code that is not properly formatted as code. Please indent all   code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more   editing help, click the [?] toolbar icon.   I totally have no idea what the system is complaining about. I have all code indented by 4 spaces.  Can anyone help?


Can't access host-only network when on two interfaces

I'm trying to use a host-only connection with my VirtualBox VM. My VM is set up and can ping the host (192.168.56.101) on vboxnet0.   If I disconnect the host from my local network (internet access) I can ping the VM no problem. However I would like to be able to access both the internet and the VM. This is what my ifconfig looks like:  enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 10.0.7.30  netmask 255.255.255.0  broadcast 10.0.7.255         inet6 fe80::3e97:eff:fe2b:5d3e  prefixlen 64  scopeid 0x20<link>         ether 3c:97:0e:2b:5d:3e  txqueuelen 1000  (Ethernet)         RX packets 1468619  bytes 1793380003 (1.6 GiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 877021  bytes 94509833 (90.1 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         device interrupt 20  memory 0xf2900000-f2920000    vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 192.168.56.101  netmask 255.255.255.0  broadcast 192.168.56.255         inet6 fe80::800:27ff:fe00:0  prefixlen 64  scopeid 0x20<link>         ether 0a:00:27:00:00:00  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 6212  bytes 278937 (272.3 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0   Here's the output of route:  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface default         gateway         0.0.0.0         UG    100    0        0 enp0s25 default         gateway         0.0.0.0         UG    101    0        0 vboxnet0 10.0.7.0        0.0.0.0         255.255.255.0   U     100    0        0 enp0s25 192.168.56.0    0.0.0.0         255.255.255.0   U     100    0        0 vboxnet0   It appears to me I'm correctly configured to use both interfaces but, like I said, I can't ping the VM (192.168.56.66) while I'm connected on enp0s25.


ajax form post works on first action, second action reloads page

I have a page with a list box that gets it data from mysql. The list box allows the user to delete a item. I want to load the results of the deletemanagement.php in a div without reloading the main page. I also want to reload the list box so the delete item is not there anymore and finally the user should be able to delete another item from the (updated) list box. So far I managed to have the list box delete records from my database, load the php into a div and update the list box (by reloading the div). However when I try to delete a second item, the page fully reloads and and does not delete the selected item. After clicking submit again it works and the div is updated again. Why is the page reloading when trying to delete a second item and how can I prevent that?
      <form id="test">
Delete management:

           Select from list:
           <select id="deleteMangementSelect" name="deleteMangementSelect" required>             <option value="">Select</option>             <?php               $i=0;               while($row = mysqli_fetch_array($result)) {             ?>               <option value="<?=$row["management"];?>"><?=$row["management"];?></option>             <?php               $i++;               }             ?>           </select>

           <input type="submit" value="Delete">
       </form>


Object doesn't show in camera viewport or on render

So, I'm having this weird issue where my object doesn't even show up on any renders I try to create.  This is the object in textured view on the 3D Viewport.   And here's what shows up on the camera viewport.    I've made up UV textures for it, applied them to each part of the model, linked the UV maps to each texture and it still shows up as nothing on the render. The camera viewport is just staring at blank space. I've made sure every single mesh in the scene is visible and on the same layer, so I'm really uncertain about what's causing this issue.  I'll see if I can post my blend file for my project.


declaration of variable of this kind "int (*pfds)[2];" what they are called

I was looking into simple source code. and found this line  int (*pfds)[2];  does it means pointer to function similar to      void (*fun_ptr)()[2] = &fun;   which I think is array of pointer to function fun(void)


I read a comment under :     There are plenty of events that can occur that have zero probability.   This reminds me that I have seen similar saying before elsewhere, and have never been able to make sense out of it. So I was wondering    if zero probability and impossibility mean the same? if an event with zero probability doesn't mean that the event is impossible to occur, how probability theory represents/describes impossibility?   Thanks and regards!


Best Method to SFTP or FTPS Files via SSIS

This question originally asked which is the best method for uploading files via SFTP or FTPS in SSIS.  It now just lists the pros and cons of each solution.  I personally use CozyRoc's SFTP library these days, but I've used each of the below solutions at one point or another.  SSIS COMPONENT LIBRARY  Method: Install a SSIS component library from , , , , or some other vendor on each development and production server and use the SFTP task to upload the files.  Pros: Easy to use.  It looks, smells, and feels like a normal SSIS task.  SSIS also recognizes the password as sensitive information and allows you all the normal options for protecting the sensitive information instead of just storing it in clear text in a non-secure manner.  Works well with other SSIS tasks such as ForEach Loop Containers.  Errors out when uploads and downloads fail.  Works well when you don't know the names of the files on the remote FTP site to download or when you won't know the name of the file to upload until run-time.  Cons: With the exception of the Codeplex solution, this costs money to license in a production environment.  Requires installing the libraries on each development and production machine.  If it is the Codeplex solution, then you are using software that isn't supported by any specific vendor.  This also makes you dependent upon the vendor to update their libraries between each version.  For instance, before 2008 RTM'd, I was developing a new server on a CTP version of 2008 and the CozyRoc 2005 library was incompatible with it.  Eventually they released a 2008 compatible version, but I had to temporarily use the command line solution to work around this issue.    COMMAND LINE SFTP PROGRAM  Method: Install a free command-line SFTP application such as Putty and WinSCP and execute it either by running a batch file or operating system process task.  Instructions for doing this via WinSCP are listed .  Pros: Free, free, and free.  You can be sure it is secure if you are using Putty since numerous GUI FTP clients appear to use Putty under the covers.  You DEFINATELY know you are using SSH2 and not SSH.  Cons: The two command-line utilities I tried (Putty and Cygwin) required storing the SFTP password in a non-secure location.  I haven't found a good way to capture failures or errors when uploading files.  The process doesn't look and smell like SSIS.  Most of the code is encapsulated in text files instead of SSIS itself.  Difficult to use if you don't know the exact name of the file you are uploading or downloading.  A 3RD PARTY C# or VB.NET LIBRARY  Method: Install a SFTP or FTPS library and use a Script Task that references the library to upload the files.  (I've never tried this, so I'm going to guess at the pros and cons)  Pros: Probably easy to capture errors.  Should work well with variables, so it would probably be easy to use even when you don't know the exact name of the file you are uploading or downloading.  Cons: It's a script task combined with .NET libraries.  If you are using SSIS, then you probably are more comfortable with SSIS tasks then .NET code.  Script tasks are also difficult to troubleshoot since they don't have the same debugging tools and features as regular .NET projects.  Creates a dependency on 3rd party code that may not work between different versions of SQL Server.  To be fair, it is probably MORE likely to work between different versions of SQL Server than a 3rd party SSIS task library.  Another huge con -- I haven't found a free C# or VB.NET library that does this as of yet.  So if anyone knows of one, then please let me know!


trying to use finnish language package. But this code only lets me use english. I get "Package babel Error: You haven't loaded the language english yet." error if i try to change  \usepackage[english]{babel}   to   \usepackage[finnish]{babel}   my code currently ( I use a template..)  \documentclass[paper=a4, finnish,fontsize=11pt]{scrartcl} % A4 paper and 11pt font size  \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs \usepackage{fourier} % Use the Adobe Utopia font for the document - comment this line to         return to the LaTeX default \usepackage[english]{babel} %\usepackage[finnish]{babel} % English language/hyphenation \usepackage{amsmath,amsfonts,amsthm} % Math packages   \usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template  \usepackage{sectsty} % Allows customizing section commands \allsectionsfont{\centering \normalfont\scshape} % Make all sections centered, the     default font and small caps  \usepackage{fancyhdr} % Custom headers and footers \pagestyle{fancyplain} % Makes all pages in the document conform to the custom headers   and footers \fancyhead{} % No page header - if you want one, create it in the same way as the footers below \fancyfoot[L]{} % Empty left footer \fancyfoot[C]{} % Empty center footer \fancyfoot[R]{\thepage} % Page numbering for right footer \renewcommand{\headrulewidth}{0pt} % Remove header underlines \renewcommand{\footrulewidth}{0pt} % Remove footer underlines \setlength{\headheight}{13.6pt} % Customize the height of the header  \numberwithin{equation}{section} % Number equations within sections (i.e. 1.1, 1.2, 2.1,   2.2 instead of 1, 2, 3, 4) \numberwithin{figure}{section} % Number figures within sections (i.e. 1.1, 1.2, 2.1, 2.2 instead of 1, 2, 3, 4) \numberwithin{table}{section} % Number tables within sections (i.e. 1.1, 1.2, 2.1, 2.2 instead of 1, 2, 3, 4)  \setlength\parindent{0pt} % Removes all indentation from paragraphs - comment this line for an assignment with lots of text


I have been using Windows systems for a few years now, and most of my tasks used to get accomplished without using the mouse. I have recently switched to Ubuntu 14.04, and I'm eager to know the keyboard shortcuts. I have some confusions as well.   I use this combo Alt+F2 to go to my home folders \home\ etc. Is there any way out? I used to do the same using winkey+R in Windows. I will be using Google Chrome, TexMaker and LibreOffice only. I would love to know if there are quicker ways to launch these apps, other than going to the launch bar and clicking their icons. For Chrome, I do this google-chrome in the terminal. It was way easier in Windows though; just winkey+R and then chrome. When I'm using chrome, if I press Alt then there's this Type your command bar pops up on top of my screen. What's that?   If someone can give me a handy document where all the shortcuts are placed, I'll be glad. Thanks!


No option of creating new file in centos 7 gui

I have recently installed centos 7 and was trying to create a new file through right click and selecting create a new file option as I have done in centos 6 but there is no option of create new file in Centos 7.I know I can use terminal for that but is there any way I can do it with the GUI.


How to back up shsh blobs and APTicket in iOS 9.1 in order to be able to downgrade to it after update?

Just got a new iPAD air 2, iOS 9.1. It says I should update it to iOS 9.3.1.  I might be interested to jailbreak it later on, so I'd like to preserve that option for me possible.  I hear jailbreak for 9.3.1 is not available yet, and on the other hand, apple stopped signing iOS 9.1 and it is impossible to install or downgrade to iOS 9.1. I want to know how I can back up the current state with iOS 9.1, and later after I updated the iOS, when ever I wanted I could restore to the iOS 9.1.  I know that I should backup shsh blobs using Tiny Umbrella. but I cannot find the official download file in their website. Also I don't know how to backup APTicket.  Thanks


I use biblatex with style=authoryear and when there are two references of the same author in the bibliography there is just a dash. How can I get the full name in the second entry too?


In a classification problem when the response variable has multi-class, e.g., "sunny","rainy","cloudy", how should we encode it? I know that for predictors like this, usually we do , and if a predictors have too many classes, then we might just use the .   When this multi-class issue occurs in the response variable, I guess we can just use LabelEncode() rather use using One Hot encoding right? Because if we use One Hot encoding, then we will have 2 variables as the response variable, and the machine learning algorithm in sklearn usually expects the response variable not to be a vector right? (I mean it expects a long 1D vector with length equal to the number of observations but not a 2D matrix). But on the other hand, if we just map "sunny", "rainy","cloudy" to {1,2,3} or {0,1,2}, or whatever 3 numbers, that will create a less than or greater than relationship among "sunny", "rainy","cloudy", which is not inherited in the original problem.


Email action flow - add a special purpose organisation wide address as sender address

Currently I am setting up a flow, with different send email actions. There is a requirement to send all those emails from a noreply address. I have entered and validated this address in the special purpose org wide addresses, and tried to add this to the flow 'sender address'. I have also set the type to 'orgwideemailaddress' but it does not seem to accept this. This seems to be different from a normal org wide address. The error I keep getting is about the 'Automated process user email' that this is incorrect. When I try to enter this however, I keep getting errors that the address is invalid (tried the label and email address both). The standard flow user set there is a different address and as the requirement is to use a noreply email address, the flow user cannot be changed into a different user to fit the noreply address, but it also cannot be a dummy, as it requires a license. Hope there is an answer to this! Thanks!


How to find out your computer name with Java

So I have this program and I would want to have Java figure out the username by itself. import java.io.*; import java.nio.file.Files;    public class Demo {     public static void main(String[] args) throws IOException {       File file = new File("/Users/angel/Desktop");       String[] files = file.list();        for (String string : files){         for (int i = 0; i < files.length; i++) {             if(String.valueOf(string).contains(".png")){                 File sourceFile = new File("/Users/angel/Desktop/" + string);                 File destinationFile = new                  File("/Users/angel/Desktop/Screenshots/Screenshot" + string );                 Files.move(sourceFile.toPath(), destinationFile.toPath());                 string = "";           }         }       }     }   }


C# When should I ever use "out" over "ref?"

I completely understand the use of out and ref in C# however why would I ever use out instead of ref as out is simply the same as ref just with restricted abilities. I see when it can be used but I don't see any point in ever using it really.  Thanks so much!


Can I install Ubuntu in dual boot from inside Windows 8.1?

I want to install Ubuntu alongside Windows. I have tried using a USB flash drive, but it won't boot. I get stuck on the HP loading logo and nothing happens. If I try to launch my boot menu, it goes to the menu screen but doesn't actually launch the boot menu, or even respond to my boot menu key.  I know that it is possible to install Ubuntu from within Windows using Unetbootin on Windows 7, however they mention nothing of Windows 8 or 8.1 support.  So if anyone could give me either a step by step for how to install Ubuntu without a USB or CD for windows 8.1, or a link to something where I can figure it out that'd be much appreciated.  Computer: HP Envy h8-1413c  Either a solution to allow me to boot using a USB flash drive, or a solution to installing inside windows 8.1 would be appreciated!