Chemistry major here, let preface this by saying I don't know anything about anything. That being said, as a student attending a school that is not very well known for its academics, I always figured that I needed to do whatever I could to be competitive. My fear is that I'll get into the world of academia and find out that I'm leagues behind my peers in terms of education. I'm probably overthinking things, but I just don't have enough information to know where I stand. So the honor's program sounded like the obvious decision at the time. In addition to the sweet-sounding benefits listed on the program page, it would maybe help close the gap between the difficulty of my school's chemistry program vs a top 50 program. I did some looking around, and it seems that at most schools, an honor's program is something that students are jumping to get into. It's considered a pretty big deal to be part of it. But from asking around my school, the sentiment seems to be the exact opposite. Most students here don't tend to respect the honors program from what I can tell. They say that the extra work isn't worth it, so most tend to drop out after sophomore year. And I think that's because the benefits aren't as meaningful to, say, a CS major. I think to one entering the workforce immediately after graduation, honors college holds much less weight. My guess is that because my peers are here to put in their 4 years and join the workforce, they don't really care about things like prestige or standing out. Which makes sense for them, but coming from someone who has different goals, I don't know if their opinions are applicable to me. I have yet to talk to a hard science major about this, so I don't know how much importance something like honors college carries to us. To be perfectly honest, a lot of what honors college entails just sounds like fun to me. I would love the opportunity to do it. But I can't say it's worth it if the extra workload has the possibility of tanking my GPA. Does anybody have any experience with an honors program at school, and how it's affected their career and their enjoyment of college? Thanks in advanced.


I understand that length contraction is a consequence of the relativity of simultaneity. I found this spacetime diagram online:    Here it's clear that what constitutes a rod for one observer, is a sequence of snapshots of this rod for another observer. Now I have always read the following about length contraction: an observer moving with respect to the rod will measure a shorter length. But according to this diagram, the moving observer who measures the length of the rod along his $x'$ axis, should actually measure a longer length?


Why do we say "[expletive] ALL" for "nothing"?

Damn all, Bugger all, Sod all etc., etc. What does all mean here? How did the expression originate? Was there a single original term (expletive or not) preceding all in this usage?  At the risk of overbroadening the question, does the underlying linguistic mechanism that gives rise to this expression generate others that are very similar? And are there close parallels in other languages?


Creating a Simple, Free Web Mapping Application

I have recently left my job as a GIS Specialist that I've held for a number of years. This was my first GIS job and I managed to lean a lot. Now that the holidays are over, I've decided to search for the next position.  Obviously, someone in my position should want to garner a few new skills while I'm on the job hunt. One thing that I didn't have a chance to work with, is web mapping applications in my previous position. It's a skill I'd really like to pick up because it's the present and future of GIS.  My idea is, to start an online resume of sorts. Something I can create and send to prospective employers to show I can work in the GIS environment. Although resumes are great, I feel like this is a lot more tangible than spitting out a bunch of facts about what I do in a resume. When I was hiring people, I had a few people do this sort of thing and I find I have a lot more confidence in people I hire because I can see what they are capable of.  I'm wondering, for all of you who work with web mapping, where should I start? I want to start simple, but have the ability to expand when I get comfortable with it. I'm not willing to fork out money for ESRI products because, well.....I'm unemployed. I want to start working on some open source freeware products. I think Quantum GIS with the OSGEO package seems to be the most popular? I've worked with QGIS in my previous position for desktop and development applications, but I haven't created a web application. What other good, free products are out there that you have used with some success. Is there anything really cool in open source like 3D mapping? I was thinking about creating a 3D fly through tour video using some DEM's or LiDAR if I can get my hands on that sort of data. Any thought, suggestions?  Thanks, Mike


Can I send complex data when navigating via component.navigate()?

I have an order details lightning component page that makes an api call in the init action call to get all the order details (a giant 2k line json object). Once that page loads, there's an "Item Details" button that navigates to a new tab. I know I can pass simple query string parameters in the page reference (state property) that gets passed into the component.navigate() call (see ). But my question is: Is there a way I can send the entire json object from the Order Details page to the Item Details page?


I'm a linux user, and I only use Windows when I have to. Hence I just wrote a bunch of files from Linux to a NTFS drive to read them in Windows 8.1 64bit. While most of the files work, one file can't be read by any application. I've noticed that this particulary file has a lenghty filename, so I tried renaming it to a shorter one, which fails from both the GUI and the command line ("filename too long").  I've already figured out that surprisingly there are still filename limits in Windows (aren't we in 2017?). But how can I access the contents of that file, if I can't even rename it to a shorter filename? I'd expect that to work. Is it possible to disable the filename limit for e.g. one reboot so that I can rename that file? I haven't access to my linux right now and there should be an easier way than creating a linux thumb drive for renaming a file, shouldn't it?  Any ideas are very appreciated, thanks in advance!


Find out which application listens to specific key bindings?

Is there an application to know which key is bound by which process and therefore not usable in another application?


What code should I use to send email in C#?  I tried to find a specific code so that I could send an email from my website. And then I get an error: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"  public void sendEmail(string toEmail, string subject, string emailBody) {      string senderEmail = "My_Email";      string senderPassword = "My_Email_Password";      SmtpClient client = new SmtpClient("smtp.gmail.com", 587);      client.EnableSsl = true;      client.Timeout = 500000;      client.DeliveryMethod = SmtpDeliveryMethod.Network;      client.UseDefaultCredentials = false;      client.Credentials = new NetworkCredential(senderEmail, senderPassword);      MailMessage mailMessage = new MailMessage(senderEmail, toEmail, subject, emailBody);      mailMessage.IsBodyHtml = true;      mailMessage.BodyEncoding = UTF8Encoding.UTF8;      client.Send(mailMessage); }   Do I need to use Google API??


I currently have a maintenance plan that is reorganizing indexes everyday and I would like to know if you reorganize an index everyday would you ever need to rebuild the index? If so, why?


what's the difference between [[ ],[ ],[ ]] and 3*[[ ]] in python?

I'm a beginner in programming, and I'm trying to write code for transposing a matrix. When I run the below code, a logic error occurs:  def transpose(matrix):    x=0    trans=len(matrix[0])*[[]]    for list in matrix:        for element in list:            trans[x].append(element)            x+=1        x=0    return trans transpose([[1,2,3], [4,5,6]])   Output: [[1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6]]  But when I replace line 3 with trans=[[ ],[ ],[ ]] the code works good! What's the difference between [[ ],[ ],[ ]] and 3*[[ ]]? Thanks


How to list all applications currently playing audio?

Sometimes I have several applications open that are playing audio. Is there any way to list all of the applications that are using audio ports within windows?


Why is more memory allocated for a struct?

Consider the following code #include <stdio.h>  typedef struct aStruct {     int numA;     int numB;     int numC;     int numD;     int numE; }A;  typedef struct bStruct {     int numF;     int numG;     int numH;     A* a; }B;  int main(void) {     printf("Size of struct A: %lu\n", sizeof (A));     printf("Size of struct B: %lu\n", sizeof (B));      return 0; }  When I compile and run the code above on my 64-bit machine I get Size of struct A: 20 Size of struct B: 24  I cannot understand why struct B comprises 24B. I would expect it to be 20B, 12B for the three integer members and 8B for the pointer. Initially I thought about memory alignment reasons, but according the the size of struct A, the system is able to allocate 20B.


I recently sold my NES Legend of Zelda that I bought around 1989 for my kids. The buyer thinks it's a fake because it does not have any batch/quality control stamping on the back.  Nothing else about the game looks fake.  Can anyone definitively say that all Zelda NES games produced had a stamp?  And were there even fake copies around in 1989?  I called Nintendo for help, the person I chatted with wasn't even aware that Nintendo's seal was round instead of the oval the first few years. Appreciate any thoughts


How to install adobe flash player in ubutu 15.04 LTS for google chrome?

I tried to install it directly from the software center but on installing it I got this message in the terminal  Package adobe-flashplugin is not available, but is referred to by another package.   This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'adobe-flashplugin' has no installation candidate   Please Help...


reported speech causing tenses confusion

You didn't tell me that you have a girlfriend.(Does it mean that he still has a girlfriend)                       or   You didn't tell me that you had a girlfriend.(Does it mean that he no longer has a girlfriend) I knew that you have a girlfriend.                    or   I knew that you had a girlfriend.   which of them is grammatically correct and why not the other one? Please explain every detail about such sentences which give confusion of tenses to the non English speakers.  P.S  The person does  have a girlfriend at present, as he never broke up with her.  thanks in advance :)


Saving .txt with JFileChooser and business class

I am trying to initiate the save of a .txt file on the form side after a save button is chosen. The save is going to happen on the business package. However, it doesn't seem to be working. I can't figure out why. Here is what I have on the form side:  private void jMnuSaveActionPerformed(java.awt.event.ActionEvent evt) {                                              statusMessageLabel.setText("");     JFileChooser f = new JFileChooser(".");     String path = "";     f.setDialogTitle("Save Asset Depreciation File");     FileNameExtensionFilter filter = new FileNameExtensionFilter ("Text File (*.txt)", "txt");     f.setFileFilter(filter);     JDialog dg = new JDialog();     int rval = f.showSaveDialog(dg);     if (rval == f.CANCEL_OPTION){         statusMessageLabel.setText("Open canceled.");     }     else if (rval == f.APPROVE_OPTION){         path = f.getSelectedFile().getName();         a.setSave(path);         statusMessageLabel.setText(path);     } }                                           And here is what I have on the business package/Asset class side:  public boolean setSave(String p){     boolean result = true;     try{         PrintWriter out = new PrintWriter(         new FileWriter(p + ".txt", true));         out.println("Asset Name: " + this.AssetNm);         out.println("Salvage value: " + this.salvage);         out.println("Cost: " + this.cost);         out.println("Life (years): " + this.life);         out.close();     }catch (IOException e){         result = false;         this.emsg = "Write status error: " + e.getMessage();     }     return result; }


Getting ArcMap to recognize csv column as float and not int?

I am trying to show a .csv file (2 columns, 291 rows) in ArcMap 10.2 using Catalog window to drag the .csv file into ArcMap.  The second column of the .csv is a floating point number (range is [0-1]), however ArcGIS is treating that column as an int.  That is: I can view the column as numeric with decimal places in Excel, text editor, etc., but when I open the table in ArcMap the column is reduced to 0, 1 or null.  All non integers are replaced to null.    How to I ensure that ArcMap 10.2 reads the column as a float?  I have tried the following, but none have worked:   Re-ordering the observations so that observations with decimals are in the first eight rows (since I believe Arc looks at the first eight rows to determine data type). Editing the scheme.ini file to indicate column 2 has the datatype float.  (But I may not be doing this correctly.) Saving the .csv file with an alternative delimiter.  Changing the column in Excel from numeric to text.     It's not possible to change the field from int to float as implied by this question/answer thread:  question/answer  Adding a text "dummy" in the first 8 lines (also suggested by  question/answer) that is text (to try to force the field into text so that I can convert to float in Arc) also did not work.


What else do I need to produce two dots above o?

In tex file:     Toks\"{o}z   It produces


wpf border control to span the width of listboxItem

Im trying to define a dataTemplate for a business object in my wpf application a collection of which is being bound to a ListBox.  <UserControl.Resources>     <DataTemplate x:Key="ResizedItemsDataTemplate" DataType="{x:Type resizer:ResizeMonitorItem}">               <Border x:Name="bdr" BorderBrush="Blue"                                       BorderThickness="1"                                       CornerRadius="2"                                       Width="auto"                                      HorizontalAlignment="Stretch"                                      VerticalAlignment="Stretch">                     <Grid Margin="2">                         <Grid.RowDefinitions>                             <RowDefinition Height="14"></RowDefinition>                             <RowDefinition Height="14"></RowDefinition>                         </Grid.RowDefinitions>                           <TextBlock Grid.Row="0" Text="{Binding SaveAsFileName}"></TextBlock>                         <TextBlock Grid.Row="1" Text="{Binding ResizedImageFilePath}"></TextBlock>                     </Grid>              </Border>     </DataTemplate> </UserControl.Resources> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0">         <Border BorderThickness="0,0,0,5" BorderBrush="DarkGray" >         <ListBox x:Name="ListBoxResizeItems" ItemsSource="{Binding Path=ResizeItems}" BorderThickness="0" ItemTemplate="{DynamicResource ResizedItemsDataTemplate}">         </ListBox>     </Border> </Grid>   How can I get the border defined with x:Name=bdr to span the full width of each listbox item? At the moment it only spans the with of the textblocks inside it which dont neccessary fill the full width of the listboxitem and also vary for each listboxitem.


How to return an int to float upto 2 zeros?

Expected output: 56.00 and my output: 56.0 from statistics import mean if __name__ == '__main__':     n = int(input())     student_marks = {}     for _ in range(n):         name, *line = input().split()         scores = list(map(float, line))         student_marks[name] = scores     query_name = input()     marks_list=list(student_marks[query_name])     ans=(mean(marks_list))     print(round(ans),2)    My answer is 56.0 for the input, so is there any short way to do this?


My Home address will change during ESTA period, is it affected?

My ESTA is in its second year. My lease is up on my UK address and I will change addresses in the next few weeks. I am flying to the US on March 1st for another visit. Will my address change affect my ESTA or my 90 day allowance?


Change update frequency of App Store in Yosemite?

Similar to   Is there a way to change the frequency the App Store checks for updates in Yosemite?


Comments, questions and answers don't trim Unicode U200B when counting characters


automatically apply special formatting to selected words in text

Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold cyan monospaced font, whereas the rest of the document remains normal, sans serif and black.   How can I achieve that without having to do a search&replace to place "hello" into a custom command every time before I compile the .tex file?


In bash, you can do cool brace expansions like this:  $ echo {a..z} a b c d e f g h i j k l m n o p q r s t u v w x y z   Experimenting around with this, I decided to try some weird things:  $ echo {a..Z} a ` _ ^ ]  [ Z   Where did this sequence come from?


When leaving several tabs open in Google Chrome for hours/days, I notice that some pages end up using huge amounts of RAM, to the point where the whole OS (XP) becomes unresponsive due to paging. When I'm lucky, I can finally bookmark the list of open URLs, close Chrome, and start again; When I'm not, I simply must kill Chrome and hope I can recover the list of open URLs.   Why is that? Memory leaks in plug-ins? Is there a way to configure Chrome so that a single tab/page won't use more than a set amount of RAM?   Thank you.


I am trying to validate input text field in java by creating an exceptional error if user does not type in the word specified i.e. admin          String username;         int phone1;          @Override         public void widgetSelected(SelectionEvent e) {                       try             {             phone1 = Integer.parseInt(phone.getText());             }             catch (Exception exe)             {                            MessageDialog.openError(shell, "Error","Phone number has to be a number");                 return;             }              try             {             username = namefield.getText();                if (username!= "admin") {                     throw (new Exception());                 }                        }             catch (Exception exe)             {                    MessageDialog.openError(shell, "Error","The username must be admin");                 return;             }               labelresult.setText("The name entered is:"+ username );               labelresult2.setText("The phone entered is:"+ phone1 );   The one for phone works perfectly  What about for username. What should i do?


How to prove that for every $i$, $a_i = i$

I am a beginner in number theory and I would like some hints to solve the following  problem : Assume we have natural numbers $a_1,a_2,...$ such that $i$ is not equal to $j$ and $\gcd(a_i , a_j) = \gcd(i,j)$. Prove that $a_i = i$. I know that I have to show $i$ counts $a_i$ and $a_i$ counts $i$ but I don’t know how to show this. Since $\gcd(i,j) = \gcd(j,i)$ is it also true that $a_i = j$?


Why does inserting a dielectric of dielectric constant $k_e$ have an effect of increasing the distance from $r$ to $r+t(\sqrt{k} -1)$ in Coulomb's law of electrostatics (where $t$ is the thickness of dielectric slab)? Shouldn't the dipole forces cancel out?


Correct way to prove the limit: $\mathop {\lim }\limits_{x \to 0} {x^\alpha }\int\limits_x^1 {\frac{{f\left( t \right)}}{{{t^{\alpha  + 1}}}}dt} $?

Some days ago I answered a question that asked to find  $$\mathop {\lim }\limits_{x \to 0} {x^\alpha }\int\limits_x^1 {\frac{{f\left( t \right)}}{{{t^{\alpha  + 1}}}}dt} $$  given that $f$ is continuous in $[0,1]$  I proceeded as follows:  $$\eqalign{   & t = x\cdot u  \cr    & dt = x\cdot du \cr} $$  So this is produces:  $$\mathop {\lim }\limits_{x \to 0} \int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right)}}{{{u^{\alpha  + 1}}}}du} $$  I then thought: "Well, if $f$ is continuous in the closed interval, then it is also uniformly continuous, so I can assume   $$\mathop {\lim }\limits_{x \to 0} \int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right)}}{{{u^{\alpha  + 1}}}}du}  = f\left( 0 \right)\int\limits_1^\infty  {\frac{{du}}{{{u^{\alpha  + 1}}}}}  = \frac{1}{\alpha }f\left( 0 \right)$$  This turned out to be true. However, I wasn't very comfortable with such "move". So now I'm thinking, one can put  $$\mathop {\lim }\limits_{x \to 0} \int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right) - f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du}  + \mathop {\lim }\limits_{x \to 0} \int\limits_1^{\frac{1}{x}} {\frac{{f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du} $$  And then   $$\left| {\int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right) - f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du} } \right| < \int\limits_1^{\frac{1}{x}} {\frac{{\left| {f\left( {xu} \right) - f\left( 0 \right)} \right|}}{{{u^{\alpha  + 1}}}}du}  < \epsilon \frac{{1 - {x^\alpha }}}{\alpha }$$  However, this is still insufficient since I need to adress the behaviour of the upper limit too. Can someone show me how to adress both behaviours simultaneously?    Would this work?  Let $P$ be the statement that $$\mathop {\lim }\limits_{x \to 0} \int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right)}}{{{u^{\alpha  + 1}}}}du}  = \frac{{f\left( 0 \right)}}{\alpha }$$  Then $P$ is true if and only if  $$ \forall \epsilon  > 0\exists \delta  > 0$$  Such that if $$\left| x \right| < \delta $$ then $$ \left| {\int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right)}}{{{u^{\alpha  + 1}}}}du}  - \frac{{f\left( 0 \right)}}{\alpha }} \right| < \epsilon $$  But then   $$\left| {\int\limits_1^{\frac{1}{x}} {\frac{{f\left( {xu} \right) - f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du}  + \int\limits_1^{\frac{1}{x}} {\frac{{f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du - \frac{{f\left( 0 \right)}}{\alpha }} } \right| < $$  $$\left| {\int\limits_1^{\frac{1}{\delta }} {\frac{{f\left( {xu} \right) - f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du}  + \int\limits_1^{\frac{1}{\delta }} {\frac{{f\left( 0 \right)}}{{{u^{\alpha  + 1}}}}du - \frac{{f\left( 0 \right)}}{\alpha }} } \right| \leqslant $$  $$\varepsilon \frac{{1 - {\delta ^\alpha }}}{\alpha } + f\left( 0 \right)\frac{{1 - {\delta ^\alpha }}}{\alpha } - \frac{{f\left( 0 \right)}}{\alpha } < $$  And since  $$\frac{{1 - {\delta ^\alpha }}}{\alpha } < \frac{1}{\alpha }$$ $$\epsilon \frac{{1 - {\delta ^\alpha }}}{\alpha } + f\left( 0 \right)\frac{{1 - {\delta ^\alpha }}}{\alpha } - \frac{{f\left( 0 \right)}}{\alpha } < \frac{\epsilon }{\alpha } < \epsilon $$


Align consecutive operator subscripts in equation

I have to write the definition of uniform convergence. That is, the superior limit in the succession's pointwise convergence's set of the limit for n to infinite of the absolute value of the difference between the n-th function and the limit function evaluated in x. More difficult said than done. The fact is, written in LaTeX this way:  \[\sup_{x\in I}\lim_{n\to\infty}\left|f_n(x)-f(x)\right|=0\]   Results in this:    The range of \sup and \lim are not aligned, resulting in a rather displeasant appearance. I tried adding \vphantoms in the subscripts (just in case the problem is in the capital I), but even putting the same subscript in the  \lim and the \sup changes nothing, the problem is in the p letter of the latter which shifts the subscript lower than the other one.  Can anybody tell me how to ignore it?


How do I remove "permission denied" printout statements from the find program?

Code   find / -name netcdf   Output  find: `/root/.dbus': Permission denied find: `/root/.gconf': Permission denied find: `/root/.gconfd': Permission denied find: `/root/.gnome': Permission denied find: `/root/.gnome2': Permission denied find: `/root/.gnome2_private': Permission denied


Which types of chilli work for homemade chilli oil?

I have seen a restaurant that has chili pepper in the olive oil bottle, it gave the oil a delicious chilli taste. I am planning to do the same at home.   I wonder how to choose the chilli I will be using. What difference do the different types (jalapeno, red chilli, etc.) have on the finished product?  I am aware of the safety issues as discussed in , they are not part of the question.


Android app: Editing tags is not supported

According to this Q&A:  there was a missing feature in the API, what hindered apps to push edits into the suggested edits queue. According to the same Q&A this feature was added in December 2014.  When will this feature be available in the StackExchange App?  Related Q&As:


Should initial e's after h-dropping be capitalized?

A new Victorian-set British novel begins sentences containing h-dropping with lower-case e's, as in " 'e took my money, 'e did." This seems incorrect but I'm at a loss to find the rule.


How to cut files on Finder on Mac OSX 10.9 Mavericks?

I can't cut files on Mac OSX 10.9 Mavericks after upgrade. I can only copy and delete them. Why? How can I fix this?


Following  answer.  I notice that the cpg (decoding declaration) file isn't delete using .deleteShapeFile pyQgis function.  Any suggestion on how to delete these files using automatic method?


One often hears the words "string tension" in string theory. But what does it really mean? In ordinary physics "tension" in an ordinary classical string arises from the fact that there are elasticity in the string material which is a consequence of the molecular interaction (which is  electromagnetic in nature). But string theory, being the most fundamental framework to ask questions about physics (as claimed by the string theorists) can not take such elasticity for granted from the start. So my question is, what does "tension" mean in the context of string theory? Perhaps this question is foolish but please don't ignore it.


How can I get "delta" packages to optimize apt-get upgrade downloads?

I have recently installed  in VirtualBox and noticed that they use Delta-RPM packages, which help dramatically reduce downloading sizes. Also I heard that . Would be glad to see such deltas in Ubuntu too.  Does anyone know about such delta-deb packages and how do I get to use them?


Text has turned to boxes in Ubuntu 16.04

Without any cause that I can tell, all text has turned into boxes /rectangles everywhere in Ubuntu 16.04.  I am able to press ctrl-alt-F1 and go to shell,  I have run :  apt-get update   And  apt-get upgrade   But this has not changed anything.   Any suggestions?


I want to know how to prohibit multiple execution using pyinstaller   the command I use to have the exe is   pyinstaller -w -F --hidden-import "babel.numbers" --icon=images/look.ico App.py   Know this works fine but when executing multiple times many instance of the same application will start at the same time.  I want to have one instance of the application even run the exe multiple times


How do I get a Canon Pixma MG 3150 working?

I've got the new Canon Pixma MG 3150 and so far, I can't seem to find a driver anywhere. I do have the CD for both Windows and Mac, but this doesn't help me, as I have Ubuntu 11.10. I'd prefer to have it running on the wifi.  I'm really new to this, so I need for you to explain this to me as basically as possible.


I have been suggested Artin or Herstein's books. What do you think is more rigorous but at the same time clear and good to read?


I want make dual boot with feodra 15 and ubuntu 11.04 for testing features,please guide me the same.          i had done dual boot with windows and linux but not linux linux.


Why does a defined variable become undefined if it's not updated in a try except block?

I have a very small sample of code that uses a try:except block and I'm a bit confused as to why it returns hi as not being defined:  def myFunction():     try:         pass     except:         hi = "bunk"     print(hi)  hi = "blah" myFunction()   I would have expected it'll remain as "blah" unless it fell in the exception, in which case it'll turn into "bunk". When debugging, the IDE returns "blah" as the value of hi, but throws an exception when it tries to print it.  It appears as though hi becomes a local variable within the function, so once it gets to the print statement, it fails with an error that it's not defined as the try statement didn't define it.  Is that what is happening?  I realize that if it's not defined, it'll throw the UnboundLocalError, but the following works fine:  def myFunction(): ##    try: ##        pass ##    except: ##        hi = "bunk"     print(hi)  hi = "blah" myFunction()


I need to match a space character in a PHP regular expression. Anyone got any ideas?  I mean like "gavin schulz", the space in between the two words. I am using a regular expression to make sure that I only allow letters, number and a space. But I'm not sure how to find the space. This is what I have right now:  $newtag = preg_replace("/[^a-zA-Z0-9s|]/", "", $tag);


bash: "logical and" checks if file exists?

In bash, the usual way to check if file exists is [ -f xxxx ] or [ -e xxxx ]. I see a script doing this if [ -a xxxx ], and I verified that this works to check the existence of a file. How is "logical and" operation being used to do this?


Missing libtiff.so.3 when running TrackVis

I downloaded TrackVis and the Diffusion toolkit and I installed all correctly in Ubuntu 12.04. The problem is when I try to launch the program; the following error appears:  ./trackvis: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory   Could you help me?


Can't boot into Windows 10 from GRUB menu, even though the option of Windows 10 is there?

I recently dual booted my Lenovo windows 10 laptop, windows 10 + Ubuntu 18.04. Installing Linux in itself was a hassle, but now it is done.  However, now when I power on my laptop, I reach the grub screen as shown in images:      Here, I do have an option of Windows 10. But when I move over to it, and click it, the screen color changes to black or something and then again this GRUB menu screen reappears.  So while I can choose to boot into Ubuntu from here (first option), I am not able to boot into my Windows 10.  Pressing e on GRUB menu, when Ubuntu is selected, the following options are seen:    Pressing e on GRUB menu, when Windows 10 is selected, the following options are seen:    After using boot-repair on Ubuntu, the issue still persists, but in the GRUB menu another entry for booting to Windows has now been created, but using both the options, the problem still is the very same!     Could someone please look into it, and help out?   Background info  While installing Ubuntu using live USB, I could only boot into Windows 10 directly, wasn't getting a GRUB menu to choose Ubuntu/Windows.   So in Windows, I installed EasyBCD and created a new entry for GRUB (legacy), which didn't work either in giving me a GRUB menu/choice to boot into Windows/Ubuntu.   So I created another entry, now for grub2, which finally worked, so when I restarted, I did get the GRUB menu screen and could boot into ubuntu on startup.  But then I noticed that now I can't boot into Windows even though the option for that is coming on the GRUB menu.  Also I am new to Linux, feeling kind of helpless.


So we can say   "Do you think (that) he'll come?"   (in other words, we can omit THAT in conversation)  But what about with a sentence like   "Did he deny （that） he went to Thailand?"   Can "that" also be omitted like in the sentence above?


Abnormal burst in the First Posts review queue?

From the review queue of StackOverflow:    As you can see. Just few minutes ago, there was a sudden burst in the First Posts review queue. Most posts in the queue were posted around 20~30 days ago.   Does anyone know the cause of this sudden burst in the number?


I am working on a text written in Italian and Chinese and I need to extract only Chinese characters using AWK. How can I do this?  I tried:  [The range of Chinese Unicode chars is 4E00 thru 9FFF (344 270 200 thru 351 277 277) so the test should be >"\343" and <"\352" (to avoid picking up any 4 char UTF-8 codes)]:  { f=0; for ( i=1; i<=length; i++) if(substr($0, i, 1)>"\343" &&substr($0, i, 1)<"\352") f = 1   print $f }   But there is an error or more errors. I can't find it / them


Calling same function multiple times gets me an error

I'm programming in c#. I have written a method to generate random imei, which has 15 numbers from 0 to 9. I combine them using StringBuilder and return the whole code as string.  public static string randomIMEIgenerator() {     var builder = new StringBuilder();     while (builder.Length < 15)     {         builder.Append(Rnd.Next(10).ToString());     }     return builder.ToString(); }   Now the thing is that I want to run this method x times, because I want to generate x imei codes. Why when I write for loop I get this error?     An object reference is required for the non-static field, method, or   property   My main function:  private static readonly Random Rnd = new Random(); int x = 5; public static void Main(string[] args) {     for (int i = 0; i < x; i++)     {         randomIMEIgenerator();     } }   I also want to store all of those randomly generated imei's to an array. Should I just do it like that?  String[] array = new String[x]; for (int i = 0; i < x; i++) {     array = randomIMEIgenerator(); }   However my main question is about that error.  P.S. If I run this only one time, it generates one imei number. So the method randomIMEIgenerator is working properly.


Error while updating the Ubuntu Repositories etc

I have experienced this kind of error ever since it had a server error. Can someone explain me to this and help me resolve this problem? Thanks!  Error on updating Ubuntu:


Find the limit $\lim _{n \to \infty}(n!)^{{\frac{1}{n^2}}}$

Find the limit $$\lim _{n \to \infty}(n!)^{{\frac{1}{n^2}}}$$  I have tried it using Stirling's approximation and then using L'Hospital's Rule and get answer $1$  Is there any other easy method to find this limit ?  Any hint. Thanks in advance.


How does Hearthstone match you with opponents in Play mode, for both Ranked and Unranked? Does your record in Ranked affect matchmaking in Unranked (and vice-versa)?


I have read different descriptions of censored data:  A) As explained in  thread, unquantified data below or above a certain threshold is censored. Unquantified means data is above or below a certain threshold but we do not know the exact value. Data is then marked at the low or high threshold value in the regression model. It matches the description in this , which I've found very clear (2nd slide on first page). In other words $Y$ is capped to either a minimum, a maximum value or both because we do not know the true value outside of that range.   B) A friend told me that we can apply a censored data model to partially unknown $Y$ observations, provided we have at least some limit information about the unknown $Y_i$ outcomes. For example, we want to estimate the final price for a mix of silent and open auctions based on some qualitative criteria (type of goods, country, bidders wealth, etc.). While for the open auctions we know all final prices $Y_i$, for the silent auctions we only know the first bid (say, $1,000) but not the final price. I was told that in this case data is censored from above and a censored regression model should be applied.  C) Finally there is the definition given by the  where $Y$ is missing altogether but the predictors are available. I'm not sure how this example is different from truncated data.  So what exactly are censored data?


I am making a trappist style beer and about ready to bottle it. I am looking to age part of the bottles and was wondering how long bottled homebrew stays good for?


confused about present perfect and simple past uses

I always read that we should use the present perfect with actions started in the past and finished and has some influence in the present. And also we can't use the present perfect with finished time like yesterday, last year, or this morning(if the morning is finished).  consider the following situation.   I have stomach ache and my friend asks me about the reason of it.  what should I use  1- I have eaten expired cheese this morning(the morning is finished) 2- I ate expired cheese this morning(the morning is finished)  I'm sorry, I know there is millions of questions about present perfect and past simple. but every website or book I have read tells different set of rules and sometimes confusing ones. some of them just say use the present perfect if you don't mention the time. I don't know which one is correct.


Find monic irreducible polynomial in p-field

Let $p$, $l$ be prime numbers, $n$ be positive integer. Find the number of irreducible element in $\mathbb {F_p}[x]$ with degree of $l^n$.    I have got the Gauss's formula $\dfrac{1}{n} *\displaystyle\sum_{d|n} µ(n/d)q^d$. But is there any easier method working out this problem?  Thank you!


Ignore this user (everywhere) doesn't work

I decided to ignore a user everywhere in chat by using the "Ignore this user (everywhere)" feature, but I can still see their messages in the list of rooms in the chat user interface.    I chose to ignore badp, but I can still see the messages that they sent.


Combine Custom settings with Custom Labels

Is there a way to combine custom settings with custom labels ? So that the output from a setting value would be a custom label ?   To explain:  In example, we have an international organisation, and say countries are stored as an ISO code. As this is a limited and stable set of data, using custom settings would be the appropriate way to deal with say the full country name.   The issue arises when I do not just want to store the English country name, but want to have it translatable, presenting the right translation depending on the user's locale. Now, this is the point where I'd like to integrate custom settings with custom labels.  So that say the custom setting with name 'some iso code' doesn't return the full country name, but Label.Country'some iso code', which is than automatically translated in the right version.   Sounds good right. But as custom settings are fixed to certain types, as far as I've gotten is put the label name in the settings as a string value. And then .. i'm stuck :).  No way to cast a string to a Custom label, or have it be interpreted (and translated) as such, or is there ?   I'm aware this can be done in a custom object & apex, I was hoping for a more automated, "cleaner", less resource consuming way, better integrated, configurable way.  Additional clarrification: *The goal is to extend the use of custom labels (translation workbench), by adding a mapping from any data-based value to a custom label.*   While we could do a long matching process in apex, it would be faster & neater if the custom settings mechanism could be used. There are disadvantaged to custom objects, they require soql & apex, while custom settings & custom labels are cached. They too can be used in many other places. Countries were an example, I'd use this mechanism for every variable value that needs to be translatable.


`sudo reboot` vs `reboot` - what is the difference?

I recently found out that reboot works just as well as sudo reboot, from what I can tell. However, in a lot of instances, I see people saying to sudo reboot. Why is this? Are they the same, and just personal preference? Or are they different? Does sudo reboot do more than reboot?


Why was Edward Norton replaced by Mark Ruffalo in "The Avengers"?

In the movie , there was a scene with Tony Stark having a conversation with Bruce Banner who was played by Edward Norton. So why didn't Joss Whedon choose him in his movie ?


How would I go about answering this question? Would anyone be able to point me in the right direction?     Find a unit vector in the direction in which $f$ increases most rapidly at $P$, and find the rate of change of $f$ at $P$ in that direction:   $$f(x,y) = \sqrt{\frac{xy}{x+y}}$$


Seeking municipal-level administrative boundary data for Poland?

I am looking for municipal-level administrative boundary data (NUTS 5) for Poland. Since it is public information, I thought the data would be readily available, but I can't seem to find it anywhere. I have checked the usual sources.  has data down to the county (powiat) level, and  seems to only have data down to the provincial level. I have looked at many of the Polish government's sites, but while I can find plenty of GIS data viewers, I can't find a way to download the administrative boundary data I am interested in. To make matters more complicated, I would really like historic data, but I would settle for current NUTS 5 level data.


Scorching Ray as an attack of opportunity from War Caster

For DnD 5e. Multiple players in my campaign have the War Caster feat. Would that allow for them to use Scorching Ray as an AOO?


I am trying to install phonegap in my Ubuntu 14.04 and when I try to update NPM I always get this error. What can it be? How to fix?  The commands I am using are sudo npm npm update -g and sudo npm npm install -g and always of this error:  npm ERR! tar pack Error reading /home/alisson/tmp/npm-13231/1456521975198-0.6208237137179822/package npm ERR! TypeError: Cannot call method 'filter' of undefined npm ERR!     at Packer.IgnoreReader.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13) npm ERR!     at Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:133:10) npm ERR!     at fs.readFile (fs.js:176:14) npm ERR!     at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:90:5) npm ERR!     at Object.oncomplete (fs.js:297:15) npm ERR! If you need help, you may report this log at: npm ERR!     <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR!     <npm-@googlegroups.com>  npm ERR! System Linux 3.16.0-60-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "update" "npm" "-g" npm ERR! cwd /home/alisson/.local/share/Trash/files/npm npm ERR! node -v v0.8.15 npm ERR! npm -v 1.1.66 npm ERR! type non_object_property_call npm ERR! addLocalDirectory Could not pack "/home/alisson/tmp/npm-13231/1456521975198-0.6208237137179822/package" to "/home/alisson/.npm/npm/3.7.5/package.tgz" npm ERR! Error: Callback called more than once. npm ERR!     at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:80:16) npm ERR!     at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:27:18) npm ERR!     at /usr/local/lib/node_modules/npm/lib/update.js:29:5 npm ERR!     at /usr/local/lib/node_modules/npm/lib/outdated.js:33:30 npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11) npm ERR! If you need help, you may report this log at: npm ERR!     <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR!     <npm-@googlegroups.com>  npm ERR! System Linux 3.16.0-60-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "update" "npm" "-g" npm ERR! cwd /home/alisson/.local/share/Trash/files/npm npm ERR! node -v v0.8.15 npm ERR! npm -v 1.1.66 npm ERR!  npm ERR! Additional logging details can be found in: npm ERR!     /home/alisson/.local/share/Trash/files/npm/npm-debug.log npm ERR! not ok code 0   This folder npm-13231/1456521975198-0.6208237137179822/package exists in directory tmp


Did the derivation of self inductance equation overcalculate winding number?

Let $L , I , \phi$ are self inductance , current and magnetic flux (created by each loop) of a solenoid with $n$ turns . $r$ is the radius of those loops . We have , $LI=n \phi = nAB $  [$A=\pi r^2$]  Now according to textbook , "As there are n loops ,  $\displaystyle B=\frac{n\mu_oI}{2r}$ .   Substituting $B$ , $\displaystyle LI=nA\times\frac{n\mu_oI}{2r}\Rightarrow L=\frac{n^2\mu_o \pi r}{2}$ "  We considered the fact of n loops when we multiplied $n$ with $\phi$ . Again we multiplied $n$ while calculating $B$ .   In the equation $n\phi=nAB$ , $B$ represents magnetic flux density caused by each loop . On the other hand , in the equation $\displaystyle B=\frac{n\mu_oI}{2r}$ , $B$ represents magnetic flux density caused by all loops . We calculated $\displaystyle L=\frac{n^2\mu_o \pi r}{2}$ considering the winding number fact twice . So shouldn't  be the equation wrong ?  (The question other users are refering as "original" of this question (asked by myself a few weeks ago) isn't totally about self-inductance . This question is regarding to deduction of a equation for self-inductance .)


how to Optimize Wordpress database for 10 million post?

i am trying to create a website with 10 million post but after half a million website posting goes too slow how i can optimize my database and import data like a new website


In Defense Grid: The Awakening, is it more cost-efficient to build more towers or upgrade existing ones?


What are the criteria for wins, losses, and saves in MLB?

I've read the rules for determining Wins, Losses and Saves for pitchers, and I've never been able to make heads or tails of it.  Is there an easier way to explain it?


Why is my regex not splitting for '$$$' delimiter?

Dealing with a string === "1$$$2!@!@3!@!@4!@!@5". I want to be able to split it at both $$$ and !@!@ which are custom delimiters that have been passed in. Since I have to be able to take in any custom delimiter I can't simply use a regex that only pulls out the numbers b/c I could deal with a custom delimiter such as [r9r] which I need to split by.  delimiter = delimiter.substring(0, delimiter.length - 1); console.log(delimiter) // => "$$$|!@!@"   const regex = new RegExp(`(,|\\n|\\${delimiter})`,'g');   const finalStr = str.substring(str.indexOf('\n'), str.length)   console.log(finalStr); // => "1$$$2!@!@3!@!@45"   let arr = finalStr.split(regex).filter(Boolean);   console.log(arr); // => ["1$$$2", "!@!@", "3", "!@!@", "4", "!@!@", "5"], why does '$$$' stay attached to the 1 and 2?   const finalArr = [];   for (let char of arr) {     if (parseInt(char)) {       finalArr.push(char);     }   }   console.log(finalArr) // => ["1$$$2", "3", "4", "5"]   return finalArr;   I want my final array to be: ["1", "2", "3", "4", "5"] but for some reason the '$$$' doesn't get split like the '!@!@' delimiter does. When I used '!!!' instead of '$$$' it worked so I assume its a special character but still couldn't find a way to accept it.


Add new item in existing array in c#.net

How to add new item in existing string array in C#.net?  I need to preserve the existing data.


How to choose install location using "apt-get install"?

I was about to play around on my virtual machine running Ubuntu 12.04. I installed GIT-CORE using apt-get install git-core from repos. First I thought the apt-get command will install in the folder I am in, but I was wrong. So is there a way to directly tell apt-get where to install ?  Or do I have to move the files later? Let me know your best solution for this.


Why is an electron negatively charged, and what is the difference between negative and positive charges?

Nobody has yet defined the actual meaning of a charge, or why a negative charge is different from a positive charge.   Everybody knows that positive charge is due to protons and negative charge is due to electrons, but what does the charge mean?  Why were negative and positive charges so designated?  Was it also a possibility to call the charge of an electron positive and the charge of a proton negative?


Find out which process has data open on the hard drive that is no longer visible in the directory tree

On my server, the root partition is 73GB, but the disk says, it is full, although there are only about 6GB used on that device:  # df -h Filesystem                  Size  Used Avail Use% Mounted on udev                        997M     0  997M   0% /dev tmpfs                       202M   41M  162M  20% /run /dev/mapper/p22server-root   73G   68G  655M 100% /   (I use LVM on the server: /dev/mapper/p22server-root -> ../dm-0) If I check with   ncdu -x /   I find out that the total usage is just 5.9GB.   My guess is, that there must be files still open, that are not visible in the file-tree.   How can I debug this? I guess, that a reboot will restore the lost space, but rebooting is not possible right now.


How discretised PDE forms a matrix (matrix entries question)

Below you can see an example of discretising a PDE. What I don't get is how does it so happen that the entries $b_{ii}$ are defined the way below? Where does the minus sign come from? If we have that $i=j$ then $u_i-u_i=0$, so shouldn't the entries b_{ii} be vacuously zero? Would appreciate some insight.


As part of the program I wrote, I constantly read and write data from files. I noticed that as part of doing so, I am inadvertently creating swap .swp files.  What do you think is going on? What would cause swap files to appear if you had to reproduce the problem?


How to calculate time difference between two dates

How to Calculate time difference between two dates in php?  $date1=date('Y-m-d H:i:s'); $date2=date('2015-03-06 45:06:03');(Db)   am trying to do once time difference between 2 hours send Mail to user.Current datetime and Db datetime difference between 2 hours mean Send Mail to user.How to Check?


Is there any way (dpkg, apt?) to get a package's sources and URL to repository, if available, in Debian ?


Prestige of publishing in special vs regular journal issue

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


regular expression matching any non white space char string ending with "&s"

Regular expression matching any non white space char string ending with "&s"  Tried RE: \S*&s  The issue is \S includes all the chars including "&s". In my string when "&s" occurs RE should end over there but it is not. Example : String: abcd$%+abv&sabc String extracted by RE:  abcd$%+abv&s


Looking for a basic PostGIS viewer to use as basis for own application

I'm looking for a rather basic PostGIS viewer. It should be possible to pan, zoom and retrieve coordinate information on mouse click. No need to support coordinate transformations. It should introduce as little further dependencies as possible. Preferably written in C++.


Blender animation file turn into "Textedit" file and never came out as a video

I'm new in blender (I started in January 2018), this is the first time I try to get an animation and it still doesn't work "as expected". I used JPEGs as frames when I rendered first into animation, after I created a new file in which I added them in the video editing mode.There is (only) 100 frames and the preview looks good. When I render the animation in the video editing mode, I finally get a file that is neither a .MP4, or a .avi, or .mov BUT a sort of "Textedit document".  To fix it I already try to change the output, the codec, the quality & rapidity for the render. (even switched from blender render to cycles render too, to see if something different could happen)


Copying an object to another object in JavaScript

I'm making a small example to display JSON (key and value). When I copy the JSON to another variable, I've tried to delete key Age and re-displayed the first JSON. Key Age in the first JSONhas been deleted, too.    $('button').click(function () {   var json = {};   json['Name'] = 'Hermione';   json['Age'] = 19;      for (i in json) {     $('body').append($('<p>').text(i + ': ' + json[i]))   }       var copy = json;   delete copy['Age'];      for (i in json) {     $('body').append($('<p>').text(i + ': ' + json[i]))   } }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <button>Click me</button>     So, my question is: Copying an object to another object means nothing in JavaScript, right?  I think that because when I copied it, it's still operating on the main version (json), not on the copy version (copy).


Should a linear function always fix the origin?

I became very confused about linear functions after reading this question   In the comments it says that $F(x)=2*x+4$  is NOT a linear function , (but an affine one). All my professors gave such examples when teaching linear functions. I am really confused now.  Should a linear function always be of the form $f(x)=t*x$ , where t is a constant ?  I think this could help me understand better linear transformations. I think one of the reasons I did not understand them is because I had a slightly wrong definition of linear functions.  HOWEVER, on Wikipedia, the definition of linear functions seems to accepts functions that also have a constant added or subtracted from the first (linear?) part.      So is wikipedia wrong on this one ?


"instructed not to" vs "instructed to not"

As per above title.  The complete sentence would be: You are hereby instructed not to proceed with any construction works for the units shown on the plan attached.  Thanks.


Lagrangian Mechanics - Commutativity Rule $\frac{d}{dt}\delta q=\delta \frac{dq}{dt} $

I am reading about Lagrangian mechanics.  At some point the difference between the temporal derivative of a variation and variation of the temporal derivative is discussed.   The fact that the two are the same is presented in the book I am reading as a rule, commutativity, and possible non-commutative rules are mentioned too.  I do not get it: given a path $q(t)$ and its variation $\delta q(t)$, the equivalence between the variation of the derivative $\delta \dot{q}$ and derivative of the variation $\dot{\delta q}$ seems to me a fact descending straight from calculus, not an arbitrary choice.  References:   B.D. Vujanovic and T.M. Atanackovic,, (2004); p.12. C. Lanczos, The Variational principles of Mechanics.


Arrange images as tables or subfigure or some other layout

How to layout images like the attached picture? Should I arrange them as tables or subfigure or some other layout? Thanks.    This is my latex code:  \begin{figure} \centering \subfloat[]{\includegraphics[width=\dimexpr(\textwidth-15pt+3pt*2)/2\relax]{fish}}% \hfill \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \caption{Test images} \end{figure}   The result is:    How to put "(d)" to the right of "(c)"?  Update: Thank Johannes_B, subcaption is the easiest way to meet my requirement. My code is:   \begin{figure}     \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_a}         \caption{Our}\label{fig:1a}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_b}         \caption{Adaptive order selection}\label{fig:1b}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_c_1}         \includegraphics[width=\textwidth]{image_c_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_d_1}         \includegraphics[width=\textwidth]{image_d_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_e_1}         \includegraphics[width=\textwidth]{image_e_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill \caption{A figure}\label{fig:1} \end{figure}


I have moved into a one bedroom council bungalow a year ago.  There has been a very strange smell in the bathroom, it isn't there all the time, in fact there isn't any particular pattern of time when it appears, sometimes morning - sometimes evening.  This smell is not bad but it's sickening, smells like an undiluted bottle of Tesco's double strenght blackcurrant juice.  It isn't coming from the drains or anywhere else I can put my nose.  Trust me, I have cleaned and cleaned to no avail.  Suggestions welcome - it's driving me crackers!!


Running LAStools on QGIS 2.8: "missing dependency. lastools folder is not configured"

To be honest I'm not sure how to run LAStools from within QGIS 2.8. I'm trying to learn by experimentation.  QGIS shows all the LAStools in the toolbox  If I double click on a LAStool in the toolbox I get the following message:     Missing dependency. This algorithm cannot run :-(   LAStools folder is not configured. Please configure it before running LAStools algorithms.   I can't find any LAStools *.exe files anywhere within my QGIS Wien file structure.  That makes me wonder how I could have LAStools show in the toolbox.  Could it be a *.dll somewhere?  What am I doing wrong?


Did Picard violate the Prime Directive by visiting Rubicun III?

The Edo were described as a pre-warp civilization. So, wasn't this  a violation of First Contact regulations?  Rimmick brings up the Edo incident in the episode Coming of Age. But his charges were just about how Picard interfered with the government, to rescue Wesley. It seems the Enterprise shouldn't  have made contact at all.


Why is the city of publication important in most bibliography format?

Most bibliography formats require the city of publication for books. Why? In this digital era, ISBN would be way more important. But even before the digitalization of everything, why was the city of publication important?  I can imagine some purposes:    to distinguish potential same names of different publishers, and to help book-seekers find the publisher and the book by actually visiting the city or contacting libraries in the city.    I want to know better stories about the 'city of publication'.


All meshes have different color, but they do have the same texture

I used the same texture for all these meshes, but why does the "footboard" have a different color (red arrow)?  I'm now working with 2.92 but started with 2.79, could that be related to it? Also, I have a strange "reflection" when I rotate only on the rear fender / rear fender.  unfortunately, all linked answers did not help. Blend file:


Everyone's seen lightning streaks, either in real life or in pictures and videos.   My question is, why does it look the way it does? Does lightning spread in a random manner, or is there physics behind the path lightning streaks trace in the sky?  $\hspace{175px}$


There are $B$ blue balls and $R$ red balls in a bag.  Now, randomly two balls are removed .  If both of them are of different color , then blue ball is added to the bag .  If both of them are of same color , then red ball is added to the bag .   Also the two drawn balls are discarded.  This is done until one ball is left.  What is the probability that the last ball is blue?  Now, I could not even start a solution on this , so could anyone provide help in solving this ?


Why are there so many fillers in long-running animes?

The most obvious answer everyone over the Internet is giving to this question is "Because anime is produced much faster compared to manga, they need to put in fillers in order to slow down the anime series". However, that shouldn't be the only reason.  For example, consider One Piece. The show is going on for more than 500 episodes, and less than 10% are fillers. Comparing that to Naruto, the show has almost the same number of episodes (original and Shippuuden combined), but almost 50% of its episodes are fillers. Needless to say, the manga of Naruto is so far ahead that the anime won't be able to catch up even if they produce 100+ episodes without any fillers.


What sensors to use to read gym machine selected weight

I'm trying to find a set of sensors (to build a solution) to determine how many weight blocks an athlete is lifting on the weight machine like this:    I already tried this solutions:   Put RFID tag on each weight block and set a RFID reader a little bit above the top block. The idea was that when blocks are moving up, the RFID reader would know what blocks were lifted just by comparing how many unique RFIDs were detected in a sequence. The problem with such approach was that RFID reader was skipping some of the RFID tags (probably because weight blocks were lifted too fast so that RFID reader couldn't keep up). Attach ultra sonic sensor (Sensor_1) () on top of the block weights stand and other ultra sonic sensor (Sensor_2) on the side as shown in the picture:    Sensor_1 is facing down. Sensor_2 is attached to a helper stand as is facing horizontally to the side of the block weights stand. The idea was that when user starts lifting the weights, at some point Sensor_2 detects a weight block (that is horizontally at the same height), Sensor_1 remembers the distance (Distance_1) to the top block weight. When Sensor_2 shows there is no block at the same height anymore, Sensor_1 checks the current distance (Distance_2) to the top block again and then it calculate the number of blocks by the following formula (Formula_1):  number_of_blocks = (Distance_1 - Distance_2) / height_of_1_block_weight , where height_of_1_block_weight = 4 cm, Distance_1 ~= 115 cm, Distance_2 < 115 cm  The problem with such approach was that ultrasonic doesn't measure distance to the point (like a ray), but there is a wave with a 15 degree angle instead and therefore we have issues with wave reflection from other objects (block weights stand or other stuff)   We tried the same approach as #2, but with IR sensors (). It doesn't give accurate distance because the sensor measurement error sometimes is more than 5 cm so the Formula_1 doesn't give expected output. Also, the sensor has 25 Hz limitation so if you lift the weights quick, it will skip distances > 3.2 cm (80 cm / 25 measurements a second).   The only way left that I see is to attach a camera and analyze the output image on the software layer...  Please, let me know if you have any other ideas or if you see a gap in the solutions that I specified. Thank you!


Shall programmer use "foreach var" instead "foreach AnyClass" in C#?

Which code block is better?              foreach (CloudBlockBlob b in allBlobs)             {                 res.Add(b.Name);             }   or          foreach (var listBlobItem in allBlobs)         {             var b = (CloudBlockBlob) listBlobItem;             res.Add(b.Name);         }   I don't know why "foreach (var ...)" is more popular.


I've had an iPhone 4S for about 1.5 years now. I have never had a problem taking tons of videos and pictures until now. Out of nowhere it says "can not record" because storage is full. I'm like "what, I have only one video".  When I check the usage, I have 11.1 GB of OTHER? I have only 1GB of Apps. What do I do to get rid of this? What is it? Calling people at Apple didn't work. I have contacts, notes, texts, apps I don't want to lose.


as in "... enabled them to remember all the detail of the story."  All the details sounds much more natural to me, but I don't believe detail is necessarily incorrect.  Can someone elaborate/confirm? Thanks!


\printglossaries is not generating anything for me

I'm using the glossaries package with MikTeX 2.9 (using TeXnicCenter as my editor) and my document is setup as follows:  \documentclass[ebook,11pt,openany]{memoir} \usepackage{color} \usepackage{graphicx}  \usepackage[toc]{glossaries} \usepackage{float} \usepackage[scaled]{berasans} \usepackage[T1]{fontenc} \usepackage{type1cm} \usepackage{eso-pic} \usepackage{mystyle}  \author{...}  \title{...}  \makeatletter   \AddToShipoutPicture{     \setlength{\@tempdimb}{.5\paperwidth}     \setlength{\@tempdimc}{.5\paperheight}     \setlength{\unitlength}{1pt}     \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){       \makebox(0,0){\rotatebox{55}{\textcolor[gray]{0.85}         {\fontsize{5cm}{5cm}\selectfont{DRAFT}}}}     }   } \makeatother  \setcounter{tocdepth}{2} \makeglossaries \include{glossary}  \begin{document} \maketitle  \frontmatter \include{dedication} \tableofcontents  \mainmatter \include{introduction} \include{chaptr1} ... \backmatter  \printglossaries  \end{document}   Unfortunately, when I generate my document my PDF doesn't contain a glossary at all.  Here's a quick snippet from my glossary file:  \newglossaryentry{entry} {   name={entry},   description={my entry description.} }   I'm also referencing the glossary entry from my chaptr1.tex file, which is included above, using the \gls{entry} command.  I'm not seeing any errors in my build output, so I'm not sure what's going on.  Any help would be appreciated.


Is there a way to create a deb package that installs only on certain distros?

We have a certain set of supported OSs. And within that - for debian/ubuntu, we support only wheezy and trusty. Is there anything within the packaging that can control this? That is, the .deb file install will just gracefully fail if not wheezy or trusty. Otherwise, the install should proceed.


Can the lightning be captured and used as power source?

I would like to update my knowledge in this area, that is really out-of-dated and stopped somewhere like ten years ago.  I asked the very same question on my physics lecture at my studies and got the answer, that although some tests and experiments were made (by French scientists?), there is no material, either natural or man-made, that would suffer direct lightning hit and therefore could be used to "capture" and store energy from lightning, for future use or processing of any kind.  Can someone tell me, how does it looks now? Has anything changed during last ten years in this area?


How to show this is subfield for the given field.

Let the $F$ be the finite field over $\mathbb{Z_2} s.t. [F;Z_2]= 60$  $[F;K_1] = 5,[F; K_2] = 10$. Show $K_2 \subset K_1$    My attempt)  By the tower rule, $[K_1 ; \mathbb Z_2] = 5$ and $[K_2; \mathbb Z_2] = 6$  Then $[K_1 \cap K_2]$ $\vert gcd(6,12)$. Hence $[K_1 \cap K_2] \in \{1,2,3,6\}$  So all I have to just show the $[K_2 ; K_1 \cap K_2]= 1 $ by proving the $[K_1 \cap K_2 ; Z_2] = 6$.  But I couldn't find any way to show $[K_1 \cap K_2 ; Z_2] = 6$. Any help would be appreciated.


Error with make test installing apr-util

I am trying to install apr-util so I can install .  I could not run make because it didn't find some xml files. I installed the libexpat1-dev and the make ran without problems.  Today with make test I have the following errors:  ../.libs/libaprutil-1.so: undefined reference to `XML_GetErrorCode' ../.libs/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler' ../.libs/libaprutil-1.so: undefined reference to `XML_ParserCreate' ../.libs/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler' ../.libs/libaprutil-1.so: undefined reference to `XML_ParserFree' ../.libs/libaprutil-1.so: undefined reference to `XML_SetUserData' ../.libs/libaprutil-1.so: undefined reference to `XML_StopParser' ../.libs/libaprutil-1.so: undefined reference to `XML_Parse' ../.libs/libaprutil-1.so: undefined reference to `XML_ErrorString' ../.libs/libaprutil-1.so: undefined reference to `XML_SetElementHandler'   What do I do?


how to tackle Matlab error in calculation of exp?

I have to calculate the angle of complex summations like  (exp(1i*0)+exp(1i*2*pi/3)+exp(1i*-2*pi/3))   which is equal to  (exp(1i*0)+exp(1i*2*pi/3)+exp(1i*4*pi/3))   but the results are different! because of the precision of exp matlab function.  ans =     4.4409e-16   ans =    -2.2204e-16 + 2.2204e-16i   the angle of the first one is zero but the second one result $3\pi/4$ which is wrong!


How to convert a String ("95941634.164") to a float

When I tyr to convert a String "95941634.164" to a float and print the same, it is printing as 9.5941632E7 but not as 95941634.164.  I tried following conversion methods Float.parseFloat() and Float.valueOf()  public static void main(String args[]) {     String s = "95941634.164" ;     Float f  = Float.valueOf(s);     System.out.println(f);     System.out.println(Float.parseFloat("95941634.164")); }   Actual: 9.5941632E7 expected 95941634.164


I am not able to achieve the desired result for this swap function below, where I want the values printed as 3,2   function swap(x,y){  var t = x;  x = y;  y = t; }  console.log(swap(2,3));   Any clue will be appreciated !


Weird look when taking picture of a screen

So here's my issue. I take quite a few pictures of my screen with my phone (Nexus 5). And I'm on an iMac. So here's what it looks like when I take a picture of my screen.    As you can see there's a rainbow looking effect on the left side. And overall the picture looks distorted. Here's my question. Is there a reason why this is happening? And how can I prevent it? I'm sorry if this has been answered else where, I just don't know what to search for. Thanks in advance.


Ubuntu CD Installation Stuck on Purple Loading Screen

I burnt Ubuntu 12.04 to a CD since that was the max it could hold. I've used the disc four times before, therefore it's not invalid.


Is it possible to run the Windows 10 Command prompt on Windows 7?

I'm running a Windows 7 Machine and wish to use it with my Windows 10 Batch file, however the colored text it uses does not support the Windows 7 Console (see  ). Is there any way I can run the Windows 10 CMD on Windows 7?


I know that I can globally swap the Control and Command in Mac OS and this is not what I need. What I would like to do is keep both buttons as they are and only and make Ctrl+C, Ctrl+V, and Ctrl-X work as if they were pressed with the Command button. What is the easiest way to do this?


Let $E_n$ be $$E_n:=\{f\in C[0,1]\mid \text{exist } x_f\in[0,1] \text{ such that } |f(x)-f(x_f)|\leq n|x-x_f|,\, \forall x\in[0,1]\}.$$  How show that $E_n$ is nowhere dense, that is, $\mathrm{int}\  \overline{E_n} = \emptyset$?  Can someone help me?


I have a 32 GB Lexar microSD which had been working perfectly for the past 3 months on my phone. But recently I noticed I am unable to write new files to the SD Card. I tried to format it from my computer and got a message box saying:  "The disk is write protected"    I am quite sure that my microSD card adapter is not locked, and I do not remember doing anything which could have caused this. I tried changing the file permissions and even tried messing around with the registry. But nothing helped.  Is there any other way I could get the writing permissions back on my microSD? Because without writing permissions the SD Card is quite useless, and buying a new 32 GB microSD would be an expensive solution.  Any help will be appreciated.


Prove: Let 𝑥 ∈ ℤ and a, b be distinct primes. Then a|𝑥 and b|𝑥 if and only if ab|𝑥.

Consider the following theorem: For every prime $p$ and all integers $a$, $b$, if $p\mid ab$, then $p\mid a$ or $p \mid b$. Use it to prove the following proposition: Prove: Let $x\in \mathbb{Z}$ and $w$, $y$ be distinct primes. Then $w\mid x$ and $y\mid x$ if and only if $wy\mid x$. I am confused even as to what this is asking, from my understanding is it like the $p\mid ab$ but reversed? How would this then be proven?


How many valid paths are there?(counting problem)

Consider a rectangle whose length is m and whose height is n. A path from bottom left corner to top right corner is called valid, if in each step, it either goes one unit to the right or one unit upwards. if m = 5 and n = 3, how many valid paths are there?  This rectangle is basically a table with 15 cells(3 vertical x 5 horizontal). I need to find the total number of paths that I can take from bottom left corner to top right corner. I get the answer 16 paths. Can anyone verify this?


I'm using RestAPI to delete item from list. But I dont want to permanently delete it. I want to send it to Recycle Bin. Is there possible with using RestAPI?


How to find width of dynamically created li

Initially have 5 buttons in div, and i have a code to create buttons dynamically see the code below..  My main question is after adding some more buttons. I have top and down arrow buttons to scroll the div.  I want to scroll one button or (set of buttons) on each click.  On each click now i am getting some portion of the button.  How can i get full button on each click with out considering how much width that dynamically created button have   This is my Html code snippet

Home

about

services

contact

contact

services

   My function to create dynamic button.....  function createButton() {   var ul = document.getElementById("navbar-buttons");   var li = document.createElement("li");   var link = document.createElement("a");   var name = document.getElementById("recipient-name").value;   link.setAttribute("href", name);   link.setAttribute("data-toggle", "tab");   var textName = document.createTextNode(name);   link.appendChild(textName);   li.appendChild(link);   ul.appendChild(li);   // $(li).insertBefore("#lastIcon"); }   This is how i tried to scroll the button onclick ..  var test = 0; function scrollToLeft() {   test = document.querySelector("li").offsetWidth;   console.log(test)   document.getElementById('nav-id-scroll').scrollLeft += test; }  function scrollToRight() {   document.getElementById('nav-id-scroll').scrollLeft -= test; }


How can I take browser screenshots at a higher resolution than my browser supports?

I need to take a screenshot of a website as it would appear on a very high resolution monitor... say 4000x3000 pixels. My laptop's screen has a native resolution of 1400x768. Basically, I need to simulate having a monitor resolution much higher than my monitor and video card actually supports.  I want the screenshot of the site to look pretty much how it does when you hit CTRL MINUS (zoom out) in Firefox repeatedly, but without any loss of pixels due to scaling. How can I do this? Is there some way to use virtual machine software to simulate a super-high-res display? If not, is there some way to open a browser window bigger than the screen, and then capture its contents as a PNG somehow? Anything else that might work?


Nvidia driver for Dell Inspiron 14r 5420

I install the Ubuntu 15.04 on my notebook Dell Inspiron 14r 5420, which have 2 GPU using the Intel® Ivybridge Mobile technology.  How I install the driver for the Nvidia GPU? The GPU on this notebook is the GeForce 630M.


Get top results for each group (in Oracle)

How would I be able to get N results for several groups in an oracle query.  For example, given the following table:  |--------+------------+------------| | emp_id | name       | occupation | |--------+------------+------------| |      1 | John Smith | Accountant | |      2 | Jane Doe   | Engineer   | |      3 | Jack Black | Funnyman   | |--------+------------+------------|   There are many more rows with more occupations.  I would like to get three employees (lets say) from each occupation.  Is there a way to do this without using a subquery?


Why this Plier is advertised with conductive handle?

See the product   Ok, I cannot think why I would want the handle to be conductive. What is the deal?


Proof $\frac{1}{2}+\frac{1}{3}+....\frac{1}{n}$ is not an integer for integer $n>1$

I found a way to prove this using Chebychev's theorem, are there ways to solve it without relying on this?


Hot Network Question is macabre. What are the standards for Hot Network Questions?

Not sure how I report/flag a "hot network question" or even if I have the reputation to.  However, the "" question is on the "Hot Network Questions" sidebar.  However, the discussion of animal abuse in the question is somewhat macabre.  Does this qualify to be removed from Hot Network Questions?  I can't remember how to report items in the sidebar.


Book series - Boy finds gem and is transported to a fantasy world

I read this book a few years ago which was part of a series, but I only found the first book and now I've forgotten the name.  The first book featured 3 children/teens from different places that end up on a quest to search for magic gems/stones together and the story takes place in a medieval kind fantasy world. One is a girl, while the other 2 are boys. One of the boys actually finds a stone/gem while he is on a school field trip (I think the gem/stone is red in colour), and when he picks it up, he gets transported to the fantasy land but ends up in some sort of military training ground/camp somewhere in a desert type area.  He isn't familiar with the fantasy world. The other 2 characters each start out on their own on a quest to collect some magical gems/stones which once collected, can be used to fight an evil ruler (I guess).  But halfway through the book, the girl and boy meet up and continue the quest together while the third boy(transported one) doesn't know that the stone he picked up is actually one of the magical stones others are looking for.  A few other details I remember:   The stone the boy finds is red in colour I think  The cover of the book had a border depicting the stones  It's part of a series or trilogy    Some books with similar storylines, but not the one I'm looking for:     Deltora Quest The Seven Towers Sword of Heaven series Westeria series Diadem series


$ x \ge 0\text{ and } y \ge 0 \implies \frac{x+y}{2} \ge \sqrt{xy} $

The above applies $\forall x,y \in \mathbb{R}$  I've tried: $x + y \ge 0$  $$x + y \ge x$$  $$ (x + y)^2 \ge 2xy$$  $$\frac{(x + y)^2}{2} \ge xy$$  But the closest I get is $\dfrac{x+y}{\sqrt{2}} \ge \sqrt{xy}$  Any ideas?


KML to Shapefile using GDAL (LIBKML) - MultiGeometry data not transforming

I am trying to convert a KML file to Shapefile using GDAL (ogr2ogr). Regular KML files convert fine but KML files containing MultiGeometry features (eg: Geometry containing both Point and Polygon) do not get transformed.   The output is simply a blank shapefile containing no shapes or attributes.  I have tried this command:  ogr2ogr -overwrite -f "ESRI Shapefile" -where OGR_GEOMETRY='MultiGeometry' <ouputfolder> <input kml>   For an example, KML file which has MultiGeometry, you can see the us_states.kml hosted by Google.    Other info: I am using 'GDAL 1.10.1, released 2013/08/26' for windows.


Norm of Riemann Curvature tensor and the Ricci tensor

What does it mean the squared norm $\|R\|^2$ of the Riemann curvature tensor or the squared norm $\|\operatorname{Ric}\|^2$ of the Ricci curvature tensor. Though the squared norm of a vector or a matrix is a clear concept to me. I met these tensors in the book of "Marcel Berger" entitled "A panoramic view of Riemannian geometry" at the page 422 Eq (9.23).


Is there any word/term for when we not only don't know something but don't even think about it?

Sometimes we don't know something but we know that we don't know it.      I don't know what is his intention, whether he intends good or bad. I should find out.   But sometimes we even don't know that we don't know. We are just empty-minded about the matter. We are behind the point where we start to consider it.     She ... on his intention. She is totally ... about it. Or maybe there are other ways to say that.   What is the word/term?


I need a line break in one of the column headers. I tried using the suggestions from the earlier posts but since the column header is an equation, I couldn't use them. I need the line break in the column header of 4th column as given below :-    The code i have written is :   \begin {table}[h]  \begin{center}  \begin{tabular}{|l|l|l|l|}  \hline  $i$ & $Degree \phi_i$ & $\cos(\phi_i)$ & Product of $\cos(\phi_i)\par K=\prod K_i=\prod\cos(\phi_i)$ \\  \end{tabular}  \end{center}  \end {table}   Thanks in advance


I am new in automation. Here is my simple TestNG login code , when I ran the code as TestNG it appears java.lang.NullPointerException and by double clicking it highlights the place where I navigate to the URL. here is my code.  enter code here package Day5pkg;  import java.util.concurrent.TimeUnit;  import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  public class Day5 {     public WebDriver driver; @BeforeTest       public void beforeTest() {           System.setProperty("webdriver.firefox.driver","C:\\Users\\Nabila\\Downloads\\geckodriver-v0.26.0-win64\\geckodriver.exe");            FirefoxOptions options = new FirefoxOptions();             driver.navigate().to("http://www.demo.guru99.com/V4/");             driver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);             options.addArguments("test-type");             options.addArguments("start-maximized");             options.addArguments("--js-flags=--expose-gc");               options.addArguments("--enable-precise-memory-info");              options.addArguments("--disable-popup-blocking");             options.addArguments("--disable-default-apps");             options.addArguments("test-type=browser");             options.addArguments("disable-infobars");        }   @Test  (priority = 0)     public void login(){       driver = new FirefoxDriver();           driver.findElement(By.name("uid")).sendKeys("mngr231");          driver.findElement(By.name("password")).click();          driver.findElement(By.name("password")).sendKeys("ehyjusu");          driver.findElement(By.name("btnLogin")).click();             System.out.println("Manger Id : mngr230");       }


Camera not working in a Game Maker mod I am creating

I wrote an object, in Game Maker. My problem is that the camera appears to be nonexistent. It does not follow the player, and from the perspective it displays on the screen,  I believe I simply do not have a camera.    This is my Step event:  right = keyboard_check(vk_right); left = keyboard_check(vk_left); forward = keyboard_check(vk_up); back = keyboard_check(vk_down);  if (jump==0 && keyboard_check(vk_space)) {     sound_play(snd_jump);     x += 3 * unitZ_x;     y += 3 * unitZ_y;     z += 3 * unitZ_z;     jump = 1;     canjump = 4; }  canjump -= 0.5; x += unitZ_x * canjump; y += unitZ_y * canjump; z += unitZ_z * canjump;  if (canjump < -8) {     canjump = -8;     falling = 1; }  currentRadius = sqrt((x - centerX) * (x - centerX)          + (y - centerY) * (y - centerY) + (z - centerZ) * (z - centerZ));  if (currentRadius < radius) {     x -= (currentRadius - radius) * unitZ_x;     y -= (currentRadius - radius) * unitZ_y;     z -= (currentRadius - radius) * unitZ_z;     currentRadius = sqrt((x - centerX) * (x - centerX)             + (y - centerY) * (y - centerY) + (z - centerZ) * (z - centerZ));     jump = 0;     falling = 0;     canjump = 0; }  if ((right==1) || (left==1)) {     x += (right - left) * 4 * unitX_x;     y += (right - left) * 4 * unitX_y;     z += (right - left) * 4 * unitX_z;      distance = sqrt((x - centerX) * (x - centerX)              + (y - centerY) * (y - centerY) + (z - centerZ) * (z - centerZ));      unitZ_x = (x-centerX) / distance;     unitZ_y = (y-centerY) / distance;     unitZ_z = (z-centerZ) / distance;      x -= (distance - currentRadius) * unitZ_x;     y -= (distance - currentRadius) * unitZ_y;     z -= (distance - currentRadius) * unitZ_z;      unitX_x = unitY_y * unitZ_z - unitY_z * unitZ_y;     unitX_y = unitY_z * unitZ_x - unitY_x * unitZ_z;     unitX_z = unitY_x * unitZ_y - unitY_y * unitZ_x; }  currentRadius = sqrt((x - centerX) * (x - centerX)          + (y - centerY) * (y - centerY) + (z - centerZ) * (z - centerZ));  if ((forward==1) || (back==1)) {     x += (forward - back)*4*unitY_x;     y += (forward - back)*4*unitY_y;     z += (forward - back)*4*unitY_z;      distance = sqrt((x - centerX) * (x - centerX)              + (y - centerY) * (y - centerY) + (z - centerZ) * (z - centerZ));      unitZ_x = (x - centerX) / distance;     unitZ_y = (y - centerY) / distance;     unitZ_z = (z - centerZ) / distance;       x -= (distance - currentRadius) * unitZ_x;     y -= (distance - currentRadius) * unitZ_y;     z -= (distance - currentRadius) * unitZ_z;      unitY_x = unitZ_y * unitX_z - unitZ_z * unitX_y;     unitY_y = unitZ_z * unitX_x - unitZ_x * unitX_z;     unitY_z = unitZ_x * unitX_y - unitZ_y * unitX_x; }     This is my Draw event:    d3d_draw_ellipsoid(x - 1, y - 1, z - 1, x + 1, y + 1, z + 1, 0, 1, 1, 60);   d3d_set_projection_perspective(0, 0, 640, 480, 0);   d3d_set_projection(x - 4 * unitY_x, y - 4 * unitY_y, z - 4 * unitY_z, unitY_x,           unitY_y, unitY_z, unitZ_x, unitZ_y, unitZ_z);     Does anyone know what I have done wrong? I think it is a simple 3D camera glitch, but I have never made a camera before (in anything for that matter) so chances are it is something really basic.


I apologize if this has been asked many times before but I just cannot find where to adjust the font size in the app (ver. 1.0.95). It would be very surprising if such feature were simply not available but I can't find it for the life of me.  Upd.: Hmm, found other similar requests. Indeed, the feature seems to be not there. it is highly desireable, on an 8'' Tablet the font is very small.


Need to install Windows over Ubuntu without booting from USB/CD

Sometime back I installed Ubuntu on my desktop, not knowing that I was creating problems for the future. Now I want to re-install windows completely instead of Ubuntu, but my computer is not booting from USB or a CD, and I can't use the windows installer since i do not have a partition that is required by the windows installer. What should I do?


Can we call a person who loses things a "loser"?

Think > Thinker     Draw > Drawer   Can we call a person who loses thing a loser? Of course, I do not mean that they are not successful or failed but what should I call them?


Give me an example of a topological manifold which is not a smooth manifold.

I was just wondering whether someone could give me an example of a topological manifold which is not a smooth manifold. In particular, I want an example of a topological manifold where no differentiable structure could be given.  I have thought a lot but in vain. If someone could put some light it would be of great help.


I'm using the nomecl package for explaining symbols. However, manual hyphenation rules   like Kontrast/Rausch"=Verhältnis for long german words in the description are not working. See the following example:  \nomenclature[e187]{$\mathbf{w}$}{Gewichtungsvektor blabla blabla blabla mit maximalem Kontrast/Rausch"=Verhältnis}`   gives     where the "= is not interpreted.


I restored to default in the BIOS, now I can't install Ubuntu

I wiped my entire system through the BIOS by restoring to default and now I want to install ubuntu on my laptop (64-bit Asus Zenbook). There's nothing on it, when I turn it on it automatically goes to the BIOS.   This is a completely new laptop and I actually installed ubuntu 12.04 on it before the reformatting, with the same bootable usb I'm using now. The laptop has a 24 GB SSD and a 500 GB HDD, it came with Win8 on the SSD and I didn't want Win on it, that's why I reformatted it. I can see both drives in the BIOS. When I installed 12.04 the first time, I placed it on the HDD. I'd like to put 12.04 on the SSD. The SATA is set to ACHI, so that should be ok.  I have a bootable USB with 12.04 and the laptop correctly shows the start menu where I can choose between trying ubuntu, installing ubuntu or checking the desk. No matter what option I pick, the screen just goes to black and nothing happens (I've waited more than 10 minutes).   What I can see is this   Any ideas? Do I need to install something before I can install ubuntu?  Thank you.   Info about the laptop: ASUS ZENBOOK UX32A R3013H Intel® Core™ i5 3317U Processor, Integrated Intel® HD Graphics 4000, 500GB HDD With 24 GB SSD


How to make a blank page in Google Chrome at start-up?

Does Google Chrome has anything similar to about:blank page in IE and Firefox? I did not find any suitable page mentioning this? PS: I tried about:blank but it looked like Chrome is trying to load something before showing blank page...


Ubuntu boots to tty instead of desktop after upgrade to 18.10

Today I upgraded from Ubuntu 18.04 to Ubuntu 18.10 and something strange happened.   When I fire up the laptop it automatically enters the tty1 interface. Then I need to enter a command to go to graphical interface. This also happened once on 18.04 but then I pressed Ctrl+Alt+f7 and everything was fine, but it doesn't seem to fix it now.   Any idea why is this happening? I tried some thing from the internet and still the same.   Drivers are same as the one I had on 18.04 and everything is updated but I guess that is not a problem since I can enter graphical interface with a command from tty1. I want it to go directly to graphical interface.  I already tried  sudo systemctl set-default graphical.target   but it's still the same after reboot  This command  sudo systemctl start gdm3.service   starts the graphical interface but only after I type it... it is going back to tty1 again after reboot.


Current has both magnitude and direction. As per the definition of vector , current should be a vector quantity. But, we know that current is a scalar quantity. What is the reason behind it?


What is the name of the measurement along a 4th dimensional axis?

Given that measurement along the X, Y and Z axes correspond to the terms "width", "height", and "depth", is there an accepted term for spatial measurement along the W axis when dealing in four dimensions?  For that matter, are there such terms for additional dimensional axes?


I have seen similar questions and read the responses but did not understand any of the answers even after reading them several times closely, including   I am adding XY data to an existing ArcMap document (ArcGIS Desktop 10.4). The existing feature class that I want to add the points on top of has a coordinate system of NAD_1983_StatePlane_Florida_East_FIPS_0901_Feet and a projection of Transverse_Mercator.  I added XY data, setting X Field = Longitude and Y Field = Latitude. I allowed the Coordinate System of the Input Coordinates to remain the default, which was Projected Coordinate System NAD_1983_StatePlane_Florida_East_FIPS_0901_Feet and Geographic Coordinate System  GCS_North_American_1983.  The points created by ArcMap are not in the correct location. I know this is a projection issue, but I am not sure how to fix it.  If you direct me to change or define projections, specify exactly which feature classes you mean - my existing feature class or the newly added XY points. I read one answer that said to change the projection of the data frame, but did not say how this is to be accomplished.  OLON         OLAT     -80.19112    26.11602 -80.15004    26.200484 -80.14676553 26.17532654 -80.19112    26.11602 -80.15004    26.200484 -80.20728    26.24123


Why do photo cameras lose focus when you zoom, when movie or TV cameras keep it?

In photo cameras, i.e. (D)SLRs, digital cameras, etc., when you focus on an object and then you zoom (in or out), the object gets out of focus. On the other hand, in movie or TV cameras, the focus is kept across the whole zoom range. It is even the best practice to focus while zoomed in the most so that the focus is the best possible, and then zoom out as needed.  What is the difference in construction of the lenses for photo cameras compared to the movie/TV cameras? Or is this effect achieved in some other way than lens construction?


What's the difference between the structure tag and what comes after the curly brace?

Can someone explain this piece of code for me?  typedef char AirportCode[4];  typedef struct NodeTag{   AirportCode Airport;   struct NodeTag *link; }Node;  Node *L;   This is a snippet of code from my data structures class. This piece of code was implemented to hold data in a linkedlist node. What I'm trying to understand is what the NodeTag, in general, is used for? Is it when you want the structure to hold another iteration, for the lack of a better word, of the struct inside itself? What is the difference between the NodeTag and what you put after the curly brace, in this case "Node"?


I am a Wordpress developer and currently I don't use version control but do keep regular backups before and after altering files of both the database and file system.   I am seriously considering incorporating git into my workflow, not only to try and streamline how I do things but to do things the 'proper' way.   I have been doing a hell of a lot of reading about this and trying to get my head around a complete change in my workflow.   Here is my current configuration: develop site locally using MAMP Pro and manually dump database, upload to VPS using PHPmyadmin and edit the sites urls using queries and then FTP the wp-content folder to my dev. 'staging' sub domain and when everything is approve then repeat the process to the live domain.   I've never had problems with having no backups due to the amount of backups I have but I like to keep up to date although I'm quite far behind in the times now.   The way I've currently planned on doing things now from what I've read is to develop locally, push wp-content to git when finished for the day and pull when going to start working again.   Once I've finished working locally I'll pull the pushed git from my repository which I plan on hosting on my synology nas to my dev. sub domain and then when that's approved do the same to the live domain.   I think that seems correct but please advise if someone can suggest a better way!!  My main queries are, how do I keep the databases up to date? Do I manually dump and import databases and edit the urls using queries or can I streamline this too? I've seen plugins like revisr but haven't seen a great deal on the web about this so just after advise.   I ssh in to my VPS from time to time and have various raspberry pis doing different things so fairly confident with the command line but the whole git thing is a bit daunting.   Any advise will be GREATLY appreciated. I've tried to make everything clear but obviously if anything above doesn't make sense (hopefully it does) then I'll try explain clearer.


Pauli exclusion responsible for "solidity"?

I have heard Frank Close say that the reason you can't put your hand through a solid object is the Pauli exclusion principle. However Richard Feynman in his "Fun to Imagine" series attributes it to electrostatic forces.  I have two questions: Firstly, who is correct here (or maybe both)? Secondly, on a classical scale can the Pauli exclusion principle be interpreted as a force? The reason you can't put your hand through a solid object is because of a normal reaction force. So if the PEP is responsible for this it must be creating a force. I have sometimes seen the singularity at 0 in the Lennard-Jones potential interpreted as due to the PEP.  EDIT: I understand that the PEP is not a "fundamental force" carried by force-carrying particles. But it seems to clearly manifest as a force on a classical scale.


How to get rid of space in a string in python?

I am trying to take a string in a list of strings and remove all the white space while separating non-space with a comma. For example I have the string:  '        XX       XX          X   XXXXXX   XX               XXXXXXX    XXXXX'   and need to return it as ['XX', 'XX', 'X', 'XXXXXX', 'XX', 'XXXXXXX', 'XXXXX']. Any suggestions?   Note: The amount of space between each segment varies.


Why do I just get a grey screen when rendering?

I just started using Blender yesterday following Blender Guru's tutorials! Sadly, I can't seem to figure out why a grey screen keeps coming out when I press "Render Image" for Blender Render. Has anyone faced this issue before?


Is putting advertisement in user profile allowed?

I just came up with the idea to put some kind of an advertisement (although I am not getting paid for it) in my profile.   Is it allowed?   If not, I will remove it.


How to replace a line with special characters of a file with Linux Bash instructions?

I am trying to modify the line of a phpmyadmin configuration file, precisely, the file /etc/phpmyadmin/config.inc.php, in the line on the database server, where I need to change it with a bash instruction. I tried to do it with the sed and awk commands, but I still have no results.  The line that I want to modify is the following:  $cfg['Servers'][$i]['host'] = $dbserver;   For the following value:  $cfg['Servers'][$i]['host'] = '192.168.0.10';