Why is this the basis for the indiscrete topology?

Indiscrete topology only has $\{\varnothing, X\}$ where $X$ is the entire space.  I know this is probably a dumb question. Why is the basis (according to wikipedia) for this topology just $\{X\}$ instead of $\{\varnothing, X\}$?  I understand that $\{X\}$ satisfies the definition. Suppose $\mathcal{B} = \{X\}$   Then $\mathcal{B}$ covers $X$ - Check! For all $B_1, B_2 \in \mathcal{B}, \ldots$ - Trivially satsifed since we don't have $B_1, B_2$   But how does this basis generate $\varnothing$?


I have an array that is initialized like:  Element[] array = {new Element(1), new Element(2), new Element(3)};   I would like to convert this array into an object of the  class.  ArrayList<Element> arraylist = ???;


Original post over here:   Basically, it seems that ever since I accidentally overloaded my filesystem (it's not currently and there don't seem to be any errors on disk), I've been seeing single-quotes, only when using ls in filenames that have spaces in them. I'm not sure why exactly this is happening. How would I go about changing it back to the way it was?


Measure theory, product of $L^2$ functions, convergence in $L^1$

How can I prove this?  Let $f_n \to f$ in $L^2$ and $g_n \to g$ in $L^2$. Then $f_n \cdot g_n \to f \cdot g$ in $L^1$.


Pull OpportunityContactRole value into VisualForce Template related to an Invoice

We're setting up a workflow to notify the finance department when an Opportunity owner flags an invoice as "ready to be sent".  I've got a VF email template, relatedTo="invoice", and I want to pull out:  {!relatedTo.Opportunity__r.OpportunityContactRoles}   and then cycle through that to find the billing contact.  When I do that, I get the error: Aggregate Relationship is used in an unsupported complex expression  I've done some digging and understand that there is limit to the depth you can traverse in parent/child relationships, but is there any other workaround? It is possible to include some kind of lookup field on the Invoice object (which is custom), to pull or make the OpportunityContactRoles directly related to the invoice object so it can be referenced directly.  Any ideas / experience with this?  Sample Code when Nested:  <apex:repeat value="{!relatedTo.Opportunity__r.OpportunityContactRoles}" var="opp">     <apex:repeat value="{!opp.Contact}" var="cx">         {!cx.Name}     </apex:repeat> </apex:repeat>


Will Artificial Intelligence eventually be capable of feeling emotion?

My coworkers and I are having an argument regarding AI feeling emotions. Basically, the overarching question is whether or not AI will eventually be able to feel emotions. Here are the arguments.  First, we do not understand emotions within our own human brains, nor within any other living organisms. However, they do exist. These emotions could be produced with algorithms or could be produced using some method we cannot even comprehend. So, if centuries down the road, we do understand emotion, and program it into something, that AI could potentially feel emotion.  Second, AI is currently defined by, usually, something involving program code. However, if some day, we discover that it is more efficient or more productive to produce AI by building a neuron-connected system similar to the human brain, that would still be AI, though seeming rather similar to a real human brain.  So, from your perspective, does the possibility exist that AI can/will feel emotion at some point in the future?


I am new to android and i am trying to make a stopwatch but dont know whats wrong with my code. I am getting this error-                                                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   Please help.  StudyTimeFragment.java  package com.studypal.khadija.studypal;  import android.app.Fragment; import android.os.Bundle; import android.os.SystemClock; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.Chronometer;  public class StudyTimeFragment extends Fragment {  public Button startbutton; public Chronometer studywatch;  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {      View rootView = inflater.inflate(R.layout.fragment_studytime, container, false);      startbutton=(Button)rootView.findViewById(R.id.button);     studywatch = (Chronometer)rootView.findViewById(R.id.chronometer);     startbutton.setOnClickListener(new View.OnClickListener() {         public void onClick(View v) {             // Perform action on click             studywatch.setBase(SystemClock.elapsedRealtime());             studywatch.start();             return;         }     });     return rootView;  } }   fragment_studytime.xml   <?xml version="1.0" encoding="utf-8"?>  <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:layout_width="match_parent" android:layout_height="match_parent">  <Chronometer     android:layout_width="88dp"     android:layout_height="91dp"     android:id="@+id/chronometer"     android:layout_gravity="top|center"     android:layout_marginTop="175dp"     android:width="150dp"     android:height="150dp"     android:textSize="70dp" />  <Button     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_marginTop="300dp"     android:layout_gravity="top|center"     android:text="Start"     android:clickable="true"     android:onClick=""     />   </FrameLayout>


\citealp putting parentheses in citation inappropriately

I am using WinEdt with MikTeX 2.9 in a Windows 7 environment.  I am having issues being able to get text in parentheses working correctly with a citation, specifically that when the document prints to PDF I get extraneous parentheses that should be removed by the natbib command I am using.  I wish to have the following text:  (cited in Axelrod 1997)   But I keep getting:  (cited in Axelrod (1997))   I have tried using two methods to remove the extraneous pair of brackets. First I tried:  \citep[cited in]{Axelrod2}   and then I tried:  \citetext{cited in \citealp{Axelrod2}}   but both give me the same result: two sets of parentheses.  Could someone please advise me where I am going wrong? I have the natbib reference document, and I was copying from the examples in there.  I am using a document template created for my university and I have the following packages and options being loaded:  \usepackage[english]{babel} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \usepackage[a4paper,layout=a4paper,         bindingoffset=4cm,left=0cm,right=2cm,         head=2.5cm, bmargin=2cm]{geometry} \usepackage{microtype} \usepackage{verbatim} \usepackage{graphicx} \usepackage{url} \usepackage[round]{natbib}  \usepackage{listings} \usepackage{booktabs}  \usepackage{multirow} \RequirePackage[l2tabu, orthodox]{nag} \usepackage{cleveref}


Noetherian Ring under a Homomorphism / homomorphic function / map

Assume R is noetherian and $f:R \to S$ is a ring homomorphism. Is $f(R)$ noetherian?     Reading Dylan Moreland commentary: "If $\mathfrak{b}$ is an ideal of $f(R)$, then $f^{-1}(\mathfrak{b})$ is an ideal of R and $f(f^{-1}(\mathfrak{b}))=\mathfrak{b}$ ." Then he writes: "if you have an  increasing chain of ideals in $f(R)$" . So because there are only finitely many ideals in $f^{-1}(\mathfrak{b})$, which is noetherian, there can also only be finitely many ideals in $f(R)$. So we can say from this that $f(R)$ is noetherian?  Reading Arturo Magidins commentary: I don't know the lattice isomorphism theorem. I can't find it on google either. Do you maybe have a link for me so I can read it? For the second definition of a noetherian ring: every ideal is finitely generated because: $f(a_{0},a_{1},....,a_{n}) = f(a_{0}),f(a_{1}),f(a_{2}),...,f(a_{n})= f(R)$ follows directly because f is a ring homomorphism. Is this a correct proof already?    Thank you.


Can I host a mc server on my web server?

I have a website and I want to host a mc server on it.  I already made a subdomain and my host is Dreamhost.  It does not have shared hosting.


Why do we need the trilogy instead of just one site?

As I see it, the only effect of having three sites instead of one is that questions in Server Fault and Super User are seen less and answered less.   This just causes audience fragmentation and dissipation for no reason.   In addition it causes useless friction and waste regarding the endless issue, where does this question belong? Belongs-there, belongs-here...  The site comes with a powerful tag filtering feature anyway.  Those three sites have very similar audiences, questions, and expertise fields.  Take for example:   Where is the limit between writing macros and programming (Super User or Stack Overflow)? Is configuring rewrite rules for Apache programming or administration (Super User or Server Fault)? Is advanced registry configuration administration or power-user tasks (Super User or Server Fault)? Is writing Bash scripts programming or server administration (Stack Overflow or Server Fault)?   Feel free to add your examples in the comments...  I think the answer is that most questions fit in at least two sites and what matters is not the issue itself but what was the bigger issue the asker was trying to solve.


Best File System for Sharing Between OS X and Windows

What is currently the best file system to use for drives that are regularly accessed (both reading and writing) from both Windows and OS X on a single machine using BootCamp. The most important points are stability and speed.  I've been using NTFS so far, coming from a Windows background. I've tried the NTFS-3G driver with Fuse and, in my tests, it was far slower than native NTFS under Windows. I also tried their commercial driver without much better results.  Afterward I tried Paragon's drivers, which were much faster. They aren't quite native NTFS speed, but they aren't far off either. The problem is I've had crashes with them, and recently had crashes + data loss with them.  I know this question has been asked before, but the posts I saw were older and the driver and filesystem options are maturing.  Options I've seen:   FAT32: Limited drive size? Limited permission settings NTFS: Limited speed/stability under OS X HFS+: MacDrive? available for Windows   Follow Up  I have now formatted one of the drives as exFAT and can confirm that this works great for both reading and writing when the machine is booted into either OS X or Windows 7.


How to auto-align a stack of head shots?

I am working on my own "everyday face" project - taking pictures of myself to combine them in a sequence afterwards.   I'm wondering what is the easiest and fastest way to align all pictures so my eyes would be in the exactly the same position for all of the pictures.   Parameters like the distance from my face to the camera and position of head in all pictures are very similar, but change a little bit from picture to picture.   What is the fastest way to align the pictures based on the position of the eyes?


"Nikki's and Alice's X" vs. "Nikki and Alice's X"

Which option is grammatical?        There will be readings from Nikki Giovanni’s and Alice Walker’s writings.   There will be readings from Nikki Giovanni and Alice Walker's writings.      Saying it out loud the latter sounds right, but looking at it the former looks better.


So in a question there is this "Modified" field when viewing from the main site. So if I edit a post or answer the question, it will say "Modified X mins ago UniKitty rep". So  question had one of those "Thanks!" answers, which I flagged. So the answer was deleted. Now to most of us it never existed. However, it still shows the deleted post's owner as the last modified person.  Here is the post in Arqade's homepage:   And here is the question:    See! There is no post by the user "Stimpy"  Is this a bug?


How to find where a quick launch icon is pointing to

When I hover over a quick launch icon, the name of the underlying application is displayed.  But how can I find what application is really being invoked?  In a MS Windows context, I would right click the icon and select Properties - then the path of the file to be executed would be shown.  This came up because my "Files" quick launch icon would do nothing, and it took some considerable research to realize that icon was actually linked to /usr/bin/nautilus.


I am a green card holder in US, my mother wants to gift me $6000. I want to know if there are any laws that prevent me to accepting the monies as gift? Will I have to declare it in my return? Will she have to provide an6 kind of documentation before accepting this money? Will I get in trouble with IRS?   Thanks  Ishleen


Difference between www.sub.example.com and sub.example.com

I want to know the difference between these two links to my site:   My site  is working as supposed.  (with www) is showing me a privacy error.


Objective function, cost function, loss function: are they the same thing?

In machine learning, people talk about objective function, cost function, loss function. Are they just different names of the same thing? When to use them? If they are not always refer to the same thing, what are the differences?


Why vision lift Thor's hammer in avengers?

Thor hammer cannot be lifted by anyone except Thor but in movie Avengers: Age of Ultron, vision lifted the hammer (Mjolnir) of Thor not any other avengers even when all the avengers are strong?


Proving that If $\overline K \trianglelefteq \overline G$ , then $\phi^{-1}(\overline K)=\{k\in G: \phi(k)\in\overline K\}\trianglelefteq G$.

Let $\phi$ be a homomorphism from group $G$ to group $\overline G$. It is to be proven that if $\overline K$ is a normal subgroup of $\overline G$, then $\phi^{-1}(\overline K)=\{k\in G: \phi(k)\in\overline K\}$ is a normal subgroup of $G$. I tried to prove it as follows:  Suppose on the contrary that $\phi^{-1}(\overline K)$ is not normal to $G$. This means that $\exists x\in G$ such that $xk\ne k'x \;\;\forall  k, k'\in \phi^{-1}(\overline K)$. This implies that $xkx^{-1}\notin \phi^{-1}(\overline K)$ for any $k$ in $\phi^{-1}(\overline K) $.$\tag{1}$ But $\phi(xkx^{-1})=\phi(x)\phi(k)(\phi(x))^{-1}\in\overline K$ as $\overline K\trianglelefteq \overline G$, which contradicts $(1)$ Is my proof correct? Thanks for your time.


How to change the address bar back to tabs from input text in nautilus?

After Ctrl+L or click "Enter Location" from the menu, the tab of nautilus becomes input text.  But how can I go back to the tabs?


Can I take my disassembled desktop computer on a flight from Turkey to the UK? (some new regulations)

I've read that there are some new regulations for electronic devices at UK airports. If the devices are in your hand baggage, they must be fully charged and you have to demonstrate, that they are working, or something like that.  Now what if I take my desktop computer components - Motherboard, CPU, GPU, RAM, PSU, Hard Drive (no case). I plan to wrap them with a lot of plastic bubble foil.  Would they want me to re-assemble the components and check if they are working? And would such baggage be a cause of some security freak out?  I'm flying from Istanbul to Edinburgh with Turkish Airlines.  I can't afford to waste time giving explanations to police all day for nothing on either the Turkish or British side.  Here's an article I found ()  What do you think?  Thanks.


How to convert coordinates from vertex to world-space?

How do I convert from object-space to world-space?  I suspect it is:  vert_os = obj.vertices[foo] vert_ws = vert_os.getPositionFromMatrix(obj.matrixWorld)   but does the matrix also handle translations, or do I need to handle that separately?  Can someone link to the relevant documentation?


What is the use of typecast in malloc? If I don't write the typecast in malloc then what will it return?  (Why is typecasting required in malloc?)


Create database fields to an existing table when installing a module

I'm new to drupal and I need some help.  I created a new module with name user_extra. Which create necessery table when Installing the module.  But I also need to insert some database field in 'users_field_data' table ('user_extra_id' and 'user_office')  In baseFieldDefinitions I wrote all necessery database table fields for user_extra table.   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {     // Standard field, used as a unique if primary index.     $fields['id'] = BaseFieldDefinition::create('integer')         ->setLabel(t('Unit ID'))         ->setDescription(t('The unit ID.'))         ->setReadOnly(TRUE)         ->setSetting('unsigned', TRUE);      $fields['uuid'] = BaseFieldDefinition::create('uuid')         ->setLabel(t('UUID'))         ->setDescription(t('The unit UUID.'))         ->setReadOnly(TRUE);         .         .         .     $fields['user_info'] = BaseFieldDefinition::create('string')         ->setLabel(t('User Info'))         ->setDescription(t("The User Info"))         ->setSetting('max_length', 255)         ->setDisplayOptions('form', array(           'type' => 'string_textfield',           'weight' => 10,         ))         ->setDisplayConfigurable('form', TRUE);      return $fields;      }   When I install the module it inserts all values that I define in baseFieldDefinitions.  But I also need to create 'user_extra_id' and 'user_office' in 'users_field_data' table with setDisplayOptions and setDisplayConfigurable options.  This is the commenting that I made in entity file  /**  * @ContentEntityType(  *   id = "user_extra",  *   label = @Translation("user extra"),  *   handlers = {  *     "storage" = "Drupal\user_extra\UserextraStorage",  *     "storage_schema" = "Drupal\user_extra\UserextraStorageSchema",  *     "access" = "Drupal\user_extra\UserextraAccessControlHandler",  *     "list_builder" = "Drupal\user_extra\UserextraListBuilder",  *     "view_builder" = "Drupal\user_extra\UserextraViewBuilder",  *     "views_data" = "Drupal\user_extra\UserextraViewsData",  *     "form" = {  *       "default" = "Drupal\user_extra\Form\UserextraForm",  *       "add" = "Drupal\user_extra\Form\UserextraAddForm",  *       "edit" = "Drupal\user_extra\Form\UserextraEditForm",  *       "delete" = "Drupal\user_extra\Form\UserextraDeleteForm",  *     }  *   },  *   admin_permission = "administer user_extra",  *   base_table = "user_extra",  *   entity_keys = {  *     "id" = "id",  *     "label" = "name",  *     "uuid" = "uuid",  *   },  *   links = {  *     "canonical" = "/admin/user_extra/{user_extra}",  *     "add-form" = "/admin/user_extra/add",  *     "delete-form" = "/admin/user_extra/{user_extra}/delete",  *     "overview-form" = "/admin/user_extra/${user_extra}/overview",  *     "edit-form" = "/admin/user_extra/{user_extra}",  *     "collection" = "/admin/user_extra",  *     "children" = "/admin/user_extra/{user_extra}/children",  *   },  * )  */


How to install the OpenJDK 8 (Ubuntu 19.04)?

Only openjdk-11-jdk and newer seem to be available. Is there any way to install the OpenJDK 8? Preferably without adding a PPA.


I do not know how to solve this integral and then expand the result in powers of $t$  $$(1-t)^{-1/2}\int_{-\infty}^{\infty}\frac{\exp\left(\frac{2x^2t}{1+t}\right)}{1+x^2}dx=?,~~~~|t|<1.$$  any idea?


My gas valve is inbetween two plasterboard walls how do I access it?

My gas valve is inbetween two plasterboard walls How should I access this valve to try to shut it off or maybe have a new valve installed? I've already cut the hole bigger to get my hand in there but don't want to create an even bigger hole but not sure what to do. One side has a water heater and I can't access the valve and this side is where the stove is and I'd like to get a new stove but I cant turn off this valve and maybe I need a new valve but I cant see the valve the way its positioned in the wall. Any ideas?


Printed macros from lua behave differently when entered directly in LaTeX code

I have some lua code that should prepare a tikz matrix of nodes similar to this . After having run into many issues with whitespaces, I finally got some output but it is not as expected.  I narrowed it down to this example code that should result in the same matrix being displayed twice:  main.tex  \documentclass[preview]{standalone} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \directlua{require('main') print_matrix()} \begin{tikzpicture}[mycell/.style={draw, minimum size=1cm}, dot/.style={mycell,fill=blue!20}] \matrix (m) [matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={mycell}, nodes in empty cells] {0&1&2\\ |[dot]|3&|[dot]|4&|[dot]|5\\ 6&7&8\\ |[dot]|9&|[dot]|10&11\\}; \end{tikzpicture} \end{document}   main.lua  function print_matrix()         tex.print([[\begin{tikzpicture}[mycell/.style={draw, minimum size=1cm}, dot/.style={mycell,fill=blue!20}] \matrix (m) [matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={mycell}, nodes in empty cells] {0&1&2\\ |[dot]|3&|[dot]|4&|[dot]|5\\ 6&7&8\\ |[dot]|9&|[dot]|10&11\\}; \end{tikzpicture}]]) end   The main.tex calls main.lua which should print the same code as is followed after the call.  However, when I run this through lualatex I get the following output:   I don't understand why the same code is handled differently when printed from lua or when entered directly in the .tex document. In the end my question boils down to:  What do I have to do to make the LaTeX code from lua behave exactly like when entered directly into the .tex document?


I want to call custom button on VF page and on click of that button an alert message should pop up. i wrote a code and calling custom button in VF page  I want to include Onclick javascript to popup alert message and i want my Vf page look like custom button when i place it in page layout  Note: I am new to coding please do bear with me  <apex:page standardController="Contact"> <apex:form >  <apex:pageBlock >  <apex:pageBlockButtons >      <apex:commandlink id="Marketing" onclick="something" action="{!URLFOR($Action.Contact.Marketing_Cloud_Unsubscribe)"  value="Marketing cloud unsubscribe" onComplete="alert(Successfully Submitted);" /> </apex:pageBlockButtons> </apex:pageBlock>


How can I view my purchased DLC for my game on Steam?

Is it possible to view all of my purchased DLC for a given game on Steam? I want to know which expansions I've already bought, and pulling up the game's DLC page lists all DLC without indicating which I have purchased, even when logged in. I don't want to go view each content's page to try and figure out if I have it or not, and I don't want to need to download the entire game to see what I have.


Why does shadows reflection got these blurry edges , is it something related to quantum physics , how photon travels to make these outlines look like this?   Does the uncertainty principle plays role in cast of shadows , and is there 100% perfect shadow (even from a small source of light) ?


What's the origin of referring to female superior officers as "sir"?

It is well established in Star Trek: The Next Generation that female superior officers are normally referred to as sir.  This is applied to Dr. Crusher, Counselor Troi, Cmdr. Shelby, Maj. Kira, Lt. Dax, and numerous admirals.   This obviously fits in well with the egalitarian ideals of Star Trek. This convention is made explicit in "Thine Own Self":  DATA: Counsellor, have you been promoted in my absence? TROI: That's right. Which means from now on you can call me sir. DATA: Yes, sir.  In Addition, the first episode of Star Trek: Voyager, "Caretaker" contains this dialog:  KIM: Thank you, sir. JANEWAY: Mister Kim, at ease before you sprain something. Ensign, despite Starfleet protocol, I don't like being addressed as sir. KIM: I'm sorry, ma'am. JANEWAY: Ma'am is acceptable in a crunch, but I prefer Captain. We're getting ready to leave. Let me show you to the bridge.  which again establishes that sir is the norm, although Capt. Janeway doesn't prefer it. Did this usage of the honorific sir start with ST: TNG or does it predate TNG in either sci-fi or the real world?  Related:


Add the "one question per post" rule to the Help center

I just asked a user to separate his two (otherwise good) questions (real-world use) into two separate questions (stack-exchange use). That is, he was doing a single task, and was wondering about two different aspects of it.   This rule can seem arbitrary to users, for whom it is natural to ask for all the help they need with a single task in a single "package". So I am always careful to explain some of the reasoning behind it when I do it. This explaining has some downsides: 1) it takes time, 2) it doesn't look as "official" when it is just a comment, 3) users couldn't have known about it even if they wanted.   My suggestion is to expand the text in  with a heading of "only one problem per question" and explain a bit of the background. This is a low-friction solution (adding some more relevant text to an existing help page), can be linked when needed, and addresses the other concerns too.


How many systems were part of the Republic?

In the opening crawl for Attack of the clones we learn that:     Several thousand solar systems have declared their intentions to leave the Republic.   How many solar systems were part of the Republic in the first place?  And, if someone would happen to know; How many systems actually left the Republic?


The definition of a complete metric space

Is the following not equivalent to the traditional definition of a complete metric space (i.e. every Cauchy sequence converges)?  $X$ is complete if for every $\{x_n\} \subset X$ such that $x_n \rightarrow x$, then $x \in X$.  If this is not the same, what is a counterexample? If it is the same, why don't we use this definition instead of involving Cauchy sequences?


Is there a word/term for someone who is interested in many things but is poor/uninformed at most or all of them?

Years ago I observed a single word/term that used more or less the description above, but I have been unable to locate or remember it since then. I am certain that it was a single word, and thus "jack of all traits and master of none" and other popular phrases don't fit. Any help you can provide would be much appreciated!


Proving that the Catalan numbers are integers .

So the nth catalan numbers is given by $$C_n = \frac{1}{n+1} {2n \choose n}$$  I want to prove now that $n+1$ divides ${2n \choose n}$ so I try to do it the following way $${2n \choose n} = \frac{(2n)!}{n!(2n-n)!} = \frac{(2n)!}{n!^2} = \frac{(2n)(2n-1)!}{(n(n-1)!)^2}$$  But still How can I conclude that $n+1$ divides ${2n \choose n}$ ?


What happened to the selection and camera toggle buttons in the Scene Collection Window?

There used to be all these icons for each of your object in the Scene Collection window. In this picture, there's the visibility, selectability, and a computer and camera icon (not sure what those last two do).  But in my current project (Blender 2.90), it only shows the eye (visibility toggle).  Does anyone have an explanation?


I am looking to find recipes for desserts, specifically brownies and cakes although others are greatly appreciated, that do not contain eggs.  Is there a sort of egg substitute that works just as well as eggs in all foods?


Blender python - edit custom property of a specific object

I am new to python. I would like to get a custom property of an object (not context.object) in a scene, for example "Object" (where my custom properties are assigned) and edit them via my custom addon - without the nessesity of selecting that object. In other words, I would like to change a value via an operator in my addon, and such that the value would change in the Object's custom property. My link to an object in the code: obj = bpy.data.objects["Object"] row.prop(obj, "custom_property_name")


SCI FI book about single-man teleportation spacecraft found in our solar system?

All I can remember about the plot is that some space archaeologists/explorers discovered a cave on maybe one of Jupiter's moons and inside were a bunch of single-man spacecraft with one button inside. When someone entered and pressed the button, it would teleport them and the ship away somewhere and I think the ship would automatically return about a minute later. The first few tests went really well and the test pilots returned excited they'd been to another planet or whatever. But then one ship returned and the pilot was burnt to death (maybe he'd teleported too close to a sun?). I think the main characters were a man and a woman but I can't remember for sure. This was a paperback I picked up at the library in the late 90s or early 2000s. I thought it was written by Jack McDevitt, but I've been through summaries of all the books I can find by him online and it doesn't seem to be one of his. Similar style of story though.


In real numbers, the number of rational numbers is more or the number of irrational numbers is more?

In real numbers, the number of rational numbers is more or the number of irrational numbers is more ?


Why does my 3TB external drive show as "unallocated" when installed internally?

I have a Seagate 3TB drive with a USB 2.0 interface on it.  I took it out of the case and installed into my PC (SATA). Physically, it’s like any other hard disk drive.   But all that Windows wants to do is format it. Even the Seagate utility “DiscWizard/Extended Capacity Manager” shows a small .34TB partition in the front (none of these are usable in Windows), then 1.66TB unallocated, then .73TB unallocated.  Looks like it’s offering the first 2TB as one unit, and the rest as another. I get that, but why is it unallocated? There’s definitely usable data on there, which I just saw when it was in the enclosure.  I’m on an ASUS F2A85-V PRO FM2 "AMD A85X (Hudson D4) 7 x SATA 6Gb/s USB 3.0 HDMI ATX" motherboard, and my older drive with Windows 7 is legacy, not UEFI.   Windows 7 shows the BIOS mode as “Legacy.” But I thought it wasn’t a requirement to boot via UEFI to use a data drive (non-boot) over 2TB.    I also have a 4TB that I’d love to put in my new big case, but while I’ll risk wiping the 3TB, I won’t play around with the 4TB until I figure this out.


I have a question about active and passive voice

I find the standard examples of active and passive voice on, say, Purdue Owl to be pretty obvious. For example, "He kicked the ball" versus "The ball was kicked by him."  For the examples, Someone was talking about whether these different sentences were passive or active voice during a story critique. But when you have "Her hair was dark" vs "She had dark hair." It doesn't seem that either of these would be passive voice. "Her hair was dark" is passive voice? because in passive voice the subject should be receiving the action of the sentence, but that doesn't look to be the case here—her hair is simply dark and only an auxiliary verb is present.   Also, someone was saying "she looked young" is passive, but "she was young" is not passive. But this makes no sense to me. Are they perhaps meaning one is less precise, and they weren't talking about passive/active voice at all when they were saying it was passive? Because all I'm seeing that's different about these two phrases is a narrator that is either uncertain or certain about the subject's age.


Dealing with twins references (authoryear:Biblatex)

I'm trying to cite two different papers that share the same author and were published in the same year. Here is an example:  \documentclass{article}  \usepackage[    backend=biber,             style=authoryear,             sorting=nyt,             useprefix=true,              sortlocale=de_DE,             natbib=true,             doi=false,             isbn=false,             maxcitenames=2,              maxbibnames=99,             eprint=false]             {biblatex} \usepackage{filecontents}  \begin{filecontents*}{general.bib} @article{giacometti16a, author = "Giacometti, R. and Zavala, J.A. and Gog, L.", year = {2016}, pages = {68-77}, title =  {Anthropogenic increase in carbon dioxide modifies plant–insect interactions}, journal = {Annals of Applied Biology}, volume={170}, number={1}, doi = {10.1111/aab.12319} } @article{giacometti16b, author = "Giacometti, R. and Barneto, J. and Barriga, L. G and Sardoy, P.M. and Balestrasse, K. and Andrade, A.M and Pagano, E.A and Alemano, S.G and Zavala, J.A.", title = {Early perception of stink bug damage in developing seeds of field-grown soybean induces chemical defences and reduces bug attack}, journal = {Pest Management Science}, volume = {72}, number = {8}, pages = {1585-1594}, keywords = {herbivory, jasmonic acid, MAPK signalling, plant–insect interactions, salicylic acid, Glycine max L, Nezara viridula L}, doi = {10.1002/ps.4192}, url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/ps.4192}, eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1002/ps.4192}, year = {2016} } @article{thomma01, title = "The complexity of disease signaling in Arabidopsis", journal = "Current Opinion in Immunology", volume = "13", number = "1", pages = "63 - 68", year = "2001", issn = "0952-7915", doi = "https://doi.org/10.1016/S0952-7915(00)00183-7", url = "http://www.sciencedirect.com/science/article/pii/S0952791500001837", author = "Thomma, B.P and Penninckx, I.A. and Cammue, C.P.  and Broekaert, W.F.", keywords = "Arabidopsis thaliana, salicylic acid, jasmonic acid, ethylene, biotroph, necrotroph", abstract = "Not more than 10 years ago it was generally accepted that pathogen-inducible defense mechanisms in plants are triggered through a central signaling cascade that regulates a multicomponent defense response. Now we know that the plant defense system is regulated through a complex network of various signaling cascades." } \end{filecontents*}  \addbibresource{general.bib}  \nocite{*}  \begin{document}  As is saying in \parencite{giacometti16a},  \parencite{giacometti16b} and in \parencite{thomma01}  \printbibliography  \end{document}   And this is how latex make my pdf:    As you may have noticed, when two paper share the same author and year, biblatex cites the first and second author (Giacomettis´s references)  But I don't want to differentiate these twins references that way, I want only the first author to be cited and then the year with a letter "a" for the first paper and with a letter "b" for the second paper. Here is an example:    Does anyone know how can I fix this issue?


Hard Multivariable Calculus Question: Surfaces

The graph of a function z=f(x,y) can always be parametrized as (x,y,f(x,y)). Show that in this case the "old way" (using the derivative) and the "new way" (Parametrizing the surface) for finding the tangent plane at a point always agree.  I have no idea how to do this problem. I think he wants us to show that two different ways lead to the same tangent plane at a point. one is using the derivative, the second is doing it via surfaces. Can someone run me through the steps? Thanks in advance!


I have tryed to change the password with the information that jorge castro has put up. when i get to the UNIX password change it says (Authentication token manipulation error) then says password unchanged. is there another way to change it.


Align h1 vertically and horizontally to body

So, I'm trying to make only
text
 aligned vertically and horizontally to the body of a page with the body's css set to be 100% width and height.  I don't want it to be a div. ONLY h1 within a


Creating a SQLParameter from an array for an IN clause

I have an array of integers. I want to use that array in my selectCommand to form an "IN" clause ("WHERE Cli.ID IN (1,2,3,4)"). I have tried to turn the array into a string (code below) but that (reasonably enough) doesn't work.   I found  but the proposed workaround made my eyes bleed.   Is there an easy and elegant way to do this that I'm missing? Surely it's a common enough thing to want to do?           string iDlist = "";         for (int i = 0; i < MyIDs.Length; i++)         {             iDlist += Convert.ToString(MyIDs[i]) + (i == 0 ? "" : ",");         }          this.sqlDataAdapter1.SelectCommand.CommandText = StandardQuery + @" where Cli.ID in (@iDlist)";          this.sqlDataAdapter1.SelectCommand.Parameters.Clear();         this.sqlDataAdapter1.SelectCommand.Parameters.Add(new SqlParameter("@iDlist", SqlDbType.VarChar));         this.sqlDataAdapter1.SelectCommand.Parameters["@iDlist"].Value = iDlist;


My mac pro only has 13GB left, with more than 24GB are backups, how can I release these space?


Is there a way to highlight overfull hboxes?

I want to visually find the overfull hboxes in my document. Is there a way to highlight them in the document?


I have built a simple console application, and I need to give a specific time for user to input a keychar.  Should I use this?  System.Threading.Thread.Sleep(1000);   For those who didn't understand, I need the program to skip the Console.ReadKey().KeyChar; after x seconds.  Is this possible?


Maximum value of $\frac{\alpha\overline{\beta}+\overline{\alpha}\beta}{|\alpha\beta|}$

Maximum value of  $$\frac{\alpha\overline\beta+\overline\alpha\beta}{|\alpha\beta|}$$ is  1) 2  2) 1  3) none of the above.  Considering $\alpha=x+iy$ and $\beta=m+in$ , on evaluating the expression I got $\frac{2.(xm+ny)}{\sqrt{(x^{2}+y^{2})(m^{2}+n^{2})}}$ which is $\leq \frac{2.(xm+ny)}{\sqrt{4xymn}}$. Least value of this is 2. So can we call it as maximum value ?


Can MapInfo Professional use data direct from a File Geodatabase?

Esri released its  in , and it seems that  within about a year.    By support, I mean simply being able to display, identify and query features using a direct read, with editing them not necessarily being required.  Has such support of File Geodatabases also been implemented for MapInfo Professional at any release (or via an extension)?  Please note that this question is only about File Geodatabase (*.gdb) rather than Personal Geodatabase (*.mdb) support because there is a big difference between the two formats.


How to edit pictures that have turned out to be too dark on print?

After a print review, all my pictures turned out to be too dark and dull. How should such a picture be edited, say on a picture editing software like Lightroom?  These are images that have been already edited to look almost right atleast on screen. I'm not sure but do I need to further increase the blacks, shadows and vibrance so that the pictures look better on print (this is what I think)?


Why does Apple Mail not provide default color font choice?

After switching from PCs I was astonished to find I could only write emails in black, unless I wanted to take extra steps to change the black to another color, wasting time.  Is it so difficult to provide default color?  It's done for email "quote levels."


When I press the volume button (F11 and F12) nothing happens.  Also the mute button (F10) doesn't work.  I tried resetting my computer. Plugging in and out my headphones. Nothing worked.


Unreal Engine Visual Studio 2019 C++ - Could not open source file CoreMinimal.h

I'm trying to follow a YouTube tutorial and I've ran into this (Severity    Code    Description Project File    Line    Suppression State Error (active)  E1696   cannot open source file "CoreMinimal.h" Network2    E:\Unreal Projects\Network2\Source\Network2\MyClass.h   5   ) and a lot more errors, so if anybody has more experience than me with C++ please help me out.


Duplicate Google Sheets' protected cells

I have created my spreadsheet with protected cells scattered throughout the document in Google Sheets.  Now I want to duplicate the spreadsheet and have the protected cells in the new worksheet keep the same protection. The new spreadsheet would be in the same workbook (tabs). I have tried copy and paste into the new worksheet and everything copies but the protection.  How would I accomplish this task?


Grammar error in notification in Android app

In the Android app, the notification that is displayed when you up-vote two answers too quickly has a grammar error. There does not appear to be a space between the 1 and seconds. This message was displayed when I did the following:   On a question with more than one answer (probably easiest on a question with multiple short answers) Up-vote two different answers very quickly (probably within a second of each other) Notification appears if you voted twice too quickly   Also, and this just might be my personal opinion, I think it should be worded a little better. Instead of You perform this action for another 1 seconds, I think it would make more sense if it read You can't perform this action for another 1 second or You cannot perform this action for another 1 second. The way it is currently worded makes it sound like your are doing something for another second but really, you can't do something for another second.    I'm on version 1.0.3


Where is the compiled or most recent Errata found for PHB, DMG, and MM

As I said before when I made this question. It is asking for a list of errata or a website where a list can be found. The other questions that were asked were marked answered with incomplete or outdated information. Please un-mark this as a duplicate. It is not.  This is not a duplicate of other questions which were answered over a year ago with out of date information.   I'm looking for the most recent errata for the PHB, DMG, and MM, or a compiled errata document, or a website that keeps up with the most recent errata with links.  ( At the moment I specifically want to know if the monster creation chart in the DMG has been altered to reflect the method used to create creatures in the MM, but I figured that the better question would be where to find this info).


Why are the Google basemaps no longer appearing in QGIS?

I had done a few projects using Google Physical/Streets as basemaps but now when I re-open those projects all layers appear except for the google basemap (other layers include .kml).   I had previously had this issue when I had a poor internet connection - the basemap would not load - but I now have a good connection so that should not be the problem.  I have also tried starting a new project and adding Google Physical there but likewise nothing appears. In the old projects I have tried removing and re-adding the basemap but no luck.   I have tried uninstalling and re-installing the OpenLayers Plugin (version 1.3.6) but the problem persists. When I use the plugin to add OSM however it does work (but I need Google for these projects).   I have verified the CRS and have it set to WGS 84/Peudo Mercator EPSG:3857  I am using QGIS 2.8.2-Wien on Mac  How do I make Google Physical visible again?


How to detect when a dynamically generated checkbox is checked?

I have a table which has checkboxes which get generated after a user imports files. The checkboxes are generated dynamically.      $("input[name='child_user_id_fk[]']").change(function(){         alert("test");         $(this).closest("tr").toggleClass("checked", this.checked);     });   This will work on any checkbox that was a part of the page when it were generated, but just not the ones generated with JQuery. How can I get this working?


Why is the shortest distance between two circles along the segment connecting their centers?

I know from visual inspection that to find the shortest distance between two non-intersecting circles as shown in diagram below, one needs to connect their centers and then find the distance between the points where this segment intersects the two circles.   But I could not come up with a geometrical proof for this fact.  Question  How would I go about proving the above fact? Any hint would be helpful.


How can you smooth the edge between two materials?

I have created this with cycles:  But the edge between the glowing and non glowing materials is very sharp. The material was manually applied to faces in edit mode. Is there any way I can smooth the edge between them in cycles?


Number of Occurrences of a Substring in a String (Java)

My goal, in Java, is to return true of the number of occurrences of "cat" in a string is equal to the number of occurrences of "dog".  public boolean catDog(String str) {    int matches = 0, matches2 = 0;    for(int i = 0; i < str.length()-2; ++i)    {      if(str.substring(i,i+3)=="cat")++matches;      if(str.substring(i,i+3)=="dog")++matches2;    }   if(matches==matches2)return true;   return false; }   It always returns true(probably not incrementing counters) unless str is exactly "dog" or "cat". Why?


Add option to vote for a question to stay open

Sometimes when going through questions, I can see that someone has previously voted to close it.    However quite often I disagree with the close vote and I would like to vote for the question to stay open instead. However I can't do that.  Maybe adding it as an option to this popup:    But make it only show up when not doing a review task since the review tasks have their own way to vote to keep a question open.


Derivation of Newton's law of gravitation

How did Newton get $F=\frac{Gm_1m_2}{r^2}$? What is intuition behind it? What kind of experiment or thought experiment can I do to derive this?


Points disappear when zooming past certain scale in ArcMap?

My points are disappearing when I zoom in past 300,000 in ArcMap.  I tried to repair geometry, but it doesn't fix anything?    I also checked the scale extents and those are turned off.  I can export the points to a new shapefile/feature class, but I'd like to not have to do that.    I'm using 10.1 on Windows 7 x64.


Im trying to measure bandwidth, packet loss, latency and jitter between two computers on a wireless 802.11s mesh connection.   Im trying to make a (my first) bash script that can do the following:   SSH to another computer and start logging data from services (ptpd, tcpdump, iperf). Start the same processes on my own computer and start logging data. Once the iperf transmission on my own computer is finished, it should SSH into the remote computer and kill the the services.   The idea is for this these three steps run in a for-loop, that increases the package size transmitted by iperf for each iteration and logs the resulting data.  I know how to start a process on the remote pc by ssh host@adress process.  I am however clueless on how to start multiple processes through SSH and logout, since the processes are terminated once I logout. I have looked at the screen and nohup commands, but don't know how to use them in a script.  Thanks in advance!  EDIT:  Thanks for all the help so far.  I got nohup to work now, it was pretty simple as people pointed out.  So now I got: ssh host@adress nohup ./script.sh > /dev/null 2>&1 & in the script on my main pc. This starts a script on the remote pc just fine, and then logout of SSH. The next problem is how to execute the script on the remote pc as sudo, since this is needed by tcpdump.  Trying ssh host@adress **sudo** nohup ./script.sh > /dev/null 2>&1 & doesnt work.  Any ideas?  EDIT 2:  If anybody is stuck with the same problem, I found a guide how to solve this:


Find a continuous function , Riemann integrable on $\mathbb{R}_+$ which does not tend to zero

If a function $f:\mathbb{R}_+ \to \mathbb{R}$ is uniformly continuous and Riemann integrable on $\mathbb{R}_+$ (i.e. $\lim_{x\to\infty} \int_0^x f(s)ds$ exists and is finite), then $f(x)\to 0$ as $x\to\infty$.  Thus, I want to find an example of a continuous function, Riemann integrable on $\mathbb{R}_+$ which does not tend to zero.   Clearly, the limit of $f(x)$ as $x\to\infty$ should not exist.


I am stuck on a relation composition problem from book [1]. The context is: Suppose $r \in \mathbb{R}^+$ and $s \in \mathbb{R}^+$. Let $D_r = \{(x, y) \in \mathbb{R}^2 \mid |x-y| < r\}$, and $D_s = \{(x, y) \in \mathbb{R}^2 \mid |x-y| < s\}$. The problem is only: what is $D_r \circ D_s$?  From the definition of composition of relations,  \begin{align} D_r \circ D_s &= \{(x, z) \in \mathbb{R}^2 \mid \exists y \in \mathbb{R}(xD_sy\ \text{and}\ yD_rz)\} \\ &= \{(x, z) \in \mathbb{R}^2 \mid \exists y \in \mathbb{R}(|x-y| < s\ \text{and}\ |y-z| < r)\}. \end{align} The book hints to use the triangle inequality $\forall x \in \mathbb{R}\forall y \in \mathbb{R}(|x + y| \leq |x| + |y|)$. My suspicion is that the intended answer is  \begin{equation} D_r \circ D_s = \{(x, z) \in \mathbb{R}^2 \mid |x - z| < s + r\}. \end{equation} (If it isn't, then I fail to see how the triangle inequality relates.) But for this to be the case it must be that \begin{equation} \exists y \in \mathbb{R} (|x-y| < s\ \text{and}\ |y-z| < r) \leftrightarrow |x - z| < s + r \end{equation} given the above assumptions on $r, s, x, y$.  Proving ($\rightarrow$) is straightforward: suppose the LHS is true, choose some $y \in \mathbb{R}$ such that $|x - y| < s$ and $|y - z| < r$, then $|x - y| + |y - z| < s + r$, but $|x - z| = |(x - y) + (y - z)| \leq |x - y| + |y - z|$ (triangle inequality), so $|x - z| < s + r$.   How to prove ($\leftarrow$) is not clear to me. After assuming the RHS, is there a particular value of $y \in \mathbb{R}$ that I can choose to make the LHS true?    [1] Velleman, Daniel. How to Prove It: A Structured Approach 2e, Ch. 4 Sec. 3 Prob 6.


How to find if a valuation satisfies a statement?

I'm working on a task which i'm a bit stuck at. I need to decide whether the statements are true or fale. F stands for the statement logical formulas, and also if the claim is true I need to give a proof or explain why it is so. If the statement is false I need to give a contra-example  Here are the statements:     For all F, then F is satisfiable or ¬F is satisfiable   and     For all F, then F is valid or ¬F is valid.   Is there any easy way I can solve these kinds of statements by seeing if a statement satisfies or is valid or is neither both of them?  Would appreciate some help, thanks alot!


With a 50 limit using importHTML is there method to increase data rows

Using importHTML in Google sheets is it possible to shape the following Sheet1:Rows 1-30 only Sheet2:Rows 31-61 only This would increase the data limit from 50 to 60 but with two sheets. I understand it is possible to use query Limit and offset Limit the number of rows Offset skips a number of rows "Select* LIMIT 2 OFFSET 4" This maybe a solution


I just got a new Macbook Pro with Retina and I'm confused about how to attack my PSD's. If I'm designing a site which has 14px font size, should I be settings it to 28px in Photoshop to get what it will look like in CSS? Or if my website should have a 60px tall header, should I make it 120px in Photoshop?  I guess I'm confused because the CSS stays the same, but should I be doubling up on everything in Photoshop to get what it would look like in CSS?


What are the differences between optoisolator output styles?

Digikey lists optoisolators with several output types:   Darlington Darlington with base Photo FET Photovoltaic Photovoltaic, linearized Transistor Transistor, with base   What are the differences among these, and in what circumstances would I use one or another?


How to export a individual layer with a fixed master layer in Photoshop?

Let's say I have some layers and a single different one, or a group of layers I want to export merged together, in a way that every single exported layer is merged with a specific layer or group of layers.  In the example below I have some layers which need to be exported into JPG or PNG, merged with the very top layer called "Blurred". In my case, I want to export the layers (Jan 8 + Blurred) and (Layer 10 + Blurred) and so on. Acting as exporting layers merged with a master layer called "Blurred".  My question in a simple way: how to apply a Master layer(s)/Group(s) in Photoshop to be exported with every layer I have?


Proving that the sum and difference of two squares (not equal to zero) can't both be squares.

I have the following task:     Prove that the sum and the difference of two squares (not equal to zero) can't both be squares.   For the sum, I thought about Pythagorean triples: $x^2+y^2=z^2$ works for an infinite amount of numbers, but why can't it occur for the sum and the difference as well?  I tried to write down this:  Assume that $a^2>b^2$. Then $a^2+b^2=c^2$ and $a^2-b^2=d^2$. Summing the left and the right equation, we get $2a^2=c^2+d^2$. I am just stuck proving why this can't occur. Any ideas? Thanks for your help!


How can I give to player points with ajax but secured?

I have a virtual world game that I developed with jQuery, AJAX and PHP. Virutal World like club penguin. Now, I want to add a game into the virtual world - like bubbles or whatever. The main problem its that the game in ajax, so if the player got 20 points in the game - in the ajax request I have the player points and the player can change the ajax request to any points that he want. How can I do it secured? Thanks


Where do I ask questions about the Windows OS?

Where do I ask questions about the Windows operating systems? Be it Win 8, 7 or XP.  The questions that I want to ask may not be strictly related to a problem I am facing, but related to files and features of the OS itself or asking just because of my curiosity. For example, I want to know the purpose of the file "Bootvid.dll" in a Win 8 OS.  Or, for example, I want to what "hal.dll" is.  Are these questions appropriate for Stack Overflow or Super User? If not, please recommend some SE sites in which I can post such questions, because I am interested in getting into the guts of the Windows OS. Open to all suggestions.


How to round to 2 decimals during calculation in Java

For one calculation I need to round to 2 decimals during the calculation.   Relevant code:  count = 500; price = 0.00077 pounds = 150,000 double value = ((350 - count) * price) * (pounds / 100);   To get the result I need, (350 - count) * price must round to 2 decimal places before doing the pounds / 100 so how might i round to 2 decimal places during a calculation?


Are the new "Smart" or "Chip" Credit Cards better from a security standpoint?

The new Chip credit cards are being introduced to provide better security to consumers, merchants and credit card vendors.    Sample Card:   (source: )    Card Reader & PIN Entry:    Are they really better from a security point of view?  What are the advantages and disadvantages?


Is there a shortcut key to make a macbook sleep?  Sometimes I want to save time and just use the shortcut key to put it to sleep.


I came to code:   scala> val a = 0 | 1  a: Int = 1  scala> val a = 0 | 1 | 2  a: Int = 3  scala> val a = 0 | 1 | 2 | 3  a: Int = 3  scala> val a = 0 | 1 | 2 | 3 | 4  a: Int = 7   The only result I expected from the | operator is the result of the first command.  I see it behaves like a logic or and also it adds elements in the second command.    Could someone explain the working of the | operator using integers as operators?


Can a multi-core processor run multiple processes at the same time?

I understand that a multi-core processor can run multiple threads of the same process at the same time using its different cores. Can it also run multiple processes at the same time(each core running a different process)?


Finding functions $f: \Bbb R_*^+ \to \Bbb R_*^+$ with certain properties

Find the functions $f:\Bbb R_*^+ \to \Bbb R_*^+$ such that:  $$f(x)f \left(\frac{1}{x}\right)=1$$


Zero-dimensional ideals and finite-dimensional algebras

I encountered in the literature the term zero-dimensional ideal, however I can not find a relevant definition anywhere in Atiyah-MacDonald or Matsumura. In fact, I encounted the statement:      $I$ is a zero-dimensional ideal of $k[x_1,\dots,x_n]$ $\Leftrightarrow$ $k[x_1,\dots,x_n]/I$ is a finite-dimensional $k$-vector space, where we assume that $k$ is algebraically closed.   Question 1: What is the definition of the dimension of an ideal?  Question 2: How do we prove the above statement?  Question 3: Is $k$ being algebraically closed a necessary condition for the statement to be true?


macOS doesn't show the computer name correctly in Terminal

I have a 2011 MacBook Pro and it's name is set to MacDavid. I expect it to appear the same in Terminal.app, but it instead shows this:  w8-ricardo:~ davidpazo$   When i change the equip name, Terminal is indiferent. Any suggestion as to what could be causing this and how to resolve?


My mid 2009 MacBook Pro has been repeatedly shutting down shortly after turning it on. It won't stay on. Where do I go for help? I haven't tried anything since it won't stay on.


Is there a difference between doing a shutdown via Ubuntu's GUI versus doing a "sudo shutdown now" from the terminal? I ask this as I notice that my machines take longer to shutdown if I shutdown via the GUI.


Is there an inverse to Stirling's approximation?

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


Keep hourly backups for two weeks instead of one with Time Machine

How can I tweak Time Machine to keep the hourly backups for two weeks instead of just one?


Dynamic Product Page and SQL Injection Vulnerabilities

New programmer here, I asked a similar question last night but thought I should make a new question with updated attributes. The code below is based on an old tutorial that I have been modifying. When I run a test script off the mysql connection script it shows me that it does connect to the database and shows the one test table I created to set this up. Table was made with PHPmyadmin and has the Primary key as id.  The variables in the lower part of the document come back as undefined, I'm assuming because it is not validating or inserting the data from my table correctly? I've tried removing the while loop and seem to get the same result each time. Does anyone have any other ideas on this one? Secondly I just recently found out about SQL Injection and have tried modifying the code in such a way to adhere to these sanitation protocols. Could some nice fellow inform me of anything I am doing incorrectly or something further I need to make the code more secure?  <?php if (isset($_GET['id'])) {     include 'storescripts/mysqli.php';     $id = preg_replace('#[^0-9]#i', '', $_GET['id']);      $query = $mysqli->prepare("SELECT * FROM products WHERE id='?' LIMIT 1");     $query->bind_param("s", $id);     $query->execute();     $sql = $query->get_result()->fetch_assoc();     $productCount = mysqli_num_rows($sql);     if ($productCount > 0) {         while($row = mysqli_fetch_array($sql)){               $product_name = $row["product_name"];              $price = $row["price"];              $details = $row["details"];              $category = $row["category"];              $subcategory = $row["subcategory"];          }               } else {         echo "That item does not exist.";         exit();     }          } else {     echo "Data to render this page is missing.";     exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $product_name; ?></title> <link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
   <?php include_once("template_header.php");?>

     <img src="inventory_images/<?php echo $id; ?>.jpg" width="142" height="188" alt="<?php echo $product_name; ?>" />
       <a href="inventory_images/<?php echo $id; ?>.jpg">View Full Size Image
<?php echo $product_name; ?>

<?php echo "$".$price; ?>

         <?php echo "$subcategory $category"; ?>

         <?php echo $details; ?>

       <form id="form1" name="form1" method="post" action="cart.php">         <input type="hidden" name="pid" id="pid" value="<?php echo $id; ?>" />         <input type="submit" name="button" id="button" value="Add to Shopping Cart" />       </form>

   <?php include_once("template_footer.php");?>


Object versus subject pronoun where object performs an action

Is it proper to say "Bob wants Joe and I to stop speaking," OR "Bob wants Joe and me to stop speaking"? I know the answer has to do with a gap in my subject/object knowledge, but please direct me to the rule. The suggested questions do not address an example like the one above, wherein the object of the sentence is performing an action.


When I was studying cross and dot products, I learned that the cross product of two vectors A and B is perpendicular to both A and B. But my mind is unable to understand that. Since both A and B are lying in same plane, how can their cross product be in a different plane?  I also found this concept in circular motion, where the torque is outwards from the plane of paper in which the circle has been formed. When I asked my teacher about that, he told me     This is not an actual direction, this is just a symbolization. The particle doesn't actually feel any force or such in that direction.   If this is so, then a particle should also not feel a force in a uniform magnetic field in which the particle is moving perpendicular to the field, because the force is perpendicular to both the velocity and the magnetic field.  Please help. I am confused here.


Can I sacrifice the same creature twice?

If I Use 's Activated ability of "{t}, sacrifice a creature: Proliferate" and then target  with the activated ability of "Sacrifice Vampire Hexmage: remove all counters from target permanent", what happens?  Will Plaguemaw Beast force Hexmage to be sacrificed without being able to activate the ablity?  Will Plaguemaw Beast lose a valid target if Vampire Hexmage's ability is activated in response to sacrificed, so now Plaguemaw cannot Proliferate?  Will the Plaguemaw Beast's ability activate along with Vampire Hexmage's Activated ablity with Hexmage as a target?


Response to "Excuse me" when some one wants to pass you

It has happened to me a lot that when  I am searching for an item in aisle in a supermarket and somebody says  "excuse me" and passes me. What is a natural response to excuse myself here? What should I say?


In chat certain users image is not showing correctly         but when we change 16 to 18 in image src it just works fine   please let me know if its dup i tried but couldn't find


Identify a YA science fiction novel from the 70s

All I remember is that it had 3 parts, and the first part was entitled "A Perfect Warrior".  The bad guy was named Odal.  The hero was a recent graduate of a sort of police academy for outer space.  He was well-intentioned, idealistic, and a total klutz.  The story line involved telepathy and some kind of mind machine that amplified it.  Any help would be much appreciated.  The book was probably written in the late 60s or early 70s.


Proof by induction that the complete graph $K_{n}$ has $n(n-1)/2$ edges.   I know how to do the induction step I'm just a little confused on what the left side of my equation should be. $E = n(n-1)/2$  It's been a while since I've done induction. I just need help determining both sides of the equation.


Number of solutions to $x^{k}\equiv 1\pmod {p}$

Let $p$ be a prime. We learned that the number of solutions to $x^k\equiv 1\pmod{p}$ is $\gcd(k, p-1)$ and I know how to prove it in case $k$ divides $p-1$.  But how do I prove it in the other case?


Pull the teeth out of Lebesgue integration

In Lebesgue integration we usually approximate the function we want to integrate with step-functions on measurable sets. How much "power" do we take away if we require that the step functions are on intervals instead? What functions are left that are integrable?  I'm asking this because I want some integral to converge but I only know the values on $1_{(x_1,x_2)}$. Maybe we can get to Lipschitz functions that way?  Edit to be more specific.  Usually we define an integral for a positive function in this sense. First if we have $$f = \sum a_i 1_{A_i} \text{ then } \int f \, d\mu = \sum a_i \mu(A_i)$$  Now if $f$ is a positive measurable function we then define  $$\int f \, d\mu := \sup \left \{\int g : g \leq f \text{ and $g$ is a simple function} \right \}$$  My question now is: what is left of the theory if we require the $A_i$ to be intervals instead of elements of the whole $\sigma$-algebra?  My apologies for the unclear question. I shouldn't ask questions in the middle of the night.


What is the minimum amount of water required to grow carrots/melons at max speed?

I am going to make a huge melon/carrot farm, 300 x 100 or something similar. How much water (per block?) do I need to fill my area with as many crops as possible but still grow at the max speed?


How to sort an Excel spreadsheet columns by row contents?

How do I sort the columns of an Excel spreadsheet? The Sort command from the Data menu only allows me to sort rows by the value of a column. I want to sort the columns alphabetically by the contents of a specific row.  How can I do this?


Run process in the background until stopped in a bash script

I have a bash script that performs a list of commands that modify a file on the filesystem. I want to have a background process run while these commands run so that my bash script cannot be invoked while another instance is already running.  Almost something like the following:  #!/bin/bash if pgrep mystery_background_cmd; then     echo 'The file is being modified right now. Exiting.' fi <script commands here> bg_pid="$( mystery_background_cmd & echo "${!}" )" <do other commands here> kill "${bg_pid}"   So, in practice:  $ ./script.sh & Modifying files... $ ./script.sh & The file is being modified right now. Exiting.   Or, better yet, something like:  $ ./script.sh & Modifying files... # 1st instance $ ./script.sh &  The file is being modified right now. Seconds until re-check: {5..1} # 2nd instance The file is being modified right now. Seconds until re-check: {5..1} # 2nd instance Finished modifying! # 1st instance Modifying files... # 2nd instance   I am using bash 3.2.57(1)-release and macOS High Sierra 10.13.6.


How to add elements to a static vector using an overloaded function operator?

So I have a simple class with an overloaded function operator. I also have a static vector in there. I'm trying to add values to the vector through the function operator, but it doesn't seem to be working.  class ExampleClass { private:     static std::vector<std::string> exampleVector;  public:     void operator () (std::string input)     {         exampleVector.push_back(input);     } };  int main() {     ExampleClass exampleObject;     exampleObject("Hello World!"); }   The error I'm getting is a "unresolved external symbol":  error LNK2001: unresolved external symbol "private: static class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > ExampleClass::exampleVector" (?exampleVector@ExampleClass@@0V?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@A)   I have no clue what what means. But my code seems to work fine without the static keyword. So what am I missing here? Thanks.


Doubts about Tire compatibility on my wheels?

I want to get a pair of 26 x 2.1  tires for my Bicycle. My wheels are compatible with these dimensions. A reputable store near me offers 26x1.95 tires. I am pretty sure that 1.95s are compatible with my 2.1 wheel. The issue is, these are marketed at tires for a single speed bicycle of theirs. Mine is a 21 (3 x 7) speed bike.  From what I can tell, the wheel matters in matters of compatibility with the gearing, and not the tires as long as it is compatible with my wheel. But still, to be extra sure, does it matter that these tires are marketed for single-speed cycles as long as they are compatible with my wheels ?


Can the derivative of a function be such that it is not continuous?

My guess is that all derivatives ought to be continuous but perhaps there's some obscure example of a function for which this is not the case. Is there any theorem that answers this perhaps?


Format on how I will prepare an article in latex on my biography

I want to know how I will prepare an article in latex on my biography


How can I access the ListViewItems of a WPF ListView?

Within an event, I'd like to put the focus on a specific TextBox within the ListViewItem's template. The XAML looks like this:  <ListView x:Name="myList" ItemsSource="{Binding SomeList}">     <ListView.View>         <GridView>             <GridViewColumn>                 <GridViewColumn.CellTemplate>                     <DataTemplate>                         <!-- Focus this! -->                         <TextBox x:Name="myBox"/>   I've tried the following in the code behind:  (myList.FindName("myBox") as TextBox).Focus();   but I seem to have misunderstood the FindName() docs, because it returns null.  Also the ListView.Items doesn't help, because that (of course) contains my bound business objects and no ListViewItems.  Neither does myList.ItemContainerGenerator.ContainerFromItem(item), which also returns null.


How to squash git commit history up until 5 commits ago

My repo has a huge number of commits and I would like to squash everything up until the last five commits - so at the end the repo would have a squash a commit and then my five most recent commits.   Before:  10 9 8 7 6 5 4 3 2 1   After:  10 9 8 7 6 squash commit   I tried git reset --soft at the end and beginning of the squashed portion, but I'm not sure how to keep my last five commits, which go away when I squash the portion before the five.


Will switching from Canon to Nikon as a way to improve image quality make my stock images saleable?

I'm an amateur currently owning a Canon 700D and a few lenses (18-55, 10-18, 55-250 and 50 1.8 STM). As I try to do some stock photography, image quality is my main concern, and 700D has a very average sensor scoring only 61 at dxomark. I've heard dxomark ratings shouldn't be taken literally, but Canon APS-C sensors are known for poor performance for both DR and noise, and this is the case for 700D. I'm on a limited budget, so going full frame is out of my reach. Nikon APS-C cameras have about 10% larger sensor and don't have low pass filter, giving sharper images with less noise. I prefer Canon aesthetics more, but my main concern is image quality - do you think I should switch to Nikon or maybe the gains in IQ wouldn't be worth the cost (again, I'm selling stock photography, so with better image quality I could possibly sell more and cover the cost of the switch)?


Is it possible to kill your phone by installing wrong system software?

I asked a question yesterday about my Sony Xperia Z1. It look likes it is completely empty and I don't have the ability to flash anything on it.  But my question is:  Can you break your motherboard by rooting, flashing or whatever?   My custom ROM (PAC-man ROM) worked perfectly fine until I restored my TA partition.   My previous question:


I don't know if it's legit at StackOverflow to post your own answer to a question, but I saw nobody had asked this already.  I went looking for a C# Glob and didn't find one, so I wrote one that others might find useful.


I have moved a zipped file to a directory which does not exist. It resulted in creating a new file. But I am not able to open/unzip it.


Windows - A different way to Search files by extension

I'd like to search all files that are different from a specific extension. So, if I search files by using the string *.doc I'd like to see every files that are not .doc.  I also would like to hidden the sub-folders in the result display by using that search (but the search must of course search into sub-folders) :)  Is it possible this on Windows Vista/7?  SOLUTION  Finded the solution by using this string NOT *.doc AND NOT tipologia:=cartella   This for the italian version. English should be similar, somethings like NOT *.doc AND NOT kind:=folder


How to make choice between inheritance and composition?

I was going through the difference between inheritance and composition. Everyone has praised composition over inheritance, so questions is how do we make choice ? Also if we didn't use inheritance at all then what are we going to miss as per OOP principal ?


How to pass for Langevin equation to Fokker-Planck equation?

What is the procedure to pass from the description of a phenomenon made by the : $$ \frac{dv}{dt}=-\frac{v}{\tau}+\sqrt{2c}\,\eta $$ to the corresponding description with the ?


Sample code is taken from ShareLatex, where it works fine.   Why TeXnicCenter do not generate bibliography list?  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \bibliography {Sample} \usepackage{biblatex} \addbibresource{Sample.bib}  \title{Bibliography management: \texttt{biblatex} package} \author{Share\LaTeX}  \begin{document}  \maketitle  This document is an example of \texttt{biblatex} package using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.   \medskip  \printbibliography  \end{document}


The Chinese Remainder Theorem for Rings.        Let $R$ be a ring and $I$ and $J$ be ideals in $R$ such that $I+J = R$.        (a) Show that for any $r$ and $s$ in $R$, the system of equations   \begin{align*}   x & \equiv  r \pmod{I} \\    x & \equiv  s \pmod{J} \end{align*}   has a solution.        (b) In addition, prove that any two solutions of the system are congruent   modulo $I \cap J$.       (c) Let $I$ and $J$ be ideals in a ring $R$ such that $I + J = R$. Show   that there exists a ring isomorphism   $$ R/(I \cap J) \cong R/I \times R/J. $$   Solution: (a) Let's remind ourselves that $I + J = \{i + j : i \in I, j \in J\}$.  Because $I + J = R$, there are $i \in I, j\in J$ with $i + j = 1$.  The solution of the system is $rj + si$. We check both equations: \begin{align*} rj + si &\equiv rj \equiv ri + rj \equiv r(i + j) \equiv r \pmod{I} \\ rj + si &\equiv si \equiv si + sj \equiv s(i + j) \equiv s \pmod{J} \, . \end{align*}  (b) Assume we have two different solutions $x$ and $x'$. Then  \begin{align*}  x &\equiv x' \pmod{I} \\  x &\equiv x' \pmod{J} \, , \end{align*} or else one of them wouldn't even be a solution. So $x - x'$ is in $I$ and $J$, therefore $x - x' \in I \cap J$ and $x\equiv x' \pmod{I \cap J}$.  (c) The Cartesian product of two rings is a ring, so $R/I \times R/J$ is a ring.  We look at the map \begin{align*}   \phi:  R &\rightarrow R/I \times R/J \\          x &\mapsto (x + I, x + J) \, . \end{align*}  »Componentwise« ring homomorphisms are ring homomorphisms, so $\phi$ is a ring homomorphism.  $\phi$ is surjective: by (a) for any $r\in R/I, s\in R/J$ there exists an $x \in R$ with $\phi(x) = (r, s)$.  The kernel of $\phi$ are the solutions of the system for $r = s = 0$. By (b) every other solution must be congruent to $0$ modulo $I \cap J$, so $\ker \phi = I \cap J$.  Then by the first isomorphism theorem for rings $$R/\ker(\phi) \cong \phi(R)$$ we obtain $$R/(I \cap J) \cong R/I \times R/J \, .$$   Could you please check, if my solution is correct? Thank you!


Why is the recent questions feed showing code?

When I clicked on recent questions feed on bottom of the site, I was navigated to the /feeds endpoint; where I can see the code.   I don't know if this a bug, or does the page always show such code?


A finite field of order $p^n$ has characteristic $p$.

Let $K$ be a finite field with $|K|=p^n$ for a prime $p$ and $n\in\mathbb{N}$.   Now I have to show that the characteristic of $K$ is $p.$  So I know that $(K,+)$ is a $p$-Group and therefore there exists a $m\in\mathbb{N}$ such that $p^m\cdot 1_K = 0_K$. This means that char$(K)=p^m$ because $ker(\varphi)=(p^m)$, where $\varphi: \mathbb{Z}\rightarrow K, n\mapsto n\cdot 1_K$.  Now I don't know how to show $m=1$.  Help is very much appreciated!


How to execute a program or call a system command from Python

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I want to make my python program to execute a file in Windows. That means that if I try to execute a .txt file, it would open with the default .txt viewer. Is that possible?  I tried subprocess.call, but I get WindowsError: [Error 193] %1 is not a valid Win32 application. The file I'm trying to run is a .png file.


Filing a patent which my research advisor will found a company on it

I'd appreciate your advice on my current situation a lot! So I'm an international phD student getting close to graduate. My research advisor got so interested in my recent project and he's working on filing a patent out of it with the institution's office for the related work. Seems like he'll start the company as well based on the project. Followings are the questions I have. As I do not have the experience or knowledge on such a situation, I'd appreciate your help so much in advance.  To guarantee any potential rights that I can possibly claim as a co-inventor, is there anything I need to make sure with my PI during the patent filing process? For instance, although I am not gonna accept his offer to work in his company, would it be still possible to secure my equity as a co-inventor or so?  In case my PI wants to exclude me out of the patent filing or any financial benefit created out of it, is there any way I can claim my portion?   Thank you so much for your time checking this, and any advice would be appreciated.


"Null" logic error after performing if statments

I am a high school student currently taking an introductory computer science course. In class we were assigned with creating a program that would take user input for card notation and return the full description of the card. For example, A user who inputs "AS" would see "Ace of Spades" in the terminal window. However, when my code executes, I get a "null of null" instead of "Ace of Spades" or another card notation.   public class Card  {  private String rank;   private String suit;  private String fullRank;  private String fullSuit;  public Card(String rankAndSuit) {     rank = rankAndSuit.substring(0,1);       if (rank == "A")     {            fullRank = "Ace";     }      else     if  (rank == "2")     {         fullRank = "2";      }     else     if (rank == "3")     {             fullRank = "3";     }      else     if  (rank == "4")     {          fullRank = "4";      }     else     if (rank == "5")     {             fullRank = "5";     }      else     if  (rank == "6")     {          fullRank = "6";      }     else     if (rank == "7")     {             fullRank = "7";     }      else     if  (rank == "8")     {         fullRank = "8";      }     else     if (rank == "9")     {             fullRank = "9";     }      else     if  (rank == "10")     {         fullRank = "10";      }     else     if (rank == "J")     {             fullRank = "Jack";     }      else     if  (rank == "Q")     {          fullRank = "Queen";      }     else     if (rank == "K")     {             fullRank = "King";     }        suit = rankAndSuit.substring(1,2);       if (suit == "D")     {            fullSuit = "Diamonds";     }      else     if  (suit == "H")     {         fullSuit = "Hearts";      }     else     if (suit == "S")     {             fullSuit = "Spades";     }      else     if  (suit == "C")     {      fullSuit = "Clubs";      } }  public String getCardDescription() {     return fullRank + " of " + fullSuit; }   }  My Tester Class is :  public class CardTester  {  public static void main(String[] args) {     Card testCard = new Card("AS");     String cardDescription = testCard.getCardDescription();      System.out.print(cardDescription); }   }  What is causing me to get null?


Can a caster of Dispel Magic just target a specific spell on a creature?

Dispel Magic says (emphasis mine):  Choose one creature, object, or magical effect within range. Any spell of 3rd level or lower on the target ends. For each spell of 4th level or higher on the target, make an ability check using your spellcasting ability. The DC equals 10 + the spell's level. On a successful check, the spell ends.  At high level play, I've found that players often have long-term buff spells in effect (i.e. Heroes Feast, Mindblank, etc.), which are a major factor in them being able to survive. If one of these characters is affected by a save or suck kind of spell (i.e. Mental Prison, Irresistable Dance, etc.), the need to remove that spell becomes imperative. With this in mind, can a caster of Dispel Magic target only a negative spell under the assumption that it is a discrete 'magical effect' subject to removal? Or must they target the 'creature' and risk removing all spells, both positive and negative? For reference, we see a potentially unique 'magical effect' in  about Yeenoghu's flail. This effect is similar to a spell in its function (target is affected by the Confusion spell if they fail the save), but has clear differences from a spell because the spell would require Yeenoghu's concentration and have a different duration. Conversely,  suggests that a 'magical effect' only applies to things that wholly separated from the creature.


Solving an Ito Diffusion and finding the Expectation/Variance

I have an example in which $Y_t$ is the Ito diffusion with generator $A(f )(x) = αxf '(x) + 2x^2f ''(x).$  Assume $Y_0 = y ∈ R^+.$  I would like to find $Y_t$ and from that would like to find $E [Y_t ]$ and $Var [Y_t ]$.  Can someone please walk me through this example?


$2^b-1$ does not divide $2^a+1$,how can I show it?

$$\text{ If } a,b \geq 3, \text{ show that } \  2^b-1 \text{ does not divide } 2^a+1$$  How can I do this? Could you give me a hint?


What is the behaviour of nested transactions. I am using java + jdbc ? Eg:  tx1.begin     do stuff1     tx2.begin         do stuff2     tx2.commit     do stuff1.1 tx1.rollback   tx2 is basically inside another function. Will the results from tx2 be persisted ?  In case behaviour is db specific, what is it in case of Sql server 2005 ?


When publication A cites B, should I cite A or B?

Let's say publication A has a nice overview of a topic and cites B and C sources to back up a few important points. Should I cite A, since it provided me with B and C? Or do I have a responsibility to read these citations? What if B is a 40-page, esoteric paper that I am unlikely to read. This seems like a rabbit hole, and I'm not sure how far down my due diligence should take me.


is it possible to clear all textboxes in HTML by calling a javascript function ?


I have an app written in PHP with MySQL in the back. Originally the app was using custom language class that was quite ineffective so I changed everything to use gettext.  The problem is a lot of strings are in the database, stored in tables that are never changed just read from. The good thing is every installation is in only one language.  In order to provide the strings in different languages, different databases were used before. There is database_en, database_fr, etc. and every new installation is using the appropriate localized database. I want to change this - one database for all languages.   I am thinking of moving everything language specific from the database to config files where gettext can be used again.  Do you think this is good idea or you would continue using different databases for different installations? Can you recommend something better ?


Is there a way to see questions with a certain tag from all Stack Exchange sites?

For example, I see there are questions with the  tag on Stack Overflow, but there are also such questions on Super User, Unix/Linux, and other sites in the network.  Is there a way to follow a tag across all of the Stack Exchange sites, so that one can see the global activity of a topic without visiting all the sites separately?


Why pendulum does not follow SHM for larger angular displacement?

Considering an ideal case(neglecting drag of air, damping etc.), a pendulum follows SHM if the angular displacement is small (upto 10 degrees). But, for large angular displacement(more than 10 degree), it does not follow SHM. Why? What force cause the pendulum not to follow SHM?


Does it make sense to get a second M.Sc. while pursuing a PhD?

The situation: You did your B.Sc. and M.Sc. in CS with focus on subfield X1 and are now pursuing a PhD in subfield X2. There is a Masters program in subfield X2 available where you do your PhD that offers courses that allow you to advance in this subfield (which is pretty new to you).  Does it make sense to get a second M.Sc. while pursuing a PhD if the courses of the Masters program will be beneficial to your PhD work? Subquestion: Do you think it is even feasible to do this based on your experience?  The geographic context is Europe/Germany so a PhD does not include course work. A Masters (at a university of applied sciences) takes 3 semesters full time with the possibility to double that time when doing it part time.


How to canonically create a brand new object in Python

Is there a way to create a brand new object with canonic operations ? I am a bit confused by the example below :  x = 1 y = int.__new__(int, 1) print x is y  >> True   EDIT :   enlights the example above, but doesn't answer the question about the existence of a canonic way to create two different int objects. In the end, it just helps to understand that writing x = 256; y = 256 is not a solution, which is not what I was looking for.


Cleaning up long chains of comments is a pain in the butt. Major sort. It just takes too many damn clicks, with all the confirmation and flag reason picking dialogs.  Please implement bulk operations for comments (for moderators), maybe like so (crude mockup):        Comments taken from ; no statement about comment quality intended.  Note there is a , but the proposal here is to add this to regular pages, not (only) to queues.


Proving $\mathbb{P}(\xi_1+ \xi_2+...+\xi_n=1)=(\sum_{i=1}^{n}\lambda_i)\Delta + \mathcal{R}\Delta^2$

Let $\xi_1, \xi_2,...,\xi_n$ be independent Bernoulli random variables in $(\Omega,\mathcal{P}(\Omega),\mathbb{P})$ and $$\mathbb{P}(\xi_i=0)=1-\lambda_i\Delta$$ and $$\mathbb{P}(\xi_i=1)=\lambda_i\Delta.$$ Here $\lambda_1,\lambda_2,...,\lambda_n$ are positive parameters and $0< \Delta <\frac{1}{2\max\{\lambda_1,\lambda_2,...,\lambda_n\}}$.    We need to show $$\mathbb{P}(\xi_1+ \xi_2+...+\xi_n=1)=(\sum_{i=1}^{n}\lambda_i)\Delta + \mathcal{R}\Delta^2,$$ where $|\mathcal{R}| \leq 2(\sum_{i=1}^{n}\lambda_i^2+(\sum_{i=1}^{n}\lambda_i)^2)$  How I should start and what to do? I really have no idea. Can somebody explain this to me?


Question : If $f$ and $g$ are analytic functions on domain $\mathbb{D}$ and so is the product $\overline{f}g$ on $\mathbb{D}$. Then, $f$ is a constant or $g\equiv 0$ identically  I do not know how to start. If not an answer, I hope  the hint for Question.   $\overline{f}$ means a conjugate function for $f$ This exercise is included in the section for The identity Theorem.


What is the difference between "accumulative" and "cumulative"?

I'm having a hard time understanding the real distinction between  and .  accumulative     adjective         tending to accumulate or arising from accumulation; cumulative.   tending to accumulate wealth; acquisitive.      cumulative     adjective         increasing or growing by accumulation or successive additions: the cumulative effect of one rejection after another.   formed by or resulting from accumulation or the addition of successive parts or elements.   of or pertaining to interest or dividends that, if not paid when due, become a prior claim for payment in the future: cumulative preferred stocks.      These definitions (and those from other dictionaries as well) say different things but I can't understand how they aren't really meaning the same thing.  Yet, when thinking about it, it seems there are some cases where it is distinctly more correct to use one or the other.  What's the difference, practically?


Is there a simple way of finding the eigenstates of the creation and annihilation operator in QM?

How can I find the eigenstates of creation and annihilation operator in QM?   My attempt:  Such eigenstate will obey: $$ a^{\dagger} |\psi \rangle = \alpha |\psi \rangle. $$  We can expand $|\psi \rangle$ in terms of the quantum SHM eigenstates: $|\psi \rangle = \sum_{n=0}^{\infty} c_n |n\rangle $.  Knowing the action of the creation operation of quantum SHM eigenmodes ($a^{\dagger}|n\rangle = \sqrt{n+1}|n+1\rangle)$:  $$ a^{\dagger} |\psi \rangle = a^{\dagger} \sum_{n=0}^{\infty} c_n |n\rangle = \sum_{n=0}^{\infty} c_n \sqrt{n+1}|n+1\rangle$$  from which the state $|0\rangle$ is now missing, so it will never be equal to the RHS of the first expression, $\alpha |\psi\rangle = \sum_{n=0}^{\infty} \alpha c_n |n\rangle $.


book about family who travels to planet whose original inhabitants are called architects or builders

I recently read a book and I'd like to know the author and title - it was about a girl and her politician father and two brothers who, after her mother dies suddenly, travel to a planet that has a small colony of people from earth on it, along with some original inhabitants, who have strange English names.    Earth people take a drug there to prevent them from having out of body experiences where they can see through the eyes of small lizards who roam around listening in on people's conversations.  The original inhabitants of the planet are called builders or architects, and they have mostly left the planet, but a few remain, and they are apparently affable but possibly sexually deviant.  The 13 year old girl doesn't take the drug, has some weird experiences, and has some interactions with a charismatic older man who challenges her father.  There are some other strange events and interactions among the other children.


How to get file extension from string in C++

Given a string "filename.conf", how to I verify the extension part?  I need a cross platform solution.


Solving nonlinear first-order difference equation $ d_m = p_0 + p_1d_{m-1} + p_2(d_{m-1})^2 $ (extinction problem)

The steady-state equilibrium is $ d^* = \frac{1-p_1-\sqrt{(p_1-1)^2-4p_0p_2}}{2p_2} $. Based on a plot, I guessed the solution $ d_m = d^*(1-e^{-\alpha m}) $, which is pretty close but not correct. What other method can I use to solve this?  Context: This is to calculate the extinction probability of a branching process at each step, as in .


How can I add arial to the fonts used by software?

Hi people I've used Ubuntu's software centre to add Microsoft fonts (by downloading the package ttf-mscorefonts-installer) to Ubuntu but this doesn't seem to translate into the fonts being available for MarvinSketch which is actually the whole reason I added these new fonts. Plus it doesn't seem available for LibreOffice See I'm trying to create images that satisfy  and one of them is that the text in MarvinSketch is in Arial font. I also can't seem to get this font to be used for general things like headings and default text in other software like Google Chrome (which I'm trying to achieve by means of Ubuntu Tweak Tool).


Short trick to find the number of Sylow p subgroups in permutation groups.

I know, $|S_4 |=24 =2^3\cdot3$. So here the order of sylow $2$ subgroup is $8$ and by the third sylow theorem we can say the number of sylow $2$ subgroups is $1$ or $3$. Then by finding the sylow $2$ subgroups explicitly we can conclude that its $3$. But here we also know the number of sylow $3$ subgroups is $1$ or $4$.  My question is can we find the exact number of sylow $2$ and $3$ subgroups without calculating the the sylow subgroups explicitly, just by element counting of the subgroups, because sometimes we need only the exact number in of sylow subgroups ?


Work and Kinetic energy rely on each other which came first?

In all the places I've looked kinetic energy is derived from the definition of work, but I don't understand how the definition of work was developed with out the concept of kinetic energy. My question really is:  What is the logic behind the definition of  without referring to kinetic energy?  OR  What is the logic behind the definition of  without referring to work?


Deleted inactive picklist values thru automated way

I have huge list of inactive picklist values that needs to be deleted forever. Manually takes lot of time deleting in each instance, is there any automated way like Apex code or data loader to delete them in single shot? Thanks for your response.


I have a question about a problem I'm having installing optifine with forge on minecraft.  Is there a place where I could ask this question?  I asked this on gaming, but I just got downvoted and told it is the wrong place.  The question is here:


How to calculate per site meta reputation?

The displayed reputation on per site meta is the same as on the respective parent site. However, out of curiosity, I'd like to see the actual reputation users would have on a meta if it was counted independently. I toyed around with the data explorer (and fruitlessly used its search), but all the extras like rep-cap, answer-accepts and bonuses were too much for my crappy SQL and I don't think there is much point in re-implementing the rep-computation algorithm since it's already there.  So, is there a way to show the theoretical meta-rep of users?


phone number Extracting from HTML Using regex

I want to extract a phone number from HTML using regex. I am using this regex  \d{4}\s\d{3}\s\d{3}   for phone number 1234 546 567. This regex successfully extracts the given phone number from HTML.  But a problem occurs when there is another number (which I don't want to extract) like this: 1234 567 89023. Now from this number it is also extracting 1234 567 890 but I don't want it to extract anything from that number.  Then I changed the regex to  ^\d{4}\s\d{3}\s\d{3}$   but now it is not even extracting any valid numbers.  What should I do? Edited:  string MatchAusPhoneNumber = @"\D(\d{4}\s\d{3}\s\d{3})\D"; MatchCollection mathph2 = Regex.Matches(chk, MatchAusPhoneNumber);  foreach (Match matchio in mathph2) {     foreach (Capture capture in matchio.Captures)     {         if (my.ContainsKey(capture.Value) == false)         {             my.Add(capture.Value, capture.Value);             mylist.Add(capture.Value);         }     } }


What happens to a Horcrux if the creature it's contained inside is killed?

If a living creature that contains a Horcrux is killed by "normal means", i.e. not a way of destroying a Horcrux like basilisk venom, what happens to the Horcrux?  For example, what would have happened to the Horcrux in Nagini if she had been killed in a way that didn't also destroy the Horcrux?


Is there a difference between (local), '.' and localhost?

I've used all three of these when making local programmatic connections to databases. Is there any real difference between them?


I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points.  I am well aware that CentOS removes all RH trademarks, logos, etc. and is based on the same codes with packages built by the community.   Are the packages built for CentOS exactly the same? Will the contents of the packages and the behavior of the programs be identical to those found on RHEL? What is RHN other than a medium for license registration? What is it to CentOS?   I'm an Ubuntu desktop user. Attended a RH299 course which did not really touch anything about the support aspect (i.e. RHN). Other than that I've no professional Linux knowledge or experience.  EDIT  I did read the , but I found the details unsatisfactory. The release notes mentions ,  or  to upstream. But it neither explains nor links to any document detailing what exactly is different in the modified packages. Granted the branding packages are self-explanatory, but it mentions packages like kernel, ntp, anaconda, etc. which have nothing to do with branding as far as I'm aware.


What is polar equation of a Heptagon ? I need to move some Android views in the form of a heptagon, for I need to have polar equations for Heptagon like for $x= r\sin(\theta)$ and $y=r\cos(\theta)$.  Is it possible to have polar equation for a heptagon too ?


How do I alter the path of an uploaded image/file such that it includes the path of the node I attach it to via an image field?

I added an Image Field to my Node content type. Now, when I upload an image "image1.jpg" that is attached to a node mysite.com/note/123, I want the uploaded image's path to be mysite.com/node/123/image1.jpg. How do I achieve this? I've tried to change the subfolder of the image with a token. I used the token [current-page:path], but that doesn't return the node where I'm attaching to, but the last page that was visited. (Which might be the node edit form or something completely different with ajax, say)


What is this glassy black bulge on a keytar button chip?

I'm disassembling a non-functioning toy keytar. This is the chip behind a couple buttons, including an on/off button. What could the black, glassy bulge component be?


In  we see Tony Stark fight the Hulk using the . The destructive battle apparently ends in      the Hulk being knocked out by Iron Man.   Or something along similar lines. During the fight, Stark wishes a number of times for the Hulk to get knocked out and/or "Go to sleep!"    My question is, how is this possible? As confirmed by , "the Hulk's potential strength has no finite element inside." It's often quoted that "the madder the Hulk gets, the stronger the Hulk gets,"  so how is it possible to knock him out to begin with?