I start with a basic class that I want to manipulate in a List using LINQ, something like the following:  public class FooBar    {       public virtual int Id { get; set; }       public virtual string Foo { get; set; }       public virtual string Bar { get; set; } }   This is what I ultimately found out to solve my problem using the non lambda LINQ stuff.  // code somewhere else that works and gets the desired results   var foobarList = GetFooBarList();  // Abstracted out - returns List<Foobar>    // Interesting piece of code that I want to examine var resultSet = from foobars in foobarList                   orderby foobars.Foo, foobars.Bar                   select foobars;  // Iterate and do something interesting   foreach (var foobar in resultSet)   {       // Do some code   }   What I'm really curious about is if the same can be accomplished using the Lambda based extension methods off of generic IEnumerable to accomplish the same thing.  Google tells me I can do something like the following to accomplish it:  var resultSet = foobarList.OrderBy(x => new {x.Foo, x.Bar})                             .Select(x=>x);   However if I do that I get a runtime error when I hit the foreach statement.  The error tells me that at least one object has to implement IComparible, which I can see that since I'm using an anonymous type for the .OrderBy() method.  So is there a way to accomplish what I want using the Lambda way?

I have two tables, movies and categories, and I get an ordered list by categoryID first and then by Name.  The movie table has three columns ID, Name and CategoryID. The category table has two columns ID and Name.  I tried something like the following, but it didn't work.  var movies = _db.Movies.OrderBy( m => { m.CategoryID, m.Name })


Looking to add my own marker. I have an Icon in SVG format that I would like to use. Using QGIS 3.4.4

I've downloaded the SVG icon pack from   Using the Import from URL has never worked for me, so how do I import these symbols into QGIS?   As far as I can tell I need an .XML defining each symbol.


For the following functions, I need to find their Big-Theta values. But I'm not sure if it's the same as Time-Complexity.  For the first function, I got Big-Theta=(n/2), but I'm not sure if I'm correct. Whereas, I haven't been able to do the second one.  First Function  def my_1st_function(n):     i = 1     while(i < n):         i = i + 2     return i   Second Function  def my2nd_function(n):     i = 1     while (i < n):         j = 1         while (j < n):             j = j + 2                i = i * 2     return i

Most people with a degree in CS will certainly know what . It helps us to measure how well an algorithm scales.   But I'm curious, how do you calculate or approximate the complexity of your algorithms?


is it possible to create a costum shape with tikz node like in figure without using pgf?     It is like this (but now I have to include the third block):

I have the following MWE.  I would like to draw a border without including the $y_3$ (or s3 in the .tex file) -- so it would be a rectangle with its left upper corner changed so that it bypasses s3. Is there a way to create such a border, basically, a rectangular polygon, surrounding a set of nodes?  (EDIT: I was trying to do it using the last command in the tikz file.)  \documentclass{article}  \usepackage{tikz}  \usetikzlibrary{fit,chains}  \begin{document}  \begin{tikzpicture}[node distance=2cm]    \node(s1) {$y_1$};   \node(s2) [right of = s1] {$y_2$};   \node(s3) [right of = s2]{$y_{3}$};   \node(s4) [right of = s3]{$y_4$};   \node(s5) [right of = s4]{$y_5$};  \draw [->] (s1) -- (s2) ; \draw [->] (s2) -- (s3) ; \draw [->] (s3) -- (s4) ; \draw [->] (s4) -- (s5) ;     \node(x1) [below of = s1]{$x_1$};   \node(x2) [right of = x1] {$X_2$};   \node(x3) [right of = x2] {$X_3$};   \node(x4) [right of = x3] {$X_4$};   \node(x5) [right of = x4] {$X_5$};  \draw [->] (s1) -- (x1) ; \draw [->] (s2) -- (x2) ; \draw [->] (s3) -- (x3) ; \draw [->] (s4) -- (x4) ; \draw [->] (s5) -- (x5) ;  \node[rectangle,draw=red, fit=(x3) (x4) (x5) (s4) (s5),inner sep=3mm,line width=1mm](rect2) {};  \end{tikzpicture} \end{document}


I am trying to build a client-server Program in which the server sends the image to client and client displays the received image in JFrame. I am converting Image on the server-side to ImageIcon object and sending it to the client via ObjecOutputStream. But it fails and gives me failed to load image contents error on server-side, it happens while the ObjectOutputStream.writeObject() method is called.  Server-side code  import java.io.*; import java.net.*; import javax.swing.*;  public class ImageServer{    private static ServerSocket serverSocket;   private static final int PORT = 1234;    public static void main(String[] args){         System.out.println("Opening port…\n");        try{          serverSocket = new ServerSocket(PORT);        }        catch(IOException ioEx){          System.out.println("Unable to attach to port!");          System.exit(1);        }        while(true){              try{                Socket connection = serverSocket.accept();                 ObjectOutputStream outStream =new ObjectOutputStream(                                               connection.getOutputStream());                ImageIcon icon=new ImageIcon("//Give image path//");                System.out.println(icon.getImageLoadStatus());// To check if image is loded correctly or not.                 outStream.writeObject(icon);                 outStream.flush();              }             catch(IOException ioEx){                 ioEx.printStackTrace();             }       }  } }   Just give the path for an image file, for testing purposes.  Client-side code  import java.io.*; import java.net.*; import java.awt.*;  import java.awt.event.*; import javax.swing.*;  public class ImageClient extends JFrame{     private InetAddress host;     private final int PORT = 1234;     private ImageIcon image;      public static void main(String[] args){           ImageClient pictureFrame = new ImageClient();          pictureFrame.setSize(340,315);          pictureFrame.setVisible(true);          pictureFrame.setDefaultCloseOperation(EXIT_ON_CLOSE);       }     public ImageClient(){         try{            host = InetAddress.getLocalHost();         }         catch(UnknownHostException uhEx){              System.out.println("Host ID not found!");             System.exit(1);         }          try{             Socket connection = new Socket(host,PORT);              ObjectInputStream inStream =new ObjectInputStream(                                            connection.getInputStream());              image = (ImageIcon)inStream.readObject();              connection.close();         }         catch(IOException ioEx){               ioEx.printStackTrace();         }         catch(ClassNotFoundException cnfEx){               cnfEx.printStackTrace();         }          repaint();   }    public void paint(Graphics g){        image.paintIcon(this,g,0,0);    } }   Error generated on Server-side  java.io.IOException: failed to load image contents      at javax.swing.ImageIcon.writeObject(Unknown Source)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)      at java.lang.reflect.Method.invoke(Unknown Source)      at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)      at java.io.ObjectOutputStream.writeSerialData(Unknown Source)      at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)      at java.io.ObjectOutputStream.writeObject0(Unknown Source)      at java.io.ObjectOutputStream.writeObject(Unknown Source)      at ImageServer.main(ImageServer.java:27)   This is a code excerpt from the following book:

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


I have installed and reinstalled LAMP+Wordpress, but when i check it on my browser it is not working. I have tried almost everything, as i don't know what exactly to do. When i go to 127.0.0.1 it says: Error establishing a database connection. Is this happening because i dont have a server version of ubuntu.

ok I have followed the following guide:  But, every time I go to the localhost it says "Error establishing a database connection".  Every time i type 127.0.0.1 it just shows a white page  Every time I use my ip address it asks for username and password....but which username and passowrd do i use?


I want to control DC motors with L293D IC using my Raspberry Pi. I wanted to set it up similarily to this:    But then I found one article on Instructabiles, which said that it would work, but correct solution was this:    So my question is, why is the second circuit better? What do the capacitators do? I´m fairly new to electronics, so this may be a dumb question, but I really can´t figure it out.

What is a decoupling capacitor (or smoothing capacitor as referred to in the link below)?  How do I know if I need one and if so, what size and where it needs to go?    mentions many chips needing one between VCC and GND; how do I know if a specific chip is one?   Would an  4-bit parallel access shift register used with an Arduino need one? (To use my current project as an example) Why or why not?  I feel like I'm starting to understand the basics of resistors and some places they're used, what values should be used in said places, etc, and I'd like to understand capacitors at the basic level as well.


I have a Lore bard who multi-classed into sorcerer after level 4 and went back to leveling as a bard. When he reaches 10th level bard (11th level spellcaster), he will have 6th level slots. Can he take 6th-level spells for Magical Secrets because of this?  The PHB states "Choose two spells from any class, including this one. A spell you choose must be of a level you can cast, as shown on the Bard table, or a cantrip." But the way multi-classing works means that he no longer uses the bard table and uses the spellcaster multiclass table instead, right?

Say you have a Wizard 7/Bard 9. You gain your 17th level and choose to gain the level in Bard (which grants you Magical Secrets). According to the Multiclass Spellcaster: Spell Slots per Spell Level table, you now have a single 9th level spell slot. Can the spells you choose from Magical Secrets be 9th level spells even though you can only cast up to 5th level Bard spells?


I'm not sure what the code below means. I know how to use match, but I'm not sure on what the brackets and "^" signs mean. Is there a website to where I can understand what all you can do with match?    var imagesURL; imagesURL = html.match(/CapImg[^"']*/g);

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


I recall reading a mid twentieth century scifi anthology that may have been Asimov stories. One stuck out to me but I'm having trouble remembering some of the details. Some of what follows could be incorrect.  There are two main characters who are rivals. I believe the POV character is more theoretically minded and into hard physics. The other rival is more engineering and business minded, caring less for theory. The story focuses on the practical minded man inventing something that is theoretically impossible and the conflict between these two.  The theoretically minded chap doesn't believe that anti-gravity is possible. Despite this, some sort of anti-gravity turns out to be possible, but I believe it ends up being used primarily for energy generation, perhaps by creating a force imbalance on a wheel or by causing a large relative velocity between the stuff being un-inertia-ed relative to the environment, instead of other obvious applications like flying around.  In any case, a large amount of animosity develops between these rivals. At one point, the practical one challenges the theoretical one to a pool game that somehow features the new technology. The theoretical one makes a shot that interacts with this anti-gravity element and unexpectedly kills his rival. Possibly a pool ball enters this field and ends up punching a hole in him. It is suspected that the protagonist had known this would happen and that it was murder in response to the goading, but because no one else saw that possibility in advance it's not provable. The overall message of the work seemed to be that while practical minded people who eschew theory may be able to do useful things and make money, it can be very dangerous to use things you don't understand and theory can lead to important practical consequences.

A short story about a scientist trying to prove faster than light travel. He uses a billiard ball for the demonstration. It works but the billiard ball passes through a rival scientist, killing said rival.


My approach :-  $\tan{(x+2x)}= \tan{3x}$  $\tan{x}+\tan{2x} = \tan{3x}(1-\tan{x}.\tan{2x})$  Putting this in my equation ,  $\tan{3x}.(2-\tan{x}tan{2x}) =0$  Now either  $\tan{3x}= 0$    or  $\tan{x}\tan{2x}=2$  Hence we get either  $x=\frac{n\pi}{3}$    or  $x= n\pi ± \arctan{\frac{1}{√2}}.$  However , my textbook says that the solution is   $x=n\pi$    or    $x= n\pi \pm \frac{\pi}{3}$  Why is there a disparity in both the solutions? If they are equivalent , how?  I apologize in advance as I'm using latex for the first time. Thank You

$$\tan A + \tan 2A + \tan 3A=0$$ I tried converting these all in sin and cos and I got the answer but the answer didn't match.  So any one could just help me.  Thanks


I like to split the list in to multiple list, list contains GUID's. For an example, if main list contains 130 GUID's, I have kept threshold as 50, so it should return, 3 list, 1st and 2nd list should contain 50 list each and third list will have 30 GUID's.  How can we do it? Please help me out!!

Is there any way I can separate a List<SomeObject> into several separate lists of SomeObject, using the item index as the delimiter of each split?  Let me exemplify:  I have a List<SomeObject> and I need a List<List<SomeObject>> or List<SomeObject>[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  eg.:   Original List: [a, g, e, w, p, s, q, f, x, y, i, m, c] Resulting lists: [a, g, e], [w, p, s], [q, f, x], [y, i, m], [c]   I'd also need the resulting lists size to be a parameter of this function.


I recently asked for program ideas.  I got five downvotes (or more if someone upvoted along the way ;), and the question was closed.  Where should I ask that kind of question?  (No one say Google (or another search engine).  Please.)  Edit:  Think moderately-sized, one-person projects for someone who already can program (at least to some standard).

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


I have the following script called exec.sh which runs a python script remotely on node01:  #!/bin/bash ssh node01 "python2.7 /home/user/run.py"   If I kill exec.sh using either CTRL+C or kill -9, then the python script that I was running through ssh is still executing on node01.  What I want is to kill the process that I was running on node01 whenever I kill the exec.sh script.

This is a question that has been addressed several times, not only here, but also in other sites of the stack exchange network (e.g. ). However, I cannot make any of the solutions work for me.  I'm running a command through ssh. Whenever I exit ssh, I want the command to die as well. This command is a daemon called ktserver that runs indefinitely until you press Ctrl-C.  I run it as follows: ssh -t compute-0-1 ktserver and, indeed, when I press Ctrl-C, the process ends gracefully and the ssh session ends.  However, if instead of pressing Ctrl-C, I kill the ssh process using the kill command (for example, sending SIGINT or SIGHUP), the ktserver process stays alive.  How can I make the ktserver always die independent on how ssh is killed?  EDIT: If, instead of ktserver I run something completely different, such as gedit, everything works like a charm (i.e. gedit dies when the connection dies). Therefore, there might be something wrong with the process itself. For example, I thought that it might be ignoring SIGHUP or SIGINT. However, when I run kill -1 ktserver or kill -2 ktserver, the process dies as expected.  EDIT2: As Mark Plotnick points out, the issue is related to the fact that there is no communication circulating on the ssh channel. I've confirmed by running ssh -t <host> read and killing the ssh process afterwards. readwas still alive and kicking.


if((quantity1[k].getrestmass() - cold[i].getmass()) > 0     && (quantity1[k].getrestvolym() - cold[i].getvolym()) > 0)   I want to compare these arguments so that both these numbers are > 0, but I'm getting a null pointer exception.     Exception in thread "main" java.lang.NullPointerException       at Main.main(Main.java:88)

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


Performance wise which one is best in below two cases, for example:  Version 1:   int value1 = rs.getInt(1); String value2 =  rs.getString(2);   Version 2:  int value1 = rs.getInt("VALUE1"); String value2 = rs.getString("VALUE2");   Which one is best to use? In many places i added the code like Step 1 way. I want to know is it really make sense.

When using JDBC, I often come across constructs like    ResultSet rs = ps.executeQuery(); while (rs.next()) {     int id = rs.getInt(1);     // Some other actions }   I asked myself (and authors of code too) why not to use labels for retrieving column values:    int id = rs.getInt("CUSTOMER_ID");   The best explanation I've heard is something concerning performance. But actually, does it make processing extremely fast? I don't believe so, though I have never performed measurements. Even if retrieving by label would be a bit slower, nevertheless, it provide better readability and flexibility, in my opinion. So could someone give me good explanation of avoiding to retrieve column values by column index instead of column label? What are pros and cons of both approaches (maybe, concerning certain DBMS)?


I am little confuse about string. I know it's reference type but when i tried, it shows the behavior of value type. I tried this:  String a = "abc";  String b = a;  b="xyz";  //When i print both a and b  a is abc b is xyz   I was expecting both a and b print as xyz. Because they are reference type. After that, i made a function   public static void change(string a) {     a="hello"; } //In main i did this.  String a="abc";  Change(a);   I thought a will print as "hello" because it is refrence type but it still shows abc. If it is refrence type then why it behave like valu type?

A String is a reference type even though it has most of the characteristics of a value type such as being immutable and having == overloaded to compare the text rather than making sure they reference the same object.  Why isn't string just a value type then?


I know the difference between arguments and parameters, but I'am a bit confused about how jQuery uses these terms.  For instance, jQuery defines as "parameters" the options passed to the  method. These shouldn't be declared as arguments because you pass your own values?  Then, on  function you can find many times the terms "parameters" and "arguments". For example, if you search for the beforeSend property, you'll see:     The jqXHR and settings objects are passed as arguments.   But, in another section you'll also see:     The callback hooks provided by $.ajax() are as follows:      beforeSend callback option is invoked; it receives the jqXHR object   and the settings object as parameters.   Does it mean that jQuery uses equally the terms "parameters" and "arguments"?

When verbally talking about methods, I'm never sure whether to use the word argument or parameter or something else. Either way the other people know what I mean, but what's correct, and what's the history of the terms?  I'm a C# programmer, but I also wonder whether people use different terms in different languages.  For the record I'm self-taught without a background in Computer Science. (Please don't tell me to read  because I'm asking this for the benefit of other people who don't already have a copy of 's marvellous book.)  Summary  The general consensus seems to be that it's OK to use these terms interchangeably in a team environment. Except perhaps when you're defining the precise terminology; then you can also use "formal argument/parameter" and "actual argument/parameter" to disambiguate.


Please help I get the following message below after trying to install synaptic....  perkins@perkins-HP-2000-Notebook-PC:~$ sudo apt-get install synaptic Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  synaptic : Depends: libapt-pkg4.12 (>= 0.9.11) but 0.8.16~exp12ubuntu10.16 is to be installed             Depends: libpango-1.0-0 (>= 1.14.0) but it is not installable             Recommends: rarian-compat but it is not going to be installed E: Unable to correct problems, you have held broken packages.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I'm reading the Wikipedia page on Levi-Civita connections, and there's a step that I don't quite follow in one of the derivations. I was wondering if someone could help.  Suppose $X$, $Y$, and $Z$ are vector fields on a manifold $M$, $\nabla$ is an affine connection on $M$ and $g$ is a Riemannian metric on $M$.  How can one show that $X (g(Y, Z)) = g(\nabla_X Y, Z) + g(Y, \nabla_X Z)$ using only the definition of $\nabla$? Do we require compatibility with the metric?  Edit: one of the comments has pointed out that this is the definition of compatibility with the metric. I don't see how to derive this relationship from the definition that I've seen, i.e. $\nabla g = 0$. Thanks!  Edit 2: Question is now a dupe of

So the definition I know for metric compatibility is:  $$Xg(Y,Z)=g(\nabla_XY,Z)+g(Y,\nabla_XZ),$$   which make sense, as $g(Y,Z)$ is a smooth function from the manifold to reals and we think of $X$ as a derivation. So now I read this apparent equivalent definition that says $\nabla g=0$. Can someone explain what this means? How can I do $\nabla$ of $g$ I thought $g_p$ is an element of $T_p^*M\otimes T_p^*M$ at every point. Furthermore after you explain the meaning of this can you show me that these two definitions are indeed equivalent?


I have a lot of technical friends from LinkedIn, so I would like to share questions or answers from , but there is no LinkedIn option when I click on the share link beneath the post.   I know I can directly go to LinkedIn and share, but why isn't LinkedIn added as a share option? If I go directly to LinkedIn and share, will it be counted towards the  Publicist gold badge?

Well the title says it all.  Why is there no link to share on LinkedIn anymore?    [I realized this from an ]


Remove pages from Google index  Hello,  I have bought previously owned domain.  Right now it have 150 - 200 URLs indexed by Google that are not related to my current website (powered by wordpress).  What i did until now:   410 Gone http status for every page i want it unindexed; xml sitemap with 510 status URLs to suggest that the pages have been updated and force recrawl; robots.txt disallow for that 410 status pages submit xml sitemap to Google   Now what? What else should i try to deindex that URLs?

I have used so many things like url removal request and deleted the pages etc., but still the errors are shown in my webmaster tools.  How can I remove the urls completely from Google?


If  void main() {    int i=2,j=4;    i=+++i+j; //is not an error    i=---i+j; // is a L-value required error.. }   could anyone please explain in detail the concept behind multiple increments and decrements..


I use npm tool of laravel called mix, to transform JS ES6 to ES5  When there is error during transformation the npm tool popups system message (Like when I connect to Wifi etc..)  Now the message is long so not all the message shown in the popup I need to see the all message, how can I achieve that?  In mint I have in the bar an icon with all errors but in Ubuntu I didn't find anything like that.  I tried to look in system logs but nothing is there  Screen shot of the message    Thanks

I am learning how to use gtk notifications, and it seems that any output display via the notification bubble has a maximum overflow size, probably 10 lines or so. So, if the message I want to show is more than that, it gets suppressed. Is there any way to force display the entire message without anything getting suppressed?  I am using notifyOSD, by the way.


SPOILER INCOMING! Prepare yourself for spoilers... After Dark Brotherhood quest for killing the REAL emperor, I killed Maro; then my bounty become 3,500 septims and (I don't know how) 1,000 bounty in Whiterun. Now, I can't get my stuff in Breezehome and transport to Markareth and can't enter Solitude. How can I clean this high bounty without losing my skills?

I accidentally killed a noble, now every guard wants to kill me. Is there any way I can get rid of the bounty?


I must find the sum $$\sum_\limits{n=1}^{\infty}\frac1{n(2n+1)}$$ I have already tried partial fractions, but obtained an indeterminate form of infinity minus infinity. Perhaps completing the square would help?

$$\frac{1}{1 \times3} + \frac{1}{2\times5}+\frac{1}{3\times7} + \frac{1}{4\times9}+\cdots $$  How to find sum of this series?  I tried this: its $n$th term will be = $\frac{1}{n}-\frac{2}{2n+1}$; after that  I am not able to solve this.


Does anyone know of recent SUSY gauge theory reviews aimed at the graduate student? Preferably something to bring the reader up to speed?

I have an idea of supersymmetry in quantum mechanics, can you suggest a book on "supersymmetry in quantum field theory", which has sufficient mathematical rigour like "Peskin and Schroeder"


Compiling this example:  \documentclass{scrartcl}  \usepackage{fontspec} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf}   \begin{document} \begin{equation}   \int\limits_a^b x² \,\symup{d}x \end{equation} \end{document}   with lualatex looks a lot uglier than compiling with xelatex. The spacing of the \limits is just way out of perfect:  lualatex result:    xelatex result:

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.)  Consider the minimal example  \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{lmmath-regular.otf} \begin{document} \begin{equation*}   \int f(x) \, \mathrm{d}x \end{equation*} \end{document}   When compiled with lualatex the space between the integral sign and f(x) is too large, larger than what I get if I compile with xelatex (or if I'm not using unicode-math).   With lualatex:       With xelatex:       Without unicode-math:      I'm using a recently updated TeXlive 2011, and the same thing happens with Asana-Math.otf or xits-math.otf as math font. Can this be corrected somehow?


I ran across a discussion recently about whether or not a moderator should be modifying the content of an answer. In this example, content was removed but the author of the answer disagreed with the edit and rolled it back. The editor in question was a mod who then rolled back the rollback and then locked the answer for editing. This isn't about determining who is right or who is wrong. This is about me and maybe some other users understanding what the proper way to proceed in this situation is on any StackExchange site. Can someone please provide some insight into this issue? The following is an example of such a situation on the meta Parenting site which has the relevant question/answer linked:

I joined a site in private beta and posted an answer citing one source. One user made some edits which I did not agree with, so, I rolled back the changes. Some of the proposed changes were grammatical in nature while others converted a definitive statement I made to an ambiguous one which I didn't like at all.  Then I notified the user in comments why I rolled back the changes. The person did not agree & downvoted my answer. Fair enough. I didn't mind.  Then User-2 tried to re-apply User-1's changes which I rolled back again. User-2 tries to argue in comments why I should allow the edit, I then explained why didn't like the suggested edits because my sources say otherwise and changing it the way they wanted conflicts with my sources.  A moderator appears out of the blue and has permanently locked my answer after rolling it back to User-1's edit.   Is such an action by a moderator justified? What is the official policy on when should a moderator get involved in an edit war? What authority or role does OP have when his or her post is messed around by other users which includes a moderator, conflicting with OP's intent?


I am trying to run a regression on non-numeric survey data. The question being, does flour type or mixing type lead to a better cake review? Dummy Data is  and factors are explained below   Flour Type White Flour, Whole Wheat Flour, Gluten-Free Flour  Mixing Type Kitchen-Aid, Hand Mixed, Commercial Mixer  Cake Review Horrible Cake, Bad Cake, Okay Cake, Good Cake, Great Cake  Can you code the factors into numeric data?

Some predictive modeling techniques are more designed for handling continuous predictors, while others are better for handling categorical or discrete variables.  Of course there exist techniques to transform one type to another (discretization, dummy variables, etc.).  However, are there any predictive modeling techniques that designed to handle both types of input at the same time without simply transforming the type of the features?  If so, do these modeling techniques tend to work better on data for which they are a more natural fit?  The closest thing that I know of would be that usually decision trees handle discrete data well and they handle continuous data without requiring an up front discretization.  However, this isn't quite what I was looking for since effectively the splits on continuous features are just a form of dynamic discretization.  For reference, here are some related, non-duplicate questions:


Let $T$ : $\mathbb{R}^n \rightarrow \mathbb{R}^m$ be a matrix transformation given by   $T(x) = Ax$ ,   where $A$ is an $m \times n$ real matrix. Assuming $\mathbb{R}^n $ and $\mathbb{R}^m$ are given their standard Euclidean norms, prove that $T$ is continuous.  Not really too sure how to go about proving this, in this situation could you use the fact that if a linear map $T:V \rightarrow W$, with $V$ and $W$ normed vector spaces, is continous at $0$ then $T$ is continous?

From      Every linear function on a finite-dimensional space is continuous.   I was wondering what the domain and codomain of such linear function are?   Are they any two topological vector spaces (not necessarily the same), as along as the domain is finite-dimensional? Can the codomain be a different normed space (and may not be finite-dimensional)?  I asked this because I saw elsewhere the same statement except the domain is a finite-dimensional normed space, and am also not sure if the codomain can be a different normed space (and may not be finite-dimensional).  Thanks and regards!


How can I prove the following statement?     Given a function $U: A \subset \mathbb{R}^n \to \mathbb{R}$ with $A$   connected set, $$\nabla U=\bar{0} \,\,\,\,\,\,\, \forall \bar{x} \in A\implies U=\mathrm{constant} \,\,\,\,\,\,\, \forall \bar{x} \in A$$   In particular I do not understand how the condition of $A$ as a connected set is necessary to prove the statement.

Let $f:D\subset\mathbb{R}^2\rightarrow\mathbb{R}$ be a function with $D$ open and connected set such that $\nabla f=\bar{0}$ for all $x\in D$ Proof that $f$ is a constant function.  Hi! I have some problems with this exercise. I think that I have the proof, but, in this, I never use the fact that $D$ is a  connected  set. Can anyone help me? Please.  My proof:  First, since $\nabla f=\left(\displaystyle\frac{\partial f}{\partial x},\displaystyle\frac{\partial f}{\partial y} \right)=(0,0)$, then, $\displaystyle\frac{\partial f}{\partial x}=0$ and $\displaystyle\frac{\partial f}{\partial y} =0$. Hence, the partial derivatives are bounded, i.e., there exist a $K,M\in\mathbb{R}^{+}$ such that $\left|\displaystyle\frac{\partial f}{\partial y}  \right|\leq K$ and $\left|\displaystyle\frac{\partial f}{\partial x}  \right|\leq M$ (I think that anything $K$ and $M$ it works, because the partial derivatives are $0$).  Now let $a = (a_1,a_2)$ and $b = (b_1,b_2) \in D$. Then we have: \begin{align*} f(a) - f(b) &= f(a_1,a_2) - f(b_1,b_2) \\ f(a)-f(b) &= f(a_1,a_2) - f(a_1,b_2) + f(a_1,b_2) - f(b_1,b_2) \end{align*} Then, by the triangle inequality: $$|f(a)-f(b)| \leq |f(a_1,a_2) - (a_1,b_2)| + |f(a_1,b_2) - f(b_1,b_2)|$$ And since the partial derivatives exist, we can use the one-dimensional Mean Value Theorem to show that there exists some $c$ such that: $$\frac{f(a_1,a_2)-f(a_1,b_2)}{a_2-b_2} = \displaystyle\frac{\partial f}{\partial y}(a_1,c)$$ And noting how we defined $K$, it follows that $$|f(a_1,a_2) - f(a_1,b_2)| \leq K|a_2 - b_2|$$ And similarly $$|f(a_1,b_2) - f(b_1,b_2)| \leq M |a_1-b_1|$$ And using the statement we got from the triangle inequality, we have that $$|f(a)-f(b)| \leq M|a_1-b_1| + K|a_2 - b_2|$$ And by the Cauchy-Schwarz inequality, we have that $$M|a_1-b_1| + K|a_2 - b_2| \leq  \sqrt{M^2 + K^2}\cdot \sqrt{(a_1-b_1)^2+(a_2-b_2)^2} = \sqrt{M^2 + K^2} \cdot ||a-b||$$ Whereby $$|f(a)-f(b)| \leq \sqrt{M^2 + K^2} \cdot ||a-b||$$ So $f$ is Lipschitz with $L = \sqrt{K^2 + M^2}$.  Hence, the function is continuous. But, $M=K=0$ works, we can consider $L=0$ and the nex equality $$0\leq|f(a)-f(b)| \leq 0$$Then $|f(b)-f(a)|=0$ and we can conclude that $f(b)=f(a)$ for all $a,b\in D$. Then, the function is constant. But, in the proof, I never used the connected of $D$. Where is the wrong? Can anyone help me? Thanks.


Given an image file's name and location as a string, I would like to definitively determine what the image type is e.g PNG, JPG, BMP etc.

Given a string "filename.conf", how to I verify the extension part?  I need a cross platform solution.


I'm running a  game and ran into an interesting situation. 1 of my players had been swallowed by a gargantuan sized homebrew creature. On his turn he used the  spell to become a Dragon Turtle (also gargantuan) in size. What do the rules say should happen in this situation? Does he burst out thereby killing the monster? Is he somehow shunted out? Does the spell fail? or does something else happen?

A player tried to use the spell  on his PC while in the mouth of the Tarrasque to shrink himself, then go deeper into its airway and to try to collapse its lung by enlarging himself inside of it. I imagine there's no real rule for this but I felt silly just denying it, because it seemed like a cool idea that you could only probably do with a creature as large as the Tarrasque.  Can you crawl into a gargantuan creature’s mouth or into its airway via reduce/enlarge and attack its brain or internal organs?


Evaluate the following limit   $\lim\limits_{n \to \infty} n \sin(2\pi \;e \;n!)$  I have no idea how to proceed forward?   Answer for above is $2\pi$ but I don't know how this comes about.

I tried and got this   $$e=\sum_{k=0}^\infty\frac{1}{k!}=\lim_{n\to\infty}\sum_{k=0}^n\frac{1}{k!}$$ $$n!\sum_{k=0}^n\frac{1}{k!}=\frac{n!}{0!}+\frac{n!}{1!}+\cdots+\frac{n!}{n!}=m$$ where $m$ is an integer. $$\lim_{n\to\infty}n\sin(2\pi en!)=\lim_{n\to\infty}n\sin\left(2\pi n!\sum_{k=0}^n\frac{1}{k!}\right)=\lim_{n\to\infty}n\sin(2\pi m)=\lim_{n\to\infty}n\cdot0=0$$  Is it correct?


I needed to convert a database from SQL to MySQL and did so successfully, however, this question is more geared towards MySQL now.  I noticed that I'm able to insert DateTime strings into a Timestamp column type, and that's all fine and good, from what I hear about Timestamp accepting either DateTime or actual Timestamps, however, I'm curious about the "ON UPDATE CURRENT_TIMESTAMP" now since I have it on a column of the database, since it is only capable of being used on Timestamp types.  Would this use a timestamp that is not in the format:  YYYY-MM-DD HH:MM:SS when it updates based on CURRENT_TIMESTAMP?  How would this influence the data that I pull from this column exactly?  For Example, would it be difficult to get the current date/time from the TIMESTAMP column when some dates might be a numeric timestamp, while others might be in DATETIME format?  Should I just use DATETIME as the type for this column without the ON_UPDATE ability to avoid a problem with mixed data coming from the database here?

Would you recommend using a  or a  field, and why (using MySQL)?   I'm working with PHP on the server side.


Prove that among any nine given real numbers there are two numbers $a, b$ with the property: $$0 < \dfrac{x-y}{1+xy} < \sqrt{2} - 1$$  The fraction looks like $\tan(a-b)$, but I don't see if it can help. I don't have any other idea, I'm stuck. I also tried by reducing to absurd, but I didn't reach far. Could someone give me a clue?

For any given set of 13 distinct real numbers, prove we can always find two numbers x and y that $0<\dfrac{x-y}{1+xy}\leq 2-\sqrt{3}$.  I knew we can always make $0<\dfrac{x-y}{1+xy}$ happen. Since x and y are distinct, we can just switch the order of x and y to change the sign of $\dfrac{x-y}{1+xy}$, but what should I do for the right hand side?


in the following datasheet:   Which is a OP07 a high precision ultralow voltage offset OpAmp, it says in the datasheet.      The accuracy and stability of the OP07, even at high gain, combined   with the freedom from external nulling have made the OP07 an industry   standard for instrumentation applications   what is external nulling?

What is Offset null in 1st and 5th pin in IC 741 (Op-Amp)? Why it is used, though it is not used in many circuits? Give me explanation regarding the offset null! Why offset voltage was formed in IC 741?


How can I take a screenshot of my PC's BIOS?

How can I take a screenshot of the PC before it has started up?  For example:   If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review Windows installation screenshots such as those seen on  - Windows is not yet installed!   Any ideas?


If all speeds are relative, then what "governing" force is that speed limit relative to? Is there some sort of fixed or absolute grid with locations everything is compared to?  Does this also mean that we have a "universal speed"? This being from the combined speed from the earth spinning, us orbiting the sun, the sun orbiting the galaxy, etc. If we do, then that would mean we could, in theory, utilize time dilations between an external observer (like a probe) and earth to determine which direction we're currently moving?

Consider the scenario where you measure the time it takes for light to travel to the left 10 meters and to the right 10 meters. Both measurements will take the same time, even though we are moving through space at crazy speeds. This must mean that light is not moving relative to "space" as a whole. What does it move relative to? The light emitter? If so, try shooting two beams of light 10 meters from the wall. The first time the emitter is stationary; the second time it is moving at 100 m/s. Am I mistaken in thinking that it would hit the wall slightly faster? Wouldn't this light be moving faster than the light emitted from the stationary source?


I like to store the current datetime and store that in a variable called Entry date. When I do the above, I get the following message:      var tz = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");      var EntryDate = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now, tz);    I get the following message:  The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.  I tried a number of ways to put Kind but was not successful

We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's?


I was working on a simple project with a single model, a backdrop and lamps, and suddenly, Blender became really, really slow. I tried starting a new project, restarting the computer, even reinstalling Blender, but nothing seems to help. What could have happened and what can I do to resolve it?

Update  This has been confirmed resolved in a later version 376.33 and possibly the update prior.     Okay, I recently did a computer update. I used to run Blender 2.77 on a Dell desktop (5 GB RAM, 2.7 GHZ, Windows 8, build in graphics card). Since that computer wasn't fast enough for my preference, I saved up and got a new gaming laptop - the Asus ROG GL552 (Windows 10, 16 GB DDR4 RAM, Nvidia GeForce GTX 960M with 4 GB DDR5 RAM, 2.6-3.5 Ghz, and quad-core intel processor). That laptop has been known to have outdated drivers, so when I got it, I updated it to up to date Windows 10 drivers.  As soon as I started Blender, I immediately noticed its speed. Even doing simple things, like clicking buttons, or rotating the view with the middle mouse button, took too long to register in the program. I tried changing some User Preference System settings, but that didn't really help much. And the hardware seems to be fine - the render is lightning fast (renders the startup scene in under .1 second; it's just laggy when loading the uv screen), so I don't know why it's like this, or what to do. Also, I ran Blender 2.77 on this computer, and it was also slow (although it was fine on my previous computer).  It could be an issue with drivers perhaps (or maybe OpenGL?), but I ran Unreal Engine 4, and had none of the same issues - the speed was pretty decent on that; so I'm not sure why Blender would be so slow. Any help is appreciated - thanks guys!


On Linux (e.g. Ubuntu) the terminal shows you executables and folders and such in different colors so you can identify them easier. Is this possible on Mac OS Terminal, too?

OS X terminal is not using colors for highlighting output from different commands, for example ls.   When compared with other systems like Ubuntu, this is a big loss of accessibility/productivity.  What solutions do I have to improve this experience? For the moment I found only this guide for  but I am looking for a more complete solution.


I'm trying to create a post having tags in between. So I'm trying to retrieve all the keyword which are followed by # using simple regex expression.  var hashtag = $('p').text().match(/#\w+\s/); console.log(hashtag);   I'm using the .match() function to find the match of the defined regex expression, but it is only displaying one keyword, whereas I have two.  Is there any way to retrieve multiple keywords?

I am trying to parse url-encoded strings that are made up of key=value pairs separated by either & or &amp;.   The following will only match the first occurrence, breaking apart the keys and values into separate result elements:  var result = mystring.match(/(?:&|&amp;)?([^=]+)=([^&]+)/)   The results for the string '1111342=Adam%20Franco&348572=Bob%20Jones' would be:  ['1111342', 'Adam%20Franco']   Using the global flag, 'g', will match all occurrences, but only return the fully matched sub-strings, not the separated keys and values:  var result = mystring.match(/(?:&|&amp;)?([^=]+)=([^&]+)/g)   The results for the string '1111342=Adam%20Franco&348572=Bob%20Jones' would be:  ['1111342=Adam%20Franco', '&348572=Bob%20Jones']   While I could split the string on & and break apart each key/value pair individually, is there any way using JavaScript's regular expression support to match multiple occurrences of the pattern /(?:&|&amp;)?([^=]+)=([^&]+)/ similar to PHP's preg_match_all() function?  I'm aiming for some way to get results with the sub-matches separated like:  [['1111342', '348572'], ['Adam%20Franco', 'Bob%20Jones']]   or   [['1111342', 'Adam%20Franco'], ['348572', 'Bob%20Jones']]


I've created a curve that forms a really complicated logo, and no matter what I do it just won't fill. I changed the Shape to 2D, and tried converting it to a mesh, selecting all the vertices and pressing ALT + F, but it just gives me an error saying "No faces filled". I've done it with all the other parts of the logo, but this part just doesn't want to fill. Can someone help me? Here's an image.

I've already checked this out, but it doesn't help, since I already applied the solution suggested.    Here's what I have; there's no fill despite it being constrained to 2d and the fill option being selected. Not sure if this is relevant, but it was originally modeled on the XZ axis, but I rotated it onto the XY one. I made sure the curve was closed as well (toggle cyclic doesn't solve the problem). Help would be appreciated.


I am a graduate student in physics. I want to self-study topology geometry and physics. I use the book of Nakahara with the same title. However, this book is not convenient for self-study in my opinion. I have the following problems while studying this book;   There are not enough number of examples. When a mathematical definition is given, it is very easy to misunderstand it. And it is very hard to have an intuition on the idea presented. The definitions and the presentation are very concise, so in order have a feeling of what actually the presented ideas means, I usually need to address youtube to see whether someone explained already, however not everything is on youtube. There is an inconsistency on the notation, and there are also typos. So if you are learning it for the first time, this inconsistency can made some concepts impossible to grasp.   The good part of this book is, the topics covered are exactly what I need.   Thus do you have any book to complement this book with a more intuitive explanation, which is self-study friendly, and with more examples. Or even better, do you know any book that treats the same topic in a more pedagogical manner. I specifically ask a book that covers same topics with  Nakahara's chapters 2-10  which is pedagogical and suitable for self-learning, or a book to complement this one.

I'm interested in learning how to use geometry and topology in physics. Could anyone recommend a book that covers these topics, preferably with some proofs, physical applications, and emphasis on geometrical intuition? I've taken an introductory course in real analysis but no other higher math.


I have a question regarding AES-GCM. Is is possible de parallelize the decryption. From what I understood, that is one of the main features of CTR, right? However, from the structure of GCM, I cannot see if that is possible. I guess one need to go and compute all the intermediate authentication parameters. I have searched for some documentation on that topic, but could not spot anything. Thanks!

I recentely faced the issue of random access decryption while AES-GCM was being used. I said this person that the underlying CTR should allow parallelization but I have no idea how authentication comes into play.  Now I know that one of the cool features of CTR is that you can decrypt any block without needing to involve any other blocks. I also know that CTR is part of the basis for GCM.  Now my question(s) are:   Can one somehow parallelize encryption of data in GCM mode (only CTR part? Parts of the MAC as well?) Is it possible to get random access to decrypted ciphertexts (+ fast verification?) or is at least somehow possible to parallelize decryption and authentication (do either of both in parallel or internally parallelize?)?


I constantly need to type   cd /home/geo/Geant4/geant4.10.00.p02-install/lib/Geant4-10.0.2   How do i create an alias to that directory so I could just type   cd $geant (or any other word i decide to create as the alias name)   it would also help me whenever i need to use cmake because i could use $geant aswell in the middle of an cmake option  Thanks

I'm trying to set up Apache Tomcat on my pc, and it wants me to set up an environment variable for CATALINA_HOME.  Does any know how to do this?


So after the capital of the New Republic was     destroyed   What happened to the fleet?  This  simply mentions it was destroyed, but doesn't elaborate if its 100%, partial, or we just don't know. In the past things have been destroyed- namely the Jedi Order- but we know that wasn't exactly 100%.

During the     attack on Starkiller Base,   Mon Calamari cruisers, Star Destroyers and all the other capital ships were conspicuously absent. In fact, the only spaceships I saw in that scene were X-wings and TIE fighters.  I understand that the Resistance is underfunded, but are they really so poor they can't afford a corvette or something? Or at least a few Y-wing bombers to     take out the oscillator?   For a major military installation,     Starkiller Base seems very poorly defended as well. Is the Finalizer the only star destroyer the First Order has left? If the Order can turn an entire planet into a weapons platform, they must be able to crank out something better than TIE fighters.   TFA fighters are significantly improved over their OT equivalents, but the lack of bomber cover, capital ships or light cruisers are highly unusual.  Does the novelization/other sources clarify this?


The 5th edition Monster Manual gives Bugbear stats for morning star and javelin attacks, but not for unarmed attacks.   I improvised 1d4 +2, but how much damage can an unarmed bugbear actually deal?

The Monster Manual lists .   If a skeleton is disarmed, how much damage does it do?  Unarmed Strike is listed as a melee weapon on p.190 of the Player’s Handbook that does 1 bludgeoning damage.  Under using Ability Scores under Strength, it says, "You add your Strength modifier to your attack roll and your damage roll when attacking with a melee weapon ..."   As noted previously, there are often discrepancies between a monster’s stats and PCs stats with weapons. A skeleton’s attack and damage with swords and short bows have +4 modifiers to hit and +2 to damage even though its strength is listed as 10.   Do the +4/+2 modifier discrepancies carry over to its unarmed attacks too - or does one just use its base strength modifier (thus making its bludgeoning attacks 1 damage)?


I have a linux OS with OpenJdk version "1.8.0_262". while generating the jasper pdf letter from web based application, i am getting error as below. Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:116) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:79) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:251) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:272) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:156) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:145) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:758) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:1074) [jasperreports-6.13.0.jar:6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05] at net.atos.wlp.lgs.provider.formatter.AbstractPrintFormatter.generatePrintData(AbstractPrintFormatter.java:52) [wlp-lgs-provider-IBO-21Q2-1.0.jar:IBO-21Q2-1.0] at net.atos.wlp.lgs.provider.formatter.SemiDynamicPrintFormatter.getPrintData(SemiDynamicPrintFormatter.java:74) [wlp-lgs-provider-IBO-21Q2-1.0.jar:IBO-21Q2-1.0] at net.atos.wlp.lgs.provider.controller.ServiceController.generateJasterLetter(ServiceController.java:78) [wlp-lgs-provider-IBO-21Q2-1.0.jar:IBO-21Q2-1.0] at net.atos.wlp.lgs.provider.controller.ServiceController.generateLetter(ServiceController.java:62) [wlp-lgs-provider-IBO-21Q2-1.0.jar:IBO-21Q2-1.0] at net.atos.wlp.lgs.provider.LetterGenerationServiceImpl.generateLetter(LetterGenerationServiceImpl.java:132) [wlp-lgs-provider-IBO-21Q2-1.0.jar:IBO-21Q2-1.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_282] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_282] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_282] at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_282] at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) As part of troubleshooting, i have verified below points  standalone.conf (JBOSS EAP-7.3) file has below value Djava.awt.headless=true  There were no different versions of “jasperreports” jar in ../WEB-INF/lib . Only jasperreports-6.13.0.jar is existing.  In order to check the font installed in linux OS, "fc-list" command was not recognised , perhaps because fonts are not installed in Operating system?   Any help to troubleshoot this issue is appreciated. I checked existing smilar topics, but haven't got much help.

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


I'm trying to set up SSL on a Wordpress site.  The SSL certificate does not cover both www. and non-www. versions of the URL, so I'm trying to simply redirect everything to  with RewriteRules.  I've scoured Google and found a couple solutions that should work  RewriteEngine on RewriteCondition %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]   RewriteEngine On  RewriteCond %{SERVER_PORT} 80  RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]   Both of these do seem to redirect, but, the page doesn't load.  Instead, _index.html_gzip downloads.  There are some other mod_rewrite rules present that aren't normally included with the Wordpress htaccess.  I'm not very experienced with mod_rewrite and I'm totally confused at this point.

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I'm dealing with failing WD 750 GB laptop hdd. Scan perfmormed with MHDD booted from flash disk indicated few (about 6) bad sectors.  Data on the hdd is not important, however I would like to still use this disk.  S.M.A.R.T data of the disk :   I've found a tutorial that suggested 'zeroing' the drive with use of MHDD "ERASE" command and then remapping the drive; it was supposed to allow disk to work again by skipping bad sectors logically.  After about hour or two (of estimated 150), ERASE process resulted in "Catastrophical Error", with adnotation of "Broken drive".   Not being sure if there's anything more to be done, I've launched another scan with "remapping" the drive; when process encountered the first bad sector, the following happened: .   "Blue" blocks are supposed indicate a remap attempt. Looks like it's the first bad sector that MHDD tried to remap.  Given above data, I would like to ask:   Do this data (especially SMART results) indicate that disk is already critically damaged and unusable at all? Is there a way to get this hdd working again for short period of time (propably by skipping damaged sectors)?   I'll take any questions about facts relevant, yet not inclued here.  EDIT: Thread that I'm suposedly duplicating suggests using HDD Regenerator (I did it - failed to make difference here) and Spinrite (which I've failed to run due to other issues). This question is bit broader in scope.

I already have Windows XP, During installing Ubuntu(dual boot) the disk drive just stuck up at one place and doesn't seem to move ahead.. Is there a disk bad sector mark utility that just marks these sectors so that the disk doesn't seek them later. I tried running Seagate Seatools on the drive but both the short test and long test fail even before they start even chkdsk /f/r doesn't seem to work as the system locks up at stage four.


(this is an old exam for my current course) I'm trying to overload operator<< in a template class but when I compile the code and run the program i get this message: /usr/bin/ld: /tmp/cc2BvB2u.o: in function `main': /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:30: undefined reference to `operator<<(std::ostream&, Wrapper<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&)' /usr/bin/ld: /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:31: undefined reference to `operator<<(std::ostream&, Wrapper<int> const&)' /usr/bin/ld: /home/user/Skola/TDDI82/TENTA2017_1/UPPGIFT4/main.cpp:32: undefined reference to `operator<<(std::ostream&, Wrapper<int> const&)' collect2: error: ld returned 1 exit status  All the other tests (my cout:s) are acting as I would expect. Down below here I've put all my code for this program. When I have used friend for overload of operator<< this hasn't been a problem. Anyone knows what wrong I'm doing and how to solve it? //wrapper.h #ifndef WRAPPER_H #define WRAPPER_H  #include <ostream>  template<typename T> class Wrapper { public:      Wrapper();     Wrapper(T const&);     Wrapper(Wrapper const&);      T get_value() const;     void set_value(T const& v);      Wrapper& operator=(T const& rhs);          friend std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w); private:     T value; };  template<typename T> std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w);   #include "wrapper.tcc"  #endif  //wrapper.tcc #ifndef WRAPPER_TCC #define WRAPPER_TCC  #include "wrapper.h"  template<typename T> Wrapper<T>::Wrapper()     :  value{}     {}  template<typename T> Wrapper<T>::Wrapper(T const& t)     :   value{t}     {}  template<typename T> Wrapper<T>::Wrapper(Wrapper const& w) {     *this = w; }  template<typename T> T Wrapper<T>::get_value() const {     return value; }  template<typename T> void Wrapper<T>::set_value(T const& v)  {     value = v; }  template<typename T> typename Wrapper<T>::Wrapper& Wrapper<T>::operator=(T const& rhs) {     value = rhs;     return *this; }  template<typename T> std::ostream& operator<<(std::ostream& os, typename Wrapper<T>::Wrapper const& w) {     os << w.get_value();     return os; }  #endif  //main.cpp #include "wrapper.h" #include <stream> #include <string>  int main() {     //test     Wrapper<std::string> w1{"hej"};     Wrapper<int> w2{3};     Wrapper<int> w3{w2};     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w1.set_value("nej");     w2.set_value(10);     w3.set_value(20);     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w3 = w2;     w1 = "men...";     std::cout << w1.get_value() << std::endl;     std::cout << w2.get_value() << std::endl;     std::cout << w3.get_value() << std::endl;      w1 = "jo..";     w2 = 42;     std::cout << w1;     std::cout << w2;     std::cout << w3;     //         return 0; }  Thanks if you spent your time on this problem!

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.)


For which prime numbers $p$ there exists $x,y\in \Bbb{Z}$ such that $p=x^2+2y^2$? I guess I am to use continued fraction, but I am not sure how. I know how to find solutions for defined numbers but I can't find sets of $p$ that satisfy the above. It will be much appreciated if you have any lead or hint as for how to do it.

I need to describe all numbers of the form $x^2 + 2y^2$.  So far I've reduced the problem to primes, and showed p=2 satisfies it. I've also shown that any primes mod 5 or 7 can't be a written in this form. How do I proceed to show that it holds for all primes mod 1 or 3? I think I'll need to use quadratic reciprocity somehow (only since it is the topic of the homework). I have a hunch the supplementary quadradic recprocity laws will be important.  Any help would be appreciated. Thanks!


I have six figures. I want to create a single figure with 6 subfigures each with its own caption and, if possible, a global caption.  I have tried and subflots, subfigure, tables and none of that worked.  With subfigure I can't figure out how to tell it to create three rows of figures instead of the compiler resolving it to a six figures in one column. If I add two figures I get them side by side. I add a third and/or a fourth I get one column.  With tables, I can do what I want however I can't figure out how to add the caption to each subfigure.  With subfloat I get this error:  ! Undefined control sequence.  \sf@counterlist   When using it like in this question:   I know I should be copying code but it is way too large since all pictures are tickzpictures. I was wondering if anywone could provide a minimal working example.

I'm trying to put two jpegs side by side using the subcaption package, but the images are consistently stacking on top of each other rather than side by side. All the solutions I've found simply state that the pictures have to be small enough to actually be side by side but I've tried making them smaller, too small even and they stay stacked. My code looks like this:  \begin{figure}[H] \centering \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{inclusion.jpg}     \caption{inclusions}     \label{fig:inclu} \end{subfigure}  \begin{subfigure}{0.5\textwidth} \centering     \includegraphics[width=0.3\linewidth]{deform}     \caption{grain deformation}     \label{fig:deform} \end{subfigure} \caption{filler text} \label{fig:manmade} \end{figure}   Help would be greatly appreciated.


I wonder what relation there is between a Stack Exchange website's meta and SO meta. If the admins of Stack Exchange website X say in their meta something that contradicts some posts on SO meta, what should I respect when posting in X?  For example, these posts (, ) on SO meta say it is OK to copy answers into technically different questions. However, this  on Cross Validated meta say it is not OK.  I don't want to enter into this specific argument, but I'm curious to know what rule prevails when posting on the Stack Exchange website whose meta overrode some SO meta rule (Cross Validated in this example).

In the recent question , the OP asks where the following question would be appropriate:     What would be the best way to approach someone that works for me about bad odor?   CHAOS team member Abby Miller  by suggesting the proposal  — which is in commitment as I'm writing this — because     One of the up voted example questions there is about dealing with an irritating coworker. This question will be perfectly on topic for that site.   In my opinion,  qualifies for the not constructive close reason*, which applies to all sites in the network, and therefore, the question shouldn't be allowed, no matter how much it has to do with workplaces.  I know Abby isn't the only one who disagrees with me about this. I once had a talk with a mod of some beta about the presence of poll/GTKY questions on his site. His position, in short, was that his community had different rules from SO and its members enjoyed such questions. I don't remember which site it was, it might even be graduated now, but I never did end up participating there.  Anecdotal examples are nice and all, but here's the real question: to what extent can individual communities/sites override network policies? To what extend should they be able to do so?  *: not constructive comes with the description "This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion."


I'm trying to merge two user inputted lists that have been sorted in descending order. I understand how to merge two lists then sort, however i'm struggling the other way around. # user list input a = [int(x) for x in input("List 1: ").split()] b = [int(y) for y in input("List 2: ").split()]  a.sort(reverse=True) b.sort(reverse=True)  print(a + b)  For example, I want to input: [1, 3, 3, 6] &  [1, 4, 5], and my output be: [6, 5, 4, 3, 3, 1, 1]

I have two lists of objects. Each list is already sorted by a property of the object that is of the datetime type. I would like to combine the two lists into one sorted list. Is the best way just to do a sort or is there a smarter way to do this in Python?


Let $A$ be a set and $A'=\{x: x \text{ is the accumulation point of A}\}$, which is called the derived set of $A$ and $\overline{A}$ closure of a set  I'm trying to prove that for a subset $A$ of a topological space $X$  $\overline{A'}=A'$  First $A'\subseteq \overline{A'}$  Using $B\subseteq \overline{B}$ for any subset in $X$, I prove it  But the $\subseteq$ part  How I can prove $\overline{A'}\subseteq A'$?  Any sugestion

From Rudin's Principles of Mathematical Analysis (Chapter 2, Exercise 6)  Let $E'$ be the set of all limit points of a set $E$. Prove that $E'$ is closed.  I think I got it but my argument is a bit hand wavy:  If $x$ is a limit point of $E'$, then every neighborhood of $x$ contains some $y\in E'$, and every neighborhood of $y$ contains some $z\in E$. Therefore every neighborhood of $x$ contains some $z\in E$, and so $x$ is a limit point of $E$. Then $x\in E'$, so $E'$ is closed.  The thing that's bugging me is the leap from one neighborhood to another. Is this formally correct?


As far as I thought, the following should work, however I get:  Python 3.4.5 (default, Nov  9 2016, 16:24:59) [GCC 4.8.5 20150623 (Red Hat X.X.X-XX)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> '\\' '\\' >>> '\'   File "<stdin>", line 1     '\'       ^ SyntaxError: EOL while scanning string literal   Am I missing something?   I'm expecting '\\' to return \.

I have a string that contains both double-quotes and backslashes that I want to set to a variable in Python. However, whenever I try to set it, the quotes or slashes are either removed or escaped. Here's an example:  >>> foo = 'baz "\"' >>> foo 'baz ""'   So instead of baz "\" like I want I'm getting baz "". If I then try to escape the backslash, it doesn't help either:  >>> foo = 'baz "\\"' >>> foo 'baz "\\"'   Which now matches what I put in but wasn't what I originally wanted. How do you get around this problem?


In user-manuals, we have lots of text that describe how to access a particular menu in a program, like:  Tools -> Web Developer -> Page source  Edit -> Preferences -> Advanced -> Certificates -> View certificates  Start -> Run -> "cmd" ↵   Are there any packages which specialise in formatting that type of thing nicely?

I'm writing a technical documentation and I want to explain step-by-step how to go through various menus.  For example I used to write Open with > VLC media player.  That's how it looks in Windows 8:     What I want in Latex should looks similar to this: light grey box, dark grey border and black windows-like font.    I've seen , suggesting the package  - but it looks very old fashioned - are there any more modern approaches?


I am evaluating lessons that take place over video conferencing platforms. One frequent problem is multiple students talking at the same time. I want a word to describe this phenomenon in my reports:  "a lot of [x]"  So far, I am settling for coining the term 'overtalk'  "a lot of [overtalk]"  A search for this term suggests that it is used to refer to the act of talking uncontrollably as a function of anxiety. This is not a problem, as that use is also somewhat uncommon and field-specific, so I'm comfortable coopting the term for this new context. However, is there a better word already in use for this? I don't want 'interrupting' as this suggests awareness and disregard on the part of the interrupter that somebody is already talking. I am looking to describe the occurence when multiple speakers happen, unintentionally, to be speaking at the same time.

The word or phrase I am looking for is quite opposite to that of the situation when people, such as students or sports players, sing their national anthem with the same tone and words.  I want a single word or even phrase that can describe the situation when two or more people speak at the same time with different tone and words . . . and at the end, the listener cannot get what they are saying. This situation can be found while debating, telling a news about any incident or even while complaining.     Due to _____ , the teacher could not get what they are saying.   If it's not feasible to find a noun or phrase for such situation, then here I request to have an adverb standing alone to describe how they are speaking, for instance, what is the adverb for "at the same time"?.  Here is how, I want to convert sentence 1 into sentence 2.        They spoke at the same time, and the teacher could not get what they are saying.   They spoke _____ , and the teacher could not get what they are saying.


I used 10.04 for work for a couple of years and found it to be awesome. Then someone convinced me to upgrade to 12.04 because Unity looked good. After wrestling with it for about 6 months I decided to go back to Mate temporarily until a new desktop interface had been designed.  It looks like the up-coming 14.04 still uses Unity. I'm interested in finding out whether Canonical is continuing to pursue the Unity desktop?  If the strategy is going to persist, then I'm interested in discovering what the best tools are to mitigate it's affects on desktop usability? A few years back there was a tweak tool, but it wasn't very comprehensive. I'm hoping that the scope of customizability has improved over the last couple of years?  Thankyou.

Are there any configuration options for the Unity desktop?    There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below :           If you're looking to configure Unity 2D, .


I'm trying to teach myself calculus of variations when I came across a worked example about the shortest distance between two points in a plane. This is a question about the mathematics but I don't think it belongs in Mathematics stack exchange because it's about techniques utilized by physicists.  The worked example starts off by defining a distance function like this:  $$\mathrm ds = \sqrt{\mathrm dx^2 +\mathrm dy^2}$$  So here $\mathrm ds, \mathrm dx,$ and $\mathrm dy$ are being treated as if they are real (as in actual) numbers that have some real value when they are, in the best case, infinitesimals. The way I understand them is that they either define an operation on a function, such as $\frac{d}{\mathrm dx}$, or the derivative of a function that's been acted on by the differential operator, eg. $\frac{\mathrm dy}{\mathrm dx}$. They're just notation for operations.  $\frac{\mathrm dy}{\mathrm dx}$ is not a ratio of two numbers. They're not numbers as far as I can understand, they represent operations.  The worked example then pulls out a $\mathrm dx$ from under the square root, as if it is a number, to get this  $$\mathrm ds = \sqrt{1 +\left(\frac{\mathrm dy}{\mathrm dx}\right)^2} \mathrm dx$$  Then it does this   $$\int \mathrm ds = \int \sqrt{1 +\left(\frac{\mathrm dy}{\mathrm dx}\right)^2} \mathrm dx$$  it's gone back to treating $\mathrm dx$ and $\frac{\mathrm dy}{\mathrm dx}$ as operators or functions resulting from operations respectively.  My question is, how do you justify when to switch between treating it as a number and an operation? I find this very strange but I see it often in physics literature. Are there circumstances where this doesn't work? Please direct me to any source where I can learn more about this.

In my Calculus class, my math teacher said that differentials such as $dx$ are not numbers, and should not be treated as such.  In my physics class, it seems like we treat differentials exactly like numbers, and my physics teacher even said that they are in essence very small numbers.   Can someone give me an explanation which satisfies both classes, or do I just have to accept that the differentials are treated differently in different courses?  P.S. I took Calculus 2 so please try to keep the answers around that level.  P.S.S. Feel free to edit the tags if you think it is appropriate.


There's an urn with an infinite number of balls, from which one can draw as many times as one wants. The balls have $n$ different colours, and the probability a ball has a certain colour is $1/n$. For instance, if there are two colours, red and green, there's a 50% chance of a ball being red, but problem is that the number of colours is unknown.  Given that a person has made $m$ draws, of which there are $m_1$ occurences of the colour $c_1$, $m_2$ occurences of the colour $c_2$ $\ldots$ $m_n$ occurences of colour $c_n$ (so that $m = m_1+m_2+\cdots+m_n$, not all necessarily non-zero), how can one estimate the total number of colours $n$?  If there's only one colour ($n=1$), one would expect to draw $c_1c_1c_1c_1\cdots$, but after a finite number of draws, one would still only have a probability that there's only one colour, and never be certain. But intuitively, one should be able to exclude large $n$s with a high probability, so how would $\mathbb{P}(n\,|\,\underbrace{c_1,c_1,c_1,\ldots,c_1}_{m})$ be distributed, and how would the general case look like?     $$ \mathbb{P}(n\,|\,\underbrace{c_1,\ldots,c_1}_{m_1},\underbrace{c_2,\ldots,c_2}_{m_2},\underbrace{c_n,\ldots,c_n}_{m_n})\quad\sim\quad? $$   There's a similar question , however, this question doesn't assume that each colour is of equal probability.

This problem is probably simple enough to have an analogous problem, I just don't know the name so I'm going to describe it and hopefully somebody can point me in the right direction.  The problem is this: estimating the number of sides of a .   Let's say you perform the following process:   Shake the "Magic 8 Ball" and mark down the result If the result has not previously been seen, add it to the set of possible results and label the trial "N" (for "new") If the result has been previously seen, label the trial "O" (for "old") Repeat all steps   I imagine the following kind of sequence occurring: NNNNONNOONOONOOONOOOONONNOONOOONNOONOOOOOONOOONOOOOOOONOOOOOOOONOOOOOOOO...  Now imagine we don't know there are twenty sides to a Magic 8 Ball. Or imagine that you have a Magic 8 Ball with 1000 sides. As the number of "new" trials approaches the actual number of sides, we'll get increasingly more "old" trials showing up in the mix. Once we've seen all of the possible results, we'll always get "old" results. But we're never 100% sure we've seen every single possible result.  So here are the questions I'm interested in:   As we proceed with trials, can we estimate the total number of "sides" of the Magic 8 ball based on the number of "new" and "old" trials up to this point? Can we calculate a probability that our current estimate is correct, or a probability that some bounded estimate is correct?


Has Adobe CS5 stopped supporting new Cameras? I was lucky I shot RAW+JPEG so I was able to atleast have JPEGs quickly. Does that mean Adobe is pushing me to subscribe to Adobe CC?  Is there any free alternative to be able to open these new RAW files into Photoshop and Lightroom?

I am a beginner photographer with a Canon 7d and MacBook Pro. I'm not sure if Adobe camera Raw is compatible with either and really need advice on how to go about downloading the correct version.


Consider an observer at a significant distance away from a collapsing star.  As such when a singularity is born at the core of the star the observer would never see it grow anymore than the infinitesimal point it is at the moment of its creation.   This is because the gravitational time dilation at its event horizon would mean any infalling matter would take infinite time to cross the horizon with respect to observers time.   Keep in mind the observer is away from the star and not inside it as answers to similar questions had falsely assumed that otherwise. So the time dilation for the two would be different.  If this is true no Black hole should technically exist for people at earth as the time required for a blackhole to grow from singularity to things like supermassive blackhole at galactic centers would take infinite time from earth's perspective.   Finally this should mean there are only two ways for them exist   If all matter or the universe itself came out of black hole as only in that case we would have equal dilation leading to their formation in finite time Universe existed since near forever (eternal) .

The event horizon of a black hole is where gravity is such that not even light can escape. This is also the point I understand that according to Einstein time dilation will be infinite for a far-away-observer.  If this is the case how can anything ever fall into a black hole.  In my thought experiment I am in a spaceship with a powerful telescope that can detect light at a wide range of wavelengths.  I have it focused on the black hole and watch as a large rock approaches the event horizon.  Am I correct in saying that from my far-away-position the rock would freeze outside the event horizon and would never pass it? If this is the case how can a black hole ever consume any material, let alone grow to millions of solar masses.  If I was able to train the telescope onto the black hole for millions of years would I still see the rock at the edge of the event horizon?  I am getting ready for the response of the object would slowly fade.  Why would it slowly fade and if it would how long would this fading take?  If it is going to red shift at some point would the red shifting not slow down to a standstill? This question has been bugging me for years!  OK - just an edit based on responses so far.  Again, please keep thinking from an observers point of view.  If observers see objects slowly fade and slowly disappear as they approach the event horizon would that mean that over time the event horizon would be "lumpy" with objects invisible, but not passed through?  We should be able to detect the "lumpiness" should we not through?


I'm trying to make a method where the user inputs the hour (eg. 13:00 for 1pm) into the console (this is a console application) and depending on the hour of the day, my object would be a certain price. I've got Java to recognise the hours, but I'm having so much trouble with the early morning hours (00:00-04:59).  I've converted the time into an integer using substring and parseInt and the if statement below works well up until 23:59, if I type 01:00 or 03:30, nothing happens. Here's what I've done so far, I hope that you can help me. :)  int hrs = Integer.parseInt(hrsString); int mHrs = 0; if (hrs == 00)   mHrs = 24; if (hrs == 01)   mHrs = 25   Etc. up to 04  if ((hrs >= 22) && (mHrs <= 28))    price = 100.00 else if ((hrs >= 05) && (hrs <= 16))    price = 20.00   Etc. up to 21.

This prints 83  System.out.println(0123)   However this prints 123  System.out.println(123)   Why does it work that way?


I have something like the below. the userguid may belong to multiple groups and roles. What i'm looking to do is have one row for the user guid, then the multiple groups and roles combined into one column by a comma.... I have done this before, I think with char index ? or stuff ?  Last Name   First Name  User GUID   Group Name  Sys Group Member Name   Role Name AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF AAAA        BBBB        CCCC        DDDD        EEEE                    FFFF

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I was copying a large VM disk file to a separate larger separate disk array to work on it and during a benchmark I did previously before I started the copy job I didn't realize that the benchmark had unmounted the array. So the file was partially copied to somewhere within the / filesystem and I cannot find it anywhere. I've looked with some commands like find -type f -exec du -Sh {} + | sort -rh | head -n 5 to the find the largest files. Any suggestions? Below are the file system outputs.  df -h Filesystem               Size  Used Avail Use% Mounted on /dev/mapper/centos-root   50G   50G  122M 100% / devtmpfs                  16G     0   16G   0% /dev tmpfs                     16G     0   16G   0% /dev/shm tmpfs                     16G   11M   16G   1% /run tmpfs                     16G     0   16G   0% /sys/fs/cgroup /dev/sda2               1014M  216M  799M  22% /boot /dev/sda1                200M   12M  189M   6% /boot/efi /dev/mapper/centos-home  864G  301G  563G  35% /home tmpfs                    3.1G   32K  3.1G   1% /run/user/1000 /dev/sdb1                1.9T  132G  1.7T   8% /disk1   du -sh * 0       bin 194M    boot 0       dev 46G     disk1 41M     etc 301G    home 0       lib 0       lib64 0       media 0       mnt 720K    opt du: cannot access ‘proc/39152/task/39152/fd/3’: No such file or directory du: cannot access ‘proc/39152/task/39152/fdinfo/3’: No such file ordirectory du: cannot access ‘proc/39152/fd/3’: No such file or directory du: cannot access ‘proc/39152/fdinfo/3’: No such file or directory 0       proc 4.9M    root du: cannot access ‘run/user/1000/gvfs’: Permission denied 11M     run 0       sbin 0       srv 0       sys 20M     tmp 3.5G    usr 673M    var

I have a SCSI disk in a server (hardware Raid 1), 32G, ext3 filesytem. df tells me that the disk is 100% full. If I delete 1G this is correctly shown.  However, if I run a du -h -x / then du tells me that only 12G are used (I use -x because of some Samba mounts).  So my question is not about subtle differences between the du and df commands but about how I can find out what causes this huge difference?  I rebooted the machine for a fsck that went w/out errors. Should I run badblocks? lsof shows me no open deleted files, lost+found is empty and there is no obvious warn/err/fail statement in the messages file.  Feel free to ask for further details of the setup.


I've this working code:  ', '.join('%s=%r' % item for item in list)   where list is list of tuples ('key', 'value').  I want to refactore the code to use the new style string.format. I've tried it this way:  ', '.join(['{!s}={!r}'.format(item) for item in list])   This results in an IndexError: tuple index out of range. Are there any better solutions than:  arguments = [] for key, value in list:     arguments.append('{!s}={!r}'.format(key, value))  ', '.join(arguments)   Context:  def __repr__(self):     """     This method returns a string representation of the object such that eval() can recreate the object.     The class attributes will be ordered     e.g. Class(attribute1='String', attribute2=3)     """     list =[]     for item in vars(self).items():         list.append(item)     list.sort(key=lambda tup: tup[0])      arguments = []     for key, value in list:         arguments.append('{!s}={!r}'.format(key, value))      return '{!s}({!s})'.format(         type(self).__name__,         ', '.join(arguments)     )

Currently, I'm trying to get a method in Python to return a list of zero, one, or two strings to plug into a string formatter, and then pass them to the string method. My code looks something like this:  class PairEvaluator(HandEvaluator):   def returnArbitrary(self):     return ('ace', 'king')  pe = PairEvaluator() cards = pe.returnArbitrary() print('Two pair, {0}s and {1}s'.format(cards))   When I try to run this code, the compiler gives an IndexError: tuple index out of range. How should I structure my return value to pass it as an argument to .format()?


The example I am aware of so far is quintic 3-fold equipped with $SU(3)$ holonomy. Why it is more natural to talk about $CY_3$ folds or Calibi-Yau 3 folds without talking about algebraic curves in string theory? Why it is not more natural to talk about curves first? Or why it is more intuitive to movtivate 3-fold first rather than motivate ? Reminder: This is not a popular science question. I need mathematical and theoretical physics justification. Please give me the reference if possible.

I was hoping for an answer in general terms avoiding things like holonomy, Chern classes, Kahler manifolds, fibre bundles and terms of similar ilk. Simply, what are the compelling reasons for restricting the landscape to admittedly bizarre Calabi-Yau manifolds? I have  but haven't read it yet, nor, obviously,  :)


For example:  $\Large{\frac{2x^3+5x+1}{(x^2+4)(x^2+x+2)}}$ breaks down to $\Large{\frac{ax+b}{x^2+4}+\frac{cx+d}{x^2+x+2}}$  I have been told that since the denominators are irreducible, the numerators will be either linear or constant.  Now my question is for something like $\Large{\frac{2x^3+5x+1}{x^2-4}}$ you would make it equal $\Large{\frac{A}{x+2}+\frac{B}{x-2}}$, why do we assume that the numerators are constant? Why couldn't they be linear??

For example: (2x^3+5x+1)/((x^2+4)(x^2+x+2)) breaks down to (ax+b/(x^2+4))+(cx+d/(x^2+x+2)). I have been told that since the denominators are irreducible, the numerators will be either linear or constant. Now my question is for something like (2x^3+5x+1/(x^2-4)) you would make it equal (A/(x+2))+(B/(x-2)), why do assume that the numerators are constant? Why couldn't the numerators be linear like the irreducible one?


How can I recall the piemenu in the picture? thanks

In the past, I've found the Tab key useful for switching between edit and object modes.  But now that I'm getting into sculpting, I'm finding that I need to frequently switch between sculpt and object modes and the tab key simply toggles the current mode with edit mode.  The best hotkey combination I've found so far is Ctrl+Tab, 4 and Ctrl+Tab, 2 which is kind of cumbersome since it involves an awkward Ctrl+Tab in the left hand followed by a separate keystroke.    Is there an easier way to do this? I'd like to be able to do something simple like just press 2 or 4 to switch modes.


Latex by default indents the first line of a new paragraph, but does not leave empty vertical space.   Currently, I am writing a text with many formulas in it. I don't think this paragraph style works well in my document, because the empty space after a formula is much more recognizable than new paragraphs and this hides the structure of the text.  I started to use \\ \\ for adding empty lines, but this seems to be really bad form.  So I have two questions:   How can I globally change the way a new paragraph is indicated. In particular, how can I add empty vertical space? How is this usually handled in mathematics and physics texts?

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few lines at the beginning of the document? Like a package you can install, or a new command?


I'm trying here to put two materials on one mesh, but the material doesn't line up the way i want it to be:    I want the line between red and white to line up with the blue line. How to I do that?  Note that subdivision surface modifier messes that up here.

I'm following  and I have applied a material to the body mesh and when I apply the material to the faces to the side of the mesh, I can see the top/bottom material is showing on the top and bottom parts of the side faces.  This is the rendered view:     and this is the wireframe showing the selected faces which the side material is applied to:    I'm not sure why this is happening, can anyone advise? Thanks


Since the latest patches, horadric caches have been dropping the same quality of loot regardless of difficulty.  What I would like to know is that if each horadric cache acquired has its loot table bound to the specific act they were acquired from.  For example, say I want to farm for Gloves of Worship, an act2 bounty-only legendary. Would I be able to acquire it from an act4 horadric cache but that was opened in Act2?  Or would I have to, instead, farm bounties from Act2 or Act4 only?

Ofcourse your character's level and the random factor affect what you get in the caches, but is there anything else that has influence on the loot from a cache? For example, does it matter on what difficulty I complete the bounties? Does it matter on which difficulty I open them? Anything else?    For clarification, I'm talking about the reward you get from completing all bounties in one act in adventure mode. A new feature in the Reaper of Souls expansion. Upon completing all bounties in one act you get a one time use cache which drops some loot when used. It usually drops a few crafting materials, some rift keystone fragments and a couple of blues and yellow. I've had one legendary so far out of 4 or 5 caches.    I understand there isn't nearly enough data from the community yet to answer this question based on results. But if someone had a link to a blue post explaining this or perhaps an ingame reference that answers this, that would be awesome. Damn it, I might just spend the next few evenings farming normal - T1 caches and see if I get significant differences in drops :D.


Let $a>0$ and $f:\Bbb R\to\Bbb R$ a function such that,$\forall x,y\in\Bbb R,\space 0<y-x<a\implies f(x)<f(y)$. Does $f$ have to be injective or surjective?   This is what I did: Let $\alpha=y-x,\space\alpha\in(0,a)$. Then $f(x)<f(y)\iff f(x)<f(x+\alpha)$ and this holds for any $x\in\Bbb R$ because we can shift the interval $(0,a)$ to any $(x,x+a)$ on the $x$ axis. Therefore, I think, $f$ has to be strictly increasing, so it is injective, i. e., $\forall x,y\in\Bbb R$,$x<y\implies f(x)<f(y)$.  I also think $f$ does not have to be surjective and such counterexample is an exponential function $b^x,b>1$, bounded below by $0$. Is my argument valid and if it is, should I improve anything?

Let $a>0$ and $f: \mathbb R \rightarrow \mathbb R$ with a property $\forall x,y \in \mathbb R;$ such that $0\;<\;y\;-\;x\;<\;a$ $$f(x)\;<f(y).$$ Prove if the statements are true or false:  $1)$ $f$ must be injective.  $2)$ $f$ must be surjective.  I tried to use a quarter of a circle with radius $r=a$ or a right-angled triangle and translate it. When I moved it, I saw new values of $f$. I concluded the maximum value in the previous interval can't appear again in another interval when the distance between one point in the first interval and one point in the second is less than $a$. I also considered using an absolute value function, but I haven't done anything. I think, but I haven't proven it, that the function must be bijective.


How do I make the enumeration environment to appear in an horizontal fashion with the numbers replaced as a) b) c) d). I hope an MWE is not required for this because I have no idea about it.

I want to have the following:  A graph can be cut in several ways including  \begin {enumerate*} [label=\itshape\alph*\upshape)] \item minimum cut, \item normalised cut and \item average cut.  \end {enumerate*}  In our project we have surveyed the Normalised Cut (Ncut)  algorithm for image segmentation.   A graph can be cut in several ways including 1) minimum cut, 2) normalised cut and 3) average cut. In our project we have surveyed the Normalised Cut (Ncut)  algorithm for image segmentation.


I've a concern regarding the usage of been in the following case.     It has proved that one of the main reasons for the rapid propagation   of false information is suspicious users.      It has been proved that one of the main reasons for the rapid   propagation of false information is suspicious users.   Which sentence is correct and why?

Cars have proved helpful to human beings. Cars have been proved helpful to human beings.   What are the differences between them?


I bought a used Windows computer which was reset to stock with the default Administrator user named "John Doe".  I have changed my "username" to what I want but the user's account folder still retains the name "John Doe".  I've researched this and found a number of registry changes (which I'm not comfortable doing).  I've read I can create another user, move all the contents to the new one, and delete the old account...but then will my applications continue looking for the old account's folder?  Please help.  I'm simply trying to change the name of the root user folder to my name in lieu of "John Doe".  Thanks!

During Windows installation I accidentally typed an accented name for my user name and my profile name is named after it. I already renamed my user to not have an accented character, but the profile folder is an other topic.  Basically I want this because I have some applications what have a problem with the accented character.  Is there a way to rename it? I know I have to make a copy from my profile, but how can I perform a relocation itself? I wouldn't like touch any other profiles on the machine just mine.


Can anyone help me with this one please?! I want to find the total resistance but the circuit seems neither parallel nor serie. What should I do?!

What's the equivalent resistance in this circuit (between points A and B)?