I am struggling with the last part, writing proper RewriteRule (maybe I also need RewriteCond?).  I have this mapping.txt:  apple 30/products/apple.png xerox 38/products/xerox-300.png dell 3021/products/dell_img.png ...   with it I want to do URL redirects as following:  https://www.domain-a.com/product_img/apple -> https://www.domain-b.com/img/30/products/apple.png https://www.domain-a.com/product_img/xerox -> https://www.domain-b.com/img/38/products/xerox-300.png ...   in my .htaccess I have:  <IfModule mod_rewrite.c> RewriteEngine On  RewriteMap redirect_map txt:/home/username/domains/domain-a/public_html/product_img/mapping.txt RewriteRule * ${redirect_map:$1} // <--- struggling with this line </IfModule>   How do I write proper RewriteRule for my case? I've tried many options without any luck yet. Secondly, should I have these rules in /public_html/.htaccess or create a new one in /public_html/product_img/.htaccess?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I've created (as part of a theme) a few metaboxes for my post type. The metaboxes allow the user to interact with different instances of tinyMCE. Everything is working as it should, however, I can't for the life of me figure out which hook to use for publishing a post that is missing a title/content.  I've had a look at /wp-includes/post.php and was not able to find what I am looking for.  My question is: What happens when I click "Publish" when the post is missing content and a title? I know it gets created and is set as a "Draft" but it doesn't run the save_post hook. I'd also like to mention that I've tried using new_to_draft.  I've attempted using draft_post but I assume that because this is probably "auto-draft" it may not work (I have also tried "auto-draft_post").  add_action( 'save_post', array(__CLASS__, 'savePost')); static public function savePost($post_id) {     echo 'hello'; }

Why I'm doing this you might ask? I'm developing a website for a business with a portfolio where the gallery items are posts. These posts are populated through custom fields and category selections, nothing else.  For each item, there could be a title/content or not, it depends on the item in question and that's entirely up to the client. They are the ones populating their portfolio and not me. I'm just building the system for them to easily publish whatever they want.  I realize that WordPress might have some issues with posts without a title, that's why I implemented (in functions.php) a function to auto set a title for the post if none was attributed. This post auto title will never be shown on the website cause I look for it and omit it if it's there, otherwise, show the attributed title to the post.  The function for that is:  add_action('publish_post', 'insert_automatic_post_title', 10, 2);  function insert_automatic_post_title($postID, $post) {     if($post->post_title === '') {         $post->post_title = '['.get_the_date('d/m/Y @ H:i:s').']';          if($post->post_name == $postID) {             $post->post_name = sanitize_title($post->post_title);         }          $result = wp_update_post($post);     } }   The only problem is that if title is empty and the content is also empty (with some custom fields already defined) that function above will never be called and the post won't be published, it will remain in draft status.  The only solution I could think of was to create some shortcode like [empty_post] and ask the client to set that on the post content when he does not wish to attribute a title/content to the post. That shortcode could print something like <!-- EMPTY POST --> or even nothing at all. The fact that there's something in the post content, the function above is called, an automatic title is set and the post is published.  But I'm looking for a way where the client doesn't need to have more trouble (i.e: inserting a shortcode into the post content) than what's needed, I want it to be as simple as possible. Without messing with WordPress source code of course.  Can anyone think of another way with actions/filters?


I am currently using python concurrent.futures to add threading to my function. I want to kill all threads and continue down the program (or exit out if there is nothing else to do) if 1 thread of the pool matches a condition. All other threads in the pool should stop (either abruptly or gracefully) import concurrent.futures import random   def randomizer(number):     print("Randomized: "+str(number+random.randrange(0,10)))      if some_case:         allthreads.kill()   # This is obviously non working code  if __name__ == '__main__':      numbers=[5,4,3,2,1,0]      with concurrent.futures.ThreadPoolExecutor() as executor:         executor.map(randomizer, numbers)

Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?


Is it correct to say "more and more people are quitting buying CD's and DVD's because of the ..........."   ?  Please help me, I'm writing an essay and this doubt is making me go crazy.

I am considering to set up a cyber cafe.   I am considering setting up a cyber cafe.      I think it should be version #2 where the verb considering is followed by the gerund setting. But it sounds unnatural to me.  Can we use a gerund after "Verb+ing"?


From the frequentist point of view, is it possible to incorporate prior information about a parameter into a probability model? Let me illustrate with an example: suppose you have a die with black and white faces but you do not know how many of each; you are then told that you can flip a coin for each face of the die and if it lands heads, then the face will be black, otherwise it will be white. Then, we are interested in finding out the number of times $X$ among $n$ die throws that the upper face will be black.   From the Bayesian point of view, it is clear that we can consider a binomial distribution for the prior for the probability of success $\theta$ (black face being upper). We then compute the likelihood of $\theta$ for some observed data $x$, then the posterior, and we are done. But from a frequentist point of view, how can we incorporate the information that we have about $\theta$? Do we just consider the fact that $\theta = 3/6$ is the most probable value and thus just use the probability model for $X$ evaluated at that given value of $\theta$; or is the incorporation of prior knowledge incompatible with frequentist assumptions? Does this mean that in cases like this, a frequentist is limited to using a point estimate for $\theta$? Do prior information/posterior distribution have a frequentist equivalent?  edit: I had already seen from the suggested duplicate post that you can incorporate prior information with Bayes rule, but it is still not entirely clear to me what this means: is this just a way of saying that you need to use a point estimate for the parameter according to what you learnt from the prior information?

Robby McKilliam says in a comment to  post:     It should be pointed out that, from the frequentists point of view, there is no reason that you can't incorporate the prior knowledge into the model. In this sense, the frequentist view is simpler, you only have a model and some data. There is no need to separate the prior information from the model   Also, , @jbowman says that frequentists use regularization by a cost/penalty function, while bayesians can make this a prior:     Frequentists realized that regularization was good, and use it quite commonly these days - and Bayesian priors can be easily interpreted as regularization.   So, my question is, can frequentists in general incorporate into their models what Bayesians specify as priors? Taking the regularization as an example, is the cost/penalty function really integrated into the model, or is this a purely artificial means of adjusting the solution (as well as making it unique)?


My Co-author made the mistake of sending a research article to a predatory publisher(OMICS), which got accepted after 2 months of review. On the same day of their acceptance email, we sent a withdrawal request mentioning that there were serious concerns with the results of the paper(We lied). No contracts were signed, no fee was paid and there was no transfer of rights etc. They requested a fee of 300 USD for the withdrawal process. I ignored their email thinking that they won't publish the paper as no contracts/money was involved. Fast forward, a few weeks ago they have published the paper on their website on our name with the complete DOI and all, whereas the paper is already in a review process for another journal. What should be my next step now?  Unlike the previous question cases, my paper has been published on their website without any fee

I have published a paper in a fake journal. I want to withdraw the paper from that journal.   After successful withdrawal from the fake journal, can I can submit the same paper to a legitimate journal?


I have a object from a Youtube api call, let's call it myObj I do a for loop and delete items I don't like with: delete myObj.items[i]  the problem is it leaves "null" traces of items deleted this way, when i then log myObj again using JSON.stringify it looks like this: myObj now is: {"kind":"youtube#SubscriptionListResponse","etag":"xxxxxxxxxxxxx","pageInfo": {"totalResults":14,"resultsPerPage":30},"items": [{"kind":"youtube#subscription","etag":"xxxxxx","id":"xxxxxxxxxx","snippet":{"publishedAt":"2020-12- 17T18:01:20.892352Z","title":"A Channel","description":"","resourceId": {"kind":"youtube#channel","channelId":"xxxxx"},"channelId":"xxxxxx","thumbnails":{"default": {"url":"xxxxxxxxxxxxxxxxxx"},"medium":{"url":"xxxxxxxxxxxxxxxxx"},"high": {"url":"xxxxxxxxxxxxxxx"}}},"contentDetails":{"totalItemCount":17,"newItemCount":0,"activityType":"all"}} ,null,null,null,null,null,null,null,null,null,null,null,null,null]}  it works since it only keeps the "A Channel" item which is correct, but all the other items turn into null, and it's a problem for something like myObj.length later on. I've read other threads about the issue, but they either reccomends using delete, which clearly doesn't work for my case, or splice (which doesn't work on my object from my understanding)

What is the difference between using  on the array element as opposed to using ?   For example:  myArray = ['a', 'b', 'c', 'd'];  delete myArray[1]; //  or myArray.splice (1, 1);   Why even have the splice method if I can delete array elements like I can with objects?


I am running a logistic regression with 5 continuous independent variables (IV). The problem is that IV4 when taken alone has a positive correlation with outcome (coeff > 0), and when taken with the other variables has a negative correlation (coeff < 0). I evaluated correlation between IV4 and the other variables, and the results are:  IV4 vs. IV1 (-0.51), IV4 vs. IV2 (-0.48), IV4 vs. IV3 (0.61) and IV4 vs. IV5 (0.73).  I ran other logistic regressions eliminating one at a time all the other variables to look if one of them was responsible for the sign change, and I noticed that when eliminating IV1, the sign of V4 coefficient became positive.  Thus, it seems that IV1 changes the sign of the coefficient of IV4.  Is there someone who knows what might be the cause and (possibly) the solution?  Practically, do I have to eliminate the IV4 (or IV1) from the model and explain why?  Thanks a lot for answering  Leonardo Frazzoni, MD

In my logistic regression the sign of coefficients of a variable (location distance of an amenity) changes based on other variables (with time -ve, with travel distance +ve) in the model. When the location distance is the only variable in the model, it has +ve sign.    Should the variable need to maintain the +ve sign no matter what other variables are added in the model? Does changing sign signify a multicollinearity issue? Some IVs are gaining significance while in a bivariate model, they didn't show significance and vice versa. Is it okay to add variables that don't have much significance (ex: travel distance has a significance of 0.33 individually, but 0.05 when added with other variables) but becomes significant in the model? thanks.


So in the last time I kinda' broke my Ubuntu server and I'm getting the following error, I want to say that I deleted some of the libjpeg8:i386 things and now I can't install any packages!  root@s1:~# apt-get install php-apc  Reading package lists... Done  Building dependency tree  Reading state information... Done  You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:   libgd3:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libgphoto2-6:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libsane:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libtiff5:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   libv4lconvert0:i386 : Depends: libjpeg8:i386 (>= 8c) but it is not going to be installed   php-apc : Depends: php5-apcu but it is not going to be installed  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).  root@s1:~# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   libjpeg8:i386 The following NEW packages will be installed:   libjpeg8:i386 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 11 not fully installed or removed. Need to get 0 B/2,188 B of archives. After this operation, 26.6 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 247834 files and directories currently installed.) Preparing to unpack .../libjpeg8_8c-2ubuntu8_i386.deb ... Unpacking libjpeg8:i386 (8c-2ubuntu8) ... dpkg: error processing archive /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb (--unpack):  trying to overwrite shared '/usr/share/doc/libjpeg8/copyright', which is different from other instances of package libjpeg8:i386 Errors were encountered while processing:  /var/cache/apt/archives/libjpeg8_8c-2ubuntu8_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


I am preparing a homework for my students with LaTeX, so I used \usepackage{exercise}. In the .pdf file I got "exercise" and I want it to be in French (exercice) not English.   I put \usepackage[french]{babel} but nothing changed.  Here is my code:   \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc}      \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{exercise}  \begin{document} \maketitle  \begin{Exercise}[title=...]  \Question{....}  \end{Exercise}

About two years ago, I used the Exercise package with Babel to obtain a document of exercises in French. Now, I can't get it to work : it's always in English, with the exercise header as "Exercise" instead of "Exercice". I recompiled some old source files, and the localization didn't work as well. I tried with MacTex on Mac OS X, and TeXlive 2015 on Windows 10, as well as MikTex, all with the same non-localized result. I'm missing something here, any clue?  Here's a sample code.  \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel}  \usepackage{amsmath,amssymb} \usepackage{mathrsfs}  % Ralph Smith’s Formal Script Font (rsfs)  \usepackage{exercise} % for exercises and answers  \begin{document}  \begin{Exercise}[title={Lorsque $f(x)$ dépasse $k$}, label=ex1]  Dans le programme ci-contre, $F1$ est la fonction définie par : \begin{equation*} F1(x) = 2x^2 + 5x + 7 \end{equation*}  \Question Justifier le sens de variation de cette fonction, puis dresser son tableau de variation sur l'intervalle $]0;+\infty[$.   \end{Exercise}  \end{document}


I mean, are there significant physical, mental, emotional (if any of them had emotions that is) differences that separate them?

Are orcs and goblins really the same in The Hobbit and LotR, and where does it say that? Are they variant sub-races or something, explaining the different physical attributes? Or is my assumption they were different from the different terminology in the Hobbit and LotR novels, and then reinforced by a non-canon interpretation by Jackson in his films?    I recently re-read and then watched the movie of The Hobbit.  It made me do some research on Azog the Defiler, as he was in the movie but wasn't in the book itself but in various other Tolkien-bits.  I saw that his son Bolg then led the goblins of Moria, which seemed odd, and then I stumbled across something that really confused me, which is the much-wiki'ed claim that orcs and goblins are the same thing.  I had never heard that before, and I read The Hobbit originally some 30 years ago and then again a couple times over the years, and Lord of the Rings at least twice since. It never really crossed my mind that they weren't separate kinds of humanoids (and in fact I was a little griped at them inserting orcs rather than goblins as the foes in the Hobbit movie). It seems odd, especially since there's the whole 'the goblins won't go out during the day' thing, but in both LotR and at least the film Hobbit, the orcs seem all large and in charge during the day and certainly seem physically different from goblins in all the representations I've seen.   I know there are the Uruk-hai which are even more buff and light-tolerant orcs, but the goblins, both in my book recollections and in their depictions in the movies, seem different even from rank and file orcs.  In the films they spider climb all over the walls and ceilings (both in Moria and in the Great Goblin's place - if orcs could do that the siege of Helm's Deep would have been over in ~30 seconds) and unwillingness to, even enraged, go out during the day when even the non-Uruk orcs in the Hobbit film are tooling around on wolfback at noontime. I know hobbits are referred to both as "hobbits" and "halflings" by different races, but the references to orcs and goblins don't seem to be split in a logical way where one could claim they're just different words for the same thing...


I am trying to System.getenv() to get the value of an environment variable that I have set through my terminal (Mac), I also set the variable in my .bash_profile file and reloaded. After doing so, I echo'd the value and the correct value was printed to the terminal. When trying to retrieve the value of the variable (I made sure I was using the correct name in both my .bash_profile file and when using System.getenv().  In the below code, I have replaced the name of the variable with VAR_NAME:  String varValue = System.getenv("VAR_NAME"); System.out.println("Value: " + varValue);   In my .bash_profile:  export VAR_NAME="foo"   "null" is printed when I print out the value of varValue.  What could be the cause of this?  Edit: I followed the top answer , restarted Eclipse and it worked!

Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.  Not Duplicate of:     Coming from a Windows background where it's very easy to set and modify environment variables (just go to System Properties > Advanced > Environment Variables), it does not seem to be that straight forward on Mac OS 10.5. Most references say I should update /etc/profile or ~/.profile. Are those the equivalent of System Variables and User Variables? For example, where should I set my JAVA_HOME variable?    EDIT:  I want to be able to access the variable from the terminal as well as an app like Eclipse. Also, I hope I don't have to restart/logout to make this take effect.


It doesn't have to be specific, just items and blocks.

I've seen a lot of questions for finding specific items in chests using commands using testforblock but how would you test if any block/item has been placed in a chest?  Thanks


I have a LINUX machine (remote), and a MAC machine (local). Our system administrator set up an "SSH" method, whereby I can ssh from my MAC, to my LINUX machine, via this command on my MAC:  ssh marcus@gateway.highlabs.co -p 12345   When I do this, I am prompted to put in the password for my LINUX machine, and when I do, I have access, which is great.   What I want to do now though, is be able to scp from my MAC machine, to my LINUX machine, so that I can transfer files over. How do I do that? I have googled around but I am not sure what to do.   Thank you

I took a look around at other questions here and at various "scp usage" tutorials on Internet, but I can't sort out what's wrong.  I'm using Linux Mint and I'm trying to figure out how scp works.  I've a file file.ext (on my computer) in directory /home/name/dir/  I connect to a remote machine using ssh, like:  ssh -p 2222 username@domain   it asks me the password and the shell displays:  username@domain ~ $   now, If I issue the command (before I ran ssh I was in the local directory  /home/name/dir ):  scp -r -P 2222 file.ext username@domain    output is:  cp: cannot stat ‘file.ext’: No such file or directory   Same result if instead of file.ext I write the complete path  scp -r -P 2222 /home/name/dir/file.ext username@domain    Also, the server admin told me that I shall upload the file to my remote home directory (instead of root), like:  scp -r -P 2222 file.ext username@domain:~/   but when I do it and press "Enter" nothing happens, as If the shell was waiting for further input.  Summary of my problems:    cp: no such file or directory shell "stuck" on ~/   Any suggestions?


I want to use RegexFilter () in order to filter URLs. But in order to do so i need to config the regex pattern with Pattern.DOTALL flag. How do I config the RegexFilter to construct his pattern with this flag ? I tried this :  <RegexFilter regex=".*https://[-A-Za-z0-9+&amp;@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&amp;@#/%=~_()|].*" onMatch="DENY" onMismatch="ACCEPT" PatternFlags="DOTALL"/>    But the PatternFlags is ignored.   Looking at the RegexFilter code, It does read the PatternFlags property :     @PluginFactory     public static RegexFilter createFilter(@PluginAttribute("regex") String regex, @PluginElement("PatternFlags") String[] patternFlags, @PluginAttribute("useRawMsg") Boolean useRawMsg, @PluginAttribute("onMatch") Result match, @PluginAttribute("onMismatch") Result mismatch) throws IllegalArgumentException, IllegalAccessException {         if (regex == null) {             LOGGER.error("A regular expression must be provided for RegexFilter");             return null;         } else {             return new RegexFilter(useRawMsg.booleanValue(), Pattern.compile(regex, toPatternFlags(patternFlags)), match, mismatch);         }     }

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I am Indian living and working in France. I am planning to visit Mexico for tourism. Do I need a Visa?

I have a valid Schengen visa in my Vietnamese passport. Can I use a Schengen Visa (Tourism) to visit Mexico ?


I am 90% sure that this by either Isaac Asimov or Ray Bradbury. I think I might have read this in The Martian Chronicles. Basically, the story starts off with a house that cooks, cleans, and performs every other menial task required. Something happens that causes a fire to break out but the house doesn't have enough water so it burns down all except for one section. This section contains the spirits (maybe shadows or souls) of the family that lived there.  I read this in around 2000, maybe? Any help would be appreciated!

Media: Short story collection When I read it: 2011 but the story itself was much older (unsure how much) so this information only serves to clarify that it is by no means new. Plot summary: A futuristic home with household robots that help around the house (cooking, cleaning etc.), we learn about their routines and behaviour and later on it's revealed that nobody is home, in fact everyone is dead, and a description of the outside seems to imply post-nuclear apocalypse. Setting: I seem to remember snow or winter What it isn't: with Google I stumbled upon  by Ray Bradbury, and  is very similar, and the beginning made me think "Bingo!", but I do not remember there being a fire in the story I read, and I also remember a view from a briefly opened door, or window, of a snowy setting, so while it may be that I am confusing elements of another story, or my imagination, with There Will Come Soft Rains, I would still like to run this through here as a question, because I'm not convinced. Additional info: The short story collection had other short stories that I will include as I remember them, details will be fuzzy:   Meteor, by John Wyndham , by Charlotte Perkins Gilman A short story about a man who is driving a car and it is revealed in the end that he was dead the whole time , by Charles Dickens


I am sending the value from Activity A to Activity B and data is set to the view, it is working fine but when I press back button it is returning the nullpointerexpection in textView.setText() method . I have implemented as follows:   Intent i = getIntent();     serialArrayList = i.getParcelableExtra("member_list");      gridView = (GridView) findViewById(R.id.officerGrid);     adapter = new DistrictOfficerGridAdapter(this, serialArrayList);     gridView.setAdapter(adapter);      gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {         @Override         public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {              startActivity(new Intent(getApplicationContext(), MemberDetailsActivity.class));             Intent in = new Intent(DistrictOfficerActivity.this, MemberDetailsActivity.class);             in.putExtra("name", serialArrayList.getTitle());             in.putExtra("desig", serialArrayList.getPosition());             in.putExtra("contact", serialArrayList.getMobile());             in.putExtra("addr", serialArrayList.getAddress());             in.putExtra("blood", serialArrayList.getBloodGroup());             in.putExtra("image",serialArrayList.getPhotos());             in.putExtra("email", serialArrayList.getEmail());             in.putExtra("desc", serialArrayList.getDesc());             in.putExtra("website", serialArrayList.getWebsite());             in.putExtra("land", serialArrayList.getLandline());             startActivity(in);          }     });   And the data is received from MemberDetailsActivity and implemented as follows:      nam = getIntent().getStringExtra("name").toString();         design = getIntent().getStringExtra("desig");         contat = getIntent().getStringExtra("contact");         addr = getIntent().getStringExtra("addr");         blood = getIntent().getStringExtra("blood");         image = getIntent().getStringExtra("image");         website = getIntent().getStringExtra("website");         email = getIntent().getStringExtra("email");         landL = getIntent().getStringExtra("land");     name.setText(nam.toString());     desig.setText(design.toString());     phoneNumber.setText(contat.toString());     address.setText(addr.toString());     bloodG.setText(blood.toString());     Glide.with(getApplicationContext()).load(image).into(imag);     web.setText(website.toString());     emai.setText(email.toString());     landline.setText(landL.toString());

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am reading Hajime Sato's: Algebraic Topology, an Intuitive Approach.  His Sample Problem 1.3 is: Show that the topological spaces X and I are not homeomorphic.  (Note that this requires a font where I appears as a simple straight vertical line.)   Sato argues by contradiction.  Brief sketch of his argument: Suppose there existed a homeomorphism $f: X \to I$.   Remove the point $x_0$ which lies at the crossing point of X.  Then the restriction of $f$ to the new domain is still homeomorphic.  But $X-x_0$ consists of four disjoint line segments (each half open), and $I-f(x_0)$ consists of two disjoint line segments (each half open). Therefore, he concludes, the spaces aren't homeomorphic.    I don't understand how the conclusion (in the final sentence) follows.   I know that two spaces are homeomorphic if there exists a bijective continuous map  between them with a continuous inverse.  And I know the characterization of continuity in terms of open sets.   But somehow I am not seeing it.   I feel like I'm missing something really obvious.  Any ideas?

I am self-studying topology from Munkres.  One exercise asks, in part, to show that the spaces $(0,1)$ and $(0,1]$ are not homeomorphic.  An apparent solution is as follows: If you remove a point, $x$, from $(0,1)$, you get a disconnected space; however, you can remove the point $\{1\}$ from the space $(0,1]$ and the space will still be connected.  This apparently means the spaces aren't homeomorphic. I don't quite see the connection to the definition of homeomorphic spaces (that two spaces are homeomorphic if there is a bicontinuous function between them).   So, what is the connection between the "bicontinuous" definition of homeomorphisms and the "removing a point" procedure?  Sorry for missing something obvious.


I am 15 now. If I quit high school now and start a BSc around age 35 and finish my PhD around age 45, is it possible to find a job in some university after being out of academia for so long?

I really love research. I started a research project in graduate school for my M.A. in English. My research topic is a very viable and interesting topic for a dissertation. I'll be 60 on my next birthday and I know that many Ph.D programs are traditionally geared toward younger students.I was wondering are there any programs that I can continue this research in without facing the issues of ageism in academia?


I find that some lecture notes available online as well as some websites (e.g. wiki) provide important sources of information for various scientific fields (e.g. mathematics), and are sometimes better than officially published papers or books in certain senses.   My question is that if I write a paper for official publication, can I cite them in the reference of the paper? If so, what is the format to cite them? For examples, to cite an online lecture note, may I simply write as preprint, or have to add the weblink to the note? For web sources, may I add weblinks of the websites to be cited?   For example, is it valid to cite something like: "P Schlicht. Lecture Note: A Introduction to Model Theory, Online...(or Preprint...), 2018"? I think there is no need to add the actual link to it because the link can be changed later.   Edit:  This question is different from the suggested question for duplicate because I ask also what is the format to cite online notes and websites.

When learning a new subject, I would frequently use lecture notes found somewhere in the Internet. When writing a paper (or a master thesis, as in my case, but the rules should be similar, I believe) one should give some reference for used results which are not common knowledge, if I understand correctly. This make me wonder: what do I do if I want to reference a result I found in some notes?  The natural thing to do would be to just add these notes to bibliography. What format would be preferable for this? Note that there will generally not be much publishing information, perhaps not even a definite year and place. (A BibTeX template would be .)  Secondly, is it OK to cite such materials as a reference?


You may have already removed all possible apps that are not useful to you, But your Android phone still keeps saying insufficient memory and can't install anything because of low app space available. What will you do?

If you're not used to seeing the 'low on internal storage' notification, what is it that you're doing to keep your phone's internal memory from filling up so quickly?   The 'SD Card and Phone Storage' menu in the settings doesn't really tell me much other than how much is free. And, I don't really have that many applications installed. The top 5 storage hogging apps on my phone are Gmail (18.6 MB), Twitter (17.5 MB), Facebook (12.55 MB), Maps (9.63 MB), and Swype (6.06 MB).  So, are there apps out there (besides your normal file manager ones, like Astro) that will help monitor internal phone storage? Is there something I should be doing to keep my phone storage use to a minimum?


There are 3 scenarios and I want to contrast the first with the second and the third. So on one side there is one single scenario and on the other side there is 2 scenarios. I like to use "former" and "latter" to refer to these two sides as in the following sentence:     The first case can not be compared with the second and the third cases, because the material used in the former is water-based while the one used in   the latter is oil-based.   But then there seems to be an ambiguity in terms of plurality/singularity of what "latter" is referred to; it seems to me that "latter" has the connotation that there is just one scenario in the second side of the contrast. Is there any way to overcome this ambiguity? It seems to me that "latters" in plural is not a word.

Former and latter are valid only when there are two choices.  If I have a list of more than two items, is there an elegant way to say the first one or the last one?


I am trying to download Ubuntu 20.04 LTS (Desktop) for Virtual box to run it on windows, but .rar file is downloading instead of .iso file  I can not find any solution for this. Can someone kindly helo me with this

I've never used Ubuntu before. Just heard from some friends. "IT'S GREAT!!!", they used to say. So i decided to try it. I downloaded WUBI, and ran it but 'twas takin' too much time. So I decided to download the .ISO Image file separately. It couldn't download more after 150 mB, and got interrupted (and cancelled) itself. I just went to , and further went to , and searched for my question. After having found a related one, which told     "try the torrent way"   So I downloaded it through the torrent. And after that when I opened the .rar file, there wasn't any .ISO image file; just some folders with names like .disc, boot, ISOLINUX, etc. I searched for the .ISO file but nothin' there: ANYONE HELP ME, PLEASE!!! or this will drive me into never thinkin' about Ubuntu again.


If pendulum eventually stops due to air friction why pendulum of pendulum clock never stops?

How do  keep going? The pendulum is what makes the clock go. However, the pendulum will slow down due to friction. What energy source keeps the pendulum from eventually stopping?


I have a problem with long URLs in a Footnote  Here is an example:  \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage{url}  \begin{document} Lorem Ipsum\footnote{Vgl. \url{http://sourceforge.net/p/jaudio/git/ci/jAudio2.0-dev/tree/src/jAudioFeatureExtractor/AudioFeatures}} \end{document}   This is how it looks:   You can see the big space between the german "Vgl." and the URL.  How can I set    explicit url break points at .../j|Audio|Feature|Extractor/... and set the text alignment in the footnote to left-aligned (flush left)?

This question led to a new package:      I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the way to the edge of the paper before wrapping around.   For reference, my preamble looks like this:  \documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{fullpage} \usepackage[pdftex]{hyperref}   and example of the url I'm including is:  \begin{itemize} \item Some text  \url{very-long-url} ... \end{itemize}   I'm compiling using pdflatex, although I doubt this makes a difference.


I have seen this equality many times in books but I never found an explanatory derivation.

I'm trying to see why this is the case. I have taken  the LHS and added $X\hat{\beta}$ and subtracted $X\hat{\beta}$.  From this I can get both terms on the right but I end up with a cross product term  $2(y-X\hat{\beta})^T(X\hat{\beta} - X\beta)$  that I can't prove equals to zero. I think there is some trick I'm missing, anybody remember it?


I have two versions of windows 7 installed in two partitions C:\ and D:. The files of the system in partition C:\ were corrupt. And I forgot which version of windows was installed there and I need this to provide the suitable version of windows 7 to recover and repair the system. Is there any in C:\ that contain information about the version of the system installed that I can access it from the other version of the system without accessing the damaged os?

I am attempting to recover an old computer that won't boot and I'm not sure what version of Windows it is running. How do I tell simply by examining the file system?  I am fairly confident it is either Vista or Windows 7. There is a small chance it is Windows Server 2008.


I am currently running an i3-2330M @ 2.2GHZ -- I was looking at 5th Gen Intel® Core™ i3-5010U processor.  I understand obviously that the new one would be a 5th Gen and it's a 5010U which is obviously higher than a 2330M, BUT would the GHZ be higher?    I am just wanting to make sure that this laptop would be an upgrade and not so close to current specs I won't be able to tell a difference.

Why, for example, would a 2.66 GHz dual-core Core i5 be faster than a 2.66 GHz Core 2 Duo, which is also dual-core?  Is this because of newer instructions that can process information in fewer clock cycles? What other architectural changes are involved?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this question. Feel free to edit the answers to add additional details.


I'm creating a website, and I want to associate images every time I create a new category? Does anyone know how I give this option to the user through this menu?

I'd like to add custom fields to a certain category. A category only has the following fields:  Name:  Slug:  Parent:  Description:  Since I have a TV Series Site, I want to add some more fields, I want something like this, when I create a new category (Category=Series)  Name:  Artist:  Year:  Type:  Genre:  Summary:  Slug:  Parent:  Description:  And so on...  Any help please? Thanks in advance.


I want to get a bow with a top-level Power enchantment. A command similar to this worked before:  /give @p minecraft:bow{ench:[{id:48,lvl:32767}]}   ...But not in 1.13. Changing the ID to power didn't work either:  /give @p minecraft:bow{ench:[{id:power,lvl:32767}]}   It just gave an ordinary, unenchanted bow. Quotes didn't change anything either:  /give @p minecraft:bow{ench:[{id:"power",lvl:32767}]}   I don't know what to do with the command format being changed in 1.13. Does anyone know how to fix the ench NBT tag?

I'm making a map where I want players to be able to choose there kits/classes. The problem I'm having with it though is giving players already enchanted Tools/Armour/Weapons.  I'm not sure if you can use the /give [player] [item] [amount] because you'll have to use the whole {} thing and I'm not sure how to make enchanted Tools/Armour/Weapons using that.  Can anyone help?


I'm a little new to Python and I was wondering how you would present more than one output side by side if it was part of different functions. So for a simple example:  def function1():     print("This is")  def function2():     print("a line")  def main():     function1()     function2()  main()   If I do this it would print:  This is  a line   But how would I adjust it to print out like this:  This is a line   EDIT: I noticed .end function would help here but what if I had a long list of item? It doesn't appear to work in that scenario. So for example what if my two outputs were:  252 245 246 234   and   Bob Dylan Nick Ryan   and I wanted to join the two so it would be like:  252 Bob 245 Dylan 246 Nick 234 Ryan

In python, if I say  print 'h'   I get the letter h and a newline.  If I say   print 'h',   I get the letter h and no newline.  If I say  print 'h', print 'm',   I get the letter h, a space, and the letter m.  How can I prevent Python from printing the space?  The print statements are different iterations of the same loop so I can't just use the + operator.


The aforementioned pictures are my Windows calculator and my Wi-Fi menu from the start bar.  I'm running on an Alienware 18 laptop. I've got 16 GB RAM, Core i7-4940MX (not overclocked), and two Nvidia GeForce GTX 880Ms in SLI. DirectX is updated, graphics drivers are updated. Windows 10, fully updated. It also regularly happens in Microsoft Office, Visual Studio, and my internet browsers. I can't even describe it well enough to google it properly. Win+X menu displays properly, along with most right-click menus.  Any thoughts or general advice? I can't figure out what is causing it, and nor have any of my coworkers or superuser friends.

I recently updated the drivers for my NVIDIA GeForce video card to version 364.72 (or other version in the 364.xx series), and I'm now experiencing issues such as the following:   Games or other graphically intensive applications crash or hang I get BSODs that are associated with the graphics driver, e.g. nvlddmkm.sys or dxgkrnl.sys Graphical glitches such as missing or misplaced text or icons, display corruption, or a black screen occur The graphics driver crashes regularly, with the message "Display driver [...] has stopped responding and has recovered." The fan on my graphics card spins up to high speed, or the card makes excessive noise   Reinstalling the graphics driver did not help. What's going on?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I'm looking for a way to save both the plain render layer frame and composite frame in an animation render (PNG sequence output); is this possible?

My scene uses multiple render layers.  I'd like to edit each rendered layer in Photoshop, and composite it in Photoshop.  Is there a way to export each layer as an individual image?


Executing the following program is producing the following result, please explain the reason why the value of sum is 120 and of price is 100.  double sum=10, price =100; sum+=price>=100?price * 1.1 : price; Syso(sum); Syso(price);   The output is 120 100

Please demonstrate how the ternary operator works with a regular if/else block. Example:  Boolean isValueBig = value > 100 ? true : false;     Exact Duplicate:


I am getting started using pmdarima and trying to resolve some confusion with m. I m appending to this related question and hoping you can clarify, I am having 5-minute intervals data. The seasonality is one day in that case, m = 24*12. When I try using auto_arima for 6 month of data with m=24x12, the process gets killed. How can I make this computationally feasible?

ARIMA cannot model large lags (obtained from autocorrelation plot) and long range dependency (hurst exponent $H > 0.5$). Why is it so?


Problem Prove that if $f(z)$ is holomorphic (analytic) on $\mathbb{C}$ and $f(z)$ is never a positive real number, then $f(z)$ is a constant function.  This is a problem in my complex analysis course, from the Riemann map part. I don't know how this problem relates to Riemann mapping theorem... It seems that the problem tells me that $f(z)$ is contained in a simply-connected area $\mathbb{C}-(0,\infty)$, but I have no idea what's going on next... Any help would be appreciated!

If $f$ is non-constant and entire, prove that there exists a $z_0 \in C$ such that $f(z_0)$ is a positive real number, without appealing to Picard's theorem.  The obvious approach to this would be to modify a proof of Picard's little theorem to try and prove this, but all of the proofs I have found of little Picard's seem to be higher level than I have - I'm trying to solve this using theorems from a quarter long course in complex. I would really appreciate a hint in the right direction....


My present Ubuntu is 13.10 and it always wants to update to the latest version, but it cannot.   I have made a USB drive and DVD of Ubuntu 16.04.2 LTS amd64 using Rufus.  I really want to have a clean install and do not need any of the data on the computer.

I would like to see a full how-to guide on how to install Ubuntu.


I have a 300000 lines in a text file. And I have a file with list of line numbers that I need to extract from text file. Numbers are ordered. They are not ranges and there are about 4000 of them. So I need 4000 lines from source text file with specified ids.   Are there any efficient way to copy lines specified in a such file to a new file with unix console tools? Or any lightweight script?

Given a file L with one non-negative integer per line and text file F, what would be a fast way to keep only those lines in F, whose line number appears in file L?  Example:  $ cat L.txt 1 3  $ cat F.txt Hello World Hallo Welt Hola mundo  $ command-in-question -x L.txt F.txt Hello World Hola mundo   I'm looking for a command that can handle a file L with 500 million or more entries; file L is sorted numerically.  Note: I'm halfway through an implementation for a command-in-question but I just wondered, whether one might be able to use some Unix tools here as well.    Update: Thank for all the answers, I learned a lot today! I would like to accept more one answer, but that's not possible.


If I take a metal sample and I throw light on it, and the emitted photons have frequency less than the threshold frequency required to make an electron come out of that particular metal. So the electron won't come out and photoelectric effect will not be observed.  My doubt is that if the electron absorbs the photon having energy less than the work function of the metal, it must gain some kinetic energy and before it gets hit by another atom or electron, it again gets hit by another photon and in this way many photons are absorbed by it, increasing its kinetic energy till it becomes greater than the work function of the metal, and finally the electron should come out. Why this does not happen? Why there is a minimum frequency of photons to observe the photoelectric effect?

Let's say we have a emitter, emitting light that has frequency f, less than the threshold frequency of a metal.  If you leave light shining onto that metal, for long enough, does the energy of the individual photons accumulate, on the electrons, so eventually they will ionize, or does this not happen? What am I missing?


I have a Cantilever beam attached to vibration generator at the bottom. I have a piece of blu tac of some mass and I move it down the ruler. Whilst moving it down I notice the resonance frequency of the ruler reduces at a linear rate with respect to the rulers overall center of gravity. Is there a maths relationship behind this or a physics principle that can help me explain this? The values are in cm for the first 2 columns and hz for the third. The first 2 columns are distances from the base/pivot (where the generator is attached).

Is there a relationship between these 2   As of now I am moving a piece blutac up and down a ruler to change my COG. I have connected the base of my ruler to a vibration generator and am measuring the highest amplitude to measure the resonance frequency.   The closer the COG is to to the base the higher my resonance frequency is.


I need to access a folder of my project. My project is at the root of my domain, and it is a Drupal (so the .htaccess redirects all traffic to the Drupal index.php).  I need to access my resource /other_files/ and all its content through requests   http://www.mydomain.ext/other_files/file1.php http: //www.mydomain.ext/other_files/file2.php etc.   I have modified the HTACESS of drupal adding this:  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteCond %{REQUEST_URI} !=/other_files ----> this line RewriteRule ^ index.php [L]   But it does not work.  Other modifications that I have made in the HTACCESS  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteCond %{REQUEST_URI} !=/other_files/file1.php ----> this line RewriteCond %{REQUEST_URI} !=/other_files/file2.php ----> this line RewriteRule ^ index.php [L]   But it does not work.  What am I doing wrong? Thank you

I am unable to call PHP files inside the Drupal directory. My task is maintaining staff's old pages on the new platform. With pages written on clear HTML, there is no problem: I place files in a folder I created (domain.org/sites/default/files/share/staff_folder).  In sites/default/files/.htaccess I added DirectoryIndex share and now the link to the domain.org/sites/default/files/share/staff_folder/index.html can be used. When I import pages written in PHP, e.g. calling domain.org/sites/default/files/share/staff2_folder/index.php, I get a 403 error:     Forbidden      You don't have permission to access /sites/default/files/share/staff2_folder/index.php on this server.   While /sites/default/files/share/staff2_folder/index.html still works.


An efficient bilinear map is given by  $ e $: $G_{1}$ × $G_{1}$ → $G_{T} $.  How can i prove this equation with the help of an example.

I am currently working on Bilinear Pairing.To start my work i need to find the mathematically prove of three properties of bilinear pairing.   Let $ G_{1} $ and $ G_{T} $be a cyclic multiplicative group with the same prime order q, that is, $|G_{1}|$ =$ |G_{2}|$ = q. Let g be a generator of G1. An efficient bilinear map $ e $: $G_{1}$ × $G_{1}$ → $G_{T} $, with the following properties:   Bilinear: for all g ∈ $G_{1}$ and a; b ∈ $ Z_{q}^{^{*}}$ , $ e(g^{a},g^{b})=e(g,g)^{^{ab}} $. Non-degenerate: there exists g ∈ G1 such that e(g, g) ̸= 1.   I need to find some mathematical  prove for Bilinear map e. I choose a cyclic multiplicative group $G_{5} $ having generator g=2 and (a=3,b=4) then how to prove the first property ie  $ e(2^{3},2^{4})= e(2,2)^{^{3.4}}$


I create a string which contain XML code. From this string how can I get the values?  Here is the string   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>     <result>         <country>India</country>         <pincode>700001</pincode>         <paymode>Prepaid</paymode>         <service>Yes</service>     </result>   I want value of service,payment,pincode.

Is there a simple method of parsing XML files in C#? If so, what?


It is very common for me to loop through a python list to get both the contents and their indexes. What I usually do is the following:  S = [1,30,20,30,2] # My list for s, i in zip(S, range(len(S))):     # Do stuff with the content s and the index i   I find this syntax a bit ugly, especially the part inside the zip function. Are there any more elegant/Pythonic ways of doing this?

How do I access the index in a for loop like the following?  ints = [8, 23, 45, 12, 78] for i in ints:     print('item #{} = {}'.format(???, i))   I want to get this output:  item #1 = 8 item #2 = 23 item #3 = 45 item #4 = 12 item #5 = 78   When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?


I want my Alt Gr key to act the same way as the Alt key. I've found a potential solution which is to open up terminal and run the following commands:  xmodmap -e "clear mod5" xmodmap -e "keycode 108 = Alt_L"   This solution works but only temporarily. Whenever I restart the computer it reverts back or even if I'm using my laptop for a few hours the fix is undone.  I'm wondering if their is a permanent solution to this issue.   Just a little about me, I've only started using ubuntu in the last few months so I'm very inexperienced with it so I apologise in advance if I have follow up questions for any potential solutions.  Many thanks

I want to change the key bindings on some of the keys on my keyboard.  I want some to run commands and others to activate different keys.  What applications can I use to do this?      Index:       (from within System Settings)             I'm still looking for answers using dconf and any other method.


Lagrange's theorem:   Let G be a finite group and let H be a subgroup of G. Then, $|H| | |G|$   The converse does not hold in general.   'Non-example':  $G=A_{4}$ where $A_{4}$ is the alternating group of degree n  Then, |G|=12.  Conclude that G does not have a subgroup of order 6. Where did this conclusion follows from?

Can a kind algebraist offer an improvement to this sketch of a proof?     Show that $A_4$ has no subgroup of order 6.     Note, $|A_4|= 4!/2 =12$. Suppose $A_4>H, |H|=6$. Then $|A_4/H| = [A_4:H]=2$. So $H \vartriangleleft A_4$ so consider the homomorphism $\pi : A_4 \rightarrow A_4/H$ let $x \in A_4$ with $|x|=3$ (i.e. in a 3-cycle) then 3 divides $|\pi(x)|$ so as $|A_4/H|=2$  we have $|\pi(x)|$ divides 2 so $\pi(x) = e_H$ so $x \in H$ so $H$ contains all 3-cycles but $A_4$ has $8$ $3$-cycles $8>6$, $A_4$ has no subgroup of order 6.


I’m trying to get a custom “player joined the game” message on my bedrock edition world but it won’t work. When I type  /tellraw @a {“rawtext”:[{“text”:”hi “},{“selector”:”@p”}]}   it doesn’t error but in chat it only says hi. I’ve tried searching a bunch of sites but I can’t find anything. Does anybody have any ideas? I really don’t want to use a say command because of the brackets.

I'm working on a map in Bedrock Edition, and I need to have a command block at the end that says "Congratulations [player], you win!" Because it's a map, I cant just have it say a specific player's name, and I've seen maps that do exactly what I want mine to do. How do I format the command to allow this?


I am trying to UV map a model of some robot tracks, so that a texture with horizontal lines wraps evenly around it. However I am running into an issue whereby everything looks okay, except for the outer faces, where instead of the line traveling straight across to the other side, there is some kind distortion running diagonally across the face. I know this is related to the face being made up of 2 triangles but how do I go about fixing this?  Here is a screen shot of the issue:

In my scene I have a default plane and scaled one edge along the x axis. I have a material that is just a tile texture that is mapped on with a UV map. Here is a screenshot of the setup.    This is far from what I would expect. I would expect that it would look like the tiles had been compressed. My expected result shows up as I subdivide the plane. What is subdivide doing that is fixing this mapping?  Here is 1 subdivision   Here is 3 subdivisions


The equation for Stirling's Approximation is the following: $$x! = \sqrt{2\pi x} * (\frac{x}{e})^x$$ Writing as a function for y gives us the following: $$y = \sqrt{2\pi x} * (\frac{x}{e})^x$$ Is there a way to solve this equation for x, effectively finding an inverse to this function?

The factorial function cannot have an inverse, $0!$ and $1!$ having the same value. However, Stirling's approximation of the factorial $x! \sim x^xe^{-x}\sqrt{2\pi x}$ does not have this problem, and could provide a ballpark inverse to the factorial function. But can this actually be derived, and if so how? Here is my work:  $$ \begin{align} y &= x^xe^{-x}\sqrt{2\pi x}\\ y^2 &= 2\pi x^{2x + 1}e^{-2x}\\ \frac{y^2}{2\pi} &= x^{2x + 1}e^{-2x}\\ \ln \frac{y^2}{2\pi} &= (2x + 1)\ln x - 2x\\ \ln \frac{y^2}{2\pi} &= 2x\ln x + \ln x - 2x\\ \ln \frac{y^2}{2\pi} &= 2x(\ln x - 1) + \ln x \end{align} $$  That is as far as I can go. I suspect the solution may require the Lambert W function.  Edit: I have just realized that after step 3 above, one can divide both sides by e to get  $$\left(\frac{x}{e}\right)^{2x + 1} = \frac{y^2}{2e\pi}$$  Can this be solved?


There's many things I wish I didn't do.   It is a quote from a song that I used while I had a conversation with my English teacher. She said that it is incorrect and I should have used hadn't done instead.  I mentioned that it is actually a quote from a famous song, but she said that it doesn't change that fact that it is grammatically incorrect. She said it is a case of poetic license.  Is she right? Should I just stop learning English from songs? :)

Now I feel sick. I wish I [didn't eat/hadn't eaten] pork with cheese for dinner.   I would use "hadn't eaten" as it was my dinner but "now I feel sick" confuses me.


Why do we need to use the definite article when we are speaking about inventions like in the sentence below:     Alexander Bell invented the telephone.   Thank you in advance!

I am making a test where I am asked to add the missing words.     [...] chair is [...] useful piece of furniture.    I would have said that a is the missing word in both the cases, but the test says the words I should have added are the and a respectively.     [...] last time I saw [...] bear, I was travelling in [...] Europe.   I would have added: nothing, a, nothing. The correct answer is: the, a, nothing.  Why is the the correct article to use in both the sentences?


I tried hard to find explicit Linear transformation but I couldn't find it. I am doing it from $2$ dimensions. Also by rank nullity theorem I see that dimension of $V$ must be even ($T: V \to V$)  Kindly suggest  Thanks

When does the kernel of a function equal the image?  Thanks in advance


I have an 8 TB disk in my Mac. I had 2 APFS containers on it (disk7 and disk8). After deleting APFS container disk8, I get this:  The space that the deleted APFS container disk 8 used up is lost and not reclaimed by APFS container disk 7. I tried  diskutil apfs resizecontainer disk5s1 0, but no result. I can only use 4.3 TB of my 8 TB disk. How can I make container disk 7 use all 8 TB? sudo gpt -r show /dev/disk5

Last login: Mon Jun  7 22:43:40 on ttys000 samadams@Sams-MacBook-Pro-2 ~ % diskutil cs list No CoreStorage logical volume groups found samadams@Sams-MacBook-Pro-2 ~ % diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *121.3 GB   disk0    1:                        EFI NO NAME                 536.9 MB   disk0s1                     (free space)                         60.5 GB    -    2:                 Apple_APFS Container disk1         60.1 GB    disk0s2  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +60.1 GB    disk1                                  Physical Store disk0s2    1:                APFS Volume MacOS Big Sur - Data    30.0 GB    disk1s1    2:                APFS Volume Preboot                 233.2 MB   disk1s2    3:                APFS Volume Recovery                652.6 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4    5:                APFS Volume MacOS Big Sur           24.4 GB    disk1s5    6:              APFS Snapshot com.apple.os.update-... 24.4 GB    disk1s5s1    7:                APFS Volume Untitled                860.2 KB   disk1s7


Ok so basically I wipe my machine a lot. And I take about an hour to reinstall Linux and reinstall/uninstall all my programs. It would be nice to just load Linux with all my preferences already there. Is there a way to do this? I’ve tried DD and it seems to use my ENTIRE hard drive (even empty parts of the drive).

I have installed Ubuntu on a 32GB USB and set it up like I want, Installing some programs and removing others. I have added custom wallpaper and splash screen. How can I duplicate my modified OS and GMail it using Google Drive, (10GB limit), to friends and family for Christmas? It should be able to run on any modern x86-64 computer that meets Ubuntu hardware specifications. It should be uninstallable using Rufus, Etcher, mkusb and Gnome-Disks. I would also like to be able to install it from a USB stick. I have heard of and tried Remastersys, ISORespin, Ubuntu Customization Kit and Systemback, but now these all seem to be abandoned now. Sometimes I work in VirtualBox and would like to be able to distribute the OS's I create there also.


Would a mace to the jaw cause a bard or other spellcaster incapable of their vocal components for spells? It seems that I can't make a called shot to the bard's jaw so does this mean I have to hit his body and he can continue to cast? I'm looking for rules as intended and not necessarily RAW since the PHB says that less than half of HP remaining shows as wear such as cuts and bruises but wouldn't a broken jaw be reasonable for a mace to a gnome head.

My players have been asking to improvise specific combat actions, mostly the archer wanting to aim at specific body parts. I haven't been able to find anything in the DMG or the PHB on the subject so I was wondering how I should deal with this.    How (if at all) should an attack roll be modified when targeting a specific body part? If there is not RAW on this I am open to playtested house rules per .


My issue is that I am getting an error statement that states the following:       row[0] = row[2] / row[1] * 100      TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'   Here is the script I'm using to run the operation  #variables  fieldname1 = "acres2"  fieldname2 = "ac_std2"  fieldtype = "DOUBLE"  where_clause_calc = """"acres2" IS NOT NULL"""   #newfields   arcpy.AddField_management(fc, fieldname1, fieldtype)  arcpy.AddField_management(fc, fieldname2, fieldtype)    #float  with arcpy.da.UpdateCursor(fc, ["StatedAcre", "acres2"]) as cursor:     for row in cursor:         try:             row[1] = float(row[0])             cursor.updateRow(row)         except:             row[1] = -999             cursor.updateRow(row)   del cursor    #calculate  with arcpy.da.UpdateCursor(fc, ["ac_std2","acres2","Area"], where_clause_calc) as cursor:     for row in cursor:         if row[1] > 0.00:             if row[1] < row[2]:                 row[0] = row[1] / row[2] * 100                 cursor.updateRow(row)             else:                 row[0] = row[2] / row[1] * 100                 cursor.updateRow(row)          else:             row[0] = -999    del row  del cursor   When I create both fields being used to calculate, I set the field type to DOUBLE. When I open the table in ArcMap the field properties reflect this. What's especially odd is that the updates are performed for about 1/4 of the rows in the table. My questions are why is this error occurring while both field types are DOUBLE, and what can I do to fix this issue?

How do you calculate fields with null values?  I have multiple fields that may have null values, that aren't being calculated in the third field.    import arcpy with arcpy.da.UpdateCursor(r"...gdb\test.gdb\test",["A", "B", "C"]) as cursor:     for row in cursor:         row[2] = row[0] + row[1]         cursor.updateRow(row)   The result of that calculation is this error:  Traceback (most recent call last):   File "C:\Users\Desktop\updatecursor2.py", line 4, in <module>     row[2] = row[0] + row[1] TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'   The result of the script are the same results when I try to use the field calculator:    How do you use the data update cursor, or field calculator to calculate the sum of the values in a new field if you have null values?  I'm using ArcGIS 10.1 SP1 for Desktop.


If R is a commutative ring containing a field K as subring and assume that R is finite dimensional vector space over K then show that every prime ideal of R will be a maximal ideal.  My approach was to show  for any prime ideal I, R/I will be a finite integral domain and hence a field which will result in I being maximal. But, here it is not given that K is finite field. Since I have just started studying this course and don't know much about Artinian or Noetherian ring so can anyone please solve this problem for infinite field using very basic ideas of ring & vector space theory and not going into domain of Artinian or Noetherian ring.

Possible Duplicate:          I need to prove this result, but the only starting point I think of is to argue by contradiction, by assuming $x$ is non-invertible and extending it to a basis over $K$ but have no idea how to go further than that. Any ideas?


Consider a cylindrical universe. Because it is closed (at least in one direction) and non-expanding, I can figure out the distance, say, from the Earth to the same over the full circle of the universe. Now consider I am flying in a relativistic spaceship near the Earth. In this case, if I measure the distance from the ship to the same ship over the full circle in the direction of the flight, this distance would seem to me Lorentz contracted and therefore shorter than the one for the Earth. This way the preferred frame may be chosen as the one with the longest distance over the full circle. This logic is apparently endorsed by some, but does it not violate relativity? For example, if the space is circled only along one dimension, then the curvature is zero and Special Relativity should apply. Should it not?

Take the following gedankenexperiment in which two astronauts meet each other again and again in a perfectly symmetrical setting - a hyperspherical (3-manifold) universe in which the 3 dimensions are curved into the 4. dimension so that they can travel without acceleration in straight opposite directions and yet meet each other time after time.  On the one hand this situation is perfectly symmetrical - even in terms of homotopy and winding number. On the other hand the Lorentz invariance should break down according to , so that one frame is preferred - but which one?  So the question is: Who will be older? And why?  And even if there is one prefered inertial frame - the frame of the other astronaut should be identical with respect to all relevant parameters so that both get older at the same rate. Which again seems to be a violation of SRT in which the other twin seems to be getting older faster/slower...  How should one find out what the preferred frame is when everything is symmetrical - even in terms of GRT?  And if we are back to a situation with a preferred frame: what is the difference to the classical Galilean transform? Don't we get all the problems back that seemed to be solved by RT - e.g. the speed limit of light, because if there was a preferred frame you should be allowed to classically add velocities and therefore also get speeds bigger than c ?!? (I know  is only a local theory but I don't understand why the global preferred frame should not 'override' the local one).  Could anyone please enlighten me (please in a not too technical way because otherwise I wouldn't understand!)  EDIT Because there are still things that are unclear to me I posted a follow-up question:


Related:  and   In the context of putting crypto into applications, in a secure manner, could it be argued to achieve this (securely implementing a crypto system) you would require a thorough and rigorous understanding of the mathematics behind the crypto system?   Or, could it be said that this is more a matter of understanding how to code securely, as the cryptographic primitives themselves can already be securely implemented via libraries such as NaCl?  Edit: I realized the obvious, and in fact necessary, extension to this question. Reversing the goal, what level of mathematics would be required to break a crypto-system? On the one hand, heartbleed seemed to be a break in a crytpo-system but was in fact entirely based in (poor) code. On the other, the BREACH and CRIME compression side-channel attacks were very much discovered in the literature first. Am i answering my own question there?

What mathematical fields of knowledge would be required in order to get a good understanding of encryption algorithms?   Is it basic algebra, or is there a "higher education" mathematical field dedicated to encryption? I know there is the cryptography field, but what is the subset of knowledge required for cryptographers?


So I am learning Chinese and - because Google is not available in China - Chinese apps tend to be downloaded outside of the play store. To that end, a lot of news apps (especially the good ones which are offered by the state news organisations, e.g. CCTV) have ridiculously wide-ranging security-access levels (i.e. you have to agree that they can read your contacts, your accounts, camera access, the works - even though it has no logical need for such access). Obviously, not too keen on giving the Chinese government full access to spy on me for the benefit of a news app, but is there a way of setting up a secure silo within Android, in which you can then install apps and dictate what access they can have?  In some respects, I would like to set up a Great Firewall of Europe on my phone and put the Chinese apps (or at least the ones which seem to come with added surveillance functionality) in there to stop them unnecessarily getting at my contacts etc. Your help would be greatly appreciated! Hashamyim

I have apps that I don't trust or that I just want to try. The problem is that even after deleting them they might leave files/spyware/malware/etc. What are my options? I have Xiaomi mi4c on MIUI with google apps but will soon format it and might replace the ROM.


I have circle of radius 1km in QGIS (centered at: -122.69690,58.80688 WGS84, North America), when I export it to Google map it isn't 1km in radius (I checked using the measure tool on Google maps) and the shape isn't a perfect circle as seen below.  On Google maps, North and South direction from the center are more that 1km radius while in East and West direction it is less than 1km.  How can this be fixed?   In QGIS     In Google Maps

Following this istructions on  I can make buffer layer on each point I need.  I am not able to draw perfects circle because the buffer will be elliptic?  The CSR is EPSG:4326 - WGS 84  And I am also not able to set unit misure in meters as I need (300 meters)  Where is my error? I use QGIS 1.8 on windowx 7


Hi bro I have a problem with my Ubuntu 13.10 after system update. My Ubuntu was black screen and there is a X cursor on my display. My Gear Intel Core i3 2310M, 2 GB of RAM, Nvidia Geforce GT 520M, 500GB HDD.    How to fix that problem, Thanks.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I come from a statistics background and don't have much knowledge of physics. I need to gain bit of knowledge in statistical physics for one of the projects that I work on. I started looking at Reichl's and Kardar's book, but realized I needed some introductory material first on these topics.   Schroeder's book on thermodynamics was actually quite a nice introduction to that part of statistical physics. It explained a lot of the intuition behind the models as well as some of the formalism. I was wondering if anyone could suggest a similar type of introductory book for kinetics, meaning things like the Fokker-Planck equation, the Langevin equation, and the master equation, etc. I am just looking for something that provides a bit more explanation and intuition before I dive into the formalism.   Any suggestions would really be appreciated.

I learned thermodynamics and the basics of statistical mechanics but I'd like to sit through a good advanced book/books. Mainly I just want it to be thorough and to include all the math. And of course, it's always good to give as much intuition about the material.  Some things I'd be happy if it includes (but again, it mostly just needs to be a clear book even if it doesn't contain these) are:   As much justifications for the postulates if possible, I'm very interested in reading more about how Liouville's theorem connects to the postulates. Have examples of calculating partition functions, hopefully not just the partition function for the ideal gas.


I actually have a very naive question. When someone says     All but five people have left the town.    What does it actually mean? Have 5 people left the town or has everyone else left, with only 5 people remaining?

Here's two ways I've seen the "all, but" idiom used:  "Close all tabs but this one" (Any modern application with a number of tabs might have this as an option.) It means "close all the tabs, but not this one".  "With that goal, the championship is all but decided". This seems to mean "you can say/do whatever (all) you want, (but) it won't change who wins the championship."  Is one of these usages more correct than the other?


In DH, while      Harry, Ron, and Hermione are infiltrating the Ministry,   Umbridge casts a Patronus to keep the Dememtors at bay.  But if she was capable of such a charm, surely she could have kept some centaurs at bay.     “Nooooo!” he heard Umbridge shriek.      “Noooooo . . . I am Senior   Undersecretary . . . you cannot . . . unhand me, you animals . . .   nooooo!”      He saw a flash of red light and knew that she had attempted to Stun   one of them — then she screamed very loudly. Lifting his head a few   inches, Harry saw that Umbridge had been seized from behind by   Bane and lifted high into the air, wriggling and yelling with fright.    So how did she do it?

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


In quantum mechanics, it seems that nothing has exact positions, and in the pilot wave theory, things tend to travel like this?:   (Credit: Looking Glass Universe)   and in other interpretations, it seems that there can be infinite many travel paths between measurements?  Did the measurements of speed of light take into account that things don't travel in straight paths?

Since electromagnetic energy is carried by photons and moves in forms of waves, does it mean that a single photon when propagating through space doesn't follow the straight path but instead always moves up and down, up and down like a wave. If so another question arises the speed of propagation of light in vacuum is fixed meaning that it will always take the same amount of time for it to travel from point A to point B, but if a photon always moves up and down it will also mean that it travels longer distance than the distance between A and B and so it ill travel faster than light propagates, is it even possible, could you please clarify these concepts for me?


I have no problem seeing how having an inverse implies cancellation property, but I've problems proving (or even seeing why) the converse must be also true. Can you please suggest a way to approach this?

Let $G$ be a non-empty finite set with an associative binary operation so that cancellation law holds, i.e. $ab=ac$ or $ba=ca$ implies $b=c$, for any choices of $a,b,c$ in $G$. Assume that there is an identity element $e$ in $G$. Show that $G$ is a group.  Proof: To show $G$ is a group, conditions must hold. Suppose that $ab=ac$, then $b=eb=(a^{-1}a)b =a^{-1}(ab)=a^{-1}(ac) =(a^{-1}a)c=ec=c$. So left cancellation holds in $G$.  2) Suppose $ba=ca$, then $b=be=b(aa^{-1}) =(ba)a^{-1}=(ca)a^{-1} =c(aa^{-1})=ce=c$. So right cancellation holds in $G$.  3) If $a$ exists in $G$ then $aa^{-1}=a^{-1}a=e$, where $a$ is an inverse of $a^{-1}$. Since inverses are unique, $(a^{-1})^{-1}=a$.  4) Let $x$ be the inverse of $ab$. Then $(ab)x=e$. By associativity we have $a(bx)=aa^{-1}$. Through left cancellation we have  $bx=a^{-1}bx=ea^{-1}=b(b^{-1}a^{-1})$ and $x=b^{-1}a^{-1}$.  Thus $(ab)^{-1}=b^{-1}a^{-1}$. So all conditions hold, $G$ is a group.  Is this proof correct? I know to show $G$ is a group these conditions have to be met. This is all I have to show right?


So i'm making a game where i have to randomize 52 numbers from 1 to 52 so the order has to change i use this       class Deck {     Random r = new Random();     int[] Card = new int[52]; }

I am trying to develop an card game for Android Can anyone suggest me how to write code for effectively shuffling the playing cards?


I have recently a new USB modem, named DLink DWM-156. But I am not able to connect internet via this on Ubuntu. I have read and applied various solutions available online, but none works.  I'll explain things as much as I can so a solution can be figured out.  This modem do have its Linux drivers. First I tried to connect it without installing them,  with the help of Sakis3g. But Sakis failed in locating device. lsusb showed device with 2001:a706 ids. But it was not being shown anywhere in devices.  Then I mounted it, extracted .deb drivers and installed it. One thing to note is that after installing it, gdebi was not showing options for reinstall or remove, though when I checked it in Synaptics, it was showing there as installed.  Anyhow, after installing drivers, when I replug modem, it gets detected in devices but as CD-ROM. lsusb showed 2001:7001 as ids, which mean modem has switched.  Now the question is, if it has switched then why its not show showing up as a modem? I tried usbserial-driver-bind.sh in terminal but of no use.  Sakis3g detects it now but while connecting it shows error like ttyusb0 is presently occupied by PID xxxx cat.  I have tested modem on windows and it works like charm there. What should I do??

I am running Ubuntu 13.10, 32-bit.  I had every time need to go terminal to "eject" the windows driver CD,nor gone to disk & eject windows driver CD to make the d-link dwm-156 gsm modem functioning through network manager.  It seems that usb mode switch is not working.  But on my friend's computer with ubuntu 14.04 ,usb mode switch is working and i can connect d-link dwm-156 to mobile broadband through network manager as soon as i get in.  Is there any way to make usb mode switch to eject the windows driver CD of d-link dwm-156 in my ubuntu 13.10,32-bit at start up?   The lsusb output is Bus 002 Device 013: ID 2001:a706 D-Link Corp before ejecting the CD (modem as storage device of windows driver).  The lsusb output is Bus 002 Device 005: ID 2001:7d01 D-Link Corp after ejecting the CD (as modem).   I don't want to use the driver in the CD,as i need to send sms & find the data usage.


I have recently installed the CyanogenMod in my Samsung N700. Issues now i want to install Google apps like play store, maps etc. Learning from  i have download the .zip package and it is in my sdcard now.  Issue is now i don't know how to use it, if i try to open it its says no application to handle such(zip) files.  Can anyone please guide me through this?

I have recently installed a custom ROM and cannot find the Play Store. It seems like all apps that belong to Google are missing.  How can I install the Google Apps Package (Play Store, ...) on my Android device?


/*This is my function code*/ Random random = new Random(); int randomInt = random.nextInt()%200;  String imgName = "img" + randomInt;  int ImageId = getResources().getIndentifier(imgName,"drawabale",getPackageName()); myImage.setImageResourse(ImageId);      Previously in my drawable folder there are      200 images already inserted using img1,img2.....img199  like nomenclature...     every time I call random function mention below to generated one      random number and form a string name starting from      "img" and some number. But most of time only 0 is generated by random function and id set to      image is display 0th image constantly..at some point it successfully display other images but most of time it generated zero value continuosly.   Thanks in Advance !

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


I have an implementation of Iterable<T> (a variation of a quadtree structure), which I plan to use in a setting where performance with large data sets is critical, so I have been conducting a few tests, with a couple million random entries, running them repeatedly. I experienced an oddity with the following code segment:   long start = System.currentTimeMillis();  for (int i = 0; i < 100; i++) {      Iterator<A> iter = it.iterator();      while (iter.hasNext()) {          iter.next();      }  }  long end = System.currentTimeMillis();  System.out.println("Total time: " + (end - start));   I always got a time between 4000 and 5000 milliseconds. However, when I changed the while loop to this:  A a = null; while (iter.hasNext()) {     a = iter.next(); }   the time jumps up -- not just slightly, but all the way up to 15 to 16 seconds, with complete consistency. Now this already does not seem dependent on the implementation of next(), but upon further investigation, I found that it even happens with a simple ArrayList, so I'll post compilable code for that instead:  import java.util.ArrayList; import java.util.Iterator; import java.util.List;  public class Test {     static class A {}      public static void main(String[] args) {         List<A> list = new ArrayList<>();         // Add a lot of entries         for (int i = 0; i < 10000000; i++) {             list.add(new A());         }         // Test it         A a = null;         Iterator<A> iter = null;         long start = System.currentTimeMillis();         for (int i = 0; i < 100; i++) {             iter = list.iterator();             while (iter.hasNext()) {                 iter.next();                 // Or:                 // a = iter.next();             }         }         long end = System.currentTimeMillis();         System.out.println("Total time: " + (end - start));     } }   The result: an even more unbelievable 30-fold difference. And it happens deterministically, every time.  What possible reason could there be for this? I don't see how a single assignment to an already allocated variable could be anything other than negligible, especially considering that so much else is happening inside iter.next(). My only guess is that the System.currentTimeMillis() calls are somehow not executed at the proper time, but as for how this is affected by the change, I have no idea.  But even that doesn't quite fit, because the time it takes is noticably much, much longer, especially if I further increase the number of times the for loop runs. The garbage collector also should not have anything more to do, as far as I see, since no wasteful, temporary allocations should be happening. It also apparently is the assignment of the return value that's critical, since just doing something else in addition to iter.next(), like increasing an int variable each time, does not have the same adverse effect on execution time.  EDIT: It has been brought to my attention by multiple people that the particular benchmark in my post suffers from many issues that can compromise its results' trustworthiness. I will leave it here for posterity though, or possibly update it later to make it better. That having been said, the phenomenon's most likely cause has been identified in the accepted answer, and I confirmed that eliminating the typecast solved the issue, so despite the benchmark's shortcomings the observation above appears to not have been just a side-effect of those.

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


I received a text from a number. My contact list had that number saved as well as 3 other numbers in the same contact card.   How do I get to know which number had sent the text, when it shows only the name?  (the “recent” thing, in Phone app does not seem to work.)  I worked around it by deleting each number from the contact card and seeing how the “sender” changed.  There ought to be an easy way for the same.

I have a contact with multiple (two) mobile numbers.  How do i know to which number the sms (text message) was sent? The system did not ask me which telephone number to use.  Is there a way to check it?


This is a duplicate question, my apologies everyone!  Firstly, I apologize if this is a simple question, I have been searching for a very long time, and either an answer about this does not exist, the answer I am looking for has been buried under answers to questions about how to convert a string to a byte array, or I'm not searching with the right terminology. I have also found a few answers on converting a single hex value into a byte but applying those methods to work with what I want to do doesn't really seem to work very well.  What I am looking for is not how to convert "string" to a byte array, rather, I am trying to convert an already in bytes value from a textbox, into something my application will recognize as a byte array. I'll try to explain better with an example:  textBox.Text = 019F314A I want byte[] bytes to equal { 0x01, 0x9F, 0x31, 0x4A }   Hopefully that makes sense. Thanks to anyone who can offer any assistance!

How can you convert a byte array to a hexadecimal string, and vice versa?


The sentence \hl{Upphängningsmetoden visade att masscentrumet låg i punkten (10,5;7,30) i centimeter medan den algebraiska metoden visade på att tyngdpunkten låg i $(10,5;7,34)$}  gives 5 errors and I don't know how to fix it. Here is a sample of the doc. \documentclass[12pt]{article}  \usepackage[margin=1in]{geometry} \usepackage{amsmath} \usepackage{units} \usepackage{tikz} \usepackage{cite} \usepackage{soul} \usepackage[nottoc]{tocbibind} \usepackage{xurl} \usepackage{graphicx} \usepackage{caption} \usepackage{hyperref} \usepackage{refstyle} \usetikzlibrary{intersections} \usepackage[swedish]{babel}  \usepackage{parskip} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usetikzlibrary{patterns}  \begin{document} \section*{Sammanfattning} Denna rapport kommer att undersöka masscentrumet hos en pappersfigur med två metoder - en algebraisk och en experimentbetonad metod. Därefter ställs dessa metoder mot varandra och jämförs. \\ Den algebraiska metoden utfördes genom att rita in figuren i första kvadranten i ett koordinatsystem och figuren var mätt i SI-enheten centimeter. Sedan användes bland annat arean för två områden i figuren samt beräknades tyngdpunkten för dessa områden för att sedan kunna utreda hela figurens masscentrum. Den experimentbetonade metoden utfördes genom att hänga figurskivan i tre punkter, dra tre lodlinjer från desssa punkter och bestämma masscentrum genom konstruktion. Båda metoderna gav givande resultat då båda fick samma tyngdpunkt men den algebraiska metoden var mest effektiv. \\ Resultatet besvarade alla tre frågeställningar som ställdes i rapporten och innehållet följde syftet.\hl{Upphängningsmetoden visade att masscentrumet låg i punkten (10,5;7,30) i centimeter medan den algebraiska metoden visade på att tyngdpunkten låg i $(10,5;7,34)$}. Skillnaden mellan dessa metoders resultat är knappast stor men den algebraiska metoden ses som mest trovärdig på grund av att metoden hade en högre noggranhet än upphängningsmetoden. Upphängningsmetoden hade vissa brister men det påverkade knappast resultatet. Dock kan det påverka andra mer komplicerade föremål där upphängningsmetoden kan vara svår att genomföra med. \end{document}

I'd like to use the \hl command from the soul package in a French text. However, it does not work whenever the part to highlight contains French accents (e.g.: \hl{é}).   I could use \'e instead of é (\hl{\'e}) but it would be quite long to substitute all the accents just in case I will have to highlight them later (and there are several accents in French : é, è, ù, à, ...).  Do you know whether it's possible to make \hl works with accents without substituing all the accents?  Here is an example file:   \documentclass[15pt , a4paper]{article}  \usepackage[french]{babel} \usepackage[utf8] {inputenc} \usepackage{soul} \usepackage{color}  \definecolor{y}{RGB}{245, 255, 189} \sethlcolor{y}  \begin{document}   \hl{\'e} % works   %\hl{é} % doesn't work \end{document}


So, I bought 8GB of RAM for my HP Laptop, I installed both cards, when I boot up, it shows 8GB installed, but only 3.92 Usable. I'm running Windows 8.1 32-Bit, even when looking in task manager I see 640MB in use, 2.8 GB Available. On the right side I do see 4.5 GB for Hardware reserved, I'm not 100 familiar with 8.1 being as I primarily use my desktop with Win7, I just thought I might get it ready for Win10 for next month, ANYWAY, is this correct? I don't think/feel it is but i would like some help on figuring this issue out since google didn't help much.  I have tried:   Swapping places of the sticks.   Changing it in msconfig(When I do, I check the box that says Maximum memory, which then defaults to 8192, apply it, and check the box that says "Make all boot settings permanent", but then the box then comes unchecked and the Maximum memory gets changed to 0)   Running a memory test in my BIOS, is passes.     Looked in my BIOS for other possible configs to change but I can't see any to change that have anything to do with my memory.

I have recently upgraded a Windows 7 Home Premium PC with 12 GB of RAM. For some reason once I looked in the System tab it said only 7.96 GB of 12 GB of RAM is usable. I have already tried to go into the msconfig to see if the Maximum Memory was ticked, which it wasn't.  Is there a solution to this error? The other topics that I have viewed on Super User did not help me at all.  Installed RAM:   msconfig:   My Windows Edition is showing "Home Premium":   Resource Monitor:


How can I find out what the MAC address (BSSID) of the wireless access point I'm connected to is?

I want to get the BSSID for a known SSID, how can I do that? Thanks :-)


Prove that for all rational numbers (can be integer) a y b, $\frac{a+b}{2}$ ≥ $\sqrt{ab}$

Let a and b be real numbers such that 0 < a < b. Prove $\frac{a+b}2 > \sqrt{ab} > \frac{2ab}{a + b}$  How can I prove this? Been working for hours and got nowhere. I see $\frac{a+b}{2}$ and $\frac{2ab}{a + b}$ are almost reciprocals. Is this important?  Please explain step by step.


I want to give a USB flash drive to a friend but I don't want him to copy the data in USB or add anything to it is it possible so he could only read the files without the ability to do anything else?

I am trying to make folder that everyone can view and can't copy,modify.    For all answers.I thinking about specially ms office files. I tried following methods  Software  - copy protect    - anti copy    This method can't protect save as and upload  MS office macro    Users can enable,disable macros.  MS office restriction    This is best choice but can't protect from file uploading.   Almost I found the solution. Way is combination of MS office restriction and restrict access from browsers using firewall or antivirus. But I don't exact how to do this.


For a while now I have been using Google Apps for Business to provide email services for my domain. I'm in the process of setting up a new storage server and want notification-type emails to be handled separately on the local server.  I've set up postfix as an internal smtp server and have that all working. However I use spf records in my dns set up to enable recipients to verify emails are coming from me. So I also need to specify that all mail received from a particular domain (in this case the fqdn of my internal mail server) is a pass.  The trouble is I can't see a clear way to accomplish this via CloudFlare, I saw 2 potential avenues:   Specify the FQDN in the SPF record - that won't work as mail will get checked against CloudFlare's IP addresses. Specify my IP address directly - that will work but it'll leave my public IP accessible for the world to see in the DNS records. This negates negates the benefit of using CloudFlare in the first place?   Is there a configuration option that just verifies mail against a domain, without extended IP checks?

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.