Prove that $\binom{n+0}0 + \binom{n+1}1 +\binom{n+2}2  +\ldots+\binom{n+r}r  = \binom{n+r+1}r$ using combinatoric arguments.   (EDITED)  I want to see if I understood Brian M. Scott's approach so I will try again using an analogical approach.  $\binom{n+0}0 + \binom{n+1}1 +\binom{n+2}2  +\ldots+\binom{n+r}r  = \binom{n+r+1}r$ can be rewritten as $\binom{n+0}n + \binom{n+1}n +\binom{n+2}n  +\ldots+\binom{n+r}n  = \binom{n+r+1}{n+1}$  We can use the analogy of people lining up to buy tickets to see a concert. Let's say there are only $n$ number of tickets available for sale. "Choosing" who gets to attend the concert can be done in two ways.  The first way (the RHS), we have $n+1$ number of tickets for sale but $n+r+1$ people who wants to buy the tickets. Thus, there are $\binom{n+r+1}{n+1}$ ways to "choose" who gets to attend the concert.   The second way (the LHS) is to select the last person in line to buy the first ticket (I think this was the step I missed in my first attempt). Then, we choose $n$ from the remaining $n+r$ people to buy tickets. Or we can ban the last person in line from buying a ticket and choose the second-to-last person in line to buy the first ticket. Then, we have $\binom{n+r-1}n$ ways. This continues until we reach the case where we choose the $n+1$ person in line to buy the first ticket (banning everyone behind him/her from buying a ticket). This can be done in $\binom{n+0}n$ ways.   Therefore, adding up each case on the LHS is equal to the RHS.

After reading , the most popular answer use the identity $$\sum_{t=0}^n \binom{t}{k} = \binom{n+1}{k+1}.$$  What's the name of this identity? Is it the identity of the  modified.  How can we prove it? I tried by induction, but without success. Can we also prove it algebraically?  Thanks for your help.    EDIT 01 : This identity is known as the  because, on Pascal's triangle, when the addends represented in the summation and the sum itself are highlighted, a hockey-stick shape is revealed.


The Oxford English Dictionary chose/has chosen the neologism 'omnishambles' as its Word Of The Year for 2012.  It's a result. It was chosen. And is true now. In my opinion it's better with Present Perfect. But my private tutor says it's a fact about the past, so it should be Past Simple. I need opinions of English gurus.

In the song, you can hear how she pours her heart out with such   intense emotions in her clear, powerful voice, complaining why   everything in her life has gone so wrong. Please just listen to her   voice and see how she wails; the wails that were not only for her but   also for all those who across generations have found themselves in   her situation.   Can you tell me whether the "have found" written on the fourth line (bold) of the previous sentence is the correct tense to be used? Should it just be "found" instead of "have found"? Please tell me the grammatical reason for it. Or if you feel the sentence should be written in an entirely different way?  Are any punctuation marks missing in the sentence?


I have dual boot with Win10/Ubuntu. I am running gparted within Ubuntu. I have also tried running gparted using the live USB. The result is same.  This is how it looks like:    I would like to increase the size of /dev/nvme0n1p6 (selected blue) using the unallocated space. But I am not able to do that.    I wonder if I am doing something wrong. I am also unsure why my unallocated space is split in two.

I have few partition like this:    And I want to take the unallocated partition and resize it to /dev/sda12. But when I try to do that:    I can't increase the size.  I have do it in Live Mode, and I have tried to the others partition, but still can't do it.  How do I solve this problem?


in Stackoverflow, I happen to just post a comment on someones question; yet whenever that question is updated or receives answers or comments, I don't get any warning whatsoever. How do I activate that or manage those questions?

There has been some discussion about getting notified on comments to questions or answers that don't belong to you, and the long-standing wish to be able to keep track of new answers or developments in questions asked by other people.  Previous discussion in regards to subscribing to questions:                  (very similar to this one)      In regards to subscribing to comments:                    The general feeling - at least here on meta - seems to be against broadening the notification rules, out of fears of useless notifications to flood users' inboxes, turning SO into more of a discussion forum than it should be, etc.   Here's a suggestion that would keep the user 100% in control what they get notified about, not generate any notifications by default, and require only minimal modifications to the User Interface.  Each question and each comment area would get an envelope symbol.    it is inactive (=white) by default.  When those envelopes are hovered over, the tooltip says click to subscribe or something.  When clicked on, the envelope lights up in green or some other colour (but different from the actual notification envelope's orange to avoid confusion.) You are then subscribed to any updates to that question or comment thread.    For each subscription, you receive notifications in the "responses" tab, as if you were the owner of the comment or question.     To unsubscribe from a question or comment thread, you open the page, and click the green envelope. It turns back white, and the notifications disappear from your responses tab (if technically possible - otherwise, there just won't be any new ones added.)    No further functionality, like managing subscriptions or anything, is necessary IMO. If the flood of notifications from a subscribed question starts to annoy you, you just open it and unclick the envelope. Done.   It would make it possible to leave a comment to a newbie's question and make sure their answer reaches you even if they don't know they need to address you using @username You could subscribe to those "oh, I'd like to know the answer to that" questions and receive active notification, instead of them getting forgotten in your favourites list You could subscribe to discussions you are interested in the outcome of, but don't want to participate in. It would (in my opinion) sort out a number of woes aired by many users in a good way, without adding annoyances to those who like the system just fine the way it is. It would not require a change in the visible layout. As far as I can see, the space the envelope would need to be is empty everywhere.   I don't know SO under the hood of course, but technically, the system would be doing what it's doing already, notify question owners of updates - just that the circle of internal "owners" would grow.


Let $R$ be a commutative ring with unity and $M$ an $R$-module.   If $M\oplus R^m\cong R^n$ for some integers $m,n \geq 1$ then must $M$ be finitely generated and free?   Can somebody help me with this? Regards.

Let $M$, $L$, $N$ be $A$-modules and $M=N\oplus L$. If $M$ and $N$ are free, is $L$ necessarily free?


Is there an option in top to show memory sizes in human readable format?  Example:  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                             3960 phil      20   0 1347280 383112  30316 S   0.0  9.5   6:59.45 firefox   It would be nicer to show RES as 374m (instead of 383112).  I'm currently using Arch Linux. Ubuntu seems to use human readable representations by default.  (I tried man top but could not find the option. Maybe I missed it.)

Sometimes it is not comfortable to see meminfo in kilobytes when you have several gigs of RAM. In Linux, it looks like:    And here is how it looks in Mac OS X:    Is there a way to display meminfo in Linux top in terabytes, gigabytes and megabytes?


Recently I saw a problem in mSE which is to show $\lim_{x\to 0}\frac{\sin(\frac{1}{x})}{\sin(\frac{1}{x})}$ exists and all the solutions used the definition of limit in a metric space.My doubt is how would I use the general epsilon delta(like in spivak/any other calculus book) to show that the limit is 1,also we don't have a continuous neighborhood of zero to use epsilon delta. So will epsilon delta fail for discontinuity in domains?

As the title suggests, I am interested in computing $$\lim_{x \to \infty} \frac{\sin x}{\sin x}.$$ Some of my friends say that the limit is $1$ because the domain of function is $\mathbb{R} \setminus \{n \pi : n \text{ is an integer}\},$ whereas others say that this limit is undefined. Which opinion is correct?


Will the hidden lines in this H1 tag and content section help SEO? For example:
Red Carpet  Made to measure floor carpet in England with Premium quality
  Here I only want to show "Red Carpet" and I don't want to show the rest. So if I make other line hidden, will Google still read that lines and give more strength to my page?  Is there any benefit that I will get adding hidden content?

I am using hidden text on one of my websites for better search engine ranking.  However, many articles suggest it is better not to use hidden text. Does using hidden text with keywords in the webpage affect rankings? Does Google block such types of site that use hidden text like using the same color for the text as for the background?


The includes() function usually works pretty well, but with this specific case it always returns false and I have no clue why. I spent a ton of time making sure it wasn't just a typo, and I'm pretty sure it isn't.  I want my code to return true if the value given is in the array. But what it actually does is it returns false no matter what.  Here is the code:  let array = [     {         x: 10,         y: 500,         width: 100,         height: 50     },     {         x: 100,         y: 550,         width: 150,         height: 20     } ];   if (     array.includes({         x: 10,         y: 500,         width: 100,         height: 50     }) ) {     console.log(true); } else {     console.log(false); }

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


From the bash man page for the read command:     One line is read from the standard input, or from the file descriptor  fd  supplied as an argument to the -u option, split into words as described above under Word Splitting,  and  the  first  word  is assigned to the first name,...   Now I tried out the following:  IFS=, echo ' a b,c d'|read -n 4 x y echo ".$x. .$y."   I expected the output to be  . a b. .c d.   becaus due to the change, word splitting should occur at the comma instead of the space, but the actual output was  .a. ..   This puzzles me. The .a. looks like word splitting is still done at spaces, but then at least, y should be set to b, not being empty.   I can't help but feeling that I misunderstand the explanations in the man-page about the read command.  BTW, I'm using bash 4.4.12.

With ksh I'm using read as a convenient way to separate values: $ echo 1 2 3 4 5 | read a b dump $ echo $b $a  2 1 $  But it fails in Bash: $ echo 1 2 3 4 5 | read a b dump $ echo $b $a     $  I didn't find a reason in the man page why it fails, any idea?


I am an undergraduate pure maths major looking to attend graduate school in pure mathematics.  At my first college, I had a fairly traumatic first semester that led to, among other things, a C grade in Calculus I.  Throughout the next two semesters, I received A grades in all of my math classes, and transferred schools (so that the Calculus I grade in my older school still shows up on a transcript, but it does not factor in my cumulative GPA at my new school). This includes A grades in upper division analysis and algebra. My current cumulative GPA at my new school is 3.85.   How will my poor grade in Calculus I reflect on my admissions into top universities for graduate school?  Thank you.

I'm currently an M. Phil student in Math and I failed a course last semester because I was not able to hand in a home work assignment (which was worth 40% of my grade) on time (I was 30 minutes late).   Apart from that I'd say I'm a fairly decent student, I got an upper second class honours bachelors degree, I have a B+ and A's for all my other courses in my current programme and I'm almost finished with my first paper to be published.   I've however been deeply worried about this failure as it would reflect poorly on my transcript if I were to apply to a Ph.D or another Master's programme.   Will my failing grade affect my chances of getting into a competitive programme or greatly lower my chances of getting a scholarship?


I am trying to open an html file which is inside a directory that has no execute permission for apache group. Therefore when I try to access the file from apache it displays the error "You don't have permission to access / on the server.". Is there any way I can open the file without changing the permissions of the directory but by editing the access control directives in apache2.conf?

I have installed LAMP on my Ubuntu Server while being user (say "test"). Then i switched to another user (say "user") and I have configured a virtual host. The virtual host directory at www/ has 744 permissions. When I try to reach the virtual host from the browser it says "You don't have permission to access / on this server.". When I changed the permission to the virtual host directory at www/ and made it 745 the host could be reached from browser. I suspect that this is because I installed apache as user "test". How can I change it so that it can open files that have -x permission only for owner while being logged in as the owner user?


I am working on a project with two different teams, each working with a different GIS software package: QGIS and ArcGIS. I am trying to convert my QGIS layout to ArcGIS, so the team with ArcGIS can see exactly the same symbology as I do on my computer.  I am currently working with .qml files to save my layer styling, and I would like the other team to be able to visualize the same symbology for the layers we're both using. So I want to convert all my layer symbologies from .qml to .lyr.   Is it possible for them to use the .qml format in ArcGIS?   Is there a way to make all projects have the same symbols, without having to exchange RGB values, point style, line style, etc, etc...?

I have been trying to open a map which I downloaded from the ESA website.  There are several files in the folder including .cpd, .csv, .dsr, .qml, .tif and so on. I was trying to open the .tif image in ArcGIS Desktop but it would not display anything. Then I was just trying to identify but I realized something was not right here. Apparently .qml files could be opened in QGIS, but I have no idea how to work around QGIS.   Is it possible to open the QML file in ArcGIS Desktop?


I'm trying to compile a C++ application using libpq. On my Debian it compiles fine with the following command:  g++ -I /usr/include/postgresql/ -L /usr/lib/postgresql/9.3/lib/ -lpq -o test test.cpp   On my Ubuntu I get the following error:  undefined reference to 'PQfinish'   I've included link to postgresql headers and libraries and used the -lpq. What am I missing?

Why does the order in which libraries are linked sometimes cause errors in GCC?


Today I am learning python and I have assign one int variable in console like this  zipcode = 02492   But it's return me error like this  SyntaxError: invalid token   Why so, I don't understand it? Please help me to solve this query.

Some of you may recognize this as Project Euler's problem number 11. The one with the grid.  I'm trying to replicate the grid in a large multidimensional array, But it's giving me a syntax error and i'm not sure why  grid = [  [ 08, 02, 22, 97, 38, 15, 00, 40, 00, 75, 04, 05, 07, 78, 52, 12, 50, 77, 91, 08 ], [ 49, 49, 99, 40, 17, 81, 18, 57, 60, 87, 17, 40, 98, 43, 69, 48, 04, 56, 62, 00 ], [ 81, 49, 31, 73, 55, 79, 14, 29, 93, 71, 40, 67, 53, 88, 30, 03, 49, 13, 36, 65 ], ...   And I get this error:     File "D:\development\Python\ProjectEuler\p11.py", line 3     [ 08, 02, 22, 97, 38, 15, 00, 40, 00, 75, 04, 05, 07, 78, 52, 12, 50, 77, 91 , 08 ],        ^ SyntaxError: invalid token   Why is it throwing an error before the comma?


Where can I find the official repository for the source code for postgresql-contrib's pg_updatedicts.  The top of the file shows  (C) 2012-2016 Christoph Berg <myon@debian.org>   So I know I could always email him, but isn't there an easier way?

In Debian, AFAIK some packages are maintained in Subversion (famously team-pkg-gnome), while some are maintained in git, and others in some other VCS.   Is there a way to know where the source of a package is without doing an apt-get source $PACKAGENAME?  I tried three methods and all failed :-  $apt show $PACKAGENAME $aptitude show $PACKAGENAME  $apt-cache show $PACKAGENAME    none of the above are able to give/share this information.   Is there anyway to get the information. I need to know the source repo. name and whether it is in git, svn or some other version control.


Actually it is obvious that this limit of a sequence $lim(n/3^n)$ where $n$ goes to infinity and $n$ is a natural number equals to zero, because the function $3^n$ is growing faster that the function $n$. Yet I cannot prove it in my school just by saying that because infinity divided by infinity is an indefinite expression in limits. Normally I would try to modify the expression, but here I do not know how to do that. Could you help me please to modify the argument of this limit so that I could argue that it really equals to zero?

Intuitively it's easy, but hard to prove by the epsilon-delta method:  $$ \lim_{n \to \infty} n x^{n} = 0$$


I have in stalled a dual boot beside windows and now I'm having a problem checking apt-get update when I type in apt-get update this is the outcome. I don't know what to do   $ apt-get update   E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)   E: Unable to lock directory /var/lib/apt/lists/   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)   E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?    $ apt-get upgrade   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)   E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


I have a file that has data such as:  1  Foo 2  Bar 3  Kazam   Is it possible using vim to know if a space is being used a delimited vs a tab?

Is there a way I can see spaces and tabs wonderfully visualized in vim, like I can in emacs by toggling whitespace-mode?


In Unity one can easily switch between keyboard layouts using the keyboard tray icon. There is also the Keyboard menu where one can add/remove/set keyboard layouts.  I can not find any of this functionality in Xubuntu. How can the keyboard layout be switched in this desktop environment?  Thanks.  Update I: details on the xubuntu-desktop package this question refers to:  $ sudo apt-cache show xubuntu-desktop Package: xubuntu-desktop Priority: optional Section: universe/metapackages Installed-Size: 43 Maintainer: Xubuntu Developers <xubuntu-devel@lists.ubuntu.com> Architecture: amd64 Source: xubuntu-meta Version: 2.152 Depends: [...] Size: 3790 MD5sum: 26efaa0f16c70a82d216165ba2af4fd4 SHA1: 49c283439314e48d46668e07d65c4a261e9b556a SHA256: 36e51760324e081988a068aa29de4968a7d050c18bad4128967ffd656c570f3f Description-en: Xubuntu desktop system  This package depends on all of the packages in the Xubuntu desktop system  .  It is safe to remove this package if some of the desktop system packages are  not desired. Description-md5: 25eeb522d88fba23a532953cbbf1638e Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Task: xubuntu-desktop   Update II: The  is not working with this latest version of Xfce. The xfce4-xkb-plugin package is apparently installed together with xubuntu-desktop.    Update III: This is no longer an issue on Xubuntu 14.04, a nice tray icon in this latest version allows the user to easily switch between keyboard layouts.

I use 3 different languages (English, Czech and Russian) every day. I'd prefer to switch (preferably globally, I don't like per-window) between them with Left+Alt+Shift.  I'd also like to see the active language indication.  Unfortunately I couldn't find any obvious way to set this up in XUbuntu 11.10 - there is even no keyboard indicator applet available in the panel configuration. Any recommendations?


I am trying to merge several polygons in a feature dataset into one. Normally I would use a simple merge but the issue is that merge automatically dissolves. I on the other hand want to have them all represented by one single record, but maintain their existing boundaries.The top image is what happens. But the bottom image is what I want. As mentioned originally the left would represent by two separate selectable polygons and the right is the output being one record/one selectable polygon.

I have a set of parcels as illustrated in the image below. There are currently no multi-part features in dataset. What I would like to do is to merge (not the right word) all of the parcels with same address, say 421 for example. I want to have these three polygons as one multi-part polygon, that still has the same geometry, as in it doesn't dissolve the lines.     When I have tried this thus far, the lines dissolve resulting in only the boundary being preserved.     I feel like there is a super easy was to do this, but I can't find it. I have full access to ArcGIS Advanced and use it to manage the topology of this dataset.


I try to import a large database (18mmo) inside mysql but it does'nt want to do that  my command :  mysqldump -u root -p c1_forum > data-dump.sql   tk

I was given a MySQL database file that I need to restore as a database on my Windows Server 2008 machine.  I tried using MySQL Administrator, but I got the following error:     The selected file was generated by   mysqldump and cannot be restored by   this application.   How do I get this working?


i install 'android studio' on my Ubuntu.  The location of the 'android studio' folder is on folder 'opt' - and to run the application i need to open the terminal on the 'opt/android studio/bin' and run ./studio.sh   Is it possible to make some shortcut on the desktop and run the 'android studio' on one click  Why i can't see the executable file from the 'all application' of the Ubuntu ?

Is it possible to replace a particular icon with one of our choice in 16.04 Ubuntu ? If yes, kindly share.


I have the following exercise: Let $S_1$ = 1  and for $n \geq 1$  let $S_{n+1} = \sqrt{S_n + 1}$. Prove that the limit of this sequence is $\frac{1}{2}(1 + \sqrt{5})$

(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12)  For $c \gt 0$, consider the quadratic equation $x^2 - x - c = 0, x > 0$.  Define the sequence $\{x_n\}$ recursively by fixing $|x_1| \lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining  $$x_{n+1} = \sqrt{c+x_n}$$  Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  Note: The answers below might assume $x_1 \gt 0$, but they still work, as we have $x_3 \gt 0$.    This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


I'm a newbie in Java and I'm trying to design an application that has methods to fetch data from a database getCountries(), a method that finds countries in the table by searching for an input ID value findCountryByCode(int codeID) and finally, a method that saves new countries to the table called saveCountry(Country countries). I am asked to use all the good practices of OOP and design patterns in this exercise.  I have several classes managing the data encapsulation but I got stuck trying to debug some output errors. The class that connects to the database MySqlCountryDAO establishes a connection but not only doesn't return any table values on the terminal, instead, I'm prompted with a "java.lang.NullPointerException". I did my research but could not find out why this error appears there. Would anyone be able to have a look at this class and give me a light, please? Here is the code for the class that connects to the DataSource class [i.e. the database connector].  public class MySqlCountryDAO implements CountryDAO {  DataSource db = SingletonInstance.getInstance();  /**  * Returns an ArrayList of all the Countries in the database  * @returns arrayList of country Objects  */ @Override public ArrayList<Country> getCountries() {      ArrayList<Country> countries = new ArrayList<Country>();     String query = "SELECT * FROM country"; // MySQL query     ResultSet rs = db.select(query); // catch the ResultSet and place the result of the query in the result set      int code = 0;     String name = "";     Continent continent = null;     long surfaceArea = 0;     String headOfState = "";     Country c = null;      // loop over the resultSet to fill ArrayList w results     try {         while (rs.next()) {             code = rs.getInt(1); // don't quite get it why starts at 1             name = rs.getString(2);             continent = Continent.valueOf(rs.getString(3));             surfaceArea = rs.getLong(4);             headOfState = rs.getString(5);              //builder pattern to be implemented here             c = new Country(code, name, continent, surfaceArea, headOfState); //new instance of Country class             countries.add(c);         }     } catch (SQLException e) {         e.printStackTrace();     }     return countries; }  }}   And the main class:  public class Main{  public static void main (String[] args){     /**      * instance of the client connecting to the DataSource class      */     MySqlCountryDAO dao = new MySqlCountryDAO(); //instance of dao      ArrayList<Country> countries = dao.getCountries();     for (Country c : countries){         System.out.println(c);     } } }   Below, the output returned when I run the code.     SQL Exception:     java.lang.NullPointerException     Exception in thread "main" java.lang.NullPointerException         at MySqlCountryDAO.getCountries(MySqlCountryDAO.java:28)         at Main.main(Main.java:11)  I don't know what is causing it nor how to debug it. And there are a lot of other features I want to implement on it but I can't test them until the main app runs. Would really appreciate inputs to fix the problem and welcome suggestions to improve the program's structure as well.  Link for GitHub with the complete project is .  Thanks a million!

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 live in an area where ricotta cheese is non existent, and all the dairy products I have access to are high temp pasteurized. Will that work?  Are there any herbs in ricotta? I'm trying to make my lasagna without it, and it would just would not be the same.

I live in a town where fresh or whole milk is not readily available. I was wondering if I could make cheese from UHT Milk. If so, what kind of cheese and what method I should use? Or rather, Should I?


I have asked similar questions here, but I still don't understand the following:  If I have a metric e.g. $$d(x,y) = |x^3 -y^3|$$ why is translation invariance and homogeinity preventing me from simply defining the norm as $$||x|| = d(x,0)$$?

I know that when we have a normed vector space the metric is, by definition, $d(x,y) = ||x - y||$. Why is it that, when we want to induce a norm from a metric, we have to satisfy two properties, namely translation invariance and scaling property? How are those two properties deduced and why are they required for this converse induction?


Is there a handy way to display only the subsections corresponding to the current section in scrartcl like \tableofcontent[currentsection] does in beamer?

I like to get a toc at beginning of some of my sections, like in beamer where I can use \tableofcontents[currentsection] is there a possibility in scrartcl?  Something like this:  \documentclass[10pt,a4paper]{scrartcl} \usepackage[ngerman]{babel}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \begin{document}  \tableofcontents %complete  \section{First}  \section{Second} \tableofcontents %just subsection and subsubsection \subsection{SecondSub} \subsubsection{please} \subsection{this} \subsection{SecondSub2} \subsection{parts}  \section{Third} \subsection{another}  \end{document}   Looks like:  Inhaltsverzeichnis %complete  1 First  2 Second 2.1 SecondSub.......................2 2.1.1 please........................2 2.1.2 this..........................2 2.2. SecondSub2.....................3 2.2.1 parts.........................4  3 Third 3.1 another ........................5   1 First  2 Second  Inhaltsverzeichnis %just subsection and subsubsection 2.1 SecondSub.......................2  2.1.1 please........................2  2.1.2 this..........................2 2.2. SecondSub2.....................3  2.2.1 parts.........................4  2.1 SecondSub  2.1.1 please   2.1.2 this  2.2. SecondSub2  2.2.1 parts   3 Third  3.1 another


Im new in Linux world, and i have a problem what is cant solve for like 17 hours.  Im using Ubuntu 18.04.3.  I would like to edit my files from the gui, because i don't want to use the nano, or mcedit every time i have to edit some config file.  So i downloaded Notepadqq (not the snap version!), and created a "shortcut" for it:  #!/usr/bin/env xdg-open  [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/usr/local/bin/notepadqq Name[en_US]=Notepadqq Name=Notepadqq Icon=notepadqq   also in the /usr/local/bin i created a bash script named notepadqq, what contains:  #!/bin/bash /usr/bin/notepadqq --allow-root $* exit $? ###eof###   So this route (/usr/locl/bin) is the second in my $PATH, so this will run before the "real notepad" if i think it right.   I gave it my username with chown  chown myusername:myusername notepadqq   and set the read-write priviliges too  chmod 0755 notepadqq   So my plan was to run Notepadqq always as root.  But it dont works. The terminal script: 'sudo notepadqq' is works very well, but now what's the matter with --allow-root, if i have to 'sudo' to use the flag --allow-root? :D  i tried this:  [Desktop Entry] ... Exec=pkexec gedit /usr/local/bin/notepadqq   but it's not works. When i try this at the terminal (pkexec gedit notepadqq) i get this error:  Unable to init server: Could not connect: Connection refused   Now i shot all my thoughts, i dont know what to do.  Does anyone have any clues?

I made a .desktop file for Androxyde's Flashtool (utility for Sony Xperia devices that I have to open with an executable file in its folder) that requires root privileges to use fastboot utilities. I used to make it work with gksu, but I'm on Ubuntu 15.04 and gksu is now old.  I tried to modify the exec line from Exec=gksu /home/natasha/FlashTool/FlashTool to Exec=pkexec /home/natasha/FlashTool/FlashTool Then, I read about pkexec doesn't allow to run X11 applications and so I override in this way:      The problem now is: It asks me the password but the Flashtool's GUI doesn't start. BUT if I execute that command in terminal, the program starts without problems. What can I do?


Whenever I click on cheat mode in my game, it tells me it is selected, but it is always recipe mode. Even though the selection in the config is set to -1

When I heard that you could look up recipes and cheat items with Not Enough Items, I downloaded NEI. It worked, and then I got another mod and the all of a sudden NEI still worked, but it was locked in recipe mode only. I tried fixing it by putting it into cheat mode again, but it was still in recipe mode.  I knew the only reason this happened was probably because of a change in the mod. Then I was watching a YouTuber who had the same exact mod as me and NEI was working and not locked in recipe mode for him. I tried redownloading NEI and getting it again but I was still stuck in recipe mode.  How do I get NEI in cheat mode?


I simply want to get rid of the latest version of Fedora that is currently on my laptop and install Ubuntu instead. Can someone please tell me how? I followed the "get ubuntu" links on the site but it doesn't seem to work.

I'm planning to have an Ubuntu 11.4 / OpenSUSE 11.4 or maybe an Ubuntu 11.4 / Fedora 15 beta dual boot (or the three of them).  Will they dual boot just after installation? or I have to install them in a certain order or do some special configuration?  (Right now I'm using Ubuntu 10.10)


I am trying to push one of my projects to production on a digital ocean Ubuntu droplet. I installed Source Sans Pro as a font next to a default font that was already installed called 'dejavu'. . I already rebuild the cache with: fc-cache -f -v When I run the command fc-list, I can cleary see that Source Sans Pro is installed (I assume):  After I cleared the cache I also restarted the app with pm2 restart app.js and sudo service nginx restart to make sure the changes had effect. I use Handlebar.js and Puppeteer to generate an invoice. In that template I use the following code to use this custom font: <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <style>     body {       font-family: 'SourceSansPro';       font-stretch: normal;     }   </style> </head>  Anyway, when I generate the invoice, for some reason the pre-installed font is the one that gets rendered:  What do I need to do to use SourceSansPro instead of the already installed dejavu font?

I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen , which doesn't even work on Firefox, and . The second solution is for titles only. Is there a solution available for full text? I'm tired of the standard fonts for web pages.  Thanks!


My initial guess would be no, as infinity is not a point.  Using the same definition of a limiting point from  , and say for the sequence of negative integers $s_n=${-1,-2,-3,-4...}.  $\lim_{n \to \infty }s_n = -\infty$ and since $-\infty$ is not a point in the negative integers I am guessing that means (negative)infinity is a limiting point of $s_n$. So what would be the correct interpretation here? Is infinity a (divergent)limit of the sequence or a limiting point?

I can't wrap my mind around this: An accumulation point is a point of a set, which in every yet so small neighborhood (of itself) contains infinitely many points of the set, right?  So if (in my case) $-\infty$ is an accumulation point, then we could find a point of the set, that is finitely distant from infintity?!  Here's the task: Let $(a_n)_{n∈\mathbb N}$ be a set in $\mathbb R$. For every $r ∈ \mathbb R$ exits an accumulation point $b ∈ R$ ∪ {−∞} of $(a_n)_{n∈\mathbb N}$ (+∞ und −∞ are allowed as accumulation points) with b < r. Show, that −∞ is an accumulation point of $(a_n)_{n∈\mathbb N}$.


In some situations, a question can have more than one meaning, and a new user with less than 50 rep points would like to ask for a clarification that would make sense. In this case, they have to ask in an answer field.  Shouldn't we allow at least a clarification field, if comments are not allowed for less than 50 rep?  Clarification if a new user wants to get clarification on an ambiguous question asked by another user, they can't ask in comments, instead they will ask in the answer field.  shouldn't we allow this new user to be capable of making that inquiry? does it make sense to make the user ask in answer field or ask a new question to get clarification on another question to answer it!?

You require a reputation of 50 to leave comments on others' questions/answers; the FAQ simply states this as a fact but does not explain it. I'm a new user and I have identified this as an issue very quickly through my own experiences so far. Looking at other questions seems to also provide justification against this 50 reputation requirement for comments on others' questions/answers.      In my own experience, I've seen a few questions like "how do I do x?" then the same poster has answered with "in the end I did it like this: ..." where their solution was perfectly sensible, but there may be some gotchas to watch for - in this case I want to vote up their answer and/or comment on it to point out the potential gotchas, but I can do neither!  To me all of the above seems justification against this rep requirement to comment, so what is the counter-argument and justification for it?


So I know from a previous  that you are ok putting glass, glazed ceramics, silicone and stainless steel in the dishwasher, and that you should avoid putting non-stick coated, aluminium, copper, cast-iron, tin, wood, unglazed ceramics, etc in the dishwasher.   However, I'm in the market for a new set of pots and pans, and would like to know what I should be aiming for. At the moment, I have a skillet set:   4 inch non-stick - ruined 6 inch non-stick - ruined 8 inch non-stick - ruined 12 inch non-stick - not ruined 12 inch cast iron skillet - babied   During previous bouts of laziness, I've put them in the dishwasher and thus ruined the non-stick coating on most of them (the cast iron skillet is babied and never goes into the dishwasher). I also have a 14 quart pot, which is showing its age, and an 8 quart pot which had its bottom corroded to the point where a hole appeared (thus, leaky pot).  As an avid (and lazy when it comes to washing dishes) home cook, what should I be looking for in a set of pots and pans? At a minimum, what should I have in terms of sizes and types. I'd prefer to purchase them separately rather than buying a set (budget is not a limiting factor). Additionally, I'd love for them to be dishwasher safe, but I can add a few more 'hand wash only' items like my cast iron skillet.  EDIT  Per a comment below,  pretty much answers my question.

I have NO idea what I'm doing :). I'm looking to buy some pots/pans for my appartment (just moved out). Considering these:    I want to spend under $250 and this seems like a good value for my money. Wanted to check with some experts before I take the plunge.   I'd ideally like to be able to washing machine whatever I buy...  Thanks!


I'm just wondering, when is PhpMyAdmin going to be ready for Ubuntu 19.10? Should we wait until the next Ubuntu version?  I know there's a related topic about this () but as nothing I've tried seems to solve my problem, I'm thinking of downgrading to 19.04 again.  P.S.: This question is different because I wanted to know if there was going to be a date for an official release of PhpMyAdmin for this version of Linux, but looks like it will take some time before this gets done.  I found two excellent alternatives for PhpMyAdmin:       So, this topic can be closed.  Thanks!

I just recently upgraded from Ubuntu 19.04 (Disco Dingo) to Ubuntu 19.10 (Eoan Ermine). My phpMyAdmin was removed while upgrading. Now I can't install it again.  I tried using:  sudo apt-get install phpmyadmin php-gettext   but it shows something like this:  Package phpmyadmin is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'phpmyadmin' has no installation candidate   So I searched from phpMyAdmin, apt search phpmyadmin, but I didn't find any.  How can I install phpMyAdmin on this version?


I was able to play Dota 2 on Ubuntu 16.04. Then I tried to install graphics driver (amdgpu-pro) and fglrx on my OS. After that I messed up with my Steam.   So, today I upgraded my Ubuntu to 16.10 so that I can run the Steam, but it is still not working. The same error is going on.  It stucks at:  Running Steam on ubuntu 16.10 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0)

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I have a problem with logistic regression.  I have the following variables:  Var1: 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 NA 1 0 0 1 0 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1  Var2: 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 0 1 0 0 1  Var1 is continuous (It doesn't seem continuous because of my data, but in my study I have similar variables with 2,3,4.....)   Var2 is categorical  When I do logistic regression      mylogit <- glm(Var2 ~ Var1, data = mydata, family = "binomial")   I obtain a p value of 0.994 but It's not true, because I think that my data should have a p value < 0.05 since I obtain a p value < 0.001 doing a t-test.  I think that my problem is that all "1" in Var2 match with a "1" in Var1.  I' have checked this post:    and I have tried all the methods described in this post and I never obtain a significant p value.  Perhaps my problem is different, I don't know.  What should I do to obtain a realistic p value with my data???  Thank you very much.

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message:  Warning message: glm.fit: fitted probabilities numerically 0 or 1 occurred    We still get the model but the coefficient estimates are inflated.   How do you deal with this in practice?


I"m sorry to post again, but I need some help  Let $f:A \rightarrow B$ and C⊂A. Define f[C]={b∈B:b=f(a) for some a∈C}. Prove each of the following statemnts  a)If f is a bijection, then f[A\C]=B\f[C].  let f be a bijection. meaning f[A]= all of B. since f is also 1 to 1 and C⊂A, then $C \rightarrow f[C]$ is also 1 to 1 and no other number touch f[C] and f[C] ⊂B Therefore f[A\C]=B\f[C]  Is this correct? thanks!  B. if f[A\C]=B\f[C] for ever C⊂A, then f is a bijection. not sure how to do this one.   Thanks for any help  Edit: my previous post got no comments or anything, so I'm posting again to try to get more help

Let $f\colon A \to B$ and $C \subset A$. Define $f[C]=\{b∈B : b=f(a) \text{ for some } a \in C\}$. Prove or disprove each of the statements:  a) If $f$ is a bijection, then $f[A\setminus C] = B\setminus f[C]$.  Let $f$ be a bijection. since $f$ is onto then $f[A]=B$ and since $f$ is 1 to 1 then $f[A\setminus C] = B\setminus f[C]$ since every $A$ correspond to a $B$ and every $C$ correspond to some $f[C]$ so you remove that part from $B$.  Is this correct?I'm not sure if this is enough or all i need. Is there a more concise proof?   b)If $f[A\setminus C] = B\setminus f[C]$ for every $C \subset A$, then $f$ is a bijection  I'm not sure how to do this one. do I say that do I say this need to be 1 to 1 so $A$ doesn't make a $f[C]$. Any help would be great. Thanks!


If there is a name in a database (ie. O'Reilly) and I create the insert statement to insert this name into a database via a SQL query in a PHP script, it will cause an error because the apostrophe in the name will end the string and cause the query to fail ('O'Reilly'). Is there a way to use strpos() to find these apostrophes and replace them with a dash/space/comma/etc.  I have tried   $pos = strpos($value, "'");   if($pos!==false) {   $value[$pos] = "-";  }   But this will replace more than what I want in some columns.  I was hoping for something more like  $pos = strpos($value, "char'char");   if($pos!==false) {   $value[$pos] = "-";  }   Where the words "char" were replaced with some alphanumeric indicator so that the script knew to only replace the apostrophes in the names. Is there a way to do that in PHP?   This question has nothing to do with SQL injection, I am just trying to handle strings with apostrophes in them.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Let $N = 3^{105} + 4^{105}$. Show that $7 \vert N.$  So the rule for a number to be divisible by $7$ is that we have to take the last digit and double it and see if the difference between that and the original number is divisible by $7$. This doesn't seem to be the way to go here since the number is huge. Using computer I managed to compute $N \equiv 7 \pmod{10}$, thus $7$ is the last digit of $N$. Now I would need to determine if $3^{105} + 4^{105} - 14$ is divisible by $7$ which isn't that easy to do. Also, I wasn't able even to compute the last digit by hand here, there seems to be an alternative way to go about this?

I read somewhere that     $(a^n - b^n)$         It is always divisible by $a-b$.   When $n$ is even it is also divisible by $a+b$.   When $n$ is odd it is not divisible by $a+b$.      and     $(a^n + b^n)$         It is never divisible by $a-b$.   When $n$ is odd it is divisible by $a+b$.   When $n$ is even it is not divisible by $a+b$.      I wonder what's the proof for this.  First postulate is clear. $(a-b)$ would or would not be a factor. Any light on others?


The normal expected value that I am used to is the following with $f(x)$ as the probability density function:  $E[X] = \int_{-\infty}^\infty{xf(x) \, dx}$  My basic probability textbook is doing a basic proof with a nonnegative random variable $Y$ that begins:  $E[Y] = \int_0^\infty{P\{Y > y\} \, dy}$  Can someone explain this to me? Why does this expected value definition hold? Where does it come from? This doesn't make intuitive sense to me. I imagine that I'm missing something obvious?

Let $X$ be a non-negative random variable and $F_{X}$ the corresponding CDF. Show,   $$E(X) = \int_0^\infty (1-F_X (t)) \, dt$$   when $X$ has : a) a discrete distribution, b) a continuous distribution.   I assumed that for the case of a continuous distribution, since $F_X (t) = \mathbb{P}(X\leq t)$, then $1-F_X (t) = 1- \mathbb{P}(X\leq t) = \mathbb{P}(X>  t)$. Although how useful integrating that is, I really have no idea.


I have read in  about the Why "The 12-hour-system in English". Then my question is why "The 12-hour-system in English" rather than "The 12-hours-system in English"?

Good day! Explain it to me please:)  Is is right to say:  Five-storeys houses  or  Five-storey houses?  Thanks a lot!


Charged particles are accelerated through a RF cavity:  -Is the electric field accelerating the particles from the electromagnetic field itself?  -Or, is the electric field accelerating the particles from charges on the surface of the conductive cavity being moved to form a capacitor by interaction with the electromagnetic field?

In Synchrotrons I think they use microwaves to accelerate the electrons bundles that fly through-how does putting a microwave through a cavity accelerate an electron? I know that the Electric and Magnetic fields could and do have an effect on the electron, but if the radiation is moving parallel to the electron, wouldn't the force be perpendicular? Also, how exactly does the microwave radiation look in the vacuum chamber? Are the two ends constant nodes?


This is a weird question that I wasn't sure where to ask. Say I have two points A and B. I roll a ball from A to B. Between A and B there are an infinite number of points right? Wouldn't it take an infinite amount of time to move across an infinite number of points? Why does it then only take a finite amount of time for the ball to get to B?

So in order for two things $A$ and $B$ to move apart, for example, relative to each other, $B$ can be set into motion away from $A$. This means that we have to increase $B$'s velocity and therefore the acceleration has to be positive. If the acceleration has to be positive and $A$ and $B$ were stationary before, that means that $B$'s acceleration has to increase from zero and therefore the third derivative of motion with respect to time has to be positive. The third derivative has to increase from zero and etc. etc. Is this just another way to state Zeno's paradox (and thus a dumb question) or does motion really involve an increase of the magnitude of infinitely many derivatives of velocity?


How do you find the rank of this matrix $\begin{bmatrix} 0 &1& 2&1\\ 1&0&1&2\\ 2&1&0&1\\ 1&2&1&0 \end{bmatrix}$ My try: I wrote $\begin{bmatrix} 0 &1& 2&1\\ 1&0&1&2\\ 2&1&0&1\\ 1&2&1&0 \end{bmatrix}$ as $$\begin{bmatrix} 0 &1& 2&1\\ 1&0&1&2\\ 2&1&0&1\\ 1&2&1&0 \end{bmatrix}= \begin{bmatrix} 0 &1& 1&1\\ 1&0&1&1\\ 1&1&0&1\\ 1&1&1&0 \end{bmatrix}+\begin{bmatrix} 0 &0& 1&0\\ 0&0&0&1\\ 1&0&0&0\\ 0&1&0&0 \end{bmatrix}$$ Now $\begin{bmatrix} 0 &1& 1&1\\ 1&0&1&1\\ 1&1&0&1\\ 1&1&1&0 \end{bmatrix}$ has rank $3$ and $\begin{bmatrix} 0 &0& 1&0\\ 0&0&0&1\\ 1&0&0&0\\ 0&1&0&0 \end{bmatrix}$ has rank $4$. So using the fact that $rank(A+B)\le rank(A)+rank(B)$, I get $\begin{bmatrix} 0 &1& 2&1\\ 1&0&1&2\\ 2&1&0&1\\ 1&2&1&0 \end{bmatrix}$ has rank less than equal to $7$ which is useless as a $4\times 4$ matrix has rank atmost $4$. What can I do to calculate the rank of the matrix given above? Please help

"Find rank of matrix $\begin{bmatrix}                     0&0&-3\\                      9&3&5\\                     3&1&1\\                     \end{bmatrix}$ using echelon form?" "I am getting an answer equal to 2."  "When I reduce this I get $\begin{bmatrix}                           1&1/3&0\\                           0&0&1\\                            0&0&0\\ \end{bmatrix}$ so two pivots so rank must me 2 right ? However the book I am using says rank =1."


This sentence is from  (time 19:01):     A very important aspect of teaching is the ability of the teacher to shape their teaching style to the needs of their students.   My question is why one teacher shapes "their teaching style to the needs of their students".  If it should be teachers, this YouTube teacher is unreliable. We expect from a teacher to be perfect at this pretty simple English level. And if the sentence is OK, please explain to me why.

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I want to start a pendingIntent from a notification i send from App A = Admin to App B = users. I want to know if it possible to open a pendingIntent immediately a user or admin receives a notification(from each end)?  My App crashes when i try to open a notification sent from admin to user app and vice versa but I am using the same method below in both apps. What am i doing wrong?  NB :  it is just a chat and suggestion app and it works like any other chat application.      // sending notification to devices with versions below Oreo(android 8.0)     private void sendNotification(RemoteMessage remoteMessage) {          String user  = remoteMessage.getData().get("user");         String icon = remoteMessage.getData().get("icon");         String title = remoteMessage.getData().get("title");         String body = remoteMessage.getData().get("body");          RemoteMessage.Notification notification = remoteMessage.getNotification();         // creating a pendingIntent for notification         int j = Integer.parseInt(user.replaceAll("[\\D]",""));         Intent intent = new Intent(this,MessageActivity.class);         Bundle bundle = new Bundle();         bundle.putString("userid",user);         intent.putExtras(bundle);         intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);         PendingIntent pendingIntent = PendingIntent.getActivity(this,j,intent,PendingIntent.FLAG_ONE_SHOT);          //  notification sound uri         Uri defaultSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);         // creating an instance of Notification builder and setting its properties         NotificationCompat.Builder builder = new NotificationCompat.Builder(this)                 .setSmallIcon(R.mipmap.app_logo_round)                 .setContentTitle(title)                 .setContentText(body)                 .setAutoCancel(false)                 .setSound(defaultSound)                 .setVibrate(new long[]{1000,1000,1000})                 .setWhen(System.currentTimeMillis());                 .setContentIntent(pendingIntent);   // creating an instance of Notification Manager         NotificationManager nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);          int i = 0;         if(j > 0){             i = j;         }          // starting the notification         nm.notify(i,builder.build());   }   What I want to achieve is to be able to open app from notification if an admin sends a message which comes with a notification to the user and vice versa.

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?


any solutions or suggestions on this one?  An integer $n$ is called a $k$-th power if $n = m^k$ for some $m ∈ Z$. Show that if $n > 1$ is not a $k$-th power, then its $k$-th root is irrational, i.e. not of the form $u/v$ for $u, v ∈ N$.

It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well.  On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$.  It seems that any positive integer has a square root that is either an integer or irrational number.        How do we prove that if $a \in  \mathbb N$, then $\sqrt a$ is an integer or an irrational number?      I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational.  This suggests we can extend the previous result to other radicals.        Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational?


I know that it's limited for creative use Apple's proprietary fonts, and required downloading a DMG from Apple's Design Resources and installing so you can use it on your design tools, despite it already being basically installed and being used throughout the macOS system already. But I wanna ask, where does this fonts really reside when installed? And where you can find it? Including the Emoji font? It's not on the /Library/Fonts folder then where is it really?

I thought the new Apple font was called San Francisco, but I cannot find it in the font list of the Keynote.app for my Mac. Is it called another way or it is not available for Keynote?  I am currently using OS X El Capitan.


Let's say I have a object, with a .Start() method. I want to call the method by typing in the console, like this "object.Start()", that should call the .Start() method.

I can do an eval("something()"); to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#?  An example of what I am trying to do is: I have an integer variable (say i) and I have multiple properties by the names: "Property1", "Property2", "Property3", etc. Now, I want to perform some operations on the " Propertyi " property depending on the value of i.   This is really simple with Javascript. Is there any way to do this with C#?


I was using windows7 and installed ubuntu 13.04 which became the only os of my laptop. Now i want to reinstall windows7 again.I am unable to do so. please help

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


How do I make a PBR emissive dielectric material such as: a computer screen, a glow stick, or the white tube of a CFL light?  Do I MIX or ADD the Emission with the Principled BSDF? Should I mix it with Fresnel?

I'm trying to recreate an electronic device where the screen is ON - like this:     I can easily achieve the off version, just a glossy sharp black material, but as regards the "on" version, displaying an image that looks like it is behind a pane of glass and "emitting" a texture, so to speak, I have no idea.


I am trying to calculate electric field between two parallel plates () using Gauss's law and using field due to sheet of charge. The fields using both the methods is not matching. I am not able to point out the mistake. I am attaching the derivations

Consider the following parallel plate capacitor made of two plates with equal area $A$ and equal surface charge density $\sigma$:    The electric field due to the positive plate is   $$\frac{\sigma}{\epsilon_0}$$  And the magnitude of the electric field due to the negative plate is the same. These fields will add in between the capacitor giving a net field of:  $$2\frac{\sigma}{\epsilon_0}$$  If we try getting the resultant field using Gauss's Law, enclosing the plate in a Gaussian surface as shown, there is flux only through the face parallel to the positive plate and outside it (since the other face is in the conductor and the electric field skims all other faces).   $$\Phi = \oint \vec{E}\cdot\vec{dA} = EA$$  where $E$ is the electric field between the capacitor plates. From Gauss's Law this is equal to the charge $Q$ on the plates divided by $\epsilon_0$  $$\frac{Q}{\epsilon_0}\implies E = \frac{Q}{A\epsilon_0} = \frac{\sigma}{\epsilon_0}$$  I know there is something fundamentally incorrect in my assumptions or understanding, because I frequently get conflicting results when calculating electric fields using Gauss's Law. I am, however, unsuccessful in identifying this.   Edit: Also, another problem I noticed was that even if we remove the negative plate from the capacitor and then apply Gauss's Law in the same manner, the field still comes out to be $\sigma/\epsilon_0$ which is clearly wrong since the negative plate contributes to the field. So, maybe the problem is in the application of Gauss's Law.


Just wondering why .border will not wrap around nested divs d1, d2, d3.    The div with id main1 has a 5px solid border that I am trying to wrap around the three nested divs with ids div1, div2, div3.  Each of the nested divs have there own 2px solid border.  Seems like it should work but maybe something is getting overwritten somewhere.      .border {border: 5px solid RosyBrown;} .border-thin {border: 2px solid RosyBrown;} div#main1 {width: 90%;margin: 0 auto 0 auto;} div#d1 {width: 31%; float: left;} div#d2 {width: 31%; float: left; margin: 0 0 0 3.5%;} div#d3 {width: 31%; float: right;}

Main

d1

d2

d3

I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.

   There seem to be numerous methods of fixing the clear bug in Firefox:
 overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the
 solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust?


I am a junior developer and I use java to do website development.  I know org.apache.common.lang.StringUtils is recommended because of its null safty.  But what is null safe or null safty exacty?  why the codes as follows is ugly?     if( sth != null ) {   ...   }

I use object != null a lot to avoid . What is an alternative to: if (someobject != null) {     someobject.doCalc(); }


Bundled images link:   I want to achieve this formatting of cells(incuding automatic linebreaks working or alternatively a good way to manually do it):  What I want to end up with(made in MS Word) :     However halfway in I saw that linebreaks apparently do not work within multirow cells:  What happens with the linebreaks?     Then I tried splitting the text up to the 2 different cells but couldn't find a way to move down the one cell down so the text looks as if it was inside one cell  What happens with split text:     Can you please provide me a working example for this table that includes automatic linebreaks? The last column really is relatively long.  I hacked something together but it isn't quite what I wanted:   Corrections are written in red. The very right column works great but the others don't quite do what I want them to do. Here is the code:      \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{multirow, tabularx, ragged2e}     \newcolumntype{C}{>{\Centering\arraybackslash}X}      \begin{document}      \begin{table}[!ht]     \begin{tabularx}{\textwidth}{|c|C|C|C|C}     \hline     \multirow{2}{*}{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}     & \multicolumn{2}{C|}{Text} & Very long text \\ \hline      \multirow{1}{*}[-3.9em]{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}       Text& \multicolumn{2}{C|}{Text} & Very long text \\ \hline      & \multirow{2}{*}{text} & text & text \\ \cline{3-4}      & & text & very long text \\ \cline{2-4}      Text & \multirow{1}{*}{Text} & Text & text \\ \cline{3-4}      & \multirow{1}{*}{Text} & text & Very long text \\ \hline     \end{tabularx}     \end{table}     \end{document}   THX in advance!

How do I code a table to look like this? I'm not the best at LaTeX and can't seem to wrap my head around \multirow. I checked other examples prior to posting but they used \multicolumn and it just confused me even more. Thanks in advance!    \begin{center} \begin{tabular}{ |c|c|c|c|c|}   \hline  TextA & TextB & TextC & TextD & TextE\\  \hline  A & TextF & TextG & TextH & TextI\\  B & TextJ & TextK & TextL & TextM\\  C & \multirow{2}*{TextF} & TextG & TextH & TextI\\  \cline{3-3}  & TextJ & TextK \\ \hline \end{tabular} \end{center}   I was trying something like this.. I'm starting to have problems as I'm trying to multirow within a multirow? I'm not sure of the process here. I would like TextG to be split into 2 and TextH and TextI to be the cells which are split in 3 but not sure how to go about it. Will then TextJ and TextK be the contents of the split TextG cell?


I have a very simple question. If I root my phone, will it be easier for malware to run on my device and cause more damage (due to the nature of the extended set of operations that applications with root access can perform, and the downside of being logged in and running applications as root on Linux systems).  Thanks.    EDIT:  Even when an application is rooted, it can still be configured to disallow installation of APK files from unknown locations (locations other than the Google Play Store). This increases security since it makes it impossible that a web browser download install a malicious app even though the device is rooted.

I know there was a discussion previously BUT they didn't talk about security. E.g.: if I root my phone will all my apps run with root permission?  Related:


We know that the subgroups of $\frac{\mathbb{Z}}{n\mathbb{Z}}$ are defined as; Let $n$ be a positive integer. Let $d$ be a positive divisor of $n$, say $n = kd$, $k \in \mathbb{Z}$. Then $ \\{ \overline{0}, \overline{d}, \overline{2d} , ..., \overline{(k-1)d} \\} $ is a subgroup of $\frac{\mathbb{Z}}{n\mathbb{Z}}$. In my exercise I get that $12$ is divisible by $1,2,3,4, 6$ and $12$, this would result in $$\{\overline{0}, \overline{1}, \overline{2}, ..., \overline{11}\}$$ but by the property of divisibility does this not mean that for every $n$ we choose for $\frac{\mathbb{Z}}{n\mathbb{Z}}$, that the subgroup is always $\\{\overline{0}, \overline{1}, \overline{2}, ..., \overline{n-1}\\}$, since every n is divisible by $1$?

How calculate all subgroups of $(Z_{12}, +)$?  I know that the order of subgroups divide the order of the group, but there is such a smart way to calculate the subgroups of order 6?


I have seen the following paragraph in a sample IELTS writing test but don't understand its grammatical structure. Why is it in question format but affirmative?     To conclude, some say that we can get to know a country and its customs from the internet or TV, others believe that by going to those countries can we gain a deeper understanding.

I have seen this construction quite often:      Online ads have been around since the dawn of the Web, but only in   recent years have they become the rapturous life dream of Silicon   Valley.   What is the rule there?. When your sentence doesn't start with pronoun + verb, invert them as verb + pronoun?. I know it sounds awkward but is it possible (grammatically correct) to use something similar to:      Online ads have been around since the dawn of the Web, but only in   recent years they have become...   And in any case, does this only work with have (or has)? Maybe it works fine with 'had' but I can't think of an example right now.


Quite often I've flagged answers as NAA and my flag has been marked as helpful but the answer has remained days later. Most of the time it's because the answer has been edited, and I can see some logic in that, but at other times I've been at a loss for an explanation because the post doesn't seem to be even a partial answer where a moderator might dismiss as helpful but not delete.  But several times now I've noticed it's because the OP simply deletes and then undeletes the answer. I've noticed this most on Stack Overflow but here's  from Electrical Engineering where I checked into it further because I have 10k rep there:    So I'd like to suggest that a delete / undelete by the OP shouldn't dismiss a post from the low-quality review queue. I feel an edit should be the only thing that invokes that behavior and / or perhaps when something is dismissed allow the original flagger to re-raise a flag. That post was only deleted shortly after I used a custom moderator flag which seems a waste of their time.

A user whose post was flagged as not-an-answer can remove all those flags by deleting his post and undeleting it right afterwards. This happens because those flags are (rightfully) cleared when the post is deleted. However, when the post is undeleted by the user without any edits I think any Community-cleared flags should be reactivated (or a new flag raised instead) to avoid someone from cheating this way to prevent his post from showing up in the history.


My website gets called from a referrer with a zip code in the url as a parameter like this:    But if I click another link on my site, the parameter is lost!  How can I keep this parameter permanently on the site or use it for the current session?

I created a custom URL parameter for sorting posts by their vote scores. I have a "most voted" link that sends a ?sort=most_voted URL paramater and using a query posts filter I display posts with most votes.  If for instance I want to display most voted posts in category 5, I'll need a URL like this ?cat=5&sort=most_votes  How do I preserve/attach the sort parameter in the URL when browsing categories (or even by tag name, search, etc)?


Sometimes I want to cite stuff such as commands or library names etc etc. Over markdown I use the `somestuff` citation. But how I can do similar ting in tex?

On any SE post one can use the backtick symbol ("`") in order to mark some text as being a piece of code, or computer output. For example: void main().  Is there a way to make use of "`" the same way in a LaTeX document?


I'm trying to find a way to send via a simple form a message to an author (from frontend, everyone can message) without having the author email address visible in html.   Do you know if there is a plugin to manage that or we have to manually code a php function?  Thanks

Is there any way that I can have a website user be able to contact a post author. The website user must not be required to be logged in to the website. I guess a form to email the post author might be the way to go, but it must be simple to use, and avoid spam. Is there such a plugin for wordpress that can handle this?


I have Thinkpad T61 with 2 G RAM & 500 GM HD, partitioned to 3 volume. one volume created while setting up windows 7 home version reserved for recovery and then C drive where the windows 7 installed. I used Wubi (CD ROM) to install Ubuntu 14.04 LTS (Os type 32bit), after first reboot Ubuntu start to install and suddenly an error pops up as below and attached picture:     Failed to partition the selected disk (as superuser)    this probably happened because there are too many (primary)  partitions in the partition table    I have only 1 primary partition in my HD, any idea?

I tried to install Ubuntu 14.10 on my computer with Wubi. The installation appeared to work in Windows, and told me to reboot.   After rebooting the Ubuntu installer continued the installation, until it stopped with an error message: Failed to partition the selected disk with the detail This probably happened because are too many primary partitions in the partition table.


I am trying to parse through a HashMap stored into an ArrayList (Not good at it). I did as I have been told however, I am getting an NullPointerException  Here is my code:  private void populateList() {     list = new ArrayList<HashMap>();      HashMap temp = new HashMap();     temp.put(CODE,"128");     temp.put(SERVICE_CODE, "NRS");     temp.put(SERVICE_GROUP, "Medical Treatment Loan");     temp.put(SERVICE, "Number of referral slip");     list.add(temp);      HashMap temp1 = new HashMap();     temp1.put(CODE,"128");     temp1.put(SERVICE_CODE, "NL");     temp1.put(SERVICE_GROUP, "Medical Treatment Loan");     temp1.put(SERVICE, "Number of Loan");     list.add(temp1);       HashMap temp3 = new HashMap();     temp3.put(CODE,"128");     temp3.put(SERVICE_CODE, "AD");     temp3.put(SERVICE_GROUP, "Medical Treatment Loan");     temp3.put(SERVICE, "Amount disbursed");     list.add(temp3); }   and here is how I was trying to Iterate through my list:   for (int a =0; a < list.size();a++)                 {                     HashMap<String, Integer> tmpData = (HashMap<String, Integer>) list.get(a);                     Set<String> key = tmpData.keySet();                     Iterator it = key.iterator();                      while (it.hasNext()) {                          String code = ""+tmpData.get(CODE);                          String service, service_group;                          if(code.equalsIgnoreCase("128"))                         {                              if(tmpData.get("SERVICE_CODE").toString().equalsIgnoreCase("AD"))                             {                                 service = tmpData.get("SERVICE").toString();                                 service_group = tmpData.get("SERVICE_GROUP").toString();                                 tv.setText("code >> "+code + "\nService Code >> "+tmpData.get("SERVICE_CODE").toString()                                 +"\nservice >> "+service+"\nservice_group >> "+service_group);                             }                         }                         it.remove(); // avoids a ConcurrentModificationException                     }                  }   My Error:    12-04 19:30:22.887 24861-24861/com.example.monkey.mysql_dump E/AndroidRuntime: java.lang.NullPointerException  12-04 19:30:22.887 24861-24861/com.example.monkey.mysql_dump E/AndroidRuntime:     at com.example.monkey.mysql_dump.input_taking$2.onClick(input_taking.java:74)   Basically I am trying to get the last value here, just to see if I can actually go through the whole arrayList.  Thank you.

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?


Initially have 5 buttons in div, and i have a code to create buttons dynamically see the code below..  My main question is after adding some more buttons. I have top and down arrow buttons to scroll the div.  I want to scroll one button or (set of buttons) on each click.  On each click now i am getting some portion of the button.  How can i get full button on each click with out considering how much width that dynamically created button have   This is my Html code snippet

Home

about

services

contact

contact

services

   My function to create dynamic button.....  function createButton() {   var ul = document.getElementById("navbar-buttons");   var li = document.createElement("li");   var link = document.createElement("a");   var name = document.getElementById("recipient-name").value;   link.setAttribute("href", name);   link.setAttribute("data-toggle", "tab");   var textName = document.createTextNode(name);   link.appendChild(textName);   li.appendChild(link);   ul.appendChild(li);   // $(li).insertBefore("#lastIcon"); }   This is how i tried to scroll the button onclick ..  var test = 0; function scrollToLeft() {   test = document.querySelector("li").offsetWidth;   console.log(test)   document.getElementById('nav-id-scroll').scrollLeft += test; }  function scrollToRight() {   document.getElementById('nav-id-scroll').scrollLeft -= test; }

Suppose that I have a <div> that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the <div> element.   What should I use? Please include information on browser compatibility.


I don't know why, but I've met all its requirements for the house its on underground it has a chair, a table, a lighting source. I can even hear its background music.Its not near on the corruption. I'm on hardmode and I still didn't defeat the mechanical bosses BUT,the most confusing thing is that it has a statue message that says :Agaric wants to settle down.I really want truffle to move in its house. What should I do???

I keep getting an alert that Amanita would like to settle down. I have a house ready for them however they still won't move in. Who is this NPC and why won't they settle down?


I like how 3D View exposes me the auxiliary objects, like cameras, selected object coordinate system and TrackTo line. But all auxiliary objects are removed in the rendered view, that is stored to output device by animation. Can I render the animation in Solid view instead of Render, for instance?

Is there some way to render exactly whats in the camera view in the 3D view? By that I mean just like a screenshot really, all paths, lamps, and cameras, just like things look in the camera view. The reason I can't just take a screenshot is that I need an animation and it would be too cumbersome to take 1000+ screenshots!


I would like to share my files via LAN.  How to know IP address of mine and other's one by using terminal or anything else but without using Internet?  I'm using Ubuntu 14.04LTS

I have a media computer which I recently reformatted to Ubuntu 10.04. I am probably just missing something obvious but I can't figure out how to share folders and files, so that I can browse to them on my Windows computers in order to copy files to/from the computer.  How do I do this?


For the sake of readability, in one of my triggers I have :new.COLUMNNAME := old.COLUMNNAME; alongside the sets for the rest of the columns. Does this statement get removed before runtime? (That column is not assigned anywhere earlier in the trigger)  We're doing this because depending on the value of typecolumn, other columns will or will not have values, and those values are found on another table... It's not exactly good sql using all the features as they were intended to be used, or good db design, but this is an old codebase and we have to play the hand we're dealt.  I want to set all the columns, even if the value doesn't change, for the sake of clarity and readability so that people know that we didn't just forget a column. The lead dev is hesitant to do that because he's worried about the performance impact of extra lines in a trigger (which will get called many times), but if I can prove that the lines have no effect then he'll be placated.  Here's a little more (simplified) context to hopefully illustrate what I mean.  create or replace trigger SCHEMA.TRIGGERNAME before insert on SCHEMA.TABLENAME1 for each row declare mno1 number begin   select min(mno2), min(data22), min(data32)     into mno1, data2, data3     from (select mno as mno2, data2 as data22, data3 as data32       from SCHEMA.TABLENAME2 t2         inner join SCHEMA.TABLENAME3 t3           on t2.somekey = t3.somekey);    case :new.typecolumn     when 1 then       :new.mno := mno1;       :new.data2 := :old.data2;       :new.data3 := :old.data3;     when 2 then       :new.mno := :old.mno;       :new.data2 := data2;       :new.data3 := data3;     end case; end;

Suppose I am running multiple column update on one row. Does the database engine physically write new data to the database if some of the columns contain the same values as existed previously in the database? If so, how can it be avoided?  I'm about to implement a job which will run an update on a large table and most of the values will be the same but still, it has to recalculate them all. I am wondering if the update will also rewrite each column even if there is no need to, because the storage media will degrade faster.


I understand that the confidence level denotes how reliable is my test and the confidence level is not the probability associated with the confidence interval. This is well explained on Wikipedia:  Nevertheless, in Wikipedia it is also stated in the subsection "Misunderstandings" that: A 95% confidence level does not mean that for a given realized interval there is a 95% probability that the population parameter lies within the interval.  This is illogical to me. If the confidence interval denotes how reliable a test is, and if the test provides a given interval, I would deduce that the confidence interval is reliable with 95% of probability and hence the parameter is in the interval with 95% probability.  Why is my reasoning wrong?

It seems that through various related questions here, there is consensus that the "95%" part of what we call a "95% confidence interval" refers to the fact that if we were to exactly replicate our sampling and CI-computation procedures  many times, 95% of thusly computed CIs would contain the population mean. It also seems to be the consensus that this definition does not permit one to conclude from a single 95%CI that there is a 95% chance that the mean falls somewhere within the CI. However, I don't understand how the former doesn't imply the latter insofar as, having imagined many CIs 95% of which contain the population mean, shouldn't our uncertainty (with regards to whether our actually-computed CI contains the population mean or not) force us to use the base-rate of the imagined cases (95%) as our estimate of the probability that our actual case contains the CI?   I've seen posts argue along the lines of "the actually-computed CI either contains the population mean or it doesn't, so its probability is either 1 or 0", but this seems to imply a strange definition of probability that is dependent on unknown states (i.e. a friend flips fair coin, hides the result, and I am disallowed from saying there is a 50% chance that it's heads).  Surely I'm wrong, but I don't see where my logic has gone awry...


I'm working with a team that uses Windows, Axure & Illustrator.  I was hoping that I could find some sort of tool similar to Kactus or Abstract for version control, but I can't seem to find anything for Windows or for Adobe Illustrator.  Does anybody have any suggestions?

I've just been searching around the net for version control that has some support for graphic/Photoshop files. We're currently using BitBucket which is free and unlimited when it comes to file size but doesn't have any design review tools.  Here's what I've found. Does anyone else have any recommendations?  Pixelapse – Free/Beta, works well. Now has layer comp support.   Shipment – Private Beta (waiting for an invite)   LayerVault (out of business) – Windows/Mac, has layer comp support   PixelNovel – SVN Version control for Photoshop   CAD only?! But looks really good.   FileTrek – Very enterprise. No price or demo.   Kaleidoscopeapp – GIT with image compare   Apps that copy files with an incremented version


I am having the following type where T should only be of int, double, string and datetime. However using a constraint on class would be too broad.   public class Field<T> where T : class  {     public int Tag { get; set; }      public T Value { get; set; } }   Possible solutions that come to my mind:    Add a constructor that does a check (if ((typeof(T) != typeof(string)) ...) Change the class to be abstract and move Value to the concrete implementing class. This however would result in having several additional types, like StringField : Field, DateTimeField : Field, etc.    Also I would like to be more specific about the Tag property and replace it with an enum, which ensures that only values of predefined range can be used. This approach however would result in a (tiny) overhead, as I need to instance representation of Field as a string.   What would be the best model to choose? Anything I am missing? Thanks in advance

Can anyone tell me if there is a way with generics to limit a generic type argument T to only:   Int16 Int32 Int64 UInt16 UInt32 UInt64   I'm aware of the where keyword, but can't find an interface for only these types,  Something like:  static bool IntegerFunction<T>(T value) where T : INumeric


I am aware that faraday cage is used to protect electronics from damage.  However, if I put a signal generator in a faraday cage and turn the signal generator on, can the frequency still be picked up/detected by external sources?  Or will the faraday cage block the frequency signals sent out by the generator?

I see lots of discussions about how a  can block EM signals, but almost no one addresses the possible difference between incoming signals versus outgoing signals. It seems to me that those are different situations.  For sake of argument, lets say the cage is a hollow superconducting sphere.  I can see how EM fields outside the sphere could re-distribute the charge on the surface of the sphere in a way that there would be no EM field inside the sphere.  However, in the simple case where a point charge is placed in the center of the sphere, the charge on the surface redistributes in such a way that the EM field outside the sphere is as if the sphere was not there.  Similarly, it seems like if the charge inside the sphere were rapidly moved up and down along the z-axis, it would create an EM wave outside the sphere as if the sphere was not there.  Am I missing something here?  **Edit: I used the term "Faraday Cage" because it is in common use and it makes this discussion easier for others to find. But I am asking about a highly idealized case of a superconducting spherical shell with a charge inside but not connected to the shell. For me it provides a good starting point for understanding real Faraday cages.  By the way: I was once told by a physics professor that this is one of the few things Feynman gets wrong in the Feynman lectures. Which shows how easy it is to get this wrong. Either a physics professor at a major university gets this wrong or Feynman.


I am VERY green. My ex left Debian on my laptop and it's too complex for me so  I want to install Ubuntu on it. But I can't even get Ubuntu installed on a USB.   Start Up Disk Creator sees my USB but the "Make Start Up Disk" button is not clickable.   I have Ubuntu 18.04 LTS on one laptop --thanks to a Linux MeetUp! But it won't let me burn an ISO file (like I know what I'm talking about). I see there are similar questions but the answers are overwhelming. There is no simple way to create a bootable USB?  Time to go to another Linux MeetUp (and be the only girl)?

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


new to writing in php, I'm using a $mysqli->prepare() function to get a statement ready for execution, but it keeps failing and I don't know why. THe error inside the $mysqli->error is "no table used," and I can't seem to find much documentation for that either... if anyone could help out, that would be hugely appreciated. Code below:  $datasqli=new mysqli(HOST, USERNAME, PASSWORD, DATABASE); // defined elsewhere if ($datasqli->connect_errno) {     printf("Connect failed: %s\n", $datasqli->connect_error);     exit(); }  if ($usertest = $datasqli->prepare("INSERT INTO eeg (Identifier)      SELECT * FROM (SELECT ? ) AS tmp WHERE NOT EXISTS (     SELECT Identifier FROM eeg WHERE Identifier = ?     ) LIMIT 1")) {     // this stuff never gets executed... } else {     echo $datasqli->error; // "no table used" }   I've tried executing that code block directly inside the mysql environment and it works fine.

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


// Here is the code for static variable.... class IdentifyMyParts {     public static int x = 7;     public int y = 3; }  public class Testing {     public static void main(String[] args) {         IdentifyMyParts a = new IdentifyMyParts();         IdentifyMyParts b = new IdentifyMyParts();         a.y = 5;         b.y = 6;         a.x = 1;         b.x = 2;         System.out.println("a.y = " + a.y);         System.out.println("b.y = " + b.y);         System.out.println("a.x = " + a.x);         System.out.println("b.x = " + b.x);     } }  // Output:-              a.y = 5                b.y = 6                   a.x = 2                     b.x = 2               Why the value of a.x is not changing? Why is it showing a.x = 2?

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


My company has a blog, that we release weekly articles on. A few have gotten moderate traffic (more than our actual site's home page). I am trying to figure out if the effort we spend on writing these articles is helping our main site's page ranking. Our site is company.com and our blog is company.com/blog.  I know any traffic is good, but our main goal is to increase our home page's page rank for searches that are not related to blog articles. For example, we have a blog article about using social engagement in mobile apps, that is near the top when those keywords are searched. Does this help our page rank when people search for mobile development consulting companies (which is what we actually do)?

When it comes to SEO, I hear the saying "content is king" a lot, so I tried to create a bunch of pages on my site with good authentic content.  However, does creating a lot of content on a page or several pages help the homepage when it comes to SEO or is it every page for themselves? Will making an "About" page for my website with good SEO help my homepage with SEO, or do I need to focus directly on the content of my homepage itself?  It seems, a lot of my pages that are not my homepage page are showing up in search results over my homepage. My homepage has some content, but a little less than other pages which are coming up before it in search results. I'm wondering if I'm taking the right approach.


I would like to format a string based on the input. For example if the line count is 1, the output must be image00001.png and if the line count is 400, the output is image00400.png I use the following to do so filename = "image%05d.png".format(line_count)  but it doesn't work as expected. What am I missing?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?


I've been wondering this for a while and it may be obvious but I can't think of how it works. From my understanding, to calculate the sine you'd do opposite side length/hypotenuse side length, but the calculator doesn't know these side lengths.  This may sound really dumb to you guys but I'm kinda new to trigonometry so I'd appreciate any help I can get with this.  Thank you!

Sine $\theta$ = opposite/hypotenuse   Cosine $\theta$  = adjacent/hypotenuse   Tangent $\theta$  = opposite/adjacent      In order to calculate the sine or the cosine or the tangent I need to know $3$ sides of a right triangle. $2$ for each corresponding trigonometric function. How does a calculator calculate the sine, cosine, tangent of a number (that is actually an angle ?) without knowing any sides?


I want, before uploading a file in image folder, to check if the file in the folder already exists or not. If the file already exists it should show a message.  from flask import Flask, render_template, request from werkzeug import secure_filename  UPLOAD_FOLDER = '/path/to/the/uploads' ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'GIF'])  app = Flask(__name__) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER import os, os.path   APP_ROOT = os.path.dirname(os.path.abspath(__file__)) UPLOAD_FOLD = '/python/image/' UPLOAD_FOLDER = os.path.join(APP_ROOT, UPLOAD_FOLD) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER    @app.route('/upload') def load_file(): return render_template('upload.html')  @app.route('/uploader', methods = ['GET', 'POST']) def upload_file(): if request.method == 'POST':   f = request.files['file']      f.save(os.path.join(app.config['UPLOAD_FOLDER'],secure_filename(f.filename)))   return 'file uploaded successfully'  if __name__ == '__main__': app.run(debug = True)

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:  import os  file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path)  try:     os.stat(directory) except:     os.mkdir(directory)         f = file(filename)   Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now:  def ensure_dir(file_path):     directory = os.path.dirname(file_path)     if not os.path.exists(directory):         os.makedirs(directory)   Is there a flag for "open", that makes this happen automatically?


I'm planning to enter India with electronics in my luggage.   1) What's the duty-free limit depending on:   Method of travel (flight, car, train, boat) Visa type (tourist, business, family) Residency status (resident in India, resident elsewhere) Citizenship (e.g. Indian citizen resident in America) National origin (Indian, Pakistani, other) Type of electronics Country of purchase (e.g. an iPad bought in India) Age (e.g. children traveling with me) Number of people traveling with me (e.g. 5 people carrying 3 laptops)   2) How would the customs employees determine the cost of the items I'm holding? Would it help to repackage the items to make them look used?  3) Is it likely that I would be inspected by customs at the airport?  4) If I do have to pay duty, what amount can I expect to be charged?     Note that this is a broad question based on    meta-travel   discussion. Replies should ideally be posted as a community wiki.

I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer?  What all I can take?   One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport.  Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff?


I am trying to delete all empty lines after line number 3, till the end of  the file: cat ${File} 1  2 3   4  5  5    6 7    8 9   sed -e '3,${s~^$~~g}' ${File} 1  2 3   4  5  5    6 7    8 9   Observation:  No change in the output. Desired Output 1  2 3 4 5 5 6 7 8 9  Any Suggestions?

I have this:  sed -i '/^$/d' temp_spec.rb   which is stripping blank lines and works well.  How can I make it only do this for lines 5-999 (or ideally 5 to end-of-file).  I tried:  sed -n5,999 -i '/^$/d' temp_spec.rb sed '5,999!d/^$/d' temp_spec.rb   but neither worked (no errors).


Am trying at create a bash script which would return the total space occupied by files inside macOS diectory  ~/Pictures/Photos\ Library.photoslibrary/Masters/.  #!/bin/bash # AUTHOR:SWASTI BHUSHAN DEB      # Platfrom:macOS     # macOS High Sierra 10.13.     #Checks the total space occupied by files within a directory       read -e -p "Enter the full path to the Home Directory : userpath     var=$(sudo du -ach $userpath/Photos\ Library.photoslibrary/Masters/|tail -1|awk '{print $1}')     echo "$var"     exit   The command below when used solo in terminal provides the desired result:  `du -ach ~/Pictures/Photos\ Library.photoslibrary/Masters/|tail -1|awk '{print $1}' 25G   But when put in the script above with $userpath ,the script encounters error:   du: /Volumes/Macintosh: No such file or directory du: HD/Users/swastibhushandeb/Pictures/Photos Library.photoslibrary/Masters/: No such file or directory 0B   Am not sure whats wrong in this.Any comments/sugesstions/sample script code are welcome

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I am traveling to Indonesia the next month and I am told that flights are often delayed or canceled. Therefore one can easily miss a connection or miss the first (already paid) night in some hotel.  I already have a medical insurance for when traveling and I am even insured for lost luggage. The only thing I am missing is an insurance that covers flights issues. Is there such an insurance? Can you recommend any?

Our family will be going to Rome this November.  As in , I am worried about missing my return flight home.  Is there travel insurance that will help us find a return ticket home if that happens?  I'm talking about us missing a flight with no fault of the airline.  Like if the train breaks down or we get stuck in traffic.  This policy would need to buy us return tickets home and since there might not be a ticket available, I imagine it would have to be able to do some clever negotiating with the airline and hotels.  Does that exist?


When I go to my monthly calendar I can no longer go to a date?! I have to manually scroll through. Any ideas on why or how to fix?

From the calendar month view, I can't select a date, and jump to the day view.  Running iOS 9.0.2 on iPhone 6


I have caught my first Pokemon and now it is asking me for a nickname so when I type any Nick name it tells it isn't available. For every name I type it shows the same. Why is it so..... Why don't u tell which available and which to keep...

The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name?