Hi i have an dictionary which is been set by me and am accessing it  the code is as follows.  NSMutableDictionary* filteredDictionary = [NSMutableDictionary dictionary];     [filteredDictionary setObject:@"xcode" forKey:@"1"];     [filteredDictionary setObject:@"ios" forKey:@"3"];     [filteredDictionary setObject:@"ipad" forKey:@"2"];     [filteredDictionary setObject:@"iphone" forKey:@"5"];     [filteredDictionary setObject:@"simulator" forKey:@"4"];     NSLog(@"%@",filteredDictionary);   current output:  {  1 = xcode; 2 = ipad; 3 = ios; 4 = simulator; 5 = iphone;     } but i want  { 1 = xcode; 3 = ios; 2 = ipad; 5 = iphone; 4 = simulator; }   i want the dictionary as i set the object in it   i dont want to make the dictionary to sort according to it   Pls Help  Thanks in advance.....

I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and values).  I want to use the array of keys as part of my application, but I'd like them to be in a specific order (not really an order that I can write an algorithm to sort them into).  I could always store a separate array of the keys, but that seems kind of kludgey because I'd always have to update the keys of the dictionary as well as the values of the array, and make sure they always correspond.  Currently I just use [myDictionary allKeys], but obviously this returns them in an arbitrary, non-guaranteed order.  Is there a data structure in Objective-C that I'm missing?  Does anyone have any suggestions on how to more elegantly do this?


I just got the UK set and need to know which cards to add.  Would it be easier to tell me what cards are new/different to add?  Or what cards are identical to remove. I want to know the difference between UK and AU editions.   Not the difference between UK and US editions

Cards Against Humanity has different country editions, like UK, US, and AU. Are there differences between these editions other than grammar? What are those differences?


What  theories  do I  use to  find  the  integer  solutions  of  $$y^2+2=x^3\ ?$$  Extremely sorry  for  no  work  on  my  part. I  could  not  begin  actually.

It is known that the diophantine equation $y^{2}=x^{3}-2$ has only one positive integer solution $(x,y)=(3,5)$. The proof of it can be read from the book "About Indeterminate Equation" (in Chinese, by Ke Zhao and Sun Qi). But the method I have known of solving this problem is algebraic number theory.  My question:      Does there exists an elementary method for solving the diophantine equation $y^{2}=x^{3}-2$?   I have gotten an elementary method by the assumption that "$x$" is a prime. That is, we can get a conclusion from the equation that $3\mid x$. Since $x$ is a prime we get the only solution $(x,y)=(3,5)$. But if $x$ is not a prime, the answer seems to be difficult.  Thank you for your help.


Currently I'm running 18.04. I remember there was an update this morning, and I thought everything was fine when I shut it off. I turned it on this evening, and for some reason everything's got a padlock on it now.  I tried rebooting, but nothing was happening so I forced shutdown. When I tried again, it went back to the black screen that says:  /dev/sda4 contains a file system with errors, check forced. Inodes that were part of a corrupted orphan linked list found.  /dev/sda4: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.          (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda4 requires a manual fsck  BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3.2) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)   Looking around online, some posts said it might have been related to an update.   I tried running fsck as suggested in the black screen, but it's no good. Everything still goes back to read-only after about a minute. I don't want to run fsck again because I tried fixing an external drive with a similar error with a similar method, and it made the problem worse.  They also said my hard drive might be failing. I'm using an ASUS X445LF and it's been my only computer for about three years.  UPDATE: Running from a live USB then attempting a fix using fsck works, but only for a short while. Almost by the next reboot, files are changed back to read-only again.

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted.  Now when I try to boot into Ubuntu I get this message:  fsck from util-linux 2.26.2 /dev/sda6 contains a file system with errors, check forced. /dev/sda6: Inodes that were part of a corrupted orphan linked list found.  /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.         (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda6 requires a manual fsck  Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs) _   How can I fix this?


We would like to be able to collect information about all currently running queries when (and only when) a client timeout occurs in SQL Server 2008.  I know I can collect information about the client timeouts using the "Attention" Event Class in SQL Profiler.  And I know I can gather information about the currently run queries using sys.dm_exec_requests.  But how can I connect these two, i.e. query for all currently active queries only when an Attention Event Class appears?  Would this be possible using extended events (I have never used them, so am not sure about their capabilities)? Or rather some other mechanism?  Any help is appreciated.

I'm asking this question in the sequence of this one   Remus Rusanu exposes what it seems to be an optimal solution for my problem, but... I'm too immature to understand and make everything he says.  So far I think what I need to create a notification event for DATABASE_MIRRORING_STATE_CHANGE, am I correct?  how can I create this event notification to when its triggered inserts a line in a table, that stores a timestamp and an ID that comes from the notification.  so far I'm setting up one alert per ID, each one running a job like this(this example is  for ID = 1):      DECLARE @state AS varchar(50);     SELECT @state = mirroring_state_desc FROM SYS.database_mirroring WHERE mirroring_guid IS NOT NULL;     IF (@state IS null) SET @state = ' ';     INSERT INTO MirroringAlerts (DateTime, alertID, alertDesc, Sync, alertCreator) values (SYSDATETIME(), 1, 'Principal synchronized with W ', @state, @@SERVERNAME)   Basically I'm creating an internal log in this database:  CREATE TABLE [dbo].[MirroringAlerts](     [DateTime] [datetime] NOT NULL,     [alertID] [smallint] NOT NULL,     [alertDesc] [nchar](50) NOT NULL,     [Sync] [nchar](12) NOT NULL,     [alertCreator] [nchar](128) NULL ) ON [PRIMARY]   But this way...the alerts are not being triggered fast enough...so I'm loosing information...  Can you tell me how to program this behaviour with  for ?  Best Regards


I'm beginner in datamining. I will do datamining projects, tasks as data modeling(run different dm algorithms), preprocessing(ETL,complex SQL quieries). Is it sufficient for that tasks to use ordinary notebook(I consider quadcore i7 2ghz, 16GB ram, 256ssd -however dm desktop tools as spss,sass doesn't work in mac, but it's possible virtualize windows with eg. virtualbox) or is it highly recommended to use powerfull destkop PC. Which do you recommend ,which alternative is most used in practice ?    Should I chose a desktop or notebook?  I need to buy notebook, I consider between 2models macbook pro: cheaper(quadcore i7 2ghz, 16GB ram, 256GB ssd,iris pro) or expensive(quadcore i7 2.3ghz, 16GB ram, 512GB ssd, GeForce GT 750M) and price difference between this models is 400eur.  In the near future I will be work on datamining projects(as I mention on data modeling, preprocessing tasks) so I'm finding some optimal hardware soultion which allow me to work on this projects so I'm thinking some options:   is it sufficient to buy cheaper macbook pro ?  or when power of 1. isn't sufficient then(more expensive alternatives): buy expensive macbook pro ? or buy for ordinary day to day work cheaper macbook pro + for datamining purpose buy some powerful desktop PC (I think around 400-600eur it's possible to buy powerful desktop pc). Is it in practice on real projects mostly used separate powerful desktop PC for this datamining tasks or mostly use only ordinary powerful notebooks ?   Question around OS   For my day to day work I prefer unix. The question is when is it sufficient for datamining tasks to use emulation of windows(eg. virtualbox,parallels..), or is it very noticably better separate machine with windows(I think some tasks eg ETL complex SQL quieries run longer time).

I am in the market for a new system (probably a laptop) that would be be used primarily for Bayesian/MCMC analyses.  If I had unlimited funds I would obviously buy very high end hardware and be done with it.  Unfortunately, this is the real world and I have to make my budget stretch.  I am looking for advice about the type of system I should get particularly in terms of processor(s) and amount of RAM.  Please note that I am not looking for specific recommendations regarding RAM and processor.  I am looking for general guidance about how to financially prioritize the various aspects of the computational hardware.  I am fine with a PC or a Mac.  If it is relevant, most of my computations would involve running R and/or C.


Why does the change in only the direction leads to acceleration of a body. I mean acceleration of body implies that it is moving fast or getting slow with respect to its initial speed. But i dont think that change in direction affects any of it?

We know that it takes no energy to change the direction of a vector, we know also that it takes no energy to displace a body in motion if a push is applied exactly at a right angle on its center of mass.  Considering that, if that is true, can you explain why a simple change of direction without any increase of speed is considered an acceleration?


This may look similar to . But it isn't as in that question; the problem was that both were similar questions and one (the new one) was better than the other (older one). So which one should marked for closing? But here both the questions are same.  I recently answered a question, which was a duplicate of already-asked one, but it did not have any accepted (or good) answer. And somehow I didn't notice the older one and my answer on newly asked question got upvotes. Now I saw the same older question, but didn't have an answer, so I posted the answer of the newly-asked question there, and it became active.  I can't close the older one as the newly one isn't a better than the older one; both are probably the same as I read   What should I do in that case? Should I mark the older question as a duplicate in favor of the new one or what?

I have seen this many times, a question is being asked because a previous, duplicate question was asked and answered a few years ago and has no longer relevant answers.  The  is to edit the old question, or add new answers to it, but it is not always happening.  I was wondering, should I still mark it as duplicate and vote to close it? Or just leave it as is?


Trying to find the raduis of convergence of this series $\sum_{n = 1}^{\infty} {x^n \over {n^\sqrt n}}$  ratio test seemed hard to apply. With the root test $$ \limsup \left|{x^n \over {n^\sqrt n}}\right|^{1/n}  = |x-0| \limsup \left|{1 \over n^{1/\sqrt n}}\right|  = 0. $$ I don't know what that means exactly. Does it mean (if correct) that the radius of convergence is $0$?

It's clear that the series converges for $|a| \leq 1$ but what about $|a|>1$?


Show that if $p=2^a -1$ is prime then $a$ is prime.    I found this problem very hard to solve and I only managed to show that $a$ must be odd; if $a$ was even we could rewrite $p$ as $$p=2^{2k}-1=(2^k-1)(2^k+1)$$ with $k$ different than $2$. Other than this I couldn't do anything else.

This question is from Elementary Number Theory by W. Edwin Clark.      Is $2^n - 1$ always prime, or not? Prove.   Is this a start? $x^n - 1 = ( x - 1)(1 + x + x^2 \cdots x^{n - 1})$. So, $2^n - 1 = \sum \limits _{i = 0}^{n - 1} 2^i.$  Will I reach a solution through the above, or is there any other way?  I know that the property doesn't hold true for $n = 1,4,6$ et al but I want an algebraic proof.


I have a level 29 Orc hunter if that helps, no one to play with

So, Azeroth got shattered earlier this week.  Before the order of zones by level used to be something like: Kalimdor: Starting zone, The Barrens, Ashenvale, Thousand Needles Eastern Kingdoms: Starting zone, Silverpine, Hillsbrad, Alterac / Arathi / Stranglethorn  However, these zones, at least in Kalimdor, no longer connect this way.  What is the expected progression through the zones now?  Note: I'm actually curious all the way up to 60, but I understand the tree gets a lot more complicated if you go that far, as the number of zones of those levels increase.


I have a page with several buttons(name SousMenu), all this buttons have onclick action.  Now I've create a main button to control all the button(idMenu). When the main button isn't checked, buttons aren't cheked.  if(document.getElementById(idMenu).checked == false) {       var x = document.getElementsByName(SousMenu);     var i;     for (i = 0; i < x.length; i++) {         x[i].checked = false;         x[i].onclick;     } }   Now I want to execute function for all buttons when the main button isn't checking, I've try something like x[i].onclick but it doesn't work..  Thanks for your help

I have an element with an onclick method.  I would like to activate that method (or: fake a click on this element) within another function.  Is this possible?


If the Higgs field permeates all space, why some claim, that total universe energy equals (or is very close to) zero?

Regarding this thread:    Why is the idea that the total energy in the universe "zero" so popular (re: Laurence Krauss) and why is the flatness of the universe used to back this up when, according to that post, an open universe would not conserve energy so the total energy of the universe cannot be "zero", can it? What's the energy being defined as zero and why is that energy used to predict things about the universe when "the" energy (as the term is used in that post) is not zero?  Additionally, I found one very good explanation here for this,    This seems to indicate that in flat space (the sort of space used in these zero energy universe theories) the mass can NOT be positive thus contradicting the notion that mass is positive and gravity negative and the whole thing winds up being zero. Did I interpret that correctly?  The MO question is cross-posted to Physics.SE here,


There are some known linking issues when trying to separate a template class into header & implementation files.  has several solutions, and so does , although neither address defining functions which involve the template though. In particular I am struggling to overload << into std::ostream // include/valueStorer.h #ifndef VALUE_STORER_H #define VALUE_STORER_H  template <class T> class ValueStorer {     T value; public:     ValueStorer(T);     void setValue(T);     T getValue(); };  #endif // #ifndef VALUE_STORER_H   // src/valueStorer.cpp #include "valueStorer.h"  template <class T> ValueStorer<T>::ValueStorer(T v)  {     value = v; }  template <class T> void ValueStorer<T>::setValue(T newValue)  {     value = newValue; }  template <class T> T ValueStorer<T>::getValue() {     return value; }  template class ValueStorer<double>;   // src/main.cpp #include <iostream>  #include "ValueStorer.h"  int main() {     ValueStorer<double> foo(3.14);      std::cout << "Value in foo is " << foo.getValue() << std::endl;      foo.setValue(4.2);     std::cout << "Value in foo is " << foo.getValue() << std::endl; }  I compile the above with g++ -c src/valueStorer.cpp -I include -o build/valueStorer.o And main links and executes fine. I am unable to add an overload to operator<< however: // include/valueStorer.h (addition)  template <class T> std::ostream &operator<< (std::ostream &, const ValueStorer<T> &);   // src/valueStorer.cpp (addition) template <class T> std::ostream &operator<< (std::ostream &os, const ValueStorer<T> &vs) {     os << "Value is " << vs.getValue();     return os; }  I can compile the implementation file fine but cannot link with main (which now calls <<): g++ src/main.cpp build/valueStorer.o -I include -o bin/program  main.cpp:(.text+0x3e): undefined reference to `std::ostream& operator<< <double>(std::ostream&, ValueStorer<double> const&)' /usr/bin/ld: main.cpp:(.text+0x69): undefined reference to `std::ostream& operator<< <double>(std::ostream&, ValueStorer<double> const&)' collect2: error: ld returned 1 exit status  Do I need to implement each of these overloads separately?

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


Let $G = (V, E)$ be a simple undirected graph with $n = |V | \ge 1$ vertices. A subset $U \subseteq V$ of the vertices is called a vc-set if for every edge $\{i, j\} \in E$ either $i \in U$ or $j \in U$ (or both). Let $U^∗$ be a vc-set for $G$ that has the smallest size possible (meaning there does not exist any other vc-set $U'$ such that ($|U'| < |U^∗|$). A subset $W \subseteq V$ of the vertices of $G$ is called an in-set if for all $i, j \in W, \{i, j\} \not\in E$. Let $W^∗$ be a largest possible in-set in $G$ (meaning there is no other in-set, $W′$, such that $|W^∗| < |W^{'}|$). Prove that $|W^∗| = n − |U^∗|$. I tried to use the basics of graph theory but was of no use as I got stuck and back to the starting point. If you could help me I would be really grateful thanks a ton!

Let G = (V, E) be a simple undirected graph with n = |V | ≥ 1 vertices. A subset U ⊆ V of the vertices is called a vc-set if for every edge {i, j} ∈ E either i ∈ U or j ∈ U (or both). Let $U^∗$ be a vc-set for G that has the smallest size possible (meaning there does not exist any other vc-set $U^{'}$ such that (|$U^{'}$| < |$U^∗$|). A subset W ⊆ V of the vertices of G is called an in-set if for all i, j ∈ W, {i, j} $\notin$ E. Let $W^∗$ be a largest possible in-set in G (meaning there is no other in-set, $W^{'}$, such that |$W^∗$| < |$W^{'}$|). Prove that |$W^*$| = n − |$U^∗$ |. I tried to use the basics of graph theory but was of no use as I got stuck and back to the starting point. If you could help me I would be really grateful thanks a ton!


There's much more than up/down voting when reviewing posts, mainly First posts and late answers. Why should they be completely blocked, instead of just not allowing votes as normal?

I was reviewing on , and I faced a weird thing. I can review "Close Votes", "Low Quality Posts", and "Suggested Edits" if I reached my daily vote limit, but I can't for "First Posts" and "Late Answers". Why?    If they just deserve an upvote/downvote then they should not include in the review system. But if we can improve them through leaving comments and by editing the posts then why can't we access them?


I am flying from Seattle to Mumbai with stops at Vancouver and Heathrow.  I am aware of the new regulations effective from the December 1, 2014 () . According to this news article, I am trying to understand if I am exempt based on this rule - "you are travelling from (or on part of a reasonable journey from) Australia, Canada, New Zealand or the USA and it is less than 6 months since you last entered that country with a valid entry visa."  I entered the US three years ago so that's out of the way. Although, I will be entering Canada on my way to Heathrow. I change flights at Vancouver but I do not leave the airport. And this happens hours before I enter Heathrow. Does that count under the rule stated above?  Update1 : I found  and called Heathrow airport Terminal 1. A lady answered and I asked her this question. She said I should be good as long as I have a valid US visa. I'm not sure if I can take her word for that though.  Also, she said that I would still be airside even if I had to change terminals. I will only have to go landside if I had to pick up my checked in luggage.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


A few days ago, I opened my laptop after a night of sleep just to see my trackpad stopped clicking. Almost like the trackpad is stuck and that it won't make that clicking sound when you press onto the trackpad. Regardless, I can still click as in drag and drop. The only problem is that my trackpad wont physical click. My trackpad was working fine for the last couple of months since I bought the MacBook, but it just randomly stopped working for me. A day later this issue, my trackpad randomly started clicking again. I simply can't fiqure out why this is the case. Then frustratingly, the day later the click was fixed, my trackpad click stopped working again. I simply don't understand, if this is a dust build-up issue or swollen battery. As of now, the trackpad is still stuck and just hoping for a miraculous fix for my trackpad. Please, any response or explaination could help.

When I open my MBP at the morning, I can feel the clicks for around 30 seconds, and then it's still functioning but without the click feedback. kind of goes to silent clicking mode. The built-in MBP trackpad works fine and I've another trackpad2 at the office that works great. Tried:  Turn it on and off. Connent with cable and without. Removed from connected devices and re-add it. Went through all the possible checkboxes on Trackpad + Accessibility settings.


After research, Im not certain this is possible in a bash script. The most likely reason ive found is due to bash's order of shell expansions. (maybe?) What i would like to happen, Is the ability to enable/disable redirection (>) of a statement via a prior variable. for example: the printf output below should be (redirected >) based upon what the variable $SendGrafana contains. However this example code does not work: SendGrafana=" > /dev/tcp/192.168.1.242/5062"  awk -v vars="$vars" 'BEGIN{printf "output.api %s \n", vars;}' $SendGrafana  i was hoping the code above would work just like this: awk -v vars="$vars" 'BEGIN{printf "output.api %s \n", vars;}' > /dev/tcp/192.168.1.242/5062 Additionally- When i run the script with set -x (for debugging),  i see that single quotes (') are being wrapped around just the redirect (>) , which i assume is the problem, as nothing gets sent to my netcat listener.  I have read that this is only for user readability when using set -x, however the problem remains. Here is the relevant output with set -x enabled: + awk -v vars=3 'BEGIN{printf "output.api %s \n", vars;}' '>' /dev/tcp/192.168.1.242/5062  (note the '>' ) I have tried many methods, both at the variable declaration as well as at the variable expansion, but all fail to redirect the output to 192.168.1.242:5062 when script is called. Thank you  EDIT BELOW-  (adding this part which was in my comments, as i was trying to keep the question brief, but was suggested it should be here): To add some more context: the reason im even using this $SendGrafana variable, as opposed to no variable and literally  > /dev/tcp/192.168.1.242/5062 after each awk statement- is so i can easily set $SendGrafana= " " , and my script will output to STDOUT (and not send to 192.168.1.242 via > /dev/tcp/192.168.1.242/5062).  I need the output on STDOUT ONLY during debugging / test adding new statements.

I have a bash application that is producing some result, and I'd like to echo the result to either stdout or to a user chosen file. Because I also echo other interactive messages going to the screen, requiring the user to explicitly use the > redirection when he wants to echo the result to a file is not an option (*), as those messages would also appear in the file.  Right now I have a solution, but it's ugly.  if [ -z $outfile ] then     echo "$outbuf"    # Write output buffer to the screen (stdout) else     echo "$outbuf" > $outfile  # Write output buffer to file fi   I tried to have the variable $outfile to be equal to stdout, to &1 and perhaps something else but it would just write to file having that name and not actually to stdout. Is there a more elegant solution?  (*) I could cheat and use stderr for that purpose, but I think it's also quite ugly, isn't it?


Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease   403  Forbidden [IP: 91.189.88.174 80] Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease   403  Forbidden [IP: 91.189.88.174 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease   403  Forbidden [IP: 91.189.88.174 80] Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease   403  Forbidden [IP: 91.189.88.174 80] Reading package lists... Done

I've noticed that running apt-get update recently has resulted in quite a few ppa's returning "403 Forbidden".  In and effort to clean them up I had a look:  W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/dists/raring/main/binary-amd64/Packages  403  Forbidden  W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/dists/raring/main/binary-i386/Packages  403  Forbidden  E: Some index files failed to download. They have been ignored, or old ones used instead.   The strange things is, if I copy these URLs into my browser I can access the files just fine.  Why would apt-get report "403 Forbidden" if they're still accessible?  I tried re-adding the ppa through add-apt-repository which downloads the signing key again, and it still reported "403 Forbidden".


Well digging through many discussions, but all being from a long time ago (Ubuntu 16 or something) tell to use, LiLi, Universal or something other, but others say that they are no longer in use.  So is there currently an application that allows you to create a persistent live USB from Windows, to a 8GB USB?

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


I realise that every file is a hard link. This is what I mean precisely: if an inode has more than one file pointing to it, how can I copy the inode so that every file is pointing to a separate inode with the same content?  For example:  echo "Example" > one ln one two   How can I make the file two have the same contents as one, without sharing an inode? I would like to "reduplicate", if you like, the files.

I am keeping my dotfiles under version control and the script deploying them creates hard links. I also use etckeeper to put my /etc under version control. Recently I have gotten warnings like this:  warning: hard-linked files could cause problems with bzr   A simple copy (cp filename.ext filename.ext) will not work:  cp: `filename.ext' and `filename.ext' are the same file   Renaming/moving a file - except across volumes - also doesn't break the hard-link.  So my question is: is there a way to break a hard-link to a file without actually having to know where the other hard-link/s to that file is/are?


set/get methods in class "hostel_DtRm" (Acronym for date and room). I make it very simple so you get the point.  public class hostel_DtRm {  private String guests;  // Constructor public   hostel_DtRm (){}  // Set guests method   public void setguests(String guests) {     this.guests=guests;  } //get guest method  public String getguests() {  return guests; }   Another Class called "LogedInMain", where the set methods from "hostel_DtRm" are populated.  public class LogedInMain {  private hostel_DtRm dtrm;  public LogedInMain(hostel_DtRm dtrm ) {     this.dtrm=dtrm;     initialize();      ........       .....     Populating the set and get methods from "hostel_DtRm" class from the "LogedInMain" class  hostel_DtRm dtrm= new hostel_DtRm();  dtrm.setguests(guests.getText()); dtrm.setstartdate(((JTextField)checkin.getDateEditor().getUiComponent()).getText()); dtrm.setenddate(((JTextField)checkout.getDateEditor().getUiComponent()).getText());   "TEST" is the class where I want to manipulate the acquired data.  public class TEST { private hostel_DtRm dtrm;  public TEST( hostel_DtRm dtrm) {       this.dtrm=dtrm;      initialize();  }  private void initialize() {  JLabel guest = new JLabel(dtrm.getguests()); guest.setForeground(Color.DARK_GRAY); guest.setBounds(41, 141, 86, 27); LogedInmain.add(guest);   Instead of acquiring the guest number  I get a beautiful "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"  What I did wrong?

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 downloaded rigacar addon but when I try to install the add-on in preferences it simply gives me a blue message with the location details of my computer. I cannot find anything when I look for it in add-on section under preferences.

I have downloaded an add-on hosted on github today using this green 'Download/Clone' button. However, when I try to install it via User Preferences > Addons > Install it does not appear in the Add-on list, no matter what I do.    Q: How to download and install add-ons hosted on github properly? What am I doing wrong?


Is there any convention on how to name your interfaces? I do not mean the implementations, just the interface!  What about the suffix '-able'? Like Runnable, Closeable, Serializable? When to use this?

Most OO languages prefix their interface names with a capital I, why does Java not do this?  What was the rationale for not following this convention?  To demonstrate what I mean, if I wanted to have a User interface and a User implementation I'd have two choices in Java:        Class = User, Interface = UserInterface   Class = UserImpl, Interface = User      Where in most languages:     Class = User, Interface = IUser   Now, you might argue that you could always pick a most descriptive name for the user implementation and the problem goes away, but Java's pushing a POJO approach to things and   most IOC containers use DynamicProxies extensively.  These two things together mean that you'll have lots of interfaces with a single POJO implementation.  So, I guess my question boils down to: "Is it worth following the broader Interface naming convention especially in light of where Java Frameworks seem to be heading?"


I know how to create an image from text in C# and how to specify a certain font size for the text.  But, I want to be able to have a few lines of text where the text is one font size - but the line spacing is a smaller font size - and be able to create an image from this in C#.  For example, I have three lines of text.  The font size for each text line is 24 (not sure what the unit is - pixels? point?).  But, I want the line spacing between each text line to only be 8.  Does anyone know how this can be accomplished?

I arrive to output a string on multiple lines inside a retangle but haven't find a way to reduce or enlarge the line spacing. How to do that?


I have read a lot about global and rolling shutters, and it seems from what I have read that the global shutter is better than the rolling shutters when it comes to moving objects. On the other side it seems that a lot of smartphone companies uses rolling shutters and I really don't understand why. What is the advantage of using rolling shutters, if any?

In answer to , Adam Davis writes:     Your camera complicates this by using   a rolling shutter above a given speed   (usually around 1/200. This means that   only a portion of the image sensor is   exposed to the scene at any given   time, so if the light changes during   the exposure, the color change will   only affect a portion of the image   sensor.   Rolling shutters often are also mentioned in the .  However, I am yet to see a discussion of what a rolling shutter is, how it works and when it is important.  What is a rolling shutter?  What are the implications of using one for my photos?


I would like to install Linux on PC through USB flash drive. But there is already old operating system. I want to clean HDD using command line. In windows, I just use diskpart > list disk > select disk > clean. Is there any way to clean HDD as easy as Windows does?

I have a laptop with Debian on it, and I am going to sell this laptop.   Would it suffice to erase the Debian installation before selling it to completely clean up my laptop from my personal data, and if yes how can I uninstall Debian (so that there isn't any operating system on the laptop)?


Hi i got custom post type and meta key 'tf_elements' which is an array and look like this:  a:28:{s:22:"Mikrofon bezprzewodowy";s:3:"Tak";s:19:"Mikrofon przewodowy";s:3:"Tak";s:39:"Sprzęt do tłumaczenia symultanicznego";s:3:"Tak";s:10:"Magnetofon";s:3:"Tak";s:13:"Odtwarzacz CD";s:3:"Tak";s:5:"Scena";N;s:8:"Mównica";N;s:12:"Zaciemnienie";N;s:12:"Klimatyzacja";N;s:17:"Światło dzienne";N;s:19:"Obsługa techniczna";N;s:29:"Business centre + sekretariat";N;s:21:"Minibar konferencyjny";N;s:21:"Rzutnik multimedialny";N;s:13:"Rzutnik folii";N;s:16:"Rzutnik slajdów";N;s:15:"Magnetowid i TV";N;s:5:"Ekran";N;s:9:"Flipchart";N;s:6:"Kamera";N;s:21:"Tablica suchościerna";N;s:18:"Wskaźnik laserowy";N;s:8:"Komputer";N;s:16:"Wideokonferencje";N;s:7:"Telefon";N;s:3:"Fax";N;s:19:"Łącze internetowe";N;s:26:"Wi-Fi (bezprzew. internet)";N;}   I got search box on page with multiply checkboxes and i want to check search thru this array for example i check two options:  Mikrofon Bezprzewodowy = "TAK" AND Miktofon przewodowy = "TAK" AND ETC.  Is there any simple way to accomplish that ?

In my post meta data I have the following 'key' for every post: "image_details" a typical value of which is an array such as:  a:3:{s:23:"info_window_bg_image_id";s:3:"128";s:12:"colour_start";s:7:"#000000";s:10:"colour_end";s:7:"#b7b7b7";}   In the above example - info_window_bg_image_id is equal to 128  Ideally I would like to find out how many posts have the image_details['info_window_bg_image_id'] set to 128 but I would settle to find out if any of the posts have that value set.  The only way that I can think to do it (with my limited knowledge) is something along the lines of:   Retrieve an array of every post in the database Foreach through the array using the ID's Use get_post_meta(ID, Key) to get the "image_details" key Check the value of the 'info_window_bg_image_id' element of the result to see if it matches the value.    This seems like it would be a heavy load because I would have to do this multiple times to check for other values.  Is there an easier way of doing this? Perhaps with a direct SQL query via the WP_Query class?  Just to reiterate my ideal would be to get a result that lets me know there are:   6 posts have post_meta image_details 'info_window_bg_image_id' set to 128 10 posts have post_meta image_details 'info_window_bg_image_id' set to 127 0 posts have post_meta image_details 'info_window_bg_image_id' set to 126   etc etc  But I would also be happy with a result that just says:  128 is used, 127 is used, 126 isn't used etc


I have a Tier 4 Student Visa for the UK and am an Indonesian national studying in NYU London for 6 months.    What will I need to ensure and provide to make sure I get the multiple entry visa as well as anything I should do to increase my chances?     I'm planning on applying through the Czech embassy in London as it will be my point of entry and the country I'll be spending most of my time in for the Schengen area.

My wife was just issued a multiple entry visa by France, which is good for one year.  Our first trip will be to France, the issuing country.  My question is: after we leave the EU and return, must future trips also start in France? Or may we go directly to (say) Greece from the US on a later visit?


We are developing a system that have different levels of access. Some features are only available for high level users. What would be a good error message for a user with low access trying to access a high level feature?   We can't hide the feature, because the user can ask his superior to release access to the feature.  I thought about using this message:  "You don't have access to this feature. Please, contact your administrator."  But I think it sounds kinda rude.

I've been asked to work on a system message on an intranet where by there are various URLs (linking to lists of content) that have permission rights attached to them, so only certain users have access to the content.  Currently it's spec'ed so that if a user without permission clicks on one of these URLs a message appears which says 'You do not have Permission to view this content'.  I'm wondering is there a better way to handle this?  I was thinking of maybe disabling the links (the user has no permission for) altogether.  There are pro's/cons here.  Pro:  It will stop users clicking on said link and receiving a message which may leave them feeling stupid and maybe annoyed they don't have permission.  Con:  Maybe the user needs to/would like to be aware that this content exists (so needs to be recognizable as a URL) even if he/she cannot view it.  Anyone any ideas on this/seen any similar patterns in use?


This is an exercise that I solved before many semesters, and I just remember I solved in a very complicated(or stupid) way, today when I need to use this exercise as a tool I wonder if there are some brief proofs Thanks for anyone’s help!

How to prove $x^a-1\mid x^b-1 \iff a \mid b$, where $x \ge 2$ and $a,b,x \in \Bbb Z$.  I've tried the following in attempting to solve this:  $$a\mid b \Rightarrow aq=b \Rightarrow x^{aq}=x^b \Rightarrow x^ax^q=x^b$$  Because $x^q \in \Bbb Z$, it follows that $x^a\mid x^b$.  This is as far as I have gotten; any help getting further is appreciated.  Note: It may be that this identity is not true at all?


If my plugin has multiple php files in its plugin folder, how does WordPress know which is the main php file ?

I developed a plugin using the normal convention of naming the main plugin file after the plugin folder (i.e. prefix-someplugin for the folder and prefix-someplugin.php for the file). However, I saw some plugins that use the following structure:  prefix-someplugin  - plugin-loader.php // This file just loads src/prefix-someplugin.php  - /src     - prefix-someplugin.php   Obviously, if they used such structure, it means that it works. The issue is that I'm not sure how it works, hence my question. How does WP know which file to load as the main plugin file? I would have assumed that it looked for a file named after a folder, just adding .php as an extension, but it seems I was wrong.  Does WPjust scan wp-content/plugins for folders, and loads all the files it finds in them, or does it follow a different logic?  Thanks in advance for the answers.


Trying to finish a dissertation here. When clicking Build & View in TexStudio, I get an Error Message plus a Warning Message:     logreq.def error line 8 Tex capacity exceeded, sorry [parameter stack   size=10000]. ...Container{requests}{(internal | external)*}      leipzig.sty warning line 503 Font shape `OT1/cmr/bx/sc'undefined(Font) using `OT1/cmr/bx/n' instead   The error is evidently caused by the mere attempt to load biblatex. It occurs even if no \addbibresource or \printbibliography are called within the document, and even if no settings are specified within the \usepackage call. Both errors (including the warning message) disappear if I simply disable the line that loads biblatex. Here's my main.tex (the individual chapters are separate files and clearly irrelevant):  \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \graphicspath{ {images/} } \usepackage{enumitem}  \usepackage{booktabs}  \usepackage[table,xcdraw]{xcolor}  \usepackage{rotating}  \usepackage{tikz}  \usepackage{longtable}  \usepackage{tabu}  \usepackage{float}   \usepackage{tipa}  \usepackage{leipzig}  \usepackage{gb4e}  \usepackage{caption}   \usepackage[backend=biber, style=authoryear]{biblatex} % Deactivating this line enables the document to compile without errors. % \addbibresource{sources.bib}  \noautomath \begin{document}  \author{My Anonymized Name} \title{My Anonymized Title} \date{October 2020}  \frontmatter \maketitle \newpage \tableofcontents \clearpage \mainmatter \include{./TeX_files/chapter01} \include{./TeX_files/chapter02} \include{./TeX_files/chapter03} \include{./TeX_files/chapter04} \include{./TeX_files/chapter05}  \backmatter % bibliography, glossary and index would go here.  % \printbibliography \end{document}

I am using MacTex 2016 on a Mac (El Captain 10.11.2). My text editor is TexStudio 2.11.0 and all my packages have been updated (TeX live Utility 1.24).  Since I updated MacTex from version 2015 to version 2016, I constantly get the same error when compiling : in a file containing references, when I compile with XeLateX the first time, I get an error about exceeded capacity right where I have an \textcite or \autocite command (the following lines are just warnings) :  TeX capacity exceeded, sorry [parameter stack size=10000]. This book \autocite{adams} 'firstinits' option is deprecated, use 'giveninits' instead. inputenc package ignored with utf8 based engines. Patching footnotes failed. Conflicting options. Add \usepackage{fontspec} to the(frenchb.ldf) preamble of your document,  This file.tex would work just fine before I updated MacTex, I would compile with XeLateX, then bibtex, then XeLatex twice. But before trying to desinstall 2016 and come back to 2015 (if I am ever able to download it somewhere...), I would like to understand what I am doing wrong, and obviously I'm doing something VERY wrong.  \documentclass{book} \title{Chapitre2} \makeindex \date{} \usepackage{amsthm} \usepackage{amssymb} \usepackage{times} \usepackage{tipa} \usepackage{chngcntr} \usepackage[backend=bibtex, citestyle=authoryear-comp, maxcitenames=2, firstinits=true]{biblatex} \addbibresource{/Users/MyName/Documents/Latex/biblio.bib} \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{array} \usepackage{longtable} \usepackage{tabulary} \usepackage{multirow} \usepackage{lscape} \usepackage{colortbl} \usepackage{graphicx} \usepackage{xcolor} \usepackage{enumerate} \usepackage{arydshln} \usepackage{todonotes} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{caption} \usepackage{phonrule} \usepackage{tikz-qtree-compat} \usetikzlibrary{decorations.markings, calc, shapes.misc, decorations.pathreplacing} \usepackage{xr} \usepackage{float} \usepackage{gb4e} \usepackage{hyperref}  \begin{document}  bla bla  This book \autocite{adams} is awesome.  Another awesome book : \textcite{arnason}.  \printbibliography \end{document}   I know there are a lot of packages, but since some of them are incompatible, maybe that could be the problem. And here are the two references I'm refering to from my bib file :  @Book{adams,   title =     {Faroese: a language course for beginners},   publisher = {Stiðin},   year =      {2014},   author =    {Adams, Jonathan and Petersen, Hjalmar P.},   address =   {T\'{o}rshavn},   type =      {Book} }  @Book{arnason,   title =     {The phonology of Icelandic and Faroese},   publisher = {Oxford University Press},   year =      {2011},   author =    {\'{A}rnason, Kristj\'{a}n},   address =   {Oxford; New York},   type =      {Book} }   If I forgot something important, please ask.  Thank you in advance!


webex is not working in Ubuntu 14.04. Do i need to install 32bit java and fire fox to get this worked? Is there any option in 64 bit itself

I'm having a very hard time getting webex to work under Saucy.  Up until now I've been able to just install a java plugin, install ia32-libs, and I was good to go.  With Saucy ia32-libs is gone and it's up to us to figure out which 32-bit libraries we need to install.    So the question is, how do I install WebEx on 64bit Saucy without ia32-libs?


I have a tree constructed using a TreeNode class where each node has an Amounts object. The Amounts object is a simple class that houses some decimal values. E.g.  public class Amounts {     public decimal Amount1 { get; set; }     public decimal Amount2 { get; set; }     ... }   I need to be able to perform some code for each individual property independently, and what I'd like to do is somehow pass one of the Amounts properties to this method using a lambda or similar but I can't quite work out how to do this (I've been a while off the tools unfortunately). I don't particularly like the idea of passing a property name string so I can use reflection SetPropertyValue method.  I want the traversal method to look something like the below. I'm aware that Linq supports a Sum method but I have just used this as a simplified example, with the actual calculation performed being more complex.  public void Traverse(Func<ContributionAmounts, decimal> getter) {     foreach (var child in this.Children)     {         getter(this.Amounts) += getter(child.Amounts);     } }   Rather than having a separate method for each amount, I'd like to do be able to call it something like below:  Traverse(a => a.Amount1); Traverse(a => a.Amount2);   The code above does not work as the value returned by the Func is a read-only decimal value, rather than the decimal property (e.g. Amount1).  I'm not sure if I have explained the requirement very well, but hopefully enough to get a pointer in the right direction.  Thanks, John

Using LINQ to SQL, I have an Order class with a collection of OrderDetails.  The Order Details has a property called LineTotal which gets Qnty x ItemPrice.   I know how to do a new LINQ query of the database to find the order total, but as I already have the collection of OrderDetails from the DB, is there a simple method to return the sum of the LineTotal directly from the collection?  I'd like to add the order total as a property of my Order class. I imagine I could loop through the collection and calculate the sum with a for each Order.OrderDetail, but I'm guessing there is a better way.


I want to write percentile (‰) symbol in latex. I've tried \‰ but it can't

Hi all, I have found a publication using this permille sign with Times New Roman font. I have tried the textcomp \textperthousand and wasysym \permil commands but it does not yield this symbol. This one extends below the character line. Does anyone know of it? Also, I pasted the character into Word and it gives me an ampersand (&) (position 7 on most character maps), with font name as AdvPSMPE7. Any help or tip will be greatly appreciated.


Has the sorting of answers on Stack Overflow been changed? Because I've realised that the answers aren't sorted by  Votes -> Time   anymore, and they are sorted in a different way. It appears the time isn't taken in to consideration, now they are sorted by  Votes -> Random   If it is deliberate then what is the new order for sorting?  I have noticed that sometimes it sorts the old way, but then for others it appears completely random (apart from the votes).

Possible Duplicate:          In a question, I see that each time I refresh the page, the answers were placed in a different order. The question has 3 answers each with zero votes. The users' reputation was something like 6, 1200, and 7300 but these numbers didn't affect the order.  What is the criteria of the sort order of the answers?


I'm writing an assignment on how a poem of my choosing represents a person in my life. I'm trying to use the word "my crush" in the essay, but I looked it up in a dictionary and it's an informal word. Is there a formal word for "a crush"?  An example sentence would be:      "The speaker of the poem describes a person that closely resembles my   crush".

I must clarify, when I say 'crush', I mean the subject of an unrealistic, one-sided infatuation. For example, it can be used in this sentence: 'My celebrity crush is David Beckham.'  Could that word be interchanged for another? Preferably, can it be a word which is not necessarily too formal/complex? I've searched online for a while but can't find any synonyms for this form of 'crush.'  I want the word for a novel which is set in an old-ish fantasy period so I don't think 'crush' would feel in-place.  The main character is a lower-class worker.


if I is ideal and J is ideal then   $$IJ=\left\{ \displaystyle\sum\limits_{i=1}^n a_i b_i\mid a_i\in I, b_i\in J \right\}$$  i am not undetsnaging the defination of it, what is n some n that belong to N? n = |I| or |J|? according to this definitiation it look like that |I| = |J| so each ideals inside some ring have the same size?

I'm a little confused why our book defines an ideal $IJ$ in $R$ (where $I$ and $J$ are ideals) in such a complicated way:  $$IJ=\left\{ \displaystyle\sum\limits_{i=1}^n a_i b_i\mid n\geq 1 ,a_i\in I, b_i\in J \right\}$$  How is this different that defining more simply as:  $$\{ab\mid a\in I,b\in J\}$$ Since $\{ab\}$ is closed on addition then elements of the form $a_1b_1+\cdots +a_mb_m\in\{ab\}$, which sure does seem like it is equal to $IJ$. Am I missing something here?  Thanks.


What is the solution to the one dimensional ODE $$ f'(x)= 1- f^2(x)? $$  Is there a simple classical technique to use?  This looks like a 1-dimensional differential Riccati equation to me, but this isn't my field...

Let $y: \mathbb{R} \rightarrow \mathbb{R}$ satisfy the initial value problem $$y'(t)=1-y^2(t), \ t \in \mathbb{R},$$ $$y(0)=0$$   Then which of the following is true      $(A)$ $y(t_1)=1$ for some $t_1 \in \mathbb{R}$      $(B)$ $y(t)>-1$ for all $t \in \mathbb{R}$      $(C)$ $y$ is strictly increasing in $\mathbb{R}$      $(D)$ $y$ is increasing in $(0,1)$ and decreasing in $(1,\infty)$   I am a biology researcher learning differential equations for related work. I did  an undergraduate course in differential equations but have forgotten most of it. Any help would be appreciated.


In all the books, Snape is the only Death Eater who can produce a Patronus charm. Why can't any other Death Eaters produce a Patronus? Considering that they all went to Hogwarts, and would have learnt to produce it in NEWT classes, it seems surprising that Snape remains the only Death Eater to produce one until the seventh book.

There have been    recently regarding Patronuses, and who could summon one, and why. The general consensus seems to be that Death Eaters could not summon Patronuses, since they are Very Bad People.  My question is, if Death Eaters supposedly were unable to summon a Patronus under any circumstances, then why could Dolores Umbridge summon one? Umbridge was sick and twisted, at least to the level of most Death Eaters, yet we see in Deathly Hallows that Umbridge had her Patronus, a cat, guarding her from Dementors while she was persecuting Muggleborns.


I have a console app with a function that divides integers of a Fibonacci series, demonstrating how the ratio in any  Fibonacci series approaches  Φ . I have simliar code written in Go and inC++11. InGo (or a scientific calculator), the function returns values of int64 and the results show a precision of up to 16 digits in an Ubuntu Terminal Session, for example:  1.6180339937902115   In C++11 I can never see more that 5 digits of precision in the results usingcout. The results are declared aslong double in a function like this:  typedef unsigned long long int ULInt; typedef std::vector< ULInt> ULIntV;  std::vector<long double > CalcSequenceRatio( const ULIntV& fib ) {      std::vector<long double> result;      for ( int i = 0; i != fib.size( ); i ++ )     {          if ( i == ( fib.size( ) - 1 ) )          {              result[i] = 0;              break;           }      long double n = fib[i + 1];     long double n2 = fib[i];     long double q = n / n2;      result.push_back( q );    }      return result;  }   Although the vectorfib passed into CalcSequenceRatio( const ULIntV& fib ) contains over 100 entries, after 16 entries, all values in the result set are displayed as      1.61803   The rest of the value is being rounded although in Go (or in a calculator), I can see that the actual values are extended to at least 16 digits of precision.   How can I make CalcSequenceRatio() return more precise values? Is there is problem because going from long long int to long double is a downcast? Do I need to pass the fib series as vector<long double>? What's wrong?  Edit:  This question has been marked a duplicate, but this is not really correct, because the question does not deal directly with cout: There are other factors that might have made a difference, although the analysis proves that cout is the problem. I posted the correct answer:      The problem is with cout, and here is the solution... as explained in   the other question...

In my  I was printing a double using cout that got rounded when I wasn't expecting it.  How can I make cout print a double using full precision?


I need a data set with a mean of 0 and stdv of 1. how do i get this?

This question is motivated by . But I imagine that it would also be useful in teaching contexts where you want to create a dataset that exactly mirrors an existing published dataset.  I know how to generate random data from a given distribution. So for example, if I read about the results of a study that had:   a mean of 102, a standard deviation of 5.2 , and  a sample size of 72.   I could generate similar data using rnorm in R. For example,   set.seed(1234) x <- rnorm(n=72, mean=102, sd=5.2)   Of course the mean and SD would not be exactly equal to 102 and 5.2 respectively:  round(c(n=length(x), mean=mean(x), sd=sd(x)), 2) ##     n   mean     sd  ## 72.00 100.58   5.25    In general I'm interested in how to simulate data that satisfies a set of constraints. In the above case, the constaints are sample size, mean, and standard deviation. In other cases, there might be additional constraints. For example,    a minimum and a maximum in either the data or the underlying variable might be known. the variable might be known to take on only integer values or only non-negative values. the data might include multiple variables with known inter-correlations.   Questions   In general, how can I simulate data that exactly satisfies a set of constraints? Are there articles written about this? Are there any programs in R that do this? For the sake of example, how could and should I simulate a variable so that it has a specific mean and sd?


Is there any way to make a totally white shadeless material in Blender Cycles? I need to render something as a silhouette being totally white and the background (the background isn't an image or geometry, is just non-existent) completely black. Or make the geometry totally white with not shadows or lights at all, and the background totally black.  I know that in Blender Render you can simply make a Shadeless object texture by pressing the button with the same name and reducing the reflection of the same geometry.

I'm trying to make a material node setup to set final render colors, regardless of lighting conditions. Is such a setup possible?


If I have an item I can't attune to, (e.g. a Dwarvern Thrower for a non dwarf or a robe of the Archmagi if I'm not a Spellcaster): can I still find out what it is after a short rest? I am not asking how to identify it, I'm asking if the fact I can't attune to it prevents me from identifying it.

I had a disagreement with one of my groups recently: They believe that the  spell is the only way to identify a magic item, while I believe a high enough Intelligence (Arcana) check is able to do the same.   What I came here to ask is: What are all the possible ways to identify a magic item?


I have tried to create  map of south west pacific and have got difficulties in interpolating data using different crs. the interpolation is broken and have a line in the 180 degrees marking two different sectors of the map i am trying to fix this as it seems the map is divided into two different sectors Can some expert assist in this?

I've found this map that shows the Pacific Ocean from :    I'd like to produce a similar map, for the same region of the earth and I'd like to use the same projection as I think it illustrates well the distance between the continents.  I've searched for the name of this projection, but I don't think I know the answer yet. At first I thought it was Robison but according to Wikipedia:     The Robinson projection is a map projection of a world map which shows the entire world at once.   Which doesn't seem to be the case. (Can't see Europe and Africa here.)  So, my question is two-fold: what is the name of this projection? Should I use it to illustrate what I said earlier or should I use something else?


In adobe illustrator, I have multiple shapes that I want to share a single gradient with. Right now, when I apply a gradient fill each shape handles it's own gradient.  Is there a way to make all the shapes share one?

I have two separate objects that I have applied gradient fill to.  The gradient fill seems to only apply to the objects as individuals. I tried grouping the shapes, but that doesn't seem to change the gradient.    How do I get one gradient to cover all my shapes?


Now when I want to post some question, I can see already asked on SO questions, listed below, when I type topic on the question form, but what if to show side by side some search results from search providers ?  On my memory, many of questions posted on SO are located on first lines on google. So why not show them too ?

A significant number of downvotes are given to questions whose askers didn't first check Google. This seems to be closely related to downvotes from asking a question with duplicates in the "Related Questions" field. How about also showing Google's "I'm feeling lucky," or some other results, in the Related Questions to help out with that?   EDIT: to clarify, I'm not talking about questions with answers on Stack Overflow, but rather questions with easy solutions available via Google. Here's a question just like that:


I want to check the difference of two file list   one is ls | cut -c 1-4 another is ls | cut -c 1-4 | uniq  does there exists any way can let me do like this diff (ls | cut -c 1-4) (ls | cut -c 1-4 | uniq) or anyway can let me without saving the two list command into files then check the difference of it ..  thanks

I'm trying to compute the difference between the output of two awk commands but my simple attempts at it seem to be failing. Here is what I'm trying:  diff $(awk '{print $3}' f1.txt | sort -u) $(awk '{print $2}' f2.txt | sort -u)   This doesn't work for reasons unknown to me. I was under the assumption that $() construct was used to capture the output of another command but my "diff" invocation fails to recognize the two inputs given to it. Is there any way I can make this work.  By the way, I can't use the obvious solution of writing the output of those two commands to separate files given that I'm logged on to a production box with no 'write' privileges.


As the title implies, I would like to find a way to write (ordered) lists in the shape of a table. This is particularly suitable for homeworks, for instance.   The solution I came with to use the multicol package:   \documentclass{article}  \usepackage{multicol}  \begin{document}  \begin{multicols}{3} [Solve the following equations: ] \begin{enumerate} \item Equation $1$ \item Equation $2$ \item Equation $3$ \item Equation $4$ \item Equation $5$ \item Equation $6$ \item Equation $7$ \item Equation $8$ \end{enumerate} \end{multicols}  \end{document}   The problem is that when the columns does not have the same number of items, the last has a big blank space.   Therefore, is there a solution to have a list shaped like a table? Of course, I could manually write a tabular and number the items myself but it is not very convenient when deleting/adding an item. An excellent answer would give the option to choose whether the list is enumerated vertically or horizontally.   For the management of possible non-equal columns/rows (as in my example), the rule should be: when the list is enumerate vertically, the blanks spaces are at the bottom of the right column; and a the right of the last row when the enumeration is horizontal.

The following image illustrates what am looking for:    Essentially I want the numbering to occur as shown above but using the multicol and enumitem package. But when I try it by using the following code:  \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{enumitem,multicol} \begin{document} \begin{enumerate} \item Evaluate each of the following if $x$ is a non-zero real number.     \begin{multicols}{2}     \begin{enumerate}[itemsep=1cm]% The item sep is my choice here.     \item $\dfrac{|x|}{x}$     \item $\dfrac{x}{|x|}$     \item $\dfrac{|-x|}{-x}$     \item $|x|-|-x|$     \end{enumerate}      \end{multicols} \end{enumerate} \end{document}   I get:    Essentially, I want the (b) to be where the (c) is. I know this has been done but I can't seem to find it.


As in the title: "This needs reviewed." vs "This needs to be reviewed." Are either of these grammatically incorrect ? And/or is one preferable to the other ? I'm not quite sure what area this falls under, so I'm having a hard time finding the correct references elsewhere. Sources preferred if possible please. Thank you

I'm from Central Pennsylvania, and apparently, we have a strange language construct in this area. I was recently talking about how "my car needs washed" to a friend from NJ, and she told me that my sentence was grammatically incorrect.   I realize she's right, and I realize my options are "my car needs to be washed" or "my car needs washing". But I'm not clear on the precise rule being invoked.


How to get the calorie unit in siunitx package. Thanks   \documentclass{memoir} \usepackage{siunitx} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \si[per-mode=symbol]{\kilo**\cal**\per\mol} \end{document}

I'm having a hard time figuring out the LaTeX commands to define new units of year and century in siunitx.  I'd like to write \SI{3}{\cm\per\year} and have it show: 3 cm yr-1, or \SI{42}{\micro\meter\per\century} become 4.2E-5 m/century


Late at night, my menu bar looks like this:  Does anyone know why the date is transparent? It's really hard to read like this. Can I turn this off?

As you can see in the image above, the date and time are dimmer than normal. How do I fix this?


New versions of programs can sometimes be found in the official packages of newer Ubuntu releases.   For example, the DAE-software Asunder gets installed in version 2.8-3 in 16.04, while the most current, fully-updated version in 15.04 is still 2.7-2.  Is this because 15.10 will lose support in a few weeks or do LTS releases also not always receive the newest versions of featured programs? If not, is it possible to update the newer packages somehow?

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


In the latest version of Blender (2.8), I can't find the option "vertex color paint" in cycles mode to render the PLY mesh with color. I can show the PLY mesh color with "Vertex Paint" mode but when I press F12 to render, the output is still a grayscale image.  I have been googling a lot but still can't find a proper solution for Blender 2.8.   Below are some links I found:        Here is the PLY mesh file I tried:

I'm trying to import a .PLY mesh in Blender. I've troubles with colors: the mesh appear in a grayscale palette. Other softwares open it correctly (eg. MeshLab).  This is the header of the PLY file:  ply format binary_big_endian 1.0 comment created by Geomagic Sculpt Exporter. element vertex 182488 property float x property float y property float z property uchar red property uchar green property uchar blue element face 364980 property list uchar int vertex_indices end_header   Any tips? Thanks!


I am using Samsung Galaxy On7, Android 6.0.1.  My phone internal memory is quite small, 8GB. Moreover, apps like MS Word and Excel, which can be moved to sd card, come inbuilt, as a result of which I cannot move them to sd card. So, I clear user data for apps as much as possible, so that space can be freed up.  Now, I see that Google Play Services is using up 68MB of data. I want to clear this data, but as this is one of the basic apps on which the phone runs, I want to know what might be the ill consequences of clearing this data. Will apps no longer run or I'll face grave troubles if I clear this user data?

Just noticed that data in internal storage for Google Play Services app grew above 100Mib, so this app is officially a space hog now. So my questions are:  What is the exact location for Google Play Services data? (for backing up) Can I safely delete Google Play Services data and let the app recreate it? What might I lose if I delete Google Play Services data unsafely?


Suppose I bought a call option and the stock rises above the strike price. That is, I now have an ITM call option. Also, I don't have enough money to exercise the option. So to make a profit off of the call option without having to exercise it, I go to the market and sell a call option for the same strike price and expiration date. My question is since I now have two different "trades" sitting in my account: one is the long call and second is the short call, do I have to "link" these two trades together somehow or how does it work? For example, a person who bought my short call option exercises it, which means I will have to procure 100 shares to give it to him. But I have a long call option and no money to buy the 100 shares to give it to him. What happens now? Do I necessarily need to exercise my long call and give it to the short call or does the commission "cancel" these two orders without me having to do anything? Also, what happens if I cannot find an exact same short call (with same strike price and expiration date on the market)? Since I cannot offset the trade, will I be in loss?

Suppose I sold an option on stock X, with strike price Y, and expiry date Z. Suppose I later buy an option on the same stock, with the same strike price, and the same expiry date. Do these two positions cancel out each other (i.e. both contracts cease to exist anywhere), or will I end up with two separate contracts?  Is it the same with the reverse situation? e.g. I bought an option on stock A, with strike price B, and expiry date C. If I later sell an option on the same stock, with the same strike price and expiry date, will I end up with two contracts (one long position, one short position)?


I tested an update between two large (~5 mil records each) which was taking 10 seconds or so per update. So, doing Explain for my very first time tested the select:  SELECT     T1.Z, T2.Z FROM     TableB T1 INNER JOIN TableL T2     on T1.Name=T2.Name     and T1.C=T2.C    and T1.S=T2.S    and T1.Number>=T2.MinNumber    and T1.Number<=T2.MaxNumber   Explain returned the following as possible keys:   Name C S Number   and chose C as the key.  I was told that my best bet was to make a compound key, and in the order of the select so I did  Alter Table TableB Add Index Compound (Name,C,S,Number)   And did an explain again, hoping it would choose my compound but now even though it shows the compound index as a possible key it still chooses Index C.  I read that I can force the index I want with:  SELECT     T1.Z, T2.Z FROM TableB T1 Force Index(Compound) INNER JOIN TableL T2     on T1.Name=T2.Name     and T1.C=T2.C    and T1.S=T2.S    and T1.Number>=T2.MinNumber    and T1.Number<=T2.MaxNumber   yet I am not sure if it makes any sense to over-ride MySql's selection and, given that if it doesn't help the update is going to take almost two years it doesn't seem like a smart thing to test.  Is there some step I am missin? Do I need to remove the other keys so that it chooses my compound one and if so how will I know if it will even make a difference (given that Mysql saw it and rejected it)?    Explain output on T1: (note: I did not yet add the Compound Index as the table is huge and it might be wasted time until I figure this out. I previously added it on a highly truncated version of the table but that won't help with this explain) Table1   select_type: simple type: ref  possible_keys:  Number,C,S,Name  key: Name  key_len: 303  ref: func  rows: 4  Extra: using where   Explain for Table2   select_type: SIMPLE type: ALL possible_Keys: MinNumber, MaxNumber key: key_length: ref: rows: 5,447,100 Extra:   Cardinality (only showing indexes relevant here as there are a few others):   Primary: 5139680 Name: 1284920 Number: 57749 C: 7002 S: 21

Given that indexing is so important as your data set increases in size, can someone explain how indexing works at a database-agnostic level?  For information on queries to index a field, check out .


The indefinite article certainly adds something, creating a slightly different shade of meaning, but is there a clearly defined rule or principle for this?  What kind of freak show is this? What kind of a freak show is this?  Or:  What kind of person are you? What kind of a person are you?  There is a TV show in which a character, unsatisfied with the manner in which he's about to be killed, asks rhetorically:  CHARACTER: What kind of a death is this?  What would change if he said instead:  CHARACTER: What kind of death is this?  Both are grammatically correct, I suspect. Ngram says so, anyway.

I often hear people saying what kind of [singular noun] rather than what kind of a [singular noun].  Are we not supposed to use an article (a) before noun?


I need to login to my school computer where I am running an experiment. I am logging via SSH -X since it uses a custom made GUI application. I want to be able open the program, make it start collection data, then logoff and check on it a few hours later.  I found many similar questions but but could not find a answer that would work for me. Screen and tmux are not available. Neither are byobu or similar stuff. The computer runs on some kind of old debian and I don't have root access.  I tried nohup which I understand should do the job but I could get it to work. I did:  nohup myprogram & exit   after I do exit the terminal doesn't close and the window of "myprogram" is still there. I have to close the terminal which asks me if I want to kill all open process.  I also couldn't find how to open a program that I have "nohuped" in a previous session. I tried doing nohup myprogram & again but it did not open the previous state of the program.

I want to remote login to another laptop to continue working on session left over. VNC is slow because it's bandwith hog. I know (or I think I know) that it's not latency, it's bandwith because the first update from the top of screen or the top of recently changed view occurs very fast, but the entire redraw takes time. I believe that X doesn't send the pixelmap, but instructions on how to redraw screen. So I'd like to use X.  Question: Is there a way for me to say, to all the applications, please now migrate to the X server available remotely? Or can I make my computer think that what it calls :0.0 is no longer attached to the monitor, but is now on a remote machine. (And can I reverse this process so that I can switch back to the other laptop whenever I want)?


I'm trying to implement a simple first person camera using pitch and yaw angles (no quaternions, I want a simple camera for debugging purposes). An Input class processes mouse input and translate the x and y position in the window into angles. Here's the code:  #define SENSITIVITY 0.01f  void Input::ProcessMouseInput(int x, int y, Camera &camera) {     /* pitch and yaw angles */     static float pitch = 0;     static float yaw = 0;      /* initialize initial mouse position */     static int prev_x = x;     static int prev_y = y;      int offset_x = x - prev_x;     int offset_y = y - prev_y;      pitch += offset_y * SENSITIVITY;     yaw += offset_x * SENSITIVITY;      /* compute transformation matrix */     XMMATRIX pitchTransform = XMMatrixRotationX(pitch);     XMMATRIX yawTransform = XMMatrixRotationY(yaw);     XMMATRIX transform = XMMatrixMultiply(pitchTransform, yawTransform);    // fps-like       //XMMATRIX transform = XMMatrixMultiply(yawTransform, pitchTransform);  // airplane-like      /* transform camera direction - rotate camera */     XMVECTOR oldDirection = XMVectorSet(0.0, 0.0, 1.0, 1.0);     XMVECTOR newCameraDirection_ = XMVector3Transform(oldDirection, transform);     XMMATRIX oldView = XMLoadFloat4x4(&camera.GetInitialViewMatrix());     XMVECTOR det = XMMatrixDeterminant(oldView);     XMMATRIX inverse = XMMatrixInverse(&det, oldView);     XMVECTOR v = XMVector3TransformNormal(newCameraDirection_, inverse);     XMFLOAT3 newCameraDirection;     XMStoreFloat3(&newCameraDirection, v);     camera.SetDirection(newCameraDirection);      /* store current mouse position */     prev_x = x;     prev_y = y; }   What I do is I calculate the direction vector in the view space and transform it with pitch/yaw rotations. Then I tranform the resulting vector in world space coordinates and update the camera direction. All works fine if the camera space x-z plane initial position  is parallel to the world space x-z plane. If the camera is initially tilted downwards or upwards the movement is off (moving along the yaw direction causes a wobbling and the movement is incorrect).  I can't find the problem as I think the calculations are correct (but they obviously aren't).  EDIT  what I mean with odd behaviour is that when I create a camera that has starting position with a pitch wich is not zero I get mixed movements (pitch when yawing and yawing when pitching)

I see questions come up quite often that have this underlying issue, but they're all caught up in the particulars of a given feature or tool. Here's an attempt to create a canonical answer we can refer users to when this comes up - with lots of animated examples! :)    Let's say we're making a first-person camera. The basic idea is it should yaw to look left & right, and pitch to look up & down. So we write a bit of code like this (using Unity as an example):  void Update() {     float speed = lookSpeed * Time.deltaTime;      // Yaw around the y axis using the player's horizontal input.             transform.Rotate(0f, Input.GetAxis("Horizontal") * speed, 0f);      // Pitch around the x axis using the player's vertical input.     transform.Rotate(-Input.GetAxis("Vertical") * speed,  0f, 0f); }   or maybe  // Construct a quaternion or a matrix representing incremental camera rotation. Quaternion rotation = Quaternion.Euler(                         -Input.GetAxis("Vertical") * speed,                          Input.GetAxis("Horizontal") * speed,                          0);  // Fold this change into the camera's current rotation. transform.rotation *= rotation;   And it mostly works, but over time the view starts to get crooked. The camera seems to be turning on its roll axis (z) even though we only told it to rotate on the x and y!    This can also happen if we're trying to manipulate an object in front of the camera - say it's a globe we want to turn to look around:    The same problem - after a while the North pole starts to wander away to the left or right. We're giving input on two axes but we're getting this confusing rotation on a third. And it happens whether we apply all our rotations around the object's local axes or the world's global axes.  In many engines you'll also see this in the inspector - rotate the object in the world, and suddenly numbers change on an axis we didn't even touch!    So, is this an engine bug? How do we tell the program we don't want it adding extra rotation?  Does it have something to do with Euler angles? Should I use Quaternions or Rotation Matrices or Basis Vectors instead?


A ternary tree is an ordered tree where each node has either 0 or 3 children. Such a tree is full if all leaves are at the same distance from the root. Derive an explicit formula for the number of leaves, and the total number of nodes, in a full ternary tree of height h.   My idea was that  At level h i.e. the number of leaf nodes in a ternary tree is 3^h.  3^(h + 1) - 1) /2  = n (3^(h + 1) - 1)  = 2n 3^(h + 1)  = 2n + 1 3^h * 3 = 2n+1 3^h = (2n+1) /3   So the number of leaf nodes in a ternary tree of n nodes is (2n+1)/3

A ternary tree is an ordered tree where each node has either $0$ or $3$ children. Such a tree is full if all leaves are at the same distance from the root. Derive an explicit formula for the number of leaves and the total number of nodes, in a full ternary tree of height h.  Here's what I know, number of nodes = number of edges + $1$ AND with $i$ internal vertices has $l = (m - 1)i + 1$ leaves. But how exactly do I create an explicit formula for number of leaves and total number of nodes?


I tried by giving  $$ S = \sum_{k=0}^{n-1} \left((4k+3)^2+(4k+4)^2-(4k+1)^2-(4k+2)^2\right)  $$ but I am stuck here. I have no idea what to do next. The answer in my book says 4n(n+1). How can I get it? I tried expanding (4k+1)^2, etc. and got $ \sum_{k=0}^{n-1} (8k+20) $, I tried to further expand this by taking it as $ 8\sum_{k=0}^{n-1}k + 20n = 8(n-1)(n)/2 + 20n = 4n^2+16n= 4n(n+4) $ which is not the right answer. What have I done wrong? What must I do now?

Find the sum of the series $$1^2-2^2+3^2-4^2+...-(2n)^2$$  I tried rewriting it as $$\sum_{r=1}^{2n}-1^{n+1}(r^2)$$ but it didn't help.  Also, looked at re-arranging as $$1^2+3^2+5^2+7^2+...+(2n-1)^2$$ and $$-2^2-4-6^2-8^2-...-(2n)^2$$  Still couldn't get to the given answer of $-n(2n+1)$


Some people do not like specific smell of mutton in curry. What I do to remove the smell of mutton while cooking?

Mutton has a slightly "gamey" flavor, is there a way to prep it before cooking which reduces this "gamey" flavour?


As title goes, I want to find a way to get the access of the words inside the environment. To be exactly, given some command \operate with one variable, I want to define an environment foo such that   \begin{foo} This is the inside words.  \end{foo}   outputs like \operate{This is the inside words. }.  Roughly speaking, I want a command help me get access to the words between \begin{foo} and \end{foo}.  This problem is fundamentary in some ways.    If the command is empty, it is just what the package comment did. (Note that it is impossible to define \newenvironment{comment}{\iffalse}{\fi}, since the expansion of \fi is later than \iffalse) If the command is \fbox{#1}, it is just what the package mdframed did.  explain why it is not easy .    I try to figure out a solution as follow  \newenvironment{foo}{}{\endgroup} \long\def\foo#1\end{\begingroup\noindent\fbox{\vbox{#1\unskip}}\end} \begin{foo} This is the inside words. \end{foo}   But the problem is that we cannot use other environment inside this environment.

When working in latex I can do an environment like  \begin{some} stuff \end{some}   and stuff happen and I can define my own environments, I am working on something and what I want to do is essentially to grab everything that was "stuff" in the example and do something to it during the end part of the definition, how would I go about that?


The reputation value from 5 to 10 on positive votes for questions has recently been changed to better reward users who create questions.  But ... what were the impacts on each community?  Has the number of questions increased due to this new incentive? Has the quality of the questions changed as the reward is better? Has there been a significant change in the amount of votes cast on the questions?  And since reputational correction was done retroactively, many users have gained the privilege of using new site tools. Is it possible to evaluate if these new users started using these tools and, if so, if they used them correctly?  How can we evaluate these points in isolation for a specific community?

seems to be the opposite of . Back then,  included a nice analysis of what the effect would be when this change occurs.  I think it would be nice to have an impact analysis (something more substantial than the askers will gain more reputation which is quite obvious).  A particular point of this analysis would be the following case (questions):   score < 0 current reputation gained by user from the question < 0 new reputation gained by user from the question > 0   If there are many such cases, it would significantly encourage asking bad questions.  Question: Is there any impact analysis being done for the question reputation change similar to the one done in the past?


Im new in making datapacks but, All im trying to do is make it detect when im in the minecraft:nether_1. So if im in the nether it will run the command "execute as @a at @s in minecraft:nether_2 run tp @s ~ ~ ~"

I want to check a player's current dimension using a scoreboard. For example, if a player is in the overworld, scoreboard would be set to 1. Nether would be 2. And the End would be 3.  I have tried execute if entity @a in minecraft:the_nether but that actually changes the coordinate's dimension.  Do you know any way to detect a player's current dimension?


I was reading a book on cryptology and thought it would be a cool idea to write a small program that encodes and decodes a message.  I started out with a simple substitution cipher which would substitute a letter with a different letter, shifted a certain set amount. IE. one example would be: a->c, b->d, etc. just shifted by 2.  My code doesn't seem to be substituting the letters correctly. It always outputs the same thing I input, even thought the Key is set. Here is my code:  public class Keyshift {  public static int Key = 0;  public static void selectKey(){     Scanner in = new Scanner(System.in);     System.out.println("Enter an integer");     int a = in.nextInt();     Key = Key + a; }  public static void encode(){      String input = "";     Scanner in = new Scanner(System.in);     System.out.println("Enter a string");     input = in.nextLine();      String[] inputLetters = input.split("");     String[] output = new String[inputLetters.length];      String dictLowercase = new String("abcdefghijklmnopqrstuvwxyz");     String dictUppercase = new String("ABCDEFGHIJKLMNOPQRSTUVWXYZ");     String[] dictLowerArray = dictLowercase.split("");     String[] dictUpperArray = dictUppercase.split("");       for(int i=0;i<inputLetters.length;i++){         for(int c=0;c<25;c++){             if (inputLetters[i]==dictLowerArray[c]){                 output[i] = dictLowerArray[((c+Key) % 26)];             }             else if (inputLetters[i]==dictUpperArray[c]){                 output[i] = dictUpperArray[((c+Key) % 26)];             }             else {                 output[i] = inputLetters[i];             }         }     }     System.out.println("Your encoded message is: ");     System.out.println(Arrays.toString(output));        //System.out.println(Key); } /**  * @param args the command line arguments  */ public static void main(String[] args) {     // TODO code application logic here     selectKey();     encode(); }  }

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?


super down will un-maximize. Is there a way that I could press down a second time and have it minimzie?

I would like to add a conditional key mapping to Ubuntu 19.10.   Normally when a window is in full screen mode and you press super+arrowDown it enters window mode (or whatever it is called).   When a window now is in "window mode" I would like to be able to minimise it (and only then) by using super+arrowDown on it.  Is it possible to create such a shortcut without affecting the mapping of super+arrowDown on full screen windows?


I am getting this error while my update never completed fully.  W:Failed to fetch http://ppa.launchpad.net/iaz/battery-status/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found , E:Some index files failed to download. They have been ignored, or old ones used instead.

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I'm doing some slides in beamer, and including the url and visit date in biblatex in a footnote would make it too long. Is there a way to hide these fields?  The citations in the latex file are inserted like this:  \footfullcite{some_citation}   The following is displayed:     In: arXiv:xxxx.xxxxx [cs]. Jan. 1, 2000. arXiv: xxxx.xxxxx. url:  (visited on 01/01/2000).   I would like this instead:     In: arXiv:xxxx.xxxxx [cs]. Jan. 1, 2000. arXiv: xxxx.xxxxx.

I'd like to customize verbose biblatex citations to exclude URLs (and DOIs) while keeping them in the bibliography. Is there a simple way to accomplish this?  While I'm at it, I'd like to get rid of the "In: " that the verbose styles use (in both the bibliography and citations), and put the URLs and DOIs on separate lines in the bibliography.


Bugbears have long arms, allowing them to grapple enemies 10 ft. away. The Bugbear's square is not in the effect range of the Wall of Fire. However, about 5 ft. worth of one of the Bugbear's hands is supposedly in a square that is. Mechanically, does the Bugbear take damage? If so, simulationally, how do we reconcile that such a small fraction of the player being in the square and taking just as much damage as a character residing fully in the area of effect?

Suppose the Fighter is successfully grappling an Orc. The Fighter then drags the Orc into the area of his Druid friend's Moonbeam so that, grid-wise, the Orc's space is fully inside the Moonbeam's AOE while the Fighter is right at its edge, with his space fully outside of the AOE. The Fighter is maintaining the grapple throughout this time, and he intends to just hold the Orc there and cook him under the Moonbeam.  In the specific scenario, is the Fighter subject to the effects of the Moonbeam spell?  I know that different DM's handle this differently (I'm personally on the "Not Affected Because He's Not Fully In The AOE" camp), so what I'd really like is as close to RAW an interpretation as I can get. Thanks. :)


Can I install Ubuntu 16.04 on a Hp 14" chromebook?  It has a dual core 1.4 GHz Intel Celeron 2955U with intel graphics and 4 gb of ram.

Is it possible to install Ubuntu on a Chromebook? If so, what are the minimum system requirements? Will Ubuntu preform as well on the Chromebook as on a Windows laptop?


By the definition of a derivative, find the first derivative of $\sin^{-1} x$? Could anyone help me please

Because $\sin'(x)=\cos(x)$ we can prove that $\arcsin'(x)=\frac{1}{\sqrt{1-x^2}}$. but, by definition we have $$\arcsin'(x)=\lim_{h\to0}\frac{\arcsin(x+h)-\arcsin(x)}{h}\tag{1}$$ therefore, $$\lim_{h\to0}\frac{\arcsin(x+h)-\arcsin(x)}{h}=\frac{1}{\sqrt{1-x^2}}\tag{2}$$ My question: Can we prove $(2)$ without using $(1)$? How?


I would like to describe the elements of $\mathbb{Z}[i]/(3)$. So I know that these elements look like $z+3\mathbb{Z}[i]$ and I tried to see when we have that $\hat{x}=\hat{y}$. I saw that this happens when we have that $x-y \in 3\mathbb{Z}[i]$ and if we consider $x=a+bi$ and $y=c+di$ then this means that $a\equiv c (\operatorname{mod} 3)$ and $b\equiv d (\operatorname{mod} 3)$, but afterwards I got stuck.

Question is to verify that $Z[i]/(3)$ is a field. If it is identify it's elements. I verify it follows. Since Z[i] is PID, and 3 is irreducible , so 3 becomes prime hence (3) is prime ideal ,so it is maximal ideal hence given quotient ring is field. I know number of elements in it by formula which will give 9. But how can identify elements?


I have an Optimus V, and I have the default music widget on the desktop. Recently it started playing unexpectedly after I paused it. It could be in the middle of the night and more frequently during the day. Because of this I have to turn it off during the night. Any advice on how to keep the music player from playing unexpectedly.

I've noticed this issue on my Sprint Samsung Intercept running 2.2 Froyo (rooted, custom kernel, etc.) I swear I didn't have this issue on Android 2.1, but someone with a Motorola Droid running 2.1 did, as you can see here:   My issue is I love the WinAmp music player. However, when I pause it and leave the app, it will randomly, unexpectedly begin music playback later (both when I am using the phone, and when it's sitting on the ground next to me.) When I navigate to the app, the controls show that it is paused, and clicking on it once will bring it to the normal state (shows as playing, and it is,) and a second time will pause it again (where it should have been to begin with.) This could be a real issue while I'm in class, etc. and I'm forced not to be able to use WinAmp, which I'd really like to be able to do.  With Cubed, the issue is similar. Instead of having it be random though, it plays when I go back to the app. This leads me to believe that it's playing onResume(), without first checking the state it should be in. I'm guessing WinAmp is staying open in the background somehow and doing the same thing.  My question is, is there any fix?


Here's a puzzler: Is the use here of his wife, Julie's, correct?     Peter Brown, still smarting from his wife, Julie's, infidelity, wants   her dead, and he's trying to convince his friend Bill to commit the   murder.   I don't think so, but it seemed like an interesting case that I haven't seen covered anywhere.

Is this the correct use of an apostrophe when showing a name and relationship?     When was your father, Robert's, wedding?   Thanks!


My text messages are suddenly appearing in my email inbox.  There are several places to turn off sync.  I want my calendar, email etc to syn but not my text messages.  How do I turn that off on a Galaxy S7 model?

I recently started using a Samsung Galaxy S4 and one of the features in a synchronization between text messages and email accounts.  When a text message comes in it throws a copy into my Exchange email accounts that are one the phone. I want to turn this feature off but cannot find a setting for it anywhere.  Any ideas?


Find the range of value of $\alpha $ for which $\int_{0}^{\infty}\frac{\sin x}{x^{\alpha}}$ is convergent.  My attempts:  $$\sin x \le 1\implies\int_{0}^{\infty}\frac{\sin x}{x^{\alpha}}\le \int_{0}^{\infty}\frac{1}{x^{\alpha}}$$ So $\int_{0}^{\infty}\frac{\sin x}{x^{\alpha}}$ is convergent if $\alpha > 0$.

For what values $s$ does $\int_{0}^{\infty} \frac{\sin x}{x^s}dx$ converge?  Solution says $0<s<2$.  Any ideas?


I've read online before that if you charge your laptop when it is full, it will eventually "wear out" the battery.  Is there a way to stop my laptop from accepting any charge when its battery is over 95% full?

I work on a HP laptop plugged in most of the time, and after a few months the battery went off-duty.  Of course, I could remove the battery each time the laptop is plugged and replace it each time I must move to where no sockets are around. But I think that:   It would be really BORING! The computer would not avail itself of the useful backup power supply a battery can provide in case of black out.   It should simply switch off the battery charging when a safe power level is reached (i.e. 95%) and start recharging it, not every five minutes, but only under a certain safe threshold (i.e. 40% - 50%).  In its energy-saving profiles, Windows 7 only allows for setting up screen brightness, screen fadeout, screen deactivation and the suspension, not managing any charging issue.  Is there a way to accomplish this?


says the following:     The converse need not be true: Take $X=I\cup\{0'\}$, a unit interval with two origins, where the neighborhood base of $0'$ is formed by intervals $[0',\epsilon):=\{0'\}\cup(0,\epsilon)$.   Where exactly is $0'$ on the line? From the rest of the answer, it seems like we require $0' \in \mathbb{R}\setminus I$, but I'm honestly not sure why it deserves to

I have seen descriptions of the "line with two origins" using quotient spaces. My professor has defined it in an alternate way. However, I can not wrap my head around how the following descriptions forms a line with two origins.   Consider $X=\mathbb{R} \setminus \{0\} \cup \{p,q\}$, that is $X$ is the union of the reals minus $0$, and two points. Consider sets of the type  $U_a = (-a,0) \cup \{p\} \cup (0,a)$  $V_a=(-a,0) \cup \{q\} \cup (0,a)$  where $a >0$. And let  $\mathcal{B}=\{U_a\}_{a>0} \cup \{V_a\}_{a >0} \cup \{ \text{all open intervals of} \hspace{2mm} \mathbb{R} \hspace{2mm} \text{not containing the origin} \}$  Then $\tau=\{\bigcup_{\alpha} B_{\alpha} \big | B_{\alpha} \in \mathcal{B} \}$.  How is this a line with two origins?


I'm trying to extract the numbers presented in a text file to a variable in my Python code. I want to extract the numbers labelled Optic Disc Location X and Y, and save them to the following variables "od_x" and "od_y". Here's the structure of the text file: Code version: $Id: GeneralProjection.m 5455 2017-09-19 12:54:06Z mverhoek $ Device model: California Fovea Location Y (vertical): 1540 Fovea Location X (horizontal): 1980 Fovea Confidence: 0.686278 Optic Disc Location Y (vertical): 1520 Optic Disc Location X (horizontal): 1596 Optic Disc Confidence: 0.731152 Eye Laterality Prediction (L,R): L Eye Steer Prediction (C,I,S,L,R): C Projection Table Used: /media/dropbox/GeneralProjectionTables/California/otrans(0.75,0.88).mat Maximum percent error in area measurement: 0.843522 Distance from fovea to transformation point in degrees: 0.788453  Here's the code I currently have: import re for line in open('test.txt'):     match = re.search('Optic Disc Location X (horizontal): (\d+)', line)     if match:         od_x = match.group(1)         print(od_x)  for line in open('test.txt'):     match = re.search('Optic Disc Location Y (vertical): (\d+)', line)     if match:         od_y = match.group(1)         print(od_y)  What am I doing wrong? Is there an issue with my regex, or the way I'm assigning the result to the variable? Thank you :)

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


I was able to evaluate this from $0$ to $\frac{1}{2}$ but the middle part becomes too hard to evaluate under $\frac{1}{2}$ to $1$. I only have a high school level of understanding of maths, please make it easier to understand.  $$\int_0^1 \left\{\frac1x\right\}\left\{\frac1{1-x}\right\}\left\{1-\frac1x\right\}\,\mathrm{d}x=?$$  where $\{x\}$ is fractional part of $x$.

$\int_{0}^{1}\left\{\frac{1}{x}\right\}\left\{\frac{1}{1-x}\right\}\left\{1-\frac{1}{x}\right\} d x=?$ Where $\{\mathbf{x}\}$ is fractional part of $\mathbf{x}$  I reduced $\{1-1/x\}$ to $\{1/x\}$ but after that I'm not sure how to proceed.


I have a table with 3 columns X, Y and Z with n rows. The range of the data is 0-255. But I wished to scale the values such that the range becomes from -p to +q (where I decide p and q). I randomly came upon a conversion like this one:  on this . I don't remember which matrix exactly did I use. Now this is how it changed the range (Blue: Initial range,  Orange: New Range, Ignore the Grey one)  How can I control this process of changing the range?

I am lost in normalizing, could anyone guide me please.  I have a minimum and maximum values, say -23.89 and 7.54990767, respectively.  If I get a value of 5.6878 how can I scale this value on a scale of 0 to 1.


I have a few questions I want to ask about WordPress--mostly I want to ask HOW I should organize and ask my set of questions. So it seems to me I should ask on WordPress Meta that.  But to ask on Meta requires a 15 reputation.  Can someone explain how I can get a reputation when I'm not sure even how to ask my questions?

I have been reading Stack Exchange for years - mostly not logged in, and have never posted (this is my first). I'm simply not very talkative, and very good at googling.  Recently a few occasions have come up when I've wanted to comment on a question.  I wanted either to ask for, or provide, clarification which did not warrant a new answer.  How do I gain enough reputation to comment without:   asking questions which have already been answered or that I can figure out on my own, or posting my comment like as an answer (i.e. being  rude)?


$x$ is a vector and $A$ is a matrix and I'm confused as to how to find the partial derivatives of $x^TAx$ with respect to $x_1$, $x_2$, etc.

For the Quadratic Form $X^TAX; X\in\mathbb{R}^n, A\in\mathbb{R}^{n \times n}$ (which simplifies to $\Sigma_{i=0}^n\Sigma_{j=0}^nA_{ij}x_ix_j$), I tried to take the derivative wrt. X ($\Delta_X X^TAX$) and ended up with the following:  The $k^{th}$ element of the derivative represented as  $\Delta_{X_k}X^TAX=[\Sigma_{i=1}^n(A_{ik}x_k+A_{ki})x_i] + A_{kk}x_k(1-x_k)$  Does this result look right? Is there an alternative form?  I'm trying to get to the $\mu_0$ of Gaussian Discriminant Analysis by maximizing the log likelihood and I need to take the derivative of a Quadratic form. Either the result I mentioned above is wrong (shouldn't be because I went over my arithmetic several times) or the form I arrived at above is not the terribly useful to my problem (because I'm unable to proceed).  I can give more details about the problem or the steps I put down to arrive at the above result, but I didn't want to clutter to start off. Please let me know if more details are necessary.  Any link to related material is also much appreciated.