Enter on Visa Waiver, then convert to J-1

I would like to enter the USA on the Visa Waiver programme, and after a week of stay change over to a J-1 visa (i.e., have a week of holidays before I begin my academic exchange).  Is this possible without leaving and re-entering the U.S.?  Edit: it seems in other threads that some people have left and re-entered, that there seems to be a 30-grace period for early entry of J-1 holders, and that conversion from one visa to another is a lengthy process. Has anyone made any experience with these options?


How do you flag code so that you can come back later and work on it?

In C# I use the #warning and #error directives,  #warning This is dirty code... #error Fix this before everything explodes!   This way, the compiler will let me know that I still have work to do. What technique do you use to mark code so you won't forget about it?


so i want to get the file extension from the img so if i upload a image i can use mutiple file exts but when i use this code to get the file ext it does not work  $sql = "SELECT * FROM users"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) {     while ($row = mysqli_fetch_assoc($result)) {         $id = $row['user_id'];         $sql = "SELECT * FROM users WHERE user_id='$id'";         $result = mysqli_query($conn, $sql);         while ($rowImg = mysqli_fetch_assoc($result)) {             if ($rowImg['status'] == 0) {                 $filename = "../assets/IMGS/profile/Avatar".$id.".*";                 $fileinfo = glob($filename);                 $fileext = explode(".", $fileinfo[0]);                 $fileactualext = $fileext[1];                  echo "";             } else {                 echo '';             }         }     } }


Divergence of $\sum \limits_{n=1}^{\infty}\frac{a_n}{a_1+a_2+\dots+a_n}$

Suppose that $\sum \limits_{n=1}^{\infty}a_n$ series with positive terms which diverges then series $\sum \limits_{n=1}^{\infty}\dfrac{a_n}{a_1+a_2+\dots+a_n}$ also diverges.  Can anyone show how to prove it? Unfortunately i have no ideas


Taxonomy menu with custom path for taxonomy terms

I am trying to make a taxonomy menu using the with a custom path for the taxonomy terms. Instead of /taxonomy/term/tid I want /proj/!tid (or ultimately /proj/!term-name but I'll settle for what I can get). I have the taxonomy menu working fine when I leave the "menu path type" setting to default, which leaves it as /taxonomy/term/tid. Whenever I try to use the "vocabulary path" option though, the menu terms all disappear. I've tried to follow the instructions in the .  I have a view with Taxonomy: Term ID (with depth) and Taxonomy: Term ID depth modifier arguments and a page display with the path set to proj/%. I've tried additionally making a url alias at proj and proj/% but that didn't seem to make any difference. But basically whenever I set the menu path type to "vocabulary path" ("custom path" in the documentation), the menu items all disappear. The terms are still there, and I can navigate to /proj/%, but there are no menu items.  Any help with how to have a custom path for the vocabulary while keeping the menu items would be greatly appreciated.


Determining if Ancestry DNA results support Half Sibling relationship?

Ancestry DNA results came back on my possible half sister. We're showing 1,329 cMs with 34 shared segments. All it indicated was we were "close relationship - 1st Cousins" Tracing indicates a good possibility we are half siblings. Is the 1,329 on Ancestry enough to establish our relation or should we submit DNA samples to a lab for their analysis?


trying to install ubuntu 14.10 from usb on a pc with 9.04

My computer right now has Ubuntu 9.04, and I'm trying to install Ubuntu 14.10 using a bootable USB stick. If not mistaken, I did that process right, but the thing is when I boot the pen drive, a message shows up a little after:  SysLinux 3.64 Debian-2008-07-15 Ebios Copyright (c) 1994-2008 M. peter Anvin.   Missing parameter in configuration file.   Unknown Keyword in Configuration file.   Boot:   Now, 'Im using an old HP computer with the Windows Vista Basic sticker on it, not sure how old it is and what model, and I don't know if I'm making a mistake somewhere, does anyone know how to resolve this?


Suggest a good pattern for validating email with javaScript?

greetings all i want to validate an email with javaScript and i need to use the best pattern for the matching please suggest me a good pattern


The real line is not homeomorphic to any non-trivial product space

I came across a question that interested me recently. It asked the following:  Prove that if $\mathbb R$ is homeomorphic to $X \times Y$, then $X$ or $Y$ is a singleton set.  I have an easy proof using path-connectedness. I was interested if there is an even more elementary argument. The notion of connectedness had not yet been introduced in the text.


Looking for a book dealing with Euclidean Geometry

Good Day I am looking for a Book that contains detailed proofs of theorems in the field of Euclidean Geometry that are used to solve exams and school work of high school students.  theorems like:  inscribed angle theorem:  angle inscribed in a circle is half of the central angle;   Circumscribed circle theorems;   incircle theorems;  stuff like that.  any suggestions?


I’m currently building my own website and I’m trying to do everything as best as i can. I am currently learning about images and i have some questions on optimising them so that they dispaly appropriately across my site.  I bought a website template that comes with a carousel & 3 images to populate it. The three images are all jpg and the dimensions are 1920x700. I have since replaced these images with my own and although i set the dimensions to 1920x700 when i saved it (as png, using Photoshop save for web and devices) the file size is 2.69mb. When i hit my site for the first time the images takes a long time to load which is definitely not what I want.  When it comes to images should i be saving as jpg or png or any other format that is available? I know from a transparency point of view then i should use png because jpg does not support this but im confused when to use which.   I would also like to know (using Photoshop) how i could reduce the file size (for quicker load times) but maintain the dimensions of 1920x700.  Any information regarding best formats and other general advice to help me understand image use with website will be gladly taken on board.  I’ve just bought a camera so would like to know more about photography and images :)  Cheers Paul


During my final year at university, I wrote what I thought was a "bachelor thesis". Right before printing it I stumbled upon several documents stating the name "bachelor's thesis".  (Here we do not call it a dissertation just yet, so this question is only about the possessive bachelor's vs. bachelor.) A couple of Google search queries later, I had not found out which of these terms is correct.  Which should I use?


How to install Blender 2.6 on Ubuntu 13.10

I'm a newbie to Ubuntu. I'm in love with Ubuntu now <3 I don't want to use another OS again!  So, I downloaded Blender 2.6 on my brand new Ubuntu 13.10 and extracted. But I don't have any Idea how to install. Please will you help me guys? Thanks a lot!


Automatically unlock LUKS encrypted disk on boot

Im new to (command line) linux, and as a learning exercise i decided to turn my old PC i had lying arround into a linux server running Ubuntu 20.04 LTS. However, while i was configuring it, i like a complete dummy chose to encrypt entire hard drive. That is not a good thing for me, since i want my "server" to automatically start some thing i have on it if it for some reason reboots without me having to do anything about it. So naturally, first thing i tried was seeing if there was a way to remove the encryption on my disk, but that requires a copying all my data to another hard drive, wich i dont have. Then i saw on a VERY OLD answer to a question here that it might be possible to have your password stored in plain text on a non encrypted part of the disk, and have it be automatically inputed for you, but with no mention of how. Sooo how would i go about doing that? (Btw i understand that it renders the encryption useless, but i dont really care, its not needed for my purposes). Also please explain what everything does on your answer if possible, the whole point of this was to learn anyways


Why can't you parse a json with a \n character in javascript  JSON.parse('{"x": "\n"}')  However when you do JSON.parse(JSON.stringify({"x" : "\n"})), it is valid.   says that {"x": "\n"} is a valid JSON. I wonder what does spec says about this?  Update: For those who marked this duplicate, this is not the same question as "How to handle newlines in JSON". This question is more about why can't an unescaped newline character allowed in JSON.


Are there any risk in loaning out your shares?

Just like loaning out money carries risk, does loaning out your stock shares also carry risk?


Intersection of finite number of compact sets is compact?

Is the the intersection of a finite number of compact sets is compact? If not please give a counter example to demonstrate this is not true.  I said that this is true because the intersection of finite number of compact sets are closed. Which therefore means that it will be bounded because the intersection is contained by every set. I am not sure if this is correct.  Thank you for the help


Do I need to vacuum the meat slices if I freeze them?

I think the question is clear, but as you know there are devices that can vacuum the meat slices in a plastic bag. But does it make any difference if I wanna freeze them? Will that make any difference?


php mysql Commands out of sync; you can't run this command now

I can seem to get this code to work, I receive the error "Commands out of sync; you can't run this command now" when it gets to " $stmt->execute(); "   I'm using eclipse to debug it but I'm more familiar with procedural code, it appears to be running ok upto the stmt->execute part.  the code is below  function execSQL($sql, $params, $close){ $mysqli = new mysqli("localhost", "web_user", "jaitec", "ebay");  $stmt = $mysqli->prepare($sql) or die ("Failed to prepared the statement!");  call_user_func_array(array($stmt, 'bind_param'), refValues($params));  $stmt->execute();  if($close){     $result = $mysqli->affected_rows; } else {     $result = $mysqli->affected_rows;     $meta = $stmt->result_metadata();      while ( $field = $meta->fetch_field() ) {         $parameters[] = &$row[$field->name];     }      call_user_func_array(array($stmt, 'bind_result'), refValues($parameters));      while ( $stmt->fetch() ) {         $x = array();         foreach( $row as $key => $val ) {             $x[$key] = $val;         }         $results[] = $x;     }      $result = $results; }  $stmt->close(); $mysqli->close();  return  $result; }   function refValues(&$arr) // Changed $arr to reference for PHP v7.1.7 { if (strnatcmp(phpversion(),'5.3') >= 0) //Reference is required for PHP 5.3+ {     $refs = array();     foreach($arr as $key => $value)         $refs[$key] = &$arr[$key];         return $refs; } return $arr; }  $_REQUEST['term']   = "m8 knob"; $part_1     =   "knob"; $part_2 =   "m8"; execSQL("SELECT * FROM web_search WHERE part_no LIKE ? AND part_no LIKE ?", array('ss', $part_1, $part_2), false);


In the movie After Earth, why were humans unable to breath Earth's atmosphere?

In the movie, After Earth:      Humans have been away from Earth for over a thousand years living on other planets outside of our solar system. It is mentioned Humanity was under attack by an alien race, but it did not mention terraforming or any particular change of the Earth's ecosystem.    Why did Humans who were not native to Earth appear to be unable to breathe on Earth without technology? I don't remember anyone explaining why humans couldn't breathe there. Was there something I missed or is this a plot hole we were expected to hand-wave away?


I need centered, unnumbered section titles

Every business book I have seen have section and subsection titles centered and without numbers.   If you just browse business books on Amazon and look at the preview you will see what I mean.    Conditions:   I am using KOMA stuff.  Months ago I had some tenacious problems that were solved with KOMA and that is a given.  That means no use of titlesec and most of the other packages that are sometimes mentioned I do not want to change all sections in the book from using section to section*  This has the effect of eliminating number from sections completely, and omitting them from the TOC.  I want all of the normal section behavior, just I don't want the number to appear.  My understanding is that the goal of LaTeX is remove formatting from the content.  These are regular sections, I just want the number eliminated from the output of the section header. I found one answer to eliminate numbers, but it left the period after the number.  Suggested solution need to eliminate the period as well.  I want the header to display exactly what I put in the section brackets.   Here is my sample for testing:  \documentclass{scrbook}  \addtokomafont{section}{\centering} \addtokomafont{subsection}{\centering}  \begin{document} \mainmatter \chapter{Sample Chapter} \section{First Section} asdfasdfasdf \subsection{Subsection} asdfasdfasdf \subsection{Subsection} asdfasdfasdf \section{Second Section} asdfasdfasdf \subsection{Subsection} asdfasdfasdf \subsection{Subsection} asdfasdfasdf \end{document}     Need to eliminate the numbers from the section headers.


Can a South Korean national visiting Canada travel to the United States?

My friend from South Korea is visiting me in Canada. Is it possible for her to get an ESTA (Electronic System for Travel Authorization) while in Canada, and then visit the U.S. with me by driving across the border?


\documentclass[]{article}  \usepackage{xstring}  \newcommand{\hyb}[1]{\IfStrEqCase{#1}{%         {2}{$\sqrt{#1}$}%         {3}{Hi}%         % you can add more cases here as desired     }[\PackageError{hyb}{Undefined option to hyb: #1}{}]% }   \begin{document}    \hyb{3}    \begin{figure}[htp!]      \centering      \caption{\hyb{3}}    \end{figure} \end{document}  I'm trying to use cases in a command based on the example . This works fine in the main text, but when I put it in a figure caption, I get error messages (it still compiles correctly, so I suspect Overleaf is correcting the error, but I can't tell what the error is). The error messages I get are ( Argument of xs_execfirst has an extra }                 \par  l.16      \caption{\protect{\hyb{3}}}  and Runaway Argument? ! Paragraph ended before \xs_execfirst was complete. <to be read again>                     \par  l.16      \caption{\protect{\hyb{3}}}                                       ! Argument of \xs_IfStringCase has an extra }. <inserted text>                  \par  l.16      \caption{\protect{\hyb{3}}}       ! Paragraph ended before \xs_IfStringCase was complete. <to be read again>                     \par  l.16      \caption{\protect{\hyb{3}}}                                       ! Argument of \xs_IfStringCase_ii has an extra }. <inserted text>                  \par  l.16      \caption{\protect{\hyb{3}}}                                        {Hi}{3}{{2}{$\sqrt {3}$}{3}{Hi}} ! Paragraph ended before \xs_IfStringCase_ii was complete. <to be read again>                     \par  l.16      \caption{\protect{\hyb{3}}}                                     Is there a workaround for this?


Using German Mac keyboard like a Windows keyboard – circumflex and "less-than" keys are swapped

I am using both a German QWERTZ (full size) Mac and Windows keyboard on an Ubuntu 16.04 machine. Out of the box, this works nicely – my keyboard layout is set to "German", keyboard-configuration uses "Generic 102-key (Intl) PC", and the Mac keyboard behaves like plugged in under Windows. This is my keyboard layout as shown in GNOME:  The only problem is that the Mac keyboard's < and ^ keys are swapped in the OS. In other words, when I press < on the Mac keyboard, I get a dead-key circumflex, and when I press the ^ key, I get a "less than" sign. On the Windows keyboard, this works as expected though. How can I fix this behavior? Note that I do not want the Mac keyboard to behave like, well, a Mac keyboard in the sense that I want to map Cmd to Ctrl  or anything fancy. I just want it to behave like under Windows.


Qgis SAGA Upslope Area for several points automation

In the Upslope Area tool from SAGA it used to be possible to import the point file with multiple points and it would create several catchment/basins areas for those points. Now, it is only possible to MANUALLY enter coordinates for only 1 point. However, for a model we're building, we need to perform this analysis 24 times (as we have 24 different points) so we need to automate this process. I tried to use Run as Batch process + calculate by expression and get the XY coordinates from another layer, however, I run into the problem that I need to reference the XY coordinates that are stored in the other layer and looks like there isn't an easy way of doing so. Any suggestions on how to do that? Tried the geomwithin(targetLayer,targetField) from RefFunctions plugin but that produces empty result  so to resume, I have two questions:   How to calculate upslope areas for multiple points? Is there a way to automatize it in the graphical modeler?


proof that the sum of two bounded, closed sets is closed

Let $A$ and $B$ be non-empty, bounded subsets of $\mathbb{R}$. Define the set:$$C = A+B =  \{ \ a \  + \ b\ | \ a \in A \ \wedge \ b \in B \  \}$$ Suppose that $A$ and $B$ are closed. Prove that $C$ is also closed.    To prove that $C$ is closed, I will prove that $C^{c}$ is open. Hence, I have to prove that every point of $C^c$ is an interior point. Let $x \in C^c$. Now let $a \in A$. Because $x \in C^c$, $x-a \notin B$. Thus, $x-a \in B^c$. Because $B$ is closed, $B^c$ will be open. Thus, $x-a$ is an interior point of $B^c$. This means that there exists an $r>0$ such that $]x-a-r,x-a+r[ \subset B^c$ . Now consider the interval $]x-r,x+r[$. Let $c \in ]x-r,x+r[$ . Then, $x-r < c < x+r$ and thus also $x-a-r < c-a <x-a+r$. Because $]x-a-r,x-a+r[ \subset B^c$ , $c-a \in B^c$. This is equivalent to $c-a \notin B$. Because this is valid for all $a \in A$, I can conclude that $c \in C^c$ and thus $]x-r,x+r[ \subset C^c$. So there exists an $r>0$ such that $]x-r,x+r[ \subset C^c$ for all $x \in C^c$. This means that all points of $C^c$ are interior points and thus is $C$ closed.    Is this a correct proof ? I could not find any errors in my reasoning but I noticed that I haven't used the fact that $A$ is closed, which makes me think that this proof is not correct. Also, I haven't used the fact that $A$ and $B$ are bounded. I also wish an explanation without the use of the term compactness, but a proof by using the definition of a closed set.


Non-user-friendly message when trying to edit post with pending suggested editions

I just tried to edit a post in stackoverflow and got the following message:    It reads:  There is a pending suggested edit in the queue, try again in a few minutes.  First of all, I understand the message. However, I don't think the way it is displayed is the most appropriate one. Actually, once I clicked on the "edit" link I got a webpage which ONLY content was the one I mentioned before. I mean, that was the source code of the page... there are not even HTML tags there! There are many ways to provide this information without making the user hit the back button of the browser. I think some options that wouldn't require to reinvent the wheel are:  Showing a message similar like the one when you click on "flag" Showing a message in a similar way like the one you get when clicking on "link"  To make it a bit clearer, this are the steps I followed and the result I got:  Opened a question  Clicked on edit Expected result: Being able to edit the post OR having a friendly message explaining why I can not edit the post Real result: I got redirected to the URL "https://stackoverflow.com/posts/[post_id]/edit" which only contained the text mentioned before. To put it in PHP terms, the webpage displayed the result of an echo of the message, just that. So, after seeing an almost-white page, the user has to click on the back button of the browser to go back to the question.


I am using ubuntu 11.10 64bit, skype was working however after running sudo apt-get autoremove skype is throwing     skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory   How can I fix this?


How to add any language keyboard in Ubuntu 16.04 ?


How to handle a native OS (Ubuntu) file upload window in selenium webdriver with python?

This is my first time here but I have already posted this question on SO. I keep getting solutions for Windows + Java and not for Linux or python for that matter.  I am using Selenium and Python to automate a file upload application for the past many hours but nothing helpful!   The HTML DOM structure for this file upload is an input tag with its type attribute value = 'file'. I know I can make use of the send_keys.   The problem is I am not supposed to use send_keys() (as per the question I am trying to solve). The assumption is there are other ways of doing it.  Can anyone suggest me alternative ways to upload the file? I do get solutions for windows but not for Linux(Ubuntu). I know there are applications/tools to automate GUI components like AutoIt but there is nothing for Linux close to AutoIt.  I can say I have done my homework to find a solution. Only after not finding anything useful, I am asking this question, please help!


Trying to do a manual backup of a 64Gb iPhone to an Mac Book Pro running Mountain Lion, iTunes stated that there wasn't enough disk space.  I deleted enough files so that Finder reports almost 95Gb free.     iTunes still states that there isn't enough space. On closer inspection, Disk Utility reports only about 20Gb free.    I've repaired disk permissions and verified and fixed the disk, booted in Recovery mode, but the reports are still the same.  I should have enough space, but clearly something is wrong here. Can someone please tell me what I can do to get the reporting correct and consistent?


How can I get flawless square gems to drop in Reaper of Souls?

Prior to Reaper of Souls, flawless square gems were the highest level gem that could be dropped.  With the expansion, Marquis gems are the normal gem pop for a level 70 character.  How can I farm flawless square gems to complete some achievements?


need help property window way zoomed out on ui

Not really a 3d question but I pressed a button and.. the property window is zoomed out a ton how can I get it back to normal I do not know what button I pressed. I have tried middle mouse button I could not find anything.


How do I effectively support old feature requests?

Clarification To me (a relatively new user) the current feature request / bug tracking system here on MSO seems to be rather chaotic and somewhat difficult to comprehend. Having had some time since originally posting this question, I think I've hammered down what I was intending to find out a bit more accurately now:  Lots of [feature-request] tagged questions have never gained a [status-*] tag (compare the  of feature request questions to the , remembering to discount ) and there are some questions have obviously gained a lot of support (votes) and have any much discussion without ever gaining a status (check the top voted of  for examples). The  look pretty comprehensive to me, as far as I can tell every request should match a status (even if it's "deferred" for "we're ignoring this until later"), but given there are many "open" feature requests how do we tell the difference between those without a status that might eventually happen (worth supporting) and those that are effectively declined (a waste of time supporting)? Is the "default" for a requests effectively the deferred tag? Or should those with no real moderator input be assumed to be declined? And, assuming a feature request hasn't been declined or otherwise completed, how do I effectively add my support to help the request along?


During iPad setup I configured Gmail as email on iPad, now I want to remove Gmail from my iPad email, how to do it?


Unable to call the Apex Callout from triggers

I have a apex Class which calls external ERP system and create/updates records there. The apex Class is like below  public class createSegment {     public class getAzureToken{         public  String getToken(){             String clientId = 'xxxx';             String clientSecret = 'xxxx';             String tenant_id = 'xxx';             String resource = 'https://dev.dynamics.com';              String reqbody = 'grant_type=client_credentials&client_id='+clientId+'&client_secret='+clientSecret+'&tenant_id='+tenant_id+'&resource='+resource;              Http h = new Http();             HttpRequest req = new HttpRequest();             req.setBody(reqbody);             req.setMethod('POST');             req.setEndpoint('https://login.microsoftonline.com/xxxx.org/oauth2/token');             HttpResponse res = h.send(req);              deserializeResponse resp1 = (deserializeResponse)JSON.deserialize(res.getbody(),deserializeResponse.class);             String atoken = resp1.access_token;             return atoken;         }     }      public class JSON2Apex {         public String dataAreaId;         public String SegmentCode;          public JSON2Apex parse(String json) {             return (JSON2Apex) System.JSON.deserialize(json, JSON2Apex.class);         }     }      public Integer createSeg() {         JSON2Apex js = new JSON2Apex();         getAzureToken gt= new getAzureToken();          js.dataAreaId = 'xxxxx';         js.SegmentCode ='Test from SF-Test1';          String jsonBody = json.serialize(js);          String bearerToken = gt.getToken();          Http http1 = new Http();         HttpRequest req1 = new HttpRequest();          req1.setEndpoint('https://dev.dynamics.com/data/Acc');         req1.setMethod('POST');         req1.setTimeout(20000);         req1.setHeader('Authorization','Bearer '+bearerToken);         req1.setBody(jsonBody);         req1.setHeader('Content-Type', 'application/json;charset=UTF-8');         HttpResponse res1 = http1.send(req1);         return res1.getStatusCode();       }     public class deserializeResponse         {             public String token_type;             public String expires_in;             public String ext_expires_in;             public String expires_on;             public String not_before;             public String resource;             public String access_token;         } }   For POC I have just hard coded the values. This works perfectly fine when I tried to execute is through Anonymously. Now I am trying to call this Apex Class from the Trigger like   trigger createSegments on Account (after insert) { createSegment h = new createSegment(); h.createSeg();        }   When the trigger is executed I get Error: Invalid Data. Review all error messages below to correct your data. Apex trigger createSegments caused an unexpected exception, contact your administrator: createSegments : execution of AfterInsert caused by: System.CalloutException: Callout from triggers are currently not supported.: Class.createSegment.getAzureToken.getToken: line 16, column 1  I tried to use the @future (callout=true) looks it works only with static method.Can anyone please help me how to handle this issue.


For all integers a, b, c, if a | b and b | c then a | c.

Is this T or F? and most importantly, why?  I'll be using any answers for a basis or completely my other questions, since my understanding  is still a little poor.


Is there a word for two persons dodging each other on the street?

While walking on a path, sometimes two person try to dodge each other. Like one guy steps left, and at the same time, other guy steps left and then switches direction and so does the other guy. Is there a word to describe this?


How to export all of my own answers into a text document?

How can I export all of my own answers but only my own answers without any comments but together with the questions into a text document?


Using pIRCBot.  Class: pIRC.java protected void onJoin(String channeljoined, String sender, String login, String hostname) {     Bukkit.getLogger().log(Level.INFO, "Channel joined: " + channeljoined + ". IRC channel: " + IRC.channel + "." );     if(channeljoined == IRC.channel)     {         Bukkit.getLogger().log(Level.INFO, "--");         for (Player player : Bukkit.getOnlinePlayers()) {             player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c[IRC]&e " + sender + "&f has joined the IRC channel."));         }     } }   My IRC class has this:  Class: IRC.java public static String channel;   Then I change the channel to a String got from a config file:  Class: IRC.java channel = this.getConfig().getString("publicchannel");   And now whenever a user joins the IRC channel it prints:   [11:03:53 INFO]: Channel joined: #MoMoMC. IRC channel: #MoMoMC.  But it won't proceed to the next if statement. Am I doing something wrong?


Does non-symmetric positive definite matrix have positive eigenvalues?

I found out that there exist positive definite matrices that are non-symmetric, and I know that symmetric positive definite matrices have positive eigenvalues.  Does this hold for non-symmetric matrices as well?


Is inline on virtual methods always useless?

Are there cases in which the inline keyword on a virtual method is not ignored by the compiler?  I am thinking for example to cases such as the following:  struct Interface {     virtual void f() = 0; };  struct Dummy : Interface {     inline virtual void f() override {} };  int main() {     Dummy a;     a.f();      return 0;   }   Can code like this be optimized?


What is the name of this sci-fi novel with a male soldier and a lesbian lizard sidekick?

I read this book in the early 2000's, but I can't for the life of me remember the title or author and it's driving me crazy!  The story is in the future. Earth and most of the galaxy has been conquered by a super-intelligent computer race who no one ever sees. The main character is a male soldier who fights as a collaborator for the occupiers. He wears armor similar to "Starship Troopers", and his main job is to suppress rebellions.  He has 2 or 3 girl servants as a reward for being an officer, whose job is to give him sex on demand. One is named Hanni (I think). His best friend is a large, hulking, lizard-like alien who is female and also a soldier. In the lizard race, only the females are intelligent. The males make a sound like "bok" when having sex. His female lizard friend isn't into males though. She likes other females.  He has another soldier friend who is female. She keeps a male servant / sex slave for her own use, who has a large nose.  He suppresses lots of rebellions, including ripping the arm off some intelligent insect species. At one planet he is on, humans are mixing with some weird bird-like species. And there is another species that is intelligent and tall, with four legs.  He goes home to Earth and back to his old room. There's a holographic picture on the ceiling which his parents kept for him. It shows a woman who masturbates when he gives it a signal. (Did I mention how much sex is in this book? LOL) There is a rebellion with his old friends back on Earth. He suppresses it, before they are killed. He thinks resistance is pointless and hopeless.  At the end, his lizard friend shows him a huge weapons cache and invites him to join a secret resistance among the soldiers. He decides to join them after all, and there is hope in his life again.  I can remember so much about this book it is amazing, but I can't find it! I would really like to re-read this book, and read some other books by this same author. If someone could help me out, I would really appreciate it! Thanks :)


'Add GRASS vector layer' button in QGIS 2.16.2 with GRASS 7.0.4?

I could not find 'Add GRASS vector layer' button in QGis 2.16.2 with GRASS 7.0.4? Can someone help?


Why is the adjugate matrix the null matrix?

I struggle to understand why if $A\in M_n(\mathbb{C}) $, $\det A=0$ and $rank A \le n-2$, then $A^*=O_n$. Could you please tell me why this claim holds? My textbook offers no proof for this.


How do you get spray paint drips off wooden desk

I decided to spray paint my desk matte black and glossy red. I spray painted the top and it was fine but I sprayed the sides and I got drips. I woke up the next morning to find the drips dry and I don't know how to get them off.  Please help its my main pc desk.


I want to split the text from the following to given format. My string format is id,quantity|id,quantity|id,quantity  Example:1,3|2,4|3,6|4,0  I want it in the below format:  Id     |       Quantity 1      |       3 2      |       4 3      |       6 4      |       0    I need exactly query to get the above result:  ANSWER IS AS BELOW  IF EXISTS ( SELECT * from dbo.sysobjects WHERE id = object_id(N'[dbo].[doubleSplit]')          AND OBJECTPROPERTY(id, N'IsTableFunction') = 1 ) DROP FUNCTION [dbo].[doubleSplit] GO CREATE FUNCTION dbo.doubleSplit (      @sourceString varchar(MAX),     @primaryDelimiter varchar(100),     @secondaryDelimiter varchar(100) ) RETURNS @tblArray TABLE    ( Id smallint IDENTITY(1,1), InventoryId varchar(MAX), Quantity varchar(MAX)   ) AS BEGIN  DECLARE @primaryIndex smallint DECLARE @secondaryIndex smallint DECLARE @primaryStart smallint DECLARE @secondaryStart smallint DECLARE @primaryDelimiterSize smallint DECLARE @seondaryDelimiterSize smallint DECLARE @primaryElement varchar(MAX); DECLARE @seondaryElement varchar(MAX); SET @primaryDelimiterSize = LEN(@primaryDelimiter) SET @seondaryDelimiterSize = LEN(@secondaryDelimiter) --loop through source string and add elements to destination table array WHILE LEN(@sourceString) > 0 BEGIN     SET @primaryIndex = CHARINDEX(@primaryDelimiter, @sourceString)     IF @primaryIndex = 0     BEGIN         SET @secondaryIndex = CHARINDEX(@secondaryDelimiter, @sourceString)         IF @secondaryIndex = 0         BEGIN             INSERT INTO @tblArray (InventoryId, Quantity) VALUES(@sourceString, '')         END         ELSE         BEGIN             SET @secondaryStart = @secondaryIndex + @seondaryDelimiterSize;             INSERT INTO @tblArray (InventoryId, Quantity)              VALUES(SUBSTRING(@sourceString, 1, @secondaryIndex - 1),                     SUBSTRING(@sourceString, @secondaryIndex + @seondaryDelimiterSize, LEN(@sourceString) - @secondaryStart + 1))         END         BREAK     END     ELSE     BEGIN         SELECT @primaryElement = SUBSTRING(@sourceString, 1, @primaryIndex - 1);         SET @secondaryIndex = CHARINDEX(@secondaryDelimiter, @primaryElement)         SET @secondaryStart = @secondaryIndex + @seondaryDelimiterSize;         INSERT INTO @tblArray (InventoryId, Quantity)          VALUES(SUBSTRING(@primaryElement, 1, @secondaryIndex - 1),                 SUBSTRING(@primaryElement, @secondaryIndex + @seondaryDelimiterSize, LEN(@primaryElement) - @secondaryStart + 1))         SET @primaryStart = @primaryIndex + @primaryDelimiterSize         SET @sourceString = SUBSTRING(@sourceString, @primaryStart , LEN(@sourceString) - @primaryStart + 1)     END END RETURN END GO  SELECT Id,Quantity FROM dbo.doubleSplit('1,3|2,4|3,6|4,0|','|',',')


Why is page state not preserved when using browser Back and Forward buttons?

This  was marked , and the reason wasn't given. The answer explained how the bug works, but not why it's not getting fixed.  Is it hard to fix? Is it expensive on the server? Anything else?


Can I launch a shell script from home screen?

There's one tweak of my phone I'm applying/removing through two some pretty simple shell scripts. But going to terminal emulator and typing the script names each time aside, the tweak actually makes on-screen keyboard unusable and may necessitate adb access to start deactivate.sh  Is there a way to launch the scripts from the home screen - just place them as icons, the way you can just double-click a .bat file on your desktop on Windows?


Which ground plane connection will perform better in terms of EMC?

In figure 12 of  EMI Design Guidelines for USB Components, I can see that VBUS and Gnd signals from the USB receptacle are bypassed with ferrite beads and then connected to their respective power and ground planes, while the USB receptable itself is tied to the ground plane at its connection points. Following this guide, my design should look like the one below:  However, after reverse engineering the PCB layout of a simple wired Razer mouse, I saw that they implemented the filtering of the ground signal slightly differently. Specifically, the ground signal from the USB cable is tied to the ground plane (no f.bead) while the USB shield* connects to the ground plane through a ferrite bead. *Noted that in this case the USB cable is not connected to the PCB via a standard micro-B USB receptable like in the first case, but instead through a permanently attatched vertical 2mm pitch 5-pin header. So when I say shield for this second case I mean the 4th pin of the Razer USB cable which is the extension of a  bundle of thin copper wires (acting as a shield) that are wrapped around the other 4 wire signals (V, D-, D+, GND). In the first case, where a USB receptable is used, the 4th pin is the ID pin meant for  , unrelated to this question. My question: Are those two methods of connecting the gnd signal to the respective ground plane similar in terms of EMC performance, or should I expect to see my board fail at the test house after following one design over the other? I would be inclined to follow the design guide had I not seen an actual product designed in a different way.


How to find the length between two points or a whole graph of a function?

You are given $f(x)$, where $f(x)$ is a function such as $3x^4-6x^2-4x+2$. You are asked to find the length of the curve between two points $(a,f(a)) \text{ and } (b,f(b))$. How would I do this for:   Polynomials $3x^2, 4x^3-5x^2-x+2$ Exponentials $e^x, 5^x$ Rationals $\dfrac{x+1}{x},\dfrac{3x^2-5x+2}{x^2+2x+2}$ Logarithmic $\ln x, \log x^3$ Trigonometric $4\sin x, 5\cos x$


How to display the same text in various parts of the document?

In a long, long, long writing. I have a piece of text that repeats in several places/sections/chapters. When I'm editing, I change 2 or 3 words in that piece of text. The changes have to be applied to all its repetitions in the document. The question is, how can I automate this?  The solution I'm looking for would be something like:  Lorem ipsum \textthatrepeatselsehwhere{This text will be shown in several places}\label{textrep1} lorem ipsum.  Lorem ipsum \displaytextoflabel{textrep1} lorem lorem.   The output should look like:     Lorem ipsum This text will be shown in several places lorem ipsum.      Lorem ipsum This text will be shown in several places lorem lorem.   The solution might be obvious but I don't know how to do it. Thanks, any help will be appreciated.


Currency Converter If statements for InputDialogs

My project is to create a currency converter and I can't seem to connect an if statement to the choices of the user.  import javax.swing.JOptionPane;  public class Test {        public static void main(String args[]){      double CanadianDollar = .9813;     double Euro = .757;     double IndianRupee = 52.53;     double JapaneseYen = 80.92;     double MexicanPeso = 13.1544;     double BritishPound = .6178;      String input;      Object[] possibilities = {"Canadian Dollar", "Euro", "Indian Rupee", "Japanese Yen",             "Mexican Peso", "British Pound"};     String currencyChosen = (String) JOptionPane.showInputDialog( null,          "What currency would you like to start with?:",          "Currency Converter",          JOptionPane.QUESTION_MESSAGE,          null,          possibilities,          null);      JOptionPane.showMessageDialog(null, "You chose to start from " + currencyChosen);      Object[] possibilitiesToChoose = {"Canadian Dollar", "Euro", "Indian Rupee", "Japanese Yen",             "Mexican Peso", "British Pound"};     String convertTo = (String) JOptionPane.showInputDialog( null,          "What currency would you like to convert to?:",          "Currency Converter",          JOptionPane.QUESTION_MESSAGE,          null,          possibilities,          null);      JOptionPane.showMessageDialog(null, "You chose to convert from " + currencyChosen + " to " + convertTo);       if (currencyChosen = "Canadian Dollar")   <- This is not working      } }


At one point Benjen Stark states that     The Wall is not just ice and stone. Ancient spells were carved into its foundations. Strong magic to protect men from what   lies beyond. And while it stands, the dead cannot pass.   However, at the beginning of the series...      ...a deadman/wight attacks Jon Snow in Castle Black, which is situated on the other side of the wall.   Also in the latest episode...      ...a wight was taken south of the wall on the back of a dragon.   These two instances seem to be at odds with Benjen's claim that the dead cannot pass the wall.  Is there any explanation for this?  EDIT:  By "the dead" I only mean the deadmen/wights/animated corpses - not the Night King or the White Walkers.  By "cross the wall" I mean anyway of going from one side of the wall to the other, including flying over, tunnelling under or passing through.


I am trying to retopo a face and I would like to animate it, making smooth facial expression if possible.  I'm not a very experienced user but I do my best and try to learn as much as i can. Having a project helps me to get motivated and learn stuff.  I've seen a few tutorials for Retopology on YouTube, I know the basics (the process and avoiding Tri and Ngons) and making loops around the important features. I'd like it in a depth real course to follow along to be sure of what I'm doing, even if it's not a free course I'm fine.  thank you for your help !


A proof in Linear Algebra with transverse matrices

$ U = \{A \in M_n\Bbb R : A^t = -A\}$ I need to show if the above subset of $M_n\Bbb R$ is actually a subspace So to show a subset is a subspace it must agree with the following criteria:     $U$ is not empty $u+v \in U$ for all $a \in \mathbb R$, $au \in U$   So my thinking is that U is not empty because if we let $A^t$ = 0 vector then $-A$ is still equal to the zero vector.  I am unsure of proving whether not criteria 2 or 3 is valid or not. Looking for some help.


Installed Ubuntu 14.04 on Mac 2013 laptop, but stuck at flashing folder and cannot use it

I have a Macbook Pro laptop, Late 2013 edition, etc. I wish to wipe out OS X and put Ubuntu 14.04 on it, since I need 14.04 for my work.  So, I put Ubuntu 14.04 into an empty USB stick . Everything there seemed to work. Next, I booted from USB. I started my laptop and was given the starting installation screen instructions, e.g. . Again, things seem to work fine and I thought I had Ubuntu 14.04 installed.  Unfortunately, upon restarting . Here's what happens with three other variations of starting the computer:  Attempt 1  When I start without the USB stick there, and click CMD+R I get the globe icon. After a few minutes, I first went to the . Unfortunately, nothing was there.    I then went to Disk Utility.    I am not sure how to interpret this screen. Note that disk0s2, disk0s3, disk0s4 are all grayed out. I think these were created from my Ubuntu installation attempt? (I actually did this installation twice, and in the second time I overrode my old installation, and before the second try, there was only disk0s2, disk0s3 listed.)  But I also see that disk0s2 has 465.57GB of capacity, whereas the disk0s3, disk0s4 have only 17.08 GB for each. Does this mean disk0s2 is where Ubuntu was installed?    There is also the OS X Base System but again I'm not sure how to interpret this and I would prefer OS X be completely wiped out so I can stick with Ubuntu 14.04.    Attempt 2  When I do the same as the previous method, except with the USB stick in there, then I see similar stuff, with the main difference being that Disk Utility now sees the flash disk:    Unfortunately, I still cannot figure out how to actually use Ubuntu 14.04 from this. The "Startup Disk" menu again shows nothing.  Attempt 3  When I start it with my USB stick inserted but don't click CMD and R. Then I get to the GNU GRUB screen where it says "Try Ubuntu without installing", "Install Ubuntu", etc. But Ubuntu is already installed on this laptop.    (Sorry for the blurry quality.)  Does anyone have advice on how I can actually run Ubuntu 14.04 from my installation?


How do I treat this "lamp" to find power dissipated?

This is my circuit. I need to find the power dissipated by Vlamp. So the lamp turns on if the Vlamp is more than 2V. When the lamp is on it has an internal resistance of 10 Ohms, and when it is off it acts like an open circuit.  How would I find the power dissipated? I know how to do it for Voltage sources and Resistors, but not elements like these.  One more thing, I already figured out that: Battery has open circuit voltage of 4V R1 = 5 Ohms R2 = 5 Ohms k = 0.2A/V When lamp on and Vlamp = 2V, Rbat = 10 Ohms   .


Unix: Is there a way to "copy" file or directory permissions?

I have two files in a directory. One has correct permissions and the other has not. Is there a way I can "copy" the set of permissions from one file to another?


Finding Polynomial Equations for $1^4 + 2^4 + 3^4 + \ldots n^4$

Find a polynomial expression for  $$ 1^4 + 2^4 + 3^4 + ... + n^4 $$  I know you have to use the big theorem but I can't figure out how you would start to compute the differences. Suggestions?


How much arguments can I pass to command?

Is there any limit of arguments that could be passed to C/C++, Python, Bash etc. program? Practical usage: pass bitmap data from/to C++ to/from Python program via arguments.


I'm using QGIS 3.4.1, and I'm trying to print 61km x 61km area map of somewhere South Korea. Then I need to send this map with west / east latitude and north / south longitude info to other person, who need to do some work on that map. Here's what I did.   First, I set project CRS to EPSG 32652, WGS84 - UTM zone 52N, because most of South Korea is in the zone 52N.   Second, I load maps from Quick Map Service plugin, ESRI map from ArcGIS Map Server layer, Openlayers plugin. I also downloaded SRTM data using SRTM downloader, and also from CGIAR-CSI for double check.   Third, I found out that all of layers that I loaded or downloaded have CRS of EPSG 3857, WGS84 - Pseudo Mercator. I intuitively thought that they should have the same CRS with project CRS. So I changed CRS of all layers to project CRS, which is EPSG 32652, WGS84 - UTM zone 52N.   Then I found out something gone wrong seriously. Distance is distorted, grids, scale bar, and ruler show unusually shorter distance than it should be. In addition, I found that lat long coordinate shown from Lat Long tools plugin is really really off from real Lat and Long coordinate. For example, typical Lat Long position of Seoul is around 37.55 N, 127.03 E. However, Lat Long position from map after map CRS conversion shows around 8.45 N, -151.53 E. Moreover, all SRTM data layer moved to really strange position.   Just in case, I repeated the same procedure from QGIS 2.18 with on-the-fly CRS transformation option on. But the same symptom occur.   I think major problem here is the CRS, project CRS and layer CRS. I think my "I intuitively thought that they should have the same CRS with project CRS. " this part is wrong, but I can't understand.   Why should I need to use WGS 84 Pseudo-Mercator CRS for layers, while using WGS 84 UTM 52N CRS for project?   And I don't know what to tell my coworker, which CRS I used for this 61km x 61km area  map.


Is it allowed to look for a job (not work) while I'm in the US under Visa Waiver Program

Disclaimer:  I know there are similar questions here already but the answers are a bit conflicting and I didn't find quite the same question I have. Most were also quite old. I know that during current COVID-19 times getting work visa is pretty much impossible for foreigners but let's please focus on the case when the country opens up more.   Question: I have been thinking about working in the US (among couple of other options) in the near future (when COVID permits hehe) but would like to also make a round trip for couple of months to see the country before. If I do decide for the US as my next work destination then can I continue using my free time during tourism as a time to also research job offers? So, is it allowed to look for job (NOT WORK) while visiting the US under the Visa Waiver Program? What I mean is that a person has a ticket to fly back home bought and is planning to switch to work visa before starting. I'd imagine no-one can prohibit the person to explore the positions while searching the internet as it isn't different from researching positions online from anywhere else? How about interviews? Online? In person? Additional question: If the case above is allowed then is it possible to switch from using Visa Waiver Program to work visa while being abroad? Not really seeing this case happening even if possible but would give a better picture of possibilities. Thanks! 😊


How to start an application on a different workspace?

I need to start a GUI application [Lotus Symphony] on a workspace different from the currently used one. [ex.: there are 4 workspaces on a GNOME desktop.]  Q: How do I do this?   p.s.: It's needed because Lotus Symphony's first start after a reboot is very, very slow, but after it's been used once, it starts very quickly. I think it caches itself. That's why I want to start it at every boot on a different workspace, so it will be fast later if I need to use it.


I need to check the current date with the date we enter in the input element.  Html code:  <input type="date" name="date" id="date>   I can get the today's date by the following code in javascript:  function todayDate() {    var today = new Date();    var dd = String(today.getDate()).padStart(2, '0');    var mm = String(today.getMonth() + 1).padStart(2, '0');     var yyyy = today.getFullYear();    let date=dd+'/'+mm+'/'+yyyy;    return date;  }   Now how to check the input date with the current date?


So I just created a blog on blogger last week and I decided to change the title of the blog. When I search my blog on google search the original title shows up instead of the new one.  I added my new blog's homepage on google webmaster and fetched my blog's homepage. However the title still has not changed. Is there an alternative method of doing this or am I stuck with the original title?


Is there an alternative to DVD-Shrink, that can compress a DVD image to a smaller size to fit on a writeable DVD?

Is there a linux alternative to the Windows application DVD-Shrink, that can compress a DVD image to a smaller size to fit on a writeable DVD?  In backing up some DVD's the ripped ISO file size is over 7000MB is there an alternative linux software, similar to Windows "DVD Shrink" that can compress this to fit on a writeable DVD which is about 4000MB


I have the javascript equation:  var sbal=pfWeight-gWeight-adjm; $("#result").html(sbal.toFixed(5));   If the result is 0, I assign the result the CSS color green. If it is not 0, I assign the result the CSS color red.  My problem is that sometimes the math comes out as -0 and thus displays as red.  I even tried   if(sbal===0){sbal=parseInt(0);}   sbal===0 returns true.   How can I work around this?    I know that  addresses WHY -0 = +0 but it does not supply and answer on how to fix the problem.


Falling into the black hole: a picture from the infinite distance

This question was bugging me for many years.  it was argued that it would take an infinite time for somebody (suppose, an astronaut) to fall into the black hole, given that it is not his time, but the time at spatial infinity (suppose it is the time on the space station). I completely agree with this result.  Now to my question. Forget about the astronaut for a moment, let's focus on the process from the point of view of the person on the space station. Imagine him immortal. Then he will live long enough for the black hole to evaporate due to the Hawking effect. But the astronaut wouldn't reach the event horizon by that point (it is taking infinitely long for him to do so). So after all he will be killed by a flash of light/particles before falling inside the black hole.  Because all frames of reference are good to go, this also holds in the frame of the astronaut. He will not experience 'nothing' when falling into the black hole. Instead, he will almost instantly (his clocks are ticking much slower) be evaporated by the Hawking radiation. Right?  There are another likely scenarios of the end of the outside world (like thermal death) which would take finitely long of the space station time. They would also destroy the astronaut before he crosses the event horizon.  It seems like these arguments also prohibit any matter to be sucked inside the event horizon. Black holes then have no horizons, they are just very dense formations of matter with scales very close to the black hole diameter, but yet larger.  What is wrong in my propositions? After all, it is commonly believed that black holes suck in the neighbouring matter.


At what time of year can I buy a bicycle for the best price?

Is there a month when new models come out and dealers discount stock like with cars?  Do they raise prices in the spring and lower them in the winter?


If $H$ is a subgroup of $G$ of finite index $n$, then under what condition $g^n\in H$ for all $g\in G$

A consequence of Lagrange's theorem in finite group theory is that $g^{|G|}=e$ for all $g\in G$.  I wonder whether this be generalized along these lines:     If $H$ is a subgroup of $G$ of finite index $n$, then $g^n\in H$ for all $g\in G$. $\qquad(\star)$   This is true when $H$ is normal, but not in general, as this counter-example shows:     $G=S_4$, $H=S_3$, $g=(234)$: $[G:H]=4$ but $g^4=g\notin H$.   A  says that, when $\gcd(|H|,n)=1$, $(\star)$ happens iff $H$ is normal.  Can $(\star)$ be true when $H$ is not normal? What other conditions on $G$, $H$, and $n$ ensure $(\star)$ ?


can I get transit visa in UAE on arrival at the airport?

i am from Pakistan and wish to travel from lahore to jeddah via uae along with my wife and son.  can i get visa on arrival at the airport?  Also tell me the visa fees


Do web browsers use different outgoing ports for different tabs?

In a web browser that supports having multiple tabs, such as Firefox, do different tabs that go to different website domains use a dedicated port for each domain?.  Or does the browser use a single port for managing all tabs and therefore all domains?.


Are there any rules for genitive case not indicating possesion?

My teacher, a native English speaker, was quite puzzled when I asked this and could not answer this question. Why there is:  child seat  but children's love  //why these are different developer's conference   //why not developers conference, they do not own it rooms' furnishings  The question is, how to tell when to use the genitive and when simple noun?


Is there any other way to determine result than throwing dice?

I know that you can go full narrative and not use dice at all, but that's not what I'm asking about. I want to know any other (pseudo)random way to determine the result of action?  My friend suggested drawing cards of deck, but it's just dice mapped to D13/D52. You could use some random generator, but still, it is just an Dn.  Is there any crafty way, that's not (easily? at least?) mappable to dices, or if we want some randomness in our games we're stuck with those little bastards?


How can I Customize my ubuntu to look like windows

How can I customize my Ubuntu 12 to look like windows


how to remove the People menu from Google Chrome

I am the only user of my computer.  I think the People menu in Chrome is not necessary for me and slow me down.  How can I get rid of it?  I tried to remove all users.  But the menu is still there and I lost all my browing history :(


Do not allow giving minus one for new user questions

I always see Stack Overflow users giving -1 to new users' questions. This is not how you welcome a new user to the community. A new user does not know the rules yet.    I suggest that if one wants to give -1 to a new user, you prevent that and ask the downvoter to write a comment instead. new user = 2 first questions    I see the credit rating on my question is now at -9?  My question, is she not well formed or formatted? If you don't agree with the content of a question do you down-rate it? If an Ubuntu user asks a question that might not be reasonable, will you also down-rate it?  No. You post an answer that will present your thinking and correct him? I think that is part of the problem. When you first go to a community like Facebook, and you don't know the faces, you don't feel like any of those people are your relations. Newbies exist here as well, especially in a professional community.    First, welcome the new user in more appropriate way. And most importantly, force them to see/read how to post a good question.


Query for records modified last 15 minutes

How can I set up a query to search for records that were modified in the last 15 minutes? This is being used in Jitterbit dataloader not using apex. From most posts I have seen this doesn't seem possible.  Another idea I had was use a formula that would mark a boolean field as true if record was modified in last 15 minutes. However, I had no luck with the formula either.  Does anyone have a workaround or solution?


How do I make sure 2 instances of my class have the same hash code?

How do I ensure two different instances of a class have the same hash code? So when one of them is in a HashSet, the Contains function returns true.  Here is my code:  public class Position  {      public int row, col;      public override bool Equals(object obj)      {          return ((Position)obj).row == row && ((Position)obj).col == col;      }  }   And here is how I use it:  HashSet<Position> hash = new HashSet<Position>(); Position position = new Position(3, 1); Position position2 = new Position(3, 1); hash.Add(position); Console.WriteLine(hash.Contains(position2));


For my following code, the frame is not working. Latex gives a lot of errors, such as      Undefined control sequence \end{frame},    Illegal unit of measure (pt> inserted) \end{frame}   I cannot find any error with my code. Can any one suggest where is the bug?  \documentclass{beamer} \usepackage{listings} %used for source code \begin{frame}     \frametitle{Matlab Generated Plot}      \begin{columns}[onlytextwidth]         \begin{column}{0.45\textwidth}             \begin{block}{Code}                 \begin{lstlisting}                     for i:=maxint to 0 do                     begin                     { do nothing }                     end;                     Write('Case insensitive ');                     Write('Pascal keywords.');                 \end{lstlisting}             \end{block}         \end{column}         \begin{column}{0.45\textwidth}         Test         %\input{fig_x2}         \end{column}     \end{columns} \end{frame} \end{document}


Show that every ideal of the matrix ring $M_n(R)$ is of the form $M_n(I)$ where $I$ is an ideal of $R$

Suppose $R$ is a commutative ring. Show that every ideal of $M_n(R)$ is of the form $M_n(I)$  where $I$ is an ideal of $R$.   I have spent 30 minutes on this question and I still got nowhere. Can anyone give some hints ?


How can I detect when an Exception's been thrown globally in Java?

How can I detect when an Exception has been thrown anywhere in my application?  I'm try to auto-magically send myself an email whenever an exception is thrown anywhere in my Java Desktop Application.  I figure this way I can be more proactive.  I know I could just explicitly log and notify myself whenever an exception occurs, but I'd have to do it everywhere and I might(more likely will) miss a couple.  Any suggestions?


Rolling back a completely changed question

was originally asked August 9, and received answers. A month later, the OP  the question, invalidating the existing answers. I rolled it back, and left a comment to say that a new question should be opened, but the OP changed it back saying "There is no rule about it, so you can't edit my post."  There is also a bounty on this question, making things more interesting.  What are the guidelines on completely changing a question or rolling back changed questions? Was I out-of-line rolling back the question?  I have no desire to get into an edit war, so I'm not going to touch the question again. If a moderator wants to get involved, great.


I hear that people use the average and the mean of some numbers, interchangeably. As far as I know, the average is the sum of numbers divided by the number of data points but the mean is a weighted average and it is also called the expected value. Can somebody make it clear that when to use the average and when to use the mean?


B b = new B();   Here b is strong reference, then we set b as null.  b = null;   then GC will reclaim the object which referenced to b when GC happens.  My question is what is the point of using weak reference? as i understand it, the only reason to use weak reference, so we can still get the object even after we set reference as null before GC reclaims it. am i correct?


How to show $\alpha\int_a^cf(x)dx+\beta \int_c^b f(x)dx =0$ means $f(x)=0$ everywhere $?$

Question :  Let $$f\ :\ [a,b]\rightarrow \mathbb R$$   be  continuous . And  there  exist  constants  $\alpha$  $\beta$  such  that  $\forall c\in [a,b]$  $$\alpha \int_a^c f(x)dx +\beta \int_c^b f(x)dx =0 $$   Prove  that  $f=0$  allover  $[a,b]$.  Attempt :(not much useful )   Since  the  equation  holds  for  all  $c\in [a,b]$   , if  take  $c=a$  then  we  have $$\beta \int_a^b f(x)dx =0 $$  And  taking  $c=b$  we  get $$\alpha \int_a^b f(x)dx=0 $$  See  if  both  $\alpha=0$  and  $\beta=0$  hold  then  there  is  nothing  to  do . If  only  one  of  them  is  $0$   and  the  other  is  non-zero  then  from  the  last  two  equations  we  get $$\int_a^b f(x)dx =0 $$ and  this  does   not  ensure   $f$'s  being  identically  $0$  on  $[a,b]$ (for  example : $f(x)=sin x$  and $a=0$,$b=2\pi $ ) .   So  our  only  possibility  is  that  both $\alpha \neq 0$  and $\beta \neq 0$  must  hold .  Now  I  cannot  proceed  any  further  from  this  point . Please  give  me  some   hints  as  to  what  to  do  next .  Thaanks.


I'm studying orientability of manifolds currently and I'm having trouble to prove the following: $M\times N$ is orientable iff $M$ and $N$ are orientable.   I am able to prove that the product is orientable if components are orientable (chart is $\{(U_\alpha\times V_{\beta},\phi_\alpha\times \psi_\beta):(\alpha,\beta)\in A\times B \}$, and $\det J=\det J_1 \det J_2>0$ by Cauchy-Binet's theorem), but I don't know how to prove the other direction.   So why this holds: if $M\times N$ is orientable, then $M$ and $N$ are orientable?  Thanks in advance.


What story this is? Boy named Arthur steals bananas with his helibackpack

I don't really remember much, since it was when I was in the 2nd grade, but I read a story in which there was a boy named Arthur. I don't remember the plot nor many of the other characters, but there was a scene where Arthur steals a batch of bananas with his helibackpack? The whole setting was sort of fantasy-ish, and also the illustrations were a bit steampunk but also primitive. Also, the antagonist of the story wanted to murder cheese wheels (the cheese were alive. I know, this was a strange book), so that he could make a cheese fondue. Anyone recognize this book?


Show that the conditional statement is a tautology without using a truth table

I have been attempting to use identities to get to the answer but I am unable to get anywhere. Here is the equation I am trying to prove tautological without using truth tables:  $[(p\rightarrow q) \land (q \rightarrow r)] \rightarrow (p \rightarrow r )$  And here is my attempt at using identities to work my way up. (a link to a page with a table of logical equivalence identities: )  $\lnot [(p \rightarrow q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $\lnot [(\lnot p \lor q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $[\lnot (\lnot p \lor q) \land \lnot (q \rightarrow r)] \lor (p \rightarrow r)$  $[(p\land \lnot q) \land (q \land \lnot r)] \lor (p \rightarrow r)$  I don't know where to go from there.


Prove that the quotient ring $\mathbb{C}[x,y]/(x^2+y^2-1)$ is a unique factorization domain.   I am trying to prove first it is a principal ideal domain. However I am really stuck on this problem


I need a book that's beneficial for me and not something that contains what i have already read.  I have a strong maths,physics background and I have good c++ programming skills  and i  want to start game programming in 2d because after a lot of research on net people recommend not to jump in 3d directly.  Also I don't want to study from online tutorials like those in SFML because there is lot of knowledge scattered on the net but what i want to study from a good book because in the book all knowledge is in one place   I have also done research that books like Beginning 2d game programming by Charles Kelly,Game Engine Architechture,Game Coding Complete,Advanced 2d game development by Jonathan Harbour are all good But I can Only Buy one at the moment and i already know c++,physics and maths pretty well (dont know graphics though) so which one is the right one for me. So please guide me Thank You


Prove G is a group given properties of G

Let $G$ be a set with the operation $*$ such that:   $G$ is closed with respect to $*$ $*$ is asociative There exists an element $e \in G$ such that $e*x=x$ for all $x\in G$ Given $x \in G$, there exists $y\in G$ such that $y*x=e$   The axioms of closure and asociativity are satisfied by the hypotesis 1 and 2. Now it is left to prove that $x*e=x$ and $x*y=e$ to conclude $G$ is a group. I've made some sustitutions to try to get the commutative property on those produts but I don't get a way to achieve it. These set of suppositions are then stronger than the group definition as they can be deduced from these ones right? What shoud I compute to prove $G$ is a group?


why cant we use ,>= relational operators on String?

I want to know why we cant use <, <=, >,>= relational operators on String literals.   import java.util.*; public class Coffee{     public static void main(String args[]){         String s1="Cat";         String s2="Dog";         System.out.println(s1<s2);     } }   gets an error " operator < cannot be applied to java.lang.String" why?  can't it compare like this C < D so true???  Can anyone explain why?? Thanks in advance.. :)


Show that $\left\{A\subset\Omega: A~\text{ is countable or }A^C\text{ is countable}\right\}$ is a $\sigma$-algebra

Let $\Omega$ a set and     $$ C=\left\{A\subset\Omega: A~\text{ is countable or }A^C\text{ is countable}\right\}. $$     Show that $C$ is a $\sigma$-algebra and that     $$ \sigma(\left\{\left\{ x\right\}: x\in\Omega\right\})=C. $$      Hello!  First I have to show that $C$ is a $\sigma$-algebra. Here are my results; I have some problems to finish the proof.  (1) If $\Omega$ is countable, then $\Omega\in C$. If $\Omega$ is not countable, then $\Omega^C=\emptyset$ is. So in any case $\Omega\in C$.  (2) Consider $A\in C$. If $A$ is countable, then $A^C$ is in $C$, because $(A^C)^C=A$ is countable then. If $A$ is not countable, it has to be by definition $A^C$ countable (otherwise $A$ could not be in $C$), so $A^C$ in $C$.  (3) Consider $A_1,A_2,\ldots\in C$. First case: All $A_i, i=1,2,\ldots$ are countable. Then $\bigcup_{i\geq 1}A_i$ is countable as countable union of countable sets. So $\bigcup_{i\geq 1}A_i\in C$. Second case: All $A_i, i=1,2,\ldots$ are not countable. Then all $A_i^C, i=1,2,\ldots$ are countable and for any $i\in\left\{1,2,.\ldots\right\}$ it is $$ \left(\bigcup_{i\geq 1}A_i\right)^C=\bigcap_{i\geq 1}A_i^C\subset A_i^C $$ which means that $\bigcap_{i\geq 1}A_i^C$ is countable. So it follows that $\bigcup_{i\geq 1}A_i$ is in $C$, because its complement is countable.  Now what is with the third case, that some $A_i$ are countable and others not? Do not know how to handle it.  Overmore, I have problems to show $\supset$ of the identity that is to show. The other implikation $\subset$ follows, because $C$ is a $\sigma$-algebra (which I have not completely shown) and $\left\{\left\{ x\right\}: x\in\Omega\right\}\subset C$.    So would you please help me to finish point (3) (case 3) and the implication $\supset$?


Adjusting table size with adjustbox but without changing the font

I have the following table which I have readjusted using adjustbox. However, the font size is too small now. How to solve this issue? \begin{table}[htbp]   \centering   \caption{Add caption}   \begin{adjustbox}{width=\textwidth}     \begin{tabular}{rrrrr}     \toprule     \toprule           &       &       &       &  \\ \cmidrule{2-5}          & \multicolumn{1}{l}{Professional, Managerial, Technical} & \multicolumn{1}{l}{Clerical, Sales} & \multicolumn{1}{l}{Production, Operators} & \multicolumn{1}{l}{Service} \\ \cmidrule{2-5}    \multicolumn{1}{l}{\textit{Non-routine cognitive}} &       &       &       &  \\     \multicolumn{1}{l}{O*NET non-routine cognitive analytic} & \multicolumn{1}{c}{1.19} & \multicolumn{1}{c}{-0.30} & \multicolumn{1}{c}{-0.38} & \multicolumn{1}{c}{-0.93} \\           & \multicolumn{1}{c}{(0.43)} & \multicolumn{1}{c}{(0.69)} & \multicolumn{1}{c}{(0.67)} & \multicolumn{1}{c}{(0.98)} \\     \multicolumn{1}{l}{O*NET non-routine cognitive interpersonal} & \multicolumn{1}{c}{1.03} & \multicolumn{1}{c}{-0.34} & \multicolumn{1}{c}{-0.38} & \multicolumn{1}{c}{-0.42} \\           & \multicolumn{1}{c}{(0.87)} & \multicolumn{1}{c}{(0.65)} & \multicolumn{1}{c}{(0.82)} & \multicolumn{1}{c}{(0.75)} \\     \multicolumn{1}{l}{\textit{Routine cognitive and manual }} &       &       &       &  \\     \multicolumn{1}{l}{O*NET routine cognitive} & \multicolumn{1}{c}{-0.23} & \multicolumn{1}{c}{0.45} & \multicolumn{1}{c}{0.19} & \multicolumn{1}{c}{-0.52} \\           & \multicolumn{1}{c}{(0.81)} & \multicolumn{1}{c}{(1.09)} & \multicolumn{1}{c}{(0.69)} & \multicolumn{1}{c}{(0.91)} \\     \multicolumn{1}{l}{O*NET routine manual} & \multicolumn{1}{c}{-0.86} & \multicolumn{1}{c}{-0.48} & \multicolumn{1}{c}{0.98} & \multicolumn{1}{c}{0.05} \\           & \multicolumn{1}{c}{(0.57)} & \multicolumn{1}{c}{(0.64)} & \multicolumn{1}{c}{(0.66)} & \multicolumn{1}{c}{(0.69)} \\     \multicolumn{1}{l}{\textit{Non-routine manual }} &       &       &       &  \\     \multicolumn{1}{l}{O*NET non-routine manual} & \multicolumn{1}{c}{-0.81} & \multicolumn{1}{c}{-0.59} & \multicolumn{1}{c}{0.95} & \multicolumn{1}{c}{0.14} \\           & \multicolumn{1}{c}{(0.55)} & \multicolumn{1}{c}{(0.51)} & \multicolumn{1}{c}{(0.76)} & \multicolumn{1}{c}{(0.47)} \\           &       &       &       &  \\     \bottomrule     \end{tabular}%     \end{adjustbox}   \label{tab:addlabel}% \end{table}%


I'd like to delete my private beta account on world building. However, the delete link on the profile page is not there. Is this a bug or is it intentional?


How do I force Windows to check for updates?

After a fresh Windows install – XP or 7 – how can I "force" Windows updates?   I don't want to have "old" Windows updates after a week, so could it be done in "one step"? Are there any "magical" commands that force Windows to check for updates, and if there are any, install them?


in blender 2.8 API get face selection orientation and apply to another object, weird result

The cone has it's tip going up the Z axis.  The goal is to have the cone hv it's Z axis up facing the same way the selected face's normal do.  When i run the script, the orientation was a bit off.    Code here:  import bpy import bmesh import mathutils  # Get the active mesh (assumes starting in edit mode) obj = bpy.context.edit_object mw = obj.matrix_world.copy() bm = bmesh.from_edit_mesh(obj.data) # for this example jmake a face active face = bm.select_history.active o = face.calc_center_median() # calculate the axis dif in local coords  axis_src = face.normal # local z-axis axis_dst = mathutils.Vector((0, 0, 1))  matrix_rotate = mw.to_3x3()  matrix_rotate = matrix_rotate @ axis_src.rotation_difference(axis_dst).to_matrix() matrix_translation = mathutils.Matrix.Translation(mw @ o)  obj2 = bpy.context.view_layer.objects.get("Cone") obj2.matrix_world = matrix_translation @ matrix_rotate.to_4x4()


event does not refire after firing once?

I have done attaching 3 events mouseenter mouseleave click, and they all fire in the first attempt. However, after this first time firing, as I commented above, I prepend a .shape-top.interactive element when click is fired after 0.3s in order to make these events be able to refire, but then nothing happen with mouseenter (the .hover is not added), then as a result mouseleave click do not fire too. Where does it go wrong here? see snippet below :   var shape_placed = `
<svg style="width: 80%; height: 80%" viewbox="0 0 63 63" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="31.5" cy="31.5" fill="#ff7f00" id="svg_1" rx="30" ry="30" stroke="null" stroke-width="1.5"></ellipse> </svg>
`; var shape_top = `
<svg style="width: 80%; height: 80%" viewbox="0 0 63 63" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="31.5" cy="31.5" fill="#ff7f00" id="svg_1" rx="30" ry="30" stroke="null" stroke-width="1.5"></ellipse> </svg>
`;  $(".shape-top.interactive").on({     "mouseover": function(){         $(this).css({"transform": "", "transition": ""}).addClass('hover');     },     "mouseout": function(){         $(this).removeClass('hover').css({"transform": "translate(0px,0px)", "transition": "all 0.2s ease-in-out"});         setTimeout(function() {$(this).css({"transform": "", "transition": ""});}, 0);     },     "click": function(){         $(this).css({"transform": "translate(0,-94px)","transition": "transform 0.3s ease-in-out"});         setTimeout(function() {             $('.shape-deck').find('.shape-top.interactive').remove();             $('.shape-deck').prepend(shape_top); // a .shape-top.interactive element is prepended but the event does not fire             $('.shape-slot').html('').append(shape_placed);         }, 300);     } }); .shape-deck{     width: 63px;     height: 63px;     display: inline-block;     margin: 2px 20px 2px 0px;   }      .shape-top{     background-color: #f8f8f5;     border-radius: 5px;     width: 63px;     height: 63px;     display: flex;     align-items: center;     justify-content: center;     }    .shape-top.interactive{     z-index: 5;     cursor: pointer;   }      .shape-top.static{     z-index: 3;     box-shadow: rgba(108,108,108,.56) 0 3px 2px 0;   }    .shape-top,.shape-middle,.shape-bottom{     position: absolute;     user-select: none;   }    .shape-slot{     background-color: #d6d6d0;     border-radius: 5px;     width: 63px;     height: 63px;   }      .hover{     box-shadow: rgba(108,108,108,.56) 0 3px 2px 0;     width: 67px;     height: 67px;     transform: translate(-4px,-5px);     transition: all 0.2s ease-in-out;   }

<svg style="width: 80%; height: 80%" viewbox="0 0 63 63" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="31.5" cy="31.5" fill="#ff7f00" id="svg_1" rx="30" ry="30" stroke="null" stroke-width="1.5"></ellipse> </svg>


What happened to Dolores Umbridge after the end of Deathly Hallows? Was she punished?


Today a friend told me the equality: $2^3 + 1 = 3^2$, and I wondered if there exist more solutions to the general problem $$x^y + 1 = y^x$$ where $x$ and $y$ are integers. Some research led me to the result for $x^y = y^x$, which has no integer solutions except $x = 2$ and $y = 4$ (assumed $x\neq y$). Is this a related result, or do more integer solutions exist?


Why is it not showing the correct measurement?

Newbie here learning Blender.   Could someone point out what i have done wrong? the measurement unit is not showing the correct measurement of the object, the width of the box is suppose to be 180mm but when i click on to show measurement its written there 500mm instead as you can see in the picture.


Suggestion for a functional equation $f'\left(\frac{a}{x}\right)=\frac{x}{f(x)}$ where $f:(0,\infty)\to(0,\infty)$ is differentiable

I want to solve the following functional equation:     Find all differentiable functions $f : (0,\infty) \rightarrow (0,\infty)$ for which there is a positive real number $a$ such that $$f'\left(\frac{a}{x}\right)=\frac{x}{f(x)}$$ for all $x > 0$.   I have noted that the function $f$ is increasing but i cannot go any further Any suggestions?


It would be a very useful idea to be able to import PEAR projects that somebody maintains to their careers.stackoverflow.com profile. Most of what is required could be gleaned from the user specific rss profile URL; this takes the form of {username}.rss


Meet-in-the-middle with checking complexity

In regards to meet in the middle type attacks, I have been considering the amount of operations in order to successfully find a key given two sets of plaintext / ciphertext pairs. All of the sources I have checked have stated that the maximum number of trials that are needed is $2^{n+1}$, however this does not seem to take into account the operations needed to validate key guess.  So taking 2DES as an example where one encryption has an effective key size of 56 bits. A meet in the middle attack against 2DES would need $2^{56}$ encryption plus $2^{56}$ decryption operations resulting in $2^{56}$ possible key matches. However each potential key match would then need to be verified on a second (or more) plaintext / ciphertext pair, adding another two operations to verify each match. The result is a maximum of $4 \times 2^{56}$ operations.  Is there a reason the checks are not included in this attack? Or is there a flaw in my thinking here?


How can I transform the elliptic curve $E/\mathbb{C}$ of the form $$y^2=4(x-e_1)(x-e_2)(x-e_3)$$ with $e_1>e_2>e_3\in\mathbb{R}$ roots of $E$ into a Weierstrass-Form $y^2=x^3+ax+b$?


Is there a way to find out the users with the highest reputation, in a given location? For example, I want to know who is the highest-ranking user in Argentina. It'd be interesting to find out the reputation distribution as a function of location.


error: duplicated database entry using pacman

I issue  $ pacman -Su :: Starting full system upgrade... error: duplicated database entry 'python2-cairo'  there is nothing to do   So I have a look at /var/lib/pacman/local  $ ls /var/lib/pacman/local/ | grep cairo cairo-1.15.12-1 cairomm-1.12.2-2 python2-cairo-1.17.0-1 python2-cairo-1.17.0-2 python-cairo-1.17.0-2   How can I:   See why python2-cairo-1.17.0-1 and python2-cairo-1.17.0-1 are both installed (what packages depend on them) Get rid of python2-cairo-1.17.0-1 Fix the duplicated database entry error...


A function which is periodic and integrable

Suppose $f(x)$ is periodic with period $l$ and integrable. Prove that, for any a,  $\int_{0}^{l}$$f(x+a)$dx = $\int_{0}^{l}$$f(x)$dx  I tried to change the values and define y=a+x so that dy=dx and the limits of the integrals are as we want.


How the size of memory allocated to structure is calculated?

#include <stdio.h>  int main() {   struct name   {     int x;     struct name *ptr;   };    struct name a;   printf("size is %d",sizeof(a));   return 0; }   The result of this code is 16 bytes.How compiler has calculated the size of *ptr?


I have the following array  myArray = ["zell", "allen", 34, 223344, age , "Stree 45"]   i need to delete every position which be length less than 4  in this case the position 2 and 4  I wrote      for(var i=0; i<myArray.length; i++){         if(myArray[i].trim().length<3){         myArray.splice(i,1);          }     }   but works only with the first one, I need with every one  thanks


Is mathematical rigour irrelevant in most physics fields?

Are mathematical notions like closed sets, limits of sequences, measures, and function spaces basically irrelevant in the day to day work of a physicist? Naturally, such concepts are the foundations upon which everything stands in both mathematics and physics, but do physicists need to concern themselves with the fine details of these concepts in their daily work or can they 'get away with' not having to use them while performing research?  Particularly in the areas of solid state physics, quantum mechanics, relativity, optics, and electromagnetism. Do any/some/all of these fields regularly/sometimes/never have to go that level of mathematical rigour? If these concepts do get used regularly in some particular fields, it would be great to hear some examples of how they arise and why they are necessary.


"Symbolic link not allowed or link target not accessible" / Apache on CentOS 6

I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files:  [root@localhost html]# ls -l total 4 -rwxrwxrwx. 1 root root  0 Sep 18 20:16 index.html -rwxrwxrwx. 1 root root 17 Sep 18 20:16 index.php lrwxrwxrwx. 1 root root 24 Sep 18 20:19 refresh-app -> /home/billy/refresh-app/   My httpd.conf has this:  <Directory "/">     Options All     AllowOverride None     Order allow,deny     Allow from all </directory>   The target of the symbolic link has permissions which should allow apache to read anything it wants:   [root@localhost billy]# ls -l total 40 (Some entries were omitted because the list was too long drwxr-xr-x. 7 billy billy 4096 Sep 18 20:03 refresh-app   I've also tried disabling SELinux by changing /etc/selinux/conf:  SELINUX=disabled   Yet no matter what I do, when someone tries to go to that link, http://localhost/refresh-app/, I get a 403 FORBIDDEN error page and this is written in the /var/log/httpd/error_log:  Symbolic link not allowed or link target not accessible   Why can't Apache access the target of the symlink?


Can you ready an action for "immediately before my next turn"?

I have two actions that I want to do, one right after the other. I want to try to avoid anything happening between the two actions that could interfere with my plan. What I want to do is, on one turn,  the first action with a trigger of "immediately before my next turn." (Or, equivalently, "at the end of the turn of the creature before me.") That way, right after my readied action goes off, it will be my turn again, and I can do my second action. Is this allowed?


I am hoping this is not a dumb question, but I have looked around and not knowing this is really bugging me.  I have heard many people talk about a "Toon" or a "Character", and a few times of a "Sprite", to refer to their fictional characters they play in the game.  I want to know if one of these are more correct than the other?  I have heard more people and websites refer to them as Characters, rather than a 'toon', but what is the difference, if any?


Turning off the two factor authentication on an iphone 8 plus

How can I turn off the two factor authentication on an iphone 8 plus.


Continuity $\Rightarrow$ Intermediate Value Property. Why is the opposite not true?    It seems to me like they are equal definitions in a way.    Can you give me a counter-example?    Thanks


I can't run maya 2017 on ubuntu 18.04.1 (undefined symbol: EVP_CIPHER_CTX_init)

When I try to run Maya I get:  gravit@Gravit-PC:~$ sudo /usr/autodesk/maya2017/bin/maya.bin  Initialized VP2.0 renderer {  Version : 2016.3.18.11. Feature Level 5.  Adapter : GeForce GT 1030/PCIe/SSE2  Vendor ID: 4318. Device ID :   Driver : 4.6.0 NVIDIA 390.87.  API : OpenGL V.4.6.  Max texture size : 16384 * 16384.  Max tex coords : 32  Shader versions supported (Vertex: 5, Geometry: 5, Pixel 5).  Shader compiler profile : (Best card profile)  Active stereo support available : 0  GPU Memory Limit : 2048 MB.  CPU Memory Limit: 7524.27 MB. /usr/autodesk/maya2017/bin/maya.bin: symbol lookup error:  /usr/autodesk/maya2017/bin/../lib/libOGSDeviceOGL4-16.so: undefined symbol:  EVP_CIPHER_CTX_init   I used this instruction   When I try solution from here:   I get this:   gravit@Gravit-PC:~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/autodesk/maya2017/lib/libssl.so.10 ln: failed to create symbolic link '/usr/autodesk/maya2017/lib/libssl.so.10': File exists


How can one securely generate an asymmetric key pair from a short passphrase?

Background info: I am planning on making a filehost with which one can encrypt and upload files. To protect the data against any form of hacking, I'd like not to know the encryption key ($K$) used for a file, so the user will have to asymmetrically encrypt $K$ and send it as well. The reason for this double encryption is that you can still share (individual!) files with other accounts by encrypting $K$ with the public keys of those users, too.  My problem is: How can a user can get a public and private key without the server saving/knowing the private key and without the user having to remember a passphrase of 250 hex characters?  Question: Is there a way to derive a key pair from a password, like PBKDF-2 does for symmetric encryption? Suggestions on rearranging the cryptographic steps in an easier way are welcome, too.  Alternatively: It is also possible to encrypt the private key with a PBKDF-applied password and store it on the server, but I'd like to keep things 'simple'. ;)  Note: At this point I don't care if it requires RSA, ECC or an obscure cryptography scheme.


Why 10Log(p1/p2) and 20Log(v1/v2)? Why not just 10Log(x1/x2)?

Based on my very basic current understanding of decibels in electronics, it is said that I should use the db = 10Log(p1/p2) formula if I want to calculate the power ratio in db between two values and the db = 20Log(v1/v2) formula if I want to calculate the voltage (or current) db ration between two values.  Although I understand how these formulas are derived, I don't understand why we need two formulas (one for power and one for voltage), are two formulas really necessary? I am asking this because as far as I understand, the calculated db value by itself is just a ratio between two values and if that is the case, isn't a ratio just a ratio and nothing more?  In other words, in my head, a doubling of power or doubling of voltage is the exact same thing! Both values are being doubled so I would expect the same db ratio result from both comparison (power and voltage). Below are two examples:  Example for power:  P1 = 200; p2 = 100;  db = 10Log(p1/p2) = 3 db.   Example for voltage:  v1 = 200; v2 = 100;  db = 10Log(v1/v2) = 3 db ... (notice not using 20Log(v1/v2) formula here)   The logic above makes sense to me because I see doubling as doubling, it does not matter to me if we are doubling power or doubling voltage, both measurements are being doubled so why should't they have the same db value? Specially since we already specify watts or volts on the db units result (dBm, dBv dBu, dBc, etc)?  What am I missing?  Thanks.


The number of ways in which $3$ men and their wives can be arranged in a line such that none of the three men stand in a position that is ahead of his wife  what i try  let men be $M_{1},M_{2},M_{3}$ and wives be $W_{1},W_{2},W_{3}$   arrangements as   (i) $M_{1}W_{1}M_{2}W_{2}M_{3}W_{3}$ or   (ii) $M_{1}M_{2}M_{3}W_{1}W_{2}W_{3}$  ways total is $1+2!\cdot 3!\cdot 3!=73$  but original answer is different from mine How do i solve it Help me plese


How to customize the background/border colors of a grouped table view cell?

I would like to customize both the background and the border color of a grouped-style UITableView.  I was able to customize the background color by using the following:  tableView.contentView.backgroundColor = [UIColor greenColor];   But the border color is still something I don't know how to change.  How do I customize these two aspects of the grouped-style table view?


How do I create an if statement that sets an individual variable equal to at least one of my array elements

I have a line of code that is supposed to act as a check for if the user inputs a value that isn't within my array.  I made an array with all valid inputs and then made and if statement that checks this.   var productCode = ["LT","ST","DC","LC","PR","SP"];  var productChosen = prompt("Choose a product code, LT, ST, DC, LC, PR, or SP");  if ( productChosen === productCode) {  etc.. }  else {  alert("Please input a valid product code"); }   It always goes to the else statement.


I want to find the limit of the sequence $((1+\frac{1}{n})(1+\frac{2}{n})\ldots (1+\frac {n}{n}))^{\frac{1}{n}}$. Applying GM$\leq AM$ we can show that limit of this sequence is less than or equal to $\frac{3}{2}$. Also we can show that this limit is greater than or equal to $1$. But this will not help. How to proceed? I am not getting any idea.


How to suspend particular user in Ubuntu 12.04

I searched but could not find how to suspend particular user in Ubuntu 12.04. I found the following option:  dbus-send --system --print-reply \     --dest="org.freedesktop.UPower" \     /org/freedesktop/UPower \     org.freedesktop.UPower.Suspend   However suspend the current user. I want root user to suspend another user. How to do this ?


Linux Drush install error: Undefined class constant 'MYSQL_ATTR_SSL_CA' in phar:///usr/local/bin/drush/lib/Drush/Sql/Sqlmysql.php, line 56

I tried installing Drush with both methods listed in the drush.org documentation. I think they might be conflicting with each other if that's possible.   When I run composer global require drush/drush all the components appear to install correctly. However when I change to a Drupal site (Using XAMPP, /opt/lampp/htdocs/sitefolder) and run drush status I get the following error:      PHP Fatal error:  Undefined class constant 'MYSQL_ATTR_SSL_CA' in   phar:///usr/local/bin/drush/lib/Drush/Sql/Sqlmysql.php on line 56   Drush command terminated abnormally due to an unrecoverable error.   [error] Error: Undefined class constant 'MYSQL_ATTR_SSL_CA' in   phar:///usr/local/bin/drush/lib/Drush/Sql/Sqlmysql.php, line 56   I do have the following line in my ~/.bashrc:  export PATH="$HOME/.composer/vendor/bin:$PATH"  Unfortunately I don't know how to troubleshoot from here, as there doesn't seem to be an easy way to uninstall Drush via the main method (), which didn't seem to work for me. composer global remove drush/drush does appear to run successfully.  Thanks in advance.


Linear independence of difference of vectors $v_1-v_2,v_2-v_3,v_3-v_4,v_4-v_1$

Suppose there is a set of vectors $\{v_1,v_2,v_3,v_4\}$. Are $v_1-v_2,v_2-v_3,v_3-v_4,v_4-v_1$ linearly independent?  If $v_1,v_2,v_3$ and $v_4$ are linearly independent, then $v_1-v_2,v_2-v_3,v_3-v_4,v_4-v_1$ span the same subspace and the dimension is the same. So, $v_1-v_2,v_2-v_3,v_3-v_4,v_4-v_1$ are linearly independent. However, the question does not provide whether or not $v_1,v_2,v_3$ and $v_4$ are linearly independent so I'm lost.   Is this question missing a necessary condition to answer or am I missing something? Thank you in advance.


i want to learn single variable calculus i completed schooling and i love calculus for now i am focusing on single variable calculus i tried many books like Calculus - "A Complete Course 7th ed - R. Adams, C. Essex (Pearson Canada, 2010) BBS" and Dawkins part one and two but they feel like pretty basic to me then i got to know about spivak that book is really tough i cant solve most of it and no solutions are available i learned all of calculus on my own we dont have good teachers here and i cant buy books because they are not available here i just download them from torrent if its available so i have a real problem here so what i want is a book that covers all of single variable calculus differential equation is not necessary i am thinking of learning it separately so what i want is a book that would contain fairly tough question and their solutions too if you could provide link to free digital copy it would be great.  so i am more interested in proofs and theorems but i must be able to do problems based on them to not the ones with direct application but little hard and not as hard as spivak's


Why are the two outer charge densities on a system of parallel charged plates identical?

One of the ways examiners torture students is by asking them to calculate charge distributions and potentials for systems of charged parallel plates like this:    the ellipsis is meant to indicate any number of additional plates could be inserted where I've placed the ellipsis. The plates are assumed to be large enough that edge effects can be neglected i.e. they are effectively infinite.  In practice these problems are solved by the (frequently tedious) application of some simple rules, one of which is:     The charge densities on the two outermost surfaces (labelled $Q_{ext}$ in my diagram) are identical.   My question is how we can prove the statement that the two charge densities, $Q_{ext}$, are equal?  The problem is that our system of plates can have an arbitrary number of plates with arbitrary charges and spacings. Presumably one could with enough effort grind through a massive calculation where the plate charges and positions are all variables, but this seems an awfully complicated way of approaching an exceedingly simple observation. Surely there has to be a better way?  I am guessing that there must be some general argument one can make that means we get the same external charges regardless of the details of plates charges and spacings. Can anyone describe such an approach?  For bonus marks another of the starting points students are taught is that if any plate in the setup is earthed then the exterior charges are zero. If this doesn't emerge naturally from whatever approach is used to answer my first question I would also be curious to see how this could be proved.


Is there any evidence that Lando Calrissian is Finn's father?

After watching Star Wars: The Force Awakens I heard people claiming that Lando Calrissian is Finn's father. Is there any evidence that he actually is or counter-evidence that he's not?


Taking away infinitely many elements infinitely many times

This is a somewhat hand wavy question but I'm not sure how to ask it more precisely.  If we have a countably infinite sequence (or set), can we take away infinitely many elements from the sequence infinitely many times and still be left with infinitely many elements? Or is it the case that we must be left with 0 or finitely many elements?


What does a company's equity (stock / share) actually cost?

A company may issue debt to raise fund and pays interest based on cost of debt (YTM), and this costs company money. And I can see how debt costs company.  A company may issue stock to raise fund as well. Assume in hell, the company will never pay dividends, buy back shares, and so on, and shareholders can't force the company to do so. The share price can go up and down, and the poor shareholders can get back leftover in case of liquidation, fortunately. But the management, Lucifer and his fella, doesn't care about share price. Anything else is same as how companies on earth are like.  Therefore, as long as the company functions, shareholders can't get anything solid back from the evil company. The only way they can gain money is through share price appreciation.  My question is: in this case, does the COST OF EQUITY still make sense? Does the equity cost the COMPANY anything?


Could you help me with this kernel function?  \begin{equation} K(x,y) = (x \cdot y)^{2} + (x \cdot y), \text{ where } x = (x_1, x_2)', y = (y_1, y_2)'  \end{equation}  I want to know if the combination of two kernel functions is still a kernel function and what is the result of this kernel function?


Hi  i have use the following code to create the object  var parent = {}; parent["Task name"] = "Task " + ++x; parent["Start time"] = "01/03/2013"; parent["End time"] = "01/08/2013"; parent["Duration"] = "5 days"; parent["Status"] = Math.round(Math.random() * 100);   How to clone / take the copy of the object using JavaScript Code . Is there any other way to achieve this?


If $f:[a,b]\to\mathbb{R}$ is Riemann-integrable then it is continuous at a point.

If $f:[a,b]\to\mathbb{R}$ is Riemann-integrable then it is continuous at a point in $[a,b]$.   First of all, I already know the Lebesgue's criterion for Riemann-integrability. So such a function will be continuous almost everywhere. But could we prove a weaker result (the above one) without using the Lebesgue's criterion, which requires a difficult proof?  What do you think?


2.8 on AMD GPU preview render, or render shading show only outlines

I've done the research, I've looked up as many other solutions as I can but as the fact this can be described as nothing but a "render issue" most results are of people with vastly different or common mistakes. The issue looks like this:  This only happens when attempting to preview render, or render, normal solid or wireframe views are fine, this happens in both Cycles and Eevee with the same outcomes. I have been actively using blender since 2015, and I have came across issues similar to many times but they were simple enough to fix, and worst comes to worst, you could've just reset or reinstalled, I've done that, no luck, additionally it is not my .blend, even a new start up file from a fresh install will also do this.  I've not been able to fix it, but this only started happening a couple days after I updated my graphics card drivers, so that's my assumption as to why, later I'm going to rollback drivers as a final option. For now, I post this in case any one else comes across this issue, and hopefully to see if I can mark it down as a known issue. In case you're having the same issue, my specs are as follows: Windows 10, 16gb ram, AMD R9 390, AMD Ryzen 7 2700x


What is the limit of $ \sqrt[n]{ a^ n + b^ n}$ when $n \to \infty$ for $a,b ≥ 0$

I want to caclulate $$\lim_{n\rightarrow \infty} {\sqrt[n]{ a^ n  + b^ n  } }$$ for a,b ≥ 0  I wanted to isolate $\sqrt[n]{a^n}$ but I really don't know how to show that the limit is 1.  I know that $\sqrt[n]a \rightarrow 1$ ,so I thought that I seperate the function to $\sqrt[n]{a^n}$ and $\sqrt[n]{b^n}$ and show that they are equally going to the same limit. So that $\sqrt{a^n}$ and $\sqrt{b^n} = \lim{\sqrt[n]{ a^{ n } + b^{ n } } }$.