How to Access elements in a List when T is only stored in a Type Variable?

I'll try to make this clear:  I have an object of type System.Object that contains a List of things.  The things are determined at runtime.  Currently, I'm able to find out the type of things contained in the list, but I can't figure out how to access them.  Here's a code example where "o" is the List of things in question:  Example:  //Assume at this point in code, we have access to "o" //which is type System.Object  Type thingType = thing.GetType(); Type listType = typeof(List<>); Type listOfThingsType = listType.MakeGenericType(thingType);  if (o.GetType() == listOfThingsType) {     //Now I know o contains a list of things     //...but how do I access them and work with their members?      //foreach thing in o     //   operate on thing through reflection }   EDIT (more details): I'm using reflection to access property members of things.  I don't know what the property names are. I don't need to be able to use normal C# syntax.  I just need a way to access the things so I can use reflection on them as individual objects.


What to do with an additional answer which IMHO explains only a small portion of the question, while another answer explains more

For the apple.stackexchange question  a 2nd answer was given, which relates to the question, but IMHO does not answer a majority portion of the question. Here some details:   The question is about, how to set the PATH variable in a unified manner. The  details how to change the file /etc/launch.conf. It is to note, that changing this file is needed for the overall answer. The author of the answer does make the valid point that, when he searched for, how to change /etc/launch.conf, the question came up. The  does not detail the change of /etc/launch.conf enough.   So, the general problem is: What to do when an additional answer explains only a small (but unique portion) of the question, while an earlier answer explains more (but not what the additional question explains).  Finally, I think I should note that I am the initial asker and poster of the 1st answer.


Iterate with LINQ over a list and set founded varible

I have this code and want to do the same with a linq statement.  foreach (var field in fieldExtension)      {           if (field.Name.Equals(item.Name))           {                 field.Access = true;           }      }   It is easy to iterate over the list with:  fieldExtension.Where(field => field.Name.Equals(item.Name));   But is it posible to assign a value to the variable we have found in the list? I thought about something like this:  fieldExtension.Where(field => field.Name.Equals(item.Name)).Select(field => field.Access = true);   Does anybody know a way to do it correctly with linq? Because I don't want to split it up. Which would also work.  var result = fieldExtension.Where(field => field.Name.Equals(item.Name)).ToList(); result.FirstOrDefault().Access = true;


Renormalization group equation: physical meaning of energy scale

I'd like to understand the physical meaning of the energy scale $\mu$ that emerges in the renormalization group equation (RGE). In particular I don't understand in what way a running coupling constant depends on it. I mean, if I have a process in which an electron and a positron collides at a certain energy, the energy scale what is it? Can I measure it? Let's consider for example the running coupling of QED. Through the RGE I find out the coupling:  $$ \alpha(\mu)=\frac{\alpha_(\mu_0)}{1-\frac{3\alpha_(\mu_0)}{2\pi}\ln{\frac{\mu}{\mu_0}}}$$  Now, how can I find the structure-fine constant $\alpha=\frac{1}{137}$ defined at zero momentum? Is the "momentum" expressed in some way by $\mu$?


Can Anyone Explain to me the error in my use of BibLaTeX?

\documentclass[12pt]{article} \usepackage[style=numeric, citestyle=numeric]{biblatex} \usepackage[UKenglish]{babel} \begin{document} \title{Progress Through Paradox} \maketitle  \section{Introduction}  mechanical development came, in equal measure, responses seeking to disprove  them, as was the formulation of the 'EPR Paradox' in response to Heisenberg and  Bohr's 'Copenhagen Interpretation' understanding of quantum mechanical variables  (in particular their uncertainties)\cite{Copenhagen Interpretation},   \begin{thebibliography}{10} \bibitem{Quantum Paradoxes} Aharonov Y, Rohrlich D. \textit{Quantum Theory for the Perplexed} Quantum Paradoxes. 2005; 25-3, 46-51, 61-69. \bibitem{Copenhagen Interpretation} Heisenberg W.  \textit{Über den anschaulichen Inhalt der quantentheoretischen Kinematik und  Mechanik [The content of the quantum theoretical kinematics and mechanics]}.  Z. Phys. 1927; 43: 172–198. \bibitem{EPR} Einstein A, Podolsky B, Rosen N.  \textit{Can Quantum-Mechanical Description of Physical Reality Be Considered  Complete?}. Description of Physical Reality. 1935; 47: 777-780. \bibitem{Bell's Inequality} Bell J. \textit{ON THE EINSTEIN PODOLSKY ROSEN PARADOX}. Physics. 1964; 1[I]: 195-200. \bibitem{Bohm's Spin Discussion} Bohm D, Aharonov Y. \textit{Discussion of Experimental Proof for the Paradox of Einstein, Rosen, and  Podolsky}. PHYSICAL REVIEW. 1957; 108-4: 1070-1076. \bibitem{Spin-Bell's Theorem} Mathpages: Quantum Entanglement and Bell's Theorem \newline http://www.mathpages.com/home/kmath521/kmath521.htm \end{thebibliography}  \end{document}   The citation of 'Copenhagen Interpretation' does not appear correctly, I know this can be a complicated issue but I've been trying to figure it out for a while now to no avail.


I am new to JQuery and I'm trying to write code that changes a clicked button both in text and function. Here is the code:  $('.button1').click(     function() {         $(this).val('Button2');         $(this).removeClass('button1').addClass('button2');     } );  $('.button2').click(     function() {         alert('Button 2 Clicked');     } );   The problem is, the second event does not fire and call the alert.  Thanks in advance


I am using lenovo k3 note with updated version marshmelo 6.0. Sometimes it happens like random  touches appearing on my screen and screen jerks many times. I have restarted my phone many a time but it happens several time in a day. I don't know what I should do. I am using this it since 1 year.


Were holodeck emitters on USS Enterprise-D able to create holograms outside the physical boundaries of holodeck room?

Were holodeck emitters on USS Enterprise-D able to create/maintain holographic matter (e.g. holograms of beings as opposed to replicated inorganic stuff) outside of the physical boundaries of holodeck room, such as outside the door?  I'm ideally looking for answer based on technical manual etc..., barring that on canon material, excluding Cyrus Redblock in "The Big Goodbye".  The question is inspired by a  from @anyaMairead on   - thus Cyrus is excluded since I seek to understand whether there's support in canon for explaining Cirus via emitters working slightly outside the door.


Evaluating multiclass imbalanced problem per class

For a multiclass imbalanced problem, accuracy is not a good metric to evaluate model performance. Equally, accuracy is a global metric, so nothing like accuracy per-class (doesn't make sense). Scikit-learn provides the classification_report  function so one can evaluate model's precision/recall per class, e.g: classification_report(y_true, y_pred, target_names=target_names)               precision    recall  f1-score   support       Class:0      0.703     0.896     0.788      4491      Class:1      0.048     0.147     0.072        75      Class:2      0.368     0.503     0.425      1097      Class:3      0.937     0.850     0.892     17162      Class:4      0.529     0.177     0.265       311      accuracy                          0.832     23136    macro avg      0.517     0.515     0.488     23136 weighted avg      0.856     0.832     0.838     23136  Are there other metrics that evaluate per-class so I can evaluate my model across more metrics than precision/recall/f1? The goal is to assess the model on a per-class basis.


How many Obsolete votes until a comment is removed?

I regularly flag comments as Obsolete, for example if they are pointing out a mistake in the post which has since been corrected. I think cleaning up obsolete comments is a beautiful thing, and many commenters do this on their own accord.  I'd like to know, if I flag someone else's comment as Obsolete, what exactly happens?   If another user flags the same comment, will it be removed at that point? Is there a reputation requirement for the flagger? Are moderators alerted? I don't really want to waste their time...


Java rounding floats to x decimal places incorrect

My current method of rounding to x decimal places:  public static float roundInc(float value, float increment) {     float inc = 1f / increment;     return Math.round(value * inc) / inc; }   Which works fine for certain numbers, but seems to break, and I can't seem to figure this out.  I pass through the value 2.109375 Output of the function returns 2.11 Then I add that to 5.0 (is also a float, stored in a float array (float[])), and for some bizarre reason, adding the 2.11 + 5.0 returns 7.1099997...  Can someone explain this? Cause as far as I can see, after printing the two 2.11, and 5.0, showing those two exact values, then added together breaks everything...


How do I create an Ubuntu installation disk on Windows to install on my new computer?

I do not want to install Ubuntu desktop to my windows computer, but I want to install on a new hard drive on a separate computer.  How do I create an install disk without messing with my current computer.


Trying to find two functions $\varphi$ measurable and $f$ continuous such that $\varphi\circ f$ isn't measurable

A set $E \subseteq \mathbb{R}$ is measurable if for any subset $A\subset\mathbb{R}$,  $$\mu(A)=\mu(A\cap E)+\mu(A\cap E^c).$$ where $\mu$ is the Lebesgue outer measure.  A function $\varphi : \mathbb{R} \to \mathbb{R}$ is measurable if for any $\alpha\in\mathbb{R}$ the set $E_\alpha:=\{x\in\mathbb{R} : \varphi(x)>\alpha\}$ is measurable.  Let $\varphi : \mathbb{R} \to \mathbb{R}$ be a measurable function, and let $\ \ f:\mathbb{R}\rightarrow\mathbb{R}$ be a continuous function.   For two such functions we know that the composite fonction $f\circ\varphi$ is measurable because of a result that say $\varphi^{-1}(A)$ is measurable for any borelian set $A$ (our borelian here is $f^{-1}(]\alpha,\infty[)$).  Now I would like to know why for two functions $\ f$ and $\varphi$ like above $\varphi\circ f$ is not necessarily a measurable function.   Edit: The first answer of  gives an example of such a pair of functions.


What would the syntax be to make a fraction, for example if I wanted to make a program that takes a fraction and adds it to another fraction. I am talking about mathematical fractions btw.


Close the lid immediately After putting macbook to sleep manually by  → Sleep will cause the system awake, is this a bug?

I have MacBook Pro (Retina, 13-inch, Mid 2014) and OS: 10.13.6.  My current pmset -g:  $ pmset -g System-wide power settings: Currently in use:  standbydelay         10800  standby              1  womp                 1  halfdim              1  hibernatefile        /var/vm/sleepimage  powernap             0  gpuswitch            2  networkoversleep     0  disksleep            10  sleep                1  autopoweroffdelay    28800  hibernatemode        3  autopoweroff         1  ttyskeepawake        1  displaysleep         10  acwake               0  lidwake              0   I was testing what the best practice is to make sure my macbook is asleep before putting it to my backbag. So I wrote a simple script like this:  $ cat sleep-detector.sh  while true; do     echo `date` " -------- not sleep yet"     tput bel     sleep 1s done   I ran this script for all my following tests from terminal.app.    When I close the lid directly, the bell sound will be off immediately (even if the script will continue to run for about 20s). This is expected. I thought it was much safer to put the system to sleep manually by  → Sleep , but I was wrong.  If I use  → Sleep, and wait for 20 seconds and then close the lid, everything is expected as before.  But If I use  → Sleep and close the lid immediately, the weird thing happened. At the beginning, when I click  → Sleep, the bell is off immediately, but when I close the lid very quickly, the bell is on. And it's on for a long time. (I don't bother wait for a long time. my test is actually 3 minutes).   This surprises me a lot. How come closing a lid cause the system back online and awake?! Is this a bug?


How likely is it that I am related to a specific person who was living 20 or 30 generations ago?

I have discovered that I am related to someone specific who lived in 1066.  How likely is this? In other words, the answer could be “No big deal. When you go back that many generations,the math shows that you are X percent likely to be related to anyone, where X is large - say 50-90% - because you have so many ancestors and the population then was so small.” Or the answer could be “WOW, that’s significant. Because the likelihood of that is small, where X is low.” So maybe the general question is “What is the likelihood that Person A, living now, is related to Person B, living in 1066?” And to specify even more narrowly, let’s constrain to the European/ Scandinavian/ Finnish populations that existed then.


In a multi user environment, how do I get a panel to display the node content form (to enter text) of a user knowing that each user has such a (separate) node. In other words, a visitor on Jack's panel page would be presented with Jack's form and be able to write something there, but if visiting John, he would be presented with John's form.  I tried the Form Block module but it shows the node of the viewing user, not the user being viewed, on all users' panel pages.  Is there a way for this to add an argument or contextual filter in panels so that each user's form displays appropriately?  I should add that the nodes are back linked (Entity Reference) to their users.  Any help would be greatly appreciated. Thank you. :)


He's not very good. - What does "very" do to the statement?

He's not good. 2. He's not very good.   What does "very" do to the statement? Does it make him sound less or more good compared to the first sentence?


Do I need a Schengen visa to transit Amsterdam and Paris enroute to Lagos from U.K

I have a UK residence permit with flight details, Glasgow to Amsterdam, Amsterdam to Paris, Paris to Lagos. Do I need a visa?


My question is pretty standard and easy,I wonder all my life how Einstein get energy equation .  Also I some videos about that equation on YouTube and some of the peoples said there that the equation $E=mc^2$ isn't full.  Any help will be appreciated.


Hi im quite new to PHP, i have created a form for very large csv files to be uploaded to my server. Some one mentioned to me that the browser can time out due to the uploading file being to big, is this true? and if so, can it be prevented?  Thanks for your help!


I want to take output of first command as a input of second command in shell

ls -t1 |  head -n 1 will give me the latest updated file so I want to tail that latest updated file in shell. How do I do that?


I have downloaded a game called redeclipse from their own website. It's an open source project and hopefully supports Linux too, so I have downloaded it but it came in a .tar.bz2 format.  I extracted it and it consist of several folders. I don't know how to install them from here. I am using Ubuntu 15.04


Is java a Just In Time compiler (JIT) or is java compiled by the programmer with javac. If both, whats the benefit of each?


Unable to download wine with software center or terminal

I'm trying to download wine 1.7 with the software center and terminal, 3 MB remained of download progress , but when i want to continue the download , it gives me a 404 error. i rebooted the system many times and checked my Internet connection, but still the same problem. Does anyone knows why ?  This is the error I'm getting:  Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgl1-mesa-glx i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgles2-mesa i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libwayland-egl1-mesa i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libegl1-mesa-drivers i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libglapi-mesa i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libegl1-mesa i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libosmesa6 i386 10.1.3-0ubuntu0.2   404  Not Found [IP: 91.189.91.24 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-glx_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgles2-mesa_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libwayland-egl1-mesa_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libegl1-mesa-drivers_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libglapi-mesa_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libegl1-mesa_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libosmesa6_10.1.3-0ubuntu0.2_i386.deb  404  Not Found [IP: 91.189.91.24 80]  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   running apt-get update gives me this  root@ArshiaAghaei:~# apt-get update Ign http://us.archive.ubuntu.com trusty InRelease                               Get:1 http://dl.google.com stable InRelease [1,540 B]                           100% [1 InRelease gpgv 1,540 B] [Waiting for headers] [Connecting to security.uSplitting up /var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stabIgn http://dl.google.com stable InRelease                                       E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)   Now , I dn't see the Install button in software center.


In Edge of Tomorrow, Emily Blunt's character, Rita Vrataski, had the time-resetting power previously.  She details the backstory of how she gained it, and how she lost it.  However, how did she know when she lost the power?  It's only triggered when the wielder dies.  Obviously she didn't die after losing the power, so how did she know the power was gone?


Why does "impregnable" mean 'cannot be impregnated'?

Well not exactly, but according to the , impregnable means:     ADJECTIVE:   1. Impossible to capture or enter by force: an impregnable fortress.   2. Difficult or impossible to attack, challenge, or refute with success: an impregnable argument.   Or, according to 's short definition:     (Of a fortress, wall, etc.) Too strong to be penetrated.   On the other hand, the meanings of impregnate, in addition to "make pregnant", include      To fill throughout; saturate: a cotton wad that was impregnated with ether.     4. To permeate or imbue: impregnate a speech with optimism. See Synonyms at charge.       to make a substance such as a liquid spread all the way through something: a pad impregnated with natural oils       a : to cause to be filled, imbued, permeated, or saturated    b : to permeate thoroughly   which, at a stretch, are closer to the "penetrate" meaning. Hence the question in the title.  Why is this? I guess it's because, as with , the two words come from different meanings of the in- prefix; impregnable from a "negation" meaning and impregnate from an "into" meaning. (And indeed, the AHD gives etymology with in-1 for , and in-2 for .) Is this right?  Some dictionaries also list a meaning for impregnable that come from impregnate and seem the opposite (in a loose sense) of the meaning above: the same AHD gives, as its  for impregnable,     ADJECTIVE:   Capable of being impregnated.   and some  gives:     impregnable   a. able to withstand attack; capable of being fertilized; able to become or be made pregnant.   Are these "capable of being impregnated" meanings for impregnable common?  [Finally, if one does want to express the 'easily penetrable' meaning, as in "This badly designed bulletproof jacket is easily penetrable", can one use "pregnable"? "non-impregnable"? Is there risk of confusion that "pregnable" may mean "can be made pregnant"?]


Is there anything in android mobile which has block all porn sites with high security features and any paid software or anything please tell me..


I'm writing an article and eating numbering theorems according to the chapter, when I use \newtheorem ... elias numar with 1,2,3 ...  How do I number with 1.1, 1.2, 1.3 ... as far as I want and from there  starting to number with 2.1, 2.2 ...  Also, how to write "Definition" in the source of proposals, theorems ... without using the assigned number?  Note: I do not know how to define a chapter yet, is there any way to do a \begin{chapter}?


How to reduce the locally exported database size to get around my server import limit?

I am using Drupal 7 and want to export my Drupal database from local and import this database on another server.  The issue I'm facing is the exported database size is 80M and the server importation limit is 32M (I do not have any permission to increase the limit size).  Can I just truncate tables like cache_fields, menu...etc?  The watchdog table is 40M in size, can I clear it ?


How do camera body motors compare to in-lens motors for focusing?

What is the difference between using a motor on the camera body and the motor built into lenses?   Aside from how both compare in terms of speed, what differences would I notice if I use a body with a motor and motor-less lens, and a lens with motor on a body that lacked one?  A comparison chart outlining the various lens motor types would be a great help as high end USM motors for Sigma lenses are faster then their regular versions.


Heap size in C# / .Net Framework - Can it grow and how?

I've encounterd a confusing matter written in one of my college books: It is stated there that "The heap is not static and can grow as needed by requesting more memory from the operating system".  So what I'm confused about is the following: Suppose I run my application, and objects are allocated on the heap. At some point, the application runs out of memory: what happens now?   From what I understand, Gc (Garbage collector) kicks in and begins it's mark and sweep operations. I wonder if somehow, instead of invoking the Gc by the CLR, is there any possibility for the heap to request more memory from the operating system?   I read that in C++ language, there is a way to achieve that, but is it possible in C# .Net Framework 4.5?


According to , her last name is Mixer. As seen in this photo taken from  [see bottom left corner] Of course, I am inclined to believe the artist was just making a joke. Are there any other references to her last name?


First of all,  doesn't answer my question. I've tried almost all of those and they mostly match within explicitly specified 1 extra new line. The question: say i have dictionary, or any other JSON-like object. I have many of them in the file and i want to match every of them. For example: some_var = {     'foo': 'bar',     'list_foo': ['bar1', 'bar2'], } other_var = [     {         'foo1': 'bar1',         'foo2': True     },     {         'foo_list1': ['bar3', 'bar4'],         'foo2': 'bar2'     }, ]  Values may be anything, but dict. So no nested dicts. My ultimate goal is to match everything that lays between each set of {} including the figure brackets (optional, but desirable). So that when i run the regex, i will get these matched: {     'foo': 'bar',     'list_foo': ['bar1', 'bar2'], } {     'foo1': 'bar1',     'foo2': True } {     'foo_list1': ['bar3', 'bar4'],     'foo2': 'bar2' }  One of my closes attempt is: \{(.*\n)*\}  But it matches everything between the very first { and very last } in a file. There was many other attempts, but none worked for variable dict size. I'm running this regex in PyCharm in an attempt to quickly refactor some code. Please, do not provide workarounds. I have already solved the problem in a different way, but am still curious about this exact solution.


How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works.  The problem is that my phone requires adb to be ran by root for permissions, but running adb with sudo I get the following error:  sudo: adb: command not found  I tried to simply use sudo -E adb start-server, but it doesn't work. Tried to add the export path line to /root/.bashrc and (after realizing it didn't help) to /etc/bash.bashrc.  I remember I could set it on my Arch Linux, but I guess my problem now is connected to Ubuntu root account not behaving like I expect it.    What I don't understand is the following:  These don't work:  martin@alyx:~$ sudo adb devices sudo: adb: command not found   This does (typing the full path):  martin@alyx:~$ sudo /opt/android-sdk-linux/platform-tools/adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached  CM7-Blade   device   This doesn't work (using -E with sudo):  martin@alyx:~$ sudo -E adb devices sudo: adb: command not found   This works (as root):  martin@alyx:~$ sudo su root@alyx:/home/martin# adb devices List of devices attached  CM7-Blade   device   I'm totally confused now and I'd appreciate some clarifying on how to set a path for sudo or how else I could solve my problem.  (And please, don't say adb shouldn't be ran as root.)  Thanks in advance!  Edit: By requiring root permissions I mean that I need them because otherwise I get:  $ adb devices  List of devices attached  ????????????    no permissions   which doesn't occur as superuser. Sorry if it was misunderstanding.


I'm new to linux world. Just  downloaded ubuntu and installed it alongside with windows 7  . In grub when I choose ubuntu, it opens with no problem, but when I try to open windows 7, this message appears:   A Disk Read Error Occured. Press CTRL+ALT+DEL to restart.   I googled for that  problem which  directed me to download a boot repair tool,  when I choose : advanced options / retore MBR --> apply, then restart computer , It boot to win 7 without loading the grub menu.  then I opened the live ubuntu from a  USB,  launched the "boot repair" again, choose : recommended repair , then restart, It  returns to the first  problem , grub menu appear, from which I can choose only ubuntu , but win 7 show this msg again :   A Disk Read Error Occured. Press CTRL+ALT+DEL to restart.   I repeated more and more with the same results ...   What should I do?  I created a boot info summary using the "boot repair tool" if this can help , it's in .


Why does OS X use swap memory when memory pressure remains low?

My system (Yosemite / 10.10) has been paging out to swap memory despite my memory pressure reading less than 50% over the last 7 days (tracked with iStat Menus). How is this possible? It would be one thing if memory pressure exceeded 100% at some point in the last week and then the swap file was activated, but that doesn't seem to have happened at all and yet I've got 1.25 GB of 2.00 GB being swapped right now, with 36% memory pressure. Shouldn't the new memory model introduced in Mavericks behave differently?


Problem to set the group rights correctly

I have a directory with more directories inside. This is the rights setup: drwxr-xr-x 6 root root 4096 Jun 11 15:35 . drwxr-xr-x 3 root root 4096 Jun 11 15:26 .. drwxrwxr-x 2 root RIS  4096 Jun 11 16:02 RoInsSeg drwxrwxr-x 3 root VOC  4096 Jun  9  2020 voc  Only the owner has write access to this directory who is root. For the Directories RoInsSeg and voc the wright access is expanded to the group and I set the specific group as owner. I added myself (user1) to Group RIS and VOC and another user2 only to RIS I checked twice if this was successful: ❯ grep "RIS" /etc/group RIS:x:5001:user1,user2  ❯ grep "VOC" /etc/group VOC:x:5002:user1  but if I now cd into RoInsSeg and try to touch test the system returns that I don't have permission. Did I understand anything wrong about setting grouprights?


Is there a way to log out of Stack Exchange?  Or does each community have its own log out?  I haven't found a way to log out in any of my accounts or the help page.


What Do the Gringotts Goblins Do With Muggle Money?

‘But you’re Muggles!’ said Mr Weasley delightedly. ‘We must have a drink! What’s that you’ve got there? Oh, you’re changing Muggle money. Molly, look!’ He pointed excitedly at the ten-pound notes in Mr Granger’s hand.   Chamber of Secrets - page 47 - UK Hardcover - chapter 4, Flourish and Blotts   So Gringotts exchanges Muggle money for Wizarding money. What do the Goblins do with the Muggle money after the exchange has been made? Is it possible they keep a stash of Muggle money on hand for reverse exchange purposes, or do they surreptitiously feed the money back into the Muggle economy?  What do Goblins do with Muggle money?


Estimate the lower bound of the following integral.

Suppose that $f:    [0,1 ] \to \mathbb{R}$ has a continuous second derivative, $ f(0)=f(1)=0$ and $f(x)>0$ for all $x\in (0,1)$. Prove that $\int_0 ^1 |f''(x)/f(x)|dx> 4.$ I have no idea how to proceed with this problem, how does one approach such a problem? Any hints will be appreciated.


I am devloping an app in which i am getting value like mentioned in statement and i have a value in double as.I need to get three digit value after "." How can i do that  value  9.690000000000001


Is there any module or some configuration that I can define the meta tags for the views page display in drupal 7 using  3.0?


sum of the product of consecutive legendre symbols is -1

How do I prove the formula $\newcommand{\jaco}[2]{\left(\frac{#1}{#2}\right)}\sum\limits_{a=1}^{p-2} \jaco{a(a+1)}p = -1$ where a varies from 1 to p-2 and p is a prime  I got as far as $\jaco{p-a}p = \jaco{-1}p \jaco ap$ so I can reduce the sum but that does not seem of much help.


Top panel and launcher missing in new installation of ubuntu 13.04

I have just installed ubuntu 13.04 on my ThinkPad laptop. I am missing the Unity launcher on the left and the Unity panel bar across the top. I only found references to the same problem for upgrades, so I tried everything written ,  and  with no success.  However, referring to the , I ran ccsm and found my Ubuntu Unity Plugin unchecked. Checking it required to also enable the OpenGL and so I did. But, apparently I am unable to enable the OpenGL. Trying to enable it manually...and the checkbox gets automatically unchecked after few seconds.  Please help.  Update: I have Intel graphics driver, maybe the problem is specifically with it?. I also tried running ccsm after logging using CTRL+ALT+F1 like given . I was able to enable OpenGL and the Ubuntu Unity Plugin there, but still, no effect on my display, also after reboot.


I am running Ubuntu 14.04 on LEGACY and Windows 8.1 on UEFI . I have my media ( movie songs and video songs) in "MY MUSIC" and "MY VIDEOS" folders in windows.   I am able to access different hard drives except C drive ( windows ). Now can someone please tell me how to access those "my music" and "my videos" folders in UBUNTU? because i cant find them in ubuntu.  Output of lsblk:  NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda       8:0    0 465.8G  0 disk  ├─sda1    8:1    0   260M  0 part  ├─sda2    8:2    0   1.5G  0 part  ├─sda3    8:3    0   260M  0 part  ├─sda4    8:4    0   128M  0 part  ├─sda5    8:5    0 245.7G  0 part  ├─sda6    8:6    0   350M  0 part  ├─sda7    8:7    0  97.7G  0 part  ├─sda8    8:8    0  72.3G  0 part  ├─sda9    8:9    0  25.4G  0 part / ├─sda10   8:10   0  22.3G  0 part  ├─sda11   8:11   0     2M  0 part [SWAP] └─sda12   8:12   0     1M  0 part  sr0      11:0    1  1024M  0 rom


I am pretty new to Java and I cannot seem to figure out why I am getting this error message relating to this error message: File not found. Exception in thread "main" java.lang.NullPointerException at Project1.main(Project1.java:24). Any help would be appreciated. I have tried running through command prompt as well as an online java compiler and both tell me that there is not a file to be found. import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;  public class Project1 {     public static void main(String[] args)     {        // create file object        File file = new File("input.txt");         // create a scanner object        Scanner scan = null;         try          {            scan = new Scanner(file);         }         catch (FileNotFoundException e)         {            System.out.println("File not found.");        }         // take number of men or women from file - first line        int num = scan.nextInt();                // create string array of size number of men to save men preference        String[] menPreferenceArray = new String[num];              // create string array of size number of women to save women preference        String[] womenPreferenceArray = new String[num];         // point to next line                scan.nextLine();        // loop till 2*num lines        for (int i = 0; i < 2 * num; i++)         {            // take first 3 preference and save to men preference array            if (i < num)                menPreferenceArray[i] = scan.nextLine();            else                // take next 3 preference and save to women preference array                womenPreferenceArray[i - num] = scan.nextLine();        }         // variable to count prefectMatch        int perfectPairNum = 0;         // read till file has next line        while (scan.hasNext())         {            // take a marriage pair as string            String marriage = scan.nextLine();            // split by space            String[] pair = marriage.split(" ");            // reverse the pair            String marriageReverse = pair[1] + " " + pair[0];             // count variable to check if men and women has same preference            int count = 0;            // loop through the men and women preference array            for (int j = 0; j < 2 * num; j++)             {                if (j < num)                 {                    // take first preference string using substring and check if the marriage pair                    // is equal to preference string                    if (menPreferenceArray[j].substring(0, 3).equals(marriage))                        // increment count by 1                        count++;                } else                 {                    // take first preference string using substring                    if (womenPreferenceArray[j - num].substring(0, 3).equals(marriageReverse)) {                        // increment count by 1                        count++;                    }                }            }            // if count equal to 2 means, both men and women have same preference, so            // marriage is stable            if (count == 2)             {                // increment variable to check all marriages are stable                perfectPairNum++;            }             else             {                // if count not equal to 2 means, both men or women do not have same preference                // . so marriage is unstable                System.out.println("Unstable " + marriage);            }        }        // close scanner object        scan.close();         // if all marriages are stable, then output stable        if (perfectPairNum == num)         {            System.out.println("Stable");        }    }  }


Isometric with or without a grid in Illustrator?

So I'm doing this isometric thing.  I started using a grid and thought I was well on my way. Loving it and understanding it. Until disaster struck. I needed to enlarge a couple of things. Found out that this doesn't work on a grid.  I found in  question that it is nearly impossible.  Until someone suggested that it can be done without a grid. Because the explanation would be to long to do in a comment I would like to hear your export vision on how to draw isometric shapes in Illustrator without the use of a grid.


do i need a transit visa for Paris is coming from the US to Czech Republic?

I am really confused about the transit visa. I have a 2hr layover in Paris from the US on my way to Prague. DO i need to apply for a transit Visa?


How to measure 120 V, 60hz with an oscilloscope?

I wanted to measure the voltage of the electrical outlet. I wanted to see the signal with an oscilloscope, but I don't want to break it down. What is the best way to do that?   I have seen that some oscilloscope probes make the signal greater, they are x10 or x100 probes, but I am not sure if exists x0.1 or x0.01 probes. I was thinking also about using an operational amplifier to attenuate the signal. What would you recommend me. I want to do that because I am making a dimmer, and I want to see the signal.


CPT search using meta_query and meta key as array

Hi i got custom post type and meta key 'tf_elements' which is an array and look like this:  a:28:{s:22:"Mikrofon bezprzewodowy";s:3:"Tak";s:19:"Mikrofon przewodowy";s:3:"Tak";s:39:"Sprzęt do tłumaczenia symultanicznego";s:3:"Tak";s:10:"Magnetofon";s:3:"Tak";s:13:"Odtwarzacz CD";s:3:"Tak";s:5:"Scena";N;s:8:"Mównica";N;s:12:"Zaciemnienie";N;s:12:"Klimatyzacja";N;s:17:"Światło dzienne";N;s:19:"Obsługa techniczna";N;s:29:"Business centre + sekretariat";N;s:21:"Minibar konferencyjny";N;s:21:"Rzutnik multimedialny";N;s:13:"Rzutnik folii";N;s:16:"Rzutnik slajdów";N;s:15:"Magnetowid i TV";N;s:5:"Ekran";N;s:9:"Flipchart";N;s:6:"Kamera";N;s:21:"Tablica suchościerna";N;s:18:"Wskaźnik laserowy";N;s:8:"Komputer";N;s:16:"Wideokonferencje";N;s:7:"Telefon";N;s:3:"Fax";N;s:19:"Łącze internetowe";N;s:26:"Wi-Fi (bezprzew. internet)";N;}   I got search box on page with multiply checkboxes and i want to check search thru this array for example i check two options:  Mikrofon Bezprzewodowy = "TAK" AND Miktofon przewodowy = "TAK" AND ETC.  Is there any simple way to accomplish that ?


What is the severity of the new bash exploit (shellshock)?

I've been reading up about the  and was wondering how severe it is and if I should be worried, especially since a new exploit has been found after the patch release.  What does this mean for me as someone who uses Debian as my main desktop OS? Is there anything I should be aware of?


Shading artifacts in low poly models in cycles?

I am talking about Cycles. Why does it produce shading artifacts on low poly models in smooth shading especially close to the edges? I usually fix them by adding more vertices, edge splitting etc but why is this required and is it the only way? I've noticed that in game engines or some other 3D apps the shading on the same models looks fine.  Here's a small example in Cycles   Here's the exact same mesh in another render engine


Can you help me with a way to step up a voltage of about 3.29 to 4.5/5V? I need a simple and efficient circuit to implement this.


I've been trying to create an array which will hold a set of numbers. In this case 10, 33, 55 and 99. What I'm looking for is something flexible to search the array for a variable to see if the number is in it.  var nrArray = [10, 33, 55, 99]; // Any number in this array will decide the function below  if ( 55 = nrArray ) {   // If the number 55 is in the array do the following document.getElementById("demo1").innerHTML = "RUN1"; } else  {             // If the number 55 does not exist in the array do the following document.getElementById("demo2").innerHTML = "RUN2"; }
demo1

demo2
     NOTE 55 in this example will be replaced with a variable that has a number set to it. And this number will vary


Compound subject whose parts are joined by "and" and verb agreement : when is the singular correct?

I am in doubt as to whether the subject-verb agreement of the second sentence of this paragraph is correct :  Unfortunately, there is no such thing as the ideal home workshop because most people are limited by the space available and by their budget. However, the information and diagram here acts as a guide to help you formulate a sensible workshop layout and a machinery “wish list”.  I suppose if the compound subject is seen as a single unit, then the sentence can be considered as correct. A little further in the same book, another sentence has a singular verb with a compound subject :  Alternatively commandeer a garage, or build yourself a substantial workshop if outdoor space and permission allows – however, do consider the impact of machinery noise on your neighbours.  Can "outdoor space and permission" be seen as one thing, or would this be considered a mistake ?


What's the point of using an id selector?

I'm new to CSS, and after learning about ID selectors, the only difference between them and class selectors is the fact you can only have one specific id per element, whereas multiple elements can share the same class name. But then it's easy: name an element a class name that you won't use for any other element. So it seems in that sense, a class can be treated as an I.D.  I'm new to CSS, so I may be missing something here. What advantage do I get using an ID selector over a class selector in a particular case?  Thanks.


I am trying to find the nilpotents of the ring $\Bbb{Z}_n$. Let $\bar{a}$ $\in$ $\Bbb{Z}_n$ be a nilpotent. Then by definition, $\exists$ $m \in \Bbb{N}$ such that $\bar{a}^m$ = $\bar{0}$. From here, we get that $a^m$ $\in$ $n\Bbb{Z}$. So we have that $n|a^m$. Let $p$ be any prime divisor of $n$. Clearly $p|n$. Now $p|n$ and $n|a^m$. So we have that $p|a^m$. So from here, $p|a$. Let $n = p_1^{r_1}p_2^{r_2}..p_k^{r_k}$ i.e. the prime factorization of $n$. By the above observation, $p_i|a$ for all $i = 1,2,...k$. Let $r$ = $max$$({r_1,r_2..r_k})$ . Then first of all, I want to know that how can we claim that $a^r =0$? And from here, how could I find the nilpotents of the ring?


how can I calculate the sum of the n first elements : $ 1\cdot 2 +2\cdot2^2 +3\cdot2^3+4\cdot2^4+\cdots+k\cdot2^k+\cdots?$

how can I calculate the sum of the n first elements :    $$ 1\cdot 2 +2\cdot2^2 +3\cdot2^3+4\cdot2^4+\cdots+k\cdot2^k+\cdots$$    I don't have idea although I tried some tricks.  I will be happy for help from you


Is the 5e Rogue Assassin's Assassinate feature affected by rolling a natural 20?  My fellow players and DMs have different opinions.    The Rogue Assassin's Assassinate feature on page 97 of the PHB says:     You have advantage on attacks rolls against any creature that hasn't   taken a turn in the combat yet.  In addition, any hit you score   against a creature that is surprised is a critical hit.   During that attack roll on the surprised creature, what if you roll a natural 20, which counts as a critical hit in 5e?  Do these two instances of a critical hit stack?  If so, would it be double the amount of dice rolled, would it be tripled, or even worse quadrupled?   Maybe you can help end the debate amongst my group.


Does the sampling distribution for the median of a bimodal distribution depend on sample size?

I have a dataset of project sizes (in $) which is sometimes bimodal, sometimes not (it varies across time and I am using annual data sets). These projects are distributed across two types of project owners, A and B, with about 90% of projects being led by type A people, the rest by type B's. I am running (hand-coded in R) a permutation test based on the ratio of the medians of the project values in each group, to determine whether the medians differ significantly. This involves randomizing the assignment of type (A or B) to the projects, calculating the median project size in each (now randomly assigned) group and then finding the ratio of these two values - this being repeated many times (10,000) to get the sampling distribution for the ratio of the medians in the two groups under the null hypothesis that project type (A, B) is not associated with project size. Naively I expected that the sampling distribution generated would be centered on 1, and indeed most of the time it is, when the distribution of project sizes is unimodal. But in some cases instead I find that actually the ratio tends to become < 1 as the distribution becomes more bimodal. This seems surprising as I am in effect randomly sampling from the distribution. I have searched around and found suggestions that it may be a result of the imbalance in sample sizes, or that it may be something to do with the (lack of) meaning of the median when applied to a bimodal distribution. It could also be that the project sizes, which are power-law distributed, are an issue. But I cannot quite see why the sample size should systematically affect the ratio. It also happens when using the mean, but the effect is less pronounced. Any ideas? (I have no formal statistical training and approaching this as a practitioner.)


We have three computers with Ubuntu connected to a LAN network. Each computer has the software each user installs, and updates are done when the users want to update. These computers share among them a hard disk of several TB.  We would like our computers to have the same software, and to be updated all at the same time. Moreover, we would like each user to know the available resources that there are in each computer. This way they might launch a process in a computer or in another depending on the available resources.  Do you know a way to do it? What do you recommend?  Thanks a lot.


I am encountering very large standard errors of the endogenous regressor (bigger than the size of the coefficient) in the second step of my treatment-effects model (treatreg in Stata). When I consult Google and literature, the only reason I can find for this is that my instrument is weak. However, when I test my instrument, I get an F-value of 41.85 which as far as I can tell is pretty good. Might there be anything else going on?  Here is my ouput from running the treatreg command in Stata (volunteer = endogenous regressor, tradition = instrumental variable):    Some detailed background:  I am looking at whether wages are influenced by doing volunteer work. This may be the case, in theory, since volunteering may be an investment in human and social capital which should increase earning power. However, since volunteers are often individuals with an abundance of human and social capital, bias may result from omitted variables and I therefore may have correlation with the error term.   My instrument is a self-reported dummy variable that measures whether an individual has a tradition for volunteering in their family. This variable is highly significantly correlated with whether they volunteer at present but not their wages.


Find the value of $\lim_{x \to 0}\left (\frac {\sin x}{x}\right)^{\frac {1}{x^2}}$.

I am stuck with the following problem :     Find the value of $$\lim_{x \to 0}\left (\frac {\sin x}{x}\right)^{\frac {1}{x^2}}$$   My try : Let $$p=\lim_{x \to 0} \left(\frac {\sin x}{x}\right)^{\frac {1}{x^2}}\implies \log p=\lim_{x \to 0}{\frac {1}{x^2}}\log\left(\frac {\sin x}{x}\right)$$...After applying l'hospitals rule few times  I get   $$\log p= \lim_{x \to 0}\frac{1-\sec^2x}{4x \tan x+2x^2\sec^2x}$$.. we can again apply l'hospitals rule ,but the calculations get bigger and bigger..Is there any other easier way around or I am missing something?


Send a copy of outbound messages to another address

Is there a way to have a copy of any message sent from a Gmail account sent to another address?  I've got any messages coming to my address copied to another (see  for one solution, setting up filters is another), but I haven't yet found a way to have outbound messages automatically copied.  Is there a way?


Rising edge pulse detector from logic gates

The circuits I describe are entirely made of 7400 series logic gates (7402, 7404 and 7408 ic). I'm trying to build a rising (positive) edge pulse detector using logic gates.  The following circuit should work in theory:   (see )  I do not expect the short output to be seen through a LED so, to test it, I make it trigger an SR latch to its up state:    However, it doesn't have effect on the latch. So I added an inductor to delay the input to the NOT gates in the pulse detector circuit and it worked:   But now I can see the short flashing output through a LED which I should not because it would mean it is too long to work with a circuit like that:   Which intends to toggle the D Latch output on each clock rising edge (Note that this is a D Latch not a D Flip-flop)  And anyway there is no place for inductors in integrated circuits so there must be a way to do this only with logic gates. Can someone solve this mystery?  BTW It does not show in my schematics but I did put 10K pull-down resistors where there might be floating pins.


When we want to run a programs as root we use sudo, gksu, gksudo and etc. Now my question is how do we can run a Terminal as the root user in Terminal?  I tried with using gksudo terminal and gksu terminal but nothing happens. and by running sudo terminal I get error sudo: terminal: command not found.


Here what I am getting:   Windows loads fine only if I switch to UEFI via Boot options (F12). I get the GRUB menu only in legacy mode. In GRUB 2.02 beta2-9ubuntui1.3 menu the only selection for Windows I get is:  Windows Recovery Environment(loader) (on /dev/sda1)   When I select it, I get only a blinking underscore/cursor and it freezes there.   Unlike what I saw in a similar issue(), I can dual boot, but it requires me to switch back and forth from legacy and UEFI, which is inconvenient.


Proving that a set of 2016 natural numbers contain a non-empty set with a sum divisible by 2016

Prove: Each set which consists of 2016 natural numbers contains a non-empty set that has a sum divisible by 2016  My attempt: Use the pigeonhole principle. Let $A$ be a set of 2016 natural numbers. I'll split the answer to two different possibilities:   $A$ contains at least one number which is divisible by 2016. In this case the claim is true. $A$ does not contain numbers that are divisible by 2016. In this case, we'll apply the pigeonhole principle.    Holes: $\{1,2,3,4,...,2016\}$, A set of all possible remainders when dividing a number (which is not divisible by 2016) by 2016. In total there are 2015 holes. Pigeons: 2016 numbers.   Each number will be divided by 2016 and put into the appropriate hole according to the that number's division remainder. By the pigeonhole principle, at least in one hole will be $\lceil \frac{2016}{2015} \rceil$. objects. In this case, the claim is also true.   Is my proof sufficient? Can I prove this not using 2 different possibilities, or maybe not using the pigeonhole principle?  Edit: As stated in the comments and in the answers, my proof is false. The proof shows that there exists at least 2 numbers in the set $A$ with a difference divisible by 2016. It does not prove that there is a non-empty set with a sum divisible by 2016.


I use the initialism "CE" a lot in my thesis, both in an out of equations. I find that the letters are too far spaced for my liking when used in an equation, so I use the \! command to reduce the spacing. When I do this manually it seems to work perfectly, but when I incorporate the this into a \newcommand the result is that I always lose a space after the command if one exists.   Is there a way to stop this? It would be even better if I could have one command in and out of equation environments.  \documentclass{article} \begin{document}  % Commands \newcommand\CE{{C\!E}}  % CE for equation environment \newcommand\ce{$C\!E$}  % CE for inline writing  \ce. \ce this is a line.        % space lost after second \ce  $\CE$. $\CE$ this is a line.    % Works fine but cumbersome  $C\!E$. $C\!E$ this is a line.  % Works fine but would like this in a command  \end{document}


Add markdown quick-links to the share dialog?

When I wish to share a link to a post in a comment this is my workflow:   write []() search for the question remember the title of the question click on the share box copy the link paste into parentheses write the title in the square brackets   realize the title is probably wrong back to the question copy the title paste into square brackets  write the rest of the comment etc.   Maybe there's something obvious I've missed for 3 years, but especially on a mobile device or the mobile app this is very tedious.  Through debate on a  (and having seen ) a "new" standard is appearing of adding a markdown copy-past snippet to FAQ questions    This makes it easy to quickly refer users to a question/answer in comments (and chat).   Should a markdown link be part of the platform, e.g. added to the share box directly?


Table `names` ID | name  --------- 1  | Alex 2  | John 3  | Alex 4  | Alex 5  | Alice 6  | Monica  SELECT `name` FROM `names` GROUP BY `name` Alex John Alice MOnica      so, I need to make like this   SELECT `name`, COMBINE_STRING(`ID`, SEPARATOR `,`) AS `IDS` FROM `names` GROUP BY `name`  and the result should be like this :       and the result will be like this :   NAME | IDS ------------ Alex   1,3,4 John   2 Alice  5 MOnica 6      but as you see that mysql function COMBINE_STRING doesn't exist, so   any ideas how to do this?


Time dilation when falling into black hole

I know that if one astronaut falls into a black hole, then a distant observer will see him take an infinite amount of time to reach the event horizon (provided the observer can see light of arbitrarily large wavelengths).  But the falling astronaut will only take a finite amount of time to reach the horizon.  My question is: What will the falling astronaut see if he "looks backwards" while falling. Will he see the distant observer growing old and all the stars dying by the time he reaches the horizon ?


Short, Politically Correct word for Native Americans

No more than four syllables, more PC than Indians.  EDIT: I arbitrarily chose four syllables because any more seemed like a mouthful. I like to be PC and not have to stumble over 6+ syllables.


Why do springs have helical shapes? Why do we not use a cylindrical rod as a spring?

A spring is a mechanical flexible element and has to absorb energy from outside gradually. We are manufacturing springs in helical shapes on a large scale. What is the reason behind this?


If an electron is a singularity do we talk about a black hole?

As the standard model states an electron is a pointlike particle. If it is really so it has all features to be thought of as a mini black hole but then there is the problem how a such black hole can emit EM waves.


Trouble with sources.list and apt-get update in Ubuntu 18.04 LTS

I am facing with a problem in Ubuntu 18.04 LTS. I am running Ubuntu in my virtual machine. I am having a problem with sudo apt-get update command. This is the current output I get: VirtualBox@VirtualBox:~$ sudo apt-get update Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:3 https://download.virtualbox.org/virtualbox/debian bionic InRelease        Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease              Hit:5 https://deb.nodesource.com/node_12.x bionic InRelease                     Hit:6 https://dnw9lb6lzp2d8.cloudfront.net stable InRelease                     Reading package lists... Done   I realized that apt-get issues are most of the time related with /etc/apt/sources.list. Then I followed the solution here:  to restore default repositories in sources.list. But I guess it didn't work because this is the content of sources.list: deb http://us.archive.ubuntu.com/ubuntu/ bionic main universe deb http://security.ubuntu.com/ubuntu/ bionic-security universe main deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe main  My questions here are:  Is the result of sudo apt-get update normal? Is it really updating? Why it doesn't do Fetching anymore? I opened the Software & Updates to fix the repositories in /etc/apt/sources.list just like the first answer here  Do you think now content of the sources.list is normal?  It would be so nice if some expert could answer my questions and direct me in the correct path. Because I am new in Ubuntu and I can't solve every problem on my own. Thank you so much for your support!!


Hats on top bar profile not aligned properly

I spent a bit of time aligning my hat, but every time I glanced at the top bar it looked off, well either way, it seems to be a pixel or so off to the right.


Suppose a person is after something or somebody. For example, Tom wants to be with Jane, but somebody else wins her heart, and Tom says, “She was ugly/fat/... anyway.” Is there a word or idiom to describe Tom's reaction?


What is the icon next to Spotlight in menu bar, and how to remove it?

What is this icon   in OS X menu bar and how do you remove it?


Can I monitor my guest's activity without them knowing? They know how to delete browsing history

Is there a way for me to monitor the activity of a "Guest" on my computer? They know how to delete their browsing history, although they have missed a few.  I need to see what sites they are visiting, and who they are communicating with. If I put a password on the "Guest" account, I'll be the one inconvenienced. This person does need access to the computer in general, so I can't just lock them out. Instead I would like to be able to verify their activities.  Is this possible? Can I do this within Windows?


Getting Error on Text/CSV.pm when running Perl Script

When running a Perl Script that grabs content from an Oracle DB and exports the results into a CSV, I am getting this error when trying to run it via the command line:  Can't locate Text/CSV.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/5.16.2 /usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/site_perl .) at ./OracleScript.pl line 4. BEGIN failed--compilation aborted at ./OracleScript.pl line 4.   I interpret this to mean that the Module is not installed. So, I tried to install it with the following command:  /usr/bin/perl -MCPAN -e'install Text::CSV_pm'   I get this error:  Database was generated on Mon, 06 Oct 2014 10:41:02 GMT Warning: Cannot install Text::CSV_pm, don't know what it is. Try the command      i /Text::CSV_pm/  to find objects with matching identifiers.   Can anybody shed some light on my issues, and how to remedy this?


Have any fights happened because of the joking on Impractical Jokers

I love the show, and was just wondering if any of the guys have gotten into a fight because of their awesome sense of humor.


$R\subset S$ rings conditions implying that there are at most $t$ maximal ideals in $S$ lying over any maximal ideal in $R$

The problem is the following.      Let $R,S$ be rings such that $R\neq 0 $, $R\subset S$ and $S$ is finitely generated as an $R$-module, with $t$ generators. Let $\mathfrak{m}$ be a maximal ideal in $R$. Show that there are at most $t$ maximal ideals in $S$ lying over $\mathfrak{m}$.   My attempt to solve  First of all, we have that $S$ is integral over $R$. My idea was to suppose that there are $\mathfrak{m}_1,\ldots,\mathfrak{m}_{t+1}$ distinct maximal ideals in $S$ lying over $\mathfrak{m}$, and get a contradiction from that. It's possible to show that, for each $i=1\ldots t+1$, there is $a_i\in\mathfrak{m}_i$ such that $a_i\notin\mathfrak{m}_j$ for all $j\neq i$. We have that $a_1\cdot\ldots\cdot a_{t+1}\in\mathfrak{m}$ and $a_1\cdot\ldots\cdot a_{t+1}\in\mathfrak{m}_1\cap\ldots\cap\mathfrak{m}_{t+1}$. Also, by the chinese remainder theorem, we have $$\frac{S}{\mathfrak{m}_1\cap\ldots\cap\mathfrak{m}_{t+1}}\cong \frac{S}{\mathfrak{m}_1}\oplus \ldots\oplus \frac{S}{\mathfrak{m}_{t+1}}.$$  With this observations I tried to get some contradiction, like $S$ is not integral over $R$, or the Going Up property fails, or $S$ has more than $t$ generators and so on. Nothing is working, so I don't know what to do. I really appreciate a help here.   Thanks.


I have been trying to open a map which I downloaded from the ESA website.  There are several files in the folder including .cpd, .csv, .dsr, .qml, .tif and so on. I was trying to open the .tif image in ArcGIS Desktop but it would not display anything. Then I was just trying to identify but I realized something was not right here. Apparently .qml files could be opened in QGIS, but I have no idea how to work around QGIS.   Is it possible to open the QML file in ArcGIS Desktop?


Which of the following is correct?  1.       What would you do if we found life on Mars?   OR     What would you do if we find life on Mars?     2.      He hasn't still find out the secret   OR     He hasn't still found out the secret   Please give some explanation with answers.


Let $R$ be a ring. Prove that every idempotent element is not nilpotent element.  I've got a problem with proving this question. I was be grateful, if somebody would be help me.


"Command not found" after running a file compiled on the same directory

I don't know what is going on...  d@d-SVF15A17CDB:~/University/CSC209/a1$ gcc -o remvocals remvocals.c d@d-SVF15A17CDB:~/University/CSC209/a1$ dir remvocals  remvocals.c d@d-SVF15A17CDB:~/University/CSC209/a1$ remvocals remvocals: command not found


$X$, $Y$ be independent geometric random variables and let $U$ be the smaller of $X$ and $Y$, and put $V = X - Y$. Show $U$ and $V$ independent.

Let $X$, $Y$ be independent random variables with the same geometric distribution $\{q^kp\}$. Now let $U$ be the smaller of $X$ and $Y$, and put $V = X - Y$. Show that $U$ and $V$ are independent. This is what I have thus far: We just need to show that $P(U = u)P(V = v) = P(U = u, V = v)$. Let us first suppose that $X = Y$. Then, $V = 0$ and since it doesn't depend on $X$ and $Y$ specifically, we conclude that $P(U = u)P(V = v) = P(U = u, V = v)$ holds trivially. Now let's suppose $X \neq Y$. We first calculate the probability that $X$ is the smaller one. We notice that $P(X<Y) + P(X = Y) + P(X> Y) = 1$ and that $P(X<Y)  = P(Y > X)$. Computing $P(X = Y)$ gives $\sum_{i = 1}^\infty q^{2i - 2}p^2 = \frac{p^2}{1 - q^2}$ so that $P(X>Y) = P(X<Y) = \frac{1 - q^2 - p^2}{2(1-q^2)}$. Thus if we suppose that $U = X = u$ then $V = v$ happens with a probability of $q^{v - u - 1}p$ for $V< X$ (since $Y$ takes on positive integers) and $0$ otherwise. Thus \begin{equation}        P(U = u, V = v) =\begin{cases}        \frac{1 - q^2 - p^2}{1 - q^2}q^{v - u - 1}p & \text{ if } V< X\\        0 & \text{ otherwise}        \end{cases}    \end{equation} We now note that $P(U= u) = 2q^{u-1}p\sum_{k = u+1}^\infty q^{k-1}p + (q^{k-1}p)^2 = \frac{2q^{2u-1}p^2}{1 - q} + q^{2k - 2}p^2$. On the other hand, $P(V = v) = \sum_{i \geq  -v}^\infty q^{i-1}p (q^{i-v-1}p) = \frac{p^2q^{-v}}{1 - q^2}$ I'm very confused as to what to do next since $P(U = u)P(V = v)$ and $P(U = u, V = v)$ look totally different.


Hello I have a question regarding resistance. I have a 5v supply and I want it to be brought down to 1v at a certain part in the circuit. How do I Know how much resistance I need to go from 5v to 1v? Thanks - Jack.


Grub2 does not recognise Windows 10 and won't boot it

I wanted to use Ubuntu for the first time for deep learning purposes. I made a partition and installed Ubuntu on it. For some reason, the system booted straight to Windows. But after much tweaking, I managed to boot to GRUB only to realize that Windows 10 is not an option there. I don't know much about Linux so please pardon me.   I can see the Windows data files in the file explorer in Ubuntu.  fdisk-l shows    update-grub shows    os-prober shows no output.  I know there are many threads like this but I can't find the solution that works as of now.  I have tried editing /etc/grub.d/40_custom to contain this:  menuentry "Windows 10" {    set root='{hd0,1}'    chainloader + 1 }   This creates an entry, but I can't load Windows. Thanks in advance.


Smacking the ball down without hitting the opponent's hand when they hold the ball with two hands

When my opponent holds the ball with two hands can I smack the ball down without hitting the hand?


SQLite fails to delete the foreign keys with the cascade delete

I have a simple SQLite database with a foreign key on a master table. This table is a relational table to help mapping Table A to Table B.  CREATE TABLE IF NOT EXISTS "PERSON"  (  "ID" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,  "NAME" TEXT NOT NULL,  "SURNMAE" TEXT NOT NULL,  "LAST_MOD" TEXT DEFAULT CURRENT_TIMESTAMP );  CREATE TABLE IF NOT EXISTS "DEPARTMENT"  (  "ID" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,  "DEPNAME" TEXT NOT NULL );  CREATE TABLE IF NOT EXISTS "PERSON_DEPARTMENT"  (  "PER_ID" INTEGER NOT NULL,  "DEP_ID" INTEGER NOT NULL                FOREIGN KEY (PER_ID)                   REFERENCES PERSON (PER_ID)                      ON UPDATE CASCADE                      ON DELETE CASCADE                   FOREIGN KEY (DEP_ID)                   REFERENCES DEPARTMENT (DEP_ID)                      ON UPDATE CASCADE                      ON DELETE CASCADE );   Now so long I delete a couple of records using the visual interface, rows in the related table are deleted too as well as enforced for not being orphan.  However, if I do a truncate via a DELETE FROM PERSON, all the records in the related table remain in place. I can't understand why. Any hint?


I would like to have a PDF file which I can embed in the foreground of my PDF files which, in turn, will mark analog copies with a visible watermark. Apparently these are called  and some printers can even put them on any page printed - mine can't.  For that, it seems to be the way to go to have two micro-dotted halftone images in which the underlying one has a different frequency then the one that renders the text.  Is there a way, for starters, to generate a postscript file that contains micro dots of a certain size and in a certain distance? I would then import one of them into a vector editor, mask my text and overlay it onto another copy of different halftone frequency, merge the two and add that on top of my to-be-protexted page. Wheew.  In other words, is there a way to LaTeX-programmatically generate a Void Pantograph with adjustable dot-size, dot color and frequency without the above?


I want to determine the root-system of the lie algebra $sl(3,\mathbb C)$. Does someone know a good (and complete) reference for this problem?  I know that the root-system is $A_2$ but I want to see a complete proof (calculation) for this.  Thanks in advance.


How to view progress when encrypting a disk?

Mountain Lion allows one to encrypt any disk by right-clicking on the disk in the Finder and selecting Encrypt  from the contextual menu.  Is there anyway to check on the progress of this encryption process?


Firebase Database NullPointerException when using getValue(Boolean.class)

I use Firebase Database and have message object written to it with one boolean field. When I try to read that object with getValue(Boolean.class) I get an exception. It only happens when getting this boolean value, I get string with no problem.   Method causing exception:  @Override     public void onDataChange(DataSnapshot dataSnapshot) {          message.setSenderId(dataSnapshot.child("senderId").getValue(String.class));         message.setDestinationId(dataSnapshot.child("destinationId").getValue(String.class));         message.setDatetime(dataSnapshot.child("datetime").getValue(Date.class));         message.setText(dataSnapshot.child("text").getValue(String.class));         message.setSent(dataSnapshot.child("isSent").getValue(Boolean.class)); // this line causes NullPointerException }   My Message model class:  @IgnoreExtraProperties public class Message {      @Exclude     private String id;     @Exclude     private ValueEventListener valueListener;     @Exclude     private Conversation destination;      // User ID     private String senderId;     // Conversation ID     private String destinationId;     private Date datetime;     private String text;     private boolean isSent = false;      public Message(String id, String sender, String destination, Date date, String text) {          this.id = id;         this.senderId = sender;         this.destinationId = destination;         this.datetime = date;         this.text = text;     }      public Message() {      }      public Message(String id, Conversation destination) {          this.id = id;         this.destination = destination;     }  // ...  public boolean isSent() {          return isSent;     }      public void setSent(boolean sent) {          isSent = sent;     }  }   Example of message stored in database:  {   "datetime" : {     "date" : 12,     "day" : 4,     "hours" : 17,     "minutes" : 32,     "month" : 9,     "seconds" : 25,     "time" : 1507822345776,     "timezoneOffset" : -120,     "year" : 117   },   "destinationId" : "test_conversation",   "isSent" : true,   "senderId" : "test_sender",   "text" : "hello world" }   What is wrong with that code? I tried to figure it out but I still didn't come up with anything.


Synchronize this lazy initialization is showing  in sonar I want to solve this problem by static class holder idiom singleton pattern so how will make in static class holder idiom singleton pattern   public final class ContainerFactory {  private static final int SPLIT_PANE  = 1; private static final int TABBED_PANE = 2;  private static TopLevelContainer Container = null;    public static TopLevelContainer getTopLevelContainer() {     if(Container == null)     {         int containerType = Integer.parseInt(System.getProperty("NUEVO_CONTAINER", "1"));          switch(containerType)         {             case SPLIT_PANE:                 Container = new SplitPaneContainer();                                     break;             case TABBED_PANE:                 Container = new TabbedPaneContainer();                                     break;         }     }         return Container; }   }


The Alien Queen made first appearance in the Aliens movie. Although originally, it was intended for xenomorph individuals to convert victims into eggs, this idea was cut from the Alien movie and was later replaced by the Queen and the Hive concepts.  It's however unclear to me how a Queen is produced. As the concept is heavily inspired by social insects I would expect that some facehuggers are made to carry the queen breed. But then this sounds quite risky given how weak facehuggers are alone and how much they rely on chance when looking for victims.  Was the origin of Xenomorph queen ever explained? In the AvP games, a very successful Alien would become a Queen, but I doubt that was canon.


Confusion regarding the direction of an electric field

I know this question's been asked extensively on the site. I've read a couple answers here and there, but none of them satisfy my curiosity and confusion.  Here's what I do understand:   an electric field is an alteration of space caused by a charge the alteration of space is the agent that produces a force on nearby charges   Here's my confusion:  Suppose we have a negative source charge and a negative probe charge. We know the two will repel each other, so the force vector for the probe charge points outward, away from the source charge.  My textbook says that if the probe charge is negative (which it is in this case), the electric field vector points in a direction opposite to that of the force vector.  This suggests that the electric field vector points inward towards to the negative source charge, whereas the force vector on the probe charge points outward away from the source charge.  But if the electric field is what generates the force on the probe charge, how exactly is it possible for the inward-pointing electric field to push the probe charge in the opposite direction?


Cannot pass derived class to a function that

I have some problems understanding why gcc gives me an error, when I try to pass a derived object to a function, that takes a base class reference.  class Base  { public:     virtual void bar(){} };  class Derived : public Base { public:         virtual void bar() {} };  void foo(Base& base) {     base.bar(); }  int main() {      Derived derived();     foo(derived);      return 0; }   gcc returns following which i can't understand:  In function 'int main()': 29:16: error: invalid initialization of reference of type 'Base&' from expression of type 'Derived()'      foo(derived);                 ^ 19:6: note: in passing argument 1 of 'void foo(Base&)'  void foo(Base& base)       ^~~


Visual C# Exception Handling(input only numbers and ".")

I am currently working on my Windows Console app. Is there any way to let the users only input numbers and one dot in the text box, inside the TextChanged part?  private void Input_TextChanged(object sender, TextChangedEventArgs e) { }   Your help would be appreciated.


What makes elementary functions elementary?

Is there a mathematical reason (or possibly a historical one) that the "elementary" functions are what they are?  As I'm learning calculus, I seem to focus most of my attention on trigonometric, logarithmic, exponential, and $n$th roots, and solving problems that have solutions which are elementary functions.  I've been curious why these functions are called elementary, as opposed to some other functions that turn up rather naturally in mathematics.  What is the reason that these functions take up most of our attention, and is there a reason that some additional functions are not included amongst the elementary functions?  In other words, what property or properties do these functions possess that separates them from non-elementary functions (if there is one)?


proof of functional completeness of logical operators

If I know that the set of operators {∨, & , ¬} is functionally complete, how do I go about proving/disproving the functional completeness of the following set of operators?  a) $\{\vee,\neg\}$  b) $\{\to,\neg\}$  c) $\{\to\}$  I have looked at the answer here for (b) :


Prove that the collection of arithmetic progressions $A=A_{a,b}|a,b\in \boldsymbol{Z},$b$\not\equiv 0$ is Basis for topology on $Z$

Please check my proof   Define  arithmetic progressions  $A={A_{a,b}|a,b\in Z,b\neq 0}$  $=$  $....a-2b,a-b,a,a+b,...$  Let all of union of arithmetic progression $A_{a,b}=Z$  Let $x\in Z$ then $x\in (a\pm bn)$ and $(a\pm bn)\in A_{a,b}$  Suppose   $A_{1}={A_{i,j}|i,j\in Z,j\neq 0}$ $=$$....i-2j,i-j,i,i+j,...$  $A_{2}={A_{c,d}|c,d\in Z,d\neq 0}$ $=$ $....c-2d,c-d,c,c+d,...$  and   $A_{1},A_{2}\subset A$  it's exist   $A_{3}={A_{e,f}|e,f\in Z, f\neq 0}$  such that  $x\in A_{3}$ and $x\in A_{3}\subset A_{2}\cap A_{1}$  for some $A_{1}=A_{2}$  therefore A is basis for topology on $Z$


When a code snippet is long enough to prompt scrolling (especially horizontal scrolling), it would be helpful to offer a link to view the code snippet in a new window.  I'm thinking that the link should be positioned below the snippet, since most people will decide to use it after scanning the part of the snippet that is visible without scrolling.


What does vanishing gradient problem exactly mean?

I'm currently doing some stuff with ML, and I created a LSTM model to recognize activities such as walking or running. I have read that LSTM has advantages over traditional RNNs due to addressing the vanishing gradient problem. Could you please explain it to me with a simple example?


Question: Show for any simple ring without identity, R, that R is a division ring.   My thought process is to consider an ideal generated by one element $r$, so I want to consider the ideal $rR$ =  $ \{ ry | y \in R \}$. Since R is simple, this means $rR = \{0 \}$ or $rR = R$. Since $R$ does not have an identity, I am not sure how to prove that $R$ is a division ring. Do I need to find some way such that $R$ contains the identity element? Do I need to consider zero divisors? Please do not work this out entirely! Any help is very much appreciated!


Construct a set $A$ for which the lower box dimension of $A$ is less than the upper box dimension of $A$

I'm revising for an exam and would appreciate any answers to this question. Thanks


Can I check if Map contains key or not in Visual Force page under the  tag

<apex:repeat value="{!mapOfID [Lpartner]}" var="InvestorDistributor" rendered="{!mapOfID[Lpartner] == true}">

                          {!InvestorDistributor.Name}"             	                          <apex:outputText value="{0,date,MM'-'dd'-'yyyy}">             <apex:param value="{!InvestorDistributor.navpeII__Distribution_Date__c}"/>              </apex:outputText>             	             {!InvestorDistributor.navpeII__Total_Distributions__c }"

        <apex:variable value="{!totaldistribution+ InvestorDistributor.navpeII__Total_Distributions__c }" var="totalContribution" />     </apex:outputPanel>                   </apex:repeat>


Is it normal to separate hyphenated words on different lines?

I'm typing in Microsoft Word, and it automatically separated the word T-shirt when it ran out of room:     blah blah blah, Lorem ipsum dolor sit amet, I have a T-   shirt   leaving just the letter "T" on one line.  This doesn't look right to me at all, or for any compound, hyphenated word, yet basically all text boxes will split words at a dash on separate lines if needed.  I would prefer:     I have a   T-shirt   I know it would be fine if I were splitting words in a narrow column, like the newspaper, but is there a rule about what you're supposed to do to words like this?  Is my way always right, or Word's, or either?  (How to get Word to actually stop doing it is a totally different question...)


I am using  in header.   The setup is Drupal 7.35 + Oracle + Apache2. Theses are all the items which takes more execution time.  How can I cache menu items path and all Js and CSS files.


Old fantasy book with a party finding coloured stones having powers over fire, water, mood

I'm trying to remember the name of a book series of which I remember only the following, with Google yielding no results.   the name of the author starts with a Z   the main character is a knight in an household with a name sounding like Malachai who goes on a quest with six others guys and girls (a bard, another knight, a priest, etc.) and each of them finds a stone of colour which has a power on various things (like fire, their mood or water) and then they set toward a quest to beat some ancient evil. I used to find the book at the local library 10 years ago in France (but it was translated).


Is my computer capable of running Ubuntu? If so, what version is recommended?

Specs:  Dell Latitude D820 Laptop Computer Intel Dual Core Processor w/ 2.0 GHz clockspeed Intel GMA 950 GPU w/ 256 MB VRAM 4.0 GB RAM 32-Bit OS  The computer is atrocious, I know. But I want to know if I'm capable of running Ubuntu. With those specs, what would be the recommended version to install?


Any continuous map $f:\mathbb{R}\to\mathbb{Z}$ is constant

Not really sure how to proceed with this one. Can anyone help?  The question is:     Show that any continuous map $f: \mathbb{R}\to\mathbb{Z}$ is constant.


I have a machine with two hard drives. One hard drive is dual-boot, and has both Ubuntu 14.04 and Windows 10 installed. The other hard drive is reserved for storage. Until recently, this storage hard drive was accessible from both the Windows and Ubuntu partitions. To do this in Ubuntu, I would open Nautilus and then on the left, there are three items under Devices, which are: 250 GB Volume, Storage, and Computer. Clicking on Storage used to give me access to this second hard drive.  However, for some unknown reason, recently I have been receiving the following error message when I try to click on Storage:  Unable to access “Storage”  Error mounting /dev/sdb5 at /media/karnivaurus/Storage: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb5" "/media/karnivaurus/Storage"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   Please could somebody explain this message to me? I have tried booting into Windows and shutting down fully as suggested, but this did not help.  Thank you.


Well structured URLs vs. URLs optimized for SEO

Let’s take an example of a movie site. So a well structured set of URLs for this site can be:     Movie page - example.com/movies/the-matrix Review for movie - example.com/movies/the-matrix/reviews Trailers for movie - example.com/movies/the-matrix/trailers Specific trailer for movie - example.com/movies/the-matrix/trailers/trailer1   where it’s possible to navigate the resource even by directly deleting/appending resource name seamlessly.  For SEO purpose I read somewhere that for two given pages, Google will prefer the page which have search query up in the URL hierarchy among other things. So for the given 2 URLs and the query "the matrix trailer"    example.com/movies/the-matrix/trailers example.org/trailers/the-matrix/    `     Google might prefer the second URL as it has the keyword "trailer" at first level comparing to first URL which has "trailer" at 3rd level (a resource deeper in URL hierarchy may be less important).    If it is correct, one may be tempted to create URL hierarchy somewhat like      Movie page - example.com/movies/the-matrix Review for movie - example.com/reviews/the-matrix/ Trailers for movie - example.com/trailers/the-matrix/ Specific trailer for movie - example.com/trailers/the-matrix/trailer1     which will break the seamless hierarchy.    My questions are:   Is it true that resource deeper in URL hierarchy is tend to be less important when comparing to URLs of other site?   Is sacrificing meaningful, seamless hierarchy worth for this SEO optimization?


In nut shell, how to manually program a microconntroller

I know we can program and load program inside micro controller with easily available programmer with Computer based interface. But I want to know how same thing was being done in older days when No programmer or modern computer kind of interface was not available? Consider it as i am making a full project, so don't miss any steps.


Clipping end and incorrect view in edit mode

When I increase clipping to a large value (more then 4m), the model in edit mode is displayed with a little transparency.    Can I fix it?  Environment:  Blender 2.79 on GNU/Linux


How to get running class and method names programmatically?

There is a logger class in my org that accepts class name and method name as parameters. So often, you will see code of roughly the following form:  public class MyClass {     public static void myMethod()     {         try         {             // do stuff         }         catch (SomeException e)         {             new Logger(e, 'MyClass', 'myMethod').handle();         }     } }   Is it possible to get these values programmatically instead of forcing the developer to pass them in? It would be a bonus to get the line and column numbers as well.  public class Logger {     public final String className, methodName;     public final Integer line, column     public Logger()     {         // determine class and method names of the calling context         // optionally determine line and column numbers     } }


Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that:  The default VIM package has been built against python3 instead of python2.  Yet after I installed vim with the following command:  sudo apt-get install vim   And checked:  vim --version   It showed:  -python -python3   Is it a bug? How do I get vim with Python support?


In linear regression, what does $\beta_1 = 0$ really mean?

If granted omniscience and we know that $\beta_1$ in a multiple linear regression model is truly 0, what does that mean in words (and math notation)?  The model is: $Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \epsilon$  Does $\beta_1 = 0$ mean:   Empirically: "If we make infinite, perfect measurements of our data, $\hat\beta_1$ approaches 0 at the limit?" [Math: ??] Formally: "In the true, finite population of our data, $X_1$ has 0 association with $Y$ and their vectors of values are perfectly linearly independent, uncorrelated, and orthogonal?" [Math: ??]   What does $\beta_1 = 0$ mean, precisely?


Where I can find all the questions I protected?

During the past SPAM wave on Ask Ubuntu, I was forced to protect several questions using my 15k privilege; now I'm looking for them to unprotect them now that the SPAM is gone.  Where is a list of all questions I protected?  I'm using both support and feature-request tag, if such doesn't exist so it could be created.


Switch case: can I use a range instead of a one number

I want to use switch, but I have many cases, is there any shortcut?  So far the only solution I know and tried is:   switch (number) { case 1: something; break; case 2: other thing; break; ... case 9: .........; break; }   What I hope I'm able to do is something like:  switch (number) { case (1 to 4): do the same for all of them; break; case (5 to 9): again, same thing for these numbers; break; }


Cartesian product of a family of sets by halmos

can someone please give me an example for this sentence, (i don't want a formal definition) thank's.


I have a 15gb swap file partition that doesn't seem to get used much. Is that okay?

Lenovo Laptop Ubuntu 18.04.2 LTS 16 GB RAM Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 GNOME 3.28.2 64-bit   Swap File Partition:    If I have enough memory all the time (16gb) does that mean it just doesn't need the swap file?  Does 18.04.2 even need the swap?


Let $R$ be a UFD ring, $S$ a nonempty subset of $R$, $S$ closed under $R$ multiplication. Considering  fractional ring $S^{-1}R$, why is $S^{-1}R$ a UFD ring?


How can I find out what app is running (actual name, not published name)?

I've just been through the massive long process this morning of trying to identify a running application. It was for the purpose of reporting a bug this morning, but I ended up posting a question about it to AskUbuntu instead.  I fluked finding the answer this time.  I tried starting gnome-system-monitor (published name: "System Monitor"), but I couldn't work out which was the application I was looking for.  I tried going to the application's menu > About but is doesn't show the actual name of the application there. Here's a screenshot of gnome-software > About, which only shows the published name of "Ubuntu Software".   I did a web search for "ubuntu software" to see if any search results showed the name of the application. I found  that says "Development was ended in 2015 and in Ubuntu 16.04 LTS it was replaced with GNOME Software instead". I followed the link to  but the name of the application is not shown there either.  Therefore I wasn't able to report the bug, so I came to AskUbuntu. I did a search for "ubuntu software" and saw the name "gnome-software" somewhere.  I opened a terminal, used the command gnome-software, and the correct application started.  I ended up asking a question in AskUbuntu instead of reporting the bug. However, I have had this same problem many times over the last 10 years or so, and I would dearly like to solve it once and for all.  Is there a quick and easy way to identify the actual name of a currently running application?  PS This question was marked as a duplicate "This question already has an answer here:  1 answer", which effectively answers "No" to my question "Is there a quick and easy way to identify the actual name of a currently running application?", but in actual fact the answer I received from @waltinator seems to provide a method (via xprop command).


How can I go about proving the triangle inequality holds for the Frobenius norm?  I worked through $\|A+B\|_F \le \|A\|_F + \|B\|_F$ and was not able to make it work =/.


How can I simplify the use of flags with Views Bulk Operations?

I have an administrative display (made with views) that lists content that is pending approval.  In the case of my site, approval means flagging with the approval_for_pub flag (which triggers a custom rule).   allows nodes to be flagged/unflagged all at once by clicking a handy button:    However, upon clicking this button, by default it shows all possible flags and the flag/unflag option:    This is a problem on my site because some of the people responsible for approval get confused by the names of the flags and select the wrong option.  So, what I would like to do is create a VBO option that, when the button is pressed, automatically flags all applicable content with the approval_for_pub flag.  How can I approach this?  It seems like a small detail, but this step happens several times a day, so the chance of making a mistake is quite high.


Which is better String name1 = "some name" or String name1 = new String("some name")?

What is the difference between  String name1 = "some name";   and  String name1 = new String("some name")   Which is better and good for use?  thanks


Tikz-cd and snake lemma: "loseness" and centered figures

I have to draw a snake lemma, as here: .  The code is  \documentclass{article}     \usepackage{tikz-cd}     \usepackage{amsmath}     \DeclareMathOperator{\Tor}{Tor}     \begin{document}     \begin{tikzcd}               \cdots \rar   & \Tor_3^A(A, M) \rar & \Tor_3^A(K,M) \rar & \Tor_3^A(K/A,M) \ar[out=0, in=180, looseness=2]{dll}   & \\                     & \Tor_2^A(A, M) \rar & \Tor_2^A(K,M) \rar & \Tor_2^A(K/A,M) \ar[out=0, in=180, looseness=2]{dll}   & \\                     & \Tor_1^A(A, M) \rar & \Tor_1^A(K,M) \rar & \Tor_1^A(K/A,M) \ar[out=0, in=180, looseness=2]{dll}   & \\                     & A \otimes_A M  \rar & K \otimes_A M \rar & K/A\otimes_A M \rar                    & 0         \end{tikzcd} \end{document}   The resulting diagram is shifted on the very right side of the page. The more I increase the value of looseness the more the figure is shifted.  How can I center the figure?


How Can I Search A Specific Type of File in Mac?

Is there any way to search a specific type of file using Spotlight? I remember there was a special command or something that I had to put in front of the search phrase but I cannot remember it now.   For example, if I want to search only PDFs for a particular phrase in Spotlight, what would I do?


Is there a specific chance of hatching a shiny in X and Y using the Masuda Method?

I've been breeding a Japanese Manectric and my Luxray in hopes of getting a shiny Shinx, but then I was wondering. What is the rate of getting a shiny? I search around the web and saw a few, the most being 1/1000. But I couldn't tell if it was confirmed. Does anyone know? :/


Does Office 365 offer a floating / network licensing model?

Such that only up to N licenses can be shared between 5 x N users on different computers at the same time?


Getting coordinates by clicking on QGIS Canvas with PyQGIS?

Are there any procedures when working with QgsMapCanvas (pyqgis, qgis) in order to obtain a pair of coordinates by clicking on the map canvas?   Are there any sample Python codes that demonstrate this?


How to reset my movement speed, after messing around in the console?

So, I was messing around in the Skyrim console and increased my speed a lot. Now I want to reset my speed but the command player.setav speedmult 100 isn't working. Is there any way to reset this?


Alt-tab in Windows 8.1 looks like Windows XP

I have a new Lenovo laptop with Windows 8.1, and the alt-tab dialog looks like Windows XP.  Like this:   instead of like this:   It also contains a bunch of default icons that don't display a name. How can I fix this?


Exception in thread "main" java.lang.NullPointerException     at tab.setTable(tab.java:36)   My code:  import java.awt.; import javax.swing.; import javax.swing.table.; import java.awt.event.; import javax.swing.; import javax.swing.event.; import java.net.*; public class tab extends JFrame  {     int a;     JTable jt;     Container c;     static int k = 0;     static int l = 0;     static DefaultTableModel df;      tab()      {         df = new DefaultTableModel(50, 0);         jt = new JTable(df);         df.addColumn("Request");         df.addColumn("Acknowledgement");         jt.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);         c = getContentPane();         JScrollPane jsp = new JScrollPane(jt);         c.add(jsp);         setVisible(true);         setSize(800, 800);     }      static void setTable(String s) {         df.setValueAt(s, k, 0);         k++;     }      static void setTable1(String s) {         df.setValueAt(s, l, 1);         l++;     }  }


Find all polynomial $P$ satisfying $P(x^2+1)=P(x)^2+1$  Attemp: I haven't proved it, but i suspect that this are all of them: $p(x) \equiv \frac{1+i\sqrt{3}}{2}$  $p(x) \equiv \frac{1-i\sqrt{3}}{2}$  and all the iterations of $x^2+1$:  $p(x)=x$  $p(x)=x^2+1$  $p(x)=(x^2+1)^2+1$  $p(x) = ((x^2+1)^2+1)^2+1$ :


Are there such things as map hacks in SCII?

Are there actually "maphacks" out there? I don't see how this is possible but a lot of people seem to be talking about them. Personally I would never use them and I think they ruin the game. But, are there such things as map hacks? If so how do you report players using them? Most important what are tell-tale signs of someone using them?


Im trying to install ubuntu as win 10 crashed currently no os is present as my hard disk segment issues so i formatted the 2 partitions out of 3 one of them was intalled with window now when im trying install ubuntu it doesnt show the efi system partition option ive tried in legacy and bios bootmode Still noway plz help


After being drawn into a gate during an Encounter, do you have an Other World encounter in the same turn?

The encounter phase is split into two, 1st the locations, then the otherworlds. So you do all the locations, then after that you do all the otherworlds.  So, if you are drawn through the a gate in the Arkham Encounter phase, do you also draw a 2nd otherworld encounter card?


How Can I Log and Find the Most Expensive Queries?

The activity monitor in sql2k8 allows us to see the most expensive queries. Ok, that's cool, but is there a way I can log this info or get this info via query analyser? I don't really want to have the Sql Management console open and me looking at the activity monitor dashboard.  I want to figure out which queries are poorly written/schema is poorly designed, etc.  Thanks heaps for any help!


Do I need to play previous Witchers before Witcher3

I'm thinking about buying The Witcher 3 and I know it's heavily based on a story/narrative.   For the story/narrative to make sense, do I need to play the previous 2 Witcher games - or are the stories for each title independent of one another?


Python use string value of variable to call another function

I want to call a function from another script according to a string I pass in my current script. For example: I have different functions in Entry, I want to choose which one to run.  import Entry def ma_exec(entry = 'longShort'):     if entry == 'longShort':         entryStrategy = Entry.longShort     entryStrategy(PositionTable, Signal)   But in this way I will have to write so many if for each different functions in Entry. Can I do something similar as:  def ma_exec(entry = 'longShort'):     entryStrategy = Entry.entry   So that I can run different functions according to the String value I pass to this ma_exec function? I know this line above is not right, is there a good way to solve my problem?


I am confused about the usages of "allow", "allow for" and "allow of".  Suppose police   is examining the evidence related to a bank robbery:           The evidence allows the possibility of an inside job.     The evidence allows for the possibility of an inside job.     The evidence allows of the possibility of an inside job.        I checked a number of dictionaries and google.  It seems that the usages in my three sentences are understandable English.  But what do native speakers on this forum think?


How to compute the correlation coefficient between continuous and discrete variables ?

Is there any adjustment required when computing the correlation coefficient between:   continuous and discrete variable  two discrete variables ?    Thanks !


Examine if function $f:\mathbb{R^2}\rightarrow \mathbb{R^2}$ which is defined as $f(x,y)=(2x-y,x-4y)$ is bijective. If bijective, find $f^{-1}$.

Function is bijective when it is injective and surjective. Function is injective if $$(\forall x_1,x_2 \in A)f(x_1)=f(x_2)\Rightarrow x_1=x_2$$ and surjective if $$(\forall y \in B)(\exists x \in A)y=f(x)$$ Is it possible to transform a function, so that it is given in explicit form? I don't know how to manipulate with function in this form ($f(x,y)=(2x-y,x-4y)$).  Thanks for replies.


Drawbacks of making public which journal a manuscript is submitted to, while it is under review?

Many researchers list out their submitted manuscripts on their website. Some specify the journal name, like     Smith J, Oliver J (under review) My awesome paper. Nature.   while others don't, like     Smith J, Oliver J (under review) My awesome paper.   One reason I can think of as to why some don't mention the journal name is that they may get embarrassed in the case where the current journal rejects the paper. Then, the "circle" will know this paper gets rejected from Nature first and then ends up in an inferior journal.  Besides this, are there any other considerations preventing people from mentioning to which journal they submit a paper to?  P.S.: I am asking because my advisor is a researcher who only mentions accepted  papers on his webpage. As a student hunting jobs, I feel it is advantageous for me to mention my submitted papers on my webpage. I hesitate to do so, as I worry I may make my advisor unhappy by announcing in which journal our papers are currently under review.