Is there anything special of the struct of a linked list against a common struct in the storage?

In a common struct , the size of a struct equals the sum of size of all its members, however when I want to apply this for the linked list based on struct ,it does not hold.     I run the following code on a 64-bit windows system, and my complier is gcc   typedef struct node {      int val;     struct node *head; } node_t;  typedef struct point {     int x;     int y; } point_t ;  int main(){      point_t a = {1,1};     node_t b={1,NULL};      printf("%d %d %d\n",sizeof(node_t),sizeof(b.head),sizeof(b.val));     printf("%d %d %d",sizeof(point_t),sizeof(a.x),sizeof(a.y)); }   the output turns out to be  16 8 4 8  4 4   what I expect is that sum of sizeof(b.val) and sizeof(b.head) should euqual sizeof(node_t) just as what happens for sizeof(point_t),sizeof(a.x),sizeof(a.y).  so is there anything special of the struct that forms a linked list in the storage?


I am planning to have wordpress portal where a page will be having a list of 50 words in first column and second column will have a translation of the word. Language 1     Word Transalation     First word First word Transalation in language 1     Similarly I will have many pages in different languages. Will this create issue of duplicate content?


Discontinuing page numbering: Hyperlinks in the index of a document don't work properly

My code:  \documentclass[                titlepage,                abstract               ]{scrartcl}  \usepackage[texindy]{imakeidx} \usepackage{hyperref}  \makeindex[intoc]  \title{Test} \dedication{Test.}  \begin{document}    \maketitle   \begin{abstract}     Test.   \end{abstract}    \pagenumbering{Roman}   \tableofcontents   \newpage   \pagenumbering{arabic}    \section{Test}     Das Zweistrom-Turbinen-Luftstrahltriebwerk (ZTL)\index{ZTL}~\ldots    \newpage   \pagenumbering{Roman}   \setcounter{page}{2}   \printindex  \end{document}   The table of contents should start with big Roman one. The text part (in the MWE starts with the test section) should start with an arabic one. This works.  But if I click in the index on the link, then it jumps to the title page (physical page one). I don't know what I'm doing wrong, but if I comment out the lines, which have to do with the page numbering (twice \pagenumbering{Roman}, \pagenumbering{arabic} and \setcounter{page}{2}), than it have the expected behavior. At the same time the hyperlinks in the table of contents work every time.  Why is it so and how can I fix this?  Thank you for your help and effort in advance!


Trigger to assign open tasks back to specific user when account owner is changed

We have a workflow that creates tasks and assigns them to a specific user when an opportunity is closed. It's salesforce standard behavior that when the account owner is changed, the open tasks are also reassigned to the new account owner. I'm trying to write a trigger that:   checks if the account owner and/or task owner is changed FROM 00590000000a3xU if yes, reassign the tasks back to 00590000000a3xU only open tasks and tasks where Orb Team Task (checkbox) is true will be reassigned   I was getting all sorts of errors from the old code even after making the changes sfdcfox's pointed out. So I decided to change my approach. Here's the new and working code:  trigger AssignTaskBackToWarehouse on Account (after update){ List<Task>TasksToUpdate = new List<Task>(); Map<Id,Account>amap = new Map<Id,Account>([SELECT Id, OwnerId,(SELECT Id, Status, Warehouse_Task__c     FROM tasks     WHERE Status != 'Completed' AND     Warehouse_Task__c = true)     FROM Account     WHERE Id =: Trigger.newmap.keyset()]); for(Account a : Trigger.new){     for(Task t : amap.get(a.Id).tasks){         t.OwnerId = '00590000000XXXX';         TasksToUpdate.add(t);     }     } if(TasksToUpdate.size() > 0){     update TasksToUpdate; } }


I try to create a face between two edges, but it always gets a strange looking result. I worked for years with another cad application called "Vector". In this App if you select edges, the software orders the edges from 0 to n by selection and shows the order. Blender doesn't do this, but I found an extension called "space_view3d_index_visualiser_bmesh.py", no it works fine.  The internal blender order seems quite confused, so I reordered it with "Sort Mesh Elements".    After pressing F to create a face between the edges, this is the result:    I think this is an edge order problem. If I Select each corresponding edge separately (0-1, F, 2-3 F .... etc) it works fine, but this is boring work with large Objects. Is there any solution?


I have an array of numbers that have many decimal formats. How do I take that array and round everything to 2 decimal places? Ex 10.52


How to solve the "io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information" error on Minecraft?

I am getting the following error when I try to connect to a Minecraft server:  This is all servers, not just one. The error says:  io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: Version 1.12  I've tried:  Restarting Minecraft Restarting Computer Uninstalling and Reinstalling Mincraft Uninstalling and Reinstalling Java Altering Firewall Restarting Internet I've messed with my port, made a second windows account, reset netsh winsock Checked hosts Made a new WINDOWS account  The overlay in the bottom right is Geforce's Overlay for game capturing. I don't have any mods installed. A Mojang support ticket wouldn't help. Im desperate.


Proving $\sum_{n=0}^\infty \binom {m+n}{n}^{-1}=\frac{m}{m-1}$

Proving $$\sum_{n=0}^\infty \binom {m+n}{n}^{-1}=\frac{m}{m-1}$$   I'm not quite sure what to do with the sum of terms that combinations appear in denominators. I tried to solve the problem via splitting items, but failed.  But when I happened to see the following formula $$ \int_0^1 x^n (1-x)^m\,dx= \frac{n!m!}{(n+m+1)!} $$ I got some idea as follows  \begin{align} \sum_{n=0}^\infty \binom{m+n}{n}^{-1} &= \sum_{n=0}^\infty \, (m+n+1)\int_0^1 x^n (1-x)^m\,dx \\ &= \int_0^1 \left( \sum_{n=0}^\infty (m+n+1)x^n \right) (1-x)^m \,dx \\ &= \int_0^1 \left( \frac{m+1}{1-x}+\frac{x}{(1-x)^2} \right) (1-x)^m \,dx \\ &= (m+1)\int_0^1 (1-x)^{m-1} \,dx + \int_0^1 x (1-x)^{m-2} \,dx \\ &= \frac{m}{m-1} \end{align}  I am looking forward to other methods or a more deep-going idea to solve this problem such as solving it via the property of gamma function, I guess. Thanks for your help in advance!


Await OpenWeather function and then run another function

I'm building a time and weather app. I have two functions. showtime() that awaits getWeather(). The constants log fine in getWeather(), but when I try to retrieve the same constant in showtime() I get undefined... .

  const weekday = document.querySelector('.weekday'); const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thur','Fri', 'Sat', 'Sun'];  setInterval(() => { const d = new Date(); const day = days[d.getDay()];      async function showtime() {     await getWeather();     console.log(sunriseTime); // returns undefined     console.log(day) // logs fine, returns Wednesday.          weekday.innerHTML = day + ', Sunrise at: ' + sunriseTime;     }     showtime(); }, 1000);  //   const openweather_api = "https://api.openweathermap.org/exampleexample";  async function getWeather() {     console.log('run weather function first')     const response = await fetch(openweather_api);       const json = await response.json();      const sunriseTime = `${json.sys.sunrise}` // logs sunrise time in seconds.      }  getWeather(); // runs fine and retrieves values from Open Weather Json.


Looking for the title of an old Robert Heinlein book

Robert Heinlein wrote a novel (one of his earlier novels, I believe) in which China had invaded the USA and the Americans, in order to combat and confuse their invaders, developed a weapon (tool?) which could change matter into just about anything. I am looking for the title of that book and I apologize for the short summary (which may be only partially accurate -- I am old and my memory is fading).  But I'd like to get a copy of that old book.  Any help would be greatly appreciated.  Thank you.


Why is "union" an exception to the "a/an" rule?

Usually when a word starts with a vowel, we will use "an" before it. But for union, it is "a union" not "an union." It is not explained in the previously mentioned  why union is an exception. It explains how to know exceptions for h like hotels.   Also are there any exceptions for the opposite side, where there should be an "a" but is an "an" instead? (Unfortunately I have no example of a case like this.)


What is the difference between the use of ; and executing a script

I'm using bash as my main shell, but it's an open question and responses for shells others than bash are very welcome.    If I'm typing interactively    #original line  #wget http://something.com && unzip something && mv -f something /home/poney/  #new line wget http://something.com ; unzip something ; mv -f something /home/poney/   Does it make any difference in term of execution pile, order, memory, interpretation, permission compare to a script that contains those line:   #!/bin/bash wget http://something.com unzip something  mv -f something /home/poney/   PS:  except the fact that executing a script is shorter than typing 3 command in a row obviously.


I recently heard in the brilliant TV show The Night Of, a character saying "he knows not...". As far as I remember my English lessons, the teachers always taught me to say "he doesn't know". Which is correct? Is this an archaic form still used nowadays? Is it slang?


How can I create two partitions from the single drive C I currently have in my Windows without erasing files?

My computer came with only one hard disk drive: C. It has a capacity of 920 GB. And I have used 80 GB of it.   Now I want two drives in my computer: C and D. But I want 150 GB in the C drive and the rest (770 GB) in the D drive. And I don't want that any files that I currently have in my C drive get deleted. How can I do that?  (I can't back up at the moment, because I already installed a lot of software and customized the operating sytstem. That's a lot of work.)   Thank you.


Best technique to create oldschool (fake 3D) racing game?

What would be a good approach to develop the render system for an oldschool type racing game that uses a pseudo 3D scenery, like for example Outrun or Lotus Esprit Turbo Challenge? There's an endless scrolling road and scenery graphics are placed like billboard items, etc. I think you get the idea.    Are these developed in a similar way like  or is there a different technique behind it? Does the technique has a specific name I could search for on the web? I need to develop something like that in Flash.


I'm fairly new to Ubuntu and have just installed Ubuntu Server 12.04 on a spare machine to experiment and play with!  The installation went without problem, however, whenever the OS boots the monitor displays an error message saying the resolution is out of range and I can't see to do anything - I  can wait as long as I like, but nothing appears.  Ubuntu is the only OS installed so bypasses GRUB on boot, although the GRUB screen is also out of range if forced on startup.  I can access a shell from the recovery mode and I can get at a terminal through a live CD of the desktop version but have had little luck with it either.  I've been trying to figure this out for days and I'm at a total loss.  Any thoughts?


How do I search for non-deleted questions in data.stackexchange.com?

I tried to filter for questions that have not been deleted.    However, the top result shows  Post Link                                                           deletiondate closeddate           ------------------------------------------------------------------- ------------ -------------------  Should I learn "Legacy Spring", or just jump to Spring Boot         null         null                   It shows null for deletiondate, yet .     deleted by LightCC 13 hours ago   So how do I only display questions that are not deleted?  select top 1000 p.id as [Post Link], p.deletiondate, p.closeddate from posts p where p.answercount = 0 order by p.creationdate desc


My brother has came up with this equality:  $$ {e}^{i\pi} = -1 \quad\Rightarrow\quad {\left({e}^{i\pi}\right)}^{2} = 1 \quad\Rightarrow\quad \boxed{2\pi i = 0} $$  But that result sounds impossible, so, where is the error?


NullPointerException due to 'void dalvik.system.CloseGuard.close()' in lollipop

I get the following exception in background while my app runs in Android OS Lollipop. Not able to figure out its exact place or any reference to it in my code.    02-23 17:58:14.145: E/System(16417): Uncaught exception thrown by finalizer 02-23 17:58:14.146: E/System(16417): java.lang.NullPointerException: Attempt to invoke virtual method 'void dalvik.system.CloseGuard.close()' on a null object reference 02-23 17:58:14.146: E/System(16417):    at java.io.FileInputStream.close(FileInputStream.java:113) 02-23 17:58:14.146: E/System(16417):    at java.io.FileInputStream.finalize(FileInputStream.java:140) 02-23 17:58:14.146: E/System(16417):    at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:190) 02-23 17:58:14.146: E/System(16417):    at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173) 02-23 17:58:14.146: E/System(16417):    at java.lang.Thread.run(Thread.java:818)   Any one faced it before?


Chi-square based tests tending to zero for large sample sizes

I think I have some misconception about chi-square based tests such as Pearson's test or McNemar's test. The way the tests are defined, the test statistics produced by the formulas are not stable under constant proportions of observations to outcomes but grows with increasing sample sizes.  I don't see how that makes sense and would like to know if I can correct the statistics based on the sample size to get corrected p-values.  Specifically: Say I have 6 categories and observed frequencies and expected frequencies as follows (number at index $i$ represents frequency of class $i$):  expected = [19 18 11 12 26 14]  observed = [18 18 13 15 18 18]  With Pearson's test I get  statistic=5.407692307692308, pvalue=0.3681739442518473  Now I take a bigger sample, where the proportions are the same (every frequency multiplied by 4):  expected = [ 76  72  44  48 104  56]  observed = [72 72 52 60 72 72]  statistic=21.630769230769232 pvalue=0.0006153325274858169   McNemar has the same problem:  factor = 1 [[38 82]  [92 14]] pvalue      0.4951688582884312 statistic   82.0   factor = 2 [[ 76 164]  [184  28]] pvalue      0.3084332194099148 statistic   164.0   factor = 3 [[114 246]  [276  42]] pvalue      0.20429165958493722 statistic   246.0   factor = 4 [[152 328]  [368  56]] pvalue      0.13927374787349467 statistic   328.0   This does not make sense to me intuitively in regard to what the test is supposed to tell me. If the proportions stay the same, why would the distributions be judged differently in respect to "how well they fit together" (which is what the tests basically tell me, right?)?  So, if I increase my sample size while the relative frequencies of classes stay approximately the same for all sample sizes, I would like to get a more accurate p-value... not an ever shrinking one.  I assume I have to apply some normalization somewhere. Is that the case and how do I do this?


I have a word document that was created using 9 X 6 as the custom paper.  I dont have that size paper just the normal 8 x 11.5.  How can I setup word to print the document with its current size but on the normal paper?


Is re-projection needed from SRID 4326 (WGS 84) to SRID 4269 (NAD 83)?

I have US census data against state boundaries stored as  SRID 4269, in an MSSQL DB.  The input data used for calculations against that dataset is stored as SRID 4326.  As far as I can infer from the , SRID 4269 is just a subset of SRID 4326 and no coordinate re-projection is necessary.  Do I actually need to re-project from SRID 4326 to SRID 4269, provided that the input data is always within the bounds of the SRID 4269?


What kernel version comes with Ubuntu 10.04.1?

Could you tell me the version number of the 10.04.1 kernel?


Add the option to do a case-sensitive search

I noticed that the search engine does not consider capital letters (just like most regular search engines). However, I have the feeling that in a "coding" context, this could be useful.  For example, searching pages about the standard C library "FILE" struct returns a lot of pages containing the "file" word, that are not (always) relevant.  Is there a way to force keeping capitals? If not, maybe it could be a nice feature to add?


How do I set Ubuntu Software Center as default to apt links?

I was about to install Bank-ID but got stuck with this apt-link. If I click on that link the file manager gives me the opportunity to choose a specific program to open the file.  I can't find Ubuntu Software Center by choosing "browse" and I tried to find any setting to set Ubuntu Software Center as default for apt-links. I don't even know if that's the correct way of installing this software. If anyone know any other way,  tell me.  I've been trying on my own for a while so perhaps I might have changed any settings.  I was a bit suspicious so I tried to download skype as well to see if it was possible to install any program using Ubuntu Software Center. That didn't work out.


Is `argv [0]` of `execve()` required to be the same as the basename component of the `pathname` argument?

In   #include <unistd.h> int execve(const char * pathname , char *const  argv [], char *const  envp []);   argv [0] of execve corresponds to argv[0] in the main function of the new program, and is thus typically the same as  the basename component of the pathname argument.  Is it a requirement that we should always follow?  When a program file can be invoked by different values of argv[0], does that rule/convention mean that when I invoke a program file and want argv[0] of its main() to have a specific value,  I have to create a symlink to the program file named after the value of argv[0], and invoke the program by the symlink? Or not necessarily? For example,  says     Bash runs in POSIX mode when argv[0] is sh. It runs as a login shell when argv[0] begins with -.   Does that mean that    to invoke bash in POSIX mode, I have to create a symlink /path/to/sh to /bin/bash and invoke bash by execve("/path/to/sh", argv, ...) with argv[0] pointing to string "sh"? Is this way preferrable over execve("/bin/bash", argv, ...) where argv[1] points to string "--posix" and argv[0] doesn't matter? to invoke bash as a login shell, I have to create a symlink /path/to/- to /bin/bash and invoke bash by execve("/path/to/-", argv, ...) with argv[0] pointing to string "-"? Is this way preferable over execve("/bin/bash", argv, ...) where argv[1] points to string "--login" and argv[0] doesn't matter?   When is it useful that argv [0] of execve  is not the same as the basename component of the pathname argument?


Can we get rid of the threshold of 15 chars for comments?

I understand that there is an upper limit. But why do you have to type at least 15 characters to post a comment? It is easy to work around it anyway (like adding dots or other useless things).


Can domain masking be used to move content from a subdomain to a subdirectory?

example.com is hosted on IP address c.c.c.c at host1, no access any windows server admin at all blog.example.com is  on IP a.a.a.a at host2, full access to Linux server admin, using WordPress   So basically, I can fiddle with subdomain all I want.  I can't 301 redirect because the content on host 1 is an eCommerce site that I have no server control over. Can't put WordPress on it, can't run scripts, can't do anything on the server period.  Is there a method to "mask" all the URLs on root blog.example.com so they appear as example.com/blog/ folder?  They can't actually be sent to example.com/blog/ as that doesn't exist. It just needs to look to the surfer as if they are there.  Can this be done with some kind of masking or something?  Will this be better for SEO as hopefully search engines will see the blog in a directory on the main domain?


Script to convert .wma to .mp3 command not found

I am using a script called conv-script that I found on AskUbuntu . It looks like this  #!/bin/sh  readarray -t files < wma-files.txt  for file in "${files[@]}"; do     out=${file%.wma}.mp3     probe=`avprobe -show_streams "$file" 2>/dev/null`     rate=`echo "$probe" | grep "^bit_rate" | sed "s:.*=\(.*\)[0-9][0-9][0-9][.].*:\1:" | head -1`     ffmpeg -i "$file" -ab "$rate"k "$out" && rm "$file" done   I have ran sudo chmod +x ./conv-script and then I try and execute it with sudo ./conv-script  After doing so I get an error sudo: ./conv-script: command not found  I am unsure what I am doing wrong as I can see the file in the current working directory and I have set it to be executable. One thing I thought it might be was the first line of my script is wrong, but I have another script with the same shebang and it executes fine. When I use the shebang in the original #!/usr/bin/env bash I get the same thing. Thanks for the help  EDIT:  output of file conv-script  conv-script: a /usr/bin/env bash script, ASCII text executable  output of stat conv-script    File: ‘conv-script’   Size: 325             Blocks: 64         IO Block: 32768  regular file Device: 821h/2081d      Inode: 82004       Links: 1 Access: (0644/-rw-r--r--)  Uid: ( 1000/ kalenpw)   Gid: ( 1000/ kalenpw) Access: 2016-05-17 16:40:43.000000000 -0600 Modify: 2016-05-17 14:33:31.000000000 -0600 Change: 2016-05-17 14:33:32.000000000 -0600  Birth: -


Make hole with snowballs in Minecraft 1.13.2

How can I make it so when a snowball hits snow the snow disappears? I am in 1.13.2 and trying to make a snowball spleef game.  /execute at @e[type=snowball,tag=ground] run fill ~ ~ ~ ~ ~ ~ snow replace air   I have tried that but it doesnt work. It may have something to do with 1.13.2.


Why do American colleges and universities have sports teams?

In the USA, college sports are popular, and colleges .  Yet, , and .  Considering that the universities are losing money on it, and it's not their core task, then why do they spend big money on sports?  Who benefits, and how?  Do all  have commercialised sports teams, or are there major exceptions of universities choosing not to take part?


Why are movies so hard to understand (and what can you do about it)?

I have been learning English for many, many years now and think I have acquired quite some mastery. Yesterday I saw just another English (American) flick and thought it was a different language, but definitly not English. I had to turn the (English) subtitles on... :-(  Why is it so very hard to understand movies - and do you have a panacea to it?


Hermione says "Voldemort" at Grimmauld Place

In Harry Potter and the Deathly Hallows, we find out when Ron returns to Harry and Hermione that Lord Voldemort put a taboo on his alias.   We see that this works in the chapter "A Place To Hide" when two Death Eaters find the trio near Tottenham Court Road after Harry says "Voldemort," so this taboo is already in place and working by later on in the same chapter.  After some debate, the crew decide to hide at Grimmauld Place; we know that there are certain enchantments to protect it against Snape already. Once inside, Harry's scar begins to hurt because of Voldy's anger, and Hermione says his name: "Otherwise Voldemort can plant false images in your head, remember." But no Death Eaters find them in Grimmauld Place.   Why is this? Have I missed something or did JKR make a mistake?


Are the unexamined lives of others worth examining?

Socrates continually admonished his interlocutors to become more introspective, arguing passionately for self-examination:     The unexamined life is not worth living.   But an examined life is painful, and necessitates an involvement with real problems. This is why it's worth living -- the unreflective are easily trapped into a living death of the mind by mythology, as the reflective sometimes are by ideology. In both cares we are deadened, sleepwalking through our lives blind and deaf, incapable of interacting with the world as it actually is much less imagining the world as it should be.  Now, we know of course that Socrates did not refrain from commenting on the generally unreflective character of his fellow Athenians. This is really the heart of my question. Certain reactionary critics might suggest that it's all well and good to closely examine one's own beliefs and values, but why should you go about examining the beliefs and values of others?


How do you use set theory to define the value of zero to the power zero.

I have a memory from years ago of someone saying that you can define zero to the power zero to be (either 1 or zero, I don't remember) by defining it as the number of mappings from the empty set to the empty set.  I'd like to remember what he said and understand this approach.  I'm a high school maths teacher, who hasn't thought much about set theory since graduating with a maths degree 15 years ago, so I understand what the empty set is, but not much further.  Could anyone fill in the blanks for me on this explanation?  Many thanks in anticipation.


What's the NB30 or MM-TD in an iPhone description in GSX?

What's the NB30 or  MM-TD in an iPhone description? I always see these nomenclatures Non block, etc, what does it mean?


Intuition on Minimizing Squared Distance

Say that we have a bunch of random-values $x_1, x_2, ..., x_n$  Let $\bar{X}$ be the mean of these random-values. The variance of this sample-set is given by:  $$\sum(x_i-\bar{X})^2$$  Apparently, the above sum is smaller than if $\bar{X}$ were any other value besides the average of the $n$ observations.  I've seen a Calculus-based explanation...are there other ways to show this? Perhaps geometrically or algebraically?   Thanks.


Can someone explain the meaning of this sentence and what "but for " implies?

I would not have worked in London in the summer but for being on holiday.


I looked all over this profile: , and was unable to locate a "Flag for Moderator" button. But as you can see, it's well needed: Warning: Graphic!     So, I located one of his posts to flag for moderator attention, but there should be an easier way. And if there is - then it should be much more noticeable and easier to find. My proposal should be clear by now, but if it's not; please add a "Flag User" button within a user's profile.


Make the "cite" option on a question shown everywhere on the network

The "cite" option on a question is an option only shown on , , , and .  To quote @FranckDernoncourt, the "cite" option is:  To make it easier for people writing research publications or other types of documents to cite Stack Exchange questions or answers. The cite option generates a reference that is easy to cite in TeX, which is often used by researchers (and pretty much always in maths/physics/computer science).  I believe the rationale is only showing cite on SE websites that are more likely to be cited in research publications.  And how do we predict the sites most likely to be cited?  Couldn't we make this available for all the sites on Stack Exchange?


I have gone through various sources... But I am not quite sure what it is.I want an and gate and the logical equivalent is two inputs feeding to one gate and for Y=AB' the logical equivalent is feeding to one not gate and one and gate. But it is the same LUT for both AND and Y=AB'. I think we store the values as desired in the LUT. Someone elaborate on this


Do you think all of the conjunctions below are acceptable? I just feel that 'for' may not work. Thx!  Bullying is unacceptable    because   it is against the school rules.                             as                             since                             for??


I have been checking some systemd-analyze outputs and I actually don't have a crucial problem with my boot time but just wondering whether I can decrease it further. I'd like to mention that I'm using an SSD and Ubuntu is my only OS.  systemd-analyze Startup finished in 5.450s (firmware) + 565ms (loader) + 2.632s (kernel) + 10.086s (userspace) = 18.734s  graphical.target reached after 10.071s in userspace   systemd-analyze blame           6.607s NetworkManager-wait-online.service           5.660s fwupd.service           5.042s bolt.service           4.134s plymouth-quit-wait.service           1.579s dev-sda2.device           1.552s systemd-backlight@backlight:intel_backlight.service           1.367s plymouth-read-write.service           1.211s snapd.service            903ms systemd-logind.service            572ms systemd-journald.service            555ms dev-loop9.device            523ms dev-loop6.device            515ms man-db.service            499ms dev-loop8.device            478ms dev-loop5.device            472ms dev-loop13.device            448ms dev-loop7.device            441ms dev-loop11.device            438ms dev-loop10.device            432ms dev-loop12.device            415ms udisks2.service            406ms dev-loop14.device            319ms snap-gnome\x2d3\x2d28\x2d1804-71.mount   graphical.target @10.071s └─multi-user.target @10.071s   └─kerneloops.service @10.042s +27ms     └─network-online.target @10.032s       └─NetworkManager-wait-online.service @3.422s +6.607s         └─NetworkManager.service @3.224s +186ms           └─dbus.service @3.218s             └─basic.target @3.211s               └─sockets.target @3.211s                 └─snapd.socket @3.208s +2ms                   └─sysinit.target @3.205s                     └─systemd-backlight@backlight:intel_backlight.service @1.468s +1.552s                       └─system-systemd\x2dbacklight.slice @1.467s                         └─system.slice @212ms                           └─-.slice @212ms


Is there a macOS equivalent of the Windows assoc command?

I am looking to change a file association on the Mac using some sort of script. I know that I can do something like that in Windows using the assoc  command. Is there something scriptable on macOS which will do a similar job?


How can I estimate cooking time for a brined and roasted turkey?

For previous Thanksgivings, we have brined and roasted our turkey.  (.)  After brining for about a day, we roast the bird for 30 minutes at 500°F and then bake it at 350°F until it's reached 160°F internally.    The bird is stuffed with an apple and half an onion (sliced), a cinnamon stick and some sage leaves for flavor.  During the high-heat phase, the breast is protected with a foil sheet.  The turkey legs are pulled inward towards the body; we do not spatchcock it.  The problem is that it's always taken much longer than we'd estimated for the turkey to come to temperature.  We end up serving dinner 2 or 3 hours later than expected which is certainly sub-optimal.  Based on the turkey's weight (and preparation process), how can we estimate how long it will take to cook?    We do use an independent thermometer to verify oven temperature.  Ideally, I'd like a formula for how to calculate cooking time from weight, and how to adjust based on details such as brining.


For example, when writing an email to an associate saying      Good afternoon, Joel.   Or should there be a comma instead of the period?


What's a word for someone who enjoys giving others pleasure?  Basically the opposite of schadenfreude, schadenfreude being pleasure derived from the misfortunes of others.   I'm looking for a word that means pleasure derived from giving others pleasure.  EDIT Did a bunch more googling and found the answer. I don't know how to delete this question though.


How long will fresh scallops keep in the refrigerator?

Today I bought one pound of fresh scallops from the seafood counter at the local market, but my dinner plans have changed - I am no longer planning to cook the scallops this evening and I don't necessarily want to freeze them. How long will they remain fresh in my refrigerator?


Is there a name for a word that physically sounds the same backwards and forwards?

Not a word that reads the same, a word that actually sounds the same whether it's pronounced forwards or backwards.


Drupal - Issue with passing a PHP variable to JavaScript?

I built a custom google map php file to implement into the front page of my drupal site that uses both javascript and php, and it is being called via drupal_add_js in the template.php file. I'm having a hard time figuring out how to properly run the PHP within the javascript, and then set the results to the JavaScript variable markers. I'm attempting to push each result to an array and echo the array via json_encode($item); however, in my console, i'm getting an error that is Cannot read property 'lat' of undefined.   Here is my entire map.php:  var map = null; var infowindow = new google.maps.InfoWindow(); var markers = [Drupal.settings.markers];  window.onload = function () {  var mapOptions = {     center: new google.maps.LatLng(         parseFloat(markers[0].lat),         parseFloat(markers[0].lng)),     zoom: 13,     mapTypeId: google.maps.MapTypeId.ROADMAP }; var path = new google.maps.MVCArray(); var service = new google.maps.DirectionsService(); var infoWindow = new google.maps.InfoWindow(); var map = new google.maps.Map(document.getElementById("map"), mapOptions); var poly = new google.maps.Polyline({map: map, strokeColor: '#F3443C'});  var lat_lng = new Array();            for (i = 0; i < markers.length; i++) {            var data = markers[i]            var myLatlng = new google.maps.LatLng(data.lat, data.lng);            lat_lng.push(myLatlng);            var marker = new google.maps.Marker({                position: myLatlng,                map: map,                title: data.title            });            (function (marker, data) {                google.maps.event.addListener(marker, "click", function (e) {                    infoWindow.setContent(data.description);                    infoWindow.open(map, marker);                });            })(marker, data);        } for (var i = 0; i < markers.length; i++) {     if ((i + 1) < markers.length) {         var src = new google.maps.LatLng(parseFloat(markers[i].lat),                                           parseFloat(markers[i].lng));         var des = new google.maps.LatLng(parseFloat(markers[i+1].lat),                                           parseFloat(markers[i+1].lng));         service.route({             origin: src,             destination: des,             travelMode: google.maps.DirectionsTravelMode.DRIVING         }, function (result, status) {             if (status == google.maps.DirectionsStatus.OK) {                 for (var i = 0, len = result.routes[0].overview_path.length; i < len; i++) {                     path.push(result.routes[0].overview_path[i]);                 }                 poly.setPath(path);             }         });     } } }    and here is my page--front.tpl.php with my attempt in creating the array that will be accessible to my js file:  <?php    if (isset($_GET['routeselected']))    {   $result = mysqli_query($db, "SELECT * FROM STOP INNER JOIN RouteStop ON Stop.Stop_ID = RouteStop.Stop_ID WHERE RouteStop.Route_ID = " . (int)$_GET['routeselected'] . " AND RouteStop.Company_ID = " . (int)$_GET['companyselected']);   $markers = array();   while (($row = mysqli_fetch_array($result))){       $markers[$row['title']] = array($row['Stop_ID']);       $markers[$row['lat']] = array($row['Latitude']);       $markers[$row['lng']] = array($row['Longitude']);       $markers[$row['description']] = array($row['StopName']);       }     drupal_json_encode($markers);     drupal_add_js(array('markers' => drupal_json_encode($markers)), 'setting');   }   ?>   Does anyone possibly know the solution to my issue? Thank you for all and any help!


Duplicate title tags error in webmaster tools

I have changed some URLs in my site then to prevent webmaster tools duplicate error I redirected (301) old URLs to new URLs also I tried to remove old URLs in "Optimization>Remove URLs" section of webmaster tools and still I get Duplicate title error.  I want to know is any problem in redirecting?  For example   redirected to   PS, I used Fiddler to check 301 redirect and think it should be okay.  Thanks in advance


Not getting desired output while using the 'equal to' operator

I have written a program, part of which checks whether two strings are equal or not. Although, both the strings when printed individually, come out to be same, however, when equated, the result so obtained is not what is desired. The code is as follows ..      import java.util.*;     import java.lang.*;     import java.io.*;      class GFG      {         public static void main (String[] args)              {                    StringBuilder pattern=new StringBuilder("^coal");                 StringBuilder text=new StringBuilder("coaltar");                 System.out.println(pattern.substring(1));                 System.out.println(text.substring(0,pattern.length()-1));                 if(pattern.charAt(0)=='^')                 {                         if(pattern.substring(1)==text.substring(0,pattern.length()-1))                                 System.out.println("1a");                         else                                 System.out.println("0a");                 }             }     }   The output must be 1a. However, it is coming out to be 0a. Please help.Thank You.


How do I point programs to libraries that they require?

I have this program that requires libbz2-1.0.so.1. I recently downloaded the libsdl1.2 library for i386 which is what the program was saying it required before. When I attempt to run the program, however, it still responds saying that it doesn't have the the other library libbz2-1.0 despite the fact that its in my /lib/x86_64-linux-gnu/libbz2.so.1.  kyle@GamingPC:~$ /home/kyle/golly/powder-89.2-lin32/powder  /home/kyle/golly/powder-89.2-lin32/powder: error while loading shared libraries: libbz2.so.1: cannot open shared object file: No such file or directory   I guess I need to explicitly state where the required library is or something, which honestly seems very inefficient.


Equation $(p-1)! + 1 = p^n$ for some $p > 5$ and $n \in \mathbb{N}$

Wilson's Theorem states that a natural number $p > 1$ is a prime if and only if $(p-1)!$ is congruent to $-1$ modulo $p$. A natural question to ask is: For which $p$ is $(p-1)!$ congruent to $-1$ modulo $p^2$? About these numbers, called Wilson primes, not much is known: as far as I know, the only known Wilson primes are $5$, $13$ and $563$ and it is conjectured that there are infinitely many Wilson primes.   Here, I would like to focus on the following more special question.     Are there some prime $p>5$ and some integer $n > 1$ such that $(p-1)! + 1 = p^n$?   Remarks:   By Wilson's Theorem, it is necessary that $p$ is a prime. For $p = 5$, the assertion is satisfied with $n = 2$. For $n = 1$, one can easily solve the equation and see that $p=2$ and $p=3$ are the only possible numbers in this case.   What I've tried:  First of all, I suspect that the equation does not have a solution in $p > 5$, $n > 1$, but I will suppose that the equation holds to get some necessary conditions on $p$ and $n$, and maybe a contradiction in the end.   The equation in the question is equivalent to $(p-2)! = 1+...+p^{n-1}$. As the left hand side is divisible by $5$, the right hand side is also. By the same token, the left hand side is even, so the right hand side is also even. Whence, as $p$ is odd, $n$ has to be even. The statement does not really depend on $p$ being a prime. By Wilson's Theorem one just knows that $p$ being a prime is necessary, but maybe one does not really need it and can do some kind of induction on $p$ to see that the equation cannot be solved. However, I was not able to do this. As $p^p \geq p! \geq (p-1)! + 1 = p^n$, we see that $p \geq n$.  To show that the equation does not have any solution, it suffices to show that for a fixed $p$ and an arbitrary positive $n > 1$, either    (i) $(p-1)! + 1 < p^n$, or  (ii) $(p-1)! + 1 > p^n$.   I suspect that (i) holds if $n > \frac{p}2$ and that (ii) holds if $n \leq \frac{p-1}2$. If this is true, it would suffice to prove the two statements  (i') $(p-1)! + 1 < p^{(p+1)/2}$, and  (ii') $(p-1)! + 1 > p^{(p-1)/2}$  instead.   Look at it analytically: The equation becomes $\Gamma(x) + 1 = x^n$. The plots suggest that the equation does not have any solution for $x > 5$ as the left hand side increases much faster than the right hand side. One could try to do some kind of approach with derivatives, but the Gamma-Function is the thing that disturbs me here.   I would be thankful for any approach regarding this problem, thank you!


Plotting logarithmic regression with gnuplot using PGFPlots

I have the data in 001.csv below that I want to plot. I need two plots: one showing the data and another one showing logarithmic regression. I have no problems plotting the line for the data (and also adding a linear regression line) but I just can't manage to get a logarithmic regression line in there. As far as I understand, I need to use gnuplot for this but unfortunately I can't make it work. Any help would be much much appreciated.  Cheers,  Cem  %%%%%%%%%%%%%%%%%%%%%% %This is my data:  \begin{filecontents}{001.csv}     1990 275     1991 187     1992 249     1993 177     1994 212     1995 303     1996 323     1997 364     1998 461     1999 427     2000 683     2001 553     2002 571     2003 682     2004 585     2005 608     2006 609     2007 643     2008 719     2009 545 \end{filecontents}  %%%%%%%%%%%%%%%%%%%%%% %This is my plot for the data:  \begin{tikzpicture} \begin{axis}[     axis on top=false, axis x line=middle, axis y line=middle,     xlabel={\footnotesize Year},     ylabel={\footnotesize Frequency count},     xmin=1975, xmax=2009,     ymin=0, ymax=900,     xtick={1980,1985,1990,1995,2000,2005,2009},     ytick={0,100,200,300,400,500,600,700,800},     legend pos=north east,     legend style={font=\fontsize{6}{5}\selectfont},     ymajorgrids=true,     xmajorgrids=true,     grid style=dashed,     /pgf/number format/.cd,     1000 sep={}     ]  \addplot[     smooth,tension=0.9,color=blue,mark=diamond         ] table {001.csv};  %Somewhere here I need a logarithmic regression line.  \end{axis} \end{tikzpicture}  %%%%%%%%%%%%%%%%%%%%%%


One of my friends wanted to have more logs in the /var/log/ directory, and after some time of using the system, he tried to access the folder and list it, but instead he got the following error:  bash: /bin/rm: Argument list too long   Does anyone know how many files can be added to this rm list?


I cann't get datasource connection from spring.xml.And tried testing with @Repository ,@Service but it didn't work.How do I fix this problem? Please Let me know how to solve this problem. Thanks  spring.xml  <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:context="http://www.springframework.org/schema/context"     xsi:schemaLocation="         http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans.xsd         http://www.springframework.org/schema/context         http://www.springframework.org/schema/context/spring-context.xsd">    <context:annotation-config/>     <context:component-scan base-package="org.minthurein.javabrains" />     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" >      <property name="driverClassName" value="org.postgresql.Driver"></property>      <property name="url" value="jdbc:postgresql://localhost:5432/db"></property>         <property name="username" value="postgres" ></property>      <property name="password" value="123" ></property>    </bean>  </beans>   jdbcDaoImpl.java      import java.sql.Connection;     import java.sql.ResultSet;     import java.sql.SQLException;     import java.sql.Statement;     import javax.sql.DataSource;     import org.minthurein.javabrains.model.Circle;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component;     @Component     public class jdbcDaoImpl {         @Autowired         private DataSource dataSource;           public Circle getCricle(int circleId){         Connection conn=null;         Statement stmet=null;     //  System.out.println("ID"+circleId);          try{           conn = dataSource.getConnection();           System.out.println(conn+">>>>>>>");           conn.setAutoCommit(false);           stmet = conn.createStatement();           String sql="SELECT * FROM circle WHERE ID="+circleId;           Circle circle=null;              ResultSet rs=stmet.executeQuery(sql);           if(rs.next())           {              //  System.out.println(rs.getString("name"));              circle=new Circle(circleId,rs.getString("name"));           }       rs.close();       stmet.close();       conn.commit();       return circle;     }   Error Console


Make Ubuntu 17.10 gnome panel by "dash to panel" transparent forever

I want to make Ubuntu panel (made by "dash to panel" extension) transparent forever, Now it's transparent when desktop is active and solid when any kind of window is active, like on this picture(panel is bottom :P).


Error when starting deluge daemon on systemd

trying to start deluge daemon (deluged) on Ubuntu 15.10 but I'm getting this error on the status:  chris@fileserver:~$ systemctl status deluged ● deluged.service - Deluge Bittorrent Client Daemon    Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)    Active: failed (Result: start-limit) since Mon 2015-10-26 09:52:26 EDT; 51min ago   Process: 1340 ExecStart=/usr/bin/deluged -d (code=exited, status=1/FAILURE)  Main PID: 1340 (code=exited, status=1/FAILURE) Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Unit entered failed state. Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Failed with result 'exit-code'. Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Service hold-off time over, scheduling restart. Oct 26 09:52:26 fileserver systemd[1]: Stopped Deluge Bittorrent Client Daemon. Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Start request repeated too quickly. Oct 26 09:52:26 fileserver systemd[1]: Failed to start Deluge Bittorrent Client Daemon. Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Unit entered failed state. Oct 26 09:52:26 fileserver systemd[1]: deluged.service: Failed with result 'start-limit'.


How do I write test class for the below code?

I am new to Salesforce and I was playing around. So I have a vf page in which I am displaying a modal and closing it once its done. The functionality is working well. I'm just stuck at how to write a test class for it. Can anybody help me out here?  public class TrialClass {     public boolean displayPopup {get; set;}     public void closePopup() {            displayPopup = false;     }      public void showPopup() {              displayPopup = true;         } }


Formula for sum of all binomial coefficients $\binom{n}{k}$ where $k$ is divisible by 4

Can I please get some help finding a formula (in terms of $n$) for the sum of all binomial coefficients $\binom{n}{k}$ such that $k$ is divisible by 4? Ex) when $n=9,  \binom{9}{0} + \binom{9}{4} + \binom{9}{8}=136$. My first intuition is to solve for the sum of $\binom{n}{4k}$ but I am worried that I will be over counting.


Does a multiclassed rogue/barbarian get sneak attack almost always?

The rogue gets a sneak attack on attacks where you have advantage.  Barbarians have advantage on attacks using strength with the reckless attack feature, which doesn't seem to have a limit on usage.  Does that mean I would be able to use the sneak attack on every attack using strength?


I've been trying to understand the difference between the notion of smooth (which I understand well) and Riemannian (which I am newly acquainted with).   The definition in the tag for 'riemannian-geometry' is as follows: Riemannian manifolds are smooth manifolds with an inner product smoothly attached to the tangent space of each point.  If $X$ is a a smooth $n$ manifold, then we always have $T_p(X)\cong\mathbb{R}^n$ (as vector spaces) which therefore, by pulling back pushing forward and borrowing the dot product on $\mathbb{R}^n$, it follows that $T_p(X)$ has perfectly good inner product. But, I am supposed to believe that this does not always vary smoothly with $p$. I'm having trouble believing this. Can someone show me a relatively simple manifold which is smooth but not Riemannian?


if(context.getClass().getSimpleName()) does not work

textView.setText(context.getClass().getSimpleName());   Why does this code works and sets the textView  "App" , BUT whith if   if(context.getClass().getSimpleName() == "App") {            holder.textView.setTextColor(Color.RED);        }   It does not work.  Why doesn't it? Sorry for dumbness. I'm new in this


How do I restore missing Launcher and Panel in Unity?

I had this Ubuntu infinite login loop problem, and after searching the forum, I did these steps.  Ctrl + Alt + F6  ls -lah   I found -rw------- 1 root root 20 Dec .Xauthority  So I did chown username:username .Xauthority as mentioned by someone in the forums.  After this I tried to login from my user, and it worked, but now I'm facing a new problem, that is, the Launcher and Panel are missing.  Did I do anything wrong ?  Further I did  dconf reset -f /org/compiz/   But it gave an error   error: cannot autolaunch D-Bus without X11 $DISPLAY   How do I solve this problem?


recover NTFS partition after running ntfsfix on the disk instead of the partition

Originally my NTFS partition which occupies the whole external drive(1.8T) was having problems reading one file. It was probably corrupted, so I attempted to fix it by using ntfsfix on the partition. However, by accident, I run it on the device instead: ntfsfix /dev/sda , instead of ntfsfix /dev/sda1.   Now the system no longer detects the partitions, and if I try using cfdisk, it just interprets it as having multiple smaller partition, probably because it can't read the original one which was overwritten.   Is the partition recoverable at this point? Or at least a portion of the data? If so, how?


Problem with function calls that returns function and assigned to variable as expression

I've seen a code like this:  function operationType(type){     return function(a,b){         console.log(`It's a ${type}`);         return a+b;     } } const sum=operationType(type);    has only one parameter called type? It looks like when i call the sum function it's only consider the returned  function  And what i don't understand is they way arguments are passed when the function is called like this sum(4,4) and returns :  It's and addition 8   How can we call the function sum(4,4) when the operationType(type) function is function that's is really defined.  What I really want to say is here : const sum=operationType('addition') we do not pass the anonymous function that calculate the sum,how does it guesses??  How can sum(4,4) = operationType('addition').I'm really lost


i would please to extend the size of nvme0n1p5 partition with the unallocated partition its on a dual boot machine. any suggestion please.


how to concatenate (variable + object key names) to get the object values in dot notation

Assuming I've a JSON object like this:  var myObj = {     'question1': {         'option1': 'foo',         'option2': 'bar',         'option3': 'baz'     },     'question2': {         ...     },     'question3': {         ...     } };   And since its children always has a number in its keys, I want to do a loop and concatenate the loop's index to the object keys, and get the values in the dot notation method...   So, I guess to get the values, I need to do some thing like this:  myObj.'question'+i   How can I do the concatenation right?


Prove that if $0\le p_n< 1$ and $S=\sum p_n< \infty$ then  $\prod (1-p_n)>0$. Hint given: First show that if $S<1$, then $\prod (1-p_n)\ge 1-S$.   Attempt: I was able to show the hint by using recursion setting $A_n=\prod_{i=1}^{n}(1-p_i)$ re expression the $\prod (1-p_n)$ as $1-S+\sum_{n_1, n_2=1,n_1<n_2 }^{\infty} p_{n_1}p_{n_2}-..... $ and observed that every subsequent term is less than the previous term hence  $\prod (1-p_n)\ge 1-S$ which is $>0$ if $S<1$ but am unsure about how to extend it to $S\ge1$.


Periodic function such that $f(x)+f'(x)\geq 0$ is non-negative.

How does one prove that a real valued periodic, continuously differentiable function $f(x)$ such that $$f(x)+f'(x)\geq 0$$ must be non negative?  I have no counterexample, but do not know how to prove this with the Mean Value theorem.


I am unable to install git on my ubuntu 12.10 system. I followed-  sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git-core   sudo apt-get update gives me the error-  Err http://security.ubuntu.com quantal-security/main amd64 Packages   404  Not Found Err http://security.ubuntu.com quantal-security/restricted amd64 Packages   404  Not Found Err http://security.ubuntu.com quantal-security/universe amd64 Packages   404  Not Found Err http://security.ubuntu.com quantal-security/multiverse amd64 Packages   404  Not Found  Err http://archive.ubuntu.com quantal-updates/main amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal-updates/restricted amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal-updates/universe amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal-updates/multiverse amd64 Packages   404  Not Found  Err http://archive.ubuntu.com quantal/main amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal/restricted amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal/universe amd64 Packages   404  Not Found Err http://archive.ubuntu.com quantal/multiverse amd64 Packages   404  Not Found   Then some failed to fetch errors and finally-  E: Some index files failed to download. They have been ignored, or old ones used instead.   When I run sudo apt-get install git, I get-  Building dependency tree        Reading state information... Done The following extra packages will be installed:   git-man liberror-perl Suggested packages:   git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn   git-email git-gui gitk gitweb The following NEW packages will be installed:   git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 6,800 kB/6,824 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated!   liberror-perl git-man git Install these packages without verification [y/N]? y Err http://archive.ubuntu.com/ubuntu/ quantal/main git-man all 1:1.7.10.4-1ubuntu1   404  Not Found Err http://archive.ubuntu.com/ubuntu/ quantal/main git amd64 1:1.7.10.4-1ubuntu1   404  Not Found Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.7.10.4-1ubuntu1_all.deb  404  Not Found Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_amd64.deb  404  Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have just set up ubuntu and this is the first I tried installing. Please help.


Link to "review" doesn't show up in the top bar on child metas for certain amounts of rep

The situation: as of now, I have 781 rep on  (a beta site). This grants me access to the First Posts, Late Answers, Close Votes, and Reopen Votes queues on main, as well as . On main, I have a link to "review" in the top bar. On meta, however, . If I go directly to , though, I can access the queues just fine.   This appears to be a bug of some sort - once I have access to at least one review queue on meta (which happens at 500 rep on beta sites), I should see the "review" link in the top bar.   Note that there seems to be some amount of rep between 781 and 6331 that causes the "review" link to appear on meta - I have 6331 rep on , and .


Why do the Effects of Some Magic Wear Off After the Caster Dies, While Other Magic Continues On?

Straight forward question, really.   Why is it that some magic wears off after the caster dies, whereas other forms of magic stick around long after the casters death?  In the Half-Blood Prince, we learn that Lily Potter had once transfigured a lily into a fish for Professor Slughorn, and that when Lily died, professor Slughorn found the bowl that held the fish to be empty (i.e. the effect of the magic wore off). Additionally, towards the end of Half-Blood Prince, Dumbledore casts a full body bind on Harry, that is lifted after Snape kills Dumbledore.  However, in other places throughout the series, we see that the death of a witch/wizard does not necessarily result in the effects of the magic they have cast disappearing. For instance, the permanent sticking charms that Sirius placed on the decor in his bedroom in the House of Black (or for that matter, the ones that Sirus's mother places around the house) or the curses that Moody places on the entrance way to the House of Black to prevent Snape from entering/speaking of the house (tongue binding curse, and the dust corpse of Dumbledore). I also think Mr. Weasely references a biting teapot set that passed from a witch to a muggle in Chamber of Secrets.  So what is it that causes some magic to wear off after death? Is it the type of magic (i.e. transfiguration requires a higher concentration of magic, therefore is less likely to continue after the caster's death)?  Speculation is welcome, but cannon support will be helpful.    Please note, I did find  which addresses what would have happened to Hermione's enchantment on her parents' memory had she died, but it did not fully explain why some magic outlives its caster (in my opinion).   Additionally, as pointed out by Phantom42 in the comments, there is  which addresses that some magic lives on past the time the wizard who casts it passes, while other magic does not (giving examples of where we see each in the books), and  which asks if a spell is forever, but gets the same response that some spells are, while others are not.  What I want to know is WHY some magic lasts pasts its caster's death, while other magic does not.


How do I split a large MySQL backup file into multiple files?

I have a 250 MB backup SQL file but the limit on the new hosting is only 100 MB...  Is there a program that let's you split an SQL file into multiple SQL files?


Is it possible to change the Environment of a parent process in Python?

In Linux When I invoke python from the shell it replicates its environment, and starts the python process. Therefore if I do something like the following:  import os os.environ["FOO"] = "A_Value"   When the python process returns, FOO, assuming it was undefined originally, will still be undefined. Is there a way for the python process (or any child process) to modify the environment of its parent process?  I know you typically solve this problem using something like  source script_name.sh   But this conflicts with other requirements I have.


I am dilemma to decide which one to use, either to use Regex.Replace or to use Regex.Matches if you have to perform some logic on each matches to generate the replaced value.   Scenario: Reading a file (which can vary in the size) and then using the Regular expression to replace the matches. replaced value for each match is different and is generated by some logic.  Approach 1: Read the complete file, then find all the matches and then I do the foreach or for loop and replace them one by one.  Approach 2: Read the complete file, then uses the Regex.Replace method with the , where MatchEvaluator function performs the logic and returns the replaced value.  There is an article I would like to link here, which somehow gives me a feeling to not use, Regex.Replace. Link:


What are the entire functions $f$ such that $|f'(z)| \leq |f(z)| \ ? $

Could someone advise me on how to determine all entire functions $f$ such that $|f'(z)| \leq |f(z)|, \forall z\ ?$  Hints will suffice, thank you.


When compiling with Makefile, I got error   /tmp/ccQ0q0g5.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status   It seems that the some .so or .a files missing, but how can I know which one is missing from such an error report?  Makefile:  CFLAGS = -Iinclude/ CFLAGS += -m32  LDFLAGS = -Llib -llits -lrt -lpthread -Wl,-R,'lib' server:server.cc     gcc -o server $(CFLAGS) $(LDFLAGS) server.cc


How to specify a language in code block?

Possible Duplicate:          I don't know how Markdown recognize which language used in the code blocks. But sometimes it doesn't guess right.


If there is no source then also there is electromagnetic waves described by Maxwell equation. how if there is no source then existence of EM waves. What gives energy to this EM  waves. Is it vacuum fluctuation or something else?


A theorem is defined to be a mathematical statement that is proven to be true. The statement $1+1=2$ has definitely been proven in the history of mankind (Russel and Whitehead had once proven it in the book Principia Mathematica).   So can it be considered as a theorem? What determines something to be a theorem (besides it being proven to be true)?


How to configure Micromax 352g USB Modem?

I want the driver software for my Micromax 352g USB modem for Ubuntu 12.04 LTS. On Ubuntu 10.04 sakis3g was working well, but it is not working on Ubuntu 12.04 LTS.


Compute approximately the probability that more than 50 of the observations of the random sample are less than 3.

Let $X_1,X_2,...,X_n$ be a random sample of size $n = 72$ from a distribution with probability density function $f(x) =\begin{cases} 1/x^2,& 1 < x < infinity\\0,&\text{otherwise}\end{cases}$ Compute approximately the probability that more than $50$ of the ob- servations of the random sample are less than $3$.


Wormhole-like tunnels used to look back in time

I read a book a while ago in which a device is invented which opens up "tunnels" back through time. These tunnels cannot be traveled through, but can be used to view what happened in the past. I believe it starts out narrating the invention of the device, then skips ahead to after it is widely in use. There is another device created, a cloak of sorts,  which hides the user from the view of someone using the tunnel device. Does this ring a bell with anyone?


Parameterized queries In asp.net C# and Entity Framework

I've been working on an ASP.NET/C# project and ajax, and now that my ajax call works I'd like to make it secure.  For now, it works like this :   [HttpPost] public ActionResult CheckReturn(TitreWrapper titreWrap) {     string titre = titreWrap.titre;      var contexte = new intranetEntities();     var ajax = contexte.evenementiel.SqlQuery("SELECT * FROM evenementiel WHERE titrebri_evenementiel LIKE '%'+titre+'%' ORDER BY datecreation_evenementiel DESC;");     ViewBag.ajax = ajax;      return PartialView(); }   which is, I know, extremely insecure.  So I searched, and read about parameterized queries, and tried this :  [HttpPost] public ActionResult CheckReturn(TitreWrapper titreWrap) {     string titre = titreWrap.titre;      SqlParameter[] param = new SqlParameter[1];     param[0] = new SqlParameter("@titre", titre);      var contexte = new intranetEntities();     var ajax = contexte.evenementiel.SqlQuery("SELECT * FROM evenementiel WHERE titrebri_evenementiel LIKE '%@titre%' ORDER BY datecreation_evenementiel DESC;");     ViewBag.ajax = ajax;      return PartialView(); }   which didn't work as intended :( It just changed the query (which is, in a sense, extremely secure now, you can't do anything else than getting the results of the premade query).  I don't know how to do it without deeply changing my code.   Anybody got any idea ?


You are not hired because you are qualified.   I think this means you are hired but it is not because you are qualified. But I think this can  also means you are not hired, and the reason for it is that you are qualified.   Does this ambiguity really exist or do I mistake anything?


Could space itself be made out of particles?

Are there any theories out there that discuss the idea that space itself could be made out of particles?


Why is double space replaced by single space when enclosed in backticks in comments?

I was trying to put a small line of code in a comment, but I noticed that the multiple spaces in the comment enclosed in backticks(`) were replaced with single ones.  To make it clear, I wrote this as raw data in the comment:  replace("       ", " ")   Note: ^ This is code indented with four spaces    And when I added the comment, it was appearing as this:        The  says:  _italic_ and **bold** text, inline `code in backticks`, and [basic links](http://example.com).   But when the multiple spaces are replaced with single ones, then perhaps, it won't help for code.


How to move an existing installation of Window 7 64bit to UEFI (from legacy)

I have a laptop that has Windows 7 64 bit Enterprise edition. It is already filled with plenty of Software and drivers.  The laptop (Dell E6220) supports booting through UEFI, but the insatllition was on legacy BIOS.  When I try to change the booting from Legacy to UEFI I get an error message that no boot device was found (the Windows 7 doesn't recognize as bootable). Is there any way I can configure the current install to allow booting from UEFI or do I have to format and reinstall?


Convergence of a sequence implies convergence of the norm of the sequence

If $\langle X_n \rangle$ is a sequence in $\mathbb R^n$ then $\lim\limits_{n\to \infty}X_n=A$. Show that $\lim\limits_{n\to \infty} \| X_n \| = \| A \|$ .   My thought process, $\| X_i \|= (\sum_{i=1}^n x_i^2)^{(1/2)}$ therefore be the multiplicative property of limits $x_i^2 = a_i^2$. Therefore the limit of norm of the components is equivalent to the limit of the corresponding limit of each component of the sequence.


How to view public Exchange calendars from iCal?

In my company, people use shared Exchange calendars to organize their work. They see all the public calendars in Exchange after they login. Sadly, this doesn't work for me on Mac: after adding the Exchange account in System Preferences I see only my own Exchange calendar and none of the shared ones. I read  about using delegation, but I don't know what e-mail to type there, as others see these calendars just as "public". Any hints?


Given $(a_n)$ with $a_n \geq a_{n+1} \geq 0$ show that if $\sum \sqrt{a_n a_{n+1}} < \infty \implies \sum a_n < \infty$

I'm having some difficulty solving this problem :     Given the sequence $(a_n)$ with $a_n \geq a_{n+1} \geq 0$ show that if $$\sum \sqrt{a_n a_{n+1}} < \infty \implies \sum a_n < \infty.$$    I first thought of using the Arithmetic Mean-Geometric Mean Inequality:   $$\forall{a,b} > 0: \frac{a+b}{2} \geq \sqrt{ab}.$$  Therefore, since $a_n \geq a_{n+1} \geq 0$ we have: $$\frac{a_n+a_{n+1}}{2} \geq \sqrt{a_n a_{n+1}} \;\; \forall{n} \in \mathbb{N}.$$  but I can't use the Direct Comparaison Test here since it will only work to show the other side of the implication $\sum a_n < \infty \implies \sum \sqrt{a_n a_{n+1}} < \infty$.


Normalizing raster using raster calculator in ArcGIS 10.3.1?

I have been trying to 'range standardise' or normalise my raster values from 0-100 and I know how to do this mathematically:     ("raster"-min("raster"))/(max("raster")-min("raster"))*100   and I have input this equation into the raster calculator using both the min() and max() and the .minimum and .maximum syntax.   Why are these not working for me? ArcGIS 10.3.1


Automatic "Zoom in" hypertext boxes in PDF

I remember long time ago, seeing PDF documents (such as online PDF versions of newspapers) that had hypertext boxes around paragraphs, such that when you clicked inside those boxes the surrounded paragraph will be zoomed in to exactly that paragraph in the Acrobat Reader window. I am not sure what tool was used to create those PDFs, and unfortunately I can't find one example at the moment.   Is it possible to reproduce such zoom-on-click feature with some pdflatex code? To repeat: the requested feature is to create hypertext boxes around paragraphs or figures that when clicked the PDF viewer would zoom in into that region.  This feature can be useful in PDFs with lots of structure in a given page, such as small paragraphs or figures or figure captions scattered around the page.  (Beamer has a "zoom in" feature (\framezoom) but it is not the same thing because that creates a new page with the zoomed region, and I just want to force the PDF reader to enclose the area in the same page by only zooming. I am also aware of marquee zoom in Acrobat but it is not what I am looking for because it is not aware of the content.)


When is it correct to capitalise 'earth'?

At the beginning of a sentence is obvious.  I'm referring to the following examples:        A handful of earth.   The earth under this house.   The earth beneath my feet.   What on earth?   The heavens above and the earth below.   The earth moved.   We returned quickly to earth.      Lower: 1,2,3,4 Upper: 7 Not sure: 5,6


Is there an exception to the prohibition against ending a sentence with “ ’s ” at work here?

The ’s can be used as a contraction representing a weak, unstressed word that is not pronounced.  It allegedly cannot occur in sentence final position.        She is not ready, but he is.   She’s not ready, but he is.   She’s not ready, but *he’s.      The last one is not grammatical there.  Similarly, here the last one is not grammatical:        He has not started yet, but she has.   He’s not started yet, but she has.   He’s not started yet, but *she’s.       claims this is because you cannot end a sentence with a weak form.  It backs up its point with reasonably scholarly documentation.  However, this does not seem to be invariably true.        Shall we go to the movies?  Yes, let us go.   Shall we go to the movies?  Yes, let’s go.   Shall we go to the movies?  Yes, let’s.      Unlike the third example in the first two sets, here in this case the third example is indeed grammatical, despite ending with a weak form.  Is this an exception to the rule, or is there another rule at work here?


No bluetooth devices recognized | problems with drivers (?)

I'm quite new to Ubuntu 20.04 (and Linux) and spent some time fixing my problem with bluetooth not being able to find any devices.  Not sure, but I think this is the closest to my problem. dmesg | grep -i 'blue' [    4.542033] Bluetooth: Core ver 2.22 [    4.542054] Bluetooth: HCI device and connection manager initialized [    4.542060] Bluetooth: HCI socket layer initialized [    4.542074] Bluetooth: L2CAP socket layer initialized [    4.542077] Bluetooth: SCO socket layer initialized [    4.711132] Bluetooth: hci0: BCM: chip id 70 [    4.712132] Bluetooth: hci0: BCM: features 0x06 [    4.728141] Bluetooth: hci0: BCM43142A [    4.728145] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000 [    4.730896] Bluetooth: hci0: BCM: firmware Patch file not found, tried: [    4.730901] Bluetooth: hci0: BCM: 'brcm/BCM43142A0-105b-e065.hcd' [    4.730902] Bluetooth: hci0: BCM: 'brcm/BCM-105b-e065.hcd' [    6.753354] Bluetooth: hci0: command 0x1003 tx timeout [    6.754147] Bluetooth: hci0: unexpected event for opcode 0x1003 [    7.707035] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [    7.707037] Bluetooth: BNEP filters: protocol multicast [    7.707042] Bluetooth: BNEP socket layer initialized [   21.550716] Bluetooth: RFCOMM TTY layer initialized [   21.550722] Bluetooth: RFCOMM socket layer initialized [   21.550729] Bluetooth: RFCOMM ver 1.11


How to include an overloaded operator << from another file in C++?

I want to be able to print the contents of a vector in C++ by using operator overloading.  The operator overloading is defined as follows in the debug.cpp file.  #include <iostream> #include <vector>  #include "debug.h" #include "card.h" #include "player.h"  using namespace std;  template <class T> ostream &operator<<(ostream &out, const vector<T> &vector) {         out << "[";         for (int i = 0; i < (int)vector.size(); i++) {                 out << vector[i];                 if (i < (int)vector.size() - 1) {                         out << ",";                 }         }         out << "]";         return out; }  ostream &operator<<(ostream &out, const Card &card) {         out << "[" << card.category << "," << card.players << "]";         return out; }  ostream &operator<<(ostream &out, const Player &player) {         out << "[" << player.num_cards << "," << player.categories << "]";         return out; }   I also have a debug.h file which looks as follows.  #ifndef DEBUG_H # define DEBUG_H  #include <iostream> #include <vector>  #include "card.h" #include "player.h"  using namespace std;  template <class T> ostream &operator<<(ostream &out, const vector<T> &vector); ostream &operator<<(ostream &out, const Card &card); ostream &operator<<(ostream &out, const Player &player);  #endif   This header file is used in my main.cpp file which looks as follows.  #include <iostream> #include <vector>  #include "debug.h" #include "card.h" #include "player.h"  using namespace std;  // Implementation intentially left blank for decluttering. vector<Card> init_cards(const int &SET_SIZE, const int &NUM_SETS, const int &NUM_PLAYERS) {  }  // Implementation intentially left blank for decluttering. vector<Player> init_players(const int &SET_SIZE, const int &NUM_SETS, const int &NUM_PLAYERS) {  }  int main(int argc, const char **argv) {         int SET_SIZE = 4;         int NUM_SETS = 3;         int NUM_PLAYERS = 3;          vector<Card> cards = init_cards(SET_SIZE, NUM_SETS, NUM_PLAYERS);         vector<Player> players = init_players(SET_SIZE, NUM_SETS, NUM_PLAYERS);          cout << cards << endl;    // [1]         cout << players << endl;  // [2]          return 0; }   At the complete end of this file there are the lines [1] and [2] which should print the cards and the players vectors. However, this only works if I put the overloading function from the debug.cpp inside of the main.cpp file. The code shown here does not work and gives me the following error.  g++ -Wall -Wextra -Werror -pedantic -std=c++11 -Wno-unused-parameter -I inc -c -o obj/debug.o src/debug.cpp g++ -Wall -Wextra -Werror -pedantic -std=c++11 -Wno-unused-parameter -I inc -c -o obj/main.o src/main.cpp g++ -Wall -Wextra -Werror -pedantic -std=c++11 -Wno-unused-parameter -I inc -o quaternity obj/debug.o obj/main.o /usr/bin/ld: obj/main.o: in function `main': main.cpp:(.text+0x2b0): undefined reference to `std::ostream& operator<< <Card>(std::ostream&, std::vector<Card, std::allocator<Card> > const&)' /usr/bin/ld: main.cpp:(.text+0x2d8): undefined reference to `std::ostream& operator<< <Player>(std::ostream&, std::vector<Player, std::allocator<Player> > const&)' collect2: error: ld returned 1 exit status make: *** [Makefile:17: quaternity] Error 1   As can be seen the overloaded function cannot be found. How can I make it that the overloaded function will be found?  I already tried to put a namespace std { ... } statement around the declaration of the overloaded function but this did not work. The confusing thing is that all of this does work when I put the overloading functions in the main.cpp file but not when I include them from the debug.cpp file.


Show that the one point compactification of $\mathbb{Q}$ is not Hausdorff

Definition: one point compactification     Let $X$ be any topological space, and let   $ \infty$  be any object   which is not already an element of $X$. Put $ X^{*}=X\cup \{\infty  \}$, and topologize $X^*    $ by taking as open sets all the open   subsets $U$ of $X$ together with all subsets $V$ which contain $\infty  $  and such that $X\setminus V$ is closed and compact   Show that the one point compactification of $\mathbb{Q}$ which is $\mathbb{Q}^*$ is Not Hausdorff.  What to do? What...  My Attempt:  Suppose to the contrary $\mathbb{Q}^*$ is Hausdorff, then we take two points $x$, $\infty \in \mathbb{Q}^*$, $x \neq \infty$, and produce disjoint open sets $U,V$ such that $x \in U$ and $\infty \in V$  By definition, we know that $\mathbb{Q} \backslash V$ is a closed and compact space such that $x \in U \subseteq \mathbb{Q} \backslash V$  We wish to produce a contradiction such that $\mathbb{Q} \backslash V$ is not closed, or not compact. But we know that $\mathbb{Q} \backslash V$ has to be closed since $V$ is open, therefore we need to show $\mathbb{Q} \backslash V$ is not compact.  Let $\mathcal{U}$ be an open cover of $\mathbb{Q} \backslash V$. Since  $\mathbb{Q} \backslash V$ is claimed to be compact, then $\mathcal{U}$ has a finite subcover $\{U_i|i \in F\}$, $F$ is finite in  $\mathbb{Q} \backslash V$. Then for all $x \in \mathbb{Q}\backslash V$, $\exists i \in F$ s.t. $x \in U_i$ (...Ugh everything seems fine...)  Can someone provide me with some help as to how to go on with this proof? Thanks a bunch.


Path of least resistance vs. short circuit

Some sources on the web claim that "electricity follows the path of least resistance" is not true, e.g. . However, in every explanation of "short circuits", the author says that current flows through the short because it's following the path of least resistance. How do I reconcile these two facts?


How to change variable for random.randint?

I'm trying to build a GUI for a random dice simulator, with the intended goal of the simulator being to change the die size to different polyhedral dice (ex. a 20 sided die, a 10 sided die, etc.). My problem is that for the random.randint (1, b), I'm having trouble using a button to change the variable to a different number. What can I do?  I've tried having a command for the button such as:  def d4():     b = 4   and  def d4():     b.set(4)   Code setup:  a = 1 b = 20  def rollagain():     result = random.randint(a, b) def d4():     b = 4  # a bunch of buttons and labels  b_d4 = Button(bones, text = "D4", height = 1, width = 8, command = d4) b_roll = Button(bones, text = "Roll Dice", width = 8, command = rollagain)  # button placements  bones.mainloop   The starting value for b is 20, as I would like the result to be a value for a 20 sided die. When I click the d4 button, I would like to change b to 4, to represent a 4-sided die. But everything I've tried so far has resulted


Why is shape with shrinkwrap modifier flat?

I have a sphere and stretched. I have made a curve and i want that curve to be shrinkwrap on it. I add the shrinkwrap modifier on to it but it lost the original shape. Its flat on the surface.     How can i get the original shape without going flat on the surface. Any suggestion or help


Recall that a space $X$ is locally compact if for any point $x$ in $X$, and any neighborhood $U$ of $x$ in $X$,there is a neighborhood $V$ of $x$ in $X$,and a compact subspace $C$ of $X$ such that $x \in V \subset C \subset U.$ Let $X$ be a locally compact space, and let $f : X \rightarrow Y$ be a continuous, closed surjection. Suppose that $f^{-1}(y)$ is compact for each $y \in Y$ . Show that $Y$ is locally compact.


"Let’s start speaking" or "Let’s start to speak"

Which one is correct and more common? is there better way?        Let’s start speaking English.   Let’s start to speak English.


I have made a mailsender in C#.but the program does a error when I run it.  this is my code:  MailMessage mail=new MailMessage("shahidi83am@gmail.com","shahidi83am@yahoo.com","subject","this is a test");         SmtpClient smtp =new SmtpClient("smtp.gmail.com");         smtp.Port=587;         smtp.Credentials= new System.Net.NetworkCredential("username","pass");         smtp.Send(mail);   and this is the error:     System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 79sm6578238wrc.34 - gsmtp


Having installed Ubuntu 13.04 I've downloaded Ubuntu 13.10 ISO to upgrade from it.  answer doesn't work because there is no cdromupgrade file in the mounted ISO disk.  How can I upgrade 13.04 to 13.10 using the ISO image or CD/DVD media?


How do I add and remove the Workspace Switcher launcher from the Unity launcher?

How can I remove the Workspace Switcher launcher from the Unity dock?


What program do I use to create a manual or catalog?

The last time I did any desktop publishing it was ten years ago and I used Microsoft Publisher. Now I need to put together a product user manual, troubleshooting guide, and a new catalog. I figured Adobe would be the place to start, but their product features section focuses so much on cross-platform functionality and collaboration that I can't tell which product, if any is used to lay out a multi-page document. I'm primarily a Windows user on a desktop. I can afford software licenses but I'm not married to Adobe. Where do I start?  EDIT: I'm a mechanical engineer with very little desktop publishing experience. The documentation I'm trying to create includes the installation manual for my product, a separate troubleshooting manual, and a product line catalog. I have two engineers working for me contributing content. We don't all have Publisher so I would prefer to find another program, preferably one with the smallest possible learning curve. If the results look too rough, I can always turn the result over to a professional and say "Make it look like this, only better."


Who will you voting for in the Lok Sabha Elections 2014? Whom will you voting for in the Lok Sabha Elections 2014?   Which one is correct, and why? Please explain in detail.


Does the Hideous Laughter spell make a flying foe prone and cause the foe to fall?

A witch that's using the flight hex to fly 20 ft. up in the air fails her saving throw against my halfling bard's hideous laughter spell. The  spell description says that an affected creature  collapses into gales of manic laughter, falling prone. The subject can take no actions while laughing, but is not considered helpless.  Does the witch become prone in the air? Would the phrase take no action effectively mean that the witch falls to her death, grappled and subsequently slain by her own foolishly placed black tentacles?


How to stop kernel messages from flooding my console?

I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages.  Klogd is not running (I'm using rsyslog) Rsyslog config does not direct anything to the console Even tried stopping rsyslog altogether  Still something is flooding my console with kernel log messages. What it is and how do I make it stop? Update: These are the messages generated by the kernel (hardware, iptables, etc.), stuff that goes out of /proc/kmsg, like this:  Shorewall:pub2loc:DROP:IN=br0 OUT= MAC=xxx SRC=xxx DST=xxx LEN=60 TOS=0x00 PREC=0x00 TTL=128 ID=15731 DF PROTO=TCP SPT=63767 DPT=3493 WINDOW=8192 RES=0x00 SYN URGP=0


In Ubuntu 17.10, how do you get your workspaces on both monitors?

I just upgraded to Ubuntu 17.10 from 17.04. When I try to switch workspaces, it only does so on the primary monitor. The secondary monitor can not switch workspaces (It is stuck on Workspace 1). How can I switch workspaces on both monitors?


How do I change my keyboard shortcuts in xubuntu?

I am a new Xubuntu user. Earlier when using Gnome, I was able to configure several desktop shortcuts, particularly for navigation between workspaces.  But, now in Xubuntu, I cannot find those options.  Where can I find those options.


"factory for producing aluminium strips" VS "factory to produce aluminimum strips"

A initiates discussions with B to build a factory for producing aluminium strips.   A initiates discussions with B to build a factory to produce aluminium strips.      I am not certain whether this is a question well asked, or ever worthy of being answered. Is it a matter of which preposition should be used to modify factory?  Could you tell me which preposition is better here and why.


What's the difference between manga, manhwa, and manhua?

I understand that manga is from Japan and read from right to left, whereas manhwa is from Korea, read from left to right, and manhua is from China, and read from right to left (If I'm not mistaken). Are these the only differences between the three, or is there something else?


Can't install Google Chrome on Ubuntu 16.04

I am running Ubuntu 16.04 off a USB stick. I have tried to install Chrome via the Software Center and it says installing and then goes back to "install" a second later.  I have also tried via Terminal and have failed. I am fairly new to Ubuntu, but not Linux as a whole.


I was thinking, inspired by mathlinks, precisely from , if there exists a continuous real function $f:\mathbb R\to\mathbb R$ such that $$f(f(x))=e^x.$$ However I have not still been able to come up with an answer. I would like to share this problem with you.   I'm not aware of its level, though i wouldn't classify it as homework, so I'm not giving it the homework tag. If anybody feels that this problem is in reality easy or looks like an homework, please feel free to add that tag.    EDIT for those interested in the complex case, I've found this on MathOverflow. It's the first answer. Wow!


Is there such a thing as a restore point in Ubuntu?

Windows has this. Basically what I want is to record the state of the system either manually or periodically and then restore to that point if required. For example, before upgrading the distribution, or before installing a certain package.  What would be the easiest way to do this?


Is there a word for "people who are computer illiterate"?

Just as there is "computerate" to describe those who show familiarity with, and ability to use computers, is there a word to describe the opposite, those who are computer illiterate? The word I'm looking for includes both those who have access to computers but, for some reason, choose to keep away from them, and those who can read and write but have never seen a computer in their entire lives. I'm not looking for insulting or pejorative terms.


I am a user of the social network Snapchat and would like to be able to upload screenshots and other items from my gallery up to my story.   I have noticed that users of iOS have done it and I was wondering if that there is some kind of iOS emulator that would allow me to run this application (which I believe is LaterSnap/LaterPic or Upload Snap).  If there isn't a way to run the application on Android, is there any free application that would allow me to upload pictures to my Snapchat story? (SuperSnap doesn't allow that and has become obsolete with the latest Snapchat update)


What TV movie has a man seeing glimpses of dystopia in his utopian world?

This movie came out around 2000 and was created for one of the cable networks (and never in the theaters).  I think it was on the original Sci-Fi Channel or maybe the USA Network, but really not sure.    It's about a 1950's American-style utopian world.  The main character, if I remember correctly, worked at a car dealership.  I recall him looking like Jon Hamm, Adrian Pasdar, or Scott Bakula, but I may be way off there (and I didn't see the movie in their filmographies).  He drives his nice car home, and the whole town is beautiful, as are its people and white picket fence style homes.     He suddenly starts seeing weird things.  For example, instead of people driving cars, they're actually riding rickety bicycles.  The manicured, paved streets are actually dirt roads.  Houses are, in reality, tiny shacks.  Instead of people's clothes being immaculately maintained, everyone's really wearing filthy rags.  And instead of delicious food, they're eating something that looks like rotten garbage.  Something is making everyone believe they live in a beautiful, perfect society, but it's mind manipulation that's almost on the scale of the movie "The Matrix."    He befriends a pretty lady, and together they travel outside their town and try to find answers.  They even meet an outside militarized government, whose officials are interested in understanding and helping him.  This other city's infrastructure appears to be state-of-the-art and well funded.  The officials all have nice uniforms.  However, their environment is also under the same influence that's making everyone see things differently than what they really are.  The main character somehow sees through this illusion too, and realizes this fake prosperity is affecting others outside his home town--maybe the entire world!    The movie ends with       the man and woman eventually running into some elderly maintenance man in a forested area.  The maintenance man's job is to service a machine that alters everyone's perception of reality.     I posted about this a couple of years ago on another site, and somebody took a guess that it was "The Prisoner" but unfortunately that's not it.  I didn't really explain it well the first time, so hopefully this is clearer.


I'm using QGIS 2.6.1 and would like to label US state polygons such that each border is lined with the label of its two states. Something like this:        It appears that the current labeling engine only offers the ability to label above, on, or below the line. This results in something that looks more like this:        What I need is options for interior vs exterior labeling. Is there some way that I can achieve this effect? Any tips?


Just to be very clear, this question is very much related to, but distinct from a previous question I asked a few years ago:  - I still am not quite satisfied with SevenSidedDie's very excellent answer (they usually are, aren't they?). This question asks does light penetrate through the darkness spell or does darkness cast a shadow. And it is distinct from , which asks if the darkness blocks vision through it.  Is the Darkness spell visible from the outside? To make the question more clear, if darkness were cast on the surface of a flat plane, would I see a spot of darkness on the ground, or would I see a hemisphere above the ground?


Algebra: What allows us to do the same thing to both sides of an equation?

I understand that the expressions on both sides of an equal sign are the same entity, and I know that when you modify one side, the other must be changed because it is referring to the same thing. What I do not understand is why making a new equation (adding or taking away from an expression) allows one to know what an unknown represents. What about equations lets us do this?


I am adding an alias to search for a file for a string that leads to me a snippet.   alias snippets="find /oneDrive/Work/Snippets -type f -exec grep -Hi $1 '{}' + "   And calling as   snippets "target"   And getting error as   find: target: unknown primary or operator   Any help greatly appreciated.


What profilers have you used when working with .net programs, and which would you particularly recommend?


Is there a word for when a song leaves out a word or phrase despite it perfectly fitting?

I'm gonna be honest, I've been hearing my fair share of Steven Universe music from devices I'm not in control of from across the room. In a few songs I've noticed they will leave out a word but I could tell you exactly what word was implied and I had to see if anyone knew a term for it.  For example, in the song "Strong in the real way", comes this excerpt: "... can't you see she's out of control and overzealous? I'm telling you for your own good, and not because I'm- " and it cuts out there despite it very clearly implying the word "jealous".  I hope this is detailed enough that someone will be able to know what I'm talking about. I've looked for this on Google but haven't been able to find anything.


How to evaluate the integral$ \frac{\log x}{1+x^2}$

How might I evaluate this integral: $$\int_0^\infty \frac{\log\ x}{1+x^2}dx$$  I tried substituing $x = \tan\ v$ but that didn't get me anywhere. Any suggestions as to a thought process for this one?


What is this device on top of a Federation Runabout?

The Bajoran/Federation outpost Deep Space Nine has several Federation runabout vessels assigned to it. One of them, either the Ganges or the Rio Grande, can occasionally be seen with a device attached to the top of the vessel. Here is a screenshot showing the runabout in question beside another one without the device:    Does anyone know what this device is or why only one runabout has it?


About Lovecraft's style to start a sentence with 'For'

I'm reading my first ever novel in English (French is my mother tongue): Tales of Horror by H.P Lovecraft. Surprisingly, reading this book is fine for me, however there's a sentence construction I don't fully understand.  This is when Lovecraft is starting a sentence with For. He's using this style so often that I arrived at a point I really want to understand this way of writing. Random examples: From The Shunned House:  For on my ears rang the reverberations of that shocking scream, while my nostrils revolted at the stench which filled the place.  From Herbert West - Reanimator:  For that visitor was neither Italien nor policeman.  Could you please explain to me the purpose of adding For at the beginning of sentences like in these examples? Does this way of constructing a sentence has a particular name? I'm a bit confused by this style so I want to know more about it. Thanks for your answers


Inner Exception from async thread Owerwrites Outer Exception in .Net

Background: I have a async call, that somewhere deep down throws an exception... In my real application, it is a plugin that is running async, so I would like to wrap the exception and decorate the exception with the plugin name that the exception originates from.  But .Net throws away the outer exception, so additional details are lost,  I have made an example windows forms application with two buttons, and setup a general exception handler  Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);   Then one button:  private async void buttonThrowAndWrapExceptionAsync_Click(object sender, EventArgs e) {     _textBoxToSetTextOnGivenLastCall = textBox1;     try     {         await Task.Run(() =>             ThrowExceptionA());     }     catch (Exception a)     {         throw new Exception("B", a);     } }   the other button:  private async void buttonThrowAndRethrowNewExceptionAsync_Click(object sender, EventArgs e) {     _textBoxToSetTextOnGivenLastCall = textBox2;     try     {         await Task.Run(() =>             ThrowExceptionA());     }     catch (Exception)     {         throw new Exception("B");     } }   When I   throw new Exception("B", a);    in the context, Exception "A" occurs in the Application_ThreadException callback with no trace of 'B'... B does never appear, this is not what I would expect.  When I   throw new Exception("B");   Exception "B" appears in Application_ThreadException, and Exception "A" does not appear, this is to me understandable  In my 'real' application, I am contemplating making a 'hack' and just adding "A".ToString() to my "B" exception, but I know it is pretty bad, and I am sure we have lots of logic expecting to be able to wrap exceptions  BTW... using a background worker with exception handling in OnComplete works in the same way as the 'async' code here...  The example can be found here:    EDIT: After viewing the suggested  wich is simelar, and provides an answer to why, I am actually more interested in stopping this behaviour.  For now I have made an ugly hack... When Throwing my wrapper Exception, I wrap the wrapper B in a new Exception ProtectedFromASyncUnfoldException  throw new ProtectedFromASyncUnfoldException(new Exception("B", a));   This breaks the normal behaviour of InnerExceptions... and is not really what I wan't to do... any better sollutions?  Here's the Hack class:  public class ProtectedFromASyncUnfoldException : Exception {     public Exception InternalException { get;  }     public ProtectedFromASyncUnfoldException() {    }      public ProtectedFromASyncUnfoldException(string message)          : base(message) {   }      /// <summary>     /// Hack of exception.     /// Setting InternalException instead of innerException      /// to avoid strange behaviour of async exception handling in windows forms     /// that otherwise throws away all but the base exception     /// </summary>     /// <param name="message"></param>     /// <param name="innerException">transformed to InternalException</param>     public ProtectedFromASyncUnfoldException(string message, Exception innerException)          : base(message)     {         InternalException = innerException;     }      public ProtectedFromASyncUnfoldException(Exception innerException)          : this(innerException.Message, innerException) { }      protected ProtectedFromASyncUnfoldException(SerializationInfo info, StreamingContext context)          : base(info, context) { }      public override string ToString()     {         return base.ToString()              + Environment.NewLine              + Environment.NewLine              + "---------------------"              + InternalException?.ToString();     } }


After installing Ubuntu 11.10 on a new computer everything worked fine for a few weeks and now suddenly when starting up Ubuntu I get a blank purple screen with no "Ubuntu" splash and the 5 dots but the system does start up.  What has happened to loose the Ubuntu splash screen?  Also, I've checked in the Grub startup and it has quiet splash in the Linux line.   I have an ATI Radeon 5450 graphics card which needed nomodeset to be added to the Grub line when booting for the first time off the install CD but now this line has disappeared from the grub startup.  Can anyone help?


Why is Wifi not working on my HP laptop?

The wireless card is not working but the Internet is working good with Ethernet cable.   The output of lspci is :  02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)   At fist the card was working but sometimes it's disconnected, and have problem on coverage range, and sometimes it's not working at all   I tried many solutions on the Internet but now it's not working at all.  I don't know what to do :(


If X be a second countable space and N a base for the topology of X . Show that there is a countable base B for the topology of X such that B ⊂ N.

How can I prove that if X be a second countable space and N a base for the topology of X then there is a countable base B for the topology of X such that B ⊂ N.