If a contrib module's info.yml contains core: 8.x and not core_version_requirement: ^8.8 || ^9, how can a site be upgraded to Drupal 9 using composer? composer update downloads modules in "require": { which needs to be before "patches": { because there needs to be a module before it can be patched. Assume the patch patches the info.yml file with core_version_requirement: ^8.8 || ^9. So composer update can't resolve to an installable set of packages and throws errors like this: - Root composer.json requires drupal/entity_jump_menu 1.1 -> satisfiable by drupal/entity_jump_menu[1.1.0]. - drupal/entity_jump_menu 1.1.0 requires drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but it conflicts with your root composer.json require (^9.1).  It looked like the answer was changing drupal/core and drupal/core-dev to a value of "^8.8||^9.1". composer update will now run, except the site is still building in version 8.9.13.  Following the suggestions on the  blog post, I changed composer.json to the following   "repositories": [       {           "type": "composer",           "url": "https://packages.drupal.org/8",           "exclude": ["drupal/entity_jump_menu"]       },       {           "type": "git",           "url": "git@git.drupal.org:issue/entity_jump_menu-3130218.git"       }   ],   "require": {       ...       "drupal/entity_jump_menu": "dev-3130218-drupal-9-deprecated",       ...      },     Which downloads the fork of the module, into vendor/drupal/entity_jump_menu. Unfortunately Drupal and/or Drush don't see the module in that directory. I'm going to try the  solution next.  The solution from  adds the fork of the module to the modules/contrib directory. Here's the code. "repositories": [     {         "type": "package",         "package": {             "name": "drupal/entity_jump_menu",             "type": "drupal-module",             "version": "dev-3130218-drupal-9-deprecated",             "source": {                 "type": "git",                 "url": "git@git.drupal.org:issue/entity_jump_menu-3130218.git",                 "reference": "268adc649cfb4ad716751a8643e60f5df4dbb80d"             }         }     },     {         "type": "composer",         "url": "https://packages.drupal.org/8"     } ], "require": {     ...     "drupal/entity_jump_menu": "dev-3130218-drupal-9-deprecated",     ... },  Thanks for pointing me in the right direction.

Given I have Drupal 9 composer installation with composer-patches plugin and given a contrib module with a stable v8 release, but no v9 release (not even dev branch) and given that contrib module has a working v9 patch in the issue queue  is there any method to install that module + patch in composer? Even if I manually add both, the package and patch, to my composer.json, I still can't require or update this module with composer due conflicting versions. I really want to avoid duplicating /contrib code into my project's /custom codebase. My current workaround is:  forking that module to my own, private git repo applying patch there creating a new composer.json in my private git, and changing the package vendor to my custom_private_vendor adding my private git as VCS repo in the D9 project's composer.json and then composer require custom_private_vendor/contrib_module  This fulfills my goal of not duplicating the contrib module in my project's custom codebase, but every time I do this I feel the urge to wash my dirty hands. Is there something more elegant like composer require drupal/contrib_module --apply-patch-first or can I somehow target drupal.org's git with a specific patch included?


I have pushed one of my site to LIVE, but once a while when a page loads it is being displayed as below snapshot, but after sometime it gets corrected automatically.  Can one please tell me what could be the reasons for this and how can i make sure to fix this issue so that it is not repeated in future.    Have also used the security plugin "iThemesSecurityPro" to protect my website from malware.   WordPress version used is 4.7.5

Apparently a lot of people complain that they only see random letters and characters:    My biggest problem is that I can't reproduce the problem on ANY of my devices! Not on my Windows XP laptop, not on my Windows 7 laptop, not on my Android phone or my iPod Touch. It doesn't matter which browser I'm using. The only time I see the problem myself is when I try to share one of my blog posts on Google+, because the blog description then appears in strange characters.  So, first of all I need to find a way to reproduce the problem somehow. Otherwise I won't be able to see if what I did fixed the problem or not.  I did everything that @toscho recommended, but nothing helped.  Did anybody ever run into a similar problem or would you know where I could start to look for the problem?  Edit: I contacted my webhost. They couldn't reproduce the problem, just like me. They said that they have enabled gzip compression on their servers. They suggested turning off one plugin after another to see what happens, but as I can't reproduce the problem, I can't do that. Please help!  More and more readers are complaining about this problem. Most of them just need to refresh the page or wait a few minutes and then the site loads normally, but I'm still using a lot of traffic because of that.  EDIT 2: The W3 Total Cache Plugin FAQ says: I see garbage characters instead of the normal web site, what's going on here?  If a theme or it's files use the call php_flush() or function flush() that will interfere with the plugins normal operation; making the plugin send cached files before essential operations have finished. The flush() call is no longer necessary and should be removed.  I am pretty sure that none of my code has this call anywhere, but I'm not 100% sure. Is there any way to find out other than searching through millions of characters in all of my files?


How many possible group of order 3 are there?  I can only think of one such group.

Show that every group of prime order is cyclic.   I was given this problem for homework and I am not sure where to start. I know a solution using Lagrange's theorem, but we have not proven Lagrange's theorem yet, actually our teacher hasn't even mentioned it, so I am guessing there must be another solution. The only thing I could think of was showing that a group of prime order $p$ is isomorphic to $\mathbb{Z}/p\mathbb{Z}$. Would this work?    Any guidance would be appreciated.


Our project (coded in mysql) is working for a hotel since long time and storing names of arabic letters in database and it was to retrieve the data correctly from the database but after recoding the project in mysqli we found that we are not able to retrieve the old data correctly as they display in strange characters but there is no problem for the new inserted data. I've searched a lot everywhere and I never found a solution. Can we find some way to resolve this problem as there are more than 10000 records which could be lost in this way. Here Below are 2 images for what I am talking about    The first row of the table above was inserted after using Mysqli code while the rest was insert in the old code of mysql    This is how the database looks like, the same like the table above. By the table in using utf8_general-ci Collation  Many thanks in advance

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


A) Specify a bijection from [0,1] to (0,1]. This shows that  |[0,1]|   =  |(0,1]|    B) The Cantor-Bernstein-Schroeder (CBS) theorem says that if there's an injection from A to B and an injection from B to A, then there's a bijection from A to B (ie, |A| = |B|). Use this to come to again show that   |[0;1]| = |(0;1]|

How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &= m(-1)+b \\ 4 = f(2) &= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective.


Brand spanking noob here! XD wanting to know how to remove the universal access icon from the top bar see:    Tried tweaks and turning off options in the settings/universal access.  wasn't sure what the terminal cmd would be. thanks  Ubuntu 18.04.4 LTS / Gnome 3.28.2  edit: previous answers included ->  Edit the file /usr/share/gnome-shell/js/ui/panel.js Comment out this line like so: //'a11y': imports.ui.status.accessibility.ATIndicator,  however when following this path the folder "js" (and other items onward are missing).

I am using Ubuntu 18.04 in my assembled computer with 32" TV as monitor.  I work little away from this TV. so I adjusted in Fonts tab "Scaling Factor" in Gnome Tweaks. This will activate "Universal Access" "Large Text" to on and then a icon (circle with human) is shown adjacent to date. How to disable this icon ?


Say that I have a phrase that I want to embolden:  $A$ is $\sigma$-strongly monotone.   How do I embolden the whole thing with one command? I don't want to individually type \textbf{} and \mathbf{} for every inline math in a line. You can't just write \textbf{\mathbf{etc. etc.}}. This doesn't embolden the math.

Let me preface this by saying I am fairly hack-and-slash when it comes to LaTeX and so my solutions aren't generally very elegant. Also I will try to be specific with my question, but if you need more information feel free to ask. I am currently writing up solutions to worksheets and was wondering if there was a way I could bold the entire question (formulas and all)? My current set up is something like this:  \begin{document}  \item %The question  \Sol{% Here goes the solution, this personalized command changes the margins a bit}  \end{document}   So basically what I would like to do is have the question number and the question in bold. I believe there is a way to change all math to bold and so I figured I could rig up something like:   \newcommand{\Q}{#1}{*Start-Math-Bold* {\bftext{\item{#1}}}*End-Math-Bold*}   and just use \Q{The question} to achieve desired result. Any thoughts?


I discovered recently that my *.domain.com cannot be used on server1.apps.domain.com because it will only "wild" the one level, not two.  The questions are thus twofold:   Is there such a thing as a *.*.domain.com certificate? Would such a certificate work on both server1.apps.domain.com and www.domain.com? (e.g. two different levels of depth)

We already have a wildcard certificate for *.mycompany.com. Our network has hosts that are only reachable internally. All of them belong to the internal.mycompany.com subdomain. There is a private server with the host name server.internal.mycompany.com on which I deployed our wildcard certificate.  When I visit the web server I get a host name mismatch error. Do I really have to get another wildcard certificate for *.internal.mycompany.com or is there another (free!?) way to use our wildcard certificate for all of our subdomains and its subdomains without getting an error in the browser?


I just upgraded to Ubuntu 18.04. In my previous version, the title, status, and the "File ..." menu were all bundled together in a neat little bar for every maximized window.  Now they are all separate, and as you can see they are taking up a huge amount of screen real estate. Is there any way to get some of it back?   2 big bars   3 big bars

Just moved from Unity to GNOME with the update to Ubuntu 17.10. There is a HUGE amount of wasted space at the top of the screen, when an application is open.  Evolution and Firefox both have four "bars" with 90% of each empty. Unity, to its credit was able to blend / mix these horizontal bars so there was only one / two.      Four is way too much. If this is GNOME I may carry on with Unity for the next six months.  Can anybody suggest a tweak/change/fix for this?


How do i establish the convergence of the series  $$1-\frac12-\frac13+\frac14+\frac15+\frac16-\frac17-\frac18-\frac19-\frac1 {10}+...$$  where the number of signs increases by 1 in each "block"?  I cannot apply the Dirichlet test because the sequence of partial sums of $1,-1,-1,1,1,1,...$ is not bounded.  Please help.

Establish convergence of the series: $1-\frac{1}{2}-\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{6}-...$ The number of signs increases by one in each "block".  I have an idea. Group the series like this: $1-(\frac{1}{2}+\frac{1}{3})+(\frac{1}{4}+\frac{1}{5}+\frac{1}{6})-...$  We can show that $1, \frac{1}{2}+\frac{1}{3},\frac{1}{4}+\frac{1}{5}+\frac{1}{6},...$ converges to 0. I'm trying to use Dirichlet's Test. However, I'm not sure wether this sequence is decreasing.  Any idea? Or any other method to establish the convergence?


I have the following virtual host configuration for nginx in a virtual host:  server {         listen 80 default_server;         listen [::]:80 default_server;          server_name angularindepth.com         rewrite ^/(.*)$ https://blog.angularindepth.com/$1 redirect; }   But when I run nginx it gives me the following errors:        [warn] 5007#5007: server name "^/(.*)$" has suspicious symbols in ...   [warn] 5007#5007: server name "$1" has suspicious symbols in ...   [emerg] 5007#5007: invalid server name or wildcard "^/(.*)$" on   0.0.0.0:80      I've googled and all questions seem to be around server_name directive, whereas in my case it contains a proper name. The problem seems to be with rewrite directive. Am I right? What's the problem?

I have the following nginx config, e.g.  server {         listen   80;         server_name example.com         allow 127.0.0.0/8;   When I restart, it warn me:  Restarting nginx: nginx: [warn] server name "127.0.0.0/8" has suspicious  symbols in /etc/nginx/sites-enabled/xxx   Any idea?


I'm a newbie to Linux using Ubuntu 16.04 and my manager ask me to upgrade my system to 17. So I need your help to guide me how to upgrade my system to 17.

What are the different ways I can use to upgrade Ubuntu from one release to another?


I am trying to download TROPOMI NO2 and SO2 data for my region as a timeseries from Google Earth Engine, however, the values are small (see attached images) and as such, when I download the CSV file, I find that all the values have been reduced to zero (0). How can I solve this in order to download the values as they are?  Here is my code:  var geometry = ee.Geometry.Polygon(   [[[27.671093749999986, 5.861609095403631],   [27.671093749999986, -12.999528581977067],   [44.19453124999998, -12.999528581977067],   [44.19453124999998, 5.861609095403631]]], null, false);  var data = ee.ImageCollection('COPERNICUS/S5P/OFFL/L3_NO2')   .select('NO2_column_number_density')   .filterDate('2019-01-01', '2019-01-30');  var tmseries = ui.Chart.image.series({   imageCollection: data,   region: geometry,   reducer: ee.Reducer.mean() }); print(tmseries);  print(tmseries.getDataTable());

When I am downloading the CSV file, the results show zeros in the CSV file. How can I download exact NO2 values as shown in Chart after running the mentioned below code in Google Earth Engine? // Create a FeatureCollection from the list and print it. var BergamoGeometry = ee.FeatureCollection(BergamoGeometry); print(BergamoGeometry); Map.centerObject(BergamoGeometry); Map.addLayer(BergamoGeometry); //////////////////////////////////////  var dataset = ee.ImageCollection("COPERNICUS/S5P/NRTI/L3_NO2")                  .filterBounds(BergamoGeometry)                   .filter(ee.Filter.date('2019-03-30', '2019-04-29'));                   var NO2 = dataset.select('NO2_column_number_density'); var band_viz = {   min: 0,   max: 0.0002,   palette: ['black', 'blue', 'purple', 'cyan', 'green', 'yellow', 'red'] }; // Create and print the chart. print(ui.Chart.image.series(NO2, BergamoGeometry, ee.Reducer.mean(), 30));


PROBLEM:     firefox can't open files from a ntfs automounted partition on   /media/myhd (neither save downloads to /media/myhd/downloads)   INFO:     DISTRO: Xubuntu 18.04   +     FSTAB: UUID=38FEBFFAFEBFAE8E  /media/myhd ntfs umask=0000,rw,suid,dev,auto,user,async,exec,allow_other,uid=noob,gid=noob,windows_names   0 0   +     myhd has been mounted successly, and noob is the current owner.   I think that issue is caused because firefox is currently in /snap/firefox and snap partition has another file system, or maybe, it is a firefox bug.

I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall119, organize-my-files. All them show me errors if I navigate to /media folder:    Could not read the contents of Media Error opening the directory of '/media': permission denied  Output of active Snap  is below: $ snap interfaces  | grep -v ".*-$" Slot                             Plug :browser-support                 organize-my-files :core-support                    core:core-support-plug :cups-control                    gedit :desktop                         gedit,organize-my-files :desktop-legacy                  gedit,organize-my-files :gsettings                       gedit,organize-my-files :home                            arduino-mhall119,gedit,organize-my-files :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl                          organize-my-files :pulseaudio                      organize-my-files,pulsemixer :unity7                          arduino-mhall119,gedit,organize-my-files :wayland                         gedit :x11                             arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604  gedit gtk-common-themes:gtk3-themes    gedit gtk-common-themes:icon-themes    gedit gtk-common-themes:sound-themes   gedit -                                arduino-mhall119:serial-port -                                gedit:avahi-observe -                                gedit:mount-observe  Updates:  connecting mount-observe to Gedit with snap connect gedit:mount-observe does not help. it seems that we need special Snap with support of  interface.


I am attempting to create a spell checking function that reads in a text file containing a passage that contains several misspelt words. For example: "My favorite subjects are: Physcs, Maths, Chemistree and Biology - I find it necesary to use my iPad to make comprensive notes after class." I have three issues that I am trying to resolve:   Currently, the program considers Maths to be an incorrect word due to the comma that is present immediately after the word. I believe that in order to solve this issue, it would be best to split the string in the text file like so: ['My', 'favorite', 'subjects', 'are', ':', ' ', 'Physcs', ' ', 'Maths', ','...etc]. How do I split the string into words and punctuation without using any imported python functions (e.g. string or regex (re) functions)? I am currently comparing each word with a dictionary of accepted English words by iterating over each word in the text file. Is there a better method to preprocess a list to quickly identify whether a word contains a given element to improve the runtime of the program? There are several words such as 'eBook' and 'iPad' that are exceptions to the rules used in the function is_valid_word below (i.e. the word must start with a capital with all the other letters being lowercase or all characters in the word must be uppercase). Is there a way that I can check whether the string is a valid word?   Any help would be greatly appreciated!  def get_words():     with open( "english.txt" ) as a:          words = a.readlines()     words = [word.strip() for word in words]     return words  isWord = get_words()  def is_valid_word(st):     if isinstance(st, str):         st_lower = st.lower()         if st_lower in isWord:             if (st[0:len(st)].isupper() or st[0:len(st)].islower()) or (st[0].isupper() and st[1:len(st)].islower()) or st[0:len(st)].isupper():                 return (True)             else:                  return(False)         else:             return (False)     else:         return (False)  def spell_check_file( file ):     incorrectWords = []  # Will contain all incorrectly spelled words.     num = 0  # Used for line counter.     with open(file, 'r') as f:         for line_no, line in enumerate(f):             for word in line.split():                 if is_valid_word(word) == False:                     incorrectWords.append(line_no)                     incorrectWords.append(word)         for f in incorrectWords:             return incorrectWords             print (incorrectWords)  spell_check_file("passage.txt")

I'm trying to split a string up into words and punctuation, adding the punctuation to the list produced by the split.  For instance:  >>> c = "help, me" >>> print c.split() ['help,', 'me']   What I really want the list to look like is:  ['help', ',', 'me']   So, I want the string split at whitespace with the punctuation split from the words.  I've tried to parse the string first and then run the split:  >>> for character in c: ...     if character in ".,;!?": ...             outputCharacter = " %s" % character ...     else: ...             outputCharacter = character ...     separatedPunctuation += outputCharacter >>> print separatedPunctuation help , me >>> print separatedPunctuation.split() ['help', ',', 'me']   This produces the result I want, but is painfully slow on large files.  Is there a way to do this more efficiently?


When I use \vdots within the align environment, its size is bigger than of the rest of characters. I want to get rid of the gap (purple colour on the picture below) or somehow move \vdots upward (\vspace{-Xmm} didn't work at all). My code is \documentclass[12pt]{article} \usepackage{amsfonts, amsmath}  \begin{document} \begin{align}     A &= B \nonumber\\       &=  C \nonumber \\       &=  \vdots \nonumber \\       &=  Z \nonumber \end{align}  \end{document}  which gives you  Cheers!

I'm using the \align* environment from the amsmath package.  How can I center one of the lines inside the environment?  In the following example, I want to the \vdots to be centered, instead of awkwardly aligned with the b above it.  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & a = (a_1, a_2) \\ & b = (b_1, b_2) \\ & \vdots \\ & z = (z_1, z_2) \end{align*} \end{document}


Let's say I have the following div that gets focus after a certain condition is met:
Some Text
   I want to create a handler that checks whether or not that div has focus, and when it evaluates to true/focus is on the div, do something (in the example below, print a console log):  if (document.getElementById('#myID').hasFocus()) {             $(document).keydown(function(event) {                 if (event.which === 40) {                     console.log('keydown pressed')                 }             });         }   I'm getting an error message in the console that says:  TypeError: Cannot read property 'hasFocus' of null  Any idea what I'm doing wrong here? Maybe the way I'm passing the div Id?

I would like to find out, in JavaScript, which element currently has focus. I've been looking through the DOM and haven't found what I need, yet. Is there a way to do this, and how?  The reason I was looking for this:  I'm trying to make keys like the arrows and enter navigate through a table of input elements. Tab works now, but enter, and arrows do not by default it seems. I've got the key handling part set up but now I need to figure out how to move the focus over in the event handling functions.


On change of a dropdown I add dynamically a row to a table.     in the last cell of the row I'm adding I have a button with class".ups".  The problem is that it seems maybe that this dynamically added row is not added to the  DOm and my jquery selector .ups doesn't work    $(document).ready(function () {      $("#drdCriterias").change(function () {           var table = document.getElementById("tableCriterias");             var row = table.insertRow(-1);             var cell1 = row.insertCell(0);             var cell2 = row.insertCell(1);             var cell3 = row.insertCell(2);              cell1.innerHTML = $('#drdCriterias').val();             cell2.innerHTML = $('#drdCriterias :selected').text();             cell3.innerHTML = '<button type="button" class="ups"></button>';      });      $("tr .ups").click(function () {         alert("Hi"); //nothing happens  });

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


I'm using an older laptop. My laptop Configuration is as follows,   Intel Celeron processor 2.00 GHz 2 GB of RAM 80 GB of Hard Disk

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I want evaluate this $\lim_{(x,y)\rightarrow (0,0)}\dfrac{xy^3}{x^2+y^4}$. I tried polar coordinates and I got this $$\lim_{r\rightarrow 0^+}\dfrac{r^2\cos\theta \sin^3\theta}{\cos^2\theta+r^2\sin^4\theta}$$  I would like to show that $\dfrac{\cos\theta \sin^3\theta}{\cos^2\theta+r^2\sin^4\theta}$ is bounded, but I was not able to do that. Any hint?

I have some trouble with this: Show that if $a, b \ge 0$, $c, d > 0$ and $\frac{a}{c} + \frac{b}{d} > 1$ then   $$\lim_{(x,y)\rightarrow (0,0)}\frac{\left|x\right|^a\left|y\right|^b}{\left|x\right|^c + \left|y\right|^d} = 0$$  we were not really shown how to evaluate multivariable limits other than trying different paths, which wouldn't work when the limit exists, or by applying the squeeze theorem which is my initial plan. Unfortunately I cannot find a proper bound for the denominator and so I am quite lost right now. Any help would be appreciated.


I have a tab delimited file with many columns:  1   A   10  1.94E-31       N/A   N/A    bat 1   B   20  1.94E-31       N/A   N/A    bear 1   C   12  1.94E-31       N/A   N/A    dear 1   D   36  1.94E-31       N/A   N/A    quinoa 1   R   55  1.94E-31       N/A   N/A    quinoa 2   E   48  1.94E-31       N/A   N/A    cat 2   F   62  1.94E-31       N/A   N/A    cat 2   G   49  1.94E-31       N/A   N/A    dog 2   H   13  1.94E-31       N/A   N/A    whale 3   I   28  1.94E-31       N/A   N/A    snake 3   J   95  1.94E-31       N/A   N/A    lion 3   K   64  1.94E-31       N/A   N/A    elephant 3   L   38  1.94E-31       N/A   N/A    dog 3   M   19  1.94E-31       N/A   N/A    fox 3   N   97  1.94E-31       N/A   N/A    eagle 3   O   84  1.94E-31       N/A   N/A    parrot 3   P   64  1.94E-31       N/A   N/A    insect 3   Q   13  1.94E-31       N/A   N/A    shark 3   R   49  1.94E-31       N/A   N/A    rat   I want to retain rows with unique ID having largest number in column 3:  1   R   55  1.94E-31       N/A   N/A    quinoa 2   F   62  1.94E-31       N/A   N/A    cat 3   N   97  1.94E-31       N/A   N/A    eagle   My real file is having headers and column 3 contain numeric with decimal.

I have a tabular file in which the first column has IDs and the second one has numeric values. I need to generate a file that contains only the line with the largest score for each ID.  So, I want to take this:  ES.001      2.33 ES.001      1.39 ES.001    119.55 ES.001     14.55 ES.073      0.35 ES.073     17.95 ES.140      1.14 ES.140     53.88 ES.140     18.28 ES.178    150.27   And generate this:  ES.001    119.55 ES.073     17.95 ES.140     53.88 ES.178    150.27   Is there a way of doing this from a bash command-line?


The table is too wide, and I want to make it narrower by wrapping the Second under the First, how should I achieve this?  The latex code looks like this currently:  \begin{table*}[t]   \centering   \caption{Add caption}     \begin{tabular}{|c|c|c|c|c|}     \hline     \multirow{2}[4]{*}{Case Study} & \multirow{2}[4]{*}{5} & \multicolumn{3}{c|}{IBEA} \bigstrut\\ \cline{3-5}        &     & FD & P & U \bigstrut\\     \hline     \multirow{3}[6]{*}{First Second} & Run (c.) & 6090 & 6605 & 7976\bigstrut\\ \cline{2-5}        & Run (nc.) & 6665 & 6187 & 6609 \bigstrut\\ \cline{2-5}        & \#Missed & 39332 & 46001 & 46765 \bigstrut\\     \hline     \multirow{3}[6]{*}{First Second} & Run (c.) & 4418 & 4459 & 4513 \bigstrut\\ \cline{2-5}        & Run (nc.) & 4480 & 4384 & 443 \bigstrut\\ \cline{2-5}        & \#Missed & 21081 & 21897 & 21613\bigstrut\\     \hline     \multirow{3}[6]{*}{First Second} & Run (c.) & 4163 & 4251 & 4282 \bigstrut\\ \cline{2-5}        & Run (nc.) & 4241 & 4186 & 4302\bigstrut\\ \cline{2-5}        & \#Missed & 1217 & 1456 & 2524 \bigstrut\\     \hline     \end{tabular}%   \label{tab:addlabel}% \end{table*}%

The table is too wide, and I want to make it narrower by wrapping the Second under the First, how should I achieve this?  The latex code looks like this currently:  \begin{table*}[htbp]    \centering   \caption{Add caption}     \begin{tabular}{c|ccccc}     \hline     \textbf{\#} & \textbf{Violations} & \textbf{First Second} & \textbf{First Second} & \textbf{First Second} & \textbf{First Second} \bigstrut\\     \hline     1   & 0   & 91  & 101 & 507 & 1973.54 \bigstrut[t]\\     2   & 0   & 102 & 92  & 472 & 1874.65 \\     3   & 0   & 104 & 92  & 459 & 1856.21 \\     4   & 0   & 108 & 100 & 407 & 1790.56 \\     5   & 0   & 112 & 77  & 511 & 1723.66 \\     $\ldots$   & $\ldots$  & $\ldots$  & $\ldots$   & $\ldots$   & $\ldots$ \\     \hline     \end{tabular}%   \label{tab:addlabel}% \end{table*}%


Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I am very inexperienced in electronics, so far I have just done real simple stuff with an arduino. I have a Nema17 (driven through a L293D) stepper motor which has a rated voltage of 12V and current of 0.4A. Now, my understanding of current and voltage is that the current solely depends on the voltage of the power supply and resistance of the motor. Therefore the motor draws a certain amount for a specific voltage. Now, when I connect my power supply to my circuit I only get to 0.4A or anywhere near that by setting to voltage to about 20V which exceeds the 12V rated voltage of the motor. Am I simply understanding this in a wrong way or do I somehow need to convert the voltage to 12V without the current being affected?

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I'm trying to get the following Javascript work (it should be an embedded survey from formstack.com that shows up on specific days).  However, when I try to view it all I get displayed is the string (without the quotes) "'); }"  What is wrong?  <head> <script type="text/javascript">  var theDate = new Date(); var dayOfWeek = theDate.getUTCDay();  // Returns true if the restaurant is open function isOpen() {     //I'll fill this in later, for now, return true     return true; } </script>  </head><body> <script type = "text/javascript"> if(isOpen()) { document.write('<script type="text/javascript" src="http://www.formstack.com/forms/js.php?1134414-uqmj2UXxEw-v2"></script>'); } </script> </body>

Why do some sites (or advertisers that give clients javascript code) employ a technique of splitting the <script> and/or </script> tags up within document.write() calls?  I noticed that Amazon does this as well, for example:  <script type='text/javascript'>   if (typeof window['jQuery'] == 'undefined') document.write('<scr'+'ipt type="text/javascript" src="http://z-ecx.images-amazon.com/images/G/01/javascripts/lib/jquery/jquery-1.2.6.pack._V265113567_.js"></sc'+'ript>'); </script>


On a website I have an input field "Page" with a label / description below it: which one of the following is correct? If both are correct, is there any difference in meaning?  The page that is opened when a user clicks the notification The page that opens when a user clicks the notification

Both ways seem to be used quite interchangeably even though the first one doesn't seem grammatical to me (English is, however, my second language so I could be miles off here). What do you think?


Many times, it happens to me to produce stacked time history plots, with xticks and xlabel in common in order to save vertical space in papers.  Consider the following MWE:  \documentclass{standalone} \usepackage{pgfplots}  \pgfplotsset{   compat=1.14,    width=200pt,   height=100pt, }  \begin{document}    \begin{tikzpicture}     \begin{axis}[       name = plot1,       xticklabels={,,},       ylabel = {$x_1$},       xmajorgrids,     ]       \addplot coordinates {(1,0.0001)(2,0.0002)(3,0.0003)};     \end{axis}      \begin{axis}[       at=(plot1.south west), anchor=north west,       xlabel = {$t$[s]},       ylabel = {$x_2$},       xmajorgrids,     ]       \addplot coordinates {(1,0.0002)(2,0.0004)(3,0.0006)};     \end{axis}    \end{tikzpicture}% \end{document}   which produces the following result:    As one can notice, the y-axis multiplier position is a problem. A possible solution would be specify the multiplier in every y tick label with scaled y ticks=false, but then the result is really heavy and space consuming.  I would like to be able to pragmatically produce the following result:    which, in my opinion, is really compact and elegant.  To do this programmatically, the exponent of the scientific notation is needed, in order to put it in the ylabel, something like:  ylabel = {$x_1 \cdot 10^{-\sci_exponent}$},   and then a way to get the scaled ytick label.  Is it possible?  Please, note that, differently from , I do not want just move the exponent, but I would like to invert the exponent in order to (for example) get $10^{4} in place of 10^{-4}, as in the figures above.

I'm trying to put xtick scale label (defined by pgfkey /pgfplots/xtick scale label code/.code) in x axis label, between variable name and unit.  I've tried executing using the option xlabel = {$ x $ (\pgfkeysvalueof{/pgfplots/xtick scale label code/.code} m)} to put in but this doesn't work.  I've also tried the following xtick scale label code/.code={\pgfkeyssetvalue{/pgfplots/xlabel}{#1}} to force PGFPlots to change my xlabel but it doesn't work as well.  I know I can do this by hand, but I'm interested in automatic approach. Is there a workaround or a solution to this?  My MWE is:  \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.14}  \begin{document}      \begin{tikzpicture}     \begin{axis}[         scaled x ticks=true,         scaled y ticks = false,         y tick label style={/pgf/number format/fixed},         %xtick scale label code/.code={\pgfkeyssetvalue{/pgfplots/xlabel}{#1}},         xlabel = {$ x $ (\pgfkeysvalueof{/pgfplots/xtick scale label code/.code} m)},         ylabel = {$ y $},     ]      \addplot[line width=3pt] coordinates {(0.0,0.0)(100,1)(400,2)(10000,0)};      \end{axis}     \end{tikzpicture}  \end{document}   Output from this code is:


let's see if someone can help me with this proof.  Let $\Omega\subset\mathbb{R}^n$ be a bounded domain. And let $L^2\left(\Omega\right)$ be the space of equivalence classes of square integrable functions in $\Omega$ given by the equivalence relation $u\sim v \iff u(x)=v(x)\, \text{a.e.}$ being a.e. almost everywhere, in other words, two functions belong to the same equivalence classes if they only are different in a zero meassure set.  This space is a Hilbert space and its norm is:  $$ \Vert v \Vert ^2_{L^2 \left( \Omega \right) }= \int_\Omega v(x)^2\,\mathrm{d}x $$  Let $H^1\left(\Omega\right)=\left\{ v\in L^2\left( \Omega \right);\,\vert\mathbf{grad}(v)\vert \in L^2\left( \Omega \right ) \right\}$ be also a Hilbert space and its norm :  $$ \Vert v \Vert ^2_{H^1 \left( \Omega \right) }= \Vert v \Vert ^2_{L^2 \left( \Omega \right) } + \Vert \vert\mathbf{grad}(v)\vert \Vert ^2_{L^2 \left( \Omega \right) } $$   I've been asked to proove that:  $$ \Vert v \Vert ^2_{H^1 \left( \Omega \right) } \le C\left( \Omega\right) \left( \Vert \vert\mathbf{grad}(v)\vert \Vert ^2_{L^2 \left( \Omega \right) } + \int_\Gamma \left ( \gamma v(x) \right) ^2\,\mathrm{d}\sigma \right) \quad \forall v\in H^1 \left( \Omega \right) $$  where $\Gamma = \partial \Omega $, $\Omega $ is smooth enough, $\mathrm{d}\sigma$ is a meassure on the boundary of $\Omega$, and the operator $\gamma: L^2\left( \Omega\right )\mapsto L^2\left( \Gamma\right )$ is the trace operator. ( if it is needed I can define it also )  Sincerely, I just don't know how to begin, and maybe someone could give me some clue about it.(by the way the $C$ is a positive constant depending only on the domain $\Omega$).  Thank you very much!

Let $\Omega\subset\mathbb{R}^n$ be a bounded domain. And let $L^2\left(\Omega\right)$ be the space of equivalence classes of square integrable functions in $\Omega$ given by the equivalence relation $u\sim v \iff u(x)=v(x)\, \text{a.e.}$ being a.e. almost everywhere, in other words, two functions belong to the same equivalence classes if they only are different in a zero meassure set.  This space is a Hilbert space with the norm is:  $$ \Vert v \Vert ^2_{L^2 \left( \Omega \right) }= \int_\Omega v(x)^2\,\mathrm{d}x $$  Let $H^1\left(\Omega\right)=\left\{ v\in L^2\left( \Omega \right);\,\vert\mathbf{grad}(v)\vert \in L^2\left( \Omega \right ) \right\}$ be also a Hilbert space and its norm :  $$ \Vert v \Vert ^2_{H^1 \left( \Omega \right) }= \Vert v \Vert ^2_{L^2 \left( \Omega \right) } + \Vert \vert\mathbf{grad}(v)\vert \Vert ^2_{L^2 \left( \Omega \right) } $$   I've been asked to prove that:  $$ \Vert v \Vert ^2_{H^1 \left( \Omega \right) } \le C\left( \Omega\right) \left( \Vert \vert\mathbf{grad}(v)\vert \Vert ^2_{L^2 \left( \Omega \right) } + \int_\Gamma \left ( \gamma v(x) \right) ^2\,\mathrm{d}\sigma \right) \quad \forall v\in H^1 \left( \Omega \right) $$  where $\Gamma = \partial \Omega $, $\Omega $ is smooth enough, $\mathrm{d}\sigma$ is a meassure on the boundary of $\Omega$, and the operator $\gamma: L^2\left( \Omega\right )\mapsto L^2\left( \Gamma\right )$ is the trace operator. ( if it is needed I can define it also )  Sincerely, I just don't know how to begin, and maybe someone could give me some clue about it.(by the way the $C$ is a positive constant depending only on the domain $\Omega$).  Thank you very much!


Can you please explain this structure?     I can't forget the looks on faces of people who've lost hope. Be they gay, be they seniors, be they blacks looking for an almost-impossible job, be they Latins trying to explain their problems and aspirations in a tongue that's foreign to them.   *This is also from Harvey Milk's "The Hope Speech"

Which of the following is grammatical?        He had lollies be they red or blue?    He had lollies be them red or blue?      It seems as if it could be them as an object of be.


The only thing I know for this problem is that an integer is a product of primes.

I have this exercise in my worksheet in the discrete mathematics course.I don't understand the part that deals with prime numbers in .     "Show that for a prime number $p$, if a $p\mid a^n$ then $p\mid a$"    Can somebody show how ?


I updated my code from previous suggestions, and it is only reading the first word in my sentence, any suggestions on how to get it to read the whole sentence? (I have to use a for loop)  import java.util.Scanner;  public class CountCharacters { public static void main(String[] args) {     Scanner in = new Scanner(System.in);      char letter;     String sentence = "";     System.out.println("Enter a character for which to search");     letter = in.next().charAt(0);     System.out.println("Enter the string to search");     sentence = in.next();      int count = 0;     for (int i = 0; i < sentence.length(); i++) {         char ch = sentence.charAt(i);         if (ch == letter) {             count ++;         }     }     System.out.printf("There are %d occurrences of %s in %s", count,             letter, sentence);  } }   Output:  Enter a character for which to search h Enter the string to search hello how are you There are 1 occurrences of h in hello

I have the string   a.b.c.d   I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner.  (Previously I had expressed this constraint as "without a loop", in case you're wondering why everyone's trying to answer without using a loop).


What is the [0] doing in this code:   select((select(LOG_FILE),$!=1)[0]);

I've seen some horrific code written in Perl, but I can't make head nor tail of this one:  select((select(s),$|=1)[0])   It's in some networking code that we use to communicate with a server and I assume it's something to do with buffering (since it sets $|).  But I can't figure out why there's multiple select calls or the array reference. Can anyone help me out?


Before my '=' there is the error 'End of statement expected' and after there is the error 'Statement expected, Found Py:EQ'  Looked on the internet  def roll_dice():     dice_num = ""     global dice_num = random.randint(1, 6)   Can't compile and get syntax errors

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I am very much strrugling on how to display my shapefiles stored in postgis database to the browser or to the web.. is there anyone there knows how to do it.? I am using geodjango framework in python,. I already achieve the displaying of maps in admin interface but when I create my public page for displaying the maps, its make my head aching,.I did not konow how to overlay my shapefiles stored in database to the base map openlayers / openstreetmap.

I want to start working on a web map at work to map some of our statistics by city.    I have an idea, but I'm not exactly sure where to start.   Are there any definitive resources that provide step by step guidance on how to do this?


I understand how objects are passed by reference in Javascript. In the following code my function changes a property of an object. It changes in the global scope as expected. I understand it. let a = {name:'blah1'};  function something(obj1) {   obj1.name = 'blah2';   console.log(obj1);  // prints {name:'blah2'} }  something(a); console.log(a); // prints {name:'blah2'}  In the following code, I rather pass another object to my function and make my first object equal to the second. This time it does not change in global scope. How can I understand this? let a = {name:'blah1'}; let b = {name:'blah2'};  function something(obj1, obj2) {   obj1 = obj2;   console.log(obj1); // prints {name:'blah2'} }  something(a,b); console.log(a); // prints {name:'blah1'}

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


I start by supposing $Q = \bigcap_{n=1}^{\infty}O_n$.  Then by a corollary to the Baire Category theorem: A complete space that can be written as $X = \bigcup_{n=1}^{\infty}X_n$ has $\ge 1$ n such that Int(closure($X_n$)) $\neq \emptyset $.    Therefore because $R = \bigcap_{n=1}^{\infty}O_n \bigcup \Bbb P $, we can write that $X_n$ = Int(closure$(O_n \bigcup \Bbb P))$.  But aren't the closures of both $O_n$ and $\Bbb P$ $= \Bbb R$, where would the contradiction be?

I am reading chapter 4 of  and trying to solve question 4.14, in which we are asked to show that:  $\mathbb{Q}$ is not the intersection of a countable collection of open sets. The clue is to use Baire's Category Theorem.  I can't see how to do that, and can't see the connection to Baire's category theorem. Intuitively, I agree that this seems reasonable, since any intersection of open sets is a set with non empty interior (am I right about that?). So, if $\mathbb{Q}$ were an intersection like that it would contain an open interval (again, hope I am right would like to know if not.). But, I guess this is not a proof, and, can't see the connection to Baire's theorem.  Thank you!! Shir


I am starting to work with math nodes more often and came across something I don't understand fully. When you preview a value node that is set to a value of 1, the result is not pure white. If I crank it to about 3-4, then I get pure white.  Why doesn't 1 result with maxed out RGB values? Thanks for any help.

I am using the 2D Animation preset and so far every new scene I made had the same bright white background. Now my two latest scenes (created with 'copy settings') have a light grey background even though they are set to white. There's also no difference in surface, nodes or strength.  There are apparently exist different background shades with an off-white color but selecting the white one doesn't help either


I have project which is committed in locally, now I want to see the changes made in the project with the modified code, I want output like as follows :    commit 54576760f3437ta3s457999d3ef606   Author: Rajesh   Date:   Tue Nov 13 1:40:55 2012 +0100     class myFile {       ....       //modified code should getdisplayed    }   What is the command can i use for it ?

Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit?  git diff 15dc8^..15dc8   If you only give the single commit id git diff 15dc8, it diffs that commit against HEAD.


To prove this, I think the Δ should =$k^2$ so I let a=2p-1, b=2q-1, c=2r-1, where p, q, r are all positive integers, then I calculated $ b^2-4ac$ which is $-16 p r + 8 p + 4 q^2 - 4 q + 8 r - 3$ and find it hard to prove that $-16 p r + 8 p + 4 q^2 - 4 q + 8 r - 3 ≠ k^2$ so how to prove Δ ≠ $k^2$ and is it possible to use method of contradiction ( let a root $x_0$= p/q and $gcd(p,q)=1$)

If $a,b,c$ are odd, how can we prove that $ax^2+bx+c=0$ has no rational roots?  I was unable to proceed beyond this: Roots are $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ and rational numbers are of the form $\frac pq$.


I am customising my PhD bibliography with biblatex and I face the following problem: I want to keep a consistency between the citations in the text and the label names in the list of references, so that the reader quickly recognises the citation by its label.   This works very well if I limit the maxcitenames and maxalphanames to 1, by defining the master number to maxnames=1 then in order to keep all the authors in the reference, I define maxbibnames=20.     However, for maxnames=2 or more, it doesnt seem to work, even after defining maxalphanames=2 explicitly     Any solution/comment is welcome Here is my MWE:  \documentclass{article} \usepackage [backend=bibtex,style=authoryear]{biblatex} \usepackage{filecontents} \begin{filecontents}{refs.bib} @article{a,     title = {first publication},     journal = {a first journal},     author = {A},     year = {2000}, } @article{b,     title = {second publication},     journal = {a second journal},     author = {X and C},     year = {1988}, } @article{c,     title = {third publication},     journal = {a third journal},     author = {O and P and Q},     year = {2006}, } @article{h,     title = {Observations of ingot macrosegregation on model systems},     journal = {Metallurgical Transactions},     author = {Hebditch, D. J. and Hunt, J. D.},     year = {1974}, } \end{filecontents} \addbibresource{refs} \ExecuteBibliographyOptions{ minnames=1, maxnames=2,                                                         maxbibnames=20,                             }  %define label before reference in list   \renewbibmacro{begentry}{% \textbf{(\printnames[][-\value{liststop}]{labelname}~\printfield{labelyear}\printfield{extrayear}})\\}  \begin{document} \parencite{a} \\ \parencite{b} \\ \parencite{c} \\ \parencite{h} \\ \printbibliography \end{document}

I want to add a block at the beginning of my bib entries of the form      [Lastnameauthor(s) Year]   When the shortauthor field is defined it should use this field +Year instead. The following example is fairly minimal:  \begin{filecontents*}{test.bbx} \ProvidesFile{test.bbx}  [\abx@bbxid $Id: test.bbx,v 0.9d 2010/09/03 20:11:58 lehman beta $]  \RequireBibliographyStyle{authoryear}  \DeclareBibliographyDriver{article}{%   \usebibmacro{bibindex}%   \usebibmacro{begentry}%   %---add something here---   \usebibmacro{author/translator+others}%   \setunit{\labelnamepunct}\newblock   \usebibmacro{title}%   \newunit   \printlist{language}%   \newunit\newblock   \usebibmacro{byauthor}%   \newunit\newblock   \usebibmacro{bytranslator+others}%   \newunit\newblock   \printfield{version}%   \newunit\newblock   \usebibmacro{in:}%   \usebibmacro{journal+issuetitle}%   \newunit   \usebibmacro{byeditor+others}%   \newunit   \usebibmacro{note+pages}%   \newunit\newblock   \iftoggle{bbx:isbn}     {\printfield{issn}}     {}%   \newunit\newblock   \usebibmacro{doi+eprint+url}%   \newunit\newblock   \usebibmacro{addendum+pubstate}%   \setunit{\bibpagerefpunct}\newblock   \usebibmacro{pageref}%   \usebibmacro{finentry}}  \endinput  \end{filecontents*} \begin{filecontents*}{MeineBib.bib}   @article{example,  author={Firstname Lastname and First Last},   title={Title},  journal={Journal},  year={Year},   pages={Pages}, }    \end{filecontents*}  \documentclass[12pt,ngerman,    ]{scrartcl} \usepackage[ngerman]{babel} \usepackage{filecontents} \usepackage[babel,german=quotes]{csquotes} \usepackage [bibstyle=test]{biblatex} \bibliography{MeineBib}  \begin{document} \tableofcontents \cite{example} \printbibliography\end{document}   I'm guessing the solution lies here  DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       %---add something here---       \usebibmacro{author/translator+others}%   but I can't find out how. It should look like this  which is an existing style (natdin) in BibTeX, but not in biblatex.


I'm trying to get the id of a div element that I show from the database.  The ID is generated dynamically, and it corresponds whit the record id, but when I try to get the id through a click event, I get only the id of the first element, or in other cases, all the ID's of the dynamic fields.  Here is the code fragment of my .js file:           /* Every field element is dynamically generated */         $('#data .fields[id^=field_]').click(async() => {             $('form').attr("action", "http://xx.xx.7.205:3000/api/pedidos/modificar");             const id = $(this).attr('id').slice('-')[1];             const ret = new Buscar();             const json = ret.buscar(id);             llenarCamposFormulario(id, json);             $('.anular').click(async() => {                 const ret2 = new eliminarPedido();                 const what = await ret2.buscar(id);                 console.log(what);                 resetFields();             });         });   Thanks in advance!

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


In object mode, the objects look normal:  However, when in eevee, the material preview and the rendered mode look like this:  When I zoom or rotate I get this weird outline:  Please note that this is a brand new blender project in the images, but this same issue applies to all my projects. I have already tried setting back my driver but that hasn't worked. I've also tried downloading earlier versions of Blender, but somehow I get the same issue. PC Specs (if that helps): Operating System: Windows 10 Pro 64-bit (10.0, Build 19041) (19041.vb_release.191206-1406) Processor: Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz (6 CPUs), ~2.1GHz RAM: 8GB DirectX Version: DirectX 12 Card name: Radeon RX 580 Series Any help would be much appreciated.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I started a program on a directory but accidentally removed it, and the program inside. The program generates a couple of output files. The program is still running. I wonder if I create the same directory the program will still create the output files there. Is that possible?

I ran following commands in the order specified:  $ln a b $ls -i a b 523669 a 523669 b $rm -f a $ls -i b 523669 b   I concluded from this test that the command rm actually removes only the filename (a in this test) instead of the file, as the inode still exists and could be retrieved through another filename (b).  My question is, if a file is hard linked to only one filename, when rm is executed to the file, is the real file (i.e., the inode) removed completely? And if not, can a file inode be retrieved without a filename and only through the inode?


Here's part of a sentence:      a person's self image and their behavior...   Is it correct to use their in that situation? Or should it be his or her? This is from an older essay from university, so the grammar has to be okay.

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


Good afternoon!  I'm currently taking a physics course, and we're covering Kirchoff's Laws.  To the best of my knowledge, Kirchoff's voltage law reads "The sum of the potential differences across all the elements around any closed circuit loop must be zero."  I had a homework problem that involved the following circuit:    I was tasked with (among other things) finding the current in the top-most branch of the circuit (between A and B).  While trying to find that, I was faced with applying Kirchhoff's Voltage Law to loop CBDC.  In a situation like this, how can the voltage changes across the individual elements in the loop sum to zero?  More generally, in a circuit consisting of two batteries of different voltages and no resistors, how can the sum of the potential changes across the elements be zero?  Thank you!

In context to the diagram below , it is quite easy to find the current flowing through section AD , which turns out to be 2A , however , I cannot determine the current in any other branches with Kirchoff's Voltage Law . The branches AB,CD,DE and FA have no resistance across them so whenever I take those branches in any of the the possible loops , the potential drop/rise will always be 0 so the terms involving 'I' never appear and consequently they are indeterminable.So how do I find the magnitude of 'I' ? In this particular case I can guess than I=1A with junction rule and the symmetry of the circuit - the batteries have same emf, so what if the emfs aren't same ? then the original problem comes up again.


I'm trying to write a  python program that lets the user input the month by number for example the month of March as 3 and outputs the number of days and that mount

Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?  If the standard library doesn't support that, does the dateutil package support this?


The following answer hit the low quality post queue:   Now the answer is extremely similar to many of the already upvoted answers on the question, most of which are from 2009 - but in addition the linked answer provided no explanation to the code, whereas the upvoted answers did.  The "Recommend Deletion" comments don't really fit, so I don't know if it's valid to recommend deletion, but I wouldn't say the answer "Looks Ok" either.  What should be done (if anything) in cases like this?   EDIT  The answer has since been removed apparently, but either way I've been bit by the automated audit function before in the LQP queue, so I wanted to try to understand what the outcome of situations like this would be - sure you can downvote the answer as one of the comments on this question stated, but that doesn't really help with the queue.

In  Joel Spolsky mentioned something along the lines that some sites (for example, ) suffer a little from questions that don't always get useful answers - even when someone has good intentions. So, for example, someone asks a question about getting a visa. It's tough and a rare visa, but nobody who has been online that day sees it AND knows the answer, so it gets no response. However, Joe from Kansas sees it, remembers his cousin got a visa just like that, he thinks. He writes an answer that his cousin got a visa for that country, despite it being not quite the same, he thinks it'll be useful. It's not necessarily useful, but now the question is 'answered', and vanishes into the ether. Obviously, the OP isn't going to accept the answer, as it's not really right. We do have a few of these on Travel Answers, as well as many, many GOOD answers, to be clear - but what can be done about it?  Vote them down? This will make it still 'unanswered with no answers > 0' if we're lucky Delete the answer? Odds are someone else coming along might see it and find it useful in a very similar situation Change to a comment? Some of these are quite detailed (especially visa criteria and laws) that most of us wouldn't know to change it or not.  Any suggestions or solutions that other sites have found?


regarding the file:  .bash_profile  what is the different between    PATH=${PATH}:${HOME}/bin:/usr/local/   to   PATH=$PATH:$HOME/bin:/usr/local   and what is the correct syntax?

I can write  VAR=$VAR1 VAR=${VAR1} VAR="$VAR1" VAR="${VAR1}"   the end result to me all seems about the same. Why should I write one or the other? are any of these not portable/POSIX?


I am writing a scientific paper with supplementary information in an additional document. The paper and the supplement share many references, which in the paper are numbered by first appearance in the text.  I would like the references in the supplement to have the same numbers as in the paper. I have additional references there and not all references from the paper show up in the supplement.  I am still working on the documents and the .bib-file is changing. It is generated by .  Is there a way to achieve the numbering the way I like? I haven't tried, but I think, that one way could be to create a .bib-file with all references that I want to use and then number all of them, regardless of their use in the current document. The problem is, that when I change the first appearance of one reference, I have to change the order of the bibtex-entries in the .bib-files, which is not very handy.

This question led to a new package:      I want to reference to citations from other file. Similar to what xr package does to labels, but I want to apply it for the bibliography.  If I'm able to do \cite{someone} in the main file, and it creates let say the number [4], I want to do the same \cite{someone} in a second file, and also create the same number [4]. Similar to what xr does with the labels.  By the way, I tried to add the main.bbl file from the main file. However, that adds all the references to the end of the second file. I want to avoid this.  Is there any package that accomplish this?


I came across with this limit:  $\lim_{x \to 0}\frac{\tan x - \sin x}{x^3}$  I started working it out this way:  $\lim_{x \to 0}(\frac{\tan x}{x}\times \frac{1}{x^2}) - (\frac{sin x }{x}\times \frac{1}{x^2})$ = $\lim_{x \to 0}(1\times \frac{1}{x^2}) - (1\times \frac{1}{x^2})$ = $\lim_{x \to 0}\frac{1}{x^2} - \frac{1}{x^2}$ = $0$  This is wrong since the solution is $\frac{1}{2}$. So my question is why can't I do this?

$$\lim_{x\to 0} \frac{\tan x - \sin x}{x^3}$$  Solution  \begin{align}\lim_{x\to 0} \frac{\tan x - \sin x}{x^3}&=\\&=\lim_{x\to 0} \frac{\tan x}{x^3} - \lim_{x\to 0} \frac{\sin x}{x^3}\\ &= \lim_{x\to 0}\frac{\tan x}{x}\lim_{x\to 0} \frac{1}{x^2} -\lim_{x\to 0} \frac{\sin x}{x}\lim_{x\to 0} \frac{1}{x^2}\\&= \lim_{x\to 0} \frac{1}{x^2} -\lim_{x\to 0} \frac{1}{x^2}\\ &= \lim_{x\to 0} \frac{1}{x^2} -\frac{1}{x^2}\\&=0 \end{align}  But the answer is $\dfrac{1}{2}$ by L'Hopital's Rule.


It's a chip with an H on it next to a little guy in a circle.

At the very beginning of the booting of an installation media (typically a USB stick), before even choosing your language, there is an intriguing symbol. It represents a keyboard, an equal sign (=) and a circled human. This circled human is similar to the accessibility symbol in GNOME.  What does the symbol mean and what would happen if I press a key at that time?


Should I add a ; after putting a function into a variable? is this code right?  pj.RemoveProjectTask = function (e, scope) {     e.preventDefault();     scope.remove(); };  pj.ToggleProjectTask = function (e, scope) {     e.preventDefault();     scope.toggle(); };   or this code:  pj.RemoveProjectTask = function (e, scope) {     e.preventDefault();     scope.remove(); }  pj.ToggleProjectTask = function (e, scope) {     e.preventDefault();     scope.toggle(); }

In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out?  If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point:     If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens.   That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.)   is related, but only talks about a specific scenario.


I have a dataset with 200,000 entries with four columns (time_of_day, order_size, time_taken, shop_number). I need to build a model and predict time_taken using the other three variables. There are more than 30,000 shop ids.  My approach has been to: 1. Try to use one_hot_encoding to encode each shop no. However, this leads to very large number of columns in my dataset. 2. Build a separate model for each shop assuming all shops have different efficiencies independent of one another.  Any other approach will be appreciated? Also, what type of model should I use in my data? I have tried simple linear regression and bayesian regression till now.

What techniques are available for collapsing (or pooling) many categories to a few, for the purpose of using them as an input (predictor) in a statistical model?    Consider a variable like  (discipline chosen by an undergraduate student). It is unordered and categorical, but it can potentially have dozens of distinct levels. Let's say I want to use major as a predictor in a regression model.  Using these levels as-is for modeling leads to all sorts of issues because there are just so many. A lot of statistical precision would be thrown away to use them, and the results are hard to interpret. We're rarely interested in specific majors -- we're much more likely to be interested in broad categories (subgroups) of majors. But it isn't always clear how to divide up the levels into such higher-level categories, or even how many higher-level categories to use.  For typical data I would be happy to use factor analysis, matrix factorization, or a discrete latent modeling technique. But majors are mutually exclusive categories, so I'm hesitant to exploit their covariance for anything.  Furthermore I don't care about the major categories on their own. I care about producing higher-level categories that are coherent with respect to my regression outcome. In the binary outcome case, that suggests to me something like linear discriminant analysis (LDA) to generate higher-level categories that maximize discriminative performance. But LDA is a limited technique and that feels like dirty data dredging to me. Moreover any continuous solution will be hard to interpret.  Meanwhile something based on covariances, like multiple correspondence analysis (MCA), seems suspect to me in this case because of the inherent dependence among mutually exclusive dummy variables -- they're better suited for studying multiple categorical variables, rather than multiple categories of the same variable.  edit: to be clear, this is about collapsing categories (not selecting them), and the categories are predictors or independent variables. In hindsight, this problem seems like an appropriate time to "regularize 'em all and let God sort 'em out". Glad to see this question is interesting to so many people!


I'm trying to create a function that will divide a number into categories based on a specified percent (okay, a budget.)  I've taken the divided floats, grabbed a test truncate function off the web, and truncated everything after the hundredth place. This is to prevent the sum of all the categories being greater than the initial amount. Then I subtract the total sum of the categories from the initial amount to get a "remainder," which in my example should be 0.03, or 3 cents.  def budget_calc(amount):      budget = {"t":0.10,             "c":0.50,             "s":0.20,             "e":0.05,             "c/m":0.05,             "tr":0.05,             "o":0.03,             "g/d":0.02}      def truncate(x, d):          return int(x*(10.0**d))/(10.0**d)       def multp(key):          cate = truncate(amount * budget.get(key), 2)          return cate       new_amounts = {'t': multp('t'),               'c': multp('c'),               's': multp('s'),               'e': multp('e'),               'c/m': multp('c/m'),               'tr': multp('tr'),               'o': multp('o'),               'g/d': multp('g/d')}      remainder = amount - sum(new_amounts.values())     new_amounts.update(remainder = remainder)      return new_amounts   This is what I'm getting:  budget_calc(148.72)       {'t': 14.87,      'c': 74.36,      's': 29.74,      'e': 7.43,      'c/m': 7.43,      'tr': 7.43,      'o': 4.46,      'g/d': 2.97,      'remainder': 0.029999999999972715} #<-- this number should only contain two decimal points   So somewhere along the line the "truncate" function is only displaying the truncated number, not actually getting rid of the excess digits? The math in there is wrong as well, 148.72 - the sum of all the truncated numbers (148.69) should be 0.03. That's what it seems like, an additional diagnosis would be great.

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


I've been building a very thorough script to handle the process of fresh-installing Ubuntu and setting it up just the way I like (as well as adapting it for use at where I work). It's a bash script I run right after install.  One of the last remaining things I haven't figured out how to do with something like gsettings is to control what icons get locked to the launcher. I would like to remove almost all the default icons and only lock icons of my choosing instead.   Any ideas?   Running 14.04.2, pure Ubuntu (not a variant).

I am customizing an Ubuntu 14.04 Live CD with UCK (Ubuntu Customization Kit). The program gives you a chroot environment in a terminal to make changes.   I want to add and remove what programs appear on the dock.  I'm not sure if this can be accomplished by modifying the .desktop file?  How can this be done using the terminal?


I have function to switch my      Into       It would allow to have 2 differents actions, but once changed, it always return the class which is executed.  Here is an example of my problem :      As you see, impossible for the .test2 function to work  Thank you for your help

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


I am using this approach but it is giving null pointer Exception is there any other way to do that ? private BaseExtension android; StringBuilder str=new StringBuilder();          File file = this.android.getSdkDirectory();         Intrinsics.checkExpressionValueIsNotNull(file, "android.sdkDirectory");         String androidJar = str.append(file.getAbsolutePath()).append("/platforms/")                 .append(this.android.getCompileSdkVersion())                 .append("/android.jar").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?


sandeep@sandeep-HP-Pavilion-g6-Notebook-PC:~$ apt-get install mysql-server php5-mysql E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


I couldn't find more information on this but as far as I understand has method from Map and Set collections determines whether a given map or set has an object by checking for reference equality. But I'd like to check whether the objects are equal by comparing their properties.  For example:  let map = new Map(); let obj = {name: "Jack"}; map.set(obj, "myObj"); let result = map.has({name: "Jack"}); //false   result is false but the properties of the objects are identical, so in such case I'd like has to return true.  In Java I'd have to override equals and hashCode methods inside my class to achieve such functionality. Is there something similar I can do in Javascript without overriding has itself?

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


ORIGINAL TITLE: Why are package versions in Ubuntu so lagged? How to make package management more efficient? (edited to avoid duplicate questions, see comments below)  Backgroud: I started using Ubuntu occasionally since 2009, and used Xubuntu on a daily basis for about four months last year. Now, I have been using Arch Linux in Virtualbox under Windows7 for about two months. Last week, I turned back to update my previously installed Xubuntu for a full Linux setup.  Honestly, it annoyed me a lot. With ArchLinux, updating packages is much much easier than that in Ubuntu.   Under Arch Linux, I rarely have to build binaries from source codes by myself (AUR would do most part of the work). However under Ubuntu, since versions of many packages are much older than their official developer releases, I have to configure and build them bit by bit, tweaking settings, finding missing dependencies all by myself. Sometimes, I am lucky enough to find private repositories (but they could be easily fragmented, and hard to track over time), sometimes I literally have to do a lot research to find out what package contains some files missed. It is very frustrating.  Question:   Why are many packages in Ubuntu so lagged while Arch Linux has more bleeding edge updates? Are there any tips/methods to make package management under Ubuntu more efficient?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


As I understand it IP 192.168.20.4/24 can only describe a host (24) on net 192.168.20.[1-254].  Now when describing a net; can 192.168.20.4/24 be a valid network ID, or should such a network ID always end with 0, as in 192.168.20.0/24, where 0 indicates that it is the network ID itself for net 192.168.20.[1-254]. So adding network:  sudo ip route add 192.168.20.4/24 dev eth0  is not allowed (which it also seems not to be).  I guess what I really want to know is, if something else than 0 is allowed when describing a network? When I look at routing table:  default via 172.18.0.1 dev eth0  169.254.0.0/16 dev eth0  scope link  metric 1000  172.18.0.0/24 dev eth0  proto kernel  scope link  src 172.18.0.150  192.168.10.0/24 dev eth0  proto kernel  scope link  src 192.168.10.150   It kinda seems it could say (.7):  192.168.10.7/24 dev eth0  proto kernel  scope link  src 192.168.10.150   But that can never be right, correct? Instead it would have to say then (/32):  192.168.10.7/32 dev eth0  proto kernel  scope link  src 192.168.10.150   To describe the net consisting of only 1 single host(?). Have i understood things correctly?

This is a  about IPv4 Subnets.      Related:               How does Subnetting Work, and How do you do it by hand or in your head?  Can someone explain both conceptually and with several examples? Server Fault gets lots of subnetting homework questions, so we could use an answer to point them to on Server Fault itself.   If I have a network, how do I figure out how to split it up? If I am given a netmask, how do I know what the network Range is for it? Sometimes there is a slash followed by a number, what is that number? Sometimes there is a subnet mask, but also a wildcard mask, they seem like the same thing but they are different? Someone mentioned something about knowing binary for this?


I'm trying to understand why python has this unheard of behavior.  If I'm writing rawdata string, it is much more likely that I won't want escaping quotes.  This behavior forces us to write this weird code:  s = r'something' + '\\' instead of just 's = r'something\'  any ideas why python developers found this more sensible?  EDIT:  I'm not asking why it is so. I'm asking what makes this design decision, or if anyone finds any thing good in it.

Technically, any odd number of backslashes, as described in .  >>> r'\'   File "<stdin>", line 1     r'\'        ^ SyntaxError: EOL while scanning string literal >>> r'\\' '\\\\' >>> r'\\\'   File "<stdin>", line 1     r'\\\'          ^ SyntaxError: EOL while scanning string literal   It seems like the parser could just treat backslashes in raw strings as regular characters (isn't that what raw strings are all about?), but I'm probably missing something obvious.


Let $M$ be a (real) manifold and let $(U , \varphi)$ and $(U , \psi)$ be two charts on $M$ with $\varphi = (x_1 , \ldots , x_n)$ and $\psi = (y_1 , \ldots , y_n)$. If $j \in \{1 , \ldots , n\}$, $p \in U$ and $x_j = y_j$, is ${\left(\frac{\partial}{\partial x_j}\right)}_p = {\left(\frac{\partial}{\partial y_j}\right)}_p$ true? I think it should not be necessarily true, but I do not know how to show it.

Let $M$ be a manifold, $p\in M$ and $(U,\varphi=(x_1,\dots,x_n))$, $(V,\psi=(y_1,\dots,y_n))$ two local charts such that $p\in U\cap V$ and $x_1=y_1$. Is it true that $(\frac{\partial}{\partial x_1})_p=(\frac{\partial}{\partial y_1})_p$?  My professor says that the answer is yes, and so I build a proof. But then I found the following counterexample:  Let $M=\mathbb{R}^2$, $p=(0,0)$, $U=V=\mathbb{R}^2$, $\varphi(u,v)=(u,v)$ and $\psi(u,v)=(u,u+v)$. Then $x_1(y_1,y_2)=y_1$ and $x_2(y_1,y_2)=y_2-y_1$. Using the formula for the change of basis I've got  $$(\frac{\partial}{\partial y_1})_p=\sum_{i=1}^2(\frac{\partial x_i}{\partial y_1})_p(\frac{\partial}{\partial x_i})_p=(\frac{\partial}{\partial x_2})_p-(\frac{\partial}{\partial x_1})_p\neq (\frac{\partial}{\partial x_1})_p$$  What's wrong with this counterexample?


What is the difference between "denizens" and "residents"?

What's the difference between , , and ?  Even if their ODO definitions suggest they are interchangeable most of the time, are there fine differences in meaning between them?


If two particles A and B travel in opposite directions with the velocity of 0.6c and 0.7c respectively, the particle A sees particle B moving with a speed of 1.3c in the opposite direction (c is the speed of light). Is this possible?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


I'm trying to write a couple of shortcut aliases to quickly navigate to the httpdocs folders of the various domains and subdomains on my server.  basically so I can type something like:  $ pwd / $ # Go to the 'site.com' domain: $ goto site.com $ pwd /var/www/vhosts/site.com/httpdocs $ # Go to the 'subsite' subdomain: $ gotosub site.com subsite $ pwd /var/www/vhosts/site.com/subdomains/subsite/httpdocs   I'm pretty green when it comes to Linux commands and I've tried to research this but failed at putting together search terms that have helped.  I've tried using printf and backticks like this:  $ alias goto='`printf "cd /var/www/vhosts/%s/httpdocs"`' $ alias gotosub='`printf "cd /var/www/vhosts/%s/subdomains/%s/httpdocs"`'   but that doesn't replace in the arguments.  If I remove the backticks:  $ alias goto='printf "cd /var/www/vhosts/%s/httpdocs"' $ alias gotosub='printf "cd /var/www/vhosts/%s/subdomains/%s/httpdocs"'   Then it works but I need to run them like so:  $ `goto site.com` $ `gotosub site.com subsite`   ...Which seems ugly and inefficient.  What's the best approach to achieve this?

For bash script, I can use "$@" to access arguments. What's the equivalent when I use an alias?


SAS code :    data pr;     input y x1 x2 @@;     cards;     5 2 2 7 3 3 3 2 0     5 2 4 4 3 3 7 2 4     ;   run;   proc reg data = pr;     model y = x1 x2; run; quit;     When I run the regression procedure, I got the result    [F-test : p-value for model = 0.3757]   [t-test : p-value for x1 = 0.9238]   [t-test : p-value for x2 = 0.2045]     I'm wondering why the p-value of F-test is bigger than that of t-test for x2?    F test has the joint hypothesis H0 : beta1 = beta2 = 0 so, it has the more complicated hypothesis than t test (H0 : beta2 = 0)    My logic is this: when hypothesis has the more restrictions, then it is far difficult to realize, so p-value gets lower.    Where am i misunderstood?

I'm fitting a multiple linear regression model between 4 categorical variables (with 4 levels each) and a numerical output. My dataset has 43 observations.  Regression gives me the following $p$-values from the $t$-test for every slope coefficient: $.15, .67, .27, .02$. Thus, the coefficient for the 4th predictor is significant at $\alpha = .05$ confidence level.  On the other hand, the regression gives me a $p$-value from an overall $F$-test of the null hypothesis that all my slope coefficients are equal to zero. For my dataset, this $p$-value is $.11$.  My question: how should I interpret these results? Which $p$-value should I use and why? Is the coefficient for the 4th variable significantly different from $0$ at the $\alpha = .05$ confidence level?  I've seen a related question, , but there was an opposite situation: high $t$-test $p$-values and low $F$-test $p$-value. Honestly, I don't quite understand why we would need an $F$-test in addition to a $t$-test to see if linear regression coefficients are significantly different from zero.


I know why we have to apply scale but what purpose does it serve ? Why not keep object scale to always 1  ?  Thank you.

Many times I've banged my poor overworked, under performing head at both virtual and physical walls trying to understand why do we have the object scale attributes when every time we want to apply a modifier or perform some operation the object scale has to be exactly one in all three directions if we don't want our result to look like creations from other dimensions:   How is this feature useful and why is it still in Blender?


i want to check a string contains unwanted character or not.  I want to allow only a string which will contains only @ _ a-z .  I want if the string contains anything except this character will give me a false output. i want to check a string which will return true if the string doesn't contains my expected characters.   I tried to use preg_match to do this. But unable to do this. I think preg_match isnot the function i need for this. Please suggest me the best way to reach my desire goal.   $text='Hel&o'; if(!preg_match("/.@_[a-zA-Z0-9]/", $text) ){ return false; }else { return true; }

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I can't copy text out of some web pages. I assume this is because the page somehow disables the Ctrl-C key.  I tried to use the Developer Web Console in Firefox and that did not work either. Here is a screen shot:    In the screen shot above, you can see I am trying to copy the text in a paragraph span which I have isolated in the Inspector (the text begins "65 Market Street..."). Nevertheless, when I open up the context menu, copying is grayed out and disabled, as you can see.  How can I copy the text?

There's a website () that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu.  What I have tried:  Some sites use JavaScript to block selection. So I disabled all JavaScript sources in no-script addon in Firefox. I tried the same site in Google Chrome with the Script Safe addon. Made sure that everything is blocked, still can’t select text. Mousepointer remains an arrow and not a text cursor also on the whole site.  Used about:config to disable JavaScript completely in Firefox. Still no effect.  I read that some sites use DIVs with the style display:block so I used Inspect to examine the styles of the site. There is not one mention of "block" on the whole website, not in embedded CSS nor in object style=-attributes.  The text is not an image or flash or some HTML5 canvas ect. Everything is within DIV and P tags but no style was found that might block the text selection.  How can the website still block any selection of text? Not to mention why browsers support such behaviours at all. I just want to use a selected word or sentence and want to search google for it using right mouse click. It’s pretty annoying when a website does such things and forces me to type technical terms and names into google by hand. It disturbs my workflow.


Is it possible to do something like this:  start=1 end=10 echo {$start..$end} # Ouput: {1..10} # Expected: 1 2 3 ... 10 (echo {1..10})

How do I iterate over a range of numbers in Bash when the range is given by a variable?  I know I can do this (called "sequence expression" in the Bash ):   for i in {1..5}; do echo $i; done   Which gives:     1    2    3    4    5   Yet, how can I replace either of the range endpoints with a variable? This doesn't work:  END=5 for i in {1..$END}; do echo $i; done   Which prints:     {1..5}


I have the following HTML ... <form>
                                      <input type="radio" id="radio0" name="choice" >Text1

                                      <input type="radio" id="radio1" name="choice" >Text2

                                      <input type="radio" id="radio2" name="choice" >Text3

                                      <input type="radio" id="radio3" name="choice" >Text4
      ...  I would like everything in the row (the image and radio button) to be centered.  So I tried this CSS .choiceRow {     vertical-align:middle;     text-align:center; }   .checkmark {     vertical-align:middle;      text-align:center; }  but this doesn't seem to be centering the elements ...  How do I center elements using CSS vertically in the middle of a row?

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


I have an older LCD monitor, and it has recently developed a single green pixel that's always on.  It's not really annoying if the screen is bright, but it's very noticeable when there's something dark on the screen.  Is there any way to fix this?

I have an LCD screen with a pixel that is stuck ON (that is, bright). What do you suggest to fix it (it's not a dead pixel)?


I have to read a file with some String values and transform them to Regex. So I am using the class Pattern of java.util.regex and I have some problem for some special characters.   For example if I have this String:  *Hello   when I am creating the regex with:  Pattern.compile("*Hello").matcher("*Hello").matches()   the result is false.  So I need to find a way to transform automatically the String in the compile in \\*Hello. How is it possible? Thanks in advice.

Does Java have a built-in way to escape arbitrary text so that it can be included in a regular expression? For example, if my users enter "$5", I'd like to match that exactly rather than a "5" after the end of input.


Quite often I found myself in a situation of needing to know what index an item is in a List while enumerating through the list. Is there any way to do this with out having to resort to using a for(var i=0...) loop?    Ideally I would like to do something like this.  e.g   foreach(SomeType item in myList){   Console.Write(item.Index); }   jQuery has this $(this).index();  which is something like what I would like in C#

Is there some rare language construct I haven't encountered (like the few I've learned recently, some on Stack Overflow) in C# to get a value representing the current iteration of a foreach loop?  For instance, I currently do something like this depending on the circumstances:  int i = 0; foreach (Object o in collection) {     // ...     i++; }


I'm looking for an alternative to SketchUp for Ubuntu with no luck whatsoever. I'm a heavy user of Blender, but since I can't really script at all, it doesn't fullfill my needs completely. What I'm looking for specifically is an easy tool to design furniture, for example. The tools I need in the program, according to SketchUp, are: exact measurements, ability to draw an object simply by drawing edges in 3D space or at least in 2D, ability to scale, extrude and manipulate with verticies, edges and/or faces in real measurementunits, ability to create a segment in an existing object easily in specified location. For example if I know I want a window in wall, knowing it has to be 1 meter from the ground and 50 cm from the corner, I want an easy way to do that.   What I don't need is calculating anything, running anything. (I only want stacionary designs, no turning wheels, no kogwheels, and if, I don't need to see them move or calculate anything there)  Is there any alternative for SketchUp working this way for Ubuntu?

I would like to know the various tools available in Ubuntu similar to Google Sketchup.  I dont like to install Sketchup using wine in Ubuntu.


I was testing around with Java and noticed that casting "physically" changes properties of an object. I don't quite understand what actually happens inside Java when casting is used, but I did notice this:  Here is my Super class InstanceVariable:  package inheritance;  public class InstanceVariable {     public int x = 1; }   Here is a class that inherits from it:  package inheritance;  public class InstanceVariable1 extends InstanceVariable {      public int x = 100;     public static int y = 2;       public static void main(String[] args) {         InstanceVariable1 one = new InstanceVariable1();         InstanceVariable two = new InstanceVariable1();         System.out.println(one.x + " " + two.x);         one = (InstanceVariable) one; //This is illegal     } }   First of all, the instance variable that were instantiated are overriden by the child class. And secondly, I can implicitly cast the super class (that is InstanceVariable) to two, but for some reason, I cannot explicitly cast it to one? What is the reason for this?

Upcasting is allowed in Java, however downcasting gives a compile error.   The compile error can be removed by adding a cast but would anyway break at the runtime.   In this case why Java allows downcasting if it cannot be executed at the runtime? Is there any practical use for this concept?   public class demo {   public static void main(String a[]) {       B b = (B) new A(); // compiles with the cast,                           // but runtime exception - java.lang.ClassCastException   } }  class A {   public void draw() {     System.out.println("1");   }    public void draw1() {     System.out.println("2");   } }  class B extends A {   public void draw() {     System.out.println("3");   }   public void draw2() {     System.out.println("4");   } }


It is common to see things described as the "gold standard". It means that something is the best and is the ideal against which other things are to be compared; it cannot be superseded. I often , where a certain diagnostic test (e.g., the nasopharyngeal swab PCR test for infection with the Coronavirus causing COVID-19) is considered the most accurate and then other tests (e.g., cheaper or faster tests) are then evaluated against this benchmark. The etymology is covered in . In short, it is derived from the . Thus gold was the thing against which the value of all other currencies was measured. I don't like this term and would like to avoid using it. First, the desired meaning is not predominant; if you  you will mostly get results for the monetary system, not the more general phrase. Second, the etymology is outdated; the original meaning of the term now has the opposite connotation. The monetary gold standard was abandoned in the 1970s. Economists consider the gold standard to be a bad monetary system. Thus, if you are interested in economics and history, the term "gold standard" actually is associated with being outdated and flawed -- which is close to the opposite of the intended meaning. (Of course, many people are unaware of the original meaning of the term. ) (A note in response to comments: Why I want to avoid this term is relevant, but not essential, to the question. If you don't see a problem with the term, the question can be answered regardless.) My question: Is there a better phrase to use in place of "gold standard"? For example, what term could be used in a medical study comparing a new diagnostic test against the gold standard test? I'm not aware of any good substitute that has essentially the same meaning. Here are two example sentences where I would like a replacement:   A nasal swab is the gold standard for diagnosing COVID-19.     The  served as the gold standard for all scales from 1889 until 2019.   The best substitute I can think of is "official," as in "a nasal swab is the official way to diagnose COVID-19". "Official" implies some form of uniqueness. But "official" implies the existence of some authority that gives it this designation (as opposed to scientific consensus). A  asks for a "perhaps humorous" alternative -- the suggestion there, "mother of all", is not appropriate here. (There is also .)  In response to the answers and comments doubting the premise of this question: I personally have a negative association with the phrase "gold standard" because I know people who advocate for returning to the gold standard or its modern equivalent, , and have discussed the topic at length. Several  US  continue to advocate for a return to the gold standard. Thus asserting that no one will interpret the phrase in terms of monetary policy is simply not convincing.

Gold Standard as in:     an example against which others of the same type are compared   -    Any other humorous ways to refer to this?  Something like "the holy mother"...


The way my DM wants to try is roll 3d6 and reroll any 1's or 2's once. If you roll a 2 and the reroll ends up being a 1 you have to take the 1.

I was trying to create an AnyDice function to model the Great Weapon Fighting fighting style (which lets you reroll 1s and 2s), but I couldn't get it to work on any arbitrary dice.  I've found this one:  function: reroll R:n under N:n {    if R < N { result: d12 } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   And it works fine. But I don't know how to make the function generic so i don't need to change the d12 every time i want a different dice to reroll.  I've tried  function: reroll R:n under N:n {    if R < N { result: d{1..R} } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   but it is not giving the right probabilities. Maybe if I could fetch the die size inside the function...


I want to customize my sections to look like the following but I don't know how to do it. Can somebody help ?

I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.  1 foo  a bar    i baz   But I want to know if there is a way to do this by default for sections and subsections.


I am stuck on the following problem that says:  Let $a(z),b(z)$ be two non-zero complex polynomials. Then $a(z)\overline{b(z)}$ is analytic iff  $a(z)$ is constant  $a(z)b(z)$ is constant  $\overline{a(z)}b(z)$  is constant  $b(z)$ is constant    I am not sure how to tackle it. Can someone explain? Thanks in advance for your time.

Question is :  for two non zero complex polynomial $p(z),q(z)$ we have $p(z)\overline{q(z)}$ is analytic if and only if    $p(z)$ is Constant $p(z)q(z)$ is Constant $q(z)$ is Constant  $\overline{p(z)}q(z)$ is Constant   I could easily eliminate first case.   Put $p(z)=1$ and $q(z)=z$ then we would have $p(z)\overline{q(z)}=\bar{z}$ which is not analytic though $p(z)$ is constant.   I could see third case is almost true .   Suppose $q(z)$ is constant then I will be left with only polynomial case so $p(z)\overline{q(z)}$ is analytic. Now, suppose $q(z)$ is not constant then I would have a contradiction which is already considered $q(z)=z$   I could not go any further on second and fourth cases.  Please help me to see this in more detail.  Thank you.