I am in Nursing school.  I can prove that 80-90% of students have cheated every semester.  They pass test banks around in email, text or Instant Messenger.  Every semester I've come forward (5 instructors) but nothing major has happened.  In 3 semesters of nursing school the faculty has never condemned nor said a word about using test banks.  This semester I tried to warn instructors before the first exam, but they didn't listen.  Now a few of us simply can't pass the exam because we're not cheating.  The exams are that hard.    Test banks from previous semesters were being passed down from the semester ahead of us.  I looked back at these test banks after the exam and found 21 questions just in one chapter.  That's when I emailed them the test banks that were being passed around.  It's a fine example of how academic dishonesty cheats everyone including the ones being honest.  Every semester Instructor makes the exams harder and harder because "statistically" the instructor data shows statistically "These are good/not too hard questions".  But I have the documentation to show WHY people are able to pass.  Had I used these test banks I would be passing.  Honesty is earning a few of us a 60.00% on each exam.  What can I do?  I warned them; they didn't listen. I plan on filing a complaint and a grade grievance.  My question is: can an instructor fail students who are being honest?  When there is clear proof of compromised exams and academic dishonesty throughout the class. Is it our fault they can't catch it?  Is it our fault they have no idea what a hard question really is? Can instructors really fail people for being honest and choosing not participate?

This happened to me in my 2nd year of grad school, in a STEM field. As many do, our professor gave the class the last year's final, to give us an idea of what areas to study and what to expect, etc, which he obviously isn't required to do and is very nice of him.  Now, the reason he gives us last year's one is because, at the end of the year, he returns your test, so he knows that most of the ones floating around are the ones from last year.  However, as many older professors (in my experience, but maybe younger ones too) do, he also reuses exams from previous years (not even concepts or the same problems with different parameters, just literal copies), since the material and curriculum of this course is very well established/so old that nothing needs to change. I don't blame him for this; if you teach the same course on and off over 20 years, coming up with good exam questions over and over again would be annoying.  Now, what my question regards is, I realized a student in my class had past tests from not just the last time the class was taught, but literally the past 5 years. I don't know how to say this part as diplomatically as possible, but this student came from a country that about nearly half our program comes from. The other half (aside a few outliers) is from the U.S. I don't mention this to demonize or stereotype anyone; I believe it's relevant because the students from this country (in my program) are almost uniformly very tight knit, and seem to often share resources between each other and across years more than is normal amongst everyone else. The relevance is that one group has resources that others don't.  So my question is, is this ethical (for the student to do, I mean) ?  Just to put some relevant ideas/arguments/details down:   Assume (and I believe it was the case) that in the scenario I've written, the rest of the students (the ones who don't have the past tests) don't know about the students that have the past tests, so they can't do something simple like ask them. I think many will argue that if the professor didn't want this happening, he wouldn't reuse tests, or at least as exactly as he does. However, I don't think this changes the ethics of the situation: the point is, in this situation, you can get away with it, but is it right? I imagine the professor would not approve of this (actually, recently, another professor said in regards to his final "I know there are past ones floating around, please don't look at them", so at least he disapproved), but an argument could also be made for the possibility of him approving: It's not as though having the previous tests just makes it a given that you'll ace it, it's still a lot of work to figure out all the problems such that you can reliably do them later (he doesn't give back the answers to the tests, only the tests themselves). I could imagine a professor being okay with students getting a better grade on the final if it meant they learned more and worked to get it. This professor never actually said not to, so the student wasn't explicitly disobeying anyone. This question really has two subquestions, but they're very similar: a) Would it be ethical if everyone had these pasts tests (that the professor did not know about/give)? And b), Is it ethical if only a subset of the class has these tests. Obviously if you say no to (a) you say no to (b), but you might feel as though the concept of using past tests isn't wrong, but some students having an unfair advantage is.


Edit: (Not a duplicate) This question is not related to another   question on the forum, this is related also to android 4.3 jelly bean,   and furthermore I have provided my serial number of Galaxy S4, so read   the question fully.   I have a Samsung Galaxy S4 i9300XXUAMDK, and I still have 4.2.2 Jelly Bean. I don't understand why I am not even getting the 4.3 Jelly Bean update when 4.4 KitKat is rolling out for Samsung S4. Does someone have any clue?

Android 4.4 (KitKat) was officially announced on October 31, 2013.  (You can review  at the official Android Developer's site or the .)  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 4.4, either officially or unofficially, if ever?  See also:


I have been reading about bluetooth earbuds a lot but can't get my head around few things so asking them here. I got my new Soundcore Liberty Air 2 Pro wireless earbuds couple of days ago and connected them to my Android phone and they sound amazing both for music and calls. Problem starts when I connect them to my work PC for zoom conference calls. From what I understand, the only way to use them for calls is to use HSP/HFP profile and they sound awful with that. My questions:  Is there any workaround/hack to make them sound better for zoom voice calls? I have updated my BT and all other drivers on PC.  Since these earbuds have ANC, how does that function on HFP profile? I tried couple other earbuds and notice that anything with ANC sounds worse and very loud when using HFP on Win 10.. why is that?  Is HFP a Win 10 limitation since Android voice calls sound amazing? What is Android using then and is there any way to use that on Win 10?   Thanks!

I have a Plantronics BackBeat Sense SE bluetooth headset. When Connecting it to Windows 10, it installs two profiles in Playback devices list:    PLT_BBTSENSE Hands-Free. PLT_BBTSENSE Stereo.   The Second one (Stereo) is set to be the "Default Device" and the "Default Communication Device" on the system.   At this point the sound works great and normally. The problem happens when I want to use the mic. When I start any program that uses the mic (recorder, chat, VoIP Calls, gaming, etc.) The sound suddenly stops working And I can only use the mic until I stop the recorder or the call.   The thing that kind of fixes the problem is setting the (Hands-Free) as the default device. I can hear the sound when I do that and it works with the mic but it becomes Very bad quality.  What I became to understand is that bluetooth had different profiles for sound and mic: A2DP and HSP. The first handle the voice(High Quality) but the latter handles the mic and reduces the sound quality.  Is this really the case? Is there anyway to make them work simultaneously? Is there any solution to this problem at all?


Sorry for the abundance of questions I'm asking. Test is soon...  Prove that for every tree $T$ and every $g \in \mathbb{N}$, exist $G$ with girth $g$, so that in any 2-edge-coloring of $G$ there is a monochromatic copy of $T$.  Anyone have an idea how to attack this question?  Thanks in advance.

Question:  Prove that for every tree $T$ and every integer $g$ there exists a graph $G$ without cycles of length up to $g$ and such that every two-coloring of the edges of $G$ contains a monochromatic copy of $T$.  Thoughts: I saw something similar here , but besides the $\mathrm{girth}(G)=g$, I couldn't find a way to connect the information into a start for a proof. Any Hints?  (This is similar to this  which has no answer)  added after trying to solve using hints in comment:  I have this idea for a proof - Want to verify I got this right as it still seems difficult. I'll use facts 1-4 from here  .    From fact 2 we have that exists a graph $G_{g,k}: \delta(G_{g,k})\ge k=|V(T)|$. From fact 3 we have that $G_{g,k}$ has a sub-graph H s.t $\delta (H)\ge\frac {|E(G)|}{|V(G)|}\ge k (***)$. From fact 1 we have that $H$ contains a copy of T. From fact 4 (pigeonhole) we have that $\frac {|E(G)|}{|V(G)|} \ge \frac {|E(H)|}{|V(G)|} \ge \frac{|E(G)|}{2|V(G)|}$ or $\frac {|E(G)|}{|V(G)|} \ge \frac {|E(G\setminus H)|}{|V(G)|} \ge \frac{|E(G)|}{2|V(G)|}$ A 2-coloring may be viewed as a partition of G to H (Blue) and H-complement (Red) therefore H or H-complement contains a copy of T - so we have G which has the required girth and it contains a monochromatic copy of T.   The only problem I have now is how to justify the (***) move.


I'm trying to build a C# MVC site and integrate Powershell scripts. The idea is to use the scripts I've already written. I cannot find the way to do this.  Is there someone who knows where to find a documentation?  THANK YOU VERY VERY much.  Paulo

I need to execute a PowerShell script from within C#. The script needs commandline arguments.  This is what I have done so far:  RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();  Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration); runspace.Open();  RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);  Pipeline pipeline = runspace.CreatePipeline(); pipeline.Commands.Add(scriptFile);  // Execute PowerShell script results = pipeline.Invoke();   scriptFile contains something like "C:\Program Files\MyProgram\Whatever.ps1".   The script uses a commandline argument such as "-key Value" whereas Value can be something like a path that also might contain spaces.  I don't get this to work. Does anyone know how to pass commandline arguments to a PowerShell script from within C# and make sure that spaces are no problem?


If i push 16,000V through a nichrome 10 gage wire with only 3.5 to 5 amps csn that pressure be enough to heat the wire up to 1400F

I am trying to find out how many Amperes I will need to reach a certain temperature in a certain time (Milliseconds)  I need a thick wire to slow the melting of the wire. "Nichrome is the wire I'll be using" now in the American Gauge. I want to use 12 as its thick but not too thick and on Wikipedia, when I was checking how many amps I will need to reach a specific temperature using that gauge type it said I will need around 39.03A to reach around 1400F but in what time period will I reach that? Thicker wires are much slower to heat up but smaller wires are very weak.   P S I am very new to the American Wire Gauge so forgive me if I'm wrong.    I need a thicker, more sturdy wire that can put in a high PSI environment and still reach temperatures of 2-4 millisecond. The problems i see is thicker wire don't have as much resistance and a smaller mutil-twisted smaller wire. Is there away i can change that and still reach my desired temp of 1400F?


People despise using Eucliean distance in higher dimensional spaces because it is not a viable metric. People argue that the distance between two vectors becomes very large as the number of dimensions increases.  But to me: it makes sense as we add more dimensions that the Eucliean distance between two points in high dimensional space becomes larger as we add more dimensions. I don't quite see the problem here.  How does inflating the distance between two vectors invalidate the metirc itself? The magnitude of the distances may be larger, but why can't it still be a viable comparison metric?  The book elements of statistical learning gives a nice picture trying to describe why Eucliean distance fails:    Okay - so what? The distance between two points gets larger and larger? Why does that invalidate the metric? It makes perfect sense that the distance between these two vectors is larger as we add new dimensions because they are more dissimilar to one another in the newer dimensions.  Let's think of an example where we collected lengths of a bunch of toys:   5.3 2.2 1.2   The nearest point for a new toy 4.2 is 5.3 based on Euclidean distance. Now let's add another dimension called width of these toys.   <5.3, 5.6>  <2.2, 2.1> <1.2, 0.4>   An our new point is <4.2, 0>. Now the nearest point is <2.2, 2.1>. This makes sense. Because the second dimension is widely different there. People argue that distances become less meaningful. But I can still successfully apply it here and the resulting distance makes perfect sense to me.  Anyway I don't fully understand this hatred towards Euclidean distance - it seems to make perfect sense to me!

I read that 'Euclidean distance is not a good distance in high dimensions'. I guess this statement has something to do with the curse of dimensionality, but what exactly? Besides, what is 'high dimensions'? I have been applying hierarchical clustering using Euclidean distance with 100 features. Up to how many features is it 'safe' to use this metric?


In college, I see that some of the students who sit on the first bench just keep on smiling or laughing at every joke the teacher makes. Everytime! Even if it is not funny!  The closest word that I could find was  obsequious. But I don't think it does the job here because those students are not that much obedient or attentive to appease the teacher nor I would say they are sycophants.   They just act so fakely in that little time in order to please the teacher even though after the lecture they would just not give a damn what the teacher was talking about.

What term would communicate something similar to "brown noser", without the vulgar connotation?  (Here's one citation of the term being , but I'm guessing it was used before that.  In any case, the term is used by people in American culture today. From the link to WWII Vocabulary: "Brown-noser: Ass-kisser. To curry favor, or “boot-lick.” Variation: Brownie"  What term/phrase communicates 'speaking or acting to please those with authority or position to gain favor', without the crude connotation of the term 'brown-noser'?  Example sentence:       "Did you hear what Bob said about the company track record in our employee meeting yesterday?  He's a ______"


We know $$i^2=-1 $$then why does this happen? $$ i^2 = \sqrt{-1}\times\sqrt{-1} $$ $$ =\sqrt{-1\times-1} $$ $$ =\sqrt{1} $$ $$ = 1 $$  EDIT: I see this has been dealt with before but at least with  I'm not making the fundamental mistake of assuming an incorrect definition of $i^2$.


Prove that the line graph of a Hamiltonian simple graph is Hamiltonian.  My proof  If $G$ is hamiltonian then there is a cycle that traverse all the vertices of $G$ exactly once. Any other edges of $G$ that's not part of this cycle can become chords of $G$ or placed outside the cycle.   How do I proceed from here?How do I use the definition of Hamiltonian to prove that the line graph of $G$ is also Hamiltonian?

I have a graph G = (V, E). I know that the line graph L(G) of G is defined as follows: each vertex in L(G) corresponds to an edge in G, and two vertices are connected by an edge in L(G) if and only if the corresponding edges in G are adjacent.  Now I am trying to (a) prove that if G has a Hamiltonian circuit, then L(G) also has a Hamiltonian circuit, and (b) give an example of a graph G such that G does not have a Hamiltonian circuit but L(G) does.  However, I'm extremely stuck on how to do this, and any help would be greatly appreciated. Thanks so much!


I would like to be able to establish an SSH connection to a remote server, through an IPSec tunnel. So I need to use the local endpoint as an intermediate hop to achieve this.  The following command already works fine:  ssh -tt smals ssh -tt lpextapp050a   smals is the name of the intermediate server, as defined in my .ssh/config file. lpextapp050a is the name of the destination server, as defined in the .ssh/config file of smals   So I tried translating this into a configuration for my .ssh/config as follows:  Host lpextapp050a User <username> ProxyCommand ssh root@smals -W lpextapp050a:22   However, attempting to connect with ssh lpextapp050a gives me this error:  channel 0: open failed: administratively prohibited: open failed stdio forwarding failed ssh_exchange_identification: Connection closed by remote host   Google seemed to indicate I needed to check the AllowTcpForwarding and PermitOpen settings of the sshd on smals, but those are correctly set,  ie. they are not present in the settings file. I tried specifically setting them, which did not change anything.  Does anyone have an idea what I'm doing wrong?

When I open this ssh tunnel:  ssh -nXNT -p 22 localhost -L 0.0.0.0:8984:remote:8983   I get this error when trying to access the HTTP server running on localhost:8984:  channel 1: open failed: administratively prohibited: open failed   What does this error mean, and on which machine can you fix the problem?


Is there a good way to run a shutdown hook when I shutdown my Ubuntu 18.04 machine? I need to a run a script that might take about 30 seconds, to be specific pushing to git remotes any dangling changes.

I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown" file or if I need to reference it in another script.


If there exists a natural magnetic field due to the metallic core of the earth... could we then extract and get free energy from the earth core ??

Since the Earth has a magnetic field, can it, in theory, be run through a conductive metal coil to create electricity?


I have a link create by javacript  View more   (I have library jquery)   $('.view-more').click(function() {       console.log($(this).attr('start'));  })

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


For a math journal, after 4 weeks of submission, the status went from "with editor" to "reviewer invited", and its been in that particular state for the past 3 months. If you have any editorial experience, I'd like to know when would this kind of state happens, and does it say anything about the manuscript content, especially why the editor is finding hard to get the reviewers accept invitation, or is it that the reviewers for the subject matter of the paper, are rare to find?  Edit : more informtion  I have enquired. The Editorial Manager assured me that the Editor is carefully following and taking good care of the review process. What I have seen in earlier communication with Editor, I have no reason to doubt his interest in the manuscript. He seemed very much interested.

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I am trying to figure out how to use classes with class template and I get these errors:   Error   1   error LNK2019: unresolved external symbol "public: __thiscall AdtBag::AdtBag(void)" (??0?$AdtBag@H@@QAE@XZ) referenced in function _main  C:\Users\User\Documents\Visual Studio 2013\Projects\ADTBagAddition\ADTBagAddition\Source.obj    ADTBagAddition  Error   2   error LNK2019: unresolved external symbol "public: __thiscall AdtBag::~AdtBag(void)" (??1?$AdtBag@H@@QAE@XZ) referenced in function _main C:\Users\User\Documents\Visual Studio 2013\Projects\ADTBagAddition\ADTBagAddition\Source.obj    ADTBagAddition  Error   3   error LNK2019: unresolved external symbol "public: void __thiscall AdtBag::store_in_bag(int)" (?store_in_bag@?$AdtBag@H@@QAEXH@Z) referenced in function _main C:\Users\User\Documents\Visual Studio 2013\Projects\ADTBagAddition\ADTBagAddition\Source.obj    ADTBagAddition  Error   4   error LNK2019: unresolved external symbol "public: int __thiscall AdtBag::whats_in_bag(void)" (?whats_in_bag@?$AdtBag@H@@QAEHXZ) referenced in function _main  C:\Users\User\Documents\Visual Studio 2013\Projects\ADTBagAddition\ADTBagAddition\Source.obj    ADTBagAddition  Error   5   error LNK1120: 4 unresolved externals   C:\Users\User\Documents\Visual Studio 2013\Projects\ADTBagAddition\Debug\ADTBagAddition.exe ADTBagAddition  Here is my code:   source.cpp  #include <iostream> #include "AdtBag.h"  using namespace std;  int main () {     AdtBag<int> BagInt;     int a = 78;     cout << "Int Bag Contains: " << endl;     BagInt.store_in_bag ( a );     cout << BagInt.whats_in_bag () << endl;      return 0; }   AdtBag.h  #ifndef __ADTBAG__ #define __ADTBAG__  template<class ItemType> class AdtBag { private:     ItemType in_bag; public:     AdtBag<ItemType> ();     ~AdtBag<ItemType> ();      void store_in_bag ( ItemType into_bag );     ItemType whats_in_bag (); };  #endif   AdtBag.cpp  #include "AdtBag.h"  template <class ItemType> AdtBag<ItemType>::AdtBag () { }  template <class ItemType> AdtBag<ItemType>::~AdtBag () { }  template<class ItemType> void AdtBag<ItemType>::store_in_bag ( ItemType into_bag ) {     in_bag = into_bag; }  template<class ItemType> ItemType AdtBag<ItemType>::whats_in_bag () {     return in_bag; }   Why is this producing the error messages? I'm using Visual Studio 2013 if that matters. I thought I did everything correctly, but I guess not. Any suggestions?

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


At one point many years ago, Facebook login made sense to me. There have been enough changes that it doesn't anymore, at least to me.  How do I switch to having a username/password while keeping the rest of my account intact?  I don't think this is a duplicate, though it probably seems so from the title. I'd like to be able to add enough to my account to use the simple username/password prompt. There doesn't seem to be a way to activate that in the current website, unless I'm missing something.

How do I remove login credentials (emails or OpenIDs) from my account?     For more information, see "" in the .


When I wanted to launch an app in Windows 7 (or Gnome), I pressed the windows key and typed the name of the app, for example, "Firefox", and pressed enter. Now in Windows 10 the Search Windows have weird behavior - I can search for "Edge", but not for "Firefox". "Firefox" will result in nothing found. However, "Firefox." (notice the dot) will result in result that will open Firefox.   Searching for "Notepad" will result in only windows usual Notepad, I cannot select Notepad++. Query "Notepad+" will yield the same result - only Notepad showing. Only typing full "Notepad++" yields useful Notepad++.  Is there logic behind the Search I cannot understand and/or can I bypass it and make it search the regular apps too?

I have problem with Windows 10 Enterprise N x64. When I press "Start" and start to type application name it never finds it.  I can't even find applications like "Calculator", "Microsoft Word" or any other. Just moving dots and I let it run for 30 minutes without any success.  PS. There is chance that this will not work for you if you did upgrade instead of clean install of Windows 10. But you can always try.  This are my indexing options.


I have these partitions, and I need to delete one to install Ubuntu  I have  Dev SDA 1, NTFS, windows 7 (loader) Dev SDA 2, NTFS, windows 7 recovery environment (loader) My main windows partition SDA 3 15090 MB Same name as SDA 2 SDA 4 Says nothing.  Yes, I want to dual boot.

I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed  Ubuntu in a dual-boot many times before, I found out that this model has already four partitions.    Partitions:   SYSTEM (NTFS, 199MB, used 66.59MB) Partition without any tag: NTFS (579GM, used 129GB)  RECOVERY (NTFS 16.74 GB, used 2.42GB)  HP_TOOLS (FAT32, 103.34 MB, used 13.23MB)   Since I am not an expert with partitions I would like to get advice on how to do this.  My first idea is this one:   Free some space from /dev/sda2 (I don't know if could also free some other space) delete the HP_Tools partition (I have already created a backup) create an extended partition with the free space in #1 containing three parititions: swap (1gb); / (EXT4, 30GB);  /home (EXT4, 120GB)   Another option is to use wubi instead.  What do you think? Is there any other way to achieve this?  PS: I really think this HP policy of using 4 partitions is not a coincidence  PS: I tried using gparted from the live CD and I got a warning message saying that if I freed some space from /dev/sda2 I could create serious issues in the system


Good day ladies and gentlemen, I wonder how hard would it be to implement the possibility of accepting multiple answers, IT-wise. It arguably does happen that there is more than one good answer and there is no reasonable way to say that one is better than another. Accepting just one (usually based on throwing an n-sided die) because system doesn't allow you otherwise, is a solution I'd call a hack, were I programming it :)  Of course, this question is not terribly important, so feel free to close. But I think it would make things go more smoothly on many occasions. It might also lower the number of requests for community wiki (which usually arise because someone yells "There is no correct answer here!!!").     Is it worthwhile to try to implement the feature of being able to select multiple correct answers?   Relatedly, is there a discussion anywhere whether it would not make sense to alter voting/accepting system (in whatever way)? We are all familiar with 3pt answer being accepted and 100pt crawling somewhere under it (which is especially sad state of affairs when the 3pt answer is long). Or is everybody just so used to all these quirks you don't care anymore? :)

Or at least have maybe the ability to set some other answers as assisted answer. I find myself finding an acceptable answer unusable while other answers underneath it might be more suitable. Would it be safe to say that the accepted answer should only make sense to the asker whether or not the question is important to others?


I have an input in my form like this:
     Phone Number:
     <input type="text" id="phone" name="phone" />

   and I want limit characters on this input and here is javascript code  var phone = $("#phone"); var phoneInfo = $("#phoneInfo"); function validatePhone(){     var a = $("#phone").val();     var filter = /^[0-9]$/;     //it's valid     if(filter.test(a) || message.val().length > 10){                     phone.removeClass("error");         phoneInfo.text("- thank you");         phoneInfo.removeClass("error");         return true;     }     //it's NOT valid     else{         phone.addClass("error");         phoneInfo.text("X");         phoneInfo.addClass("error");         return false;     } }   but it doesn't work...

Is there a quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes (plus '.')?


I have a schengen visa from Germany. My duration of stay is 30 days. I have been entered late on 14 august and my visa validity date is from 1 to 30 august. Is this possible to stay for unused duration of stay? How is this possible? I have found a website maybe it can help!

My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week.  What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.


I am setting up a Development environment on Ubuntu 13.10 for developing HTML5 App for Ubuntu.  I used the following command to install the Ubuntu SDK  sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install ubuntu-sdk   Then I found that QTCreator/Ubuntu SDK installed in ubuntu.Also I can  create a HTML5 Tabbed Touch UI Project in Ubuntu SDK. But when I try to run this project from Build-> Run it is giving me following error  Starting ubuntu-html5-app-launcher --www=/home/hitech/TestApp Failed to start program. Path or permissions wrong? ubuntu-html5-app-launcher exited with code -1   Where TestApp is my project name.  I searched on askubuntu.com but not found exactly what is creating a issue. Somewhere I found that dependency of qtcreator and qtcreator-plugin-ubuntu are broken so I tried to install all the component of qtcreator manually. I am using Synaptic Package Manager to manage the packages. In that I install the packaged in following sequence  1) QtCreator - 2.8.1-0ubuntu1~saucy1~test6 2) qtcreator-plugin-ubuntu - 2.8.1.1bzr65saucy0 3) qtcreator-plugin-ubuntu-common - 2.8.1.1bzr65saucy0  After that I tried to install qtcreator-plugin-ubuntu-cordova but it's dependency is not satisfied and giving me following Error  qtcreator-plugin-ubuntu-cordova : Depends: qtcreator-plugin-ubuntu (= 2.8.1bzr56saucy0) but 2.8.1.1bzr65saucy0 is to be installed   Can you please help to resolve this issue?   I also tried the same installation in Ubuntu Ubuntu 12.04 LTS but the result is same there.    Note:   This is not a problem of Unmet Dependency, It is a bug in Ubuntu SDK installation that qtcreator-plugin-ubuntu only having one version 2.8.1.1bzr65saucy0 while the qtcreator-plugin-ubuntu-cordova is depends on 2.8.1bzr56saucy0 version. The installation of Ubuntu-SDK is not resolving all dependency as it cannot install

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


In the 21st century, generally would we still say we have both supper and dinner along with lunch on the same day?  I live in Seychelles and the eating habit here is breakfast-lunch-heavy dinner. Even when you offer a light supper, they say they'll wait for the dinner.

I've seen cases where a noon-time meal is referred to as dinner, and the evening meal is called supper. There's also lunch around noon followed by dinner in the evening. Is there a particular difference between dinner and supper, or a circumstance where lunch becomes dinner?


I've only recently started learning about imaginary numbers, and there is one thing I cannot really wrap my head around:  $i^2 = i*i = {\sqrt{-1}} * {\sqrt{-1}} = {\sqrt{(-1) * (-1)}} = {\sqrt{1}} = 1$  I'm aware that by definition $i^2 = -1$, but as far as I know, even definitions have to obey mathematical rules.  So where is the mistake? :)    EDIT:  Thank you all, seems like the wrong bit is ${\sqrt{-1}}*{\sqrt{-1}}$  Cheers :)

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I have created an HTTP server in python that executes some cryptographic algorithms. So I try to create vital variables for my cryptography outside the GET method, as I dont want them to change after each request.  Here is a sample of the code:  class Handler(BaseHTTPRequestHandler):       def do_GET(self):                path = self.path         print 'request for ' + path         rootdir = '/Server'          client_mac = path.split('?')[-1]                     file_name = path.split('?')[0]          if self.path.split('?')[0].endswith('.txt'):              '''create client ID'''             print 'Printing mac address of connected device ----> %s' % client_mac              id1_secret_key = pre.keyGen(master_secret_key, client_mac)              fr = open (rootdir + file_name)             file_data = fr.read()             sym_key_ciphertext = pre.encrypt(params, client_mac, sym_key);   #more code follows  try:      httpd = HTTPServer(('',8080), Handler)     print 'Server is on and listening to port...7000'      group = PairingGroup('SS512', secparam=1024)       pre = PreGA(group)     (master_secret_key, params) = pre.setup()     print params     sym_key = OpenSSLRand().getRandomBytes(128) #128 bits     sym_cipher = AuthenticatedCryptoAbstraction(sym_key)     server_mac = get_mac()     id2_secret_key = pre.keyGen(master_secret_key, str(server_mac))      httpd.serve_forever()  except KeyboardInterrupt:     print '^C received,shutting down the web server'     server.socket.close()   After the excution of a GET request i get the following Error:  File "server.py", line 157, in do_GET ciphertext = pre.encrypt(params, client_mac, file_data); UnboundLocalError: local variable 'params' referenced before assignment   I should mention that variable params has a value after the execution of pre.setup().Any advice would be helpful and deeply appreciated.

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


I am having an issue with transferring files that contain sprites. On one computer they have an image and when I move the file to a different computer they come out pink? Can someone please help me?

I made a character, and its one of my first times texturing, and I saved my character into a new folder, and when I came back to the model ALL the textures were pink, I used to know what to do, but I stopped texturing, how do I bring my textures back?


I know $f(x-c)$ is the graph of $f(x)$ shifted to the right $c$ units, but is there any sort of intuitive way of looking at this?

I always find myself wanting for a clear explanation (to a college algebra student) for the fact that horizontal transformations of graphs work in the opposite way that one might expect.  For example, $f(x+1)$ is a horizontal shift to the left (a shift toward the negative side of the $x$-axis), whereas a cursory glance would cause one to suspect that adding a positive amount should shift in the positive direction. Similarly, $f(2x)$ causes the graph to shrink horizontally, not expand.  I generally explain this by saying $x$ is getting a "head start". For example, suppose $f(x)$ has a root at $x = 5$. The graph of $f(x+1)$ is getting a unit for free, and so we only need $x = 4$ to get the same output before as before (i.e. a root). Thus, the root that used to be at $x=5$ is now at $x=4$, which is a shift to the left.  My explanation seems to help some students and mystify others. I was hoping someone else in the community had an enlightening way to explain these phenomena. Again, I emphasize that the purpose is to strengthen the student's intuition; a rigorous algebraic approach is not what I'm looking for.


Requirement: Get the size of a folder or a remote computer within a reasonable timeframe.  WMI takes way too long to enumerate a directory and then calculate the size of its content's.  I attempted the following code however it says that its not a valid path  String Folder = Row["Location"].ToString(); String[] Files = Directory.GetFiles(@"\\" + Folder.Remove(0, 2) + @"\c$" + Folder, "*", SearchOption.AllDirectories); long TotalFolderSize = 0; foreach (String File in Files) {     TotalFolderSize += new FileInfo(File).Length; }   I'm not overly that great with PInvoke, still pretty new to C#. I saw that Kernel32.dll has some calls for files and disk but cannot find anything about folders or directories.  so the questions are    Is there a API/Function in C# that can get the size of a directory over the network. Is there a PInvoke call that you can use to do this What is the best way to do this?

I've written the following routine to manually traverse through a directory and calculate its size in C#/.NET:    protected static float CalculateFolderSize(string folder) {     float folderSize = 0.0f;     try     {         //Checks if the path is valid or not         if (!Directory.Exists(folder))             return folderSize;         else         {             try             {                 foreach (string file in Directory.GetFiles(folder))                 {                     if (File.Exists(file))                     {                         FileInfo finfo = new FileInfo(file);                         folderSize += finfo.Length;                     }                 }                  foreach (string dir in Directory.GetDirectories(folder))                     folderSize += CalculateFolderSize(dir);             }             catch (NotSupportedException e)             {                 Console.WriteLine("Unable to calculate folder size: {0}", e.Message);             }         }     }     catch (UnauthorizedAccessException e)     {         Console.WriteLine("Unable to calculate folder size: {0}", e.Message);     }     return folderSize; }    I have an application which is running this routine repeatedly for a large number of folders.  I'm wondering if there's a more efficient way to calculate the size of a folder with .NET?  I didn't see anything specific in the framework.  Should I be using P/Invoke and a Win32 API?  What's the most efficient way of calculating the size of a folder in .NET?


Is there a place I can find pre-compiled QGIS?   I want to run it from my USB stick, without installation.

How can I setup a portable QGIS to run from a flash drive / USB-Stick? In the userguide for QGIS 1.7 Wroclaw there is only mentioned the option of "--configpath". But to me it is not clear how to deal with this information.  Can someone post a step-by-step explanation!


As much as I try not to do even the most basic demonstration by induction, do you know any way in which I can better understand how to do it, some steps or rules that help me guide me to do them?

What is an effective way to write induction proofs?   Essentially, are there any good examples or templates of induction proofs that may be helpful (for beginners, non-English-native students, etc.)?   To guide readers, please state whether your answer handles:   Case 1: a simple induction $(P_n \implies P_{n+1}$), or Case 2: a strong induction ($P_1,\ldots,P_n \implies P_{n+1}$), or Case 3: a more exotic induction (e.g. over $\Bbb Q$ on $|p|+q$).   PS: I have seen many induction related questions, and very often the problem lies with the OP's lack of a proper methodology (or style) in writing the proof whereas the answers focus on the particular case of the OP's question. The matter of style is obviously subjective, but it seems to me that the "craft" of writing good proofs is almost as important as understanding underlying concepts, so advice on proper proof-writing practices should fall within the scope of MSE (under the proof-writing tag).


If I do  $ git clone https://github.com/dtu-compute/docker-mongodb $ cd docker-mongodb $ git branch * master   but if you look at , there are two branches.  Question  Why don't I get all the branches with git clone?

I have a master and a development branch, both pushed to . I've cloned, pulled, and fetched, but I remain unable to get anything other than the master branch back.  I'm sure I'm missing something obvious, but I have read the manual and I'm getting no joy at all.


When I launch an application from the dash I just need to type a few letters and when I see the application I want, I just click on it and it opens.   The problem in the Files & Folder lens. When I see a file in the list, I need to click on it and then it will go down one level and give a few options (Open, Show in Folder and Email) and then I can open it.   Is there an option where I could skip this one level so this file would act as an application?

Before upgrading to 14.04 when I clicked on a file in the dash, it opened the file.   This still happens on my 12.04 machine.  In 14.04 when I click on a file in dash search results, it offers me 3 options: 'Email', 'Open' and 'Show in Folder'.  How can I get back the previous behaviour - i.e. to immediately open the files on the first click?


When a ball rolling without slipping along an inclined plane reaches the bottom, it has a linear velocity $v$ and angular velocity $\omega\ =v/r$ at the bottom. Then it continues its motion on the horizontal floor. At the moment it reaches the bottom, the point of contact of the ball with the floor is at rest, and there is no external force that could cause slipping. We can think that in this case there would not be any friction. But if there is no friction, the ball will continue to move FOREVER, which apparently does not happen. What is the explanation?

Suppose a wheel is rolling smoothly on a horizontal plane i.e., it is rolling without slipping.  Now let's take the two cases of the horizontal plane:   It has friction It is frictionless   In the first case, as of my knowledge friction doesn't come into play when there is no slipping. So, will the wheel roll forever? If it comes to rest is the answer friction? If not what brings it to rest?  In the second case, there is no friction. So, here also will the wheel roll forever? And if it comes to rest what brings it to rest?


I found an index on ancestry.com for my person that says it came from the U.S. and International Marriage Records, 1560-1900. The index only gives limited information from the document such as both names, marriage date, and marriage place but leaves out most other information. Why wouldn't Ancestry let me access the actual record and is there some other on-line place (preferably free) where I can find such records?

There are 3 records in  about the marriage of Luke Lea and Elizabeth Wilson, showing two different birth states for her:   Source number: 1307.136: North Carolina  Source number: 1307.082: North Carolina  Source number: 23917.001: Lousiana   The similarity in the first two source numbers makes me wonder if the two entries derive from the same source (e.g., one family Bible or pedigree).  Is that how source numbers work in that collection?  (In any event, I know that the frequency of a claim has no bearing on its truth.)


The review section is awesome. People at all levels are participating and improving their sites. This I believe is because it's so easy to use. Please add a delete tab to the review system so that 10k/20k users can easily find and deal with posts that have delete votes on them in a similar manner to the close tab.

It's recently been mentioned in some chat conversations that low-reputation close flags are given too high an importance for moderators and should be directed to the community instead. It's been suggested that on Stack Overflow, close flags should go to the 10k queue rather than the mod queue (this may in fact already be implemented).  While I don't entirely disagree with this, I think it only speaks to one head of a two-headed problem. The more pressing issue - especially on Stack Exchange sites, as opposed to the trilogy - is that close votes don't reach the moderators often enough.  On a site like Programmers.SE, for instance, where there are still a lot of historical questions that need to be cleaned up or closed - it's almost pointless to cast a close vote because no one will ever see it. Better to just flag for moderator attention and not waste your vote (and get some of those lovely flag weight points while you're at it).  One suggestion was to have the first close vote on a question automatically generate a mod flag. This was fairly criticized as creating more work where there should be less.  However, the basic principle of the idea makes sense; diamond moderators and privileged users should have some way to be aware of new close votes, just in case the rest of community isn't pulling its weight.  So a better (IMO) proposal is to turf the near-useless "10k tools" close/delete pages and integrate their content into /review. This would give moderators (as well as privileged users) the ability to review close votes, on sites that need it (such as P.SE), without forcing them into an unwanted workflow on sites that don't (such as Stack Overflow). This also has the advantages of:   Showing an excerpt and tags along with the question titles; Reducing overall clutter (the 10k page is pretty noisy with all its sections); Displaying many more questions at once (/tools seems to have a max of 30, expanded); Giving a realistic indication of how much material there actually is to get through; Embedding action links (e.g. flag/close/delete); Seamless integration of close votes and close flags in a meaningful area; Generally giving reviewers the feeling that they're actually making progress.   It would also be incredibly useful if moderators in particular could dismiss questions from the closed/deleted review just like they can dismiss flags, in effect saying "I don't care, let the community handle this one."  Questions would appear in the closed/deleted review page after the first close vote occurs, and then sorted either by the time of that vote or by the total number of votes (or both). Dismissing (if implemented) would dismiss it permanently, ignoring any new votes, until the question is closed or reopened. Straightforward process with minimal noise.  Bottom line: I think that the /review pages encapsulate a pretty good workflow, and it's a shame that critically-important information is still being jammed into the old /tools clunker when we already have something so much better. My responsibilities as a moderator and/or a 10k user would be a whole lot easier if I could review close and delete votes through /review.


Hi I want to know how i can draw 3D quadric surfaces defined by equations ...     I tried using 3d-plot and tikz but was unable to make it work :/

I wonder whether it is possible to draw the three following quadric surfaces (cone, hyperboloids)  x^2+y^2-z^2=0  x^2+y^2-z^2=1  x^2+y^2-z^2=-1  (and the axis)   using pgfplots 3d or TikZ as it is done in the following image


So I am making a website like a little mock up one as I have just started learning and the footer just won't stay at the bottom and it is killing me. When I load the page it starts at the bottom and then when I scroll down it stays in the same place and is stuck where it started and won't start at the bottom of the page.  #footer {     text-align: right;     padding: 10px;     background-color: #07889B;     position: absolute;     bottom: 0;     width: 1200px;   }

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


I'm a complete newbie to Quantum Theory, but I want to know more, so I've been watching few YouTube videos (an example below).     All videos I've watched explain, that when an entangled particle has its spin measured, it will instantaneously communicate its measurement with its entangled partner, so that when it too is measured in the same direction, it will have the opposite spin.   Often these videos explain why these particles must be communicating with each other, rather than containing "hidden information" (Bell's theorem), but do not delve into why it must be instant.

I have never found experimental evidence that measuring one entangled particle causes the state of the other entangled particle to change, rather than just being revealed.  Using the spin up spin down example we know that one of the particles will be spin up and the other spin down, so when we measure one and find it is spin up we know the other is spin down. Is there any situation after creation that the particle with spin up will change to spin down?


I am going to connect 10 led in series without a transformer.  Now I want to know the value of resister to connect 10 led in series  and please give the calculation method  thank you.

I'm having a bit of trouble understanding currrent limiting resistors in simple LED circuits. I know that I can determine the optimal resistor like so:  \$\displaystyle R=\frac{V_{s}-V_{f}}{I_{f}}\$  But I'm having a hard time understanding how this one value modifies the voltage and the current to the correct values for the LED. For example, if my calcuations for a super bright blue LED (with \$V_{f}\$ being 3.0-3.4 V and \$I_{f}\$ being 80 mA, and a voltage source of 5 V) gives me 25 ohms (using the lower bound of the forward voltage), that's fine. So the current throughout should be 80 mA and the voltage drop for the resistor and LED should be 2 and 3 volts, respectively.  But what if I used a 100 ohm resistor instead? Or any other value—how would I calculate the voltage drops and current? Would I assume one of them stays the same?


Is ANOVA valid for binomial data?  I have 7 binomial groups and I want to test whether the distributions of all of the groups are equal or whether the distribution of the first group is significantly different than the distribution of groups 2-7.  What tests would accomplish this? I was thinking of just combining groups 2-7 and then performing a chi-square test on group 1 vs groups 2-7. Is this valid?  Thank you!

I have four competing models which I use to predict a binary outcome variable (say, employment status after graduating, 1 = employed, 0 = not-employed) for n subjects. A natural metric of model performance is hit rate which is the percentage of correct predictions for each one of the models.   It seems to me that I cannot use ANOVA in this setting as the data violates the assumptions underlying ANOVA. Is there an equivalent procedure I could use instead of ANOVA in the above setting to test for the hypothesis that all four models are equally effective?


Let $\{a_n\}$ be a sequence of positive numbers. Prove that if $$\lim_{n\rightarrow\infty}\frac{a_{n+1}}{a_n} = L$$ then $$\lim_{n\rightarrow\infty}a_n^{1/n}=L.$$   The first condition means that for any $\epsilon$, then exists $N$ such that for all $n\geq N$, we have $$L-\epsilon < \dfrac{a_{n+1}}{a_n} < L+\epsilon.$$ This means $$(L-\epsilon)^na_N<a_{N+n}<(L+\epsilon)^na_N$$ for all $n\geq 0$. Then $$(L-\epsilon)^{\frac{n}{N+n}}a_N<a_{N+n}^{\frac{1}{N+n}}<(L+\epsilon)^{\frac{n}{N+n}}a_N$$  How can I finish from here?

In Elias Stein and Rami Shakarchi's Complex Analysis textbook, we have the following exercise:     Show that if $\{a_n\}_{n=0}^\infty$ is a sequence of complex numbers such that $$\lim_{n\to\infty}\frac{|a_{n+1}|}{|a_n|}=L,$$ then $$\lim_{n\to\infty}|a_n|^{1/n}=L.$$    I've been trying to prove this with no luck. The only thing I've thought of doing is $$\lim_{n\to\infty}\left(\frac{|a_{n+1}|^n}{|a_n|^n}\right)^{1/n},$$but this hasn't lead me anywhere except dead ends. Will someone provide a hint for me about how to proceed? Thanks!  Minor update: I don't know if it's helpful yet, but I know we can write the limit as $$\lim_{n\to\infty}\left(\frac{|a_{n+1}a_n\cdots a_0|}{|a_n\cdots a_0|}\cdot\frac{1}{|a_n|}\right).$$This reminds me a lot of the geometric mean, which even has the exponents I'm trying to get...


The 'which' utility, when run with a parameter naming an executable, will tell you the first executable with that name it finds in your path, if found at all. This gives a good idea which version of the executable will be run. (Forgive me if this description is incomplete, but it conveys the general idea)  I'm looking for either a port of the 'which' utility, a Powershell command, or some other utility I'm not aware of that does the same thing.  I have looked at the following SO question (and will try the for loop logic in the selected answer). I'd prefer to have a single command that implements this functionality and want to see if that exists. If something like that doesn't exist, that logic would be fairly easily put into a script:     The  utility on CodeProject exists. It hasn't been updated in 6 years or so and, when built on my Win 7 machine with VS 2010, crashed upon running. I plan to do my due diligence to find out why it crashed, but don't have time until tonight.   Has anybody used another utility or command on Windows to emulate this functionality?

How do I ask PowerShell where something is?    For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths.


Most people in math are familiar with the conventional taylor series, $$\sum_{n=0}^{\infty} \frac{x^{n}}{n!}$$ which converges to $$e^x$$  I came across an uncommon series from working with very unusual exponents, and even though it looks simple, I'm not sure how to approach it or much less its result. This one has k in the base in the numerator instead. I am fairly certain it converges, but to what I am not sure, it's not really the same as dealing with x^n. For this specific problem, I don't need to know the method, I am wondering only what it converges to.   $$\sum_{n=0}^{\infty} \frac{n^{x}}{n!} = ?$$  Does anyone know what this converges to?

How can I find the value of the sum $\sum_{k=1}^{\infty}\frac{k^n}{k!}$? for example for $n=6$, we have $$\sum_{k=1}^{\infty}\frac{k^6}{k!}=203e.$$


What are the minimum system requirements for QGIS 3.0 Desktop, as speed of CPU and how many cores, how much disk space is needed for installation, size of HDD and swap space, minimum RAM memory, display and screen resolution, graphics memory, etc ?

What kind of hardware is necessary to run QGIS on Win XP? Closely related:


My approach:  I tried it by remainder theorem as there 13,16 which are very close and raised to the power some small powers.  So if it becomes like :  $$13^4+(13+3)^5-(13*13+3)²$$  Now how should I proceed,  $13$ will obviously not be the answer.

I was able to factor out only the prime 13,thus $13^4 + 16^5 - 172^2=13\cdot 80581$ What should be done to solve it? (Maybe some clever factorization, modulo, or anything else?)


It's common for players to assume that opponents are always “level appropriate.” However, mixed level modules change this situation. Recent modules like Tomb of Annihilation can have PCs stepping into areas far beyond their skill.  This raises the question though: what in-game ways to the PCs have to estimate the power and capabilities of their opponents? If the PCs are an inexperienced level 1 party and meet a CR4 opponent where often one strike could kill a PC, not knowing this could be a total party kill.  (For the purpose of focusing this question, please ignore experienced players who know the contents of monster manual or who have gained out-of-character information they can use for judging enemies. Besides, even that often doesn't work for NPCs with class levels!)  I'm not looking for  — those are DM techniques. I'm looking specifically for what mechanics and rules players can use to have their PCs gauge the power of an opponent — whether that might be hit points, CR level, stats like strength, talents or magical abilities. How can PCs judge the opposition's strength?

I'm playing with a DM that usually makes us encounter strong enemies in the middle of nowhere. That's fine since we can choose to fight or not, but the real challenge is determining how strong the opponent is so we don't die a miserable death. If the enemy is a beast, it's fairly easy to determine the encounter's difficulty, but, when it comes to spellcasters, it's hard to determine how difficult they'll be to take in a fight at a glance. I tend to look for items the enemy has for hints, but that's not very effective.  Is there another way (or, at least, a smarter way) to determine an opponent's level or how strong it is?  The party is a human ranger, human paladin, half-elf rogue, and elf necromancer. All are level 5.  Conclusion  First of all, thank you for the comments, questions and advises!! I think RPG is great because of discussions like this one! I came with some conclusions myself after reading everything you guys posted, but there's a background here I think I should share with you guys before start it. Me and my party had this 1-year-long campaign that ended tragically after a silly bar-fight against high-leveled guys we came to encounter and occasionally didn't know their reputation. In fact the DM alerted us about the danger, but it doesn't seemed something deadly.. at a glace. That was fast, and painful. But it was our fault.  Since that episode, I've been trying to be more careful and think before engaging into senseless fights. So I thought it would be helpful to be able to check the level of the threat before we choose to do something (something we see in movies or cartoons when the opponent emanates something like an dark aura...). And after hearing from you guys and talking with our DM I end up concluding it's just not fun to be able to control situations in that way. Like some of you guys wrote above: the best way to approach this "problem" is by role-playing (talking, looking, interacting) and perhaps that's why abilities like Know Your Enemy and Insightful Manipulator are made for more leveled players. Such a way to check the opponent is not as easy as it might look like and that makes sense!  By the way, the threat my party encounter yesterday (the reason why I wrote the question) end up been something beatable! By having the conversation with the NPCs, we decided to fight and that was actually part of DM's plan to make us choose to change the course of the history or not.  Thank you again!


Say I'm a user posting a question and get this error:     It looks like your post is mostly code; please add some more details   And then I find .   Being lazy I use the heavily downvoted suggestion which says to copy and include a paragraph from somewhere/something else that has no relation to the question at all. Which creates unnecessary noise.  Note: .  Wouldn't it make sense to delete that unhelpful answer?

How do you solve the following error when creating a simple post?     It looks like your post is mostly code; please add some more details


Good morning !  I am trying to run the following script every X minutes for Y minutes. Basically, this script outputs a logcat for 5 minutes and checks for files older than 30 minutes to remove them. So far, I haven't found a way to loop this script every 5 minutes beside using watch -n 300 Script.sh    timeout 5m adb shell logcat > ~/ADB/"$(date +%F_%H-%M-%S)".txt    find ~/ADB/ -type f -name '*.txt' -mtime +30m -exec rm {} \;   So far, I have tried with a while loop but it stacks the script every second. The only way it works is using a watch -n 300 Script.sh in a terminal. It lets the script run every 5 minutes for 5 minutes (Then check for files older than 30 minutes to remove them) but I would like to have the whole thing in a single script I can run at bootup.  Edit :  while true; do timeout 5m adb shell logcat > ~/ADB/"$(date +%F_%H-%M-%S)".txt find ~/ADB/ -type f -name '*.txt' -mtime +30m -exec rm {} \; done

Are there any substitutes, alternatives or bash tricks for delaying commands without using sleep? For example, performing the below command without actually using sleep:  $ sleep 10 && echo "This is a test"


this code is giving me a null pointer please help me fix it.  private void homeFragment(Profile profile) {     if (profile != null) {         Bundle mBundle = new Bundle();         mBundle.putParcelable(PARCEL_KEY, profile);         HomeFragment hf = new HomeFragment();         hf.setArguments(mBundle);          FragmentManager fragmentManager = getActivity().getSupportFragmentManager();         FragmentTransaction fragmentTransaction = fragmentManager                 .beginTransaction();         fragmentTransaction.replace(R.id.mainContainer, new HomeFragment());         fragmentTransaction.commit();     } }

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


should I use the text editor? the extension should be .sh or .bat?

Is there a way to create and execute a script file in Ubuntu 14.04?  Perhaps something like Windows batch files.  Specifically, I mean the default scripting language of the Ubuntu terminal (Bash).  How do you make a text file containing bash commands which will be run by the Ubuntu terminal from the top of the file to the bottom.


I'm trying to replicate the table from Annex A of the ISO/IEC 27001 standard:    Here is my MWE:  \usepackage{array,longtable} \begin{longtable}{| l | >{\raggedright}p{0.2\textwidth} | >{\raggedright}p{0.7\textwidth} |}     \hline     \multicolumn{3}{|>{\raggedright}p{\textwidth}|}{\textbf{Text text text}} \\                \hline     Lorem & ipsum & text \\ \end{longtable}   However, adding almost anything between the 'Lorem ipsum' row and the \end{longtable} causes compilation to fail, but in different ways.  Adding another row of cells containing text causes the following:  ! Extra alignment tab has been changed to \cr. <recently read> \endtemplate   l.195                       Lorem2 &                         ipsum2 & text2 \\   Adding \hline causes the following:  ! Misplaced \noalign. \hline ->\noalign                    {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.195                       \hline   And adding \cline{1-3} causes the following:  ! Misplaced \omit. \@cline #1-#2\@nil ->\omit                             \@multicnt #1\advance \@multispan \m@ne \ifnum \@... l.195                       \cline{1-3}   This happens whether I use the longtable or tabular environment.  The only thing that I can add that won't break it is a single text cell, e.g.:      Lorem & ipsum & text \\     adsfdsfdsf \end{longtable}   I am at a complete loss as to what is wrong here. Every other question I can find with the same error is using different packages or nesting things in a way I am not.  The fact that compilation fails no matter what I add makes me think the actual error messages are red herrings, but I have no idea how to debug whatever the underlying issue may be without that information.

The \arraybackslash was used on answer table at   \documentclass[10pt,a5paper,twoside]{memoir} \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc} \usepackage[brazil]{babel}  \usepackage{ragged2e} \usepackage[showframe,pass]{geometry}  \usepackage{ltablex} \keepXColumns  \begin{document} \frenchspacing  \setlength\extrarowheight{2pt} \begin{tabularx}{\linewidth}{|>{\RaggedRight}p{3cm}|>{\arraybackslash}X|}      \caption{Formatação do texto}     \label{tab:a_table_formatacao_de_texto} \\     \hline     \endfirsthead      \multicolumn{2}{c}{\tablename~\thetable: Formatação do texto (continued)} \\     \hline     \endhead      \hline     \multicolumn{2}{r}{\footnotesize to be continued}     \endfoot      \hline     \endlastfoot      Cor                          & Branco -                              \\ \hline     Formato do papel             & A5                                    \\ \hline     Gramatura                    & 75                                    \\ \hline     Cabeçalho                    & 0,7                                   \\ \hline     Impressão                    & Frente e verso                        \\ \hline     Margens                      & Espelhadas: superior 2, Inferior: 1,5 \\ \hline     Cabeçalho                    & 0,7                                   \\ \hline     Rodapé                       & 0,7                                   \\ \hline     Paginação                    & Externa                               \\ \hline     Alinhamento vertical         & Superior                              \\ \hline     Cabeçalho                    & 0,7                                   \\ \hline     Alinhamento do texto         & Justificado                           \\ \hline     Cor                          & Branco -                              \\ \hline     Formato do papel             & A5                                    \\ \hline     Cabeçalho                    & 0,7                                   \\ \hline     Gramatura                    & 75                                    \\ \hline     Impressão                    & Frente e verso                        \\ \hline     Margens                      & Espelhadas: superior 2, Inferior: 1,5 \\ \hline     Rodapé                       & 0,7                                   \\ \hline     Paginação                    & Externa                               \\ \hline     Alinhamento vertical         & Superior                              \\ \hline     Alinhamento do texto         & Justificado                           \\ \hline  \end{tabularx}  \end{document}     On the question  there is some explaining about it:          \arraybackslash: Restore \\ for use in array and tabular     environment    (after \raggedright etc.).   \def\arraybackslash{\let\\\tabularnewline}       Why \\ is broken by \raggedright and these etc other commands?   Reading the line \def\arraybackslash{\let\\\tabularnewline} seems the \\ is being redefined as \tabularnewline, does \raggedright and these etc other commands redefine it as something else, why?  Does I need to put \arraybackslash only on my last table column? What happens if I do not put it or put on/only a middle column or put on every column?


A couple weeks ago, seemingly out of nowhere, the wireframe viewport mode suddenly stopped displaying a wireframe when in object mode, and just made all the objects invisible apart from their outlines. In edit mode the wireframe of the object being edited is shown but all the other objects remain invisible. Is anyone able to help me work out what weird setting I changed? I've even tried reinstalling blender as this issue has made working on this design much harder. (See pictures for further clarification)

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I have an international flight to Istanbul Ataturk airport and then another international flight from there. My flights are not connected but both are with Turkish Airlines. I don't know the procedure for this sort of flights. How should I get my boarding pass and what should I do? Also am I considered as a transit/transfer passenger?  Thank you for you help!

This is more of a panic question after reading reviews on Istanbul Atatürk Airport. They said it's messy and hard to navigate, therefore I'm asking questions here in name of my girlfriend who will need to transit through this airport.  My girlfriend (Canadian national) traveling from Toronto (YYZ) to Istanbul (IST) for a couple hours (~4 hrs, so transiting) in order to come to Pristina (PRN). I would like a quick guideline on how to pass through this airport seamlessly without facing any trouble or delay.  Her tickets are both with Turkish Airlines. She purchased it via a third party (Flighthub.ca). It's only one booking and it includes both flights in it.   Once my girlfriend departs, she's obviously required to follow the signs and go to the transit area. Once she's there, will she be required to present a ticket? Where does she get that ticket? Does she get it in YYZ or does she need to visit a counter in IST and get it? After she's got the proper ticket, what does she need to do exactly? Wait in line to have her passport checked? Will they also control her carryon?  After this step, does she simply go to the PRN flight gate and that's it?   We're simply worried about Istanbul Atatürk Airport because of the recent things that happened in Turkey (coup attempt and ISIS attack) and she doesn't wanna somehow end up locked up there. I've read that the airport is a mess lately and a lot of people will be there waiting in line. So, another question: Are 4 hours enough?  I would appreciate a step by step guideline on how she needs to navigate and what she needs to do in that airport to have a smooth experience without facing any delays. Also some misc information on Istanbul Atatürk Airport would be appreciated.


I'm having a difficulty trying to add a button to my add-on Tools menu for picking a material. Currently I'm doing it by bpy.props.StringProperty() so the user has to write the correct material. Is it possible and how would I make a material picker box like this one? (from Render Layers menu, material override)  I don't even know what is the name of this so excuse me if this is a duplicate question. P.S. I would also like to have an object picker, but I'm assuming that once I figure out how to make the material, the object is just next door. Thank you in advance!

In my addon panel, how can I have an object selection box?  And what data type would I use to store the the selected object?  It should look like this:


In the sentence     If aging were programmed, then...   were is used instead of is or was or have been. Why?

From my research online the correct way is to say "If I were you" and not "If I was you" because this is the "subjunctive mood".  However they don't say the underlying reason for it. They just say use "If I were you" when it is subjunctive.  What if I wanted to say "If he was you", should I use "if he were you" instead? Since most post talk about "If I.." I have no way to know what would be the correct way for "If he...", "If she..", etc.  I read that the subjunctive is a mood and not a Tense. With Tenses you know the conjugation. How does it work with the moods?  I found  which has a long list of conjugations, and it has "I were" for the Past subjunctive.   So, when I am saying "If I were you":   Am I using the "Past Subjunctive"?  And therefore I should also say "If he were you"?


Is it possible to downgrade from 14.04.1 64-bit to 32-bit as an old PC is having real trouble running 64-bit.

I have a 2gb chromebook with 64-bit ubuntu 12.04 and it runs extremly slow and often crashes so how to I downgrade it to 32-bit or is their another solution?


I want to compare two groups on 9 continuous variables to see whether mean scores on these variables differ between the two groups. However, my samples have a very different size: one group includes 299 participants, the other group 45.  I performed a MANOVA with the continuous variables as 'dependents' and group membership as 'fixed factor'. I wonder whether I should control for multiple testing in this case? And if so, what is the best way to do this using spss?  Also, the two groups differ on a number of demographic characteristics (all categorical: gender, age, education level), it seems to me that I should check whether the difference I find between the two groups on the continuous variables is not influenced by the difference between the groups in demographic characteristics. But can I do this using MANOVA or would it then be better to perform a regression analysis, and to include the relevant demographic characteristics in a second block?

There are 10 dependent variables and 2 groups. When I wanted to compare 10 dependent variables between two groups, I performed MANOVA.  I wonder if there is a multiple comparison problem in that case. Should I have performed Bonferroni correction because of 10 dependent variables? Or is Bonferroni useless because MANOVA just does analysis once?


I've been attempting to create a menu using the 'do' feature in Java. I start by providing the user with a range of options, then I request the user to enter their option through the keyboard and in turn, creating the string variable 'selection'. However when I reference the 'selection' variable in my loop expression, the error indication appears with "selection cannot be resolved to a variable". Why is that so and how can I correct this?  Please refer to the code below.  do{        //output presenting the user with options         System.out.print("A simple Menu\n");         System.out.print("Y - Yolk\n");         System.out.print("N - Naan\n");         System.out.print("X - Exit\n\n");          //request user input using the import.util.*; feature         System.out.print("Enter your selection: ");         String selection=keyboard.nextLine();         // So here the 'selection' string is made         }        //Now here, whatever the user has selected as an option will be         // passed through and more options will appear.        while(selection!="X");         //however I get prompted with the red squiggly line underneath the         //'selection' variable that seems to not recognize 'selection' as a string

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


I've been trying numerous ways to have a hanging indentation in my theorems. I'm using amsthm to define my own theorem styles.  What I want is the theorem to indent after line 1 like this:  Text before theorem. Theorem 1. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pellentes     nibh dapibus sem pharetra, eu accumsan nibh pretium. Integer auctor ornare nibh.      Morbi magna neque, luctus maximus metus ut, fermentum aliquet odio. Ut bibendum.       - List item 1       - List item 2     Lectus sed nibh ultrices porta. Curabitur enim leo, imperdiet at mauris tempus. More text after theorem   with the source code of this looking like:  \documentclass{article} \usepackage{amsthm} \setlength\parindent{0pt} %\newtheoremstyle{mytheorem} .... %Theorem style here %\theoremstyle{mytheorem} \newtheorem{thm}{Theorem} \begin{document} Text before theorem. \begin{thm}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pellentes nibh dapibus sem pharetra, eu accumsan nibh pretium. Integer auctor ornare nibh. Morbi magna neque, luctus maximus metus ut, fermentum aliquet odio. Ut bibendum. \begin{itemize} \item List item 1 \item List item 2 \end{itemize} Lectus sed nibh ultrices porta. Curabitur enim leo, imperdiet at mauris tempus. \end{thm} More text after theorem \end{document}   As mentioned I've tried numerous ways, but one (using \hangindent) doesn't work with itemize, others work for only one paragraph.  Is there a way to achieve what I want?

I would like to create a theorem style which indents the theorem exactly like a \hangindent would do, expect that the indention should continue for all paragraphs of the theorem.   For example:  Theorem 1.2.3: Lipsum Lorem ipsum dolor sit amet,     consectetuer adipiscing elit.  Ut purus elit,      vestibulum ut, placerat ac, adipiscing vitae, felis.      Curabitur dictum gravida mauris. Nam arcu libero,      nonummy eget, consectetuer id, vulputate ...   I tried this, but it does not work correctly:  \documentclass[parskip=half]{scrartcl} \usepackage{amsthm,thmtools} \usepackage{lipsum} \usepackage{showframe}  \let\thm\relax \declaretheoremstyle[     headfont=\bfseries,     bodyfont=\normalfont\leftskip2.5em,     headindent={-2.5em} ]{INDENTthm} \declaretheorem[     within=section,     style=INDENTthm,     name=Theorem ]{thm}  \begin{document} \begin{thm}     \lipsum[1]      \lipsum[2] \end{thm} \end{document}   What happens is that the theorem header suddenly has a negative indention relative to the page, i.e. starts just a little to the left of the actual page, although I would expect "2.5em-2.5em=0em"... :-)


I'm trying to render something with the Eevee render engine in the new Blender 2.8 beta version, but the render shows up only blank. This occurs on all blender files, and these files render fine on other computers. Perhaps the Microsoft Surface Pro I am using just isn't up to the task?  Cycles render works fine.   Here's a screenshot:   It'd be great if I could get some help! Thanks

Is there a way to render things in eevee using the CPU or is it just a GPU render engine?


In Gauss Law for Electrostatics, Electric flux term contains Electric field due to charges that are both inside and outside the Gaussian surface. If we use Gauss Law to calculate electric field at a point near the infinite line of charge we make Gaussian cylinder (as Gaussian surface) coaxial with the line of charge in such a way that point is on the cylindrical surface. Now if we place another infinite line of charge outside our Gaussian surface. Will the electric field computed by using our previous Gaussian cylinder gives resultant electric field as Gauss's law contains electric field due to both the charges that are inside and outside the Gaussian Cylinder. Kindly Explain it I am very much confused...

Why is  due to external charge i.e a charge outside a closed surface equal to 0?  P.S:Moreover I found this statement confusing:-  Electric field appearing in the Gauss' law is the resultant electric field due to all the charges present inside as well as outside but the contribution of outside charges in producing flux is zero. Can someone help me understand it.


EDIT: I added the if statement: if(hitInfo.collider != null)  above the if(hitInfo.collider.CompareTag("Player"))  statement and it seems to work.  I'm trying to give my Enemy AI (Red dude) a line of sight via Raycasting. I want it to initiate the Attack(); function when it sees the Player (blue dude) whose tag is "Player". I first need to get a "true" statement from the RaycastHit2D to write the rest but the game just crashes whenever the Player is out of the ray. When I put the player in range of the enemy model by hand before running the game, it runs okay:  But when I make something, like jumping, to stay out of the ray, the game crashes and I get the error:   NullReferenceException: Object reference not set to an instance of an object.  It shows the line 90 which corresponds to the line: if(hitInfo.collider.CompareTag("Player"))  Here is the whole code for my RaycastPlayerDetection() which is called in the Update() function:  private bool RaycastPlayerDetection() {     RaycastHit2D hitInfo = Physics2D.Raycast(EyeSight.position, transform.right, lineOfSight);          Debug.DrawLine(EyeSight.position, hitInfo.point, Color.red);          if(hitInfo.collider.CompareTag("Player"))         {         Debug.Log("player has been seen");         return true;         }         else return false;      }

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


How can we find all hard links to a given file? I.e., find all other hard links to the same file, given a hard link?  Does filesystem keep track of the hard links to a file?  The inode of a file only stores the number of hard links to the file, but not the hard links, right?

Let's say when I do ls -li inside a directory, I get this: 12353538 -rw-r--r-- 6 me me 1650 2013-01-10 16:33 fun.txt  As the output shows, the file fun.txt has 6 hard links; and the inode number is 12353538. How do I find all the hard links for the file i.e. files with the same inode number?


This question is an attempt to clear up the following part of a :  Do not use this flag when a user posts:  An answer to a (slightly) different question   in the case of an answer to an entirely different question. It boils down to "Where do we draw the line" because any affirmative sentence is an answer to some question and any affirmative sentence with a programming context is a possible answer to a possible question on StackOverflow.  The background here is the linked answer to  This answer has nothing to do with the question, but merely gives information the answerer believes could help the asker in a general sense. If you read the question, you see that it's about a specific syntax element in jQuery (it's properly tagged as well). The answer doesn't address that in any way, but rather gives (possibly helpful) advice in a different direction, maybe referring to the asker's obvious lack of background knowledge as a whole. While the answer might be helpful, I think it's appropriate to flag it as "Not an answer" because it's an answer to an entirely different question than the one it was posted to. But my flag was declined, so I'm unsure if I understand the concept correctly and would like to understand the thought process behind the decline. The decline message is declined - a moderator reviewed your flag, but found no evidence to support it. A related case where I didn't flag because I wasn't sure it was appropriate (but would flag for the same reason) is . The first comment to the question was originally an answer and I commented it to point out it's helpful advice, but not answering the question. Obviously, the author agreed.

A few hours ago, I flagged  as not an answer. Additionally, I left a comment, basically saying that this answer has nothing to do with the question.  My flag got declined with the following reason:     flags should not be used to indicate technical inaccuracies, or an altogether wrong answer.   However, when flagging as not an answer, the following description is displayed (emphasis mine):     This was posted as an answer, but it does not answer the question. It should possibly be an edit, a comment, another question, or deleted altogether.   <rant> Basically, I am a bit wary about this declined flag right now, because it matches the description on what should be flagged as an answer and with my current flag weight, this declined flag destroyed about two days worth of flagging. That just took all the fun out of it for me, especially, because I am a responsible flagger, and open the questions to really read them and the answer if I am unsure - even if the answer already has several flags. </rant>  So, what am I asking... Well: Was it correct to decline my flag? If so, please fix the description of that flag option. If it was not correct, how can we prevent such "false flag declines" in the future?  Especially in the context of high flag weights where one declined flag really hurts.  UPDATE:    And another one!!   I didn't even flag as not an answer, but as "Other". My comment was: "Although this is the accepted answer it doesn't help. See comments for more info, basically: Contains not much more than a dead link." It is common sense to flag answers that contain only links, even more so, if the link is dead. As this was an old accepted answer, downvoting didn't help, because I still couldn't delete it. And my flag didn't even ask for deletion, but for "Mod attention", whatever that might be.  You just lost an active flagger, because every dismissed flag costs the equivalent of 50 to 100 "helpful" flags at my current flag weight. All because of some arbitrary decision from some anonymous mod? That just sucks and shows how little the honest flagging effort is honored.


Let $ f_{n}$ be a sequence of measurable non-negative functions such that $ \int f_{n} d\mu \rightarrow 0 , \mu$ is the measure of the considered measure space. Does this imply that $f_{n} \rightarrow 0$ , $a.e.$ ? I particularly want to know the answer to this question with respect to Lebesgue measure on the real line. But answer about general measure space is also fine.

If I know $\| f_n - f \|_{L^p(\mathbb{R})} \to 0$ as $n \to \infty$, do I know that $\lim_{n \to \infty}f_n(x) = f(x)$ for almost every $x$?


As we know, Linux Ubuntu is published in two releases with different release-cycles. The latest ones are: Ubuntu 16.04 LTS Xenial Xerus, one presenting the long-term support version with a less-frequent release-cycle; and Ubuntu 17.04 Zesty Zapus, one with a faster release-cycle, though with an approximately 18 months guaranteed support period only.  My question is, is it possible to switch from Ubuntu 16.04 LTS Xenial Xerus to Ubuntu 17.04 Zesty Zapus without the so called clean install? At least it is possible from the short-term version to the LST one, but I am not sure if it works the other way around.  I am sorry if I appear a total newbie - which I certainly am - but how could I do this? Terminal-wise speaking, I mean (what commands I have to drive)?  Thanks a lot in advance!

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=zSyNOO_gvUY' | sed "s/.*/-ss 02:04 -i &/") -t 02:18 -c copy out.mkv from  i use windows, ubuntu app, shell bash EVERYTHING WORKING Made updates to ffmpeg, youtube-dl from bash, deleted env path's to old ones in win, pc restart

I am using Ubuntu, and the youtube-dl command is working absolutely fine.  However, now I want to download only a portion a video that is too long. So I want to download only a few minutes of that video, e.g. from minute 13 to minute 17.  Is there any way to do that?


I wrote a Java program that should support English and German language. If a parameter is set and if it equals "english" or "English", it shall call a method that does the English version and if there is no parameter or it doesn't equal "English" or "english", it shall call the method for the German version. However, (args[0]=="english"||args[0]=="English") is false no matter what my parameter is, even if it should be true and I don't get why that's the case.  Here is the main method, the other ones aren't important, so I'll leave them away.  public static void main(String[] args){ boolean input=args.length==1; System.out.println(input); boolean mode = false; if (input) mode=args[0]=="English"||args[0]=="english"; System.out.println(mode); if(input&&mode) english(); else german(); }   Does anyone have a clue why it won't be true, regardless of my parameter?

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


following Page 107, Fulton/Harris First course in Rep theory: Let G be a Lie group and $\gamma: I \rightarrow G$ be an arc with $\gamma(0)=e$ and $\gamma'(0)=X$ $[X,Y]=ad(X)(Y) = \frac{d}{dt}|_{t=0}(Ad(\gamma(t))(Y))$ Applying the product rule to $Ad(\gamma(t))(Y) = \gamma(t)Y\gamma(t)^{-1}$ This is: $$=\gamma'(0) \cdot Y \cdot \gamma(0) + \gamma(0) \cdot Y \cdot (-\gamma(0)^{-1} \cdot \gamma'(0) \cdot \gamma(0)^{-1}) = X \cdot Y - Y \cdot X$$  I'm confused about the above application of the product rule... The first summand makes sense, but then in the second summand, to the right of the $Y$, why is there more than just $\gamma'(0)$? We have $-\gamma(0)^{-1}$ and $\gamma(0)^{-1}$. Thanks!

In the , Eq. 59, the formula: $$ \partial_x Y^{-1}=-Y^{-1}(\partial_x Y) Y^{-1} $$ is provided without proof.  How to prove this formula?


Hibernate query to retrieve organisation getting null pointer exception Any suggetsions on how to solve?  StringBuilder queryString = new StringBuilder("SELECT abo.idAbonne ")             .append(" FROM RoleOrganisationsUtilisateurs rou ")             .append(" JOIN rou.user u ")             .append(" JOIN rou.abonnes abo ")             .append(" WHERE u.idUser = :idUser ");      Query query = getFilteredCurrentSession().createQuery(queryString.toString());     query.setParameter("idUser", idUser);      return query.list();   RoleOrganisationUtilisateur entity  @Entity @Table(name = "T_ROLE_ORGANISATIONS_UTILISATEURS") public class RoleOrganisationsUtilisateurs extends  { private static final long serialVersionUID = -2718251269880448406L;  private static final String COLUMN_ID_ROLE_ORGANISATIONS_UTILISATEURS = "ID_ROLE_ORGANISATIONS_UTILISATEURS";  @Id @Column(name = RoleOrganisationsUtilisateurs.COLUMN_ID_ROLE_ORGANISATIONS_UTILISATEURS, columnDefinition = "CHAR(32)") @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid") private String id;   @ManyToOne @Index(name = IndexNameUtil.T_ROLE_ORG_UTILISATEURS_ID_USER_IDX) @JoinColumn(name = "ID_USER") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private User user;  @ManyToOne @Index(name = IndexNameUtil.T_ROLE_ORG_UTILISATEURS_ID_ROLE_IDX) @JoinColumn(name = "ID_ROLE") @NotNull @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private Role role;  @ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST,         CascadeType.MERGE }) @JoinTable(name = "T_ROLE_ORGANISATIONS_UTILISATEURS_LNK_T_ORGANISATION", joinColumns = @JoinColumn(name = "ID_ROLE_ORGANISATIONS_UTILISATEURS", nullable = false), inverseJoinColumns = @JoinColumn(name = "ID_ORGANISATION", nullable = false)) @Filters({ @Filter(name = MarsConstants.SUPPRIME_FILTER), @Filter(name = MarsConstants.MIGRATION_FILTER) }) @OrderBy("nomOrganisation ASC") @NotAudited private Set<Organisation> organisations = new HashSet<>();  @ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST,         CascadeType.MERGE }) @JoinTable(name = "T_ROLE_ORGANISATIONS_UTILISATEURS_LNK_T_ABONNE", joinColumns = @JoinColumn(name = "ID_ROLE_ORGANISATIONS_UTILISATEURS", nullable = false), inverseJoinColumns = @JoinColumn(name = "ID_ABONNE", nullable = false)) @Filters({ @Filter(name = MarsConstants.SUPPRIME_FILTER), @Filter(name = MarsConstants.MIGRATION_FILTER) }) @OrderBy("nom ASC") @AuditJoinTable(name = "T_ROLE_ORGS_USERS_LNK_T_ABONNE_AUD") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private Set<Abonne> abonnes = new HashSet<>();  @Column(name = "BOO_ALL_ORGANISATION") private Boolean allOrganisations = Boolean.FALSE;  @Column(name = "BOO_ALL_ABONNES") private Boolean allAbonnes = Boolean.FALSE;   This is the Abonne Entity  @Entity @Table(name = "T_ABONNE") @Audited @Cache(usage=CacheConcurrencyStrategy.READ_ONLY, region="abonne_entity") public class Abonne  {       /**      *      */     private static final long serialVersionUID = -7500240243978256087L;      @Id     @Column(name = "ID_ABONNE", columnDefinition = "CHAR(32)")     @GeneratedValue(generator = "uuid")     @GenericGenerator(name = "uuid", strategy = "uuid")     private String idAbonne;      @Column(name = "LIB_NOM", length = 200, nullable = false)     private String nom;      @Column(name = "BOO_ACTIF", nullable = false)     private Boolean actif;      @Column(name = "DAT_DATE_EXPIRATION", length = 10)     @Type(type="utcType")     private Date dateExpiration;      @Column(name="NO_MAXIM_DE_UTILISATEURS", length = 5000)     private Integer noMaxUsers;   Getting null pointer for query     Caused by: java.lang.NullPointerException: null    My db tables contain all the required data Any suggetsions on how to solve?

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


I'm trying to filter out specific characters from a string. I don't think this needs much of an introduction, so here's some examples.  const filt1 = "This will not be replaced: æ Ç ü"; const filt2 = "This will be replaced: » ↕ ◄";  // Output goal: // filt1 = This will not be replaced: æ Ç ü // filt2 = This will be replaced:      How would I go about doing this? I want to replace all characters that are not used in any language. Things like accented characters and Chinse characters are what I want to keep.  Arrows, blocks, etc. should be filtered out.  I've tried many regex filters, but none do what I want. This one works the best:  ((?![a-zA-ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇßØøÅåÆæœ ]).)*   But it's bulky and does not include non-accented alphanumeric characters. Sorry if this post's wording is hard to read. I've been at this for a while now and my brain is not functioning normal.

How can I use Unicode-aware regular expressions in JavaScript?  For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.


Further in my textbook it is stated that the ends of all three resistors are under the same potential difference. how is that possible?

I know how to detect when resistors are arranged in parallel or series arrangement and I can also find their equivalent resistance in simple circuits or when resistances are connected in form of triangle but what happens when the arrangement is complex like this :   Which resistors are parallel and which are in series ? How can I find the equivalent resistance in such cases ? Is there rule or method for figuring this out ?


what are some good laptop options for me to install Linux Ubuntu into?  Thank you,  Sinan  P.S. I am a new to Ubuntu.

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I know that bounded functions on compact intervals $[a,b]$ with only finitely (or countably) many discontinuities are Riemann integrable. What is an example of an unbounded function with only finitely many discontinuties defined on a compact interval $[a,b]$ which is not Riemann integrable?   I assume there must be some for the bounded hypothesis to be needed.

Most statements regarding Riemann integrals (at least the ones that I have encountered) begin with the statement "for $f(x)$ bounded on $[a,b]$." I am wondering if Riemann integrability implies boundedness. I think that this has to be the case, but I am not sure. If Riemann integrability does imply boundedness, are improper integrals considered Riemann integrals? I would think that improper integrals wouldn't be Riemann integrals since improper integrals are allowed to be equal to $+\infty$ or $-\infty$. Or are improper integrals that are not equal to $\infty$ considered Riemann integrals?   I am confused.