NullPointerException when attempting to use VideoView in a fragment

I am attempting to embed a YouTube video into my app, as described here:   However, I seem to be encountering a NullPointerException error when I access the fragment and I cannot seem to find the causation.  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.VideoView.setVideoURI(android.net.Uri)' on a null object reference   The code for the fragment is as follows.  import android.widget.MediaController; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.VideoView;   public class VideosFragment extends Fragment {   public VideosFragment() {     // Required empty public constructor }   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     View view = inflater.inflate(R.layout.fragment_compare, container, false);     VideoView videoView;     videoView = (VideoView)view.findViewById(R.id.videoView);     MediaController mediaController;     mediaController = new MediaController(view.getContext());     mediaController.setAnchorView(videoView);     Uri uri= Uri.parse("rtsp://r7---sn-4g57kue6.googlevideo.com/Ck0LENy73wIaRAmk3cJBg-iaXhMYDSANFC3u0pRWMOCoAUIJbXYtZ29vZ2xlSARSBXdhdGNoYIaluaTkzciOVooBCzVxRjNraG5XcXdnDA==/D693A8E7577C3A29E60C292B42C9C87D7C25A565.762A63DC4CA0A028DA83256C6A79E5F160CBEDA3/yt6/1/video.3gp");     videoView.setMediaController(mediaController);     videoView.setVideoURI(uri);     videoView.requestFocus();     videoView.start();        return inflater.inflate(R.layout.fragment_videos, container, false); }   }  Here is the layout file:  <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.[left out for security].VideosFragment" android:background="?android:attr/colorBackground">  <!-- TODO: Update blank fragment layout -->  <VideoView     android:id="@+id/videoView"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerVertical="true"     android:layout_centerHorizontal="true" />     Thanks for any help!


Why is Yara Greyjoy calling herself Queen?

I'm watching season 7 and in the latest episode, Jon meets Daenerys. She tells him he can't be king in the north, as there is only one king. My question is, why is everyone saying that Yara will be the Queen of Iron Islands? She has special treatment from Daenerys or she is just ignorant?  EDIT: I rewatched the episode where Yara first meets with Dany, and they say they want the Iron Islands back. Dany seems to accept. That means she will let her be queen of her islands? If so, why she treats her specially?


Is it good etiquette to automate the earning of badges?

I noticed that the process of earning some badges could be automated (and others with an army of bots), so I am thinking of writing an app called Badger to automate this. Is this good etiquette?


Java - How to make .jar file use external .txt file?

I have file "recipients.txt" that contains as you might have guessed list of recipients. I will need to update it from time to time, therefore I was planning on having it in the same directory as the .jar file I exported in order to do so.  At the moment i have it in the "bin" directory of my project in my eclipse workspace. I load the file into variable using FileReader.  When I tried exporting it as "runnable jar file" i could not access it. I've put an option there to show a JOptionPane with the path that the application was looking in, and it is weird.  The pane tells me that it was looking for file "\Desktop\JarFile.jarrecipients.txt".  Yes, that is correct, one "\" is missing.  So what am I doing wrong and how do I do this right? I am pretty sure I am doing it all wrong, in which case how would I do it right? How could I have a file that I can keep up to date on a regular basis? And how would I export it all to make it work?  The code:  import java.io.BufferedReader; import java.io.File; import java.io.FileReader;  public class DeliveryPackage { public String recipientList="No Recipients"; public String recipientFileName = "recipients.txt"; public String recipientFilePath = DeliveryPackage.class.getProtectionDomain().getCodeSource().getLocation().toString().replace("file:/","").replace("/", "\\") + recipientFileName; public File recipientFile = new File(recipientFilePath); public String fileNotFoundMessage = "File not found"; private String messageContents = ""; private String messageSubject = "";  public void setMessageSubject(String subject) {     messageSubject = subject; }  public String getMessageSubject() {     return messageSubject; }  public void setMessageContents(String message) {     messageContents = message; }  public String getMessageContents() {     return messageContents; }  public DeliveryPackage() {     loadRecipients(); }  public String getRecipients(){     return recipientList; }  public String getRecipientFileName() {     return recipientFileName; }  public File getRecipientFile(String recipientFilePath) {     File recipFile = new File(recipientFilePath);     return recipFile; }  public String getFileNotFoundMessage() {     return "File not found"; }  public void loadRecipients() {      if(recipientFile.exists() && !recipientFile.isDirectory()) {          String recipient;         recipientList = "";         try {             FileReader fileReader = new FileReader(recipientFile);             BufferedReader bufferedReader = new BufferedReader(fileReader);             while((recipient = bufferedReader.readLine()) != null) {                 if (recipient.trim().length() > 0) {                     if (recipientList == "") {                         recipientList = recipient;                     } else {                         recipientList = recipientList + "," + recipient;                     }                 }             }                // Always close files.             bufferedReader.close();         } catch (Exception e) {          }            } else {         recipientList = getFileNotFoundMessage();     } } }   Thanks


Are locks unnecessary in multi-threaded Python code because of the GIL?

If you are relying on an implementation of Python that has a Global Interpreter Lock (i.e. CPython) and writing multithreaded code, do you really need locks at all?  If the GIL doesn't allow multiple instructions to be executed in parallel, wouldn't shared data be unnecessary to protect?  sorry if this is a dumb question, but it is something I have always wondered about Python on multi-processor/core machines.    same thing would apply to any other language implementation that has a GIL.


Must a "target creature" be on the battlefield?

If an ability says "target creature," does the creature have to be on the battlefield? I think I found a loophole that depends on the answer.


Customize Slack Notifications banner/alerts?

Is it possible to customize Slack new message notification banners so Reply button is displayed automatically (without having to click 'Options' > 'Reply'). I have searched already within System Preferences > Notifications without luck. Note: Slack Notifications were working this way prior the Big Sur update. I know this might sound trivial but it's currently driving me crazy. Any help appreciated!


I'm an iOS developer and I've been selling very few apps on the App Store. I would like to ask some questions about withdrawn money from iTunes Connect.    I already know   Minimum payment: $150 (USD) Apple will fund every month     My question   If I earn over $150 in my account, for example: $500, how much money will I receive? I've known that Apple will fund every month, additionally, after 45 days of the first day of the month, is that correct? I am a little bit confused to calculatate this, for example, I started sale of my app at July 16, 2015, so what day does money arrived to my bank account? In addition, how do I calculate this?


What has led us to believe that there was "1" big bang and not multiple?


using stokes theorem to calculate a line integral

Use stokes theorem to show that:  $$\int_c ydx + zdy +xdz = -\sqrt{3} \pi a^2$$  Where c is the suitably oriented intersection of the surfaces $x^2 + y^2 +z^2=a^2$ and the plane $x+y+z=0$.


How to sort the string which combined with string + numeric using bash script?

This is the data what I want to sort. But sort treats the numeric to string, the data it no sorted as I expected.     /home/files/profile1   /home/files/profile10   /home/files/profile11   /home/files/profile12   /home/files/profile14   /home/files/profile15   /home/files/profile16   /home/files/profile2   /home/files/profile3   /home/files/profile4   /home/files/profile5   /home/files/profile6   /home/files/profile7   /home/files/profile8   /home/files/profile9       I want to sort this to,     /home/files/profile1   /home/files/profile2   /home/files/profile3   /home/files/profile4   /home/files/profile5   /home/files/profile6   /home/files/profile7   /home/files/profile8   /home/files/profile9   /home/files/profile10   /home/files/profile11   /home/files/profile12   /home/files/profile14   /home/files/profile15   /home/files/profile16     Is there a good way by bash script? I can't use ruby or python script in here.


Chown results in not being able log in VestaCP

so I needed to chown a folder and I accidently wrote      chown -R admin:admin /   And that chmowned all files for ~5sec then came up an error that it can not chown something and I stopped.  After I noticed I can not login in VestaCP, I changed password for VestaCP, but still could not log in.  So I checked the pass with somekind of Vestatool + standard login and it worked, so I understood this issue is because of the chmod - VestaCP cant' probably create a session file or something. Where should I look to set correct permissions? I checked most folders abd can not find any fault with them, comparing to my other server. Everything else seems working, also did a restart - booted up and running.


How are suggested edits in the review queue to be handled?

I recently crossed 2k rep on SO, which got me access to the review queue for suggested edits. I am not clear on what basis edits are to be accepted/rejected. I did a search for FAQ and suggested edits which turned up nothing.   Is there a canonical post that covers/explains review actions on the Suggested Edits review queue? Should a FAQ be created that covers the working of the Suggested Edits review queue as well as how to handle it?   I did see the FAQ  and  but both appear rather vague when it comes to actual reviews. Also, I have reviewed a fair bit of First Posts and Late Answers but those review actions seemed comparatively simpler.


There exists function sequence $\{f_{n}\}$ converges to $0$ such that $\{a_{n}f_{n}\}$ not converges to $0$

Let $X$ be the vector space of all complex functions on the unit interval $[0,1]$, topologized by the family of seminorms    $$p_{x}(f) = |f(x)|, \quad (0 \le x \le 1).$$   Show that there exists a function sequence $\{f_{n}\}$ in $X$ converging to $0$, such that $\{a_{n}\,f_{n}\}$ does not converge to $0$ for all sequences of scalars $\{a_{n}\}$ converging to $\infty$.   Hi everybody. This problem supports the point that the metrizability is necessary for $X$ to make this theorem true:      If a sequence of functions $\{f_{n}\}$ in a metrizable topological vector space $X$ converges to $0$, then there is a scalar sequence $\{a_{n}\}$ converging to $\infty$ such that $\{a_{n}\,f_{n}\}$ converges to $0$.   But I got no clue how to find that sequence like above. Also, topologize a vector space by family of seminorms makes me confused so much. So I hope someone can help me. Thanks.


Pros and cons of using Individual domains vs Subdomains?

I'm working on the renewal of a large website. In the past, several brands were added to the website. You can access these brand via the menu.   Each brand has its own subdirectory as follows:   www.domain.com/brand-1 www.domain.com/brand-2 www.domain.com/brand-3   The new set-up will be such, that each brand gets its own website. I'm wondering if its best to use individual domains:   brand-1.com brand-2.com brand-3.com   Or subdomains:   brand-1.domain.com brand-2.domain.com brand-3.domain.com   What are the pros and cons of these?  Which is the better way to go?


How to achieve this in google search results?

I've been wondering how to implement the dates + URL under the description on every page result.  Tried to implement using the "" schema and sometimes it works and sometimes it doesn't. Any thoughts?


I recently read the advice that you should generally use median not mean to eliminate outliers. Example: The following article  has 16 reviews at the moment: review = c(5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 3, 2, 1, 1) summary(review)  ## "ordinary" summary  Min. 1st Qu.  Median    Mean 3rd Qu.    Max.  1.000   3.750   5.000   4.062   5.000   5.000   Because they use Mean the article gets 4 stars but if they would use Median it would get 5 stars. Isn't the median a 'fairer' judge?  An experiment shows that median's error is always bigger than mean. Is median worse? library(foreach)  # the overall population of bookjudgments n <- 5 p <- 0.5 expected.value <- n*p peoplesbelieve <- rbinom(10^6,n, p)  # 16 ratings made for 100 books ratings <- foreach(i=1:100, .combine=rbind) %do% sample(peoplesbelieve,16) stat    <- foreach(i=1:100, .combine=rbind) %do% c(mean=mean(ratings[i,]),                     median=median(ratings[i,]))  # which mean square error is bigger? Mean's or Median's? meansqrterror.mean   <- mean((stat[,"mean"]-expected.value)^2) meansqrterror.median <- mean((stat[,"median"]-expected.value)^2)  res <- paste("mean MSE",meansqrterror.mean) res <- paste(res, "| median MSE", meansqrterror.median) print(res)


Login problem - I enter password and it just asks for the password again

I am running Ubuntu 12.04 on an IBM T43 laptop.  I hadn't used the laptop for a few weeks and forgot the password so reset it using the info found on here but now after entering the password the screen just keeps asking for the password again ???  ls -l /home returns dr-x------  I can login OK as 'Guest' and use internet but cannot use my own personal login.  Any idea what is wrong and how to fix it?


Why does kinetic energy increase quadratically, not linearly, with speed?

As  says:     [...] the kinetic energy of a non-rotating object of mass $m$ traveling at a speed $v$ is $\frac{1}{2}mv^2$.   Why does this not increase linearly with speed? Why does it take so much more energy to go from $1\ \mathrm{m/s}$ to $2\ \mathrm{m/s}$ than it does to go from $0\ \mathrm{m/s}$ to $1\ \mathrm{m/s}$?  My intuition is wrong here, please help it out!


ConTeXt - How to replicate this LaTeX tcolourbox title box placement with frame?

Desired effect:    Just to clarify - this is LATEX code, asking for a replication with CONTEXT code. Did you understand that? Please leave comments if you didn't get that.  MWE (LaTeX):  \documentclass{memoir} \usepackage{tcolorbox}  \newtcolorbox{mybox}[2][]{   enhanced,   attach boxed title to top center={yshift=-\tcboxedtitleheight/2},   colframe=black,   colback=white,   fonttitle=\huge\scshape,   colbacktitle=white,   coltitle=black,   boxed title style={     boxrule=0pt,     colframe=white,     },   title=#2,   #1}  \begin{document} \pagestyle{empty}  \begin{mybox}{Goals} \\ \end{mybox}  \end{document}


\documentclass{beamer} \usepackage{graphics} \mode<presentation> { \usepackage{breqn} \usetheme{Frankfurt} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}     \begin{align*}            \bar{v}\sim {|\Omega|\over 4\epsilon DN}\left[1+{\epsilon\over \pi}\log\left(\frac{2}{\epsilon}\right)+\frac{\epsilon}{\pi}\left(-\frac{9N}{5}+2(N-2)\log 2\\+\frac{3}{2}+\frac{4}{N}\mathcal{H}(x_1,\dots,x_N)\right)\right]         \end{align*}   Issue is \right is not working. I mean on right hand side bracket is closing. How do I resolve it. Thanks.


Can I create a keyboard shortcut to toggle the primary mouse button between left and right?

I switch between my left and right hand for my mouse a lot, and every time I do, I have to go to System Preferences > Mouse > and switch the Primary mouse button. Is there any way I can create a keyboard shortcut to toggle this setting? I'm willing to figure out AppleScript if that would help me


'Help improve Android Studio' <-- Is this grammatically correct?

I have doubt about this sentence.     Help improve Android Studio   I think it should be "Help to improve", because "improve" is a verb.   Is this grammatical correct?   If so, why is it correct? If not so, why is it used this?    I tried to search about it, but I could not found it.


Shouldn't there be an age difference between Cooper and Brand?

As we all know, going near a black hole (Gargantua in this case) slows down time, according to the theory of relativity.  So when Cooper comes out of the black hole, after spending a fair bit of time there, shouldn't he be much older than Brand who hasn't gone inside Gargantua?


I wonder how does the compile process work with LaTeX?  If I am defining \usepackage{PACKAGENAME}, and then using a specific command from this package in my LaTeX-file, how does it work?  I thought it compiles Top->Down, or does the compiler exclude the packages in the first place and check it later on if a command is found in the file?


find the size of a triangle using (determinant) with the following points:    $(x_1,y_1)=(1,-2)$    $(x_2,y_2)=(-4,-2)$   $(x_3,y_3)=(-5,-1)$      How should I place those points in the determinant? or firstly in a matrix?


Are there sources for ‘A Song of Ice and Fire’ other than the books?

Every now and then I look up something about Game of Thrones (exceedingly tentatively, as I haven’t read the books and am trying to avoid spoilers), and end up on , a wiki describing the book series, not the TV series.  Often I can spend ages clicking through various pages and not get spoiled, as a lot of the information there seems to describe the distant past of Westeros (and the rest of the world), before the events depicted in the TV show (which, presumably, are the events depicted in the five novels too).  And there’s an enormous amount of stuff there. Each major family that we see in the show/books seems to have a fully-fleshed out dynasty stretching back hundreds or sometimes thousands of years, with descriptions of what each significant member did during their lives — what battles they fought in, how they gained and lost their power, and so on.  Do all of these stories really come from the books? (Presumably from conversations where characters discuss history.) I know the books are pretty hefty, but the history of the world as described by the wiki seems way more fleshed out than would be possible even in five novels.  Are there other sources from which this stuff comes from?


What's the difference between "He is no fool" and "He is not a fool"?

For a non-native speaker, the above two sentences seem similar.    From the point of the native speaker's view, is there any slight difference?     In the same vein, "I have no money" and "I don't have any money" seems similar to me. Am I right?


I'm trying to cite the Public Law given below. When I compile bibtex the output always reads [Congress, 1960] and in my references section is recorded as Congress, U.  I would like it to read [U.S. Congress, 1960] in citations and   U.S. Congress. (1960). Multiple Use and Sustained...  in the references section.  I'm using natbib with apalike style.  @article{MUSYA1960,   title={The {M}ultiple {U}se {S}ustained {Y}ield {A}ct of {J}une 12, 1960. 74   {S}tat. 215; 16 {U}.{S}.{C}. 528-531, {P}ublic {L}aw 86-517},   author={Congress, U.S.},   year={1960} }   Any ideas on how I can override the natbib apalike default?


I am trying to compare two strings but i am having problem

read -p 'username : ' usr_value read -sp 'password : ' psw_value echo a=fghj if["usr_value" = "$a"]  #I am having problem in this line    then      echo "you have correct username"     else      echo "you have incorrect username" if


So I need to create a trigger that creates a new evidence number for each case. For instance, case #1 can have evidence #'s 1,2,3,4 and so on. Case #2 can also have evidence #'s 1,2,3, etc.   So I have a "Case" table (CaseID as PK) and a "Evidence" Table (EvidenceNum as PK and CaseID as FK and associated attributes)   So everytime I search for a specific caseID, I want a new "EvidenceID" column to populate. Such as Evidence item #1, #2, and so on. So these numbers can be repeated for each case. Hence why this is not the primary key. EvidenceNum is primary key but that wont be seen by the end user. Any help with this??


Does quantum entanglement really send a message?

A science geek here with a question about QM.  I've been watching conferences and reading about Quantum Entanglement, and my doubt is whether information is or is not exchanged between two entangled particles.  What I think is let A and B be two particles with entangled spins. It is unknown what the spin of each particle is, but it is known that one is the "opposite" of the other. So when you measure A and see what is its spin you "instantly" know the spin of the other because particle B no longer exists in its superposition state and its spin is now defined by particle A.  Now, is really a message, information, you name it, sent or it is just something that happens from the point of view of the person doing the measurement?  My interpretation is that no information is sent and no FTL communication happens, as it is everything just the revealing of a previously-set property (in the moment of the entanglement) as seen by the viewer.


restoring from tray does not work (windowState)

I have followed some guides and it seems to be a very simple task. still, I cannot make it work.  I can minimize app to tray:   private void Form1_Resize(object sender, EventArgs e)         {             if (FormWindowState.Minimized == this.WindowState)             {                 ntfIcon.Visible = true;                 ntfIcon.Icon = SystemIcons.Application;                 ntfIcon.BalloonTipText = "Antispin";                  ntfIcon.ShowBalloonTip(500);                 this.Hide();             }             else if (FormWindowState.Normal == this.WindowState)             {                 ntfIcon.Visible = false;                 this.Show();             }         }   But I cannot make it restore from tray      private void ntfIcon_DoubleClick(object sender, EventArgs e)         {            this.WindowState = FormWindowState.Normal;          }   Simply, the window will not show up, even adding this.Show() after the windowstate  Any help please? Compiling winform under win10


If : $\tan^2\alpha \tan^2\beta +\tan^2\beta \tan^2\gamma + \tan^2\gamma \tan^2\alpha + 2\tan^2\alpha \tan^2\beta \tan^2\gamma =1\dots$

Problem :   If $\tan^2\alpha \tan^2\beta +\tan^2\beta \tan^2\gamma + \tan^2\gamma \tan^2\alpha + 2\tan^2\alpha \tan^2\beta \tan^2\gamma =1$  Then find the value of $\sin^2\alpha + \sin^2\beta +\sin^2\gamma$    Please suggest how to proceed in such problem.


Get a truly RANDOM row from a PostgreSQL table quickly

I always used to do:  SELECT column FROM table ORDER BY random() LIMIT 1;   For large tables, this was unbearably, impossibly slow, to the point of being useless in practice. That's why I started hunting for more efficient methods. People recommended:  SELECT column FROM table TABLESAMPLE BERNOULLI(1) LIMIT 1;   While fast, it also provides worthless randomness. It appears to always pick the same damn records, so this is also worthless.  I've also tried:  SELECT column FROM table TABLESAMPLE BERNOULLI(100) LIMIT 1;   It gives even worse randomness. It picks the same few records every time. This is completely worthless. I need actual randomness.  Why is it apparently so difficult to just pick a random record? Why does it have to grab EVERY record and then sort them (in the first case)? And why do the "TABLESAMPLE" versions just grab the same stupid records all the time? Why aren't they random whatsoever? Who would ever want to use this "BERNOULLI" stuff when it just picks the same few records over and over? I can't believe I'm still, after all these years, asking about grabbing a random record... it's one of the most basic possible queries.  What is the actual command to use for grabbing a random record from a table in PG which isn't so slow that it takes several full seconds for a decent-sized table?


How do I get the current date and time in PHP?

Which PHP function can return the current date/time?


I'm creating a server for me and my friends at school so we can link and have fun together. I already created the server and everything, but they can't link if my server doesn't have a name!    How do I name it!?


typeof(t).GetProperties() when t is an interface that derives from another one

why typeof(t).GetProperties() does not find all the public properties of t when t is a derived interface? Is this the expected behavior or I am missing something?  public interface IBaseOne     {        int Id { get; }    }  public interface IDerivedOne : IBaseOne     {        string Name { get; }    }  public class ImplementsIDerivedOne : IDerivedOne     {         public int Id { get; private set; }         public string Name { get; private set; }     }  public static class TypeOfTests     {         public static Type Testing<T>() where T : class,IBaseOne         {             return typeof(T);         }     }  class Program {     static void Main(string[] args)     {         Type typeFromIBaseOne = TypeOfTests.Testing<IBaseOne  >() ;         Type typeFromIDerivedOne = TypeOfTests.Testing<IDerivedOne>();         Type typeFromImplementsIDerivedOne = TypeOfTests.Testing<ImplementsIDerivedOne>();          PropertyInfo[] propsFromIBaseOne = typeFromIBaseOne.GetProperties();         PropertyInfo[] propsFromIDerivedOne = typeFromIDerivedOne.GetProperties();         PropertyInfo[] propsFromImplementsIDerivedOne =TypeFromImplementsIDerivedOne.GetProperties();          Debug.Print("From IBaseOne: {0} properties", propsFromIBaseOne.Length);         Debug.Print("From IDerivedOne: {0} properties", propsFromIDerivedOne.Length);         Debug.Print("From ImplementsIDerivedOne: {0} properties", propsFromImplementsIDerivedOne .Length );     } }   Result: From IBaseOne: 1 properties From IDerivedOne: 1 properties From ImplementsIDerivedOne: 2 properties  Why IDerivedOne only shows 1 property?  thank you  Enrique


I'm studying for my final for Statistics, and I want to understand literally every problem in my textbook (at least in the first 7 chapters).  One of the problems asks to show that ${n}\choose {k}$ $=$${n-1}\choose {k}$ $+$ ${n-1}\choose {k-1}$  I have the solution manual, but the steps it gives appears to skip a few important steps or leave out important clarifications.  Can someone please guide me step by step through this proof?


I want to write an Apex method that takes a country name as input and returns the equivalent two letter country code (ISO A2). Is there a way to write it without explicitly hard coding all countries and code in the method? Can you walk me through how to do this from APEX? To clarify, I am trying to create a custom field on the account level with this return.


How do I stop Flash video being squashed and broken?

I recently installed Lubuntu but I have a problem with Adobe Flash Player. I always see something that looks like this when I open a video:    (source: )    The video is small, grainy, and is green and purple.  I tried to reinstall Flash and to test it in multiple browsers without success. I installed an older version of Flash but no result.  [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02)     Subsystem: Hewlett-Packard Company D530 sff(dc578av) [103c:12bc]     Kernel driver in use: i915


Why does value change when converting floating point value to int

I am declaring the amount as a float. When I multiply the value by 100 and plug it into an "int" variable the value changes to 419... why is this happening?  #include <stdio.h> #include <cs50.h> #include <math.h>  float amount; int cents, coins, quarters, dimes, nickels, pennies, Q, D, N, P; int main(void){  do {     amount = get_float("How much we talkin?\n"); } while (amount < 0);         printf("cents = %.55f\n", amount); cents = amount * 100;         printf("cents = %i\n", cents); quarters = cents % 25;     Q = cents / 25;         printf("quarters = %i\n", quarters); dimes = quarters % 10;     D = quarters / 10;         printf("dimes = %i\n", dimes); nickels = dimes % 5;     N = dimes / 5;         printf("nickels = %i\n", nickels); pennies = nickels % 1;     P = nickels / 1;         printf("pennies = %i\n", pennies); coins = Q+D+N+P;      printf("%i\n", coins);  }  ~/workspace/pset1/cash/ $ ./cash How much we talkin? 4.2 cents = 4.1999998092651367187500000000000000000000000000000000000 cents = 419 quarters = 19 dimes = 9 nickels = 4 pennies = 0 22   ... that link helped. Thank you!


Max value of $$\int_{a-1}^{a+1} \frac{1}{1+ x^8} \,dx$$is attained at what value of a?   My attempt:  Let the given integral be $\alpha$ . Then the max value can be calculated by differentiating the term. So for differentiating, i used the Newton-Leibniz rule but all i could infer from the result was that the function $\alpha$ is monotonous. I don't know what else to do. Any inputs will be appreciated.


I'm looking to get a 64gb micro SD card for my phone (Samsung Note 3 running Lollipop). The prices online run anywhere from $6 to $120. I read on a photography blog that there are speed classes and they recommended high speed for high res video. I'm looking to put my music files on it.   Is there any difference between a cheap card and a name brand? Do I need to worry about speed class for my smartphone? What about 128gb cards?     Note: I'm not looking for a brand recommendation, just what differences there might be between micro SD cards.


If $m > n$ and $a,m,n$ are positive, with $m$ not equal to $n$, find the  greatest common divisor of $2^{2^m}+1, 2^{2^n}+1$. Please solve this problem using Euclid's algorithm.  I tried to use Euclid's algorithm by first dividing $2^{2^m}+1$ by $2^{2^n}+1$, but I got stuck in the 2nd step while dividing $2^{2^n}+1$ by the difference of $2^{2^m}+1$ and $2^{2^n}+1$.


why connect refused when bind 0.0.0.0 using ssh port forward

I am using this command to port forward in my local machine: ssh -L 3409:0.0.0.0:3309 -N -f user@80.110.35.85  after run this command, I could connect remote 80.110.35.85 successfully. But when I using another PC in the same local network, it tell me connection refused. This make me confusing, why did this happen? is it possible to using the port 3409 on other computer in the same local network?


I'm really new to java.   I'm running some JUnit tests on a constructor. The constructor is such that if it is given a null or an empty string for one of its parameters, it's supposed to throw an exception.   When I test this constructor in JUnit with a null or an empty string parameter, I get a red bar, even though I'm almost 100% sure that the constructor method does indeed throw an exception when such parameters are passed in to it.   Shouldn't there be a green bar in JUnit if the method throws an exception the way it is supposed to? Or is it that when you are supposed to get a red bar when the exception throwing works the way it is supposed to?


Short story where statues have their heads replaced by those of carved insect heads

Looking for a short story that takes place after the apocalypse/societal breakdown? Can’t remember much else about it except for the final scene. The protagonists find that the statues in the park/square? have had their heads removed and replaced with the carved heads of insects. I think they are being pursued as well.


Is clustering (kmeans) appropriate for partitioning a one-dimensional array?

I want to group the outcome of a function into 2 (or 3) categories.  I have a function efficiency=f(weight,speed,#refueling_stops) that takes 3 input parameters and the output tells me how "efficient" a truck is. My goal is to take the most inefficient trucks off the road. However, I don't know which truck to keep and which to reject. In other words, I want to divide all possible output values of my function into the category "keep" or the category "reject" (or the category "between"). Furthermore I have no way to rate how suited my decision was and therefore the point where I draw the line(s) is more or less arbitrary. Nevertheless, I'm looking for a science-based approach to this problem.  Is there a name for this kind of problem?  So far I've stumbled upon clustering (kmeans and natural breaks / Jenks) which is completely new to me. Also I've read that my problem may be similar to converting a color image into black and white (and gray). But I couldn't find out what the current practice for this process is.  Up to now, I've calculated all possible outcomes of my function. The histogram and PDF of the resulting one-dimensional array look like this:   Then I partitioned them into 2 (or 3) categories via R:  library(classInt) x <- read.table("all_possible_outcomes") classIntervals(b, n=2, style = "kmeans") classIntervals(b, n=3, style = "kmeans")   Now I'm curious if this approach to my problem is a current method, or if not, what is the best practice for this? I guess what I'm looking for is some kind of confirmation that it's appropriate to use clustering. If not, what alternatives can you think of?


Dealing with bad behaviour across multiple communities

We have on our site (Econ.SE) a user who appears to have been abusing the voting system: his/her account has no activity other than casting exactly enough up-votes to obtain the electorate badge. A look at the user's network account reveals that s/he in fact obtained this badge on at least three-dozen sites in the space of a few days (the only other user to obtain the badge on Econ.SE has been actively participating in the community since its inception over a year ago). I am therefore fairly convinced that this user is not sincerely voting on useful posts, but rather is indiscriminately voting on random posts—which undermines the ability of the voting mechanism to provide information to other users.  To deal with this issue on Econ.SE, I have gone with what seems to be the consensus at , and written a moderator's warning to the user in question.  Now I am wondering:   Can/should I be doing anything to flag this problem to other communities that also appear to be affected? If the answer to 1. is "yes" then is there a better mechanism for doing this than creating a meta post on each of the large number of communities in question?


Why Collector-to-Base currents ratio in a BJT transistor is always greater than 1?

In fact, this question has been asked on the , but it's not well-answered. I suppose it might be more on-topic here.  According to :     Note that the holes injected into Emitter are supplied from Base   electrode (Base current), whereas the electrons injected into the Base   are supplied from Emitter electrode (Emitter current). The ratio   between these currents is what makes BJT a current amplifying device -   small current at Base terminal can cause a much higher current at   Emitter terminal. The conventional current amplification is defined as   Collector-to-Base currents ratio, but it is the ratio between the   above currents which makes any current amplification possible.   First off, Why collector current increases as base current increase? Is the former causes the later, or the later causes the former, or something else (voltage on electrodes, maybe) causes both?  And here is my question, Why collector current always increases more than the increment of base current? Say after something changes, a extra holes are "injected into" emitter region, and b extra electrons are injected into base region. Then why b is greater to a?


What power is going in or out of a USB-C port?

How do I tell how power is moving through my MacBook Pro's USB-C ports? My shiny new MacBook Pro (15", 2016), comes with four USB-C ports.  Sometimes power comes in through one of these ports, as when I charge the machine from Apple's included official 87 W power adapter, or another power adapter. Sometimes power goes out through these ports, as when I use them to power my iPhone or an external accessory like a hard drive.  Does macOS provide any tool that can tell me the net flow of power through every one of these ports? Or is there a third-party application which can do so? The benefit of this is it would let me manage my battery better, and also understand if cables, hubs, and power adapters are performing as intended.  The closest thing I can find is to go About This Mac / Overview / System Report / USB, where I see three fields: Current Available, Current Required, and Extra Operating Current. I don't quite understand what these fields mean. Also, they purport to describe current (in milliamps), rather than power (in watts). Without knowing the voltage I cannot know the flow of power, and my understanding is that voltage does indeed vary on USB-C power circuits.


Mysql query string not working in query c++

Hi I am having problems getting a string variable into my MySQL query I have tried everything I don't know where im going wrong any suggestions please.  string timestamp;       if (mysql_query(MySQLConnection, "INSERT INTO tablemeters (timestamp,gasreading,electricreading)VALUES ('"+timestamp+"', 'gas', 'elec')"))   Error im getting is :     menucurl.cpp:169:142: error: cannot convert ‘std::basic_string’ to ‘const char*’ for argument ‘2’ to ‘int mysql_query(MYSQL*, const char*)’


Problem with the include graphics command

I have a problem with the include graphics command. I have my pictures saved in the same folder with the main document but when I use for example \includegraphics[width=.5\linewidth]{K5} I get the File not found error. What I really don't understand is that I have compiled this file in the past and I had no problems. Also when the cursor is on the name of the image I can see the image so it seems that it can actually find the image but it doesnt appear in the pdf. I hadn't opend the file for a couple of months and I had some new packages and updates installed in MikTeX a few days ago. Could some of them create such a problem? Any suggestions how to fix it? Thank you in advance


How to mount NTFS drive with read write permission on Ubuntu 18.10?

I have installed my Ubuntu 18.10 on a SSD and I also have a another drive which is formatted as NTFS file system. When I click on mount it mounts that drive but I am only able to see the files. I can't seem to write into it.  I am not dual booting. I only have Ubuntu installed as a Operating System.  Can anyone please help me on how to setup my NTFS drive to auto mount at startup with Read and Write Access?


Attempted hack on VPS, how to protect in future, what were they trying to do?

UPDATE: They're still here. Help me stop or trap them! Hi SF'ers, I've just had someone hack one of my clients sites. They managed to get to change a file so that the checkout page on the site writes payment information to a text file. Fortunately or unfortunately they stuffed up, the had a typo in the code, which broke the site so I came to know about it straight away. I have some inkling as to how they managed to do this: My website CMS has a File upload area where you can upload images and files to be used within the website. The uploads are limited to 2 folders. I found two suspicious files in these folders and on examining the contents it looks like these files allow the hacker to view the server's filesystem and upload their own files, modify files and even change registry keys?! I've deleted some files, and changed passwords and am in the process of trying to secure the CMS and limit file uploads by extensions. Anything else you guys can suggest I do to try and find out more details about how they got in and what else I can do to prevent this in future?


I cannot change the order of columns in a SharePoint List

I cannot change the order of columns in a SharePoint list and cannot figure out how to.  In the list settings, it is not shown as an option.  Can anyone please advise? thanks.


Starting and stopping ArcGIS Server map services using Python?

Is it possible to programmatically stop and start ArcGIS Server map services using Python?


Why are there no animals in "The Matrix"?

Aside from the repetitive appearance of the black cat, I can't remember seeing any living animals, either inside the Matrix simulation or in Zion.  How come? Is there an in-universe explanation?


HttpClient is not getting null outside using block

i have a class in which there is a method wich returns http client like below.  private HttpClient client; private HttpClient GetClient()     {         if (this.client == null)         {             this.client = new HttpClient             {                  BaseAddress = new Uri("api")             };                this.client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));         }             return this.client;     }   i am using this GetClient method in other methods like                  using (var client = this.GetClient())                 {                     var response = await client.GetAsync($"/abc").ConfigureAwait(false);                     if (response.IsSuccessStatusCode)                     {                         result = await response.Content.ReadAsStringAsync().ConfigureAwait(false);                     }                 }   this client is not getting null outside the using block.next time when this method hits then client is not null.whats the problem?


How would I setup  to recognize import arcpy?   I'd like to use PyCharm to develop and debug geoprocessing tool.


Why my Photoshop brush pixelated instead of smooth

Sorry, I don't know how to describe this strange behavior. I have no idea what happened on my brush... Please help me. Thanks a lot!!


My Backlinks Indexed and shown in SERP few weeks back. Today I checked again 50% are not showing in SERP

A few weeks back I create backlinks for my project and they get indexed and showing in SERP properly. But today I again checked 50% of them are not showing in SERP. Backlinks are live and working properly but not showing in google search. Why, Please help me out. Even the SEOquake extension also showing the date when the link gets indexed. And its not about 1-2 nearly 25+ backlinks are not showing.


Any way to see mail sent by other user through shared address?

My wife and I have a "shared" email address, like thesmiths@example.com which we both use from Gmail when we both want to get replies or for signing up for certain websites.  When an email is received at that address, it gets forwarded to both of our personal Gmail accounts.  The problem is that when either one of us "sends as" that address, the other does not see the sent message. So we have to cc or bcc each other (and she usually forgets.)  Is there any automagic way to have those sent emails appear in both of our Gmail accounts?  I've tried filters but I don't think they work on outgoing messages. Basically we want a filter that would automatically forward emails from that address to the other person.  I know this can be done with standalone mail clients, but neither of us uses those. I want this to work by using Gmail webmail interface exclusively.


Cannot connect to my remote server via ssh

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg:  Load key "/home/potatouser/.ssh/dashboard.pub": invalid format Permission denied (publickey).   On my local machine, under ~/.ssh/config I have this set:   Host someserver     User potatouser     HostName serverone.mysite.com     Port 22  Host dashboard     User potatouser     HostName ec2-66-66-66-666.compute666.amazonaws.com     IdentityFile ~/.ssh/dashboard.pub     Port 22   Running in the terminal: ssh someserver works fine, asks for a password, and connects me.  Trying to connect to the second server with a public-key / private key (IdentityFile ~/.ssh/dashboard, i tried both) - results the same error.      -rwx------  1 potatouser potatouser  955 Feb 13 16:49 dashboard      -rwx------  1 potatouser potatouser  398 Feb 13 17:13 dashboard.pub   On my AWS server, under my user, ~/.ssh/ there is a file named: authorized_keys which has something that looks like a public key inside of it, looks something like this:   ssh-rsa asdasfagdsasfafsafadsfafs.....  .... ...


Can a coin with an unknown bias be treated as fair?

This morning, I wanted to flip a coin to make a decision but only had an SD card:    Given that I don't know the bias of this SD card, would flipping it be considered a "fair toss"?  I thought if I'm just as likely to assign an outcome to one side as to the other, then it must be a fair. But this also seems like a recasting of the original question; instead of asking whether the unknowing of the SD card's construction defines fairness, I'm asking if the unknowing of my own psychology (e.g. which side I'd choose for which outcome) defines fairness. Either way, I think I'm asking: What's the exact relationship between not knowing and "fairness"?  Additional thought: An SD card might be "fair" to me, but not at all fair to, say, a design engineer looking at the SD card's blueprint, who immediately sees that the chip is off-center from the flat plane. So it seems fairness even depends on the subjects to whom fairness matters. In a football game then, does an SD card remain "fair" as long as no design engineer is there to discern the object being tossed?


Windows 8.1 came pre-installed in my laptop, I installed Debian 8 on dualboot, the day before yesterday I had to reset BIOS settings, after resetting BIOS is also reseted MBR for windows only, system kept booting windows. I tried several fixes but didn't work. I re-installed Debian 8 and installed a few updates and did sudo reboot. Now again it boots directly into Windows instead of showing grub2 menu for dualboot. Most of the time I like to use debian for it's speed performance and other awesome stuff but I sometimes also need windows for a few tasks. Any solution? >.> It's driving me crazy...


I had a client request that they wanted a mailing list popup like the example given below where the popup is presented to the user as soon as they land on the site    I am a little concerned about the effectiveness of this popup in terms of conversion and the potential for it being an annoyance. I did some research on what the general view is on mailing list popups and there seems to be consensus that they can help in increasing conversions but they can be really annoying as well. However most of this information was garnered by discussions in forums about such methods to sign up people. I am wondering if there is any research on whether such a popup is bad usability or there are pros which outweigh the cons?


Helpful linux command for do some forensic on compromised linux web server

What are helpful linux command for do some forensic on compromised linux web server for giving out sort of information/evidence/backtrace? for example checking log, checking last file edit, suspicious open port, and others usefull automatic command for forensic?


I am a linguist and not a mathematician. If I was an expert mathematician, I wouldn't need your help.  In response to a query in a comment about when if P, Q is true, I recently was told by @amWhy:   "If P then Q" (P→Q) is true whenever P is false, or Q is true (or both).   This was in response to a comment on this question here:      (You will only be able to see this post if you have a very large reputation score)  Now this interpretation is one of many mathematical (not all very simple) interpretations of when If P, Q is true. What I would like to know is whether the following sentence is true, if it is said about a particular number which as been written down on a specific piece of paper:   If the number written on the paper is divisible by 9, it is divisible by 3.   In particular, suppose the number which is written on the paper is 4, is the sentence true?


How to find patches with data in Raster and then how to extract those patches?

I have a single band raster file as drawn in the labeled image attached.  The size of raster is around 4k pixel in each x and y axis. Large part of this raster is empty. Only in small portions of the raster contains data as labeled. Is there any efficient way I can extract rectangular patches around the data portions of the large tif raster file? Any pythonic way using gdal or rasterio or some other package. What I have done so far: I have followed from sklearn.feature_extraction.imageway to extract 2D patches where there is data as follows. from sklearn.feature_extraction.image import extract_patches_2d im = imageio.imread(largeFilePath) # reading the large image x, y = np.nonzero(im) # taking xy locations with non zero values  # determining xleft, xright, yleft and yright of the non zero area in  raster  xl,xr = x.min(),x.max()  yl,yr = y.min(),y.max()   #Extraing the non zero area from my original raster only_desired_area = im[xl:xr+1, yl:yr+1]  # my desired window to extract  window_shape = (480, 480)  # 2D Ptaches extraction B = extract_patches_2d(only_desired_area, window_shape, max_patches=100)  Issue: This doesn't have georeference information because I haven't used gdal or rasterio


Why are posts turned wiki after a few edits by the owner?

On , it is stated that posts enter community wiki mode when it has been edited six times by the original owner.  Why is that? I often edit posts for small, merely cosmetic reasons and do not want them to be turned wiki. I'm well aware of the automatic preview, but even after carefully considering an edit, I often (multiple times per post) notice something a few minutes or hours later.  The number stated in above link may not be actually correct. The current value (and implementation details) seem to be unknown. If the actual number were, say, 20, I would not mind, since a value that high ought not to cause any trouble. On the other hand, if it were 5, I definitely would.  Edit: It seems a main concern is that users would be able to bump often. In this case, there are some rather easy ways to prevent gambling in the comments to , so I don't this this should be an issue.


creating model mesh and face explosions on Panda3d and Blender

I'm quite new to Panda3d and Python (1 year) and I've been trying for longer than 4 months to find out how to create a simple mesh explosion in Panda3d. I've created lots of different explosions using Blender and they all look good and work fine in Blender but when I export them through .x or .egg files the animation is always blank. I know Panda3d normally uses armature to do animations but with a mesh explosion on a space ship or box or any static object it does not have armature and maybe this is why it never really exports the visual effect... I've been trying so long now just to explode anything on Panda3d but cannot work out how to go about this. It's really getting me down as the particle effects panel is great for things like smoke and fire, etc but I want to see the actual mesh and faces explode into pieces, so I can continue working and learning how to create and develop games. I've looked into everything on the web and Blender and Pand3d but can't find anyone or anything that has had this problem or solution. I've got demo code but I'm not sure how to upload the models I've created. Do I need to include them here as it's not the code that is the problem but the .egg files and Blender... The models I've created have separate animation files and I've tried animation files within the .egg. I've got other animated models to work so I know it's not that, like I said I've tried everything and all the different export settings and combinations to get my ship to explode.


How to split an object into two different

Ive created an UFO and when it came to texturing I encountered a problem. Ive made this object of default cube so basically these two parts are a one object, so texturing works fo both of them. How can I divide it to two different objects (like body and glass)? Thank you.


How to horizontally center items in my case?

I need to horizontally center my .inner_header, but no matter what I try, everything always sticks to the left. In different posts, people are suggesting to do this:  .parent {   display: flex;   justify-content: center;   align-items: center; } .child {   display: inline-block; }  In my case parent would be .header, and child would be .inner_header, but it just doesn't work. Any suggestions? Here is my CSS and HTML:   .header{  width: 100%; height: 80px; display: block; background-color: white; }  .inner_header {  width: 95%; height: 100%; display: block; margin: 0 auto;  }  .logo_container{  height: 100%; display: table; float: left;  }  .logo_container2{  height: 100%; display: table; float: right;  }  .logo_container h1{  color: black; height: 100%; display: table-cell; vertical-align: middle; font-size: 32px; font-weight: 200;  }  .logo_container2 h1{  color: black; height: 100%; display: table-cell; vertical-align: middle; font-size: 32px; font-weight: 200;  }  .logo_container h1 span{  font-weight: 800; }  .logo_container2 h1 span{      font-weight: 800; }  .navigation {  float: left; height: 100%; padding: 0; }  .navigation a{  height: 100%; display: table; float: left; padding: 0px 20px; }  .navigation a:last-child{  padding-right: 0; }  .navigation a li {  display: table-cell; vertical-align: middle; height: 100%; color: black; font-size: 15px; }

LOGO1

LINK

LINK

LINK

LINK

LINK

LINK

LOGO2


Let $R$ be a commutative ring and $I$ be an ideal of $R$. Is it true that $I$ is a principal ideal if and only if $I$ is a free $R$-module?


Using classes after importing .jar on IntelliJ IDEA

More ore less, using a .jar as a package. I want to use two classes which contain methods from another project in a new project and "import" these in a Test class.


Ring with power set, identity and neutral

I have the following problem:  Given a non-empty set $U$ and the power set $P(U)$. Proof $(P(U);\triangle, \cap)$ is a commutative ring. Which subset is the neutral and which one is the identity?   I have an idea of how to check if it's a ring (by checking all properties one by one) but I don't know how to deduce the neutral set and the identity.


Lock/Unlock icons, should the icon refer to the current state or the action?

I'm building a function into the account management software I'm working on that allows the user to "lock" themselves into a mode where all the content/data being displayed is relevant to a single account (chosen by the user).   Currently this is triggered by a button with the name of the feature and a padlock icon.   Right now the state of the padlock icon is tied to the action you're carrying out by clicking it. When the function is off, the action is to lock, and we show a locked padlock.  When the function is on, the action would be to unlock, so we show an unlocked padlock.   There are plenty of other signifiers and confirmations in the mix, so I'm not worried about the icon alone confusing users, but does it make more sense to reverse things and have the icon display the current state rather than the action? e.g. Display as locked when the user is locked into an account, and unlocked when they're not.


What is the Difference Between 1Ghz Mobile Processor and 1Gzh Pc pocessor?

What is the difference between a 1Ghz ARM mobile processor and a 1Ghz x86 processor?. I mean both are 1Ghz right. Then how is it differs in performance other than the architecture?. why if we compile one-same application for 2 architecture it gives 2 different outputs (performance).


How to find the canonical equations of the series RLC circuit?

First, I consider the LC circuit with an ion in the capacitor, which is like this:  The current $I$ can be derived easily using Shockly-Ramo theorem \begin{equation}  I = -\frac{qp}{dM} + C\dot{U} \ \ \ (1)  \end{equation} where $q$ is the charge and $M$ is the mass of the particle, $p = M\dot{z}$ is the momentum of the particle, $d$ is the separation of the two plates, $C$ is the capacitance and $U$ is the voltage across the capacitor. By taking the circuit-charge $Q$ on the capacitor as the generalized coordinate and the magnetic flux through the inductor $\Phi = L\dot{Q}$($L$ is the inductance of the inductor) as the momentum, it is easy to derive the canonical equations of the circuit with Kirchhoff's law $U = -\dot{\Phi}$. \begin{equation}  \dot{Q} = \frac{\Phi}{L}\ \ \ (2)  \end{equation} \begin{equation}  \dot{\Phi} = -\frac{Q}{C} - \frac{qz}{Cd}\ \ \ (3)  \end{equation} Now we consider the series RLC circuit case. My question is that how to find the canonical equations of the series RLC circuit with the same canonical coordinates(which is $Q$ and $\Phi$)? it says that there will be two more terms added in equation(3), $-\Gamma\Phi$ and $\sqrt{2\Gamma L k_BT}\xi(t)$, where $\Gamma = \frac{R}{L}$. So the first term is the damping term and the other term, according to that paper, should be the thermal noise of the resister. I just can not find the correct canonical equations that satisfies the result in the paper.


For a linear transformation $T$ on a vector space $V$ of dimension $n .$ Suppose it is given that for some vector $\mathbf{v},$ the vectors $\mathbf{v}, T(\mathbf{v}), T^{2}(\mathbf{v}), \ldots, T^{n-1}(\mathbf{v})$ are linearly independent, then is it true that every eigenvalue of $T$ has only one corresponding eigenvector up to a scalar multiplication.


How to get a good "divisible by" symbol?

In addition to the "divides" relation, denoted b | a, there is also a "divisible by" relation expressing the converse (a is divisible by b), often designated with three vertical dots.  Up until now, I've settled with  \mathrel{\vdots}     But there are two problems with the symbol:   It is too high relative to the numbers It is also somewhat too long   A search with  and the  doesn't reveal anything more suitable. How do I get a good looking "divisible by" symbol?


Exploration teams land on planet and die of nightmares

This was a short story.   Various teams land and do not survive the first night. There are cryptic clues relate to being attacked by monsters from their cultures/myths.  The protagonist survives his worst childhood monster by hiding under the blanket until daybreak. They work out that the air they are breathing causes these life-ending hallucinations/nightmares.


So I've been trying to create a hotspot using create_ap but I'm getting the error ERROR: Your adapter does not support AP (master) mode The iw list also does not list AP as a supported interface but I am able to create a hotspot in windows. I'm not asking how to create the hotspot I know the process. The thing that's stopping me from doing this is that the system does not show AP as a supported interface but since the same is possible by windows I suspect there's some other issue that is causing AP not to be a supported interface


How to make an image black and white but leave certain parts in colour in photoshop?

I have taken some pictures over the weekend and think they will look good if the image was in black and white but the main subject was left in colour. I have Photoshop. Can anyone tell me how to do this?


Prove ${e}^{x}$, $x\in\mathbb{Z}$ is irrational

I was thinking of random problems in my head when this came to mind. But I have absolutely no idea how to solve it, so I can't show my attempts. Please help me with this.   Prove $\boldsymbol{e^x}$, $\boldsymbol{x\in\mathbb{Z}}$ is irrational


Controlling 110v swamp cooler using Nest thermostat

I currently have an HVAC system that is connected to a Nest thermostat (2nd generation) and I'm planning to use the same Nest thermostat to control a 110 swamp cooler that is currently not connected.  Before dealing with the trouble to connect both systems to the same thermostat (maybe using switches/relays to shut down one system while the other is on) I want to know if it possible to control the swamp cooler using the Nest thermostat. I don't have too much electrical knowledge, but I've been doing some research and I think it is possible if I buy some additional things.  The swamp cooler has a 2-speed motor, therefore I would like the Nest thermostat to control both speeds using Y1 and Y2 terminals. As far as I know 2 stage thermostats will apply power from the R terminal to the Y2 if more cooling power is required at the same time power is applied from R terminal to Y1. I also want the water pump to work everytime the thermostat calls for cooling (for both speeds), but I want the water pump to run alone for some minutes before the motor is started.  I have found that the Honeywell RC840T-120 might allow me to use the 24v Nest thermostat with the 110v swamp cooler and using a SPDT relay I could connect Y1 and Y2 to the 2 terminals of the 2-speed motor. Honeywell RC840T-120 was created to connect line-voltage controlled heaters to 24v thermostats but I think it will also work with the swamp cooler. This device will be the first relay that will decide if the pump and motor are going to receive power. This first relay will be connected to a PTD102 Delay that will delay the power to the SPDT relay, this last realy is the one that will control the power to the motor based on Y2 terminal from Nest thermostat. The thermostat will send power to Y1 only for 1st speed and in case it needs more cooling power it will start  sending power to Y1 and Y2 at the same time causing the SPDT relay to switch power to High through terminal 3 as the following diagram shows:    Please let me know if you think this way to connect the thermostat will allow me to control the swamp cooler and if it will also control both speeds


How to have a Batch File create a shortcut on desktop

I am creating a program that fixes ALL issues with Windows Update. I need to make this program create a shortcut on the desktop. I am using Iexpress.exe. I will be installing this on many computers with different user account names. I cannot specify the user account if I type in the file path like C:\Users\%Cannot specify user%\Desktop.


How can I copy or move images from thousands of folders into one folder?

I have about 2855 folders containing a large number of images and I want to copy or move all the images into one folder.  Please provide a detailed explanation.


Problems with certain times occuring twice (or not at all) on night of daylight saving time to standard time transition

In most of Europe, when the clocks are set from daylight saving time to standard time, at 3 AM the clocks are set back to 2 AM. Thus, a time like 2:29 happens twice in that night. In spring, the clocks go from 1:59 to 3 AM straight. Thus, 2:29 does not happen at all.  Imagine a plane leaving at 2:29 AM from a certain place. When does it actually leave on those two nights?


How to use latitude/longitude with projection in R

I am using the SABS dataset:   In particular, let's say I am using the "SABS_1314_High" layer. (This provides the school attendance boundaries for many US school districts.) The identifying variable is "ncessch".  I also have a list of latitude and longitude coordinates that looks like this ("sampledata.csv"):  num lat long 1   37.378309   -122.052739 2   37.320722   -122.020981 3   37.436397   -122.149727   For each row of this, I want to know the "ncessch" value of the polygon that the point belongs in.  After much trial and error (I am completely new to GIS, though not to R), I am able to read in the shapefile properly, together with its projection:  library(rgdal) poly3 <- readOGR (".", "SABS_1314_High") proj4string(poly3) [1] "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0"   I can also create a SpatialPointsDataFrame for my list of points:  library(sp) locations <- read.csv("sampledata_2.csv", header = TRUE) locations <- SpatialPointsDataFrame(locations[ , 2:3], locations)   At this point, it would appear that I need to use the over function in the sp package to check, for each point, which polygon it lies in, but that throws an error:  over(locations, poly3) Error: identicalCRS(x, y) is not TRUE   It would therefore appear that the projections are not the same. Okay, so I tried a couple of different things:  library(mapproj) locations.proj <- mapproject(locations[,2], locations[,3], projection = proj4string(poly3)) Error in min(x, na.rm = na.rm) : invalid 'type' (list) of argument In addition: Warning message: In is.na(x) : is.na() applied to non-(list or vector) of type 'S4'   Using a different package:  library(proj4) locations.proj <- project(locations[,2:3], proj = proj4string(poly3)) Error in as.numeric(x) :    cannot coerce type 'S4' to vector of type 'double'   What am I missing?


Other studies, including in the United States, have shown this same   pattern, with girls who begin developing earlier than their peers   vulnerable to depression in adolescence.   Without context, are there two meaning? :   Girls are vulnerable to depression in adolescence. Peers are vulnerable to depression in adolescence.   Put another way: if sentence is      There are girls who begin developing earlier than their peers vulnerable to depression in adolescence.    then is there ambiguity which group is vulnerable to depression in adolescence?


How do I insert a 'Tironian Sign Et' in LaTeX?    or is there a symbol that looks just like it?


Saving "Messages" from users in mysql without SQL Injection

I've a script which Takes $_POST['messages'] and then saves the user's messages to MySQL database.  What's the best approach to prevent SQL Injection and saving the messages(which could be alphabets, numbers, special characters) to the Database so that it won't affect the script+databse queries.  I mean, is there any approach to encode the data or change the special characters to encoded characters like ? to %3F so something.  I'm using PHP, MySQL(MySQL PDO Wrapper Class).


How to read postgres sql Table (No geometry) in PYQGIS?

In my database there is a table without geometry. how to read that from from pyqgis. self.uri = QgsDataSourceUri() self.uri.setConnection(self.Hostname, self.Portid, self.Dbname, self.Username, self.Password) db = QSqlDatabase.addDatabase("QPSQL") db.setHostName(self.uri.host()) db.setDatabaseName(self.uri.database()) db.setPort(int(self.uri.port())) db.setUserName(self.uri.username()) db.setPassword(self.uri.password()) self.dbresult = db.open() self.uri.setDataSource(self.Schema, "project_ids", "geom", "") lay = QgsVectorLayer(self.uri.uri(True), "project_ids", "postgres")  print("Layer fields Names",lay.fields().names())   is shows not showing any fields How to read the No geometry Tables in pyqgis?


Undefined reference while creating object

i am not able to create object of LO class. the code is below.  Tem.h    #ifndef TEM_H_    #define TEM_H_     #include <iostream>    #include <exception>    #include "UDPTest.h"     template<class T>    class Tem : public std::exception {    public:     T* UDPt;     Tem( T& t) throw();     virtual ~Tem() throw();    };     template<class T>    class LO :public Tem<T> {     char* mez;    public:     LO() throw() ;     char* what() const throw();     virtual ~LO() throw();    };     template<class T>    class AT :public Tem<T>{     char* mez;     public:     AT() throw();     char* what() const throw();     virtual ~AT() throw();     };     #endif /* TEM_H_ */    Tem.cpp    #include "Tem.h" #include <iostream> using namespace std;   template<class T> Tem<T>::Tem(T& t) throw() : exception(){ UDPt = t; // TODO Auto-generated constructor stub } template<class T> Tem<T>::~Tem() throw() { // TODO Auto-generated destructor stub }  template<class T> LO<T>::LO()  throw() { cout<<"LO constructor"<<endl; } template<class T> LO<T>::~LO() throw(){ } template<class T> char* LO<T>::what() const throw(){ return "Lockout validation failed.";  }  template<class T> AT<T>::AT() throw(){ cout<<"AT validation failed."<<endl; } template<class T> char* AT<T>::what() const throw(){ return "Active Task validation failed."; } template<class T> AT<T>::~AT() throw(){ }      UDPTest.h   #ifndef UDPTEST_H_ #define UDPTEST_H_  class UDPTest { public: int udp; int tcp; UDPTest(); virtual ~UDPTest();  };  #endif /* UDPTEST_H_ */     templatetest.cpp  #include <iostream> #include "Tem.h" #include "UDPTest.h" //#include <exception> using namespace std;  int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! try{     throw LO<int>();     //LO<int> loo; }catch(exception& e){     cout<<"got"; } return 0; }   in the main function i am creating LO class object and throwing, LO class is inheriting Tem class which is template, inside Tem class i have a pointer of UDPTest class.   As i know, i am doing mistake somewhere but i am not able to know. please help me  Thanks


Add anchors to the how-to-ask and how-to-answer pages

Often, when I cite the  or  pages, I'm mostly pointing out one particular paragraph (usually “Provide context for links”). So I'd like to write [please summarize the contents of your link](http://SITE/how-to-answer#link).  Please add anchors to the “How to Ask” and “How to Answer” pages.


i'm having some difficulties in PHP pdo queries.Here's a example of the query im trying to make  public function admin_hoca_onay($data){ global $pdo; if($data["islem"] == "genelkaldir" || $data["islem"] == "puankaldir" || $data["islem"] == "girdikaldir"){   $durum = "0";  } elseif($data["islem"] == "genelonay" || $data["islem"] == "puanonay" || $data["islem"] == "girdionay"){   $durum = "1"; }  $query = "UPDATE defter SET :islem=:durum WHERE hoca=:hoca"; $stmt = $pdo->prepare($query); $stmt->bindParam(":islem", $data["row"]); $stmt->bindParam(":durum", $durum); $stmt->bindParam(":hoca", $data["hoca"]); $result = $stmt->execute();  if($result){   return 1; } else{   return 0; } }   as you can see there in my query theres a part like :islem=:durum i know that we can insert variables in query with bindParam but im not sure if this kind of a thing work.


Temporarily override DNS settings in Chrome

When I release a new version of my web application, I try it first on a staging website, which is basically a clone of the production environment.  It's not enough for me to access the staging server by typing the IP address in my browser, as the application uses virtual hosts and thus replies on several domains and sub-domains.  What I'd like to do ideally, is temporarily override my DNS settings in Chrome, to force it to load mydomain.com and *.mydomain.com from the clone server.  I can do it from my hosts file, but it's quite cumbersome, and I doubt the changes will be taken into consideration immediately (and without a restart of Chrome), both to set the temporary DNS and to revert them back to their default value.  Is there a way in Chrome to temporarily send all requests for a given domain name to a given IP address?


Is there a ring $R$ such that $(R,+) \cong S^{1}$?

Here is the question I wanted to answer letter(c) of it: Let $R$ be a ring (with 1), and let $H$ be the cyclic subgroup of $(R,+)$ generated by $1.$ The characteristic of $R$ is $n$ if $H\cong \mathbb{Z}_{n},$ and is $0$ if $H \cong \mathbb{Z}.$\ (a) Show that, if $a \in R$ has additive order $m,$ then $m$ divides the characteristic of $R.$\ (b) Prove or disprove: If the characteristic of $R$ is $0,$ then $(R,+)$ is torsion free.\ (c) Is there a ring $R$ such that $(R,+) \cong S^{1}$ ? Here is a solution to letter $(c)$: The answer is No. And here is the justification: $S^{1}$ is defined as $\{ z \in \mathbb{C}^{*}\ :\ |z|=1 \}$ and if $a,b \in S^1,$ then $|a| = |b| = 1$ but $|a + b| \leq |a| + |b| = 2$ and so $a + b$ is not necessarily in $S^1.$\\  On the other hand, $(R, +)$ form an additive group and so it is closed under addition.  Hence, $$(R,+) \ncong S^1.$$   Here is a hint to the correct solution: Assume $na = 0$ and $nb = 1$ for $a,b \in R, n \in \mathbb{Z}^{+}.$ Then $$a = a. (nb) = (na). b = 0 .b = 0 $$ Also, I found a solution here  My questions are: 1- In the link I mentioned, the author is using the idea that $S^1$ is divisible, I do not know why that is correct, could anyone explain that for me please? 2-Also, I do not understand the general idea of the solution, could anyone explain it for me please? 3- My understanding is that we are using the idea that $R$ is a ring with unit so it has multiplicative and additive identity, but why $a$ can not be zero in the hint?


Images are escaping from the help center privilege page

Images included in the fully expanded privilege pages are escaping from the body.    This is most noticeable on the  (which I know is going away soon anyway):    But is also apparent on:       In the edit page preview, the images sit correctly within the borders.  Chrome 27, Windows 7


I have lost my Android Phone. How can I track it via IMEI number.   Can I install any application which can given me the number of SIM currently on given IMEI number.  Please help


Upgraded Ubuntu from 14.04 to 16.04, hangs on boot, can use recovery mode but unclear what's actually broken

I'm attempting a manual upgrade of a Vagrant VM box (of the WordPress dev environment , which uses ) from 14.04 (14.04.5 LTS I think...) to 16.04.2 LTS.  This is the second time I've attempted this, I took a snapshot beforehand.  I used do-release-upgrade rather than the Debian method, and I didn't see any obvious errors/problems during it.  On completion it reboots and hangs, until it gets as far as this:  [...] usbcore: registered new interface driver usbhid usbhid: USB HID core driver random: nonblocking pool is initialized     The VM apparently doesn't have grub, so I downloaded an Ubuntu Live CD ISO image, configured VirtualBox to boot from that, and ran boot-repair.   Latest options I've tried:      I was then able to access Grub and boot into recovery mode. (Incidentally grub is giving me two sets of options, version 4.4 and an earlier v3.13, I'm using the most recent).    I tried updating grub and doing dpkg --configure -a, though I suspect there was nothing wrong with either and these made no difference, it still hangs in the same place.  What do I do now / what to look for?  Also, if I were to restore the 14.04 snapshot and upgrade again, is there anything I could do beforehand that would likely prevent this?  Software versions:  Vagrant 1.9.2 VirtualBox 5.1.10 Mac OS X 10.11.6 (El Capitan)  VirtualBox settings:   Linux Ubuntu (64-bit) 2 MB RAM, Chipset ICH9 Enable I/O APIC - on Enable EFI - off Hardware clock in UTC time - on    4 CPUs Enable PAE/NX - off  Acceleration: Paravirtualisation interface: legacy Enable nested paging - on  Storage: SATA controller type AHCI 2 ports (1 for HDD, 1 for optical)


Now I haven't gotten into Programing or game making let alone even tried Blender Game but I do have a very basic understanding of game engines and Eevee looks fantastic!! Close if not identical to UE4! I know it will be for the viewport (Super excited)!Thank You in advance!


How to properly convert DateofBirth to age inside a viewmodal

I'm trying to convert a personnel's date of birth to their actual age within a ViewModel inside of another viewmodel I plan on calling in the front end. I've managed to create public DateTime? PersonnelDOB { get; set; }  and it's bringing back their Date of Birth I.E 6/12/1972 I need to convert this to their actual age so instead of 6/12/1972, it'll be "48 years old" the issue to this current problem is that 'dob' is a DateTime and 'today.year' is an int. I can't subtract a DateTime from an int. I need to also make sure I account for leapyears and for it to actually accurately output their age. I also will want to check that dob isn't null. I dont have to do this within a viewmodel I created, it was just an avenue I was exploring. Thank you all for your help! public DateTime? PersonnelDOB { get; set; }          public PersonnelDOBViewModel()     {         var dob = PersonnelDOB;          // Save today's date.         var today = DateTime.Today;          // Calculate the age.         var age = today.Year - dob;          // Go back to the year the person was born in case of a leap year         if (dob > today.AddYears(-age)) age--;         return age;     }  ** A coworker helped me out and for those of you interested in the right answer - here it is public DateTime? PersonnelDOB { get; set; }      public int? PersonnelAge     {         get         {             if (!PersonnelDOB.HasValue)                 return null;                          DateTime today = DateTime.Today;                          int years = today.Year - PersonnelDOB.Value.Year;              years -= (today.Month < PersonnelDOB.Value.Month || (today.Month == PersonnelDOB.Value.Month && today.Day < PersonnelDOB.Value.Day)) ? 1 : 0;             return years;         }     }


How to write info in console window on the position

I'm working with VS2015 and C# on a console application in which I'm logging info for the end-user while the application is running.  In one situation I want to show the user per example that items of a list are handled.  So I want to write an info like "Item 1 of 100 is handled".  With Console.WriteLine I would get a lot of lines which are standing under each other.  Do I have a chance to write the info in the same line at the same place?  What I mean is, I want to write a new line with "Item 1 of 100" and then writing at the same line and place "2 of 100", "3 of 100" and so on.


These   don't have a name in my profile page, but on their detail it clearly states that they are an orphaned tag wiki. Can we fix this inconsistency please?


If $y=x^{n-1}\ln (x)$, then prove that $xy_{n}=(n-1)!$  My Attempt: $$y=x^{n-1}\ln (x)$$ Differentiating both sides with respect to $x$, $$y_{1}= x^{n-1} \dfrac {1}{x} + \ln (x)\cdot (n-1)x^{n-2}$$  P.S $y_{n}$ denotes the $n^{th}$ derivative of $y$.


Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?

The answer to this homework problem is $\left(\text{D}\right) :$        I understand why we rule out options $\left(\text{A}\right)$ and $\left(\text{B}\right)$ first. However, I don't get why $\left(\text{D}\right)$ is the answer.  Won't the ball's velocity at one point be $0$ when it comes in contact with the ceiling? (The same way as its velocity momentarily is $0$ when it is thrown downwards and comes in contact with the ground before bouncing back upwards). That should give zero acceleration at that point, but none of the acceleration profiles include $0 .$


What is the difference between \em and \emph?

What is the difference between \emph{...} and {\em ...}?  When to use each of them?


I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the monitoring and see how much memory that have been used during the period.  How can I do this on Ubuntu Server?  I guess I could start a cronjob every 5th second or so, and invoke a command that log the current memory usage in a textfile. But what command should I use to get the current memory usage in a format that is easy to log to a text file?


How do I wipe my computer completely clean and remove ubuntu?

I have decided to switch to Windows. I would like to completely remove ubuntu, and all the other files on my computer. How do I do this? I basically want to wipe my computer clean.


Do eyeballs exhibit chromatic aberration?

Fairly straightforward question. If not, why not?  I suspect that if they do, it is not perceived due to the regions of highest dispersion being in one's region of lowest visual acuity.


Meta charset="utf-8", yet 'ç' and others are converted to '?'

UTF-8 is present in the header, but still most 'less common' symbols are not converted correctly.  Example: the game The Interactive Adventures of Dog Mendon�a & Pizzaboy --> that should be 'ç'  This is the part of the code where the problem occurs:
            ".$date." 	           {$row['game_name']}	           {$row['game_platformlist']}	           ";                 $query="SELECT * FROM genre WHERE genre_id=".$row['game_genre'];                  $genreresult=mysqli_query($link,$query);                                    $genrerow=mysqli_fetch_assoc($genreresult);                     echo $genrerow['genre_name'];                     echo "	           {$row['game_dev']}	           {$row['game_type']}	                                        	           {$row['game_note']}
";   Is there a way to solve this problem? I tried iconv ISO-8859-1 but that didn't work.


I am trying to prove that   $$e^{k+1} ≥ 3 + 3k + k^2$$ with, $$k>2$$  WhatI have done so far:  What we are trying to prove is that $$e^n≥1+n+n^2$$ is a true statement. Since $n=3$ holds, this is our base case. Then, the inductive hypothesis is: $$e^k≥1+k+k^2$$ Hence, I need to show $$e^{k+1}≥1+(k+1)+(k+1)^2=3+3k+3k^2$$ is a true statement.


Why is "taking a biscuit" a bad thing in the UK?

So, I'm reading up on a  and I see two that bear a striking similarity.   "Take the biscuit (UK): To be particularly bad, objectionable, or egregious.     "Take the cake (US)": To be especially good or outstanding.   Now I can understand why cake is "good" and "outstanding". In the USA we're rational, and that makes sense to me. However, why are biscuits "bad", "objectionable" or "egregious"? It would seem to me that if the country thought so poorly of biscuits they'd naturally go away. Personally, I like biscuits too; and, I especially like biscuits with gravy.  Why do people in the UK hate biscuits, and how did the saying "take the biscuit" come to be?  You can hear an example of


I've read some things about hashing the user's ID (DB Primary Key) and keeping it a secret, but I can't really see why.  I'm creating a REST API with which you can retrieve resources from a certain user. Depending on the logged in user, he/she will receive public resources and, if authorized, private resources.  Is it bad to do something like this:  .../resources?user_id=17  Thanks


Applying to Graduate School with misdemeanor charge?

I am currently a 3rd year undergraduate student at a large public university. I am a music performance major. I'm very interested in applying to graduate school for either performance or music technology, which I am receiving a minor in. My biggest concern is that at the end of my freshman year I received a misdemeanor possession of marijuana  charge. I paid the fine and have been done with it for a while. Unfortunately, I can feel it haunting me still and the closer and closer I get to graduation and applying to graduate school the more I feel it creeping up on me. In my state nothing is offered to "remove" it from your record such as some states have diversion class.   So my questions are:  Is this something I should be extremely concerned about?   Will a university or conservatory completely disregard my application because of this reason? Or will affect their decision on my acceptance?   I didn't lose my scholarship because of it (and actually I have received more money from the school of music after applying for other scholarships) but will I be ineligible in the future?   Anything helps.  Thanks.


My adoptive father got refused UK visitor visa

My friend adoptive father's application has been refused:  You have applied to visit the UK for 3 days to visit your son. You state your named son is currently in the UK as a student. You have submitted adoption papers in support of your relationship, however Home Office records show in your named son’s most recent application for a UK visa, his father’s name is different to yours. The supporting information provided does not demonstrate your UK contact is expecting you on this visit or provide further detail on your relationship. You state you intend to spend £1000 (179,993DZD at £1 = 179.99DZD –  as of 31/12/2020) on this visit out of your own expense. You have submitted a bank statement in your name with account number ending 8886 with a balance of 32,661.73DZD (£181.46). I note deposits supporting a monthly pension income, however given the funds evidenced available I am not satisfied you have sufficient disposable funds to cover the costs of this visit. Given the above I am therefore not satisfied you have demonstrated that your circumstances are as declared or are as such that you intend to leave the UK at the end of your visit. This also leads me to further doubt your intentions in travelling to the UK. I am also not satisfied that you have sufficient funds to cover all reasonable costs in relation to your visit without accessing public funds. Your application for a visit visa has therefore been refused under paragraphs V4.2 (a), (c) & (e).  I now will write an explanation letter to explain that back to our home country we don't grant the family name to the adopted child due to some religious and traditional reasons. please can you give more ideas or solutions ?? and regarding the bank statement, he has created a bank letter and has put all his savings. Is this a good idea ?? Thank you so much


Do steeds summoned with Find Greater Steed have other options than the usual control rules during mounted combat?

During mounted combat, I understand there are two possible options:    You can control your mount, in which case your mount cannot make an attack, or You can opt to leave it independent (and controlled by the DM) in which case it can attack, but may do things you don't expect.   The text of find greater steed contains this excerpt:       Your steed serves you as a mount, both in combat and out, and you have an instinctive bond with it that allows you to fight as a seamless unit.   Does this phrase imply that there is some special way to control the steed beyond the above two normal options for mounts? Are steeds summoned in this way special in regards to the control rules, or is that just flavor text? It seems to me that an independent mount which can take actions that I cannot predict is not fighting as a seamless unit with me. Am I misunderstanding something?   The question  certainly provides an answer, but it's not satisfying since it assumes that the mount has to use one of the two above options and does not consider that there may be alternatives.


I using the pyqt5 line edit box as my input boxes. I want to take the input from the input boxes and convert it from string to hex to send to serial capture. For example I did this but I didn't succeed: a = hex(self.slave1.text()) b = hex(self.function1.text()) c = hex(self.address_msb1.text()) d = hex(self.address_lsb1.text()) e = hex(self.register_msb1.text()) f = hex(self.register_lsb1.text()) g = hex(self.crc_lsb1.text()) h = hex(self.crc_msb1.text()) hexConvert = [a,b,c,d,e,f,g,h]  Imagine: a = "01" b = "03" c = "00" d = "0A" e = "00" f = "04" g = "64" h = "0B"  And my expected output is [0x01, 0x03, 0x00, 0x0A, 0x04, 0x64, 0x0B]


How to reproject 500 CSV files efficiently and easily using QGIS?

I know, my question is similar to some old ones on this site.  I've a lot of CSV files (geo coordinates) to import to qgis (and then to convert them), and the usual way is not the best way to do it (too long).  I have almost 500 CSV files (wgs84 coordinates) and this is what I want to do:   Import all CSV files at once into QGIS Project them Export them into CSV files (again) but with different coordinates (convertion to UTM33N)   I'm trying to understand how to use the python console but I'm not moving on :(  Can anyone explain to me how to achieve it step by step?


How do I fix a ASUS Eee PC to run Ubuntu 18.04 with "This kernel requires an x86-64 CPU, but only detected an i686 CPU"?

My son has an Eee PC and he tried to turn it into a Chromebook.  It did not work and the computer is stuck on trying to load chromium.  I asked an IT Tech at our school how to fix it. He suggested using Ubuntu. I downloaded Ubuntu 18.04.1 LTS and I tried to boot it from a USB drive and I received this message:  This kernel requires an x86-64 CPU, but only detected an i686 CPU   How do I fix it, so I can use the PC?  Do I need to do something different?


Are there clever ways to evaluate this infinite series?

Here is an interesting infinite series. It would be great to see a method to evaluate it, if possible. I know it converges to a little less than 11/40  $\displaystyle\sum_{k=1}^{\infty}\frac{1}{4^{k}+k!}$  I could not think of any good identities to start this.  Thanks a million to those who can show how to evaluate it.   Maybe even in general, $\displaystyle\sum_{k=1}^{\infty}\frac{1}{x^{k}+k!}$, where $x\geq 1$


I have a severe problem today: when I type ifconfig it does not show ip configuration on ubuntu 12.04. Can anyone help me on this?  Here is the result of ifconfig:  Command 'ifconfig' is available in '/sbin/ifconfig' The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. ifconfig: command not found


Connecting flight to Vilnius, LT via france ,Transit visa required?

Connecting flight to Vilnius, LT via france ,Is the Transit visa required to Hop in france for 10 hours ?


I've got error message at my terminal. Whenever i am using sudo command, my terminal is showing:   no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory


Husband and wife publishing together - Problem for tenure-track jobs?

My husband and I work in the same research area (of theoretical computer science). We were in the same PhD program and even had the same advisor. We are a great collaboration team, and really enjoy and are productive when we work together. In addition, neither of us have anyone else to collaborate with because no one in the department really works in quite the same area (not even our advisor - long story). As a result, nearly all of my papers are co-authored with my husband. My husband has a decent number of papers without me as a co-author because he is three years ahead of me in the program, so he has his papers from before I even started, and also has had more time for more papers since I have just completed the class-heavy portion of my PhD.   My husband has recently graduated and is a tenure-track professor at a good university. I would also like to be a professor one day. From what I've seen in my field, spousal hiring seems pretty common. So we figured that we would both apply to a bunch of universities and would end up being hired as a pair. However, we have been worried that us both being in the same research area and publishing together is going to cause difficulties being hired. Since I have a few more years left in the program, my plan is to to have two or three good publications that don't include my husband (I already have one single author paper in a good place).  So my question is, how difficult will it be for us to be hired together into the same department if we have so many papers co-authored together? Will publishing a few good papers without my husband improve the situation to the point that we have a reasonable chance of being hired together, even though a significant amount of my early work was with my husband?  Additional Note: Even just in my department, several of the new hires in the last 3 or 4 years have been husband and wife pairs where they were both hired into the computer science department. So it seems that this practice is currently very common in CS. I have not seen any that shared a research area, though.   Edit: This question is very different from the one asked at   . That question is primarily about whether it is strange to publish with a spouse at all (and the spouse in question is not in academia), while my question is specifically about my husband and I getting hired together in the same department if we have co-authored a significant amount of our work together. The answers provided there don't really help with this question.   Edit: I have edited down the four questions to just a single main question.


I was trying to create a animated effect on the branch of the "Sapling tree gen" but couldn't animate the respective.So,I would like to know is there a way to animate just the "branch growth" property.If not then can you please give me an idea of how to accomplish the respective? Thanks in advance.


On my Ubuntu server 18.04 I have next error:  sudo service apparmor status ● apparmor.service - AppArmor initialization    Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)    Active: failed (Result: exit-code) since Mon 2019-06-10 07:37:20 CEST; 11s ago      Docs: man:apparmor(7)            http://wiki.apparmor.net/   Process: 22057 ExecStart=/etc/init.d/apparmor start (code=exited, status=123)  Main PID: 22057 (code=exited, status=123)  Jun 10 07:37:20 kacn systemd[1]: Starting AppArmor initialization... Jun 10 07:37:20 kacn apparmor[22057]:  * Starting AppArmor profiles Jun 10 07:37:20 kacn apparmor[22057]: AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql' Jun 10 07:37:20 kacn apparmor[22057]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd Jun 10 07:37:20 kacn apparmor[22057]: AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql' Jun 10 07:37:20 kacn apparmor[22057]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd Jun 10 07:37:20 kacn apparmor[22057]:    ...fail! Jun 10 07:37:20 kacn systemd[1]: apparmor.service: Main process exited, code=exited, status=123/n/a Jun 10 07:37:20 kacn systemd[1]: apparmor.service: Failed with result 'exit-code'. Jun 10 07:37:20 kacn systemd[1]: Failed to start AppArmor initialization.   After reading (some old stuff), it should be a bug, but it is strange, that it isn't solved yet? I have tried with: sudo apt install apparmor.easyprof but it doesn't help.


Why is Spock's mother alive in Star Trek IV?

I just watch Star Trek IV and I noticed that Spock was talking to his mother. This baffled me greatly since when I watched the latest Star Trek movie (based on a very young Kirk and Spock) the planet he came from was destroyed, taking with it a very young mother of Spock.   Is there a reason for this or is it a movie mistake?


I have form with few buttons and I want to know what button is under cursor now.  P.S. Maybe it's duplicate, but I can't find answer to this question.


How can we install software of format tar.xz?

Recently i downloaded a file from github and found it to be of tar.xz format .After extracting this file i was clueless on what was to be done further. I am a newbie and am not familiar to this files . Can anyone please suggest on how to install from files of format tar.xz .


Intuition behind why order of a subgroup divides order of a group.

I'm trying to get some intuition on why order of a subgroup divides order of a group. I know Lagrange's Theorem and its proof (every element of a group is an element of some coest, cosets are disjoint and each one has the same number of elements as subgroup), but the proof is more like magic than any intuition.  So I've been trying to prove this fact (divisibility of order) without Lagrange theorem. Let's say we take a group $H$ and try to extend it, by taking $g \notin H$ and considering group $G$ generated by set $H \cup {g}$. Such a group would have to contain $g^{-1}$ and every word over alphabet $\{g, g^{-1}, H\}$. Is it possible to prove intuitively that such construct is of size $|H|\cdot n$ for some $n \in \mathbb{N}$? This would essentially prove that any group $G$ containing $H$ has order divisible by $|H$|, because we would be able to take $g \in G$ such that $g \notin H$, extend $H$ by it just like above and continue this process until $H$ is extended into $G$.


Updating Location of Point Features using XY Fields?

I have changed the coordinates of couple points in the attribute table and I want to update the location. I have found the script that is working in field calculator.   Does anybody know how to write it using a Python script in ArcGIS Desktop (not in Field Calculator)?  def XYsetVALUE( shape, X_value, Y_value):    point = shape.getPart(0)    point.X = X_value    point.Y = Y_value    return point  __esri_field_calculator_splitter__ XYsetVALUE ( !SHAPE!, !X_COORD!, !Y_COORD! )   COORDINATE FIELD TYPE ------ STRING !!!!


Gnome login screen "loops" after computer has slept

Using Ubuntu 16.04 with GNOME (which I added later, the original version has Unity), with a Dell Inspiron 15-3531.   After I turn off my computer (with the power button), or make it sleep (shut the lid), at the GNOME login screen which shows the profiles, I click mine, then enter my password. For about 2 seconds it seems like the computer will unlock as usual, but it then loops back to the gray screen with the profiles. It still responds to an extent, as it tells me if my password is incorrect.   I've only been able to temporarily fix it by a full shutdown, or by removing the battery for a minute. Granted, my laptop is old so it could just be that.   Edit: my .Xauthority file is not owned by root but by my user. Creating a new profile does work, however I would not necessarily want to use this new profile as my main. Any suggestions on how to change that? Renaming .Xauthority on my main profile returns "invalid user".