I'm writing something and there are several places where I need to use multiple adjectives.  I've always learnt that multiple adjectives should always be separated by a comma, but my supervisor said that they should only be separated by a comma if they are different.  So whereas I would say:     We present a novel, industry-inspired problem [...]   He argues it should be:     We present a novel industry-inspired problem [...]   What is the complete rule regarding multiple adjectives and commas? Thank you.

If I had the phrase       two blond haired, blue eyed people    would the comma be out of place?    should I hyphenate "blond haired" and "blue eyed"?


Hello ,This image represents surface charges in a circuit caused by the battery's electric field, if you were to place an other electric field source of the same magnitude (but not connecting it to the circuit (on top of the battery or under it)) and placing so it has the same direction of the battery's electric field for me it would do 2 things :  First, since they are in the same direction their power will add up resulting in a doubled potential difference (e.g voltage) (well not totally since the distance at least a bit more), this will translate to the surfaces charges as a double of their density everywhere to maintain the same electric field inside the wire.  Second, The battery will get used more quickly due to the higher current.  However I know that this is wrong because :   This requires if I place the other electric field source to counter act the electric field of the battery, or if the other electric field is stronger will imply many weird reactions(after thinking about it you need a really strong second battery) .  The evenements I describe don't seem to really happen in the real life,  So if someone could show me the error in my reasoning,Thanks. TLDR: In a circuit why dosen't the electric field of other external things even help a tiny bit when stacking with the battery's electric field.

Batteries generate fields in wires that essentially cause the movement of electrons. I think of batteries as two charged plates that essentially contain a mechanism between them to move electrons from the positive to negative plate.  If you have two charged plates they would essentially create a field everywhere.   Now consider a circuit that consists of two batteries and a resistor. The first battery would generate a field everywhere. The second battery would also generate a field everywhere.  Now say the first battery is 6V and the second battery is 3V. That means inside the first battery they're is a field that would result in 1C of charge gaining 6J of potential energy if moved from the negative to positive terminal.   But in a circuit, shouldn't the field from the second battery affect the field inside the first battery? In other words, shouldn't the field from the 3V battery affect the field inside the 6V battery? Since fields can be added, shouldn't the field inside the 6V battery change if a 3V battery is brought near it?  So why do we assume the a n-V battery remains constant in voltage regardless of what other batteries are near it?


I recently tried to install Anbox, but couldn't figure it out. I abandoned the idea. Now when I tried to install katoolin, I ran these commands- git clone https://github.com/s-h-3-l-l/katoolin3  cd katoolin3/  chmod +x ./install.sh  sudo ./install.sh  sudo katoolin3  But when I run the above command, it give me an error like-   ██╗  ██╗ █████╗ ████████╗ ██████╗  ██████╗ ██╗     ██╗███╗   ██╗██████╗  ██║ ██╔╝██╔══██╗╚══██╔══╝██╔═══██╗██╔═══██╗██║     ██║████╗  ██║╚════██╗  █████╔╝ ███████║   ██║   ██║   ██║██║   ██║██║     ██║██╔██╗ ██║ █████╔╝  ██╔═██╗ ██╔══██║   ██║   ██║   ██║██║   ██║██║     ██║██║╚██╗██║ ╚═══██╗  ██║  ██╗██║  ██║   ██║   ╚██████╔╝╚██████╔╝███████╗██║██║ ╚████║██████╔╝  ╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝    ╚═════╝  ╚═════╝ ╚══════╝╚═╝╚═╝  ╚═══╝╚═════╝  ~~~~~{ Author: s-h-3-l-l | Homepage: https://github.com/s-h-3-l-l }~~~~~   Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 https://deb.opera.com/opera-stable stable InRelease Hit:5 http://ppa.launchpad.net/linuxuprising/java/ubuntu focal InRelease Hit:6 http://dl.google.com/linux/chrome/deb stable InRelease Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB] Ign:8 http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal InRelease Err:9 http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal Release   404  Not Found [IP: 91.189.95.83 80] Hit:10 http://ftp.harukasan.org/kali kali-rolling InRelease Reading package lists... E: The repository 'http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal Release' does not have a Release file. Apt update failed   So apparantely the program runs- sudo apt update  because thats the exact same error I get when I try to run it. But Katoolin won't start because I can't get Anbox update, which is really weird. Does anyone have an Idea whats happening? I think I may have uninstalled anbox incorrectly, but there is no Anbox icon in GUI and also when I run anbox command, it clearly says its not installed. PS: I am new to Linux (and therefore Ubuntu). I'm using Ubuntu 20.04 LTS  What I tried (nothing worked, of course): sudo apt autoclean sudo apt autoremove  Clean Up Using Stacer

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


Can anyone tell me what I'm doing wrong here? Command block said:     Data tag parsing failed: Unbalanced Quotation:   I am creating a sign in Minecraft with multiple colors on a single line. The only thing I need is to execute a command upon right-click of the sign. I got the colors and everything working fine. I'm pretty new to this though, so sorry if I'm just missing a quote or something. ;)  This one works, I just need to add a click event:  /give @p sign 1 0 {BlockEntityTag:{Text2:"[\"\",{\"text\":\"[\",\"color\":\"gold\"},{\"text\":\"Assault\",\"color\":\"gray\"},{\"text\":\"]\",\"color\":\"gold\"},{\"text\":\"\",\"color\":\"dark_aqua\"}]",Text3:"[\"\",{\"text\":\"(Right-Click)\",\"color\":\"dark_gray\"}]",Text4:"[\"\",{\"text\":\"\",\"color\":\"\"}]",id:"Sign"}}   Like so:  clickEvent:{action:run_command, value:\"/tp @p 1027 62 1000 \"}   Here is the command that gave me the error:  /give @p sign 1 0 {BlockEntityTag:{Text2:"[\"\",{\"text\":\"[\",\"color\":\"gold\"},{\"text\":\"Assault\",\"color\":\"gray\"},{\"text\":\"]\",\"color\":\"gold\"},{\"text\":\"\",\"color\":\"dark_aqua\"}]",Text3:"[\"\",{\"text\":\"(Right-Click)\",\"color\":\"dark_gray\"}]",Text4:"[\"\",{\"text\":\"\",color\":\"blue\"}],id:"Sign",clickEvent:{action:run_command, value:\"/tp @p 1027 62 1000 \"}}

Often, when making a command block contraption, you need to set an entity's data tag. These tags can sometimes be very long, with many layers of nested curly and square brackets. For example, this is the command to summon a villager with a single custom trade:  /summon Villager ~ ~ ~ {Profession:3,Career:2,Offers:{Recipes:[{buy:{id:minecraft:diamond,Count:6b}},sell:{id:minecraft:diamond_hoe,tag:{ench:[{id:16s,lvl:10s}]}]}}   The single-line command block interface of Minecraft makes it incredibly difficult to find and fix errors, especially when it comes to mismatched brackets. In fact, for illustration purposes, I put an error in the above command.  What techniques can I use to find and fix unbalanced square or curly brackets when writing long and complicated data tags?


I have to integrate python with external so library. Unfortunately, the C code uses a global variable SimpleTest_Y (structure) and I need to access it in order to modify the value(s).  Here the C code  SimpleTest.c file  #include "SimpleTest.h"  /* External inputs (root inport signals with auto storage) */ ExtU_SimpleTest_T SimpleTest_U;  /* External outputs (root outports fed by signals with auto storage) */ ExtY_SimpleTest_T SimpleTest_Y;   /* Model initialize function */ void SimpleTest_initialize(void) {   /* external outputs */   SimpleTest_Y.Out1 = 3.0; }   SimpleTest.h file  #ifndef SimpleTest_COMMON_INCLUDES_ # define SimpleTest_COMMON_INCLUDES_ #include <stddef.h> #include <string.h> #endif                                   /* External inputs (root inport signals with auto storage) */ typedef struct {   double In1;                          /* '<Root>/In1' */   double In2;                          /* '<Root>/In2' */ } ExtU_SimpleTest_T;  /* External outputs (root outports fed by signals with auto storage) */ typedef struct {   double Out1;                         /* '<Root>/Out1' */ } ExtY_SimpleTest_T;   /* External inputs (root inport signals with auto storage) */ extern ExtU_SimpleTest_T SimpleTest_U;  /* External outputs (root outports fed by signals with auto storage) */ extern ExtY_SimpleTest_T SimpleTest_Y;  /* Model entry point functions */ extern void SimpleTest_initialize(void);   python wrapper  import ctypes  class Inp(ctypes.Structure):    _fields_ = [('In1', ctypes.c_float),                ('In2', ctypes.c_float)]  class Out(ctypes.Structure):    _fields_ = [('Out1', ctypes.c_float)]                  myLib = ctypes.CDLL('./SimpleTest.so')  #Initialize SimpleTest_initialize = myLib.SimpleTest_initialize SimpleTest_initialize()    #Output SimpleTest_Y = myLib.SimpleTest_Y SimpleTest_Y.restype = ctypes.POINTER(Out)  #print type(SimpleTest_Y) print SimpleTest_Y.Out1   The python invocation of the initialize method works, but when I try to access to SimpleTest_Y.Out1 I get the following error:  print SimpleTest_Y.Out1      AttributeError: '_FuncPtr' object has not attribute 'Out1'   I think I'm not able to access to global var defined on external C library...  NOTICE: it is a structure not a normal var

I'd like to map an int value pbs_errno declared as a global in the library libtorque.so using ctypes.  Currently I can load the library like so:  from ctypes import * libtorque = CDLL("libtorque.so")   and have successfully mapped a bunch of the functions. However, for error checking purposes many of them set the pbs_errno variable so I need access to that as well. However if I try to access it I get:  >>> pytorque.libtorque.pbs_errno <_FuncPtr object at 0x9fc690>   Of course, it's not a function pointer and attempting to call it results in a seg fault.  It's declared as int pbs_errno; in the main header and extern int pbs_errno; in the API header files.  Objdump shows the symbol as:  00000000001294f8 g    DO .bss   0000000000000004  Base        pbs_errno


I know there are already reports on gnome-shell being a massive memory hog, but my question is this: Will gnome 3.30.1 ever hit Ubuntu 18.04, or am I stuck with this memory leakage forever until I upgrade Ubuntu?  Thanks  Edit: I'm asking about this particular instance. Will Ubuntu be updated to gnome 3.30.1 at some point in the future, or will I need to do it manually or upgrade Ubuntu?

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


Let $p \in \mathbb{N}$ be prime with $p \gt 3$. Prove that $p^2 \equiv 1 \pmod {24}$.   Ideas I have so far:   A prime must be odd, and an odd squared is odd Use induction? I know $24$ divides $1 - p^2$ $1 + 24a = p^2$ where $p$ is a prime greater than $3$ and $a$ is an integer   I believe I have everything that I need to finish this problem, I just dont quite know how to put them together. Can anyone give me a tip/hint on how to finish? (An answer is not what I'm looking for :)) Thanks!

Let $p>3$ be a prime. Prove that $24 \mid p^2-1$.   I know this is very basic and old hat to many, but I love this question and I am interested in seeing whether there are any proofs beyond the two I already know.


let arr1 = [['item 1', 'item 2'],['item 3', 'item 4']] let arr2 = ['item 1', 'item 2']  I need to check whether arr2 exist in arr1

What is the most concise and efficient way to find out if a JavaScript array contains a value? This is the only way I know to do it: function contains(a, obj) {     for (var i = 0; i < a.length; i++) {         if (a[i] === obj) {             return true;         }     }     return false; }  Is there a better and more concise way to accomplish this?


I have set up a custom bash prompt so I can see stuff like the current git branch, npm package version info, the virtual env I'm in, etc. However, when i press the up arrow key to browse the history, the prompt glitches:  Here's what it is normally:    However, when I browse the history, the space between the lambda sign and the command disappears:    It only happens sometimes, and I don't know why. I guess I'm just being picky about a small space, but after spending a lot of time configuring my bash prompt I want it to look perfect.   This is what my .bashrc looks like. I'm using Git Bash for Windows, btw, if that makes a difference:  bashPrompt() { SYMBOL="λ"  COUNT=(`find ./ -maxdepth 1 -name "package.json"`)  if [ ${#COUNT[@]} -gt 0 ]; then     NPM_PACKAGE_INFO="($(node -p -e "require('./package.json').version"))" else     NPM_PACKAGE_INFO="" fi  if [ ! -z "$CONDA_DEFAULT_ENV" ]; then     ENV=" ($CONDA_DEFAULT_ENV)" else     ENV="" fi  if [ -d .git ]; then     if [ -z "$(git status --porcelain)" ]; then          echo "[\[\e[0;36;40m\u@\H\]\[\e[0;37;40m]\]\[\e[1;34;40m${ENV}\] \[\e[1;31;40m\w\]\[\e[1;32;40m$(__git_ps1)\] \[\e[0;37;40m${NPM_PACKAGE_INFO}\]\n\[\e[0;37;40m${SYMBOL}\] "     else          echo "[\[\e[0;36;40m\u@\H\]\[\e[0;37;40m]\]\[\e[1;34;40m${ENV}\] \[\e[1;31;40m\w\]\[\e[1;33;40m$(__git_ps1)\] \[\e[0;37;40m${NPM_PACKAGE_INFO}\]\n\[\e[0;37;40m${SYMBOL}\] "     fi else     echo "[\[\e[0;36;40m\u@\H\]\[\e[0;37;40m]\]\[\e[1;34;40m${ENV}\] \[\e[1;31;40m\w\] \[\e[0;37;40m${NPM_PACKAGE_INFO}\]\n\[\e[0;37;40m${SYMBOL}\] " fi;   }  PROMPT_COMMAND='PS1="$(bashPrompt)"'

Often when I start looking at history of commands some of the characters from a command displayed aren't erased, for example:  What's happening:  prompt$ some_command prompt$ some_commanother_command   What should have happened:  prompt$ some_command prompt$ another_command   I can't erase those characters and bash ignores them when executing the command. They also disappear when a new prompt is being displayed (after pressing Enter for example).  I asked other people who work on Linux at my workplace and they said that they have that problem sometimes too, but they didn't have an idea on how solve that issue.  I have Ubuntu 11.10 and I'm using guake. Here is my PS1:  \e[0;31m\u \A ${PWD##*/}\e[0;32m$(parse_git_branch)\e[0;31m$\e[m   where parse_git_branch is  parse_git_branch () {     git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (\1)#' }   As far as I know my colleagues have that problem even with less "fancy" PS1.


I need to show that ¬ and ∧ are a functionally complete set of logical operators, but I'm completely stumped on how to approach proving that I can replace p → q and p ↔ q with these two logical operators. I'm a complete beginner at this, so I appreciate any help I can get

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) :


I want to make a tree, so I made a tree and a plane for leafs and then used the particle system to emit leafs from the tree. That worked, but it didn't have enough branches and I am limited on faces per tree, so I made a branch with leafs (the same way: branch hair particle system with leafs as object), to emit it together with the leafs, but now I can't emit it with the leafs, all I get is a stick sticking from the trunk. can I somehow apply it or something, so that it would emit together?

I have a seed object with some particle hair strands. I've specified this object to be instanced in another particle system, then specified that object to be instanced in yet another particle system.  To clarify:      I have a cube with hairs strands I have a Suzanne coated in cubes with hair strands (the hair strands only appear in the render, which is fine) I have another Suzanne coated in Suzannes, but these Suzannes don't have cubes or strands like I was hoping..     Is there a way to get the particle systems to keep recursing, so that the last Suzanne is coated in Suzannes coated in cubes coated in strands?


I have recently been dealing with an interesting conundrum.  I have several papers written by the same author, but in which the author's name is credited differently.  Some of these articles credit this author as:  Schön, with an umlaut.  Schoen, where the name is written according to the convention of adding "e", where an umlaut cannot be typed.  My citation style would ordinarily place a ---- under duplicate articles by one author, but the typographical variation in the credited names in the journal means that a reader of my references, who has not verified as I have that these articles are by the same person, might have the impression I was citing two different authors.  Equally, I worry that it would be quite inappropriate to alter the style in which the author's name was printed in the original journal.  Is there anyway I can indicate in my references that these are articles by the same person?

It quite known that the transliteration of names of non-latin-based languages is quite ambiguous: a known example is Chebyshev (where at least 8 different transliterations are accepted, not counting incorrect spellings).  Now suppose that I want to cite three works by the same author: one published in French in one spelling (call it SP1), another in English in another spelling SP2, and the third was published only in his native language (the correct transliteration of the name, according to the current rules, would be SP3).  What is the common practice in this case?  If I preserve the historical spelling of these articles, then it seems that they were written by three different authors.  If I choose one spelling for all three references (I'm tempted to choose SP3), then it historically inaccurate and could lead to problems with finding the referenced article (not all search engines use flexible enough to take into account different spellings).  Any advice would be welcome.


I'm currently working on trying to merge two files together on unix  first file:  Tom 313.455.6786 Deena 313.899.7400 Will 313.845.5633 Nancy 313.676.9445 Kelly 313.611.4242 John 313.908.3858   second file:  Deena Tuesday Will Monday Kelly Sunday John Wednesday Tom Thursday Nancy Saturday   I'm writing the script in the korn shell and I need to include for loops and arrays and all that jazz.   This is what I have so far:  #!/bin/ksh file1=/home/file1 file2=/home/file2 set -A name set -A phone set -A day  for input in `cat file1| cut -d " " -f1`         do         name=$input done  for input2 in `cat file1|cut -d " " -f2`         do         phone=$input2 done      for input3 in `cat file2|cut -d " " -f2`             do day=$input3             week= "Monday Tuesday Wednesday Thursday Friday Saturday Sunday"             for day in $week             do             echo $day\n             day=$i             done     done     printf "%s\t%-12s\t%s\n" "Name" "On-Call" "Phone"; join < (sort file1) <     (sort file2) | tr ' ' '\t'   This scipt is giving me the following output:  Name    On-Call        Phone Deena   313.899.7400   Tuesday John    313.908.3858   Wednesday Kelly   313.611.4242   Sunday Nancy   313.676.9445   Saturday Tom     313.455.6786   Thursday Will    313.845.56334  Monday   That code sorted the files by alphabetizing the names, rather than by the weekdays, which is what I need. Also it's reversing the On-call output with the Phone output.   I need the final file to look exactly like this  Name    On-Call    Phone Will    Monday     313.845.5633 Deena   Tuesday    313.899.7400 John    Wednesday  313.908.3858  Tom     Thursday   313.455.6786   Nobody  Friday     313.555.3454    Nancy   Saturday   313.676.9445  Kelly   Sunday     313.611.4242

I have two files.  file1:  Dave 734.838.9800   Bob 313.123.4567   Carol 248.344.5576   Mary 313.449.1390   Ted 248.496.2204   Alice 616.556.4458      file2:  Bob Tuesday   Carol Monday   Ted Sunday    Alice Wednesday   Dave Thursday     Mary Saturday     I merged the two files.  file3 should look like this:  Name      On-Call     Phone   Carol     MONDAY      248.344.5576   Bob       TUESDAY     313.123.4567   Alice     WEDNESDAY   616.556.4458   Dave      THURSDAY    734.838.9800   Nobody    FRIDAY      634.296.3356   Mary      SATURDAY    313.449.1390   Ted       SUNDAY      248.496.2204     But I cannot get the weekdays to be in order. How do I go about doing that?


I created a list (birthday's this month). In this list there are three columns (photo, employee and date birthday). I added new item in this list: upload a photo, choose employee from AD and choose date of employee birthday. I want to create a workflow in SharePoint Designer 2010. How to send an email to chosen employee on the date of his birthday?

I have a list in SharePoint 2010 that contains Active Directory users in one column and their birthday in a second column.  Early in the morning of their birthday I want SharePoint to automatically send an email with predefined text.  I have created a workflow with the predefined text and the condition to send an email to the user if the birthday is equal to today, but I can't get it to work.  Help!!


good day im trying somethings with php and a api json to make te info from the api to a json array an then to mij database but it doesn't do anything can some one help me   this is my script  <?Php $connect = mysqli_connect("localhost","test","test","beers"); $url = file_get_contents("https://api.punkapi.com/v2/beers"); $json = json_decode($url, true);   foreach ($json as $row) {           $sql =  "INSERT INTO Brewdog (naam, tagline, omschrijving) VALUES ('".$row['name']."','".$row['tagline']."',,'".$row['description']."')";         mysqli_query($connect, $sql);     } echo "klaar is kees"; ?>

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


I have written a trigger on custom object Order_Item__c. This object has a custom field Shipping_Number__c. When the user enters value in Shipping_Number__c and clicks save, the contact lookup field will automatically populate with contact record which has same shipping number as the value entered by the user.  All the contact records have the shipping customer number. Now custom object order item has a field called shipping customer number. When user enters the value in it, the trigger checks the contact record which has same number and populate the contact lookup field on order item object. The trigger is running as it is supposed to run. I am unable to achieve code coverage.  trigger updatelookupfield on Order_Item__c (before update, before insert)  {  Set<String> shippingNumbers = new Set<String>();  for (Order_Item__c collectNumFromOrder : Trigger.new) {     shippingNumbers.add(collectNumFromOrder.Shipping_Customer_Number__c); }    List<Contact> contactList = [SELECT id, Shipping_customer_number__c FROM Contact WHERE Shipping_Customer_Number__c IN :shippingNumbers];  Map<String, Contact> shippingNumToContactMap = new Map<String, Contact>();  for (Contact c : contactList) {     shippingNumToContactMap.put(c.Shipping_customer_number__c, c); }  for (Order_Item__c o : Trigger.new) {        if (o.Shipping_Customer_Number__c != null) {         o.RSM_Shipping_Contact__c = shippingNumToContactMap.get(o.Shipping_Customer_Number__c).id;     }     else {         o.RSM_Shipping_Contact__c = null;     }  } }   Test class:  @isTest  public class testupdatelookupfield{ Static testMethod void insertOrderItem() {   // create and insert the contact record - this part is correct     contact c = new contact();     c.Shipping_Customer_Number__c = '0987654';     c.lastName = 'Surekha';    insert c;       // create an order item and insert it     Order_Item__c op = new Order_Item__c();      op.Name = 'Test Varun Order';     op.Shipping_Customer_Number__c = '0987654';     insert op;       list <contact> conlist = [Select id,name from contact where Shipping_Customer_Number__c ='0987654'];     list<Order_Item__c> orderlist = [Select id,RSM_shipping_contact__c,Shipping_Customer_Number__c from Order_Item__c ];         for(Order_Item__c o: orderlist)        {            for(contact ct:conlist)            {            o.RSM_Shipping_Contact__c = ct.id;            }             System.assertEquals('Surekha', o.RSM_Shipping_Contact__c);        }  } }

I have written a trigger on custom object Order_Item__c. This object has a custom field Shipping_Number__c. When the user enters value in Shipping_Number__c and clicks save, the contact lookup field will automatically populate with contact record which has same shipping number as the value entered by the user. The trigger is working fine. I am unable to get code coverage. The coverage is 0%. Any insights will be lot helpful.  Trigger:  trigger updatelookupfield on Order_Item__c (before update, before insert)  {       Set<String> shippingNumbers = new Set<String>();      for (Order_Item__c collectNumFromOrder : Trigger.new) {         shippingNumbers.add(collectNumFromOrder.Shipping_Customer_Number__c);     }        List<Contact> contactList = [SELECT id, Shipping_customer_number__c FROM Contact WHERE Shipping_Customer_Number__c IN :shippingNumbers];      Map<String, Contact> shippingNumToContactMap = new Map<String, Contact>();      for (Contact c : contactList) {         shippingNumToContactMap.put(c.Shipping_customer_number__c, c);     }      for (Order_Item__c o : Trigger.new) {            if (o.Shipping_Customer_Number__c != null) {             o.RSM_Shipping_Contact__c = shippingNumToContactMap.get(o.Shipping_Customer_Number__c).id;         }         else {             o.RSM_Shipping_Contact__c = null;         }      }     }    Test Class:  @isTest public class testupdatelookupfield{      Static testMethod void insertOrderItem()     {   // create and insert the contact record - this part is correct         contact c = new contact();         c.Shipping_Customer_Number__c = '0987654';         c.lastName = 'Surekha';        insert c;           // create an order item and insert it         Order_Item__c op = new Order_Item__c();          op.Name = 'Test Varun Order';         op.Shipping_Customer_Number__c = '0987654';         insert op;           system.assertequals(op.RSM_Shipping_Contact__c,c.id);     } }


Is there any construction or enumeration to get self complementary Planar Graphs?   With some examples would be helpful

I need to demonstrate that there is a finite set of planar graphs with the property that the graph G is isomorphic with its complement graph.Can you give me some suggestions or hints ?Thank you


Is there any way in java to store the type of an object in a variable? Like if I wanted to get a class type as a parameter and then return the correct type of object.

I have got a template class as follows:  class MyClass<T> {     T field;     public void myMethod()     {        field = new T(); // gives compiler error     } }   How do I create a new instance of T in my class?


I'm on Ubuntu 14.04 and I tried running:  sudo apt-get update   But I get the below error:  E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read.

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


The following terminal command will print the output of any other command in a slow fashion.  <any command> | awk '{system("sleep .2");print}'   I often like to use this and I want to create an alias in ~/.bashrc. However I'm not able to bind it. Any combination of nested apostrophes gives me syntax errors. I'm wondering why this is happening.  Last try was:  alias slowprint="| awk '{system("sleep .2");print}'"

I use ps -ef | grep catalina | grep -v grep to print the tomcat process running on the system:  kshitiz   7099     1  0 May11 ?        00:02:29 /usr/lib/jvm/jdk1.8.0/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:38156 -Dcatalina.base=/home/kshitiz/Documents/workspaces/ggts/.metadata/.plugins/org.eclipse.wst.server.core/tmp1 -Dcatalina.home=/opt/tomcat-7.0.42 -Dwtp.deploy=/home/kshitiz/Documents/workspaces/ggts/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps -Djava.endorsed.dirs=/opt/tomcat-7.0.42/endorsed -Dfile.encoding=UTF-8 -classpath /opt/tomcat-7.0.42/bin/bootstrap.jar:/opt/tomcat-7.0.42/bin/tomcat-juli.jar:/usr/lib/jvm/jdk1.8.0/lib/tools.jar org.apache.catalina.startup.Bootstrap start   Then I use ps -ef | grep catalina | grep -v grep | awk -F' ' '{print $2}' to extract the process id:  7099   But when I alias the whole command alias tomcat_id="ps -ef | grep catalina | grep -v grep | awk -F' ' '{print $2}'" and use it via alias, it prints the whole text and awk doesn't seem to work.  type tomcat_id gives:  tomcat_id is aliased to `ps -ef | grep catalina | grep -v grep | awk -F' ' '{print }''


Consider the function $f: (0, 1) \to \mathbb{Q}$ defined by $$f(x) = \begin{cases} 0, & x\text{ irrational} \\ 1/q, & x = p/q\text{ in lowest terms.} \end{cases}$$ The problem is to show that $\lim\limits_{x \to a}f(x) = 0$, using $\delta$-$\epsilon$, for all $a \in (0, 1)$. That is, for all $\epsilon >0$ there is a $\delta > 0$ such that for all $x$ satisfying $0 < |x - a| < \delta$, $|f(x)-0| <\epsilon$.  If $x$ is irrational, this is trivial. Edit: as discussed in the comments, this isn't as trivial as I thought it was.  But what if $x$ is rational? Then $f(x) = 1/q$ as shown above, so $$\left|\dfrac{1}{q}\right| < \epsilon\text{.}$$ I'm used to $\delta$-$\epsilon$ problems where I can "work backwards" to find $\delta$, but obviously $1/q$ isn't a function of $x$, and I'm lost as to what to do here. I sort of understand the discussion in Spivak, but I'm not quite getting how the discussion helps me find $\delta$, so I thought someone here could enlighten me.  As mentioned in the comments, I don't agree that this is a duplicate.

In :  $$ \begin{align} t(x) = \begin{cases} 0 & \text{if $x$ is irrational}\\ \frac{1}{n} & \text{if $x = \frac{m}{n}$ where $\gcd(m,n) = 1$} \end{cases} \end{align} $$  I can prove the discontinuity at rational $b$ by taking a sequence of irrationals $x_n$ which converge to $b$.   But while going through an argument for continuity at irrationals.  I found this in a book.      On the other hand if $b$ is an irrational number and $\epsilon > 0$   then there is a     natural number $n_0$ such that $1/n_0 < \epsilon$.   There are only finite number of rationals with denominator less than   $n_0$ in the interval $(b-1,b+1)$. Hence we can find a $\delta > 0$   such that $\delta$ neighbourhood of $b$ contains no rational with   denominator less than $n_0$.   I understand the rest of the proof. But I am unable to prove the emphasized text. Although I find it intuitive.


Let $n$ be a prime number. How can I show that the polynomial $f(x) = x^{n-1} + x^{n-2} + x^{n-3}+ \cdots + x+ 1$ is irreducible over any finite field?

Suppose $p$ and $q$ primes and $p$ is odd. Then, are there nice and clever ways to factorize polynomials of the form $$f(x)=1+x+\cdots +x^{p-1}$$ in the ring $\mathbb{F}_q[x]$ ? What about the case when $q=2$ ?   I know that there are factorization algorithms but they are too general. I want to know if there are clever ways to do this for these special type of polynomials. Like for example, in $\mathbb{F}_2$ one might add terms $x^r+x^r$ and rearrange them so that $f(x)$ gets factorized.  In case there are no good methods to factorize, are there nice ways to check whether $f(x)$ is irreducible in $\mathbb{F}_q[x]$ ?


I would like to be able to edit text fields in Firefox with the vim keybinds.    I searched for addons in   but all the provided solutions did not work with the most recent version of firefox.  A popular recommendation was an extension named . I ran into issues using this addon due to all the links to this addon being broken.   Another recommendation was . However a note on the website indicates that newer versions of firefox are no longer compatible with this version.    Similar issues were encountered with .    Another popular recommendation was , unfortunately the author of this extension had to stop maintaining it for work reasons.    pentadactyl was also recommended, however  was dead.

I am trying to use vim as the external editor for It's All Text! within Firefox. This works fine for standard http:// web pages, but when I try to use it within TiddlyWiki, 89 instances of vim are opened. I am guessing that the difference is that the TiddlyWiki page is a file on my local file system. I also created a simple html file and had the same problem. Is there a way around this problem?   From the comments:     I am on Windows Vista if that makes a difference.


I've got a few polygons (they were previously one multipolygon) which seem to insist on having an anticlockwise node order. As such, when running through various operations in SQL, they throw out the following error:     Microsoft.SqlServer.Types.GLArgumentException: 24205: The specified input does not represent a valid geography instance because it exceeds a single hemisphere. Each geography instance must fit inside a single hemisphere. A common reason for this error is that a polygon has the wrong ring orientation. To create a larger than hemisphere geography instance, upgrade the version of SQL Server and change the database compatibility level to at least 110.   No matter what I try, they seem to remain in an anticlockwise order (which I'm getting by looking at the coordinates when I use the following):  SELECT     CAST(         Geom AS VARCHAR(MAX)     ) FROM dbo.Geometries WHERE id = 1   I've tried using various conversions and operations, including converting to geography:  SELECT     GEOGRAPHY::STGeomFromText         (CAST             (Geom AS VARCHAR(MAX))     ,4283) FROM dbo.Geometries WHERE id = 1   (which, when interrogated, reveals the nodes in the same order)  And ReorientObject() too, which strangely results in a null:  SELECT     GEOGRAPHY::STGeomFromText         (CAST             (Geom AS VARCHAR(MAX))     ,4283).ReorientObject() FROM dbo.Geometries WHERE id = 1   I've even tried some really weird stuff (like getting the shape's envelope, then the difference between the shape and the envelope, then the difference between the envelope and this new shape), but everything is coming back with the coordinates in the wrong direction. Not to mention that I've also redrawn the shape manually too, in the right direction.  Does anyone have any idea what may be going on, or if there may be a way to reverse the coordinates from an extracted WKT? Shape as WKT below:     POLYGON ((140.31513731241938 -37.361175421343845, 140.31692577675838 -37.361112938712338, 140.31651306045254 -37.3603397028184, 140.31579569995952 -37.359285256895539, 140.3157269163172 -37.35910563021951, 140.31563847294319 -37.359089989244993, 140.31513731241938 -37.361175421343845))   EDIT - should point out that these are all pretty simple shapes with few nodes - certainly less than 30 per shape. However, I'd love it if there were a reliable method of correcting them, for standard polygons, multipolygons, and polygons/multipolygons with rings.  EDIT - also tried buffering, ST_Union with the first point, and MakeValid.  EDIT - have also tried the solution suggested in the possible duplicate, that still leaves it in the current anticlockwise order.

I have a few hundred shapes (polygons and multipolygons) each consisting of tens of thousands of points that I am trying to get into SQL 2008.  Unfortunately, the shapes I have tried to import are "right-handed" (the perimeter of each one is drawn clockwise around the points it contains). SQL server assumes "left-handed" shapes (anti-clockwise around the interior), at least for geography types. This means that SQL assumes that I'm trying to select the entire earth except for my shape. Some people describe this as "inside-out" shapes.  From , which frustratingly doesn't say which ring orientation one is to use:     If we use the geography data type to store the spatial instance, we must specify the orientation of the ring and accurately describe the location of the instance.   If you use the wrong ring orientation in SQL 2008, it crashes with the following error (emphasis mine):     A .NET Framework error occurred during execution of user-defined routine or aggregate "geography":    Microsoft.SqlServer.Types.GLArgumentException: 24205: The specified input does not represent a valid geography instance because it exceeds a single hemisphere. Each geography instance must fit inside a single hemisphere. A common reason for this error is that a polygon has the wrong ring orientation.   Importing the shapes as geometry instead of geography works fine, but I'd like to use geography if I can.  In SQL 2012, it appears  to fix this problem, but I am tied to 2008.  How should I convert the shapes?


I'm an electronics hobbyist and I recently purchased a breadboard for prototyping. However, it seems that under it all there is simply a metal grid. If I were to run power through this, wouldn't the electricity just run through the grid and short?

I just received the following breadboard in a electronics starter pack I purchased.    I am a little confused in how I would go about prototyping on this board, all the tutorials I have read state that the breadboard should have a positive and negative  input on it. But it appears this one doesn't.  Could anyone help clear my confusion?


If $A$ and $B$ are similar, can the same be said of $A^t$ and $B^t$?   $A$ similar to $B$ $\iff \exists P$ such that  $A = PBP^{-1}$  Apply the transpose on both sides  $A^t = (PBP^{-1})^t = (P^{-1})^tB^tP^t = (P^t)^{-1}B^tP^t$  Can I conclude that they are similar?

Prove that, if A and B is similar, then $A^T$ is similar to $B^T$.  Attempt: I try to use the defn of similarity, and then the rule to transpose in different order, but get nowhere. This should be simple...  (Note to self: page 92.)


I have a scanned 3D model with color information in PLY format.  However, I failed to add this information to render image in blender.   Someones shows that the attribute node can do the job. But I even can't find this node in 2.78 in node editor.   It seems that the software changes a little bit. The only option for input are   coordinates   curve time   Image  Texture  I tried the material mode, still there is not attribute node.    Can someone help me in this?

I'm trying to import a .PLY mesh in Blender. I've troubles with colors: the mesh appear in a grayscale palette. Other softwares open it correctly (eg. MeshLab).  This is the header of the PLY file:  ply format binary_big_endian 1.0 comment created by Geomagic Sculpt Exporter. element vertex 182488 property float x property float y property float z property uchar red property uchar green property uchar blue element face 364980 property list uchar int vertex_indices end_header   Any tips? Thanks!


i have a big problem. my USB-flash is infected by a virus that hides my files. every time i connect my USB-flash to my PC the files will be hide. there is another more virus. important.exe. i need a light and powerful antivirus that remove all USB related viruses and guarantee to keep my USB-flash protected.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


So I'm making a Minecraft map and it involves a lot of removing of certain blocks. Is there a vanilla Minecraft command to remove all blocks of one type in a world? If so, how would I use it?  For example: All different colors of wool spread around a world. And I only want to remove the white ones. How would I do that with a command?

I'd like to be able to select a region (either with a graphical utility or command line) and be able to switch one block type with another, e.g. change all cobblestone in the region to stone. Does a program/mod exist that can do this?


Do plant viruses attack animals, if yes please give an example of the virus. I feel both plant and animal viruses are different, and they cannot attack each other hosts.

I'm not a professional in biology nor a student, but I'm curious about this. To be more specific: why doesn't a plant virus affect animal cells?  I suspect that different kinds of cells have different ways to replicate DNA and that this is the reason for the specialization of viruses.  I wonder if someone in the field can explain this to me. Thanks.


Problem: So I have ran across the following part and I simply don't know what it is. I tried searching for if you will a description of it. (I.E. two diodes on top of each other pointing opposite directions) This of course did not help.  Help: So what is this?   Advice: So when you run across something you don't know how do you solve this? I mean besides using context clues from the circuit. If its just a symbol and you can not identify the part. Advice?  Notes: It is from the block diagram of the datasheet of the .

The below image is from a service manual for a mobile radio. Note the small symbols that appear to be four triangles, point to point. I've searched far and wide and cannot identify that symbol. I have a nagging feeling that I've seen something like it in hydraulics, but never in an electronics diagram. I know that my radio doesn't have a bunch of stars of David printed inside it, so what could this symbol be?  Some of them have a line through the middle, others don't. Compare for example the ones near the labels "mic int" and "mic ext". Does this represent something, or is it a typo?


Can one generally expect it to be more difficult to publish in a journal when one is not affiliated with an institution? I like the idea of being an independent researcher at some point in the future, but I'm wondering whether getting my pieces published might get a little more difficult? Do people have experiences with this?

Assume you have already completed your undergrad and have been working for a number of years. Does one need to be part of a university or a learning institution to publish papers?


The case here is being married so we have revenue streams but not enough to cover the trip, how they will see that a family member sponsor their married adult.  My mother who works in the KSA can support financing my trip visa app  how can I manage the application? I live in Egypt, married and with children, travelling alone for 4 days to sit the frcpath part 2 exam. I have proof of passing part 1, paid the examination fees for part 2 and have a proof of payment and invitation letter from the royal college. My salary and my husband's salary cover the monthly household only.

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


Case scenario:   Player 1: (9 points total)   3 cities (6 points) 3 hidden points  Player 2: (9 points total)   3 cities (6 points) 1 village (1 point) longest road  Player 3: (9 points total)   4 cities (8 points) 1 village (1 point)    It's turn of player3, he puts 2 roads and a village, which 'cuts' the longest road of player2, which gives the longest road award to player1 (+2 points for him out of his turn)  In his turn, player3 reaches 10 points. But player1 has 11 points (3 of them are hidden points)  Who wins?

Imagine the following setup:    Player A has 6 points, including the Longest Road. Player B has 8 points with an equally long road. Player C has 9 points with a shorter road.    Now what would happen if Player C places a village, breaking Player A's road chain? At that moment Player A would have 4 points, while both Player B and Player C would have 10.   In this case, who would be declared the victor?


I noticed some people use "crontab -l" to view cronjobs and "crontab -e" to edit them. However there are also times where people manually modify "/etc/crontab" to view/add/remove cronjobs.  Both methods work fine, the only thing I noticed is that cronjobs added with "crontab -e" doesn't show up inside "/etc/crontab" even though it still runs normally.  I'd like to know what are the differences between these 2 methods? Are there any advantages/disadvantages over each other?  PS. I'm on CentOS.

This is a  about using cron & crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.


function ShowEditBox(serial)      {          $("#divEditBox").slideDown("medium");         var pserial ='PName'+ serial;         var colindex = 0;         var $tr = $("#" + pserial).parent().parent();          $tr.find('td').each(function () {              if (colindex == 2) {                 $("#txtName").val($(this).text());              } else if (colindex == 3) {                 $("#txtSurName").val($(this).text());              } else if (colindex == 4) {                 $("#txtEmail").val($(this).text());              } else if (colindex == 5) {                  $("#txtMobile").val($(this).text());             } else if (colindex == 6) {                  $("#txtAddress").val($(this).text());             }              colindex++;           })          $("#hdField").val(serial);     }   Whenever i click the edit button in grid view that particular row data should be displayed in text boxes. But here i am getting unnecessary spaces in text boxes. How can i trim the spaces in the Text box(txtName) ?? I am getting spaces in text .

How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript?


This works and produces bbcd as I'd expect.  #include <stdio.h>  int main(void) {     char string[] = "abcd";      string[0] = string[1];      printf("%s\n", string); }   This is a bus error.  #include <stdio.h>  int main(void) {     char *string = "abcd";      string[0] = string[1];      printf("%s\n", string); }   Why?  Valgrind says:  ==9909== Process terminating with default action of signal 10 (SIGBUS) ==9909==  Non-existent physical address at address 0x100000FA2 ==9909==    at 0x100000F65: main (test.c:6)

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


In the MCU when we see the Kree they have blue skin and blue blood, such as Yon Rogg's team and Ronan the Accuser.   However when we see Yon Rogg and Mar Vell they don't have blue skin but rather more human colored skin and while this is the same with Carol she was actually human and only has blue blood because it was Yon Rogg's blood infused into her.  So what species is Mar Vell and Yon Rogg? if they are Kree is there a reason why they don't have blue skin like most all other Kree?

This seems bizarre to me.  All the Kree we've seen thus far (MCU based) were blue skinned... Ronan the Accuser being the most famous  What do Kree people look like?  Is there anything concrete with their appearance?  It seems odd that Danvers (Captain Marvel) and Jude Law's character (Yon-Rog?) and the "Supreme Intelligence" are all white skinned.


What does big U below signify? And what is number written above and below it?

In some cases, we will have to consider the union or the intersection of several, even infinitely many sets, defined in the obvious way. For example, if for every positive integer $n$, we are given a set $S_n$, then   $$\bbox[border:1px solid red]{\bigcup_{n=1}^\infty S_n}=S_1\cup S_2\cup\cdots=\{x\mid x\in S_n\text{ for some }n\},$$   and   $$\bigcap_{n=1}^\infty S_n=S_1\cap S_2\cap\cdots=\{x\mid x\in S_n\text{ for all }n\}.$$   Two sets are said to be disjoint if their intersection is empty. More generally, several sets are said to be disjoint if no two of them have a common element. A collection of sets is said to be a partition of a set $S$ if the sets in the collection are disjoint and their union is $S$.   Normally what I know is that you can make a union or an intersection between only two sets. In this expression, there is a big union of sets. I'm asking about the meaning of this expression – what does it mean? What does the infinity sign do at the top?  Things are even more complicated with De Morgan's laws, which use the same expression:     Two particularly useful properties are given by De Morgan's laws which state that   $$\left(\bigcup_nS_n\right)^c=\bigcap_nS_n^c,\quad\quad\quad\quad\left(\bigcap_nS_n\right)^c=\bigcup_nS_n^c.$$   Anyone who can explain to me the expression or De Morgan's laws would be much appreciated.


Let us consider a set S consisting of a collection of grid locations (i,j),i,j=1,\ldots,n,  in 2-dimensional gridded plane. Here the point (i,j) corresponds to a rectangular grid in the X-Y plane.  This set has the property that one can reach any element (i,j)\in S from any other element ({i'},{j'})\in S through a series of neighbouring grid points which are also in S.    I am interested about the shape of the set S in the plane, for this reason I need the boundary grid locations of the set S.    Note: R-code   data=read.csv(file="trial.csv")  require('ggplot2')  pred.points <- ggplot(data = data,                       aes(x = lat,                           y = lon,                           colour = variable)) +    geom_point()  print(pred.points)    I need an algorithm to find the boundary grid locations for the set?  Here I don't know whether the set is concave or convex.

Convex Hull A convex hull of a shape is defined as:  In mathematics, the convex hull or convex envelope for a set of points X in a real vector space V is the minimal convex set containing X ()  Wikipedia visualizes it nicely using a rubber band analogy, and there are some . Concave Hull A concave hull is visualized using the red line in the image below (the blue line visualizes the convex hull). Intuitively, it is a polygon which embraces all the points, but has less (minimal?) area compared to the convex hull. As a result, the polygon's boundary length is longer. A concave hull may be the solution for some real-world problems (e.g. finding the reasonable boundary of a city).  I have failed to find a proper definition, algorithm and practical solution for the notion of a Concave Hull. The , and there is a commercial solution in . Any ideas, algorithms and links?


Is there anyway or any plugin to create predefined extents/areas (e.g. cities) that one can zoom to in QGIS? For example, create a city A, define  the extents of the city and when one click on the name of the city then it will be zoomed to the center of it.

When I create a bookmark the name and project that I enter are not saved when I click Close.   The manual says there should be an OK button but there isn't. Using QGIS 1.8


I'm new to number theory and was wondering if someone could help me with this proof.  Prove: The product of any three consecutive integers is divisible by $6$.   So far I have $\cfrac{x(x+1)(x+2)}{6}$; How would I go about proving this? Should I replace $x$ with $k$ and then $k$ with $k+1$ and see if the statement is true?

I am stuck on this problem, and was wondering if anyone could help me out with this. The question is as follows:  Let $n$ be an integer such that $n ≥ 1$. Prove that $6$ divides $n(n + 1)(n + 2)$. Note: An integer $a$ divides an integer $b$, written $a|b$, if there exists $q ∈ Z$ such that $b = qa$. Alternatively, $a|b$ if dividing $b$ by $a$, $b ÷ a$, results in an integer.  Should I do a proof by induction? All help/input is appreciated!


How do I prove that a self-complementary graph must have $4k$ or $4k+1$ vertices?

Problem: Prove that the number of vertices of a self-complementary graph must be congruent to 0 or 1 modulo 4. I think my starting point would be that P4 and C5 are self-complementary and proceed by induction by adding P4s. I established the first step in a previous problem, but I need help on the induction step. i.e. proving that adjoining P4 will indeed yield a self-complementary graph.


so I'm trying to complete this question for uni and am stuck.  show that  G = (V, E) has no Hamiltonian cycle, where the vertices are V = {a, b, c, d, e, f, g} and the edges are E = {ab, ac, ad, bc, cd, de, dg, df, ef, fg}  i was wondering if there was a simple way to solve this. thank you :)

Show that $ G = (V, E)$ has no Hamiltonian cycle, where the vertices are $ V = \{ a, b, c, d, e, f, g \} $ and the edges are $E = \{ ab, ac, ad, bc, cd, de, dg, df, ef, fg \}$.  From my working out, the vertices $ a, b, c, d, e, f$ are odd degrees of 3 and 1. Moreover $g $ being a even vertices of 2.   There were three points that were made in my textbook to show that a graph does not contain a Hamilton circuit:   A graph with a vertex of degree one cannot have a Hamilton circuit. Moreover, if a vertex in the graph has degree two, then both edges that are incident with this vertex must be part of any Hamilton circuit. A Hamilton circuit cannot contain a smaller circuit within it.   According to the definition graph G does not have a Hamiltonian cycle because of the first definition.   However, I am confused about 2 & 3 definitions and I am not sure if this graph involves them or not.


I have this model here and instead of textures I've just assigned materials to different parts of the mesh and gave them plain colors. But when I export it in any format, fbx or obj or gltf, when I try to upload it to sketchfab or mixamo or even try to open it in microsoft 3D viewer, it just shows a blank version of my model. When I import what I exported, it still has the materials but their colors are gone and instead of "Emission" they're now "Principled BDSF". How do I solve this problem? Thank you.   EDIT: Moderators: I have already checked the question provided and all the other questions, they say it's not possible but I've seen people do it on YouTube like Grant Abbitt on his "how to rig the easy way" video. So I've checked quite a lot of questions on this matter but it still doesn't solve my problem. (Also important to mention that I'm very new to 3D stuff)

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


Good afternoon community: I would like to obtain an array from the following expression, I want to use two delimiting parameters that vary according to my need, so that the its a substring is obtained but if it finds parameters in this substring identical to the delimiters it does not affect the substring. Is somewhat similar to grouping signs but with strings. For this case, the delimiting parameters are the this BEGIN END For example I have next string: "Is a testing    BEGIN extract third      BEGIN  extract second        BEGIN extract first expression END     expresión END    expresión END Thank you very much"  This array I would like to obtains as follows:   [    "extract first expression",//substring More Internal    "extract second BEGIN extract first expression END expression",//Second...    "extract third BEGIN extract second BEGIN extract first expression END expression END expression"//....     ]    I've seen these post Regular expression to get a string between two strings in Javascript and Get Substring between two characters using javascript   var str = 'Is a testing BEGIN extract third BEGIN extract second BEGIN extract first expression END expresión END expresión END Thank you very much';      console.log(str.split('(').pop().split(')'));    and I also tryed   var str = 'Is a testing BEGIN extract third BEGIN extract second BEGIN extract first expression END expresión END expresión END Thank you very much';      function testString($string,$textBefore,$textAfter)  {     var regExString = new RegExp("(?:"+$textBefore+")((.[\\s\\S]*))(?:"+$textAfter+")", "ig");     var testRE = regExString.exec($string);     if (testRE && testRE.length > 1)     {         return testRE;     }  }  $all = testString(str,"(",")"); for(var i = 0; i < $all.length; i++){     console.log($all[i]); }    But they don't give me the expected results

I need a regular expression to select all the text between two outer brackets.  Example: some text(text here(possible text)text(possible text(more text)))end text  Result: (text here(possible text)text(possible text(more text)))


I have done my internship at Amararaja Batteries Limited.   I have done my internship in Amararaja Batteries Limited.       Which of the above sentences is correct? I want to know when to use at and when to use in.

I usually use "at a company" but I have encountered some articles using "in a company", "in XYZ firm" or "in an organization".  Which one is right?


I try to figure out whether I run on regular computer or ec2 (from JVM based app). The simple method could be attempt to get , however that means I should wait until timeout, and it does not feel right. Is there a quicker way to know this?

Is there a way to know if the Windows machine I'm working on is virtual or physical? (I'm connecting with RDP to the machine. If it's a virtual machine it is working and handled by VMWare).


Many characters die in comics, only to come back to life later, in some form or another. Which one stayed dead for the longest period of time.  To qualify, the character must:   Must have existed in comics before death. Have been implied dead. Come back to life (Any form of resurrection is accepted including was-never-dead) Return in the same continuity (the returned character must be the same as the dead one, not just appear in an alternate universe) Time is measured in the real world, i.e. the difference in time between the publishing dates of the two comics. While any comic publishing company is okay, an ideal answer would also mention the longest for both Marvel and DC   Which character in comics stayed dead the longest?

In super hero comics it's not unknown for a someone to die, then a few issues later get better.   But who holds the record for being dead for the longest time (real world time) and coming back?


Problem  I have just bought a new macbook pro and am using the Terminal to code. I have read a lot of posts about pane splitting, but nothing answers my question (or none of the solutions have worked). I have figured out that I can open a new pane using command-d and close it using command-shift-d, however I cannot figure out how to switch between panes.  Edit: I am starting in vim, and want to navigate to the regular terminal.  Here is a picture of the editor before pane splitting:   Here is a picture after the split, but can not figure out how to navigate to the above pane to start using the terminal:       Details   Model: MacBook Pro (Retina, 13-inch, Early 2015) OS: OS X Yosemite Version 10.10.3 Processor: 2.9 GHz Intel Core i5 Terminal: Version 2.5.3 (343.7)

I tried to open a split pane to run another command but instead it displays the same in both panes and I can only interact with one of them. I thought it would split the view so I could use the two panes independently like two windows.  I have the Visor installed but I don't think it would interfere.  Terminal - version 2.1.1 Visor custom (84d1873) based on 1.5


I was thinking about buying some RROD Xbox 360s and JTag them and making a bit of cash. All the fixes i have found are only temporary.

I've heard of kits that can fix your Xbox 360 if you happen to get the . Do any of these work, and do they void your warranty? Are there any other noteworthy tips or tricks?


I'm trying to make a pretty shaded relief map using the .  I've done this process several times in the past without any problems but today am perplexed about what is going on.  I have a DEM (IMG format) that I've set the color ramp on.  The next step is to export the DEM to an RGB image so that it can be pan-sharpened with the hillshade.  However, when I run the export tool (right click on the layer, Data, then Export Data...) the resulting layer is not even close to the color scheme I want.  I've made sure that I've checked the "Use Renderer" and "Force RGB" boxes as described in the article.  Here is my example.  The color scheme I want is on the left, what I'm getting from the export is on the right:   I've tried to adjust the symbology on the exported raster to get back to what I wanted but I don't know enough about what is going on to get it set right.  What am I missing here?  How do I get my exported image to match the colors I choose in the DEM?  Using ArcGIS 10.2.1, Windows 7.  -- EDIT -- Here is another screenshot of the whole DEM and the whole exported raster.  This one using a different color ramp (Elevation 1) on the left and the exported raster on the right:

In ArcMap 10.2 I have a DEM and my aim is to change its color ramp using ArcMap, then export this colored raster as a geotiff (8 bit).  I checked "use renderer" and "force RGB" options but the results are not good (EDIT: when viewed in ArcMap). With some color ramps, the results are really off, and with others, they are slightly off.  For example:      Is this a bug, or is this an artifact stemming from the the original image being simplified into an 8 bit image? (Does ArcMap stores its color ramps with more than 8 bits?)     it seems that results only look strange in ArcGIS - if viewed in other applications, colors look right.   So why is ArcMap displaying the exported rasters inaccuractly?   Do I need to change some settings somewhere to have them display correctly?


I have a file that includes Camera Animation.  It renders the animation fine or a single frame after selection.  What I want to do though is manipulate my viewport view and render that as a single image.  What happens is I get the animated camera view at whatever frame it is on and not the viewport view.  I tried using the view-viewport render image option but that does not do a full render.  I also tried adding another camera but still it takes the animated one...  Please advise what I am doing wrong, and YES I am relatively new to this.

I have multiple cameras in a scene. What I want to do is to change which one is active. This way I can view the scene from different angles. How would I do this?


I'm looking for a series of books that deals with humans escaping Earth and having a mother ship full of humans who are being sent throughout the universe to different planets. The ship can transform the humans into whatever type of alien the planet holds. One set of sisters is transformed to cow-like aliens and sent to spy on that planet. All the while the group that's taken the mother ship full of human colonizers is trying to evade/escape the government people from Earth.    The 9 or 10 humans who steal the colonizing ship drop a couple of humans (transformed to whatever the indigenous species is) to the planet to spy...the end result is to try and overthrow the Earth government.  The humans that the colonizing ship transform to aliens cannot be turned back into humans ever again so when they take on the assignment to spy they do so knowing that they won't ever be able to be humans again.

I recall that it might have been the second book of a series. It takes place in the future - not sure if in our universe - and there are robots who kill for the government (I think).  Story of a group of escapees from a prison that go to a massive ship and start a community.  The prisoners have tattooed faces.   I remember more the characters:   A lady that absorbs people and becomes them. A young girl who is a genius but has to be pregnant to be balanced. Two people from the prison they kidnapped and took with them.   Also I remember they terraformed the inside of their ship.


I have encoded the roads based on the column Fclass as an example of "international, primary, secondary, sub" Can I specify the scale range for each encoding on the same layer without exporting them to multiple layers?

Suppose one had a large dataset of features of vastly different sizes - perhaps political boundaries ranging from country to county.  It would be useful to be able to display only the large countries at a distant scale while increasingly displaying smaller boundaries as the map is zoomed.  In ArcMap, the only way I know how to accomplish this is by creating multiple copies of the layer in the Table of Contents and choose the maximum and minimum display scales.  However, can I set an attribute, say display_scale_min and display_scale_max where it specifies at which scales the individual feature should be displayed?  This wouldn't add too much complexity because the database could quickly narrow the results given the current map scale.  It would be handy because the display scale could be programmatically assigned.  It would also be handy when one feature class had several scale-dependent classes (such as having eight or so ways to simplify the display of roads).


Here is my code:  if(editText.getText().toString() == ""){    editTextBenefaction.setText("0"); }   Why he didn't work?

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


Building an android application for reviewing colleges, the College page which shows Null pointer Exception works fine when opened manually(through Home Screen) but on searching the college and on the invocation of onClick the same College Page gives Null Pointer Exception which fetches data using volley library from database.     java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference           at com.learnxapp.xfinder_collegeandcoursefinder.CollegePage2$4.onResponse(CollegePage2.java:199)           at com.learnxapp.xfinder_collegeandcoursefinder.CollegePage2$4.onResponse(CollegePage2.java:188)           at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:90)           at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102)           at android.os.Handler.handleCallback(Handler.java:873)           at android.os.Handler.dispatchMessage(Handler.java:99)           at android.os.Looper.loop(Looper.java:193)           at android.app.ActivityThread.main(ActivityThread.java:6718)           at java.lang.reflect.Method.invoke(Native Method)           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)   Error is caused due to the following lines of code, which used to show user comments on the college page:    public void parseJSON3(){      String url="url_here";      JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET, url, null, new Response.Listener<JSONArray>() {         @Override         public void onResponse(JSONArray response) {             try {                  for(int i=0 ; i < response.length() ; i++){                      JSONObject cdata=response.getJSONObject(i);                     String cid=cdata.getString("cid");                     String uname = cdata.getString("uname");                     String ucomment = cdata.getString("ucomment");                     if(Rank2.equals(cid))                         dataList3.add(new DataFetchCollegeDetails(uname, ucomment));                  }                  exampleAdapter= new Rcyc3AdapterComments(CollegePage2.this,dataList3);                 RcycleComments.setAdapter(exampleAdapter);             } catch (JSONException e) {                 e.printStackTrace();             }         }     }, new Response.ErrorListener() {         @Override         public void onErrorResponse(VolleyError error) {             error.printStackTrace();         }     });     requestQueue3.add(request); }   Compiler shows error at line when i'm checking to see if Rank2 is the same as cid.

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


Let's say I have a file file.txt: hello  world hi there this wow  I know sed can operate on one line like: sed -n '2p' file.txt or a range : sed -n '2,4p' file.txt but how to operate on one specific line plus a range ? sed -n '1line and 4,5' file.txt or in words print the first line and the range from 4th to 5th line ??

I have a ~23000 line SQL dump containing several databases worth of data. I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know both the start and end line numbers of the data that I want.  Does anyone know a Unix command (or series of commands) to extract all lines from a file between say line 16224 and 16482 and then redirect them into a new file?


How do I prove the function $f(z)=\sin \bar{z}$ is not differentiable on the disc $D(0,1)$?  I originally used cauchy reimann equations to prove it is not differentiable everywhere, but I need to be able to show it's not differentiable specifically for the disc. Any help would be greatly appreciated.

Use the Cauchy-Riemann equations to show that the function $$g(z) = \sin (\bar z)$$ is not analytic at any point of $\mathbb{C}$.  Here's as far as I got -  $$\sin \left(\frac{\bar z}{1}.\frac{z}{z}\right) =\sin \left(\frac{|z|^2}{z}\right) =\sin \left(\frac{x^2 + y^2}{x+iy}\right)$$  I can't see how to separate the real and imaginary parts so that I can apply the Cauchy-Riemann equations.


I am new in ubuntu. So i am facing some problem with terminal command.So please help me. can i execute my php code in my terminal not my browser as like using localhost?

Suppose that we have a full URL of desired file e.g.        I would like to go without installing a new software. Is it possible?  Command   cp  'http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz' hooray   doesn't work ;)


In Drupal 7 I have a module with a hook_form(). This form is saving data into an external postgresql database.  I want to create a views to display data recorded. So I used hook_views_data() to create a mapping between the view and my custom tables. I created a view with admin but in this view I have the following error :   SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cars' doesn't exist   I have tried something like this but it doesn't run :  function carshop_views_pre_render(&$view) {   if ($view->name == 'cars_overview') {     db_set_active('carsdb');   } db_set_active(); }

I'm developing a module that will rely heavily on external database queries. Is there a best practice for defining and using an external database connection throughout a module?    tells me how to make the connection, but not where to put it in a module (specific hook?) so I only have to define it once. Also, is it always necessary to do "db_set_active('YourDatabaseKey');" or can I pass an argument that will set the db to use? I'm using Drupal 7.


I am having an issue getting the following code to correctly add the SqlCommand parameter @vendor. For some reason, the query being passed seems to always be:  select TOP 500 *  from [mike_db].[dbo].[na_pe_sql_import]  where vendname like '%@vendor%';   It works if I setup the query like this, but I know this is bad practice.:   string strQuery = "select TOP 500 * from [mike_db].[dbo].[na_pe_sql_import] where vendname like '%"+txt_search.Text.ToString()+"%';";   Here is the code:      protected void Search_Click(object sender, EventArgs e)     {            string search = txt_search.Text.ToString();         String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["mike_db"].ConnectionString;          SqlConnection con = new SqlConnection(strConnString);         con.Open();          string strQuery = "select TOP 500 * from [mike_db].[dbo].[na_pe_sql_import] where vendname like '%@vendor%';";          cmd = new SqlCommand(strQuery, con);         cmd.Parameters.AddWithValue("vendor", search);          txt_search.Text = string.Empty;          DataSet ds = new DataSet();          da = new SqlDataAdapter(cmd);         da.Fill(ds);          My_Repeater.DataSource = ds;         My_Repeater.DataBind();          con.Close();                 }

I have the following code:  const string Sql =      @"select distinct [name]        from tblCustomers        left outer join tblCustomerInfo on tblCustomers.Id = tblCustomerInfo.CustomerId         where (tblCustomer.Name LIKE '%@SEARCH%' OR tblCustomerInfo.Info LIKE '%@SEARCH%');";  using (var command = new SqlCommand(Sql, Connection)) {            command.Parameters.AddWithValue("@SEARCH", searchString);     ... }   This does not work, I tried this as well:  const string Sql =      @"select distinct [name]       from tblCustomers       left outer join tblCustomerInfo on tblCustomers.Id = tblCustomerInfo.CustomerId        where (tblCustomer.Name LIKE @SEARCH OR tblCustomerInfo.Info LIKE @SEARCH );";  using (var command = new SqlCommand(Sql, Connection)) {            command.Parameters.AddWithValue("@SEARCH", "'%" + searchString + "%'");     ... }   but this does not work as well. What is going wrong? Any suggestions?


If a player slams the ball on the ground so hard that it bounces into the hoop, is that a valid goal?  (Bonus trivia question: has this occurred in a professional or collegiate game?)

What happens when I bounce-pass the ball into the basket, like in a circus shot? Does this count as a successful basket?


What is the difference between the statements:  converges in probability  and  converges in distribution  I am looking for a more intuitive explanation and simple formulas rather than abstract mathematical definitions. (I have no knowledge of measure theory or other abstract mathematical concepts).  I didn't find my answer in this topic:

What is the intuitive difference between a random variable converging in probability versus a random variable converging in distribution?  I've read numerous definitions and mathematical equations, but that does not really help. (Please keep in mind, I am undergraduate student studying econometrics.)  How can a random variable converge to a single number, but also converge to a distribution?


Since Python 3.7 is already launched, I wanted to ask when will Ubuntu 18.04 will get an update to upgrade the Python3'sversion?

I want to install the latest Python tarball on Ubuntu, downloaded from .  Is this is a correct way to install?  ./configure make make install   If not, how do I do that?


Similar question:   I am searching for a word, that indicates that something was created OR updated. Currently I am going with modified which seems ok but not perfect in case of creation.  As the OP in the linked question I am developer and would like to write a method like updated_created_since(timestamp). Any better ideas than modified?

I'd like to know if someone has a better word than , for both creating and updating something.  Context: I'm a software developer and I'm trying to think of a clever way to name the function that will initially create an object, and if it's already created, update it.


Am I right that conjugacy classes of group $A_n$ can be obtained from conjugacy classes of $S_n$ (which are in correspondence with Young diagrams). If class $$C(h)=\{\sigma h {\sigma}^{-1}|\sigma\in S_n\}$$ contains independent cycles of only odd length and length of all cycles are different then $C(h)$ in $A_n$ split to two classes $$C_1(h)=\{\sigma h {\sigma}^{-1}|\sigma\in A_n\}$$ $$C_2(h)=\{\sigma \tau h {\tau}^{-1} {\sigma}^{-1}|\sigma\in A_n\}.$$ I only interested in the answer.  Thanks a lot!

Browsing  I came across this:  The conjugacy class of an element $g\in A_{n}$:  splits if the cycle decomposition of $g\in A_{n}$ comprises cycles of distinct odd length. Note that the fixed points are here treated as cycles of length $1$, so it cannot have more than one fixed point; and does not split if the cycle decomposition of $g$ contains an even cycle or contains two cycles of the same length.   Anybody with a proof?


When I try to send a zip file to a gmail user from Apple Mail with my iCloud address, I get the following error. My zip file is 5 MB but contains a lot of files inside the archive (that's why I zipped it so I wouldn't be sending a hundred separate files). Basically, Apple Mail treats the zip archive like it is unzipped or something like that. Does anybody know a workaround?

Revised question As per 's suggestion in the comments I did some further testing. There seems to be a problem with iCloud and sending a zip file of a folder with a certain amount of files. There appears to be a limit of 127 files in 1 folder, regardless of file type (tried .png, .svg and .txt). When sending the mail using the Mail app I get a message size violation error and the mail can not be sent. Using the iCloud web interface the mail does appear to be sent (no error, appears in 'sent' list) but it never arrives. Does anyone know why this limit exists? (as  mentioned in the comments it might be some 7-bit shenanigans)  Old question If I try to send an email with a 1.3 MB zip file as attachment I get a message size violation error:  File sizes of the zip file and original folder (1.3 MB and 10.7 MB respectively):  At first I thought it was somehow related the original folder being more than 10 MB, but according to Apple's  the limit is 20 MB:  Limits on sending messages There are several safeguards in place to make sure that only iCloud members can send messages using iCloud. One of these safeguards includes reasonable limits on:  ... The size of incoming and outgoing messages (20 MB, up to 5 GB with Mail Drop turned on)   Why am I unable to send this zip file? (also: shouldn't Mail Drop kick in if it thinks the attachment is too large? It is turned on.)


I have just installed WSL and i am running into a number of issues. The first being that i can't change the locale to en_US with out using SUDO. When ever i use SUDO i get "sudo: can't resolve hostname". After som googling it was made clear to me that i would have to edit /ect/hosts and add my machine name. I tried this but apparently it can't be done with out SUDO. Any ides on how to solve this ?

I installed Windows 10 Anniversary update and the Linux subsystem. When running anything with sudo it takes ages and then I get this error message:     sudo: unable to resolve host MYMACHINE   How to get rid of this and make sudo fast?


I've been looking into heating a nickel chromium wire with a 9V battery for one of my projects. Can anyone feed me an equation for calculating the life of the battery? I'm sure it will include gage of wire, length of wire, resistance, etc. I can find out these aspects if I can get the general equation. Thanks in advance.

I'm looking to power nichrome wire from battery. The problem I ran into is that desired length/width of the wire has very small resistance ~ 8 Ohm.  Several kinds of batteries I've tested have internal resistance much higher then that, which leads to wire staying cold and battery getting hot.  Is there any way to increase current drawn from the battery? Some kind of amplifier maybe?  Edit:    1.2V(rechargable) and 1.5V one, while not getting hot itself did not provide enough power to heat the wire. 3V did not provide enough power, even stacking 3 of them in series, only provided about 1V of voltage on the wire, and not enough amperage to heat the wire. 9V battery did provide enough amperage to heat the wire, but at the same time got very hot very quickly itself.   PS. I was wondering if  might work for this purpose?


My question has to do with CPU and GPU overheating. I am starting to do some long animation renders (about 8 hours or so). I don't have any problems with figuring out how to monitor my temperatures. I use CPUID HW Monitor and I know of some other ones like openhardwaremonitor.org and aida64.com.  Most people do long renders while they are sleeping which makes these real time monitoring programs kind of pointless. I want to be able to look at a graph over time of my temperatures to make sure that over the course of a 8 hour render my CPU or GPU temps were fine. Any suggestions out there? I built my own computer and it was my first time so I want to keep my components in really good condition.   Thanks in advance and thanks for the time!  Tyler

I purchased a computer a month or two ago (core i7,  24gb ram, geforce gtx 590, windows 7 ultimate).  Within the last week it began to bluescreen regularly.  I tried lots of things (check hds, check memory, reinstall windows etc..) but it still bluescreened.   At the time my temps were as follows...  CPU - aprox 40/50c. GPU - arpox 60 idle,  aprox 90 during heavy use. HDDs  - aprox 55c after the PC had been on a while.  I thought the 55c was ok,  but I have since realized it was probably too high and may have been the direct cause of the bluescreening.  I've installed a spare fan I had in the front of the PC blowing air in, (so there's airflow from front to back)  Since then, obviously, all my temps are down.  Especially the HDDs - three of them reach 30c and one has been up to 47c (it is some distance away from the airflow, in one of the 5.25inch drive bays)  I haven't had the PC on for as long as it would normally take to bluescreen yet,  but If it does I want to know what all the temps were right before the bluescreen.  I have tried Everest but it only shows me realtime temps or gives me the ability to create one-off reports.  I want something that can record all the temps to a file at 30 seconds intervals.  If the computer bluescreens I can load it up again and check the last entry in the file.  Side question:  Am I right in thinking 55c was far too hot for a HDD?  (It might have got higher than that before the bluescreens.. I don't know)  Another side question:  Is 47c too high?  This is actually why I am asking the main question - I am concerned that this one drive that isn't getting the benefit of the extra fan may still cause the computer to bluescreen.


My problem is that I accidentally deleted Win 8. But actually I don't need it and I don't want to buy Recovery disk. I need to install Ubuntu. So when I installing Ubuntu I just Erase my disk and install Ubuntu. The is happening at the end of installation. It's coping files, but at the end it's showing me a message   "We are sorry;the installer crashed. After you close the window, we'll allow you to file a bug using..."   I don't know what to do. Help please :(

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


Well, could we? At first thought it seems nice. Has this been discussed before?

It would be nice to add Markdown support on the question's title field. It seems a bit inconsistent when it’s already available in the body and question's comments. What do you think?


"RE" means "recursively enumerable" and "R" means "recursive.  i am looking for the simplest solution- using a known languages such that do not demand another formal proof.

I am struggling to find such languages $L_{1}$, $L_{2}$, and $L_{3}$ such that  $$ L_{1} \subseteq L_{2} \subseteq L_{3} $$ where $L_{1}, L_{3} \notin  \mathbb{R}$ and $L_{2} \in  \mathbb{R}$.  I know they exist, I need help finding them.


I am a total novice when it comes to hardware settings.  I am using Windows Server 2012 64 Bit.  It has 12GB RAM. I have a C and virtual D drive.  The build is i5-2400 3.10 GHz.  There is no current settiugs for virtual memory.  What is the rule of thumb please?

Possible Duplicate:          I have been working on computers for quite some time now and realize the importance of virtual memory.  I have been assuming that setting this to twice the amount of RAM installed is what is necessary.  However, as memory has been growing over the years, I am wondering if this is still true.  For example, on my 6 GB RAM system is it best practice to set the virtual memory size to 12 GB? For smaller ram systems, is it worthwhile in performance to set the virtual ram to something even more (i.e. 1GB physical ram and 3GB virtual)?


I read an example in my physics book and was not satisfied with that.  Suppose there is a car initially at rest. If the car accelerates then my book says that it is the friction force only which caused this acceleration since it is the only external force acting on the car. But I was not satisfied with that.  What I think is that the motion of the car was the result of both friction as well as the force exerted by the engine on the wheels. If there was no friction then the wheels would rotate only and will not move forward. But what if there was no engine and no external force was given except friction. The car would not move in both the cases. Doesn't it mean that for acceleration both internal as well as external force is needed?   If it is correct then why don't we count the internal force?  If I am wrong, then correct me.

When a car's engine injects fuel into the cylinder chambers, the reaction creates a force that generates rotational momentum to the shaft and over the transmission, it translates that power to the wheels, right?  But, something's bothering me, how does the car actually move, is it dependent on the force of friction? Wheels have a contact with the road in one exact point and when the drive gets to rotate them, a force is exerted on the road in the direction of movement and there is friction that is counteracting it.  Is the key to get a car properly moving to have the drive force equal or less than the force of friction to keep that point locked to the ground and use the rolling of the wheel for translational displacement ie. moving forward? If it's bigger than the force of friction, that would cause the wheels to spin in place?  Am I completely off or am I getting something right? If there's a knowledgeable person on this topic, I'd greatly appreciate some insight, perhaps even a bigger response with some basic vehicle physics.


I've heard about Ubuntu 16.04 but I've also heard of Ubuntu 16.10. What's the difference between these two?  Will either of them be compatible with a Dell Optiplex 755 usff?  Also, I've heard about LTS (Long-term support) and I don't know whether it means its out of support or in support.

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


I have a large google document I'm working on. There is the same text there that used in many places. It is changed sometimes as the document evolves. I'd like to have some way to change it automatically. I declare a variable some_variable in some document metadata layer with the value of "text". Then everywhere this variable is inserted as ${some_variable} it will be automatically replaced with "text". In this case I won't have to go over and do it manually. I believe this feature is available in MS-Word. Is it possible to do the same in google-docs.  I've tried  plug-in. However, it seem to be able to only replace variables with values once.

I don't know how this functionality is called, but I think Word had it for years. Basically, I want to do something like this:  {Character1} just got out of his bed when he heard a loud noise outside.   Where every instance of "{Character1}" is replaced later with "John":  John just got out of his bed when he heard a loud noise outside.   No, I'm not looking for a simple search and replace function, I want to know if I could add commonly used words, like a name in a story for example, to some sort of database and refer to that in the text, so that if I ever end up changing the name of the character, it will automatically get replaced everywhere.  Is there a functionality like that in Google Docs? If not, how is it called in Word? I've been looking for it forever, I just don't know how to refer to it.


A person always complaining like "he is said about you, like that" to other person.  Complaining about you to others and speaking good infront of you like double game.  Scenario:  Guy  "a" saying to b," c said bad about you" and going to c and telling b telling bad about you  2 Going to manager and complaining that guy is said about you in lunch  What is the right word. Thanks

What do you call someone who pretends to be your friend but is actually your enemy?  A friend suggested spy for me, but that does not nearly describe the word I need for an English project. The character is very good at manipulating how people see him. He's a good liar. And pretends to be your friend but actually is your enemy.


I would like to have an item (lets use a stick for example) to actiavte this command   /effect (player name) 24 1000000 255 true   upon right clicking. If anybody knows how to do that I'd be very thankful as I can't find the answer anywhere.

Is there a way so that I make make it when I left click/right click with a certain item it applies an effect? I know that you can apply attributes to wearing armor and things but I want it so when you use the item it applies an effect on your player.  For example, let's say I want something so that when I right click with a certain item (let's say an iron ingot that was given to me) I'll then have a jump boost for 10 seconds. So kinda like a potion in a way.  Is this possible with command blocks/commands/any mods?


Let $a$ and $n$ be natural numbers with $(a,n)=1$. Then there exists a natural number $k$ such that $a^k≡1 \pmod n$.  I am using Number Theory Through Inquiry which does not offer much in the way of help solving theorems. The previous theorems are meant to set up proofs for the ones that follow, but I can't quite get this one.

Let's consider two number $a$ and $b$ such as $gcd(a,b)=1$. Can you explain me intuitively why there exist $n>0$ such as $a^{n} \equiv 1 \space (mod \space b)$  ?


I have two coordinate frames which have an offset and rotation between them.  Using the following example I tried to visualized it:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text}  \begin{document}  \begin{tikzpicture}[thick]     \draw[-latex] (0,0) -- (4,0)  node[right, text width=5em] {$X$};     \draw[-latex] (0,0) -- (0,4)  node[right, text width=5em] {$Y$};      \begin{scope}[rotate=0,draw=red]         \draw[->] (3,2) -- (7,2)  node[right, text width=5em] {$X'$};         \draw[->] (3,2) -- (3,6)  node[right, text width=5em] {$Y'$};     \end{scope}      \draw[->, postaction={decorate, decoration={text along path, text align={center},text={${\overrightarrow{R}}{\;}$}}}] (0,0) -- (3,2)  node[right, text width=5em] () {};  \end{tikzpicture}  \end{document}     once i change  \begin{scope}[rotate=0,draw=red]   to  \begin{scope}[rotate=20,draw=red]   I get:   How could I place the origin of my X'Y' coordinate frame at position (3,2) in my XY coordinate system?  In addition I would like to place $\overrightarrow{R}$ a bit higher. How could I place it above the vector?

I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired.  I have a rectangle specified by  \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);   I would like to rotate this rectangle about the point (-1,.5) (which is near the bottom right corner of the rectangle).  I've tried:  {\rotatebox[origin=c,x=-1,y=.5]{130}{             \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);}}   But this produces an error.  If I just use the origin=c option, it compiles, but it rotates the rectangle about the point (0,0).  I've also tried it with just the x=-1,y=.5 (without the origin option), and it fails to compile.  I have searched the documentation, which is where I learned about the options x=xdim and y=ydim.  However, I can't find a single example demonstrating how these options should be used.  Any suggestions would be greatly appreciated.    Also, if there is a better command for rotating things that will be more suitable for use in a beamer animation, please let me know.  Thanks!


Question:  Solve:  $xy+x+y=23\tag{1}$  $yz+y+z=31\tag{2}$  $zx+z+x=47\tag{3}$  My attempt:  By adding all we get   $$\sum xy +2\sum x =101$$  Multiplying $(1)$ by $z$, $(2)$ by $x$, and $(3)$  by $y$ and adding altogether gives  $$3xyz+ 2\sum xy =31x+47y+23z$$  Then, from above two equations after eliminating $\sum xy$ term we get   $$35x+51y+27z=202+3xyz$$  After that subtracting $(1)\times 3z$ from equation just above (to eliminate $3xyz$ term) gives   $$35x +51y-3z(14+x+y)=202\implies (x+y)[35-3z]+16y-42z=202$$  I tried pairwise subtraction of  $(1),(2)$ and $(3)$ but it also seems to be not working.  Please give me some hint so that I can proceed or provide with the answer.

Solve the following equation system:  $$x+y+xy=19$$ $$y+z+yz=11$$ $$z+x+zx=14$$  I've tried substituting, adding, subtracting, multiplying... Nothing works. Could anyone drop me a few hints without actually solving it? Thanks!


In SSMS, since I can't assign multiple login objects to a single user object, what is a best practice to achieve an equivalent security model?   For example, I have 20 logins and want to give them all the same permissions on a single database:   Do I have to create 20 user objects in that database? Do I have to touch all 20 Login objects?

This seems to be a stupid question but despite some research I was unable to find any information regarding this only (possibly due to using the wrong terminology).  Is it possible to log multiple server logins (sql server authentication) to a single database user (which has permissions assigned by being member of a database role)?  I have dozens of sql logins (sql server authentication) which need to read one setting from a central database and I'd rather map all these logins to a single DB user in the target database than create an own DB user for each login.  If yes, what would be the correct T-SQL syntax?


I am an administrator for a business and have inherited windows 7 guest computers. They are pretty much soft locked to where the only thing that can be done is surf the web.  I have no administrator profile, no command prompt or any permission that would allow me to update or format. Is there anyway that i can format these computers without administrator access or the command prompt?

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.