I would like to get an app, that can record also incoming and outgoing calls and it should record mine and also my partner's voice.

I do not own an Android device. I was thinking about getting one, and an important feature for me is the ability to record a phone conversation which is in progress - meaning, while I am in the middle of a conversation, I could touch a button which will save a two-sided audio recording of that conversation from the moment onward.  I am aware that recording a conversation I am participating in without notifying the other members is illegal in some places - I have already checked this and have verified that it is completely legal in my country.  Is there is such a functionality in Android, through core features or available applications?  EDIT:   I prefer a solution which does not notify the other side of the recording, though it's not a must. I need a solution which works in any country.


Building an Android chat app using Firebase Firestore database.   I wanted to check if a message in the database was sent by the current user, or another user. This way, I can display the chat bubbles right or left accordingly. However, I'm not able to compare as the comparison always returns "NOT TRUE", although I can't understand why. Check it out:  I'm comparing the userID with the sender's userID that I store in Firestore. They print out the same in the log. But when I compare them in an if-statement. It says they're not equal.   public void getLiveChatMessages(final ArrayList<ChatConversationMessage> messageArrayList) {     db.collection("users")             .document(userID)             .collection("conversations")             .document("conversation0") //Specified conversation             .collection("messages")             .addSnapshotListener(new EventListener<QuerySnapshot>() {                 @Override                 public void onEvent(@Nullable QuerySnapshot value,                                     @Nullable FirebaseFirestoreException e) {                     if (e != null) {                         Log.w(TAG, "Listen failed.", e);                         return;                     }                      for (QueryDocumentSnapshot doc : value) {                         if (doc.get("message") != null) {                             String messageSender = doc.getString("From user with ID");                              if (messageSender == userID){                                 Log.e(TAG, "the messageSender IS equal to the userID");                                 Log.e(TAG, "the messageSender: " + messageSender);                                 Log.e(TAG, "the userID: " + userID);                             } else {                                 Log.e(TAG, "the messageSender is NOT equal to the userID");                                 Log.e(TAG, "the messageSender: " + messageSender);                                 Log.e(TAG, "the userID: " + userID);                             }                         }                     Log.d(TAG, "Message: " + messageArrayList);                     }                  }             }); }   and here is my Log output:  E/chat: the messageSender is NOT equal to the userID  the messageSender: ypiXrobQxuZ0wplN5KO8gJR7Z4x2  the userID: ypiXrobQxuZ0wplN5KO8gJR7Z4x2  how can they not be equal???

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


I keep getting this strange error  /usr/bin/ld: CMakeFiles/libdungeon.dir/src/main.cpp.o: in function `decltype (({parm#2}.serialize)({parm#1})) cereal::access::member_serialize<cereal::BinaryOutputArchive, Character>(cereal ::BinaryOutputArchive&, Character&)': main.cpp:(.text._ZN6cereal6access16member_serializeINS_19BinaryOutputArchiveE9CharacterEEDTcldtfp0_9serializefp_EERT_RT0_[_ZN6cereal6access16member_serializeINS_19BinaryOutputArchiveE9Chara cterEEDTcldtfp0_9serializefp_EERT_RT0_]+0x1f): undefined reference to `void Character::serialize<cereal::BinaryOutputArchive>(cereal::BinaryOutputArchive&)' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/libdungeon.dir/build.make:119: bin/libdungeon] Error 1 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/libdungeon.dir/all] Error 2 make: *** [Makefile:104: all] Error 2    I made my classes super bare-bones but I'm still getting the error.  character.hpp:  #pragma once  #include <string>  #include <cereal/archives/binary.hpp>    class Character {      public:        Character(int t_level);      private:        friend class cereal::access;        template <class Archive>       void serialize(Archive & ar);        int m_level = 0;    };   character.cpp:  #include "character.hpp"  using namespace std;    //Generic constructor   Character::Character(int t_level){      m_level = t_level;    }     template<class Archive>   void Character::serialize(Archive & ar) {     ar (m_level);     }   main.cpp:   #include "character.hpp" #include <fstream> #include <cereal/archives/binary.hpp>  using namespace std; int main() {   Character test = Character(5);    std::ofstream ofs("archive", std::ios::binary);   cereal::BinaryOutputArchive archive(ofs);    archive(test);    return 0;  }   CMakeLists.txt:  # Basic setup cmake_minimum_required(VERSION 3.5) project (libdungeon LANGUAGES CXX VERSION 0.0.1) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)  # Directories with header files include_directories ("include")  # Setting compile flags SET(GCC_COVERAGE_COMPILE_FLAGS "-Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wpedantic") add_definitions(${GCC_COVERAGE_COMPILE_FLAGS}) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)  #conan include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup()  # Libraries add_executable(libdungeon src/character.cpp src/main.cpp)  target_link_libraries(libdungeon ${CONAN_LIBS})   Any ideas? When I use a example file like the one found here , with a similar cmake file everything works fine.

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


First time I had to use the offensive flag. The answers were obviously offending/spam but it took quite a while to delete them. I was interested in how long it actually took, because an off-topic question posted later got closed much faster.  Instead of finding this information, I noticed the offensive (and also spam) flag's description is formatted very different. It also contains less information.      "flagged as" seems redundant - I know that I flagged it, and I'm on the flag summary page after all. The normal flagging doesn't tell me that. It is Helpful, but a normal flags are helpful. (fixed) There is no information about the time I flagged it. The normal flag's "helpful" text contains a tooltip showing the time of it's acceptance, the offensive/spam flags don't.   I like that it's red, but I think the format should be more like that of the other flags. It should show the time somewhere.

In the flagging summary page /users/flag-summary/<id>, the timestamp that the flag is raised for spam and offensive flags are not shown.    Is this  or a ? I can't think of any reason why the timestamp should be hidden. From the 's comment in : If you hover mouse icon on "helpful" or "decline/disputed" text it shows same timestamp in tooltip, while in case of "Spam" flag it doesn't show any tooltip.  2015 update To make sure this ancient bug hasn't been fixed by the recent redesign, I add current screenshots:  Hovering over regular flag shows the  UTC timestamp   Hovering over "helpful" shows the time of handling as a relative timestamp, which is often... unhelpful.   And on spam/offensive flags neither thing appears:


I ran into what I think is an anomaly. I was trying to add tags to my displayed math equations in a document, and I ran into the error message      Package amsmath Error: \tag not allowed here   which is the title of . That question was the first search engine hit to keywords amsmath and tag, which is why I am writing this.  Namely, unlike the asker of that question, my equation was in display math. Yet, I still get the same error message.  The answers to that related question were thus initially not helpful to me. Studying the examples as well as  didn't enlighten me either. They did leave me wondering whether the design goal was that only equations in specified environments can be tagged. That sounded somewhat strange.  Copy/pasting examples from the answers came with a surprise. The appearance of this error message apparently depends on exactly how the equation was put into display mode. Try the following snippet:  \documentclass{report}[12pt] \usepackage{latexsym,epsf,amsthm} \usepackage[finnish]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage[dvips]{graphicx} \usepackage{float} \usepackage{color} \usepackage{psfrag} \def\theenumii{\arabic{enumii}} \begin{document} Firs test \[ \frac32n^2+\frac12n\le 936.\tag{1} \] Second test $$ \frac32n^2+\frac12n\le 936.\tag{1} $$ \end{document}   You will see that the error message is generated by the version with double dollars, but NOT when we use the \[ \] delimiters.  Thus I have solved my main problem. Posting this partly in case somebody else runs into the same problem (and linking it with the first hit). This does beg my title question     Why aren't the various display math delimiters interchangable in AMSmath?   I learned TeX when plainTeX was all we had, so if I have to unlearn using double-dollars I won't be too happy. For example MathJax still uses double dollars, and as an active user at Math.SE (a moderator even) I frequently use them.  Why is there a difference here?  In case it matters, here is my configuration:   laptop running on Windows 7 WinEdt version 7.0 MiKTeX version 2.9

I've heard that you should use \[ ... \] for displayed equations instead of  $$ ... $$, but why is that?  I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols.  Is there any reason for this suggestion?


I understand that linear regression is finding the "best fitting line" and Pearson's r is measuring correlation between two variables, but I can't visualize this difference.  I had a project where I was finding if certain brain cancers were correlated to age, or sex for example, and I was advised to use linear regression for this, but from the definition above, in my head it sounds like Pearson's r was what I was looking for?  Can someone clarify this difference?

In particular, I am referring to the Pearson product-moment correlation coefficient.


What kind of verb we should use after some uncountable nouns separated by commas as the subject of our sentence? In the following example do we need is or are?     I want you to know how much your effort, time, and work are/is appreciated.   I want you to know how much your effort, time, and work are/is appreciated.

Can anyone tell me if I should use inspire or inspires in this phrase?     An extraordinary leader whose vision, values, integrity and boundless curiosity inspires all who follow in his footsteps.


Assuming we could create and orbit optical telescopes of arbitrary size, perhaps starting with (say) inflatables or  of 100m diameter what kind of resolution in imaging extra-solar planets would we get? Then the same question for increasing orders of magnitude up to 100km diameter. Any theoretical reason why something that large could not be made?

Like, if you grabbed the asteroid  and hammered it out into a disc of  iron foil and curved it into a telescope mirror , could you resolve details on the surface of an exoplanet?  At what resolution?    Could you make the mirror arbitrarily bigger and continue to get better resolution?    What are the formulas for calculating this and what are the limits, if any?    If you make a big enough mirror could you see individual houses on ?  Could aliens with big telescopes have videos of  in their libraries?


In my country, we are told when we mention musical instruments such the guitar, or the piano, we have to attach the definite article, "the" before that. , Nick, insists, "We say 'I play guitar'" (the video is partly in English and partly in Japanese), which is correct grammatically?

I was taught that when we want to say "produce sound on a musical instrument", we should always use the definite article before the instrument ("play the guitar/piano/violin").  I did research on this, and I got the expected results from the dictionaries I use:     Jean plays the guitar and her brother is on percussion.       He learned to play the clarinet at the age of ten.       He taught himself to play the violin.    (particularly, they all pertain to the skill these people possess)  Then I came across . There, some people said "play guitar" is more common in the USA while "play the guitar" is BrE.  One trustworthy American English dictionary provided the next examples:     Howard Roberts played guitar and Schuur sang and played a Fender Rhodes piano.       I never thought about combining it with drag, ’cause to me, well, drag queens don’t play guitar.    Moreover, I generated the ngram graph and noticed that the expressions using the are way more popular than those without the article:    Now I am confused about which one is correct and whether they are both acceptable.


How can I check if device is 4 or 4s?  Is there a way for me to do this?  I want to check because I am using a UINavigationBar blur, and it for my situation it doesn't look good without the blur, so I will change it if it is an iPhone 4.

Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.


Searching through websites dedicated to collect upcoming scientific conferences, I have stumbled upon a lot of similar-sounding conferences around the world (e.g., see ), all organized through the "World Academy of Science, Engineering and Technology", . There is plenty of information about them on their respective websites, as the organizing committee, speakers already confirmed, etc. This high quantity of similarly-titled conferences smells fishy. Is this some sort of scam, be it hard (they steal your money) or soft (lectures are actually given, without any real effort to look for relevant speakers, do peer-review, etc.)? Can anyone shed some light on this? Has someone here actually participated in, or even organized one of those?

I recently received an invitation to a conference and I'm trying to determine how reputable it is. Is there a good way to go about this?


I've started making a Flood Escape (Except the flood part is magma) Map but I've started having trouble with making  people tp to spawn when they touch the magma when there are multiple people playing. If someone could help me with this, I would be very thankful.  PS. I'm On Bedrock Edition

I am making a multiplayer parkour map on bedrock edition, and I have it set up where when a player steps on a grass block they die. But when a player steps on a grass block it just kills anyone who touches it.  First: A repeat command block (set to always active and unconditional)   execute @e [type=player] ~ ~ ~ testforblock ~ ~-1 ~ grass   And then I have a chain command block (set to conditional and always active)  kill @e [type=player]   And it does work..... IF in singleplayer only. (which is not at all what I want)  Thank y'all in advance.


I don't know why this piece of code is not passing. Return true if each sub-list is individually in ascending order, false otherwise. public static boolean allSubListsAscending(ArrayList<ArrayList<Integer>> list) {          for (ArrayList<Integer> intList : list) {             for (int j = 0; j < intList.size() - 1; j++) {                 if (intList.get(j) > intList.get(j + 1))                     return false;             }          }         return true; }  @Test @Graded(description="AllSubListsAscendingComprehensive")     public void testAllSubListsAscendingComprehensive() {         testAllSubListsAscendingBasic();         assertFalse(ListOfListService.allSubListsAscending(null));         assertFalse(ListOfListService.allSubListsAscending(list4_nullItems));          ArrayList<ArrayList<Integer>> ascending = new ArrayList<ArrayList<Integer>>();         ascending.add(new ArrayList<Integer>(Arrays.asList(10, 20, 70, 90)));         ascending.add(new ArrayList<Integer>(Arrays.asList(100, 110, 120, 130)));         ascending.add(null);         ascending.add(new ArrayList<Integer>(Arrays.asList(10, 20, 70, 90)));         assertFalse(ListOfListService.allSubListsAscending(ascending));          currentMethodName = new Throwable().getStackTrace()[0].getMethodName();     }

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


Trying to write a report for my work, I know that if I reconstructed this sentence it would be "were", but with the way it is written now, which way would be right?        There was a total of 652 responses in the box.      OR        There were a total of 652 responses in the box.

A total of 10 payments were made.   OR     A total of 10 payments was made.   Which is correct? Or can both be correct?


I'm considering applying for grad school (psychology). However, I've been in industry for two years. Also, I never connected with my professors... Here are some of my options for letters of recommendation/reference, none of them are very good, but please help me pick the two best (or think of other possibilities). In case it's important, I studied computer science, minored in philosophy, graduated 2 years ago, and now I work as a software engineer.   Manager. Only worked with him 6 months. He doesn't have a lot of visibility into the work I've done. Coworker. Only worked with him 6 months. He has quite a bit of visibility into the work I've done. Former Teaching Assistant from Philosophy class. Talked with him quite a bit and he marked all my essays across three different classes, so he should remember me. Former Philosophy Professor. Just one semester, but I went to a handful of his office hours, and his was one of the last classes I took, so he might remember me. Former Psychology Professor. I don't remember this course, and she wouldn't remember me (never went to office hours)

I have been working in a big-shot multi-national corporation as a developer for two years now, with a possible future as a software architect in some eight to ten years.  Now I want to enroll in a PhD program. I am planning to quit my job and join some university for PhD programs. Now most of the universities needs some research papers, of which I have none. They also require recommendations from professors, however I have already quit college two years back and don't have a working relationship with those professors.   How should I secure letters of recommendation? Will a letter of recommendation from my manager help? Does academia really care about professionals wanting to enter back into the world of higher education again? Will I be able to apply to competitive universities with my profile?


I am working on a manual where they are trying to say that something support from 2 TB (terabytes) to 8 TB (terabytes) of flash memory per channel.  The audience is programming engineers.  It is written: "Supports 2TB-8TB flash memories per channel."  I believe that it should be written: "Supports 2TBs-8TBs of flash memory per channel."  Which one is correct?

What's the correct form? If both are correct, what's the difference?


Is there a way to determine the priority of wireless networks?  The KDE networkmanager applet works fine, but it often connects to the WRONG wireless network by default when multiple networks are available.  (For example: at work we have a network A that allows printing, but which is not available throughout the building; and a network B that works everywhere, but that does not allow printing. Obviously I want to connect to B only if A is not available, but the networkmanager just seems to prefer B.)

I'd like to move up and down available wireless access points, setting priorities as we can do in Microsoft Windows. I can't remember to have ever succeeded in this since using network-manager. Maybe something with conf files is possible...  I'm not interested in different network managers.


Currently I am using AWS EC2 servers to get maximum requests per second on server. I am using two EC2 8 Core, 15 GB Servers with AWS load balancer and backend database as Sql server with 8 Core and 30 GB Server. I have ASP.net WebAPI's deployed on IIS Server and tested load testing with JMeter. With current settings I am getting 1650 requests per second and CPU on servers are showing 20-30% utilization.  Can any body suggest me settings on IIS server to get maximum requests per second, we are targeting 3000 requests per second.  We are using Windows 2012 Server and IIS 8.0.

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


I have a table with the following structure below:  Id (Int), Telephone_Number (Int), Name (VARCHAR), Address (VARCHAR)   I wish to create a covering index for this SELECT query:  SELECT Id FROM mytable WHERE Telephone_Number = '55442233';    I understand covering indexes remove the amount of Disk I/O as the indexes are stored in the memory cache, therefore increasing performance.  For my SELECT query, am I right in saying making Id an index will not remove the need for Disk I/O due to the WHERE clause needing access to the Telephone_Number value?  If so, would a composite index of (Id, Telephone_Number) work as a covering index? Or do covering index have to be single column's?

I've just heard the term covered index in some database discussion - what does it mean?


The image below is from ConText. Does anyone know what the family font it is from in LaTeX?  Thank you.

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Prove that $\mathrm{O}_n(\mathbb{Q})$ is a dense subset of $\mathrm{O}_n(\mathbb{R})$.  Recall that $\mathrm{O}_n(\Bbbk)$ is the set of $n \times n$ matrices with coefficients in the field $\Bbbk$ and such that the columns form an orthonormal system in $\Bbbk^n$ endowed with the usual euclidian structure.   I managed to prove that $\mathrm{GL}_n(\mathbb{Q})$ is dense in $\mathrm{GL}_n(\mathbb{R})$, but I couldn't go further. Any ideas ?

Is it true that ${O}_n({\mathbb R}) \cap {\mathbb Q}^n$ is dense in ${\cal O}_n({\mathbb R})$ for any $n\geq 2$ ? It obviously suffices to consider the density of ${SO}_n({\mathbb R}) \cap {\mathbb Q}^n$ in $SO_n({\mathbb R})$.  This is easy for $n=2$ : consider the matrices of the form  $$ \frac{1}{p^2+q^2}\left(\begin{array}{cc} p & -q \\ q & p \end{array}\right) $$  where $p,q$ are integers.


Currently working on a simple system. Where the if else statement does not affect anything.  Here's the code :  tollRate() {      JFrame a = new JFrame();     setTitle("Highway Toll Rates System");     setSize(600, 400); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLayout(new GridLayout(5, 2));      p1.setLayout(new GridLayout(1, 2));     p1.add(L1);                                                  p1.add(t1);     p2.setLayout(new GridLayout(1, 2));     p2.add(L2);     p2.add(t2);     p3.setLayout(new GridLayout(1, 2));     p3.add(L3);     p3.add(t3);     p4.setLayout(new FlowLayout());     p4.add(b1);     p4.add(b2);     p5.setLayout(new FlowLayout());     p5.add(L4);     add(p1); add(p2); add(p3); add(p4); add(p5);      b1.addActionListener(this); b2.addActionListener(this); }  public void actionPerformed(ActionEvent a)  {     Object source = a.getSource();     if(source == b2)      {           this.dispose();     }      else if(source == b1)      {         i = t1.getText();         j = t2.getText();         k = t3.getText();          if (i!=SUNGAI BULOH)         {             JOptionPane.showMessageDialog(null, "Invalid Location" );         }         }         }   public static void main(String[] args)  {     tollRate a = new tollRate();  } }   Can anyone assist me with the if else statement in this code? I want the system to display "invalid location" if the user keys in anything other than "SUNGAI BULOH" in i.  Thank you in advance.

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


I want to hide the left tool bar of content type also revision message box, as shown in attachement, for non admin people.  I have gone through following  but it's only for particular content.  Please suggest me how to hide from all content.

Some users may only have the ability to edit one of the fieldsets that shows up in vertical tabs on the node edit form. In such a case it looks rather silly to be using vertical tabs since there is only one vertical tab to choose from. See screenshot:    So, is it possible to disable vertical tabs by user role? Or, barring that, disable them altogether for certain content types? For my use case I just want Location to not be displayed in vertical tabs.   I tried Renderable Fields and Field Group together but they managed the form incorrectly (buggy, I think). Arrange Fields can't separate out Vertical Tabs.


first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing Connected(no internet access).  I tried to set the IP static. It did not work for DNS 192.168.200.1. No matter what IP I set with this DNS it does not work. Then used the 8.8.8.8 as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.  The problem is specific to this device only. Other devices connected to the same network are perfect.  I tried    Restarting the router Resetting network settings Clearing network cache from maintenance mode Rebooting the device with and without airplane mode   My phone is Huawei Y9 2018 with Android 9.  Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?  I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.

first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing Connected(no internet access).  I tried to set the IP static. It did not work for DNS 192.168.200.1. No matter what IP I set with this DNS it does not work. Then used the 8.8.8.8 as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.  The problem is specific to this device only. Other devices connected to the same network are perfect.  Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?  I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.


I have a question about what $w$ means in the wave equation $A$$cos$($kx-wt$). From what I've understood, in classical physics, angular velocity has to be taken about a point or about an axis about which something spins around, so I'm not clear as to what angular velocity means in terms of a wave. Is it how many radians per second any one point on the wave is rotating with respect to the origin?

What is the physical significance of $\omega$ in a function like  $$ f(x) = A\sin(kx + \omega t). $$  The only place that I am familiar with angular frequency is when dealing with circular motion, but when it comes to waves I am not clear how the analogy holds. I am familiar with the idea of a reference circle when dealing with simple harmonic motion, I am still a bit unclear on how this extends to waves. What exactly is this quantity measuring, and why is it useful to write the function in this form rather than an alternative (but equivalent) fashion?


Not looking for a overly technical answer here just a very simplistic one I quess.. When switching gears is it best to try and keep both front and rear gears either high or low (Depending) I mean we wouldn't want say front low and rear high or other way around would we ?   Thanks

Is there any general rule or recommendation to avoid usage of certain gears combinations (for 2xN and 3xN gears systems)? Do they differ for mtb and road bikes?  I know that it's recommended not to use biggest front chainring with big chainrings on cassette (and opposite) because parts will wear faster and I will loose a bit of pedaling efficiency, but I'm not sure, if I should avoid 2 or 3, or even more biggest (smallest in opposite case) chainrings on cassette.


As the question tells everything, why does keyboard have 2 Ctrl, Alt, Shift keys.  As their function is same then why these keys are multiple on keyboard? Is there any specific reason or they are just for making typing easy?

Why are there two sets of the Ctrl, Alt, and Shift modifier keys when only one of each is necessary?


Not first time bonus, not using lucky egg.  It happened to me twice today.  Can anyone tell me how this can happen so I can try to do it to level up faster?

Sometimes I get a bonus when catching a Pokemon. When does this happen? It happened already multiple times to me.  (I don't mean curveball, great or excellent bonus here. I mean the undefined "bonus" visible in the screenshot)


Working on a poll/voting system where people can click to see results before voting, and then click back again to see the options once more.  The problem is when loading in the results, the button I load to show the options again won't seem to work:  The code for them is basically the same (I've put an alert to test if it was even picking up the button, it is not):  $('.results_button').click(function() {     var poll_id = $(this).data('poll-id');     $('.poll_content').load('/includes/ajax/poll_results.php', {'poll_id':poll_id}); });  $('.back_vote_button').click(function() {     window.alert("Test");     //var poll_id = $(this).data('poll-id');     //$('.poll_content').load('/includes/ajax/poll_options.php', {'poll_id':poll_id}); });   The actual code to the back_vote_button is this for example:  <button name="pollresults" class="back_vote_button" data-poll-id="1">Back to voting</button>   Is there something I am missing about interacting with jquery loaded content?

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


I have installed Ubuntu 14.04 on laptop. I want to convert it to virtual disk so that my fellows could also use it. I have read forums, some have listed VM Ware converter but its installation helping material is for windows, some people also mentioned that's for server only. Is there any easy way to do this?

Is it possible to convert a Physical Ubuntu Install (Intel based PC with Ubuntu 10.10) to a virtual box disk, so that I can use that same environment on a separate pc or can keep it virtual for testing?  Something similar to "Disk2VHD" which converts a physical Windows 2K3 and above box into a VHD or VMware image.  Will be grateful for your assistance ! Kind Regards


I just followed a recipe for pickled turnips, but am questioning the step of letting them sit out at room temp for 5 days before refrigerating.  The recipe used: 1 cup white vinegar (5% acidity) 3 cups water 70 grams salt  It's a 1:3 vinegar to water ratio and, if my math is right, has a salinity level of about 7.5% (by weight).  I have found this same, or nearly the same, recipe on several websites so it seems to be pretty standard, but just wanted to ask about the safety of skipping refrigeration for nearly a week.

I recently made a large batch of mixed vegetable pickles (cucumber, onion, carrot, peppers, cauliflower, garlic) with a brine of 1 cup white vinegar to 3 cups water and 1/4 cup salt. I used a clean, not sterile method, and didn't process the jars. Ten days later some of the jars are cloudy, and some of the lids are fizzing.  I've pickled a lot in the past, sometimes using a water bath to process and sometimes not. This time I skipped the step thinking the acidity would be enough to prevent nasty things like botulism.  I'm belatedly researching and learning the difference between fermented pickles and vinegar pickles. I had simply assumed the process was similar and adding vinegar would keep it safer by increasing the acidity.   My question now is, will the high acidity and high salt (works out to 1 tablespoon per cup of brine) prevent botulism from growing and keep them safe to eat (as long as they don't smell bad)?   Reading about fermented pickles, I see that cloudiness is a good sign. Can the cloudiness be lacto-fermentation, or would the vinegar disrupt that process?   Another thing that might explain the cloudiness is the iodized salt (I didn't have access to pickling salt).  I want to experiment with fermentation and would definitely do things differently next time, but for now, I'm just wondering if I can salvage anything, and what would be a clear indication that they're unsafe and I should throw out the lot.


I had Laptop Dell Inspiron 7786 Ubuntu 5.8.0-25.26-generic Ubuntu's main system without Dual Booting and etc. Also, I try several versions of Ubuntu 18.04, 20.04, 20.10 and Fedora 32. After turn down and start the system WiFi work normally. Kernel boot log: iwlwifi 0000:00:14.3: enabling device (0000 -> 0002) iwlwifi 0000:00:14.3: WRT: Overriding region id 0 iwlwifi 0000:00:14.3: WRT: Overriding region id 1 iwlwifi 0000:00:14.3: WRT: Overriding region id 2 iwlwifi 0000:00:14.3: WRT: Overriding region id 3 iwlwifi 0000:00:14.3: WRT: Overriding region id 4 iwlwifi 0000:00:14.3: WRT: Overriding region id 6 iwlwifi 0000:00:14.3: WRT: Overriding region id 8 iwlwifi 0000:00:14.3: WRT: Overriding region id 9 iwlwifi 0000:00:14.3: WRT: Overriding region id 10 iwlwifi 0000:00:14.3: WRT: Overriding region id 11 iwlwifi 0000:00:14.3: WRT: Overriding region id 15 iwlwifi 0000:00:14.3: WRT: Overriding region id 16 iwlwifi 0000:00:14.3: WRT: Overriding region id 18 iwlwifi 0000:00:14.3: WRT: Overriding region id 19 iwlwifi 0000:00:14.3: WRT: Overriding region id 20 iwlwifi 0000:00:14.3: WRT: Overriding region id 21 iwlwifi 0000:00:14.3: Found debug destination: EXTERNAL_DRAM iwlwifi 0000:00:14.3: Found debug configuration: 0 iwlwifi 0000:00:14.3: loaded firmware version 46.8902351f.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm iwlwifi 0000:00:14.3: Direct firmware load for iwl-debug-yoyo.bin failed with error -2 iwlwifi 0000:00:14.3: Detected Intel(R) Wireless-AC 9560, REV=0x318 iwlwifi 0000:00:14.3: base HW address: 18:1d:ea:7e:f4:4b iwlwifi 0000:00:14.3 wlo1: renamed from wlan0  But if I reboot the system I got "No WiFi Adapter available" Kernel boot log (after reboot): iwlwifi 0000:00:14.3: enabling device (0000 -> 0002) iwlwifi 0000:00:14.3: WRT: Overriding region id 0 iwlwifi 0000:00:14.3: WRT: Overriding region id 1 iwlwifi 0000:00:14.3: WRT: Overriding region id 2 iwlwifi 0000:00:14.3: WRT: Overriding region id 3 iwlwifi 0000:00:14.3: WRT: Overriding region id 4 iwlwifi 0000:00:14.3: WRT: Overriding region id 6 iwlwifi 0000:00:14.3: WRT: Overriding region id 8 iwlwifi 0000:00:14.3: WRT: Overriding region id 9 iwlwifi 0000:00:14.3: WRT: Overriding region id 10 iwlwifi 0000:00:14.3: WRT: Overriding region id 11 iwlwifi 0000:00:14.3: WRT: Overriding region id 15 iwlwifi 0000:00:14.3: WRT: Overriding region id 16 iwlwifi 0000:00:14.3: WRT: Overriding region id 18 iwlwifi 0000:00:14.3: WRT: Overriding region id 19 iwlwifi 0000:00:14.3: WRT: Overriding region id 20 iwlwifi 0000:00:14.3: WRT: Overriding region id 21 iwlwifi 0000:00:14.3: Found debug destination: EXTERNAL_DRAM iwlwifi 0000:00:14.3: Found debug configuration: 0 iwlwifi 0000:00:14.3: loaded firmware version 46.8902351f.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm iwlwifi 0000:00:14.3: Direct firmware load for iwl-debug-yoyo.bin failed with error -2 iwlwifi 0000:00:14.3: Detected Intel(R) Wireless-AC 9560, REV=0x318 iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0. iwlwifi 0000:00:14.3: Not valid error log pointer 0x00000000 for Init uCode iwlwifi 0000:00:14.3: Fseq Registers: iwlwifi 0000:00:14.3: 0x57EBE7FA | FSEQ_ERROR_CODE iwlwifi 0000:00:14.3: 0x00000000 | FSEQ_TOP_INIT_VERSION iwlwifi 0000:00:14.3: 0x3DEFF6EE | FSEQ_CNVIO_INIT_VERSION iwlwifi 0000:00:14.3: 0x0000A384 | FSEQ_OTP_VERSION iwlwifi 0000:00:14.3: 0xAA22218C | FSEQ_TOP_CONTENT_VERSION iwlwifi 0000:00:14.3: 0x31101204 | FSEQ_ALIVE_TOKEN iwlwifi 0000:00:14.3: 0x7B5E8EE9 | FSEQ_CNVI_ID iwlwifi 0000:00:14.3: 0x48382987 | FSEQ_CNVR_ID iwlwifi 0000:00:14.3: 0x01000100 | CNVI_AUX_MISC_CHIP iwlwifi 0000:00:14.3: 0x01300202 | CNVR_AUX_MISC_CHIP iwlwifi 0000:00:14.3: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM iwlwifi 0000:00:14.3: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR iwlwifi 0000:00:14.3: SecBoot CPU1 Status: 0x3, CPU2 Status: 0x226c iwlwifi 0000:00:14.3: Failed to start INIT ucode: -5 iwlwifi 0000:00:14.3: Failed to run INIT ucode: -5  I try many cases from the internet system but got no effect.

I'm a student who uses the laptop all the time and I have a problem with Wifi on the laptop. I don't really know what it is. I can describe the problem tho. For example, i closed my laptop last night, so it goes in suspend mode. I turn it on this morning and my wifi doesn't want to connect until I restart the laptop. It says that it's connecting and in Wifi settings the circle animation is spinning, turning Wifi off and on doesn't do anything. Here's what happens when I check to see my network info: sudo lshw -C network   *-network                         description: Wireless interface        product: Wireless 3160        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:02:00.0        logical name: wlp2s0        version: 83        serial: 00:1e:64:e6:1c:93        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-52-generic firmware=17.3216344376.0 ip=192.168.0.14 latency=0 link=yes multicast=yes wireless=IEEE 802.11        resources: irq:129 memory:df100000-df101fff   *-network        description: Ethernet interface        product: RTL810xE PCI Express Fast Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 07        serial: f8:ca:b8:52:72:49        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII        resources: irq:17 ioport:d000(size=256) memory:df000000-df000fff memory:d0000000-d0003fff  Also I have to mention that my Linux is doublebooted alongside Windows 10, but I don't think that makes any difference. Help would be much appreciated, I wouldn't want to miss my classes because of this hahah Thanks!


I have to solve the following homework problem:     Let $X_{1}, \ldots ,X_{n}$ be i.i.d. random variables with $X_{1}\sim \operatorname{Exp}(1)$ and let $X$ have distribution function $F(x)=1-e^{-e^{-x}}$. Show that $\max_{1 \leq k \leq n} X_{k} - \log(n)$ converges to $X$ in distribution.   What I have done so far:  We can compute that $$\mathbb{P}\Big(\max_{1 \leq k \leq n} X_{k} \leq x\Big)=\mathbb{P}(X_{1}\leq x)^{n}=(1-e^{-x})^{n}.$$ Substituting $x+\log(n)$ for $x$, it follows that   $$\mathbb{P}\Big(\max_{1 \leq k \leq n} X_{k} \leq x + \log(n)\Big)= \big(1-e^{-x-\log(n)}\big)^{n}.$$  This does not converge to $1-e^{-e^{-x}}$ as $n$ goes to infinity. Where is my mistake?

I've come across this problem which has completely stumped me. It goes as follows:  Let $(X_n)$ be a sequence of independent and identically distributed exponential random variables with parameter $\lambda$. Let $M_n$ denote max{$X_1,...,X_n $}. Show there exists a random variable $Z$ such that $M_n - \frac{1}{\lambda} \log (n) $ converges in distribution to $Z$.  Now this problem seems really hard, so I tried proving it for convergence in probability to see if that would work and imply convergence in distribution, but I couldn't get very far. Moreover, calculating the expectations also seems non-trivial due to the fact that it would be hard to integrate $M_n = \frac{1}{\lambda} \log n$.  Any suggestions and ways to approach this problem would be greatly appreciated as I've been stuck on this for a long time. Should I try using the Skorohod equivalent statement?  Thanks.


Google has processed my XML sitemaps, and for one of the files, Webmaster Tools claims to have indexed 44,797 links even though that file only contains 4,582 links.  Here's a screen cap:    I'm not terribly worried about this, but it is a curious state of affairs, and I'm sure there's something to be learned from it. What's going on?  UPDATE: This is not a duplicate of the question: "Why is there a difference between urls submitted to a sitemap and urls in the google index?" Here's why, as I explained in the comment below:  I understand that Google may index many pages that are not in my sitemap. In fact, Webmaster Tools indicates that there are many thousands of such pages. What's curious here is that the above table is supposed to report how many of the links in a particular sitemap file have been selected for the index, so it would seem to be impossible for this number to exceed the number of links actually in the file. Unless, of course, I'm missing something.  One theory: Could it be possible that many versions of the same pages -- perhaps with different params -- have been indexed?

The crawl report shows this: "HTTP (1) In Sitemaps (5) Not found (993) Restricted by robots.txt (487,544)"  So the discrepancy between 50,000 and 44,592 isn't coming from that.  Are there any obvious reasons?


I have the following code: \[   \begin{cases*}     1& if    \end{cases*} ...  after the if, I want to type a dollar sign but get the error message "Math mode started with '\[' cannot be closed with dollar". I am unsure how to fix this. EDIT: Clarifications  I want to type a dollar sign to enter into math mode. Note that the cases* environment expects text after the ampersand. The error message mentioned is an AUCTeX error (shows up in the *Messages* buffer)---it doesn't allow me to type the dollar sign character into the Emacs buffer.

I need to output the below text but since \ is a special character, I cannot:  [RegularExpression(@"\d+")]   Also sometimes I need use dollar sign $ as well but it seems to be a special char, too.  What is the way to escape those in LaTeX?  UPDATE:  I used \verb as suggested but I am unable to run commands inside it. Also, in the output the font and the opacity of the text is different than the default one:  \verb|[RegularExpression(\newline @"\d+")]|


We all have them.  Experiences we will never forget.  Fond moments we will forever cherish.  But I was surprised I could not think of any word to describe such a valuable thing.  Is there any word that means a precious memory?

Is there a single word with the same meaning as "good moments" or "pleasant memories"? I'm looking for a word which describes good thing(s) that happened to someone. The only word I can think of is "joy".  Some examples might be:   Wayne has many pleasant memories of the days spent with the family. She could remember many good moments from the last weekend.


I have an output of DIV elements created through Javascript that looks like this.

User 1

User 2

User 3

   Below is the snippet of JS I have to toggle a class on click      $(".filter").on("click", function() {         console.log("User is clicked");         $(this).toggleClass("alert");     });   Can anyone point out to me why the on click is not triggering? and the class not getting applied to the clicked DIV element?


how can I convert a negative log likelihood to likelihood between 0 and 1 ?   I use HMMs package in R and  I keep getting strange results of the log likelihood for example, -48569 ! I need to understand these values so I can pick the best model. any advice will be appreciated.  thanks

The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice.


The following question and answer is taken from   A naughty bird is sitting on top of the car. It sees another car approaching it at a distance of 12 km. The speed of the two cars is 60 kmph each. The bird starts flying from the first car and moves towards the second car,reaches the second car and come back to the first car and so on. If the speed at which bird flies is 120kmph then 1)the total distance travelled by the bird before the crash is? 2)the total distance travelled by the bird before it reaches the second car for the second time is? 3)the total number of times that the bird reaches the bonnet of the second car is(theoretically)?  I am clear with the explanation available in the mentioned site for 1 and 2.  For the third part, i.e., the total number of times that the bird reaches the bonnet of the second car is(theoretically), answer given is infinite times with the explanation proving the infinite sequence.  But we know it cannot go on infinite times. It has to be a finite number if we look at it practically. How to explain this? I am puzzled because the explanation looks convincing (infinite times) whereas we know it cannot be infinite times. Please help in understanding this contradiction. EDIT: Adding the explanation(below) from  as advised by @DylanSp for clarify and my aim is to understand why it looks as infinite times(theoretically) whereas we know it is finite practically or where my understanding is wrong. (it was a detailed explanation and that is why I have not added initially)  (3) infinite times As explained for the previous case, The bird reaches the second car in $\dfrac{12}{180}=\dfrac{1}{15}$ hour for the first time. In this time, the cars together covers a distance of $\dfrac{1}{15}×120=8$ km and therefore the distance between the cars becomes 12-8=4 km. The bird reaches back the first car in $\dfrac{4}{180}=\dfrac{1}{45}$ hour. In this time, the cars together covers a distance of $\dfrac{1}{45}×120=\dfrac{8}{3}$ km and therefore the distance between the cars becomes $4-\dfrac{8}{3}=\dfrac{4}{3}$ km. Now the bird flies to the second car for the second time. It takes $\dfrac{\left(\dfrac{4}{3}\right)}{180}=\dfrac{1}{135}$ hour for this. In this time, the cars together covers a distance of $\dfrac{1}{135}×120=\dfrac{8}{ 9}$ km and therefore the distance between the cars becomes $\dfrac{4}{3}-\dfrac{8}{9}=\dfrac{4}{9}$ km. The bird reaches back the first car in $\dfrac{\left(\dfrac{4}{9}\right)}{180}=\dfrac{1}{405}$ hour. In this time, the cars together covers a distance of $\dfrac{1}{405}×120=\dfrac{8}{ 27}$ km and therefore the distance between the cars becomes  $\dfrac{4}{9}-\dfrac{8}{27}=\dfrac{4}{27}$ km. Now the bird flies to the second car for the third time. It takes $\dfrac{\left(\dfrac{4}{27}\right)}{180}=\dfrac{1}{1215}$  hour for this. so on. Sine this goes on repeatedly, the bird reaches the bonnet of the second car infinite times(theoretically)

I'm reading "How would you move Mount Fuji?", and one of the puzzzles/questions is:     A train leaves Los Angeles for New York at a constant   speed of 15 miles an hour. At the same moment, a train   leaves New York for Los Angeles on the same track. It travels   at a constant 20 miles an hour. At still the same moment,   a bird leaves the Los Angeles train station and flies toward   New York, following the track, at a speed of 25 miles an   hour. When it reaches the train from New York, it instantly   reverses direction. It travels at the same speed until it   reaches the train from Los Angeles, when it reverses   again, and so forth. The bird flies back and forth between   the two trains until the very moment they collide. How   far will the bird have travelled?   In the answer, they mention that it could be solved by using an infinite series (and that most people will probably have forgotten how to do it when asked in an interview, and that John von Neumann did so almost instantly when asked this type of question), but they do it another way. First, they note that the time until the trains crash is given by h, and d = 15h + 20h, where d is the distance (they use 3500). Thus, h = 100 hours. The distance that the bird travels is 25d. Thus, the answer is 2500 miles.  I'm curious though, how does one solve this using an (infinite) series? How does one write this problem as a series in the first place? The only thing that I can get is that the series (of the hours that the bird spends flying) starts like this: (77.77, 9.73, ...)


I have a prolog code for searching a book. It is a simple game. I want to make interfaces with C#. But i don't know how to connect prolog into c#. Please help me. How to conncet prolog with C#.

Does anyone know of a nice (and preferably free) way to integrate Prolog and C#?  Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog).  I have seen  which talks about Prologs real world usage but I was wondering if anyone had either any experience with c# & Prolog? or a nice tutorial/article?


Is it correct to say that if you hit the speed of light you would travel at the same speed as a single image in time would?  And if you were to (if possible) travel faster than light, you would theoretically be travelling faster than than the images that have already come by. It is a known fact that when we are looking at stars billions of light years away we are essentially looking into the past. If you were travelling faster than the speed of light (without the argument of relativity) would your perspective turn to something like an image looking down two mirrors adjacent to one another but moving through each image- what we perceive as time but going backward.  I am no mathematician or physicist just an average person pretty much no math and physics education,  but a vivid imagination. Degrading comments are unnecessary I'm just curious.

I read with interest about Einstein's Theory of Relativity and his proposition about the speed of light being the universal speed limit.    So, if I were to travel in a spacecraft at (practically) the speed of light, would I freeze and stop moving?  Would the universe around me freeze and stop moving?  Who would the time stop for?


So, during algebra class, one of the 5th-year students who was there to help us and I tried to find the proof for $$\left.p\middle|{p \choose k}\right. \forall k, 0<k<p \iff \text{p is a prime number}$$  So to do this we need Kummer's Theorem, which itself uses an alternate form of Legendre's formula. What I want to prove is the following identity: $$\sum_{i=1}^\infty\left\lfloor \frac n {p^i} \right\rfloor = \frac {n - s_p(n)}{p-1}$$  Where the brackets denote the floor function and $s_p(n)$ denotes the sum of all digits of $n$ when $n$ is written is base $p$.  The proof is in Wikipedia, but I'm afraid there are some steps I don't get.

Where $v_p(n)$ is called the $p$-adic valuation of $n$.  prove $v_p(n!)=\sum_{t=1}^\infty \left\lfloor \frac{n}{p^t} \right\rfloor$  so far i have that $v_p(n!) = v_p(n) + v_p(n-1) + \cdots + v_p(2) + v_p(1)$  and $$\sum_{t=1}^\infty \left\lfloor \frac{n}{p^t} \right\rfloor = \left\lfloor \frac{n}{p} \right\rfloor + \left\lfloor \frac{n}{p^2} \right\rfloor + \cdots +\left\lfloor \frac{n}{p^r} \right\rfloor = p^{r-1} + p^{r-2} + \cdots + p + 1$$  where $p^r||n$  I don't really know where to go from here. Any suggestions would be great.


i just want to get the idea for the input voltage protection for a fully differential ADC.  The analogue voltage inputs supposed to be 0-5v, but someone being careless could plug a higher voltage (up to probably around 20v) by accident and blow the ADC.   I have seen zener regulation/clamp circuits, but upon trying them realized that they of course produce a voltage drop. The voltage needs to be unaltered from the one the user puts in, so this does not work for me.  So, what I need is a way to protect my ADC inputs from over voltage as high as ~20VDC or more but still be able to accurately read a 0-5V nominal analogue signal without altering the voltage reading.  and my power supply for the board is 5V, so i only want to limit the input signal to 0-5V. yeah, of course the Voltage must be above 0.  besides, i have only found one overvoltage/undervoltage from TI , It is  , but the range of the protection voltage is 3 to 6.9. it's not suitable for me.   so , is there any programmable VOP and UOP chips that i can use? the ADC that i use is ADS5272  Any suggestions? Let me know! Thanks a bunch in advance!  i posted the Zener diode grafic  see that , from -Vz to Vf it is not linear, and i thing it must have an effect on the input singal for ADC

I'd like to be able to protect my ADC from input voltages higher than 5V. What's the simplest protection circuit I could build to have an output like shown below?


I want to use equations that I have already numbered as part of an example. i.e. above the example I define an equation for potential energy (3.2), then showing students how to use it in an example I want to write out the equation again and use the same number.  Potential energy is given by E=mgh (3.2)  Example: find the potential energy gained of a 30 kg child that climbs 10 m of stairs. E=mgh (3.2)  Can this be done?

I would like to re-use equations with the same content and number. I know that the thmtools package has a restatable environment to do this for environments (like in ), but I would also like to do this with a single equation that is only part of some environment.  I had a look at the following questions which only aim at repeating the equation number but typing the whole equation twice (the first three) or repeat the content of the equation without a number (the last one):         Based on the answers provided there and on the  I tried to create a macro \restatableeq for restable equations like this:  \documentclass{article}  \usepackage{amsmath}  \newcommand{\restatableeq}[3]{\label{#3}#2\xdef#1{\unexpanded#2\unexpanded\tag{\unexpanded\ref{#3}}}}  \begin{document}  \begin{eqnarray} \restatableeq{\eqone}{This & is & eqation 1}{eq1}\\ Another & simple & equation \end{eqnarray}  \begin{eqnarray} One & more & equation\\ \restatableeq{\eqtwo}{This & is & eqation 2}{eq2} \end{eqnarray}  Here, we use (\ref{eq1}) and (\ref{eq2}) again: \begin{eqnarray*} \eqone\\ \eqtwo \end{eqnarray*}  \end{document}   Unfortunately, it does not work and yields:  ! Missing { inserted. <to be read again>                    T l.10 ...ableeq{\eqone}{This & is & eqation 1}{eq1}                                                   \\ ?   My guess is that the & symbols are not treated as intended but I may well be wrong there.  How can I define a command like \restatableeq that allows me to re-use equations with the same content and number in a setting like in this example (and give it a label such that I can still use \ref as usual in addition to that)?


I want to know the Difference between below four terms in C/C++:   p[i]  i[p] *(p+i) *(i+p)   Where p is Array, i is loop current index.

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


I'm trying to delete some folder but this error is preventing from doing it:     Cannot delete [FileName]: It is being used by another person or program.      Close any programs that might be using the file and try again.   How can I identify what application is using the file?   I want to end the application using a Task Manager, but I didn't know what application is using it.  The folder is not shared and my user account is an administrator.

Every once in a while when I try to remove a file I have been working with, Windows tells me I cannot remove it, because some application is still using it.  Sometimes it's just my own stupidity, and closing the app I was working with releases the file, but sometimes I cannot for the life of me imagine any of the remaining applications holding the file.  Sometimes when I close everything I have started, it is still reported as locked and not deletable.  Is there any low-level tool that I can point at a file that can tell me which applications are holding a reference to it, to diagnose how to resolve this without resorting to a reboot and delete cycle?


When I was a kid I saw a cartoon probably made in the 80s or early 90s. In this cartoon, underground inhabitants extracted resources under the supervision of overseers/demons.   The protagonist attacks one of the overseers and escapes to the surface. He discovers that overseers aren't people or demons, they are androids.  He finds a spaceport, meets a smuggler and a princess, and discovers that he is some kind of Chosen One.   With help of friends he defeats the Evil Prophet (and his robot army). This Evil Prophet tried to conquer the Universe millennia ago under different name. The main villain is an android/cyborg too.   In the finale, the protagonist liberates his people from slavery and his people come out to the surface (they thought that their underworld was the real world and that surface is myth).   I don't remember the names of the characters or the title. The cartoon is drawn in the style of He-Man, but it's too long for a regular He-Man episode, it's a cartoon movie.

Though at the time I saw it I did not know it, this would be called "anime" today. It was in English, and I don't remember if the characters lips matched the audio track. I couldn't have been older than about 3rd grade, so that puts it around 1985ish I believe.  It was released theatrically in the United States, I do not know if it was a limited release. I saw it in Cincinnati, Ohio. No idea what movie theater chain.  The story was rather typical, young man who goes on the hero's journey. Definitely science fiction elements (flying vehicles, maybe spaceships). He comes across or is given a sword hilt without a blade. He learns to use it, and when he does it acts as if the blade is there. At the finale, he has lost the hilt entirely and, thinking that he has lost, almost gives up. But a (voice in his head, his mentor, can't remember what) something tells him to try despite this, and it's as if he has the sword even without the hilt. He then triumphs.  Can anyone identify this movie?


When I try to print from Gimp, it only shows print to file.  It offers none of my printers.

When I used Linux Mint earlier I never faced a problem with printing on GIMP (because it was installed and configured by default).  When I used Ubuntu 18.04 LTS, I installed GIMP 2.10 from the software center. Everything is working fine on GIMP except printing.  The GIMP print window does not list my printer (or any other printer). I can only see:     Print to File   Print to LPR     I tried couple of troubleshooting tips without any success. I'm sure that the problem is from GIMP because I can print from Chrome /Firefox and from PDF reader without any problems.  PS: I don't know if this help but in the software center I found printing documents permission disabled for GIMP. I tried to enable it, but it gets automatically disabled again every time.    Any info/tips are highly appreciated.


LaTeX and Plain TeX are formats for TeX and they ease creating document. But can we create documents using only TeX? I couldn't find any pure TeX sample.

all the LaTeX-tutorials tell me how LaTeX is an extention simplifying the building of TeX documents. Understandably, no one uses plain TeX anymore, right?  But I seem to learn better when I grasp the link between TeX and LaTeX. Does someone have a link to example files in plain TeX? I'd like to know which commands, macros etc. are LaTeX-specific.


I unblocked an old friend on Facebook and right after I tried to add them back. However, the "Add Friend" button is not available on their page anymore.    I can send a message and we have over 15 mutual friends. Why is this happening and how can I fix it?

An old friend and I have 18 mutual Facebook friends. Until a month ago, I could have sent him a friend request, as the button to add friend was there.   Then all of a sudden, the "add friend" button is gone, although there is still a button to send message. I am not blocked from his page, I just can't add as a friend.   How is it possible that the Add Friend option has mysteriously disappeared when we have so many mutual friends on Facebook and the only privacy settings for "who can send you friend requests" are "everyone" and "friends of friends"?   I should add: 3 months ago I sent him a friend request, which he declined at the time, but after that the "add friend" button was still there. I never sent another request. The add friend button has been there all along until, like I said, it just strangely disappeared like literally overnight!


My current tube was badly pierced by a screw in the street, so I wanted to replace it with a new one. The tire is a Continental 32 - 622 (28 x 15/8 x 1 1/4 - 700 x 32c), so I bought a 28" tube, exactly . (Actually I said in the shop that my tire was a 700 x 32c and they gave me the 28", which made sense at the point).  Then, when I put it in the wheel, it was obviously too long (excess length). How comes? Shouldn't a 28" tube fit perfectly a 28" tire? I got a 26" tube and it fits better. I'm very confused.  PS: The pierced tube was also too long, as it was folded. It's a second hand bike and it's the first time I've taken the tube out in 4 months.

I've recently changed the default 700x35 tires and 35mm Schrader inner tube to 700x25 slicks with 25mm Presta inner tubes.  However whilst fitting the new tire and inner tube, I noticed that the inner tube had about an inch or two of excess length to it. This mean I had to tuck it into the tire, doubled back on itself.  I've doubled checked the inner tube packaging and it's definitively for a 700 diameter rim.  I presumed that it would sort itself out when I pumped up the tires. Is this normal?


I built a method that returns a specific value, and this value is taken from a arraylist.  This value is being printed on my listview, so I'm calling the method on my listview adapter.  But sometimes (not always), my app crashes, because something happens with the arraylist.  Its really weird because this issue only happens sometimes.  Could you guys please tell what do I need to change on my code to run properly?   Errors:     java.util.ConcurrentModificationException                                                                                at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573)  at com.example.*****.getCountry(MySQLReceiver.java:124)   My code  public int getCountry(int receiveUserId){      for (Users user : getAllUsers()) {          if (receiveUserId == user.getUserId()) {              userCountry = user.getUserCountry();          }      }      return userCountry;  }   Thank you.

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


I have seen that we can implement multiple inheritance in ANSI C?  As we can create any class like  struct sampleClass {     int size;     struct sampleClass *ptr1; };   As I tred to create class and want to implement inheritance. Can you give me some idea how to implement that?

What are some ways to write object-oriented code in C? Especially with regard to polymorphism.    See also this Stack Overflow question .


When I want to stop tail -f I press CTRL+C and return to prompt. But when I run ssh connection the CTRL+C breaks the connection. (meanings of flags described )  ssh -t svf "cd ~/w/logs; tail -f some_file.log; exec $SHELL -l"    post does not describes how to prevent remote shell to exit for ssh -t remotehost command args ...  How to stop command (in this example tail -f) with CTRL+C and do not break ssh connection?

When I start an SSH session that executes a long-running command, what happens with Ctrl+C (SIGINT) handling? I can see that the SSH session is closed, but I am not sure who gets the SIGINT first: is it...  the remote long-running command? that is, (a) the signal handler in the remote command is called and stops the remote command, (b) the shell that spawned it detects that the command stopped, and stops as well (c) the remote sshd detects the shell stopped, so it closes the connection or  the local ssh receives the signal, and closes the connection.   I think that (1) is happening, but want to make sure. I am also uncertain about what happens with shell handling of SIGINTs in this case. For example, if I ... ssh remote 'while true ; do sleep 1 ; date ; done'  and Ctrl+C, then the remote connection is dropped. Is there a way to run the remote command under a shell that will stay alive after Ctrl+C? That is, in this case, stop the loop and allow me to keep working on the remote shell?


Here are my codes :     Everytime I try to save something using the function writeAll(ArrayList liste), the application crash. Here are the logs :   `E/AndroidRuntime: FATAL EXCEPTION: main                   Process: com.example.naabi.listeserie, PID: 3459                   java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.FileOutputStream android.content.Context.openFileOutput(java.lang.String, int)' on a null object reference                       at com.example.naabi.listeserie.dao.SerialisationSerieDAO.writeAll(SerialisationSerieDAO.java:58)                       at com.example.naabi.listeserie.descriptionMrRobot.onSaveInstanceState(descriptionMrRobot.java:260)                       at android.app.Activity.performSaveInstanceState(Activity.java:1414)                       at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1300)                       at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4541)                       at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4492)                       at android.app.ActivityThread.-wrap19(ActivityThread.java)                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1483)                       at android.os.Handler.dispatchMessage(Handler.java:102)                       at android.os.Looper.loop(Looper.java:154)                       at android.app.ActivityThread.main(ActivityThread.java:6119)                       at java.lang.reflect.Method.invoke(Native Method)                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)`   I try to use the function by tilting the phone.

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


I recently found the plans for a  that requires .  Where can I find that legendary crafting material?

My boulder barbarian would love some Reaper's Wraps but they require . I've found various other crafting plans that require legendary materials.  Where can I find Reaper's Fear and other legendary crafting materials? Are there places to farm these materials or is it all luck of the draw?


How occurs the  of the mirror?  I would like to know how occurs the RELATIONS OF THE RAYS with the mirror and the image, everything that happens to be flipped image from the right to the left.

Why is it that when you look in the mirror left and right directions appear flipped, but not the up and down?


When I bought new Airpods 2nd gen, the firmware it came with was 1A673. The volume level on my android phone (OnePlus 6T) when connected was quite loud and everything was good.  But when I connected my Airpods to my iPad with iOS 13.1 the firmware on these got updated to 2A364 and then when connected to my android phone, music volume started getting low. I tried with other android phones too.  But the thing is during the phone calls the volume comes out loud but low only on music or videos.  How do I fix this?


The title stands for itself.  If it is not possible, how does LaTeX import an EPS file using \includegraphics?

I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the TeXWorks frontend, but I can't insert an .eps image file, it seems the \includegraphics macro its only for LaTeX, so I can't use it, any idea on how to insert an image when using plain TeX?


I once saw a movie(sci-fi/fantasy) that I can't remember, but I know I liked it. I was really small and can't get any of the plot back together, but it was fairly old-ish movie (my guess would be 70's ~ 90's).   The only clues I remember are:   Hairy legged horses (like furry legs) Star-like metal weapon that appeared multiple times Group of people going from A to B, looking for something One of the heros was a cyclops that died during the film by being squeezed between rocks It wasn't animated.   If it rings any bell to anybody it would mean the world to me. Thanks a lot!  EDIT:  Somebody marked my question as duplicate of . While it points towards the same answer, the question was different. I didn't remember any teleporting castle and therefore my question wasn't answerable simply by using search.

I remember seeing a movie when I was younger, but can't find it online because I can't remember a whole lot about the story.  What I do remember is there was a group of soldiers trying to catch this castle that appeared only during the day and at the start of each new day it would teleport to a new random location.  I also remember the main character having this neat little flying blade disk that reminds me of something from the Predator movies that he could control with his mind.  Again I can't recall a lot about the movie, but if it sounds familiar I would be grateful.  Also it seems like at one point there were horses that ran so fast they caught fire!


"I am different from/than you." (I am not similar to you.)  Is one usage more correct than the other? Or are they two different usages that could mean two different things?  The answers to the other question cited describe the history of the expressions"different from" and "different than," but not the differences in meaning.  I believe that Nanigashi's and Andrew Leach's comments most nearly approximate the correct answer.

Somehow I got the impression that "different to" (almost entirely unknown in America) is a locution that originated in the 20th century, and that "different from" is far older. Then I found "different to" in one of the Sherlock Holmes stories by Arthur Conan Doyle. Some (most?) of those were written in the 19th century, and all were written by a native speaker of English who reached adulthood before 1880. "Different than" seems like a far more recent locution, but again I don't know its history. I dislike "different than", but I've noticed that its use makes possible some efficient expressions that might not be possible otherwise (right now I can't remember any).   Is "different to" in fact a far newer locution than "different from"? If so, did it originate in the 19th century? Has "different from" become non-standard usage in some places where the vernacular language is English?


I just got a question closed because it was rendered subjective by the moderators. The question is important to me and I believe other people would benefit. So, I ask the following non subjective question: on which site of the Stack Exchange ecosystem should I post  question?

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?


I'm starting to use multiple programming languages and sometimes the syntax for things trips me up. I would like to be able to Google "How to write a for loop in Optoscript" and have a relevant answer show up in Google just like every other major language, but this does not always work. I thought that Stack Exchange would be a good place to ask that kind of question (and post the answer from the manual that takes forever to load) but figured I'd ask on Meta first. Should I post these questions? To what stack should I post them?

Background  Okay, so I've figured out that obscure programming language are okay to ask about on Stack Overflow.  And, I know a bit about the language  used to code Medical Logic Modules (MLMs). But I am knowledgeable only within the context of Allscripts .  I don't need to ask questions for my own benefit, but would like to see MLM coding resources become more widely available on the internet and am considering doing some seed work by asking and answering some questions on Stack Overflow.  Questions   Is it okay to ask (and answer) questions about a programming language that may be specific in its flavor to a single manufacturer's product? I don't even know how much Arden is used in other products besides SCM, and in what ways it differs from other products. So my answers will likely step outside the bounds of plain Arden and be slanted toward SCM. Assuming yes, should I tag these questions with all of , , and ? The language is actually Arden Syntax, but MLM is often used as a synonym despite not being the name of the language (as in "write an MLM" or "MLM coder"), and SCM is a product name. But, I see parallels to for example  which is a particular manufacturer's product. Except, SCM itself isn't something that would necessarily bring to mind "ahhh, you're talking about Arden Syntax, of course!"   All in all aside from the tagging aspect I'm guessing I'm probably in the clear, but thought I'd go ahead and ask before I start creating questions and answers with new tags no one has ever heard of.  Update  See the new meta question, .


How can I update  Adobe Flash Player. My YouTube video is not working.

I am having problems with Adobe Flash in Ubuntu, what are my options?


I have the following CSOM code:  Group group = web.SiteGroups.GetByName(subsitename);                      List<FieldUserValue> currentgroupUsers = new List<FieldUserValue>(); foreach (User user2 in group.Users) {      currentgroupUsers.Add(***********); }   So how I can convert/cast a User object to FieldUserValue object?

I have a field in a list that accepts an SPFieldUser object. I have an SPUser object that I would like to populate that field with, but I cannot implicitly convert from one to the other.  How would I do this conversion?


We all know the $n$th prime can be approximated by.  $nln(n)$    by Prime number theorem. We also got inequalities for the estimate .  But my question is what is the best possible estimate for $n$th prime under all the necessary strong assumptions like Riemann hypothesis?

I know from papers like Dusarts's that $$n\left(\ln n +\ln \ln n -1+ \frac{\ln \ln n -2}{\ln n}-\frac{\ln^2 \ln n -6 \ln \ln n +12}{2 \ln^2 n}\right) \leq p_n \leq n\left(\ln n +\ln \ln n -1+ \frac{\ln \ln n -2}{\ln n}-\frac{\ln^2 \ln n -6 \ln \ln n +10}{2 \ln^2 n}\right) $$  But could any one give and explicit number $n_0$ for which for all $n \geq n_0$ the above inequalities hold true ?  It does not have to be the smallest one, also if there is way, could you please show me how to get this number   I read a paper that estimate that the $n_0 \approx 3.9*10^{31}$ under the R.H. if we don't assume R.H. could we still have $n_0 \ll 10^{100}$  Thanks in advance


I'm trying to install Ubuntu 18.04 on my computer. I have an SSD and an HDD. I want to install the Ubuntu root / on my SSD (and my swap too), but install my /home on my HDD.  I didn't find how to do it during the Ubuntu install, so I installed Ubuntu on my SSD and I'm trying to move /home to my HDD.  What I have done:  Created an ext4 partition for my newHome with GParted. Then sudo mount /dev/myNewPartition /media/stockFolder Then sudo cp -av /home/. /media/stockFolder    I'm in trouble because Alt+F2 and gksudo nautilus don't work (command not found), but I need it to rename /home in /oldHome and then mkdir /home and mount /dev/myNewPartition /home and cp -av /media/stockFolder/. /home  If there is a solution to do it during installation it would be nice. Please help me to run gksudo nautilus?

I've read a lot of threads about gksu being removed from many Linux flavours, including Ubuntu 18.04.  Many state that gksu is an abomination and no user should ever need to use anything like it.  I have 2 examples where, as far as I know, I must have something that allows me to run as root (not just for editing files).    First, I have a need to start mysql only after an encrypted folder is opened on (GUI) command.  This means having a script run by the encryption system that starts the mysql service.  That has to be done as root, so I use gksu in that startup script which asks me for a password.  How else can I start a service from a GUI system?  I also run Ubuntu system backups as root, otherwise many system files can't be backed up.  So the desktop file uses gksu to start the backup.  pkexec looks complicated, needing policy files.  Is that the only alternative, and if so, why is it any safer?  Other answers to similar questions don't seem to address individual issues that people have now that gksu is no more (or harder to find...).  I think such questions from non-expert users would benefit from more detailed answers.  I now have some, and so would like to answer my own question.


I want to bring PC + PS, in a separate flight though.  Can I carry it as hand-luggage or check it in as luggage and mark it as fragile? Do I need to pack it with special box (maybe wooden box)?  Or is it depend on destination and departing country?

On an upcoming trip, I will be taking a desktop computer and monitor as checked luggage (on a United/Continental flight). What should I be aware of when doing this? What needs to be done to properly protect all the components? Are there any airline policies I should be aware of?


I recently played in a Standard draft at Friday night magic and I was informed that there are certain specific sets of cards that can be used in Standard.  I am aware that Modern includes all standard cards also. what I want to know is how can you distinguish which cards you can use in standard?  Is there any symbolisation for a standard card? As the markers in the right hand side of the creature type line such as M14 and so on seem to not make much difference.

I haven't played Magic: the Gathering since the days of Onslaught and Mirrodin, and I would like to try to catch back up. Since all my cards are quite dated now, I may be more interested in formats other than the most up-to-date one.  Rather than ask what is currently legal in various formats (since that is likely too localized), I would rather pose the question of how can I tell which sets/cards are legal in each format.


After compiling the following document the footnote  appears as   .   But I would rather like to have a footnote below  (i.e., the footnote numbering and the text of footnote align and to have a . after the numbering) : What are the possible ways to have this behavior?   Hello   \documentclass{book}  \begin{document}  Hello\footnote{Hello}  \end{document}   edit:   I have applied the solution given by henrique in the link provided in a comment:  \makeatletter \renewcommand\@makefntext[1]{%  \hspace*{-2em}%  \parindent 0em \noindent \hb@xt@ 1.8em{\hss  \@thefnmark. }%  #1} \makeatother   There's the option of putting \hss before or after \@thefnmark, aligning the footnote marks to the right or to the left, respectively. I have just modified the number  \hspace*{-2em}  in that code for my particular document.

I want the footnote mark to be superscripted in the text body (e.g. Footnote mark²), but normalsize in the foot, to be shown like:  ________________ 2. Some footnote text   Also, it would be nice if the mark appeared hanging in the left margin, like     ________________ 2. Some footnote text   (That is recommended by Bringhurst in his Elements of Typographic Style)


So this little board when connected to 5v and GND start blinking different colors in different orders and with different timing for colors to stay on!  There is nothing on the board other than the LED and a resistor! How on earth does the LED know when to turn on/off? and how do the colors change? Please note, this is not an RGB LED.     Please see the schematics .

I have a few 3mm color-changing LEDs which I harvested from a toy. They fade in between all different colors, and then after a little while, they blink crazily between all the colors. After a few moments, the cycle repeats.  What is interesting about them (and what I wasn't expecting) is that they only have two leads, like a normal hobbyist LED.   I understand that, like an RGB LED, they have multiple elements (probably not the right word) inside. But how do they achieve the color changing and cycling?  Here is a picture of the LED in question:    Notice the little bit of black material inside the LED. Could this possibly be a tiny chip?


I'm trying to create an equation in LaTeX, however, there seems to be a gigantic white space that is rather unsightly. Here's the code I'm using:  \[ x=a\sqrt[n]{1-\left(\dfrac{\sqrt[n]{\dfrac{\sqrt[2-n]{\left(\dfrac{a}  {b}\right)^{2n}}}{\dfrac{1}{a^n}+\dfrac{1}{b^n}\left(\sqrt[2-n]  {\left(\dfrac{a}{b}\right)^{2n}}\right)}}}{b}\right)^n} \]     Is there a way to shorten the braces and root so that they look somewhat closer to this?

The following MWE:  \documentclass[]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}  \begin{document}  \begin{equation} \dfrac{dN}{da}=\dfrac{1}{C}\left[\dfrac{\cos\left(\dfrac{\pi a}{W}\right)}{\pi a\Delta\sigma^2}\right]^{m/2} \end{equation}  \end{document}   which is extracted from a much larger document produces the following result:   How do I fix the vertical spacing of the item within the bracket which has the huge space underneath the denominator of the fraction?


I have a text layout in Photoshop that is very precisely arranged. Is there a way to recreate this layout in InDesign without too much work?  Tips, tricks, scripts, are appreciated.

I'm using Photoshop CS6 to make a label and I need to convert all layers to InDesign CS4. I've never done this...is it possible?


As the question states, if all of Voldemort's Horcruxes were destroyed and only his mangled spirit that flew to Albania remained, could he have returned to physical body?

Say for instance, Voldemort is just chilling in Albania, possessing snakes and having fun when, out of the blue, some mad man destroys his Horcruxes?  Considering that he is already on 'earth' would the destruction of his Horcruxes push him to the other side? Or are Horcruxes only needed to tether you to 'earth' upon death? Just something that exists to stop you progressing but once stopped you won't be pushed on until you die again.   What would happen to him?  For the purposes of this question we shall assume that all fragments of Voldemorts soul currently encased or attached to anything are destroyed


Various editors like gedit detect if the file is changed and asks to reload it. Sometimes in vim when I got many files to edit, I sometimes end up opening same file in different tabs for quick look with other files and several other reasons.  So is there anyway I can force to reload the current file before I update anything to it.  I know one option is to exit and reopen it, but I have splitted the screen and I don't want to loose that view.

I have a config-file that I keep open in vim, but that sometimes gets changed on disk, without these changes being reflected on the terminal. Can I refresh the content on the screen without closing and re-opening the file? If so, how?


While exception log investigation I've faced a strange behavior for exception callstack when using throw; for re-throwing catched exception.  For example  string callstack1, callstack2; try {     try     {         // some code throwing exception      }     catch (Exception ex1)     {         // deal with exception         callstack1 = ex1.StackTrace;         throw;     } } catch (Exception ex2) {     // handle exception     callstack2 = ex2.StackTrace; }   In this example I was expecting the same value for callstack1 and callstack2 variables. But saved callstack information pointed me at throw; instruction inside catch block. It could be expected behavior if I use throw ex1;, but I don't.  I've used the same simple code to check this behavior on two remote computer,  but I got different results. The  works as expected (the same callstack for original and re-throw exception). The  displays completely different callstack for re-throw exception so there is no chance to get original stack trace.  Did anyone faced this problem before?  And the main question is how to preserve original callstack when re-throwing exception?  Thank you in advance!

I am calling, through reflection, a method which may cause an exception. How can I pass the exception to my caller without the wrapper reflection puts around it? I am rethrowing the InnerException, but this destroys the stack trace. Example code:  public void test1() {     // Throw an exception for testing purposes     throw new ArgumentException("test1"); }  void test2() {     try     {         MethodInfo mi = typeof(Program).GetMethod("test1");         mi.Invoke(this, null);     }     catch (TargetInvocationException tiex)     {         // Throw the new exception         throw tiex.InnerException;     } }


There are $n$ beads placed on a circle, $n\ge 3$. They are numbered in random order as viewed clockwise. Beads for which the number of the previous bead is less than the number of a next bead are painted in white color,and others - in black.  Two colorations that can be made equal by rotation are considered identical. How many different colorations can occur?

There are $n$ beads placed on a circle, $n\ge 3$. They are numbered in random order as viewed clockwise. Beads for which the number of the previous bead is less than the number of a next bead are painted in white color,and others - in black.  Two colourations that can be made equal by rotation are considered identical. How many different colourations can occur?  I've write a programm and for $n=3...11$ I've got answers $2 , 1 , 6 , 7 ,  18 , 25 , 58 , 93 , 186$


I recently got a "This Apple ID has been disabled for security reasons" message on all my apple devices. I've have since performed the obligatory password reset process and everything seems to be in working order again.  I'm very curious as to why my account was "disabled for security reasons" and was wondering if there was a way to suss this out. I'd really like to know if any of my email addresses or passwords have been compromised.  According to searches, it seems like one reason this can happen is a lot of failed login attempts. I haven't manually logged in for ages, though. Is there a way to see login attempts to ones account?  It doesn't look like there are any suspect devices that have logged in to my account, or any suspect items in my purchase history (viewed through ). I don't think my account was actually breached, but more information would be very welcome.

I just bought apple iPhone 4s from my friend but it throw an error "This Apple ID has been disabled for security reasons" is it possible that i change apple ID during this state? Or  is there any other way to change it?


I have a piece of code in Java that I have been struggling to understand what is the time complexity... In the best case scenario I believe it might be O(n) and the worst case probably O(n^2) because it could go in recursion for n times... Is this right??  All the other methods are O(1)  public void associateblocks() {     Block block = head;     while (block != null) {         Block block2 = block.getNextBlock();         if (block2 != null) {             if (block.getSize() == block2.getSize() && block.isFree() && block2.isFree()) {                 block.setSize(block.getSize() * 2);                 block.setIndex((block.getIndex() - 1) / 2);                 block.setNextBlock(block2.getNextBlock());                 associateblocks();                 freeBlocks.remove(block2);             }         }         block = block.getNextBlock();     } }

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


How would you convert a European String date "13/05/2015 12:00:00 PM" to a JavaScript Date object? Remember that the Date constructor expects the year or the month to come first, not the day.  We need to swap the day and month before creating the Date, but I'm after a better way than string manipulation and I'm not inclined to use a 3rd party library.  Ideas?

How can I convert a string to a date time object in javascript by specifying a format string?  I am looking for something like:  var dateTime = convertToDateTime("23.11.2009 12:34:56", "dd.MM.yyyy HH:mm:ss");


How to prevent spamming in Cpanel / Linux server ?

This is a  about Fighting Spam.   Also related:                    There are so many techniques and so much to know about fighting SPAM. What widely used techniques and technologies are available to Administrator, Domain Owners, and End Users to help keep the junk out of our inboxes?  We're looking for an answer that covers different tech from various angles. The accepted answer should include a variety of technologies (eg SPF/SenderID, DomainKeys/DKIM, Graylisting, DNS RBLs, Reputation Services, Filtering Software [SpamAssassin, etc]); best practices (eg mail on Port 25 should never be allowed to relay, Port 587 should be used; etc), terminology (eg, Open Relay, Backscatter, MSA/MTA/MUA, Spam/Ham), and possibly other techniques.


So I'm making this Lego figure for college and I'm having trouble with the UV mapping. It looks fine in textured view but in rendered view it displays wrong.  This link contains an images of the textured and rendered parts so you can see the difference.    Might be an easy fix but I'm just plain stupid when it comes to blender.  Any help would be appreciated!

In my 3d scene view, with display mode set to "textured", my texture looks fine. But when I render it the texture stretches all over the place. All my settings are at default, just a single sun object for lighting.


What is it about the word "team" that makes it uniquely take the preposition "on" ?  And yet, the word "club" is similar in meaning; and we can be in a club.

Is the following sentence grammatically correct: "Alice on our team has been excellent in managing tasks."  I'd rather substitute "from" or "in" instead of the "on" in this sentence. Can someone please help me understand which usage is correct in this example.


edit: Is there a way to accomplish the below without using the flalign environment? As I mentioned in my question, I know that it is possible to achieve what I'm asking using the flalign environment. This environment however, cannot be wrapped in a newenvironment and so the solution can't be automated. Does anyone know of another solution method?  My question is simple. I'm trying to create an equation environment that will tag an equation with both custom text and an equation number. The text should be flush left and the equation number flush right. It should look like the following.  (customTxt)                      1 + 1 = 2                                 (1)   The custom text is generated by a complicated command that does some arithmetic with counters. The equation number is just \theequation as usual.  I can certainly accomplish this using e.g. flalign:   \begin{flalign}   \mycommand && 1 + 1 = 2 && \end{flalign}   However, I can't seem to wrap this into a newenvironment. This appears to be a known issue about align cf  or . I'm working on a very long document and every equation needs to be marked like this. I'd really like to have some sort of custom equation environment that sets this up for me:   \begin{myEqn}{\mycommand}   1 + 1 = 2 \end{myEqn}   Can anyone offer suggestions? edit How do I define a shortcut or command to do this succinctly? Every time I use this command, the parts  \mycommand && ... &&   will always be the same. Is there any way to automate this? The trouble is that the solution given in the referred-to questions will not work in a \newenvironment command.

I want to label a block of equations like that:    The "AB" should not inflict the central alignment of the formula. I saw it a lot, but do not succeed on my own. Do I need to build boxes?  I used the alignat environment for the formula.


I was hoping to get some help in understanding the solution provided below. I understand that the integral will evaluate to $\frac{1}{n!}$, however, my uncertainty lies in how the integral is setup. I am not sure how we use $C$ to setup the integrands. Why would it not be $${\int_0^1 \int_0^{x_n} \dotsb \int_0^{x_3} \int_0^{x_2} \int_0^{x_1}} ds_1 ds_2 \dotsc ds_n?$$. Let $C$ be a set in $n$-dimensional space and let   $$Q(C) = \underset{C}{\int\!\!\dotsb\!\!\int} dx_1 dx_2 \dotsc dx_n.$$  If $C = \{(x_1, x_2, \dotsc, x_n) : 0 \le x_1 \le x_2 \le \dotsb \le x_n \le 1  \}$, then   $$Q(C) = {\int_0^1 \int_0^{x_n} \dotsb \int_0^{x_3} \int_0^{x_2}} dx_1 dx_2 \dotsc dx_n = \frac{1}{n!}.$$

Compute $n!\int...\int_{0<s_1<...<s_n}ds_1...ds_n$.   Before that, I were to show that $$\int...\int_{0<s_1<...<s_n}f(s_1,s_2-s_1,...,s_n-s_{n-1})ds_1...ds_n=\underset{0<x_1,...,x_n \\ x_1+...+x_n<1}{\int...\int}f(x_1,x_2,...,x_n)ds_1...ds_n $$ which I did using a change of variable theorem.   I don't know, however, how to apply it here, if I better apply here. I generally don't know what the bounds for each integral are. I could really use some help.