I was doing some reading about categorical data analysis (e.g. Agresti (2010): Analysis of Ordinal Categorical Data). Additionally to analysing data with an ordinal response with the help of proportional odds cummulative mixed effects models it seems some people suggest e.g. to use the glmer() function from lme4 in R to fit a whole range of models.  My data looks as follows:   ordinal response: a five point scale with $1<2<3<4<5$ ($1$ being worst, $3$ being neutral, $5$ being best) one single categorical predictor "type" with 5 levels subjects as random effects term which I would specify in lme4 syntax: (type | subjects) with intercept and slope for every subject.   Every subject saw $320$ items ($40$ for level $1$, $40$ for level $2$, $40$ for level $3$, $160$ for level $4$) and rated every single one of them. The dataset seems quite nice and as it only contains a single predictor is very good to get acquainted with categorical data analysis.  However, I was wondering if there are alternative ways of analysing such data apart from treating the response as a continuous variable and using lmer() or aov(). And if there are any recommendation or advice people can give here.  Here is an alternative I read about . One could split a dataset with an ordinal response into subsets that each only contain two levels of the ordinal response. There are some questions I have about this. How would you split that dataset into subsets given a $5$ point ordinal response? Based on the ordering of my response the most reasonable choice to me seems: subset $A$ with levels $1$ and $2$, subset $B$ with levels $2$ and $3$, subset $C$ with levels $3$ and $4$, subset $D$ with levels $4$ and $5$. I tried this with the wine data set from the ordinal package. But this will ungraciously fail because of convergence failures, model unidentifiability etc. (I'm using lme4 1.1.8). Here is the wine example:  data("wine", package = "ordinal") # the wine dataset library(lme4) sub <- wine$rating %in% grep("[1-2]", wine$rating, value = TRUE) sub12 <- subset(wine, subset = sub) sub12$rating <- factor(sub12$rating, ordered = FALSE) glmer12 <- glmer(rating ~ temp + contact + (temp | judge),                  data = sub12,                  family = binomial)  # Substituting (1 | judge) for (temp | judge) won't make it better  # Will give no warning glm12 <- glm(rating ~ temp + contact,              data = sub12,              family = binomial)  sub <- wine$rating %in% grep("[2-3]", wine$rating, value = TRUE) sub23 <- subset(wine, subset = sub) sub23$rating <- factor(sub23$rating, ordered = FALSE)  glmer23 <- glmer(rating ~ temp + contact + (temp | judge),                  data = sub23,                  family = binomial)  sub <- wine$rating %in% grep("[3-4]", wine$rating, value = TRUE) sub34 <- subset(wine, subset = sub) sub34$rating <- factor(sub34$rating, ordered = FALSE) glmer34 <- glmer(rating ~ temp + contact + (temp | judge),                  data = sub34,                  family = binomial)   Of course the wine dataset is rather tiny (and we have full- or quasi-separation) and mine won't but how likely am I to run in similar problem if I analyse ordinal data this way?

I have a set of data with an ordinal response ranging from 1-5 (worst to best) and a categorical predictor with five unordered levels. The experiment is a language experiment whereby subjects are asked to rate different sentence types. In the literature it seems that people fit lmer() most of the time by scaling the ordinal response per subject (i.e. taking the mean response and standard deviation of that subject and dividing the every single response by it.). On the other hand, it seems a reasonable approach to use ordered linear mixed effects probit models or ordered linear mixed effects logit models as implemented in e.g. MCMCglmm() or clmm().  (1) I find myself asking what the best method would be. When is one method to be prefered over the other in an experiment as I have sketched above?  (2) Why do people prefer fitting an lmer() model with a scaled response? What is the advantage?  (3) If it is advisable to use an ordered probit or logit model, how do I decide between an ordered probit or ordered logit model?  Thanks for any help!


Basically I want to get rid of the forward slashes but I'm not as familiar with sed/awk as I should. Can someone help me out here. Edit: I'd also like to mention that the worlist is over 1000 lines and not all of them have the forward slashes appended to them. So I need to basically loop through it, and when it hits a forward slash, remove it. -agile/ -agility -agnosticism -ahead -akeneo -alerts/ -all -all/

I want to remove a character "[" from a file.  I tried   sed -i 's/[//g' 'filename'   however I get the following error      sed: -e expression #1, char 6: unterminated `s' command


“weka-3-7-13-oracle-jvm” can’t be opened because it is from an unidentified developer. I got the above massage when i tried to download weka, kindly advice?

I went to run LibreOffice on my OS X 10.9 and it would not let me install it. It said it was from an unidentified developer. I'm aware of the security features of the Mac and went to System Preferences to allow the software to run.   When I opened this setting I saw a button that said, '"LibreOffice" was blocked from opening because it is not from an identified developer.' and there was a button next to it that said "Open Anyway". I clicked this button and nothing happened. I clicked it multiple times, like a hundred, out of frustration. Is there something else I need to do? Could someone verify this is not a bug?   UPDATE: I've included the photo below of what my System Preferences screen looked like and the button I pushed that didn't work.  UPDATE II: So I tried opening the application again and went into the system preferences and pressed the "Open Anyway" button again and nothing happened at first but a few minutes later while I was typing an email something flashed across my screen, possibly another dialog (or more likely a chewpacabra), but it quickly disappeared and the next thing I know LibreOffice launched!


Since we can't instantiate an abstract class, then what is the necessity of having constructors in abstract class?

Can an abstract class have a constructor?  If so, how can it be used and for what purposes?


I always wonder that when receiving this notification. I'd like to change the 10% value to 25%. May I? Thx in advance!!!!

Essentially, I would like  into a working answer.   I know how to extract the battery percentage from :   upower -i $(upower -e | grep BAT) | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//   And how to pop-up a basic notification:   notify-send "battery low"   But how can I set up a (bash?) script to permanently monitor the output and send notification as per this pseudo-code:   if battery_status < 10% then notify-send "battery low" and put my system to suspended state sudo pm-suspend


This is a problem from Apostol's Real Analysis book. $$\text{Find if  }\sum_{n=1}^{\infty}\dfrac{1}{n^{1+\frac{1}{n}}}\text{ converges or diverges. }$$ I tried to compare with $\displaystyle \sum_{n=1}^{\infty}\dfrac{1}{n^p}$ for suitable $p$, but $p>1$ fails always. I tried to show $\displaystyle \sum_{k=1}^{\infty}2^ka_{2^k}$iconverges, where $\displaystyle a_n=n^{-\left( 1+\frac{1}{n}\right)}$ but again this got too complicated. Can someone give me a proof? Thanks.   Edit : Sorry, I was carried away, because I was thinking it would converge, but the book asked to check for convergence only. I edited it.

We know that $\sum \frac{1}{n^p}$ is convergent for $p>1$. However the series $\sum {\frac{1}{n^{1+1/n}}}$ is apparently divergent since $1+1/n$ tends to 1 as $n$ tends to infinity. But how to prove this? The root test fails expectedly and I haven't been able to find a smaller divergent series for comparison test. Can someone help? Thanks!


I have read numerous articles (and ServerFault answers) on CAL licencing, and thought I understand it. My understanding so far was that CAL licenses are related to users and devices directly accessing the server, i.e. ones which are using it within the network, similar to logging on to the server, using its print/file services, or otherwise accessing its services inside the company. But according to this :  Do I need a CAL when my Windows Server is used to run a web server? Windows Server 2012 R2 configured to run Web Workloads do not require CALs or External Connectors.  Web workloads, also referred to as an internet web solution, are publicly accessible (e.g. accessible outside of the firewall) and consist only of web pages, web sites, web applications, web services, and/or POP3 mail serving.  Access to content, information, and/or applications within the internet web solution must be publicly accessible.  In other words, they cannot be restricted to you or your affiliate’s employees. If you have Windows Servers configured to run a “web workload” these users will not require CALs or External Connectors. However, let’s say you are using Windows Server to setup an online store where customers can buy widgets.  You have front end Windows Servers setup to support your website, and back-end servers (e.g. commerce servers) setup so customers can check out and buy your widgets.  The front end servers used to host your website would generally be considered as running “web workloads” and CALs or External Connectors will not be required to access these servers. Once the customer adds a widget to their shopping cart, creates an account and enters their credit card and shipping information to complete the sale – they are now authenticated via your back end commerce servers/application (non-web workload).  Since users are accessing the back-end commerce servers which web workloads are not running – CALs or External Connectors will be required for users to access these back end servers.  For me, the process of "creating an account and entering payment/shipping information" is confined to IIS. Does this mean the owner of the Windows Server machine needs to purchase as many CALs as there are users accessing "non-publicly available content"? Does a Windows Server running IIS must really have a separate CAL for each physical user which has a web page account?

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


im using this code  .mainmenu {   font-family: signpainter;   margin-bottom: -1px;   color: #333;   font-weight: 400;   font-size: 21px;   letter-spacing: 0.7px;   display: table;   text-align: left;   font-style: italic; }   but font looks different in IE (it's smaller) than it is in Firefox and Chrome.   this my code embed font-family  @font-face{ font-family: signpainter; src: url('fonts/SignPainter.otf'),      url('fonts/signpainter.eot'),      url('fonts/signpainter.woff'),      url('fonts/signpainter.ttf'); font-weight: normal; font-style: normal; }   Does anyone know why? And how do I fix it in IE-11? Thanks

When creating web pages how do we achieve a consistent font size across browsers. I have used something like "font-size: 11pt; font-family: Helvetica,'Lucida Grande'" in my CSS, but the text looks different in Firefox, IE, Google Chrome and Safari (and this is not even on different platforms). Basically on the same machine, that is running Windows Vista, I get a different look and feel under different browsers.  How can this be fixed so that the size of text appears same on all the different browsers.


For some reason, when I run the code below with eBay sold listings, I got java.lang.NullPointerException:   Elements Listings = (Elements) document.getElementsByClass("s-item__details clearfix"); // Each box contains the deal info     for (Element e : Listings) { // Within each box we would like to extract the listing' names and sold prices         String listingName = e.select("h3.s-item__title s-item__title--has-tags").first().text();         System.out.println(listingName);   If I remove the for loop, I will be able to display Listings. What I am trying to do is to extract the listings' names and sold prices. May I know what I am doing wrong please?

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?


The Antimagic Field spell mentions the following:     Spells and other magical effects, except those created by an artifact   or a deity, are suppressed in the sphere...   Does this include magical class features?  Example: A Transmutation Wizard's 6th level feature is the Transmuter's Stone, which mentions:     Starting at 6th level, you can spend 8 hours creating a transmuter’s   stone that stores transmutation magic. You can benefit from the stone   yourself or give it to another creature. A creature gains a benefit of   your choice as long as the stone is in the creature’s possession.   The Antimagic Field spell has specific mentions about  Magic Items:      The properties and powers of magic items are suppressed in the sphere.   Object:      A creature or object summoned or created by magic temporarily winks   out of existance in the sphere.   So, if someone holding a Transmuter's Stone finds himself inside an Antimagic Field, does he retain the benefit granted by the stone? Does he temporarily lose it? Does the stone wink out of existance while inside the sphere?  Similarly if you are an Enchantment Wizard, can you use your Hypnotic Gaze?     Starting at 2nd level when you choose this school, your soft words and   enchanting gaze can magically enthrall another creature.   Does an Abjuration wizard's Arcane Ward remain functional within the sphere assuming it was created outside or does it stop working until the wizard leaves the range of the spell?  This question is not only about the above mentioned class features or just wizard features but generally whether or not an Antimagic Field spell affects class features and if yes, how to determine which ones are affected?

Often confusion arises when the  spell is used, an  is worn, or the 's anti-magic ray is employed, whether a given character's ability will still function.   The spell does give you some guidelines on how to adjudicate the effects of the loss of magic but says very little about how to determine what is affected.  In short, how do I tell if an ability is magical?


For a couple of days, I have with a problem related with Search Service Application. Service suddenly stopped working, being in the stopped state and did not response. I recreated the Shared Service Application, but do not work.   Error:      "The search service is not able to connect to the machine that hosts the administration component."   Using PowerShell   cmdl get-spenterprisesearchserviceinstance -local TypeName: SharePoint Server Search Description: Index content and serve search queries Id: {GUID} Server: SPSERVER Name={Server Name} Service: SearchService Name=OSearch14 Role: None QueryComponents: {GUID} CrawlComponents: {GUID} AdminComponents: () Status: Online   SharePoint version: 2010  Any ideas?  I checked the below questions, and no solution... same error

I got this this error after setting up Search Service Application with Powershell.     The search service is not able to connect to the machine that hosts the   administration component. Verify that the administration component      'a23fd668-f823- 4ab2-b0fc-b0baebfd4af2' in search application   'SharePoint_Search_Service' is in a good state and try again.   The Sharepoint Search Service was showing error when I visited   Central Administration->Application Management->Service Applications->     Manage Service Applications  Here is the powershell script used  $App1 = "APP-Server-01" $APP2 = "APP-Server-02" $SearchAppPoolName = "SharePoint_SearchApp" $SearchAppPoolAccountName = "EXSERV\Administrator" $SearchServiceName = "SharePoint_Search_Service" $SearchServiceProxyName = "SharePoint_Search_Proxy" $DatabaseName = "SharePoint_Search_AdminDB"   Create a Search Service Application Pool  $spAppPool = New-SPServiceApplicationPool -Name $SearchAppPoolName -Account     $SearchAppPoolAccountName -Verbose   Start Search Service Instance on all Application Servers  Start-SPEnterpriseSearchServiceInstance $App1 -ErrorAction SilentlyContinue Start-SPEnterpriseSearchServiceInstance $App2 -ErrorAction SilentlyContinue Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App1 -ErrorAction         SilentlyContinue Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App2 -ErrorAction        SilentlyContinue   Create Search Service Application  $ServiceApplication = New-SPEnterpriseSearchServiceApplication -Partitioned -Name        $SearchServiceName -ApplicationPool $spAppPool.Name -DatabaseName $DatabaseName   Create Search Service Proxy  New-SPEnterpriseSearchServiceApplicationProxy -Partitioned -Name       $SearchServiceProxyName -SearchApplication $ServiceApplication


I've been using blender for over 6 months now. I'm doing this rum bottle and I don't know how to make the detail in the glass.     When i try, i get this result:

I am fairly new to blender and I am trying to do something which I am assuming is fairly straight forward with no success. All I'm looking to do is emboss some text onto the curved part of a yogurt pot. Image attached below. What is the quickest and easiest way of doing this?  Thanks in advance


So lately, every time I start up my Linux server, all two CPUs are 100% utilised, and when I check the processes running, I see a process called "S01wipefs" taking up all my CPU.    When I type "which S01wipefs", I get: /usr/bin/which: no S01wipefs in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) Essentially, nothing.  Please, how do I resolve this?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


Let $d_G(v_i)$ be the degree of the vertex $v_i$ in $G$ which has $n$ vertices. Also $G$ is a triangle-free graph, so we have $d_G(v_i) + d_G(v_j)\leq n$ for any edge $v_iv_j\in E(G)$. how we can prove this: $d_G(v_i) + d_G(v_j)\leq n$ in general ??

I was going through the Bollobás book on Modern Graph Theory.  When proving the Mantel's theorem, that states $n^2/4$ is the lower-bound for having triangles, the proof start from the assumption that:  $$d(x) + d(y) \le n$$  Can someone explain what leads to that?


If I cast Misty Step or Teleport while bound with manacles or ropes (but still able to make somatic gestures), do the manacles or ropes go with me?

Can a character escape the  (DMG p. 177, listed in the SRD as the ) with the  spell? To clarify, I am not asking if the bands prevent teleportation. I am asking whether the bands are teleported with the character as he teleports using misty step.


I have this document class in which I type both in English and Greek.  \documentclass[12pt, a4]{article}  \usepackage{microtype} \usepackage{fontspec} \usepackage{hyperref} \usepackage{xltxtra}  \usepackage{xgreek} \setmainfont[Mapping=tex-text]{Liberation Sans}   \usepackage{listings} \input{listcode}  \begin{document}     english text : hello      greek text   : γεια σου      \lstinputlisting{my_code.ino} \end{document}   It works fine except from the fact that I am not permitted to type Greek characters in the remarks of the code. This is the listcode package:  \lstset{ language=C, basicstyle=\ttfamily,  breakatwhitespace=false, breaklines=true, captionpos=b,  commentstyle=\usefont{T1}{pcr}{m}{sl}\color{red}, deletekeywords={},  firstnumber=1,  frame=leftline, framerule=2.0pt, numbers=left,  numbersep=10pt, numberstyle=\tiny\color{red},  rulecolor=\color{green},  showstringspaces=false,  showtabs=false, stepnumber=1,  stringstyle=\color{blue},  tabsize=2,  }   and this is an example code:  void setup(){ }  void loop(){     //english remarks     //ελληνικά σχόλια }   This is what happens, that is Greek characters inside the snippet do not show up at all.    I suspect that the problem has to do with this line :commentstyle=\usefont{T1},  Could someone suggest how to configure this line (or any other line)?

Please, do you know if there's any possibility how to use the listings package together with XeLaTeX? I have to use XelaTeX and therefore I have UTF-8 encoded files. This is not compatible with listings which allows one-byte encoding. (I know there is listingsutf8 package, but it converts files from UTF-8 which I don't need.)  The listings package works somehow, bu I only can use English letters. I've fond some solution like a list of special characters (  ) but it seems it works only for some letters. It there anything that would support UTF-8 in listing 'naturally'?


I installed the driver using apt-get and restarted my computer, and now when I log in. I get stuck in a loop. The screen shows some funny colours and sends me back to the login screen. Is there any way I could do a system restore back to my old graphics settings? any help would be much appreciated :)

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I am trying to to center text over multiple images using bootstrap and css. Most googling says i need to use position: absolute; However the most i am able to do is center the text in the middle of the screen but not over the image. I believe its something with bootstrap but i cannot find what is blocking it The goal is for the text to have animation over the image moving forward like fading in and such  I have already checked multiple post about this but they all seem to only work if its one image. Trying to do with with multiple images seems to require a different approach  EDIT: Since this got marked as a duplicate i would like to point out that the other post only show this working with ONE image. The other post do not work when it comes to multiple images  The portion of the code in question:                 .imgText {         position: absolute;         z-index: -1;       }              .imgList {         z-index: -2;       }

           test text

           test text

     You can see the live results here

I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).


can anyone explain why this code works:  $(document).ready(function(){ $("#file").on('change',function(){ $("#selected_files_div").append("<input type='button' class='red_button'>"); $(".red_button").on('click', function(){ // do something }); }); });   but this one does not work?       $(document).ready(function(){     $("#file").on('change',function(){   $("#selected_files_div").append("<input type='button' class='red_button'>");     });     $(".red_button").on('click', function(){     // do something     });     });   Appending always works but click event works only in first.. case

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


I already have time using pgfplots and tikz but I can't figure out how to achieve something like this.

Is there any way to put axis environment at specific coordinates? For example if I want the function plot to be a secondary part of a big tikzpicture.  This is a MWE:  \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \coordinate (coord) at (1,2); \begin{axis}[anchor=(coord)] \draw [blue,fill] (Point) circle (2pt) node [right] {(1,2)} \end{axis} \end{tikzpicture}


In Drupal 7 we could edit the system table to set a module a version back to let the hook_update_n run again.  In Drupal 8 there is no system table.  Where can I find what version of the module is installed so I can change this and make sure the update hook is run again?  This is useful while developing hook_update_N() of my module so I can test this.

How does Drupal 8 know what module needs updating and to what version he needs to update?  I have build a module and I'm trying to update it (adding a table). I implemented a update hook numbered 8001, which is the first update, but when I go to update.php Drupal does not see any update for my module.  I expect there must be a place in my module where I can define the current version of my module and another place in the database where Drupal stores the latest installed update of my module. (I need this for debugging the update script later on.)


Let $f:\mathbb{C}\to\mathbb{C}\setminus\{0\}$ be an entire function. Why is $\log(f(z))$ entire?   I don't understand the answer because if we have log with any branch $B=\{Re^{i\theta}:R\geq0\}$, (and assume we choose for example the principal branch, $\theta=0$), then it may be that $f(z_0)\in B$ for some $z_0\ne0$ and then $\log(f(z_0))$ is not defined.

$f$ is entire without any zeros then there is an entire function $g$ such that $f=e^g$  What I think is since $f$ do not have any zero for some bounded domain, I can define a branch of logarithm $(\log f)$ on that domain which will gives my desired result $f =e^{\log f}$. I don't know if I am doing it right? If this is right I don't know how do I argue $(\log f)$ is entire. Hint please.


So I am teaching myself Python and I recently stumbled upon these kinds of code: plt.scatter(X_pca_2c[:,0], X_pca_2c[:,1], c=iris.target, alpha=0.8, edgecolors='none')  and np.array(tf_vect.get_feature_names())[tsvd_2c.components_[20].argsort ()[-10:][::-1]]  The functions are too advanced for me at this stage, I know, but I am learning Python arrays now and I wonder how do I interpret the [:,0], [:,1],[-10:][::-1] here?  I stumbled across such notations a lot and I want to get my understanding right.  I thought it was a simple index at first, but then I realize there is such a thing as [::-1] too. Anybody kindly explain the logic behind them? Thanks a lot!!

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I'm in a bit of a pickle. Due to miscalculation, I'll be entering 31 days (instead of 30 days) before the start of my J1 program. I also leave 5 days after the 30 day grace period after the end of my J1 program.  My question is:  Will I be able to enter U.S. under VWP (I have an Australian Passport), and during the month before my program start I intend to travel the West Coast up to Cananda, and then re-enter on my J1 visa.  Similarly, after the end of my program, during the grace period, I intend to travel East Coast up to Canada and then re-enter under the VWP program such that I can leave the U.S. a few days after my grace period finishes.

I am an international student studying in Canada, and have an EU citizenship, which makes me eligible to enter the US via the visa waiver program (VWP). In the fall I will be a research fellow in an American institute, to which end I will apply for a J-1 exchange visitor visa.  Prior to that, I am planning to attend a conference in the US, after which I will return back to Canada before entering the US again as an exchange visitor.     Will I be able to enter the US on the visa waiver program after starting the J-1 application process but prior to my program start date?   Regarding the J-1 visa, it is clearly stated on official websites that one is not allowed to enter the US more than 30 days prior to the program start date. However, my conference is more than two months prior to that date.


I have a chapter title that is too long to fit onto one line in the table of contents, but LaTeX does keep it in one line, producing an overfull line in the TOC.  How can I insert a line break into this title so that to break it only in the TOC, not when it appears as a chapter heading?  I tried \protect\linebreak[1], but it did the opposite: it broke the line in the chapter heading but not in the TOC.  Here is a simplified version of my source (not quite a minimal example though):  \documentclass[a4paper,12pt]{scrbook}  \usepackage[utf8]{inputenc}  % UTF-8 input encoding \usepackage[T1]{fontenc}     % for hyphenation to work with                              %   accented letters, etc. \usepackage{lmodern}         % modern latin font  \usepackage[french]{babel}   % language support  \usepackage[hmargin=3.5cm,vmargin=3.5cm]{geometry}  \usepackage{tocstyle}  \usetocstyle{KOMAlike} % defined in tocstyle package  \renewcommand{\thechapter}{\Roman{chapter}}  \begin{document}  \frontmatter  \tableofcontents  \mainmatter  \chapter{Un chapitre}  \chapter{Deux chapitre}  \chapter{Systèmes d'équations différentielles   linéaires à coefficients \protect\linebreak[1]constants}  \section{Généralités}  \section{Résolution d'un système d'ordre $1$   par diagonalisation ou par triangularisation}  \end{document}

I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one.  \titlecontents*{subsection}[5.4em] {\small} {\thecontentslabel~ } {} {} [.~\textbullet\ ] [.]   this part does the subsection as a paragraph (with section number and without page number). I have realized that the problem is the pseudo-code used by tocloft for the entries in the TOC  {\cftXfont {\cftXpresnum SNUM\cftXaftersnum\hfil} \cftXaftersnumb TITLE}% {\cftXleader}{\cftXpagefont PAGE}\cftXafterpnum\par   I mean, the last command \par make impossible to leave two subsection entries in the same textline. Any idea? Another interesting solution is with etoolbox, some examples with that package are awesome, but it's not on my hands.  This is a MWE:  \documentclass{book}  \usepackage{titletoc} \titlecontents*{subsection}[5.4em]{\small} {\thecontentslabel~ }{}{}[.~\textbullet\ ][.]  \begin{document}  \tableofcontents  \chapter{Test Chapter 1} \section{Test Section 1.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 1.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \chapter{Test Chapter 2} \section{Test Section 2.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 2.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \end{document}


I am attempting to animate entering a theater on a foggy or rainy night:    I used cycles rendering with a world volume setting of volume scatter to have the two spotlight cones appear as if they are shining through the haze. I like very much how the above still image appears.   However, when I animate the camera walking into the theater, the volume scatter appears static and locked to the viewpoint of the camera. It is especially noticeable when you are under the marquee, it looks like you are shooting film through a dirty pane of glass!    I was expecting to have the sense of the camera walking through the fog particles.  What would be a better modeling approach to have fog that the camera walks through when animated?

I created a scene in which the camera goes towards a cylinder with a rock texture on the inside. But from whatever angle I play it, there is this weird noise, but unlike regular noise, it stays the exact same and follows the camera.  It is like there is a picture on the camera that has an Overlay like blending mode and just shows between the camera and the texture. Does anybody have an Idea where this texture may be coming from? Here is .


In the PARENT_FOLDER I store subfolders with some works I am producing each week, e.g. right now I have these contents: ~/PARENT_FOLDER/StuffProducedTwoWeeksAgo/... ~/PARENT_FOLDER/StuffProducedLastWeek/...  Each week I add a new folder with the work I have done (video editing, whatever) which I want to keep at hand and readable inside ~/PARENT_FOLDER/ but I don't want it accidentally erased, so after I copy a new folder inside ~/PARENT_FOLDER/, I will do chattr +i -R StuffProducedThisWeek  I don't want to chattr +i ~/PARENT_FOLDER  because I still want to copy, create or delete new stuff inside it freely. But I want certain things (those folders called Stuff*) inside there to be secure against deletion. After setting the +i attribute to ~/PARENT_FOLDER/StuffProducedThisWeek it seems I cannot delete or modify it from inside ~/PARENT_FOLDER/, and in the file browser its icon appears with a small lock. But then I can go up one level and simply move to the trash ~/PARENT_FOLDER with an accidental hit to the Delete key that goes unnoticed and the next day I can empty the trash and my work is lost forever. So, I want to be able to modify the contents of ~/PARENT_FOLDER/ except those subfolders marked with the +i attribute but, if I accidetally try to move or delete ~/PARENT_FOLDER/, I would like the OS to prevent me from doing that in order to protect the immutable subfolders. How is that possible?

I have changed the directory attribute immutable by chattr +i /testdir; but I need to create files in that directory.   Or is there any way that nobody can delete the directory but the owner can still write in that directory?


I am getting this error System.LimitException: Too many SOQL queries: 101 when I run the class bellow. It seems like it is affecting all the triggers linked to NRProducts__c Object(This object has 45,000 records but the SOQL query should only return 7,000 ). I have a SetInterval JQuery function in the VF Page that clicks the a button every 20 seconds. My question is if I am making any mistake in the Classs code, or any ideas why this is happening. Thank you!  this is the whole error message:    System.LimitException: Too many SOQL queries: 101    Error is in expression '{!CreatePlan}' in component <apex:commandButton> in page   inventoryamzipa    Trigger.InventoryAdjCountsONProducts: line 4, column 1   This is the class:      public class InventoryAMZAPIController2{     public String Debug{ get; set; }      public InventoryAMZAPI2.CreateInboundShipmentPlanResult NewPlan{ get; set; }     public List<InboundShipmentPlanRequestItem> RemainingItems{ get; set; }       public void CreatePlan(){       Date target_date = date.today();       List<NRProducts__c> details = [SELECT NRName__c, AMZ_Inventory_Update__c, Active__c, isFBA__c  FROM NRProducts__c WHERE isFBA__c=true AND Active__c = true AND AMZ_Inventory_Update__c != :target_date  LIMIT 10];         Map<String, InboundShipmentPlanRequestItem> itemsMap = new Map<String, InboundShipmentPlanRequestItem>();         if(!details.isEmpty()){             RemainingItems = new List<InboundShipmentPlanRequestItem>();             for(NRProducts__c rl : details){                 InboundShipmentPlanRequestItem item = new InboundShipmentPlanRequestItem(rl.NRName__c);                 itemsMap.put(rl.NRName__c, item);                 RemainingItems.add(item);             }              //request values                 NewPlan = InventoryAMZAPI2.CreateInboundShipmentPlan(                 RemainingItems,                 'Basic'             );              Map<String, String> soDetailSkuMap = new Map<String, String>();               for(InventoryAMZAPI2.InboundShipmentPlan p : NewPlan.InboundShipmentPlans){                 soDetailSkuMap.put(p.SellerSKU, p.InStockSupplyQuantity  );               }              //Assign values to products             List<NRPRoducts__c> nr = [Select NRName__c FROM NRProducts__c Where NRName__c  IN: soDetailSkuMap.keySet()];             for(NRPRoducts__c detail : nr){                 detail.AMZ_Inventory__c = soDetailSkuMap.get(detail.NRName__c );                 detail.AMZ_Inventory_Update__c= date.today();                  update detail;                }           } else{          Debug = 'Done';          }      }      public class InboundShipmentPlanRequestItem extends InventoryAMZAPI2.InboundShipmentPlanRequestItem{         public InboundShipmentPlanRequestItem(String sellerSKU){             super(sellerSKU);         }     } }

I am getting a Too many SOQL queries: 101 error on a trigger when I am trying to deploy another trigger.  I am posting the trigger which is causing the error.  trigger rollupAccountShowings on Account (before insert, before update) {    if (trigger.isinsert) {       for (Account a:Trigger.new){           a.No_of_Viewings__c = 0;        }    } else {      for (account a : [select                   id,                  (select id from pb__Showings__r)                  from account                   where id in:trigger.new LIMIT 1]) {           trigger.newMap.get(a.id).No_of_Viewings__c = a.pb__Showings__r.size();      } }   Can anyone correct me where I have gone wrong and suggest me the changes.  Thanks


I have been told, that Cauchy second limit theorem doesn't always work both ways - if the limit of $n$th root of sequence exist it doesn't immediately mean the limit of $a_{n+1}/a_n$ is equal to nth root limit. Can you explain why? Show an example? Thank you a lot.

Let consider the power series $$ \sum_{k=1}^\infty a_kx^k. $$ We know that it converges when  $$\lim_{n\to \infty }\sqrt[n]{|a_n|}|x|< 1\quad\text{or}\quad |x|< \frac{1}{\lim_{n\to \infty }\sqrt[n]{|a_n|}}$$  But D'Alembert test tells us that it converges if $$|x|< \frac{1}{\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|},$$ so since the radius of convergence is unique, we should have that $$\lim_{n\to \infty }\sqrt[n]{|a_n|}=\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|.$$  I tried to prove it, but this result looks strange to me. So if it doesn't work always, how can we have those to limit as radius of convergence? I guess the equality of those two limit should be true most of the time.  So under what conditions is it true?


Our family's flight to Portugal from Canada scheduled in May 2020 was cancelled by the TAP Portgual airline due to Covid. Since we are unlikely to be able to travel there within a couple of years we have been trying to obtain a refund from the airline without luck. Have tried calling, filing a complaint on their website, and attempted refund through my credit card insurance without any luck. As far as I can see on their website they only give the option for a voucher which would be useless for us. The amount was over $2000 Canadian. As far as I understand they are obligated to provide a refund since the flight was cancelled. Any advice? Thank you

I booked a flight from Newark to Lisbon with a connection to Manchester, which was a family trip... The airline had cancelled the flight, which I only found out when I went into the details of our trip as Canada & the US placed restrictions on travel due to the Covid pandemic. Air Portugal have kindly given me vouchers for the cost of the flight, however, is it at all possible to get a refund back to my credit card for the cost of the flights as it wasn't myself that cancelled initially. Could you please advise. Thank you in advance, Mark


Whenever I put 2 trees onto a document, the system always tells me I am missing \tikzlibrary{calc} on the second tree (I have the same line for both trees) on this line \draw[dashed,rounded corners=10]($(1-1) + (-.2,.25)$)rectangle($(2-2) +(.2,-.25)$); even though I have it right above it.

I've been googling for some time now, and can't find the manual for the TikZ library calc. All I see is people using it. Where can I find the manual or some info?  Is it the same as the LaTeX package calc? The latter doesn't seem to mention TikZ in the manual.


I saw this identity in some indian textbook and have no idea how to derive it, the textbook also suggest that a similar identity exists for 4 integers, so I'd appreciate any hint you can provide! Let a,b,c be positive integers; then: $$\left({\frac{lcm(a,b,c)}{gcd(a,b,c)}}\right)^2=\frac{lcm(a,b).lcm(b,c).lcm(a,c)}{gcd(a,b).gcd(b,c).gcd(a,c)}$$

I'm trying prove $$\gcd(a,b) \gcd(a,c) \gcd(b,c) \,\text{lcm} (a,b,c)^2=\text{lcm}(a,b)\,\text{lcm}(a,c) \,\text{lcm}(b,c) \gcd(a,b,c)^2$$  It is a part of solution of another problem I try a lot to prove it but I could not be succeed.  I tried using exponent manipulation in prime factorizations but it didn't help me.


When a user without moderator tools privilege (10K on most sites) opens a link to deleted question (), they will see 404 page, which is clearly showing that the post is already deleted.        However, when they open a link to a deleted answer () / comment () on existing question, they will only see the question. There is no clear indicator that the link is supposed to be a deleted answer/comment.  I guess this is not a problem for experienced users, since they will notice it by:   Looking at the URL and see if it's an answer/comment or not (indicated by post ID after the title, then See if the browser doesn't auto-scroll to any post (well, unless the connection is laggy)   But still, I believe it'd be better if SE shows a notification to show that the answer/comment is already deleted, perhaps looking like this?        One of the reason why I think it'd be useful is for spam/offensive answer hunting on chatroom. I understand that these flags should be used very carefully. When flagging spam question, there's no problem since you cannot flag if it's already removed. But for spam answer, there is a possibility that the user will think that the question itself is a spam if the answer is already removed (well, the onus is on the flagger, but with this feature, it can be prevented).

Currently, if you access a deleted question you will get a short message informing you that the question has been deleted. However, if you click on a direct link to a deleted answer or comment (which you can get via notifications), nothing is displayed.  This is naturally quite confusing as you will get the message about a new answer or comment via notifications, click on the link and simply see nothing.  Therefore, I propose to display some sort of message to the user, informing her/him that the answer or question has been deleted. Note that this is different from always showing a deleted answer/comment, as I specifically request it in case you access the specific URL.  One example for a comment would be:   One example for a deleted answer is:   This question is related to ,  but requests a feature to circumvent the problem altogether.


I have to create a main program that will do the following. Create a single object of the class type that you added to your project. Write that single object to the binary file. After the data has been written, open the file to read and load the data back in. Print the data that was read from the file to demonstrate that the file can be read.  Is there anyone that is able to help?

What is meant by "object serialization"? Can you please explain it with some examples?


I have a list where I add rows with Add button using Jquery. Now I also want to remove the dynamically added rows so I created a delete button dynamically along with the rows too but that delete button is not working.

                 Quantity:
                        <input type="text" class="form-control" placeholder="Quantity" name="quantity"  />

Add Quantity

     the jquery that appends a similar row in the list along with a remove button  $("#addQty").click(function () {                  $("#quantityTable").append("
 "+                                       "
 "+                                     "
"+                                     "<input type=\"text\" class=\"form-control\" "+                                     "placeholder=\"Quantity\" name=\"quantity\"  />

 "+                                     "
"+                                     "
 "+                                     "Remove Quantity

");             }             );   Now when I click on the remove button I need to remove that particular row  $("#rmvQty").on("click", function () {                 console.log("as");             });   Firstly the jquery for remove is not working and secondly how do I remove the row that was clicked on.  EDIT : my solution  $("#quantityTable").on("click", function (e) {                 if(e.target.id == "rmvQty" ){                      e.target.parentNode.parentNode.remove();                 }             });

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


How can I set an IP that I can have access to my server around the world with the Internet I mean something like global IP (maybe!)?  I just want to know how to do that in Ubuntu server.

I want to know how to make my ubuntu server ip public. I'm not asking for a domain, if people would be able to access my website by ip, it would be great! (just for now) Does someone have an idea how to do this?


Does someone like Poe Dameron, a member of the armed forces and citizen of the galaxy (i.e. not an insider per se), know that Kylo Ren, who captures and tortures him, is the son of his General?  Do other planets learn that Princess Leia of Alderaan's biological father gave the order to blow up her planet?  Are these things known to the general population of the galaxy, or are they kept quiet like the Skywalker twins were kept secret in the past?

During the course of The Force Awakens we learn that Kylo Ren is the son of Han Solo and Leia.  My question is, by the end of the film which characters know this fact? It is plainly obvious that in addition to his parents, people involved in Kylo Ren/Ben Solo's upbringing and training will know, such as Luke, Chewbacca, Threepio, Artoo and Snoke etc. and through them this information could be communicated to other members of the resistance such as Poe and Admiral Ackbar. It also seems that Lor San Tekka knows.  However, I can't seem to remember this information ever being communicated to Rey, Finn or General Hux, amongst others. So I was wondering if I missed part of a scene, or there is another canon source, where the characters mentioned find out this information?  When I first saw the scene where Rey calls Kylo Ren a 'Monster' I got a feeling she meant because of the whole patricide thing but I have nothing else to back this up other than the hunch I got in the cinema chair. Additionally Finn could've found out from his time in the FO, as well as General Hux for that matter.


I cant manage to get my kitty of my head. I'm using mo' creatures 1.12.2.  For some reason shifting or clicking doesn't get it off.

I installed the Mo'Creatures mod into Minecraft, then made a fish bowl. After catching a fish I went to put it on top of a bookshelf in my room, but instead of placing it, the bowl just dropped at my feet. When I tried to pick it up my character put it on his head. Now I'm stuck with a fish bowl on my head and I can't find any mention anywhere of how to get it off. There are a number of other animals from the mod that you can put on your head for some effect, but no mention of how to remove them pretty much anywhere.


I wrote a code linking my sql database with project. I have been attempting to create an ATM with graphics. i have the following tables in the database: table userinfo: accno(P key), name,  balance table pin: accno(foreign key from userinfo), pin I wrote the following code, however on running it shows nullpointer exception which I am unable to fix. I tried to find the point where the exception occurs by writing system.out.println("world"); in order to check which part of the code is wrong. I found that my try block is not working and I am unable to fix this. Please help me. my code:  public void actionPerformed(ActionEvent evt) {  try{      System.out.println("world4");  PreparedStatement ps=con.prepareStatement("Select * from pin where accno=? AND pin=?");            System.out.println("world5");   l1=Long.parseLong(acc);         l2=Integer.parseInt(pin);   ps.setLong(1,l1);  ps.setInt(2,l2);                 System.out.println("world7");   r=ps.executeQuery();  PreparedStatement ps1=con.prepareStatement("Select * from pin where accno=?");  ps1.setLong(1,Long.parseLong(tfnumber.getText()));  r1=ps1.executeQuery();  if(r.next())  {      m=new menu();      setVisible(false);      System.out.println("world1");  }  else if(r1.next())          {   System.out.println("world2");              lblerr=new Label("INVALID PIN!");              lblerr.setBounds(470,400,80,30);              img.add(lblerr);              lblerr1.setVisible(false);              lblerr.setVisible(true);          }  else  {      System.out.println("world3");     lblerr1=new Label("ACCOUNT NOT FOUND");      lblerr1.setBounds(370,300,80,30);          img.add(lblerr1);          lblerr.setVisible(false);          lblerr1.setVisible(true);    }  } catch(Exception excp) {      System.out.println("world6");      System.out.println(excp);  }   here WORLD4,WORLD6 are printed on the screen, however, WORLD5&WORLD7 were not printed, indicating the non functional tryblock.

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?


It's a simple question: I'd like to put figure on the bottom of the page, but above footnote. I'm using memoir, but with documentclass{article} the result is the same.  Example:  \documentclass[article]{memoir}  \begin{document} Some text\footnote{The footnote}  \begin{figure}[b] \vspace{2cm} \caption{Bild 2} \end{figure}  \end{document}   I don't want to use a process of trial and error for each figure in my document, "hacking" the position option with an [h].

How can I prohibit putting figure after the footnote? I have pretty simple LaTeX code that has a lot of figure environments, and I see the figure is inserted after the footnote.   \documentclass[10pt, onepage]{article}  \usepackage{graphics,graphicx} \usepackage{hyperref}  ... dependent code\footnote{You should use at least JRE 1.5 or later, but I highly recommend using JRE 1.6 or later}, you can safely use the JRE 1.5 or later.   \begin{figure} \centering \includegraphics[width=0.5\textwidth]{pic_install/4_configure_build_path.png} \caption{Configuration menu} \label{fig:config_build} \end{figure}


Maybe this question is too dumb to be asked, but it's really bugging me so I decide to ask it anyway. I hope you bear with me.   Okay, it's known that both sides of the following series equal.  $$\pi=4\sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1}\tag1$$  and  $$e=\sum_{n=0}^{\infty}\frac{1}{n!}\tag2$$  We all agree at this point. Now, each terms in $(1)$ and $(2)$ is a rational number. We all agree without a doubt. The sum of rational numbers is always a rational number. We agree again. Hence it follows that $\pi$ and $e$ must be rational numbers. However, it contradicts the well-known facts that both $\pi$ and $e$ are irrational numbers. So, where is my mistake?

For example how come $\zeta(2)=\sum_{n=1}^{\infty}n^{-2}=\frac{\pi^2}{6}$. It seems counter intuitive that you can add numbers in $\mathbb{Q}$ and get an irrational number.


I want to know which forum, in the Stack Exchange multiverse, is the most appropriate to ask questions like...      I am new to working with csv files in perl, Can someone please point me to any good references on the subject?   I know questions like these are less specific and I will get yelled at on most of the forums I use within Stack Exchange.

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


Please I need help to include  a column (MSFE ratio ) and centred headers( A. h=1) in this table desired Table :  my suggesstion :          \documentclass{article}          \usepackage{geometry}          \usepackage{rotating}           \usepackage{booktabs, makecell}          \usepackage[referable]{threeparttablex}          \usepackage{siunitx}          \usepackage[skip=1ex]{caption}          \usepackage{xcolor}          \usepackage{multirow}          \newcommand\tc[1]{\textcolor{blue}{#1}}         \NewExpandableDocumentCommand\mcc{O{1}m}          {\multicolumn{#1}{>{\itshape }c}{#2}}         \renewcommand{\theadfont}{\normalsize} %<------ added         \begin{document}         \begin{table}[h!]         \centering        \begin{threeparttable}         \caption{Forecasting and encompassing test results for the bagging model and combining      methods, 1995:04–2005:03 out-of-sample period}      \label{tab1}       \begin{tabular}{@{} >{\itshape}l                *{7}{S[table-format=1.2]}                 }        \toprule          \multirow{5}{*}{Combining method}         & \mcc[3]{$\thead{H_{0}$: BA encompasses CB}}         & \mcc[3]{$\thead{H_{0}$: CB encompasses BA}}   \\           \cmidrule(r){2-4} \cmidrule(l){5-7}        &\mcc{\hat{\lambda}_{CB}} & \mcc{MHLN_{h}} & \mcc{p-value}          & \mcc{\hat{\lambda}_{BA}} & \mcc{MHLN_{h}} & \mcc{p-value}\\        \midrule         BA model        &     &             &             &       &             &     \\         Mean            &0.35 & 2.42\tc{**} & 0.01        & 0.65  & 3.54\tc{**} &0.00 \\          Median          & 0.32& 2.38\tc{**} & 0.01        & 0.68  & 3.77\tc{**} & 0.00\\          Trimmed mean    & 0.34& 2.39\tc{**} & 0.01        & 0.66  & 3.67\tc{**} & 0.00\\         DMSE,$\Psi=1.00$& 0.35& 2.42\tc{**} & 1.00        & 1.10  & 3.54\tc{**} & 0.00\\         DMSE,$\Psi=0.90$& 0.35& 2.41\tc{**} & 1.00        & 1.10  & 3.55\tc{**} & 0.00\\         C(2, PB)        & 0.34& 2.34\tc{**} & 0.01        & 0.66  & 3.59\tc{**} & 0.00\\         C(2, PB)        & 0.36& 2.33\tc{**} & 0.01        & 0.64  & 3.43\tc{**} & 0.00\\         PC              & 0.59& 2.79\tc{**} & 0.00        & 0.41  & 2.14\tc{**} & 1.00\\                  \bottomrule      \end{tabular}     \end{threeparttable}      \end{table}     \end{document}  MY OUTPUT :

Hi I have used a recent suggestion by @leandriis to fix the headers table, but when I tried to use his suggestion to draw another table, I'm getting several issues, here my suggestion, my output and the desired table to produce. My suggestion :     \documentclass{article}     \usepackage{geometry}     \usepackage{rotating}     \usepackage{booktabs, makecell}     \usepackage[referable]{threeparttablex}     \usepackage{siunitx}    \usepackage[skip=1ex]{caption}    \usepackage{xcolor}    \newcommand\tc[1]{\textcolor{blue}{#1}}    \NewExpandableDocumentCommand\mcc{O{1}m}    {\multicolumn{#1}{>{\bfseries}c}{#2}}    \usepackage{multirow}    \renewcommand{\theadfont}{\normalsize}    \begin{document}  \begin{table}[h!]  \centering  \begin{threeparttable}   \caption{Forecasting and encompassing test results for the bagging model and combining methods,     1995:04–2005:03 out-of-sample period}    \label{tab1}    \begin{tabular}{@{} >{\itshape}l                *{8}{S[table-format=1.2]}                 }   \toprule   \multirow{2.1}{*}{Combining method}    & \mcc[4]{$\thead{H_{0}$: BA encompasses CB}}    & \mcc[4]{$\thead{H_{0}$: CB encompasses BA}}   \\    \cmidrule(r){2-5} \cmidrule(l){6-9}   & \mcc{\hat{\lambda}_{CB}} & \mcc{MHLN_{h}} & \mcc{P-value}    & \mcc{\hat{\lambda}_{CB}} & \mcc{MHLN_{h}} & \mcc{P-value}\\   \midrule   BA model&9.13& & & & & \\   Mean            & 0.35& 2.42\tc{**} & 0.01& 0.65& 3.54\tc{**} & 0.00\\          Median          & 0.32& 2.38\tc{**} & 0.01& 0.68& 3.77\tc{**} & 0.00\\          Trimmed mean    & 0.34& 2.39\tc{**} & 0.01& 0.66& 3.67\tc{**} & 0.00\\         DMSE,$\Psi=1.00$& 0.35& 2.42\tc{**} & 1.00& 1.10& 3.54\tc{**} & 0.00\\         DMSE,$\Psi=0.90$& 0.35& 2.41\tc{**} & 1.00& 1.10& 3.55\tc{**} & 0.00\\         C(2, PB)        & 0.34& 2.34\tc{**} & 0.01& 0.66& 3.59\tc{**} & 0.00\\         C(2, PB)        & 0.36& 2.33\tc{**} & 0.01& 0.64& 3.43\tc{**} & 0.00\\         PC              & 0.59& 2.79\tc{**} & 0.00& 0.41& 2.14\tc{**} & 1.00\\                \bottomrule \end{tabular}  \end{threeparttable}  \end{table}  \end{document}  my output:  Desired Table :


Can we have the following?  For matrices A   and B, if A⪰B⟹σ¯¯¯(A)≥σ¯¯¯(B)  ?   where σ¯¯¯(⋅) means the largest singular value.

Can we have the following?     For matrices $A$ and $B$, if $A \succeq B \implies \overline\sigma(A) \ge \overline\sigma(B)$?    where $\overline\sigma(\cdot)$ means the largest singular value.


When trying to calculate $2^{100}$ with a malfunctioning calculator, the screen displayed a number with missing dgits, that is: $$1x676506002282294014967032053yz$$ where $x,y$ and $z$ represent missing digits. Can you find all of the missing digits?  What I have so far is that $z=6$, since $2^{100}$ has the form $2^{4k}$. Then, since $2^{100}$ is divisible by 4, its last two digits must be a number divisible by 4, this means $y$ can be either $1, 3, 5, 7$ or $9$. Then I took into consideration that $2^{100}$ is also divisible by 8, so its last 3 digits should be a number divisible by 8. That means $y$ is reduced to the two posibilities $3$ or $7$. Then I thought I could try with the divisibility by 16, but I realized this process is far too slow and I was wondering if there's a faster way to fing what the value for $y$ is. Then for $x$ I thought that, since $2^{100}$ is only made by powers of 2, I should find the posibilities for $x$ that result in a number that cannot be divided by any other number than powers of 2. But that also seems like a slow and bad a pproach.

I bumped across the aforementioned question in my notes while studying today and I have completely forgot how to do this. I remember using CRT to solve a problem like this on one of my tests, too bad they didn't give back my solutions :(.  Since $\gcd(100,2) = 2$, we can't use the usual Euler's theorem to solve via $\pmod {100}$. So $100 = 5^2 2^2$, and applying Euler's on the 25 gives me $2^{20} \equiv 1 \pmod {25}$. However since $\gcd(2,4) = 2$, we can't do the same for $\bmod 4$. Accordingly how do I set up the other modulo congruence so I can apply CRT?


In my LaTeX report I want to include a dotted signature line and my name below that line. As in the image. Can someone help me with the LaTeX code for that?

I'm trying to create a signature and date line in a document.  I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as:  ----------------------   ---------------------- Representative           Date  ----------------------   ---------------------- Program Manager          Date   Here is the code I currently have:  \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\ User Representative \makebox[2.5in][r]{Date} \\  \vspace{.2in} \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\ Program Manager \makebox[2.5in][r]{Date} \   I want to be able to change the names, such as change Program Manager to Joe Foo and have the word 'Date' stay in the exact place.  Any help would be greatly appreciated.  I'm still a newbie at TeX so please forgive my ignorance.


I am trying to create linear referencing to point. I have a line to which I have snapped to points to (without breaking it).  Now I want to find the distance from the start point of my lines to points snapped to it, this I struggle with.  Point 1. 45m from start of line Point 2. 126 from start of line etc.   Examples I have seen seem to focus on calculate distance between vertices but I just want to calculate length from start of line to point, for every point.   Does someone have an idea how this could be done?

I have created an FME workspace which inputs a pipeline as well as other linear features which cross it (waterways, roads, railways, fences, other pipelines, etc).  The output is a point file which contains the crossing type.  What I would like to do is calculate the distance along the pipe from the start of the pipeline for each intersection.  So, as you travel along the pipeline, the distance attribute will increase.   I'm thinking that I'll need to use some of the linear referencing tools like MeasureGenerator, MeasureExtractor, or something like that, but I'm not sure how to do so.  Does anyone have an idea of how to do this?


Let $f:[0, 1] \to \mathbb{R}$ be a continuous function such that $\int^1_0 f(x)x^ndx=0$ $\forall n \in \mathbb{N}$. Show that $f \equiv 0$ in [0, 1].  I need help.

As the title says, I'm wondering if there is a continuous function such that $f$ is nonzero on $[0, 1]$, and for which $\int_0^1 f(x)x^n dx = 0$ for all $n \geq 1$. I am trying to solve a problem proving that if (on $C([0, 1])$) $\int_0^1 f(x)x^n dx = 0$ for all $n \geq 0$, then $f$ must be identically zero. I presume then we do require the $n=0$ case to hold too, otherwise it wouldn't be part of the statement. Is there ay function which is not identically zero which satisfies $\int_0^1 f(x)x^n dx = 0$ for all $n \geq 1$?  The statement I am attempting to prove is homework, but this is just idle curiosity (though I will tag it as homework anyway since it is related). Thank you!


I feel like I'm missing something very obvious here, but I have a query where I need the result to be to 16 bits of precision after the decimal.   Below is an example query.   select (CONVERT(decimal(38,16), 467897.78) * 12) / CONVERT(decimal(38,16), 8143372.15)   If I run that query from SSMS, the result is 0.689489 , however, if I run that exact same math problem from just the windows calculator app, the result it shows is 0.6894899627054337 . Am I missing something with my tsql query?

Does anyone know why, using SQLServer 2005  SELECT CONVERT(DECIMAL(30,15),146804871.212533)/CONVERT(DECIMAL (38,9),12499999.9999)   gives me 11.74438969709659,  but when I increase the decimal places on the denominator to 15, I get a less accurate answer:  SELECT CONVERT(DECIMAL(30,15),146804871.212533)/CONVERT(DECIMAL (38,15),12499999.9999)   give me 11.74438969


\documentclass{scrbook}  \usepackage[english]{babel}  \usepackage[listings]{classicthesis} % or \usepackage{listings} - also causes the error \usepackage{arsclassica}  \begin{document}  \paragraph{a~b}  \end{document}   The above code causes an error:     ! Undefined control sequence.   <<inserted text>> az;                      b   l.10     \paragraph{ab~cd}   After removing any one of three lines with packages: babel, listings or arsclassica, document compiles successfully.  What is important, changing ~ to  makes the code working again. Similarly, putting ~ outside disposition commands (\paragraph{}, \section{} etc.) to the text body also works.  I cannot trace the source of the error further.  Is it possible to use these three packages together in some way?

Consider the following MWE:  \documentclass{scrreprt}  \usepackage{textcase}  \RequirePackage{listings} \usepackage[american]{babel}  \begin{document}     \MakeTextLowercase{A~B} \end{document}   LaTeX fails with the error  ! Undefined control sequence. <to be read again> az                      b l.9     \MakeTextLowercase{A~B}  ?    The error seems to lie in the combination of MakeTextLowercase, the listings package and the tilde. Whenever I remove any of these three components, everything works fine. Does anyone have a clue where the problem is?


I found this sentence on a book. As I feel the part, 'having me for a brother' describes the pronoun, 'it', not 'she'. Shouldn't the sentence start with 'she'?

I am very confused. Unless I am mistaken, I know "it" has to be a noun of some sort, but I am unable to figure out what noun "it" is referring to.   What is "it" in the following sentence:      It is clear that Bob likes doughnuts.   Heres another couple of examples:     It is impossible to fly.


I want to assemble several cameras, triggered by a single remote. Is this possible? The trigger doesn't have to be wireless, because the cameras will be very near to each other. The cameras need to be very cheap, because I'll be needing 50 of them.

I have 10 Canon 5DmkII cameras which I want to fire simultaneously... How can I accomplish this task repeatedly and reliably?  NOTE: Although I mention 10 cameras, it will be a 'super bonus' if the solution is scalable to n cameras...


If you want to describe something in general, which article do you use "a ―"(singular), "―s"(plural) or "the ―"? For example:     A dog is obedient to its owner.        Dogs are obedient to their owner.        The dog is obedient to its owner.   I think "dogs" is better than "a dog" because there are many obedient dogs in the world, but I don't know whether "the dog" is correct or not in this case.  But I've seen this sentence:     The phonograph was invented in 1887 by Edison.   I think "phonographs" is also correct, but I'm not sure.

The following sentence is from NY Times. "Another corporate structure being exploited now more than ever is the master limited partnership."  In the sentence, the concept of "master limited partnership" is first introduced. So, It does not have any contextual clues to identify what that refers to. But still it has "the" in it. However, the "the" in the sentence might not be used generically as the generic use of nouns is pretty much limited to nouns of animal, plant, or inventions. Then, what is the function of "the" there?  What is the difference between the sentence and when I just say "a master limited partnership" or "master limited partnerships"?


I would like to install  on my computer, which I like because of its beautiful design. I currently have Ubuntu installed, downloaded the Nitrux ISO and would now like to create a bootable USB. So far all attempts that I tried did not seem to work (Rufus, start up disk creator, dd,...)'  Is there something special with this OS? According to the website it has to be "deployed not installed" even though I think this would be after initially booting it from a usb. Do I maybe have to change some config in Ubuntu so that  the bootable device will be recognised?

I want to check out  which you can deploy using  .  znx does not seem to open correctly in Fedora, which is why I would like to deploy it using the terminal. The how-to says that I should install it on a partition that has at least 4 GB.   I have one big free partition on my computer which has about 200 GB. Do you know if the entire partition will be "blocked" by Nitrux, if I will deploy it on that partition? Or will znx assign it 4 GB of that partition and let me use the rest?  Thanks!


How can I pass *args from one function directly into another one called within it and maintain its functionality?  If I do it like this:  def parent(*args):     child(args)  def child(*args):     print(args)   I get this output:  >>> parent(1, 2, 3, 4) >>> ((1, 2, 3, 4),)   but:  >>> child(1, 2, 3, 4) >>> (1, 2, 3, 4)   I want the parent function to print out the same as if I called the child function directly.  Thanks!

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I run auto_arima model with seasonality from pmdarima python package. The output summary is the following:  Shortly, it says that the best model is $ARIMA(3,1,2)(0,1,1)_{12}$ with intercept. Now, I want to write the equation for my model, but I'm not sure that I did it correctly. Please check it out: $$ \Delta y_t = 0.618 y_{t-1} - 0.2979 y_{t-2}  - 0.4196 y_{t-3}  -0.3204 \epsilon_{t-1} -0.5838 \epsilon_{t-2} + \epsilon_{t} -0.4687 \epsilon_{t-12} + 0.0098$$ Edit Please write it not in terms of $Y_t , e_t, θ$ and $Θ$

I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_t , e_t, θ$ and $Θ$.


There is an option to use grep -f MY_FILE to let it search for patterns taken from a file, instead of being specified directly on the command line.  Is there an option to do something similar with the find command and let it read the patterns to search from an input file?

I'm trying to get my head around finding files in terminal at the moment. I've found a lot of answers about how to find files to a specific pattern, such as files ending in a certain extension, or from a certain timeframe, etc.  What I've been trying to figure out, though, is how to find and copy multiple arbitrary files, like a list of specific files.  Say, for example, I have the following folders and files  /Documents/Folder_1/ with contents:   file1.txt file2.txt file3.txt file4.txt   /Documents/Folder_2/ with contents:   file5.txt file6.txt file7.txt   /Documents/Folder_3/ with contents:   file8.txt, file9.txt   and what I want to do is to make a new folder called Folder_4 and copy file2.txt, file5.txt and file9.txt to that new folder.  Is there any way to do this through terminal?  What I've tried to do is to make a text list of the file names and call it something like list.txt, e.g.  file2.txt file5.txt file9.txt   and loading that text file into the Find command, for example like this:  find /home/usr/Documents -name $cat list.txt   with the thinking that I would then feed the output to either a text list or a copy command, but this doesn't seem to work.  I'm wondering if there is any way to find multiple arbitrary files through the Find command, or am I thinking about this in the wrong way?  EDIT: Just wanted to say thanks for the answers and summarise the way that I ended up approaching this problem. I especially appreciate that someone explained to me that the find command is not designed to accept more than one input without the -o flag, it made me feel a bit less stupid for not being able to figure it out!  What I ended up doing was to make a little shell script and ask for user input and use an array and a for loop to iterate through the list.  Basically the script that I ended up with is more or less like this:  #!/bin/bash  #take user input echo "Please enter list of filenames to search" read list echo "Please enter the folder path to search" read path echo "Please enter the destination folder path" read destination  #use inputted list as input for array, and then use a for loop to find each item on list one by one array=($list) for i in "${array[@]}" do     find "$path" -iname "i" -exec cp '{}' "$destination" \; done


Given that the HTML

 content 1

 content 2

 content 3

   render as   content 1 content 2 content 3   My question:   Is there a way to render it as below by using CSS only without changing the HTML part.  content 1 content 3 content 2

Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width.

         Content to be below in this situation

         Content to be above in this situation

 Other elements   Hopefully it is obvious that the desired result is:  Content to be above in this situation Content to be below in this situation Other elements   When the dimensions are fixed it easy to position them where needed, but I need some ideas for when the content is variable. For the sake of this scenario, please just consider the width to be 100% on both.  I am specifically looking for a CSS-only solution (and it will probably have to be met with other solutions if that doesn't pan out).   There are other elements following this. A good suggestion was mentioned given the limited scenario I demonstrated—given that it might be the best answer, but I am looking to also make sure elements following this aren't impacted.


Please advise how I can hide diagrams outside of the coverage layer when using QGIS atlas function. I can do this for polygons,rasters etc without problem but whatever I do I cannot hide diagrams from other layers. Please see example below. Basically I do not want anything outside of the polygons..

Does anybody know how to only label features of a shapefile that are inside of another shapefile's features used as coverage in Atlas?


This came upon me when I was at Applebee's tonight with my wife, and the topic came up of when the chain was offering $1 Long Island Iced Teas. I suddenly remembered a scene from a film I saw part of in high school (1995-1998). It was set in modern times, with this team hunting a monster. One of the members of the team was a black psychic. The team's at a bar and it turns out he doesn't drink, so the group suggests a "non-alcoholic"  (for those not in on the joke, Long Island Iced Tea is a mix of various alcohols, and a bit of cola, with no tea in the mix. It's generally very potent stuff). Cue a scene where he stumbles out in the alleyway, and blearily regards the monster, before he walks away, unharmed, only to realize upon sobering up that he encountered the creature.  I honestly don't remember what happened in the rest of the film, but that scene stuck with me, and it seems a distinctive enough one to be searchable.

There was a scene from a sci-fi horror video, not animated, don't know if it's a movie or TV series, where there was this black goo in a glass container and some scientists were looking at it under a microscope.   The pitch black goo grew and grew so fast, eventually breaking out of the inner box and the scientists that were inside the "inner lab" were begging to get out but the scientists outside that inner lab refused to open the door. The black goo was spiky (had spikes).  It's not any of the "Alien" movies, "The Blob", "Life", or "The Thing". It's not vintage. It was made after 1990, I'm pretty sure.


I am not getting the difference between TeX and LaTeX. I have seen the answer  but I am not getting it completely. Is TeX a system or language or format or program and Is LaTex a system or language or set of macros(what is macro here) or library or engine. If I say, LaTeX is a TeX based-language then what is TeX ? In , it is written that "TeX is a macro and token-based language" and It is a Turing-complete language. So,It means TeX is a language. Now, the 3rd answer  is saying that TeX is an engine which loads the LaTeX format and then process it. It means TeX processes the LaTeX. Since, both TeX and LaTeX are the languages then how is it possible that one language processes the another language ? I am a beginner in this area. Please explain in simple words, "what actually the TeX is" and "what actually the LaTeX is" ?

I know LaTeX and I've heard that LaTeX is a set of macros in TeX. But what does it exactly mean?


Is there any difference between   function MyFunc() {     // code... }   and  var MyFunc = function() {     // code... };   in JavaScript?

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


How can I split a string on multiple multi-character delimiters?  I want a function like vector<string> split_string(string input, vector<string> delims)  For example, split_string("foo+bar  := baz",{"+"," ",":="}) = {"foo","+","bar"," "," ",":="," ","baz"}

I'm trying to iterate over the words of a string.  The string can be assumed to be composed of words separated by whitespace.  Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, please give precedence to elegance over efficiency in your answer.  The best solution I have right now is:  #include <iostream> #include <sstream> #include <string>  using namespace std;  int main() {     string s = "Somewhere down the road";     istringstream iss(s);      do     {         string subs;         iss >> subs;         cout << "Substring: " << subs << endl;     } while (iss); }   Is there a more elegant way to do this?


I have noticed that Community ♦ user's avatar had changed yesterday on .   (Not that I mind, but the new avatar is harder to spot because it blends in with other new users' avatars.)  Then I clicked on the avatar to consult the profile, and it was the same old, usual avatar.  So there are two different avatar images: one used in the feed, and one used in the profile.  I guess it's a bug?  I have noticed the same behaviour on Stack Overflow too.     Screenshot of the avatar in the question feeds:        Screenshot of the avatar on the profile:

In , there are some users (e.g.  and ) of which the user icon is recently displaying wrongly most of the time:   cl-netbox' icon on all sites id a blue square with the white letters cl. It shows up this way in the user list on the right and even in the popup bubble opening when I click his name. However, some chat messages have him with a default Gravatar (those green random triangles) showing up as you can see in the screenshot above. Not all messages show up the default icon though, it probably depends on the displayed icon size. I tried both Firefox and Chrome, with and without add-ons, logged in and logged out, all show the same behaviour. Strange thing is that initially only cl-netbox was displaying incorrectly on my Windows 10 work laptop, but now also Thomas Ward is displaying incorrectly on my home Ubuntu notebook. Hard refreshing using Ctrl+F5 sometimes changed the appearance of the icon on the left to some of the messages, but not necessarily all of them, and not always to the correct direction. Later posted messages may still show up with either icon... I know this bug is very strange and probably difficult to reproduce for someone else, so it might probably be necessary that you provide me instructions on how to investigate the problem locally further and provide important information.


is there a popular website where I can order an interface design for an application to a fixed price or make an auction style request? Maybe something where I can browse the previous work of that designer?  Thanks

I'm on the stage of hiring a graphic designer for my Android app and I was thinking that it will be a better idea to hire the right person for this task. I know about websites as elance, odesk, etc that have sections for graphical design jobs.  Are there any other sites on which to post a graphical designer job?


Can somebody explain  for me?  Maybe I'm just slow, but I don't understand it. I've played Wizards before and  was simple to get: at 1st level you get 2 first level spell slots and 3 cantrips, at 2nd level you get one more 1st level spell slot, etc.  But when I look at  I just don't understand how to use it. What are spells known? What's the difference between invocations and spells?   I'm sorry if this is something super simple. I just don't understand it. Keep in mind I've never played Warlock before.

Now just recently I have had a group of friends get into D&D 5e and I ran into an issue with the Warlock class Spell Slots.  Cantrips: a spell that can be cast at will, without using a spell slot and without being prepared in advance. Repeated practice has fixed the spell in the caster’s mind and infused the caster with the magic needed to produce the effect over and over. Pretty obvious. You know as many as your class level tells you you can know.  Spells Known: How many spells your character can know excluding cantrips. My only question for this is if old known spells can be switched out for new higher level ones?  Spell Slots: the slot leveling I understand, but the whole basis behind it is what confuses me. Are spell slots their own separate choice of spell similar to how cantrips are separate from your spells known? Do you choose spells to know and out of the known spells you prepare ones to slots and they are cast at the slot level, not the normal level? When consumed for casting a spell, are they consumed on known spells and slot spells or just slot spells?  I just need some explanation. I'm a bit more of a visual learner so instead of someone just explaining what a spell slot is, please add a couple examples. (Ex. Warlock at 1st-9th level and a small scenario or two in which they would use a spell they know and a spell slot.) I want to know their spellcasting and how they progress level wise as much as I can.


I need to parameterize both the ORDER BY column name and DESC or ASC keyword as a variable. I have it working already but the variables are in the query, which is not safe.  $fruitColumn='bananas' $sortbyORDER= 'DESC' $fruitSearch = $db->prepare(" SELECT * FROM fruits ORDER BY $fruitColumn $sortbyORDER"); $fruitSearch ->execute();   BUT - I need the variables bound in the execution for security.   $fruitSearch = $db->prepare(" SELECT * FROM fruits ORDER BY ? ?"); $fruitSearch ->execute([$fruitType,$sortbyORDER]);   This doesn't seem to work as the two ?s give me an error.   I have also tried combining the two variables into one eg. $order = ".$fruitColumn." ".$sortbyORDER;  Is this possible? Thanks in advance

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have several layers of features.  For example:  Layer1 -> set of polygon features Layer2 -> set of point features (with buffer around each feature) Layer3 -> set of polyline features (with buffer on both sides of lines)   Each layers has a level of importance:  Layer1 -> importance level of 3 Layer2 -> importance level of 5 Layer3 -> importance level of 1   I need to generate a heatmap in which the spatial overlap of features across the layers would signify a higher importance.  For example, the polygon created by the overlap/intersection of FeatureA in Layer1 and FeatureB in Layer2 would have a summed importance level of 3+5=8.    So the heatmap should show the spatial importance of all the polygons created by the overlaps of the layers.  What tools might make this possible, and what steps could I use to create this heatmap in ArcMap?

I have a polygon shape file that has many overlapping features. Each feature represents an area used by polar bears. So some of the polygons overlap and some don't, and there are separate clusters of overlapping areas.   I would like to get a measure of how much overlap there is in a particular area. But I have no clue how to do this. I'm pretty new to GIS and am still learning the ropes, it just seems I can't find an answer.


I can't figure out why I am getting a NullPointerException in my code. I am trying to write simulator for a DFA and I have made my a Node type class that holds my states as seen below,  import java.util.Map;   class State{         //fields         Map<String,State> nextStates;          public State passChar(String putIn){             if(!nextStates.containsKey(putIn)){                 return null;              }             return nextStates.get(putIn);         }          /**          * Add a state that this state connects to.          * @param sta the state that this state connects to when          * a letter in the alphabet is passed to it.          * @param pass the letter that is passed to it.          */         public void addNextState(String pass,State sta){             nextStates.put(pass,sta);         }     }   I have tried I the main is in my driving class and is as such,  //Setting up my Q         State q1 = new State();         State q2 = new State();         q1.addNextState("1", q1); //this is where my exception is thrown.         q1.addNextState("0", q2);  Exception in thread "main" java.lang.NullPointerException     at State.addNextState(State.java:25)     at DFA.main(DFA.java:100)

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?


There is a tunnel along the diameter of a uniform planet of mass $M$ and radius $R$. A particle is projected toward the centre with speed equal to the orbital speed of a satellite in a circular orbit just grazing the surface of the planet. Determine the time after which the particle reaches the the other end of the tunnel for the first time.    I don't know why is it that the required time is half the time of revolution in an orbit of radius $R$. I know that the time period is independent of the eccentricity of the elliptical orbit, but here the degenerate ellipse along which the particle is projected continues outside the planet too

Related:   I was learning about GPS satellite orbits and came across that Low Earth Orbits () have a period of about 88 minutes at an altitude of 160 km.  When I took a mechanics course a couple of years ago, we were assigned a problem that assumed that if one could drill a hole through the middle of the Earth and then drop an object into it, what would your period of oscillation be? It just happens to be a number that I remembered and it was 84.5 minutes (see ). So if I fine-tuned the LEO orbit to a vanishing altitude, in theory, I could get its period to be 84.5 minutes as well. Of course, I am ignoring air drag.  My question is: why are these two periods (oscillating through the earth and a zero altitude LEO) the same? I am sure that there is some fundamental physical reason that I am missing here. Help.


Since function overloading isn't allowed directly in C, how can it be done for these functions?  void MotorDriver_Create(float speedAddress,float frequencyAddress, float db_input); void MotorDriver_Create(float speedAddress, float frequencyAddress, float minDB, float maxDB);

Is there any way to achieve function overloading in C? I am looking at simple functions to be overloaded like    foo (int a)   foo (char b)   foo (float c , int d)   I think there is no straight forward way; I'm looking for workarounds if any exist.


Will the estimates be unstable? How should I describe this scenario?

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message:  Warning message: glm.fit: fitted probabilities numerically 0 or 1 occurred    We still get the model but the coefficient estimates are inflated.   How do you deal with this in practice?


I am a new user of Ubuntu Is there a way to see all installed programs in Ubuntu 14.04 and also install/uninstall programs from there, like in windows there is programs and features in control panel.

How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers:


I have seen people using could of instead of could have. Are both of them correct?  Is there a difference in meaning between them?

I have noticed a lot of people use of instead of have, for example: "that must of been really annoying".  Is this correct?


Although I hesitate to ask this question, I see it as necessary to promote common proper word usage. I certainly never want to appear arrogant or offend anyone, but I have noticed that there is one word that is commonly misused, primarily in metropolitan areas. Why must people “axe” for or about something? When I first arrived in the city, a new acquaintance, who is my now dearest friend, said that she had to “axe me a question.” Fortunately, before I panicked she quickly continued to “axe” me what I planned to have for dinner that night. For several years I have heard “axe” incorrectly repeated in this context, and I sincerely wish to simply correct those who are using it improperly. However, I have heard and seen angry confrontations when someone insists that when one is ‘axing a question”, they might try instead to “ask a question.”  Even the mildest of attempts to persuade them of their improper use of the verb "axe” in the present tense is typically ignored if not met with outright contempt. Every time I now hear the word misused, it becomes more wrenching.  I work as an editor, so every day I refine the words of people who are renowned in their areas of expertise but who cannot properly enter words into a document. Together we work as a team to submit properly worded bids on multi-million-dollar contracts. Does anyone have a gentle, but effective way to correct this error that I seem to hear so frequently?

We've recently moved from New Zealand to New York City, and have noticed that many people (most of whom have good English) pronounce "ask" as "aks". For example:     Could you please go aks her tomorrow?   Sure, I'll ax her! :-)  What's the origin/etymology of "aks"? It seems to be more common among African Americans, but it's definitely used by others too.


I take it for granted we all know when to use the relative pronouns "who" and "whom".  And we also know that since the early nineteenth century there has been a steady decline in the use of "whom" especially in speech, and people tend to use "who" most of the times. Let's assume, however, that someone is writing a formal letter and that he prefers to use "whom" whenever possible.  He got stuck on these two sentences:        They chose the candidate who they thought would have the best initiative.   They chose the candidate whom they thought would have the best initiative.      If "whom" is the right relative, he will have no problem using "who" because it's also acceptable.  But if the right relative is "who", then it would be a mistake to use whom. My question is: "In the above sentence, is the relative pronoun the object of "thought" or is it the subject of "would have".    PS I'm aware that some scholars advise against asking questions about "whom" because "who" is the relative pronoun most people use. But I understand it is not obsolete and is still used by a few people, in formal speech, in documents, etc, especially in the UK.

They interviewed several candidates who he thought had the experience and qualifications he required.   My test prep book says this should be "who" because of the subordinate clause's predicate:     They interviewed several candidates who he thought had the experience and qualifications he required.   I feel like it should be "whom" as it's the object of the main clause.     The interviewed several candidates whom he thought had the experience and qualifications he required.   Who's right?


My code:  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386 export HADOOP_PREFIX=/usr/local/hadoop export PATH= $PATH:$HADOOP_PREFIX/bin:$HADOOP_PREFIX/sbin

I'm trying to setup cocos2dx in Ubuntu 14.04 LTS but after setting the environmental variables (in .bashrc) I start getting this error:  bash: export: dev/cocos2d-x-3.2/tools/cocos2d-console/bin': not a valid identifier  bash: export:/home/john/android': not a valid identifier  bash: export: dev/android-ndk-r10b': not a valid identifier  bash: export:dev/adt-bundle-linux-x86_64-20140702/sdk': not a valid identifier   And I don't know what to do to fix it.


Please someone tell me How to install Anydesk in Ubuntu terminal 14.04 ? OS type 32 bit.

How do I install a .deb file via the command line?


Show that it is not the case that if ⊨ ¬(A ∧ B) then ⊨ ¬A or ⊨ ¬B.   Consider the formula ¬(p∧¬p).  Replace A with p and B with ¬p.  Validity: this is deﬁned as truth preservation over all worlds of all interpretations. The intuitionist logical consequence is |=I

Show that it is not the case that if $\models \lnot (A\land B)$ then $\models \lnot A$ or $\models \lnot B$.   Show $\models \lnot (A\land B)$ is true and neither $\models \lnot A$ not $\models \lnot B$ is the case.  Consider the formula $\lnot (p\land \lnot p)$.   $\models \lnot (p\land \lnot p)$ then $\models \lnot p$ or $\models \lnot\lnot p$.   Show $\models \lnot (p\land \lnot p)$  is true and neither $\models \lnot p$ nor $\models \lnot\lnot p$ is the case.   $\models$ is for validity, the intutionist logical consequence.  $\models \lnot p$ if $W = \{w\}$, $wRw$, $vw(p) = 0$.


How can I get an attribute table into an excel spreadsheet?   I don't have the tool for that because I am using ArcGIS Desktop 10.0.

Is there a way to export a table with selected records to an Excel spreadsheet?  I was trying to export just to .txt file but ArcGIS gives me an error message.     An error occurred exporting the table   The other problem I have is with coordinates. I want them only with one locus after the comma, I mean like the format: xx xx xx,x not like I have now xx xx xx,xxx.     The version of my software is 9.3.