I am currently doing on a project based on ordering system.   Here's the entity class for "orders" :   package fourFinger.entity;  import java.util.Date;  import javax.swing.JComboBox;  public class Orders {   private int orderId;  private int tableNo ;  private int numPax;  private Date orderDate;   private double totalAmount; public Orders( int tableNo, int numPax, Date orderDate, double totalAmount) {     super();     //this.orderId = order  Id;     this.tableNo = tableNo;     this.numPax = numPax;     this.orderDate = orderDate;      this.totalAmount = totalAmount; }  public Orders( int orderId, int tableNo, int numPax, Date orderDate, double totalAmount) {     this(tableNo, numPax, orderDate, totalAmount );     this.orderId = orderId;  }   public int getOrderId() {     return orderId; } public void setOrderId(int orderId) {     this.orderId = orderId; } public int getTableNo() {     return tableNo; } public void setTableNo(int tableNo) {     this.tableNo = tableNo; } public int getNumPax() {     return numPax; } public void setNumPax(int numPax) {     this.numPax = numPax; } public Date getOrderDate() {     return orderDate; } public void setOrderDate(Date orderDate) {     this.orderDate = orderDate; }  public double getTotalAmount() {     return totalAmount; } public void setTotalAmount(double totalAmount) {     this.totalAmount = totalAmount; }   My OrdersDA that connects to database :   public static int createOrders(Orders orders) {     // declare local variables     int orderID ;     DBController db = new DBController();     String dbQuery;     PreparedStatement pstmt;      // step 1 - establish connection to database     db.getConnection();      // step 2 - declare the SQL statement     dbQuery = "INSERT INTO orders (orderId, tableNo, numPax, orderDate , totalAmount) VALUES(?, ?, ?, ? , ?)";     pstmt = (PreparedStatement) db.getPreparedStatement(dbQuery);     orderID = getNextOrderId();     // step 3 - to insert record using executeUpdate method     try {         pstmt.setInt(1,orderID );         pstmt.setInt(2, orders.getTableNo());         pstmt.setInt(3, orders.getNumPax());         pstmt.setDate(4, (Date)orders.getOrderDate());         pstmt.setDouble(5, orders.getTotalAmount());           if (pstmt.executeUpdate() == 1)              return orderID;         pstmt.close();     } catch (Exception e) {         e.printStackTrace();     }      // step 4 - close connection     db.terminate();      return -1; }   There will be an error on :         pstmt.setDate(4, (Date)orders.getOrderDate()); and states that java.util.Date cannot be cast to java.sql.Date   My main method when creating orders :    private void actionPerformedOrder() {   //retrieve user input     String numPax = (String) cbNoPax.getSelectedItem();     String tableNo= (String)cb_tableno.getSelectedItem();    Date orderDate = new Date();       orders=newOrders(Integer.parseInt(tableNo),Integer.parseInt(numPax)   ,orderDate, totalAmount);    int orderID = OrdersDA.createOrders(orders);      }   Do you have any ideas where have i went wrong? Your help will be appreciated!

I am trying to use a  as input and then creating a query with it - so I need a .    I was surprised to find that it couldn't do the conversion implicitly or explicitly - but I don't even know how I would do this, as the Java API is still fairly new to me.


I have been able to log on to my dev box (which is in my home network) for a while now, using ssh username@publicip however recently this has become impossible due to the following error      ssh_exchange_identification: read: Connection reset by peer   Whats strange is, if i use the network address instead of the public address I am able to connect with no issues.  My colleague is also able to SSH to the public ip address with no issues as well.  What could be the cause of this and how can I solve it? I did a quick google which suggested I look in my etc/hosts.deny file, however I don't have one.  Thanks

I compiled OpenSSH_6.6p1 on one of our server. I am able login via SSH to the upgraded server. But I am not able to connect to other servers running OpenSSH_6.6p1 or OpenSSH_5.8 from this. While connecting I am getting an error as below.  Read from socket failed: Connection reset by peer   On the destination server in the logs, I am seeing it as below.  sshd: fatal: Read from socket failed: Connection reset by peer [preauth]   I tried specifying the cipher_spec [ ssh -c aes128-ctr destination-server ] as mentioned in  and was able to connect. How can configure ssh to use the cipher by default? Why is the cipher required here?


Examples of this? I know this is possible with infinite fields but I'm not sure about finite fields.

I know there is a long list of invariants, but is there a proof or theorem that explains two fields with the same characteristic are isomorphic?


I am trying to use BibTeX for references. Here is my code.  \documentclass[11pt, a4paper]{article}  \usepackage[latin1]{inputenc} \usepackage{graphicx}      \setcounter{secnumdepth}{0} \usepackage{cite}  \title{Draft Project Laser Bubbles} \author{PTB}  \begin{document} \maketitle  \abstract{ Optofluidics }  \section{Theory}  Blablabla said Nobody ~\cite{Nobody06}.  \bibliographystyle{plain} \bibliography{mybib}{}  \end{document}   And mybib.bib in the same folder:  @article{Nobody06,   author = "Nobody Jr",   title = "My Article",   year = "2006" }  @article{mrx05,   author = "Mr. X",  Title = {Something Great},  publisher = "nob" # "ody"},  YEAR = 2005,  }   Error message:     This is BibTeX, Version 0.99d (MiKTeX 2.9)The top-level auxiliary file: Project-PTB-Draft.auxThe style file: plain.bstDatabase file #1: mybib.bibWarning--I didn't find a database entry for "Nobody06"(There was 1 warning)   I have tried latex bibtex latex latex (it is my Quick Build at the moment). Any ideas? :)  First problem found: mybib.bib was in the wrong folder. facepalm. Put it in the right folder and it still doesn't work. The current error message:  Process started  This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file: Project-PTB-Draft.aux The style file: plain.bst Database file #1: mybib.bib You're missing an entry type---line 1 of file mybib.bib : @ :  Process exited normally  EDIT:  I fixed it! I deleted the old .bib file and made a new one in texmaker. Then it worked!  I guess an encoding problem or something :)  Thanks guys!

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I am have today a dedicated server with these specs:     Intel Core i5 750, 2x120GB (ssd + raid), Windows Server 2008 Web, 200Mbps Network, 24 Gb DD3    And I would like to know what are the best thing I can do to prevent a DDoS Attack, since I know this will be a real threat by the importance of the files that will be archived in it.  Today I have apache listening port 80 and RDC listening port 3389. But the security is beeing made only by Windows Firewall.  So, any thoughts on what would be good to prevent from DDoS attacks?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


What is the best way of tracking changes in a stored procedure? My team has multiple members working on same database and anyone can change in business logic, create or delete a stored procedure. Sometimes a single experimental change is breaking down or need extra time for digging out the problem.  Is there any reliable system that can be used for this purpose? If there multiple, which one is the best one.

What is the best way to version control my database objects? I'm using Visual studio 2005/2008 and SQL server 2005. I would prefer a solution which can be used with SVN.


How do I store 2 pounds of grated Parmesan cheese? Last time I froze it and it turned to mush when I defrosted it.  I also left in original package and it developed mold.

I like cheese. It's delicious. Sometimes it goes on a huge sale and it's a lot cheaper than normal. I want to be able to stock up in these times.  I am wondering what the best way to store cheese is of different types (the 8oz blocks of softer cheeses or hard blocks of fancier cheeses).  It seems like I could freeze them, but I've had bad luck with cheeses becoming crumbly. Harder cheeses feel like you could refrigerate them forever without them going bad, assuming you either don't touch them or they stay unopened.  Is there a good way to store cheese without it going bad? And how long does it stay good if you store it?


I need to create a wifi hotspot with my currently connected wifi network in Ubuntu GNOME 16.04, like I do in Windows 10). Is there a way to do that?

I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.  In Windows I can use , which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the :     Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.   How do I do this on Ubuntu?


I'm new to Linux administration, despite being a bsd/linux user for 25 years. I've always been told that Linux is secure and Windows is full of vulnerabilities and now that I've got a Debian 9.13 host to watch over, I ran debsecan | wc -l and it reported 384 vulnerabilities (known CVEs based on the packages I've got installed). That was after apt-get upgrade with the apt security repo enabled, so all existing security upgrades are already applied, to my understanding. Does this mean these 384 vulnerabilities just don't have a fix yet or is there another way, besides apt-get upgrade, to get the bugfixes?

Today I came across a paragraph on how to    debsecan was mentioned. I  and executed debsecan and as a result I received a very long and .    EDIT   I did run debsecan --suite=stretch I am running debian stretch 9.9 with kernel 4.9.0-9-amd64 My sources.list contains:    deb http://ftp.stw-bonn.de/debian/ stretch main deb-src http://ftp.stw-bonn.de/debian/ stretch main  deb http://security.debian.org/debian-security stretch/updates main deb-src http://security.debian.org/debian-security stretch/updates main  # stretch-updates, previously known as 'volatile' deb http://ftp.stw-bonn.de/debian/ stretch-updates main deb-src http://ftp.stw-bonn.de/debian/ stretch-updates main   # Backports ### To install a package from Backports: apt-get -t stretch-backports install "package" deb http://deb.debian.org/debian stretch-backports main   First I thought using apt update && apt -y upgrade would be enough to be up to date. But this does not seem to be the case when I see that regarding to debsecan I have so many tools with known exploits, especially those on high urgency. Just to mention a few: busybox, unrar, multiarch-support, bsdutils, mount, login, util-linux...  Then I  CVE-2016-2779 util-linux (high urgency) for example.     Regarding to security-tracker.debian.org there is a fix in version      2.33.1-0.1 (buster, sid).  So I hoped I could upgrade that package somehow.   Do you have any advice how I can achieve that? I tried with apt-get -t stretch-backports install util-linux but that didn't help.   As I have read I could upgrade to debian-testing as one option. Are there any other options?   Like my name already suggests, i am new to linux. This all is new to me. Until yesterday I thought I would always be up to date with my machines and now I see I am not.      I have edited my question because people pointed me to not use debsecan on an ubuntu installation because debsecan is not intended to be used inside ubuntu, although you can download it with apt from ubuntu repositories. No clue why you can download a tool that in the end is not meant to be used inside your distribution, but okay.


I have a set of data containing x-values and y-values. Say x=1,3,5,7,9 and y=26,28,30,28,26.   How to plot it in LaTeX? The graph will be a straight line increasing till x=5, and then will start decreasing on x=7,9.

Very new LaTeX user here!   There are a ton of impressive graphs on this site. I, however, am trying to make a nice looking line on a simple graph by plotting two (x,y) coordinates: (8, 2) and (-2, -3).  Can somebody please help me with this? Here's what I had in mind:   I've found a lot of information on parabolic graphs and much more advanced stuff, but nothing on really simple graphs.   Here's what I made:  \begin{tikzpicture}     \draw [thin, gray, ->] (0,-5) -- (0,5)      node [above, black] {$y$};       \draw [thin, gray, ->] (-10,0) -- (10,0)        node [right, black] {$x$};                   \draw [draw=red,ultra thick] (8,2) -- (-2,-3);   \end{tikzpicture}   I spent a long time trying to figure this out and mad a pretty stupid looking graph (which is huge):


I learned that from an instruction:     Co-processing does two things at the same time. It spawns a subshell in background mode and executes a command within that subshell.   [root@iz2ze9wve43n2nyuvmsfx5z ~]# coproc ( sleep 10; sleep 2 ) [1] 32508 [root@iz2ze9wve43n2nyuvmsfx5z ~]# jobs [1]+  Running                 coproc COPROC ( sleep 10; sleep 2 ) &   When I refer to its manual, get an error as feedback  root@iz2ze9wve43n2nyuvmsfx5z ~]# man coproc No manual entry for coproc [root@iz2ze9wve43n2nyuvmsfx5z ~]# coproc --info [1] 32579 [root@iz2ze9wve43n2nyuvmsfx5z ~]# bash: line 25: --info: command not found  [1]+  Exit 127                coproc COPROC --info   help works  [root@iz2ze9wve43n2nyuvmsfx5z ~]# help coproc coproc: coproc [NAME] command [redirections]     Create a coprocess named NAME.      Execute COMMAND asynchronously, with the standard output and standard     input of the command connected via a pipe to file descriptors assigned     to indices 0 and 1 of an array variable NAME in the executing shell.     The default NAME is "COPROC".      Exit Status:     Returns the exit status of COMMAND.   This's very confusing, How could I have a big picture of the commands on which manuals I can reach to? How to distinguish them?

For example,  [fakename]$ type echo echo is a shell builtin   But man echo gives me the GNU coreutils version of echo. What's the easiest way to tell if the man page I'm looking at is the correct one, i.e the one for the utility I'd get if I directly invoked it?


I have this limit: $$\lim_{x \to 0}\frac{\sin x-x}{x^3}$$ How can i resolve it without l'Hopital's rule?

I'm trying to solve this limit     $$\lim_{x\to 0} \frac{\sin x-x}{x^3}$$   Solving using L'hopital rule, we have:  $$\lim_{x\to 0} \frac{\sin x-x}{x^3}= \lim_{x\to 0} \frac{\cos x-1}{3x^2}=\lim_{x\to 0} \frac{-\sin x}{6x}=\lim_{x\to 0} \frac{-\cos x}{6}=-\frac{1}{6}.$$  Am I right?  I'm trying to solve this using change of variables, I need help.  Thanks  EDIT  I didn't understand the answer and the commentaries, I'm looking for an answer using change of variables.


I want to execute a python script from a certain directory and want to change the working directory for the execution without cd-ing in the shell or script. Is there a way to do this with the regular Python 3 interpreter? Say I'm in the directory cwd and there is a script baz.py in a sub(sub)directory that I want to execute. cwd/foo/bar/baz.py  Is it possible to tell the interpreter to use any directory among cwd, foo, bar (or anywhere else in the filesystem) as the working directory where the script is executed? IDEs can do this in run configurations, what's the simplest way to achieve it without actually cd-ing into the other directory? EDIT: I know how to change the directory from within the script, but I'm looking for a way to tell the interpreter where to execute it without modifying the script itself.

cd is the shell command to change the working directory. How do I change the current working directory in Python?


When starships meet in space, they are always topside in the same way. Wouldn't it be totally random? I can understand when a ship is in orbit that the planet is 'down', but even then, it should make no difference.

Space is just open 3D space, right? In Star Trek, ships are always coming from somewhere else: different solar systems, galaxies, etc. However, when they meet, they always seem to be on parallel planes (facing each other).  In some episodes I recall seeing ships that were adrift (and they appeared facing a different trajectory). How can there possibly be some standardized reference plane in space? Do ships just choose to align with each other to be polite? Or perhaps when entering a solar system, the pilot, or navigation system aligns orthogonally with the local orbital axis?


I cannot connect via WiFi and I've tried following the instructions in another question, but I get an error when modprobeing the module rtl8273de.  You can see the commands I ran on a clean install of Ubuntu 18.04 .  The error is as follows:     No wifi adapter found   I tried modprobeing, but I got the below error:  georgeorwell@georgeorwell:~/rtlwifi_new$ sudo modprobe -r rtl8723de modprobe: FATAL: Module rtl8723de not found.   I'm using an HP bs15-000xx laptop, and the WiFi was working (albeit rather slowly) before, when I had windows 10 installed.  I'd be happy to paste a config output somewhere...

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?  lspci -v | grep -i network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


I've been re-watching the 2nd and final season of "Terminator - the Sarah Connor Chronicles" (I used to love that show) with great joy, and wonder if there were any official or semi-official continuation of the show - E.g. books, graphic-novels/comics, cartoons, audio-plays?  Has the plans/outlines for the never-made 3rd season been leaked?    Alternatively, are/were there any really good fanfiction that took up the threds from the show in a good way?  BTW, were there any books, graphic-novels etc. released while the show ran (that tied in to episodes)?

So, Terminator canon is pretty twisted, given all that time-travel stuff.  But in the canon that includes the T:SCC, does anything pick up where the show left off that is considered canon?


Clearly, uncountable cardinals exist. How do we know that $\aleph_1$ is the smallest one? Is there a proof that there is no cardinal strictly between $\aleph_0$ and $\aleph_1$.

I have two questions, actually. The first is as the title says: how do we know there exists an infinite cardinal such that there exists no other cardinals between it and $ \aleph_0 $? (We would have to assume or derive the existence of such an object before we label it something like $ \aleph_1 $.)  My second question is, can we say for certain if there's any limit to the number of cardinals existing between $ \aleph_0 $ and continuum (i.e. $ 2^{\aleph_0} $)? I mean, how could we know that there's not an infinite number of cardinals between the two - perhaps even more than $ \aleph_0 $?


I created a feature class from XY data. This then adds a shapefile on my map, under the projection of WGS 1984. I then try to reproject my shapefile in to  Europe_Albers_Equal_Area_Conic. This works, but my shapefiles do not align with my already Europe_Albers_Equal_Area_Conic polygons. I click zoom to layer and they are far apart from each other. I have tried defining projection and reuploading the data, but nothing seems to work. I need all data in Europe_Albers_Equal_Area_Conic so that I can retrieve the correct depth measurements.   EDIT: Here is how far they are, even though they are projected the same, Figure 1 (picture).

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


Say I have a PS4 subscription and a free monthly game. What happens if I decide to cancel my subscription, but decide to buy the previously free game (so I won't need the subscription to play it).   Can I buy a game outright without getting the 'you cannot buy this because you already own...' error?

If you get a "freebie" game via Playstation Plus and later decide that you want to own the game independently of your subscription, can you enter a code for a game (say from Amazon) while your PS Plus subscription is still active? What if your subscription lapses, can you then buy/redeem a code for a game?


there is a way to create and invoke a function  in run time?  for instance, how could I do to invoke this function?      string function = @"public void Test(int num1, int num2)         {             int sum = num1 + num2;             MessageBox.Show(sum.ToString());         }";          System.Reflection.MethodInfo method = null; // some code to create a method info from the string function         method.Invoke(this, new object[] { 10, 20 });   All I could find were samples of System.Reflection.Emit.DynamicMethod, but none use a function in a string

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#?


Does any software for Ubuntu exist that does the exact same thing as Truecrypt? I know there is a version of Truecrypt for all platforms, but the developers abandoned the project.  Please don't just start posting encryption software that can do the encryption this or that way, I am asking for the exact same thing.  For Windows there is "safe house explorer".

What's the most popular way to encrypt individual files or folders?


Im trying to use Radio buttons to make a choice and then once a choice has been selected, i can then go ahead and use a button to run a certain method matching the radio button that has been selected.  Below is an example of what i would like to do:  final ToggleGroup group = new ToggleGroup();     RadioButton today = new RadioButton("Today");     today.setToggleGroup(group);     today.setSelected(true);     RadioButton yesterday = new RadioButton("Yesterday");     yesterday.setToggleGroup(group);     RadioButton duration = new RadioButton("duration");     duration.setToggleGroup(group);      group.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {         @Override         public void changed(ObservableValue<? extends Toggle> ov, Toggle t, Toggle t1) {              RadioButton chk = (RadioButton)t1.getToggleGroup().getSelectedToggle(); // Cast object to radio button             if(chk.getText() == "Today"){               System.out.println("You've Selected Radio button 'Today'");             }             if(chk.getText() == "Yesterday"){               System.out.println("You've Selected Radio button 'Yesterday'");             } else{                    System.out.println("You've Selected Radio button 'duration'");             }         }     });   Thanks for your help :)

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I don't find any of the origin stories posted for this phrase plausible. Has anyone scoured the many concordances of the English Bible? If the answer is no, I'll embark on the task myself.

What is the origin and definition of the expression "caught between a rock and a hard place"? I also heard it in a situation where it could have had a jocose double sense, but I may have misunderstood.


I was wondering why to use inheritence, when you can easily come up with an alternative, which for me is more evident to use:  Let's say we have classes Parent, Child_1, and Child_2:  class Parent { public:     int x; }  class Child_1 { public:     Parent p;     string s; }  class Child_2 { public:     Parent p;     char c; }   How is this different, than:  class Parent { public:     int x; }  class Child_1 : public Parent { public:     string s; }  class Child_2 : public Parent { public:     char c; }   I understand that using inheritance allows us to use private, protected and public fields separately, but for me it complicates things more than being useful. To be honest, when I used private, it was more of a drawback, that I had to write getter and setter functions for private fields. Now I usually just put everything to public, for the sake of simplicity. Opinions?

Why prefer composition over inheritance?  What trade-offs are there for each approach?  When should you choose inheritance over composition?


I do have a raster file (grid) which I have processed before with the SAGA kriging tool. Is it possible to buffer this raster file a little bit (expanding the interpolated result) of 1 or 2 grids? I need to overlap the boundary a little bit.

Is it possible to create buffers for pixels of raster files? Actually I need to expand the pixels classified as 1 (in white in the figure) with a spatial range of 1 or 2 pixels, in order to perform some generalization.  I'm using QGIS, is this possible with gdal or something?


I have manually removed all aggregated css and js files from sites/default/files.  I would like Drupal to regenerate these, but it does not. Drupal is still looking for the old files, the ones I have deleted.  Clearing the cache does nothing.  How do I force Drupal to recognize that the files are missing and need to be recreated?

When aggregating CSS/JavaScript files using performance page in Drupal 8, drush cc css-js doesn't work, and I've to clear/rebuild all cache. How do I properly clear/rebuild only the JavaScript/CSS cache? I want that the filenames change too, so that the browser resets its cache too.


In the feats it only says your spell casting ability (which is the ability used to cast a spell).  I cant figure anything else out!

As a rogue I'm planning to take Magic Initiate with warlock class. The Magic Initiate feat says:     [...] Your spellcasting ability for these spells depends on the class you   chose: Charisma for warlock [...]    cantrip 1: Booming blade or Green flame blade cantrip 2: Minor illusion 1st-level spell: Hex    My stats bonuses are: STR : -3 | DEX +6 | INT 0 | WIS +1 | CHA +4 | prof : 4  Questions:   Green flame blade :      [...] The second creature takes fire damage equal to your spellcasting   modifier. [...]   What is my spellcasting modifier? 0 from INT as rogue or +4 from CHA as warlock?   Minor illusion :      [...] If a creature uses its action to examine the sound or image, the   creature can determine that it is an illusion with a successful   Intelligence (Investigation) check against your spell save DC. [...]   What is my spell save DC? 12 (8 + 0 from INT + 4 from prof) or 16 (8 + 4 from CHA + 4 from prof)?


after run sudo apt upgrade in Ubuntu 18.04 LTS show error :  ~# apt upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   kwayland-data libboost-filesystem1.62.0 libboost-iostreams1.62.0   libboost-serialization1.62.0 libboost-system1.62.0 libcapnp-0.5.3   libcapnp-0.6.1 libdfu1 libfam0 libfwupd1 libhfstospell9 libkf5archive5   libkf5attica5 libkf5auth-data libkf5auth5 libkf5bookmarks-data   libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5   libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5   libkf5configwidgets-data libkf5coreaddons-data libkf5coreaddons5   libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5   libkf5doctools5 libkf5globalaccel-bin libkf5globalaccel-data   libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5   libkf5i18n-data libkf5iconthemes-data libkf5idletime5 libkf5itemviews-data   libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5   libkf5kdelibs4support-data libkf5kiontlm5 libkf5mediaplayer-data   libkf5notifications-data libkf5notifications5 libkf5parts-data   libkf5service-data libkf5solid5 libkf5solid5-data libkf5sonnet5-data   libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5wallet-data   libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5   libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-data   liblttng-ust-ctl4 liblttng-ust0 libmirclient9 libmircommon7 libmircore1   libmirprotobuf3 libphonon4qt5-4 libpolkit-qt5-1-1 libprocess-cpp3   libprotobuf-lite10 libqt5printsupport5 libqt5test5 libqt5xml5 libtgvoip1.0   libunity-api0 liburcu6 libvoikko1 libzmqpp4 phonon4qt5   phonon4qt5-backend-vlc sonnet-plugins ubuntu-app-launch Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/153 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n]  dpkg: error processing package fonts-tlwg-sawasdee-ttf (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration No apport report written because the error message indicates its a followup error from a previous failure.                           dpkg: dependency problems prevent configuration of fonts-tlwg-sawasdee:  fonts-tlwg-sawasdee depends on fonts-tlwg-sawasdee-ttf | fonts-tlwg-sawasdee-otf; however:   Package fonts-tlwg-sawasdee-ttf is not configured yet.   Package fonts-tlwg-sawasdee-otf is not installed.  dpkg: error processing package fonts-tlwg-sawasdee (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  fonts-tlwg-sawasdee-ttf  fonts-tlwg-sawasdee E: Sub-process /usr/bin/dpkg returned an error code (1)

I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?


I am having difficulty trying to center my navigation text on my page. I want all my links to be in the center of my page the whole time, even if I re-size my window. Thanks for your time.  HTML:

Home

About me

Portfolio

Talk to me

   CSS:  #navcont{     height: 80px;     background-color: #ebebeb;     width: 100%;     padding-top: 10px; } #navigation{     font-size: 15px;     font-family: "TYPOGRAPH PRO" arial; } #navigation ul li{     list-style:none;     display:inline-block;     background-color:red;     width:120px; } #navigation ul li a{     text-transform:uppercase;     text-decoration:none;     color:black; } #navigation ul li a:hover{     color:#217c7e; }

How can I horizontally center a
 within another
 using CSS?

Foo foo


I'm creating a report that has a column with lots of cells that have HTML tags in almost every box. I'm trying to create a VBA macro that will remove some HTML tags from this column.  So in one situation, I have:
text text.........text

text text.........text

 text text.........text

text text.........text

text text.........text

text text.........text
 ....   I just listed only some HTML tags, but there are more.  What I want is to extract only the content between the
 tags and keep the div tag itself. The rest should be removed
text text.........text

 text text.........text

 text text.........text

 text text.........text
   Does anyone know a way to do this?

I have an excel file that has cells with text that includes HTML tags.  The data was exported from a database and the HTML tags were included.  The HTML is stored as text, but I need it gone.  Is there a quick easy way to remove it all (other than find/replace)?


Scientific mind is full of various features like critical thinking, good observing power, imaginative etc.  Do people with such qualities can be consider good(not evil or bad by intentions or action)?

How can you define scientific mind? What i think , it is a bend of mind that can be developed by any person(also one not related to field of science).This mind is fulfilled with abilities to observe clearly and sceptical about what he sees.It means the person will be keen to dig out truth and did not reaches to a conclusion easily. He utilizes facts enhance them with logical reasoning and fills the gap with their imagination.  Is there any disadvantage or any kind of limitation with scientific mind?


I have changed my windows 7 screen resolution. Now it had gone blank. I tried it many times but it did not start. But in safe mode it runs.

A screen of mine burnt out, and was replaced with a screen of lower resolution. It works in safe mode as that is in 800x600 resolution, but when I try to boot to normal mode, it fails. Is there a way to change the resolution for normal mode in safe mode?


I'm confused about something, time and again i've seen developers including team leaders tell me that using foreign key constraints on their DB is bad practice, that it adds "logic to the database" but that goes against everything i've ever learned about SQL so far...   I need someone to tell me if i'm wrong for thinking that foreign key constraints are a major benefit or if i'm totally wrong and if so why. It just makes sense to me that in order to ensure data integrity you'd refuse any data that doesn't make sense being there, i'm sorry if this is a duplicate question, but i'm not really finding any definitive answers i'm happy with.

I remember hearing  mention in  that he'd barely ever used a foreign key (if I remember correctly). However, to me they seem pretty vital to avoid duplication and subsequent data integrity problems throughout your database.  Do people have some solid reasons as to why (to avoid a discussion in lines with Stack Overflow principles)?  Edit:


I think it was my mom who gave me the rule of thumb that when you double a recipe you double everything except the salt.  I'm willing to defer to her wisdom for the sorts of soups and stews she liked to make, but she didn't do much baking, and I never saw her make bread leavened with yeast.  I know salt and yeast aren't friends and I'm trying to double a rustic ciabatta recipe.

I often hear cooks discuss that idea that if you are multiplying, say, a recipe for 4 to be a for 32, that you shouldn't multiply some herbs, spices, or salt. I've never understood any reason why this should be true. Maybe something to do with surface area to volume ratios, or cooking times? Does anyone have a real explanation, or is this nonsense?


I Have a SCP upload script which uploads the files on the remote host. I am trying to run this script as background process so it can be even work when I am not logged into session.  I am trying to use nohup it doesn't work properly as soon as I close the session the files stops uploading to the remote server but I can still see that the script process is still running in back ground but no files are being uploaded.  I use this Command : nohup sh /path_to_Script/script.sh  and as well make sure that there is only one script or process running and there is no duplication of same running script.  please help.

I'm not sure what how or why this happens but sometimes when I open programs through terminal the terminal continues to attach itself to the program. I can understand this for things like "sudo nautilus" but for regular programs this is extremely annoying.   I cannot detach terminal from program because if I ctrl+c then it closes the program and if I quit the terminal then the program closes as well.  Few questions:   Why does this happen? How do I manually activate/deactivate this function? How do I detach the terminal from the program?   If I am asking too much then I understand. In that case I don't even know how to google the answer so if you can point me to any resources that talks about this or give me the name of the function that is happening that that would be great.   Thanks.


$$f(x) = \begin{cases} 0, x \notin Q \\ \frac 1n, x = \frac mn, m,n \in Z \end{cases}$$  Note that m and n are coprime. This an example from the book:- Introduction to real analysis by Robert G Bartle.  Between any two irrational numbers, we can find a rational number, so how can we say it's continuous at all irrational points? Yes, it can converge to 0, but let's take root 2 as an eg, around that point, we have many points between 1 and 0.5 (at rationals) Where am I thinking wrong?

I have to prove that the function $f:]0,1] \rightarrow \Bbb R$ : $$ f(x) = \begin{cases} \frac1q,  & \text{if $x \in \Bbb Q$  with $ x=\frac{p}q$ for $p,q \in \Bbb N$ coprime} \\ 0, & \text{if $x \notin \Bbb Q $} \end{cases} $$  is continuous in  $x \in \ ]0,1] \backslash \Bbb Q$ (irrational numbers).  I already tried to solve this exercise and I understood how to prove that this function is discontinuous for rational numbers.  I was trying, now, to understand how to prove that for the irrational numbers it is continuous.  I already have the solutions but they are a bit complicated, and I come up using sequences to prove it's continuous: $$\forall x_n \quad x_n\rightarrow a \quad \Rightarrow \quad f(x_n) \rightarrow f(a)$$  I created a sequence $ x_n=\frac1n + a$, and we consider $a$ an irrational number. In order to be continuous $f(x_n)$ has to converge to $f(a)$. In fact:  $$\lim_{n\to\infty} f(x_n)= f(a) = 0 $$  So my proof ends here, but I know that I'm missing something really big because in the solution there is another complicated step using a set and the Epsilon-Delta theorem after what I've showed.  Can someone explain what's wrong and help me with this proof?


In order to ssh into my work computer from home, let's call it C I have to do the following:  ssh -t user@B ssh C   B is a server that I can connect to from home but C can only be connected to from B.  This works fine.  If I want to copy a file that is on C to my home computer using scp, what command do I need from my home computer?

describes how to SSH into a machine that can only be accessed through one or more hosts (that can also be SSH'd into).  Is there an equivalent way of using scp? That is, copy a file to my local machine from the far machine (assuming I have password or key access to all machines along the way)?


take the example of earth sun system. The earth is said to orbit around sun because the sun bends the space time around it .  Now if by some means we stop earth in its path such that its at rest with respect to sun then release it , it will immediately start a free fall towards the sun .  Now the question is if the gravity is just bent space time then what is causing the earth at rest to move from rest. What causes the force?   how can you explain both the Einstein bending of space and newtonian force of gravity existing simultaneously?

They say that gravity is technically not a real force and that it's caused by objects traveling a straight path through curved space, and that space becomes curved by mass, giving the illusion of a force of gravity.  That makes perfect sense for planetary orbits, but a lot less sense for the expression of gravity that we are the most familiar with in our day-to-day lives: "what goes up must come down."  Imagine that I hold a ball in my hand, several feet off the ground, with my fingers curled around it, and my hand is above the ball.  Then I open my fingers, releasing my grip on it, being very careful to not impart any momentum to the ball from my hand as I do so.  An object at rest remains at rest unless acted upon by an outside force.  If the ball is not moving (relative to my inertial reference frame), it has no path to travel that's any different from the Earth's path through space.  It should remain at rest, hanging there in the air.  And yet it falls, demonstrating that an outside force (gravity) did indeed act upon it.  How does curved space explain this?


I made this function to convert a vector into a valarray:  template <typename T> valarray<T>* ValArrayTools::vectorToValArray(vector<T>* vector) { valarray<T>* val = new valarray<T>(vector->size()); for(int i = 0; i < vector->size(); i++) {     val[i] = vector[i]; } return val;   }  I tried to use a template so that I can use this function with every possible type.  Now I want to convert a   vector<short int> buffer;   into a   valarray<short int>* data;   by using  sf->data = ValArrayTools::vectorToValArray<short int>(&buffer);   But I get this error:  CMakeFiles\LPC-Vocoder_Tests.dir/objects.a(ShortFileLoader.cpp.obj): In function `ZN15ShortFileLoader17generateShortFileEv': C:/Users/****/Documents/Uni/SS18/**Projekt/LPC-Vocoder/src/ShortFileLoader.cpp:33: undefined reference to `std::valarray<short>* ValArrayTools::vectorToValArray<short>(std::vector<short, std::allocator<short> >*)'

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


I was Canon user before but now I bought Nikon body . I have a third party flash along with dedicated Canon trigger and receiver and I want to use that flash remotely with those trigger can sync cable will solve my problem?

I have flash brand X and would like to know whether it will work with camera brand Y. What do I need to consider to determine whether the combination will work?  Other questions of relevance:


Back when I had a Windows machine I used a program called CrystalDiskInfo to see total hours of operation of my computer. I only used the numbers for fun or to like indicate how "used" my PC was..   So I'm looking for a terminal command or an app that can display that information for me.  Screenshot of the crystaldiskinfo gui.

I'm looking to script using the unix shell the retrieval of SSD (and HDD) data that disk utility shows in the information window.    I'm immediately interested in the Power On Hours and Power Cycle, but if all the data comes from one data structure or tool, so much the better. The usual tools diskutil info disk0 and ioreg -l are not producing the "of interest" values listed in the screen shot above.  Is this information available from any of the built in OS X terminal tools or do I need to locate an open-source package that makes the same API calls to get this level of detail about a Mac drive?


Is it a conditional probability? Is  ";" the same thing as "|"? if yes, why the writter use ; rather than |?

Say, $X$ is dependent on $\alpha$. Rigorously speaking,    if $X$ and $\alpha$ are both random variables, we could write $p(X\mid\alpha)$; however, if $X$ is a random variable and $\alpha$ is a parameter, we have to write $p(X; \alpha)$.   I notice several times that the machine learning community seems to ignore the differences and abuse the terms.  For example, in the famous LDA model, where $\alpha$ is the Dirichlet parameter instead of a random variable.    Shouldn't it be $p(\theta;\alpha)$? I see a lot of people, including the LDA paper's original authors, write it as $p(\theta\mid\alpha)$.


I'm making a 2D retro-style pixel game and I'd like to know how big my sprites should be. I'm not talking about the size of my image files (which I decided to use a 32x32-based artstyle), but the actual size of them once they are in Unity. Should I keep a 1:1 scale and import all of my usually 32x32 sprites into Unity? Is there a special scale up or down process I need to do before or after import them? I'm saying this because when I'm working with HUD elements, they are drastically really big compared to my tiny sprites, so I'm worried if this could affect implementing something like RigidBody or collisions,  and I should indeed scale up my sprites, or if this is normal and I'm being paranoic. I'll append an image showing my concern. BTW, the game looks so far as I wanted to, and it's working well, but right now it's more like a proto, so I'd like to resolve this doubt before continuing. Also, I test this usually in a 1920x1080 resolution, so maybe that's why the HUD looks so big. Thanks!

I try to create a 2D game for Android. It looks like Cut the rope (it isn't a clone but it have same level representation) if it has a value. My problem that I can't understand that optimal sprite sizes I should use. I.e. what target screen resolution should I use to sprites didn't have anomalies on HD-devices (like Samsung Galaxy S7 and etc., phones and tablets)?    To make my question is clearer I ask about this 1 unit = X pixels for xxhdpi-screens. What is X?    P.S. Sorry if it's a duplicate I will be grateful for link on this post cuz I couldn't find it.


We are fairly new to D&D and we are not really sure about how to handle one thing as provided by the rules. It's about the point in time when you level up in-game. The rules tell us this:  As your character goes on adventures and overcomes challenges, he or she gains experience, represented by experience points. A character who reaches a specified experience point total advances in capability. This advancement is called gaining a level. When your character gains a level, his or her class often grants additional features, as detailed in the class description. Some of these features allow you to increase your ability scores, either increasing two scores by 1 each or increasing one score by 2. You can't increase an ability score above 20. In addition, every character's proficiency bonus increases at certain levels.  We understand that if you gain a specific amount of XP you advance to an higher level, but we want to know how this is expressed in game how according to the rules. Does it really happen instantaneously? We heard from other players that in earlier editions this did happen after a long rest, but we just cannot find any clue about it in the 5e rules. We could make a homebrew rule for that but mainly we just want to know if we are just too blind to find it. 😅

I'm a new DM with a group of very new players. I've read through the rules and some of the Player's Handbook (I just haven't finished it yet). We are still within the first arc of the campaign and have plenty of time to figure everything out and for the players to reach the end goal, so I'm not super worried about them leveling up super quickly. Everyone is currently level 1, just so that had something to start out with.   Something I have yet to understand is leveling up within classes. What do I need the players to achieve in order to level up? Is it something I just decide when I think they're "ready", or do they gain experience points or something with each battle? I understand what the players will gain when they level up (like the spells and features and bonus actions and stuff). Is this covered more clearly in the handbook?


Using "book" class and calling \listoffigures to generate the figure index. But the output shown is:  1.1figure sometitle1  1.2figure sometitle2  Wish to remove the additional word "figure" getting attached to the index numbers. How?  MWE:  \documentclass{book} \usepackage{graphicx}  \usepackage{subfig} \graphicspath{ {images/} }  \begin{document}  \listoffigures  \section{Figures} There are several ways to plot a function of two variables, depending on the information you are interested in. For instance, if you want to see the mesh of a function so it easier to see the derivative you can use a plot  like the one on the left.  \begin{figure}[h] \includegraphics[width=5cm]{lion-logo} \caption{My logo} \label{logo} \end{figure}  \end{document}   If you comment inclusion of "subfig" then it works fine, else not.  In MWE I am not using subfig but in my actual report, I am.

As said above, this MWE  \documentclass{book} \usepackage{lipsum} \usepackage{subfig} % this breaks list of figures with overwriting labels  \begin{document}  \mainmatter \lipsum \begin{figure}   \caption[Short caption for list of figures]{Long caption} \end{figure}  \backmatter \listoffigures  \end{document}   when compiled with pdflatex, produces the following problem:    whereas without subfig package everything is fine.  Any clue? Thanks in advance.


On Raspberry Pi (2 B) I have ubuntu. I don't know how to connect to wifi network with CLI. Do you know?

Other posts seems to be addressing more complicated network connection issues from the command line.  The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to connect to a network even when i click on "disconnect", stuff like that.  So I want to go command line for the control.  I don't like GUIs anyway.  Is there not some simple command line tool which can do something like the following?  wifi connect MyNetworkNameA wifi disconnect wifi connect MyNetworkNameB


So I know: $$[\sigma_{I},\sigma{j}] = 2i \epsilon_{ijk} \sigma_{k}$$ So two products of this should give us the Lorentz group: $SO(4) = SU(2) \times SU(2)$  Where $SO(4)$ has 3 Lie algebra which can be expressed as one by denoting: $$J_{I}^{\pm} = \frac{1}{2} (J_{I} \pm ik_{I})$$  This gives two Lie algebra: $$[J_{I}^{\pm}, J_{j}^{\pm}] = i\epsilon_{ijk}J_{k}^{\pm}$$  But how is this related to our original product of SU(2)? I was under the impression if you have two Lie groups, $(g_{1},h_{1})$ and $(g_{2}, h_{2})$, then the product would be $(g_{1}g_{2},h_{1}h_{2})$. However, I tried that with the Pauli matrices and it doesn't work to be the same as $SO(4)$ Lie algebra. How should this be done?

This question is based on  problem II.3.1 in Anthony Zee's book Quantum Field Theory in a Nutshell      Show, by explicit calculation, that $(1/2,1/2)$ is the Lorentz Vector.    I see that the generators of SU(2) are the Pauli Matrices and the generators of SO(3,1)is a matrix composed of two Pauli Matrices along the diagonal. Is it always the case that the Direct Product of two groups is formed from the generators like this?   I ask this because I'm trying to write a Lorentz boost as two simultaneous quatertion rotations [unit quaternions rotations are isomorphic to SU(2)] and tranform between the two methods. Is this possible?      In other words, How do I construct the SU(2) representation of the Lorentz Group using the fact that $SU(2)\times SU(2) \sim SO(3,1)$?  Here is some background information:  Zee has shown that the algebra of the Lorentz group is formed from two separate $SU(2)$ algebras [$SO(3,1)$ is isomorphic to $SU(2)\times SU(2)$] because the Lorentz algebra satisfies:   $$\begin{align}[J_{+i},J_{+j}] &= ie_{ijk}J_{k+} & [J_{-i},J_{-j}] &= ie_{ijk} J_{k-} & [J_{+i},J_{-j}] &= 0\end{align}$$  The representations of $SU(2)$ are labeled by $j=0,\frac{1}{2},1,\ldots$ so the $SU(2)\times SU(2)$ rep is labelled by $(j_+,j_-)$ with the $(1/2,1/2)$ being the Lorentz 4-vector because and each representation contains $(2j+1)$ elements so $(1/2,1/2)$ contains 4 elements.


What is the importance of last axiom of vector space. Axiom is $1u=u$.

I was looking at the definition on wikipedia of a vector space (similar/equivalent definitions are everywhere, but I thought I'd list it here for completion):  A vector space over a field $F$ is a set $V$ together with two binary operations that satisfy the eight axioms listed below. Elements of $V$ are called vectors. Elements of $F$ are called scalars. In the two examples above, our set consists of the planar arrows with fixed starting point and of pairs of real numbers, respectively, while our field is the real numbers. The first operation, vector addition, takes any two vectors $v$ and $w$ and assigns to them a third vector which is commonly written as $v + w$, and called the sum of these two vectors. The second operation takes any scalar a and any vector $v$ and gives another vector $av$. In view of the first example, where the multiplication is done by rescaling the vector $v$ by a scalar $a$, the multiplication is called scalar multiplication of $v$ by $a$.  To qualify as a vector space, the set $V$ and the operations of addition and multiplication must adhere to a number of requirements called axioms. In the list below, let $u$, $v$ and $w$ be arbitrary vectors in $V$, and $a$ and $b$ scalars in $F$.   Associativity of addition: $u + (v + w) = (u + v) + w$ Commutativity of addition: $u + v = v + u$ Identity element of addition: There exists an element $0 ∈ V$, called the zero vector, such that $v + 0 = v$ for all $v ∈ V$. Inverse elements of addition: For every $v ∈ V$, there exists an element $−v ∈ V$, called the additive inverse of $v$, such that $v + (−v) = 0$ Compatibility of scalar multiplication with field multiplication: $a(bv) = (ab)v$ Identity element of scalar multiplication: $1v = v$, where $1$ denotes the multiplicative identity in $F$. Distributivity of scalar multiplication with respect to vector addition: $a(u + v) = au + av$ Distributivity of scalar multiplication with respect to field addition: $(a + b)v = av + bv$   I was wondering if there were any examples of vector spaces where only the law for the identity element of scalar multiplication fails? The only one I could think of would be to redefine a true vector space's scalar multiplication to multiply the result by a constant factor. Are there others?


Currently I have the figure as shown below (generated with the code below it) As you can see, the origin is not marked with 2 as I would expect based on the tick labels I explicitly set. Why does pgfplots do this and how can I put arbitrary text there?    \documentclass{article} \usepackage{pgfplots} \begin{tikzpicture}     \begin{axis}[             axis lines=center,             axis line style={-},             xtick={-2,0,2},             xticklabels={1,2,3},             xmin=-3.5,             xmax=3.5,             ymin=0,             ymax=5,         ]         \addplot+[ycomb, mark=none] table {             -3 1             -2 2             -1 3             0 4             1 3             2 2             3 1         };     \end{axis} \end{tikzpicture} \end{document}

I am using pgfplots to plot the a function. I have been looking around on the forums, but I could  not find a solution. I would like to origin to be indicated as a 0 on the x axis.  I would also like to get the axis labels to appear respectively left and below the axis. Any ideas?  I have the following plot:   \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[width=7cm, height=2cm,xmin=-6,xmax=6,ymin=0,ymax=1, no markers, samples=50, axis lines=left,  axis lines=middle,  scale only axis, % extra y ticks={0.5}, /pgfplots/ytick={0, 0.5,1}, % make steps of length 0.5 /pgfplots/xtick={-5,0,5}, % make steps of length 5     xlabel=$Li$,     ylabel={$f_{comp}(Li))$}   ]      \addplot {1/(1+exp(-x)};    \end{axis} \end{tikzpicture} \end{document}


I was solving a question while I was stuck at a point. The question wanted me to find the length of the side of the square of largest possible area that can be inscribed in a given right triangle. But I was thinking whether how to prove that the square with largest area is the one whose two of the sides coincide with the legs of the right triangle. I've tried proving that but I couldn't figure any way out.  Can someone help me prove it in an easy way?  The answer that is being linked to it as duplicate does not give specific proof for a right triangle.

I want to calculate the area of the largest square which can be inscribed in a triangle of sides $a, b, c$ . The "square" which I will refer to, from now on, has all its four vertices on the sides of the triangle, and of course is completely inscribed within the triangle, and by "largest square", with the maximum area of such squares.   I did some research. I found that in the case of right triangles, there seemed to be only two kinds of squares being formed. One with a side of $\frac{ab}{a+b}$ and the other of $\frac{abc}{c^2 + ab}$, $c$ being the hypotenuse.   After some time, I realized that there was a common formula for all triangles. And that is:  $$side = \frac{ch}{c+h}$$       or $$\frac{1}{side} = \frac{1}{c} + \frac{1}{h}$$ where, $h$ is height on base $c$, or $$h = \frac{2\sqrt{(s(s-a)(s-b)(s-c))}}{c}$$    I achieved the above results using similar triangles, and have added a figure, to make the point clear. But that is all, I can prove. I tested for many triangles, and found that the smaller side always yields the larger square, but I am not able to prove it. For example, I can say that the largest square of a $4,7,10$ triangle, has area of approximately $\fraq{16}{3}$. I also want to make another conjecture (with an intuitive proof) that any triangle will give at most three squares.  So I want to ask you, are my calculations, proofs ... correct? Have I got them right? And those predictions? Are they right, and if so, proofs? Conclusively, do we have a sure-fire formula to get the area of the largest square?


I am driving a two side by side fans (original Xbox 360) from 20v, 4A source via a 12v regulator and a 10k trim potentiometer. The goal is simply to adjust voltage between 3v-12v, nothing I havent done before but shortly after setting the fans to the speed I want (say 6v), they begin slow down, around 4v. Then I adjust the pot to speed them up and then sometimes they will randomly go full speed ahead.   The pot doesnt get warm, the regulator output voltage is stable 11.96v. I have noticed that if the pot outputs 7v with the fans unplugged, the voltage sags to below 5v when plugged in.  The fans pull roughly 320mA @ 12v and 170mA @ 5v in this setup so 3.85W maximum. Ive read a lot of trimpots have a max rating of 3.00W but this happens at power levels below that?

I recently bought a potentiometer to regulate the speed of two 12V/1.1A DC fans in parallel, powered by a 12V source. Its specifications are the following: Resistance= 10k Ohm, MaxPower = 0.2W. Can I connect the fans, the potentiometer and the power source in series, or do I need additional circuitry to avoid circuit damage? I feel like the potentiometer's maximum power is too low, but I may be wrong.


First, this is about beta sites that might not even exist later, but imagine they will for the sake of this question. Taking the latest 10 questions on , I see 3 questions related to Mac OS X:    From my point of view, all 3 could also fit on , the 1st one could also be on SO, the 2nd and 3rd could also be on SU. How we will deal with this type of situation? When should we close a question as "Belongs on [...]"? I already see identical questions asked on 2 or 3 different sites (by the same or different users). Is there anything planned to link these questions or something like that? I mean something else than the already existing "Linked" feature. Something to include answers from site X in site Y or something like this.

It is possible to migrate a question from one Stack Exchange site to another by closing, but if I have a question that I think is on-topic for multiple Stack Exchange sites, is it OK to post it on both (multipost)?   For example, I have a question that's earned me the tumbleweed badge on SO and I'm not sure what the best thing to do with it is. It's about a web server so it might be answerable on Server Fault but it's really more of a programming thing, hence the posting the question on Stack Overflow.    Is there any way to make the question visible on multiple sites (crosspost) and then accept the answer wherever it came from?


I detect a lot of mistakes only when I read the paper printed. For some mysterious reason, I do not see these errors on my screen.  So I used to print a lot, and only to type-check. I use double-sided printing of course but there are still plenty of space wasted ; with LaTeX big margins (among other things), I have to print more pages than necessary.  I am wondering if there is a document class designed to save paper by optimizing the space. Perhaps a class which will set the text in several columns, put some minimal margins, reduces space between titles, ... Of course, the result will be ugly but it is just to type-check, not to publish.  I know I could set myself settings in order to achieve exactly what I want. But the idea is to have to change only the document class from article or book to this saving paper class when you are at the type-check stage.   Do someone know such class?

I found there are so much excellent answer to questions about how to product high quality typesetting output. But I wonder how to save ink with LaTeX. What we need to think about to manage cost. page layout or something else?


It has been suggested that this question is a duplicate of others. Sorry, but it is not. I am merely addressing the issue of:   "flag the post right away as well as editing it, hoping for moderators to see and take notice of the edit in due time and finally delete the post altogether".  In the example given (see attached screenshot), it took 10+ hours for the issue to be addressed. This is the issue.  10+ hours is an eternity in Internet time. So. How does one handle that? Any and all suggestions welcomed.  I had a long and fruitful discussion on the matter with . Still. How could/should one handle SEO spam situations like this?  My approach was to flag the post right away as well as editing it, hoping for moderators to see and take notice of  in due time and finally delete the post altogether. Instead of having it hanging around for 10+ hours (which is just what the spammer wished for in the first place), since it was registered in both Google and  as well. (You can probably still find it there.) I do believe that should be edited to a non-interest link till deleted. Could this be the right way to handle SEO spam? If not, what are your thoughts? I believe the nature of such questions are quite debatable. This is not an easy call. It still needs to be addressed.

I noticed that the posts of the recent spam surge on Ask Ubuntu were all edited by community members into something like     EDITED - REMOVED SPAM ANSWER   or similar.  While I understand why the users have done this and I too don't want to leave the spam content visible for longer than absolutely necessary, it made flagging more time consuming for me.  I had to check the revision for every of those possible spam posts to check if it is actually spam, instead of being able to flag directly from the review site. Spam flags carry a serious penalty, I'm not willing to add my spam flag without checking that it's really spam.  I see the benefit of editing spam, but it also causes some more effort for the later flaggers. Should we as a general policy edit out the content of spam posts, or should we deal with them solely by flagging?


After the notification disappears, I want to be able to make it appear again through AppleScript.

It seems like the following AppleScript is no longer working in the latest version of the OS X 10.10 (Yosemite): on run     tell application "System Events"         tell process "Notification Center"             set theseWindows to every window             display notification (count of theseWindows)         end tell     end tell end run  This were supposed to get all notifications listed in the Notification Center. However, the count attribute always returns 0. Does anyone know how to retrieve all notifications in the Notification Center different than the script above?


I'm having an issue trying to disable SSLv3 on my nginx installation.  HTTPS works fine, but I just can't seem to disable SSLv3 and it makes my site vulnerable to the POODLE attack. Also, for some reason the connection is encrypted over 128-bit instead of 256-bit even though I got a 256-bit certificate.  Nginx version: 1.6.2  Here's what I entered into my server block on the site I wanted to use:  ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers On; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;   Thanks!

I tried setup SSL cert without SSLv3 in my nginx, but SSL Labs say, my server have SSLv3 how to disable it.   My config:      add_header Strict-Transport-Security max-age=31536000;     add_header X-Frame-Options DENY;      ssl_session_cache shared:SSL:10m;     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED";     ssl_prefer_server_ciphers on;     add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';


How can I check if a variable (an int) is even (that is, not odd) in C without using "%" operator? I am running on linux platform.  Thank you.

How can I check if a given number is even or odd in C?


I'm looking for graph $G$, $V(G) >2$, such that$G \cong Cay(Aut(G), S) $, where $Cay$ is the Cayley graph (considered as undirected graph) and $S$ is minimal generator of $G$.  I've written a GAP code that looped through $\Gamma$ groups, and formed $G'=Cay(\Gamma)$ and $G''=Cay(Aut(G')) $. After it checked if $G' \cong G''$ is true. It happened to be false for the first 1000 groups, except when $\Gamma$ is the trivial group and when it is isomorphic to $C_2$.  Now, I am not even sure what generator set was used by GAP. Is it possible that for other generator set it would work? Maybe if it isn't minimal?  Thanks in advance!

Let $G$ be a finite group and $S$ a generating set of $G$. We can draw the Cayley graph $C(G,S)$ by putting each element of $G$ as a vertex, and drawing an edge between two elements $g$, $h\in G$ iff $g^{-1} h \in S$.   Choose $x\in G$. Note that the map $g \mapsto xg$ is a graph automorphism of $C(G,S)$. This allows us to embed $G \le \text{Aut}(C(G,S))$.   My question is: when is it in fact the case that $G = \text{Aut}(C(G,S))$? Is there a nice criterion to determine this?


Something like  $$ A= \begin{bmatrix}     a & b & c\\     b & d & e\\     c & e & f \end{bmatrix} $$  would be a symmetric matrix because the values are reflected along the diagonal, and $A=A^\intercal$  Is there a name for a matrix that's symmetric along the cross diagonal? Something like  $$ B= \begin{bmatrix}     c & b & a\\     e & d & b\\     f & e & c \end{bmatrix} $$

I have a matrix which is kind of symmetrical with the other diagonal, i.e., something like  $$A = \left[ \begin{array}{c c c c}    a & b & c & d \\    e & f & g & c \\    h & i & f & b \\    j & h & e & a  \end{array} \right]$$  Does this matrix have a special name in literature? What are it's properties?  And a matrix that is symmetrical by both diagonals   $$A = \left[ \begin{array}{c c c c}    a & b & c & d \\    b & e & f & c \\    c & f & e & b \\    d & c & b & a  \end{array} \right]$$  What's the name of it? Any interesting properties?


I need to deduce if $\Sigma \vdash p \vee q$ , $ \Sigma \vdash p \rightarrow r$ and $\Sigma \vdash q \rightarrow r$ then $\Sigma \vdash r$ Using only the axioms (A1) $p \rightarrow(p\vee q)$ (A2) $ \neg p \rightarrow ( \neg q \rightarrow \neg( p \vee q))$ (A3) $(p \wedge q) \rightarrow p$ (A4) $p \rightarrow (q \rightarrow ( p \wedge q))$ (A5) $( p \rightarrow (q \rightarrow r)) \rightarrow ((p \rightarrow q) \rightarrow (p \rightarrow r))$ And using Modus ponens and deduction theorem. I know I sould begin with $\Sigma \vdash p \vee q$, $\Sigma \vdash p \rightarrow r$ and $ \Sigma \vdash q \rightarrow r$ as hypothesis. However, I can't find the way to deduce it.

I have at my disposal Modus Ponens (MP) and the three axioms:   A1: $(\alpha\to(\beta\to\alpha))$, A2: $((\alpha\to(\beta \to\gamma))\to ((\alpha\to\beta)\to(\alpha\to\gamma)))$, A3: $(((\lnot\beta)\to(\lnot\alpha))\to(((\lnot\beta)\to\alpha)\to\beta))$.   I'm trying to prove the Disjunction elimination: $$ \{\alpha\lor\beta,\alpha\to \gamma,\beta\to \gamma\}\vdash \gamma. $$  $\lor$ is not part of the alphabet I use, the deduction actually is: $$ \{((\neg\alpha)\to\beta),\alpha\to \gamma,\beta\to \gamma\}\vdash \gamma. $$  The deduction should be something like  \begin{array}{rl|l} \hline 1:&((\neg\alpha)\to\beta)  & Premiss\\  2:&\beta\to \gamma&Premiss\\ 3:&((\neg\alpha)\to\gamma)&1,2\ H.S.\\ 4:&(\alpha \to \gamma)&Premiss\\ 5:&\gamma& 3,4 [?]\\ \hline \end{array}  Where H.S. is Hypothetical Syllogism, a deduction that I have already proven.     The rule $[?]$, that I have to prove, correspond to    $$ \{\alpha\to\beta,(\neg\alpha)\to\beta\}\vdash \beta.\tag{*} $$   (*) looks quite simple, but after hours no way to get it.  For information I have, if needed, proven other results, that I could reuse:   $\vdash\alpha\to\alpha$, Hypothetical Syllogism: $\{\alpha\to\beta,\beta\to\gamma\}\vdash\alpha\to\gamma$, $\vdash(\lnot\alpha\to\alpha)\to\alpha$, $\vdash\alpha\lor\lnot\alpha$, $\{\alpha\to(\beta\to\gamma),\beta\}\vdash\alpha\to\gamma$, $\vdash(\neg\neg\alpha)\to\alpha$. Negation introduction: $\{(\alpha\to\beta),(\alpha\to \neg\beta)\}\vdash \neg \alpha$. Negation elimination: $\{\neg \alpha\}\vdash (\alpha\to \beta)$. Double negative elimination: $\neg \neg \alpha\vdash \alpha$. Conjunction introduction: $\{\alpha,\beta\}\vdash (\alpha\land \beta)$.   EDIT Additional known results:   $\neg\neg\alpha\vdash\alpha$ $\{\alpha,\neg\alpha\}\vdash\neg\beta$ $\{\alpha,\neg\alpha\}\vdash\beta$ Conjunction elimination, only $\alpha\land\beta\vdash\beta$ Disjunction introduction, only $\beta\vdash\alpha\lor\beta$


I am new to python and scripting for blender, I'm using 2.8. I would love go have a text box field in a UI panel that the user can enter a value and its stored on a variable. My full plan is to have multiple boxes for when you have to make repetitive scaling you can just enter the numbers once then apply them to any object you want. Slightly related to that, how do you have the value of a variable displayed as text in the U

I was watching this  on making a custom UI tab using Python, and in the line from bpy.types import Menu, Panel, UIList, I see the names of objects that look like they can all be used to make different UI elements. Does bpy.types contain all the objects that people use when they want to make custom UI elements?


Let $A:V\to W$ be a linear transformation and $A^*:W^*\to V^*$ the corresponding pullback such that $A^*(g)(v)=g(A(v))$, where $g\in W^*$. There's a theorem in a book I'm reading (Semi-Riemannian Geometry: The Mathematical Language of General Relativity by Newman:  Prove that $\text{im}(A^*)=\text{ker}(A)^0$ for a linear transformation $A$  If $U$ is a subspace of $V$ then $U^0$ is the "annihilator set of $U$": $U^0=\{f\in V^*:f(u)=0\ \forall u\in U\}$. The proof in the book (reproduced at the end of this question) uses a result that I don't want to use because of reasons mentioned in this question:  I'm looking at an alternative approach: Let $f\in\text{im}(A^*)$ and $v\in\text{ker}(A)$. Then there exists $g\in W^*$ such that $f=A^*(g)$. So $f(v)=A^*(g)(v)=g(A(v))=g(0)=0$. Thus $f\in\text{ker}(A)^0$. Conversely let $f(v)=0$ for all kernel vectors $v$ for some $f\in V^*$. We have to show that there exists $g\in W^*$ s.t. $A^*(g)=f$. This is where I'm having trouble - I may be missing something really easy or obvious. I could use some help in proving the $\text{ker}(A)^0\subseteq\text{im}(A^*)$ part.  Proof in book: Note that it was proved in a previous part that $\text{ker}(A^*)=\text{im}(A)^0$  $$\text{ker}(A)=\text{ker}(A^{**})=\text{im}(A^*)^0\\\implies\text{ker}(A)^0=\text{im}(A^*)^{00}=\text{im}(A^*)$$  This proof uses another fact that $U^{00}=U$ for a subspace $U$ of $V$, which again seems erroneous because strictly speaking they are NOT equal, they are just naturally isomorphic. $U^{00}$ is a subspace of $V^{**}$, not $V$. Hence the reason why I don't want to use the book proof.

Suppose that $V$ and $W$ are vector spaces. Denote $V'$ as the dual space of $V$.  Let $T \in \mathcal{L}(V,W)$. Denote the dual map of $T$ by $T' \in \mathcal{L}(W',V')$  such that  $$ T'(\phi) = \phi \circ T $$  and if $U$ is a subset of $V$, then $U^0$ is its annihilator.  If $V$ and $W$ are finite dimensional, then  $$ \text{range } T' = (\ker T)^0$$  Howerver, I do not know if this is still true if one of the vector spaces is infinite dimensional. In the Sheldon Axler's Linear Algebra Done Right (3rd ed.), he proves that $\text{range } T' \subset (\ker T)^0$ without the hypothesis of their being finite dimensional. However, he uses this hypotheses to prove the inclusion in the other direction. So my question is: does the equality still holds if one of the vector spaces is infinite dimensional? If does not, could you show a counterexample.  Just consider during the explanation that my level of linear algebra is roughly that of the book Linear Algebra Done Right. So if the explanation requires more advanced knowledge, just explain it briefly, just to give me some feeling.  Edit:  $V'$ is the algebraic dual:  $$V' = \mathcal{L}(V,\mathbb{F}) $$  where $\mathbb{F}$ is the field, that is, $V$ is over the field $\mathbb{F}$.


Is '~' normal before the $ sign, like, robert@robert:~$? I do not remember seeing it before.

What does ~$ stand for? For example:  user@ubuntu:~$   So far I know that the $ sign is a symbol for a regular user. If I'm not mistaken root have # at the end.   I also found a lot of commands in the forums that begin with $:  $ sudo apt-get update    So for what does $ actually stand for?  EDIT (28.01.2014) :  Today I came across this video that totally answers my question from 8 months ago and decided to share it here :)  BASH Basics -


So i'm doing a little project to understand how Threads work. And i think i'm just about to get the hang of it. There is just one little problem that keeps me frustrated since i don't get reason behind it happening. Here it comes. I really dont get why the Thread.activeCount() method outputs 3 when i only create a single thread inside the Main method. Can someone please explain what i am overseeing? public class Main implements Runnable{      private int threadsAlive = 0;     private static int priority = 5; //Default     private String threadName;     private Thread t1;      public Main(String threadName){ //Constructor         this.threadName = threadName;         System.out.println("Creating thread: " + threadName);     }      public void start(){ //Starting the thread         System.out.println("Starting " +  threadName);         if (t1 == null) {             t1 = new Thread (this, threadName);             t1.start ();         }     }      @Override     public void run() { //Running the thread         System.out.println("Running " +  threadName );         aliveCount(true);         System.out.println("^According to the activeCount method: "+ Thread.activeCount()); // Why is this 3?          try {             Thread.sleep(750);             System.out.println("Lets sleep for a while ...zZZZ");             Thread.sleep(2000);             System.out.println("Im awake! But not for long :(");             Thread.sleep(2000);         } catch (InterruptedException e) {             e.printStackTrace();         }          System.out.println("Thread " +  threadName + " exiting.");         aliveCount(false);     }      private void aliveCount(boolean up) {         if (up) {             threadsAlive++;         } else {             threadsAlive--;         }         System.out.println("Threads alive: " + threadsAlive);          if (threadsAlive == 0) {             System.out.println("No threads is alive.");         }     }      public static void main(String[] args) { //Running threads         Scanner scanner = new Scanner(System.in);          System.out.println("Please enter a name for the thread.");         String name = scanner.nextLine();         System.out.println("A thread with the name: " + name + " is saved for creation.");          System.out.println("Please enter the priority level for the thread.");         priority = scanner.nextInt();         System.out.println("A thread with the priority level of: " + priority + " is saved for creation");          System.out.println("*****************************************************");          Main obj = new Main(name);         obj.start();          System.out.println("Setting the priority of " + name +" thread to " + priority);         setPriority(priority);         System.out.println("Priority is now set to: " + priority + " successfully");     }      public static void setPriority(int priority) {         Main.priority = priority;     } }  The output: Please enter a name for the thread. t1 A thread with the name: t1 is saved for creation. Please enter the priority level for the thread. 10 A thread with the priority level of: 10 is saved for creation ***************************************************** Creating thread: t1 Starting t1 Running t1 Threads alive: 1 ^According to the activeCount method: 3 Setting the priority of t1 thread to 10 Priority is now set to: 10 successfully Lets sleep for a while ...zZZZ Im awake! But not for long :( Thread t1 exiting. Threads alive: 0 No threads is alive.

I was looking through a thread dump of a java process, and notice some threads blocked by signal dispatcher.  What is signal dispatcher?  What does it do?


Hello I am using MikTex in TexStudios and I have this document:  \documentclass[paper=letter,fontsize=11pt]{scrartcl} % KOMA-article class  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{amsmath,amsfonts,amsthm}     % Math packages \usepackage{graphicx}                    % Enable pdflatex \usepackage[svgnames]{xcolor}            % Colors by their 'svgnames' \usepackage{geometry} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{float} \usepackage{etaremune} \usepackage{wrapfig}  \frenchspacing              % Better looking spacings after periods \pagestyle{empty}           % No pagenumbers/headers/footers  %\addtolength{\voffset}{-40pt} %\addtolength{\textheight}{20pt}  \setlength\topmargin{0pt} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \setlength\oddsidemargin{0pt} \setlength\textwidth{\paperwidth} \addtolength\textwidth{-2in} \setlength\textheight{\paperheight} %\addtolength\textheight{-3in} \addtolength\textheight{-2in} \usepackage{layout} \usepackage{multicol}  %%% Custom sectioning}{sectsty package) %%% ------------------------------------------------------------ \usepackage{sectsty}  \sectionfont{%                      % Change font of \section command     \usefont{OT1}{phv}{b}{n}%       % bch-b-n: CharterBT-Bold font     \sectionrule{0pt}{0pt}{-5pt}{3pt}}  %%% Macros %%% ------------------------------------------------------------ \newlength{\spacebox} \settowidth{\spacebox}{8888888888}          % Box to align text \newcommand{\sepspace}{\vspace*{1em}}       % Vertical space macro  \newcommand{\NewPart}[2]{\section*{\uppercase{#1} #2}}    %%% Begin Document %%% ------------------------------------------------------------ \begin{document}     {\Huge\usefont{OT1}{phv}{b}{n}{Bruce Dickinson}}\\     Address     \href{mailto:mymail@somewhere.com}{mymail@somewhere.com}\\     07575349875437     \end{document}   and I don't understand why there is space left before Bruce, does anyone know why this is happening?  The result is in the picture:

Is there a way to remove the indentation at the beginning of a paragraph for a single paragraph.  I know I could do  \setlength{\parindent}{0cm} This is my paragraph.  Blah blah blah. \setlength{\parindent}{default}   Where default is whatever the default indentation is for the document class I am using (part of the problem is that I don't know what this default value is).  I feel as if there should be a better way to accomplish this than by the above method.  I am looking for a solution of the form:  \noindent This is my paragraph.  Blah blah blah.   Is there a way to do this, or will I have to resort to the former method?  If I have to resort to the former method, what is the default indentation value for the amsart document class?


I'm new to Blender I've been trying to make this form but some things keep getting in the way. Some weird faces keep creating themselves when I try to fill some parts of the mesh (the "white grey" parts ) So why do those are created ? How can I erase them while keeping the main face I wanna have?

Hello Blender Stack Exchange,  I am trying to fill a face between 4 surfaces. Two are straight edges and two are a curved line made up of short vertices that came from a SketchUp export.  The problem: I select the vertices on the top and bottom and fill the hole. It creates a strange face that ruins the curve. I would prefer it create some sort of complex curve. I want it to be smooth.  Images attached to better explain.


Short version: Is there a way to somehow save the current call stack and store it for later?  Context: This issue seems like it would be so common that I might just be missing the correct search terms.  A certain class needs to read a variable from a server. I just send the request to the server using an API and at some point in the future a separate thread will get the reply and call some follow up method on the original caller class.  Simple enough, but there might be errors: either the variable I'm trying to get doesn't exist, is an incorrect type or something else. In those cases the best I can output to a debug log can be something like: "Unable to find variable X" and a stack trace of the worker. What I would really like having is a stack trace of the original caller, that I can store somewhere and print out in case there is an error so I can narrow down issues instead of having to hunt down which caller it is.

I have a regular C# code. I have no exceptions. I want to programmatically log the current stack trace for debugging purpose. Example:  public void executeMethod()  {     logStackTrace();     method(); }


I get that the natural numbers, integers, rational numbers, algebraic numbers, and computable numbers are all countable. The reals are uncountable. If I wanted to understand arithmetic restricting all my discourse to only countable sets, what do I lose? To my knowledge, numbers like Chaitin's Omega are not relevant to arithmetic. Are there any arithmetical truths which are dependent on the existence of non-computable, or uncomputable numbers?  Edit: To clarify, I am asking whether we need non-computable numbers for arithmetic (a.k.a. number theory). I know that non-computable numbers are needed in real analysis and other fields.  To further clarify: Are there solutions to number theory problems, such as the distribution and properties of primes, which require uncomputable numbers? We definitely need irrational and imaginary numbers, since an answer to the Riemann Hypothesis will depend on them. I haven't seen a solution yet to a number theory problem which requires uncomputable numbers, nor am I entirely sure it is even possible for there to be one.

It seems to me that the set of all numbers really used by mathematics and physics is countable, because they are defined by means of a finite set of symbols and, eventually, by computable functions.  Since almost all real numbers are not computable, it seems that real numbers are a set too big and most of them are unnecessary.  So why do mathematicians love this plethoric set of numbers so much?


Cauchy stress tensor contains the components of forces per unit areas on the three faces of the infinitesimal cubic element in picture.  Probably it is trivial question, but, while I understood the meaning of the tensor I do not understand why only these three faces of the cube are considered. What does happen on the other three faces (the ones not visible in the picture)? Are maybe forces there equal in magnitude but opposite in direction?

I'm trying to learn about the stress tensor (in 3D)    The tensors are said to have directions (the first subindex $i$ in $\sigma_{ij}$) and specify the surface upon which they act (the second subindex $j$ in $\sigma_{ij}$).  What confuses me is why is it defined only to act on three surfaces, even when the cube has six surfaces?


So I was wondering if I could show Non-Steam games as Steam games, such as if I buy GTA V on a DVD, install it, and add it to Steam. I would like it to show GTA V as a Steam game for screenshots and all that, but how? I know Steam has the games I want to do this with but I don't know how to get them to show up as Steam games.

I personally do not like to purchase games digitally.  There's just something magical about going to the store, picking up a boxed game, staring at the amazing box art, bringing the game home and putting the disc in the drive.  That being said, I know that several game distribution companies are leaning more toward digital distribution, with[Steam holding a large chunk of that market.  Is it possible to buy a retail boxed copy of a game, but still get the benefits of Steam (automatic updates, install on multiple computers, etc.) ?


I wrote down the following:  \begin{align}     \frac{\partial f}{\partial x} = \frac{\partial f}{\partial r} \frac{\partial r}{\partial x} =  \frac{\partial f}{\partial r} \cos(\theta) \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (1) \end{align} \begin{align}     \frac{\partial f}{\partial x} = \frac{\partial f}{\partial \theta} \frac{\partial \theta}{\partial x} =  - \frac{\partial f}{\partial \theta} \frac{\sin(\theta)}{r} \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (2) \end{align} \begin{align}     \frac{\partial f}{\partial y} = \frac{\partial f}{\partial r} \frac{\partial r}{\partial y} =  \frac{\partial f}{\partial r} \sin(\theta) \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (3) \end{align} \begin{align}     \frac{\partial f}{\partial y} = \frac{\partial f}{\partial \theta} \frac{\partial \theta}{\partial y} =  \frac{\partial f}{\partial r} \frac{\cos(\theta)}{r} \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (4) \end{align} \begin{align}     \frac{\partial f}{\partial r} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial r} =  \frac{\partial f}{\partial x} \left [-r\sin(\theta) \frac{\partial \theta}{\partial r} + \cos(\theta) \right ] \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (5) \end{align} \begin{align}     \frac{\partial f}{\partial \theta} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial \theta} =  \frac{\partial f}{\partial x} \left [ -r \sin(\theta) + \cos(\theta) \frac{\partial r}{\partial \theta}\right ] \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (6) \end{align}   It is possible to write $\frac{\partial f}{\partial x}$ purely in terms of $\frac{\partial f}{\partial r}$ and $\frac{\partial f}{\partial \theta}$? And same for $\frac{\partial f}{\partial y}$  Also, I think $\partial \theta / \partial r = \partial r / \partial \theta = 0$ so $(5)$ and $(6)$ become:  \begin{align}     \frac{\partial f}{\partial r} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial r} =  \frac{\partial f}{\partial x} \left [ \cos(\theta) \right ] \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (5') \end{align} \begin{align}     \frac{\partial f}{\partial \theta} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial \theta} =  \frac{\partial f}{\partial x} \left [ -r \sin(\theta) \right ] \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (6') \end{align}    Comparing $(5')$ with $(1)$ and comparing $(6')$ with $(2)$ is really confusing to me. Can anyone explain what am I doing incorrect?

let's consider $f: \mathbb R^2 \to \mathbb R, \quad (x,y) \mapsto xy$  We calcualte the partial-derivatives:  $\partial_x f=y$   $\partial_y f=y$  Now let's sitch to polar-coordinates, we get:  $f: (0,\infty)\times\mathbb R \to \mathbb R, \quad (r,\varphi) \mapsto r^2\sin \varphi \cos \varphi$  We calcualte the partial-derivatives:  $\partial_r f = 2r\sin\varphi\cos\varphi$   $\partial_\varphi f = r^2(-\cos^2\varphi+\sin^2\varphi)$  Now, If I calcualted the derivation in polra-coordinates, can I somehwo go back to eucledean coordinates? Just using $x=r\cos\varphi, y=r\sin\varphi$ won't do it, since if we take the partial-derivatives in polar coordinates we would get:  $2r\sin\varphi\cos\varphi=2y\cos\varphi$  $r^2\sin\varphi - r^2\cos^2\varphi = x^2-y^2$  I first expected to get $x$ and $y$ but that's bullshit since we aren't deriving in the same directions. So how could I now switch properly to eucleadean coordinates?


What if we switch on a flashlight while travelling at the speed of light (we are travelling in vacuum, in a straight path)? What will happen and what will be the speed of light from the flashlight? Will it travel along with us? If it would travel with us (because we are travelling at the speed of light)  then as Einstein's time dilation theory says that the faster you travel through space,the slower you move through time (that means that our physical and biological processes slow down), the light's motion i.e., it's speed should also slow down... so that would mean that speed of light is not constant. Is that so?

I'm curious what will happen if we 'drive' a car with (almost) the speed of light, and all of sudden we switch the car headlights on? Will the car headlights ray have double speed (speed of 600.000km/h) or that ray will never be seen?


I am trying to find out which books have all of the extra non-adventure content. I have found , so I know which books are supplement-only.  Are there adventure books that have extra classes/races/spells/equipment and rules for DMs for new mechanics (not including things like unique magic items or monsters that are part of the story of a campaign supplement)?  I want to eventually get all of the supplement books, but I don't really care for the adventures.

I play D&D 5e and sometimes come here with questions. But sometimes I see things referenced here as sources that I don't have or aren't aware of....  Which are the "official rules" for D&D 5e, and where do I find them?


We often see the word "if" in connection with definitions e.g  y is a solution of $x^{'}=f(x,t)$ if $y^{'}=f(y,t)$ or  A metric space is complete if every cauchy sequence converges.  Why isnt it written if and only if in general in this context?

Possible Duplicate:          So when I come across mathematical definitions like "A function is continuous if...."A space is compact if....","Two continuous functions are homotopic if.....", etc when is it okay to assume that the definition includes the converse as well?


When connecting nodes in tikz, for example with   \draw (one-out) -- (two-in); \draw (two-out) -| (three-in-down);   the connections usually have right-angle-corners with a sharp corner. Is there a way to make them more round? Or do I have to place arcs at those corners to get rounded corners in node connections?

I simplified this example from , however what I am looking is an "L" shaped arrow that curves when it gets to the same height as A which can be seen in the below figure. The red curve is the one that I want.    Here is the code that I have right now for the black arrow.  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \node[anchor=east] at (0,0) (text) {A};   \node[anchor=west] at (5,5) (description) {B};   \draw (description) edge[out=180,in=0,->] (text); \end{tikzpicture} \end{document}


The steps to publish used to be:   Write question Hit publish   Now the process is:   Write question Hit "Review" Get bounced back to the top of the page Scroll back down to the bottom of the page Hit the button again. Page gets published   Is there a way to skip the review step?  I'm not sure whether this is a feature-request or support question, as I don't know whether the option exists to remove this step.  Some proposals to improve the situation:   Make it clearer that you're on a different step. This could be as simple as drawing a border around the text or changing the background colour. I'm not a design person, but it wasn't until I started thinking about writing this post that I figured out there was a 2-step process, I just thought it kind of stuffed up the first time you press publish. CertainPerformance linked a similar question () that proposed a solution which would make it easier to avoid "Step 4" by putting the button into an area where the user gets bounced to when they hit publish. Remove it? We get plenty of feedback from the community when we post a bad question. Does a question need to be right the first time? And if it's not, will this feature help?

Due to its massive (and growing) size, there are a lot of low-quality questions and answers appearing on Stack Overflow.  I'm concerned that an influx of low-quality questions and answers create a lot of work for our users and moderators and can potentially damage our expert Q&A ecosystem.  Is there some way we can prevent these low-quality questions and answers from appearing on the site?   So:    What current processes are used to block these low-quality questions and answers? If the current processes are inadequate, how can they be improved?


Let $\mathbb{Q}[\sqrt{2}] = $ {$a + b \sqrt{2}$ | $a, b \in \mathbb{Q} $}. Prove that $\mathbb{Q}[\sqrt{2}]$ is a subfield of $\mathbb{C}$. Hint: First calculate $(a + b\sqrt{2})(a-b\sqrt{2})$  I have that $(a + b\sqrt{2})(a-b\sqrt{2}) = a^2 -2b$  I know that a subfield is a subring that is closed under inverse. However, I do not know how to prove the above.

Show that the set $\mathbb{Q}[\sqrt{2}] = \{a + b \sqrt{2} \mid a, b \in \mathbb{Q}\}$ is a field with the usual multiplication and addition.  It is easy enough to show that it is closed under addition and multiplication ( $\forall a,b \space)$ we have $a+b \in \mathbb{Q}\sqrt{2}$ and $a * b = ab \sqrt{2} \in \mathbb{Q}\sqrt{2}$.  However, I had trouble proving the other axioms (associativity, commutativity, unique neutral element, unique inverse, and distributivity of multiplication over addition). I would really appreciate it if someone could help me with those.


What value for "zs" do you expect after the following snippet has run?   Collection<Integer> xs = Arrays.asList(1,2,3); int[] ys = {1}; List<Integer> zs = new ArrayList<>(xs); zs.removeAll(Arrays.asList(ys));   I would have expected a list containing 2 and 3. However, with JDK 1.8.0_25 in Eclipse 4.5 M7 it is a list containing 1, 2, 3. The removal has no effect. However, when I specify "ys" as a non-primitive array, I get the expected result:  Collection<Integer> xs = Arrays.asList(1,2,3); Integer[] ys = {1}; List<Integer> zs = new ArrayList<>(xs); zs.removeAll(Arrays.asList(ys));   What's going on here?

private void activateRecords(long[] stuff) {     ...     api.activateRecords(Arrays.asList(specIdsToActivate));   }   Shouldn't this call to Arrays.asList return a list of Longs?  Instead it is returning a List<long[]>  public static <T> List<T> asList(T... a)   The method signature is consistent with the results, the varargs throws the entire array into the list.  It's the same as new ArrayList(); list.add(myArray)  And yes, I know it's meant to be used like this: Arrays.asList(T t1, T t2, T t3)  I guess what I'm getting at, is instead of the varargs form, why can't I just have my old asList method (at least I think this is how it used to work) that would take the contents and put them individually into a list?  Any other clean way of doing this?