I am currently using the changes package to track some modifications in a document, along with the siunitx package for number formatting.   Whenever I try to have a \SI{}{} call iside a \replaced{}{} or \deleted{} call, pdflatex throws me an error though the ouput file seems fine.  This issue does not seem to be documented, either in the user manual or on the git repo.  Here is a MWE to illustrate the issue  \documentclass[]{article} \usepackage{changes} \usepackage{siunitx} \begin{document} This is a new length of \SI{8}{\meter}; This is a new length of \deleted{\SI{8}{\meter}}. This is a new length of \replaced{\SI{8}{\meter}}{\SI{3}{\meter}}. \end{document}   Any idea how to remove this error, as it does not seem to impact the result ?  EDIT :

I'm trying to record some changes using the changes package - I've already done a lot of the text, and had to work around display maths but I've got a simple value typeset using siunitx, and changing that value doesn't appear to work:  \documentclass{article} \usepackage{siunitx} \usepackage{changes} \begin{document}     \replaced{\SI{1}{\volt}}{\SI{2}{\volt}} \end{document}   gives:  ! Extra }, or forgotten \endgroup. \UL@stop ...z@ \else \UL@putbox \fi \else \egroup                                                    \egroup \UL@putbox \fi \if... l.5 ...\SI{1}{\volt}}{\SI{2}{\volt}}   If I continue to compile (getting the same error again and 2 missing } inserteds, the output is actually exactly as expected:    adding \protect before the \SI gives exactly the same error, and of course trying \SI{\replaced{1}{2}}{\volt} was never going to work:  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! siunitx error: "invalid-token-in-number" !  ! Invalid token '\let ' in numerical input. !  ! See the siunitx documentation for further information. !  ! For immediate help type H <return>. !...............................................     Is there some workaround that will get this to run without errors?  I don't really want to run in nonstopmode in case of "real" errors, and besides, I used a build script that's designed to stop on errors.


I have ssh configured for my system. It was working perfectly but now I'm able to ssh or sc to other systems but other systems are not able to ssh or scp to my system it shows connection timed out error. Please Help.

I'm trying to setup openssh-server, but I'm having some issues connecting. I changed the port to something non-standard (57757) and then set my router to forward to that port. On my LAN, I'm able to ssh into my machine fine using port 57757, but not able to do so on the WAN.   If I'm outside the LAN, and I try to access my machine by an incorrect port, I immediately get a "connection refused" message. However, with the correct port it just hangs and then timeouts.   What can I try to debug the issue? I tried a traceroute, but it didn't tell me anything useful.  EDIT: I realized that my problem was that my router didn't support accessing it by WAN IP internally. I ssh'd out to a different server and back in and it worked fine.


I know that you are able to do this in the command line with python. By simply entering "python3" in the terminal you can write and run python code on the spot. Is there a way to do this with java in the command line as well without having to first create a file and then changing directory to it, and then using vim/nano to edit the file, and then typing javac and java to run the file?

Is there something like python's interactive REPL mode, but for Java? So that I can, for example, type InetAddress.getAllByName( localHostName ) in a window, and immediately get results, without all this public static void nightmare() thing?


Here I have two examples of accessing global variables; basic example of my global variable   globalVar:any={  a:5,  b:3,  c:4 }   Ex.1  function accesVar(){  return this.globalVar.a*=2 }   Ex.2   function accesVar(){     let _var=this.globalVar.a;     return _var*=2     }   In this example global variable doesnt seem a good practise and I dont use them when I dont need to share  variables with more than one function.Considering in general and real world(much bigger data),which would be best approach and has better performance?

CPU Cycles, Memory Usage, Execution Time, etc.?  Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code runs?


I have the following script (alert.sh) which has been setuid'd:  DISPLAY=:0.0 notify-send --urgency=low -i python "The job has finished"   and the following PHP file alert.php:  <?php echo exec("/path/to/alert.sh")   When I su to www-data and run php alert.php, I get an alert on my screen. All good.  However, when I open alert.php in the browser, nothing happens.  I suspect some environment variable needs to be set, but I'm not sure which.

Once upon a time,  DISPLAY=:0.0 totem /path/to/movie.avi   after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop.  Now it gives the error:   No protocol specified Cannot open display:    I reinstalled Debian squeeze when it went stable on both computers, and I guess I broke the config.   I've googled on this, and cannot for the life of me figure out what I'm supposed to be doing.   (VLC has an HTTP interface that works, but it isn't as convenient as ssh.)  The same problem arises when I try to run this from a cron job.


I've recently discovered Curiously Recurring Template Pattern and started experimenting with it. It turns out that some of the objects created with these classes take more space in the memory than they actually need. Here's a sample code: #include <iostream>  struct _Base {     void* ptr;     _Base(); };  _Base::_Base(): ptr(nullptr) {}  template<typename T> struct Base: public _Base { private:     Base();     friend T; };  template<typename T> Base<T>::Base(): _Base() {}  struct Derived: public Base<Derived> {     int i;     Derived(int i = 0); };  Derived::Derived(int i): Base<Derived>(), i(i) {}  int main() {     Derived d;     std::cout << "sizeof(_Base): " << sizeof(_Base) << '\n';     std::cout << "sizeof(Base<Derived>): " << sizeof(Base<Derived>) << '\n';     std::cout << "sizeof(Derived): " << sizeof(Derived) << '\n';     std::cout << "sizeof(int) + sizeof(Base<Derived>): " << sizeof(int) + sizeof(Base<Derived>) << '\n';     return 0; }  This is the output that I got (I compiled it with gcc and Visual Studio compiler and the output is the same): sizeof(_Base): 8 sizeof(Base<Derived>): 8 sizeof(Derived): 16 sizeof(int) + sizeof(Base<Derived>): 12  _Base class has a field of type void* so it should take 8 bites of memory (and it does indeed). Base class has no new fields added, so the size doesn't change. But when we take a look at Derived class, its size should be equal to 12 (int typically takes 4 bites and pointers take 8 bites). But the output says, it's actually equal to 16. My question is: Does the cpp standard allow objects to take more space than needed (presumably for optimization and easier memory management purposes)? Or is it just a bug in my code that I've missed?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


I am exactly mid-way in my PhD in computer science. Is this the right time to start looking for a post doc?

My earliest PhD graduation date is 10 months away. Funding permits me to stay 1–3 months longer, so the final date is still uncertain.  It is never too early to make contacts for possible post-docs. But how long in advance is too early to formally apply to post-doc job openings or funding opportunities? Depending on the bureaucracy, the path from applying to starting can probably be anything from a week up to a year — someone I know is applying with  which had the opening advertised in August, application deadline in October, will have interviews in December/January, and the commencement of work only in September, 13 months after the initial job advertisement. My personal guess is that the long time between interviews and starting is to create a level playing field between those who do and those who don't need to go through a visa application procedure.  If I'm too early in applying for a post-doc, a hosting institution might prefer someone who can start earlier and where the graduation date is more certain. For example, in my case the graduation date is still uncertain, so there is a risk in accepting even if they are willing to wait. Project funding might also require the money to be spent rather soon.  If I wait too long, there might be a considerable period where I'm between jobs. Having a long (>6 months) period between jobs is a disadvantage for me. Maybe it's also a disadvantage for a hosting institution (I'm not sure).  How do I find the balance? For example, considering the duration of funding and visa applications, does it make sense to apply e.g. ? Or is it in any case virtually inevitable to have at least several months before my PhD graduation and the start of a post-doc?


Can someone explain what this does? This is a generics question but since I'm learning in Java I tagged it as Java.  public static <T extends Comparable<? super T>> void quickSort(T[] list) {...}  What I don't understand is this part: <T extends Comparable<? super T>>  I have tried looking at  but it doesn't seem to explain it in a clear way.  My guess is: the genetic type T extends the Comparable interface which itself requires a generic type to be a superclass of a generic type. But I don't really understand this.

I thought I understood Java generics pretty well, but then I came across the following in java.lang.Enum:  class Enum<E extends Enum<E>>   Could someone explain how to interpret this type parameter? Bonus points for providing other examples of where a similar type parameter could be used.


Given a public key on the P-256 Curve is it correct to say that the public key is 64 bytes long ie. (x,y)?  Secondly is the private key 32 bytes long? if so, how is the private key generated and why is it shorter than the public key?

Total Crypto Noob here.  I was wondering why in ECDSA the Signing Key is so much (half of) shorter than the Verifying key?  Lets look at some python code:  import ecdsa import binascii signing_key = ecdsa.SigningKey.generate(curve=ecdsa.SECP256k1) verifying_key = signing_key.get_verifying_key() print(binascii.hexlify(signing_key.to_string())  print(binascii.hexlify(verifying_key.to_string())  b'662ab496304f2d99aca32d813dbcba3c3ae10ab2b3359fbe43b05ee40b458cec' b'6632feae645469c16cb31d7e1364cae247bd4322040d7089476614399bcf59b2fccf5060686ab09ee64e1b768ba037184e9a87001a4897a745721f99000b44ee'   lets assume I send verifying keys over the network or store them someware, it would be nice if they were not so long. Is there a way to compress them?  I assume it would be really bad to use the keys vice versa, but I don't understand why.


To start with I'm not completely understand what $\mathbb{Q}^m$ is. Is it the number of all elements in $\mathbb{Q}$ that was taken to some power $m$?  To show that two sets have the same cardinality we must introduce a map $f: \mathbb{N} \longrightarrow \mathbb{Q}^m$ that would be a bijection, but I got stuck with it. Can someone please show me a proof or give a hint?

I remember my professor in college challenging me with this question, which I failed to answer satisfactorily: I know there exists a bijection between the rational numbers and the natural numbers, but can anyone produce an explicit formula for such a bijection?


Is it okay to favorite one's own question in the hopes that it will influence people's voting?

Is this just a redundant act, or are there differences?


So I've got a bit of an issue trying to get qBittorrent to start on boot. I'm running 16.04.  I've tried to start it by using a crontab @reboot, but this unfortunately didn't work. Any ideas on how to get this to work?

How can I make an application automatically start when I have logged in?


I currently have a rack mount kit for a HP ProLiant DL380 G4 server however we have a HP ProLiant DL380 G6 server, will a rack mount kit for a HP ProLiant DL380 G4 fit a HP ProLiant DL380 G6 server?  or wil i have to buy a separete mount kit for this server?

I just got an HP Proliant DL380 G5 server (it's actually Cisco branded, but I don't think that matters), without the rack rails. I'm trying to learn some server architecture and use it as a basic server. I am looking for some rails to mount it in my rack.  What are the differences of the rails between generations? I see a lot of G6 rails with the cable management arm for sale; is it backward compatible with the G5? Or, do I need to seek out a G5 rail specifically?  If the differences are minor enough, could I simply mod the rails? (e.g. drill my own holes).


I've had this question for a while now and it's: How big is Ancalagon exactly? I mean, I've looked over thousands of explanations but it keeps on changing. So I'm asking now, how big exactly is this dragon?  I don't know if this is mentioned in The Silmarillion but I just wanted to see if there is an exact calculation.

Questions like  dealing with Ancalagon in particular, and Middle-earth's dragons in general, clearly show that Ancalagon was ridiculously, absurdly, unimaginably enormous.      The non-canonical image above shows one person's impression of how the different dragons of Middle-earth stacked up, with Smaug looking absolutely tiny at the far left, and Ancalagon on the right, too big to even fit in the picture.    Below, a presumably canonical picture, painted by Tolkien himself, shows Smaug in relation to Bilbo.  The rough measurements I took from this image suggest that Smaug is about 11 times longer than Bilbo is tall.  Depending on how tall Bilbo is - almost certainly somewhere between 3'6" and 4' tall - Smaug is approximately 38-44 feet long.      If the first picture is even vaguely accurate, Ancalagon would appear to be a minimum of something like 720 feet long from the tip of his nose to the end of his tail:  the visible portions of his head and body are at least 6 times longer than Smaug is from end to end, and we have to assume that the portion of his body that is out of frame is at least 3 times longer still, perhaps even 4 times or more (so the upper range of his length might exceed 1,000 feet).  Does Tolkien give us any way to estimate how big Ancalagon was?  It isn't his normal practice to describe things in great detail, I realize, but he often gives a few hints that allow for some rough approximation to be made.  Does anything he says suggest that the first image is anything like what he had in mind?  Note:  I haven't read anything about Ancalagon from Tolkien's own pen, except a few quotes on this site;  the most important bit of information I've gleaned is that he smashed 3 volcanoes to pieces when he died (or something like that).  How accurate is this, and what else did Tolkien say?    This question is not a duplicate of "", because none of the answers to that question address Ancalagon's size in any detail - except my own, which is based on what little information I was able to glean from the two pictures I included in this question.  All the other answers address how Ancalagon was killed, not how big he was.  I have no interest in how he died, only how big he was, or rather, what hints we can find that might give some indication of how big he was.  I wouldn't ask this question, linking that question in my own, if it contained the information I am interested in.    Note 2:  Regarding the relative sizes and impressiveness of Smaug and Ancalagon:  Imagine a meeting between Smaug and Ancalagon in Dragon Heaven: Smaug: "How'd you die?" Ancalagon: "A flying boat full of fire made by the Angels and driven by a Magic Elf smashed into me, so I fell onto a mountain and broke it, and I died. The Magic Elf lives in outer space now, and the boat turned into a star. How'd you die?" Smaug: "Um... Some dude shot me with an arrow."


Here is my code. I run it in ubuntu with terminal. when I type (a CtrlD) in terminal, the program didn't stop but continued to wait for my input.  Isn't CtrlD equal to EOF in unix?  Thank you.     #include<stdio.h>  main() {     int d;     while(d=getchar()!=EOF) {         printf("\"getchar()!=EOF\" result is %d\n", d);         printf("EOF:%d\n", EOF);     }         printf("\"getchar()!=EOF\" result is %d\n", d); }

I am studying for an exam and I am confused as to how canonical vs. non-canonical input/output works in Unix (e.g., curses).  I understand that there is a buffer to which "line disciplines" are applied for canonical input.  Does this mean that the buffer is bypassed for non-canonical input, or does it simply mean that no line disciplines are applied?  How does this process differ for input and output operations?  In the curses programs I have worked with that demonstrate canonical input, the input typed by a user is automatically entered either after a certain number of characters have been typed or a certain amount of time has passed.  Are either of these things considered "line disciplines" or is this something else entirely?


I have earned the Peer Pressure Badge on my question on Stack Overflow. The question title is, "Setup And Deployment By Reading Bios Of User System". I don't know why I earned this badge; is there something wrong with my question? Did I do anything wrong with peers?

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


Suppose we have a system with a set of axioms. Now we begined to define new terms. E.g. in maths we have a particular set of axioms and then we define what a function is. But do all the functions automatically start to exist? For example, did the exponential function came into existence because we defined the term function? Or it was already there and we just give a name of what function is so we can say that exponential function is a member of the set of functions? Example Consider now the statement "All functions are even". Where does the "all functions" refer? All the functions that exist? If no function exists then the term "all functions" fail to refer. So should we prove existence before we assign a truth value to that statement? I have read also the post  But I am asking why in a given system with axioms the the objects we assign properties are already exist so we have not the problem of "fail to refer".

Do numbers have an objective existence? If life had not evolved on planet earth would there be numbers or are numbers an invention of human minds?  Are there any relevant works that discuss this? (I know of Husserl's Über der Begriff der Zahl and Frege's Grundlagen der Arithmetik already; are there any other notable discussions of this theme?)


After applying product to sum formulae, I got this far $$\frac{\Bigl(1+2\cos(20)\Bigr)\Bigl(\cos(140)+\cos(20)\Bigr)}{8}=\frac{1}{16}.$$ How can I proceed further?

I should prove this trigonometric identity. I think I should get to this point : $\cos(3x) = 4\cos^3 x - 3\cos x $ But I don't have any idea how to do it (I tried solving $\cos(x+60^{\circ})\cos(x-60^{\circ})$ but I got nothing)


I have accounts in both U.S. (several banks) and Canada (BMO). I have $500,000 in my U.S. account. If I am now leaving U.S. permanently and moving to Canada, what is the best way to transfer all of them to my Canadian account?   (Once I leave, I will not be permitted to re-enter the U.S. due to visa situations.) Here are some difficulties I thought about:   Bad exchange rates charged by banks Transfer Fees If I transfer that large amount, will either U.S. or Canada government get me into trouble?

I have a USD account with Bank A in Canada.  I have a CAD account with Bank B in Canada.  I would like to transfer USD money from Bank A to Bank B as CAD.   What are the options available  to do this so as to get best rates?  Am I just limited to the service that bank offers?


I want to make a communication between my fragment and main activity so I need to get switch.isCheked but get:     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference   MainActivity.java  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new NotesFragment()).commit();         BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);         final   NotesFragment notesFragment = new NotesFragment();         final   RemindersFragment remindersFragment = new RemindersFragment();         final   SettingsFragment settingsFragment = new SettingsFragment();          final Switch aSwitch =    settingsFragment.getView().findViewById(R.id.switch_pop_up);          bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {             @Override             public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {                 Fragment selectedFragment = null;                  switch (menuItem.getItemId()) {                     case R.id.action_notes:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Your Notes", Toast.LENGTH_SHORT).show();                         selectedFragment = notesFragment;                         break;                     case R.id.action_reminders:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Your Reminders", Toast.LENGTH_SHORT).show();                         selectedFragment = remindersFragment;                         break;                     case R.id.action_settings:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Settings", Toast.LENGTH_SHORT).show();                         selectedFragment = settingsFragment;                          break;                 }                 assert selectedFragment != null;                 getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,                         selectedFragment).commit();                 return true;             }         });     } }   SettingsFragment.java  public class SettingsFragment extends Fragment {      Switch switch_pop_up;     boolean stateSwitchPopUp;     @Nullable     @Override     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {          View v = inflater.inflate(R.layout.fragment_settings, null);         switch_pop_up  = v.findViewById(R.id.switch_pop_up);           return inflater.inflate(R.layout.fragment_settings,container,false);     } }   I think it is because of :  final Switch aSwitch = settingsFragment.getView().findViewById(R.id.switch_pop_up);   How can I fix this?

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'd like to display a grey rectangle behind text, so that certain parts of the text are more recognisable. I will do this to highlight problems' body.  I found various packages, like fancytooltips or tcolorbox but I feel they're too complicated for what I'm trying to achieve.  Ideally it would be a simple grey rectangle, just like what you get when you add a quote on Math.SE:    The special left border isn't even necessary. What's the simplest way to achieve this?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far.  For example \fcolorbox{} from xcolor cannot highlight an entire paragraph; \hl{} from soul leaves out spacings between lines uncolored.  I am wondering how I can do this?


I have a custom module (using Drupal 7) that adds a page using hook_menu(). Its callback just prints the value returned from theme('mytheme_hook').  If the content of my template file is simply 'hello world' I get only a white screen with the text output.  Is it possible for this page to extend the theme's html.tpl (and even page.tpl) with 'hello world' inserted in the 'content section' of the page?   looks like a similar thing I am trying to achieve, but it doesn't offer a solution.

What would be the cleanest way to route URLs to functions and return only the HTML output from those functions (a.k.a. the menu callback)?  If I use hook_menu() the string that's returned will be the HTML within the rest of the site. I want the page to display only the string returned from the menu callback.  Should I use drupal_set_header() in the same way drupal_json() does? Is this not inefficient having fully bootstrapped Drupal, and then changing the header at the last minute?  I want the fastest code path possible since this is going to be for widgets on external sites.  I could start with a standalone .php file and bootstrap what I need but the hook_menu routing is nice.    How should you do this?


When I try to run VMware, I'm getting     Unable to change virtual machine power state: This host supports AMD-V, but AMD-V is disabled.   AMD-V might be disabled if it has been disabled in the BIOS/firmware settings or the host has not been power-cycled since changing this setting.

I am running on a dual core AMD E450 CPU. When I tried to run a 64-bit OS that requires hardware virtualization using VirtualBox, it showed me an error message that "AMD-V is not enabled".    My AMD processor is supposed provide AMD-V support, but I can find no option for enabling AMD-V in BIOS.    How can I solve this problem? How can I enable AMD-V for my CPU?  Thanks in advance  lscpu :-  Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                2 On-line CPU(s) list:   0,1 Thread(s) per core:    1 Core(s) per socket:    2 Socket(s):             1 NUMA node(s):          1 Vendor ID:             AuthenticAMD CPU family:            20 Model:                 2 Stepping:              0 CPU MHz:               1650.000 BogoMIPS:              3291.72 Virtualization:        AMD-V L1d cache:             32K L1i cache:             32K L2 cache:              512K NUMA node0 CPU(s):     0,1   EDITED:-  Error message from VirtualBox:-  Failed to open a session for the virtual machine XXX.  AMD-V is disabled in the BIOS. (VERR_SVM_DISABLED).  Result Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}


I am using this code to return the contents of the php file but it doesn't work for some reason.   <?php include (get_stylesheet_directory_uri() . '/inc/serv_night.php'); ?>

The question was asked many times in many ways, but unfortunately is not covered well in most of the answers. I'm having the same issue doing things using include-files.  In my TwentyFourteen child theme's functions.php I used:  require_once get_stylesheet_directory_uri() .'/admin-panel/theme-options.php';   And I'm using . I've used it in many of my projects, the same way mentioned here, without having the error. But recently I'm having the issue in several of my projects. If I take the code to functions.php then everything's fine. But it's occurring only when I'm trying to include/require external file.  I'm having the error:     Fatal error: Call to undefined function add_action() in C:\xampp\htdocs\project\wp-content\themes\my-theme\admin-panel\theme-options.php on line 2   In this case I'm having the error using a child theme (of T14). But even in one of my parent theme I'm facing the issue. But in the same environment my other projects are running well with all the includes and/or requires (where several add_action()s are defined). I'm having issues in ALL the add_action() calls, like CPT assigning, Custom Taxonomy assigning etc. But I'm successfully developing another two projects including external files from inc/ folder where all my CPTs are assigned and their meta boxes too.  I tried reinstalling WordPress, deactivating all my plugins, tried from Child Theme, tried only the same thing by modifying TwentyFifteen (applying default theme), tried require(), require_once(), include(), include, require_once, and require one after another with failure. And I'm using WP 4.1.1 in all the good and problematic installs.  Majority of the previous questions are answered with a simple line:     As the message says, you haven defined the function add_action() and yet you're trying to use it.   But,   how come (isn't it already defined by WordPress)? and why it's differing project to project in the same environment (How come it's out of the scope now only in particular project[s])?


This question is very similar to: .  But will VirtualBox 5.0.10 run fine on the latest version of Windows 10 (ver. 1511, 10586)?  I am running Windows 7 64bit on my host machine with VB 5.0.10 - but am going to upgrade, but don't want to lose my machines (1.25 TB worth).

I am trying to install virtual box v4.3.28-100309 on a Windows 10 Host. The windows 10 insider preview installed is build 10130. When I try to install the virtualbox exe I am getting the following error:  Status: Rolling Back action:    And after this I get a dialog box:  Oracle VM Virtualbox 4.3.28 Setup Wizard ended prematurely    I am running Windows 10 on a i5-core processor with 8GB Ram machine and not a virtual machine.


If $A$ is $m \times n$ matrix with rank$(A)= 1$. How do we show that   $$A^2 =\lambda A$$  for some $\lambda$?  How do we show this? All I could show is that if rank$(A)=1$ then rank$(A^2)=1.$  Am I heading in the right direction?

Let an $n \times n$ complex matrix $A$ having rank $1$.  Prove that $A^2 = cA$ for some scalar $c$.  What I know is that all matrices having rank 1 have rows based on a scalar multiple of the other. This should probably be enough to figure out a very simple proof but I've been out of academic pursuits for 15 years and am having a hard time shaking the dust off.


I am training 3D data with multi-class 3D target ground truths(9 tissue labels) for segmentation. Using dice Loss and focal dice loss as loss criterion.  Updating optimizer every second batch (gradient accumulation) in PyTorch. What could be the reason for the fluctuating loss, instead of a smooth loss curve? Also, the dice score seems steady after 70%. I need to know how to improve that and what could be done in general.  Hyperparams: 100 epochs 1e-3 learning rate U-net 3D architecture optimizer = torch.optim.Adam(model.parameters(), lr=learning_rate, betas=(0.9, 0.999))

I use LSTM network in Keras. During the training, the loss fluctuates a lot, and I do not understand why that would happen.  Here is the NN I was using initially:   And here are the loss&accuracy during the training:   (Note that the accuracy actually does reach 100% eventually, but it takes around 800 epochs.)  I thought that these fluctuations occur because of Dropout layers / changes in the learning rate (I used rmsprop/adam), so I made a simpler model:   I also used SGD without momentum and decay. I have tried different values for lr but still got the same result.  sgd = optimizers.SGD(lr=0.001, momentum=0.0, decay=0.0, nesterov=False)   But I still got the same problem: loss was fluctuating instead of just decreasing. I have always thought that the loss is just suppose to gradually go down but here it does not seem to behave like that.  So:   Is it normal for the loss to fluctuate like that during the training? And why it would happen? If not, why would this happen for the simple LSTM model with the lr parameter set to some really small value?   Thanks. (Please, note that I have checked similar questions here but it did not help me to resolve my issue.)  Upd.: loss for 1000+ epochs (no BatchNormalization layer, Keras' unmodifier RmsProp):   Upd. 2: For the final graph:  model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy']) history = model.fit(train_x, train_y, epochs = 1500)   Data: sequences of values of the current (from the sensors of a robot).   Target variables: the surface on which robot is operating (as a one-hot vector, 6 different categories).  Preprocessing:   changed the sampling frequency so the sequences are not too long (LSTM does not seem to learn otherwise); cut the sequences in the smaller sequences (the same length for all of the smaller sequences: 100 timesteps each); check that each of 6 classes has approximately the same number of examples in the training set.   No padding.  Shape of the training set (#sequences, #timesteps in a sequence, #features):  (98, 100, 1)    Shape of the corresponding labels (as a one-hot vector for 6 categories):  (98, 6)   Layers:    The rest of the parameters (learning rate, batch size) are the same as the defaults in Keras:  keras.optimizers.RMSprop(lr=0.001, rho=0.9, epsilon=None, decay=0.0)      batch_size: Integer or None. Number of samples per gradient update. If unspecified, it will default to 32.   Upd. 3: The loss for batch_size=4:    For batch_size=2 the LSTM did not seem to learn properly (loss fluctuates around the same value and does not decrease).  Upd. 4: To see if the problem is not just a bug in the code: I have made an artificial example (2 classes that are not difficult to classify: cos vs arccos). Loss and accuracy during the training for these examples:


I have parent lwc component and nested child components which have the same custom styling. I want to create css in the parent and use these classes in the child components. How can I do it?

Say we have a LWC with the following template in a component named example:  <template>     <lightning-textarea class="test"></lightning-textarea> </template>   And some css to go with it:  .test textarea {     min-height: 500px; }   The expected behavior is that the lightning-textarea will be 500px tall because the nested textarea has been made 500px tall.  The actual behavior is that nothing happens. The reason for this is that the compiled css will be:  .test[c-example_example] textarea[c-example_example] {     min-height: 500px; }   And the compiled (relevant parts of the) html will be:  <lightning-textarea c-example_example lightning-textarea_textarea class="test">     <textarea lightning-textarea_textarea></textarea> </lightning-textarea>   It's obvious that the  has scoped the textarea element to its parent, lightning-textarea and not our example component. This is an issue because the CSS processor has appended [c-example_example] not only to the .test part of the selector, but textarea as well.  It makes sense that CSS would be scoped downward, which is how Aura components handled scoping, but in LWC it's actually entirely isolated, so neither parent nor child elements can target it.  Is there any way around this? Or plans to support targeting child components? Being able to override and tweak the CSS of the standard component library was a very handy feature of Aura components, allowing customized appearances without having to rewrite the base component from scratch.  On top of that, this means that you can't reuse your own components in different contexts, giving them different styles in each. The component itself must be responsible for  all of its styling. While this is possible it requires a lot of conditional class assignments which is frustrating.


I have a textarea, which should be resized to the scrollHeight when it is loaded. I have no problem with key events to resize the textarea like this:  $scope.resize= function (event) {                         //Auto size:      var element = typeof event === 'object' ? event.target : document.getElementById(event);      var scrollHeight = element.scrollHeight - 60;       element.style.height = scrollHeight + "px"; }   But I can not resize it, when the element is loaded. I tried with $element and $element[0], but I noticed that the height of $element is 0. And I don't want to fit the height by window height (I can get window height by $window). Is there any way to get the element.height and element.scrollHeight after loading the element in angular?

There was , which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the clientHeight value comes back as the full size of the textarea, not its contents.  The code from that page is below:  function FitToContent(id, maxHeight) {    var text = id && id.style ? id : document.getElementById(id);    if ( !text )       return;     var adjustedHeight = text.clientHeight;    if ( !maxHeight || maxHeight > adjustedHeight )    {       adjustedHeight = Math.max(text.scrollHeight, adjustedHeight);       if ( maxHeight )          adjustedHeight = Math.min(maxHeight, adjustedHeight);       if ( adjustedHeight > text.clientHeight )          text.style.height = adjustedHeight + "px";    } }  window.onload = function() {     document.getElementById("ta").onkeyup = function() {       FitToContent( this, 500 )     }; }


So I have completed the thieves guild main story, I returned the key and everything, but I want to fully complete it. So I go back to the guild and try to take influence jobs to eventually become guild master, but I completed one numbers job for Delvin in Whiterun and turned it in, but now it won't give me any more job quests. I talk to both Delvin and Vex and go through the dialogue where they say here's your quest but it doesn't come up in my journal at all, and it's like i didn't ask them... someone please help with this bug? I am a completionist and this is bugging me. pun intended.

I completed enough thieves guild radiant quests to get a "special" job from Delvin.  I talked to Delvin to get the special job, and there was nothing added to my quest log.  Now every time I get near him he tells me my work has been noticed and that we got a special job, but I can't get a dialog to appear with him.  When I talk to Vex, she says I have to complete Delvin's special job before I can get anymore work.  Knowns.   Quest is not in my log. Reloading a previous save game is not an option. I left Riften and did another series of quests and was gone for about a week of game time. The main quest line is complete. The thieves guild (nightingale) quest line is complete, though I may not have the thieves guild armor anymore as I preferred the dark brotherhood gear. It is on the XBOX 360, so the console is not available.   Any suggestions?


I have an array that randomly gets a coin put into it (denominations: 0.01, 0.05, 0.10, 0.25). The array is a Double array. It seems to work, but at times values get added that look like this:  [0.050000000000000003] [0.050000000000000003, 0.01] [0.050000000000000003, 0.01, 0.10000000000000001]   I'm not sure what I'm doing wrong to have these extra zeros show up.  Thanks in advance for any help.

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


When I write "test" in latex (TeXStudio), I get this:    Clearly this is not what quotation marks should look like. There are a lot of answers on stackexchange about this question, but the ones I've seen seem pretty complex. What is the easiest and quickest way to get them to look properly without me having to go through my entire document and change any quotation marks?   ps. Why is this the default behaviour of quotation marks in Latex? It seems to me that nobody would ever want this.

The standard way of writing quotes and double quotes in LaTeX is with `` and '', but I find them quite ugly. Isn't there something similar to \emph{}, but for quotes? I mean something like \quotes{quoted text goes here}.  I've been looking but couldn't find any, maybe you guys can.


Assume I have written two MATLAB functions foo.m and bar.m   I want to know if foo.m calls bar.m  I tried using depfun and listing dependencies and checking if bar is a member. It didn't work.  It seems depfun only returns builtin functions.  Is there a way around this when bar.m is not a built in function?

In order to distribute a function I've written that depends on other functions I've written that have their own dependencies and so on without distributing every m-file I have ever written, I need to figure out what the full list of dependencies is for a given m-file. Is there a built-in/freely downloadable way to do this?  Specifically I am interested in solutions for MATLAB 7.4.0 (R2007a), but if there is a different way to do it in older versions, by all means please add them here.


Bit of a random thought, as publishing in either is good of course. I do not intend to demean anyone who has published in special issues.  I can think of pros and cons from one to the other:  Special issues may get more exposure from people searching within a collection. However, these tend to be offered through invitation, which often or not, the submitted paper may less likely be rejected. This means the quality has a potential to be of lower standard.  Regular issues in this instance may be harder to get accepted, especially in high impact journals, as many researchers will try to submit their work to the journal. Would this mean some people view special issues from invitations as a "free paper"? Where publications in regular issues may be more "genuine"?

Some journals bundle relevant papers on a currently hot topic into special issues. As far as I know, potential manuscripts must be specifically submitted for inclusion in special issues rather than the journal itself (or get selected from conference proceedings).  In my field, special issues tend to have shorter review periods which makes them interesting venues. I have heard that special issues tend to have lower impact than regular journal issues, though I am not sure if this is factual. Do special issues usually meet the same standards as regular issues?  Is there any difference in prestige in publishing in special issues vis-à-vis publishing in regular issues? Do hiring committees make meaningful distinctions between both types?


I have two long vectors (both of the same size=12000 and each of them contains variance values). I want to perform Wilcoxon test to test if the variances in the first vector are different than the second vector. As the vectors are of long size, I had to use the normal distribution approximation. Simply, I used matlab's ranksum function which calculates the test p-value.  My quesiton is: I got good p-value (9.9e-72) which is almost 0. I thought that the test is very strict and I would get higher p-value (0.01 more or less). Is this value that I got correct or I missed some thing to perform the test correctly?

I am running into a problem where an independent variable, which should have no predictive power on the dependent variable based on domain knowledge, comes out with very small p-value because the sample size is very large(~100,000). If I only use < 5000 data points, then the p-value becomes large enough to support the prior that the variable is insignificant. However, I don't think tweaking the sample size to get to the desired conclusion is a good practice. Is there any procedure to adjust for small p-value simply due to huge sample size?


When I play as a single Imposter, alone against 9 crewmates - I rarely win games. I kill one crewmate at a time, adding time to the game, but usually the dead body is reported before my kill cooldown expires. It takes ages for the imposter to win and making it stressful and risky as well. Crewmates always sus me, and I don't know how. What if 3 crewmates are considered safe, and it's only me left? All in all, how can 1 imposter kill all the crewmates without being sussed out? I even camp vent.

I love playing as The Impostor, however I am not good at it. Most of the time one of the following happens:  I self-report a body and lose because it's obvious who was with the body I run away from the body and someone reports it and lose because I'm running away from it I am caught venting and voted out  Sometimes, I am lucky and get away with it, but it's pretty unique that it will happen. Is it me, or are these strategies bad? If they are bad, what's a good straightforward useful strategy?


I've tried everything to find and delete these 'other' files:  rebuilding spotlight index using ncdu using "professional" disk utility apps like omnidisk disabling/deleting local snapshots deleting my cloud drive (I use pCloud and I really thought this was the issue as currently spotlight can't access its files, so it would have put them in other) repair disk through disk utility  Any other advice? I have a 2015 mac pro.

Every few days I get notices on my MacBook that it's running or run out of hard drive space. Curiously, restarting the computer will enable me to recover gigabytes of space (this past time, it was able to recover about 2.2GB). However, I can't identify anything in my personal activity that consumed that space.  It's possible that it's a rogue iTunes podcast or a huge software update that my Mac is automatically downloading - would either of these reclaim the space upon a restart?  One possibility that I can think of is that FileVault has some sort of disk leak, allocating but not freeing files. Does this make sense? Is there a tool that I can run to determine where this space is going? Assuming it is FileVault, should I try to disable it? What's the best way to turn of FileVault on a nearly full computer?


I have what I think is a rather simple statement here  {{ (content.field_url.0)|replace("http://","") }}   but then I get an error     Warning: strtr() expects parameter 1 to be string, array given in   twig_replace_filter() (line 482 of   vendor\twig\twig\lib\Twig\Extension\Core.php).   twig_replace_filter(Array, 'http://', '') (Line: 57)     Changing it up a little  {{ (content.field_url.0)|replace('http://',"") }}   and then I get this error     Warning: Invalid argument supplied for foreach() in   Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 148   of core\lib\Drupal\Core\Asset\LibraryDiscoveryParser.php).     One more change up  {{ (content.field_url.0)|replace({'http://':""}) }}   and this returns nothing, nada, no value at all.

I have a Link field named field_my_link (machine name).  Within a Twig template I can get the link's URL value with this:  {{ node.field_my_link.uri }}   If inside the Link's URL there is an external URL, e.g. http://example.com it works good.  But, if inside the Link's URL there is stored an internal URL, e.g. "/node/11", I get a value like this:  "internal:/node/11"   with the "internal:" prefix.  How can I get the valid URL?  For example, if the link's URL is "http://example.com" I want "http://example.com" (this already works), if the link's URL is "/node/11" I want the relative URL "/node/11", if the link's URL is "<front>" I want the URL "/", etc.    EDIT  I can get the value I want within a PHP preprocess function, using this:  $url = $variables['node']->get('field_my_link')->first()->getUrl();   How can I access the same value within the Twig template?  I know I can do this within the preprocess function:  $variables['my_url'] = $url;   Then access the url within Twig using {{ my_url }}, but I would avoid to write a preprocess function each time I have a link field.


I'm using vim + omnisharp/syntastic for some unity3d development in C#.  When I declare a variable using the actual type, for instance   string[] myArray = new string[5];  I get a warning message telling me to use the 'var' keyword instead.  Is there any reason for that (i.e. performance, established code style, etc) ? Are there any pros/cons ?

After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var?  For example I rather lazily used var in questionable circumstances, e.g.:-  foreach(var item in someList) { // ... } // Type of 'item' not clear. var something = someObject.SomeProperty; // Type of 'something' not clear. var something = someMethod(); // Type of 'something' not clear.   More legitimate uses of var are as follows:-  var l = new List<string>(); // Obvious what l will be. var s = new SomeClass(); // Obvious what s will be.   Interestingly LINQ seems to be a bit of a grey area, e.g.:-  var results = from r in dataContext.SomeTable               select r; // Not *entirely clear* what results will be here.   It's clear what results will be in that it will be a type which implements IEnumerable, however it isn't entirely obvious in the same way a var declaring a new object is.  It's even worse when it comes to LINQ to objects, e.g.:-  var results = from item in someList               where item != 3               select item;   This is no better than the equivilent foreach(var item in someList) { // ... } equivilent.  There is a real concern about type safety here - for example if we were to place the results of that query into an overloaded method that accepted IEnumerable<int> and IEnumerable<double> the caller might inadvertently pass in the wrong type.  var does maintain strong typing but the question is really whether it's dangerous for the type to not be immediately apparent on definition, something which is magnified when overloads mean compiler errors might not be issued when you unintentionally pass the wrong type to a method.


This is an exercise from Rudin's Real and Complex analysis pg 58. I have been stuck as to    What the support of a measure even is. Originally Rudin defines it on a compact Hausdorff space, but since $\mathbb{R}$ is only locally compact how does this definition extend. How to define a positive linear functional $\Lambda$ that would help generate this measure?     I have already seen the other post  about the same question and not only is the poster much farther than me the hint doesn't really give me any insights as to how to solve it.

I have tried to prove the exercise 2.12 in Rudin's RCA:     12 Show that every compact subset of $\Bbb{R}$ is the support of a Borel measure.   For perfect (i.e. no isolated point) compact $K$ with non-zero Lebesgue measure, we just take the Lebesgue measure. However I struck on the general case.  My attempt is as follows: For every compact $K$, we can find a decreasing sequence of open set $\langle W_n\rangle_n$ s.t. $\bigcap_n W_n =K$ and $m(W_n-K)<1/n$. Find a continuous function $h_n$ s.t.   $h_n(x) = 1$ for $x\in K$ and $h_n(x) = 0$ outside of $V_n$.   (such function exists by Urysohn's lemma.) For continuous function $f$ with compact support define $$\Lambda f = \lim_{n\to\infty}\frac{\int_\Bbb{R} fh_ndm}{\int_\Bbb{R} h_ndm}.$$  I can not certain that the $\Lambda$ is well-defined. But if it is well-defined, then it gives an regular Borel measure (by Riesz representation theorem) $\mu$ s.t. $\mu(K)=1$. I guess that the $\mu$ has a support $K$ but I don't know how to get it. Thanks for any help!


I am trying to make sense of luminosity, hue, saturation and color. I read this online: Hue, saturation and value together make a color. But hue is also the term for pure colors like red, green, violet etc. I guess my questions would be: which one is it? and is luminosity same as brightness? and also called value?

Can any of my graphics designer friends explain HSB to me? I know it's hue/saturation/brightness and I know what those three do (for the most part)...   I understand the algorithm of creating colors behind RGB, but what about HSB? The hue is just the colors radial position on the color wheel right? But what do saturation and brightness do? (I know one washes the color out (towards grey) and the other lightens or darkens the color...) but what do they do on the color wheel? Hue is radial position? I'm assuming brightness says whether the color location is closer to the center of the wheel or closer to the edge of the wheel, but then where does saturation come into play?   Also, is black even on the color wheel? Or is it actually like a color cylinder where the center travels from white (on the bottom face) to black (on the top face) and saturation chooses the z-position of the color location?  What I'm really trying to understand is, in different lighting would my skin (assuming it's all almost the same color) always have about the same hue but different brightness, and on cameras with different exposure would my skin always have the same hue but different saturation?


for dir in equil[0123] could iterate over folders of equil0, equil1,equil2 and equil3. But if I have folders with name number more than 10, e.g. equil23, how to properly refer to them? How the separator is recognised in equil[0123]?

What is the difference between a[bc]d and a{b,c}d? Why do people use a{b,c}d when there is already a[bc]d?


Common problem, yet this time I can't seem to figure it out: the pagination at my search.php is not working, it sends me to the index page the moment I click on "page #"  My search.php is set up like described by  wordpress  :   <?php global $query_string; $query_args = explode("&", $query_string); $search_query = array(); foreach($query_args as $key => $string) {     $query_split = explode("=", $string);     $search_query[$query_split[0]] = urldecode($query_split[1]); }  $search = new WP_Query($search_query); $total_results = $search->found_posts;  if ( $search->have_posts()) :      echo $total_results;     wp_page_numbers();  while ($search->have_posts()) : $search->the_post();     get_template_part( 'content', get_post_format() ); endwhile; ?>   Then the pagination function in functions.php:  function wp_search_numbers() { global $wp_query, $wp_rewrite; $wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;  $pagination = array(     'base' => @add_query_arg('paged','%#%'),     'format' => '',     'total' => $wp_query->max_num_pages,     'current' => $current,     'show_all' => true,     'type' => 'list',     'next_text' => '&raquo;',     'prev_text' => '&laquo;'     );  if( $wp_rewrite->using_permalinks() )     $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );  if( !empty($wp_query->query_vars['s']) )     $pagination['add_args'] = array( 's' => get_query_var( 's' ) );  echo paginate_links( $pagination ); }   The pagination on index, taxonomy and other custom pages work fine. I have tried several things, like adding:     // Pagination fix     $temp_query = $wp_query;     $wp_query   = NULL;     $wp_query   = $custom_query; But that changes my search results to zero. Also tried resetting the permalinks, which didn't change anything. And I removed the $wp_query = new WP_Query(); and went for the general query_posts( $args ); without any change.  The strangest thing is that I just found out, it's not for all the numbers in the pagination.  If I do a search query with a results of 15 pages: Page 3 and 8 - 15 work, but not page 2 - 5.  Could anyone tell me in what direction I should look for the error?

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


Basically, I want to have this text appear in chat: "Click Me!" When the text is clicked, I want a command to appear in the player's chat box (by chat box I mean the place where you type stuff in chat). Does anybody know how to do this? I assume it is done using the tellraw command, but I don't know how.

I am trying to make clickable text in Minecraft in the chat box. It was used in the adventure map, "UP".   The idea is that you are given an option in the text to click, "Yes", or "No". Each word will give an output of a command.  How is this achieved?


What if user remove question text after getting answer of the question.  Here is the question I have recently answer.    What should we do if user delete question text.

If a user keeps  (thus making the answer meaningless), what should we do? Rollback the edit (what if the user just deletes the code again)? Delete the question?  More examples (same user): ,  (see also edit histories).


The below sample graph was created using R, for an example I came across while reading (on Distribution of time until customer x arrives):  t <- seq(0,1,0.01) ft <- 100*t*exp(-10*t) plot(t,ft,type="l", xlab="T", ylab="f(t)") title(main=expression(paste("Probability density function of ", Gamma(2,frac(1,10)))));   The graph looks like a Percent Point Function, even though it isn't exactly.Am trying to understand on how I interpret it, but am not getting it.  Can someone help on how to read the above plot?  Thanks, -Kamal.

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


I am running Ubuntu 12.04 on a 64 bit Dell Machine. My speakers are working fine, but my headphone jack just isn't making any sound. I am dual-booting with Windows 7 using Grub as the boot-loader. The sound is working fine in Windows 7 for both headset and speakers.   I have a 7.1 Surround Sound Headset and 2 output jacks. Neither of these 2 jacks seem to work in Ubuntu. The speakers mute like they are supposed to, but there is no sound trough the headset.

I have a dell studio 1749. I just installed 12.04 on a dual boot with windows 7 (The stereo sound and headphones work perfectly when booted into windows, sound turned up before booting into Ubuntu). The stereo sound seems to be working fine. The headphones, not so much.   My computer has two headphone jacks. When I put my working headphones into the first jack, the stereo sound is muted but there is no sound in the headphones. When I put my headphones into the second jack, the stereo sound is still there and no sound comes out of the headphones. Two different problems?  I first tried the sound troubleshooting found . There seemed to be no problems. However, I'm not positive that my sound cards were on the list. It was a little convoluted for my noob self. I've tried the commands listed  but there were no changes. I've also brought up the alsamixer. The headphones don't appear to be muted or anything. I don't know how to switch to the second sound card and check that one, though.   Any help would be greatly appreciated!


What is the significance/meaning of ii at the beginning of the output of  dpkg --list    command?  dpkg --list | grep firefox   for example, returns ii firefox together with other information.

I frequently need to check which packages are installed, and I use the following command:  dpkg -l | grep foo  which gives the following output  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                       Version         Description ii   foo                       <version>         <description>    What does the ii mean?  What other flags are there? How to read the flags? (because the explanation is quite complicated, IMO)   Thanks.


I remember there was a command that you can call in Ubuntu's terminal to get a very simple text based User Interface to go through directories. I believe you can call the command and then use your arrow keys to navigate directories. If anyone knows what that command is, or has heard of something similar, that would be appreciated!

I would like to know if there is something like DOS interface for Ubuntu. I mean a "GUI" that can run from the console (for example if you are using Ubuntu Server). Some file explorer like Nautilus but in console.


Let $A$ and $B$ be $n \times n$ real matrices such that  $A^2 = I, B^2 = I$ and $(AB)^2 = I$.  Prove that $AB = BA$.  Someone help me with this problem

Matrix Question  If $A^2 = I$, $B^2=I$ and $(AB)^2=I$, then $AB = BA$  Basically, got up to $A(BA-AB)B = 0$ (by cancelling and equating terms from $I^2 = I$ and to $A^2B^2 = A^2B^2$ and using distributive laws), but that doesn't work out too well!  Thanks for help in advance!


Since yesterday I am not getting anymore notifications when someone replies to a comment. Before I was getting the red circle beside "inbox" tag.  Anyone knows if it's due to some reason or it's happening from time to time?  btw: even when I reload the page I don't see new notifications and the inbox isn't updated. The new received comment is visible though.

How do the comment replies (aka "pinging users") work?  Who can I send an @reply to? How do I respond to a specific user when entering my comment? Will they be notified? What do people mean when they talk about "pinging" another user?  Related:


I have Ubuntu 16.04 and my gnome-terminal does not work (I cannot do "run from terminal"). I have xterm, and when I try to run:  gnome-terminal   I get:  Traceback:    File "/usr/bin/gnome-terminal", line 9, in <module>      from gi.repository import Glib, Gio ModlueNotFoundError: No module named 'gi'   I tried to reinstall:  sudo apt update sudo apt install gnome-terminal   but it did not help.  What can I do?

I just tried to install python 3.6 on my Ubuntu 16.04 system, and now I can't run the terminal from the launcher or from Ctrl + Alt + T. I tried to run gnome-terminal from XTerm and got the following message:  Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in <module>     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>     from . import _gi ImportError: cannot import name '_gi' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in <module>     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>     from . import _gi ImportError: cannot import name '_gi'   How can I fix this error?  It should also be noted that:   My gnome-terminal file is now a python script. The gnome-terminal.real file will open the terminal as expected. python3.5 gnome-terminal will open the terminal as expected.


In some papers, for example in  by Klotz, a Geometric Distribution is called a Geometric Density.  For me, this claim looks erroneous, however Klotz is a serious statistician and a professor in the field.  My question is, to what extend is it legitimate to call a Geometric Distribution a Geometric Density?

Usually a probability distribution over discrete variables is described using a probability mass function (PMF):  When working with continuous random variables, we describe probability distributions using a probability density function (PDF) rather than a probability mass function. -- Deep Learning by Goodfellow, Bengio,  and Courville  However,  is using PDF to describe the probability distribution over discrete variables:    Is this a mistake? or it does not much matter?


Haven't been able to find how to do this without an IDE (got this far without one).  I have a couple libraries I imported into my code, here are a few examples.  import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.DataFormatter; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory;   I have the following file structure:   root dir = RackSerials    sub dir lib - where all .jar import files are included  sub dir tdms - all my .class files    I tried including all the .jar files in my manifest  Main-Class: tdms.rackserials Class-Path: lib.commons-collections4-4.2.jar lib.commons-compress-1.18.jar lib.json-20180813.jar lib.json-simple-1.1.1.jar lib.poi-4.0.0.jar lib.poi-ooxml-4.0.0.jar lib.poi-ooxml-schemas-4.0.0.jar lib.xmlbeans-3.0.1.jar   However if I move my JAR to another computer (that does not have the required libraries installed) it errors out with:  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory   I found this NOTE in another thread.. so how do I include those other JAR files (the imported libraries) to make my package portable?     Note: The Class-Path header points to classes or JAR files on the   local network, not JAR files within the JAR file or classes accessible   over Internet protocols. To load classes in JAR files within a JAR   file into the class path, you must write custom code to load those   classes. For example, if MyJar.jar contains another JAR file called   MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's   manifest to load classes in MyUtils.jar into the class path.

I want to package my project in a single executable JAR for distribution.  How can I make a Maven project package all dependency JARs into my output JAR?


Let $X$ be a connected metric space, let $A \subseteq X$ be a connected set. Let $\mathcal{C}$ be a connected component of $X-A$. Show that $X-\mathcal{C}$ is connected.   Ok, so Im been dealing with this exercise for a while, and I am completely stucked.   I've managed the following (which I don't know if it is even true.)  Since $X-A \subseteq \mathcal{C}$ we have that $X-\mathcal{C} \subseteq A$. Now since $A$ is a connected set, and $\mathcal{C}$ is closed (since it's a connected component), one way to prove the statement is to see that $X-\mathcal{C}$ is closed in $A$ because in this case, $X-\mathcal{C}$ would be open and closed in $A$, connected which implies $A=X-\mathcal{C}$ and therefore $X-\mathcal{C}$ is connected.   However Im not being able to show that $X-\mathcal{C}$ is closed in $A$, (im not sure if in fact it is).   If not, If its possible, I would like a hint, not a complete solution!

I have an exercise found on a list but I didn't know how to proceed. Please, any tips?  Let $X$ be a connected subset of a connected metric space $M$. Show that for each connected component $C$ of $M\setminus X$ that $M\setminus C$ is connected.


I’ve seen many things that mention using MessageUI Framework for COMPOSING messages, but is there a way to automate SENDING it in Swift? Perhaps even allowing my code to run once the Send Button is pressed, then I call the actual method to send it.

Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK / Cocoa Touch?


In proper English usage it's widely recognized to use 'an' in front of any noun which begins with a vowel. Ex. An apple instead of 'a' apple. The converse is true in regard to nouns beginning with a consonant. Ex. A banana versus 'an' banana.  However, my question revolves around nouns whose first letter 'sounds' like a vowel; but isn't. Ex. 'an' hour sounds considerably better than 'a' hour.  Thus, is there an established rule of English utilization saying a person must/should use an article such as 'a' in front of nouns which begin with consonants sounding like vowels?

In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart.


I mean, you have a company with shares of 20 dollars and they have 10 million of it (market cap 0.2 B), not paying dividends. What makes other people buy their stocks, when they see that they were doing great e.g. in Q1 and they expect growth? Company doesnt pay dividends. Suppose they can earn 100 millions/y and they have two classes of stocks and they sell only B stocks (with much less votes) so that they cannot lose their majority and someone cant just buy them and take over the company. Why should the price go higher? Why should the demand go higher, when the company is doing amazingly well?  Why the stock price rises, when someone is doing great and growing? Do people buy stocks just because they think that other people will do the same and according to supply and demand law, the price will go higher? That seems just a bit odd. What do they expect? They expect to get more money than they invested, but how exactly (why the demand and therefore price goes higher)? They expect that the price will go higher for example, but why should it go higher? Why should the demand be higher and make the price rise?

So a company decides to raise money by selling shares of its stock. The stock is offered at an initial price of their determination. The stock is then traded in a market where forces of supply and demand, as well as speculation, affect its price.  When a company performs well (or makes decisions that will likely increase the company's earnings in the future), more people want to buy that stock than do people wanting to sell it. This creates demand for that stock which causes its sell/bid prices rise. When a company performs poorly, the opposite occurs; more people want to sell the stock than want to buy. This creates a surplus that causes sell/bid prices to fall.  Understanding this, people speculate over company performance to determine the future behavior of a stock, and attempt to "buy low, sell high" or "borrow high, return low" in order to make a profit.  But my question is regarding the first part of that process. What is it about company performance that causes the perceived value of its stock to rise? This is especially perplexing since I would guess that most people don't exercise their voting rights, and many stocks don't pay dividends.  It's not like a shareholder has any direct financial gains from increased company earnings (speculative stock pricing notwithstanding).  What is the intrinsic value of the stock?  It seems to me that all participants in a stock market tacitly agree that stock price will have a direct correlation with company performance. So another way of asking the question is, would an opposite agreement hold? What financially (this isn't a question about logistics, communication, or feasibility) stops all participants in a market from agreeing to value a particular company's stock inversely with respect to the company's performance?  Since I feel like I can't quite nail down my question, another form of it would be, why is stock market behavior driven by company performance?


I'm searching for a term describing the possibility of an entity to be seen many different things at the same time. The general concept of being able to categorize an entity into several context-dependent abstractions.  A car is not only a car, but can be:   A vehicle A toy A risk A pollutant A Faraday's cage A source of taxation A trap A tool A weapon   Words that does not capture the proper meaning:   A car is flexible. A car is adaptable. A car is versatile.   Words that might work   Multifaceted Multi-sided   I need a general noun for describing this property in a ontological context   Multifacetedness (Does not sound natural) Multi-sidedness (Even less natural)   Let's try some sentences  You could be anything you want, [multifacetedness] is universal.  We are not allowing [multifacetedness] in this game, you can only be one thing at a time.  Philosophers all agree, [multifacetedness] is fundamental in how we perceive and make sense of the world.  Is there a better word for this?

I am looking for a positive, passionate word to describe the all-round capabilities of a person.   Are there any words better than 'all-rounder'?


Recently, I came across following code snippet, I couldn't know the reason. Any one has any idea, why negate two times (and not just return the value of doAction())? return !!doAction();

I just came onto a project with a pretty huge code base.   I'm mostly dealing with C++ and a lot of the code they write uses double negation for their boolean logic.    if (!!variable && (!!api.lookup("some-string"))) {        do_some_stuff();  }                                      I know these guys are intelligent programmers, it's obvious they aren't doing this by accident.   I'm no seasoned C++ expert, my only guess at why they are doing this is that they want to make absolutely positive that the value being evaluated is the actual boolean representation. So they negate it, then negate that again to get it back to its actual boolean value.   Is this correct, or am I missing something?


$A$ is a $n\times n$ matrix with integer coefficients. I am trying to understand a) and b) claims. a) $Z^n/N$ is finite $\Leftrightarrow$ $det(A)\neq 0$ b) #$(Z^n/N)=|det(A)|$      Looking at the linked answer, I can reduce $A$ to normal form by multiplying by unimodular matrices and this multiplication does not change $|det(A)|$. I understand that the $det(A)=d_1d_2..d_r$ where $d_i|d_{i+1}$ and $d_1,..d_r$ are entries of normal form. But I don't understand why $Z^n/AZ^n \cong \bigoplus_{i=1}^{n} Z/d_iZ$? The explanations I have seen in MSE are in the context of rings and I don't know them yet. Any hint to explain the isomorphism using group theory language is appreciated. Thanks.

I am aware of some theorem that says that if $M$ is non singular, $\det(M) \neq 0$, then: $$\mathrm{card}(\mathbb{Z}^n/M \mathbb{Z}^n)= |\det(M)|.$$ How does one prove this? Figured if I put in the context of the rational canonical form, this would help, but cant piece it together.  Thanks.  This result is mentioned in the first answer of this question:  .


The WiFi symbol on the top right is empty and no WiFi networks appear, I try to set one up but the "device" box is greyed out. I have Ubuntu 16.04. When I enter the command lswh -C network I get this:     *-network UNCLAIMED   description: Network controller      product: BCM43142 802.11b/g/n vendor: Broadcom Corporation physical id: 0   bus info: pci@0000:03:00.0  version: 01     width: 64 bits   clock: 33Mhz  capabilities: cap_list   configuration: latency=0 resources: memory:94100000-94107fff  *-network description: Ethernet interface product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller  vendor: Realtek Semiconductor Co., Ltd.   physical id: 0 bus info pci@0000:04:00.0  logical name: eno1  version: 0a   serial: dc:4a:3e:f7:23:64  size: 10Mbit/s capacity: 100Mbiy/s   width: 64 bits   clock: 33Mhz    capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation  configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8107e-2_0.02 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s  resources: irq:129 ioport:3000(size=256) memory:94004000-94004fff memory:94000000-94003fff   And a warning about not running this as super-user  I can access the internet if I use an Ethernet cable, or If I startup the laptop in windows 10

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


So in Kantian morality, in each act, you act as if your choice should become a universal law.  And in Existentialism and Humanism Satre says that in every choice you choose for all man. Are they promoting the same sort of view, or are the similarities merely superficial?

This is not originally my question but someone deleted their question while I was typing an answer to it. Consequently, I'm reposting the question and then my answer -- n.b., I've changed the title slightly to correct for what I'm guessing he deleted the question for.    I'm studying existentialism at the moment and Sartre's explanation of existentialist ethics is as follows:     Thus, the first effect of existentialism is that it puts every man in possession of himself as he is, and places the entire responsibility for his existence squarely upon his own shoulders. And, when we say that man is responsible for himself, we do not mean that he is responsible only for his own individuality, but that he is responsible for all men.   And     Our responsibility is thus much greater than we had supposed, for it concerns mankind as a whole.   (Existentialism and Humanism).   This sounds similar to Kant's categorical imperative - the idea that when making a decision, we should imagine making a universal law for all of mankind.  So, is this Sartre borrowing from Kant?


Can someone please explain to me what this means:  Definition: Given functions f(n) and g(n), then we say that           f(n) is O( g(n) )  if and only if there exist positive constants c and n0   such that         f(n) <= c g(n)      for all n => n0

I'd prefer as little formal definition as possible and simple mathematics.


I wanted to prove following exercise   $R_l$ lower limit topology is Lindelof Space.  Lindelof space is space with every cover has countable cover.  I tried but I am not able to even start.  Please give me hint so that I could complete this .  Any Help will be appreciated

In course of showing that the Sorgenfrey line $(\mathbb R$ endowed with the lower limit topology $\tau_l)$ is lindelöf I've made the following attempt:    I've picked up a cover $\mathcal U$ of $\mathbb R$ by the elements chosen arbitrarily from $\tau_l.$ Next for $q\in\mathbb Q$ I've choosed $G_q\in \mathcal U$ such that $q\in G_q$ to form the set $K=\{G_q:q\in\mathbb Q\}.$ My intuition says that this $K$ must cover $\mathbb R$ since no matter what irrational I choose, on its left there exists (due to denseness of $\mathbb R$) arbitrarily close rational which would get enclosed in some member of $K.$ Now here where I got stuck since I can't convert my intuition to the mathematical language. Can someone suggest me any way out?


In bash and dash the examples  echo hi | { cat ; }   and   echo hi | { cat }   produce the intended result hi. However,   echo hi | { cat }  is a syntax error   $ sh -c "echo hi | { cat };" sh: 1: Syntax error: end of file unexpected (expecting "}")   This seems somewhat surprising to me. I did a little digging and looked at the POSIX specification for sh ()  a brace group is defined as   brace_group      : Lbrace compound_list Rbrace                  ;   And a compound list is defined as  compound_list    :              term                  | newline_list term                  |              term separator                  | newline_list term separator   The following rules seem to suggest to me that cat with no newline should be a valid term (and hence a valid compound_list on its own)  A term can consist of just an and_or  term             : term separator and_or                  |                and_or   An and_or can consist of just a pipeline  and_or           :                         pipeline                  | and_or AND_IF linebreak pipeline                  | and_or OR_IF  linebreak pipeline   which can consist of just a pipe_sequence  pipeline         :      pipe_sequence                  | Bang pipe_sequence   which can consist of just a command  pipe_sequence    :                             command                  | pipe_sequence '|' linebreak command   which can be just a simple_command  command          : simple_command                  | compound_command                  | compound_command redirect_list                  | function_definition   which can consist of just a cmd_word or cmd_name, I'm not sure which cat would be in this context.  simple_command   : cmd_prefix cmd_word cmd_suffix                  | cmd_prefix cmd_word                  | cmd_prefix                  | cmd_name cmd_suffix                  | cmd_name   I'm not sure whether cat in the above example would be parsed as a cmd_word or a cmd_name, but it seems like it should at least be parsed as a simple_command, why is an explicit separator required in this context?

The Bash Manual says   { list; }        Placing a list of commands between curly braces causes the list to be executed in the current shell context. No subshell is   created. The semicolon (or newline) following list is required.      The braces are reserved words, so they must be separated from the list   by blanks or other shell metacharacters.       The parentheses are operators, and are recognized as separate tokens   by the shell even if they are not separated from the list by   whitespace.   If I remove the semicolon, like this:  $ { date } >    Why does it expect stdin input? A metacharacter is a character that separates words.  The semicolon and whitespace are both "shell metacharacters". Why can't whitespace separate words date and }? Why do we need a semicolon instead of a whitespace for separating the words?


My friend who is a senior lecturer says it is wrong to submit a paper with acknowledgements and you should add them once the paper is accepted, not to interfere with the review process. Is this correct?

When the review process is double-blind, I guess (although I have not read this anywhere) that acknowledgements should not be written in the submitted paper, as this might break anonimity. They should only be inserted into the camera-ready version, after the paper is accepted.  What is the custom when the review process is not double-blind? Should I write the acknowledgements in the submitted version, or wait to the camera-ready version?


I am getting a java.io.FileNotFoundException when trying to update PyCharm/IntelliJ:   Ubuntu 16.04. Installed PyCharm as per GetDeb in . It says it wants to update from PyCharm 2016.3.2 to 2016.3.3.  It says I do not have write access to /usr/share/pycharm.  So I run sudo pycharm. After Downloading Patch File and "Some conflicts were found in the installation area" where its "Solution" is "IGNORE" I click Proceed.   Get "Failed to Apply Patch":  Temp. directory: /root/.PyCharmCE2016.3/system/tmp/patch-update  java.io.FileNotFoundException: /root/.PyCharmCE2016.3/system/log/idea.updater.files.tmp.0/temp.tmp.1/bin/pycharm.png (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.intellij.updater.Utils.newFileInputStream(Utils.java:260) at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:65) at com.intellij.updater.PatchAction.apply(PatchAction.java:201) at com.intellij.updater.Patch.lambda$apply$2(Patch.java:323) at com.intellij.updater.Patch.forEach(Patch.java:372) at com.intellij.updater.Patch.apply(Patch.java:321) at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:84) at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:76) at com.intellij.updater.Runner.doInstall(Runner.java:303) at com.intellij.updater.Runner.lambda$install$0(Runner.java:272) at com.intellij.updater.SwingUpdaterUI.lambda$doPerform$4(SwingUpdaterUI.java:190) at java.lang.Thread.run(Thread.java:745)   I think IntelliJ is involved because that is a default for the editor settings.

I want to install the PyCharm IDE by JetBrains for Python (free community edition).  I managed to , but I do not know how to install it. Can you please help me?


I was wondering if my proof for this problem was correct.  Let $x = 2^n$. Then the problem reduces to is $x^2 = O(x)$, which is clearly false.

Is $2^{2n} = O(2^n)$?  My solution is:  $2^n 2^n \leq C_{1}2^n$  $2^n \leq C_{1}$,  TRUE.  Is this correct?


If R is a finite-dimensional algebra over a field k, and if R is also  an integral domain, show that R is a division algebra over k.

I'm reading Galois Theory by Steven H. Weintraub (second edition), and finding that I'm at least somewhat short on the prerequisites. However the following proof looks wrong to me - am I misunderstanding something, or is it actually an incorrect proof?  Lemma 2.2.3. Let $F$ be a field and $R$ an integral domain that is a finite-dimensional $F$-vector space. Then $R$ is a field. Proof. We need to show that any nonzero $r \in R$ has an inverse. Consider $\{1, r, r^2, \cdots\}$. This is an infinite set of elements of $R$, and by hypothesis $R$ is finite dimensional as an $F$-vector space, so this set is linearly dependent. Hence $\sum_{i=0}^n{c_i r^i} = 0$ for some $n$ and some $c_i \in F$ not all zero.  It then goes on to show, given the above, that we can derive an inverse for $r$. However, if I consider examples like $r = 2 \in Q[\sqrt{2}]$, $r = \sqrt{2} \in Q[\sqrt{2}]$ or $r = 2 \in Q[X]/{<X^2>}$, the set $\{1, r, r^2, ...\}$ doesn't look linearly dependent to me. I do believe the lemma is true (and might even be able to prove it), but this does not look like a correct proof to me. Am I missing something? [Edit] Well yes, I am. Somehow I had managed to discount the possibility of any $c_i$ being negative, despite repeatedly looking at each fragment of the quoted text in an attempt to find what I might be misunderstanding.


Let's say $G$ has order $n$.  If this is all the information we have to go by, can we say conclusively what the number of one-dimensional representations of $GT$ is?  Or do we need more information?  Like the type of group?  In general, how would one go about finding this number?

Let $G'$ be the derived subgroup of a finite group $G$.   We have a correspondence $\{\mathrm{reps \ of \ G/G'}\} \longleftrightarrow \{\mathrm{reps \ of \ G \ with \ kernel \ containing \ G' }\} $  If we restrict to 1-dimensional reps, we get:  $\{\mathrm{1\ dimensional \ reps \ of \ G/G'}\} \longleftrightarrow \{\mathrm{1 \ dimensional \ reps \ of \ G \ with \ kernel \ containing \ G' }\} $  Now my notes say that there are $|G/G'|$ 1-dimensional reps of $G$. Since there are $|G/G'|$ 1-dimensional reps of $G/G'$, this must mean that all 1-dimensional reps of $G$ have kernel containing $G'$. Why is this so?  Thanks


Can someone please provide the code of converting the GMT timezone to CST.  DateTime now = DateTime.now(); system.debug('>>>' + now); Long offset = DateTime.newInstance(now.date(), now.time()).getTime() - DateTime.newInstance(now.dateGmt(), now.timeGmt()).getTime();  system.debug('>>offset' + offset); Datetime local = now.addSeconds(offset/1000); system.debug('@@@@' + local);   I have tried the above logic and i require the CST hour and minutes.  It is throwing the below error for me.     Method does not exist or incorrect signature: void addSeconds(Long) from the type Datetime

Can anyone please help me how to convert the given time into CST timezone.  Input timezone will change dynamically, so i want to convert the given timzone into CST and then need to get the hour from that CST timezone in apex.


As it is known in Physics, two point-size charges (say two electrons) interact with each other through em forces. How this is happening? do they exchange photons? And if so, then do they exchange energy (carried by photons) at all time or in other words their interaction keeps on going forever?

Louis de Broglie said that electrons are waves. But how they repel each other?


Good morning,  I would like to put the picture on the left of the table, all horizontally.  When I try  it doesn't work. What changes is the picture and table are aligned with left margin aligned vertically, but both captions remained centered.   I can't seem to do it, can anyone help?  Thanks in advance.    The code is this:  \begin{figure}[H]   \begin{center}   \includegraphics[scale=0.50]{uniformity_machine.PNG}   \caption{Uniformity machine}   \label{fig:uniformitymachine}   \end{center} \end{figure}  {\centering \hfill \begin{table}[h]     \centering     \begin{tabular}{| c | c |c | }     \hline     \small     \textbf{Parameter} & \textbf{Value}  &  \textbf{Unit} \\     \hline     Dimension (wxdxh) & 1 725x2 800x2 500 & mm \\     \hline     Weight & 3 100 & kg\\     \hline     Rim diameter & 13 - 25 & in\\     \hline     \multirow{3}{*}{Electrical requirements} & 3 & Phase\\     & 400 & V \\     & 50 & Hz \\     & 35 & A \\     \hline     Pneumatic requirements & 600 & kPa\\     \hline     Cycle time & 20 & s\\      \hline     Cost & NUMBER & EUR \\     \hline     \end{tabular}     \caption{Uniformity machine specifications}\label{tab2} \end{table} \hfill}

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch    ------------              -----------------     TABLE    | a |  b |                     FIGURE   | c |  d |  ------------              Table 2: Caption           -----------------                            Figure 7: Caption   The closest I've gotten is:  \begin{table}% \centering \parbox{0.4\textwidth}{ \begin{footnotesize} \begin{tabular}{| l | r |} \hline some & table\\ \end{tabular} \end{footnotesize} \caption{Table} \label{tab:table} } \qquad \begin{minipage}[c]{0.53\textwidth}% \centering     \includegraphics[width=1\textwidth]{awesome} \caption{Figure} \label{fig:figure} \end{minipage} \end{table}   But that gives two Table X: Caption captions. I didn't find anything in subfig.  Help?


I have a python dictionary:  dic={'a':'17','b':'9','c':'11'}   I want to find the lowest value in this dictionary and show the KEY name of that value  in the example above, I want the name : b

I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary.  I can sort on the keys, but how can I sort based on the values?  Note: I have read Stack Overflow question here  and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.


I have created a contact info edit form with lightning component. I intend to provide users a States and country picklist functionality on form like we already have in salesforce. Is there any work around to achieve this?

I am making an component in lightning. i want to know how can we use the state and county picklist in this particular code.  secoundly the functionality of save and cancel button is also not working in the lightning component.Help me out.  Thanx
                     <form class="formbusiness">
Account Information

Business Account Info

                 <ui:inputText aura:id="b_cname" class="form-control" value="{!v.newBAccount.Name}" placeholder="Company Name" required="true"/>                 <ui:inputNumber aura:id="b_bphone" class="form-control" value="{!v.newBAccount.Phone}" placeholder="Phone" required="true"/>                 <ui:inputEmail aura:id="b_bemail" class="form-control" value="{!v.newBAccount.Email__c}" placeholder="Email"/>

                 <ui:inputText aura:id="b_bstreet" class="form-control" value="{!v.newBAccount.BillingStreet}" placeholder="Billing Street"/>                 <ui:inputText aura:id="b_bcity" class="form-control" value="{!v.newBAccount.BillingCity}" placeholder="Billing City"/>                 <ui:inputText aura:id="b_state" class="form-control" value="{!v.newBAccount.BillingStateCode}" placeholder="State"/>                 <ui:inputText aura:id="b_country" class="form-control" value="{!v.newBAccount.BillingCountryCode}" placeholder="Country"/>                 <ui:inputNumber aura:id="b_zipcode" class="form-control" value="{!v.newBAccount.BillingPostalCode}" placeholder="Zip Code"/>

Respective Contact

                 <ui:inputText aura:id="b_rcfirstname" class="form-control" value="{!v.newBRCAccount.FirstName}" placeholder="First Name"/>                 <ui:inputText aura:id="b_rclastname" class="form-control" value="{!v.newBRCAccount.LastName}" placeholder="Last Name" required="true"/>                 <ui:inputNumber aura:id="b_rcmobile" class="form-control" value="{!v.newBRCAccount.MobilePhone}" placeholder="Mobile" required="ture"/>

                 <ui:inputEmail aura:id="b_rcemail" class="form-control" value="{!v.newBRCAccount.Email}" placeholder="Email"/>                 <ui:inputNumber aura:id="b_rcphone" class="form-control" value="{!v.newBRCAccount.Phone}" placeholder="Phone"/>

             <ui:button label="Save" press="{!c.createBAccount}"/>             <ui:button label="Cancel"/>
             </form>


When I try to update:  sudo apt-get update W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) E: Some index files failed to download. They have been ignored, or old ones used instead. Also every time that I get new updates from Software & Updates it fails. How can I work to fix this issue?   And I'm not sure how to fix it using  solution.

I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message:    This computer will soon stop receiving Google Chrome updates because this Linux system will no longer be supported   I thought Ubuntu 14.04 is supported for five years, what's exactly happening here?  And on 64-bit Ubuntu, I get an error from Update Manager and apt-get update:  Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Some index files failed to download.   They have been ignored, or old ones used instead.


Pretty self-explanatory here. I have owned the home for just about a year; I still believe in the neighborhood's long term potential, but there is a bit of buyer's market due to COVID and it is causing homes to sit for a while on the market, thereby inducing price cuts, thereby reducing the value of my home (based on a CMA). What should I do? I figured I just sit tight on it; either rent it out or live in it myself. Is the long term hold the move here? That's what seems to make sense to me but I want to make sure I have considered everything. Edit: To clarify, the original intention of this property was to buy it, live in it for a bit, and then rent it out perpetually as a source of income. The going rate in the area puts the property (if fully rent it out) at a -$50/month cash flow.

Disclaimer: yours won't be fiscal advice. People involved will consult a professional before doing anything. This is just to gather some preliminary information.  Situation:   you want to buy a house or a flat, in UK you will get a mortgage in GBP, but you'd pay the down payment in EUR you think that there are fairly high chances that the value of houses in UK and GBP will drop the whole point of this question is actually buying the house/flat, renting is not an option by definition   What can you do to mitigate that risk?


I've have the following two pieces of code.  The first one compiles; the second one doesn't.  I don't understand why the second one fails.  Could someone explain?  Example 1:  \documentclass{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}     \matrix [column sep=0pt,every node/.style={draw,minimum size=2em}]    {      \node(m0) {a}; & \node(m1) {b}; & \node(m2) {c}; \\    };  \end{tikzpicture}  \end{document}   Example 2:  \documentclass{article} \usepackage{tikz}  \begin{document}  \def\usemygrid{%%    \matrix [column sep=0pt,every node/.style={draw,minimum size=2em}]    {      \node(m0) {a}; & \node(m1) {b}; & \node(m2) {c}; \\    }; }  \begin{tikzpicture}    \usemygrid   \end{tikzpicture}  \end{document}   This second example results in the following error:  ! Undefined control sequence. <argument> \pgf@matrix@last@nextcell@options   l.15       \usemygrid

For  I wanted to define a shortcut for creating a matrix inside a tikzpicture. As a minimal example, consider  \newcommand\mymatrix[1]{     \begin{tikzpicture}         \matrix[matrix of math nodes] {#1};     \end{tikzpicture}% }   which would then be used as  \mymatrix{     a & b \\     e & f \\ }   But LaTeX complains about Package pgfbasematrix Error: Single ampersand used with wrong catcode at the line with the closing brace of \amatrix{}. Why does it do that and how can I avoid it?