Can anybody give me a simple guide to leveling up a character?

I made a post recently about Lost Mines of Phandelver (5e), and it's safe to say I'm less experienced than a beginner.  The characters are level 2 and I looked up how to level up, but since then I've watched some videos and there seems to be a lot of different things being done in every video, in a different way.  When we leveled up we rolled for max hit point increases, found out the level 2 attributes and passives, and the wizard got 2 extra spells (also his magic missile gained an extra missile).  Is there anything I have missed? If so, can you please give me a simple step by step on what I need to do when leveling. The adventurers are almost level 3 so I was looking for a heads up for tonights session.  We have the base 4 classes - Fighter, Cleric, Rogue, Wizard


Why does Ross use Present Perfect here if he's speaking about the past?!


Should I run Ubuntu alongside Windows or in a virtual machine?

I would like to install Ubuntu on my Windows 7 64-bit PC to do analysis of astronomy data. The data files are often large (can be few hundred MB, possibly a GB). The data files may be located on an external hard disk. The PC has 6 GB RAM and 670 GB hard disk.   I'm trying to decide whether to do a proper dual-boot, installing Ubuntu in its own partition (I'm nervous of messing around with the hard disk, have never done it before) or to run Ubuntu using VirtualBox in Windows. How much slower is running in Virtualbox likely to be?   If I do go for a traditional dual-boot, would it make sense to divide the hard disk more or less equally between the two OSs?  I would be very grateful for some advice.  Many thanks Kevin


What are the numbers present in the following Arithmetic Progression?

Four different integers form an increasing A.P. One of these numbers is equal to the sum of the squares of the other three numbers. Find the numbers  My Attempt:  I assumed the four numbers as: $(a-3d), (a-d), (a+d), (a+3d)$ but now i can't understand which number to square.


Lot of googling did not help me! Are there any good dictionary web based available?   I am looking for a site which can send me the meaning of words if we pass the word through query string!


How can I expand root "/" partition by that 4.48GB unallocated partition?  I have LiveCD with GParted, but I dont know how to shift that partition.


apt-get: error while loading shared libraries:libapt-pkg

I am facing a problem which seems to be unsolvable. I am trying to resolve the issue but to my disappointment nothing seems to work. The problem I'm facing are as follows    Whenever I try to run sudo apt-get install or sudo apt-get update, I get the following error :  apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory  To resolve this issue I downloaded libapt-pkg.so.4.12 and ran command sudo dpkg -i libapt-pkg.so.4.12.deb it gives error  dpkg: error processing libapt-pkg4.12_1.0.9.7ubuntu4_i386.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing: libapt-pkg4.12_1.0.9.7ubuntu4_i386.deb


A friend wants to use my account for a wire transfer. Is this a scam or is it legitimate?

I have a friend since July online and Exxon owe him for a balance on a 2014 contract off the shores of Liverpool. He is presently in the Gulf of Mexico completing a contract that last for one year. During that year he cannot get off the boat there fore he cannot receive the money.  Exxon has notified him that his check has been deposited in Samba Bank in London. If he doesn’t receive his money within two weeks it goes back to Exxon and he said that there I not telling nohow long before he will receive the money again. He said that with him being off shore that he needs me to be his beneficiary to receive the money for him. He wants me to keep the money in my account and when he gets off the boat in 6 weeks he is relocating to where I live.  I am to buy a house before he gets here and then he wants us to start a business together. He talked with me for quite a while before he told me how much he makes. He knows I do not have any money to mention. I have stock in a formal shop but not any money.  He said if this money had not come in when it did he would have had to postpone his plan until he gets paid what Shell Oil owes him for this contract that he will finish October 15th. He said he had given enough of his life to the gas and oil industry and is not going to sign another contract.  What do you think about the safety of this?


I used to be able to save project in Archicad as a 3D Studio (.3DS) file and open directly in blender, what happened to that functionality?


How to interpret the sentence--"A Mother beats up her Daughter as she was drunk"?

In the sentence above, who is drunk? I looked into the grammar book of my 7th grader (only grammar book I have access to at the moment) but could not find much. When searching on line, I found one page where the solution is essentially given from a cultural point of view which says the sentence could be interpreted as daughter being drunk because she is more likely to drink.  Is there any grammatical rule that would help disambiguate this sentence?


Using constructor call as function parameter

Is it a good idea to use constructor calls as arguments? E.g. something like  doSomething(ClassA(someConstructorParameter));   Will the object be destroyed when the function terminates? Or if you have a function that takes a char* and you don't want it to mess up a string, would  someFunction(string(str).c_str());   be a bad idea?


\documentclass{article} \usepackage[hidelinks]{hyperref} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage{libertine}  \begin{document} \lipsum[1-2] \url{http://tex.stackexchange.com/questions/ask} \lipsum[1-2] \end{document}   As you can see here, the URL style is different to the normal fontlayout and sting one directly in the eye. How to change that? I would like to have a style which looks like the text (just with the difference that you could click on it).  Kind regards!


Setting onclicklisternet to a button on a dialogbox

So im using a a dialogbox on a button click from my main activity but what i need to do is that in that dialog button there are 2 buttons and i want to use setOnClickListner on both the buttons im getting this error.      protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_detail);             getnotes = (EditText) findViewById(R.id.notestext);             submitbtn = (ImageView) findViewById(R.id.submitbutn);             submitbtn.setOnClickListener(new View.OnClickListener() {                 @Override                 public void onClick(View view) {                 openDialog();             }         });       public void openDialog() {             Button signbtn;             signbtn = (Button)findViewById(R.id.dialog_ok);             final Dialog dialog = new Dialog(this); // Context, this, etc.             dialog.setContentView(R.layout.dialog_demo);             dialog.setTitle(R.string.dialog_title);             dialog.show();          signbtn.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 Toast.makeText(getApplicationContext(), "Notes Have been Signed by the doctor Successfully", Toast.LENGTH_SHORT).show();             }         });   XML file is below  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content">      <TextView         android:id="@+id/dialog_info1"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignParentTop="true"         android:layout_marginTop="0dp"         android:padding="10dp"         android:text="Enter Password to Confirm"         android:gravity="center"/>      <EditText         android:id="@+id/dialog_info"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/dialog_info1"         android:layout_alignParentStart="true"         android:layout_alignParentLeft="true"         android:padding="10dp"         android:hint="Enter Password Here"         android:gravity="center"         android:inputType="textPassword"         android:textSize="12sp" />      <LinearLayout         android:layout_width="match_parent"         android:layout_height="40dp"         android:layout_below="@id/dialog_info">          <Button             android:id="@+id/dialog_cancel"             android:layout_width="0dp"             android:layout_height="match_parent"             android:layout_weight="0.50"             android:background="#e3144e"             android:text="Cancel"             android:textColor="#ffffff"/>          <Button             android:id="@+id/dialog_ok"             android:layout_width="0dp"             android:layout_height="match_parent"             android:layout_weight="0.50"             android:background="#147fe3"             android:text="Sign"             android:textColor="#ffffff"/>     </LinearLayout> </RelativeLayout>   the error im getting is     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference           at nl.psdcompany.duonavigationdrawer.example.DetailActivity.openDialog(DetailActivity.java:80)   line 80 is the one that has the setonclicklistner in the openDialog function


I have database (Oracle) with many tables, for example: CLIENTS, PRODUCTS, OPERATIONS etc. I want to implement searcher, which will allow me to write a phrase 'MA' and give a hints:   MA RIA Client  MA STERMIND Product  RE MA PPING Operation  etc...  How to achieve that? What is the approach to do that? Should I create another table will all names (client name, product name, operation name...)? Or just searching in all table, using many LIKE conditions? How to do this efficiently?  Many people marked my question as duplicate, so I want to explain: I am not looking for solution which I want to use one time, I need to implement it one production environment, where many people will be searching information like that above. I know I could create dynamic sql from dba_tables, dba_tab_columns views, but I want to prepare efficient way to do that! Using LIKE in WHERE clause will not use indexes, so I will have full table scans - that is not gonna work in system with many users and big tables. For know I would consider creating table with keyword with domain index on keyword column and using CONTAINS instead of LIKE, but maybe you have another idea. Maybe another database engine have features which could help me?


beamer: Deactivate Overlay Specifications For Printouts

Sometimes I use overlay specifications in beamer to control the order of appearance of specific elements. When I print out the presentation -- which is for my job needed sometimes -- then this generates often too much paper and is inconvenient for the people who get the printout. Is there a way/command to deactivate all overlay specifications? In article mode there are no overlays I think -- but I do not know how to use this here.     \documentclass{beamer}  \begin{document}  \begin{frame} \frametitle{Frame Title 1}  \begin{itemize}[<+->] \item Item 1 \item Item 2 \item Item 3 \end{itemize}  \end{frame}  \begin{frame} \frametitle{Frame Title 2}  Text 1 \pause Text 2 \pause Text 3  \end{frame}  \end{document}


How to show $A\times (B\cup C) = (A\times B)\cup (A\times C)$

How to show $A \times (B \cup C) = (A \times B) \cup(A \times C)$, where $A$, $B$, and $C$ are sets. i.e. If $A=\{1,2\}$, $B=\{2,3\}$ then $A \times B = \{(1,2), (1,3), (2,2), (2,3)\}$.   I started with the proposition, suppose $x$ is an element of $LHS$, i.e. $A \times (B \cup C)$. Help is appreciated! Thanks.


I am sorry if this is a dump question but I can't find any reference for this. What is the Hausdorff dimension of the set of irrationals on $\mathbb R^1$? I speculate this is $1$ but don't know how to prove it rigorously.


A novel from the 1950s or 1960s about a solar-system civilization in which law enforcement uses "tangle webs"

I read this novel in the early 1960s, I think. I was perhaps not even in my teens. I got it from the public library. There is a solar-system-wide planetary civilization, but it is limited to that. The only detail I remember clearly is that law enforcement uses "tangle webs" to subdue criminals or people who are wanted. This is a device that is thrown at the perpetrator or wanted person that expands into a net that enfolds him and renders him harmless. I cannot remember the name of the author. I had the idea that it was Fritz Leiber or Keith Laumer but I can't find anything that sounds like it by googling them. The title might be "Steps to the Stars" or something like that but it is definitely not the book by Daniel Fry. It ends on a high note, that humanity will now be able to go beyond the solar system and visit other stars. I can't remember how that happened.


For many months now, I've been prevented from asking new questions here, on Stackoverflow - all due to the error:     You have reached your question limit   Researching this error a few weeks back, I discovered the help page ''. On it, I was informed that:  The ban will be lifted automatically by the system when it determines that your positive contributions outweigh those questions which were poorly received.  Since then, I've consecutively answered questions, had my answers up-voted and had my comments marked as helpful.. but still, I'm unable to ask questions due to the error message.  I came across the post '' which has lead me to believe that my question ban was caused by the automatic filter and therefore, cannot be undone by a human, however I'm wondering if a moderator is able to investigate this as I feel that I've done all I can to convince the filter to lift the ban.


This question has already been asked but the solution was not satisfactory  Suppose $f$ is a function satisfying the equation $$f(x+y)=f(x)+f(y)+x^2y+xy^2$$ for all real numbers $x$ and $y$ Suppose also that $\lim \limits_{x \to 0}\frac{f(x)}{x}=1$  Find $f'(x)$  By using the definition of derivative,I obtained $f(0)=0$ and $f'(0)=1$  How will I get $f'(x)$?


Regex to match any character excluding \

Given the string \\Server\Folder\File.EXT, what is the regular expression to return \\Server\ as the match? I tried ^\\\\(.*)\\, but that still allows for a backslash in the middle of the match, so I get \\Server\Folder\ as the match, not \\Server\. Within the group I need to match any number of characters other than \ I think.


I've never encountered the OGR geometry type MULTILINESTRING25D before (or any of the *25D types). What are these? How do they differ from other types? I couldn't find any useful documentation from the rest of the internet.


I am looking for PSD files viewer. Gimp is too fat for this job. I need something fast and light.


How can I skip greylisting for servers with a valid SPF Record in Postgrey?

I typically do not use grey listing as it doesn't play nice with multiple mx servers, but I do like preventing direct-access attempts to email me (use an MTA, or don't send email).  I would like to prevent grey-listing for any server that has a valid SPF record.  How can I combine (2) check_policy_services?  Server Setup: Centos7, Postfix, PostGrey, OpenDKIM, SPF, RBLs (listed), as well as TLS support.  postconf | grep smtpd_recipient_restrictions smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination reject_unauth_pipelining, reject_unknown_reverse_client_hostname, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_invalid_hostname,check_recipient_access hash:/etc/postfix/recipient_access, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client b.barracudacentral.org, reject_rbl_client dnsbl.sorbs.net, check_policy_service unix:private/policy, check_policy_service unix:postgrey/socket, permit


UV stretching when subdividing - how to avoid

I made a mesh with a decent topology, gave it a subdivision before UVing and UVed it after. Even still, when I subdivide it again after UVing I get some very ugly distortions on my checker textures. How to avoid this sort of issue? Frankly the mesh hardly shifts shape when I smooth, and even still the distortion is disgusting.   Edit:


Infinite Cartesian Product: Understanding

I'm having a bit of trouble understanding the definition of the infinite cartesian product, particularly with the intuition behind it.  According to my textbook, Enderton's Elements of Set Theory, the infinite cartesian product takes the cartesian product of each set $X_i$ for $i \in I$. This idea makes sense to me, but the definition of $$\prod_{i \in I} X_i = \left\{\left. f: I \to \bigcup_{i \in I} X_i\ \right|\ (\forall i)(f(i) \in X_i)\right\}$$ does not.   For example, if I make a function $X = \{(1,\{2\}), (2,\{3\}), (3, \{4\})\}$ where $X_1 = \{2\}$, $X_2  = \{3\}$, and $X_3  = \{4\}$ if I take the cartesian product of them, don't I get $(2,3,4)$? How is this a function and how does it relate to the definition?   I am very aware that my misunderstanding most likely comes from an inadequate knowledge of cartesian products, and that my example may be incorrect. If so, please let me know what misconceptions I may have so that I can grow and learn!


Cannot update bash_profile in Ubuntu 14.04

I am running Ubuntu 14.04 in VMware on a Windows 10 host. I am trying to install Laravel, I have actually installed Laravel successfully but I want to set the laravel command globally, and in order to do so I tried updating the bash_profile by opening it in nano and then I wrote :  export PATH="$PATH:~/.composer/vendor/bin"   and then saved it. Now when I try to see if the $PATH was successfully updated by typing echo $PATH, it doesn't show me the newly added ~/.composer/vendor/bin path. But when I again open the bash_profile in nano, I can see my export path line in it I recently added. What am I doing wrong?


How electron movement produces current,instead of having a slow drift speed?

Just need a clarification here, how the current is produced due to the movement of electrons, in an external circuit,having a very slow drift speed.  Normally in a battery there is high potential terminal and low potential. Using these two terminals the external circuit is closed. Now within the battery the direction of the current flow and the electron flow is opposite to that of the external circuit. If I consider that positive current is flowing from the positive terminal to the negative terminal of the battery through the external circuit then we can say that positive terminal is at higher potential then the negative terminal of the battery.   Now when we are closing the switch of an external circuit, in that case the electrons are moving from negative terminal to positive terminal of the battery, through the external circuit. But we also know that the drift speed is very slow, of the electron. But when we  switch on some of the electrical devices, within a fraction of second the device starts working. If drift sped of electron is low, so how the device is working so fast ,(near about the speed of light,I guess), as we know that current flows due to the flow of the electrons.So how it is possible, in spite of electrons are having such a low drift speed ?  Please help me guys !!!!!


Libreoffice - how to disable curly quotes?

I don't get it why my libreoffice puts curly quotes instead of straight ones. I'm using default English language, but still it writes curly quotes in a cell.  But if write quote in for example find and replace window, then it writes normal straight quotes. That is very annoying.   Libreoffice Version: 4.2.8.2


Careers company ad, logo obscuring banner

Well, I'm uncertain if this is truly a bug or not, or if its just Imgur who happened to 'mess up' here, but there appears to be a slight issue with SE's handling of career company logos, and their banners:     As I'm sure can be seen from the image, the logo blocks the banner text.  One solution is to simply move the thing, or it could (maybe) be removed altogether..  though I do realize that this would likely cause complaints.  On the possibility that it cannot be moved, maybe the companies could be alerted of how such an ad would look.. or even offer the possibility to not display the logo.. or something else, if anything.  I'm honestly wholly unfamiliar with how that side of things work, so sorry there.


My dictionary reports that aren't is also an abbreviation for am not, when used in questions.  Is this use of aren't common? If it is common, are there any differences between the different English dialects?     Why aren't I being given a pay raise?


Can I travel without valid ID if I am registered with TSA PreCheck?

US domestic flight. I lost my passport and my flight is in 2 weeks. I have IDs like Student ID, but no other government ID. I am registered with TSA PreCheck though. Would it be possible to still fly without valid government ID, if they can compare fingerprints/do some other sort of check? Edit: I also have a photo of the passport.


Is there an English adjective which means "asks questions frequently"?

Is there an English adjective [A] such that the following two sentences are almost the same in meaning?   "Joe is a very [A] person" "Joe is always asking questions"   The phrase "always asking questions" has connotations of being nosey, but that's not what I mean. A question similar to mine was asked:    Assume Joe does NOT already know the answers to his question. I want an adjective to describe someone who innocently asks questions on a regular basis, and they don't already know the answer. "querulous" has negative connotations. I want something positive/friendly. A word similar to "curious" might work. However, "curious" people can sometimes be very quiet. I am searching for a word which literally means "asks questions often," implying that they are a bit of a motor-mouth, rather than a shy, quiet person.


Is "communicate through writing" correct?

If they communicate primarily through writing on social networks, teenagers can lose the feeling of real friendship.


Simulate simple non-homogeneous Poisson proces

Consider a Poisson process whose conditional intensity is  $$\lambda(t) = \alpha e^{-t}$$   starting at time $t=0$ for some parameter $\alpha>0$.  I would like to simulate arrival/event/failure times as efficiently as possible. (I am not sure what the standard term is for the times you get from a Poisson process.) Is there a fast way to do this?


How does accuracy of a survey depend on sample size and population size?

Which survey is more accurate? Assume the samples are taken perfectly randomly.   A sample of 100 people out of a population of 1000   (sample is 10% of population) A sample of 1000 people out of a population of 1000000 (sample is 0.1% of population)     I remember my lecturer saying something like "when the sample size is small compared to the population, the accuracy depends almost all on the sample size, the population size is unimportant" . Is there a name for that result? It's quite surprising at first.  I'd love to see some graphs of these functions.  If it helps, here's a concrete example (made up by me).     An unknown proportion p of the population favour candidate Alice. The rest favour Bob. We take a random sample size k of the population (size n), and ask their preferences, to come up with an estimate p-hat.      How does the expected error $\mathbb{E}|\hat{p} - p|$ depend on k and n? And in the limit $n\to\infty$?


Best way to convert PHP block to improve site

I've just taken control over a Drupal site which the old admin used php blocks. I normally work on Joomla sites but from research and advice from others PHP blocks don't help the site in the long run.  What's the best way forward when some of the PHP blocks are set to some pages in a set area.  For example PHP block 1 is only on the Home Page's Sidebar where PHP block 2 is on Page About Us and Contact Us' Sidebar.  Just some background, This is the first Drupal site I've worked on and know only bits and pieces about Drupal apart from the general how it works and some extra details. If I've missed some research or reading which could aid in this issue which you can direct me too, this again would be great help.


Is it ethical for advisors to automatically coauthor papers?

I work in a field (Philosophy) where co-authorship is uncommon and advisors and grad students very seldomly co-author a paper. I've seen a lot of posts on Academia.se though about the ethics of co-authoring papers with mentors, such   My sense is that it must be somewhat common in the natural sciences for the head of the lab/dissertation advisor to be automatically added as a co-author to every paper that his or her graduate students produce.   My questions are:   Is this really common, and if so, in which fields? Is this really ethical?    My view is that adding your name to something that you had no part in creating is just plagiarism: it's taking credit for the work of others.   The opposite argument, that the work wouldn't have been possible without the PI's grant funding also cuts no ice. I wouldn't have been able to write my dissertation if my parents hadn't had sex, but that doesn't mean they should get credit as coauthoring my work.   That's the way it seems to me, but maybe somebody from these fields can give us a better rationale for (what seems to be) the widespread practice.  Edit: Another argument against the practice. Suppose I'm a billionaire who knows nothing about science, but I take it into my head that I want to be (regarded as) a famous scientist. Suppose I just spend billions of dollars to fund other people to do research. But, I ask each of those people to come and report to me for fifteen minutes ever week about what they've worked on, or discovered that week. Then, every time one of them finds a result, I demand that my name be added to the paper as a co-author, since we have "discussed" the work in progress and it is, after all, by my grace that the funds for the work have been provided. Suppose I just have hundreds of these postdocs, producing thousands of papers a year, all of which I am a coauthor for.   Now ask yourself if I really deserve to be regarded as a famous scientist at all? It seems to me that I don't, because I haven't done any of the science--I haven't suggested any research methods, I haven't designed any experiments, I haven't collected any data, I haven't even helped junior researchers know the shape of the existing literature. You might regard my existence as good for science in some sense--you might think of me as a beneficial patron of the sciences. But you wouldn't think of me as a scientist, right? And you wouldn't think I deserved to be considered for a Nobel Prize, or membership in the American Academy of the Arts and Sciences, or whatever. If I demanded that I be given those awards because of the thousands and thousands of papers that I have coauthored, which have been cited tens of thousands of times, you would call me an idiot, right? We give those prizes for discovery, not for being rich. The same thing is true of tenure too. You shouldn't be able to buy your role as a tenured professor. You should have to prove that you, personally, are capable of making a serious contribution to your field. And of course you demonstrate that capability by publishing papers.  So when a prof is automatically added as a coauthor to a paper that he or she did not contribute to in any way except financially, then she is trying to buy a reputation as a scholar, or the other perks like tenure or membership in the AAAS that come with that reputation in just the same kind of way that the absurd billionaire is doing.


How to make a A4 sheet made of A7 pages?


Following on an earlier  I am looking for a circuit where it powers from USB when it is available and uses the battery when USB is not plugged in.  I want voltage drop to be minimal, zero if possible. So using oring diodes is not possible. The mosfet power oring ICs mentioned in the answer are extremely expensive (4$ for 1K) although they have low voltage drop.   I am looking for a discrete solution where I can build with simple switches or even a cheap LDO. I didn't try to build it but I thought I could use the existence of the Vbus to do a simple switch to control LDO's one from VBus, the other from VBat.   UPDATE   Ideally zero drop is wanted however up to 100mV can be tolerated.  My system has 4 AA batteries, so there could be cases where the battery voltage is larger than 5V, that is why I focus on the existence of VBus. The small drop comes from the Operation voltage of one of the ICs, it needs to be 3.5V (min) and the larger voltage drop eats into the battery life. (i.e. 4 battery, 0.9 each, 3.6V, 100mV drop, I can squeeze the batteries). If there is a 0.7V drop, I can not use the full battery power. (I have to shut down the system at some point of time to ensure proper operation but batteries has still a lot of juice left)


Ubuntu login loop 14.04 after update and message repeatingly printing to terminal

After an update, I've been having a login loop and I can't log in.  I've tried to search for some solutions and followed a suggestion to reinstall nvidia.  Now I have this message that is constantly printing out to the terminal so I can't even use ctrl+alt+F1-6:  systemd-udevd[713]: failed to execute '/bin/systemctl' '/bin/systemctl start --no-block nvidia-persistenced.service': No such file or directory  systemd-udevd[852]: failed to execute '/bin/systemctl' '/bin/systemctl stop--no-block nvidia-persistenced': No such file or directory   Could someone please help?


Using SSJS in Automation Studio to unsubscribe contacts from All Subscribers

We are using a custom preference center and an automation that extracts contacts from our Master Permission DE, who have Opt-in set as 'false'. This DE that contains opt-outs is evaluated and later imported into All Subscribers list to unsubscribe them from further send-outs. Now, aside from using Automation Studio's SQL --> Data Extract >  File Transfer --> Import Activity (into All Subscribers) flow, which has been buggy at best, is there a way to achieve this via Server-Side JavaScript? So, we would use SSJS in Automation Studio Script Activity on the DE where the opt-outs reside and have them unsubscribed from All Subscribers.  Thanks


Can I travel to US with a new passport and US visa on a old damaged(binding separated) Indian Passport

I know there have been similar questions as listed below.        My question is for a specific type of damage which I believe requires a separate consideration.  My old passport binding and booklet is separated. Though it is separated, I have both with me. Apart from this there are no other issues. The passport first 2 pages, last 2 pages and US visa is absolutely readable without any issues.   I have applied for a fresh passport as I'm not allowed to travel in damaged passport.  Question  Is it okay to travel to US from India by carrying the new passport and old passport(which has US visa) with binding off?  I'm in a dilemma because I read the following FAQ Question and Answer in US Embassy website.     Question: My passport has expired or been damaged. However, I still have a valid U.S. visa in the passport. May I use the visa?       Answer: If the photo page on your passport has been damaged (e.g. has become   detached, or looks like it may become detached, from the rest of the   passport), please apply for a new visa in a new passport, submitting   both the damaged and new passport in support of your application.   In my case, photo page is not torn/separated from the rest of the passport pages but separated from the outer binding.  It would be really helpful if someone with a similar situation travelled successfully without any issues reply.


Is $A^2-A=A(A-I)$ in matrices?  Thanks !


Get PHP to stop replacing '.' characters in $_GET or $_POST arrays?

If I pass PHP variables with . in their names via $_GET PHP auto-replaces them with _ characters. For example:  <?php echo "url is ".$_SERVER['REQUEST_URI']."<p>"; echo "x.y is ".$_GET['x.y'].".<p>"; echo "x_y is ".$_GET['x_y'].".<p>";   ... outputs the following:  url is /SpShipTool/php/testGetUrl.php?x.y=a.b x.y is . x_y is a.b.   ... my question is this: is there any way I can get this to stop? Cannot for the life of me figure out what I've done to deserve this  PHP version I'm running with is 5.2.4-2ubuntu5.3.


Hyperref: How to link not only a number of Definition/Theorem?

Consider I am using hyperref package. Following LaTeX source: By the definition of $G_{L,\lambda_1,\lambda_2}$ (Definition \ref{def:bipGraphInducedByLl1l2_DecomposesL}) we have that  produces the following output:  i.e., only the number of the definition is made to be hyperlink. Is there possibility to link also the keyword Definion? I mean, I want whole "Definition 4.3" to be a hyper link. Thanks for help!


Examples of rational numbers with large denominators appearing unexpectedly.

I am looking for examples of rational numbers with large denominators that pop up in questions in which there is a-priori no large numbers involved or no obvious reason why the denominator would be large. (for example $1/\Sigma(11)$  would rather clearly have a large denominator, where $\Sigma$ is the busy beaver function). I'll start with an example to get it rolling. We can consider this problem which asks for diofantine equations with only titanic solutions . So we can obtain a rational with large denominator by simply taking $\frac{1}{n}$ where $n$ is a solution to one of those equations. It would also be great if someone could give an example of a problem in which a certain constant that comes up looks like it may be irrational, but in the end turns out to be rational but with very large denominator. I thought about going through the wikipedia page on  to see if a rational one with large denominator appeared, but none did. Although it is possible this is just because if one was rational there would be no "need" for a special symbol for it. Thank you and best regards.


OSX 10.6.8 can't find OD users after DNS change

I recently switched out a DNS server, to a more stable one, but now of my mac servers are giving me some trouble. When the network cable is in, I'm getting stuck at the login screen, even when trying local users, so I pulled it out.  After that I successfully logged in to a local admin, and checked whether the mac server uses the new DNS server correctly:  gentofte:~ admin$ host gentofte gentofte.mosek.intranet has address 172.16.0.198 gentofte:~ admin$ host 172.16.0.198 198.0.16.172.in-addr.arpa domain name pointer gentofte.mosek.intranet. gentofte:~ admin$ dscacheutil -q host -a name gentofte name: gentofte.mosek.intranet ip_address: 172.16.0.198  gentofte:~ admin$ dscacheutil -q host -a ip_address 172.16.0.198 name: gentofte.mosek.intranet alias: 198.0.16.172.in-addr.arpa  ip_address: 172.16.0.198   That looked fine.  SO i tried seeing if the mac server could find any of my Open Directory users. It couldn't. I try to ping the DNS server and the OD server, and both pinged fine.   Also when i try going into preferences->User Accounts->Login Options, the window just freeze up, if the ethernet cable is in the machine.  I find it pretty weird, and i'm out of idea's of how to solve the issue.


characters of symmetric and exterior algebras

Let $\rho,V$ be a representation of $S_3$.   In my lecture notes, It says that we can deduce the characters of $V\otimes V$ and $\operatorname{Sym}^2(V)$ and $\bigwedge^2V$ only from the character table of $S_3$.  I don't see how for the symmetric and exterior algebras, as those are quotients and I am not aware of operations on character of quotient representations.   Thank you for your hints or help.  Edit  Trying to do the exercise pointed out by @darij in Alex's Answer.  Let $G=S_3=\{\sigma, \tau|\sigma^2=\tau^3=\sigma\tau\sigma\tau=e\}$.  Taking the notations of the other   We have $m=2$ and $g=\tau$ and we try to find $\chi_{Sym^2(V)}$.  Let $1,j,j^2$ be eigenvalues of $\tau$ and $1, -1$ those of $\sigma$. I don't understand the step 2. How do we get $\chi_{Sym^2(V)}$ in terms of the eigenvalues?  Thank you.


How can I take an in-game screenshot of any game?

How do you do this? Sometimes I'll be playing a game and find something funny I'd like to save as a picture, but there seems to be no option to do this.  I remember Nintendo updating the 3DS and saying we could screenshot the game, but I can't find anything that would work.  I've tried using Game Notes and using Home >> Camera, but that doesn't do the trick either.


Clicking the "unanswered" button brings up lots of questions that already have answers?


How many spell slots does a character get?

How many spell slots does a character get, and how do you calculate that if there's a calculation involved? I've been looking everywhere for this, but can't find it.  I started playing just about a month ago and I've had to make about 2 character sheets for my friends already (Human Fighter and a Wood-Elf Ranger) and now I'm making myself a Cleric of Life but can't figure out how many spell slots I have.


I attack with  and other creatures and they choose to block all of my creatures.   Would I, as the attacker, get to assign combat damage, and can choose Bellowing Aegisaur's attack to be first making its Enrage go into effect placing +1/+1 counters on my other creatures before their damage is calculated?   Conversely, if I block with it can I ask them to assign damage in order and if they choose Bellowing Aegisaur before some of my other blockers would they receive their counters before their damage calculation?


What role does static friction force play for a rolling object? How can I know what direction it points?

Fundamentally, what does a friction force do for a rolling object? I am very confused by the way my textbook explains it. In my textbook , it says:  A wheel rolling on a horizontal flat surface at a constant velocity experiences no friction force. Why?   On the same surface, there is an acceleration of the wheel pointing to the right (probably caused by a force), so the ball is angularly accelerating in the clockwise direction. In this case, a friction force appears, and it is also pointing to the right. How come? What does the friction do for this wheel?  On an inclined plane, a ball freely rolls down the surface. The direction of friction is up the ramp, which confuses me because in the previous example the friction force was in the direction of the wheel's acceleration.   And there is a difference if a wheel is freely rolling and if there is a torque acting on the ball's center of mass. WHY???  What does friction do in these cases? How does it cause an object to roll?


External hard drive installation of Ubuntu wipes itself with every restart

So I'm running Ubuntu 18.04 from an external hard drive attached via USB to my Windows 10 machine. I boot it by using a Ubuntu USB booter and choosing the 'Linux' option from Windows' 'Advanced Restart' menu. I tried to be able to boot it on startup from the UEFI boot menu for a long time, to no avail.  It works perfectly fine except I need to resinstall everything every time I restart - I even get the 'Do you want to install/try Ubuntu' selection menu each time (though I don't need to actually install Ubuntu every time, just all the sudo apt-get stuff). Only data I've saved to the external hard drive disk persists.  Is there some configuration that will allow all of the packages I've installed in one session to remain for the next? I should mention that the external hard drive is cannibalized from an old laptop and requires a wall outlet to run, maybe that has something to do with it?


Prove that $c_0$ is closed in $\ell^\infty$

Define $c_0$ to be the space of real sequences in $\ell^\infty$ that converge to $0$ and $\ell^\infty$ be the set of all bounded sequences. Show that $c_0$ is closed in $\ell^\infty$.   I am reading in the solution in  and I don't understand how we define $$x^{k}_n - \omega_n$$  Because $(x_n^k) = ( \{x^1_1,x_2^1,\dots \}, \{x_1^2, x_2^2,\dots \}, \dots)$ and $(\omega_n) = (\omega_1, \omega_2, \dots)$  The objects in $(x_n^k)$ are sequences (sets) and the objects in $\omega_n$ are real numbers, how can you subtract a number from a set?


Splitting point shapefile in ArcGIS Desktop?

I have a shapefile with few points, I would like to export in separately shapefiles for each point.  I am using ArcGIS 10.1 and the split tool in ArcToolBox only works for polygons, but not for points.   Any help?


NullPointerException at FirefoxDriver instance

I am new to the automated tests so please, bear with me   I've been trying to execute this Selenium-generated test, but with no success. It seems that there is a problem with the Firefox Driver instantiation process. Here is a copy-paste of my Stack, followed by the test itself.  testUntitledTestCase caused an error: java.lang.NullPointerException         java.lang.NullPointerException     at SomaTeste.tearDown(SomaTeste.java:47)   It also seems that it never reaches the "driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS)". It proceeds to the "driver.quit()"(line 47) right after executing "driver = new FirefoxDriver()".  By analyzing a breakpoint placed on line 47 (which is the "driver.quit()" one), I've confirmed that the "driver" variable is set to null, which explains why i'm getting the "NullPointerException", but why is it not being initialized in the first place ? I can't seem to find an answer to this.  Does anyone have any idea on what might be causing this?  import java.util.regex.Pattern; import java.util.concurrent.TimeUnit; import junit.framework.TestCase; import org.junit.*; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import org.openqa.selenium.*; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.Select; import org.junit.Test; import static org.junit.Assert.*;  public class SomaTeste{   private WebDriver driver;   private String baseUrl;   private boolean acceptNextAlert = true;   private StringBuffer verificationErrors = new StringBuffer();    @Before   public void setUp() throws Exception {     baseUrl = "https://www.katalon.com/";     driver = new FirefoxDriver();     driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);   }   @Test   public void testUntitledTestCase() throws Exception {     driver.get("http://localhost:8080/SomarParcelas/");     driver.findElement(By.name("p1")).click();     driver.findElement(By.name("p1")).clear();     driver.findElement(By.name("p1")).sendKeys("21");     driver.findElement(By.name("p2")).click();     driver.findElement(By.name("p2")).clear();     driver.findElement(By.name("p2")).sendKeys("12");     driver.findElement(By.name("calcular")).click();     driver.findElement(By.xpath("//h1")).click();     assertEquals("O resultado foi 33", driver.findElement(By.xpath("//h1")).getText());   }    @After   public void tearDown() throws Exception {     driver.quit();     String verificationErrorString = verificationErrors.toString();     if (!"".equals(verificationErrorString)) {       fail(verificationErrorString);     }   }    private boolean isElementPresent(By by) {     try {       driver.findElement(by);       return true;     } catch (NoSuchElementException e) {       return false;     }   }    private boolean isAlertPresent() {     try {       driver.switchTo().alert();       return true;     } catch (NoAlertPresentException e) {       return false;     }   }    private String closeAlertAndGetItsText() {     try {       Alert alert = driver.switchTo().alert();       String alertText = alert.getText();       if (acceptNextAlert) {         alert.accept();       } else {         alert.dismiss();       }       return alertText;     } finally {       acceptNextAlert = true;     }   } }


Can I safely charge&use my macbook with the adaptor below?

I need to use an Ethernet cable, VGA monitor, usb connection and power cable in same time with my macbook. That's why i need an adapter because my macbook has only one usb-c port. Let me share a technical specifications for the Adapter:  Compatible with devices using the port-Type C. Data Transfer high-speed 5Gbps: provides you with a fast transfer, you can save time. Multifunctional design: Type-C to HDMI, USB 3.0 and VGA, USB-C, 1000Mbps Gigabit Ethernet. Type: Adapter Interface: VGA,Type-C USB3.0,USB 3.0 ,network port Output Voltage: 5 - 20V Output Current: 0 - 3.5A  DC Port: 3.5 x 1.1 Brand : Xiaomi Model : ZJQ04TM  So I have two questions:  Can this adapter charge macbook?  Safe to charge the macbook with this adapter?


Let $N$ be a cyclic normal subgroup of a group $G$ and $H$ is any subgroup of $N$.      Prove $H$ is a normal subgroup of $G$     Guessinng that exists $a\in G$ where $\langle a\rangle=N$ of some order.  $H \subset N$, $ H$ is a subgroup of $N$.  $gH =Hg \equiv g h_1 =h_2 g \equiv g a^{k_1} =a^{k_2}g $.  *Not sure  if on the right track just spit balling *


When I make a end portal in minecraft XboxOne Edition Winter Upate it doesnt work all of then are facing in lava and everything so I decided to go to a stronghold but I didnt know how to get to one. So i'd like to know how! :-)


I was naively expecting the following code to produce the word "Jimmy" between dashes  but it produces only the dashes (commented out version also). Could someone explain (preferably one syllable words) what I'm missing, please?  \documentclass[10pt]{article}  \usepackage[T1]{fontenc}  \setlength\parindent{0pt}  %  \begin{document}  \expandafter\def\csname v0 \endcsname{Jimmy}  %\expandafter\def\csname v0 \endcsname#1{Jimmy}  -\csname v0\endcsname-  \end{document}


Negating the Definition of a Convergent Sequence to Find the Definition of a Divergent Sequence

My task is to write a precise mathematical statement that "the sequence $(a_n)$ does not converge to a number $\mathscr l$"  So, I have my definition of a convergent sequence: "$\forall\varepsilon>0$ $\exists N\in\Bbb R$ such that $|x_n -\mathscr l|<\varepsilon$ $\forall n \in \Bbb N$ with $n>N$"  Would the correct negation of this be "$\forall\varepsilon>0$ $\exists N\in\Bbb R$ such that $|x_n -\mathscr l|>\varepsilon$ $\forall n \in \Bbb N$ with $n>N$"?  It doesn't seem that this is the answer as the next part of my task is to prove that a sequence is divergent using my formed proof, but it'd be difficult to do since it's a general proof of divergence and not just a proof that $(a_n)$ doesn't converge a specific number $\mathscr l$  Perhaps I should find a prove that $(a_n)$ tends to $\pm\infty$? This is more simple but it does not include monotone sequences such as $x_n:=(-1)^n$.  Can someone assist me with this task? All comments and answers are appreciated.


Which Android handsets support in-line call recording?

In-line call recording feature is not something that can be found in the specifications listed by the manufactures or on the websites aggregating such data such as GSM Arena. It is also a source of bad rep given to the developers of call recording apps because the general public does not understand that they own devices which do not support such feature for one reason or another and the app they use have nothing to do with it. A short trip around the Web only confirms that there is a lot of confusion surrounding this subject.  If you own an Android device and are able to verify whether it and its stock  ROM support in-line call recording please post the make and model. I'm not sure if the country of purchase is necessary but I would not be surprised if handsets sold in some countries had this feature enabled while in others disabled (in the same fashion as DVD players supported different regions depending on where they were sold).  The in-line recording should result in a recording where both the caller and the callee can be heard loud, clear and background noise free, just as they can hear each other during the conversation. It should be achievable while having the handset by the ear with the loudspeaker set to off.  Some information on handsets that do not have such feature can be found on the Google Play storefronts. I was initially going to pre-populate the below list with the 'unconfirmed' information from there but I think it will be better if it grows organically :-)


good books on Abstract Algebra and Cryptography for self-study

I want to self-study some abstract algebra and cryptography during the summer, so what are some of books that are suitable for self-study? I have very limited background in algebra and none in cryptography, and like to learn by examples. Also, please let me know if there are any books on these subjects with solutions to most of the exercises, so I can check on myself. (I saw 's post about good algebra books, but I would like to focus more on those with good exercises and detailed solutions.)  All suggestions are welcome! Thank you!!


When I call the below function I have the Internal error: anatlyzer.atl.analyser.AnalyserInternalError: java.util.concurrent.ExecutionException: java.lang.NullPointerException error. The try, catch and finally all run. How can I resolve it?  public void perform() {     ExecutorService executor = Executors.newSingleThreadExecutor();     Future<?> result = executor.submit(new Runnable() {                  @Override         public void run() {             AnalyserContext.setErrorModel(errors);             AnalyserContext.setTypingModel(typ);                             AnalyserContext.setGlobalNamespace(mm);             stage++;             List<? extends Unit> units = trafo.allObjectsOf(Unit.class);             for (Unit unit : units) {                 new ExtendTransformation(trafo, mm, unit).perform();  ...        } });      try {         // wait;         result.get();     } catch (Exception e) {         throw new AnalyserInternalError(e, stage);     } finally {                  executor.shutdown();     } }


Need application/script alerting when system memory is running out

I don't won't to use swap file (due to some bug in kernel or AMD driver).  I wan't to have some util running and monitoring free system memory and alerting me when it becomes less than some specified limit.  This will notify me that I need to close some applications (or browser tabs) to avoid system freeze due to some strange kswapd0 I/O activity (probably another bug).  Is there any appropriate software?  UPDATE:  I've redesigned script provided by Gary for my need and want to share it  #!/bin/bash  #Minimum available memory limit, MB THRESHOLD=400  #Check time interval, sec INTERVAL=30  while : do      free=$(free -m|awk '/^Mem:/{print $4}')     buffers=$(free -m|awk '/^Mem:/{print $6}')     cached=$(free -m|awk '/^Mem:/{print $7}')     available=$(free -m | awk '/^-\/+/{print $4}')      message="Free $free""MB"", buffers $buffers""MB"", cached $cached""MB"", available $available""MB"""      if [ $available -lt $THRESHOLD ]         then         notify-send "Memory is running out!" "$message"     fi      echo $message      sleep $INTERVAL  done


Installing Ubuntu alongside with Windows

I'm trying to install Ubuntu without deleting windows from my computer,  how can I partition free space without deleting anything


Why are there folders in /Users of already deleted users?

Some time ago I had a user called "xy" on my system. I have deleted the user but in the /Users directory there are folders called "xy" with a Desktop, Library etc. in it.   Why are they not deleted and can I delete them manually?


iPhone Simulator: SpringBoard failed to launch application with error: 7

Building an iPhone project results in:      Failed to launch simulated application: SpringBoard failed to launch application with error: 7   And the app doesn't install on the simulator. What's this all about? What's SpringBoard and what is error 7?


Bin directory in Linux -rwxr-xr-x 1 root root 920788 Mar 28 2013 bash

-rwxr-xr-x 1 root root 920788 Mar 28 2013 bash   what does this line mean. I found it in the bin directory.


I have seen the following sentence on a news web site, which was telling about a volcano eruption. A sentence including "a good" surprised me, as I have not seen it used like this. Here is the sentence:     "...You could hear and feel the eruption a good half a mile away, and the closer you got, the more you could feel it..."   What does "a good" mean here? Does it mean "they could hear it well" or does it mean "they could hear it from a distance which was as far as a mile long".


is this possible to change the tab page icon as if loading the page when I call function $.ajax() and on success or error again change icon to default? I need this because when the slow internet connection the user can see that something is loading and it will be wait for ending of process. In addition, I don't need the popup with the loading icon.


Enlarging an EC2 instance is easy like a breath (for instance, create an AMI, launch an instance from it and then change the storage size).  But reducing it becomes more difficult. I’d like to reduce an Amazon Web Services (AWS) EC2 instance Elastic Block Store (EBS) root volume size. There are a couples of old high level procedures on the net. The more detailed version I found is a one year old answer on a StackOverflow question: , steps have a pretty high level:     Create a new EBS volume that is the desired size (e.g. /dev/xvdg)      Launch an instance, and attach both EBS volumes to it      Check the file system (of the original root volume): (e.g.) e2fsck -f /dev/xvda1      Maximally shrink the original root volume: (e.g. ext2/3/4) resize2fs -M -p /dev/xvda1      Copy the data over with dd:         Choose a chunk size (I like 16MB)   Calculate the number of chunks (using the number of blocks from the resize2fs output): blocks*4/(chunk_size_in_mb*1024) - round up a bit for safety   Copy the data: (e.g.) dd if=/dev/xvda1 ibs=16M of=/dev/xvdg obs=16M count=80         Resize the filesystem on the new (smaller) EBS volume: (e.g.) resize2fs -p /dev/xvdg      Check the file system (of the original root volume): (e.g.) e2fsck -f /dev/xvdg      Detach your new EBS root volume, and attach it to your original instance   I’m unable to find a detailed step by step “how to” solution.   My EBS root volume is attached to a HVM Ubuntu instance.  Any help would be really appreciated.


Can I use a 4 quart crock pot instead of a 6 quart?

For a recipe that calls for a 6 quart crock pot, can I use a four quart crock pot?  Should I only use 2/3 of each ingredient?


Why is $i$ used in the equations for quantum mechanics?

Coming from someone who knows a tiny bit about the subject but who really wants to learn. I know it's the square root of -1 but I would like some insight as to why it's used at all.


How to formulate equation for ARIMA models?


Issue in Lightning desing System modal component

I have developed new Modal using lightning desing system.In standard modal new button pop up appears on whole broweser lightning page. But when I desgined using SLDS it will come up but still salesforce header bar is accesible which will display on my modal component  Standar way :    SLDS modal where header comes above the modal    Component Code :

Quick Investor
                  <button class="slds-button slds-button--icon-inverse slds-modal__close" onclick="{!c.showModalBox}">                     <c:svg class="slds-button__icon slds-button__icon--large"                            xlinkHref="/resource/SLDS/assets/icons/action-sprite/svg/symbols.svg#close"                            ariaHidden="true"                            />                     Close                 </button>

                             <ui:inputText aura:id="newinvestor" label="Investor Contact Role"                                           labelClass="slds-form-element__label" class="slds-input"/>

                             <ui:inputSelect aura:id="newinvestor" labelClass="slds-form-element__label"                                              required="false" class="slds-input" label="Default Email">                                 <ui:inputSelectOption text="Work1" label="Work1"/>                                 <ui:inputSelectOption text="Work2" label="Work2"/>                             </ui:inputSelect>

                             <ui:inputText aura:id="expname" label="Account Name"                                           class="slds-input" labelClass="slds-form-element__label"   value="{!v.quickinvestor.Name}"                                           required="true"/>

                             <ui:inputNumber aura:id="expname" label="Email Salutation"                                             class="slds-input"                                             labelClass="slds-form-element__label"                                             value="{!v.quickinvestor.Email_Salutation__c}"                                             required="true"/>

                 <button class="slds-button slds-button--neutral">Cancel</button>                 <button class="slds-button slds-button--neutral slds-button--brand">Save</button>


Can one talk about equivalences classes in a class(which might not be a set).

equivalence relation on a set breaks it into disjoint sets. does 'disjointness' make sense in classes. specifically, given a category, isomorphism classes of objects makes sense or not. can it be so that initially we start with a class of objects,but equivalence classes form a set.


Should I Disclose Mental Health Conditions to a Potential Advisor Before Applying to the Program?

I suffer from anxiety, and this condition has led to some situations that hurt my relationships and reputation at my undergraduate institution. Anxiety also affects me in other ways -- for example, I fear flying. Now I want to apply to graduate school for a master's degree. At what point should I disclose my mental health conditions? It seems like my advisor would need to know about some or all of my history, and best case, they could use this knowledge to provide better advising. But it could also mean that my preferred advisors would decline to advise me at all.


I just started a new job and inherited someone else's computer. Earlier this week I got notifications saying that my C: drive was almost full, so I cleaned a few things out. In the process I discovered that  226 of 232GB are being used on the drive! Obviously I want to figure out what the source of most of this is and see what can be cleaned out.  The best way I know of to determine how large a folder is in Windows is to right click, Properties, and look at the size. The problem is that the sum of the folders in the C: drive is only 44G, leaving 180G unaccounted for. Now, I know that this will skip over folders I don't have permission to view, so I tried running Explorer as administrator, but no change.  What am I doing wrong? How can I determine what is using up all of this disk space?  PS, I did see , but I would really prefer a solution that doesn't require installing new software. We have restrictions and requirements that make it a pain to install anything.


How long typically are paper reviews? Is there such a thing as “too long”?

When you review papers submitted for publication, is there an “optimal” length for reviews? In my experience as an author and referee, I have seen a large range of review lengths (for reference, a paper in my field is typically between 3 and 8 printed pages):   Zero length: for some of the papers I have authored, the reviewer just clicked the “accept as is” or “reject” checkmark on the review sheet, without adding any comment (at least, not any comment visible to me). It's not so common, but it has happened. Short length: a lot of time, I received reviews who consisted of a single paragraph. Medium: one full page, maybe two pages.   Although I have never received any such long reviews, I have myself written on a few occasions reviews that exceed two pages, including once or twice a four or five-page review.  These were cases where the paper was good, but could be (in my view) much improved and some of the aspects/consequences had escaped the authors' consideration.  I am wondering how useful reviews of various length are to editors. I often consider that “unmotivated” reviews are useless, as they do not give any real insight about the paper to the editor. For example, if the editor gets two conflicting non motivated reviews, how is she to decide?  On the other hand, although I write some from time to time, I have never received long reviews, so… is this something frowned upon?


Relation between the number of support vectors and the value of parameter C

Is it right to say that when I increment the C parameter in a SVM, I am incrementing the number of support vectors needed? Where does this relation come from ? Premise: I have understood the influence of C about the bias and variance tradeoff, but I can't imagine how this parameter influence the number of support vectors needed


i need to pass a String to a method, but it doesn't work...  public static void main(String[] args) {       System.out.println("Enter a String:");     String abd = Input.readString();      long number = number(String abd);     System.out.println(number);  } public static long number(String abd){     long num= 0;      if(abd == "AAA"){         num = 100L;     }     if(abd == "BB"){         ean2 = 20L;     }      return ean2;   it prints 0 for the number...and i dont know why! i need to do this with a String...i know it would work with char...is there some way to make this work with String?


Is there a way to fully stretch one line of text on the full width of the page, without manually setting the letter spacing, no matter how many characters on the line?


\documentclass{article} \usepackage{fontspec}  % % This file is a sample tex file to illustrate use of % XeTeX in typesetting Bengali document. % License: GNU FDL: (C) Golam Mortuza Hossain, 2008 % % % Define fonts that you want to use % \font\serif="FreeSerif:script=beng" \font\serifbb="FreeSerif:script=beng" at 24pt \font\deffont="FreeSerif:script=beng" at 14pt \font\mukti="Mukti Narrow Bold:script=beng"  % % "script=beng" in above lines ensures that appropriate % complex text rendering engines are used for proper % rendering of Bengali. %  \title{\bf\serifbb পাগলা দাশু} \author{\bf\serif সুকুমার রায়} \date{}  \begin{document} \deffont %Default font used for the document \maketitle  আমাদের স্কুলের যত ছাত্র তাহার মধ্যে এমন কেহই ছিল না, যে পাগলা দাশুকে না চিনে। যে লোক আর কাহাকেও জানে না, সেও সকলের আগে পাগলা দাশুকে চিনিয়া লয়। সেবার একজন নূতন দারোয়ান আসিল, একেবারে আনকোরা পাড়াগেঁয়ে লোক, কিন্তু প্রথম যখন সে পাগলা দাশুর নাম শুনিল, তখনই সে আন্দাজে ঠিক ধরিয়া লইল যে, এই ব্যক্তিই পাগলা দাশু। কারণ তার মুখের চেহারায়, কথাবার্তায়, চলনে চালনে বোঝা যাইত যে তাহার মাথায় একটু 'ছিট' আছে। তাহার চোখদুটি গোল-গোল, কানদুটা অনাবশ্যক রকমের বড়, মাথায় এক বস্তা ঝাঁকড়া চুল। চেহারাটা দেখিলেই মনে হয়---  \vskip 10mm  % Specific font can be used for any part of the document {\mukti বিঃদ্রঃ এই বাংলা পাতাটি লেখার জন্য XeTeX ব্যবহার করা হয়েছে।}  \end{document}


Why are "control" characters illegal in XML 1.0?

There are a variety of characters that are not legally encodeable in XML 1.0, e.g. U+0007 ('bell') and U+001B ('escape'). Most of the interesting ones are non-whitespace 'control' characters.    It's clear from (e.g.)  and others that it's  -- but can anyone illuminate me as to why the XML spec forbids these characters?   It seems like it could have been required that they be encoded in escapes, e.g. as &#x0007; and &#x001B; respectively, but perhaps there's a practical reason that the characters were forbidden rather than required to be escaped?  Answerers have suggested that there is some motivation towards avoiding transmission control characters, but Unicode includes many other control-like characters (consider U+200C "zero width non joiner"). I recognize there may be no good reason for this behavior, but I would still like to understand it better.  It's particularly frustrating because when those character values appear in other encodings data formats, I end up "double-escaping" new XML documents that need to encode this.


New profile pages are out - bugs and feedback master list

Update:  Thanks for all the feedback and bug reports! I am locking this thread so people don't keep answering it when we no longer monitor it.  If you see a bug or want to raise a feature request, please do so in the usual manner, as a new question.    Some of you may have noticed that  the  and  pages that we have been talking about for a while now on .  Most? Well, yes, the new design is dependent on a SE network-wide update (a new base css framework) that the design team have been working on. This is an ongoing effort and we will be launching the new pages as sites are moved to the new design.  You've all been hugely helpful already - much of what we love most in here came from  and  you gave us on Meta.     But it's possible that it's not quite perfect yet. If you find any bugs and have any feedback to give, please post these as answers to this post.  Just post one issue per answer - that would help us focus on specific items one at a time.


Can a table have multiple foreign keys and each foreign key have a different parent table? Does it violate any design or normalization rule?


VirtualBox on Windows 10 64bit doesn't have a 64bit option

I've read previous threads about this issue, but none seemed to help.  I'm running a 64bit version of Windows 10 on a HP Elitebook. I've installed VirtualBox and wanted to create a 64bit Linux VM. However, I can only select 32bit OS'es in VirtualBox.  In the BIOS, I've got both VT-x and VT-d enable, and I've disabled HyperV in Windows, but I still don't have the option to select a 64bit OS.  What am I doing wrong?


How can I see a whole object and it's boundaries?

hi how can I change the setting so I can see the whole object. When I zoom in I see different parts of the object.


What are some general good principles for creating a poster for a poster session?

Should one create slides similar to those that one uses in a good powerpoint presentation? Or are there things that a poster should include that a powerpoint should not include? (and vice versa)


I have the next problem:  I am making a simple cast:   TargetBot2Params params = (TargetBot2Params)bot.getParams();   But I get the next error:  Inconvertible types   Requiered: TargetBot2Params   Found: UT2004BotParameters   And I dont know why occurs this, because I think that it doesnt do the cast.  Anyone knows why occurs this?  Thanks for your time.


SQL : Select a table name containing specific string

Suppose I have string to search "Sample String" and I have 100 tables in my database. I want to search if any of the table contains this string. Eg. If tlbSample contains string "Sample String" then it should show it.  I tried :-  SELECT name FROM sys.tables WHERE name LIKE '%Sample String%'   But no luck.  Please help me.


Spatial subsetting SpatialPolygonsDataFrames completely within selecting area using R

I am trying to spatially subset in R:   the forest stand data (many small polygons) by the  watershed data (one polygon)     My datasets are both in SpatialPolygonDataFrame format. I don't want to intersect or clip the data, because this creates small polygons on the border. Instead, I would like to select polygons completely within or within, such Select Layer By Location tool in ArcGIS. The output, unlike in ArcGIS, should be a new shapefile.   Here is how it is looks like:  forest stands = green,  watershed: blue border,  selected stands completely within: yellow.    However, I cannot find, how to make this in R?  Using sp::over(x = watershed, y = forest) the output is a a data.frame, not a spatial feature. The tools sf::st_within(x, y, sparse = TRUE, prepared = TRUE) seems promissing, but they operates on sf objects, not on spatialPolygonDataFrame.  Is there any quick spatial subset in R solution that I have overlooked?


Why optical phonons are called "optical"?

In diatomic lattice vibration, acoustical phonons correspond to vibration. But I could not understand the relevance of term optical in this context.


How can I calculate $\int \frac{\sec x\tan x}{3x+5}\,\mathrm dx$

How can I calculate $$ \int{\sec\left(x\right)\tan\left(x\right)  \over 3x + 5}\,{\rm d}x $$  My Try:: $\displaystyle \int \frac{1}{3x+5}\left(\sec x\tan x \right)\,\mathrm dx$  Now Using Integration by Parts::  We Get $\displaystyle  = \frac{1}{3x+5}\sec x +\int  \frac{3}{(3x+5)^2}\sec x\,\mathrm  dx$  Now My Question is How Can I calculate (II) Integral.  Please explain this to me.


Is it harmful to a child's social development to tell them "don't talk to strangers"?

Conventional parenting wisdom tells us to drive the fear of talking to strangers into our kids. Is this at all harmful though? Is there any adverse impact to a child's social development by doing this? How can you balance safety against fear?


Does the sum of reciprocals of primes converge?

Is this series known to converge, and if so, what does it converge to (if known)?  Where $p_n$ is prime number $n$, and $p_1 = 2$,  $$\sum\limits_{n=1}^\infty \frac{1}{p_n}$$


How to Resize Ubuntu 17.04 Zesty Swap file size?

Last night, I was converting movies with handbrake. There was steam and ubuntu software centre running in background. When I woke up, I saw a message 'Ubuntu faced an internal error......' and handbrake is crashed. So, I think it was because of lack of swap memory (2GB swap file). Anyone knows how to increase swap file size? (My PC Have 4GB RAM)


I am wondering how the login actually works. It certainly is not part of the kernel, because I can set the login to use ldap for example, or keep using /etc/passwd; but the kernel certainly is able to use information from it to perform authentication and authorization activities.  There is also a systemd daemon, called logind which seems to start up the whole login mechanism.  Is there any design document I can look at, or can someone describe it here?


I want to switch to Ubuntu 12.04 32-bit from a 64-bit without losing data and getting my windows on dual boot damaged

I hope somebody is going t help me out with this. I am a student, so it is my need at present


Combining values into a single column if more than 1 matches the criteria

I am trying to write a query to return the users, some info about them and which security group they're assigned to. Some users have more than one group however, so I instead of returning 2 rows, I would like to combine the security group names.   SELECT  ur.loginname         ,ur.firstname         ,ur.lastname         ,sg.securitygroupname         ,jt.description  FROM    users ur         ,usersecuritygroup us         ,securitygroup sg        ,jobtitle jt  WHERE  ur.doctorfacilityid = us.doctorfacilityid         AND us.securitygroupid = sg.securitygroupid         AND ur.jobtitle = jt.jtid    So instead of getting 2 rows like this:  jdoe     john     doe     group1     xyz jdoe     john     doe     group2     xyz   I would like to return 1 row like this:  jdoe     john     doe     group1, group2   xyz   The security group would be the only column that would have more than one row to meet the criteria (if that matters).


Weakly convergent but not strongly convergent sequence in $L^2(\Bbb R^n)$.

I have seen an example of functions that are weakly convergent but not strongly convergent in $L^2([0,2\pi])$, which is $f_k(x) = \sin(kx)$, but I'm unsure that this example works in $L^2(\Bbb R^n)$, mostly because I don't even think $\sin(x)$ is in $L^2(\Bbb R^n)$. Try as I might, I can't think of an example that works over all $\Bbb R^n$, with the exception of maybe $\sin(kx)\cdot \chi_{[0, 2\pi]}$, but I'm hoping to find a function that is substantially different from this example.


Getting iframe current src url in cross domain

I have an iframe in my web app and I need to get its current url from the parent document (also when the user navigates the frame and change the original source url).   Url is needed simply to social share it.  As a cross-domain scenario, I don't own the child document (its a remote domain).  I am aware of the same-origin-policy that prevents cross domain access from parent document to child one, but I'm looking for a solution by any creative mean possible - there has to be a way around.


Validity and Equivalence of two definitions of the real exponential function

The Problem :  We state the following two definitions of the real exponential function from the . We're interested in showing that the two definitions are valid $($i.e. the defining sequence/series does converge to a unique real number$)$ and that the two definitions are equivalent.   I'm stuck at a couple of points $($which are described in highlighted lines$)$. Any help would be much appreciated. Thank you!     Definition $1$. The exponential function can be defined as the following limit of a sequence $$\exp x := \lim_{n \to \infty} \left({1 + \frac x n}\right)^n$$      Definition $2$. The exponential function can be defined as a  $$\exp x := \sum_{n = 0}^\infty \frac {x^n} {n!}$$   My Progress and two places where I'm stuck : Essentially the solution consists of three parts,  namely validity of definition $1$, validity of definition $2$ and equivalence of the two definitions.     Validity of Definition $1$. I'm stuck here! Can we show that the sequence $(a_n)$ given by $a_n = \left(1+\frac{x}{n}\right)^n$ converges for every $x \in \mathbb{R} ??$ Is it eventually monotone and bounded $??$   Validity of Definition $2$. The  of the power series is $$r=\lim_{n \to \infty}\left| \frac{\frac{1}{n!}}{\frac{1}{(n+1)!}} \right|=\lim_{n \to \infty}\left| \frac{(n+1)!}{n!} \right|=\lim_{n \to \infty}(n+1)=+\infty$$ Thus the infinite series in the right-hand side of Definition $2$ converges to a unique real number for all $x \in \mathbb{R}$. Hence the definition is well-defined.  Equivalence of Definition $1$ and Definition $2$.  There's this  of Definition $1$ $\implies$ Definition $2$ in the Pr$\infty$fWiki page, but it's kind of under construction and I'm not really convinced by it. So I decided to try to take my own shot at it.  For all $n \in \mathbb{N} \cup \{0\},$ let  $$T_n=\left(1+\frac{x}{n} \right)^n, ~S_n=\sum_{k=0}^n \frac{x^k}{k!}$$ We have to show that $\lim_{n \to \infty} T_n = \lim_{n \to \infty} S_n$  Now, \begin{align} T_n &= \left(1+\frac{x}{n}\right)^n\\ &= 1+n\cdot\frac{x}{n}+\frac{n(n-1)}{2!}\cdot\frac{x^2}{n^2}+\cdots +\frac{n(n-1)\cdots 1}{n!}\cdot\frac{x^n}{n^n}\\ &= 1+x+\left(1-\frac{1}{n}\right)\cdot \frac{x^2}{2!}+\cdots +\left(1-\frac{1}{n}\right)\cdots \left(1-\frac{n-1}{n}\right)\cdot \frac{x^n}{n!} \end{align}  Clearly, $$S_n-T_n=\left\{1-\left(1-\frac{1}{n}\right)\right\}\frac{x^2}{2!}+\cdots +\left\{1-\left(1-\frac{1}{n}\right)\cdots \left(1-\frac{n-1}{n}\right)\right\}\cdot \frac{x^n}{n!}\geq 0$$     I'm stuck at this point. Can we show that $S_n-T_n \leq B_n$ such that $B_n \to 0$ as $n \to \infty ??$


I have MacBook Pro (Retina, 13-inch, Mid 2014) and OS: 10.13.6  My pmset outputs:  $ pmset -g System-wide power settings: Currently in use:  standbydelay         10800  standby              1  womp                 1  halfdim              1  hibernatefile        /var/vm/sleepimage  powernap             1  gpuswitch            2  networkoversleep     0  disksleep            0  sleep                0 (sleep prevented by coreaudiod, Google Chrome)  autopoweroffdelay    28800  hibernatemode        3  autopoweroff         1  ttyskeepawake        1  displaysleep         20  acwake               0  lidwake              0   You can see that I have set lidwake to 0. But, I did two tests:  1, Close the lid, and then open the lid. The display and system just turned on.  2, TopLeft Apple logo --> Sleep --> Close the lid. Then open the lid. The display and system turned on again.   Why does this happen? I just want to prevent my macbook awake when I open the lid.   When it works, I think it will be awake only when I press any keys on the keyboard, is this right? If this is right, how to wake the system and display only when I press the power button? This is kinda second question. You can ignore the second question.  PS:   I found     having the same issue. And all the discussions end up no solution... What a pity!


I have created form nodes with template string but i need to work them on change. I have tried .on('DOMNodeInserted') but i haven't managed to catch the event. I also tried to work with promises, but i dont know if its possible to work on html nodes with promisses. Is there a way to trigger a event listener on a html object that have been appended later?  here is one of my many tries   $('.body').on('DOMNodeInserted', function(e) { if($(e.target).children()[0] !== undefined){     let tema = $(e.target).children()[0].id;     tema.onchange = () => {         let el = manage(tema);         console.log(el);     } }});   I


Fresh install of Windows 10, freezing constantly

I just upgraded my PC from Windows 7 to Windows 10.  I did a fresh install to avoid any issues, but unfortunately it's been nothing but problems.  The PC freezes for about 10 seconds every 10 seconds.  When it freezes, I can move the mouse pointer, but nothing responds, not even ctrl+alt+delete.  After 10 seconds of doing absolutely nothing, it seems all my inputs happen at once.  This happens consistently every time I boot.  The only things I've installed are:   All the latest drivers The latest Windows updates (v1803)   I don't have an anti-virus, firewall, or anything else yet.  Specs:   Motherboard: Asus Maximus IX Hero CPU: Intel i7 7700k GPU: Nvidia GTX 980 TI   So it's fairly beefy.  The same hardware just worked fine in Windows 7, so it's not a hardware issue.  One thing I've noticed is that the System process is at 15% (> 100% of one CPU core) at all times.  Based on recommendations here, I ran Process Monitor and discovered the faulty thread is called ntoskrnl.exe!rtlavlremovenode.  Unfortunately googling that doesn't produce anything useful.  Has anyone seen this before?


Support export to Word format for CV's created by careers.stackoverflow.com

I've really only just begun to play with careers and it really a joy to use. However having as been on both sides of the recruitment fence, the only format recruiters speak is Word  I the past I tried giving recruiters CV's in PDF format or links to my own online CV in HTML, but the vast majority of them reject it out of hand and ask for a Word (doc or docx) format.   Removing information: A lot of recruiters will remove candidates personal information, email address, phone number etc.. before forwarding to a client. If this can't be done CV's dont get forwarded Reformatting: Some consultancies reformat a candidates CV to comply with corporate guidelines before sending to a client, they need word for this.   Possible quick solution: Since word 2007 it's been possible to create a word document from html in a couple of lines of code without automating word. Essentially you create an HTML file (Package part) in the word package and create a pointer to the inserted part.  When the document is opened by word it's rendered normally as word content  using (WordprocessingDocument myDoc = WordprocessingDocument.Open("Test1.docx", true)) {     string altChunkId = "AltChunkId1";     MainDocumentPart mainPart = myDoc.MainDocumentPart;     AlternativeFormatImportPart chunk = mainPart.AddAlternativeFormatImportPart(         AlternativeFormatImportPartType.WordprocessingML, altChunkId);     using (FileStream fileStream = File.Open("TestInsertedContent.docx", FileMode.Open))         chunk.FeedData(fileStream);     AltChunk altChunk = new AltChunk();     altChunk.Id = altChunkId;     mainPart.Document         .Body         .InsertAfter(altChunk, mainPart.Document.Body.Elements<Paragraph>().Last());     mainPart.Document.Save(); }   Source:   I really love the careers site, but without supporting word it will make it a lot harder for me to use.  Update : 03/10/2011 Talking to a global recruitment agency this morning, they told me they reformatted all candidate CV's into a 'common' company template [sigh] before forwarding to clients. If given a CV in PDF format they still performed this operation but it took them much longer.  I've also noticed that some job boards will    not allow you to upload PDF's or they restrict file size to 500KB (my CV in pdf format is 500kb and only 130kb in doc format)


Filenames too long and Windows can't open the files

There's a bunch of files on a network drive, on a fairly deep path and the directories on most of of have long names. I think that these were originally created when someone copied & pasted the root directory for this group of files from their local workstation to the shared network drive. I imagine that on the local workstation, there was no problem opening the file, but now that they are on a longer path on the network, Windows can't open them when I double-click. I've also tried copying the files, and renaming them to somethign shorter, but Windows is unable to do that as well.  TL;DR  files from someone's workstation on a (hypothetical) path like this:  C:\Documents and Settings\SomeUser\Files\RootOfLongFileNames\LongSubdirectoryName1\...\VeryLongAndDescriptiveAndSpecificFilename.xls -----------------------------------------^   have now been copied and pasted on to the network like this:  Q:\Dir1\Dir2\ProjectA\FilesForSomething\SomeotherDirectory\Blahblah\RootOfLongFileNames\LongSubdirectoryName1\...\VeryLongAndDescriptiveAndSpecificFilename.xls ---------------------------------------------------------------------^   And the path is now too long for Windows XP to handle.  Any tips as to how I can read these files?


Is it possible to set up a web server on the same domain used by Active Directory?

I'm a web developer at a large-ish organization and our web site is hosted by our IT department. Our website will not load without the "www" subdomain in front of it and IT says that it's because Active Directory must use the primary domain and so the web server must use a subdomain. They say it's not possible to fix it. I'm highly skeptical of this claim because this hasn't been a problem anywhere else I've worked or heard of but I'm not familiar enough with the technologies in question to argue the point.  So my question is, does this sound reasonable? Is it not possible to use AD on the same domain as a web server? Thanks!


How to run a loop in all directories inside a directory

Let's say I have a directory called /tmp/main and inside it I have 100 other directories . I want to run a loop through each directory of those directories, for example to make a file with touch test.txt How do I tell the script to process the first, the second, the third and so on?


Accessing my windows partitions under Ubuntu 14.04 LTS

I am very new to Linux so today I decided to get on it.I installed Ubuntu alongside Windows 8 that I use, everything on the installation went very smooth I left every option by default. I logged into Ubuntu and I wanted to access my Windows partitions that I had with Music,Movies,Games etc.. And I get this error when I try to open for example my " D:\ " :  Error mounting /dev/sda3 at /media/huntix/Shitz bro: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda3" "/media/huntix/Shitz bro"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.


NullPointerException when button is cliked [NETBEANS]

I wanted to created a simple login form for a system I am tasked to do, however when I click the button (even without any data in the textfields) it would say "Java.lang.NullPointerException". I already tried checking my code but I am still clueless as to which is causing the problem. Here is my JFrame Login Form:  package login; import java.sql.*; import javax.swing.*;  public class LOGINN extends javax.swing.JFrame {     PreparedStatement pst = null;     ResultSet rs = null;     MySqlConnect m2 = new MySqlConnect();      /** Creates new form LOGINN */     public LOGINN() {         initComponents();     }       @SuppressWarnings("unchecked")      private void btnloginActionPerformed(java.awt.event.ActionEvent evt) {              Connection con = m2.getConnectDB();              String SQL="Select * from login where username=? and password=?";       try{            rs=pst.executeQuery(SQL);           pst.setString(1,txtusername.getText());           pst.setString(2, txtpassword.getText());           rs=pst.executeQuery();             if(rs.next()){                 JOptionPane.showMessageDialog(null, "Welcome!");                 ADMIN a=new ADMIN();                 a.setVisible(true);           }            else{                JOptionPane.showMessageDialog(null, "Invalid Username or Password", "Access Denied",JOptionPane.ERROR_MESSAGE);            }             }       catch(Exception e){       JOptionPane.showMessageDialog(null, e);        }     }       public static void main(String args[]) {         java.awt.EventQueue.invokeLater(new Runnable() {             public void run() {                 new LOGINN().setVisible(true);             }         });     }      // Variables declaration - do not modify     private javax.swing.JButton btnlogin;     private javax.swing.JLabel jLabel1;     private javax.swing.JLabel jLabel2;     private javax.swing.JPanel jPanel1;     private javax.swing.JPasswordField txtpassword;     private javax.swing.JTextField txtusername;     // End of variables declaration  }   Here is MySqlConnect class:   package login; import com.mysql.jdbc.Connection; import java.sql.DriverManager;   public class MySqlConnect {     public Connection getConnectDB()         {         Connection con ;         try{                 Class.forName("com.mysql.jdbc.Driver");                     con = (Connection) DriverManager.getConnection("jdbc:mysql:///login", "root","");                     return con;             }          catch (Exception e){                 e.printStackTrace();                 return null;                 }       } }   PS. I also have a Jframe form named ADMIN and I have data in my PhpMyAdmin SQL Database.


How to footcite in square bracket like [1] in beamer?

I am trying to cite using square bracket in beamer.  This is what it currently looks like    Good, now is there a way to change it so it looks like:    or some variation of it? Much thanks  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage[style=authortitle,backend=bibtex]{biblatex} \addbibresource{bib.bib}  %Information to be included in the title page: \title{Sample title} \author{Anonymous} \institute{ShareLaTeX} \date{2014}  \begin{document}  \frame{\titlepage} \begin{frame} \frametitle{Sample frame title} This is a text in first frame \footcite{abramov_gordon_feldman_chavarga_2012} \end{frame}  \end{document}   bib.bib:  @article{abramov_gordon_feldman_chavarga_2012, title={Sex \& vision I: Spatio-temporal resolution}, volume={3}, DOI={10.1186/2042-6410-3-20}, number={1}, journal={Biology of Sex Differences}, author={Abramov, Israel and Gordon, James and Feldman, Olga and Chavarga, Alla}, year={2012}, pages={20} }


Find the number of elements of a complex subset

How many elements does the set $\{z\in \mathbb C:z^{60}=-1,z^k\not=-1\text{ for } 0<k<60\}$ have ? (A) $24$   (B) $30$   (C) $32$   (D) $45$. Which is correct ?  $z^{60}=-1=\cos(2k\pi+\pi)+i\sin(2k\pi+\pi)$. Then , $z=\cos\left(\frac{2k+1}{60}\pi\right)+i\sin\left(\frac{2k+1}{60}\pi\right)$ , for $k=0,1,\ldots,59$. But I am unable to use the second condition. Please anyone  help me.......


Is it correct to start a sentence with "Have been"?     Have been looking into the issue since last week.   edit: fixed missing word since.


Mail Quits unexpectedly every time it opens

I have a serious problem with the Mail application. It just won't open. I've seen some 'remedies' for example, resetting rules and settings, but this can't be done if the app doesn't even open.   Process:               Mail [7832] Path:                  /Applications/Mail.app/Contents/MacOS/Mail Identifier:            com.apple.mail Version:               9.2 (3112) Build Info:            Mail-3112000000000000~7 Code Type:             X86-64 (Native) Parent Process:        ??? [1] Responsible:           Mail [7832] User ID:               501  Date/Time:             2016-03-27 13:50:44.435 +0800 OS Version:            Mac OS X 10.11.3 (15D21) Report Version:        11  Time Awake Since Boot: 52000 seconds Time Since Wake:       11000 seconds  System Integrity Protection: enabled  Crashed Thread:        27  Dispatch queue: Task Manager Serialization Queue :: NSOperation 0x7fc5c84d2430 (QOS: LEGACY)  Exception Type:        EXC_CRASH (SIGABRT) Exception Codes:       0x0000000000000000, 0x0000000000000000 Exception Note:        EXC_CORPSE_NOTIFY  Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to perform a synchronous operation while on the serialization queue' abort() called terminating with uncaught exception of type NSException   Please help! Mail is a reasonably important part of doing business  (Full error log ).     This is different from ,   because users are able to open   the app to commence remediation activities there. As stated, I had tried   this but each time the the app opens it crashes immediately. The   resolution in the other thread is not possible to implement in this   case.


Does it exsit a presentation mode, with next slide and counter for a pdf?

If you do your slides with libreoffice, when you see the diaporama with a double screen option, people see your slides on the screen  where there are projected, and you see the current slide, the next one and a time counter on your laptop.  Is there a way to do the same thing with a pdf viewver ? I usually do my presentation with latex and beamer and such a feature of libreoffice is interesting.


New Winterbash menu doesn't open on hover

If you click on the Stack Exchange menu or the inbox menu or the achievements/reputation menu, you can then move the mouse between those three menus without any additional clicks.  This behaviour does not appear to be applying to the Winterbash menu (or the "help" menu for that matter, but that's on the other side of the bar).  Could we get this sorted, since otherwise the behaviour is a little inconsistent, with extra clicking on a menu bar where in all other circumstances clicking would close the menu!


I'm writing a simple Minecraft like game to test out a few world gen algorithms and to learn more about OpenGL. My first render code was glBegin() ... glEnd() style. Very ineficient and slow. I started learning VBOs for a heightmap project but using VBOs will force me to update the whole VBO of the chunk if something is added or removed due to it's size changing. That also sounds ineficient. The most plausable theory so far I can think of is instancing but even this isn't good due to multiple render types.  When I've been modding Minecraft all the render code i've seen there (and written my self) has been glBegin() ... glEnd() style. Is it really that? It just feels so wrong since it can render 64 chunks 20 fps no problem on an Intel intergrated GPU.


Let $S = (\pi(1), \pi(2),\cdots,\pi(n))$ be a permutation of $\{1,2,\cdots,n\}$ such that $S$ does not contain the pattern $\pi(i)<\pi(j)<\pi(k)$ for any $i<j<k$.   For example, the permutation $(1,4,3,2,5)$ is not allowed since it contains $1,\cdots,2,5$ in that order.   How do we count the number of such permutations (of $n$ numbers)?   I know how to count permutations that forbid the pattern $\pi(k)<\pi(i)<\pi(j)$ for any $i<j<k$, namely they are counted by the Catalan Number $C_n$. But the $\pi(i)<\pi(j)<\pi(k)$ pattern doesn't seem to yield to such a method. Any help would be appreciated, Thanks!


How to access windows in another session

I am developing an application for observing other applications (including applications of another user sessions) My application should collect information about CPU loading, memory usage and state of main window (if exists) of each application. Now I am trying to obtain window state of other application. If its window is in the same session (as my application) then everything is OK.   And... I have a problem with obtaining info about windows in another session. I have read this old topic:  and I understood that I should start new process within each session in order to enumerate windows in this session's desktop.  But maybe in Windows Server 2012 appeared a new solution(s) for this issue (some new API functions or some interaction with dwm.exe in another session etc)? If some administrative permissions (and/or group policies) are needed, it is not a problem  Thank you  PS. Now I am using Process.MainWindowHandle property (that probably uses GetWindowThreadProcessId function). Also I tried use OpenWindowStation("\Sessions\1\Windows\WindowStations\WinSta0") that returns error 161 (invalid path)


Package conflict between chemmacros and Russian

I'm trying to set up my document with chemmacros package and it seems like it has a conflict with babel  Here is MWE:  \documentclass[12pt, a4paper, final]{extarticle}  \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Times New Roman} \newfontfamily\cyrillicfont{Times New Roman}   \usepackage[russian]{babel} \usepackage{csquotes} \usepackage{chemmacros}  \begin{document}     Just some text \end{document}   When I remove either babel or chemmacros everything works just fine. Otherwise there is an error:  LaTeX3: Command '\ch' already defined! from file chemformula.sty  For reference, I use XeTeX on MacOS.


How to partition hard drive where already Ubuntu 16.04 is installed

I have installed Ubuntu 16.04 in my whole laptop space. But right now , i have a requirement to install Windows in the same laptop. And since i am trying to install windows side by side with this Ubuntu version i tried to partition the hard drive space the current Ubuntu is installed in. However, i cannot partition the drive. So is there any way to do that?  P.S. I already tried using g-parted and disk-utility but neither of them seems to work.


I've been trying to install Ubuntu for awhile now, and have been pretty much 100% unsuccessful, aside from the LiveCD portion of it.  So my issue is this: I successfully reach the GRUB menu, but choosing anything related to Ubuntu at that point simply causes a purple screen.  I tried to launch it in Recovery mode, and it ended up with the same screen.  I edited the startup commands for the main boot option and replaced "quiet splash" with nomodeset, changed the $linuxgfxmode to nomodeset, and pretty much tried everything, but I cannot in any way get Ubuntu to boot.  I have an AMD A8-4500M APU with Radeon(tm) HD Graphics x 4.  The Boot-Repair program said something about the EFI settings, and that I was in Legacy mode. What does this mean? Is it a problem with the installation?  I have no real idea of what to do. Any and all help would be appreciated.


How can I delay a specific program on startup?

How to delay a program such as cairo-dock (No openGL) or Firefox?  Sometimes programs crash when started with other startup apps. I want programs to start 10 seconds late to avoid a crash.


Dimensions of kernel and image of composition

Given $A,B\in K^{n\times n}$ with $AB=0$. I am trying to prove that $rg(A)+rg(B)\leq n$.\ My attempt: Since $AB=0 \implies \dim(\ker(AB))=n$. Using dimension formula to calculate dimension of images: $$\dim(\text{im}(A))+\dim(\ker(A)) = \dim(K^n) = n\\ \dim(\text{im}(B))+\dim(\ker(B)) = \dim(K^n) = n\\ \implies \dim(\text{im}(A))+\dim(\text{im}(B) = 2n-(\dim(\ker(A)+\dim(\ker(B))$$ If I could prove that $$\ker(AB) = \ker(B) \cup (\ker(A)\cap\text{im}(B)) = \ker(A) \cup \ker(B)$$ then I get a lower bound of n for the sum of the dimension of the individual kernels: $$\dim(\ker(AB)) = n = \dim(\ker(A)) + \dim(\ker(B)) - \dim(\ker(A) \cap \ker(B))\\ \implies n\leq \dim(\ker(A)) + \dim(\ker(B))$$ Which leads to the desired inequality, since $rg(A) = \dim(\text{im}(A))$ (same for $B$). I am having trouble proving the upper assumption and don't even know if it is true. Any advice would be appreciated.


How Does the Community User Set Bounties?

I decided on poking around some profiles and I hit the . I knew that Community was a background process but then I noticed that it had set some bounties. What criteria does Community follow to know what questions to set bounties on? Are these questions with a lot of views or upvotes or all of the above?


Why is $ {\sqrt 4} \times {\sqrt 4} = 4$ And not -4?

The solution to $ x=  {\sqrt 4} $ is 2 and -2 respectively. If you square either of those solutions you get 4. But when you multiply $ {\sqrt 4} \times {\sqrt 4}$ , you must multiply two expressions that each individually can be either 2 or -2. Only if both are 2, or both are -2 do you actually get 4 and not -4. But we solve this as if we assume they both always collapse on the same solution To put it another way, given the expression $\operatorname{f}(x) = \sqrt(x)$, f will return one positive and one negative solution for any Real number above 0. Why would it be wrong for me to say that one possible solution for $\operatorname{f}(4) \times \operatorname{f}(9)$ is -6?