How can I run a script that starts before my login screen?

I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should execute this command "in a script that starts with your X session":  xinput set-int-prop "3M 3M USB Touchscreen - EX II" "Evdev Axis Calibration" 32 14410 2146 14574 2115  So I tried ~/.xinitrc, ~/.xsession and ~/.xsessionrc, all of which did not exist. So I created them and the exact content was this command. The first two files made my logins fail (after I login, I fall back to the login screen).  With the last file, the calibration was functional, but only after logging in...  I need that command to run before the login dialog shows up. I thought of adding this command to the end of /etc/X11/xinit/xinitrc with no result (nothing changed). Also, I tried to add it to the end of /etc/X11/Xsession.d/40x11-common_xsessionrc (after inspecting some of the files), but the result was exactly the same as adding it to ~/.xsessionrc.  How can I make this command run before the login screen shows (is this before the window manager starts, or before the X session starts)?  (I am running Kubuntu with the default window manager, if that matters)  UPDATE As I am using Kubuntu, my display manager is kdm. As the accepted answer suggests, I edited the file /etc/kde4/kdm/Xsetup, and as mentioned  I added the command before the command that is there by default. And it works like a charm :)


Question related to future tense: "shall" vs "will"

What is the difference between these sentences?     Tell me, doctor, shall I lose weight?      Tell me, doctor, will I lose weight?


Can a user gain more than 2 rep for editing?

I edited  and noticed my reputation change from 1466 to 1470 (i.e +4). I went to check my reputation changes and found:        Note: My reputation later went down from 1470 to 1468, so it appears the system realized it made a mistake and corrected my reputation, but hasn't gotten rid of the second revision or the history event.  My  still shows 1 suggested edit with 2 revisions.


I recently used @Harsh 's  to successfully create an Ubuntu 18.04 live USB with persistence greater than 4 GB. The default user is Ubuntu and the default password is , that is to say blank (just hit enter).   Can I run the sudo passwd Ubuntu command and add an actual password to this live USB system? I want a password required on boot and on the lock screen as well. I don't know what issues this would present, if any. I do understand somebody could still mount my live USB system on another Linux machine, and have access to my files. My password requirement is a very low level of defense, that I'm comfortable with, and want.  Alternatively, could I simply delete the Ubuntu user, and add myself jason as the only user, create a password for jason, and be done with it?


I want to search for string that have  [RT]"anything"D  which mean first character can either be R or T  and the next can be anything until D is appear what should I use is it "egrep"?


tar archive folder size is more than the original

when i am creating TAR of a directory which contents files,  the TAR archive folder size is more than the original folder size.  why does it so? checking file size by using ls -ltr directoryname


WARNING: missing /lib/modules/4.4.0-59-generic - during apt-get upgrade - how to fix?

followed by:  Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.4.0-59-generic: No such file or directory depmod: FATAL: could not search modules: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_McREc1/lib/modules/4.4.0-59-generic/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_McREc1/lib/modules/4.4.0-59-generic/modules.builtin: No such file or directory   /var/tmp/mkinitramfs_McREc1/lib/modules is certainly missing. Can I recreate it?  I was doing an apt-get upgrade, which completed with those warnings. The referenced duplicate applies to an update-initramfs which I was not doing (intentionally).  Perhaps this is implied by apt-get upgrade?  Subsequent apt-get upgrade completes without those warnings.  I'm just concerned that the firmware was not updated but other modules were.


What is a seamless cross-cutting transition called?

Although I don't have a clear example, I'm looking for a transition which is somehow a mix of:   Cross-cutting: where two scenes in different locations happen at the same time Graphic match : where "two successive shots joined so as to create a strong similarity of compositional elements (e.g., color, shape)"   Basically, we have two scenes which happen at the same time and the transitions back and forth between the two scenes are done through similar looking elements of each scene (for example, between a barrel rolling and a vehicle wheel). I can't manage to find the actual name of such transitions.


Possible Duplicate:          Using \input{filename}, I can input a file canned "filename.tex". I have a directory containing all of the files I want to include. How can I create a for loop, which inputs all of those files?   The contents of the directory sometimes changes (so I do not want to manually specify all of the files). The files are numbered (e.g. file01.tex, file02.tex), so the loop should have no difficulty inputing them in the correct order. Other code will be placed within the for loop (before and after the input command), so I do not want to simply list all of the files at once (e.g. \input{file01,file02}).


For a function $f$ I know that: $$\int{f'(r)dr}=f(r)$$ where $f(r)$ is known. knowing the result of this integral how can i calculate $$\int{(f'(r))^2dr}$$ Is there any relation between these integrals?


template class throwing link error in c++

I am experiencing the below following linker error while calling my template class. Error LNK2019 unresolved external symbol "public: __thiscall ab::ab(void)" (??0?$ab@H@@QAE@XZ) referenced in function _main ConsoleApplication1 Error LNK2019 unresolved external symbol "public: int __thiscall ab::push(int const &)" (?push@?$ab@H@@QAEHABH@Z) referenced in function _main   ConsoleApplication1 I am using the below source code, first.h  #ifndef FIRST_H #define FIRST_H  template <class h> class ab {   public:      ab();       int push(const h&);      };  #endif    first.cpp  #include "stdafx.h" #include "first.h" #include <iostream> using namespace std;  template <class h> ab<h>::ab() { }   template <class h>  int ab<h>::push(const h& item)  {      return 0;  }   main.cpp  #include <iostream> #include "first.h" using namespace std;  int main() {      typedef ab<int> aaa;   aaa aa;//linker error   aa.push(10);//linker error   getchar();       return 0;  }   Please assist me on this


foreach (var name in parent.names) {     if name.lastname == null)     {         Violated = true;         this.message = "lastname reqd";     }      if (!Violated)     {         Violated = !(name.firstname == null) ? false : true;         if (ruleViolated)             this.message = "firstname reqd";     } }   Whenever violated is true, I want to get out of the foreach loop immediately. How do I do it?


Why can't I see my layout view when in Shading mode?

I want to apply a texture to my object, but my window to view my object has disappeared when in shading mode. It has worked in the past, I'm not sure how to get the view back up.


What are the applications of the ## preprocessor operator and gotchas to consider?

As mentioned in many of my previous questions, I'm working through K&R, and am currently into the preprocessor. One of the more interesting things — something I never knew before from any of my prior attempts to learn C — is the ## preprocessor operator. According to K&R:     The preprocessor operator ##   provides a way to concatenate actual   arguments during macro expansion. If a   parameter in the replacement text is   adjacent to a ##, the parameter is   replaced by the actual argument, the   ## and surrounding white space are   removed, and the result is re-scanned.   For example, the macro paste   concatenates its two arguments:      #define  paste(front, back)  front ## back      so paste(name, 1) creates the token   name1.   How and why would someone use this in the real world? What are practical examples of its use, and are there gotchas to consider?


How to implement subclassable 2-d array in Java

I'm practicing Java by making a program that can play some online puzzle games such as minesweeper, chess, etc.  Since the games are all played on an orthogonal grid, I found the methods common to each game and tossed them in a class that has a 2-d array of elements I named Orthogonals.  My first intuition was to let the squares of the board be generically typed:  public abstract class GridBoard <E extends Orthogonal>{     private final E[][] board;     public final int width;     public final int height;      public GridBoard(int width, int height){         this.width=width;         this.height=height;         board= new E[][]();     }      /*...*/ }   Unfortunately, new E[][]() isn't possible for some important reasons.  I would be happy using a constructor like public GridBoard(E[][] board), but I want Orthogonal to have methods like orthogonal.getNeighbor(NORTH), which require them to know which (final) board they're a part of.  From what I can tell, there are a few different ways of getting around this limitation, but none of them feel like they simplify the design.  My goal is to let MinesweeperBoards work with a MineSquare[][], but ChessBoards have ChessSquare[][], for example.   shows how an array can be created, but the class of a generic can't be obtained dynamically.  A class would have to be passed into the constructor, which adds needless complexity for the implementer.   Some answers to questions about similar patterns suggest letting the subclass of GameBoard fill the array with their own type of squares, and then casting each time the board is read from.  Is this an acceptable practice?  When are casting and instanceof considered acceptable design?  board doesn't need to be defined in the abstract class, and all of the methods in Orthogonal can rely on the concrete implementations.  But that sounds like a great way to put repetitive code into every different game.  I could remove the Orthogonal class entirely and put the logic for navigating the board into GridBoard.  But if I do that, there won't be as clean a way to write something like return square.neighbors().filter(MineSquare::isBomb).count().    I could change the class definition to GridBoard <E> and make Orthogonals a class that get created as needed and read Es from the board.  This seems like the most reasonable solution, but I'm very curious about the best way to solve the array of subclasses problem if that wasn't an option.  Is there a perk or drawback that I've overlooked?


What is the reason 1/4 coefficient in the tensor multiplication of the electromagnetic field strength? $$\mathscr{L} = -\, \frac{1}{4} \, F_{\mu \nu} \, F^{\mu \nu}. \tag{1}$$


How is not paying off mortgage better in normal circumstances?

I have been in USA for 10 years and most people I know have 30 years mortgage which they do not prefer to pay-off even though they have cash hoping to make money in stock market.  Now, say mortgage rate is 5% and s&p 500 returns 9%(which has been a historical average for last 100 years.).At this rate, some one decides to invest the extra cash that they have in stock instead of paying off the mortgage is basically saying I am going to make those (9-5 =4%) in stock market.   That does not make sense considering that when you use that money to pay-off mortgage then you are making a guaranteed return of 5%(by not letting bank make that money from you). When you invest in stock market instead of paying-off your mortgage you are only making 4-5%(remember its not 9% its 9-5= 4%). Also, that is ONLY IF you make money. Stock market can be volatile(Remember 2008?). Also, you pay 15% long-term capital gain tax on it if you make money on that investment.  OK. so I am from India where people normally buy properties for cash and I have aslo heard rumors about some Chinesse real-estate investors buying american properties for 100% cash.  Which means there are significant number of people in the world who do believe that paying interest to the bank for 30 years may not be best of the ideas.     Why do people choose a may-be 5% as oppose to a guaranteed 5% when   they choose to invest instead of paying off mortgage?


Is there a function in c++ that does the same that the split function in C?  I wrote this code  std::string str[] =line.split(";");   But a call to split is not recognized.


Why does a larger mass in a pendulum have the same period as a lighter mass? i know it has something to do with gravity and length but how can this be explained in depth? like for example the galileo's experiment where both masses were nearly the same but the lighter mass was slower (air resistance)


Problem getting dimensions of string array in c

I have created a split string function and I am getting the desired output. However upon verification in main I can't seem to determine the size of my first dimension to loop over each word in it. here is my code: #include <stdio.h> #include <stdlib.h> #include <string.h>  char **split(char *str) {     int str_length = 0;     int i = 0;     int separator_count = 0;     while (str[i] != '\0') {         if (str[i] == ' ') {             separator_count++;         }         i++;     }      char **word_array;      word_array = malloc((separator_count + 2) * sizeof(char *));        int word_len = 0;     int separator_index = 0;     int b = 0;                                     //to iterate over "str"        for (int a = 0; a < (separator_count + 2); a++) {         word_len = 0;         while (str_length < strlen(str) + 1) {             str_length++;              if (str[b] == ' ' || str[b] == '\0') {                 separator_index = b;                 word_array[a] = malloc(word_len * sizeof(char));                 int word_depth = 0;                 for (int c = (separator_index - word_len); c < separator_index; c++) {                     chrctr = str[c];                     word_array[a][word_depth] = str[c];                     word_depth++;                 }                 word_array[a][word_len] = '\0';         //terminate found and stored word with null charachter                 word_len = 0;                           //reset word length counter to 0                 b++;                                    //skip to next charachter                 break;                                  // break to go to next index of word_array             }             word_len++;             b++;         }     }     word_array[separator_count + 2] = NULL;     return word_array; }  int main() {     char s[] = "A complete toolkit for building search into your product.";  //test string     char **ss = split(s);     for (int i = 0; i < sizeof(ss); i++) {        //here is the problem, and doing sizeof(ss)/sizeof(ss[0])=1 !!         for (int j = 0; j < strlen (ss[i]); j++) {             printf("%c", ss[i][j]);         }         printf ("\n");     } }  I want to verify my output bat can't seem to get the size of the first dimension of my string array I have seen that sizeof(array)/sizeof(array[0]) works, it is not for me it yields 1. and if I replace it with the number of words it works just fine.


iMessage has stopped working on MacBook Pro

I have a 15-inch macbook pro that is mid-2012. The latest version of Mavericks is when the problem started, but it wasn't after the update to it. Just happened one day.  My problem started randomly one day when I tried using iMessage on my mac and all the contacts had turned red. So every time I try to send out a message from my mac, it would immediately say "not delivered."  iMessage works on my iPhone, the only problem is my macbook pro.  I have tried deleting the com.apple.ids.madrid file and that didn't work. I also tried removing my apple ID information from my phone, turning off iMessage on both of the devices, and placing my iPhone 5 in airplane mode for several minutes before turning it on and re-logging in. I can't figure out what the problem is.  I've made sure I'm logged in to my Apple ID, it's nothing like that. I've also tried creating a separate Apple ID just for the purpose of iMessage, but that did no good either.  Please help, it's been weeks and it has become very inconvenient!


How to plot a surface from a set of data?


Reputation shown for meta sites in site list dropdown is incorrect

I noticed that the reputation shown for meta sites in the site list dropdown differs rather greatly from the main site reputation:    For example, there's a gap of ~2k on AU and AU meta (~1.5%), ~600 on U&L (~1.7%), and so on - the gap decreasing with total rep.  The differences are too large to be accounted for by recent changes in rep (~2k is my rep change on AU for this quarter so far), so simple caching is unlikely to be the cause.  Oddly, in meta sites, the rep shown in the top bar is correct (the screenshot above is taken from AU Meta), as is the rep in the user profile page, or that shown in posts by the user.  This screenshot was taken on Safari on macOS High Sierra, but the same thing was seen on Chrome on iOS and on Android.


1) How can I download Ubuntu for tablet? 2) How can I install and replace it with my android OS and install it on my tablet?


Partially duplicated history when setting PS1 in .bash_profile

When I set PS1 variable in ~/.bash_profile, it worked as configured. However, the history is somehow messed up.  When I press Arrow Up or Ctrl+P to view commands I typed, it starts to duplicate partially at some points. The scenario is displayed below(pay attention to cd /Co which is  the duplicated part):    Although visually duplicated, when press enter I still get the correct result in history commands.  Here's my system information:   OS: Mac OS X 10.9.4 Terminal: system default terminal, iTerm 2   I set PS1 in my .bash_profile like this:  PS1='${YELLOW}\u${WHITE} in ${GREEN}\w${WHITE}${YELLOW}`__git_ps1 " on  %s"`${WHITE}\r\n${NORMAL}$ '


I cant figure out this line ...  public StockTickerHub() : this(StockTicker.Instance) { }   It looked a bit like inheriting from a base class but I havent seen this used like this before.  using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Hubs;  namespace SignalR.StockTicker {     [HubName("stockTickerMini")]     public class StockTickerHub : Hub     {         private readonly StockTicker _stockTicker;          public StockTickerHub() : this(StockTicker.Instance) { }          public StockTickerHub(StockTicker stockTicker)         {             _stockTicker = stockTicker;         }          public IEnumerable<Stock> GetAllStocks()         {             return _stockTicker.GetAllStocks();         }     } }


If the events a, b is independent,  a c is independent, do you think (a, bc) is also independent?  Attemp: P(A, BC) is independent if P(A, BC) = P(A) P(BC). But is this same as P(ABC)?


Define $-S = \{-x \mid x \in S\}$ , prove $\sup(-S) = -\inf(S)$ and $\inf(-S) = - \sup(S)$, with $S$ is bounded both sides

Define $-S = \{-x \mid x \in S\}$ Prove $\sup(-S) = -\inf(S)$ and $\inf(-S) = - \sup(S)$, with $S$ bounded both sides  Can someone help me with this, i dont get this type of more "complex" inf and sup excersises, detailed explanation would be appreciated, thanks alot !


I want to get data from table in 5 member groups. How can I get nth five records( The nth group). I mean the records between (n-1)*5 and (n)*5.   I do not like to find my records in this below form, cause every time it runs 2 queries in my machine.  SELECT MAX(Salary) as 'Salary' from EmployeeDetails where Salary NOT IN ( SELECT TOP n-1 (SALARY) from EmployeeDetails ORDER BY Salary Desc )   Note: I am new in Oracle and just asking you to give me a hint about this and not asking a complete code.


Can did I launch process separate of main process? In bash script

I try launch project on server and send query to him:  similar to:  #!/bin/bash  java -jar patch/p-SNAPSHOR.jar curl -d localhost/go/param   the script launches p-SNAPSHOT.jar and stops - waits for a request. I can did him from another console, or remote. But in this case I need did that in next string.    How can I make it possible for run a project and send a request to it?


Run a script from every directory on ubuntu linux

I am new to Linux. On my Desktop, I have created the following script called trimmomatic  #!/bin/bash java -jar /home/aishah/software_library/Trimmomatic-0.36/trimmomatic-0.36.jar   When I open a terminal and do    $ cd Desktop   followed by    $ bash trimmomatic   the script works.  However, the script does not work if I run it starting from directories other than Desktop. For example, when I open a terminal and directly do   $ bash trimmomatic   it says   bash: trimmomatic: No such file or directory   What can I do to be able to run the script from any directory?  Please give me detailed instructions of all commands to type and where to type.


My question, specifically: why is the   not an SLR?


Why is displacement equal to the area of velocity-time graph?

why is the distance of a body equal to the area of its speed-time graph?  the general formula of speed(v) is  v=distance(s)÷time taken(t) so the formula of distance(s) should be s=v×t so if the speed-time graph of a body is a triangle, the distance covered by the body should be equal to twice of the area of the graph because area of a triangle is -  1/2×base×height where base=t and height =v so it becomes 1/2×t×v and the formula of "s" is v×t so if v×t is distance, 1/2×v×t should be equal to 1/2 of  the distance and not the distance?


I was reading about DNA supercoiling and stumbled upon the following:     DNAs derived from a given cellular source have a characteristic degree of supercoiling. Thus the DNA is strained.   In most instance the strain is a result of underwinding of  the DNA double helix in the closed circle.     Here the author was talking about closed circular DNA (ccDNA) which has 10.5 bp per turn in relaxed state. When in relaxed state the ccDNA has no supercoils. But when the two strands are overcoiled or undercoiled, strain develops and the helix coils upon itself.  My question is how is this strain developed? How dose it cause tangling of the double helix/ supercoiling?  P.S. I've class XII Physics background.


$\int_{0}^{+\infty} \frac{dx}{f(x)}$ converges if and only if $\int_{0}^{+\infty} \frac{x}{F(x)}dx$ converges

Suppose $f$ is positive and increasing on $[0, +\infty)$. Let $F(x) = \displaystyle\int_{0}^{x}f(t)dt$.  How do we show that $\displaystyle \int_{0}^{+\infty} \frac{dx}{f(x)}$ converges if and only if $\displaystyle\int_{0}^{+\infty} \frac{x}{F(x)}dx$ converges?  I was thinking of using the comparison test, but I can't really find a way to connect the two integrals.


This is a  about whether to outsource DNS resolution for ones own domains   I currently have my ISP providing DNS for my domain, but they impose limitations on adding records. Therefore, I am thinking about running my own DNS.  Do you prefer to host your own DNS, or is it better to have your ISP do this?  Are there alternatives which I can look into?


Difference in number of communities on main site

I assume the difference in the number of Stack Exchange sites/communities is a mistake... correct?


What is the expected value of this question?

There is a lottery system with 12 kinds of cards. Everyday I'm allowed to take one card from the system and the odds of taking each kind of cards is equal(1/12).The number of each kind of cards is unlimited. Once I collect all 12 kinds of cards I'll get a reward. So the question is how many days are expected to take to collect all kinds of cards?  Which tool should I use to solve this question?


Plural or single form of word in names of variables, classes

I am wondering which option is more correct when I want to call some class of objects: NotificationService or NotificationsService. Is there difference between them? If so, what is it?


My iPad didn't charge after a complete battery drain, so I tried the hairdryer trick and it worked, but after a few hours it unfortunately automatically turned off again. Is there a permanent fix for this or do I have to do the hairdryer trick every time?


Can't put bounty on own question (can't see the button with time left)

I recall that before the 2 days that need to elapse before a bounty can be assigned, there was a button for it, anyway. Can't see it now in . Am I going madly blind (or maybe blindly mad)?!


My getName() function is coded right but throws an NullPointerException

So I was trying to code a viewer class and then create a list which is based on these viewers as another Class called ViewerList.  Usually everything should work but somehow it doesn't let me use the methods "toLine()" and "getName()". If anyone here could help me it would be awesome.  As in title the only error-report i get is NullPointerException.  This is the Viewer class:  public class Viewer {  private int points = 0; private String name;  public Viewer(String name, int points) {     this.points = points;     this.name = name; }  public int getPoints() {     return points; }  public String toLine() {     String line = getName() + " " + getPoints();     return line; }  public void addPoint(int amount){     points += amount; }  public String getName(){     return name; }   This is the ViewerList class:  public class ViewerList {  private Viewer[] array; private int nextFreeSlot = 0; private int count = 0;  public ViewerList(int capacity){     array = new Viewer[capacity]; }  public void add(Viewer o){     if (nextFreeSlot == array.length) {         throw new IllegalStateException("Liste ist voll!");     }     array[nextFreeSlot] = o;     count++;     nextFreeSlot++; }  public Viewer[] getArray(){     return array; }  public Viewer get(int index) {     return array[index]; }  public int getCapacity() {     return array.length; }  public int getElementCount() {     return count; }  public void addPoints () {     if(array.length > 0){         for(Viewer v  : array){             v.addPoint(1);         }     } }  public int getPointsOf(String viewerName) {     int points = 0;     String vName = "";         for(Viewer v : array){                 vName = v.getName(); // The v.getName() method is an error here             if(viewerName.equals(vName)) {                     points = v.getPoints();             }          }      return points; }  public boolean contains(String name) {     boolean contains = false;         for(Viewer v : array){             if(name.equals(v.getName())){ // also here i get the NullPointerException                 contains = true;                 break;             }         }     return contains; }   }  Also if you need the stack trace then here it is:  java.lang.NullPointerException     at bot.PointList.getPointsOf(PointList.java:50)


At the moment I am storing some data into an output stream like so  std::ostringstream oss; std::string fileData;  for(int i = 0; i < 4; i++) {     oss << i;     fileData += oss.str(); }   now the output is this  1 1 2 1 2 3 1 2 3 4   How can I clear all the data inside my oss variable so this doesn't happen?   P.S. I know I could just declare a new outputstream every time but that seems quite extreme.


Why can't static methods be abstract in Java?

The question is in Java why can't I define an abstract static method? for example  abstract class foo {     abstract void bar( ); // <-- this is ok     abstract static void bar2(); //<-- this isn't why? }


I have just installed Ubuntu Linux 12.04 and it asks for a password initially, what is the password I need to use? I tried "root" and "toor" as in Backtrack but this is not correct.


Does anyone know what I am missing to vertically align a img inside a div?  I have some sass, though I can work with plain CSS too.  I thought text-align was sufficient ? But it isn't working. The margin and height are automatically set on the  so G know that is working.  .testdiv {   font-size: rem(12);   height: 80px;   img {     margin-left: 12px;     height: 16px;     width: 16px;     text-align: center;   } }   and some html


Installing Windows 8 alongside Ubuntu 13.04

I had Windows 8 installed on my laptop (64-bit) and when I installed ubuntu on it I made a huge mistake and removed windows 8 and every file with it. What done is done.. I've been running ubuntu 13.04 for a month now and I would like to install windows 8 again alongside ubuntu.  I want it to be a dual boot, so when I start my laptop I can choose between the two. Installing windows 8 will be legit from a website from my university, I can just download it for free.   How to do this??  (- Do I need to use a harddrive/cd to put Windows on?)  Thx in advance!


How to install "tzdata" noninteractively

I'm building a Docker image based on Ubuntu 18.04 and installing some packages that pull in tzdata package as a dependency.  Unfortunately during the installation it runs dpkg-reconfigure tzdata which in turn starts a dialog that asks for your continent and city. That obviously doesn't work in docker build ..., that build must be non-interactive and automated.  I can't figure out how to prevent it from asking for the timezone and for example pre-set GMT.  This is the output:  Setting up libnuma1:amd64 (2.0.11-2.1) ... Setting up tzdata (2018g-0ubuntu0.18.04) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Configuring tzdata ------------------  Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.    1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc   2. America     5. Arctic     8. Europe    11. SystemV   3. Antarctica  6. Asia       9. Indian    12. US Geographic area: _   And there is waits forever.  I'm not even sure which package pulls it in.   Can I somehow force the apt-get install -y to be non-interactive (apparently the -y doesn't do it) or somehow pre-set the timezone e.g. to UTC?  Thanks!


How to pay a traffic fine received in Norway?

I received a fine in Norway for exceeding the speed limit by 9 km (60 km / h). The fine is 225 euros. I wanted to pay on the spot but they did not accept.  They told me to pay it within 14 days. I'll be back in the country after 30 days. What to do? I did not get the picture of mw speeding: the police say they do not have the picture.  Is it fair not to show me the picture of me speeding? Is the fine valid without a speeding photo?  What happens if I pay late? What if I do not pay?  Thank you.


While searching for an alternative synonym for the adjective starving, I found the word ahungered and I was intrigued by the use of the prefix a in this case. I looked up the etymology of  . Edit: While I am aware that there are similar questions concerning this prefix, I would need an explanation for this particular word: When I first came across , I intuitively thought that here a- implies that the noun it describes was made hungry, as opposed to simply getting hungry. Is this intuition correct? Can the prefix acquire a grammatical meaning, if I can use this expression?


How to reveal a folder in explorer from terminal

I want to open corresponding folder in file explorer. I tried to get the command for that. For example, let's say my current terminal address is   dkp@DKP:~/Documents$   Now, i want to open Documents in file explorer, if there is any way or command to do so.  Reverse(and other) question :- I was also wondering if there is any short-cut key for right-key -> open in terminal.  Thanks, peace.


The topology on $\mathbb A^2$ is not the product topology

I'm trying to prove the Zariski topology on $\mathbb A^2$ is not the product topology on $\mathbb A^1\times \mathbb A^1$.  I'm looking for a counter-example based on the fact the closed subsets in $\mathbb A^1$ are the finite ones.  Thanks in advance


Use for loop to print values in an array using JavaScript

I am learning JavaScript and now I am trying to run the following codes in Node to display the values in an array:  let array = [1, 2, 3]; for (let a in array) {     console.log(a); }   I expect the above codes will print 1, 2 and 3  However, it prints 0, 1, 2.  Can anyone tell me what's going wrong in my code?


I just started taking survival analysis class and I'm stumped on this question.  Let $T_1,...,T_n$ random independent continuous variables, with hazard function of $h_1(t),...,h_n(t)$. $T=min(T_1,...,T_n)$. And we need to show that the hazard function of T is $\sum_j{h_j(t)} $  Any help or direction are welcome :)


How to switch workspace with mouse wheel in GNOME Shell

A system like the workspaces in Unity7 had an icon on the dock or something similar that give you the possibility of cycle through virtual desktops with mouse buttons or wheel.     For who is not familiar with Unity7 workspaces and virtual desktops,  to understand.  How can I do the same on GNOME Shell (17.10+)?


Suppose you have a set $\textit{S}$ with a generalized inequality $\preceq_k$.  Is it possible for such a set to have a $\textit{unique}$ minimal element that  is not a minimum element? I feel like it should be possible, but am struggling  to come up with an example.


Evaluate $1^3 + 2^3 + 3^3 + . . . + n^3.$  Can I get a hint? I'm really stuck and don't know how to break this problem down.


Do all updates, even kernel, take affect without rebooting

I use 11.04.  When I upgrade a package, it shows a message similar to this :    Unpacking replacement libkrb5support0 ...   Preparing to replace libgssrpc4 1.8.3+dfsg-5ubuntu2.2 (using .../libgssrpc4_1.8.3+dfsg-5ubuntu2.3_amd64.deb) ...         a kernel message:    Examining /etc/kernel/postinst.d.   run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic    * dkms: running auto installation service for kernel 2.6.38-13-generic----------------------------------------------     *       vboxhost (4.1.18)...                                                                                [ OK ]     run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic                                             Do all packages, even kernel upgrades, take place without a  need to reboot now?  If yes, how they do it? Is this true in all versions of Ubuntu?  Thank you~


Can't format internal (USB) drive because of Read-Only

I have a macbook (running MacOS Catalina) connected to a HP 3005pr 3.0 Port Replicator. This port replicator has a internal USB disk, I want to format this disk but am not able because it is Read-Only (see the diskutil below): /dev/disk2 (external, physical):    #:  TYPE NAME                SIZE.       IDENTIFIER 0:  FDisk_partition_scheme   *126.4 MB   disk2 1:  Windows_FAT_16 HP Dock    126.3 MB   disk2s1  When I type in 'diskutil info /dev/disk2s1' I get this info: Device Identifier:         disk2s1    Device Node:               /dev/disk2s1    Whole:                     No    Part of Whole:             disk2     Volume Name:               HP Dock    Mounted:                   No     Partition Type:            Windows_FAT_16    File System Personality:   MS-DOS FAT16    Type (Bundle):             msdos    Name (User Visible):       MS-DOS (FAT16)     OS Can Be Installed:       No    Media Type:                Generic    Protocol:                  USB    SMART Status:              Not Supported    Volume UUID:               6BD6C793-C86B-34D2-9BBC-1ACBD79E8FA0    Partition Offset:          32256 Bytes (63 512-Byte-Device-Blocks)     Disk Size:                 126.3 MB (126321152 Bytes) (exactly 246721 512-Byte-Units)    Device Block Size:         512 Bytes     Volume Total Space:        0 B (0 Bytes) (exactly 0 512-Byte-Units)    Volume Free Space:         0 B (0 Bytes) (exactly 0 512-Byte-Units)     Read-Only Media:           Yes    Read-Only Volume:          Not applicable (not mounted)     Device Location:           External    Removable Media:           Removable    Media Removal:             Software-Activated     Solid State:               Info not available  When i try to format this disk whit the command 'diskutil eraseDisk FAT32 HP-USB /dev/disk2' Started erase on disk2 Unmounting disk Creating the partition map Error: -69877: Couldn't open device  Any ideas howto switch off the Read-Only setting and format this disk?


Renaming multiple files at once, with the same extension

I'm currently in a situation, where I need to rename a bunch of files, inside different folders, with the same extension (SRT).  Currently, my directory "setup" is like this:  This is a folder (2000)    - This.is.a.folder.2000      - This.is.a.folder.2000.wmv      - This.is.a.folder.2000.txt      - This.is.a.folder.2000.srt  This is also a folder (2001)    - This.is.also.a.folder.2001      - This.is.also.a.folder.2001.wmv      - This.is.also.a.folder.2001.txt      - This.is.also.a.folder.2001.srt   And I need to rename the SRT files to be like so:  This is a folder (2000)    - This.is.a.folder.2000      - This.is.a.folder.2000.wmv      - This.is.a.folder.2000.txt      - This.is.a.folder.2000.en.srt  This is also a folder (2001)    - This.is.also.a.folder.2001      - This.is.also.a.folder.2001.wmv      - This.is.also.a.folder.2001.txt      - This.is.also.a.folder.2001.en.srt   Is there any way to go about this? I'm running an Ubuntu server, with only a terminal available.  If anyone can help me with this, I would be very grateful :).


What is the difference between "were" and "have been"?

What is the difference between "were" and "have been", and are these sentences gramatically correct?  1) some of the best known writers of detective fiction in the twentieth century were women. 2) some of the best known writers of detective fiction in the twentieth century have been women.


Consuming parameters received from apex:canvasApp in OAuth 2.0 authentication mode

I have created connected app that would like to be rendered over Canvas mode.  In Canvas configuration I have selected OAuth 2.0 as an authentication mode. I have created action linked to following APEX code :  <apex:page standardController="CustomObj__c" showHeader="true" >   <apex:canvasApp developerName="TestApp" parameters="{test:'param'}"/> </apex:page>   When I press on the link, OAuth finishes it's job properly, what I can not find are parameters that I expect to be send to my/connected app.   Parameters should be sent at the first call (when OAuth is initated) or at the end, when access_token and refresh_tone are sent or in some other moment ? I am expected it as and HTTP parameter.  What I am doing wrong ?


How can I delete all my direct messages at once in Twitter?

How do I delete all my Twitter direct messages in one go without having to click the delete button for each message?


Bug when reaching pending edit limit while doing review tasks

First of all, this is NOT a duplicate of .  Sometimes, I contribute to the community proposing some edits, and then I keep on contributing performing review tasks.  The bug I've seen is that the "pending edit limit" popup is NOT shown in case I'm in the review tasks UI.  To understand why the 'edit' menu seems broken, I open the regarded reviewed question in another tab, and I click on the same 'edit' menu, and here, in the usual Question UI, I see the popup explaining I have too much 'pending edit proposal'.


Is there a way to get a collection of all the Models in your Rails app?

Is there a way that you can get a collection of all of the Models in your Rails app?  Basically, can I do the likes of: -  Models.each do |model|   puts model.class.name end


Find the equation of a plane containing a point and passing through a line

Find the general form equation of a plane that contains the point $(2, -2, 1)$ and passes through a line $(x, y, z) = (1, 2, -3) + t(2, -3, 2)$.  I managed to use the fact that it contains a given point to write the equation of the plane as $A(x-2) + B(y+2) + C(z-1) = 0$ but got stuck there.


Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference?

mFirebaseInstance.getReference("app_title").addValueEventListener(new ValueEventListener() {     @Override     public void onDataChange(DataSnapshot dataSnapshot) {         Log.e(TAG, "App title updated");          String appTitle = dataSnapshot.getValue(String.class);         long s = dataSnapshot.child("daysOnWhichPresent").getValue(Long.class);          // update toolbar title          textGrid.setText(appTitle);     }      @Override     public void onCancelled(DatabaseError error) {         // Failed to read value         Log.e(TAG, "Failed to read app title value.", error.toException());     } });   java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference at omari.hamza.storyviewdemo.MainActivity$15.onDataChange(MainActivity.java:673) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)


win10x64 - access denied removing file? unable to resolve

I looked through -   but can't update that as i'm a newbie here.  tried a "take ownership" script i've added to the context menu which has worked in the past, no change.   tried unlocker and normally when that fails, 10Bit unlocker with forced mode delete works.  not this time though.  process explorer says the thumbs.db file (only file in this folder tree) is in use by system.  i've been able to take ownership via security tab in the past but this time around it's really weird.    under security on file properties it just says "you must have read permissions etc". had it before and no worries. go into advanced and on the permissions, auditing and effective access tabs i have the "continue" option but on clicking i just straight to the "permissions/effective access" tabs and both just say:  you do not have permission to view or edit ........  under owner i just see "unable to display current owner", click change and get the above message again.  at 1 point it did say i needed permission from, well me.  my username which i am signed in as.  normally i'd get the delete prompt on screen, force a chkdsk to kill off handles and hit delete as soon as it's done but i'm 3 days in to a 7 day video encode and don't want to waste that time.  i hate windows sometimes.  help?  --EDIT  thanks but the fix i saw on the other thread was to  disable "display file icons on thumbnails" in folder's view.  i never had this enabled though.  choosing to always show icons instead of thumbs worked but i then had to disable this as i want thumbnails, just no thumbs.db created.


Python - what is the best practice for waiting for a condition to be true before code executes? The script needs to be continuously running

What is the most efficient way to wait for a condition to be true before executing certain code?  For example I want to execute code only if a file is modified.  My code is within a 'white True:' loop.  I'm not sure if this is the best thing to do or if this is common practice because the 'while True:' loop is constantly looping and using up the cpu.  I can put a pause statement in there but I want to know what's the defacto way to do this? The script needs to be continuously running while waiting for the condition to be true.  while True:      modTime = os.path.getmtime('C:\\example1.xlsx')      if(modTime > curTime):          #execute code         #execute code         #execute code         curTime = modTime


Does a helicopter that simply hovers remain in the same spot on earth?

Ignoring statistical variation in wind, will a helicopter that only applies force perpendicular to a perfectly sphere earth remain in the exact same spot relative to the earth?  I am arguing with globe earthers who claim the helicopter will remain in the exact same spot because somehow the helicopter maintains the same angular velocity and thus increase its tangential speed to compensate for the longer distance it has to travel, while I claim the helicopter would slowly deflect away from it's original position due to   The helicopter loses angular momentum and air cannot perfectly conserve its angular momentum. There is a net force pushing the helicopter towards the equator if it isn't on the equator to begin with.   This is not a duplicate because I am asking for more in-depth info on the forces acting on the helicopter. Those links do not address the question at all.


A multiplicative property of the Euler totient function $\phi$

How can I show that if $\gcd(a,b)=d$, then  $$ \phi(ab)= {\phi(a) \phi(b) d \over\phi(d)} $$    I know I have to use the fact that  $$\phi(m)=  m \cdot\prod_{p|m} (1-\frac1p),$$  where the $p$ ranges over all the distinct primes of $m$.


Sage code to check independence of rational points on elliptic curve

Suppose I have three rational points $(x_1,y_1),(x_2,y_2),(x_3,y_3)$ on certain elliptic curve. Then they are linearly independent if and only if the determinant of matrix $(<P_i,P_j>)_{i,j}$ is non zero where $<\_,\_ >$ is Neron-Tate height pairing.   How to write a code in Sage or Pari to compute this determinant. Note that I don't want to write an equation of my elliptic curve in the code to compute rational points first. Rather I know my rational points and want to directly put rational points and compute the determinant.


Working code won't execute after .load() but will execute other code?

Could someone help me understand why this won't work? My button doesn't work after .load(). For context, my HTML is just a div (#box) with a scrollbar and two buttons, one to refresh (#load) and one to scroll bot (#scroll) $(document).ready(function() {       Ref();     });  function Ref() {       $('#load').click(function() {         $('#box').load('test.php #box', function(r, status){           if(status == "success"){             $('#scroll').click(function() {               $('#box').scrollTop($('#box')[0].scrollHeight);             });           }           else{             console.log("Error");           }         });       });     }  The tags are correct and my .load() function works but the code after that just stops working. However, this does work: function Ref() {       $('#load').click(function() {         $('#box').load('test.php #box', function(r, status){           if(status == "success"){             console.log("Success");           }           else{             console.log("Error");           }         });       });     }  On .load(), a success message is received in the log implying to me that it DOES load successfully, however once I put in my own scroll code it doesn't work and I don't receive any errors. I've tried to debug it with console.log() but I didn't receive anything useful and I'm still new with jQuery so I don't get what's going on with my original code because it functions correctly outside of .load() and documentations tell me this should work as intended as a callback function.


Ubuntu Server 18.04 Tried:  ~$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [78.1 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [161 kB] Fetched 927 kB in 1s (628 kB/s) Reading package lists... Done  :~$ sudo apt-get install krb5-kdc krb5-admin-server Reading package lists... Done Building dependency tree Reading state information... Done Package krb5-kdc is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'krb5-kdc' has no installation candidate E: Unable to locate package krb5-admin-server   Ubuntu documentation has:   sudo apt install krb5-kdc krb5-admin-server   Same result.  There was an old post about Ubuntu 14... update solve his problem, not mine.


What modern camera bodies can use Minolta Maxxum Lenses?

I have an old Minolta Maxxum, is there a camera DSLR body that will take all the lenses from the Maxxum available ?


There is this new UI design thing going on for a while, where the UI is made with wide variety of strong/retro colour palette, its a vector design ,and the whole design is "digital" and over simplified = no shadows, no details, pretty bold but very intelligent .  You can see it in many places and I am  trying to read more about this approach but I don't know its name ?  Examples :   google's general design approach,the simplicity and colours or these guys


Rewrite a Specific Line in Command Prompt?

I'm real new to Python, and I'm trying to learn it through coding a small pet game, kinda like Tamagotchis. I'm starting with just doing a text-only game. My issue that I can't figure out is that when I show the stats (age, hunger, etc), I can't figure out how to specifically change the stat numbers without writing a new line, but while keeping the stat calculation processes separate (right now their ranges are the same until I get the code working, but eventually they will have separate delay ranges). I've tried looking up methods online, but the end="\r" has just been getting rid of either the entire age line, or just the hunger line.  Here's the basic bit I have right now (it's about mantises so ages go L1, L2, etc). Again, I'm a beginner, so I may not understand an answer unless it's explained/shown detailed.  def prAge1():     age1 = "L1"     print ("Age:", age1)     while age1 == "L1":         for _ in range(1):             tdela1 = randint(5, 10)         sleep (tdela1)         age1 = 'L2'         print ("Age:", age1)  def prHung1():     hung1 = 50     print ("Hunger:", hung1)     while hung1 >= 0:         for _ in range(1):             tdelh1 = randint(5, 10)         sleep (tdelh1)         hung1 = hung1 - 5         print ("Hunger:", hung1)  if __name__=='__main__':     p1 = Process(target=prAge1)     p1.start()     p2 = Process(target=prHung1)     p2.start()   Thanks!


The triple integral:  $$\int_{0}^{1} \int_{0}^{1} \int_{0}^{1} \frac{dx dy dz}{(1+x^2+y^2+z^2)^2}=\frac{\pi^2}{32}$$ can be confirmed using Mathematica.   But how can one show it by hand? I provide two answers below: ,. Are there any other methods?    [Context added later by Jack:]   See also  calculation from Wolfram Alpha:            [Added later by OP:] The triple integral was fabricated by the method of the integral representation of  $1/p^2=\int_{0}^{\infty} t e^{pt} dt.$ See my first solution in the Answer below. The final result was confirmed numerically by Mathematica. More interestingly Mathematical gives this integral $I=\pi^2/12-A$ in analytic mode where A is Ahmed's Integral! which equals $5\pi^2/96$.


I was doing some software engineering and wanted to have a thread do something in the background to basically just waste CPU time for a certain test.  While I could have done something really boring like for(i < 10000000) { j = 2 * i }, I ended up having the program start with $1$, and then for a million steps choose a random real number $r$ in the interval $[0,R]$ (uniformly distributed) and multiply the result by $r$ at each step.   When $R = 2$, it converged to $0$. When $R = 3$, it exploded to infinity.    So of course, the question anyone with a modicum of curiosity would ask: for what $R$ do we have the transition. And then, I tried the first number between $2$ and $3$ that we would all think of, Euler's number $e$, and sure enough, this conjecture was right. Would love to see a proof of this.    Now when I should be working, I'm instead wondering about the behavior of this script.   Ironically, rather than wasting my CPUs time, I'm wasting my own time. But it's a beautiful phenomenon. I don't regret it. $\ddot\smile$


Why the program is not finding any email from the string?

The program should find all the emails from the string but it is returning nothing. my_str=""" Practice @Geeksforgeeksexpand_more Algorithmsexpand_more Data Structuresexpand_more Programming Languagesexpand_more Web Technologiesexpand_more Tutorial Libraryexpand_more Computer Science Subjectsexpand_more GATE 2021expand_more UGC NET / ISROexpand_more QUIZ Sectionexpand_more Puzzles Geeksforgeeks Initiativesexpand_more Contact Us Address: GeeksforGeeks 5th & 6th Floor, Royal Kapsons, A- 118, Sector- 136, Noida, Uttar Pradesh (201305)  For feedback and queries: feedback@geeksforgeeks.org  For course related queries: geeks.classes@geeksforgeeks.org For payment related issues: geeks.classes@geeksforgeeks.org For any issue in a purchased course : complaints@geeksforgeeks.org To contribute, please see the contribute   page"""  These lines of code should find all the emails- pattern=re.compile(r'.*[a-z]@[a-z].[a-z]') match=pattern.finditer(my_str) for matches in match:     print(matches)  Thank you.


Is there an overall view of your cities?

I have many cities on Civ5 cause I annexed them and they start to demand Luxury Resources for We love the king day. Is there any City overview on which you can see the items they want or progress?. I have checked the overviews (diplomatic,military,economic) but no info related to this.


How do I get ubuntu for my Android phone?

Can someone please suggest me on how can I replace my android phone os with Ubuntu?


What is the basis set that generate co-countable topology on real line? I know that Topology it self a basis. But can i form a basis which is subset of T and makes that as co countable topology?


Spaceship crew looking for newly discovered planet, with a vampire on board while Earth goes dark

This was by a writer who had also made books about a plague that was found by genetically engineered humans deep underwater. Later books in that series followed the women who discovered the plague through an apocalyptic USA in search of vengeance (?). In the spaceship story, they got their energy though some kind of quantum bridge from a station in close orbit to the Sun. The vampire character had a console where every indicator was a screaming face of some kind, because that was the easiest way to gather information for him. In the end it is (implied?) that Earth has been taken over by vampires.


If you only know the name of someone, is it OK to call him Mr. John or Ms. Jane?

If you have to send an email to someone acquaintance and you only know the first name, would you address him/her as Mr. John or Ms. Jane? The intention is to sound as formal as possible. So, no 'Hello John/Jane'


How to find the number $n_p$ of Sylow $p$-subgroups of $GL_n(\mathbb{F}_p)$? For example, in $GL_3(\mathbb{F}_p)$, $|GL_3(\mathbb{F}_p)|=(p^3-1)(p^3-p)(p^3-p^2) = p^3(p-1)^3(p+1)(p^2+p+1)$, we have the Heisenberg group $$ \begin{pmatrix} 1&x&y\\ 0&1&z\\ 0&0&1 \end{pmatrix} $$ as a Sylow $p$-subgroup. And its normalizer is at least the upper triangular matrices, which has order $p^3(p-1)^3$. So we now know $n_p\mid(p+1)(p^2+p+1)$. How to proceed from here to determine $n_p$?


Correctness of proof that the commutative operation * on a binary structure is a structural property

Here is what I have as a proof for now. Can you tell me where I need to edit it and or how it should be instead?  Let  and  be two arbitrary binary structures with an isomorphism f: S->T. Assume * is commutative.  Then we have that f(a*b)=f(a)*f(b) for all a, b in S Due to commutativity f(b*a)=f(b)*f(a)=f(a*b) From this we have proven that the operation is preserved.  Since f maps S bijectively to T the function is an isomorphic operation and therefore a structural property


lets say $\ Y $ distributed exponential with the following pdf: $$\ f_{\theta, \tau} = \theta \cdot e^{-\theta(y-\tau)}\mathbb I \{y \ge \tau\} , \theta > 0 $$ and I'm trying to find MLE when both $\ \theta, \tau $ are unknowns. If I did everything correctly then the log likelihood function is $$\ l(\theta, \tau ; y) = n\cdot ln(\theta) + \theta \cdot \tau \cdot n - \theta \sum y_i $$ derivative w.r.t $\ \theta $  is $$\ \frac{\partial l}{\partial \theta} = \frac{n}{\theta} + \tau \cdot n - \sum y_i  \Rightarrow \theta = \frac{n}{\sum y_i - \tau \cdot n}$$ and derivative w.r.t to $\ \tau $ is just $\ \frac{\partial l}{\partial \tau} = n  \Rightarrow n = 0 $ so I did something wrong here but can't figure out what ? Thanks.


What do you call a brand name that is used as a verb

What do you call a word used as a verb like:  To hoover instead of to vacuum. A kleenex instead of a facial tissue or paper handkerchief. etc.  Brand verbification? Is there a single word to describe it?  tia, Plumafina


I was wondering if there is a simpler way to find the last to digits of a power such as $3^{45}$. I reduced it modulo 100 to get the answer, which is 43. But I was curious if there was a simpler, or more eloquent way to get this result.  Here's my method:  Using the fact that $3^4=81\equiv -19 \pmod{100}$ and $19^5=2,476,099\equiv -1 \pmod{100}$  $$ 3^{45}\equiv 3(3^4)^{11}\equiv 3(-19)^{11}\equiv 3(-19)(19^5)^2\equiv 3(-19)(-1)^2 \equiv -57 \equiv 43 \pmod {100} $$  I just felt like this was sort of a messy way to find out that the last two digits are 43.


Blender only render one frame of animation

I have a 300 frame Eevee animation, but when rendering I only get multiples of the same frame. I have looked at similar posts on Stack Exchange, but they don't solve my problem. Animation works perfectly in viewport. I render using Ctrl + F12. Cloth physics is baked for the animated object. Blend file:  Render settings:  Frame that get rendered:


"Relationships went south" what does it mean? In this sentence:  Shane's wallpaper is blank since his latest relationships went south.


How do I figure out if my OS is Mac OS X 32 bit or 64 bit?

I am using a Mac for the first time and need to install Eclipse. How do I know if I am on a 32 bit or 64 bit computer? I am on a MacBook Pro.


Associating/Grouping a file with a folder in Windows so that they both are moved together

I saved an HTML web page using Google Chrome. An HTML file along with a folder containing the images was saved on my computer. Now when I move the HTML file to a different location or delete it, the folder moves along with it.  How is this association enforced?  I am seeing this behavior on Windows. Is it something specific to NTFS? Can it also be achieved on Linux?


What should be maximum and minimum length of persons User Name & Password?

I am wondering because I am trying to make sure that person have right amount of spaces for their user name.  User Name and Password are security measures and should not be easy to guess. I have fixed amount of characters to Passwords no shorter than 6 characters because most sites use 6-8 characters when create an account. Because of limitation of my progams database file I cannot have passwords longer than 20 characters. What about User Name field? Too short User Name would be too easy to guess, too long, might cause program errors (since maximum length of single line TextBox in .Net/C# is about 32767 characters).  What should be the maximum and minimum length of User Name and Password fields?


Removing the space of caption when using algorithm

I have something like this:  \usepackage{algorithm} \usepackage{algpseudocode}  ... \begin{document} \begin{algorithm}[H] \begin{algorithmic}[1] \Function {function}{a} \State a = a + 1 \EndFunction \end{algorithmic} \end{algorithm} \end{document}   I'm using [H] because I want to set the position of my code. But after doing that a space for caption appears and I don't want it and now there are to horizontal lines beafore my code. You can see what I mean in this picture:   How can I remove one of those lines?  Thanks!


How can I find my pet wolves that I told to sit?

I told my wolves to sit down and I accidentally forgot to tell them to stand up and I left them. Now I cannot find them, how do you get back to your wolves if they are lost?


How can I change the footnote line (thickness, length)

I am using pdflatex and just want to know how to change the footnote line (thickness, length).  Besides that: How can I set the distance between text-lines in the text.


How to find all possible xy=k passing through integer points in n*n square

I want to find all possible xy=n passing through integer points such that 1 ≤ x ≤ n, 1 ≤y ≤ n  For ex. Suppose n=4, then Xy= 12 is a valid solution (it passes through (3, 4), which are both integer) Xy=14 is not a solution, because there is no integer (a, b), where 1 ≤ a, b ≤ 4 such that ab=14. ,


Could I reject an accepted PhD admit after April 15?

I have already clicked on the acceptance of an admit(without funding). The deadline for response is Apr.15th, and I did not have any other options at that time. However, I just received a funding offer from a top University. I am wondering if I could reject the accepted admit. If yes, how to reject it very very politely? Will this affect credibility?


subsurf splits the mirrored model into two objects

I tried to subsurf this model that I mirrored but when I use subsurf it splits the model into two objects.  Before Subsurf:   After Subsurf:   Any help would be appreciated.


In my report I have a long url in my bibliography section. it is not formatted as the other references. I followed  and  articles for that. But I cannot solve my issue. I am using LyX  This is my reference url I have an issue with  . 2014. . [ONLINE] Available at: http://www.stat.purdue.edu/~doerge/BIOINFORM.D/FALL07/MarjoramTavareNRG2006.pdf. [Accessed 29 November 2014].   this is how it is shown in pdf    In my preamble I tried the answers in above articles. But I ended up with no luck.  This  is my preamble.  \usepackage{makeidx} \usepackage{multirow} \usepackage{multicol} \usepackage[dvipsnames,svgnames,table]{xcolor} \usepackage{epstopdf} \usepackage{ulem} \usepackage{hyperref} \author{Viraj Gamage} \title{}   \newenvironment{indentation}[3]{\par\setlength{\parindent}{#3} \setlength{\leftmargin}{#1}       \setlength{\rightmargin}{#2}% \advance\linewidth -\leftmargin       \advance\linewidth -\rightmargin% \advance\@totalleftmargin\leftmargin  \@setpar{{\@@par}}% \parshape 1\@totalleftmargin \linewidth\ignorespaces}{\par}%   % new LaTeX commands   \newcommand*{\titleGP}{\begingroup % Create the command for including the title page in the document \centering % Center all text \vspace*{\baselineskip} % White space at the top of the page  \rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal line \rule{\textwidth}{0.4pt}\\[\baselineskip] % Thin horizontal line  {\LARGE Information Technology Based Tools and Approaches \\ For \\[0.3\baselineskip]  ~Genetic Analysis}\\[0.2\baselineskip] % Title  \rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal line \rule{\textwidth}{1.6pt}\\[\baselineskip] % Thick horizontal line  \scshape % Small caps A LITERATURE REVIEW PRESENTED TO UNIVERSITY OF COLOMBO SCHOOL OF COMPUTING \\ % Tagline(s) or further description IN CANDIDACY FOR THE DEGREE OF BACHELOR IN COMPUTER SCIENCE \\[\baselineskip] % Tagline(s) or further description SCS 3017,  LITERATURE SURVEY\par % Location and year  \vspace*{2\baselineskip} % Whitespace between location/year and editors  COMPLETED by \\[\baselineskip] {\Large m.g.w. lakshitha \\ reg: no - 2011cs081 \\ index no - 11000813\par} % Editor list {\itshape University of Colombo School of Computing\par} % Editor affiliation  \vspace*{2\baselineskip}  SUPERVISED by \\[\baselineskip] {\Large Mrs. m. w. a. c. r. wijesinghe \\ BSc(Pdn), PGDip(Col), MSc(Col), MPhil(Col)\par} % Editor list  \vfill { REFERENCE STYLE : HARVARD \\ WORD COUNT : 5266\\ TOOLS USED : LyX, Mendeley \par}   \vspace*{2\baselineskip}  { december 10, 2014 \par}   \endgroup}   Can you please tell me how to solve this issue. And where to put any codes in preamble  Thank you!


The answer to my question might be obvious to you, but I have difficulty with it.   Which equations are correct:  $\sqrt{9} = 3$  $\sqrt{9} = \pm3$  $\sqrt{x^2} = |x|$  $\sqrt{x^2} = \pm x$  I'm confused. When it's right to take an absolute value? When do we have only one value and why? When two and why?   Thank you very much in advance for your help!


I see the following definition of cardinal number in notes:  An ordinal $\alpha$ is a cardinal number if $|\beta|<|\alpha|$ for all $\beta\in\alpha$.  Why $\omega+1$ and $\omega^2$ are not cardinal numbers?  For $\omega+1$, is it because $\omega\in\omega+1$ but $|\omega|=|\omega+1|$?


Show that: $\lim \limits_{n\to\infty}\frac{x_n-x_{n-1}}{n}=0 $

Here is an exercise:  Suppose that $\{x_n\}$ is a sequence such that $\lim \limits_{n\to\infty}(x_n-x_{n-2})=0$.  Show that:   $$\lim \limits_{n\to\infty}\frac{x_n-x_{n-1}}{n}=0 $$  Thanks.


Please add a spell checker to the Markdown editor

It would be nice to see a built-in spell checker into the main text-panel for posts. Every time I post here or Stack Overflow I quickly open up Gmail, paste my post there, and use its spell checker to make sure I didn't make any stupid mistakes. I know other services have these types of features, and it would be nice to see Stack Overflow have one as well.  Agree/disagree?  (BTW, I found two small mistakes for this short post.)  I know I made a comment about this on ChrisF's answer, but I thought that I should also mention it here in the question. I know there are many third-party tools to add spell checker functionality to Stack Overflow. But some (if not many) people out there do not have these tools. They are either at work (like me), or some other place where they using a machine that is not owned by them, or they aren't power users and just don't have these tools installed.  If Stack Exchange becomes used for other non-technical sites, then you will probably have to count on the fact that people are using  or something just as bad. That's why it would just be nice to have a built-in spelling tool. Again, it may not be worth it, but I think it would be interesting to discuss it at least.


How to show that a self-complementary graph must have $4k$ or $4k+1$ vertices

How do I prove that a self-complementary graph must have $4k$ or $4k+1$ vertices?


What can be done with a scanned passport image if given to the wrong people? Should I get a new passport?  I submitted my information to a third party non government company to do my e-visa however, on the official e-visa website it said that particular website was scam.


I am trying to animate a change in backgroundColor using jQuery on mouseover.  I have checked some example and I seem to have it right, it works with other properties like fontSize, but with backgroundColor I get and "Invalid Property" js error. The element I am working with is a div.  $(".usercontent").mouseover(function() {     $(this).animate({ backgroundColor: "olive" }, "slow"); });   Any ideas?


Hi I have the String array   String version[] = {"3.1.2","2.1.7","3.1.1","3.7.3","2.6.4","1.3.4.7"};   I want to find the latest version among these. Which approach will be good? It should print 3.7.3


So for christmas one year my younger sister got an iPhone 5s. But currently she had to replace the battery and she had to reset her iPhone to do so. She doesn't remember who set up all her iCloud and Apple ID information, so now we are stuck with a reset iPhone on the activation lock page. Someone please tell me how to fix this or if it even is fixable.


Hi so i just got internet a about a month ago and my net speed is 19MB/s, I have tested it on loads of sites they all say the same thing(19MB/s), but it wont use more than around 2MB/s i have tried downloading different ways, and with more than 1 download at a time and I still get capped at about 2MB/s. It affects everything like loading websites and playing games as well. So if I'm downloading (max 2MB/s) and I load up a web page, every thing slows down, the download speed slows and web sites take for ever to load up, what can it be that makes it thus, and speed test say's 19MB/s


increasing max connections on a single server (ubuntu)

I have a server with high cpu and ram, they are not getting hit hard.  I am trying to hit 4,000 concurrent connections.  I have done:  1) increase mysql max connections  2) update prefork settings in /etc/apache2/apache2.conf  <IfModule mpm_prefork_module>      StartServers 100     MinSpareServers 10     MaxSpareServers 10     ServerLimit 40000     MaxClients 40000     MaxRequestsPerChild 1000  </IfModule>   What other steps should can i take?


I have an assignment where I have to create a button, click it, then display a random picture based on a random result. However, when I try to create an if statement to display the random result I can't get the button to match to a string. For instance   if (button1 == "results"){ // display image }   Here is my code for the panel so far.      import java.awt.;     import javax.swing.;     import java.awt.event.*;  public class myJPanel6 extends JPanel implements ActionListener { myJButton b1,b2;     JLabel b3;  public myJPanel6() {        // setSize(260,260);             ImageIcon imageFred = new ImageIcon("images/fred.gif");         ImageIcon imageCar = new ImageIcon("images/Magnum.JPG");             ImageIcon imageMaldives = new ImageIcon("image/maldives.jpg");     setLayout(new GridLayout(1,1));   //=====================================     student st1 = new student("Michael", "Robinson", 20); //=====================================     b1 = new myJButton(st1.getName());             b1.addActionListener(this);      add(b1); //=====================================     b2 = new myJButton(st1.WhatIsUp());              b2.addActionListener(this);      add(b2);              if (st1.WhatIsUp() == "reading"){                 b2.setIcon(imageFred);             } else if (st1.WhatIsUp() == "talking") {                 b2.setIcon(imageCar);             } else if (st1.WhatIsUp() == "interacting") {                    b2.setIcon(imageMaldives);             }                //b3 = new JLabel(".....");           //  add(b3);      } public void actionPerformed(ActionEvent event)      {          Object obj = event.getSource(); //=====================================      if (obj == b1){{b2.setText(b2.getText());}     } else {     b2.setText(b2.getText());         } } }   The main problem that I am having is that the code only displays an image sometimes. Also I think a new result should be outputted every time the user clicks, but the code I have displays the same random result each time.  Thanks for any help.


We all know that $e$, by definition, is $\lim_{x\to \infty}(1+\frac{1}{x})^x$.  But $\lim_{x\to \infty}(a^\frac{1}{x} -\frac{1}{x}) =1$ for all a $$\\ \implies \lim_{x\to \infty}a^\frac{1}{x}=\lim_{x\to \infty }(1+\frac{1}{x})\\ \implies a=\lim_{x\to \infty} (1+\frac{1}{x})^x={e}$$  If this is correct, then $e$ can be any number, which is definitely not true.   Tell me which step is wrong.


Can I get turned around backwards in time?

On a surface embedded in Euclidian space, where the metric signature is all positive, it is possible for a particle traveling along a geodesic to encounter a curved bit and then get turned around so that it heads in the opposite direction.  Could there be a manifold that did the same turning-around trick, but in a timelike direction? Would this create particles for which increasing proper time corresponded to decreasing coordinate time?


No lower-case caligraphic or double fonts in LyX

I'm new to LaTeX and LyX in general, and my question might be an easy one.  I'm having problems in working with some of the mathematical fonts. The upper-case characters seem to work just fine, but when it comes to lower-case letters and numbers, I get either default-font letters/num1bers or random characters instead of the letters/numbers I try to print. For example:    I'm using the default settings in lyX, and haven't touched anything so far.  Help would be greatly appreciated. Thanks!  EDIT: Compiling the above document yields the following errors:   "Missing character: There is no b in font msbm10!" "Missing character: There is no a in font rsfs10!" Reiteration of the above errors where "b" and "a" are replaced by other characters.


I was reading an article that rotation instead of linear motion is absolute. Can anyone explain why? Shouldn't an observer (A) moving in a circle around a point in an object that rotates (with respect to another observer B) consider the object stationary? Or he would feel a force which would imply accelaration?


What's the equivalent to "typo" in handwritten texts?

"Typos" are acknowledged as "technical" errors, ones that obviously aren't caused by the writer's poor spelling. Although less frequent than in typing, they can also occur in handwritten texts, as a result of absent-mindedness or just an accidental stroke of the pen.   Since the text wasn't actually typed, it sounds funny to call them "typos". Is there a more fitting word, one that reflects the "accidental" nature of the error?


Using BibTeX keys containing parentheses with Biber

I am trying to move to using biblatex with Biber rather than BibTeX. unfortunately, nearly all of my BibTeX entries have keys that include colons and parentheses. like,   @BOOK{Chambers+Hastie:(92),   editor               = {Chambers, John M. and Hastie, Trevor J.},   year                 = 1992,   title                = {Statistical Models in S},   publisher            = {Wadsworth and Brooks/Cole Advanced Books and Software},   address              = {Pacific Grove, CA},   annote               = {tree,glm,splus}, }   this is something Biber apparently doesn't care for.  Is there a workaround that doesn't involve changing all my .bib files?


Does the Higgs field correspond to a "fifth" fundamental force?

I am pretty much a layman regarding particle physics. Reading popular accounts on the Higgs particle and the Higgs field, which supposedly explains (all?) the masses of the elementary particles by their interaction with it, I wondered whether this interaction can be considered as an additional (fifth) fundamental force.


Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, really compatible enough to just take of and run already written code for Microsoft's runtime?


Cosemisimple Hopf algebra and Krull-Schmidt

A cosemisimple Hopf algebra is one which is the sum of its cosimple sub-cobalgebras. Is it clear that a comodule of a cosemisimple Hopf algebra always decomposes into irreducible parts? Moreover, will this decomposition obey Krull-Schmidt, by which I mean will the type and multiplicity of the irreducible comodules appearing be the same in any decomposition.  I am sure that this should be the case but I can't see how to prove it. One thing that confuses me is the prospect of infinite multiplicity in the case of an infinite dimensional comodule.


I have issues with reading csv format like this:  "foo","bar foo, foo bar", foo, bar, far "bar", "foobar foo, foo" , bar, fobar, bar   Technically, both lines should have 5 fields accordingly with separator ,.  awk -F, '{print NF}' resolver.csv  6 6   This is where problem goes. AWK treats , as a separator between quotations marks, and provide non accurate results. Giving the separator like -F '","' makes things only worse.  awk -F, '{print $3}' test.csv   foo bar"  foo"    Any work around?


Ubuntu 20.04 brightness adjust not working

I am unable to adjust brightness levels through Gnome. I had the same issue with 18.04 but it was resolved there (honestly, I can't remember how).  lspci|grep VGA 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)  xrandr --output LVDS-1 --brightness 0.95 <-- this works through the terminal excerpt from /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"   Thank you in advance.


Unique Factorization Domain: Factorization

Let $R=\mathbb{Z}[\sqrt{-d}]$. I know that $R$ is not a UFD if $d>2$ is odd. We can also factorize $1+d=2.\frac{1+d}{2}=(1+i\sqrt{d})(1-i\sqrt{d})$. But how can we factorize when $d>2$ is even?


“Feel like” vs. “feel as though” vs. “feel that”

I hear a lot of people use “I feel like” + subject + verb, but I'm not sure whether it's grammatically correct. Someone once told me it was incorrect.  For example, if someone said, “I feel like I annoy people,” would it be considered grammatically correct or incorrect?  If it's incorrect, should “I feel as though” or “I feel that” be used?


Would I be scrutinized at the border for traveling to the US twice in a quick succession?

I am a British citizen visiting the USA in early August for a two week vacation with friends. After the holiday I'm returning to my home in the UK for three weeks. After that I will return to the USA and will be working for my British employer under the Visa Waiver Program for a period of 80-85 days.  I have read already that there is technically no problems with this under ESTA rules, but should I limit this working period to a shorter time frame (e.g. 70 or so days) so that it does not negatively affect the decision made by the POE officer? Ideally I would love to be over in the states for the near-full 85 day period.  Any advice or previous experiences anyone can offer?  Some clarifications: As confirmed by the immigration attorney, as I am employed by my UK employer, it will be regarded as a business trip, the important part being that I will be working officially as a consultant for my UK employer just overseas for the allotted 85 or so days


Is 'As per our discussion' and 'As per your instructions' wrong?

Is As per our discussion, ... and As per your instructions, ... wrong, and are they poor grammatical constructions?  As per our conversation, I will tender my resignation on Friday.  Per our conversation, I will tender my resignation on Friday.  Do I use Per or As per in these constructions, or is neither preferred? If neither, what are viable, concise substitutes?


Can non-abelian subgroups be found in abelian groups?

I am aware that abelian-subgroups can be found in non-abelian groups. All one must do is consider $gp(\{x\})$.   However, this had me wondering if the other way around was true. I couldn't find anything on the forum that asked this… so here's hoping someone could shed some insight.   If the answer is no, it is sort of interesting because, in a hand-wavey way, I interpret this as meaning that a non-abelian subgroup effectively "taints" the overarching group, stripping it of the ability to be abelian.   This makes me wonder why abelian subgroups do not taint non-abelian groups from being non-abelian. Why does the “abelian property” behave so sensitively while the “non-abelian property” does not?


Why (directly!) does every number divide 9, 99, 999, ... or 10, 100, 1000, ..., or their product?

A curiosity that's been bugging me. More precisely:     Given any integers $b\geq 1$ and $n\geq 2$, there exist integers $0\leq k, l\leq b-1$ such that $b$ divides $n^l(n^k - 1)$ exactly.   The question in the title is obviously the case when n = 10. This serves as a motivating example: if we take b = 7 and n = 10, then k = 6, l = 0 works (uniquely), and if we calculate $\dfrac{n^k - 1}{b}$, we see that it turns out to be 142857 - the repeating part of the decimal expansion of 1/7. A (very sketchy, but correct!) sketch proof, which I've included for completeness:   Notice that $\dfrac{1}{99\dots 9} = 0.00\dots 01\; 00\dots 01\; 00\dots 01\dots$. Notice that $1/7$ must have either a repeating or a terminating decimal expansion: just perform the long division, and at each stage you will get remainders of 0 (so it terminates) or 1, 2, ..., 6 (so some of these will cycle in some order). It turns out the decimal expansion is repeating, and the 'repeating part' is 142857. This has length (k=)6. $\dfrac{1}{10^6 - 1} = 0.000001\;000001\dots$, so $\dfrac{142857}{10^6 - 1} = 0.142857\;142857\dots = 1/7$, and so $7\times 142857 = 10^6 - 1$. And we can do the same thing with $\dfrac{1}{10\dots 0} = 0.00\dots 01$ and terminating decimals. And the same proof of course holds in my more general setting.   But this (using the long division algorithm after spotting an unwieldy decimal expansion) feels a little artificial to me, and the statement is sufficiently general that I'm sure there must be a direct proof that I'm missing. Of course, the $n^k$ part is easy, but the $n^k-1$ part has me a little stumped. My question is: is there a direct proof of the latter part?  Thanks!


Is 'I would rather...' without an infinitive immediately following it correct?

Consider:     I would rather the walls remain painted in a neutral tint.   Is this proper use of 'I would rather..', without an infinitive immediately following it?  EDIT  suggests that 'I would rather ...' is either followed by an infinitive or by an object (?) + past tense if you would want to include other people. But not the use I propose.


MineCraft freezes on Orcale Java but not openjdk

So when I updated from 13.04 to 14.04 LTS (I do a clean reinstall of the new ubuntu version) and did minecraft on the first time using orcale java. When I started to launcher it froze ubuntu up and needed a restart(it really annoying). But when I tryed openjdk problem solved. But I need orcale JVM to use flare hacked client. I tried it already on openJDK it just got me a blank screen when I use a hacked client even nodus. I have notice that if I close all of the programs that are running it works. But when a program starts automatically (usually background process) it will freeze and it usually half to restart the computer again(did I say it was annoying?) so yea please help btw linux is the new windows


$P,Q,R$ be subspaces of a vector space $V$ such that $V=P \cup Q \cup R$ , then must one of $P,Q,R$ be equal to $V$?

Let $P,Q,R$ be subspaces of a vector space $V$ such that $V=P \cup Q \cup R$ , then is it true that one of $P,Q,R$ must be equal to $V$ ? I know the result about subspaces that tells that if for subspaces $A,B$ , $A \cup B$ is also a subspace then $A \subseteq B$ or $B \subseteq A$ , but for this three union case I cannot make any headway , Please help . Thanks in advance


My textbook says:     All static magnetic fields are produced by moving electric charge.   Is this true? What about the magnetic field produced by a bar magnet?


Cannot send mails through fowarding mail

I am using a OSX with Server App who bring a Mail service that have Postfix and Dovecot.  Now i am unable to send mails in my mail server, i am getting this error:  EF5CBCF65F      992 Thu Nov  3 11:49:28  teste@X.pt (connect to remote.X.pt[<IP>]:25: Connection refused)                                         X@gmail.com   And all my mails are being stack as i have notice through mailq.  After trying telnet, i notice that i was only able to connect to localhost, 127.0.0.1 and remote.X.pt, was not able to be seen from outside. I have an Static IP that is not blocked (I already check from a huge list i just have 1 block).   In Postfix main.cf i have my interfaces to all:  inet_interfaces = all   Then i made a dig mx and i receive this:  <<>> DiG 9.8.3-P1 <<>> mx remote.X.pt ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11055 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;;remote.X.pt. IN MX ;; ANSWER SECTION: remote.X.pt. 10800 IN MX0 remote.X.pt. ;; AUTHORITY SECTION: remote.X.pt. 10800 IN NS remote.X.pt. ;; ADDITIONAL SECTION: remote.X.pt. 10800 IN A 192.168.1.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Nov  3 12:42:21 2016 ;; MSG SIZE  rcvd: 81   I already saw some fix's but till now no one have worked here, and i already add my server at DMZ just to see if was from the firewall, but it wasnt.   I am able to send mail from my local server without any outgoing mail, but if i use the same email on my mail server and my Mail app (client), it will goes to my ISP server without problem (right now i am getting an 550 error but at least i know that its there).   When i use another account just for forwarding mail purpose i receive that error of service. So how can i create an forwarding mail?   I have already search about it before but dont know how to set one, to use it to forward mails from local emails, to an external ISP mail server.   Any clue on how can i set and use a forwarding mail?  Sven thanks for the edit of my post i didnt notice!


I'm given the series $$\sum_{n=1}^\infty\frac{n+2}{n(n+1)2^{n+1}}$$  I've tried splitting up the fractions to use the telescoping effect, but no terms seem to cancel out. Can someone help me out?


Installing Ubuntu in Acer Aspire v17 nitro for better compatibility with nvidia card

I'm very tired of Nvidia drivers conflicting with windows and BSOD all the time (TDR_video_failure nvlddmkm.sys error). I'd like to know if Ubuntu gives such issues, and, if it will recognize my GPU (I cannot see in the list).  Anyway this is my laptop.   Intel® Core™ i7-4720HQ processor Quad-core 2.60 GHz 17.3" Full HD (1920 x 1080) 16:9 IPS NVIDIA® GeForce® GTX 860M with 4 GB Dedicated Memory 16 GB, DDR3L SDRAM 1 TB HDD, 256 GB SSD


Convert 2017-01-24T23:25:39 into datetime object

I have weird date format in logs: 2017-01-24T23:52:14  I am trying to convert this string into datetime Python object like this:  date_from_log = datetime.strptime('2017-01-24T23:52:14', '%Y-%m-%dT%I:%M:%S')  but I get:  ValueError: time data ' 2017-01-24T23:25:39 ' does not match format '%Y-%m-%dT%I:%M:%S'  What is wrong?


Is estapro.org a legitimate agent for ESTA applications?

I recently used this website to apply for an ESTA. Having submitted my details I realised that this was not the official ESTA site so I did not pay the 60 euro fee.  However I am concerned that the site was illegitimate and are going to use my information for fraud purposes.  Are they legit?


Are the words "merry", "marry" and "Mary" pronounced the same?

These three words sound exactly alike to me.  Example: "The merry man married Mary!"   Is there a different pronunciation between these three words? Does having an accent change the pronunciation?  Is it a personal preference on how to pronounce these words?


Setting Default picklist value on loading of Visualforce page

I have designed a VF page to create a new record in which I am trying to display the value of a pick-list field. I have set a default value for this pick-list field. When trying to create the record using the salesforce native page, the value with which pick-list loads is the one I set as default but when creating the same record using VF page, the pick-list loads with "--None--" as default value.  Can anyone suggest If this is salesforce related bug or Am I doing anything wrong ?


Possible to update Ubuntu 32-bit to 64-bit?

Can I update Ubuntu 15.04x32 to 15.04x64 or must it be a new/clean 64 bit install ?


Chain skipping under increased pedal torque

I read the related post, but my situation is a bit different.  Additional background - I installed new 105 shifters and derailleurs two years ago (~5000 miles) along with chain and cassette.  I also had a 53T chain ring put on in 2013.  All was good.  Had slight hang-up with slack shifting (to higher gears) on rear cogs this spring, so I replaced the cable and sheaths to the rear derailleur.  All was good again.  The bearings in my freewheel started making noise last week.  Which brings me to the present.  I just replaced the rear wheel, cassette and chain on my 30-speed road bike.  The derailleurs shift perfectly and the chain travel when pedalling is smooth and quiet.  However when I stand up or dig in on a hill the chain will skip on the cassette.  It happens on all THREE chain rings in the front and the spectrum of cogs on the cassette.  I thought sure it was a stiff link in the chain, but could not find an issue with it when manually flexing each link.  I tweaked the rear derailleur to the point of shifting cogs in both directions and still have the issue.  Any suggestions?


How do I rotate a sprite so that it is 'pointing' in the direction it is moving?

I have a sprite, e.g a missile, heading in a certain direction (using a velocity vector).  How do I figure out its how much to rotate it so that it gets drawn 'pointing' in the direction it is heading?


Unicode (UTF-8) reading and writing to files in Python

I'm having some brain failure in understanding reading and writing text to a file (Python 2.4).  # The string, which has an a-acute in it. ss = u'Capit\xe1n' ss8 = ss.encode('utf8') repr(ss), repr(ss8)      ("u'Capit\xe1n'", "'Capit\xc3\xa1n'")   print ss, ss8 print >> open('f1','w'), ss8  >>> file('f1').read() 'Capit\xc3\xa1n\n'   So I type in Capit\xc3\xa1n into my favorite editor, in file f2.  Then:  >>> open('f1').read() 'Capit\xc3\xa1n\n' >>> open('f2').read() 'Capit\\xc3\\xa1n\n' >>> open('f1').read().decode('utf8') u'Capit\xe1n\n' >>> open('f2').read().decode('utf8') u'Capit\\xc3\\xa1n\n'   What am I not understanding here? Clearly there is some vital bit of magic (or good sense) that I'm missing. What does one type into text files to get proper conversions?  What I'm truly failing to grok here, is what the point of the UTF-8 representation is, if you can't actually get Python to recognize it, when it comes from outside. Maybe I should just JSON dump the string, and use that instead, since that has an asciiable representation! More to the point, is there an ASCII representation of this Unicode object that Python will recognize and decode, when coming in from a file?  If so, how do I get it?  >>> print simplejson.dumps(ss) '"Capit\u00e1n"' >>> print >> file('f3','w'), simplejson.dumps(ss) >>> simplejson.load(open('f3')) u'Capit\xe1n'


How can I increment only the first element of the first row of a Python list of lists?

s is a list of lists of integers with all values initialized to zero. I would like to increment only the first element of the first row by one, but the following command increments the first element of every row by one. How may I achieve this?  In [6]: s = [[0]*4]*4  In [7]: s[0][0] += 1  In [8]: s Out[8]:  [[1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0],  [1, 0, 0, 0, 0]]   Okay! Thanks for the advice, the problem was in my construction of s.


How can I assign an user as owner of a script?

Here is my command:  echo "This is the body of the email" | mail -s "This is the subject line" myemail@address.com   When I ran this command with root user, that email goes into inbox and all file. But sadly  when I switch to another user (su info) and then send that email with another user, it goes into spam.     Noted that info has sudo priviliges. In reality I need to send that email using a PHP script like this:  // send_email.php <?php     $msg = "First line of text\nSecond line of text";     $msg = wordwrap($msg,70);     mail("myemail@address.com","My subject",$msg); ?>   When I execute that php script, that email sends as well, but the sad part is, the sender name will be shown as www-date@lamtakam.com. As you know www-date is apache's user which executes that script.  So all I'm trying to do is putting user info as the owner of that script. My goal is making sender like info@lamtakam.com.  Any idea how can do that?


Undefined symbols for architecture x86_64 for user defined type

While attempting to test a Graph ADT I made from scratch, the compilation fails with   Undefined symbols for architecture x86_64:  "Graph<Region>::order()", referenced from: creates_a_connected_graph_graph_Test::TestBody() in graph.test.cpp.o   I have looked around on SO for solutions, but most of them point to a definition being different from an implementation (header vs .cpp), or are case-specific. I am brand new with C++ thus I have little idea how to proceed with this.  Here is the faulty code:  Graph.h  template <class E> class Graph { public:   Graph<E>(std::vector<std::pair<string, std::shared_ptr<E>>> nodes, std::vector<std::pair<string, string>> edges);   std::size_t order();   // ... private:   const std::unordered_map<string, std::pair<std::shared_ptr<E>, short>> m_nodes;   // ... }   Graph.cpp  template <class E> Graph<E>::Graph(   std::vector<std::pair<string, std::shared_ptr<E>>> nodes,   std::vector<std::pair<string, string>> edges) {     for(const auto& node : nodes){       addNode(std::get<0>(node), std::get<1>(node));     }     for(const auto& edge : edges){       addEdge(std::get<0>(edge), std::get<1>(edge));     } };  /**  * Returns the number of nodes in the Graph  */ template <class E> std::size_t Graph<E>::order() { return m_nodes.size(); };   Graph.test.cpp  TEST(creates_a_connected_graph, graph){   using search_set = std::set<string>;   using forest_map = std::unordered_map<string, std::pair<string, string>>;    std::shared_ptr<Graph> g = loadGraph("./graph.json");   const size_t order = g->order();   const size_t dfs_order = algorithm::dfs<Region>(     "r1",     [](const string&, const search_set&, const forest_map&) -> bool { return true; }   )(*g);   ASSERT_EQ(order, dfs_order); };   Environment:   OS: MacOS 10.13.3 C++ Version Flag: -std=c++14


I've read a gazillion times that in Java, arguments passed to methods cannot be modified by the methods. Nonetheless, I find I can modify objects I create as opposed to Java Objects. Consider the following code:      // My Integer Object     class MyInteger {         Integer val;     }      // Change Java Object     public void test1() {         Integer intval;      // Integer object         intval = 123;         setInteger( intval );       // THIS DOESN'T WORK          TTY.putR( "Integer Object="+intval);     }      // Change My Object     public void test2() {         MyInteger myInt;    // MyInteger object         myInt = new MyInteger();         myInt.val = 456;         setMyInteger( myInt );      // THIS WORKS!          TTY.putR( "MyIntegerObject=" + myInt.val );     }      // Set an Integer object     public void setInteger( Integer val) {         val = 888;     }      // Set a MyInteger object     public void setMyInteger( MyInteger myint) {         myint.val = 999;     }   test1 doesn't work as I have been warned. But test2 works just fine. AFAIK, both are objects and are passed by reference. So how come one works and the other doesn't? (Note: TTY is my print function)


can I program in  by just using header files?  I keep trying to do it but getting a problem with this file here.. it keeps saying things like:     Severity  Code    Description Project File    Line    Suppression State   Error LNK2001 unresolved external symbol "private: static int   Engine::frameDelay"   (?frameDelay@Engine@@0HA) Engine  C:\Users\Shadowblitz16\Documents\Visual   Studio 2017\Projects\Zelda Classic 3.0\Zelda Classic 3.0\Test.obj 1   Code:  #pragma once #include "SDL.h" #include "SDL_image.h" #include <iostream>  class Engine {     private:         static int frameTime;         static int frameStart;         static int frameDelay;         static bool running;         static SDL_Window   *window;         static SDL_Renderer *renderer;          static void HandleLoop()         {             while (running)              //Loop             {                 //Start frame                 frameStart = SDL_GetTicks();                 HandleUpdate();                 HandleRender();                  //End frame                  frameTime = SDL_GetTicks() - frameStart;                 if (frameDelay > frameTime) SDL_Delay(frameDelay - frameTime);             }         };         static void HandleUpdate()         {             SDL_Event event;             SDL_PollEvent(&event);             switch (event.type)             {             case SDL_QUIT: running = false; break;             default: break;             }             Update();         };         static void HandleRender()         {             SDL_RenderClear(renderer);             Render();             SDL_RenderPresent(renderer);         }      public:         static void Run(const char* title, int x, int y, int width, int height, bool fullscreen)         {             frameTime  = 0;             frameStart = 0;             frameDelay = 0;              window     = nullptr;             renderer   = nullptr;              running = false;              if (SDL_Init(SDL_INIT_EVERYTHING) == 0)             {                 std::cout << "SDL Initalized!..." << std::endl;                 window = SDL_CreateWindow(title, x, y, width, height, (fullscreen == true ? SDL_WINDOW_FULLSCREEN : 0));                 if (window) std::cout << "Window Created!" << std::endl;                  renderer = SDL_CreateRenderer(window, -1, 0);                 if (renderer) std::cout << "Renderer Created!" << std::endl;                  SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);                 running = true;             }              frameStart = SDL_GetTicks(); //Get this so we can use it in the create event             Create();                    //Run create event              Clean();                     //Run clean event             SDL_Quit();                  //Quit         };          static void Create() {};         static void Update() {};         static void Render() {};         static void Clean()  {};          static bool Running()              { return running;  };         static SDL_Window*   GetWindow()   { return window;   };         static SDL_Renderer* GetRenderer() { return renderer; }; };   I think that its easier to read and debug this way, hopefully this is possiable


How to truncate decimal in Microsoft SQL Server

The function TRUNCATE works in MySQL but I get an error in Microsoft SQL Server : Incorrect syntax near ( Basically I have list of value under discount. (Some with lots of decimal) I just want to keep the 2 decimal without rounding. E.g from 110.975 to 110.97, 10.259 to 10.25. How do I go about doing that?  SELECT TRUNCATE(110.975,2)