im a single traveller going to NYC for an adventure and  landing at JFK in three weeks. Im a complete novice and have no idea what to expect when I land, what do I do first? what security do I have to go through, in what order. Plus, on return from JFK to UK  is three hours enough time to clear all security and what is the protocol for returning. Im so very anxious about this and really worried and would appreciate some guidance from any regular traveller, who does this regularly.

I'm a single traveller going to JFK for my 70th Birthday. I'm very anxious. I have baggage to collect. I have no idea what to do after landing.    What happens and where do I go first, will I be told?


Let $\mathbf{a_n = (1-\frac{1}{\sqrt2})...(1-\frac{1}{\sqrt{n+1}})}$, $n \ge 1$. Does $\lim_{n\to \infty} a_n$ exist? If so, what is it's value?

Let $$a_n=\left(1-\dfrac{1}{\sqrt2}\right)\dots \left(1-\dfrac{1}{\sqrt{n+1}}\right),n\ge1$$ Then find $\lim_{n\to \infty} a_n$.   How can I proceed? I am stuck at the first step. Please help.


I already figured out that on Linux I can list network devices  (cd /proc/net/dev_snmp6/ && for device in *; do echo $device; done|sort)   but how can I get the ipv4 address of the device?  I do not have ifconfig/ip installed - and I'd like to keep it this way.

How can I get my own IP address and save it to a variable in a shell script?


Every week I tend to have 2-4 pages scheduled though I need to get them added to my menu as well.  The "Add New Top Level Pages to Menu" option won't work in my case though as the pages in question aren't top level. In odd cases they're subpages of subpages.  Does anyone know of any way to schedule pages to add to a menu with or without a plugin? I would try and code one in but it's a little too complicated for me.  I posted this exact question on the WordPress support forum and it's gone unanswered for too long, hoping for some answers here.  Thanks.  EDIT: Side question, is there a way to schedule an edit?

I have built a custom menu in Wordpress that contains links to posts and pages. I am adding it to my header using this line of code:  <?php   wp_nav_menu(     array(         'theme_location' => 'primary',          'depth'          => 0,          'menu_class'     => 'nav-menu',     )  );  ?>   My problem is, if I add a child page to the top level ones on the menu, they don't automatically appear as sublinks on the nav. I know I can create them manually each time by rebuilding the menu, but I would like to be able to just add a child page in the pages section and have it show up in the nav without having to go to the menu and build it there also, if that makes sense?  I've tried using depth => 0, but that didn't work. Is there a way to have child pages show up without having to build it into the custom menu?


I have a global variable that I am passing into a function. The function should feed/generate some values to that variable. So far, I tried: var final_transcript = ""; function test1(x) {   recognition.onresult = function(event) {     x += event.results.transcript;   } }  StartButton.addEventListener("click", () => {   test1(final_transcript); })  EndButton.addEventListener("click", () => {   console.log(final_transcript); })  In this case, assuming StartButton is clicked before EndButton. So the StartButton initiate the function that feeds in strings that add into the global variable final_transcript. when EndButton is clicked, the variable final_transcript should contain all the strings fed in. But the value of final_transcript is still empty according to the console log. EDIT: recognition.onresult transcript the user's voice into text. It is a real-time event. The reason why I am doing this is that the function test1 cannot detect an end event. Only EndButton.addEventListener does, and I cannot add it in test1 function.

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


I'm trying to prevent sql injection in my code. so how can i rewrite this code using prepared statement.   This is my first code that work fine but open to sql injection  <?php     if(isset($_SESSION['em'])){      $eml = $_SESSION['em'];     $query = ("select id,fst,las,uid,pass,email,sts,ocp from Users where id !=0");     $res = mysqli_query($conn,$query);      if(mysqli_num_rows($res) > 0){        while($row = mysqli_fetch_assoc($res)){     $_SESSION['ids'] = $row['id'];     echo $row['fst'];     echo $row['ocp'];     echo $row['las'];       }     }     }      ?>   how can i use prepared statement for the same code please

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


I have heard that calling int main(){...} was bad practice and one should rather call the function with its parameters int main(int argc, char* argv[]){...}, I was wondering if this could be generalized to function declarations in headers.  In some situations, one may have to write a function prototype in a header without any parameters on inputs (for some reasons of include troubles let say), and declare the input parameters and their types in the function definition in a distant .c file. Is this likely to cause security issues as one could make use of this absence of informations? Or is the function definition (with input parameters declared) preventing this? I couldn't find any link about this.

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


I make a footer positioned absolute to the bottom

Copy Right www.example.com

  footer, .footer {     position: absolute;     width: 100%;     height:20%;     color: rgba(255,255,255,0.75);     background-color: #24292e; }   The footer works properly if the content is long enough, else the content is short the footer will float far beyond the bottom line  I tried to set position: fixed in which situation the footer follows the mouse to scroll.  How could I fix the footer to bottom but not following the mouse.

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


So I was researching the Book of Vile Darkness. It says in it that it contains the information in which you could become a lich. How would you become one and what happens when you do?

The heading says it all, can a PC be a lich? If so, how? The DMG hints that the Book of Vile Darkness contains the secrets of how; there is nothing official otherwise.


I have Excel VBA macros that have disappeared. They still exist, I just can't use them.  See my previous question "" that got no answer so far.  Do security software programs delete/mess with VBA macros - even if they don't tell you?  I am wondering if McAffee anti-virus software could be involved in my problem?  Thanks in advance for your helpful guiding light.  ADD:  VSRawat is exactly right, I see this as a different question which I posed because there was no conclusive answer received on the first question of 'disappearing' macros.    On this current question, I conclude from the answers that no one is having problems with anti-virus/security software gobbling up VBA macros.  Thus I consider this question closed.  My thanks again to VSRawat.

How it started: Wanted to view Code window and Spreadsheet at same time.  In XL VBEditor, Dragged Code window, Project window, and Properties around on screen to accomplish this.  Pushed a few toggle buttons such as View Code, Show/Hide folders to see what they did.  What occurred: Noticed that all modules still listed in project window, but when click on any one module name, the macro routines were missing on the module.  For the most part, some comments and the code 'Option Explicit' were still visible, but all the macros=subroutines gone.  More confusing:  SOMEtimes if I remove the code line 'Option Explicit', the macros on that particular module reappear.  MOST confusing:  If I find a module that shows one macro #1, I can try to write another macro (#2) on that module.  When I complete macro #2 which has form Sub NewMacroName(), ..., and End Sub,  the second macro #2 is present but the first macro #1 disappears! Remove Sub #2 and Sub #1 reappears  CONCLUSIONS SO FAR: The macros are clearly hidden, not actually gone. If I open the Object Browser, I can see a list of Global Classes (each one is a coding module). If a click on one Global Class, I see a list of  Class Members (each one is a subroutine/macro).    I thought it wouldn't be impossible to work in this configuration, but it will be quite inconvenient.  Getting back to the original configuration would be a blessing.  In reality, either macro routines can't see the personal workbook, or they can't see specific personal macro routines.  Tried to talk with Microsoft about this, but after 30 minutes a service person came back on and said no one is answering today, try again another day.  On a workday, I got back to MSFT.  MSFT wants $499 to even discuss the problem.  Ouch!  Setup:  Windows 10 up to date, HP laptop less 6 months old,  Excel from Office 2019, although many macros/modules written from Excel 2010.  Everything was fine until I started moving window panes around.  Thanks in Advance for your helpful insights.  ADDENDUM:  18March2019:  Gave up on fixing the above problem while I was out of state working on a project.  Hoped that reinstalling Excel 2019 once I got home would clear the problem.  No such luck.  Resolved that I would have to search the internet stem to stern for solutions.    One idea on the internet led me to: Excel: Developer: VBEditor: Tools tab: Macros: all my Macros listed  Decided to arbitrarily pick one macro and hit Edit button. Viola!  ALL of my macros became visible on all of the modules on all of my workbooks.  After less than an hour of replacing very minor code that was missing from personal code, I was back up and running normally.  Clearly clicking on Excel: Developer: VBEditor: Tools tab: Macros: Edit one macro Corrected something!  I figure that at least one expert on this web site recognizes what the problem was and will clue me in - so I don’t do it again!  Again, thanks in advance for your constructive replies!


My current project contains many object with 2K and 4K textures. I don't have problem with RAM during render, but only when I open this scene. It take more than 20GB and it take long time to display. I understand that Blender need load all textures, but is there some method to optimize it? I even don't need see these textures in the viewport. I tried several things:   Viewport textures limit size to 2048 had no effect Change Image Display method had no effect Show object only as viewframe had no effect (object restriction)   It would be nice to have some solution for proxy (low res) textures for viewport and high res textures for render, because I can not use smaller textures during render.  My last option is a make some script to rename folder with textures, so Blender will not find it and show it pink :) And before render repair paths back.

Using a single 6K texture at only 227kb in size, spikes the memory usage to a crazy 144mb of memory in Blender.  It was brought up in , but closed.  Why can image editors (Photoshop/Gimp/Krita) handle such large images but not Blender?  Whats going on, and more importantly, what can be done to improve it?


is there any difference between running over a vector using [], like this:  vector<ClassName*> my_vec(10); int N = 10;  for (int i =0; i<N; i++){    cout<<my_vec[i]; }   or, using iterators, like this:  for(std::vector<ClassName*>::iterator it = my_vec.begin(); it != my_vec.end(); it++) {             cout<< (*it); }   except the fact that we neet to keep an updated variable to hold vector size?

Take the following two lines of code:  for (int i = 0; i < some_vector.size(); i++) {     //do stuff }   And this:  for (some_iterator = some_vector.begin(); some_iterator != some_vector.end();     some_iterator++) {     //do stuff }   I'm told that the second way is preferred. Why exactly is this?


I have $f(x,y)\geq 0$ measurable in $\mathcal{A}\times\mathcal{B}$ where $(X,\mathcal{A})$ and $(Y,\mathcal{B})$ are measurable spaces.  I don't think $g(x)=\sup_{y\in Y}f(x,y)$ is measurable in $\mathcal{A}$ if $g(x)<\infty$ for each $x\in X$.  My thought comes from the fact that one of sufficient conditions to make a supremum in $y\in Y$ be measurable if $Y$ is countable so there is a counterexample if I set $Y$ be uncountable to make $g(x)$ be not measurable.  But I can't not do further. Please help me to construct the counterexample of $g(x)$.

This is an interesting question that has stumped the entirety of my measure theory class, including the professor:  Prove or disprove:  Let $(X,\mathcal A)$, $(Y,\mathcal B)$ be measure spaces.  Let $f$ be an $\mathcal A$ $\times$ $\mathcal B$ measurable nonnegative function, and let $g(x)$ $=$ $sup_{y \in Y}f(x,y)$, with $g(x)<\infty$ for all $x$. Is $g(x)$ necessarily an $\mathcal A$-measurable function?  We all feel the answer is no, given that slices are measurable, and sups of measurable functions are only guaranteed to be measurable over a countable index. We think the correct answer is to start with a nonmeasurable set $S$ in $X$, and to try to build a set $T$ in $Y$ that makes $S \times T$ measurable in $\mathcal A \times \mathcal B$, but we suspect this is quite difficult with no further guidance.   Any ideas?


Originally, I have one table, storing UserID and the corresponding value based on Year, Month, as shown below:    Now, I want to 'merge' the rows according to the Year and Month value and to store them into another table, as shown below:    Note that, M1 means Mth = 1 (January), M2 means Mth = 2 (February), and so on. (The images are meant for description, you may ignore the accuracy of the figure.)  Question, how to do this in SQL Server?

SQL Server 2008 R2  PIVOT IO Stats    I have a script that collects IO stats from sys.dm_io_virtual_file_stats once a day and stocks them in a table.  I want to be able to use these stats to generate graphs.  Using PIVOT I have created columns based on the dates the stats were collected  select 'read io stall',[2012-10-17], [2012-10-18], [2012-10-19], [2012-10-20], [2012-10-21] from (      select io_stall_read_ms, date_snap     from dbo.tbl_io_stats     where database_name = 'mydb'     ) up PIVOT (max(io_stall_read_ms) FOR date_snap IN ([2012-10-17], [2012-10-18], [2012-10-19], [2012-10-20], [2012-10-21])) AS pvt UNION select 'write io stall', [2012-10-17], [2012-10-18], [2012-10-19], [2012-10-20], [2012-10-21] from (      select database_name, io_stall_write_ms, date_snap     from dbo.tbl_io_stats     where database_name = 'mydb'     ) up PIVOT (max(io_stall_write_ms) FOR date_snap IN ([2012-10-17], [2012-10-18], [2012-10-19], [2012-10-20], [2012-10-21])) AS pvt   Resulting table:  Type Stat   2012-10-17  2012-10-18  2012-10-19  2012-10-20  2012-10-21 read io stall   34449971    34499918    34504701    40383037    40852412 write io stall  20948385    20996323    21001665    24130053    24193110   As is, I have to add each new date as an additional column.    Question:  Is it possible to generate the PIVOT column list automatically or is there another way to do what I'm thinking of?    Instead of   FOR date_snap IN ([2012-10-17], [2012-10-18], [2012-10-19], [2012-10-20], [2012-10-21]   Something like:  FOR date_snap IN (SELECT DISTINCT date_snap FROM tbl_io_stats)   Update with RichardTheKiwi's answer  Here is the new working query, thank you RichardTheKiwi  DECLARE @cols AS NVARCHAR(MAX), @query  AS NVARCHAR(MAX);  SET @cols = STUFF((SELECT distinct ',' + QUOTENAME(ios.date_snap)              FROM tbl_io_stats ios             FOR XML PATH(''), TYPE             ).value('.', 'NVARCHAR(MAX)')          ,1,1,'')  set @query = 'SELECT database_name + '' read io stall'', ' + @cols + ' from              (                 select database_name, io_stall_read_ms, date_snap                 from dbo.tbl_io_stats                 where database_name = ''mydb''            ) x             pivot              (                 max(io_stall_read_ms)                 for date_snap in (' + @cols + ')             ) p              union SELECT database_name + '' write io stall'', ' + @cols + ' from              (                 select database_name, io_stall_write_ms, date_snap                 from dbo.tbl_io_stats                 where database_name = ''mydb''            ) x             pivot              (                 max(io_stall_write_ms)                 for date_snap in (' + @cols + ')             ) p '  --print @query execute(@query)


I am going to Uk to play cricket as an Amateur Player from last 2 years. This year also i got my visa. This time after my visa approval, the club inviting me were happy to invite my Wife and kids aged 7 years and other kid 6 months (infant).   I applied their visa on priority as they can travel with me. They never travelled abroad. this is their first international travel.   I Work in Income Tax Department here in India.  we submitted both of us bank statements, It Returns, My pay slips., Recent  LIC payments, My elder daughter Study certificate and thier birth certificates.   Thier visas got refused, Explaining there is a large amount deposited suddenly in recent month, No proof of Accommodation and stuff. No Proof of supporting.   But , We are Genuine.   1)We took loan ammount from our gold and deposited it in my account, Apart from salary. The same account was kept for mine and i got visa.   2)If my account has that large ammount deposit issue, My wife's account is so clear and with good funds.   3) The club inviting us clearly mentioned the details of stay and food with addresses and numbers. They didn't get any call.   4)We stated, they will be returning after 2 months because my daughters school re opens here. We have given study certificate also.   How come a Central Government employee won't return or his wife or kids who are studying here in india.   Its so upset and disappointing after spending time and lot of money for priority. More over after everything planned for a nice trip with family.   Can any one suggest. What best i can do.

I have applied recently for a general visitor visa to the UK to spend 10 days during Christmas with my British unmarried partner and it has been turned down.   The Entry Clearance Officer stated on his refusal notice the following:     I note that you have never previously travelled to the UK or any country with similar immigration requirements and you therefore do not have a history of travel and compliance to consider.      You have submitted an employment letter to confirm your occupation in KSA but I am required to also assess your personal, domestic and economic circumstances in determining whether you are genuine visitor travelling to the UK for the period and purpose you state.      You claim an income of SAR ........ per month which equal ........ GBP and from the evidence submitted this appears to be your sole source of income.   I note that this monthly income is reflected on your bank statements. However, the bank statement you have presented show a recent large deposit that are in excess of your stated income and inconsistent with the account history. You haven't provided evidence toward the origin of this recent deposit and in the absence of reasonable evidence I am not satisfied that these bank statements accurately reflect your personal circumstances.      In view of the above, I am not satisfied you have demonstrated that your circumstances are as you claim and therefore I am not satisfied that you're travelling to the UK for the period and purpose you stated. 41(i)and(ii).   Its true that I have deposited that sum of money right before I apply and it was a commission I received from work earlier this month.   So, could you please give me your advice on the above as I am planning to apply again soon. and how to avoid my application being refused again?


Let's say that there is an X% chance that a character will shoot a target, or some other action. How do I determine if the action should be taken or not (how do I implement the percentage chance)?

I'm struggling with coming up with an elegant solution to generating random events in the game that I'm working on.  Say there are 4 classes of events that can happen, with varying events in those classes that may occur.  So something along the lines of   main_events = {"common event", "not so common event", "somewhat rare event", "rare event"} sub_events[0] = {"common event 1", "common event 2",..} ...   I have a somewhat kludgey solution in place that first just has a random number generated between 0 and 100, and if the number falls within a given range then a main event will be triggered.  Then I'll do another random roll to see which sub event occurs.  Is there a better solution than something along these lines?  Like I mention, it doesn't feel very elegant, and I'd like to make it easily expandable for the addition of future events.


Some examples of what I mean:  From Gmail:   From a video by Cosmin Serban:   From Eurowings in-flight magazine:   Also Eurowings in-flight magazine:   From The Goods by Vox:   Also from Vox:   I have seen designs like this popping up everywhere, but when trying to search for it/tips on how to achieve a similar style, the only label I could find was broadly 'flat design' (or Flat Design 2.0, like in , but which doesn't narrow down on the shapes themselves or the grainy shadows). The style I am looking for specifically includes:   Few colours, but vivid ones, often used abstractly (see the third example: the skin colour is reused on the shoes and roses, and as a detail on the trousers). Also gradients sometimes appear, especially to indicate depth. Grainy/noisy shadows, sometimes looking like a paintbrush stroke (see the details in the fourth example) Disproportionate shapes, usually people with big bodies and small heads (the last example demonstrates this well, although it is not coloured too interestingly). Shapes are (almost) always curved/rounded off: never completely sharp.   I would like to get a name for this style, and I'd be interested in any resources talking about making it yourself. I think it gives off a certain feel that I would really like to replicate, but am unsure how to start, partially because I don't know the name/what to search for.

What's this type of illustration called?


I'm running dangerously low on disk space (about 300mb left of my 16gb capacity) and I need to find out how I could get rid of things I don't need.

I have only one disk in my computer, a 80 GB SSD. It is formatted as a single ext4 partition (no swap), and all the usual folders are installed on it (I keep lots of data on external media, but /home and all the rest is on the SSD).   Today I booted it and I got a message that the drive is full. I opened Disk Usage Analyzer to look at what takes up space. It insists that 67.8 GB of the disk are used, and that / is taking up 36.4 GB. Which leads to the question, where are the missing 30 GB, if not on the file system?!    Just to have a comparison, I added up all the sizes of all readable folders listed in Nautilus as subfolders of / (including the hidden ones). I got 20.9 GB. Trash was unreadable, but I know it has 16.2 GB, so the sum is 36.1 GB, around the same as what Disk Usage Analyzer is reporting. There were some system folders which were unreadable, like proc, but I doubt that they add up to 30 GB - else it wouldn't be possible to install Ubuntu on small disks, and I've seen it run on 2.5 GB. I think they must be the 0.3 GB difference between my calculation and the Disk Usage Analyzer's report.   So I'd like to know, what is eating up these 30 GB and how do I get it to free them?     Edit with answers to CYREX's questions   Booted from Ubuntu 10.10 64-bit live CD (same as my system).  fsck result:   root@ubuntu:~# fsck /dev/sda1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) /dev/sda1: clean, 265956/4890624 files, 18073343/19537408 blocks  Booted from the SSD. Emptied the trash, and the 16 GB from there are now free. The 30 GB are still missing.    I'm not experienced enough to know what counts as weird in a log. Here are my messages log and my syslog since last boot. Maybe you can find something in them:       Here it got really strange. I plugged in an external 500 GB HDD. Disk Usage Analyzer overreported the available space, then showed space missing (76 GB used, but only 24 in folders).      Booted again from the LiveCD, started the Disk Usage Analyzer from it and got the same results as from the installed Ubuntu, within 1-2 GB.   Edit with answer to CodeMonk:  That would have been a nice solution, but the partition is really 80 GB - I mean 74 GB + marketing "error", anyway the whole disk is formatted. It also shows that over 50 GB are used, so where are the 30 GB if not in files and folders?    GParted also reports the correct size of the external HDD.


Suppose that I try to explain $Y$ with $X_1$ and run a simple regression $y_i = \beta_0 + \beta_1x_{1,i}+e_i$. The result is that $\beta_1$ is not significant, so we conclude that $X_1$ does not explain $Y$.  Then I add another independent variable, $X_2$, in the regression. This time, $\beta_1$ is significant but $\beta_2$ is not(!). Is this kind of a situation possible or perhaps have I made a mistake? If it is possible, what is the interpretation? What could explain the observation that $X_1$ alone does not explain $Y$, but with an additional variable $X_2$, $X_1$ becomes meaningful, yet $X_2$ itself is not explaining $Y$?

I have what is probably a simple question, but it is baffling me right now, so I am hoping you can help me out.  I have a least squares regression model, with one independent variable and one dependent variable. The relationship is not significant. Now I add a second independent variable. Now the relationship between the first independent variable and the dependent variable becomes significant.  How does this work? This is probably demonstrating some issue with my understanding, but to me, but I do not see how adding this second independent variable can make the first significant.


Suppose two identical  transverse wave pulses are travelling towards each other on a string where one is inverted with respect to the other. When they meet, destructive interference will occur and the string will be straight for a certain instant of time. Hence, for that instant, it will appear to have no energy. What then happens to the energy carried by the two pulses?

In this picture, the two waves keep moving even after undergoing destructive interference.


I want to exclude posts that only have the Uncategorized category (i.e. category id 1), but if a post is (erroneously) categorised as "Uncategorized" but also has other categories, I want to include it.   Every solution I've found so far excludes all posts with the Uncategorized category, whether they have other categories or not. I've tried:  'category__not_in' => array('1')   and   'cat' => -1   in the query arguments but I'm not getting the results I need. Is there a way around this?

I have two categories   Category1 (ID = 1) Category2 (ID = 2)   I want to display posts Which are in Category2 and in (Category1 + Category2).  If a post is only in Category1 then it should not display.  I have used the following code.  'category__in'     => array(2)   It works but I think it is not the correct way. As if in the future if I add a new category then I will have to add its id here in the code to display the post which also in that new category.  Is there any proper way to exclude only Category1 posts if post in only in Category1?


Let $u=u(x)=x^2+x$, $v=v(x)=x^3+x$ be two elements of $k[x]$, $k$ is a field of characteristic zero.  Is $R=k[x^2+x,x^3+x]$ a UFD?  Remark: It is well-known that $k[x^2,x^3]$ is not a UFD, since $x^2x^2x^2=x^3x^3$ are two different decompositions of $x^6$ to irreducibles. Also see  slightly similar question. I do not know if $R$ is integrally closed (in its field of fractions $F(R)=k(x^2+x,x^3+x)$)? Thank you very much!

Let $f,g \in k[t]$, $k$ is a field of characteristic zero, $\deg(f)=n \geq 2$, $\deg(g)=m \geq 2$.     Is it possible to characterize all such $f$ and $g$ for which $k[f,g]$ is integrally closed in its field of fractions $k(f,g)$?   I do not mind to further assume that $k(f,g)=k(t)$ (but I do not want to assume that $k[f,g]=k[t]$, which makes my question trivial).  Thank you very much!  Edit: (i)  is relevant.  (ii) If also $k(f,g)=k(t)$, then being integrally closed is equivalent to $k[f,g]=k[t]$. Indeed: (a) If $k[f,g]=k[t]$ then $k[f,g]$ is integrally closed (since $k[t]$ is). (b) If $k[f,g]$ is integrally closed then, in particular, since $t \in k(t)=k(f,g)$ (= the field of fractions of $k[f,g]$) and obviously $t$ is integral over $k[f,g]$ (for example, $t$ is a root of $f(T)-f \in k[f,g][T]$) hence $t \in k[f,g]$, so $k[f,g]=k[t]$.  For example: $f(t)=t^2+1$, $g(t)=t^3-4t$. We have, $t= \frac{t(t^2-4)}{t^2+1-5}=\frac{g}{f-5}$, so $k(f,g)=k(t)$. By Abhyankar-Moh-Suzuki theorem, $k[f,g] \neq k[t]$, so $k[f,g]$ is not integrally closed. Similarly, for every $f,g$ such that $k(f,g)=k(t)$ and one of the degrees does not divides the other, then $k[f,g]$ is not integrally closed.  (iii) If also $k(f,g)=k(t)$ and $k$ is algebraically closed, then being integrally closed is equivalent to $H(t)=(f(t),g(t))$ is injective and $H'(t)=(f'(t),g'(t)) \neq (0,0)$ for every $t \in k$. Indeed, $k[f,g]=k[t]$ is equivalent to the new conditions (it is important that $k$ is algebraically closed!!).  Edit: What if we replace $k$ by an integral domain $D$ (which is a $k$-algebra)? See also  question.


Is there an integer solution for $x^x + y^y =z^z?$ Is there an  approach to evaluate that if this question has a Yes or no answer. Computers are useless as figures become so big after few iteration.

Prove that $x^x+y^y=z^z$ doesn't have integer solutions  To be honest, I don't see any way to start this problem, I tried for hours but it's not as easy as I thought.  Any hints?  As you can see in the comments, there is a solution for natural numbers, the problem is when the set is extended to integers solutions.  *This is a problem for a national olympiad in my country, this olympiad usually puts all the solutions but i didn't found a solution for this problem in the page, i don't know why.  Possible answer:  Property:   Be $A,B,C$ $\in \Bbb R$ $\ne 0$ such that $A+B=C$. Then exist $U,V \in {A,B,C}$ such that:  $$2|U| \gt 2|V| \ge |U|$$  Proof: Write $C'=-C$, then $A+B+C'=0$. The numbers $A,B,C \ne 0$ by hypothesis, and they can't be the three of the same sign because then they can't add $0$, so there are two of the numbers $A, B, C'$ that have the same sign and the other has a different sign.  Amplifying the equality $A+B+C'= 0$ $\,$ by $-1$ if its necessary, we can assume that there are two of them (which we will call $X,Y$) that are positive and the third negative (we will call it $-Z$, with $Z\gt 0$). Then we have $Z=X+Y$ with $X,Y,Z \gt 0$ and that $X,Y,Z$ are equal to $|A|, |B| , |C|$ in some order.  WLOG we can assume that $X\le Y$ , then:  $$Z=X+Y\le 2Y \lt 2Y+2X = 2Z$$  Obtaining $2Z \gt 2Y \ge Z$ as we wanted.  Solution: Assume that  $$(1): \; x^x+y^y=z^z$$  has integer solutions $\ne 0$, let $(x,y,z) = (a,b,c)$. According to the property, there exists integers $\ne 0$ $(u,v) \in (a,b,c)$ such that $2|u^u| \gt 2|v^v| \ge |u^u|$. Dividing by 2 and taking $\log$ we see that there are non-zero integers $(u,v)$ such that: $$u\log |u| \gt v\log |v| \ge u\log |u| - \log 2$$ That can be written as: $$(2): \;0 \lt u\log |u| - v\log |v| \le \log 2$$  The inequality (2) says that $u\log|u| \gt 0$ or $v\log|v| \lt 0$, but if $v \log |v| \lt 0$ then: $$u \log |u| - v \log |v| = (-v)\log|-v|\;-\;(-u)\log |-u|$$ with $(-v)\log|-v| \gt 0$, so unless we make a substitution, we can assume that $u \log |u| \gt 0$. In this case, necessarily $u \ge 2$, so   the second inequality of (2) says that: $$v \log |v| \ge u \log |u| - \log 2 \ge 2 \log 2 - \log 2 \gt 0$$  Matching this with the first equality of (2) we get: $$ log 2 \ge u \log |u| - v \log |v| \gt (v+1)\log |v| - v\log|v| = \log|v| \ge \log2$$ a contradiction. Thus $x^x+y^y=z^z$ doesn't have any integers solution.


Im trying to find if the first two letters of a string are "hi". If it does it shold return true, and if not it should return false. I used substring to find the values of the given string, but when the condition comes up true it isn't returning true. I must not be understanding something about Java, which Im new to.   Here is my code:  class Main {     public boolean startHi(String str) {           String str1 = str.substring(0,1);         String str2 = str.substring(1,2);          if(str1=="h" && str2=="i"){             return true;         }         if(str!="hi" || str.length()<=2){             return false;         }         else{             return false;         }     }     public static void main(String[] args) {         System.out.println(new Main().startHi("hi ho"));         System.out.println(new Main().startHi("hi"));         System.out.println(new Main().startHi("howhi"));     } }   The string starts with "hi" and it sees that, but it returns false.

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


My games usually start lagging quite easily when there are a couple hundred of boxes representing possible characters. While games like SimCity or even Anno have hundreds of characters.   I realized that those games don't update everything at every tic, the needs are handled in intervals and it's not a render problem, but all of those tiny creatures have individual path-finding etc. I simply can't understand how they can pull that off for thousands of characters even on old machines. How do they do this?  This question was updated to refer to huge Numbers where individuals don't really count and are simply simulated for immersion and aesthetics.   (Related if referring to individual characters: )    (Different question but maybe related?: )

In Dwarf Fortress you can have hundreds of Dwarves, animals, goblins, etc in game at any one time, each with their own complex AI and pathfinding routines. My question is how does this not produce noticeable slowdown? Does each Dwarf run in its own thread?


I couldn't find something that resembles this but one day I used my stainless steel pan and I think I didn't clean it properly so I woke up to discover these "stains" on it (BKF didn't help scrub them off):    Anyone know what these could be and how to treat it? Not sure if it's even safe to cook in it anymore.

I just bought my first few pot and pans "Calaphon" stainless steel trip-ply  I used my new 10" skillet tonight, and cooked pork chops. I heated the pan first, added olive oil, let it heat, then added chops. After I was done, cleaned it immediately under water, and noticed white cloud looking areas on the bottom of the skillet. They won’t wash or rub off  Do I need to return these? I did buy them for the look as well.


Disclaimer: I am BRAND new to Ubuntu.  A quick background: my laptop hard drive crashed, I bought a new one, didn't want to pay for windows for an old laptop, installed ubuntu, it worked great for a week.   One day I booted up and logged in and got a black screen (no cursor showing as many have). I am able to log into guest just fine. Did my research --appears to be an issue with Nvidia drivers. There are many answers on how to deal with that (though I do not understand them yet).  Finally learned how to open the console/GUI/Ctrl+Alt+F1 (not sure technical name). I am prompted to enter a username and password. I can enter a username, but when I hit enter after entering my username, I am completely unable to enter a password. It will not let me enter a single character into the password, and after a few seconds it says the attempt fails, and loops right back to entering a username.   TL:DR I cannot enter any code to fix the NVidia drivers because I cannot get past my username and password. I know my username and password, but I am not able to enter my password.   I am fine with reinstalling the whole operating system, this computer is completely clean without any personal files, but I am unable to make any changes from the guest login because of lack of administrative permissions.   I am sorry if this is a duplicate, I have searched for a couple weeks and not found a situation exactly like mine, many similar though.

I upgraded from 16.04 to 18.04. When I press Ctrl+Alt+F3 I get the terminal which prompts for the username. When I type my username and press Enter, it doesn't wait for my password (its as if I pressed Enter without entering anything). Even if I enter something, the text shown in plaintext and then it keeps on saying my password is wrong. After few times, the screen is cleared and it prompts for my username again and the same loop goes on.


Where $c = 2^{\aleph_0}$.  I have no idea how to tackle this problem. Any help is greatly appreciated!

The book Theory of Functions of a Real Variable by I. P. Natanson, proves that a denumerable or finite union of pairwise disjoint sets of cardinality $c$ has cardinality $c$.  The proofs given in the book are fairly easy, using the axiom of choice. But then it is left as an exercise a generalization of the above theorems for not necessarily pairwise disjoint sets.  I have searched all over the web, but all the proofs found so far are for pairwise disjoint sets.  The proof given in the book relies on the fact that each set $A_k$ can be matched with a set like $[a_{k-1},a_k)$, with $a_k$ point of a partition of $[0,1]$, such that $\bigcup_{k=1}^{\infty\lor n}A_k=[0,1)$. So it is easy to guess the bijective function, but I can't generalize this proof.  Any help is highly appreciated. Thanks and regards.


Situation: I have 2 computers: Pc_A and Pc_B. I am also using a SSH connection that goes from A to B.   My problem: I have a folder saved on the desktop of Pc_A and I need to copy it to the desktop of Pc_B via terminal. The thing is that once I open the terminal on Pc_A and I connect to Pc_B I'm no longer capable of transferring data from one computer to another...    Question: does anyone have the idea of what should be done in such case?

I ssh-ed into my webhost's directory, and tar-ed the webapp to download. When I try to mv to ~/mydirectory/backups or /home/mydirectory/backups, it defines the "home" as my root on the webhost that I'm ssh'ed into.  How do I mv in ssh to a local drive while still being inside the webhost's system?


I want the java plugin to work in Firefox and so I want to be clear on something. It appears that the default JRE (OpenJDK) that one gets from doing  sudo apt install default-jre   will not work, and so it is useless.  One needs either icedtea-8-plugin:i386 or oracle-java8-installer.  Is this right?  Previous answers to questions about this just say install icedtea, but do not explain why?  I am asking specifically if this is because openjdk cannot be made to work in Firefox.  And I am wondering why in the world that would be?  Strikes me as absolutely crazy.

Apparently, I have OpenJDK 6 JRE (openjdk-6-jre 6b27-1.12.6-1ubuntu0.12.04.2) and 7 JRE (openjdk-7-jre 7u25-2.3.10-1ubuntu0.12.04.2) installed in parallel – I don't know why I have both of them, I can't remember installing any of them manually.  However, the Firefox Java plugin is occasionally reported to be out of date by some websites, and it seems to me that it relies on JRE 6. How can I make Firefox use the newer version? Removing JRE 6 seems like a bad idea; when I attempted to do so in synaptic it appeared to me that a lot of software still relies on the older JRE, since removing it would have removed programs like jedit as well.  Do I mix up stuff? I'm not even sure how the FF plugin interferes with the OpenJDK JRE's.  EDIT:  Having tried even more, the problem persists. Using update-alternatives --config java, I see that the default Java version (with status "manual mode") is already set to Java 7, and java -version returns "1.7.0_25". The file /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so exists, but still Firefox shows the Java 6 plugin when looking at about:plugins.  To sum it up:  How do I make Firefox use the IcedTea plugin belonging to the default Java version?


data = {     json: 'is life' };  anoth = JSON.parse(JSON.stringify(data));  if (data == anoth){     console.log("yes") }else{     console.log("nah") }  console.log(data, anoth)   They are obviously equal but why doesnt it work in the code

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


How to fetch from MySQL database “Hindi” (Indian local language) हिन्दी text in websites    when i fetch data from database it show   ??????????????????????????????????????? ???????????????????????? ?????????????????????????????????????? ??????????????????????????????????????   Referring to this question I have changed my database charset to "utf8_unicode_ci", but Still not working. I have written following code to fetch the data  connection.php page   <?php      $DB_HOST = 'localhost';     $DB_USER = 'xxxxxxxx_usr';     $DB_PASS = 'xxxxxxxxxxxxxxxxx';     $DB_NAME = 'xxxxxxxs_dta';      try{         $DB_con = new PDO("mysql:host={$DB_HOST};dbname={$DB_NAME}",$DB_USER,$DB_PASS);         $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     }     catch(PDOException $e){         echo $e->getMessage();     }   index.php page  <?php include("../header.php"); ?>    <?php      require_once 'connect.php';?> <link href='/Lang/style.css' rel='stylesheet' type='text/css'> <?php    $iddd =$_GET['id']; $d = $browser_t; ?>

        <?php      mysqi_set_charset( $DB_con, 'utf8');     $stmt = $DB_con->prepare('SELECT id, title, post, viewers, author, external FROM getpost  WHERE id =:vid');        $stmt->execute(array(':vid'=>$iddd));     $stmt->execute();      if($stmt->rowCount() > 0)     {         while($row=$stmt->fetch(PDO::FETCH_ASSOC))         {             extract($row);             ?>

<?php echo $row['title']; ?> Tutorials

 <?php echo $row['post']; ?>

<?php echo $row['external']; ?>

Author
<a href="http://www.mrtutorials.net/Author/<?php echo $row['author']; ?>"><?php echo $row['author']; ?>

         <?php         }     }     else          ?>

      <?php include("../footer.php"); ?>

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


In my SQLite database, I got 10 tables which I want to create dump file only from three of them. I tired some of the answers from  :  sqlite> AM.db ".dump 'table1' 'table2' 'table3'"   But I get:     Usage: .dump ?LIKE-PATTERN?   I get the same error trying:  sqlite> .open AM.db  sqlite> .dump 'table1' 'table2' 'table3'   How can I create the dump file only from some tables of my database?  Edit  I also tried the command CL closed the question as duplicate for:  .mode insert <table1> <table2> <table3> .out file.sql  select * from table1; select * from table2; select * from table3;   But it just create a dump with Insert command and not Drop Table If exists or Create commands.

How do I dump the data, and only the data, not the schema, of some SQLite3 tables of a database (not all the tables)? The dump should be in SQL format, as it should be easily re-entered into the database later and should be done from the command line. Something like  sqlite3 db .dump   but without dumping the schema and selecting which tables to dump.


What are the in-universe and out-of-universe meanings behind the names droids are given?   The out-of-universe origin of R2-D2 ("Reel 2 - Dialogue 2") is widely known, but what about in-universe?  There a question about the out-of-universe meaning of C-3PO as @Richard points out, but what about in-universe?  My question is different because I'm looking for a long list of in and out-of-universe info on the many droids of Star Wars.    IG-88 TC-14 C1-1OP 4-LOM R4 8T-88   Etc.   What do they all stand for?

I was noticing that the two famous droids from Star Wars, C-3PO and R2-D2 have a four character alphanumeric name.  Now, these are just two of so many droids out there, but I was wondering, in the Star Wars universe - do all droids have a four character alphanumeric name? If not, does the length or having an alphanumeric name as opposed to purely digits or characters have any significance?


PROOF: Assume $x$ and $y$ are real numbers. Consider the following cases.  CASE 1: assume $x \ge 0$ and $y \ge 0$  CASE 2: assume $x \ge 0$ and $y < 0$  CASE 3: assume $x < 0$ and $y \ge 0$  CASE 4: assume $x < 0$ and $y < 0$  What steps should be taken from here? I assume my cases are correct, I am just having trouble fleshing them out.

I understand intuitively that this is true, but I'm embarrassed to say I'm having a hard time constructing a rigorous proof that $|a+b| \leq |a|+|b|$. Any help would be appreciated :)


my Problem is, as will be shown in the following 2 MWEs, that the custom column names i specified for my glossary, will be overwritten when babel ist loaded. The associated .bib file can be found at the end. How can i prevent this behaviour? I already treid altering the position of the \renewcommand prompts. First without babel loaded: \documentclass[english, a4paper, 11pt, DIV=calc, headsepline, titlepage, bibliography=totocnumbered]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{siunitx} \usepackage[record, abbreviations, symbols, nonumberlist, hyperfirst=false, toc=false, stylemods={longextra}]{glossaries-extra} \glsaddstoragekey{unit}{}{\glsentryunit}  \GlsXtrLoadResources[     src={bibfiles/symbols}, % data in symbols.bib     sort-field={name}, % sort by name field     sort={letter-nocase}, % case-insensitive letter sort     type=symbols, % put these terms in the symbols list     field-aliases={unit=symbol},% convert unit key to symbol     save-locations=false % don't save location lists ] % change column headers: \renewcommand{\entryname}{Symbol} \renewcommand{\symbolname}{Unit} \renewcommand{\glslongextraSymbolAlign}{l}  \begin{document}  \printunsrtglossary[type=symbols, style={long-name-sym-desc}]  \end{document}  The result is exactly how i want it to be:  Now when babel is activated as so: \documentclass[english, a4paper, 11pt, DIV=calc, headsepline, titlepage, bibliography=totocnumbered]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{siunitx} \usepackage[record, abbreviations, symbols, nonumberlist, hyperfirst=false, toc=false, stylemods={longextra}]{glossaries-extra} \glsaddstoragekey{unit}{}{\glsentryunit}  \GlsXtrLoadResources[     src={bibfiles/symbols}, % data in symbols.bib     sort-field={name}, % sort by name field     sort={letter-nocase}, % case-insensitive letter sort     type=symbols, % put these terms in the symbols list     field-aliases={unit=symbol},% convert unit key to symbol     save-locations=false % don't save location lists ] % change column headers: \renewcommand{\entryname}{Symbol} \renewcommand{\symbolname}{Unit} \renewcommand{\glslongextraSymbolAlign}{l}  \begin{document}  \printunsrtglossary[type=symbols, style={long-name-sym-desc}]  \end{document}  i will get the following:  Associated bib file: % Encoding: UTF-8  @symbol{alpha,   unit= {\si{\radian\per\second\squared}},   name = {\ensuremath{\alpha}},   description = {angular acceleration} }  @symbol{x,   unit = {\si{m}},   name = {\ensuremath{x}},   description = {position} }  @symbol{v,   unit = {\si{\metre\per\second}},   name = {\ensuremath{v}},   description = {velocity} }  @symbol{a,   unit = {\si{\metre\per\second\squared}},   name = {\ensuremath{a}},   description = {acceleration} }  @symbol{t,   unit = {\si{s}},   name = {\ensuremath{t}},   description = {time} }  @symbol{F,   unit = {\si{N}},   name = {\ensuremath{F}},   description = {force} }

I tried both redefinitions I found on tex.stackexchange, they have no effect:  \documentclass[11pt,a4paper]{article} \usepackage[UKenglish]{babel} \renewcommand{\abstractname}{Executive Summary} \addto{\captionsenglish}{\renewcommand{\abstractname}{Executive Summary}}  \begin{document} \begin{abstract} This work is an \ldots \end{abstract} \end{document}   Still renders as 'abstract':


I have a question on the use of article "the" in scientific paper. The following is my paragraph that includes my question. ... This process is given by x+ y + z = 1.                                                    (10) It was proved that: (a) the equation (10) has two solutions. (b) Equation (10) has two solutions. (c) equation (10) has two solutions. ... My question is that (a), (b) or (c) is written correctly. More clearly, we use “the” before “equation” or not? I think (a) and (b) are true but many people also used (c). Could you please let me know an explanation for that question. Thanks.

In many scientific papers, the article before the word "Equation" is omitted. Is there any grammar statement behind this? For instance:     "Equation (8) contains various approximations, and we have to check their consistency."


(Just a theoretical question, I don't see a direct practical use)  Is there a way to do something like:  super.super.someMethod()   In Java?  super.someMethod()   exists, why not be able to invoke the super class of a super class?  (of course you can create a method:  protected void someSuperMethod(){     super.someMethod(); }   In the super class and invoke that in the child class having the same effect, but is there a direct way of doing that and, if not, why?)  S.

I read  and thought that would easily be solved (not that it isn't solvable without) if one could write:   @Override public String toString() {     return super.super.toString(); }   I'm not sure if it is useful in many cases, but I wonder why it isn't and if something like this exists in other languages.  What do you guys think?  EDIT: To clarify: yes I know, that's impossible in Java and I don't really miss it. This is nothing I expected to work and was surprised getting a compiler error. I just had the idea and like to discuss it.


Looks like the answer is no but just to double check... Can I boot Windows 7 SP1 x64 from GPT disk (converted with Windows DISKPART) if my system built on BIOS (non EFI motherboard, ASUS P5WDH Deluxe)?

My PC does not support UEFI BIOS, but it has Legacy BIOS. The motherboard is "P5LD2-X1333".  I need to install Windows 8 on the 3TB hard drive with GPT scheme, since as we know, the MBR scheme does not support more than 2TB space. Also, you can not boot OS from a GPT hard drive without UEFI BIOS.  So how can I use the hard drive with 3TB space with OS and without UEFI BIOS?


How can i see when a file was created. I have looked at man page   ls -lc is for last modification of file status  ls -lu for  access time  ls -l  not exactly indicated which time, last changed?  I tried these, but they don't give me time the file was created.

I want to find out the creation date of particular file, not modification date or access date.  I have tried with ls -ltrh and stat filename.


It keeps saying " Using incremental CMS is deprecated and will likely be removed in a future release" after I try starting up minecraft. I tried to delete Java, and that wouldn't work. I tried to download the version of minecraft where you don't need Java, and it STILL wouldn't work. Can someone help me?

I get this warning:     Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release   What does it mean?


I want to buy an iPhone 5S ( Model A1533 ) second-hand originally bought from Verizon. And there are an iPhone SE (A1662) and iPhone 7 (A1660 CDMA).   Can these mobile phones work in the EU and particularly Hungary ?  I am not sure what makes it possible to work and what not. I assume CDMA phones are not compatible with EU networks. But I do not know for sure nor if there are other specs to take in account to ensure compatibility.  I am pretty confused because I do not want to waste my money on something that will not work in the EU.

We are planning to be in New Zealand for 10 months starting in August and currently are under contract with Verizon here in the USA.  I am thinking about suspending my Verizon account and getting local service in New Zealand.   The other option would be to switch to T-Mobile that has global roaming data.  Will our iPhones work in New Zealand?  Data is probably the most important part for us.


I've had many questions on Stackoverflow on how to minimize the output of a cipher - during encryption of course - to the same size as the input. Obviously this is possible for a single block of plaintext, but it gets harder when the plaintext size is larger than one block. Using a stream cipher is possible, but you would need some kind of IV, and some place to store or derive the input data for the IV.  For now I am just looking for answers regarding confidentiality (authentication/integrity may be disregarded). Furthermore, I would like to focus on input that is bit or byte aligned and cannot be compressed. Obviously it would be nice to have obviously distinct results when using a different plaintext, even if it starts or ends with blocks of identical data. The key size should be manageable, say a maximum of 64 bytes.  Currently I presume that the best result can be achieved using a stream cipher and a nonce encoded to the minimum of required bytes. So then the encoded nonce would be the only overhead.  Note that I am very much aware that the solution space may be empty. In that case I very much would like to have this confirmed.

Is there a length-preserving encryption scheme, that preserves the lengths of input sizes such that the length of the input plain text is same as length of the output cipher text ?


If you click on my header (jsfiddle below), a new div will slide down with text in it, and if you click the close button, it will close. My problem is that the header and the close button are not on the same line or there is unwanted or unequal space between the borders and the element(s). (maybe because they do not have the same font size?)  jsfiddle:  Chrome Inspector:     .con {   width: 40%;   color: black;   border: 1px solid black;   transition: ease all 0.2s; }  .con:hover {   border: 1px solid limegreen; }  .header, .close {   display: inline-block;   text-align: center;   cursor: pointer; }  .header {   width: 90%;   color: black;   font-size: 14px;   text-transform: uppercase;   font-family: 'Open Sans'; }  .close {   width: 10%;   color: black;   font-size: 18px;   font-family: 'Open Sans'; }  .close:hover {   color: red; }

HEADER

&times;

     In order to vertically center them i tried:   using flex display, and setting line height, adding margin and padding to equalize the distance setting a specific height to both

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


If I have a file which name starting with single or several minus sign, for example --1 it can't be used as a parameter of many commands. Even if I run  cat --1   instead of file content I get unrecognised option error message:  cat: unrecognized option '--1'   Same effect appears when I type  cat "--1" cat '--1' cat \-\-1   nothing works. Files starting with '-' is not illegal in file system, but it is quite hard to work with them in cli and scripts. OK, in case of cat or grep I can use  cat <--1   and this will work, but  rm --1   won't work either and it is quite hard to substitute this command with something else. Very uncomfortable after all. Is there any universal workaround different from not using such file names?   BTW, if name file is single - and all most of commands will understand it as stdin, wouldn't they?   And it would be hard not to use such file names since I can't rename them all in script using mv command either.

How do you remove a file whose filename begins with a dash (hyphen or minus) -?  I'm ssh'd into a remote OSX server and I have this file in my directory:  tohru:~ $ ls -l total 8 -rw-r--r--    1 me  staff  1352 Aug 18 14:33 --help ...   How in the world can I delete --help from a CLI?  This issue is something that I come across in different forms on occasion, these files are easy to create, but hard to get rid of.  I have tried using backslash  rm \-\-help   I have tried quotes  rm "--help"   How do I prevent the minus (dash or hyphen) character to be interpreted as an option?


I’m not sure how I would go about proving this. Any help would be appreciated.

Form the assumption, we can say $b=ak$ ,$k$ integer, $a=bm$, $m$ integer.  Intuitively, this conjecture makes sense. But I can't make further step.


I get  Sorry, we are no longer accepting questions from this account. See the Help Center to learn more.  on  on Meta.SO. As you can see, I am an active Stackexchange user, mostly on SO. I always try to contribute to the value of all Stackexchange sites. Of course I have read  and  about the automatic ban system. Improving my bad-voted questions on Meta.SO would not really help because downvotes were not because of the quality of the questions but because people were often/mostly disagreeing with my suggestion. I understand that this is automatic and my ban cannot be undone by request. So I want to request that the logic behind the autoban on Meta.SO to be changed because downvotes mostly never mean that the question is bad.

appears to have been question banned because of two unpopular Meta suggestions. (He says so in )  Look at the two contributions that appear to have gotten him banned. Like those of many others, they may not be of perfect quality, but they are not actively harmful to the site, either. As it stands, you can get question blocked on Meta simply for asking questions that aren't popular with the Meta crowd.  Why does the team insist on keeping the question ban active on Meta?  Why can't real problem users be dealt with through manual moderator action? Don't tell me it's a problem of scale; as far as I can see, actually toxic users are very rare on Meta.  People will frequently complain that Meta actively discourages the expression of unpopular viewpoints and suggestions. With the threat of question bans in place, I find those complaints difficult to refute. I hate that.


I have a script that I'm using to perform some iptables changes across servers. In the script I have a sed command to find a string and insert iptables rule before that line.  The problem I'm having is that the file I'm editing is a yaml file and I need to have a ' and ' in the line.  If I remove the ' from what I'm inserting, it works.  $ sed 's/.*output_snat_lo.conf:.*/- -t nat -A PREROUTING -d 192.168.1.1 -j DNAT --to-destination 10.0.0.1\n&/' file.yaml        - '-t nat -A POSTROUTING -s 192.168.1.25/32 -d 10.0.0.1 -j SNAT --to-source 172.1.1.1'      - -t nat -A PREROUTING -d 192.168.1.1 -j DNAT --to-destination 10.0.0.1   output_snat_lo.conf:   However, if I try to escape it with slashes or putting it within double quotes, double quotes with slashes I can't get the ' to print but rather give send invalid flag options.  This is what I'm trying to insert.  - '-t nat -A PREROUTING -d 192.168.1.1 -j DNAT --to-destination 10.0.0.1'\n&/' file.yaml   Any suggestions/tricks? I feel like I've done this in the past but can't recall how.

How can I write this with an AIX script correctly?  My requirement is to write this command in test.txt:  clock=$(prtconf -s | awk '{print $4,$5}')   I tried this command:  print 'clock=$(prtconf -s | awk '{print $4,$5}')' > test.txt   Output written in test.txt gives me:  clock=$(prtconf -s | awk {print ,})   If I use " " quotes:  print "clock=$(prtconf -s | awk '{print $4,$5}')"   It gives me directly to:  clock=3612 MHz   How can I solve this?


I wanted to use ubuntu as my OS but Indiabulls trading platform is not supporting for on line trading. Alternatively I was told that "wine" will be helpfull. Does this mean that I need to have both windows OS and UBUNTU? actually what that means?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I submitted a manuscript to a journal about two months ago, its status was remains "manuscript submitted" until yesterday. In fact I saw no changes from the beginning to now and every process just happened in one day. I mean in yesterday it became "with editor" and soon after that "Decision in Process". It seems to me it will be rejected. But the strange thing for me that why it was not "with editor" from the beginning?

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


Given a sphere with radius 30cm and there is a hole of radius 3cm.  How can I complete the question in a cylindrical coordinate?  My attempt:  $Surface Area=\int{\int_D{\sqrt{f_x^2+f_y^2+1}}} dA$  I don't know how to find out the area.

A hole of radius r is bored through the center of a sphere of radius $R > r$. Find the volume of the remaining portion of the sphere.    I'm not sure on how to approach this problem. What is the most difficult part is knowing how to set up the bounds of integration. Mainly, how does one set up the bounds either when regarding cylindrical shells or washers? How do we exactly arrive at this (is it the points in which we do the sum of the tiny elements of area $dA$)? Is there a "fool-proof" way of knowing the bounds?  I was trying to solve this problem using the washer method in terms of y, but I'm not sure on how to set up my bounds of integration.  Thank you very much for your help in advance.


As photons reach a black hole and begin fall in - is their speed increased as they go down (like a vacuum cleaner does to dust).

No matter how fast you go, you will aways perceive the speed of light as constant. Taking that as a fact, the special relativity theory was formulated. Now, for what I understand about general relativity, just by standing here on the surface of the planet under the effect of gravity, my frame of reference is a little different from someone in geostationary orbit, and time goes by a little slower for me.  So, considering me and someone in geostationary orbit, does both of us would perceive light at the same speed? If so, does that means that the light is slower down here than up there?


This is probably duplicate question, but I am still curious about this.   I want to make two-dimensional list in Python without numpy. So I make a list of list. Here is my code:  myList = [None] * 3 print('myList :', myList) myMatrix = [myList] * 3 #myMatrix = [[None, None, None], [None, None, None], [None, None, None]] print('myMatrix', myMatrix) for i in range (0,3):     for j in range (0, 3):         myMatrix[i][j] = i+j     print('myMatrix[',i,'] : ', myMatrix[i])  print(myMatrix) print(myMatrix[0]) print(myMatrix[1]) print(myMatrix[2])   I know that the statement:  myMatrix = [myList] * 3   makes the code failed to work as I expected, and it is because list is mutable object, which means myMatrix[0], myMatrix[1], myMatrix[2] will refer to the same object. A change to any of them means a change to all of them, which is not what I expected in my code. Here is the unexpected output of my code:  ('myList :', [None, None, None]) ('myMatrix', [[None, None, None], [None, None, None], [None, None, None]]) ('myMatrix[', 0, '] : ', [0, 1, 2]) ('myMatrix[', 1, '] : ', [1, 2, 3]) ('myMatrix[', 2, '] : ', [2, 3, 4]) [[2, 3, 4], [2, 3, 4], [2, 3, 4]] [2, 3, 4] [2, 3, 4] [2, 3, 4]   The only solution I found is, instead of stating myMatrix = [myList] * 3, I should write:  myMatrix = [[None, None, None], [None, None, None], [None, None, None]]   That will make the code works as I expected below (the output of the program):  ('myMatrix', [[None, None, None], [None, None, None], [None, None, None]]) ('myMatrix[', 0, '] : ', [0, 1, 2]) ('myMatrix[', 1, '] : ', [1, 2, 3]) ('myMatrix[', 2, '] : ', [2, 3, 4]) [[0, 1, 2], [1, 2, 3], [2, 3, 4]] [0, 1, 2] [1, 2, 3] [2, 3, 4]   But it's not an efficient way to define a NxN matrix, especially if N is a big number.  Does Python have an efficient way to define a NxN matrix using list of list?  I'm more familiar with C/C++, so this problem is really bugging me. Some answers will recommend me to use numpy, but at this moment I would like to learn basic Python from scratch (without importing any library). When I use C/C++, I can work with this two-dimensional array easily, without importing any library. Asking me to use numpy when I'm just new in Python, is just like asking me to use STL when I'm just new to C.  Of course I will learn numpy later, but I want to tackle this without numpy first.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I am in search of a word that exactly means 'a difficult person of my description'.  For example, suppose that I am on the lookout for a heart specialist, and I ask my friend if he is familiar with any. Instead of answering this specific question, he begins describing the heart, its function, who can do without it, plausible the danger of being treated by doctors who skipped treatment of the heart in their studies, and so on and so forth. I am lost in a maze, my head goes whirling, and I fail to recollect what I was after.  Search among your acquaintances and you will find many similar examples. What I want is to give them an appropriate name–— preferably a single word.

What you you call a person that can take a simple, easily understood concept or task and turn it in to a complicated procedure?


I have a dual boot setup with Ubuntu and Wiindows. I can see Windows partitions from Ubuntu. How can I remove access permission for these partitions?

I need to hide an NTFS partition from listing in the nautilus. How can I achieve that?   Is there any tool to do that?   And how can I hide files in ubuntu (except . operator)


I am examining how sex affects the relationship between 2 variables. So, my model looks like: $$ y \sim sex * x $$ However, there is a known effect of menstrual cycle on $y$ (obviously in females only). Is there a way that I could include this as a covariate in the analysis, while still keeping both groups?   Let's say in females I have factor $m$ that is either 0 (follicular phase) or 1 (luteal phase), representing where they are in their cycle. Would my model be as simple as: $$ y \sim m + sex * x $$ where I would code all men as 0 for the covariate $m$?   Would it matter if the covariate was continuous?

Consider a statistical problem where you have a response variable that you want to describe conditional on an explanatory variable and a nested variable, where the nested variable only arises as a meaningful variable for particular values of the explanatory variable.  In cases where the explanatory variable does not admit a meaningful nested variable, the latter is usually coded either as NA in the data set, or if it is coded with a value, that value is merely a placeholder that does not have any meaningful interpretation.  This situation tends to arise whenever you have an explanatory variable indicating the existence of a thing, and one or more nested variables describing the characteristics of that thing.  Some examples of this kind of situation in statistical problems are the following:   The explanatory variable is an indicator of whether a survey participant is married, and the nested variable is some characteristic of the spouse (e.g., education, age, etc.); The explanatory variable is an indicator of the presence of an item in a space, and the nested variable is a measure of some characteristic of the item (e.g., size, distance, etc.); The explanatory variable is an indicator of the occurrence of an event and the nested variable is a description of some characteristic of the event (e.g., duration, magnitude, etc.).   In these kinds of situations, we often want to build a regression-type model (in the broad sense that includes GLMs, GLMMs, etc.) describing the relationship between the response variable and the other variables.  It is not obvious how to deal with the nested variable in this type of model.  Question: How do we deal with the nested variable in this type of model?    Note: This question is designed to give a generalised answer to a recurring question on  regarding nested variables in regression (see e.g., , ,  and ).  This question is designed to give a generalised context-independent example of this problem.


This is my first iPad, I can't figure this out - when I go to settings>general>software update I get "iOS 5.1.1 Your software is up to date"  I have iOS 5.1.1, also I have ubuntu on my PC (I see some advice about using iTunes, but I don't have OS X or Windows on my PC)

How can I update iPad 1 from iOS 5.1.1 to iOS 7.1?  I tried checking for updates but I get a message "your software is up to date".


I was wondering whether it classes as lying if you tell something that you believe is a lie but is actually true.  Here is an example. Let's say that you have to be 6ft to ride a roller-coaster. You think you are under 6ft and say that you are tall enough but, in fact, you are tall enough. In this example, you haven't given a false statement but you have given what you thought was a false statement as your intention was to lie about your height. Is there a certain word or phrase for this?

Deliberate lie: to tell others something one correctly or incorrectly believes to be false.  Honest Lie: to tell others something one incorrectly believes to be true.  Is there any word/phrase particularly for when one tells others something one incorrectly believes to be false, that is, when one intends to lie but what one tells is, unbeknownst to her, in fact true?


I'd like to remove some of the icons on my desktop but I cant seem to find out how. Specifically I'm talking about my hard drive, its partitions, and the file system. Any help would be great! I'm using Ubuntu 12.04, by the way.

In 11.10 Using Configuration editor, one used to be able to edit a boolean parameter named : Desktop_Show  This allowed to hide/show all desktop icons. This latter was removed in 12.04.   Someone, knows how to hide desktop icons automatically?  Thanks


I recieve HTML-files and they contain Strings like that &quot; ("), &#252;(ü) and so on.  I need them humand-readable. So I could use str.replace() for that. But isn't there a package/library for Python3 which knows all character-codes by itself and could handle that?

I have a string that is HTML encoded:   '''&lt;img class=&quot;size-medium wp-image-113&quot;\  style=&quot;margin-left: 15px;&quot; title=&quot;su1&quot;\  src=&quot;http://blah.org/wp-content/uploads/2008/10/su1-300x194.jpg&quot;\  alt=&quot;&quot; width=&quot;300&quot; height=&quot;194&quot; /&gt;'''   I want to change that to:  <img class="size-medium wp-image-113" style="margin-left: 15px;"    title="su1" src="http://blah.org/wp-content/uploads/2008/10/su1-300x194.jpg"    alt="" width="300" height="194" />    I want this to register as HTML so that it is rendered as an image by the browser instead of being displayed as text.   The string is stored like that because I am using a web-scraping tool called , it "scans" a web-page and gets certain content from it, then returns the string in that format.  I've found how to do this in C# but not in Python. Can someone help me out?  Related


for example:  public class Test {      public static void main(String[] args) throws Exception {         Car c= (Car) Class.forName("Car").newInstance();         System.out.println(c.getName());     } }  class Car {     String name = "Default Car";     String getName(){return this.name;} }   clear code.  But, if I add constructor with params, some like this:  public Car(String name) {this.name = name;}   I see: java.lang.InstantiationException  So, no I don't know, how pass constructor with params.  Please, help.

I would like to use Class.newInstance() but the class I am instantiating does not have a nullary constructor. Therefore I need to be able to pass in constructor arguments. Is there a way to do this?


I remember reading the entire story online.   The man ends up at an old bookstore that sells pulp scifi that his wife liked, realizes some of the titles are fake. The owner gives him a cryptic book and disappears (dies?). The book is (potentially portrayed as pseudoscience) about how we don't die, simply continue jumping into the least plausible reality.   He gets into an accident shortly after, and the story culminates decades (much longer?) later, with an alien species finding/using him as a repository of information about our species?

Please help me identify a short story I read about a guy who believed that the multiverse was true, but the one that we experienced was the one in which we lived the longest. He was also contemplating suicide, and every time he sat staring at the pills he was going to use to overdose, parallel universes (where he chose suicide) collapsed and the one he was in got weirder. Eventually an asteroid hit the Earth, and then he was resurrected somehow in the deep future.  I'm not sure where I read it, but it likely appeared in Dozois's The Year's Best Science Fiction or in a back issue of Analog (my dad had like a decade's worth in the den).


I'm learning about jQuery selector.   w3schools  says that "Do not start an id attribute with a number. It may cause problems in some browsers". I tested and saw it really does not work. I wonder what the technical reason of this issue is?

When creating the id attributes for HTML elements, what rules are there for the value?


I've been beating my head against the wall trying to map some points using Leaflet + OSM.   I put in some sample points (near Bellingham, WA, USA).  I've checked the JSON with JSfiddle and GeoJsonlint.  It's valid.  But they both send me to the middle of the ocean or to the bottom of the map.  Any idea what I'm missing here?    GeoJson  { "type": "FeatureCollection", "features": [     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -122.488225             ]         },         "properties": {             "name": "ABBOTT NEIGHBORHOOD PARK",             "address": "1300  SPRUCE ST"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -121.488225             ]         },         "properties": {             "name": "DOUBLE OAKS CENTER",             "address": "1326 WOODWARD AV"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -123.488225             ]         },         "properties": {             "name": "DOUBLE OAKS NEIGHBORHOOD PARK",             "address": "2605  DOUBLE OAKS RD"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -124.488225             ]         },         "properties": {             "name": "DOUBLE OAKS POOL",             "address": "1200 NEWLAND RD"         }     }]}

I just started to play with leflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on.  My coordinates are: 52.23943, 4.97599. They work correct with the setView function.  var map = L.map('leaflet_map').setView([52.23943, 4.97599], 15);   But using a geojasonFeature they are, hmmm, 'projected', somewhere east of Somalia.  var geojsonFeature = {             "type": "Feature",             "properties": {             "name": "Coors Field",             "amenity": "Baseball Stadium",             "popupContent": "This is where the Rockies play!"             },             "geometry": {                 "type": "Point",                 "coordinates": [52.23943, 4.97599]             }         };         var myLayer = L.geoJson().addTo(map);         myLayer.addData(geojsonFeature).bindPopup("I am a gjson point.");   Anyone who knows what is happening here?  EDIT  Out of pure curiosity I changed the coordinates around [4.976143930893815,52.23925499011473] and the point appears at its correct location. A known bug!?


Let $f_1:[0,1]\to\mathbb{R}$, $f_1(0)=0$ be continuously differentiable function and $\lambda>1$. Consider the sequence of function defined by  $f_k(x):=\lambda f_{k-1}(x/\lambda)$, $k≥2,$ , $x\in [0,1]$. Find the pointwise limit of the sequence of function.  My Approach:  By the recurring relation, we get,  $f_n(x)=\lambda^{n-1} f_1(x/\lambda)$. If we take the limit and using the continuity of $f_1$, we come across a situation of $\infty •0$. Please help me further.

Let $f_1 : [-1, 1] \rightarrow \mathbb{R};\: f_1(0) = 0 $ be a continuously differentiable function and $\lambda > 1$. Consider the sequence of functions defined inductively by $f_k(x) := \lambda f_{k-1}\left(\dfrac{x}{\lambda}\right);\: k \geq 2;\: x\in [-1, 1]$. Find the pointwise limit of the sequence of functions $(f_n)$.   I figured out that $f_k(0)=0 \:\forall\: k\implies f_k\rightarrow 0 $ when $ x=0$. Also $f_k$ is continuously differentiable $\forall \:k$.   $\Bigg($Since $\quad\displaystyle\lim_{h\rightarrow0}\dfrac{f_2(x+h)-f_2(x)}{h}=\lambda\lim_{h\rightarrow0}\dfrac{f_1\left(\frac{x+h}{\lambda}\right)-f_1\left(\frac{x}{\lambda}\right)}{h}.\: $Since$ f_1 $is continuously differentiable we see $ f_2 $ is differentiable and its derivative is continuous and hence $f_k$. $\Bigg)$.  Further since $f_1(0)=0$. So I assumed $f_1(x)=x\cdot g(x)$, where $g(x)$ is continuously differentiable and $g(0)\neq0$. Assume $x\neq0,\:f_2(x)=\lambda\cdot\dfrac{x}{\lambda}g\left(\dfrac{x}{\lambda}\right)=x\cdot g\left(\dfrac{x}{\lambda}\right)\implies f_3(x)=x\cdot g\left(\dfrac{x}{\lambda^2}\right)$ $\implies f_k(x)=x\cdot g\left(\dfrac{x}{\lambda^{k-1}}\right)$.   So taking limit as $k\rightarrow \infty$, we get $\displaystyle \lim_{k\rightarrow\infty}f_k(x)=x\cdot g(0)$. Now I am not sure how to proceed or whether there is something wrong here. Please provide hints or suggestions.  $\rule{17cm}{1pt}$  To sum up (using the arguments made by $\textbf{zhw}$ and $\textbf{Paul Frost}$)  When $\displaystyle x\neq0, \lim_{n\rightarrow\infty}f_{n+1}(x) = \lim_{n\rightarrow\infty}x\,\frac{f_1(x/\lambda^n)}{x/\lambda^n} = \lim_{n\rightarrow\infty}x\,\frac{f_1(x/\lambda^n)-f_1(0)}{x/\lambda^n}=x\:f'(0).$ Thus  $$f_n\rightarrow\begin{cases}0&x=0\\x\:f'_1(0) &x\neq0\end{cases}=f $$


The answer of this function is returned into the main function of the program, and that works fine. The issue is that any value where the cosine should be 0, it turns out to give a weird irrational number (something like 1.30431912*10^-13). So, 90, 450, and so on, all turn out irrational answers. What's the matter?    float cosineDegrees() {         string i;         double iDouble;          cout << "Give me a number to find the value of degrees in. ";         getline(cin, i);          iDouble = stod(i);          double PI = 3.14159265359;          float answer = cos((PI/180)*iDouble);          return answer;       }

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I just installed the trial for Office 2013. I want to associate dbf files with it so I can just double click them. This  says Office 2013 will open dbf files and I can open them through excel by navigating to the file from within excel.  When I try to associate dbf files with excel I go to "Open with" then "Browse" to this program "C:\Program Files\Microsoft Office 15\root\office15\EXCEL.EXE" but it will not let me select it. I found that path by looking at the properties of the excel shortcut.  I can select "excelcnv.exe" and that will give the dbf file the excel icon but it will not open the file. It does put an option to open with "Excel" but, like I said, it doesn't work.  I also tried setting association in command prop with "assoc .dbf=Excel" and few other things but that didn't work either.  One thing that I notice is that when I go to "Open with" on an xlsx file the excel option says "Excel (desktop)".  Right now it looks like this might be a restriction due to using the trial version or maybe there is something in user files or AppData?  Thanks in advance

With Excel 2007 I was able to use Open With to associate TSV files with Excel, so that I could double-click on them and they would automatically open with each value in a different cell.  But since upgrading to Excel 2010, I can't select Excel as the program to use to open TSV files.  If I use Open With and browse to the Excel.EXE and click Open, Excel still isn't in the list of programs to choose.  If I select Excelcnv.EXE, then Excel shows up in the list, but I still can't open the file by double-clicking.    The best I've been able to do so far is open Excel first, then use it to open the TSV file, and then I have to do Text to Columns to break up the values.  But I really want to have Excel launch just by double-clicking the file.


Below is my LaTeX code, I want it to continue the title under image, but, unfortunately, it continues to the next page and leaves a big space at the first page. How can I fix this.?      \documentclass{report}      \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx}      \begin{document}      \begin{titlepage}     \includegraphics[scale=0.3]{upm.png}     \title{COMBINATORICS:- \\ Combination and Permutation in Statistics Application}     \maketitle     \end{center}     \end{titlepage}       \end{document}

I am very new to LaTeX. Now I am trying to define the cover page of my document. It currently consists of the title and a single picture.  I have tried   \begin{titlepage} \maketitle \begin{figure} \includegraphics[height=100mm]{../images/dragon.jpg} \end{figure} \end{titlepage}   But this still does not place the image and title on the same page. Moreover, I would like to define a set of objects to belong to the cover page and they to be resized and positioned as deemed fit. That is, I wouldn't like to care about absolute sizes of pictures.  How can I define a set of objects, that compose the cover page?


Which apostrophe is correct? (There are multiple dogs.)  One of the dogs' tails One of the dog's tails  I believe it is the former but I'm not 100% certain. I found absolutely no guidance on this when I searched on the internet.

Possible Duplicate:          Which of the following is more correct? Or is there another form I'm missing?     We drove to the movies in one of my buddy's car.   We drove to the theater in one of my buddies' cars.   We drove to the theater in one of my buddies' car.   I suppose the fundamental question is: does this phrasing suggest "one of [the collection of cars owned by my buddies]" or "the car owned by [one of my buddies]"?


I came across a proposition, which doesn't seem obvious, but I'm curious about whether it is actually true:   Proposition:  If $\mu$ is a  sigma-additive signed measure (i.e. set function) which is finite, then it is of bounded variation.

Folland in his book "Real Analysis" says      The real and imaginary parts $\nu_r, \nu_i$  of complex measures $\nu$ are signed measures which do not assume the values $+\infty$ or $-\infty$; hence they are bounded     But, I don't understand why the finiteness of $\nu_r,\nu_i$ means their boundedness. Why is this the case?  For example, the function $1/x$ on $(0,3)$ is finite valued, though it is unbounded.


I'm having some problem with my mac (MacBook Pro (Retina, 15-inch, Late 2013)). I freed some spaces by deleting some folders but when I analyse mac HD I get the following:  Available: 79.29 GB (44.52 GB purgeable)   Installing windows 10 on bootcamp still returns the error "not enough space" so I started looking at tutorials on how to get rid of that "purgeable" space. I have tried everything, enabling store optimisation, apple cloud, disabling everything, nothing worked.  I stumble upon a tutorial that suggested to create fake files to fill the hard disk and then remove them (with iCloud disabled).  The problem is that the command suggested in the tutorial:  mkfile -n 10g ./test   Doens't work, it creates a file, but if I analyse the file:  Size: 10,737,418,240 bytes (4 KB on disk)   So it should occupy 10 gigs but in reality it occupies almost no space at all.   What can I do to get rid of that space?

I cleared space on my disk by deleting files and emptying trash. But, I am unable to make use of the space that I freed up. That is, as you can see the disk reports 142 GB as Available with 83 GB of that as purgeable.    So I should have plenty of space to to copy over a 70 GB file onto the disk. Yet when I try I get an error stating "Not enough disk space to copy", like the following image shows:    How do I clear out the purgeable space to make it truly available for use?  I've tried rebooting in the hopes that a restart clears out the purgeable area, but had no change trying that.


I am writing a program that will act like a terminal, however, I'm having some issues with it. I would like to be able to prompt the user for a command and have the user be able to type in the command in the same line in the terminal, but I don't know how to do that. Every time I try, the prompt, telling the user to type shows up in one line and my 'ReadLine' is the line under it.  For example, I want it to look like this:  user1> (user types command here)  my code goes like this:      Console.WriteLine("user1>");     string a = Console.ReadLine();   and then I'll of course have more code after that but that's the trouble spot (getting the two on the same line in the console)  But it always compiles as this:  user1> (user types command here)  If someone could come up with an example of what I'm supposed to do in this situation, that would be great help.

I want to pose a question such as:  What is your name? Joe  How would I accomplish this using Console.WriteLine to also wait for the response on that same line instead of it being broken into:  What is your name? Joe


Calculate, in the form $a+ib$, where $a,b\in \Bbb R$, the square roots of $16-30i$.    My attempt with $(a+ib)^2 =16-30i$ makes me get $a^2+b^2=16$ and $2ab=−30$. Is this correct?

If I'm given a complex number (say $9 + 4i$), how do I calculate its square root?


New to ubuntu, new to WSL, I'm not even able to get ping to work.  I've just installed ubuntu and it seems to be running fine. I've set proxy using   export http_proxy=http://mycompany.net:8080   Apt-get-upgrade seemed to work but with "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded."  Ping just locks up.  Also, as recommended, tried  sudo apt-get --print-uris install PROGRAM   which resulted in 'E: Unable to locate package PROGRAM'

My company uses an HTTP proxy and our various Ubuntu 12.04 servers therefore need to be configured properly, namely by setting \etc\apt\apt.conf.d\80proxy to:  Acquire::http::Proxy "http://proxy.mycompany.com:80";  Acquire::http::No-Cache true;   Now, since a few days, this method suddenly stopped working: I run into sum mismatch errors. I have tried all the usual tricks found on stackoverflow or on the web, among others:  sudo rm -fR /var/lib/apt/lists/*     sudo apt-get clean   But nothing seems to work. I even switched to a FTP server, without any luck. What's a radical solution to this problem? Is it likely that the proxy server has some kind of issue? What could it be?  Using Ubuntu 12.04


I want to install Windows 10 because I want to play some games and on Ubuntu is not that playable so I downloaded a iso file from Microsoft page and now I don't know how to install! I mounted the iso file and ran Setup.exe but it says      Windows installation cannot be started from the current operating   system. To install Windows, boot from the installation media, or   upgrade from a supported operating system and restart the   installation.   Is there any other way to boot Windows 10 iso from Ubuntu?

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


Is it possible to change the precision of a field in the attribute table in ArcMap?   I have a shapefile with X and y coordinates of pointlocations. I would like to change the precision. Is this possible?

I am working with data in an ArcGIS 10.1 geodatabase.  I wanted to complete the simple task of taking a ten-digit ID field that is currently in String/Text format and create an identical field in Long/Numeric format.   However, Esri's resource pages on tables () do not discuss how to achieve this.  Also, the following GIS/SE thread does not help me either:  and the post mentioned in the comment there refers only to QGIS.    In the meantime, I created a new table with the extra field, joined it to the original shapefile and will reimport this shapefile into the gdb, adjusting the new field format as needed.    Is there an easier way to complete this task?


How can we arrange 10 pots in 4 rows such that each row cantain 4 pots ?

One possible case is that forming a star and then arranging 10 points on its vertices.    Is there any other possible case for this arrangement? If not then how can we prove it mathematically?  Degenerated cases like concurrent lines and parallel lines are also allowed.


The Sorcerer's Destined Bloodline gave at level 1 the Touch of Destiny ability.     Touch of Destiny (Sp): At 1st level, you can touch a creature as a standard action, giving    it an insight bonus on attack rolls, skill checks, ability checks, and saving throws equal    to 1/2 your sorcerer level (minimum 1) for 1 round. You can use this ability a number of times per day equal to 3 + your Charisma modifier.   So the definition says that "You can touch a creature" but doesn't exclude you of the possible creatures. Am I misinterpreting, or can you indeed cast it on yourself?  I understand it would be pretty useless in fight, since you would have used your single action to buff yourself for one round (for a sorcerer level below 3), but could you use it to help in a skill check, like lockpicking out of fight?

The Spell  states:     Your touch deals 1d6 points of damage per two caster levels (maximum   10d6). You gain temporary hit points equal to the damage you deal. You   can't gain more than the subject's current hit points + the subject's   Constitution score   So could you cast the spell on yourself, gain up to your own Hits+Constitution in  and then subsequently get a cure to get yourself extra hit points?  Note: For interests sake (and so the caster doesn't potentially kill themselves) you can  as long as it's high enough to cast said spell.


When running two external monitors in OS X Sierra, my dock sometimes changes which display it is located on.   Is there a setting to stop this from happening?  This happens at random times, and I can't reproduce the issue.

I have a larger, external monitor connected to my MacBook Pro and have arranged it such that the dock is in the external monitor (via System Preferences > Displays > Arrangement, by dragging the white bar to the larger screen). This works fine, except for the fact that every now and then, the dock will suddenly shift back to my MacBook screen, but when I open up Displays to change this back, the white bar is still on the external monitor. So I have to drag it to the smaller screen, and then drag it back to the external monitor.   It's a minor issue, obviously, but I've noticed that it has been happening more and more frequently and it's getting quite annoying. Perhaps there's something I've been doing unintentionally for this to happen?   I'm using Mavericks, 10.9.5.


I have created a Bootable Usb stick, I will create Ubuntu to C: but I have some saved documents like picture at d: If I install Ubuntu to c: , backup files from d: will erase ?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


I want to make a simple map of SW England that shows polygons over the postcode areas (e.g. EX1, PL19, each in an shaded area with boundary line). If I search the postcode area on Google Maps (online) it shows exactly the kind of area highlight I want on this map, only I want multiple ones on a single map.  My data is number of respondents per postcode area. I am happy to manually label each polygon with a number to show the respondents in that area, as I don't have that many areas. Or can create a CSV file with postcodes listed so they can be counted and displayed automatically (if such a thing is possible and worth the effort).  So far I have managed to bring up a basic ordnance survey map. I downloaded what I thought was the right postcode area shapefile but it is too broad - It shades the whole of e.g. EX rather than just EX1, EX2 etc. as separate areas.

I am trying to find the shapefiles for postcode sector and districts in the UK. Specifically inside London. I know I can go and pay for these but I only really need to use them once. I want to generate my own mapping tiles with the shapes on one version of the tiles. Allowing me to show all the postcode boundaries without overloading the JavaScript on the client side.   I could "redraw" some of shapes myself (tracing from others) but would be great if there were some shapefiles already out there.   Can anyone help?


I found  on this that is outdated and doesn't give a non-interactive way to do this. If you need to upgrade from Java 7 to Java 8 to run Jenkins, or whatever other Java application, you can do that by plugging this into a user_data script for Amazon Linux

I tried sudo yum update but it just keeps java "1.7.0_75". I need 1.8 for it to work with another application but can't figure out how to upgrade it. Do I need to manually install it somehow? There's not much information on this on the internet as far as I can see. Specs:   java version "1.7.0_75" OpenJDK Runtime Environment (amzn-2.5.4.0.53.amzn1-x86_64 u75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)   When I try update now:     [ec2-________]$ sudo yum update Loaded plugins: priorities, update-motd, upgrade-helper amzn-main/latest                                         | 2.1 kB     00:00 amzn-updates/latest                                      | 2.3 kB     00:00 No packages marked for update   Is there anything else I need to do? Thanks.


Following my first lecture on magnetism today, I'm left with just one question my lecturer couldn't answer.  Imagine a 1 kg magnet supporting its own weight stuck to a vertical surface, resisting almost 10 newtons of gravitational force pushing it down, by exerting a force of attraction strong enough to crate enough friction to prevent the gravitational force from accelerating it.  I've done a bit of web searching, and sort of understand or accept that although it's exerting this force it isn't moving in any direction, so no work is being done/no energy is needed.  So how does a magnet use this force of attraction to move metal objects towards it, or push other magnets away from it. Here items are moving, work is being done, where does the energy come from, and does this energy run out?

I have a doubt about permanent magnets. If a magnet is permanent it can attract some materials permanently.  Attracting something involves energy. If a permanent magnet can do this forever, from where does this energy come from? How can it not run out of energy? Doesn't it contradict with the laws of energy?