This an old story, starts with a space cadet starting at the academy, all the hard work getting through it, a lecture about the core sentence 'God bless you', the cadets qualifying and jetting off everywhere. It ends with one of the cadets coming back years later as the commodore, remembering everyone and most especially one of the staff members and saying 'God bless you'.

I'm looking for the title of the short story, and any of the volumes of anthology it may have appeared in. I know for SURE it's in one of Jerry Pournelle's anthologies, either Star Empires and There will be War, but as I have all the eBook version of THere will be war, I'm almost certain it wasn't there.   Anyway, the book is about a Commodore who went back to the academy to visit. I'm not sure what his name was, but I'm pretty sure he lived at "Mercer Hall". He had 2 roommates, and a butler to take care of all their needs, like putting away their stuff. (He even tried to argue with the hall monitor) The butler once took away their bottle of booze UNTIL they study for mid-term, and only gave it back AFTER they wrote to their mother AFTER the exam.   The book also goes heavily into "Bless you!" or the translated version, "May the great cosmic magnificence be benevolent toward you" or something like that. Basically, it's about as inoffensive as possible, and if you say it enough, and the aliens are reasonable, they will give up and things will resolve peacefully.   My Google-fu is weak and I can't find this particular story, or which volume of anthology was it in.   Little help?


I'm trying to figure out a way to do public key encryption on a very large piece of data.  For this, I of course want one side to do the encrypting but is unable to decrypt the data, and the other side to be able to decrypt data.  But for RSA encryption, there's a limit to the reasonable size-performance on how big it can encrypt.   I haven't really figured out a good solution to this problem, but the simplest one that comes to mind is to just reuse the public key to encrypt the data in blocks. Of course, this would create some sort of security problems, but as of right now I still don't exactly know what kind of security problems it would cause.   Could someone explain to me what problems this simple method would cause and perhaps also tell me of a way to achieve my goal of being able to do public key encryption on a large piece of data?

RSA is not designed to be used on long blocks of plaintext like a block cipher, but I need to use it to send a large (encrypted) message.  How can I do this?


I have been looking into 32-bit or 64-bit Android versions for phones. It seems to me that the information on the number of bits of the installed Android version is always missing from phones' specs, unlike what happens for the CPU. Googling around, the ways I have found to understand whether a phone is running a 32-bit or a 64-bit OS all include actually doing something with the phone, like looking up the kernel version or downloading some app, like AIDA64.   How do I know if a phone I want to buy will come with a 32-bit or a 64-bit Android before I buy it? It would be interesting to find a layman-friendly criterion or resource that allows me to know this in advance, especially to be able to look into the cheapest phones running a 64-bit Android.

While downloading Android apps, sometimes I have seen apps for armeabi-v7a and x86 architecture.  I read some references for armeabi-v7a and x86 architecture. However, at the end, I couldn't finalize which mobile processors and architectures belong to armeabi-v7a and which belong to x86.  As per my knowledge, mobile processors commonly used in Android devices are Snapdragon (by Qualcomm), MediaTek, Exynos (by Samsung) and Kirin (by Huawei). Almost all brands explain specifications of a smartphone and almost all specifications say mobile processor is 64-bit or not. Should I conclude that 64-bit of mobile processors (Snapdragon, MediaTek, Exynos or Kirin) belong to ARM architecture?  EDIT: To understand which SoC supports armeabi-v7a Android apk and which SoC supports x86 Android apk, I have gone through the specifications of MediaTek Helio X30 and Snapdragon 855. The specification of Helio X30 says, it supports dual-core ARM Cortex-A73 and quad-core ARM Cortex-A53 but ARM is not mentioned anywhere in the specification of Snapdragon 855. So should I conclude that Helio X30 will support armeabi-v7a Android apps and Snapdragon 855 will not support armeabi-v7a apps?  Please clarify my confusions.


I was wondering Is this code safe form SQL injection and other types of exploits? If it is safe can anyone explain it to me how? And if isn't can anyone make corrections  <?php      $servername = "localhost";        $username = "root";      $password = "";      $dbname = "form";      //Requesting values form form.html     $a = $_REQUEST['fname'];     $b = $_REQUEST['lname'];     $c = $_REQUEST['email'];      // Create connection      $conn = new mysqli($servername, $username, $password, $dbname);      // Check connection      if ($conn->connect_error) {         die("Connection failed: " .$conn->connect_error);      }   // prepare and bind      $stmt = $conn->prepare ("INSERT INTO my_db (fname, lname, email)       VALUES (?, ?, ?)");      $stmt->bind_param("sss",$a,$b,$c);      $stmt->execute();      echo "new record created successfully";      $stmt->close();      $conn->close();      ?>

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


It is possible to import data in QGIS but ArcGIS has more features and easy to use, so is there any way to import OSM data and we can use ArcGIS tools for analysis and database creation?

I'm currently trying to download data from OpenStreetMap specifically from San Carlos, Venezuela. I'd like to take the OSM file and convert it to SHP for use in ArcGIS.   I've used geofabrik for other country's in the past, but Venezuela is not available for download. Exporting a bounding box of the city directly from OpenStreetMap, then using OpenStreetMap Toolbox to convert the OSM to SHP gives me the lines but it's missing street names and city. Ideally I'd have addresses as well, but I can live with just street names.  Is there any way to achieve this? Export all streets within a city from OpenStreetMap, then convert it to SHP with city and street name attributes?


She invited me to dinner. But it _____ two years since I _____ to her house. So I lost my way.   The answers were "was" and "had gone".  Could they be "had been" and "went"?

She invited me to dinner. But it _____ two years since I _____ to her house. So I lost my way.      The answer is "was", "had gone" but would it be possible to change "had gone" into "went" because if he  lost his way, may be he only went to her house only one time and "went" refers to a single event.


I want to display a view holder for all users except the current user. The best solution I found was to simply query all the "Users" then hide the current user view holder. In order to so I check if the model user is the current user. However, my if statement is not working as it should. I print out both UID's and clearly they are equal. However, my if statement which should only run when they aren't equal still executes when the activity is initially opened. If I jump to another activity and then go back to this activity then it works as it should and it hides the view. Anyone know why my if statement isn't working when the activity is first created?         final FirebaseRecyclerAdapter<Users, UsersViewHolder>  adapter = new FirebaseRecyclerAdapter<Users, UsersViewHolder>(options) {             @Override             protected void onBindViewHolder(@NonNull UsersViewHolder holder, final int position, @NonNull final Users model) {                  holder.setInfo(getApplicationContext(), model.getUsername(), model.getName(), model.getProfilePhoto());                 final String currentUserID = FirebaseAuth.getInstance().getCurrentUser().getUid();                 final String otherUserID = getRef(position).getKey();                  System.out.println(currentUserID + " === " + otherUserID + "\n");                 if (currentUserID != otherUserID) {                     holder.mView.setOnClickListener(new View.OnClickListener() {                         @Override                         public void onClick(View v) {                             DatabaseReference currentUserDB = FirebaseDatabase.getInstance().getReference().child("Users").child(userID);                             Map newPost = new HashMap();                             newPost.put("otherUserID", otherUserID);                             currentUserDB.updateChildren(newPost);                             startActivity(new Intent(SearchActivity.this, OthersProfileActivity.class));                         }                     });                 }                 else {                     holder.mView.setVisibility(View.GONE);                 }             }             @NonNull             @Override             public UsersViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {                 View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.users_layout, parent, false);                 return new UsersViewHolder(v);             }         };          adapter.startListening();         rvSearchUsers.setAdapter(adapter);

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


Is there a better way using javascript to persist url query string throughout user session in client side other than using cookie?  url:   http://site.com/?q=query

How would I have a  action that may have some effects on the current page but would also change the URL in the browser so if the user hits reload or bookmark, then the new URL is used?    It would also be nice if the back button would reload the original URL.  I am trying to record JavaScript state in the URL.


I asked if anyone knew of a , and the question was closed as "not a real question." I don't understand what is wrong with my question. It is specific and answerable (either "Yes, the URL is..." or "No, because..."). Why do people think it's off-topic?

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 want to force Chrome fonts to be consistent on every site I visit.  The Chrome preferences don't affect this at all.  I found  which states which webkit settings to edit to accomplish this, but where are the preferences stored on linux?

I recently switched from Windows to Ubuntu and I love the default font in this OS. Is there any way to make my Chrome webpages load in that same font? I tried setting the font to 'Ubuntu' in the Chrome customization settings but the webpages don't seem to render in the OS font. The ask Ubuntu pages though, always load in this font (even before I changed in Chrome settings). Why not other pages?


Kindly send the latex code for this integral symbol

Is there in LaTeX a symbol or a macro for the average integral with a horizontal slash? I know about \strokedint, but I'd prefer the dash to be horizontal.


I know this might be thought of as a duplicate question, but I think my question is a bit different from the previous questions.  The difference between public and protected members is that a public member acts as a protected member on in that it can be accessed from the world but a protected member cannot.   What does the term world mean? Does it mean from outside the class? If so how?  Is it by using the class name? Or they can be accessed by using the variable/method name directly without the current class being a subclass?

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


I need to create a database for a wordy questionnaire. At the end I want to be able to graph my information. Where can I do this?

I'm doing the conceptual model for a survey database.  The goal is store the answers given by users (it's going to be an Android app).  I have three entities: user, question and option.  A question will have one or more options (for example: How many employees do you have? 1-40, 40-1000, +1000).  Options will have a text (1-40) and a value (the value selected by user).  User will select one (or more) of these options.  My conceptual design is:    I don't know how to associate an answer with an user.  How can I represent that relation? Do I have another entity to represent option value?  This model will store questions and pre-made answers (offered answers) and allows them to be re-used in different surveys.  I have to represent question like this one:    This question is related to this one:


what i know :  if i want to find  $Nth$ term of a fibonacci series like :   1   1   2   3   5   8   13  21 .......   then to find $6th$ term we use golden ratio like:    so it becomes like :     well and good.now  what i want to know :  what changes should i make in golden ratio or while applying it for different fibonacci series . For example :   1   6   7   13   20   33 .......   now if i want to find the 10th no. of above series then what changes should i do in golden ratio... now what is the value of X10's R.H.S(right hand side)  X10 = ? (for this fibonacci series)

DISCLAIMER: I do not deal with in-depth mathematics on a daily basis as some of you may, so please pardon my ignorance or lack of coherence on this topic.  QUESTION: What is the significance of starting the Fibonacci sequence with $0,1$ ?  For instance, if I picked any two random integers, say 2 and 7, to start a sequence would I actually be creating some multiple or derivation of the Fibonacci sequence?  Is there a general mathematical explanation for the relationship between any sequence represented by $a[0] = x, a[1] = y, a[n] = a[n-1] + a[n-2]$ and the Fibonacci sequence?  Or, back to my example sequence, is there a general mathematical relationship between:  $2,7,9,16,25,41,66,107,173,280...$  and  $0,1,1,2,3,5,8,13,21,34...$  Perhaps the Golden Ratio explains it somehow?  Any help would be appreciated.


What reasons are there for applications in Ubuntu not being the most up-to-date, and why are some applications not available, in its  repositories?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


My cousin applied for a visitor's visa, to visit me as well as his extended family in the UK.  He had visited for 2 weeks after being granted 6 months last year. However we had decided that he should perhaps apply for a 2-year visa this time. However he was refused based on these reasons:      How do we rectify these points stated and can he reapply straight away?  Visa got refused again

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


I'm to prove that $(A^T)^{-1} = (A^{-1})^T$ but I'm not really getting anywhere.  What I've got so far:  $\frac{1}{detA} \cdot A^T = \left( \frac{1}{detA} \cdot A \right) ^T$  But that gets me nowhere...Any hints appreciated.

I can't seem to find the answer to this using Google.   Is the transpose of the inverse of a square matrix the same as the inverse of the transpose of that same matrix?


I'm not sure this is possible with reflection, but thought I'd ask.  I'm using a data access class that relies on generics to determine the 'row type' which we're querying against.    A couple of examples will show what I mean better than anything:  int count1 = connection.Count<PersonRow>("i.FirstName ='David'"); int count2 = connection.Count<CarRow>("i.CarModel = 'Chevrolet'");    Both PersonRow and CarRow inherit from an abstract Row class.  As you can see, the type of Row we're querying against dictates what our query structure will be.  I'd like to store a bunch of these queries as strings in a database or configuration file, rather than hard-code them.  That way we can let users write their own queries as they like, and the code loops over the configuration and runs them one at a time.  Trouble is, I don't know if I can pull this off given the Generic requirement above?  I'd love for the configuration to store the kind of row (as a string) along with a string for the query itself, then use reflection to supply the row class in the Count<> method.  I've been playing with Type.GetType() and Type.MakeGenericType() to see if  I can finagle something, but am having no luck.    While looking around, I've seen several articles like  that show how to instantiate a generic class using reflection, but I need the class type, not an actual object.  Is there a way to pull this off?

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I made a program using eclipse. I have a referenced library called res, where I load my resources from. I have two folders in res, one if 'maps' the other one is 'tiles'. If I run the program from eclipse, it works how it should. However if I export it into a jar, and run that, I get an exception. I didn't have this problem, until I started to use the files in the 'maps' folder, so I'm guessing I'm not loading it as I should. As far as I know, I should load it as a resource, and that's what I do:  BufferedReader reader = new BufferedReader(new FileReader(this.getClass().getResource(path).getFile()));   (path is just a string, which is always: "/maps/map.txt")  The exception comes from the line above, and this is the exact error:  java.io.FileNotFoundException: file:\C:\TMP\App.jar!\maps\map.txt  (the filename directory name or volume label syntax is incorrect)   What am I doing wrong?

I'm trying to access an XML file within a jar file, from a separate jar that's running as a desktop application.  I can get the URL to the file I need, but when I pass that to a FileReader (as a String) I get a FileNotFoundException saying "The file name, directory name, or volume label syntax is incorrect."  As a point of reference, I have no trouble reading image resources from the same jar, passing the URL to an ImageIcon constructor.  This seems to indicate that the method I'm using to get the URL is correct.  URL url = getClass().getResource("/xxx/xxx/xxx/services.xml"); ServicesLoader jsl = new ServicesLoader( url.toString() );   Inside the ServicesLoader class I have   XMLReader xr = XMLReaderFactory.createXMLReader(); xr.setContentHandler( this ); xr.setErrorHandler( this ); xr.parse( new InputSource( new FileReader( filename )));   What's wrong with using this technique to read the XML file?


If I have a class with the file stream members like so:  public class FooBar {     private StreamReader reader;     private StreamWriter writer;      public FooBar(string readerFilePath, string writerFilePath)     {         reader = new StreamReader(readerFilePath);         writer = new StreamWriter(writerFilePath);     }      ... }   then how do I close those streams?  It seems that they are closed by default during the class destruction, but then I have to use writer.Flush() which doesn't sound good.

I know from reading  that the "primary" use of the IDisposable interface is to clean up unmanaged resources.  To me, "unmanaged" means things like database connections, sockets, window handles, etc.  But, I've seen code where the Dispose() method is implemented to free managed resources, which seems redundant to me, since the garbage collector should take care of that for you.  For example:  public class MyCollection : IDisposable {     private List<String> _theList = new List<String>();     private Dictionary<String, Point> _theDict = new Dictionary<String, Point>();      // Die, clear it up! (free unmanaged resources)     public void Dispose()     {         _theList.clear();         _theDict.clear();         _theList = null;         _theDict = null;     }   My question is, does this make the garbage collector free memory used by MyCollection any faster than it normally would?  edit:  So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as database connections and bitmaps.  But suppose that _theList in the above code contained a million strings, and you wanted to free that memory now, rather than waiting for the garbage collector.  Would the above code accomplish that?


I would like to get numbered paragraphs. However, I'm in the process of "retro-fitting" quite a long document and inserting \paragraph (or any other command) every time would be very painstaking.  The topic has already been addressed multiple times here, but they all seem to rely on using the explicit \paragraph command (or another command that I would have to insert manually). See for instance this  case, marked as duplicate to my issue by other users; I don't think this works in my case, since the suggested solution relies on manually inserting a command at the beginning of every paragraph.  Is there way to make this happen without the use of an explicit command at the beginning of every paragraph?  I'd like this:  \documentclass{article} \begin{document} \title{My Title} \author{Author's name} \maketitle  First paragraph.  Another paragraph.  \section{Section}  And yet another paragraph after the section! \end{document}   To render more or less as :  My Title  Author's name   First paragraph. Another paragraph.   1. Section   And yet another paragraph after the section!   I've seen  but the problem is that it numbers a bit too much... Like any solution that would redefine the \par internal command, which is used in many places (eg section titles). For instance, it also numbers the title, etc. while i'd like to get only "proper" paragraphs to be numbered (but I don't know how to tell LaTeX what constitutes a proper paragraph without the \paragraph command).    Thanks!

I would like to add a marginal number (don't know the right term; in german „Randnummer“) to every paragraph of text I write. I don't see any other solution, than to write every single number manually with \marginpar. This is impossible, especially when you write longer texts. Does anyone know a good solution?  This image shows what I'd like to achieve. (from: )


I have users inputting into my program the degree of a matrix (e.g 3x3 == X=3, Y=3) I then populate a list of 9 values that will make up my 3x3 matrix like so:      total = x * y  # the x and y values inputted by the user     i = 1     while i <= total:         matrix.append(i)         i += 1   After I have this matrix populated I want to print it out such that I print values matrix[0], [1], [2] in the first row and so on. But I want to do this for any size matrix, I have tried this:  i = 1 j = 0 while j < total:     print matrix[j]     if not i == x:         print ''         i += 1     else:         print '\n'         i = 1     j += 1   With no luck as it prints each value on a new line regardless... Any help is appreciated, thanks!

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


I am working in a small startup organization with approximately 12 - 15 developers.  We recently had an issue with one of our servers where by the entire server was "Re provisioned" i.e. completely wiped of all the code, databases, and information on it.  Our hosting company informed us that only someone with access to the server account could have done something like this - and we believe that it may have been a disgruntled employee (we have recently had to downsize).  We had local backups of some of the data but are still trying to recover from the data loss.  My question is this - we have recently began using GitHub to manage source control on some of our other projects - and have more then a few private repositories - is there any way to ensure that there is some sort of protection of our source code?  What i mean by this is that I am aware that you can delete an entire Project on GitHub, or even a series of code updates.  I would like to avoid this from happening.  What i would like to do is create (perhaps in a separate repository) a complete replica of the project on Git - and ensure that only a single individual has access to this replicated project.  That way if the original project is corrupted or destroyed for any reason we can restore where we were (with history intact) from the backup repository.  Is this possible?  What is the best way to do this?  Github has recently introduced "Company" accounts... is that the way to go?  Any help on this situation would be greatly appreciated.  Cheers!

I am curious about how do you protect your software against cracking, hacking etc.  Do you employ some kind of serial number check? Hardware keys?   Do you use any third-party solutions?  How do you go about solving licensing issues? (e.g. managing floating licenses)  EDIT: I'm not talking any open source, but strictly commercial software distribution...


I want to prove the following inequality     Let $a$ and $b$ be positive real numbers and $f:\mathbb{R}\rightarrow\mathbb{R}$ a continuous function. Then,   $$\int_{0}^{a}f(x)dx+\int_{0}^{b}f^{-1}(y)dy\ge ab$$   I know that $(a-b)^2 \ge 0$ and so I easily get $2ab\le a^2 + b^2 $ and thus  $ab\le a^2 + b^2 $. I feel like this should guide me to the answer, but I don't know how.

The following problem is from Spivak's Calculus.  Suppose that $f$ is a continuous increasing function with $f(0)=0$. Prove that for $a,b \gt 0$ we have Young's inequality   $$ ab \le \int_0^af(x)dx+\int_0^bf^{-1}(x)dx$$, and that equality holds if and only if $b=f(a)$.  It is enough to consider the case $f(a) \gt b$, and show that the strict inequality occurs in this case.  I've tried proving this using the theorem  $$ \int_a^bf^{-1}=bf^{-1}(b)-af^{-1}(a)-\int_{f^{-1}(a)}^{f^{-1}(b)}f$$  but I got stuck along the way.   How may I show this rigorously using the definition or properties of integrals? Any hint, suggestions or solutions would be appreciated.


I've been trying to solve the following linear congruence with not much success: $19\equiv 21x\pmod{26}$ If anyone could point me to the solution I'd be grateful, thanks in advance

What is the best way to solve equations like the following:  $9x \equiv 33 \pmod{43}$  The only way I know would be to try all multiples of $43$ and $9$ and compare until I get $33$ for the remainder.  Is there a more efficient way ?   Help would be greatly appreciated!


/give @p minecraft:bow{display:{Name:"{\"text\":\"Test Name\"}"}}   Is what I am trying to add enchantments to but cannot seem to figure out how. {Sharp 5 Knockback 100} I tried the following: /give @p minecraft:lead{Enchantments:[{id:"minecraft:knockback",lvl:1 000},{display:{Name: "{\"text\":\"Test Name\"}"}} /give @p minecraft:bow{display:{Name:"{\"text\":\"Test Name\"}"}},{Enchantments:[{id:"minecraft:knockback",lvl:1000 } /give @p minecraft:lead{display:{Name:"{\"text\":\"Test Name\"}"}{Enchantments:[{id:"minecraft:knockback",lvl:1000}}  Java Edition: Vanilla, 1.16.4

I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.


I'm trying update a software and when I running for make update I've a issue:  Can't locate Archive/Tar.pm in @INC (@INC contains: ...)   How I can fix this?

I get this error:  Can't locate Foo.pm in @INC  Is there an easier way to install it than downloading, untarring, making, etc?


I received an e-mail from a person thanking me for my help when I had traveled to Germany. I would like to start my answer with the following phrase. Is it correct?     I'm glad I was of any help!   I do not need to be extremely formal, that's why I put the exclamation mark.

Which one is better? Are they acceptable or do they sound weird in English?


Say P(A) is 0.4 and P(B) is 0.1 and P(neither) is .7  How would I calculate the probability of P(A and B)? I have looked at conditional probability examples and cannot find one where only P(A) and P(B) is given.

There are coffee drinkers and there are tea drinkers and among them   there are those who like both.  Among the management students it was   found that the probability that the student drinks coffee is 0.32, the   probability that the student drinks tea is 0.45,  and the probability   that the student drinks both is 0.26.      What is the probability that the student doesn't drink tea?   if .45 of people drink tea then 1-.45 of people don't drink tea?     What is the probability that the student drinks neither coffee nor tea?   .45+.32 people drink tea or coffee so 1 - .45+.32 drink neither?     What is the probability that the student drinks coffee or tea?   .45+.32 people drink coffee or tea?


Why are lens apertures usually of only certain sizes? 1.4, 1.8, 2.8 and so on. Why not 1.6, 2.5 or any other sizes?

For the exposure control function DSLRs there are specific shutter speeds available. For example there are 1/4, 1/100, 1/500. Why, even in high end DSLRs, is there no option to use a custom shutter speed (such as 1/19)?   If the camera can do 1/4000, why can't it do 1/33?  Similarly, why are the aperture choices limited?  Why is it a technical challenge to add extra shutter speeds or aperture settings?


when I run this command sudo apt-get update I get an error:  jan@janOS:~$ sudo apt-get update E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/gwendal-lebihan-dev-cinnamon-stable-precise.list E: The list of sources could not be read.   I tired to install nemo. And then this happened after I added the ppa. I can't even purge it. How can I fix this? For some reason the software center does not want to open anymore also.  Another thing when I check for updates. I get this.

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


What's the best way to secure a GET request or are there any, safer alternatives?    I'm using a couple of GET requests in my website to generate webpages dynamically and to delete records based on ID.  The last one worries me a bit, because people could just change the URL to whatever file they want to delete.  To have access to the delete-file they do need to login and have certain permissions, which will throw an error if they don't have sufficient permissions.    I came across , stating that you should use themysqli_real_escape_string function to make it at least more secure.  I also read about validation being really important, so I was thinking about checking whether the ID is an actual integer or not.   stating that hiding the request in the URL is basically useless, since the request will always be a part of the URL.    This is my delete-file, it uses two statements, one deletes the actual post, and the other one deletes the associated images with that post.  include('./utils/auth.php');  require('./utils/db.php');  $stmt_1 = $connect->prepare('DELETE FROM `dias` WHERE diaserie_id = ?');  if($stmt_1) {     $id = $_GET['id'];     $stmt_1->bind_param('i', $id);     if($stmt_1->execute()) {         // Als de afbeeldingen uit de database zijn, verwijder dan ook de serie zelf         $stmt_2 = $connect->prepare('DELETE FROM `diaseries` WHERE diaserie_id = ?');         if($stmt_2) {             $stmt_2->bind_param('i', $id);             if($stmt_2->execute()) {                 echo "Both the files and post have been deleted.";             } else {                 echo "The files have been deleted, the post iself could not be deleted.";             }         }     } else {         echo "Files and post could not be deleted.";     } }

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?


I'm using Illustrator CS6 on OS X.  When choosing View -> Actual Size, the displayed elements are smaller on the screen than their actual size, say in centimetres.  How can I "calibrate" Illustrator to my screen's resolution (dpi) so that it can display objects at life size when using 100% zoom?  (Acrobat does have a DPI setting in its preferences, and I assume Illustrator must have it too.  But I cannot find it.)  Edit: To clarify, if I put a ruler next to the screen, and also turn on the ruler in the document, I want them to match up when selecting View -> Actual Size.

I'm a web developer and I love Photoshop but unfortunately I have some design mock-ups sent over to me in Illustrator. When I viewed the document at 100% the text isn't even legible on my monitor. At 150% things looks like they could be an actual web page and everything is clear.  I'm thinking the designer used a screen resolution that really doesn't convert well for web.  How can I view/change the document's screen resolution to say, 72ppi from whatever it is now?  If you think I'm asking the wrong question then here is an alternate: How can I figure out what width (in pixels) the designer actually intended for design?


Let $ A,B \in M_{n\times n}(\mathbb{F}) $ be matrices such $ \det\left(A+X\right)=\det\left(B+X\right) $ for any $ X\in M_{n\times n}\left(\mathbb{F}\right) $. Prove that $ A=B $. My idea is to assume by contradiction that $ A \neq B $ and therefore we can find $ X $ such that $ \det\left(A+X\right)\neq\det\left(B+X\right) $. But this is just intuitive idea, I dont know how to find this $ X $ in order to prove the what I claim. I'll be glad for some help with finding such $ X $ that would satisfy the idea. Thanks in advance.

I have to prove/disprove this:     If $\det(A+X) = \det(B + X)~ \forall X \in M_{n \times n} (\mathbb F) \rightarrow A = B$   I believe it is true but I can not think of a direct way to prove it. Any help is appreciated!


i have two  different object with same values  for example :   obj = {name:"John"} obj 2 = {name :"John"}   when i am trying compare both object, not values its giving me false   obj === obj 2 or obj == obj 2       //i tried both   i thought i will return true , but i don't know why it return false even both values are same ;  And when i did this   obj 3 = obj obj 3 === obj   it returns me true as output.  help me.  . Thanks in advance.

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


I want to disable a particular USB storage device (a sandisk flash drive). I read somewhere that you can use the .config file. How do i use it to disable that?

I'd like to build a version of Ubuntu that has absolutely no ability to recognize any USB device inserted. Is this possible?  There's the issue that mouses and keyboards nowadays are connected via usb, so I wonder if it's possible to recognize these but not everything else.  In the end it's a security measure, so different solutions to achieve this goal are also welcome.


I have been watching a ludicrous video about this insane notion of a flat earth and, among a lot of wrong and ill presented proofs (some fake ones) there is an interesting one which I don't have the knowledge to debunk.  In the video, at the half hour mark () we are shown an amateur rocket flying up straight into the sky, then the camera switches to the one strapped on the rocket, which is spinning while flying.  I can understand that the rocket flies straight instead of bending as space shuttles do (they have to in order to enter orbit) and the video cuts too early to start seeing the normal bending effect due to the earth rotation.  I can also understand that the rocket rolls in order to gain stability, but what I cannot understand is why the rocket STOPS rolling at some point. The video claims that it hit something and also stopped progressing, which is not really believable. What I believe is that it ran out of fuel and both the forward and the roll propulsion just stopped and the atmosphere simply acted as a brake (regardless of the claim that "rockets have no brake").  Is there any other possible explanation? Is my understanding of the roll correct? At one point I thought that maybe the rocket did not have a propulsion system that induced the roll but only used the fins to roll, but that will make explaining the abrupt stop harder.

Why does a rocket spin during launching?


Is this a new feature? I discovered today that you can edit the text accompanying the "Possible Duplicate" box. This should be prevented unless you are a Moderator. It could result in the loss of key linked information. See this  (I rolled back the change). Doesn't seem right to me since you have to VOTE on what possible duplicates to include with the question. By editing, you are taking away that vote.

I've noticed the following happen a few times:   A user posts a question. The question is closed as a duplicate and the usual "Possible Duplicate" links are added at the top. The user promptly removes the duplicate links, even though the question is still closed as a duplicate. (excessive use of list items =P)   Now, I could understand this behavior if there was some dispute about whether or not the question was a duplicate, and the OP were to remove the links and post reasons why they disagree with the closing. However, I've noticed this happening without any attempt to defend the question (such as ).  In my opinion, no one should be allowed to remove the "Possible Duplicate" links as long as the question is still closed as a duplicate. The links should remain for the benefit of the community, so they can navigate to the duplicate questions and either post answers there or read them over and judge if the closing was actually fair. Once/if the question is reopened the links could be edited out if one so chooses.  I guess this is part discussion, part feature request:  Could the "Possible Duplicate" links remain un-editable for as long as the question is still closed?


So I ask to prove that the function $f(x):=\begin{cases}e^{-\frac{1}x},\,\text{if}\, x>0\\0\,\text{otherwise}\end{cases}$ is of class $C^\infty$. Clearly $f\in C^0$ since $\lim_{x\rightarrow 0}f(x)=0$ and since in $(-\infty,0)\cup(0,+\infty)$ the function $f$ agrees with functions of class $C^\infty$ so to prove the statement we have to prove that $f^n(0)=0$ but unfortunately I can't prove this. So could someone help me, please?

The Wikipedia page () proves that $$f(x) = \begin{cases}  \exp(-1/x),  & \mbox{if }x>0 \\ 0, & \mbox{if }x\le0 \end{cases}$$ is a non-analytic smooth function. But I don't understand why the fact that "the Taylor series of $f$ at the origin converges everywhere [where does "everywhere" mean here?] to $0$" implies the Taylor series converges to $0$ when $x>0$? Can someone explain this in greater detail? I guess there should be a gap in my understanding of power series.


Recently I have been reading a book called Market Wizards. The author talked about his own experience:      "I had done a very detailed analysis of the cotton market throughout the entire post-   World War П period. I discovered that because of a variety of government support programs, only two seasons since 1953 could truly be termed free markets [markets in which prices were determined by supply and demand rather than the prevailing government program]. I correctly concluded that only these two seasons could be used in forecasting prices. Unfortunately, I failed to   reach the more significant conclusion that existing data were insufficient to permit a meaningful market analysis. Based on a comparison with these two seasons, I inferred that cotton prices, which were then trading at 25 cents per pound, would move higher, but peak around 32-33 cents.The initial part of the forecast proved correct as cotton prices edged higher over a period of months. Then the advance accelerated and cotton jumped from 28 to 31 cents in a single week. This latest rally was attributed to some news I considered rather unimportant. "Close enough to my projected top," I thought, and I decided to go short. Thereafter, the market moved slightly higher and then quickly broke back to the 29-cent level. This seemed perfectly natural to me, as I expected markets to conform to my analysis. My profits and elation were short-lived, however, as cotton prices soon   rebounded to new highs and then moved unrelentingly higher: 32 cents, 33 cents, 34 cents, 35 cents. Finally, with my account equity wiped out, I was forced to liquidate the position ......"   My question is why the author's account equity was wiped out. In my opinion, he went short with a price higher than 25 cents per pound, which means he earned money, no matter how high the price moved afterwards.

I recently read this article about a day trader that lost $100,000:     Please explain this, because I can not understand how this "trader" lost so much money.  He says he sold 8400 shares at 2 dollars... that's $16,800 USD; how could he be in debt to E-Trade for $100,000 USD?  Did he buy this 8400 shares with just his money, or in margin account (50%/50%) from the Etrade money?


Visualforce has initialization of visualforce components in apex. For example MyCustomComponent component: ApexPages.Component customComponent = new Component.c.MyCustomComponent();  Is that possible to pass dynamically the component name instead of using Component.c.MyCustomComponent? I want to build a method that can get component name dynamically from the custom setting and initialize new ApexPages.Component.

I am trying to use Apex to control which component to show inside a <apex:dynamicComponent> but I don't want to hardcode the component names. So my question is, how can I reference the component by name dynamically in Apex? Is there a map/list somewhere that returns all components that I can then iterate over?


I get function parameters list in this way:  def foo(a, b, c):     # do something     return  print inspect.getargspec(foo)   Output is:  ArgSpec(args=['a', 'b', 'c'], varargs=None, keywords=None, defaults=None)   But if the target function has a decorator, the results will be changed:  def dec_func(func):     def wrapper(*args):         # do something         return func(*args)     return wrapper  @dec_func def foo(a, b, c):     # do something     return  print inspect.getargspec(foo)   Now the output is:  ArgSpec(args=[], varargs='args', keywords=None, defaults=None)   We can see, the info is about the wrapper in dec_func, not foo I want.  Any idea about how to still get info of foo?   Btw, why I ask it: Suppose I have a function A, and in some other codes I get the parameter list of function A to check/do something. This system will be broken if I add decorators to A, e.g. @numba.jit or @profile...   The solution is found:   from decorator import decorator  @decorator def dec_func(func):     def wrapper(*args):         # do something         return func(*args)     return wrapper  @dec_func def foo(a, b, c):     # do something     return  print inspect.getargspec(foo)   The output is:  ArgSpec(args=['a', 'b', 'c'], varargs=None, keywords=None, defaults=None)

Suppose I have written a decorator that does something very generic. For example, it might convert all arguments to a specific type, perform logging, implement memoization, etc.  Here is an example:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z  >>> funny_function("3", 4.0, z="5") 22   Everything well so far. There is one problem, however. The decorated function does not retain the documentation of the original function:  >>> help(funny_function) Help on function g in module __main__:  g(*args, **kwargs)   Fortunately, there is a workaround:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z   This time, the function name and documentation are correct:  >>> help(funny_function) Help on function funny_function in module __main__:  funny_function(*args, **kwargs)     Computes x*y + 2*z   But there is still a problem: the function signature is wrong. The information "*args, **kwargs" is next to useless.  What to do? I can think of two simple but flawed workarounds:  1 -- Include the correct signature in the docstring:  def funny_function(x, y, z=3):     """funny_function(x, y, z=3) -- computes x*y + 2*z"""     return x*y + 2*z   This is bad because of the duplication. The signature will still not be shown properly in automatically generated documentation. It's easy to update the function and forget about changing the docstring, or to make a typo. [And yes, I'm aware of the fact that the docstring already duplicates the function body. Please ignore this; funny_function is just a random example.]  2 -- Not use a decorator, or use a special-purpose decorator for every specific signature:  def funny_functions_decorator(f):     def g(x, y, z=3):         return f(int(x), int(y), z=int(z))     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g   This works fine for a set of functions that have identical signature, but it's useless in general. As I said in the beginning, I want to be able to use decorators entirely generically.  I'm looking for a solution that is fully general, and automatic.  So the question is: is there a way to edit the decorated function signature after it has been created?  Otherwise, can I write a decorator that extracts the function signature and uses that information instead of "*kwargs, **kwargs" when constructing the decorated function? How do I extract that information? How should I construct the decorated function -- with exec?  Any other approaches?


My wife and I share the same PC, we only use two different users for easier switching between each other's task without interrupting anything. We're not concerned about privacy nor security.  Whatever solution you think you know, I've already tried, nothing that could work on Ubuntu versions up to 12.10, doesn't work anymore on 13.04, that's why I'm asking something that seems to be answered so many times in the past.  I've already disabled the "lock screen" for both users, and this is not enough.  Please tell me what could be a good solution for this. Thanks!

If I attempt to change my password to nothing by opening "User Accounts", the "Change" button remains greyed out:    How do I change my password to be empty? I know you can set Ubuntu to automatically log you in, but I want my password to be empty, I never want to type in a password to authenticate myself as that user.  I know that there are reasons why this might not be a good idea, but I want to know if it is even possible. I'm using Ubuntu 12.10.


Should I write 'girls school' or ' girls' school' with an apostrophe? Which one is correct?

I am firmly convinced he is innocent and his accusation is the result of the police conspiracy.     I am firmly convinced he is innocent and his accusation is the result of the police's conspiracy.    Which sentence do you think is a better choice?


At first, I had Ubuntu 14.04 LTS alongside with Windows 7 Professional. I was on windows 7 and I upgraded to windows 10. During the installation, It had to restart. What happened when I restarted was that it said GRUB Loading.  Error: no such partition.  Entering rescue mode...  grub rescue> I do not know any of the commands. Can someone help me please

I was dual-booting Windows 7 and Linux Ubuntu on my desktop, and today is the day they gave out free Windows 10 upgrades.  How exciting!  I got the update, and it was installing, and I left to go take a 30 minute nap.  However, when I came back to my computer, it led me to the grub rescue prompt.  error: no such partition. Entering rescue mode... grub rescue>   I get the following when I type ls:  grub rescue> ls (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)   After a quick look through of people who encountered the grub rescue prompt, I typed set and got the following  grub rescue> set cmdpath=(hd0) prefix=(hd0,msdos6)/boot/grub root=hd0,msdos6   I was still kind of lost after finding that certain commands like normal didn't work, and then I found a video tutorial where you boot from a Linux image cd and run some commands on the terminal.  Luckily, I had my CD with me, and booted from there.  When I typed sudo fdisk -l into the terminal however, this is what I got:  ubuntu@ubuntu:~$ sudo fdisk -l  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xc03ede74     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848  1547022335   773407744    7  HPFS/NTFS/exFAT /dev/sda3      1547022336  1547943935      460800   27  Hidden NTFS WinRE /dev/sda4      1547945982  1953521663   202787841    f  W95 Ext'd (LBA) /dev/sda5      1915731968  1953521663    18894848    7  HPFS/NTFS/exFAT   Says here none of my devices has the Linux system in them!  And I couldn't follow the video tutorial any more than that...  I teased my brain a little and determined that sda2 contained my Windows system (since I remember my C: drive has around 700-ish GB of space).  After thinking a little bit more, I remember assigning around 200-ish GB of my hard disk space to something that's Ubuntu related when installing Ubuntu.  I don't exactly remember which, but I think it was basically Ubuntu "hard disk space", and it didn't have any boot files in them.  I assigned two other things for linux, but they were very small in size (not breaking the 1 GB mark yet).  So, can anyone here help me out get my upgrade back on track?  I won't mind if I end up having to completely remove the partitions that have Linux in them.


For something to be a blackhole, it must have gravity and the radius must be smaller than the schwarzschild radius for its mass.  -Electrons have gravity  -Electron are theoretically believed to be infinitely small points  Since it has gravity it is capable of being a black hole. Since its radius is infinitely small, it must have a schwarzschild radius and thus be a black hole.

Imagine a black hole that is fast-approaching its final exponential throws of Hawking evaporation. Presumably, at all points in this end process there will remain a region that identifiably remains "the black hole" until the the very end, as opposed to huge swarm of fundamental particles that is being radiated out from it. As the mass of the black hole descends to that of individual particles, it would seem entirely feasible that the very last fermionic Hawking radiation event available to the almost-deceased black hole could leave it with an unbalanced charge, e.g. -1, and an unbalanced spin, say 1/2. It would also have some kind of mass of course, but that aspect of the final residue could be fine-tuned to any specific value by photon emissions of arbitrary frequencies. After photon emission mass trimming, the resulting black hole residuum would reach a point where it is no longer be able to evaporate into any known particle, because there is no longer any lower-mass option available to it for removing the -1 charge and 1/2 spin. The black hole residuum will at that point be stuck, so to speak, stuck with exact charge, spin, and mass features of an electron. And so my question: Is it an electron? And if so, by equivalence, is every electrons in the universe really just a particular type of black hole that cannot evaporate any further due to the constraints of charge and spin conservation? And if so, why are charge and spin so uniquely combined in such black hole remnants, so that e.g. a remnant of -1 charge and zero spin is not permitted, at least not commonly, and the mass is forced to a very specific associated level? Is there anything in the current understanding of general relativity that would explain such a curious set of restrictions on evaporation? The full generalization of this idea would of course be that all forms of black hole evaporation are ultimately constrained in ways that correspond exactly to the Standard Model, with free fundamental particles like electrons being the only stable end states of the evaporation process. The proton would be a fascinating example of an evaporation that remains incomplete in a more profound way, with the three quarks remaining incapable of isolated existence within spacetime. The strong force, from that perspective, would in some odd sense have to be a curious unbalanced remnant of those same deeper constraints on the overall gravitational evaporation process. This may all be tautological, too! That is, since Hawking radiation is guided by the particles possible, the constraints I just mentioned may be built-in and thus entirely trivial in nature. However, something deeper in the way they work together would seem... plausible, at least? If an electron is an unbalanced black hole, then the particles given off would also be black holes, and the overall process would be not one of just particle emission, but of how black holes split at low masses. Splitting with constraints imposed by the structure of spacetime itself would be a rather different way of looking at black hole evaporation, I suspect. (final note: This is just a passing thought that I've mulled over now and then through the years. Asking it was inspired by  by Ben Crowell. I should add that I doubt very seriously that that my wild speculations above have anything to do with Wheeler's concept of geons, though.)


How can I determine if $x^2+y^2 = z$ has infinitely many rational solutions $(x,y)$ based on the value of $z\in \Bbb{Q}$.  I understand that $a^2+b^2=1$ has infinitely many rational solutions.  As does $a^2+b^2=2$.  However, $a^2+b^2=3$ has no rational solutions.  When $z$ is an integer I know how to determine if it has rational solutions.  However when $z$ is not an integer it is not clear when it has rational solutions.  For example, it is not immediately clear to me if the equation $$x^2+y^2 = \frac 43$$ has infinitely many rational solutions.

Which rational numbers can be written as the sum of two rational squares?  That is, for which rational numbers $a$, are there rational numbers $x$ and $y$ such that $a = x^2 + y^2$.  It is a famous theorem that if an integer can be written as the sum of two rational squares then it can be written as the sum of two integral squares, and then the solution is the famous one by Fermat, but I didn't find anything about the general case.


I am learning measure theory and i know there are some reason for introducing measure theory. I just want to know the reason behind its invention.

Is the motivation behind the introduction of measure theory the Lebesgue integral? In order to evaluate such an integral we need the length of each of the horizontal strip of width $h$. I have a question here. Why do we need such a general concept of measure? Length is a kind of measure, but why did Lebesgue think of so general a concept of "measure" when he just needed the length to evaluate his integrals? Is there any other motivation behind this ?


There's an old story, probably from Dozois's yearly anthology (pre-2000), about a human who plays an alien game. IIRC, it plays like Go and the pieces are red and blue. At the end of the story, the human becomes a master from a revelation from gameplay. "Blue is red and red is blue", or something along those lines. Haven't found it, hoping someone might know the tale.  Thank you

I originally read this story well over 20 years ago, in a collection that I can no longer recall any details of. The story in question centered in some way on a board game that I somehow recall having the impression is something like Go, except that it's played with bicolored pieces like Reversi. There was a passage about a game being played by a master, and the move that the master made was to play the piece as the opponent's color, thus showing his status as a grand master because he gave as his reason for doing so something to the effect of "I could not spoil that perfect pattern".  I do also recall that it was a galactic society, not strictly based on Earth. It was classed as SF rather than fantasy, and was by an author whose name I'd recognize, but can't recall at the moment.  What story am I thinking of, and is it available in an in-print form?


I study physics and in this year I have to formule and write my bachelor thesis. I have a lot of ideas but some of them looks more interesting for me.   A few days ago I thought about situations in physics where Riemman Integral is not sufficient and my idea is to write about parts of physics in which Lebesgue Integral is needed. Unfortunately, in my courses during my studies, no one shows me situations in physics where Riemman integral is not enough so I ask you, Maybe someone of you knows examples in physics where Lebesgue Integral is essential ? After reading about Lebesgue integral, I tried to find informations about measure theory in physics but I didn't find nothing interesting.

I asked this question for many people/professors without getting a sufficient answer, why in QM Lebesgue spaces of second degree are assumed to be the one that corresponds to the Hilbert vector space of state functions, from where this arises? and why 2-order space that assumes the following inner product:  $\langle\phi|\psi\rangle =\int\phi^{*}\psi\,dx$  While there is many ways to define the inner product.  In Physics books, this always assumed as given, never explains it, also I tried to read some abstract math books on this things, and found some concepts like "Metric weight" that will be minimized in such spaces, even so I don't really understand what is behind that, so why $L_2$? what special about them? Who and how physicists understood that those are the one we need to use?


I was searching for a precise way to multiply two floating point numbers in Java, and I read that I should use BigDecimal, however it doesn't work as expected. What am I doing wrong?  My code:     BigDecimal a = new BigDecimal(3.53); BigDecimal b = new BigDecimal(3.59); BigDecimal c = a.multiply(b);  System.out.println(c);   Result:  12.672699999999998796873512674210388041622697702955394242845497954075284496866515837609767913818359375   Expected result:  12.6727

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I'm trying to convert ag normal maps (alpha is red channel, green is green channel, blue channel derived from a and g through some formula) to standard normal map (tangent space). Nvidia's Windows Texture Viewer gives this formula "Normal map AG [dR = sA; dG = sG; dB = sqrt (1.0 - dRdR - dGdG); dA = 255]", but I'm more artistically declined than math or programming and failed to recreate this with shader nodes. thanks in advance.

I have a handful of these strange normal maps I need to use in my scene that store X in the Alpha channel, Y in the green channel, and require you to calculate Z with the following formula:  Z = sqrt(1 - (X * X + Y * Y))  Red is always 100% and Blue is 0%, but these channels are not used.  Despite figuring this much out, I haven't been able to produce a node setup that can correctly convert this into the desired purpley tangent space normal map.  Any ideas?


Let a ∈ Z and suppose that the congruence $x ^ 2 ≡ a \mod p$ can be solved (in x ∈ Z) for all primes p except possibly finitely many, then a is a square in Z (i.e. a = b 2 for some b ∈ Z).  I tried solving the contrapositive and look at two cases:  $a = 2$ and $a \neq 2$.  For the first case i have proven that there are infinitly many primes that have a negative legendre symbol. So that has been proven.   I get stuck at the second case, i got a hint but i don't see how it can help me it says:  let a = $2^eq_1.....q_n$ and $L = \{l_1.....l_k\}$ be a set with primes that are odd and distinct of $q_i \forall i$. Let $s$ be a quadratic non-residue $\pmod{q_n}$. Argue that there exist a $b \in \mathbb{Z}$ such that:  $b \equiv 1 \pmod{l_j} \space \forall l_j \in L$  $b \equiv 1 \pmod{q_i} \space i \in \{1,....,n-1\}$  $b \equiv 1 \pmod{8}$  $b \equiv s \pmod{q_n} \forall i$  and prove that $\left(\frac{a}{b}\right) = -1$. which also worked.  The next hint was proving that there exist a $p|b$ with $\left(\frac{a}{p}\right)$ and $p \notin \{2,l_1,.....,l_k\}$  I think that such $b$ exist by the chinese remainder theorem, i dont see how the last statement is true and how it helps me to prove this equality.......  Kees

If $n\in\Bbb Z^+$ is not a square, prove exist infinitely many primes $p$ such that $\left(\frac{n}{p}\right)=-1$.   Note that if $p\nmid n$ and $n=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k}$, then $\left(\frac{n}{p}\right)=\left(\frac{p_1}{p}\right)^{\alpha_1}\left(\frac{p_2}{p}\right)^{\alpha_2}\cdots \left(\frac{p_k}{p}\right)^{\alpha_k}$  $=\left(\frac{p_1}{p}\right)^{\alpha_1\pmod {2}}\left(\frac{p_2}{p}\right)^{\alpha_2\pmod{2}}\cdots \left(\frac{p_k}{p}\right)^{\alpha_k\pmod{2}}$  So i.e. prove  exist infinitely many primes $p$ such that $\left(\frac{q_1}{p}\right)\left(\frac{q_2}{p}\right)\cdots \left(\frac{q_n}{p}\right)=-1$, no matter what primes $q_i$ you take.


I'm sorry, I know others have asked similar questions to this but I read those answers and still couldn't figure this out.  I need to make  Whatever    StudentID   SchoolID    Types     qw          1           A           c     we          2           B           a     we          2           B           r     ty          3           C           f     ty          3           C           t     yu          4           D           k   into  Whatever    StudentID   SchoolID    Types     qw          1           A           c     we          2           B           ar    -- concat ty          3           C           ft    -- concat yu          4           D           k   Thanks for your help. I tried using xml paths but couldn't figure it out.

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


this is the first time I have started learning camera tracking. I know there's an easy way to track but I'm doing it the manual way; by placing trackers. After giving all the camera details and stuff, when I start solving the camera tracks, the error comes out to be 10 and I can't seem to reduce it no matter what I do.  Please help me!

Whenever I do camera tracking in Blender the reconstruction is always zooming out or not on the axis. I have a great quality camera, but the end results of the camera tracking always has the model sliding. If you have a solution please tell me.


Yesterday I was googling how to merge two files and came across an awk snippet.  I need a simple merge, so sort -u is not the way to go, but the code below works.  Could some one please explain what this awk code does?  awk '!a[$0]++' file_1 file_2

This one-liner removes duplicate lines from text input without pre-sorting.  For example:  $ cat >f q w e w r $ awk '!a[$0]++' <f q w e r $    The original code I have found on the internets read:  awk '!_[$0]++'  This was even more perplexing to me as I took _ to have a special meaning in awk, like in Perl, but it turned out to be just a name of an array.  Now, I understand the logic behind the one-liner:  each input line is used as a key in a hash array, thus, upon completion, the hash contains unique lines in the order of arrival.  What I would like to learn is how exactly this notation is interpreted by awk. E.g. what the bang sign (!) means and the other elements of this code snippet.  How does it work?


I am working on a Web application, and I was looking for a reasonable implementation for one of its backend services. I wanted to ask the community if they have done something similar and if so how does their implementation work?  This is a subjective and possibly open-ended question, hence Stack Overflow is not the right place to ask this question.  Is there a Stack Exchange community in which one can ask suchlike questions?

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.


It's a somewhat theoretical question. In special relativity, The energy of a photon is given by $E = pc$. But, my argument is that, since photons have no mass, how can they have a momentum $p$? The energy $E$ turns out to be 0 always. So, why does this equation hold?

As an explanation of why a large gravitational field (such as a black hole) can bend light, I have heard that light has momentum. This is given as a solution to the problem of only massive objects being affected by gravity. However, momentum is the product of mass and velocity, so, by this definition, massless photons cannot have momentum.  How can photons have momentum?   How is this momentum defined (equations)?


Suppose, $f:(0,1)\to\Re_+$ and $f\in L((0,1))$, therefore measurable. Is the following implication correct?  $$\int_{(0,1)}f(x)\,d\mu=0\overset{?}{\implies} f(x)=0$$  Intuitively, I feel like the conclusion should hold because $f$ is a non negative function, but is there anyway of showing this?

I have been thinking on and off about a problem for some time now. It is inspired by an exam problem which I solved but I wanted to find an alternative solution. The object was to prove that some sequence of functions converges weakly to zero in $L^2$.   I managed to show (with some help) that the limit $f$ (of a subsequence) satisfies $\int_0^x f \ dm=0$ for all $x>0 $. From this I want to conclude that $f=0$ a.e. I can do this with the fundamental theorem of calculus in its Lebesgue version but there ought to be a more elementary proof.  Can someone here help me out?


Running Ubuntu 12.04 - looking at the PCmanFM  it says the latest version is 1.2.3 (from 14 Oct. 2014) however my version in Synaptic says it is 0.9.10-0ubuntu2 with no option to upgrade.   I have also tried installing with   sudo apt-get install pcmanfm   and got the message:      pcmanfm is already the newest version.   Could someone please explain this?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


have something like that: <form name="cform" id="cform" method="post" enctype="multipart/form-data" action="{$sitepath}/comment.php"> <input type="file" class="custom-file-upload" name="image" id="exampleFormControlFile1"/>  {#add_picture#} <input type="text" name="url_add" id="test_{$firstsub.revid}" class="form-control pull-right"  placeholder="{#url_add#}" style="display:none;"/> <textarea name="text1" rows="3" cols="50" class="form-control" id="thirdfield"></textarea>

 <input type="submit" class="btn btn-info" name="submit" value="{#reply#}" /> </form>  Works ok/images are uploading normaly by comment.php. Below is the same form but using jquery post. Works ok but javascript dosen't see the images... <form name="cform0" id="cform0" method="post" enctype="multipart/form-data"> <input type="file" class="custom-file-upload" name="image" id="exampleFormControlFile1"/>  {#add_picture#} <textarea name="text1" rows="3" cols="50"  class="form-control"></textarea>

 <input type="submit" id="submit_comment" class="btn btn-primary" name="submit" value="{#comment#}"> </form>        Is there any way to add to the script something that my comment.php will see the image?

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


If you choose an answer to this question at random, what is the chance you will be correct?  A) $25\%$  B) $50\%$  C) $60\%$  D) $25\%$

I found this math "problem" on the internet, and I'm wondering if it has an answer:     Question: If you choose an answer to this question at random, what is the probability that you will be correct?      a. $25\%$      b. $50\%$      c. $0\%$      d. $25\%$   Does this question have a correct answer?


Can I install bionic beaver in desktop with 2gb ram with Intel i3 6th gen processor? I am currently using Windows 7 in it

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I cannot login to my Arch Linux machine because the tty keeps getting filled with ^@ characters, and therefore I cannot enter my username or password. What's wrong?

I recently noticed some weird behavior on my GNU/Linux machine. I've been trying to narrow it down but I am unsure where to go next. My setup uses the following:   i3 gdm arch systemd grub2 pulseaudio 4.13.3-1-ARCH   Here is how it manifests iself:   when trying to resize panes in i3 (alt+right click and hold) the action will be randomly canceled (happens on key presses) alt+dragging windows meets a similar fate booting to tty periodically adds ^@s to the login prompt, I'd estimate them to be ~0.5s intervals in tty I can see those being passed to vim when I open the command bar (:) using a pager like less in tty mode and searching with / will result in  (?) being spammed htop's search (/) is instantly canceled by the periodic keypress  holding a key and trying to have it be repeated (such as holding space) will stop the other occurrences from happening (e.g. only one or two happen) any tooltip (such as chrome tooltips) get instantly closed because of key presses   Here is what I have tried:   tried switching DE temporarily (gnome, cinnamon, xfce) tried killing programs one by one until I was left with a tty session and essentially systemd services + pulseaudio tried booting on an arch livecd - problem does not manifest  overriding grub2 with init=/bin/bash drops me into a shell where the problem does not manifest I have tried pressing all keys to verify it wasn't a hardware problem, however previous steps point to it not being hardware I have made a diff of dmesg, from the init=/bin/bash and the regular boot - the main difference seems to be systemd being started in the regular boot Made a diff of lsmod from init=/bin/bash and regular boot, tried to rmmod modules that seemed related   My system is up to date, I'm not quite sure what other steps I can do to track this down. Any other debugging tips?


While I was searching for Facebook's developer policy questions on Stack Exchange, I found  .  After seeing that, I'm asking myself: Where would be the good place to ask a question about the  on Stack Exchange?

A question regarding policy matters for Facebook  (and has since been removed).  At first glance, this question seems to be off-topic for Stack Overflow. However, reading through the information the OP refers to, users are indeed told to get written permission, which obviously leads one to want to contact Facebook.   When going to the  with regards to policies it states:     For discussions or inquiries about technical issues, policy matters, or documentation, please go to .   Emphasis is mine.   So my question is, are policy matters with regards to Facebook indeed on topic for the (Facebook) Stack Overflow? Or should this phrase perhaps be altered/clarified?  Update:  From the responses so far it seems quite clear (unsurprisingly) that such topics are indeed off-topic for Stack Overflow and as such the erroneous instructions on the mentioned Facebook page should be modified.   As a result two things have happened so far (see the comments as well):   A  by @phwd on Facebook's Developer site.  (Stack Exchange's Chief of Staff) responded with the following (encouraging) message:     Thanks for bringing this issue up - we'll reach out to the Facebook team and have them change the page to reflect this.    Update 2:  It seems that a change has been made. The previously offending line now reads:     For discussions about technical issues, please go to Facebook Stack Overflow.   Great to see that's done.


Ok, so I am looking for ways that aren't time consuming (within reason), and not too terribly tedious. I have all the DLC, and I am willing to spend 3-4 hours, give or take. Thank you!

I play as an archer, which means sneaking and killing foes off at long range. Problem is, once a creature gets too close to me, I am in a world of troubles. (A random dragon encounter is fair game if I can snipe it off, but a random bear encounter is the thing I fear mostly. Three strikes of such a vicious beast and I drop dead.)  At short range, I use a one-hand sword with shield, but I do not want to put much perks into those skills, as I want to be a sneaky archer first.  Which leaves Light Armor. But to get certain perks I need some skill points, e.g., 30 points are required for the "Custom Fit"- and 40 for "Agile Defender 2/5"-perk. Yet I have no clue how to accumulate those points.  Many enemies won't even see me, so I seldom will be hit. Getting hits means getting skills point. Letting some enemies come close to me and let me hit me on purpose sometimes helps, but since I cannot stand much damage I mostly die erasing any hard earned process.  So is there a teacher for Light Armor like there is for other skills? And if not, how should I go on to improve the Light Armor skill?


This is my code, for example:  <?php      $arr = array(           array("url" => "http://google.com", "priority" => 2),           array("url" => "http://facebook.com", "priority" => 2),           array("url" => "http://youtube.com", "priority" => 2),           array("url" => "http://stackoverflow.com", "priority" => 1),           array("url" => "http://kickass.to", "priority" => 1),           array("url" => "http://twitter.com", "priority" => 1),           array("url" => "http://example.com", "priority" => 1),      ); ?>   I want the system to randomly display one of the url's on each refresh. I want it to display the higher priority more times than the lower. I need it for banner system, and the ones with higher priority paying more, so they should be seen more.  How to do it?

I know how to generate a random number in PHP but lets say I want a random number between 1-10 but I want more 3,4,5's then 8,9,10's. How is this possible? I would post what I have tried but honestly, I don't even know where to start.


How to apply a modifier (for example "subdivision surface"), only to the part of an object, not to a entire object?

How can I apply a modifier only to a part of an object? I want to model a goblet with a pedestal, and if I add a subsurf, the pedestal, of course, gets an unwanted round shape. How can I avoid that? I have tried Googling it, but, to my surprise, found nothing.


I have vector layer which looks like this:  It is result of raster classification, vectorization and finally Minimum Bounding Box Geometry. What I need is, that maximum "height" of one polygon is for example 20 cm. It means the small rectangles stay the same as they are smaller than this threshold, but the "long ones" divide into several smaller polygons. After I will create centroids and count number of these polygons in one row, so first I need to have the small polygon segments.

I have a shapefile of thousands of polygon features, that i would like to break up into smaller pieces (i.e. break a square into 8 equal pieces). I have read all over these boards for the right solution and haven't found one yet unfortunately. I've tried parcel editor but that only allows you to manually edit one feature at a time, and I've tried fishnet but that doesn't run through each individual feature it just processes across the entire extent of the shapefile. I have the full license for ArcGIS so all options are game. Ultimately I would like to be able to split this initial shapefile of features into a specified amount of equal width slots that each would be their own feature in the resulting shapefile.  Any thoughts?


How change background color with conditionally.  HTML:  <label class="control-label bold" id="lbstatus"></label>   JS:  if ($("#lbstatus").text() == "progress") {   //background color label change }

Anyone know a simple method to swap the background color of a webpage using JavaScript?


I have a simple image of a dragonfly that I downloaded from Adobe stock. I would like to place this image on another image of a pond, but the dragonfly image has a white background.   Some tutorial videos I have found online provide following steps to make a background transparent.  - Copy background layer of image with white background - select this new layer - use Magic Wand tool to select white background - hit Delete  I have done this and it does not work. I still have a white background on the dragonfly image.   I need to learn how to get these white backgrounds off of images. It comes up over and over in my work.   Any help appreciated, thanks.

I'm having issues with artwork I would like to use for my website. Unfortunately, the artwork I have came included with a white background behind it. I realize I can manually remove the white background using tools like the Magic Wand in Photoshop, but I've found that the edges of the artwork lose their sharpness. Is there anyway in Photoshop to just save an image out where the white background is picked up as the part of the artwork that is suppose to be transparent?


The De Broglie Wavelength is the very evidence of dual nature of particles ( specially photons). But if we use the equation lamda =h/mv, and then put the values of the rest mass of photon (=0) or the mass in motion (=1/0) , the equation becomes invalid.  Explain

As an explanation of why a large gravitational field (such as a black hole) can bend light, I have heard that light has momentum. This is given as a solution to the problem of only massive objects being affected by gravity. However, momentum is the product of mass and velocity, so, by this definition, massless photons cannot have momentum.  How can photons have momentum?   How is this momentum defined (equations)?


I bought a new mid-2014 15" Macbook Pro, and noticed some interesting temperatures in iStats. The idle temperature seems to be around 50 degrees celcius with an ambient temperature of approximately 30 degrees. However, whenever I play games, particularly DOTA 2 in Bootcamp, the temperature shoots up and sustains at around 90 degrees celcius throughout the whole gaming session. Is this normal? Or do I have a defective Macbook?  I guess a question I should also be asking is how much will the life of my MacBook be lowered after constant gaming (i.e. ~10 hours/week of cpu temps at 90 degrees celsius)?  Thanks!

I have a 2010 MacBook Pro MC371 (Core i5, GeForce 320M, 4Gb RAM).   When I launch a game either new one (i.e. Starcraft 2) or rather old (Unreal Tournament 2004, bootcamped) my MacBook gets rather warm, even hot in the top left corner, around the place where magsafe charger is plugged in. The temperature is more than 40C. The fact that confuses me is that this warming occures even when I play old games.  Is that OK?


If somebody is a US Resident, owns a Semi auto Glock. Has local Permit to carry a concealed weapon. What if this person wanted to fly with this hand gun internationally with him for his personal safety. The destination is Dhaka,Bangladesh and the layover is in Dubai and Kolkata, India.   page helps but does not provide all the information.  Also, since I will be flying locally within the US to take the international flight, is it possible to fly in Delta (public airlines) with the gun  ?

I was wondering if you have a concealed carry license (U.S.), would that license apply in other countries? Or would you be breaking the other countries' laws? I also know some countries have very strict gun laws, and do not allow guns in their country. Would they apply to me as a non-citizen?  I'd like to take a  (small, low caliber revolver) for personal protection to some of the more dangerous countries I want to visit.


When I copy a file over my network using windows (in this case 7), it seems to use all available bandwidth which means that I can't do anything else on the network while the transfer is in progress. How can I limit the amount of bandwidth that windows uses so that I can keep using my network during file transfers?

Because of traffic reasons I am not able to transfer big files inside my network, unfortunatelly, I need to do such thing everyday.   I usually transfer these files by coping and pasting from my computer to another network drive(\targetIP\targetpath), just like this:    TIs there any tool, Windows configuration or some technique to limit file speed transfer to 10Mb/s?  PS: I don't want to use FTP or another protocol.


After installing Ubuntu 14.04LTS, I was greeted with a screen that I was afraid I would never see again after closing it, so  I took a picture of it with a camera:    The question is:  How can I display this screen again? (the question is not about finding information about the shortcuts).  EDIT: I emphasize that the question is not what the shortcuts are. What if I want to give my computer to someone else and I want her to be greeted by Ubuntu as if it were the first time?  Of course, since it is so easy to call this screen (according to the answer already posted), then I don't see a point in wanting to have it at the first startup; but still, the question is to get this screen, not the shortcuts.

In Unity, are there any pre-defined shortcuts, e.g. to open the dash or unhide the launcher?


I want a long narrow horizontal colored rectangle, something more like a thick line, but I cannot get the height below a certain amount. The best I can come up with is:  \documentclass[11pt]{book} \usepackage{color} \begin{document} xxxxx\colorbox{red}{% \phantom{------------------} }% xxxxx  \end{document}   where the number of - controls the length but I would like at most half the height of:    I have tried various solutions proposed for questions about height of boxes but was not able to find anything that did it. Did I miss anything?

I'm trying to "highlight" two parts of a sentence by using a \colorbox like so:  \colorbox{red}{This is} \colorbox{blue}{a great sentence.}   The problem is that in the second part the height colorbox is a bit bigger, because it contains a g which extends below the baseline. As a result, the two colorboxes do not align at the bottom which looks suboptimal.  How would I make the two boxes line up?


Can I use butter in a molasses cookie recipe instead of margarine I

I know that Margarine / Shortening are usually softer than butter, but what other differences are there? Can I just melt the butter and call it good or will this effect my final Product? I have seen Margarine / Shortening a lot in cookies, but I am looking for a general answer.


Is this logo okay to put on a t-shirt and sell? If not, what can I do so I can? Thanks

I'm designing a logo inspired by the .   My logo (inside the green zone) has nothing to do with the "dinosaur" logo of Mozilla. So the question is about the frame and the arrangement of the letters (IJK in my case).  Is it plagiarism if my logo looks similar to an existing one?


I've got a question. Why does my Oracle Express Edition requires double-quoted table names:  Not working select:  select * from table   Working select:  select * from "table"    Thanks for answers and help with editing my post. I was confused how to name this case.

I thought that the quotation mark (") was simply a type of grouping marker but I'm debugging some NHibernate code and notice that while  SELECT * FROM site WHERE site_id = 3;   Works fine  SELECT * FROM "site" WHERE site_id = 3;   fails with a table or view does not exist error.  What gives?


I am in the process of creating a reply ticket system, and came across this. Since I'm usingmysqli_real_escape_string, it's adding backslashes to the reply text. Since I'm using prepared statements and bind_param, is it safe to remove the mysqli escape string? or will that open it up for SQL injection? Thanks!!

Let's say I have code like this:  $dbh = new PDO("blahblah");  $stmt = $dbh->prepare('SELECT * FROM users where username = :username'); $stmt->execute( array(':username' => $_REQUEST['username']) );   The PDO documentation says:     The parameters to prepared statements don't need to be quoted; the driver handles it for you.   Is that truly all I need to do to avoid SQL injections?  Is it really that easy?  You can assume MySQL if it makes a difference.  Also, I'm really only curious about the use of prepared statements against SQL injection.  In this context, I don't care about XSS or other possible vulnerabilities.


is a tier 3 skill in Axton / the Commando's Survival skill tree. It is described as:     Your Sabre Turret projects a Protective Shield. The Shield attempts to block enemy ranged attacks, but lets friendly ranged attacks pass through. Enemy movement and melee attacks are not affected.   I am curious if it works like the player character's shield.   Do shock element attacks deal more damage to it?  Do  for the other elements affect it too?  Does it also recharge?

Unlocking the ability "Phalanx Shield" grants a +1 shield to each Sabre turret.  I'm curious as to how much damage each "shield" can take?  Is it dependent on the player's shield? Or is it a set amount that scales with each player's level?  Furthermore, if you unlock the ability Gemini Turret, that grants double turrets, is the shield shared between the two turrets?  Or is it independent of each other?


I am a first grade teacher to a selectively mute girl, age 6.  She has been in my class since August 2014 and will not speak to any adults at school.  Occasionally she will whisper to me, but usually only nods as a response.  She will speak to kids in the class at recess.  At times, she seems terrified and chews on her fingers when she is nervous.  She also moves robotically through the school, shuffling around slowly and making no eye contact.  How can I help her?

Although I am not a parent, I am interning in social work.  I am currently working with a student in an elementary school who does not speak. The parents have explained that she does speak at home (I also witnessed her speaking to her mother outside of the school), but she has not said a word since she began school in August.  I work with her individually and in a group, and she still refrains from speaking in both settings.  We wonder if the cause is anxiety because she's not speaking at school but she is at home.  Have any of you experienced something similar with your children? What can we do as school staff to create an environment that is more comfortable/less anxiety-inducing for her?


I am building a tank tred using a combination of the array modifier and curve modifier.  The problem that I'm having is that the tred is experiencing uneven stretching when it bends around the corner wheels.  Is there a way I can fix this  (maybe something is wrong with my bezier curve?)  Attached are the curve points and also the settings on the tank track

This is the profile of the object I'd like to wrap...    Here is the object's profile after being wrapped...    Is it possible to prevent the distortion? The following post here:  did not affect my object. It seemed very promising, maybe I'm missing something?  Note: I have applied the scale to both my object and curve.


I am reading some commands from input and executing at run-time in my java program . If there is any syntax or semantic errors it will fail at run-time. Instead of that I want to fail early. So I want to validate commands before execution.  How can i do that?? Is there any simple way.  Ex:  grep -P -o "cpums=[^ ]+" | cut -f2 -d= | cut -f1 -d"]" | awk '{a+=$1;} END {print a;}   Here the single quote (') is missed at the end of this command. It will fail at run-time in my java program. It would be great if it can fail early. So i just want to validate every command at beginning of my program.   I am looking for an optimal way.

Is it possible to check a bash script syntax without executing it?  Using Perl, I can run perl -c 'script name'. Is there any equivalent command for bash scripts?


I have a routine need to replace filename whitespace (space, period, hyphen, etc) with underscore.  Normally, it seems faster to brute-force it with rename than to write a script.  Couple of months ago I found a program that does it perfectly and download it.  I should have named it something sensible, put its path in the path variable, and put a link to it on the desktop so I could locate it.  I didn't, and now I cannot find it because I don't remember its name or location.  Can anyone help me with this?

I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time.  What tools should I use? I prefer GUI but a command line tool recommendation would also be fine.