var re = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/; var email = document.forms["checkout"]["email"].value; if (re.test(email.value)) {     return true; } else {     alert("Invalid email address");     return false; }   I have tried quite a few email regex suggestions on this site but when the function is called it always throws the alert. Not even simple email address are coming back valid. What am I doing wrong?


Find number of weighted point clusters & centre of clusters

I have a points layer with a frequency field indicating a population at that point. There is also a field indicating the broader area by which I need to analysis broken down into. I am expecting the points to be mostly grouped in a number of clusters. I need a way of determining how many clusters there are, probably by density, and to return a point for the centre of each.  I've made a heatmap in the display section of the points layer by setting a radius and weighting by the frequency field and in this created three clusters in my trial area, that look right, but I don't see how to get a coordinate for them. Any suggestions of what tool(s) to look at.      is basically the same, but as none of the answers explain how I can do weighted cluster analysis in QGIS.  I don't know postGIS or R, and the plugin manageR that was cited no longer seems to exist.


How many bits of information can be stored in a qubit? On making a measurement on a qubit, one can catch it in either $|0\rangle$ or $| 1\rangle$. Seems that measurement on a qubit can not reveal more than a single bit. But does it mean the a qubit can't store more than 1 bit of information?


Qualcomm Atheros QCA8172 No network traffic is shown

I just bought a new Lenovo Ideapad S410p with this ethernet card:  $ lspci -nn | grep 0200 03:00.0 Ethernet controller [0200]: Qualcomm Atheros QCA8172 Fast Ethernet [1969:10a0] (rev 10)   Both wireless and eth0 works fine, connect to internet and router no issues there.  But with any tool I used to check the traffic on it shows me zero in both up/down traffic. And this happens ONLY with the ETH0 interface, with the wireles card (another Qualcom Atheros) the traffic is showed, I searched in google with no luck, any idea about how to fix it?   Using Ubuntu 14.04 64 bits


How can I install the flash player for Chromium in Ubuntu 16.04?

I was wondering if someone could tell me how to install the adobe flashplayer for Chromium in Ubuntu 16.04.   Thanks


Shouldn't downvoted answers on meta be non-transparent instead of semi-transparent?

Since  from other SE sites and is not thought to point out a lack of quality or helpfulness, but only to express agreement or disagreement, I'm wondering why downvoted answers here on meta are shown semi-transparent.  Shouldn't they be non-transparent then (like upvoted answers)?  Or am I missing something?


Let's say you're going to apply for a mortgage and two of your options are getting a 10 year, fixed rate mortgage or a 30 year, fixed rate mortgage. As is standard, you'll have a lower interest rate and lower payments (say 4.50% and $1500/month) for the 30 year than you will for the 10 year (say 5.00% and $2000/month). In both cases, you do not receive a penalty for early payments.  My question is, is there a reason you might choose the 10 year over the 30 year? It seems to me that you can choose the 30 year and pay it off as early as you can, while taking advantage of the lower interest rate and the lower monthly bill in the event you can't overpay that month. All things being equal, it seems to me the 30-year is always a better choice to me.


Is there any way to compilte a *.tex file to word instead of pdf?  Thank you very much.


How can I calculate $\lim_{n\rightarrow\infty} \frac{7^{\sqrt{n}}\cdot(n/2)!\cdot(n/2)!}{n!} $?

How can I calculate this limit? $$\lim_{n\rightarrow\infty} \frac{7^{\sqrt{n}}\cdot(n/2)!\cdot(n/2)!}{n!} $$    I thought to try the ratio test, but I don't know how to do it because that I get $(\frac{n+1}{2})!$ and $(\frac{n}{2})!$ such that it's not define.


Width of minipages inside enumerate environments

How can I determine the available width inside an enumerate environment? In particular, what width argument can I pass to the minipages in the example below so that the minipages take up all of the available horizontal space, but do not give me overfull-hbox errors. Note that I would like to be able to have the minipages get the correct width at any level of nesting for the enumerate environments. When I run the code below, the minipages in the outer enumerate environment are about 25pts too wide, while the minipages in the inner enumerate environment are about 47pts too wide. I was hoping one of textwidth, column width, or hsize would give me the correct width but the minipages, but all three fail.  \documentclass{article}  \begin{document}  \begin{enumerate}  \item \begin{minipage}{\textwidth} some text \end{minipage}  \item \begin{minipage}{\columnwidth} some text \end{minipage}  \item \begin{minipage}{\hsize} some text \end{minipage}  \item \begin{enumerate}  \item \begin{minipage}{\textwidth} some text \end{minipage}  \item \begin{minipage}{\columnwidth} some text \end{minipage}  \item \begin{minipage}{\hsize} some text \end{minipage}  \end{enumerate}  \end{enumerate}  \end{document}


Title sums it up, but I'll break it down into two parts.  Part 1: Will console commands disable achievements in Steam? Part 2: If achievements are disabled will it be forever or just for game session?


How to write a PHP Mess Detector rule that has a project wide context instead of only on a class level?

I would like to write a rule to find all the public unused functions in a project. I have copied and amended the original UnusedPrivateMethod to work. But alas it works too good and finds ALL the public functions in the project.  It does so because public functions are usually called from other classes and the scope of the Rule seems to be at class level. So within each class the public functions are not used and so is part of the result.  Thus the question of how can I write a rule with a context that is on a  project level instead of just at the class level?


How do I display the domain owner of a node in a view?

I have a view that's generating a block showing upcoming events. On the main site those events might be coming from multiple domains (the site is using Domain Access) and I'd like to show the domain owner as a link to their site sub-domain.  Example:  Aug. 14 - Sample Event Domain Owner (http://owner.mydomain.com)   Is there a way that I can add this directly to the view? If not, what is the most effective/correct method for coding that into a view template override?


Make a copy of an object inside another object. JAVASCRIPT

I have a problem.  I have a simple object like this:  var simpleObject = {     name = "John",    favColor = "blue }   and another object with more properties and objects inside:  I want to put a COPY of simpleObject inside the bigger object like this:  biggerObject.copyofSimpleObject = simpleObject;   but what happens is whenever i change the value of simpleObject the value of biggerObject.copyofSimpleObject also changes.  So it seems like it's a reference to the original object which is a cool thing to do but in this situation I need it to be a copy so that when the original simpleObject changes the biggerObject.copyofSimpleObject value stays the same. I know it's probably simple but I don't know how to do this because I'm a noob. Please help :) Thank you! This is all javascript I'm using.


Is really $[0,1]\times[0,1)$ homeomorphic to $[0,1)\times[0,1)$ with the product topology?

I got asked to show that $[0,1]\times[0,1)$ is homeomorphic to $[0,1)\times[0,1)$ with the product topology, but I'm having trouble understanding why that's not false. $[0,1]$ is obviously compact while $[0,1)$ is not. What am I not getting here?


What is the difference between efficiency and efficacy?

What is the difference in meaning between the above words? Are they interchangable? I have seen several instances where efficacy has been used where it seems that efficiency is the correct term. Please forgive me if this question has been asked elsewhere. If anyone could point me in the direction of an explanation I'd be very grateful.


madhusudan@ubuntu:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? madhusudan@ubuntu:~$    what should I do to solve this problem?


Whence came the different varieties of the "long i" diphthong?

What is the origin of “long long i” before voiced consonants (the [ai] of wide, while, & tribe) versus “short long i” before unvoiced consonants (the [ʌi] of white, wife, & wipe)? When did this difference appear? Is it just a secondary distinction, or are there minimal pairs for these two diphthongs?  Obviously the distinction is not present in all accents—though its presence in most leads me to believe it's not a late arrival—and yet I've never found a dictionary that distinguishes them.


i haven't really changed anything of my code and suddenly cant compile it anymore with this error:  Error   29  22  error C2061: syntax error : identifier 'GameBase'   c:\users\...\documents\visual studio 2013\projects\first game\first game\snake.h    1   First Game Error   61  22  error C2061: syntax error : identifier 'GameBase'   c:\users\...\documents\visual studio 2013\projects\first game\first game\snake.h    1   First Game Error   30  33  error C2143: syntax error : missing ';' before '*'  c:\users\...\documents\visual studio 2013\projects\first game\first game\snake.h    1   First Game Error   31  33  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\users\benjamin\documents\visual studio 2013\projects\first game\first game\snake.h   1   First Game Error   62  33  error C2143: syntax error : missing ';' before '*'  c:\users\...\documents\visual studio 2013\projects\first game\first game\snake.h    1   First Game Error   63  33  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\users\...\documents\visual studio 2013\projects\first game\first game\snake.h    1   First Game Error   69  136 error C2661: 'Snake::Snake' : no overloaded function takes 2 arguments  c:\users\...\documents\visual studio 2013\projects\first game\first game\gamebase.cpp   1   First Game   The identifier and the syntax missing ; befor * occure inside of the snake file which is this:  #pragma once  #include "GameBase.h" #include <list>  using namespace std; enum State {     POSX, NEGX, POSY, NEGY, POSZ, NEGZ };  enum ChangeState {     RIGHT, LEFT, UP, DOWN };  class Snake : public Actor { public:     Snake(GameBase *game, Config *config); // HERE theidentifier     ~Snake();      //interface methods     void update(float delta);     void render(ID3D11DeviceContext *context, ID3D11Buffer *worldBuffer);      void setState(ChangeState& state); private:     /*Containing the pointer to the cubes of the snake*/     list<Cube *> m_cubes;     GameBase *m_game; // here the syntax ; before *     //timer for updating     float m_updateTime;     float m_timer;     int m_cubeSize = 21;      State m_state; };   And last but not least the gamebase here:  #pragma once  #include "Dx11Base.h" #include "Cube.h" #include "Wall.h" #include "Group.h" #include "Camera.h" #include "Logger.h" #include "InputHandler.h" #include "Snake.h"  #include <vector> class GameBase : public Dx11Base { public:     GameBase();     virtual ~GameBase();     /*load all shader and so on*/     bool load();     /*unload to be save when changing*/     void unload();     /*update the gamestate */     void update(float delta);     /*presents the new game state*/     void render();     /*Callback for the window its size changes*/     void callBack();     //set vscync or not     void setVsync(bool b);      void addToGroup(Actor* a);      int m_world[21][21][21];  private:     ID3D11VertexShader* m_vertexShader;     ID3D11PixelShader* m_pixelShader;      ID3D11InputLayout* m_inputLayout;      ID3D11BlendState* m_alphaBlendState; // generel blend state      ID3D11Buffer* m_viewCB; //constant buffer for view matrix     ID3D11Buffer* m_projCB; //constant buffer for view matrix     ID3D11Buffer* m_worldCB; //constant buffer for view matrix     ID3D11Buffer* m_cameraPosCB; //constant buffer for view matrix      XMMATRIX m_projectionMatrix; // viewport matrix      Camera m_camera;     InputHandler m_input;      /*the maingroup containing the actors*/     Group m_group;      /*compiles and creates the shader and also the INPUTLAYOUT!*/     bool compileAndCreateShader(char* vertexShader, char* pixelShader); };   with the rror of the no overloaded function takes 2 arguments here:  in the init:  Snake *s = new Snake(this, m_config.get());   Visual studio does not show any syntax errors or anything else it just dont compile. Cleaning didn't help.  Anyone has a clue whats going on and what i am doing wrong so i can get it back to running again?


Anonymous vs Named Functions in JavaScript Module Pattern?

Is there any benefit for the following JavaScript module defenition:   var module = (function(){   var PublicFnc = function(){ // variable declaration       alert('hi');  }   return {    f : PublicFnc  }  })();   module.f();   Over the following:   var module = (function(){   function PublicFnc(){ // function declaration       alert('hi');  }   return {    f : PublicFnc  }  })();   module.f();   Although the second example is more convenient since it is more similar to Java/C# the anonymous methods are used more often and I'm wondering what is the benefit?  @Alexander, thanks for marking the question as duplicate but I tend to leave it open since I'm asking for the benefits within the context of module patterns and not generally


which batsman take strike if batsman hit the ball and catch, and 2nd runs is in process of completion

which batsman take strike if batsman hit the ball and catch and during that time both the batsman complete the first runs and also cross for second run? Now the new batsman take strike or the non striker which is already on the crease take strike?


I often write scripts which I put on Github. As much as I want to share my code, there are certain things such as passwords which I do not want share. Often my code would look something like this:  myapp <- oauth_app("app_name", "long_complicated_sha_code") github_token <- oauth2.0_token(oauth_endpoints("github"), myapp)  gtoken <- config(token = github_token) req <- GET("https://api.github.com/rate_limit", gtoken)   What is a better way to manage usernames and passwords in scripts? I want to make the code as reproducible as possible, easy for myself to run, without sharing my usernames and passwords with the world.


Black Screen appear after set default display manager gdm

Yesterday i install gdm and set it default display manager then l notice ubuntu is running but there is several lines appear on desktop when i want to shutdown system after i powered off system and start Grub Menu appear and normal boot system but nothing is appear and black screen is regularly appear even after several restart.


Show that $$\sum_{k=2}^\infty (\zeta(k) - 1)$$ converges and find the limit.  (Hint : Deduce that $\zeta(s) = 1 + O(2^{-\sigma})$ where $s = \sigma + it$, $\sigma \geq 2$.)  $\textbf{Proof}$ Let $s = \sigma + it$ with $\sigma \geq 2.$ Then $$\zeta(s) = 1 + \sum_{n \geq 2} \frac{1}{n^s} = 1 + \sum_{n \geq 2} \frac{1}{n^\sigma e^{it \log n}}.$$  Since $s$ is complex and complex number cannot be compared, is it a bit vague to prove $$\zeta(s) = 1 + O(2^{-\sigma}).$$  Even if I ignore the imaginary part, it is not clear why $$\sum_{n \geq 2} \frac{1}{n^\sigma}\leq \frac{C}{2^\sigma}$$ for some constant $C$.


How to install a wordpress plugin without providing FTP details?

I have installed wordpress in localhost and now trying to install a jQuery-slider-plugin to it. But when I try to install the plugin, it prompts me to enter the ftp details. Is there any solution to install the wordpress plugins without providing the ftp details? Thanks in advance...


I am using PCA in R to analyze groundwater level changes. I used:  PC.data<-prcomp(data,center=T,scale. = T)   #prcomp         scores<-PC.data$x          head(scores)`                PC1       PC2        PC3        PC4         PC5     [1,] -5.921258 -2.704683 -0.5652839 0.04388705  0.84945464     [2,] -5.991433 -2.890179 -0.5363959 0.16285301  0.68334358     [3,] -5.954987 -2.978851 -0.7417375 0.33709042  0.36579053     [4,] -5.650401 -3.256866 -1.1687620 0.39116229  0.18990946     [5,] -5.278529 -3.316807 -1.7457909 0.49164240 -0.27280951     [6,] -4.285867 -2.827633 -2.4929304 0.39444379 -0.08617519   When I plot PC1 with all of my wells in a time series, I get:  Plot of time series of PC1 scores with water level of wells   I got an exact negative correlation between PC score and my original data. Is it reasonable to get PC component score in the inverse direction to the original data? What does this mean? Does this mean that PC1 has an inverse relationship with the wells?


How do I make Freestyle ignore a specific edge, material or object?

I'm currently trying to use Freestyle with Cycles to render a toon shaded image of a robot. The robot is holding a sword, which uses a separate material, and since it glows, I don't want freestyle to draw edges on its blade. However, I can't figure out how to make freestyle ignore specific edges. The sword does have a separate material and is a separate object, so perhaps I can disable freestyle just for that sword's material/object?  Ideally I'd love to know how to disable freestyle for edges, materials and objects.


Does QGIS have anything like Geodatabase Versioning?

I am just wondering if QGIS has anything like Esri's geodatabase versioning?


A basic example:     -Hey, will you be at the party this Friday?   -I'll   A guy I know does that all the time and I can't convince him that this isn't correct... or is it?  For me it just sounds stupid and is hard to pronounce only one word like that


How do i prove how $S_5$ is generated by a two cycle and a five cycle?

How do I prove that $S_5$ (the permutation group on five letters) can be generated by a two-cycle $(12)$ and a five cycle $(12345)$?


sort the hash map value based on condition

Storing the patient class value in Hashmap like this.  { 0=Patient [patientName=Robert, phoneNumber=9878594302, age=30],  1=Patient [patientName=mathew, phoneNumber=9876643278, age=56],  2=Patient [patientName=smith, phoneNumber=87, age=8334456781] }   Based on age, want to display the descending and ascending order of the hash map value?  how is it possible ?


Standard way of reversing order of bytes in a number

work with MSVC and GCC but not Clang. Is there a standard way of reversing the bytes in a number? It seems to me I have two options as of now: either to use a lot of #ifdef statements, or write out the implementation myself.


How would I design a protection clipper circuit for ADC input?

I'd like to be able to protect my ADC from input voltages higher than 5V. What's the simplest protection circuit I could build to have an output like shown below?


How can I delete/uninstall ubuntu from single boot laptop and install Windows 8.1? I have tried to do some responses posted before but coudln't make it.


JQuery not working after function is called

I've run into a Javascript/JQuery issue I was hoping you'd know how to solve.  Suppose I define this function that builds a table inside of the 'div' with id 'TableHolder':  MakeTable = function() {     document.getElementById('TableHolder').innerHTML = "";     var tablebuild = "

";     for (i=0; i<3; i++)     {         tablebuild += "	";     }     tablebuild += "

";     document.getElementById('TableHolder').innerHTML = tablebuild; }   I call this function when the document is ready, and tell JQuery to rebuild the table when any cells are clicked.  $(document).ready(function() {     MakeTable();     $('td').click(function(){         MakeTable();     } });   Once a cell is clicked and MakeTable() rebuilds the table, the JQuery no longer works for the new cells.   Is there any way to fix this issue without using a loop?   *The above is a bread and butter version of a program that actually has a purpose, and I recognize it's useless as presented. Yet, the solution applies across the board.


Is there a free way of unlocking an Android phone from a particular network?

I bought a cheap Android handset for development and it is an exclusive to a particular network.  I would like to unlock it so I can use an existing SIM card from another network. I've done some googling and it appears that there are many services online where you can get a code from supplying your IMEI number.  Firstly, can anyone elaborate on what the unlocking process involves, and secondly, is there any application that can do this process, or are you forced to pay someone to generate a code for you?


How to suppress caption numbering in a table?

How can the auto-numbering on table captions be suppressed? For example, I have a table:  \section{Data} \begin{table}[h] \setlength{\arrayrulewidth}{1.5px} \centering \begin{tabular}{lcccc} \bottomrule  \bottomrule \end{tabular} \caption{This is my caption.} \end{table}   I just want the caption to read This is my caption. However, when I compile this code into a PDF file my table is automatically named Table 1. This is my caption. I've tried using \caption*, to suppress the auto-generated Table 1., but this does not solve my problem. Can anyone help?


When I turn my phone on, many apps also turn on in the background. This slows down my phone. How do I shut them down? Why is the OS built this way? Doesn't make sense to me.


I'm creating an array based stack class in java, but I'm also forced to use the class   public class MyStack<E> implements Stack<E>.    My pop and peek are also in form of public E pop()/ public E peek().   I can't figure out how to use  formats and create an array.  The size of array has to be 128, and I tried setting   private E[] Stack = new Object[128]   but it gives bunch of warnings and I can't search how to deal with this Object type. I tried using it by typecasting (int) or (char) each time I use item in the stack, but I'm getting a ClassCastException. For example, I tried using (int) tmp = (int)MyStack.pop(); and am getting the ClassCastException when I use the Object type.  Can anyone help me understand how this Stack, or  works (or give a directing link to some well-written explanation) or tell me anywhere else I'm misguided?  Thanks!


When i insert a table row why it won't be highlighted?

My html+js+form.html:     I have also a css, but its not important now. So my problem is, when i insert a new row, it wont be highlighted, just the others which is  i created the table in the beginning.  I tried:        $("#shipmentTable tr").click(function(){         $(this).addClass("selected").siblings().removeClass("selected");     });   and css for the table:           .member tr.selected {         background-color: rgba(41, 103, 182, 0.89);         color: #FFF;     }   but what i said i isnt working correctly. Can anyone helps to me?


Suppose we want a +/-10v control signal, where 0x0 (to the DAC) = -10v and 0xFFF = +10v.  Firstly, how do we alter the signal so that we can have a negative voltage, dependant on the DAC input?  Secondly, how can we scale the signal so that it fits within the -10 to +10 range?


How can I make a simple volumetric light on Cycles?

I'm trying to do a volumetric light on Cycles, and I've followed tutorials, but nothing has worked yet. How can I make a proper volumetric light in Blender, like the following one?    But to leave the light in the middle, like, almost a star, is this possible? I'm at the point to use an image plane besides the light which would be better... I need to use it moving the camera.  I'm actually trying to do this because I want to simulate the brightness of the Sun.  I tried the effect, but it still gave me an error:


Evaluate $\int_{0}^{\pi} \log \left(m^2-2m\cos x+1\right)\: dx$

Evaluate $$\int_{0}^{\pi} \log \left(m^2-2m\cos x+1\right)\: dx$$  My Try: I let $$f(m)=\int_{0}^{\pi} \log \left(m^2-2m\cos x+1\right)\: dx$$  Differentiating w.r.t $m$ both sides we get  $$f'(m)=2\int_{0}^{\pi}\frac{(m- \cos x)dx}{(m-\cos x)^2+\sin^2x}=2\int_{0}^{\pi}\frac{(m+ \cos x)dx}{(m+\cos x)^2+\sin^2x}$$  we get  $$f'(m)=2\int_{0}^{\pi}\frac{m \csc^2 x+\csc x \cot x}{(m\csc x+\cot x)^2+1}$$  How to proceed now?


"I suggest you not go there" or "I suggest you to not go there"

Should I say I suggest you not go there or I suggest you to not go there? Or are they wrong and I need to say "going" instead of "go"?


Maybe I have already found the answer to this question in that it's not possible, but if there's a nifty trick... I'm all ears.  I'm trying to reproduce the following C enumeration list in python:  enum Id {    NONE = 0,    HEARTBEAT, //0x1    FLUID_TRANSFER_REQUEST,    FLUID_TRANSFER_STATUS_MSG,    FLUID_TRANSFER_ERROR_MSG,    FLUID_TRANSFER_RESUME,    EMERGENCY_STOP_MSG,    LOG_MSG,    VERSION_REQUEST,    VERSION_RESPONSE,    CHANNEL_INFORMATION_REQUEST,    CHANNEL_INFORMATION_RESPONSE,    TEST_REQUEST,    LED_CONTROL_REQ,    RESET_REQ,     // Camera App Messages    START_SENDING_PICTURES = 0x010000,    STOP_SENDING_PICTURES,    START_RECORDING_VIDEO_REQ,    STOP_RECORDING_VIDEO_REQ,    TAKE_PICTURE_REQ,    SET_VOLUME_LIMIT,             VIDEO_FRAME_MSG,    PICTURE_MSG,    I_FRAME_REQUEST,    CURRENT_VOLUME,    START_ANALYZING_IMAGES_REQ,    STOP_ANALYZING_IMAGES_REQ,    SET_FILE_PATH,     //Sensor Calibration    VOLUME_REQUEST = 0x020000,    START_CAL,    CLI_COMMAND_REQUEST,    CLI_COMMAND_RESPONSE,     // File Mananger    NEW_DELIVERY_REQ = 0x30000,    GET_DELIVERY_FILE_REQ,    GET_FILE_REQ,     ACK_NACK,    RESPONSE,     LAST_ID };   However, I don't want to have to specify every value for the list because it's changing often.  Since I also have it set to a new value in the various sections, I can't use the AutoNumber methodology (e.g. VOLUME_REQUEST = 0x020000).  Anyone got a clever trick to reproduce C style enums in python, or am I stuck with reproducing it the hard way?


How to disable creation of spaces on macbook?

How to disable creation of desktop workspaces on macbook?   Somehow they get created when I don't need them. [OS: Mojave]


I have a webform on my site and on user submission, I want to send the webform data to some php application that get the value of some variables from the URL.   This task requires me to access the webform submitted data when the user clicks "Submit" button and construct a URL (/myphpapplication?query=....) containing user filled webform values.  Please help me to achieve this.


Nexus 5 not recognized at all by device manager

I've been programming a game for android and been using my nexus 5 for debugging purposes for a while. Unfortunately, today it isnt being recognized anymore.   Things I've tried to fix it:   Enabled USB debugging Tried another cable Unplugged replugged restarted android studio restarted laptop Switched to MTP Switched to PTP Factory reset device killed adb server then started it again   Since it doesnt come up on the device manager at all - I was unable to reinstall drivers.  I've been trying to fix this for about 4 hours now and I'm starting to go crazy. Thanks in advance.


In the feeds page, when I scroll down I see the refresh "bubble" flicker on my screen.   App version: 1.0.85 Device manufacturer: Samsung Device model: SM-N920S OS version: 6.0.1 (N920SKSU2ZPF4)


There is a pattern following, and trying to find the algebraic expression Each layer (from the top). Diagram.  So the first layer has 1, second has 4, third has 9, and the fourth has 16. That's how the sequence is increasing. What I'm looking for is, When the second layer is added with the first layer, Third layer is added with the second and first, Fourth is added with third,second and first. So something like this.   I am trying to find the algebraic expression for this pattern. Any ideas?? Thank you


Start the content of an item on a new line after the item label in enumerate environment

How to have the full content of an enumerate item to start on a new line below the item label and number, and aligned to the left margin of the document ?  This question is closely related to this other question . However the solution provided only adjust the first line to the left margin, not the full content of the item.  I use the enumitem package.  Actual code:  \documentclass{article}   \usepackage{enumitem}     \setlength\parindent{0pt}  \makeatletter    \def\itemq{\@ifnextchar[ \@itemq{\@noitemargtrue\@itemq[\@itemlabel]}} \def\@itemq[#1]{\item[#1]\mbox{}\\\hspace*{\dimexpr-\labelwidth-\labelsep}}   \makeatother   \begin{document}  Nunc convallis tincidunt scelerisque. Praesent ac mattis ligula, dictum  condimentum enim. Donec convallis id lorem vel lobortis. Duis dapibus metus ut  risus egestas, in lobortis elit ultricies. Nam eu odio aliquam, ullamcorper  quam sed, placerat massa.  \begin{enumerate}[align=left,label=\textbf{Question \arabic*},leftmargin=!] \itemq Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan  pulvinar magna, eget suscipit ligula feugiat in. Nam iaculis egestas est sed  dictum. Nulla suscipit leo et luctus facilisis. Vivamus a lorem at libero  elementum blandit eu quis diam. Fusce mollis lorem a diam consequat, non  fermentum massa auctor. \itemq Vivamus fringilla eget nisl at mattis. Sed commodo iaculis est,  adipiscing pretium magna adipiscing eget. Donec sed ante at massa tincidunt  porttitor vitae vel lectus. Sed facilisis feugiat felis, ultricies aliquam ante  iaculis et. Suspendisse fringilla, purus nec convallis cursus, nunc lectus  pharetra ipsum, nec hendrerit sem nunc eu nulla. Nam neque magna, faucibus  vitae ante nec, hendrerit bibendum nunc. \end{enumerate}  \end{document}   The desired output is like that:  \documentclass{article}  \setlength\parindent{0pt}  \begin{document}  Nunc convallis tincidunt scelerisque. Praesent ac mattis ligula, dictum  condimentum enim. Donec convallis id lorem vel lobortis. Duis dapibus metus ut  risus egestas, in lobortis elit ultricies. Nam eu odio aliquam, ullamcorper  quam sed, placerat massa.  \medskip\textbf{Question 1}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan pulvinar  magna, eget suscipit ligula feugiat in. Nam iaculis egestas est sed dictum.  Nulla suscipit leo et luctus facilisis. Vivamus a lorem at libero elementum  blandit eu quis diam. Fusce mollis lorem a diam consequat, non fermentum massa  auctor.  \medskip\textbf{Question 2}  Vivamus fringilla eget nisl at mattis. Sed commodo iaculis est, adipiscing  pretium magna adipiscing eget. Donec sed ante at massa tincidunt porttitor  vitae vel lectus. Sed facilisis feugiat felis, ultricies aliquam ante iaculis  et. Suspendisse fringilla, purus nec convallis cursus, nunc lectus pharetra  ipsum, nec hendrerit sem nunc eu nulla. Nam neque magna, faucibus vitae ante  nec, hendrerit bibendum nunc.  \end{document}


Do I need to capitalize "modernism" or "modernist"?


Can a rogue use the Steady Aim optional class feature with attack spells?

Can a rogue use the  optional class feature (Tasha's Cauldron of Everything, p. 62) with attack spells?


I have one column in my query and multiple rows (100+). I need to have the rows combined with only a space between so that I end up with one row.  Example:  1 2 3 4 5   Would actually be  1 2 3 4 5


How would I implement a realistic stock market?

I'm making a corporation simulator, and it contains stocks. In the game you can buy and sell stocks, but I can't implement a realistic change in the price for them. How do I make them change up/down in a realistic way?


What value to use to convert ADC value to voltage?

While working on my project, I got to a point where I don't know the answer. I have a 10-bit ADC (the one incorporated in the ATMEGA328P) and it returns values up to 1023 (210 - 1).   The official documentation states that the equation to convert the values from the ADC to the corresponding voltage is:   $$ V = \frac{V_{in} \cdot ADC}{2^{10}} $$  But, if the values go up to 1023, then wouldn't it be better to replace the 210 by 210 - 1?  Thanks.


In Harry Potter and the Order of the Phoenix, Harry has a vision of himself attacking Mr. Weasley. Harry explains to Dumbledore what happened and the Dumbledore does this:  Dumbledore now swooped down upon one of the fragile silver instruments whose function Harry had never known, carried it over to his desk, sat down facing them again and tapped it gently with the tip of his wand. The instrument tinkled into life at once with rhythmic clinking noises. Tiny puffs of pale green smoke issued from the minuscule silver tube at the top. Dumbledore watched the smoke closely, his brow furrowed. After a few seconds, the tiny puffs became a steady stream of smoke that thickened and coiled in the air . . . a serpent's head grew out of the end of it, opening its mouth wide. Harry wondered whether the instrument was confirming his story: he looked eagerly at Dumbledore for a sign that he was right, but Dumbledore did not look up. 'Naturally, naturally,' murmured Dumbledore apparently to himself, still observing the stream of smoke without the slightest sign of surprise. 'But in essence divided?' Harry could make neither head nor tail of this question. The smoke serpent, however, split itself instantly into two snakes, both coiling and undulating in the dark air. With a look of grim satisfaction, Dumbledore gave the instrument another gentle tap with his wand: the clinking noise slowed and died and the smoke serpents grew faint, became a formless haze and vanished.  The snake is obviously related to Harry's dream. Does it read his mind? Why does the snake split?


Can the wizard in our group prepare a spell from the spellbook of an NPC wizard?

Whether the players killed a mage and got his spellbook(s) or they met with a nice wizard who let him or her learn a spell from his spellbook, can a player prepare a spell from a spellbook that isn't his or hers?  I'm asking because the PHB p. 114 says:     [...] Preparing a new list of wizard spells requires time spent studying your spellbook and memorizing the incantations and gestures you must make to cast the spell: at least 1 minute per spell level for each spell on your list.    emphasis mine   Further, the block on the left as a Copying a Spell into the Book ("the" Book as in "your" Book, since it appears in the block titled Your Spellbook), which explains how you can copy a spell from one book to another, assuming the book is from a stranger, it cost more and takes more time. It actually says:     [...] deciphering the unique system of notation used by the system of notation of the wizard who wrote it. [...]   It continues saying that you have to learn the various parts of the spell (verbose, material, gesture.)  This makes it sounds like a wizard would have a really hard time to prepare a spell from another's spellbook. Is that the case?


When executing sudo apt-get update I get the following error   Err http://ppa.launchpad.net trusty/main amd64 Packages                           404  Not Found Err http://ppa.launchpad.net trusty/main i386 Packages                            404  Not Found Ign http://ppa.launchpad.net trusty/main Translation-es_ES                      Ign http://ppa.launchpad.net trusty/main Translation-es                         Ign http://ppa.launchpad.net trusty/main Translation-en                         Ign http://ppa.launchpad.net trusty/main Translation-es_ES                      Ign http://ppa.launchpad.net trusty/main Translation-es                         Ign http://ppa.launchpad.net trusty/main Translation-en                         Ign http://ppa.launchpad.net trusty/main Translation-es_ES                      Ign http://ppa.launchpad.net trusty/main Translation-es                         Ign http://ppa.launchpad.net trusty/main Translation-en                         Ign http://ppa.launchpad.net trusty/main Translation-es_ES                      Ign http://ppa.launchpad.net trusty/main Translation-es                         Ign http://ppa.launchpad.net trusty/main Translation-en                         Descargados 2.981 kB en 22seg. (131 kB/s)                                       W: Imposible obtener http://ppa.launchpad.net/jconti/gnome3/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  W: Imposible obtener http://ppa.launchpad.net/jconti/gnome3/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found  E: Algunos archivos de índice fallaron al descargar. Se han ignorado, o se han utilizado unos antiguos en su lugar   What should I do to fix it?


I want to replace my HDD with SSD since I can't use both because my laptop has only 1 slot. I am totally confused about how to transfer the whole HDD data to SSD along with the Ubuntu OS?


How do I make python loops run in the background of a program?

I'm currently making a text-based strategy game with python, but I've come across a problem, I want to make the user receive 1 gold and lose 5 food every 10 seconds, so I made a loop:  import time  gold = 0 food = 100 while True:     time.sleep(10)     gold += 1     food -= 5   But I can't run the main loop now because the program is stuck running the first one:  while True:     what_to_do = input("What do you want to do?\n")     if what_to_do == 'wood':         wood()     ...   I there any way I can constantly add gold and lose food at the same time as being able to play the game? Such as being able to run a loop in the background while the main loop runs, or am I just being stupid?


Change email content when email is in actived jounery

I've the journey which is actived wherein email send activity is used. Now if I want to change the content of email then is it possible ? ?   Or is there any other best way to design the email Content?, So that if it's used in the email which is in the actived journey and if we change the email content then it'll also reflect in the jounery builder email.   Like Content builder have a Dynamic content but will that fullfil same requirement?


enumeration in python for the combinations

I have my input like this:    T A G C   2     I want my output like this.  TT TA TG TC AT AA AG AC GT GA GG GC CT CA CG CC      If i give 3 in the input at place of 2 the the output should be like:  TTT TTA TTG TTC TAT TAA TAG TAC ... ... and so on....   I have written code but i dont know what to do after this:  data=open('D:\python\input.txt') a=data.read().split('\n') result=[] symbol=a[0] integer=a[1]  if integer==0:    result.append(None) for s in symbol:    I dont know what to do after this ....


Divisibility criterion of a number by $7$, $11$ or $13$

To paraphase my textbook:  Use that $1001 = 7 \cdot 11 \cdot 13$ to prove that if $a= a_n a_{n-1}\dots a_1 a_0$ in base $10$, then, respectively, $7$ or $11$ or $13$ divides $a$ if and only if it divides $a_2 a_1 a_0- a_5 a_4 a_3 +a_8 a_7 a_6- \cdots $.  I'm on the chapter of my textbook in which modular congruences are introduced.


How can I make realistic looking potions as handouts

I'd like to give my group some realistic looking potions as handouts.  Does anyone have tips on how I could make these look awesome?


How can we give a meaning to the three axioms of prepositional logic? As axioms, is not it supposed to be obvious? For example, how is $(\phi \to (\psi \to \chi)) \to ((\phi \to \psi) \to (\phi \to \chi))$ evident?


Minimal polynomial of $\sqrt{2}+\sqrt{3}$ over $\mathbb Q$

I had an example in the book given as follows:        Find the minimal polynomial of $\sqrt{2}+\sqrt{3}$ over $\mathbb Q$ .       Solution:  $~~~~~$$(\sqrt{2}+\sqrt{3})^2=5+2 \sqrt6$      $(\sqrt{2}+\sqrt{3})^4=49+20 \sqrt6$       Then $(\sqrt{2}+\sqrt{3})^4-10(\sqrt{2}+\sqrt{3})^2+1=0.$       Thus $a=\sqrt{2}+\sqrt{3}$ satisfies $f(x)=x^4-10x^2+1$ over $\mathbb Q$.       Let $p(x)$ be the minimal polynomial of $\sqrt{2}+\sqrt{3}$ over $\mathbb Q$.Then $(\sqrt{2}-\sqrt{3}),(-\sqrt{2}+\sqrt{3}),(-\sqrt{2}-\sqrt{3})$ are also roots of $p(x).$   So degree of $p(x)$ is atleast $4$.      But $f(a)=0 $ and $f(x) \in \mathbb Q[x] \implies p(x)$ divides $f(x)$ .      So $f(x)$ is minimal polynomial of $\sqrt{2}+\sqrt{3}.$   But I can't get the step  how are $(\sqrt{2}-\sqrt{3}),(-\sqrt{2}+\sqrt{3}),(-\sqrt{2}-\sqrt{3})$ also roots of $p(x).$   Kindly help with this.


Determining the order of the kernel and image

Let $G$ be a finite group.  Let $G'$ be a group and let $\phi : G \to G'$ be a homomorphism.  Let $K \leq G$ be the kernel of $\phi$ and $I \leq G'$ be the image of $\phi$.  (a)  Find a formula that relates the number of elements in $G$, $K$, and $I$. (b)  Suppose $H \leq G$, Find a formula for the number of elements of $\phi(H)$.  I'm not sure if (a) is some sort of application of the Main Homomorphism Theorem or not.  I'm hoping to get some hints to sort of push me in the right direction.


Let $F$ be a field and $f: \mathbb{Z} \to F$ be a ring epimorphism.

Here we have $F$ a field and $f: \mathbb{Z} \to F$ a ring epimorphism. We are to prove that $F$ is a finite field with non-zero characteristic.   I know that since $f$ is an epimorphism, we have that $\forall x\in F$, $\exists y \in \mathbb{Z}$ such that $f(x) = y$. (As an epimorphism is a surjective ring homomorphism).   I am unsure about two things: Am I to prove that F is finite, or just prove that it has a non-zero characteristic. Either way, I could use some guidance. Thank you :)   PS This is for HW, so I only require a good hint about how to approach the problem.


I'd like to nest load one document inside another, skipping the preamble and \begin{document} and \end{document} of the nested document.    So  \documentclass{article} % load some packages here \begin{document} \loaddocument{otherdocument} text \end{document}   should be the same as if \loaddocument were replaced with \input except that only the bits between \begin{document} and \end{document} of otherdocument.tex are loaded.    I could probably achieve this using LuaLaTeX but I can't be the first to be looking for this functionality yet I can't find a solution on this forum.  Is there an existing solution?  ****** EDIT ******  I thank Sam Carter for pointing out subfiles but that package doesn't allow packages to be loaded in the preamble.  If the nested file is like this  \documentclass{article}  \usepackage{amsmath}  \begin{document} \begin{equation} x=\quad y. \end{equation} \end{document}   then compilation stops, so the subfiles package won't do.  The closest to what I have in mind, judging by its documentation, is newclude but that package is old and the documentation claims it provides an \includeenv command, which LaTeX doesn't recognize.  But, unless something changes, I'll accept that answer and write my own LuaLaTeX routine.  * SECOND EDIT *  fwiw, I have written a simple LuaLaTeX routine that takes care of the problem.


delete specific character "[" from a file

I want to remove a character "[" from a file.  I tried   sed -i 's/[//g' 'filename'   however I get the following error      sed: -e expression #1, char 6: unterminated `s' command


I need some C# code to validate a windows credential, the account maybe a local account or a domain account.  Please give some ideas about how to do it.


Would we be able to hear the sun if space were full of air?

I was wondering if the sun could be audible from earth in an air-filled space scenario. We can ignore all the other disastrous consequences! Thanks!


How to fix slow wireless with Intel 4965 AGN?

Possible Duplicate:          We run Ubuntu 12.04, 32bit, with the current kernel 3.2.27-generic on an MSI EX700.  I've already added the , without whcih, wireless has been unusable.  Now, it works OK, but speedtest shows:  Windows XP - down 11.68mbps, up 2.07mbps  Ubuntu 12.04 - down 2.06mbps up 2.0mbps   We've disabled ipv6, tried static and dinamic IPs, tried both swcrypto=0 and swcrypto=1 options, none of whcih made any difference.  The problem may be the symptom of high packet loss. For example, here's the output of iwconfig after booting and testing the speeds:  wlan0     IEEE 802.11abg  ESSID:"amu"         Mode:Managed  Frequency:2.462 GHz  Access Point: 00:78:9E:FA:32:C8          Bit Rate=54 Mb/s   Tx-Power=15 dBm          Retry  long limit:7   RTS thr:off   Fragment thr:off       Encryption key:off       Power Management:off       Link Quality=58/70  Signal level=-52 dBm         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0       Tx excessive retries:11  Invalid misc:3627   Missed beacon:0   I've posted a  before with lots of technical info and outputs.


Inductive Proof for Vandermonde's Identity?

I am reading up on Vandermonde's Identity, and so far I have found proofs for the identity using combinatorics, sets, and other methods. However, I am trying to find a proof that utilizes mathematical induction. Does anyone know of such a proof?  For those who don't know Vandermonde's Identity, here it is:  For every $m \ge 0$, and every $0 \le r \le m$, if $r \le n$, then  $$ \binom{m+n}r = \sum_{k=0}^r \binom mk \binom n{r-k} $$


What can we do to prevent people from posting their coding questions on Meta?

As you may know, the amount of questions here that actually belong on Stack Overflow is huge. If I'm allowed a guess, it probably happens a few times a day.  Why are people posting in the wrong place?  Now, what are the reasons for this? What do these users think? (Do you have a guess why this is?)     "Hey, Stack Overflow is cool, but there's a meta link, now that looks even more awesome, let's click it and ask there!"   What are – from your experience – the reasons for new users posting here?  And then there's this comment exchange that makes me wonder:      What could be done to prevent it?  Now, obviously those people have skipped a few reminders:   This one here:  That one:  And this one:    My question is: Is there anything that we can do to prevent people from asking in the wrong place? I know these people need a bit more than a gentle reminder and a passive note somewhere in a sidebar.  What about Jeff's question about a . Would it be an option to apply this algorithm to meta questions?  if (post contains code) and (user is new)   show alert ("Your question probably belongs on Stack Overflow,    our Q&A for professional and enthusiast programmers")   What do you think?


How to locate any element on browser using location of the element?

I just want to click somewhere on the window. Do we have any method to locate some element or anything on web browser to click on it?  public static void main(String[] args) throws InterruptedException {     System.setProperty("webdriver.chrome.driver", "D:\\Amar\\Selinium\\chromedriver\\chromedriver.exe");     WebDriver driver = new ChromeDriver();     driver.get("https:\\www.google.com");     driver.findElement(By.linkText("Gmail")).click();     driver.findElement(By.linkText("SIGN IN")).click();     WebElement Email = driver.findElement(By.id("identifierId"));     Email.sendKeys("abc@gmail@gmail.com");     System.out.println(driver.getCurrentUrl());     driver.findElement(By.id("identifierNext")).click();     Thread.sleep(60);     System.out.println(driver.getCurrentUrl());     driver.findElement(By.name("password")).sendKeys("PASSWORD"); }


Can a character without arms cast spells with somatic components?

My DM and I have been having friendly arguments, and we recently came to what would happen if my character lost all their limbs.  As a gnome beastmaster I said I would always sit on my mount and use mage hand (from magic initiate) when I need to eat or lift things. HOWEVER he argues I wouldn't be able to perform the somatic component.  So, I ask: is there a way to cast spells without arms? My argument is that since I am learning the cantrip after losing my arms I would have learned it in a way that works with my stumps, but he points out the PHB is pretty clear you need a free hand.


I have a valid 5 years B1/B2 visa that was issued about 4 years ago.  I never used it as I intended to travel to work in a specific project that was cancelled.  Now, There is a similar project scheduled next year. So, I have to renew the visa as it will expire before the project's start date.  Can I renew the visa although it wasn't used (I never traveled to US) ?


How to break a while loop by entering in a String from scanner

import java.util.Scanner;  public class LoginPage{  public static void main (String[]args){  System.out.println("______________"); System.out.println("| Login Page |"); System.out.println("______________");  System.out.println();  //Declare Strings String Log; String Pass; String TestU = "Corey"; String TestP = "Chicken"; int i = 0; //Declare Scanner Scanner scan = new Scanner (System.in);  while(i<=6){     System.out.print("Username: ");     Log = scan.nextLine();     System.out.print("Password: ");     Pass = scan.nextLine();     i++;      if((Log==TestU)&&(Pass==TestP))     {break;}  }  }  }   This is the current code for a login page i'm trying to create. The 'TestU' and 'TestP' are just there instead of usernames/password that i will read from a data file. But when i enter in 'Corey' and 'Chicken' it doesn't exit the while loop. I might just be doing something very simple wrong but i cannot find it and i cannot find it on google or anything(Maybe i'm searching the wrong problem.) But any help would be greatly appreciated.


a) There are as many primitive roots of $2p^n$ as $p^n$.  b) Any primitive root r of $p^n$ is also a primitive root of p.  c) A primitive root of $p^2$ is also a primitive root of $p^n$ for n >= 2.  Im so sorry . My professor teachs so quickly then I cant organize my thoughts... so It is better to see your solution and organize my ones.  finally do you know that there is a Burton's Elementary Number Theory solution?? I cant find that in google...  thnks!


I want to loop over the value of an input argument, something like that  for i in {0..$1} do   echo $i done   If i call my script: ./my.sh 2  I want  0 1   But i get   {0..2}   How can i do it ?


Locus of complex solutions of $(z+i)^{2011}=z^{2011}$

What do the complex solutions of $(z+i)^{2011}=z^{2011}$ lie on?   Hyperbola Ellipse Straight line Circle  I do not know how to approach it.


Compress using tar without saving full path

I would like to compress backup directory, but not saving all path of data. After unpack i want have only destination directory. How Can I do this?  This command save all path:  $tar -czf /home/user/backup/www_`date +%Y-%m-%d`.tar.gz /home/user/www  $ tar -xvf redmine_www_2018-03-02.tar.gz  home/user/www/


Does there exist a measurable subset $E$ such that $\varepsilon < \frac{|E\cap{I}|}{I} < 1-\varepsilon$ for every finite interval I =[a,b]?

Given $0 < \varepsilon < \frac{1}{10}$, does there exist a measurable subset $E \subset \mathbb{R^1}$ such that $\varepsilon < \frac{|E\cap{I}|}{I} < 1-\varepsilon$ for every finite interval I =[a,b]? Prove or disprove it . Here ||denotes the Lebesgue measure.  I think it is exist . But I have no ideal of the example.


Punctuation inside of quotation marks with technical phrases

If I am not mistaken, one should insert a period, question mark, etc. inside of the quotation mark in quoted speech.  For example,      The man continued, "The sky is purple today."     My question concerns the use of punctuation when the thing within the quotation marks is a specific technical thing.  For example,      The correct computer password is "AbCd!".   Should the period be before or after the final quotation mark in the last example?


I want to make a modification to text inside my span after css will finish my animation (200ms). I want to pass a delay parameter to my hover state, so it would wait. My code is as follows:  $('.overlay').each(function() {     var text = $(this).children('.category').children('span').text(),         newtext = text.substring(0,1);      $(this).children('.category').children('span').text(newtext);      $(this).delay(5000).hover(function() {         $(this).children('.category').children('span').delay(5000).stop().text(text);     }, function() {         $(this).children('.category').children('span').text(newtext);     }) });   Unfortunately, it doesn't work, no matter where I place delay. What can I do?


How to deal with a site that has plagiarized mine?

I have an established blog that has been putting out content for a year.  Today I noticed that somebody has cloned my entire website, word-for-word, and hosted it on a separate domain.  When I say cloned, I mean you could put them side-by-side and they would look identical, so everything has been copied, including content, layout, etc.  I looked at the source and the HTML has been copied verbatim.  The new domain has only been registered a few weeks ago.  Unfortunately the copied site is now outranking my real site on a few keywords in google search results!  On some keywords the fake site has taken my place on the first page of the search results, and my site is no longer even listed!  What can I do about this?  Update: I filed a DCMA complaint with Google.  Update: I just discovered that he is just using his site as a proxy to access mine. I can block his IP from accessing my site which would effectively solve the problem (maybe only temporarily?), but then what happens when Google investigates the DCMA and finds nothing?


Why it seems to cost more for a big string to get length? What's the complexity string.length?

According to  , it's a O(1) operating for an array to get length in java. As String is an array of char, I think it is the same.  But when I do a simple test:  public static void main(String args[]) {     String a = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";     for (int i = 0; i < 23; i++){         long start = System.nanoTime();         int l = a.length();         long end = System.nanoTime();         System.out.println("length: " + l + " cost: " + String.valueOf(end - start));         a = a + a;     } }   And get  length: 100 cost: 395 length: 200 cost: 395 length: 400 cost: 395 length: 800 cost: 394 length: 1600 cost: 395 length: 3200 cost: 394 length: 6400 cost: 395 length: 12800 cost: 394 length: 25600 cost: 394 length: 51200 cost: 395 length: 102400 cost: 789 length: 204800 cost: 789 length: 409600 cost: 1974 length: 819200 cost: 790 length: 1638400 cost: 3158 length: 3276800 cost: 3553 length: 6553600 cost: 4342 length: 13107200 cost: 3552 length: 26214400 cost: 2368 length: 52428800 cost: 6711 length: 104857600 cost: 3158 length: 209715200 cost: 1974   It seems the length operating cost much more when there are more than 400000 characters.  Did I miss or misunderstand something?


Looking for some explanation on how going fullscreen mode with HWND window, I found this response   The chromium response code has this line:  saved_window_info_.maximized = !!::IsZoomed(hwnd_);   from this file  on line 56  I read:  var bar equal not not of mother method   Is this correct ?  What this "!!::IsZoomed()" means ?  Why not just  saved_window_info_.maximized = CWnd::IsZoomed(hwnd_);   ?


Don't get result when I try to read console output error in java

I'm using NetBeans to build a java project, I try to read every error shown in the console and put it in frame to be shown to user. I searching for a way to do that I found Console c=System.console() to take every output written in console so I try first to test this command by read errors and put them in a file    if(c.readLine().equals("")){         System.out.println("OK!!!");     }else{          System.out.println("not OK!!!");         try {          FileWriter myWriter = new FileWriter("Error.txt");          myWriter.write(""+c.readLine().toString());          myWriter.close();          System.out.println("Successfully wrote to the file.");       } catch (IOException e) {          System.out.println("An error occurred.");          e.printStackTrace();        }     }   But I get this error exceptionException in thread "AWT-EventQueue-0" java.lang.NullPointerException  And this error exception still even after I put System.out.println("Something here");in main project to see if this exception shown because I don't put nothing in console but gone when I scanner something in console, but this is not what I looking for so how can I read error from console?


Latex documents often come with a number of different files. What does a .dtx file usually specify? Please assume that the person reading your answer has next to no experience with using LaTeX. I don't care about the syntax used inside of a .dtx, or how to write a .dtx, I just want a short explanation of what it does.  As an example, inside of a .dtx file put out by the association of computing machinery, I found the following:  % \begin{macro}{\if@ACM@screen} %   Whether we use screen mode %    \begin{macrocode} \define@boolkey+{acmart.cls}[@ACM@]{screen}[true]{%   \if@ACM@screen     \PackageInfo{\@classname}{Using screen mode}%   \else     \PackageInfo{\@classname}{Not using screen mode}%   \fi}{\PackageError{\@classname}{The option screen can be either true or     false}} \ExecuteOptionsX{screen=false} %    \end{macrocode} % % \end{macro}   EDIT: Originally I said that a .dtx was a "configuration file," and then asked what a .dtx did. However, others have informed me that a .dtx is not a "configuration file." I have subsequently edited the question.


The number of 5-digit numbers such that their sum of digits is even is?

I tried this problem by counting the number of 5-digit numbers and then dividing it by 2 just like we do for three digits. Please help. Thank you.


Level 10 vim adventures beers on the wall complete solution

I saw this question  but it doesn't have a full solution. What is the full solution to the 99 bottles of beer on the wall for Vim adventures?  Context: for the sake of being a good SO member I will give more details but a full solution will answer my question. It seems from reading the other post that my register is incorrect for some reason. I can't get the <NL>. I think that's the issue since pasting won't work...


Installing Scanner Driver for Brother MFC295CN

I am trying to get the scanner working on my Brother MFC295CN all-in-one, but Brother's website is so confusing that I can't figure it out to save my own life. Is there anyone who has done this successfully, and if so, can you explain how you installed it? Thanks:)


I can't seem to get a video on a plane in my project to play.  The first frame shows correctly keyed and in place, but it just stays on the first frame and never plays when I move through the timeline.  I rendered the scene at several points to make sure the refresh might have been slow or non existent, but every render has the first frame in it no matter where on the time line I rendered.  I opened a new project and tried there and the same thing happens.  I'm missing something.


Example of a non-normal integral variety $X$ for which "algebraic Hartog's" theorem fails?

In particular, I am interested in seeing an example of a rational function defined on a integral variety $X$ that is regular on the complement of a codimension $2$ closed set, but so that there is no extension to a regular function defined on all of $X$.


All armies and fleets destroyed - Still in Game?

Quick Diplomacy question.   If a country has had all armies and fleets destroyed but still have a home supply centre that hasn't been taken are they still in the game ?   I believe yes but not sure. Cheers


What is the @ symbol used for in objective-C?

I've seen this symbol - @ everywhere, especially in java and php and none of my books ever explained what it's used for. I'm learning objective-c right now and the code says      @property (weak, nonatomic) IBOutlet UITextField *textField;   I've tried googling what @ is but no search results came up. Can anyone tell me what it's used for?


Significance of Static variable in a Trigger

Can anyone help me in understanding the significance of having a Static variable in Trigger with any real time example. For Example  Trigger on Account(after Insert,after Update) {    Static String testVariable = 'Hello' // Why do we declare Static in a trigger what is the significance?  }   I understand the significance of it in a class. A static variable defined in a class serves as a common variable which is shared across all the objects of the class.


I recently had a question, I know that a pointer to a constant array initialized as it is in the code below, is in the .rodata region and that this region is only readable. However, I saw in pattern C11, that writing in this memory address behavior will be undefined. I was aware that the Borland's Turbo-C compiler can write where the pointer points, this would be because the processor operated in real mode on some systems of the time, such as MS-DOS? Or is it independent of the operating mode of the processor? Is there any other compiler that writes to the pointer and does not take any memory breach failure using the processor in protected mode?  #include <stdio.h>  int main(void) {     char *st = "aaa";     *st = 'b';      return 0; }   In this code compiling with Turbo-C in MS-DOS, you will be able to write to memory


When to add "the", "a" or when not to add "the" or "a"?

What's the difference (or correct way of saying it) between the followings:   "Review plan" vs "Review a plan" vs "Review the plan"? "Agree on plan" vs "Agree on a plan" vs "Agree on the plan" "Implementation of the plans" vs "Implementation of plans? vs "Implementation of plan"?   I suppose it boils down to when do you add "the" or "a" or not add it at all?


Which of These Definitions Is Correct for a Proximal Operator?

For given function $g(W)$, where $W \in R^{M \times T}$. I have seen two different definition of proximal operator of it, but I don't know which one is correct ?  One with $L_2$-norm, and second one with Frobenius norm   $$prox_g(W)={arg\,min}_u(g(u) + \frac{1}{2} |||u-W||_2^2 )$$  $$prox_g(W)={arg\,min}_u(g(u) + \frac{1}{2} |||u-W||_F^2 )$$


Why the "delete" button present on some sites (on the profile page) of SE network, but not on the other?  For example, I have "delete" on , , . But not on other.


I need to remotely grab the Bluetooth ID from multiple machines throughout my network. What are the best ways to remotely obtain the Bluetooth ID in OS X?


What level of magic prowess did Harry Potter have?

I have a question in reading Harry Potter yet again.  How strong, vs. Voldemort aside, is Harry?  We see all these comparisons, like Snape and his potions book, Tom and his accomplishments, the twins and their abilities, and Dummbldor.  So, is there anything that we might base his magic level on?  I mean, it seems that he lacks a strong magic knowledge.  He mentions at the end of Goblet of knowing a boatload of hexes when giving the gold to the twins.  I reference Robert Jordan and his epic Wheel of Time where each user of the Power could sense strength, how do we know relative strengths with magic, and where would Harry stand?


Maximal ideals of polynomial ring with two variables that contains ideal generated by irreducible polynomial

Consider the polynomial ring $R=F[x,y]$, where $F$ is a field. Let $p(x)\in F[x]$ be an irreducible polynomial.  What are all the maximal ideals of $R$ that contain the principal ideal $p(x)R$?  My attempt:  By correspondence theorem for rings, this is equivalent to finding all maximal ideals of $R/p(x)R$. $p(x)R$ is a prime ideal of $R$, so $R/p(x)R$ is an integral domain. I am kind of stuck here.  This is a continuation, but not an exact duplicate of my previous question ().  Thanks for any help.    Update: I have an attempted solution using $R/p(x)R\cong K[y]$, where $K=F[x]/(p(x))$.  Then let $\pi:R\to K[y]$ be the quotient map. Then since the maximal ideals in $K[y]$ are $g(y)K[y]$, by correspondence theorem, the maximal ideals of $R$ containing $p(x)R$ are $$\pi^{-1}(g(y)K[y])$$ where $g(y)\in K[y]$ is an irreducible polynomial.  I am a little dissatisfied with my answer (mainly because of the $\pi^{-1}$), is there any more explicit representation of the maximal ideals $\pi^{-1}(g(y)K[y])$?


How to add bubble count in WordPress wp_nav_menu menu?

I have to add a bubble notification in WordPress wp_nav_menu like the following code.

 Tickets 2

 Log-out

   Here I have to add this part in it.   2   I have seen this one and tried it.   add_action( 'walker_nav_menu_start_el', 'wpse_10042_nav_menu_post_count', 10, 4 );   function wpse_10042_nav_menu_post_count( $output, $item, $depth, $args ) {      $output .= ''.my_function_here().'';      return $output; }   And get it from here   But the problem is its adding to every menu link. I want to add it to only one menu item. Not everyone in the list.


Prove that if H ∪ K is a subgroup of G...

Suppose G is a group, with subgroups H and K.   Prove that if H ∪ K is a subgroup of G implies that H ⊆ K or K ⊆ H.   I'm not really sure how to start this, I can prove that H ∩ K is a subgroup but I don't know how to approach the union. Any help is appreciated.


How to prove a general matrix invertible given by as below?  How to prove that $A^TA+I$ is always invertible for $\forall A \in \mathbb{R}^{n\times n}$?


Can we have Sharepoint survey with anonymous responses?

I have tried many tutorials but I am still not able to figure out how to create Sharepoint surveys for which anonymous people can respond to.  Anonymous users can see the survey web part and the response button. But when an anonymous user clicks the button, it asks for a login within a popup. If the user clicks cancel, the page becomes blank with "401 UNAUTHORIZED" message.  I have enabled anonymous access for the web application, site collection and site. I have done the step of setting unique permissions on the survey list and letting anonymous users read and edit and add all responses.  I am still now able to solve it. Thanks in advance for any help. Even pointers to articles or books are appreciated.


I need to do some work, I know the command  \begin{cases} do this symbol "{" at the beggining of the operation, but now I need the other one, "}" that symbol, at the end of the operation. How can I do that? I want this:  And I know how to do this:  Thanks!


Can changing desktops environments affect my programs/personal data?

If I install a different desktop environment on ubuntu, will it delete files or programs installed earlier?  Could I use those programs installed with ubuntu if I replace the environment with xfce?


I can't seem to be able to apply a texture to an extruded .SVG.  Note:  does not solve the question as it relates to an older version of Blender: there's nothing like a "grey dot icon on the right side of the Color selector" in my Blender version.   Here's what I do: 1) Import SVG and extrude  2) Transform to mesh (Mesh from Curve: Alt-C, 2)  3) Import texture file, and set texture coordinates as "View"  4) Set the viewport shading to Texture  5) Notice the the mesh does not get textured properly 6) Go to edit mode to check if something is weird 7) Notice that there IS something fishy   What am I doing wrong? Thanks AC  My materials look like this:       @cegaton:  This is how my blender looks like:   If I click on "New" this is what I get:   While this is what YOU see:   How can I do it with my GUI?


Black screen after installing XDM on ubuntu… and I lost all of my settings

I'm on Ubuntu 17.04 and I recently installed the xdm package by accident, thinking it stands for Xtreme Download Manager. Now I have a black screen on Ubuntu. Before I log in, a window appears and it says:  Welcome to Ubuntu login: password:   After logging in using this black screen, I tried this command:  unity --reset   The problem is, I have lost all of my settings after running this command. And secondly, I see this black screen every time I log in.   What should I do?  Is there a way to fix this problem without removing nvidia? like:  sudo apt-get remove nvidia-*   I also tried these commends:  sudo apt-get install ppa-purge sudo ppa-purge ppa:unity-team/staging  sudo apt-get update sudo apt-get install --reinstall ubuntu-desktop sudo apt-get install unity   Nothing happened!  If it matters, note that in BIOS boot menu I chose legacy mode because I'm using Kali and Ubuntu (dual boot).


problem with enumeration of \subpart and Spanish characters in exam document class?

maybe this is a silly question but I am stuck. When I was trying to change the \subpart enumeration in the exam class from i,ii,iii to (i), (ii), (iii) it worked with the MWE that I am including  %https://tex.stackexchange.com/questions/241670/how-to-change-the-  enumeration-of-subpart-in-exam-document-class \documentclass[11pt, spanish]{exam} %\documentclass{exam} %caracteres en español \usepackage[spanish]{babel} %\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} %%%%%%%%%%%%%%% \renewcommand{\thesubpart}{(\roman{subpart})} \renewcommand{\subpartlabel}{\thesubpart}   %% to remove the dot \begin{document} \begin{questions}   \question ¿Hola cómo estás?    \begin{parts}    \part ...     \begin{subparts}      \subpart ... Hola ¿qué haces?      \subpart ...      \subpart ...    \end{subparts}   \part ... \end{parts} \end{questions} \end{document}   but when I am trying to change the language to spanish the \subparts change again to Uppercase (I), (II), etc. Only works in english. I have been trying with UTF and ANSI and does not work. Please help, I do not know what I am doing wrong, thanks in advance.


Is there a way to protect eyes from negative effects of computer and mobile screen?

People who work on computer and smartphone during most hours of the day are prone to impacts of the light of these screens. I have read about the negative effects of the light from screen. So I was wondering if we have to technology that can protect the eyes from the damage these screen pose to the eyes.  Are there any specific types of glasses or anything else that can help?


What is the maximum convergent $x$ in the power tower $x^{x^{x^{x\cdots}}}$?

In the power tower $x^{x^{x^{x\cdots}}}$ where there is an infinite stack of $x$'s, what is the maximum convergent number? I know the answer by playing with the form $x^y=y$ and using Mathematica, but I don't know how to solve this by hand.


Backwards compatibility for QGIS 3.2.1 Processing Modeler

I have created multiple models using the Processing Modeler in QGIS 2.18.15. However, I could not open these .model files in the user interface for the Graphical/Processing Modeler in QGIS 3.2.1, which seems to only accept .model3 or .MODEL3 files. Also, there is an option to save the (.model) file as a Python (.py) file in QGIS 2.18.15.  Is there a way that I can make either the (.model) or (.py) files from QGIS 2.18.15 compatible for QGIS 3.2.1 Graphical/Processing modeler? Since the alternative to that would be to re-create the Processing Modeler manually from scratch.


How to change file extension with Python?

I'm trying to make a program that will take a file, say my_test_file.log and make a new file called my_test_file.mdn. I'd like to be able to use this program by typing python renameprogram.py my_test_file.log into the command line. The original file will always end in .log.


Let $ D = 2^\mathbb{N} $, i.e., D is the set of all sets of natural numbers.   What's the meaning of this definition? Intuitively, I would suggest that $ D = \{1,2,4,...\} $ but the explanation "set of all sets" leads me to the guess that this is wrong.


if $x,y,z$ are positive real numbers,Prove:$$3(x^2y+y^2z+z^2x)(xy^2+yz^2+zx^2)\ge xyz(x+y+z)^3$$ Additional info:$\sum_{cyc}$ denotes sums over cyclic permutations of the symbols $x,y,z$. I'm looking for solutions and hint that using Cauchy-Schwarz and AM-GM because I have background in them.  Things I have done: Writing Left hand side in expanded form:$$LHS=3(\sum_{cyc}x^3y^3+\sum_{cyc}xy^4z+3x^2y^2z^2)$$ Right now I don't have good idea were to start(Is expanding and looking for AM-GM is good?).So any hint is appreciated. Source : This inequality can be found as Problem 42, page 13, in the book "Old and New inequalities" by Titu Andreescu, where it is attributed to Manlio Marangelli.


Counting the number of strings without consecutive repitition.

A team is to play $n$ games in a row.  In how many ways could they play this series of games without losing two games in a row.  There are $2^n$ total games to be played.  The number of games without consecutive losses would be $2^N$ - (Number of games with at least one consecutive loss).  I'm having a hard time counting the number of games with at least one consecutive loss.  In particular, I can't think of a way to count the number of games with $m$ consecutive losses.  Could someone provide some guidance?


Is there any way to save bangali Language content in database without encoding?

Is there any way to save Bengali Language content in database without encoding, like: আমার will be saved exactly as আমার. But it is inserted as à¦—à¦²à§à¦ªà§‡ à¦—à¦²à§à¦ªà§‡ à¦¸à¦¿ à¦ªà§à. it is being coded before save but how could I prevent this automatic encoding?


I i have Fujitsu AH550 laptop, i put a password on the bios and i forget the password and since i have a broken cd drive and currently no alternative, i can't use usb boot at all.  I searched for a way to reset the password and came with nothing, i tried even flashing the bios but that didn't work from me too.  I tried searching in the documentation of the bios and here what was written, it's really depressing.  Remember your passwords! If you set and forget your User and Master hard disk passwords, Fujitsu Computer Systems will not be able to reset it. You may lose data and have to replace your system board or hard disk drive.   Is there anyway to change the boot order from windows, and is it possible to force boot from usb, or maybe add a usb boot along the windows mulit booting list, if anybody have any idea i would really be grateful.  Update:  Lately i have tried contacting Fujitsu Support and they told this would cost a charge of 155$ and is covered in warranty, but the thing is when i asked if i have to send my laptop they told that it can be done over the phone. This means that there is maybe a generic or something else.  If anyone know of such thing or have anyother way, it would really be great.


I use gcc 4.5.1 and get warnings like:  warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'   The reason is "#pragma GCC diagnostic push", which doesn't exist for GCC < 4.6.  I can't change the code (it is not my) and the gcc version too. How to disable these warnings? Some gcc flags may be?  P.S. I saw , there isn't answer to my question.


Ubuntu 11.10 won't let me login; it kicks me back to login screen

I was just copying files from my external HDD to my .wine directory, when I noticed the place where the launchers are (Unity desktop) was getting fuzzy and holding onto graphics from the things in the location prior(i have it autohide when a window covers it). I assumed it was just RAM problem, so I canceled the copying, since it wasn't actually important. The glitch remained, and so did another; very slow response time. The mouse moved just fine, but windows were waiting about a minute after I hit the x button to close or even switch active window. Once again, I blamed RAM (only have 2 GBs) so I restarted. Usually, it autologs me into my account, since I'm the only user, but this time it presented me with the login screen. I thought it odd, but tried to log in. A black screen with some text pops up (assuming terminal screen) for half a second then kicks me back to the login screen. I tried the guest account and no luck. I went into terminal (alt+ctrl+f1) and logged in and it worked. I deleted .Xauthority, made new account, and even rebooted quite a few times, all to no avail. Anyone have an idea?


The subscript size for formulas in beamer presentation

First of all sorry because this question may be duplicated. I don't know why the question was uploaded with another user's name and I can't edit it (may be you can delete the previous question with the same title). The question is the following:  I am creating a beamer presentation where I have a lot of formulas. Between the packages used I have \usepackage{amsmath} and the theme for the presentation is \usetheme{Warsaw}.  As it can be seen in the attached picture, the size of the sub(super)script is bigger than the normal writting.     Anyone knows a set of basic packages in order to get the classical formulas, without these size changes?  The code is the following  \documentclass[]{beamer}  \setbeamercovered{transparent}   %--------------------------% % To add enumeration index %--------------------------% \addtobeamertemplate{navigation symbols}{}{%     \usebeamerfont{footline}%     \usebeamercolor[fg]{footline}%     \hspace{1em}%     \insertframenumber / \inserttotalframenumber  } \setbeamercolor{footline}{fg=black} \setbeamerfont{footline}{series=\bfseries}   %---------------------------------------------------------------------------------%  \usepackage{amsmath,amssymb}    % Theme for the presentation \usetheme{Warsaw} % Change the colour \usecolortheme{spruce}  \setbeamertemplate{footline}{}  % Delete the footline with the names    \begin{document}    \begin{frame} \frametitle{\textbf{Algorithm}: step \texttt{s}}   \scriptsize  \textbf{STEP \texttt{s}}  \vspace{0.25cm}  Let $B^{(s-1)}$ be the variable  for the $\mathit{(s-1)}$-th step, let's take the sets $I_+^{(s-1)}$ and $I_-^{(s-1)}$ of length $r_+^{(s-1)}$ and $r_-^{(s-1)}$ respectively,and define:\\  \vspace{0.25cm}  \begin{center}  $B^{(s+)}= \sqrt{\tfrac{(r_+^{(s-1)} + 1)*r_-^{(s-1)}}{r_+^{(s-1)} + r_-^{(s-1)} + 1}} $  \end{center}   \end{frame}  \end{document}


I am trying to use the titlesec package to achieve this but I'm not certain as to what the syntax should be...  \usepackage{titlesec}  \newcommand{\centeredsection}{\titleformat{\section}{\centering}}   Thanks for your help.


Does the location of placing my  in html matter? Why does this code only work in one example? (code attached)

This doesn't work:
Dinosaurs are cool.
        <button class='change-text'>Change Text</button>   But this does:
Dinosaurs are cool.
    <button class='change-text'>Change Text</button>       Any idea why? I've been told to link my javascript's at the top of the head, and that doesn't make this work either.   I'd love some help, thank you so much =)


How do i install OS X on new hard drive? I have macbook pro mid 2010.

I have 13 inch mid 2010 macbook pro. Just installed new 1T hard drive but now am hesitating on what to do next. I have my old hard drive converted to external drive and a back up drive as well.


In tikz, if I use the the absolute coordinates of the point, the shift key works well and the object is moved by the shift, but I use the the command \coordinate to store the point,  the shift key doesn't work. I wonder why this happen.  \documentclass[12pt,tikz]{standalone} \begin{document}     \begin{tikzpicture}         \coordinate (a) at (0,0);         \draw (a)--(0,1);         \draw[xshift=2cm] (0,0)--+(0,1);% works;         % \draw[xshift=2cm] (a)--+(0,1);% not works     \end{tikzpicture} \end{document}


I am asked to do a program in which I have check if the names entered by the user is in the file I have created on my computer. I wrote the code and it does not show any compilation error but when it runs the boolean expression is always false. Please do help me out with this. The sample names on the boy names file is Martin and on the girl names is Emily.   import java.util.*; import java.io.*; public class nameSearch1 {     public boolean readingGirlNames () throws IOException     {         String[] girlNames = new String [200];         int i = 0;         File file = new File ("GirlNames.txt");         Scanner inputFile = new Scanner(file);          while(inputFile.hasNext() && i < girlNames.length )         {             girlNames [i] = inputFile.nextLine();             i++;         }         inputFile.close();          Scanner keyboard=new Scanner(System.in);         boolean girlName = false ;         nameSearch object4 = new nameSearch();         System.out.println(" Enter the Girl Name you wish to see : ");          String nameCheckGirl = keyboard.nextLine();          for ( int index = 0 ; index < 200 ; index ++ )         {             if( nameCheckGirl == girlNames[index])             {                  girlName = true;             }          }         return girlName;     }      public boolean readingBoyNames () throws IOException     {         String[] boyNames = new String [200];         int i = 0;         File file = new File ("BoyNames.txt");         Scanner inputFile = new Scanner(file);          while(inputFile.hasNext() && i < boyNames.length )         {             boyNames [i] = inputFile.nextLine();             i++;          }         inputFile.close();             nameSearch object2 = new nameSearch ();         Scanner keyboard=new Scanner(System.in);         boolean boyName = false ;          System.out.println(" Enter the Boy Name you wish to see : ");          String nameCheckBoy = keyboard.nextLine();          for ( int index = 0 ; index < 200 ; index ++ )         {             if( nameCheckBoy == boyNames[index])             {                  boyName = true;             }          }         return boyName;     }      public static void main(String[]Args)     {         Scanner keyboard = new Scanner(System.in);          nameSearch1 object1 = new nameSearch1 ();          try         {             System.out.println(" The search result for the Girl's name is : " + object1.readingGirlNames ());         }         catch (IOException ioe)         {             System.out.println(" Exception!!! ");              ioe.printStackTrace();         }          try         {             System.out.println(" The search result for the Boy's name is : " + object1.readingBoyNames ());         }         catch (IOException ioe)         {             System.out.println(" Exception!!! ");              ioe.printStackTrace();         }      } }


Does Sunlight Sensitivity impose disadvantage from Holy Nimbus?

Picture this: I'm playing a , who have the Sunlight Sensitivity trait (Volo's, p. 119)     You have disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight when you, the target of your attack, or whatever you are trying to perceive is in direct sunlight.   Now, I assume from that wording that a normal "bright light" isn't enough - has to be direct sunlight. Except then we get something like , which not only creates a giant mah lazor, it also creates actual sunlight. (PHB, p. 229)     For the duration, a mote of brilliant radiance shines in your hand. It sheds bright light in a 30-foot radius and dim light for an additional 30 feet. The light is sunlight.   So far so good, it sounds like standing next to (or being, come to think about it) the caster while he's doing his thing is a bad thing for my eyes.  Except now we come to the 's level 20 feature, Holy Nimbus (PHB, p. 86):     At 20th level, as an action, you can emanate an aura of sunlight. For 1 minute, bright light shines from you in a 30-foot radius, and dim light shines 30 feet beyond that.   Here, the light is also called sunlight, but it's in the portion of the rules generally reserved for the "fluff" of the rules - is it actally sunlight? Would it hurt my eyes? Is bear-hugging vampires a Devotion Oath paladin sport now?


Enviornment texture not acting as expected

Recently, I decided to get back into Blender, just as a fun hobby. After modeling some things, I tried to use an HDR image to light my scene. When I rendered the scene, the HDRi was not working properly.    As you can see, all the materials render fine, but the HDRi is not working properly. Below is the HDR image I used.


If M is a non-orientable closed connected 3 manifold prove H1(M) is an infinite group.

This is an example from a question sheet (non-assessed) of a university class. If M is a non-orientable, closed, connected 3 manifold, prove $H_1(M;\mathbb{Z})$ is an infinite group. I know that since $M$ is non-orientable it follows that $H_3(M;\mathbb{Z}) = 0$ and since $M$ is connected $H_0(M;\mathbb{Z}) = \mathbb{Z}$. I want to apply a combination of Poincare duality and Universal coefficient theorem to try and find a contradiction if $H_1(M;\mathbb{Z})$ has no free part. However poincare duality doesn't apply here so I'm stuck.  I would appreciate any hints as to how to proceed.


Quick/easy SEO options for a legacy site?

We have a legacy site that offers courses/training. We would like to improve SEO without changing most of the legacy code.   Based on my research, these are the quick/easy things we can do:   Put the company name at the end of the Page Title Make sure links are keywords instead of "click here"  Review content to see if it can focus on search phrases: ("Our technology training" instead of "Our Training") Always link to the "domain name" instead of the "default" page ( instead of ) Create a blog and publish content regularly  Use keyword rich captions on images   Things that are not helpful:   Meta keywords/descriptions Friendly urls   Does anyone have any other quick/easy suggestions we can do to improve SEO?


Getting the .NET Framework directory path

How can I obtain the .NET Framework directory path inside my C# application?  The folder that I refer is "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"


Python - check if values are inside objects in list

In something like this  class Obj:     def __init__(self, x, y):         self.x = x         self.y = y   li = [Obj(0, 0), Obj(0, 1), Obj(2, 3)]  print(Obj(2,3) in li)   I have a False output because even if x and y are the same it counts the object as a different instance. I can remedy using a loop inside the list and checking  if(2==o.x and 3==o.y):     return True   Is there some cleaner way to get this without using a loop ?


How long will a frozen lamb roast stay "good" ?

I have a lamb roast in the freezer ( uncooked) that I put there at Christma, will this still be  "good"?  thank you, Claudia


Word that describes people who are easily impressed?

Is there a specific word that describes people who are easily impressed?


I get notification in Mac, though App is installed in iPhone

There is one App installed in my iPhone, that is news App. Now, whenever I connect my iPhone to Mac, I get notification also in Mac.  What may be the reason ?  I want to get rid of this..     EDIT 1   I disable it from Preference. But as shown in the following image, I don't know why this App is shown in Mac. It only exists in iPhone.  See App named NDTV.


Cardinalities of bases of a free $R$ module are same?

Let $R$ be a ring with no zero divisiors such that for all $r,s\in R$ there exist $a,b\in R$ not both zero with $ar+bs=0$.   If $R=K\oplus L$ then $K=0$ or $L=0$. if $R$ has an idendity then any two bases of free $R$ module $F$ have the same cardinality.   I am done with first statement, I guess that  I will use first part to  show the second one.  I need help in second one.  Thanks.


In order to prove that   $$\sup A = -\inf(-A)$$  obs: $A$ is limited  I did:  think of $\sup A$ as a number  $$a\le \sup A, \forall a\in A \implies -a\ge -\sup A, \forall a\in A$$ Doesn't that implies that $-\sup A$ is indeed $\inf(-a)?$ I think I should prove that if there is another number that is in the middle, then this number cannot be the sup.   Also, why $A$ has to be bounded?


Do different orbitals overlap in multielectron atom?

We know that there are many  kind of orbitals and we also know that these are regions of maximum probability where an electron can be. Orbitals are plotted generally on XYZ plane.  The doubt arises from:   (source: )    So here my doubt lies, we show each orbital individually for the sake of understanding but how we visualize these for an atom for eg carbon atom has one 1s orbital, one 2s orbital and 3 2p orbitals but how we show all orbitals in a single atom [1s and (2s,2p) orbitals are of different energy levels] and do all these different orbitals overlap inside the atom? (because we generally consider reference point as origin for plotting any 3d figure) and is the image valid ?


How to access Submitted date of apex jobs because it is not a standard field of asyncapexjob ?


hostname -I spamming more than one IP address

Sometimes I run   hostname -I   on my machine and got only one local IP returned like 192.168.0.10, but lately, there is occasions where I type it and got in return both 192.168.0.10 192.168.122.1.   If I go to my router page and to traffic settings, I don't see this second IP connected to it. How can I go further to investigate what is exactly this other IP, if its related to some other program or even to a security problem?


How could I use something similar to cd -, which goes to the previous directory in history, in order to go back even further in directory history? For instance lets say my history is: (1 being current.)    ~/ ~/otherDirectory ~/really/long/directory/name/that/i/don't/want/to/type/again/but/dont/use/enough/to/make/an/alias/for   Using cd - here would bring me to ~/otherDirectory#2, and if i use it again it brings me back to ~/#1(which I don't want to be in) rather than to the really long directory #3(which I do want to be in). In summary how do I navigate further back into directory history? Is there some bash I could write to add this functionality?  I am trying to go back through directory history, (more than just one directory) much like one would go through command history using the up arrow. Hopefully this clarifies that this question has not been asked before.


if 2 random variables have exactly same mean and variance

If two continuous random variables have exactly the same expected value and variance, do they always have the same distribution?


Display summary of paragraph text field in twig

I have a paragraph type called News. In this paragraph type I have a text field (field_news_intro ) with a summary. How do I display the summary in a twig template? content.field_news_intro.summary seemed logical, but it doesn't return anything. My template is called paragraph--news.html.twig
   {{ content.field_news_intro.summary }}

   {{ content.field_news_intro }}


How do I change a compound path back to text?

I'm trying to edit my designer's artwork by changing the "5" into a "4". I have the font installed already.  When I try to open the design file in AI and highlight the "5", to my surprise it isn't a text object. It looks like it's something called a compound path. How would I update it's type so I can type "4" in it?


How can I fix this error? This is not my code, this code is an extension for an app I love playing

I am running a .jar file on my macbook through terminal, as it will not load directly by me clicking it even though i have all the latest java updates. When i click the .jar file, I receive the following error:  Exception in thread "main" java.lang.NullPointerException at YSFlightMU.<init>(YSFlightMU.java:169) at YSFlightMU.main(YSFlightMU.java:2507)   I have read through a number of the Q&A's on the site; however, I still couldn't fix the issue. The two lines with issues (168 & 2507) are:  for (int i = 0; i < dir.length; i++)   and  YSFlightMU ysfmu = new YSFlightMU();


Is there any way of making a snow golem survive in hot biomes?

Snow golems won't survive in the Nether (neither spawned in nor built ones). Is there a way to make a snow golem survive in the Nether and other hot biomes in vanilla Minecraft (i.e., without using mods)?


For a phrase that is not a proper name, I want to have the first letter of each word uncapitalized except when it starts off a sentence, in which case the very first letter of the phrase is capitalized. But that its not working with acro. This code is the one below.   \documentclass{article} \usepackage{acro}  % class `abbrev': abbreviations: \DeclareAcronym{CNO}{   short = CNO ,   long  = Clasificador Nacional de Ocupaciones ,   class = acro   }   % class `nomencl': nomenclature \DeclareAcronym{e0}{   short = \ensuremath{e_0} ,   long  = Esperanza de vida al nacer ,   sort  = e_0 ,   class = nomencl   }   \begin{document} \section*{List of acronyms} \addcontentsline{lof}{section}{List of acronyms}  \ac{evn} Si yo vengo escribien y el \ac{CNO} aperece primero y luego \ac{CNO}, \ac{ONU} and \ac{evn} are abbreviations whereas \ac{e0}.  \printacronyms  \printacronyms[include-classes=abbrev,name=Abbreviations]  \printacronyms[include-classes=nomencl,name=Nomenclature]  \printacronyms[include-classes=acro,name=Acronimos]  \end{document}


Ubuntu 17.10 stuck at login screen ( mouse cursor not moving ) and keybord is also not working , after upgrading from ubuntu LTS 16.04 , Please help


Can I found a Homeomorphism between open unit disk and complex plane? I already proved "the complex plane is conformal to a simply connected region", but I don't know if this is useful. Can anyone give a hint?


Is there a way to use \nocite to print all references with a certain keyword?

I have a large database of references and I would like to print all uncited references that are tagged with a certain keyword. How can I achieve this? Thanks.


how to stop increase product quantity after click add to cart in drupal 7?

I am using drupal commerce in my site its working fine. I need to stop increase product quantity when user click  "add to cart" same product second time. In my case user can add multiple products in cart but not same products. and user can increase quantity via quantity fields not a click on add to cart.  I used this rule its working.But I have mention in my question, when I increase quantity from cart page then quantity should be increase.. but this rule restricting me to increase quantity.  > { "rules_restrict_quantity_to_1" : {  >     "LABEL" : "Restrict quantity to 1", >     "PLUGIN" : "reaction rule", >     "REQUIRES" : [ "rules", "entity" ], >     "ON" : [ "commerce_order_presave" ], >     "IF" : [ >       { "user_has_role" : { >           "account" : [ "site:current-user" ], >           "roles" : { "value" : { "1" : "1" } } >         } >       } >     ], >     "DO" : [ >       { "LOOP" : { >           "USING" : { "list" : [ "commerce-order:commerce-line-items" ] }, >           "ITEM" : { "list_item" : "Current list item" }, >           "DO" : [ { "data_set" : { "data" : [ "list-item:quantity" ], "value" : "1" } } ] >         } >       } >     ]   }   }


I actually did this a few weeks ago but I can't remember how.  I want to create points on the perimeter of a set of polygons at a specific distance interval. I am using ArcMap.  I could do Polygon Vertices to Points, but that would only give me points on the vertices, which I don't necessarily want. What I want is a regular set of points on the perimeter of the polygons.  This is my base polygons:    And this is what I would like to get (the points at regular intervals):    Any ideas?


Is there a native StackOverflow.com app for iPad/iOS?

Is there a native app for Stack Overflow for iPad/iOS?  The site's not too bad on iPad via the browser, but it's also a bit of a pain to use at times.


I have a dell laptop with 4GB of ram and 500GB of storage.I just finished installing windows 8.1 32bit version, which utilizes 3GB of ram.  Can I install and run Ubuntu to utilize that unusable portion of Ram.Then how?  Thanks in advance


When can an Agar virus eat a Thorn Blob?

I see sometimes that some really huge viruses can eat the thorn blobs. However, some more have gotten popped when tried to do it.  So, what should be the general size and cases in which a virus can be able to eat a thorn blob?


The best practice of download objects with millions of records

We are looking for a scalable & performant way to download Salesforce Objects which can support objects with tens of millions records. I have two approaches in mind:  Use Bulk Query API 2.0: It's simple and easy-to-use API, however it's streaming API which doesn't support concurrent downloading (you only get the 'locator' only from the previous batch read: ). This means the download job can only be single-threaded.  Use Bulk Query API 1.0: It support parallel downloading with 'PKChunking' enabled, however this feature is not available for all Salesforce objects, for example, the Order, OrderItem objects doesn't support PkChunking.   Please help me understand which one is better and if there is any better way to do the same. Thanks.


I done a binary regression,it's possible that the the plot of residual vs Predict has two different line? I never see before one like this


JavaScript Objects as argument to functions

I am a little confused about the way JavaScript treats objects passed as arguments to functions.  For example, in the following code:    var a = {   val: "old" }; var b = {   val: "old" };  function update(a, b) {   a.val = "new";   b = {     val: "new"   }; }  update(a, b);  console.log(a, b);     The output comes as:    The val property of a is changed but that of b is not. I read somewhere that Objects are passed by reference to functions. Can anyone please explain this behaviour.  Thanks in advance.


how to can I Add a method on Java.String class

I need to add a custom method on java.lang.String class  I am looking for a java equivalent to the C# extension methods feature.  ...is there any language feature that will allow me to write an extension method for a final class ?  my code in c#:  public static string GetLang(this string value, bool isSplited = false, LanguageType? languageType = null)         {             if (String.IsNullOrWhiteSpace(value))                 return null;              var language = (languageType ?? LanguageProvider.Language).ToString().ToLower();              if (isSplited)             {                 var items = new List<string>();                 foreach (var item in value.Split('|'))                 {                     var multiLang = JsonConvert.DeserializeObject<Dictionary<string, string>>(item);                      if (multiLang.TryGetValue(language, out string textValue))                     {                         items.Add(textValue);                     }                     else                     {                         items.Add($"[{language}]");                     }                 }                  return string.Join(" ", items);             }             else             {                 var multiLang = JsonConvert.DeserializeObject<Dictionary<string, string>>(value);                  if (multiLang.TryGetValue(language, out string textValue))                 {                     return textValue;                 }                 else                 {                     return $"[{language}]";                 }              }         }   i want use this similar feature in Java