With the following code:  \RequirePackage[     english,     ngerman]{babel}  \RequirePackage[     autostyle = true,     babel,     german = quotes]{csquotes}  \RequirePackage[     authordate,     bibencoding = auto,     strict,     backend = biber,     natbib ]{biblatex-chicago} \DeclareCaseLangs*{german} \bibliography{./_assets/bibliography.bib} \defbibheading{head}{\chapter{Literaturverzeichnis}}  \AtBeginBibliography{\def\UrlFont{\scriptsize\tt}}   how do I get rid of the first part here before 2000?

I would like to create a custom format for citing authors' names in the text, let's call it "newformat". One option I can think of is creating a new bibmacro for names where the parameters are changed to my liking, such as   \documentclass{article}    \usepackage{filecontents}   \usepackage[backend=biber]{biblatex}[2016/01/01] %the latest version of biblatex?   % biber is version 2.4; the latest?  \begin{filecontents}{\jobname.bib} @misc{Doe12,   author = {Doe, John},   year = {2012},   title = {A macro for formatting names}, } \end{filecontents}  \addbibresource{\jobname.bib} \nocite{*}  \newbibmacro{name:newformat}{\printnames{authors}} \DeclareNameFormat{newformat}{%   \usebibmacro{name:newformat}{\textbf{#1}}{\textbf{#3}}{#5}{#7}%   \usebibmacro{name:andothers}% }  \begin{document}    \section*{Testing the format here}    I am citing   \citename{Doe12}[newformat]{author}    \printbibliography % to make sure that the .bib file is properly formated.  \end{document}   Here, I just used \textbf for the sake of the example, but I ultimately want to use other functions, say upper case or palindrome!  However, I get this weird error message:  ! Illegal parameter number in definition of \blx@defformat@d. <to be read again>                     3 l.20   \usebibmacro{name:last}{#1}{#3                                      }{#5}{#7}%   which seems to indicate that the second option {#3} is not expected. I am a bit at a lost here; I checked the biblatex package and \usebibmacro{name:last} must be given 4 parameters, isn't it? Please advise.


I've just installed Ubuntu and my fonts look weird on website and in emails.  Below are some screenshots of thunderbird and chromium.   The problem occurs in the following programs:   Chromium Firefox Thunderbird   how can I fix it?  In Thunderbird:   In Chromium:

I've been finding fonts on the internet and  on my system.   What's the easiest way to change my fonts? I would prefer an easy to use graphical way, but answers with command line recommendations are also welcome.


I have to find $\lim_{n\to\infty}\frac{\sqrt[n]{n!}}{n}$.  What I've got:  I express $n!$ as the product of the sequence $b_n=n$.  I know (from a previous problem) that $$\frac{1}{\sum_{i=1}^n\frac{1}{n}} \le \frac{\sqrt[n]{n!}}{n} \le \frac{\sum_{i=1}^n i}{n^2}=\frac{1}{2}$$  From this I know that the limit of the sequence is between $0$ and $\frac{1}{2}$ since $\sum_{i=1}^n\frac{1}{n}$ is divergent.  Second attempt:   I looked up the answer and I saw that the limit is $\frac{1}{e}$, so I tried expressing $\frac{\sqrt[n]{n!}}{n}$ as $$\sqrt[n]{\frac{(1-\frac{1}{n})(1-\frac{2}{n})...(1-1+\frac{1}{n})}{n^{n-1}}}$$ since I know that $(1-\frac{1}{n})^n$ converges to $\frac{1}{e}$, but this also didn't get me anywhere.  Thanks in advance!

Show:$$\lim_{n\to\infty}\frac{\sqrt[n]{n!}}{n}= \frac{1}{e}$$  So I can expand the numerator by geometric mean. Letting $C_{n}=\left(\ln(a_{1})+...+\ln(a_{n})\right)/n$. Let the numerator be called $a_{n}$ and the denominator be $b_{n}$ Is there a way to use this statement so that I could force the original sequence into the form of $1/\left(1+\frac{1}{n}\right)^n$


I'm super new to Blender and I don't know what I did wrong. I was modeling just now, and all of sudden I can't select any vertex on part of my model because there isn't any!  If I switch to edge mode or face mode, the non-affected part of the model behaves normally, but by selecting any edge or face of the problematic part of the model, no gizmo shows, and I see an error message of "Nothing selected" showing under the Transform tab, and I can't use any mesh tool on them. E.g. hit E and no gizmo is there.  FYI, I don't have any modifier on the mesh as you can see on the first screengrab. I could totally extrude faces and merge vertices just half an hour ago.

I have append a mesh (rex) from this .blend .  In edit Mode I see different vertices from objcet mode (see pictures). The vertices of belt are missing!  OBJECT MODE:   EDIT MODE:   How can I edit vertices of belt? Is It a bug?  This is my .blend  maybe can help.


In Ivan Niven's book on "Introduction to the theory of numbers", there is a question in the first chapter that has been boggling me.   Given $p$ is an odd prime and $(a,b) = 1$ where $(a,b) = \gcd(a,b)$, show that $$ \left(a+b,\frac{a^p + b^p}{a+b} \right) = 1 \mbox{ or }p$$  To gain intuition, I started with $p=3$ case. I was able to prove the result by eventually showing that the above gcd was equal to $(a+b,3)$. My guess therefore is that we should be able to show that this gcd is equal to $(a+b, k(a+b)+p(u))$ where $(u,a+b)=1$. However I have not been successful in this endeavor. Perhaps there is an alternate strategy...  I would appreciate any hints/tips/ideas on how to proceed. If I get it, i'll post my method as an answer.

Let $p$ be prime number ($p\gt2$) and $a,b\in\mathbb Z$ ,$a+b\neq0$ ,$\gcd(a,b)=1$ how to  prove that $$\gcd\left(a+b,\frac{a^p+b^p}{a+b}\right)=1~~\text{or}~~ p$$  Thanks in advance .


On StackOverflow, I noticed that there is no tag: reference-request. That is, I have questions of the type: "I am learning X within the context of Y with language Z for application W. What are the recommended references?".  Are those questions within the scope of StackOverflow?  If yes, can someone with reputation > 1500 add this tag please?  If not, then where should I take those question?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I am trying to query the child record using the parent record id. I understand that we have to use the child relation name in the inner query to get the child records.  select id, (select id from child_relationshipname__r ) from parentobjt__c   In my case I use the same way to query but I get the error :  ERROR at Row:1:Column:28 Didn't understand relationship 'cyx__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.   I am not sure why it is throwing error I doubled checked whether the child relationship name is correct.  select id, (select id from  namespc.Impacted_Products__r) from MC_Product_Complaint__c

I am trying to create an Apex Trigger that performs a Rollup from a custom object to Contacts.   Here is the error that I am receiving:      Didn't understand relationship 'Assignments__r' in FROM part of query   call. If you are attempting to use a custom relationship, be sure to   append the '__r' after the custom relationship name. Please reference   your WSDL or the describe call for the appropriate names.   The child relationship name is Assignments.  Below is the code:      trigger RollupActiveAssigmentLevelsToContact on pse__Assignment__c (after insert, after update, after delete) {      set<Id> set_id = new set<Id>();      List<Contact> con_list = new List<Contact>();      if(trigger.isInsert || trigger.isUpdate){         for(pse__Assignment__c myAssignment : trigger.New) {             set_id.add(myAssignment.pse__Resource__c);         }     }     else if(trigger.isDelete){         for(pse__Assignment__c myAssignment : trigger.Old){             set_id.add(myAssignment.pse__Resource__c);         }     }      if(trigger.isAfter && (trigger.isInsert || trigger.isUpdate || trigger.isDelete)){         con_list = [SELECT id,Total_Levels__c, (SELECT id,name FROM Assignments__r WHERE Active_Assignment__c = TRUE) FROM Contact WHERE id IN :set_id];          for(Contact con : con_list){             if(con.Assignments__r.size()>0)                 con.Total_Levels__c = con.Assignments__r.size();             else                 con.Total_Levels__c = 0;         }         if(!con_list.isEmpty())         update con_list;     } }   Below is a snap of the Child Relationship name:


I write because I can’t use the plugin “Geotag and Import photos”. My version is 2.18.13 Las Palmas and it runs on WIN 7 Home. First of all, when I click on “Import photos” and specify the path to photos, I obtain the following error message:   The details are:  File "C:/Users/Emazza/.qgis2/python/plugins\geotagphotos\importphotosdialog.py", line 88, in selectPhotosDir             self.loadTags(dirName)           File "C:/Users/Emazza/.qgis2/python/plugins\geotagphotos\importphotosdialog.py", line 125, in loadTags             with et:           File "C:/Users/Emazza/.qgis2/python/plugins\geotagphotos\exiftool.py", line 179, in __enter__             self.start()           File "C:/Users/Emazza/.qgis2/python/plugins\geotagphotos\exiftool.py", line 162, in start             stderr=devnull)           File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 711, in __init__             errread, errwrite)           File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line 948, in _execute_child             startupinfo)         WindowsError: [Error 2] Impossibile trovare il file specificato   The pointer begins to rotate as if it is working; nevertheless, I can still use the software. Even if I succeed to insert the output shapefile, I can’t see any EXIF tag.   I already installed Exiftool and I can’t understand which is the problem. Any suggestions for these two problems?

I have a lot of Photos with  lat, long, and altitude information. When I start the import, I get an error message. Do I need to prepare a blank point layer before importing? Is there another Python Plugin that is required? I use win7 and Lisboa.


Just bought a consumer grade multimeter, read carefully the instructions and tried some things. I know some very basic things about electricity, but I am unsure whether what I did was safe and didn't damage my multimeter or make it not work properly whatsoever.  After reading many forums I know it is relatively safe to measure voltage. As for current, I know you must be cautious.  What I did was this:   connect the red probe to the 10A plug (2) put the dial switch of the multimeter to 200m (3) turn it on touch the red probe to the positive and black - to the negative of the AAA battery  Nothing blew up. :)   So, here are my questions:   Is it safe what i did for the multimeter? What does the reading 54.0 on the display mean? The red probe is in the 10A plug (2), so how am I supposed to interpret the scale to the switch? I mean, there is a position that says 20m/10A (4), so I assume that is 10A. But what about the next position 200m (3)? Is it 20A? Because, you know, they say when you don't know what you're measuring it's best to start with the largest scale and work your way down. So, what is the largest scale? Is it 20m/10A (4) or 200m (3)? What about the measurement when the dial switch is in position (4)?  After all, I can't seem to understand how many miliamps is the current that my battery gives. Is it safe to measure if the probe is in port (1)? I know the multimeter didn't blow any fuse, but my OCD wants to know whether the tool suffers from these measurements.   EDIT:   If that measurement is so bad for the battery and the multimeter, as many people say, then is it also bad (for the battery and for the tester) to measure batteries with this battery tester that I bought for a couple of bucks:    EDIT 2:   This concrete meter has a function "Battery test". See in the photos - the dial switch has a "BATT" section for 1.5V and 9V and the red probe must be in plug (1). However, when I test this same battery, it shows 1.27 - just the same as when I measure its voltage. The manual says (copy/paste): "In the measuring ranges BATT 1.5V and BATT 9V, the battery to be measured is charged by an internal resistance, thus you obtain practical information on the condition and functionality of the tested battery". I don't know if the translation of the manual to English is correct, but that's what it says. I still wonder if it does anything different, though. May be it just doubles the voltage meter for people who couldn't figure it out.  That being said, I wonder why don't all multimeters costing more than a few dollars have the same features that the Battery Tester  (costing $5) has.

For some reason whenever I play with a multimeter it always gives me results I never expect. In this case I am attempting to measure the current of a AA battery. I have the multimeter set to 10A on the dial and connecting red to the negative end of the battery and black to the positive end, giving me a reading of about +6.8. However if I switch the dial to 200mA with the same connections the reading goes off the scale but with a negative number, -1. Is this behavior normal? It is a digital Southwire 10030S multimeter.  After testing with an analog meter putting negative to negative and vise versa I get a positive reading of about 5 amps though the gauge gets stuck usually. It says PRIME Cleveland Ohio on the back.    Looks like I had the fuses in the back swapped with each other and after correcting it is now matching the readings of the analog meter :D


i'm getting "undefined reference to ... " errors. Though, i can't find any error in the code.     main.cpp:11: undefined reference to `Grid::Grid(int, int)'   This happens for all the methods of the 2 classes, so i'm going to write here just one class, feel free to ask for the other one too (The other one is a pretty long code).  main.cpp:  #include <iostream> #include "Grid.h"  using namespace std;  int main() {     Grid<int> a(5, 5);      return 0; }   Grid.h:  #ifndef GRID_H #define GRID_H  #include <vector>  using namespace std;  template <class T> class Grid{ private:     int W, H;     vector<vector<T>> grid;     Grid(); public:     Grid(int w, int h);      bool SetContent(int x, int y, T content);     T GetContent(int x, int y); };  #endif /* GRID_H */   Grid.cpp:  #include "Grid.h" #include <vector>  using namespace std;  template <class T>  Grid<T>::Grid(){}  template <class T> Grid<T>::Grid(int w, int h){     W = w;     H = h;     grid.resize(h);     for(int y = 0; y < h; y++)         grid[y].resize(w); }  template <class T> bool Grid<T>::SetContent(int x, int y, T content){     if(x > 0 && x < W && y > 0 && y < H){         grid[x][y] = content;         return true;     }     return false; }  template <class T> T Grid<T>::GetContent(int x, int y){     if(x > 0 && x < W && y > 0 && y < H){         return grid[x][y];     }     return grid[x][y]; }   This is the compiler command, if necessary (I guess it's a compiling error):     g++ -o dist/Debug/MinGW-Windows/pacman build/Debug/MinGW-Windows/Grid.o build/Debug/MinGW-Windows/Vector2.o build/Debug/MinGW-Windows/WinAPI_Console.o build/Debug/MinGW-Windows/main.o  -static-libgcc -static-libstdc++   If you need more informations, just ask, i'll wait for replies here.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I was pretty hyped to come to Stack Overflow and I want to contribute and talk about coding on my . But... I have been pretty discouraged here.  I can't ask questions where I want to. I can't answer easy questions I know the answer to.  I'm afraid to ask questions because it looks like everything just gets downvoted or deleted. I don't have this problem anywhere else, like Reddit. Is it worth it to try to keep going here? I'm pretty bummed out about the experience here.

I am new to Stack  Exchange and I think it's very impressive.  One thing bothers me is that because it is so far down the line, I don't think beginners stand a chance of growing.  As time goes on, more and more questions are being answered and therefore if someone asks something with a really basic answer you can just comment. However, beginners can't comment until they have a reputation of 50. The only way they can build up is by answering questions. But if they answer a basic question long winded, they will be voted down because not so much effort was needed or because its already a duplicate and will lose the bit of reputation they have earned.  Can you tell me the future for beginners?


I am getting this error when I am trying to download a video from youtube via youtube-dl:  WARNING: Warning: Falling back to static signature algorithm ERROR: unable to download video data: HTTP Error 403: Forbidden

It is considered very useful to utilize youtube-dl software for downloading youtubes.  A message is seen and it stopped working, which is following.  ERROR: Signature extraction failed: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature     video_id, player_url, s   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function     res = self._parse_sig_js(code)   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js     u'Initial JS player signature function name')   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex     raise RegexNotFoundError(u'Unable to extract %s' % _name) RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update. ; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.   What should I do to proceed?


I have a string like so      This is a (Lock)item response(Unlock) and (Lock)request(Unlock)   I need to get all the strings between the prefix (Lock) and suffix (Unlock)  I need to get    item response request   I am working in c# and have tried the following    (?:(Lock))(.*)(?:(Unlock)) (?<=(Lock))(.*)(?=(Unlock))   Not sure what to put in the middle part in place of (.*)

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


How do I get an Arctic fox in a flat bedrock or Minecraft world Please make sure it works on iOS

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


$1+r+(r^2)+...+r^n= \frac{1-r^{n+1}}                     {1-r}$  Any help would be appreciated in solving the geometric series.

$$\sum_{k=0}^nq^k = \frac{1-q^{n+1}}{1-q}$$  I want to prove this by induction. Here's what I have.  $$\frac{1-q^{n+1}}{1-q} + q^{n+1} = \frac{1-q^{n+1}+q^{n+1}(1-q)}{1-q}$$  I wanted to factor a $q^{n+1}$ out of the second expression but that 1- is screwing it up...


I have read a lot of stackoverflow questions but none seems to be working for me. i am using math.round() to round off. this is the code:  class round{     public static void main(String args[]){      double a = 123.13698;     double roundOff = Math.round(a*100)/100;      System.out.println(roundOff); } }   the output i get is: 123 but i want it to be 123.14. i read that adding *100/100 will help but as you can see i didn't manage to get it to work.  it is absolutely essential for both input and output to be a double.  it would be great great help if you change the line 4 of the code above and post it.

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


So I've been digging around and I keep hearing people talk about "scultping" and "modeling" like it's two different things. I understand that modeling is better for hard surfaces like weapons, furniture, and typically things that are made. While sculpting is more for organic things, like humans and animals/creatures.   Does this mean to create an animation I'd have to sculpt the characters and model everything else? Or can you model the character, sculpt it up to look nice and pretty and then animate that? I've heard some people say that they usually model a base mesh, sculpt it, and then remodel it again so it's suitable for animating but I'm entirely lost on how/why you'd basically "de-sculpt it".

It's my first time to use blender. I've been looking for youtube tutorials and other use modeling, others are sculpting. I don't know what to use. Modeling seems more precise and more accurate but sculpting seems easier than modeling. I've been modeling an original anime style character for a while now but I'm sure if I'll continue that or switch to sculpting. What should I use and when to use these two? Also, is this that right place to ask these kind of questions?


Currently I am using the following code to give my Section Numbers a different colour (I am using the xcolor package):  \documentclass{article}  \usepackage[dvipsnames]{xcolor} \definecolor{darkmidnightblue}{rgb}{0, 0.2, 0.4}  \makeatletter \renewcommand\@seccntformat[1]{\color{darkmidnightblue} {\csname  the#1\endcsname}\hspace{0.5em}} \makeatother  \begin{document}  \section{\textcolor{darkmidnightblue}{Section}} \subsection{\textcolor{MidnightBlue}{Subsection}}  \end{document}   However, I understand that as  it is, it also applies the same scheme to the other section levels. I am trying to make the Subsection have a different colour to the Section, but it turns out like this:    I would like the Subsection Number to be the same colour as the text. Can this code be modified to alter each section level independently, or will I need to use different commands altogether?  Elliot

I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed.   Is there a way to do this?


These two sentences are trying to express the same thought:   Now we examine the trunk, which is also called the boot, especially outside North America.  Now we examine the trunk, also called the boot, especially outside North America.    First, are they grammatically correct? If so, why is it ok to drop the "which is" from the first sentence? Similarly with "who", we can say "This is Robert, who is also called Bob." or "This is Robert, also called Bob."

What is the part of speech of 'regarded' in the following?     "a quality of beauty and intensity of emotion regarded as characteristic of poems"    Why isn't it "... [which is] regarded ..."?  And in another case:      "a small lizard with wide feet, found especially in warm countries"     And also:      "Words used to describe writing or speech style"    In all these examples, why shouldn't the verbs be in their passive form (e.g. which is found, words that are used)?   I am a ESL learner and I am very confused by these usages!


Añadí una capa de texto delimitado por comas y luego agregue una imagen satelital de google earth. Realizo un diseño de impresión y al imprimir cambia la ubicación de los puntos en varios metros. Cual es la solucion?  (Edit) Google Translation:  I added a layer of comma delimited text then added a satellite image from Google Earth. I do a print design and during printing the locations of the points change by several meters.  What is the solution?

I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.


I was studying VAEs and came across the loss function that consists of the KL divergence.   $$ \sum_{i=1}^n \sigma^2_i + \mu_i^2 - \log(\sigma_i) - 1 $$  I wanted to intuitively make sense of the KL divergence part of the loss function. It would be great if somebody can help me

In a VAE, the encoder learns to output two vectors:  $$\mathbf{\mu} \in\ \mathbb{R}^{z}$$ $$\mathbf{\sigma} \in\ \mathbb{R}^{z}$$  which are the mean and variances for the latent vector $\mathbf{z}$, the latent vector $\mathbf{z}$ is then calculated by:  $$\mathbf{z} = \mu + \sigma \epsilon$$  where: $\epsilon = N(0, \mathbf{I}_{z \times z})$  The KL divergence loss for a VAE for a single sample is defined as (referenced from  and ):  $$\frac{1}{2} \left[ \left(\sum_{i=1}^{z}\mu_{i}^{2} + \sum_{i=1}^{z}\sigma_{i}^{2} \right) - \sum_{i=1}^{z} \left(log(\sigma_{i}^{2}) + 1 \right) \right]$$  Though, I'm not sure how they got their results, would anyone care to explain or point me to the right resources?


The last developer on our site installed the entire Spanish translation from Drupal and now even the admin pages come out in Spanish.  We don't want this, we just want the content to be translated as well as some error messages, but none of the administration pages should be in Spanish.  How would I fix this?

I am working at a project that needs a biilingual translation (content + interface). I've installed the following modules:  Locale + Content translation (core modules) Internationalization Module (i18n) Variable Module (required by Internationalization) – it deals with meta tags Admin Menu   I can't find a way to:  To provide interface translation for front-end only. Admin should be in English   Note: I assume this can be done by deactivating the language block on admin side) but how can this be done without duplicating the theme (the same theme for admin but with the block language disable).  How can this tasks could be accomplished?


It seems to me I have not read or understood a better explanation for quantum entanglement than Einstein's left and right glove explanation.  If some Aspect (pun intended) of an entangled quantum particle can be changed in mid-flight, then it seems there should be some detectable change in its entangled partner.  If this were true, then it seems to me that instantaneous communication should be possible. I have not discovered a compelling argument why this cannot be done.    The type of thing I have in mind is a device that emits entangled particles in opposite directions.  Upon creation, one side of the stream of entangled particles (stream A) is (say) polarized in a uniform direction (all particles have the same polarization). That would mean that the other side of the stream (stream B) should be polarized in a complimentary direction.  At some point the polarization of stream A is purposefully altered.  This should (in my understanding) create a complimentary alteration of stream B's polarization, resulting in a form of instantaneous communication.  Please tell me what is wrong with my logic here.

From everything I've read about quantum mechanics and quantum entanglement phenomena, it's not obvious to me why quantum entanglement is considered to be an active link. That is, it's stated every time that measurement of one particle affects the other.  In my head, there is a less magic explanation: the entangling measurement affects both particles in a way which makes their states identical, though unknown. In this case measuring one particle will reveal information about state of the other, but without a magical instant modification of remote entangled particle.  Obviously, I'm not the only one who had this idea. What are the problems associated with this view, and why is the magic view preferred?


I’m trying to install a chain with a snap on master link, but I can’t figure out how. I’ve tried twisting the chain as suggested by other questions to get it into place, but that doesn’t help. How do you do this? What’s the secret?    It’s a Shimano 8S CN-HG40 chain.

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


when I import new layers, it can happen that the coordinate system is changing – in that case I can’t see one or more layers and of course can’t work with them. Why is this happening and how can I prevent it?

My QGIS project has two layers, one layer is retrieved by Google layer plugin which fetches the static Google map image whose CRS is +proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs and another vector layer is a postgis layer whose CRS is +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs.  I digitalized some polygon features from Google Layers and added it to the vector layer. However, QGIS seems do not make the automatic CRS transformation. How can I change its projection?   Thanks


I have a rather large bunch of files that contains several fields pipe-delimited.     5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|1212121212121212121212121212|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|2323232323232323232323232323|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|3434343434343434343434343434|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|4545454545454545454545454545|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|5656565656565656565656565656|2|0|1000|70|33107||1|Event   Notice the eighth field. It currently has 29 characters and I'm supposed to trim it so it has only five characters left.  The only (convoluted) solution I've come up with is this:  Isolate the fields I want to trim:  awk -F "|" '{print $8}' > Original_Fields   Trim the fields  cp Original_Fields Temp more Temp | cut -c -5 > Trimmed_Fields   Create a susbtitution script with sed  grep -rh -f <file_with_matching_strings> /path/to/files > Original_Strings vi Original_Strings :%s/^/grep -rl "/g :%s/$/" \/path\/to\/file | xargs sed -i 's\//g :wq!   And then edit the Original_Fields and Trimmed_Fields files, so I end up with  grep -rl /path/to/file | xargs sed -i 's/Original_Field/Trimmed_Field/g'   This works, but I strongly suspect there must be a quicker way to accomplish this with AWK and SED, so I can do all of this in just one step.

How do I truncate column "test10" to 5 characters from Unix command line?  From this  test1,test2,test3,test4,test10,test11,test12,test17 rh,mbn,ccc,khj,ee3 eeeeeEeee ee$eeee e.eeeee2eeeee5eeeeeeee,a2,3,u hyt,bb,mb,khj,R ee3ee eeEeee ee$eeee e.eeeee2eeeee5eeeeeeee,a,5,r mbn,htr,ccc,fdf,F1ee eeeeEeee ee$eeee e.eeeee2eeeee5eeeeeeee,a,e,r   To this  test1,test2,test3,test4,test10,test11,test12,test17 rh,mbn,ccc,khj,ee3 e,a2,3,u hyt,bb,mb,khj,R ee3,a,5,r mbn,htr,ccc,fdf,F1ee ,a,e,r


Why does running you Python script using "run script" option in text editor generate an error called "bge module not found", while executing it using P command doesn't cause any problems?

The question is almost the same one that has been published before. But I think it's good to treat it again because it is not very clear, at least, for me.Also it does not have an accepted answer.  I want to draw a line using: bge.render.drawLine(fromVec, toVec, color) Draw a line in the 3D scene.  Parameters:   fromVec (list [x, y, z]) – the origin of the line  toVec (list [x, y, z]) – the end of the line  color (list [r, g, b]) – the color of the line  but I get a error message:  NameError: name 'bge' is not defined   Reading the question someone did before, first I put enable the game engine by selecting it in the render engine menu:    But I get an error when a try to import bge  ImportError: No module named 'bge'


I have conducted an evaluation on effectiveness of training interventions on elderly clients in a non-government organization. I would like to share the results by submitting paper to peer-reviewed journal. However, owing to policy of the organization, i was told to submit the paper on personal capacity. I would like to know if peer-reviewed journal accept paper from investigator without affiliation?

Financial terms, content quality, etc, is not a problem. The author has a contribution that will significantly impact the advancement of human knowledge about a particular topic.  Can anyone submit a paper? Or does it require some affiliation with a larger group such as an educational/governmental/corporate institution?  I am talking about journals of such clout as the Journal of Fluid Mechanics, Physics of Fluids, etc.


So I thought Java was pass by value but why does the following code:  public static void main(String[] args) {      List<Integer> numbers = new ArrayList<Integer>();     numbers.add(1);     numbers.add(2);     numbers.add(3);      phase1(numbers);      for (Integer number: numbers) {         System.out.println("number = " + number);     } }  static void phase1(List<Integer> numbers) {     numbers.remove(0); }   Print the following?  number = 2 number = 3

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


My health bar keeps going down until I die. I have nothing in status effects -- no poison, no disease, or vampirism. Tried several earlier saves and then tried reinstalling Skyrim. My character is a level 75 battlemage Nord who is a werewolf.

I am playing Dragonborn DLC. I am currently going through one of the black books quests and even though I am not fighting my health bar keeps going down. I can heal back up to full again but it keeps disappearing. If I do not heal I will die in about 30 seconds.  I have no disease or nothing is visible anyway, no clue as to what's wrong. I can leave the black book quest or fast travel to a different location or rest for 24 hours but still the health disappears.


So I have Transmission running on my Ubuntu 13.04 server that is connected to a VPN via OpenVPN. The problem is I want to be able to access the server over the internet, but it won't work while the VPN is running. For example, I want to be able to connect to a minecraft server running on the server from outside my network. I have port forwarding set correctly, however it times out while connecting to the server over the internet while the VPN connection is active on the server.   I only need Transmission routing through the VPN, is there a way to do this? Thanks!

This is quite messed up, I know. Let me explain it all.  I have a dynamic DNS set on my router. I verified that, after port forwarding, I can connect to desired application (if I run something on port 1337 and forward the port to appropriate machine I can connect to it from outside with no issues).  Now, if I connect my Macbook to VPN and run something as described above, it works as expected. BUT, if I connect my machine running Ubuntu Server 16.04 to the VPN and run something or want to connect by ssh, it fails. I forwarded port I'm using for SSH connection on router. I also tried hosting a web server, which also failed.  What can I do about this issue? This doesn't make sense to me.  About Ubuntu Server machine: it's a clean install with openvpn client and ssh server configured, no firewall running, iptables not edited, connected to router via ethernet.  EDIT: Here are the routing tables:


For window 8.1 in my laptop  keyboard  constantly pressing the ESC?  At time of writing or even in playing games. Even now I can't type, repeatedly ESC is being pressed automatically.   I have tried updating my laptop but still no hope.

The keyboard on my laptop seems to be typing by itself:   It sometimes types characters like 134, whether by itself or when I hit certain keys. Repeating characters may appear unexpectedly. The system volume may change by itself, or windows like the Print dialog or Web browser may appear.   This can happen without any input or as I type, and may occur more often when certain keys are pressed. Sometimes, the keyboard fails to respond altogether. This is happening regardless of the software involved.  Is there a ghost in my keyboard—is my keyboard broken?  A sample of text from the keyboard might look like this (normal QWERTY...ASDF...ZXC... sequence is expected):   QWERTYUIOPASDF)(G@*HKLZXCVBN QWERTYIOPASDFGL!#ZXCVB13 QWERTYUIOPASDFGHJKLZXCVB!#N qwertyu41iopasdf19g13h28j113k4113zxcvb4n qwerty4u1iopasdf0g7h1jklzxcvb13m qwert13uuuuuuuuuuuuuuuiopasdf87091134ghhhhhhhhhhhhhhhhhhhhhhh13jk13zxcvb14      This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


After an eigenvector computation for PCA, I get the eigenvector $(a, b)$ where $a=b$. This means that if I choose $a=1$, then also $b$ would be equal to $1$, and if I choose $a=2$, $b$ would also be equal to $2$. So the vectors $(1, 1)$, $(2, 2)$, $(3, 3)$, etc. would all be valid as they are pointing in the same direction. I can use any of those vectors to compute my principal component in that direction.  My issue is now as follows: What if I had chosen $a=-1$, then I would also choose $b=-1$. So the vector $(-1, -1)$ would also be considered valid. But, because of the negative, I would instead generate a principal component facing the opposite direction. This would completely change my PCA result.   My question then is: How do we handle these negatives in PCA? They seem to produce a completely different result relative to the positive vectors.

I performed principal component analysis (PCA) with R using two different functions (prcomp and princomp) and observed that the PCA scores differed in sign. How can it be?  Consider this:  set.seed(999) prcomp(data.frame(1:10,rnorm(10)))$x              PC1        PC2  [1,] -4.508620 -0.2567655  [2,] -3.373772 -1.1369417  [3,] -2.679669  1.0903445  [4,] -1.615837  0.7108631  [5,] -0.548879  0.3093389  [6,]  0.481756  0.1639112  [7,]  1.656178 -0.9952875  [8,]  2.560345 -0.2490548  [9,]  3.508442  0.1874520 [10,]  4.520055  0.1761397  set.seed(999) princomp(data.frame(1:10,rnorm(10)))$scores          Comp.1     Comp.2  [1,]  4.508620  0.2567655  [2,]  3.373772  1.1369417  [3,]  2.679669 -1.0903445  [4,]  1.615837 -0.7108631  [5,]  0.548879 -0.3093389  [6,] -0.481756 -0.1639112  [7,] -1.656178  0.9952875  [8,] -2.560345  0.2490548  [9,] -3.508442 -0.1874520 [10,] -4.520055 -0.1761397   Why do the signs (+/-) differ for the two analyses? If I was then using principal components PC1 and PC2 as predictors in a regression, i.e. lm(y ~ PC1 + PC2), this would completely change my understanding of the effect of the two variables on y depending on which method I used! How could I then say that PC1 has e.g. a positive effect on y and PC2 has e.g. a negative effect on y?    In addition: If the sign of PCA components is meaningless, is this true for factor analysis (FA) as well? Is it acceptable to flip (reverse) the sign of individual PCA/FA component scores (or of loadings, as a column of loading matrix)?


I have written two equations for the report of my Master thesis:  $NLL_{k} = - \sum_{j=1}^n \ln(pdf(PD_{k}^{i},skill_{i}^{j}))$  $person_{k}(interest) = \dfrac{1}{n} \sum_{p=1}^n \dfrac{person_{k}(task_{p})}{\alpha_{k}^{i}}$       In math mode everything is italic (except \ln). Is this ok or how should this be correctly formated?   Second, let's say I would like to use part of the equation in text. For example, I would like to write "It is visible that $person_{k}$ has very high interest.". Should $person_{k}$ in this case be in italic?

When I type $RTD$ in LaTeX, in the output I am feeling like I am getting space between RT and D.  Will it happen due to the format of letter D?  Can it be avoided or we have to go with it?


I am writing a chess game using Java and Swing, And I wanted to get the tile position on which a mouse clicked. I searched through internet, but all of them were really off, and never accurate. When I clicked on a tile's first half, it said it was tile 1, but on the second half, it said it was tile 2, but it was still tile 1. So I was wondering, how can I do it? My tile size is (75, 75) This is the code I've written for tileX: Math.floor((double)evt.getX() / 75), and this is the code I've written for tileY: Math.floor((double)evt.getY() / 75). Code for drawing: ImageIcon l_winter = new ImageIcon("/Users/user/NetBeansProjects/chess/src/b/bibe/assets/winter/light.gif");         ImageIcon d_winter = new ImageIcon("/Users/user/NetBeansProjects/chess/src/b/bibe/assets/winter/dark.gif");         ImageIcon l_wood = new ImageIcon("/Users/user/NetBeansProjects/chess/src/b/bibe/assets/wood/light.png");         ImageIcon d_wood = new ImageIcon("/Users/user/NetBeansProjects/chess/src/b/bibe/assets/wood/dark.png");         String theme = th;         int color = 0;         for (int i = 0; i < 600; i = i + 75) {             for (int j = 0; j < 600; j = j + 75) {                 JLabel panel = new JLabel();                 panel.setText(null);                 panel.setSize(75, 75);                 if (color == 0) {                     if (theme.equals("wood")) {                         panel.setIcon(l_wood);                     } else if (theme.equals("winter")) {                         panel.setIcon(l_winter);                     } else {                         panel.setText("notexture");                     }                     //panel.setBackground(new Color(white[0], white[1], white[2]));                     color = 1;                 } else {                     if (theme.equals("wood")) {                         panel.setIcon(d_wood);                     } else if (theme.equals("winter")) {                         panel.setIcon(d_winter);                     } else {                         panel.setText("notexture");                     }                     //panel.setBackground(new Color(black[0], black[1], black[2]));                     color = 0;                 }                 panel.setLocation(j, i);                 getContentPane().add(panel);             }         if (color == 0) {             color = 1;         } else {                color = 0;             }         }


Does there exist a closed formula for $$\underset{n=1}{\overset{N-1}{\sum}}\dbinom{N+n}{n}?$$ I've searching on wikipedia but I haven't found this kind of sum.

I am trying to prove this binomial statement:     For $a \in \mathbb{C}$ and $k \in \mathbb{N_0}$, $\sum_{j=0}^{k} {a+j \choose j} = {a+k+1 \choose k}.$    I am stuck where and how to start. My steps are these:   ${a+j \choose j} = \frac{(a+j)!}{j!(a+j-j)!} = \frac{(a+j)!}{j!a!}$ but now I dont know how to go further to show the equality.  Or I said:   $\sum_{j=0}^{k} {a+j \choose j} = {a+k \choose k} +\sum_{j=0}^{k-1} {a+j \choose j} = [help!] = {a+k+1 \choose k}$  Thanks for help!


I just read this page  explaining that 'artisanal' aka hand built wheels are better for many reasons, such as having better tension and static stress distribution. This would imply better feeling from the saddle as well as better durability. How  much truth is in there? It makes me feel as if I should find time to rebuild my campagnolo zondas from scratch.

Why are hand-built wheels considered to be better than machine-built wheels? I would think that a machine-built wheel would be better and cheaper, since machines generally do a more precise job than humans.


I'm pretty new to TeX apart from MathJax, and I don't know exactly how am I going to draw a sphere using some variation of TeX apart from MathJax. So if I use \sphere on MathJax, it won't pop up and just give out an error. I tried it on Mathematics SE. So how can I draw a sphere using TeX? I don't know what to use since I'm new.

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.


Here is the content of the Bibtex that I want to use as bibliography for LATEX file (paper):  @article{kargupta2004fourier,       title={A fourier spectrum-based approach to represent decision trees for mining data streams in mobile environments},       author={Kargupta, Hillol and Park, Byung-Hoon},       journal={Knowledge and Data Engineering, IEEE Transactions on},       volume={16},       number={2},       pages={216--229},       year={2004},       publisher={IEEE}     }  @article{mukherjee2006privacy,   title={A privacy-preserving technique for Euclidean distance-based mining algorithms using Fourier-related transforms},   author={Mukherjee, Shibnath and Chen, Zhiyuan and Gangopadhyay, Aryya},   journal={The VLDB Journal—The International Journal on Very Large Data Bases},   volume={15},   number={4},   pages={293--315},   year={2006},   publisher={Springer-Verlag New York, Inc.} }    I would to save the file with name BIB1. However, I have option to save it in TexStudio as txt file or as a TEXfile (list of extensions includes *.tex, *.bib).  How to save it? and afterwards should I compile it or use the command Bibtex?

I have a bib file in txt format in the same directory of all the rest of Latex files. Here is an example of my file named: Bibliographyforpaper.txt content:   @article{kargupta2004fourier,       title={A fourier spectrum-based approach to represent decision trees for mining data streams in mobile environments},       author={Kargupta, Hillol and Park, Byung-Hoon},       journal={Knowledge and Data Engineering, IEEE Transactions on},       volume={16},       number={2},       pages={216--229},       year={2004},       publisher={IEEE}     }  @article{mukherjee2006privacy,   title={A privacy-preserving technique for Euclidean distance-based mining algorithms using Fourier-related transforms},   author={Mukherjee, Shibnath and Chen, Zhiyuan and Gangopadhyay, Aryya},   journal={The VLDB Journal—The International Journal on Very Large Data Bases},   volume={15},   number={4},   pages={293--315},   year={2006},   publisher={Springer-Verlag New York, Inc.} }    In the LATEX file I use:    \usepackage{filecontents}  \begin{document} \begin{abstract} \end{abstract} \section{Introduction} \newpage     \bibliography{Bibliographyforpaper}{}     \bibliographystyle{plain} \nocite*  \end{document}   And there is only headline of References and no list of the bibliography. If I add \printbibliography and I get an error.


This book is pretty unique. It's about a planet only populated with intelligent horses who have domesticated their humans, because they have hands (horses don't have them). The whole time reading you expect some connection to our times, or our universe, but this book was very brave and didn't go for that cheap thrill like Planet of the Apes.  There simply aren't any humans in it, at all. John Campbell would never have bought this story/novel.  I know of no other SF book about intelligent animals that lacks all reference to Earth, humans, or our universe whatsoever. It's one of the most alienating books I've ever read.  It is not:   Gulliver's Travels. VAMPIRES IN THE LEMON GROVE The Island of Dr. Moreau Josepha Sherman's story "The Case of the Purloined L'isitek or written by a very well-known author (I think).    It's more SF than fantasy, because it's on a different planet. But it's not hard SF.  It's also pretty old. Certainly before the 90s (perhaps even before the 80s). My guess is it's between 1940-1980.

I am trying to find a short story involving an alien race of 'Intellectuals.' They possess no opposable thumbs or other limbs to control their world.  I think the basis of the story is their discovery of a way to influence another unintelligent species that can manipulate objects.  This leads to a new start for them.  They may have been at risk of breeding beyond available resources.  The story ends with explorers returning from sea. They may have discovered a new land into which they can expand. The last few scenes have a darker flavor where one character has been presented with a rock that glows in the dark. He considers it for a period before being called away to greet the explorers. The author then takes over and makes some comments about most species passing one crossroads only to meet another.  The story could have been written at any time from the Golden Age though to the 1970's.


In my vf page, there is a save button that of standard vf command button. A JS confirm will popup when someone click this button. Now, if user has chosen cancel, I want to cancel the action of save. So how can I do it?

I'd think this would work just fine, but it seems to prevent the action function from firing regardless of the confirm response  <apex:commandButton value="Remove All" action="{!removeAll}" rerender="form"      status="LoadingStatus" onclick="return confirm('Are you sure?');"/>


Can you please tell me how to get the party girl and what she sells for how much?

I seem to recall it being stated that the 1.2 update includes a number of new, friendly NPCs. What are they, and what are the requirements for each to appear?


I'm getting this error when I run my code to see if a Binary Tree is full: The error I'm getting from my code is: Exception in thread "main" java.lang.NullPointerException: **Cannot invoke  "BinaryTree$Node.isAFullTree()" because "this.right" is null** at BinaryTree$Node.isAFullTree(BinaryTree.java:97) at BinaryTree$Node.isAFullTree(BinaryTree.java:97) at BinaryTree$Node.isAFullTree(BinaryTree.java:97) at BinaryTree.isAFullTree(BinaryTree.java:209) at Main.main(Main.java:30)  public boolean isAFullTree ()     if(left == null && right != null           {                   return false;           }             if(left != null && right == null           {                   return false;           }             return true  && right.isAFullTree() && left.isAFullTree(); // This line throws the exception           } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I Can't understand which is the problem of my code trying to click on a list-group-item of my list-group. I want to catch the click and nothing's happening.  $("#inserisci_cerca").keyup(function() {          var text = $("#inserisci_cerca").val();          $.ajax({url:"https://ewserver.di.unimi.it/mobicomp/geopost/users?session_id="+sessionStorage.getItem("session_id")+"&usernamestart="+testo+"&limit=10",                 type: "GET",                 dataType: "json",                 success: function(result) {                       $("#div1").html("");                     $("#div1").append("
");                     result.usernames.forEach(function(item,index) {                         $("#div1").append("<button type='button' class='list-group-item list-group-item-action' id='okok'>" + item + "</button>");                     })                     $("#div1").append("
");                 }         });     });  $("#okok").click(function() {  console.log("Hello"); })   What am i doing wrong?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have a page that return a lot of rows. So, I'm using the load more ajax button. This ajax return a column with an edit button and this edit button should open a modal that runs a new ajax. The modal works fine inside my regular pages, but in this one (that the table is loaded from an ajax) it is not working. When I click in the 'Edit' button, the modal opens ok but it does not load any data (not even a 'loading...' text that should be loaded regardless of the response. This is my script to populate the table:   $(document).ready(function(){       loadMoreData();       function loadMoreData(page){         $.ajax({           url : "/ajax/getcontent.php",           type: "POST",           cache:false,           data:{page_no:page, id_campanha:<?=$_GET['id']?>},           success:function(data){             $("#carregando").remove();             if (data) {               $("#pagination").remove();               $("#loadData").append(data);             }else{               $(".loadbtn").prop("disabled", true);               $(".loadbtn").html('That is all');             }           }         });       }              $(document).on('click', '.loadbtn', function(){         $(".loadbtn").html('Carregando...');         var pId = $(this).data("id");         loadMoreData(pId);       });   });   This is what is returned from the call above:
     '.$row["number"].'	     '.$row["link"].'	     '.$row["click"].'	     '.$row["date"].'	               Editar               Edit
';  And this is the script that runs when I click on "Edit" from the response above: $(document).ready(function(){         $('.userinfo').click(function(){             var userid = $(this).data('id');             // HERE IS NOT ADDING THE 'LOADING...' TO THE MODAL             $('.modal-body').text('loading..')             // AJAX request             $.ajax({                 url: '/ajax/edit.php',                 type: 'post',                 data: {id_grupo: userid, campanha:<?=$_GET['id']?>},                 success: function(response){                      // Add response in Modal body                     $('.modal-body').html(response);                      // Display Modal                     $('#modal-default').modal('show');                  }             });         });     });  Does anyone knows how can I solve it?


Is there a standard way in .NET/C# to convert a datetime object to  format yyyy-mm-dd hh:mm:ss?  Or do I need to do some string manipulation to get the date string?

Given:  DateTime.UtcNow   How do I get a string which represents the same value in an -compliant format?  Note that ISO 8601 defines a number of similar formats. The specific format I am looking for is:  yyyy-MM-ddTHH:mm:ssZ


I have seen posts of people that are trying to put command blocks in their world with preset commands in the blocks, and they claim to have them work, but I am having trouble doing the same thing in the Pocket Edition of Minecraft. Usually it says that the “{“ character is unknown, creating a syntax error.

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


I have a script in AIX to read all hosts from os_init.d directory and gather their Ipv4 IPs and store them in a file. This file is then used to ssh to each host to collect various data via other scripts [not relevant here].   When the host is not reachable and has IPv4 IP address --> no error, while loop continues When the host is not reachable and has IPv6 IP address --> no error, while loop continues When the host is reachable and has IPv6 IP address --> while loop continues BUT exists without going through the loop.   I can't seem to figure out why in the last condition, after successfully executing the if condition for a reachable IPv6 host, the while loop would exit without continuation.   #!/usr/bin/bash # Sumit Das 2016 12 26 # Find All PHYsical HOSTs and their IP in a cluster  #set -x #cd /home/users/in10c2/moni ls -1 /cAppCom/os_init.d | grep dcpaix > listPHYSERV FN='listPHYSERV' rm listPHYIP 2> /dev/null while read LINE do   PHYHOST=$LINE   PHYHOSTIP=`ping -c 1 $LINE | grep PING | awk '{print $3}' | cut -c2- | rev | cut -c3- | rev`    IPV6IPchk=`echo $PHYHOSTIP | cut -c -4`   if [ $IPV6IPchk = "2a00" ]      then      ssh -q -o ConnectTimeout=10 -o BatchMode=yes -o StrictHostKeyChecking=no $LINE ifconfig -a > IFCNF      PHYHOSTIP=`awk '/en2:/{x=NR+1;next}(NR<=x){print}' IFCNF | awk '{print $2}'`      rm IFCNF   fi    echo "$PHYHOST,$PHYHOSTIP" >> listPHYIP done < $FN  cat listPHYIP cp  ALL_PHY_HOSTIP_`uname -n`.txt

I have a file servers.txt, with list of servers:  server1.mydomain.com server2.mydomain.com server3.mydomain.com   when I read the file line by line with while and echo each line, all works as expected. All lines are printed.  $ while read HOST ; do echo $HOST ; done < servers.txt server1.mydomain.com server2.mydomain.com server3.mydomain.com   However, when I want to ssh to all servers and execute a command, suddenly my while loop stops working:  $ while read HOST ; do ssh $HOST "uname -a" ; done < servers.txt Linux server1 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux   This only connects to the first server in the list, not to all of them. I don't understand what is happening here. Can somebody please explain?  This is even stranger, since using for loop works fine:  $ for HOST in $(cat servers.txt ) ; do ssh $HOST "uname -a" ; done Linux server1 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux Linux server2 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux Linux server3 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux   It must be something specific to ssh, because other commands work fine, such as ping:  $ while read HOST ; do ping -c 1 $HOST ; done < servers.txt


I am a PhD student in engineering in an university in Canada. I am close to completion of my thesis but I am not very proud of my work. I have couple of publications from my work, all in decent journals. I feel that I have not utilized the opportunities available to me and wasted time in personal activities that did nothing to my CV.   Owing to my inadequate performance during PhD. I am constantly regretting my decision of pursuing higher studies. I was never a star student. My undergrad was from a very low ranking school where I had received very average grades. However, I somehow got into the top graduate school where too I struggled in getting average grades. My research there was very unimpressive and not a single professor urged me to pursue PhD. My master's advisor even expressed shock when I had asked for his recommendation for applying to PhD school.  However, luck struck again, and I got into a reputed PhD program. My advisor has had a lot of patience with me. She is a hands off kind of person, but she has never complained about my performance till date. Now as I am completing my thesis, I am confused about my future career trajectory.  I feel like I do not belong to academia or research industry as I don't possess the necessary skills (sound technical skills, exceptional analytical skills and focus). I feel like a failure who is in a wrong profession. I really don't know what to do now.  My only reason for pursuing PhD in my current field of study was that I loved the process of researching. I loved finding reason behind why a physical phenomenon occurs. But, I now feel that just love for research is not an adequate reason for doing PhD or master's degree.  In short; I have realized that I am not not suitable for academia or research industry as I don't possess the necessary skills for pursuing research. I should have taken the engineering job after my undergrad as I was never built for a life in research.

I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success.   The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on.   I've talked about this to some number of people; here is some advice I have received:   Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead.  Talk to other graduate students. Realize that many graduate students go through this.   I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia?


I realize standard C++ only picks functions by argument type, not return type. I.e I can do something like:  void func(int); void func(double);   but not  double func(); int func();   Where in the former, it's clear, in the latter, it's ambigious. Are there any extensions that lets me tell C++ to pick which function to use also by return type?  Thanks!

We all know that you can overload a function according to the parameters:  int mul(int i, int j) { return i*j; } std::string mul(char c, int n) { return std::string(n, c); }    Can you overload a function according to the return value? Define a function that returns different things according to how the return value is used:  int n = mul(6, 3); // n = 18 std::string s = mul(6, 3); // s = "666" // Note that both invocations take the exact same parameters (same types)   You can assume the first parameter is between 0-9, no need to verify the input or have any error handling.


It's possible moving span text like using margin?  and provide the distance on the border so as not to touch?  i already use background-position but not working.  i want the span text in the center background black    div {  color: white; } span {   border-radius: 20px;  position: fixed;  margin-left: 8px;  margin-top: 8px;  background: black;  height: 34px;  width: max-content;  border-radius: -2px; } <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet"/>
     My Folder

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


In Star Trek, is there any evidence that any sort of religion is still practiced on Earth or on any Human world?  There are other species of the Federation that do still praise a god of sorts, eg. The Klingons with Kahless. But I haven't heard any specific mention of anyone on Earth or on board the Enterprise practicing any sort of religion.  Was religion just one of those ideas that mankind 'grew out of' so to speak, by the time of the 24th century?

We see that in DS9 the Bajoran religion is alive and kicking, but I've never seen any mention of a religion that came from Earth, or one practiced by humans.  Are any of Earth's religions still practiced in the current setting for Star Trek in the 23rd 24th century, or have they all died out? If they have 'died out', is this ever mentioned?


I learnt that "abstract nouns don't get articles". Now my question is if the word "method" is an abstract noun then why do  say "a method" with an article? The same question for the noun "wish", which is referred as "a wish" ("You need a wish...").   Are they considered as mistakes or they are exceptions among other abstract nouns which get articles? If they are, is there an explanation for why they get articles?

I was told that abstract nouns don't get articles. (You can  for example). But I found many abstract nouns that get indefinite articles, such as: "", "", "", "", "a love", "a wish", "a difference", "a power" and more. What is the explanation for that?


I need to plot a few graphs. First is of the function  \begin{equation} x(t)= -e^{ -0.1  t} \cos \left(  0.995 t \right) \end{equation}  and of $\dot{x}$ (time derivative function)   \begin{equation}     \dot{x}(t)= e^{-0.1  t}\left[(0.1 ) \cos \left( 0.995 t \right)+ ( 0.995 )\sin ( 0.995 t )\right] . \end{equation}  I have so far made their individual plots by doing the following      \begin{figure}[ht]     \centering         \caption{ The plots of the position and speed versus time (underdamped oscillator).} \begin{tikzpicture}[scale=1.9] \begin{axis}[     axis lines = left,     xlabel = {$t$, $ \left[\text{s} \right]$},     %ylabel = {$a(t)$, $ \left[\text{m/s}^2 \right]$},     grid=major,     ymin=-1,     ymax=1, ] \addplot [     domain=0:60,       samples=300,      color=YellowGreen,      thick, ] {2.71828^(-0.1*x)*cos(deg(0.995*x-3.1415))}; \addlegendentry{\tiny $ x(t)$, , $ \left[\text{cm} \right]$} \addplot [     domain=0:60,      samples=300,     color=TealBlue,      thick,     ]     {-2.71828^(-0.1*x)*((0.1*cos(deg(0.995*x-3.1415))+0.995*sin(deg(0.995*x-3.1415))) }; \addlegendentry{\tiny $  \dot{x}(t)$,  $ \left[\text{cm/s} \right]$} \end{axis} \end{tikzpicture} \end{figure}   with the resulting graph    What remains a problem: question 1. The second plot I need is the phase diagram, i.e. $\dot{x}(t)$ vs $x(t)$ plot, which I am not sure how to construct. I was thinking sampling/point-harvesting of the function $x(t)$ and $\dot{x}(t)$ to then use those points for interpolation-construction of the phase diagram might be somehow implemented? However, I could not find a lot of information about these kinds of things on latex forums. My boyfriend has made his graphs with python, so I know the phase diagram must look like the following    But I was hoping to there is some way of making the graphs using latex alone. Any ideas?  What remains a problem: question 2. I also was wondering if there is any way of determining how many times does the system cross the $x=0$ line before the amplitude falls below $10^{-2}$ of its maximum value, but if it is possible to do only using latex commands to output this number.

I need to plot a few graphs. First is of the function      \begin{equation}     x(t)= -e^{ -(0.1 \ {s}^{-1}) t} \cos \left( ( 0.995 \ {rad} / \mathrm{s})t \right)     \end{equation}   and of $\dot{x}$ (time derivative function)   \begin{equation}     \dot{x}(t)= e^{-(0.1 \ {s}^{-1}) t}\left[(0.1 \ {s}^{-1}) \cos \left( ( 0.995 \ {rad} / \mathrm{s})t \right)+ ( 0.995 \ {rad} / \mathrm{s})\sin ( ( 0.995 \ {rad} / \mathrm{s})t )\right] . \end{equation}   I have so far made their individual plots by doing the following      \begin{figure}[ht]     \centering         \caption{ The plots of the position and speed versus time (underdamped oscillator).} \begin{tikzpicture}[scale=1.9] \begin{axis}[     axis lines = left,     xlabel = {$t$, $ \left[\text{s} \right]$},     %ylabel = {$a(t)$, $ \left[\text{m/s}^2 \right]$},     grid=major,     ymin=-1,     ymax=1, ] \addplot [     domain=0:60,       samples=300,      color=YellowGreen,      thick, ] {2.71828^(-0.1*x)*cos(deg(0.995*x-3.1415))}; \addlegendentry{\tiny $ x(t)$, , $ \left[\text{cm} \right]$} \addplot [     domain=0:60,      samples=300,     color=TealBlue,      thick,     ]     {-2.71828^(-0.1*x)*((0.1*cos(deg(0.995*x-3.1415))+0.995*sin(deg(0.995*x-3.1415))) }; \addlegendentry{\tiny $  \dot{x}(t)$,  $ \left[\text{cm/s} \right]$} \end{axis} \end{tikzpicture} \end{figure}   with the resulting graph    What remains a problem: question 1. The second plot I need is the phase diagram, i.e. $\dot{x}(t)$ vs $x(t)$ plot, which I am not sure how to construct. I was thinking sampling/point-harvesting of the function $x(t)$ and $\dot{x}(t)$ to then use those points for interpolation-construction of the phase diagram might be somehow implemented? However, I could not find a lot of information about these kinds of things on latex forums. My boyfriend has made his graphs with python, so I know the phase diagram must look like the following    But I was hoping to there is some way of making the graphs using latex alone. Any ideas?  What remains a problem: question 2. I also was wondering if there is any way of determining how many times does the system cross the $x=0$ line before the amplitude falls below $10^{-2}$ of its maximum value, but if it is possible to do only using latex commands to output this number.


In my flagged post history, I noticed a section for "aged away" flags.    What exactly are "aged away" flags? Does it just mean the flag was inactive for a while? If so, how long does a flag need to be inactive for it to age away?

Moderator flags can be dismissed as aged away.   What does this dismiss reason mean? What causes flags to be dismissed with this reason? Do aged away flags affect my daily flag amount? Can I cast a flag again if it gets marked aged away?


When navigating the site, you can see linked and related questions at the right hand side:    The number refers to the net score of the question, whereas the color refers to whether an answer has been accepted or not (green if yes, gray if not). Yet, for those questions without accepted answers, it does not tell you whether the question has received any answer at all. This means that if you are looking for answers or if you are looking to answer questions without answers, the current system makes you visit questions which might not have answers or that might have answers, respectively. This is highly inefficient.   I think this system can be improved, by conveying more information (in particular, to indicate whether the question has answers or not).   Is it possible to add this differentiation? One option is to use a third colour (e.g. gray for those with at least one answer, white for those without answer). Another option is to add a second number in the box, like 3/2 or 3-2 or 3(2) (for a question with 3 upvotes and 2 answers). This can also be useful in questions with accepted answers. There are of course other options (e.g. add an asterisk to those without answers, 3*).   Benefits   Those who have knowledge on the topic of a question (which is presumably why they are looking at the question in the first place) can get an immediate idea of related questions which have zero answers, increasing the likelihood they might attempt to provide answers. Yes, you can also voluntary search for favourite tags with unanswered questions, but since the essence of the activity in SE is spent looking at questions, the rate of response could rise quite a lot. The same could be said of questions with just one answer, versus one with say three answers.  Those who are looking for answers to an issue might be saved considerable time by entering related/linked questions with answers only, instead of wasting time by selecting (unknowingly) unanswered questions, which they are very likely not going to answer anyway (as they are looking for answers).

Currently, in the linked/related sidebar, without opening the question the user can only distinguish whether the question has an accepted answer (green icon) or not (grey icon).  I often eagerly open an interesting-sounding question with a grey icon, only to find myself disappointed because it has no answer yet.  To avoid this, I suggest adding a third type of icon for questions that have at least one answer, but no accepted one. Probably a darker/lighter icon or some kind of frame or glow. I've made a quick example with Paint (if relevant, the screenshot I used is from ). I'm in no way satisfied with the look of it, but at least it demonstrates the general idea.    What do you think about this proposal? Would it be a useful addition to the StackExchange interface?


I have a dictionary in Python (string, integer) I want to print this dict. sorted  according to increasing "value" (not key) But if two keys have same value, then I want to print those particular keys in alphabetical way.

I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary.  I can sort on the keys, but how can I sort based on the values?  Note: I have read Stack Overflow question here  and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.


In Windows, if you type LIST DISK using DiskPart in a command prompt it lists all physical storage devices, plus their size, format, etc. What is the equivalent of this in Linux?

I need to know what hard disks are available, including ones that aren't mounted and possibly aren't formatted. I can't find them in dmesg or /var/log/messages (too much to scroll through). I'm hoping there's a way to use /dev or /proc to find out this information, but I don't know how. I am using Linux.


I am looking for feedback on my Python code. I am trying to merge two dictionaries. One of the dictionaries controls the structure and the default values, the second dictionary will overwrite the default values when applicable.  Please note that I am looking for the following behaviour:   keys only present in the other dict should not be added nested dicts should be taken into account   I wrote this simple function:  def merge_dicts(base_dict, other_dict):     """ Merge two dicts      Ensure that the base_dict remains as is and overwrite info from other_dict     """     out_dict = dict()     for key, value in base_dict.items():         if key not in other_dict:             # simply use the base             nvalue = value         elif isinstance(other_dict[key], type(value)):             if isinstance(value, type({})):                 # a new dict myst be recursively merged                 nvalue = merge_dicts(value, other_dict[key])             else:                 # use the others' value                 nvalue = other_dict[key]         else:             # error due to difference of type             raise TypeError('The type of key {} should be {} (currently is {})'.format(                 key,                 type(value),                 type(other_dict[key]))             )         out_dict[key] = nvalue     return out_dict   I am sure this can be done more beautifully/pythonic.

I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union).  The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11}  How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)


Why does the following code go into an infinite loop:  #include<iostream> using namespace std;  void printarray(int arr[], int n, int i);  int main(){     int arr[] = {1,2,3,4,5};     int n = sizeof(arr)/sizeof(arr[0]);     printarray(arr,n,0);     return 0; }  void printarray(int arr[], int n, int i){     if(i >=n)         return;     cout<<arr[i]<<"\t";     return printarray(arr,n,i++);    //Replacing i++ by i+1 works fine }   However, if I use i+1 instead of i++, the code works fine.As per my understanding i++ is effectively the same as i+1. Then what is the problem here?

In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?


I am downloading Ubuntu through the website. I am downloading Ubuntu 12.04 LTS desktop. I already downloaded it once and rebooted my computer but when I tried loading it I got the message that there were missing files and Ubuntu wont work. I downloaded the file in Firefox and opened it with cyber link IOS viewer. I honestly have no idea what I'm doing, I just want Linux along side my windows! please help!

I would like to see a full how-to guide on how to install Ubuntu.


Just getting my feet wet in lightning.  I am trying to render the following lightning app in Salesforce classic. However the form displayed is returned only in basic HTML (without the default lightning styling).   Is it required that lightning be enabled to render lightning components? I would think not since the lightning components can be rendered on visualforce pages. Do I need to include any additional markup to render correctly?   appName.app:  <aura:application> <c:myFirstComponent/> </aura:application>   myfirstComponent.cmp:   <aura:component implements="force:appHostable">

Basic Input Text
         <lightning:input name="input1" label="Enter some text" />         <lightning:input name="input2" label="Text field with predefined value" value="initial value"/>         <lightning:input name="input3" label="Text field with a placeholder" placeholder="type here..."/>

Advanced Input Text
         <lightning:input name="input4" readonly="true" value="initial value" label="Read-only text field with a predefined value" />         <lightning:input name="input5" disabled="true" value="initial value" label="Disabled text field with a predefined value" />         <lightning:input name="input6" required="true" value="0123456789" label="Required text field with a maximum length of 10" maxlength="10" />         <lightning:input name="input7" label="Text field that handles the onfocus and onblur events" onfocus="{! c.handleFocus }" onblur="{! c.handleBlur }" />
      <aura:attribute name="firstName" type="String"/>

Live Input Text
         <lightning:input name="input8" value="{! v.firstName }" placeholder="type your first name..." label="Text field with attribute binding" />
             FirstName: {! v.firstName }

 </aura:component>   What is being displayed on preview:

I'm trying to use  in some components but I only got basic html component in my page.  For example I add this button :  <lightning:button variant="brand" label="Précédent" onclick="{!c.previousPage}"/>   It is the only lightning base element in my component, maybe I have to insert it into a special element, like a container ?   My Salesforce org is in spring 17.  Here is the kind of button I got :  instead of button with slds design.  Edit : I try differents browsers but I always get the same result.


i want to ask how to showing the date from first date of the month until end of date of the month for example i want to showing date from 2021-01-01 until 2021-01-30. i want join this data with my other table. iam using MYSQL V5.7 i want this result :: | 2019-01-01 | | 2019-01-02 | | 2019-01-03 | | 2019-01-04 | | 2019-01-05 | | .......... | | .......... | | 2019-01-31 |  i try using this Query but doesn't work SELECT DATE(DATE_SUB(CURRENT_DATE, INTERVAL DAYOFMONTH(CURRENT_DATE)-1 DAY) BETWEEN DATE(NOW()))  Thanks for the answer

Using standard mysql functions is there a way to write a query that will return a list of days between two dates.  eg given 2009-01-01 and 2009-01-13 it would return a one column table with the values:   2009-01-01   2009-01-02   2009-01-03  2009-01-04   2009-01-05  2009-01-06  2009-01-07  2009-01-08   2009-01-09  2009-01-10  2009-01-11  2009-01-12  2009-01-13   Edit: It appears I have not been clear. I want to GENERATE this list. I have values stored in the database (by datetime) but want them to be aggregated on a left outer join to a list of dates as above (I am expecting null from the right side of some of this join for some days and will handle this).


Question: The numbers $B$ and $C$ are chosen at random between $-1$ and $1$, independently of each other. What is the probability that the quadratic equation $$x^2 + Bx + C = 0$$ has real roots? Also, derive a general expression for this probability when B and C are chosen at random from the interval $(-q, q)$ for and $q>0$.  My approach: since we're trying to find the probability of real roots. We should first realize when it has imaginary roots. So, $$B^2 - 4aC < 0$$ $$a = 1$$ $$B^2 < 4C $$ I'm not sure where to go from here. How do I now find the probability of $B$ being greater than $4C$?

The Question reads as follows:  Choose independently two numbers B and C at random from the interval [-1,1] with uniform distribution and consider the quadratic equation:  $$x^2+Bx+C=0$$  find the probability that the roots of this equation  a) are both real b) are both positive  I know a) requires that $0\le B^2-4C$ and b) requires $0\le B^2-4C$ , $B \le 0$ , $0 \le C$.  I know what this looks like geometrically and I believe for part a I should be able to integrate something from -1 to 1 but I am not sure what.


I know I can run sudo apt install gnome-tweak-tool and it will prompt me to enter sudo pass and then proceed to download and install gnome tweak tools. But what if I want to only download and not install it? I know I can then do sudo apt install gnome-tweak-tool -d I have however already installed it, and when running this command I get: sudo apt install gnome-tweak-tool -d -f Reading package lists... Done Building dependency tree        Reading state information... Done gnome-tweak-tool is already the newest version (3.34.0-2ubuntu1). 0 to upgrade, 0 to newly install, 0 to remove and 78 not to upgrade.  How do I download it, and keep a local copy? I want a local copy, because I am going to a place without internet and I have another laptop with me, where I want to install the some packages, but I wont be able to unless I have a local repository copy of them.

Apt (Advanced Packaging Tool) has option to download only package by apt-get -d install [pkg-name]. I have also find apt-get download [pkg-name] to download packages.  Then what is the difference between --download-only (apt-get -d install)and download (apt-get download)?  And When should I use between them?


I've recently moved houses, but unfortunately my new place is in a part of town where the only economical way to get an internet connection is via a prepaid data modem (DSL in my building is super expensive for a super slow speed) and as such large downloads aren't really possible unless I pay about $12 in local currency for every 15 gigs of prepaid data - not really an option.  I have two computers, a laptop and a desktop, both running steam, and my family doens't mind if i leave the laptop around their place to download large files (they live in a different part of town with MUCH faster internet). I was wondering if it's feasible for me to download games onto an external hard drive by bringing my laptop over there, then installing them or transferring them onto my desktop PC over at my new place. I know it's possible to copy steam games over to an external hard drive, but i'm concerned that downloading the game using a different computer than the one that'll actually run it might cause issues. Both computers are running 64-bit Windows 10.

I have successfully transferred "Killing Floor" from my brother's laptop to my own via external hard drive. The problem, now that I have all the files, is that I don't know how to launch the game through Steam. All I did was copy files from his Laptop to the hard drive, then from the hard drive to my laptop, then I put the files in the "Steamapps" folder under "Steam" in my laptops hard drive. So the question is, how do I start up the game through Steam?


I'd like to use  transistors for driving multiple low power solenoids, but looking at the datasheet I can't figure out what value the base resistor (R1) should be?          – Schematic created using

I have 3 12VDC/40A automotive relays () that I want to use with my Arduino. Based on the tutorial I am following () I need transistor, resistor, and diode. I am not an electrical engineer therefore I am unsure about the parts and calculations I made. For the start, relay coil resistance is 90+-10% Ohm per datasheet. So I proceed by calculating the current flow.  Voltage=Resistance*Current Current=Voltage/Resistance Current=12V/90 Ohm Current = 133mA  For the transistor I can get 2N3904 or 2N4401. At this point I have to calculate resistance for the base of transistor. In tutorial its as following  hfe = Ic / Ib Ib = Ic / hfe Ib = 0.03 A / 75 Ib = 0.0004 A => 0.4 mA R1 = U / Ib R1 = 5V / 0.0004 A R1 = 12500 Ohm  2N3904 datasheet states the H(fe) is 30-300 when lc = 100mA (mine is 130mA) and Vce = 1V. At this point I have no clue what is going on, thus I need help. Edit: Here is what I ended up with. RLY1 in the picture is 12VDC/40A ()


I have a batch with something like that (batch1) :  global void execute(Database.BatchableContext BC, List<sObject> scope) {     //some code here      //in the code here I have a variable like that :     List<Id> listOppId= new List<Id>();      //then I put some values in this list, and I use it in a query.This is this list that I want to pass in parameter for the other batch. }  global void finish(Database.BatchableContext BC) {     //here I want to call the other batch (batch2) and passing it a parameter like that:     Database.executeBatch(new batch2(listOppId)); }   What is the right syntaxe for doing something like that ? Have I something special to put in the second batch (batch2) too ?

I want to know whether it is practically possible to pass a parameter from first batch apex into second batch apex. I do not want code but a brief concept would be greatly helpful.


Do solutions to the Euler Lagrange equation for physical Lagrangians actually minimize the action? In other words, is it known that for all Lagrangians used in application, that the unique solution to the Euler Lagrange equation subject to initial conditions actually is a global minimum for the action functional? How about local minimum? Are there known counterexamples?

In  it is discussed why by Hamilton's principle the action integral must be stationary. Most examples deal with the case that the action integral is minimal: this makes sense - we all follow the path with the least resistance.  However, a stationary point can be a maximal or minimal extremum or even a point of inflexion (rising or falling). Can anybody give examples from theory or practice where the action integral takes on a maximal extremum or a point of inflexion?


Suppose $f$ is holomorphic on $D$. Prove that there exists a sequence $\lbrace z_n\rbrace$ such that $|z_n|\rightarrow 1$ and $\lbrace f(z_n)\rbrace$ is bounded.  Now, what I did is  $f$ is analytic on $D$ and $|f(z)|<1$. Let $z_0,z_1,z_2,...$ be zeros on $D$ then each $|z_i|<1$ on $D$ and let $z_n$ be the zeros of $f$ and I am stuck. I know that I should put the zeros in a sequence form, any ideas?

Let $f: D(0,1)\to \mathbb C$ be a holomorphic function. How to show that there exists a sequence $\{z_n\}$ in $D(0,1)$ such that $|z_n| \to 1$ and $\exists M>0$ such that $|f(z_n)|<M,\forall n \ge 1$ ?   My try: If not, then $\lim_{|z|\to 1} |f(z)|=\infty$. So in particular, $f$ has finitely many zeroes in $D(0,1)$. Also, $1/f$ is meromorphic in $D(0,1)$ with $\lim _{|z|\to 1}\dfrac {1}{|f(z)|}=0$. I am not sure where to go from here. Please help.


Calling export MYVAR=/path/to/whatever from .bashrc obviously works for bash but not for the sh shell.  Unfortunately, the Matlab launcher seems hell-bent on using sh and not bash.  As such, the simplest way to export an environment variable such that it is accessible from Matlab would be to export said variable to sh.  How can I persistently export an environment variable to sh?

What are correct places for:   Global environment variables meant to affect all users? User-specific environment variables?


I want to calculate the determinant of the following matrix $$\begin{pmatrix} \alpha +\beta&\alpha\beta&0&\cdots&0&0\\ 1&\alpha + \beta &\alpha \beta&\cdots&0& 0\\ 0&1&\alpha + \beta & \cdots &0&0\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ 0&0&0&0&1&\alpha + \beta\end{pmatrix}$$  Here is my attempt    Is this correct?  I used Laplace

Given this (very) tricky determinant, how can we calculate it easily?  $$\begin{pmatrix} \alpha + \beta & \alpha \beta & 0 & ... & ... & 0 \\ 1 & \alpha + \beta &  \alpha \beta & 0 & ... & 0 \\ 0 & 1 & \alpha + \beta & \alpha \beta & ... & ... \\ ... & ... & ... & ... & ... & 0 \\ ... & ... & .... & ... & ... & \alpha \beta \\ 0 & 0 & 0 & ... & 1 & \alpha + \beta   \\ \end{pmatrix} \in M_{n\times n}$$  EDIT:     I have to prove it is equal to $\frac{{\alpha}^{n+1} - {\beta}^{n+1}}{\alpha - \beta}$   Any help is appreciated, I just could not find a trick to ease it up!


At home I used an old PC and setup a Ubuntu 16.04 with functional Nginx server. I am hosting a website which can be reached from outside when I am not home, i.e. not using my home WiFi:    Interestingly, when I am connected to VPN (given by my company), even being home and using my home WiFi the website can be reached.  Unfortunately when I am home, i.e. I am using my home WiFi then the website is not reachable. The router that I am using is Bell Home Hub 3000 and I properly setup port forwarding (saying properly since the website is functional). Previously I did the same thing with Rogers WiFi router and it was working just fine from home or from outside. But since I moved to Bell and used Bell Home Hub 3000 the problem started.  Thank you so much for your help to understand the reason why I am not able to reach the local server/website while being on local WiFi.  Advanced tools and settings:    Port forwarding:

I have a weird port forwarding problem. I tried to open my port 22 to the outside network. I was able to access it as long as I am not inside the LAN. I can access it from my office for example. But from within the LAN, I can access the port using the local ip, but I can't access the port using the external IP. It's as if the router is blocking the loopback. I've check all my router settings, turned off anything firewall/filtering related. Any ideas?


Where does the second '1' appear in a value of following series?  $\frac{1}{9}+\frac{1}{99}+\frac{1}{999}+\dots$=$\sum_{n=1}^\infty {\frac{1}{10^n-1}}$  I already have a value of    (link)  But I want to know where the second '1' appears without this result.  There is easy way to determine poistion of the second '1'?

What is the value of the series   $\sum\limits_{n=1}^\infty {\frac{1}{10^n-1}}$   and can one find closed forms for the sums   $\sum\limits_{n=1}^N {\frac{1}{10^n-1}}$?   I found that $\sum_{n=1}^N {\frac{1}{10^n-1}} $  =  $\sum_{n=1}^N (\lim_{m\to\infty  }{\frac{10^{-n}-10^{-nm}}{1-10^{-n}}})$  =  $0.111\ldots+0.0101\ldots+\ldots$ but I can't go farther.     The original question is: "Where does the second '1' appear?"


I am trying to convert an .osm file to a .shp file.  I am using OGR2OGR. There is an  which explains how this can be done. Here is an example command:  ogr2ogr.exe --config OSM_USE_CUSTOM_INDEXING NO -skipfailures -f "ESRI Shapefile" output.shp input.osm   And it works perfectly. As a result of upper command, in the "output.shp" folder I get four separate .shp files: lines.shp, multilinestrings.shp, multipolygons.shp, points.shp  However what I would like to get is a single .shp file. So basically to convert an .osm file to a single .shp file.  Is it possible to do that directly through some change of the upper command?  If not then I tried to merge all these four .shp file into a single .shp file (merged.shp). I found an example topic . So I used the following 4 commands:  ogr2ogr.exe -f "ESRI Shapefile" merged.shp lines.shp ogr2ogr.exe -skipfailures -f "ESRI Shapefile" -update -append merged.shp multilinestrings.shp ogr2ogr.exe -skipfailures -f "ESRI Shapefile" -update -append merged.shp multipolygons.shp ogr2ogr.exe -skipfailures -f "ESRI Shapefile" -update -append merged.shp points.shp   And the merged.shp file is created, but an error is raised at the upper last (fourth) command:  Attempt to write non-linestring (POINT) geometry to ARC type shapefile.   I tried to google but I couldn't solve this error.  Can somebody please help me?

I want to merge two shape files in which one is of point geometry type and other is polygon type in order to get a single layer containing both points and polygon in a single map.


The following is taken from this book titled "" (Published in 2004):     An independent artist is probably the one who lives closest to an unbounded creative situation. Many artists have considerable freedom from external requirements about what to do, how to do it, when to do it, and why. At the same time, however, we know that artists usually restrict themselves quite forcefully by choice of material and form of expression. To make the choice to express a feeling by carving a specific form from a rock, without the use of high technology or colors, restricts the artist significantly.   In the last sentence, the subject is "To make the choice to express a feeling by carving a specific form from a rock, without the use of high technology or colors," and the predicate is "restricts the artist significantly."  Is it possible to use "Making" instead of "To make" in the last sentence as follows?     Making the choice to express a feeling by carving a specific form from a rock, without the use of high technology or colors, restricts the artist significantly.   Also, how does this gerund subject compare with the to-infinitive subject? Are they both natural in context? Or is one more natural than the other?

In Italian, when I write a sentence about an action (e.g. eating fish, playing), I would use the infinitive, such as  mangiare pesce fa bene alla salute (which literally is "to eat fish is healthy"), or giocare aiuta ad imparare (which literally is "to play helps to learn").   I would use the gerund in giocando si impara, but that would roughly mean "When playing, you learn." and in this case the infinitive would not be correct. (Giocare si impara is not what you would say in Italian.)  Should I use the infinitive, or the gerund, in sentences similar to the following ones?   To play with fire is dangerous. To win the lottery is just a matter of luck. To escape from Alcatraz is impossible. To practice makes you perfect.   Is the infinitive always wrong, when the verb is the subject of a sentence?


A bridge is the shape of an arc of a circle. The bridge is 8 feet tall and 36 feet wide. What is the radius of the circle that contains the bridge?

Given:   The arch is symmetrical about the y axis. The base of the arch is on the x axis. At the top of the arch: $$ x = 0; y = h$$ At the ends of the arch $$ y = 0; x = \pm \frac{b}{2} $$   An arch is an arc, the two base points and the top of the arch fit on a circle.   What is the function for the arch?