Android error java.lang.RuntimeException: Error receiving broadcast Intent

Im currently working on a project and I keep running into the error java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.WIFI_AP_STATE_CHANGED flg=0x4000010 (has extras) } in cn.ingenic.glasssync.utils.WifiAPUtils$1@428319e Reading the logs further I also see a null pointer exception where it says: Caused by: java.lang.NullPointerException: println needs a message 01-06 10:57:26.272 12372 12372 E AndroidRuntime:    at android.util.Log.println_native(Native Method) 01-06 10:57:26.272 12372 12372 E AndroidRuntime:    at android.util.Log.e(Log.java:249) 01-06 10:57:26.272 12372 12372 E AndroidRuntime:    at cn.ingenic.glasssync.utils.WifiAPUtils.getValidApSsid(WifiAPUtils.java:225) 01-06 10:57:26.272 12372 12372 E AndroidRuntime:    at cn.ingenic.glasssync.utils.WifiAPUtils$1.onReceive(WifiAPUtils.java:202) When I check line 225 in WifiAPUtils.java and replace it with a valid string I then get the error 01-11 00:00:50.590 29176 29217 E AndroidRuntime: FATAL EXCEPTION: Thread-2 01-11 00:00:50.590 29176 29217 E AndroidRuntime: Process: cn.ingenic.glasssync:remote, PID: 29176 01-11 00:00:50.590 29176 29217 E AndroidRuntime: java.lang.ExceptionInInitializerError 01-11 00:00:50.590 29176 29217 E AndroidRuntime:     at com.baidu.location.Jni.j(Unknown Source:0) 01-11 00:00:50.590 29176 29217 E AndroidRuntime:     at com.baidu.location.t$a.X(Unknown Source:8) 01-11 00:00:50.590 29176 29217 E AndroidRuntime:     at com.baidu.location.ae.run(Unknown Source:10) 01-11 00:00:50.590 29176 29217 E AndroidRuntime: Caused by: java.lang.IllegalStateException: no found the liblocSDK4d.so file, please correct settings Would anyone happen to know what could be the cause of this error here is the snippet of the code that could be potentially causing this error: private BroadcastReceiver mWifiStateBroadcastReceiver = new BroadcastReceiver() {                      @Override         public void onReceive(Context context, Intent intent) {         Log.i(TAG,"WifiAPUtils onReceive: "+intent.getAction());         if(WIFI_AP_STATE_CHANGED_ACTION.equals(intent.getAction())) {             int cstate = intent.getIntExtra(EXTRA_WIFI_AP_STATE, -1);             if(cstate == WIFI_AP_STATE_ENABLED) {             if(mHandler != null)                 mHandler.sendEmptyMessage(MESSAGE_AP_STATE_ENABLED);                /*notify glass to reconnect*/             String ssid = getValidApSsid(context);             String pw = getValidPassword(context);             int security = getValidSecurity(context);             SettingModule.getInstance(context).sendWifiApInfo(ssid, pw, security);              }if(cstate == WIFI_AP_STATE_DISABLED  || cstate == WIFI_AP_STATE_FAILED) {             if(mHandler != null)                 mHandler.sendEmptyMessage(MESSAGE_AP_STATE_FAILED);             }         }         }     };              public enum WifiCipherType {         WIFICIPHER_NOPASS, WIFICIPHER_WPA, WIFICIPHER_WEP, WIFICIPHER_INVALID, WIFICIPHER_WPA2     }          public String getValidApSsid(Context context) {         try {             Method method = mWifiManager.getClass().getMethod("getWifiApConfiguration");             WifiConfiguration configuration = (WifiConfiguration)method.invoke(mWifiManager);             return configuration.SSID;           } catch (Exception e) {                 Log.e(TAG,"testing" + e.getMessage());                 return null;                 }     }


I probably have a corrupted SD card. And I'd like to fill it with zeros, 100%. So what commands should I type, assuming the device is /dev/sdc?


I created a file   touch /datastore/virtual/pseudoblock   created a loop device with it  sudo losetup /dev/loop0 /datastore/virtual/pseudoblock   (although I got a warning about its size)  and then initialized it with random data  dd if=/dev/urandom of=/dev/loop0 bs=1M count=100   My questions are  a) why is it not displayed yet in my block devices' list?  NAME                     MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT sdb                        8:16   0 489.1G  0 disk   ├─sdb2                     8:18   0   488M  0 part  /boot ├─sdb3                     8:19   0 488.1G  0 part   │ └─sdb3_crypt           253:0    0 488.1G  0 crypt  │   ├─ubuntu--vg-root    253:1    0 472.2G  0 lvm   / │   └─ubuntu--vg-swap_1  253:2    0  15.9G  0 lvm   [SWAP] └─sdb1                     8:17   0   512M  0 part  /boot/efi sda                        8:0    0 931.5G  0 disk   └─sda1                     8:1    0 931.5G  0 part     └─sda1_crypt           253:3    0 931.5G  0 crypt      └─store--vg-store1tb 253:4    0 931.5G  0 lvm   /datastore   b) how can I permanently mount it via /etc/fstab since I cannot get its UUID?  $ blkid /dev/mapper/sdb3_crypt: UUID="fSHjbj-51K2-QfhI-G0Wb-o3lN-4pE1-BB4wCP" TYPE="LVM2_member" /dev/mapper/ubuntu--vg-root: UUID="9e452886-4d8g-fj54-854c-80bc171826e8" TYPE="ext4"   working on   $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.5 LTS Release:    16.04 Codename:   xenial   with  $ uname -a Linux pkara-pc01 4.15.0-42-generic #45~16.04.1-Ubuntu SMP Mon Nov 19 13:02:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


Plase explain with an example the form correct of: $ \displaystyle {\limsup_{n\to \infty} s_n = s^* }$ with Rudin definition, because $s^* =\sup E $ and $ E $ is all point of subsequential limits.  Because iam confused.


Filter some objects from the array of objects

I have an array of objects. I am trying to filter some objects from the array and get a new array using the following.  [   {     "userId": 1,     "title": "title 1",     "body": "Body for user 1",     "address": {       "country": "Germany",       "state": "State1"     },     "phone": 1234   },   {     "userId": 2,     "title": "title 2",     "body": "Body for user 2",     "address": {       "country": "Canada",       "state": "State2"     },     "phone": 4321   } ]   How can i filter the array and get the new array without address and phone. Any help is appreciated. Thank you


Can the addition of an article change a noun from a thing to a place?

I'm an amateur trying to brush up on my grammar, and I've come across a confusing question. Can the addition of an article change the type of a noun? For example, if I used the term 'park', would this refer to a thing since I'm describing a broad class of things called 'parks'? With the addition of an article like 'the park', have I now changed the noun to a specific place rather than a thing? In general I'm having trouble distinguishing whether or not certain nouns are things or places. I'd greatly appreciate any help or insight. Thanks.


My class  class student    {  public string studentid { get; set; }  public string groupid { get; set; }//Group id }   My List  List<student> pupils = new List<student>();   here I select students with no group ID. I have assigned students with no group ID as ="00"        var studentWithNogroupID = from student in pupils where student.groupid == "00" select student;   I have an integer which I'm gonna increase each time and convert to char and assign each student.   int groupid=001; string grid = myInt.ToString(groupid);   Here I'm assigning each member with group id like this..  foreach(var student in studentsWithNoGroupId) {   student.groupid = "grid"; }   My problem is I have to assign three members to a group.  In other words 3 members should have same group id. And after each 3 members it should increase the group id which is like this to create a new group id.   groupid+=1;   How to go three by three in for loop or can anyone provide me a solution to assign three students to a group.


Why its necessary to use any string with dot point with self in class python(self.x=x)?

I am learning oop in python so i am having some problem to understand sefl keyword properly.   Suppose a program :  class ge:    def __init__(self,a,b):       self.p=a       self.l=b    def ff(self):       aaa=self.p+self.l       print(aaa)  hh=ge(1,2) hh.ff()   I am confuse why its necessary to use any string with self with dot ? what it means ? Like:  self.a=a and we can change self.a to ay string like self.b , self.c what it means ?? why its necessary ?  My second question is :  what is difference between defining class with parameter and without parameter ?  class hello(object):    def __init__(self,a,v):       self.a=a       self.v=v    def p(self):       f=self.a+self.v       print(f)  he=hello(1,2) he.p()   if i defined  class hello(object) its working but  if i defined class like: class hello(): its also working  but if i defined like: class hello:  its also working   what is the difference class hello(object):  , class hello(), class hello:


I'm trying to make a texttwist type game where you get random letters and have to make them into words, kind of like scrabble. I need to figure out how to add a function to my jbuttons to make, for example, the clear button clear the guess panel, or the submit button submit it, etc.  package gui;  import java.awt.Color; import java.awt.Font; import java.util.ArrayList;  import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.BevelBorder;  import gui.event_handlers.GuessButtonHandler; import gui.event_handlers.InventoryButtonHandler; import model.Model; import model.Observer;  public class GUI implements Observer {      private JFrame _window;     private JPanel _wordsToGuessPanel;     private JPanel _inventoryPanel;     private JPanel _guessPanel;     private Model _model;     private JButton _submit;      public GUI(Model m) {         _model = m;         _model.addObserver(this);          _window = new JFrame("TwistyWord");         _window.getContentPane().setLayout(new BoxLayout(_window.getContentPane(), BoxLayout.Y_AXIS));          _wordsToGuessPanel = new JPanel();         _window.getContentPane().add(_wordsToGuessPanel);          JPanel middlePanel = new JPanel();         middlePanel.setLayout(new BoxLayout(middlePanel, BoxLayout.X_AXIS));         _window.getContentPane().add(middlePanel);          JPanel controlPanel = new JPanel();         controlPanel.setLayout(new BoxLayout(controlPanel, BoxLayout.X_AXIS));         _window.getContentPane().add(controlPanel);          JButton shuffle = new JButton("shuffle");         setButtonProperties(shuffle);         controlPanel.add(shuffle);          JButton clear = new JButton("clear");         setButtonProperties(clear);         controlPanel.add(clear);          _submit = new JButton("submit");         setButtonProperties(_submit);         controlPanel.add(_submit);          _inventoryPanel = new JPanel();         _inventoryPanel.setLayout(new BoxLayout(_inventoryPanel, BoxLayout.X_AXIS));          _guessPanel = new JPanel();         _guessPanel.setLayout(new BoxLayout(_guessPanel, BoxLayout.X_AXIS));          middlePanel.add(new JLabel("INVENTORY: "));             middlePanel.add(_inventoryPanel);             middlePanel.add(new JLabel("GUESS: "));         middlePanel.add(_guessPanel);          _model.start();          _window.setVisible(true);         _window.pack();         _window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      }      @Override     public void update() {         _inventoryPanel.removeAll();         ArrayList<Character> inventoryLetters = _model.getInventoryLetters();         for (int i=0; i<inventoryLetters.size(); i=i+1) {             JButton b = new JButton(""+inventoryLetters.get(i));             setButtonProperties(b);             _inventoryPanel.add(b);             b.addActionListener(new InventoryButtonHandler(_model, i));         }         _guessPanel.removeAll();         ArrayList<Character> guessLetters = _model.getGuessLetters();         for (int i=0; i<guessLetters.size(); i=i+1) {             JButton b = new JButton(""+guessLetters.get(i));             setButtonProperties(b);             _guessPanel.add(b);             b.addActionListener(new GuessButtonHandler(_model, i));         }         _window.pack();         _window.repaint();     }      public void setButtonProperties(JButton button) {         button.setFont(new Font("Courier", Font.BOLD, 44));         button.setBackground(Color.WHITE);         button.setForeground(Color.BLACK);         button.setOpaque(true);         button.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.DARK_GRAY, Color.LIGHT_GRAY));     }  }


Why does n choose k always yield a whole number?

I'm just wondering why the n choose k formula  $n \choose k$ = $\frac{n!}{k!(n-k)!}$  always gets you a whole number. I know that obviously there can only be a whole number of "ways" to choose k items in n items, but I'm more interested on how the factorials divide.


Do university accept a Mechatronics Engineer undergraduate to do Masters in computer science?

I finished my undergraduate studies in Mechatronics Engineering and have a low CGPA. The main reason is that I'd been developing web application and doing small projects (creating robots). I have interested in doing Masters in computer science, because it would help me to get better understanding and I have a huge interest in artificial intelligence systems. Do Universities in USA accept undergraduates, who don't have CS and have less CGPA? Please share your ideas. It will, really, help me a lot.


Voltage Amplifier circuit for PWM amplification

I am using the raspberry pi to generate a PWM signal to feed the servo motor. The output voltage (Max) from a Rpi GPIO is 3.3V whereas I need it to be 5V for my specific application. So I am thinking of using a Voltage amplifier, I have two choices:    1)A non-inverting amplifier like this:  Where Gain Av=Rf+R1/R1    2)A Transistor voltage amplifier something Like this:     Questions:    1)what would be the best choice? 2)considering the PWM frequency to be somewhere from 20-200KHz, Which one of those will provide the better output response?  Thankyou.


How to calculate Time complexity for a program?

I am trying to learn Time complexity of a programs.  I studied many blogs but, Each one is trying to explain different.  Can any one explain me clearly with programs as example.  Thanks in advance.


Today I created  and I was surprised that NO confirmation was required.  I found  suggesting a confirmation on new tag creation, but it dates from 2 years ago and it is in status-planned.  This confirmation is very important to avoid mistyped tags, which may become a bigger issue in the future...


Chrome 37 UI got larger and became blurry on 125% DPI

Today I updated to Chrome 37 stable (64-bit, but 32-bit has the same issue).  I am using 125% DPI mode in Windows 8.1, because I need larger fonts everywhere, since my eyes are not so good :)  The problem is that, after updating, the size of Chrome's interface has notably increased and both the interface and the fonts started to look blurry and horrible.  I tried the following things and none of them worked:   Disabling DirectWrite in chrome://flags. Weirdly, not just that this does not work, but the font kerning (distance between letters) gets uneven. Enabling distance field text. Enabling the compatiblity option Disable display scaling on high DPI settings. Enabling the high DPI mode on Chrome by following . In the control panel, clicking on Make text and other items larger or smaller and toggling the option Let me choose one level for all my displays. Changing Chrome settings default page zoom and default font size.   Is there a solution to this problem which doesn't involve changing my Windows DPI to 100% or going back to Chrome 36?


I have (normal user) access to a SunOS 5.10 machine.  /usr/bin/which is broken (it blocks).  Clearly something is wrong on the system, but not having root access limits drastically what I can do. I have tried copying my which from Ubuntu, but that depends on features not available on SunOS 5.10.  $ md5sum /usr/bin/which a39bb82e9e354c5b99e9e235a53c48d9  /usr/bin/which $ uname -a SunOS solaris 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Fire-V210 Solaris $ bash --version GNU bash, version 4.3.33(1)-release (sparc-sun-solaris2.10) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>  This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.   Where can I find a which command that will work on this old system?


I'm using package "color" to have a green text box with black text, and my code is -  \textbf{\fcolorbox{black}{green!30}{black text on a boxed green background}}   How can I get it to wrap lines please?  If it can't wrap with 'fcolorbox', what command would have the same effect and would wrap please?


My iPhone SE on iOS 12 has been acting strange recently.   Yesterday, it turned off at around 10% and when I tried to turn it on it said that it has no power. Two minutes later, it turned on and said it had 14% capacity remaining.  Today, when it was at around 10%, it turned off. Then I turned it on  and it said 12%. Two minutes later, it turned off. It says "connect to power."  After a few minutes I tried again and it turned on. Then it gives an error saying  that it "can’t connect to my mobile data network" and then the  phone crashes.   I turned it on again, and it worked normally.   What is causing this?  EDIT: After digging around my batter settings I found this:


Why are austenitic stainless steels not ferromagnetic?

There has been a question about this from 2015 but I don't think it has been answered well enough and the question also wasn't specific so I'm hoping that this time around, someone will be able to give a more detailed explanation because I'm curious: Why are  (mostly) not ferromagnetic?   Is it because of their face-centered cubic crystal structure? And if so, why? I understand why and how ferritic stainless steels become magnetic, but why can't austenitic stainless steels do the same?


How can i format an exponent with more than one digit? For example i want $10^20$ and latex gives me 10^2 and 0.


My images are blurry! Why isn't WPF's SnapsToDevicePixels working?

I'm using some Images in my WPF applcation.  XAML:  <Image Name="ImageOrderedList"        Source="images/OrderedList.png"        ToolTip="Ordered List"        Margin="0,0,5,5"        Width="20"        Height="20"        SnapsToDevicePixels="True"        MouseUp="Image_MouseUp"        MouseEnter="Image_MouseEnter"        MouseLeave="Image_MouseLeave" />   But, they appear fuzzy.  Why doesn't that SnapsToDevicePixels="True" line prevent this problem?


'took several years to be built' or 'took several years to build' – which one is correct?

Which one of these sentences is correct?  The palace took several years to build.  or  The palace took several years to be built.  I heard the first one while I was watching Discovery Channel and I think it is not correct because the palace did not build on its own – someone had to build it. So the passive form seems the correct sentence.


First of all sorry for not asking a technical question.  Actually I need to know the best English grammar book in terms of completeness and depth of every topic.  Any help would be appreciated.


Section numbering missing in classicthesis

I am trying to write my master thesis using classicthesis package, everything if working fine except the section numbering.  I am able to start the chapters correctly.  But when I start a section I have the issue. I want to have a section numbering also. It comes in the top of the page, but I also want it in the beginning of the section.  Would also like to have the page number to the bottom of the page. The big number when the chapter starts is okay. But in the other pages I want to have it to the bottom of the page not on the top right cornet, instead in the bottom left corner,


How can I break items down into their components

In my Junk inventory I can see the components that make up an item. For example, an Adjustable Wrench yields Steel and a Gear. There are also weapons and armor I don't need, as well as debris lying around my settlement in the form of cars, tires, trees, etc.  How can I turn these things into their component parts for crafting?


How to add year and change date format in top GNOME panel?

Currently the top panel has the time like this in this format:    But is there any way I can add the current year to that? And also a way of rearranging/changing the date format (though this is just something that I would preferably like in the answer but the main thing I want is the year)?  I am running Ubuntu GNOME 15.10 with GNOME 3.18.


When I do some computation, I get a number as follows. I cannot use this in my further computations as it requires it to be a number and not to have characters in between. How can I expand this number to an actual number?  2.725808E8


how to use mkdosfs command to do partition of 200MB with FAT32

I want to do two partitions for my SD card with FAT and EXT4 using Ubuntu.  For this, I found two commands:  mkdosfs /dev/sda1 -n  mke2fs /dev/sda1 -L   But how should I specify the size, for FAT I need 200MB and rest with EXT4.  When tried to give mkdosfs /dev/sda1 -n I got an error.  sudo mkdosfs /dev/sda mkfs.fat 3.0.28 (2015-05-16) mkdosfs: unable to open /dev/sda: Device or resource busy


What is the easiest way to reset a configuration file that I accidentally deleted?

I have accidentally deleted a configuration file (/etc/pptpd.conf) and was wondering what would be the best way to recover the default configuration file that comes with the pptpd package. Is there a way to "checkout" a single file from a package?


Each Stack Exchange site should provide users the option of using a dark mode design/theme.  Why is this feature missing?  The major IDEs are already a letdown regarding dark color schemes.


I'm pretty sure this is a rather stupid question but I just cannot wrap my mind around the reasoning behind friction.  Now, an obvious explanation would be that since all surfaces are inherently rough, the abnormalities sort of interfere with and obstruct each other, causing friction.  But, as it turns out, , so what is the fundamental force that causes opposing relative motion at a fundamental level?


Standard Visitor Visa refusal grounds V 4.2 (e) (opacity)

I applied for UK visa 3 weeks back and today I collected my documents. My application has been refused with following reason:        You state that the cost to you personally is 500 (GBP)  and that you are employed as xxx and receive a monthly income of yyyy. As   evidence of your funds you have submitted a photocopy of your bank   statement however, I am unable to see a salary being deposited to the   amount stated in your application for and therefore I am not satisfied   that your income or employment is as stated.          In light of the above, I am not satisfied that you have sufficient   funds to cover your costs whilst in the UK without working or   accessing public fund. You application has therefore been refused   under paragraph V4.2 (e).   I didn't attach any playslip or any proof of employment. I had just attached NOC from employer, bank statements and tax returns as part of financial.   I have been working in a startup for last 10 months and it doesn't pay me regularly. Although over a period of 8-9 months, total amount deposited by company is same as the amount stated in my application. Generally employer transfers 2-3 times of my stated salary once and for next 2-3 months there are no deposits.  Should I apply again with more documents, such as letter of employment from company, salary slip and proof of income?   I have flight tickets booked for Saturday (3rd June). Will going for priority visa help my case. Although there is a visa application center in my city, all applications are sent to different city for processing. I am planning to book an appointment for Monday and travel to that city to get it done.  Questions:   How to document the case of irregular payments? What type of documents should I get from the company? What do I need to ensure in the application considering refusal? What is the general timeline for priority visa? I know official site says 5 days, but I guess it decided earlier Is it worth trying again considering travel date is hardly a week away?


What does a "< <(...)" redirection mean?

I've seen that rvm (ruby version manager) is installed using the following command:  bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )   So as I understand we get the script content and pass it to the bash (I believe < < and << is the same thing?) I am interested in the < < part, found following description on the net:     << token    Means use the current input stream as STDIN for the program until token is seen.    This is somehow not clear for me, can someone make an example or explain it in more simple way?


If $ad$ and $bc$ are odd and even, respectively, then prove that $ax^3+bx^2+cx+d$ has an irrational root.

$\displaystyle ax^3+bx^2+cx+d$ is a polynomial with integer coefficients. It is given that $ad,\,bc$ are odd and even respectively. Then prove that not all roots of the polynomial are rational.  It is easy to see that none of the roots are integer. But how to tackle the rational case? Any help is appreciated.


How do I run my code when device is connected by usb?

I have written a program in node.js that lets me interact with certain usb connected device. It works fine when running the program explicitly. However, I was wondering if there is any way (I suppose there is) to automate the process of running this program when the device is connected. I am operating on a macOs High Sierra btw, as I've seen similar questions but for different operating systems.


In calculating work done by a constant force over a constant distance, why doesn't the subject's initial velocity matter?

Assume a point-mass $m$ is travelling in a straight line, and a force $F$ will act on $m$ (in the same direction as $m$'s velocity) over a constant distance $d$; why doesn't $m$'s velocity matter to the calculation of work done on $m$ by $F$? Work is defined such that, in this example, the work done by $F$ on $m$ is equal to $Fd$, but it seems that if $m$ were moving slower, it would spend more time in the field, allowing $F$ more time to act on $m$, thereby doing more work. In fact, if $m$'s velocity were very great, it would hardly spend time in $F$'s field at all (so very little work done). Maybe I misunderstand work; can someone address this confusion of mine?


Prove that a sequence converges monotonically to the solution of an equation.

For $c>0$, consider the quadratic equation ${x^2-x-c=0, x>0}$. Define the sequence $\{x_n\}$ recursively by fixing $x_1>0$ and then, if n is an index for which $x_n$ has been defined, defining ${x_{n+1}=\sqrt{(c+x_n)}}$. Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  So, I know that a sequence must be bounded and monotone in order for for it to converge monotonically. I also have the solution to the quadratic equation, $x'=\frac{1+\sqrt{1+4c}}{2}$. My professor says that there will be two cases, which I understand as we have to consider it increasing or decreasing. But, the other hint he gives which is to use algebra to establish that $x_1\leq x_2 = \sqrt{c+x_1}$ is confusing to me. He also says to state case 1 as $x_1 \leq x'$, and I am just very confused about everything.   Wouldn't I be able to just prove it is monotonically increasing as $x,c\geq 0$ and then somehow show it is bounded? (Not that I would know how to do that either)  Thanks for any help


A client asked me to host a website at www.drive-engagement.co.uk and I have linked it to search console and analytics and its showing as indexed. It appears on google if you type something like drive engagement oxon but my client is asking why it's not appearing if she types drive engagement or even drive-engagement. Is this just a case of competitive keywords? I thought drive-engagement might show it but don't think google uses the - in its search.  Note: It appears on yahoo and bing when searching drive engagment   Any guidance appreciated.


How to show that a valuation ring has a unique maximal ideal?

A subring $R$ of a field $K$ is said to be a valuation ring of $K$ if for each $x$ $\in$ $K^{*}$ we have either $x$ $\in$ R or $x^{-1}$ $\in$ $R$. How can I show that the valuation ring has a unique maximal ideal?


Email server configuration still complaining the connection isn't secure

This is a follow up to another question I had, but its quite different so I thought I'd start a new post.    I'm trying to work out why I still get this error message when adding an email account (in this case, in Thunderbird - but I also get the problem on phones as well);    The weird thing is that if I check it on SSL-Tools.net, it looks fine:    I really don't get it - as Thunderbird shows me my certificate is expired here:    Am I missing something? Please let me know if you need any more information to help me debug. I'm not sure what would be helpful.


Which sanctions can be applied by airline to me if I use round trip ticket as a one way

I want to travel from city A to city B. Round trip ticket costs much less than one-way. So I want to buy a round trip ticket and travel only in one direction. What airline can do to me to punish such a life hack? Will I have any problems with this?


Fonts look different compiled by latex vs. pdflatex

Why is my document pdf generated by pdflatex looks different from the one generated by latex+dvips+ps2pdf ? From the code below, i have tow different papers switch to the tow cited commands above :  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{lipsum} \author{M ROUAN SERIK} \title{Article with \LaTeXe} \fontfamily{cmr} \begin{document} \maketitle \section{Titled section} \lipsum \end{document}   Here's my pdffonts for the tow pdfs : Pdflatex:    name                   type     encoding  emb sub uni object ID   ------------------------------- ---------------- --- --- --- ---------   AMTRHA+SFRM1728        Type 1    Custom   yes yes no       4  0   DPTCLU+SFRM1200        Type 1    Custom   yes yes no       5  0   JVZRKA+CMMI12          Type 1    Builtin  yes yes no       6  0   UEWNID+SFBX1440        Type 1    Custom   yes yes no       7  0   FOVERL+SFRM1000        Type 1    Custom   yes yes no       8  0     latex+dvips+ps2pdf      name                                 type              encoding         emb sub uni object ID   ------------------------------------ ----------------- ---------------- --- --- --- ---------   WVMUEH+SFRM1000                      Type 1C           WinAnsi          yes yes no        16  0   ZHRBNN+SFBX1440                      Type 1C           WinAnsi          yes yes no      14  0   IMJWCD+CMMI12                        Type 1C           Custom           yes yes no      12  0   MDMSVR+SFRM1200                      Type 1C           WinAnsi          yes yes no      10  0   TWHNMT+SFRM1728                      Type 1C           WinAnsi          yes yes no       8  0


The memoryless property of exponential distribution

Let $Z$ be an exponential random variable and $R$ an independent nonnegative random variable. Show that $$ P(Z-R > u | Z > R ) = P(Z > u) $$ From here, I can use Bayes Theorem to split the Left Hand Side, and I know that I have to integrate them.  However, I'm not sure how to exactly to proceed from here. I know that $u \geq 0$.  Any help would be greatly appreciated.  Thanks!


How can I make my Photoshop text appear like it does on the web?

Do I really have to design everything in Photoshop with anti-aliasing set to "none"?  I'm sure there is a better way.    I'd like to have a setting so that when picking a basic web-safe (such as Tahoma) in Photoshop so I can see what it will actually look like when on the web.  For example: The difference between Tahoma with anti-aliasing set to "crisp" in Photoshop and how it renders in Firefox is major.  It looks nice and smooth in Photoshop and looks like crap on the web.  Is there a anti-aliasing choice that is best to start with (that has the most similar outcome) when planning to have the content live on the web?


Triangle numbers are  $0,1,3,6,10...$  And square numbers are $0,1,4,9,16...$  $N$'th triangle no. = $N(N+1)/2$ $N$'th square no. = $N\cdot N$  So I was wondering are there any numbers which are in both these lists apart from $0,1$??  I found one using trial and error that is $36$ which is the $8$'th triangular number and $6$'th square number. Are there more? What is the algebraic method to calculate them?? thanks in advance.


How to enable password for administrator user account

I disabled the password for my user account while I was logged in (I was the only administrator). But I did not enable automatic login. I switched user to "Guest", but when I switched back to my account (the administrator account), my user account askes me for my password. When I type my password in, it says its incorrect. So I need a way of accessing my user account if this is the case.


Any ordinal number can be turned into a topological space by using the order topology. The topological space $\omega_1$ is sequentially compact but not compact.  Why is $\omega_1$ not compact ?


I have Ubuntu already installed. I wanted to get windows 7 as well, I followed the instructions I was given, to partition my hard drive and to format it to a NTFS for Windows but now When I try to boot from HDD I only get Windows. I am seeing that I was (if done right) to get a GRUB menu at start you, so I may pick which one I would to start up. I would much thankful of your help, also I have no issue with having to flash my hard drive and start from scratch.


Is ice subject to the TSA's 3-1-1 Liquids Rule?

I was wondering if ice is subject to the liquids rule.  It is not a liquid, gel, aerosol, cream or paste.


Unknown filesystem grub error after unistalling Ubuntu partition from Windows 8

I have a really big problem. I deleted Ubuntu partitions from Windows 8 and now on startup of my other pc (im using my old one now to contact you) it shows this error:  Unknown filesystem: grub rescue>  tried some commands from other threads but it shows me again the same error. I think that Ubuntu has been completely uninstalled, but this grub rescue pops me out.  I cannot boot in my pc anywhere! either in Windows. The only thing i can do is write commands in grub rescue, or enter BIOS Windows Menu... :(


What is the difference between Evee and Cycles

As mentioned in the title i don't understand which differences are and when is better tu use one render than another


How to check whether an element in list is in another list and at which index?

Let's say I have two lists a = [1,2,3,4] b = [5,9,1,2] and I want to get the indices of every element in list b when an element of list a is in there. In this example, the result should be a list c containing all indices in b c = [2,3] 1 in list a is on index 2 in b 2 in list a is on index 3 in b Thanks in advance!!


How can I add password of user as alias in bashrc file?

I have created alias for username and it works fine   alias yb="ssh name@hostname"   It works fine, but I also want to create alias for password, Can anyone help how can I do this?


Install USB wireless adapter tp-link tl-wn8200nd in Ubuntu

This adapter sports the chipset Realtek rtl8192eu. How do I install the driver for this chipset?


Our irresistible tendency to see things in human terms ― that we are often mistaken in attributing complex human motives and processing abilities to other species ― does not mean that an animal’s behavior is not, in fact, complex.  The part in bold is a noun cluase? And can I break it down as below? that/we are often mistaken/in attributing complex human motives and processing abilities/to other species


When does touch command need the file to exist?

I've noticed sometimes I touch a file that does not exist at all and after the command, the files get created. However, depending on what directory I'm touching, I get "No such file or directory" error.  For example, If I run touch foo.txt, the foo.txt file gets created in my home directory. Instead, if I run touch /bar/foo.txt, I get touch: cannot touch '/bar/foo.txt': No such file or directory.  What's the logic behind this? Thanks.


Longest Path in a acyclic, directed graph

Is there a known algorithm which finds the longest path in an acyclic, directed graph like the one below?  For this example, the algorithm should calculcate a longest path of 28m


Delete a file in Linux irrespective of it being open

I am trying to delete files while archiving, using:    rm -Rf /test/this/path/.   but when I run this command I am getting this error:     Device or resource busy   This is due to the file being open by some other user.  Now, how can I delete a file irrespective of whether it is open?


Can you identify a time travel story in which every attendant of the passion of Jesus Christ turns out to be a time traveller?

I've read twice now about a short story in which time travel is a vacation thing, with destinations offered at the travelers's choice. The protagonist realizes that he could attend the passion of Jesus Christ. While there he finds that all the other attendants are time travellers as well.  I've first saw this mentioned about 25 years ago in an edition of GEO magazine (can't remember which one) in an editorial about ... I think it was physics, time travel, but could be something else entirely. The second time I saw it referenced in the novel "Jesus Video" by Andreas Eschbach:


Why NOPASSWD in visudo on Linux Mint 18 does not work

This is a sudoers file which I have on a Debian 9 server and it works.  /etc/sudoers contains:  Defaults    env_reset Defaults    mail_badpass Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root        ALL=(ALL:ALL) ALL # the following line I've added for sudo to work on Debian, which by default does not vlastimil   ALL=(ALL:ALL) ALL # and this line I've added just now, so I could enable / disable teamviewer daemon as I wish vlastimil   ALL = (root) NOPASSWD: /usr/bin/teamviewer  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   Meaning I can now run e.g. the following without entering password:  sudo teamviewer daemon disable sudo teamviewer daemon enable   This, however, is a non-working sudoers file on Linux Mint 18 in a sense, it still asks me for password. /etc/sudoers contains:  Defaults    env_reset Defaults    mail_badpass Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root        ALL=(ALL:ALL) ALL # this line I've added myself, because I felt it is needed, however user vlastimil has had sudo access all the time, added just now vlastimil   ALL=(ALL:ALL) ALL # and this line I've added just now, so I could enable / disable teamviewer daemon as I wish, but it does not work vlastimil   ALL = (root) NOPASSWD: /usr/bin/teamviewer  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   I guess there is some difference between Debian and Mint, which makes the added lines non-working.  I read different answers like on this page:    But I am not clever from it.  EDIT1:  The first answer gives on Linux Mint a strange error:  $ sudo /usr/bin/teamviewer  Init...  *** TeamViewer can not be executed with sudo! ***  Either use your normal user account without sudo  or use a the real root account to log in to your desktop (not recommended!).   I don't get this either.    $ which teamviewer /usr/bin/teamviewer  $ file /usr/bin/teamviewer /usr/bin/teamviewer: symbolic link to /opt/teamviewer/tv_bin/script/teamviewer  $ file /opt/teamviewer/tv_bin/script/teamviewer  /opt/teamviewer/tv_bin/script/teamviewer: Bourne-Again shell script, ASCII text executable  $ cat /opt/teamviewer/tv_bin/script/teamviewer #!/bin/bash  # If you see this message, you probably attempted to start TeamViewer. # Please open a terminal (Konsole, gnome-terminal, xterm), # navigate to this folder (type 'cd /path/to/teamviewer' [Enter]) # then execute TeamViewer (type './teamviewer' [Enter])   TV_SCRIPT_DIR="$(dirname "$(readlink -e "$0")")" source "$TV_SCRIPT_DIR/tvw_main"  Main "$@"   EDIT2:  For instance on AskUbuntu, as suggested in comments:    and on many other places, there is a solution where they put the rule after admin group rule. I've tried it, even rebooted afterwards, but it's still not working.


Where can I find a beginner's guide to using sysprep for deploying Windows 7?

I am new to Windows 7, but want to deploy it in a Netware (read: no Active Directory, no domain, etc.) environment.  I have used Novell Zenworks for imaging and deploying Windows XP in the past, and have never used sysprep because it was never necessary.  Now, I find that Zenworks is unable to image Windows 7 at all.  It appears that there is a bunch of hardware-specific information that breaks the image on all machines except the specific machine it was created on.  I have  what sysprep was, just a few weeks ago.  My question is simple.  Where can I find a step-by-step guide to using sysprep to image and deploy Windows 7?  Edit: I see that my question has been migrated.  Thanks.  I have read the  that  provided--then I read the 150+ comments.  It seems that this is becoming out of date.  Is there nothing else that sums up how to use sysprep to prepare Windows 7 for imaging and deployment?


My MacBook Pro Specs:    macOS Mojave 10.14.4 Beta (18E194d) Processor 2.7 GHz Intel Core i7 Memory 16 GB 1600 MHz DDR3 Graphics Intel HD Graphics 4000 1536 MB   When using Autocad, Excel, or Adobe (apps), my laptop slows down tremendously.   Is there any way to speed it up/find out what is slowing it down?


Transfer upvotes on comments to stars in chat

When a comment conversation is moved by moderators to a chat room, the upvotes on those comments are lost.  If a comment had 20 upvotes, there is nothing to indicate that once it has been moved to chat.  The points that people agreed with are then no longer recognized.  Could the upvotes on comments be translated into stars on the chat-comments?


View hidden folders on MacOS Mojave? cmd+shift+. does not work

Since I'm not really great with using the terminal, I would like to see hidden folders on my Mac through the regular user interface. However, I cannot show my hidden folders. I tried things I found on the internet but they did not work for me. I tried  cmd+shift+dot - nothing happens  settings > Keyboard > turning on and off "Use F1, F2, etc. keys as standard function keys"  settings > Keyboard > Shortcuts > Restore Defaults  terminal.app > defaults write com.apple.finder AppleShowAllFiles ["yes"/"YES"/" "]   at the folder I want to view the hidden contents of, I pressed Alt while clicking Go. after the "Library" folder showed up in "Go," I clicked it and saw many folders in Library, but still didn't see any folders with . in front.    My main goal is to copy and paste into a .gitignore file that is stored in a specific folder on my desktop. I am having troubles doing it through the terminal so I thought this would be easier but it is apparently not. :) Question: How can I fix this issue and allow myself to see hidden folders on my Mac? I don't have a strong background in this stuff and am not trained in computer science/tech stuff. I have macOS Mojave.


Critical region for testing a hypothesis with exponential data.

I have trouble with the following problem:     We assume that X has a Exp(λ)-distribution with a unknowns value of λ.   We test H0: λ=0.2 versus H1: λ < 0.2. We use X as test statistic.  a.   Calculate the critical area for alpha = 0.05 b. The measured X=10,   calculate the P-value   ans: [14.98, infinity) and p = 0.135    I know that the critical area is the collection of values for which H0 is rejected in favor of H1. In the case of a normal distribution I know how to calculate the critical region. Depending on the kind of alternate hypothesis and the significance level I can caluclate the Z-value. With the Z-value I can calculate the X.   Unfortunately I don't know how to do this with an exponential distribution. I have issues with visualising it, since a different λ gives a different curve.   Can I please get some feedback?  Thanks,  Ter


Illustrator: Getting solid color values from transparency?

I created a logo  in illustrator and after much experimentation, settled with a design which the client approved.   The problem is, some shapes have a transparency of 60% which looks amazing on white but I need to clean this up before sending final files to the client.  Question: How do I get an accurate solid colour value from a 60% transparent shape in Illustrator?  Things I've tried:   The eyedropper in illustrator only gathers the 100% colour value not the 60%+white which I need. Pasting / Importing into Photoshop changes the colour appearance completely even though both are viewing as CMYK


Terminal Command for Uninstalling Programs

What is the terminal command for easily uninstalling programs or software?


Does anyone know the name of this 3D CGI animated sci-fi superhero show set in space?

Okay, this is an animated show I watched years ago when I was a child, I have forgotten its name long ago and now I would like to see it again. I don't know whether the show was a TV series or a movie, but I watched it via DVD; I don't know the exact year when I watched the show, but I am absolutely sure it was before 2010, almost absolutely sure it was before 2008, the show was in 3D, it could be either CGI or stop motion, and I think it was more likely to be CGI. The show could either be of American origin or Japanese origin, the characters in the show were realistically proportional, the show was set in space, on a space station or a space ship or an asteroid, I am not sure which, though I am 99% sure it wasn't anywhere near planet Earth, and the characters (especially the protagonists) weren't humans, they were organic humanoid aliens, and part of some kind of military organization, and they were superhero-ish, though they used guns. The setting was either Science Fiction or Science Fantasy, and the scenes looked futuristic. Although I am not sure what the show was, I am sure what it wasn't. It wasn't Star Wars, Star Trek, Starship Troopers, Transformers, Gundam and Ultraman. Can anyone identify what was the show I had watched? I am sorry I can't provide any further details, it's been at least 12 years since, and I don't have photographic memory. If someone can help me, I would be very grateful.


does the focal length change the perspective at a given distance?

Situation A: 25mm lense, subject at 5 meters. Take a shot with the Subject covering half of the sensor.  Situation B: 50mm lense, subject at 5 meters, Take a shot with the Subject covering the Whole sensor, load in Photoshop, resize subject to the same size as if it was taken with the 25mm lense.  Forgetting about image quality, lense quality, aperture, edge distortion, image-degradation from resizing and taking into account only the proportion and perspective of the subject if the distance to the subject does not change, will I notice a difference in the two images, or will the result be identical?  I want to make composites, and I know that the subject is supposed to be placed 5 meters from the photographer on scene. If the vaniscing point is identical, then the only thing i have to take into account is that the subject should be at the very same distance when it is photographed in the studio.. If this is right, then it makes no difference what focal lenght I use, as long as the distance to the subject is the same... (obviously illumination and aperture and all the rest have to match..)


Feeding the vampires, should this have been answered?

I came across this question:   I voted to close it because it is pretty much a gimme teh codez question. "Here is my HTML, can you write the javascript for my feature?".    My question is, should this be answered? The answer was very simple and only took a few seconds to create. You can see it here:   I did not post this as an answer though because it seems counter productive to feed the help vampires. Should these types of questions be closed and moved on from, or should they be answered as well as being closed?  I am just trying to make sure I am up to date on how to approach these since there have been some recent changes to closures.


I have a simple class that loops thru the new versions of a list of Accounts.  However acct.owner.email returns null, while acct.ownerid returns the owner id.  Can I not transcend the owner relationship/reference to pull the owner email in Apex?  for(Account acct : newAcctList) {          Account oldAcct = null;         oldAcct = oldAcctsMap.get(acct.id);          if(acct.ownerId != oldAcct.ownerId            && acct.qual_field__c != null) {              try{                 // qualify                 if((oldAcct.ownerId != contextUser)                    && (profileIdSet.contains(contextProfile) != True)) {                          Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage();                          message.setToAddresses(new String[] {oldAcct.owner.email});


Product of a Lie ideal with a subalgebra

Let $L$ be a Lie algebra over $A$, $I$ a Lie ideal in $L$, $K$ a subalgebra of $L$. The goal is to show that $[I,K]$ (the $A$-submodule generated by $[i,k]$ for $i \in I$ and $k \in K$) is a Lie subalgebra as well. If $$ S = \{ [i,k] : i \in I, k \in K\},$$ I believe that by bilinearity of the bracket it suffices to show that $[S,S] \subseteq [I,K]$. So take two elements $i, i' \in I$, $k, k' \in K$. The goal is to then show $$ [[i,k],[i',k']] \in [I,K].$$ This is where I'm lost and would like a hint as to where to go. My initial idea is to use the Jacobi identity to get $$ [[i,k],[i',k']] = -[i',[k',[i,k]]] - [k',[[i,k],i']].$$ Since $I$ is an ideal, $[i,k] \in I$, $[[i,k],i'] \in I$, and so $-[k',[[i,k],i']] \in [I,K]$. The idea then is to show that $-[i', [k',[i,k]]] \in [I,K]$. Use the Jacobi identity again to get $$-[k', [i,k]] = [i,[k,k']] + [k,[k',i]], $$ so that $$ -[i',[k',[i,k]]] = [i',[i,[k,k']]] + [i',[k,[k',i]]].$$ Trying the Jacobi identity again gets us $$[i',[i,[k,k']]] = -[i, [[k,k'],i']] - [[k,k'],[i',i]], $$ $$[i', [k,[k',i]]] = -[k,[[k',i],i']] - [[k',i],[i',k]].  $$ It seems like this is going nowhere. If $K$ was assumed to also be a Lie ideal, then this result follows easily (in fact, $[I,K]$ would be an ideal), but otherwise it doesn't seem like there's a way to rearrange things with just the Jacobi identity so that we get a linear combination of elements in $[I,K]$. I've alternatively thought about just approaching it at the level of showing $$ [[I,K],[I,K]] \subseteq [I,K].$$ Here, we use the Jacobi identity to note $$ [[I,K],[I,K]] \subseteq [[I,[I,K]],K] + [[K,[I,K]],I].$$ Now use the fact that $I$ is an ideal to get $$ [I,[I,K]] \subseteq I,$$ so we have $$ [[I,K],[I,K]] \subseteq [I,K] + [[K,[I,K]],I].$$ The goal here is to show $$[[K,[I,K]],I] \subseteq [I,K],$$ which seems to require $$ [K,[I,K]] \subseteq K.$$ If $$ [I,K] \subseteq N_L(K) = \{x \in L : [K,x] \subseteq K\},$$ then the result follows, but I don't see why this is necessarily true either.


How can I improve the quality of sound in Ubuntu?

I just installed Ubuntu 14.04 LTS, and I'm loving it. Only thing is that I'm having problems with my laptop's sound quality. It sounds empty, or hollow. I'm not exactly sure how to put it to words, but it's noticeably worse than it was on Windows 8.1. In fact, it was very much above average on Windows. I like Ubuntu but this sound quality issue is really annoying me, and even giving me a headache at times. It's not as loud as it should. If I put up the volume to 100%, my laptop's speakers start to resonate and distort, just sounds terrible overall.   Background info:  I have an HP Envy TS-15 /w Altec Lansing, in Windows it had BEATS audio drivers.It has 2 front speakers, 2 subwoofers, and one speaker on the bottom of the laptop.


Reading order for Cosmere series by Brandon Sanderson

My entry into Brandon Sanderson's works is Mistborn Trilogy, I finished and loved it. Then I got to know that many of his series are connected and happen in the same universe - Cosmere. Next I started with the Way of Kings, but am now kind of worried if I might read the series in the wrong order. So what is the right order to read them? is it the publication order..?   Elantris (2005)  Mistborn Trilogy Warbreaker (2009) The Stormlight Archive: The Way of Kings (2010) Mistborn: The Alloy of Law (2011) The Emperor's Soul (2012, novella) Shadows for Silence in the Forests of Hell (2013, short story published in Dangerous Women) The Stormlight Archive: Words of Radiance (2014)    or I have seen people suggest the following order too,   Mistborn Trilogy Elantris and the Emperor's Soul The Way of Kings Warbreaker Words of Radiance The Alloy of Law Shadows of Self   I have also read posts where they say it doesn't matter which order you read it in. So am confused, since I have already started the Way Of Kings (Only a few chapters in), should I stop it and go back to Elantris, and follow an order, or should I just continue finish this and pick other books in an order.


Overcoming ~5000 File Document Library Limits

Microsoft technet states that document libraries have a file limit of 30 million items:    In practice, numerous features seem to break once there are more than 5000 items in a Document library - not just in the initial directory listing - but as a recursive total. For example, you may be able to list folders, but setting permissions or deleting files is met with errors.  Are there any configuration options or optimizations that can be used to relax these limits?  A workaround would be to split folders into separate document libraries, but in our case, with over 5 million files, this would result in a minimum of 1000, 5000 file document libraries and likely many more. At that point we're likely shifting the problem into the library view.    A major showstopper is the effect this has on Sharing - a user trying to share a folder with more than 5000 aggregate items simply fails. I'm investigating the effect (if any) the resource throttling suggestion below has on this.


I have the following question:     Is there an easy way to prove that $x^6-72$ is irreducible over $\mathbb{Q}\ $?   I am trying to avoid reducing mod p and then having to calculate with some things like $(x^3+ax^2+bx+c)\cdot (x^3+dx^2+ex+f)$ and so on...  Thank you very much.


Class with single method -- best approach?

Say I have a class that's meant to perform a single function. After performing the function, it can be destroyed. Is there any reason to prefer one of these approaches?  // Initialize arguments in constructor MyClass myObject = new MyClass(arg1, arg2, arg3); myObject.myMethod();  // Pass arguments to method MyClass myObject = new MyClass(); myObject.myMethod(arg1, arg2, arg3);  // Pass arguments to static method MyClass.myMethod(arg1, arg2, arg3);   I was being intentionally vague about the details, to try to get guidelines for different situations. But I didn't really have in mind simple library functions like Math.random(). I'm thinking more of classes that perform some specific, complex task, but only require one (public) method to do it.


Computig the series $\sum\limits_{n=2}^\infty \ln\left(1-\frac{1}{n^2}\right)$

So I have this problem for midterm reviews:  $$\sum_{n=2}^\infty \ln\left(1-\frac{1}{n^2}\right)=\text{ ?}$$  I know that you can find the series form of a natural log, as shown here:  $$\ln\left(1-\frac{1}{n^2}\right)=-\sum_{k=2}^\infty \left(\frac{1}{n^{4k}}\right)\left(\frac{1}{2k}\right) $$  But the above doesn't seem to help very much since it results in two summation notations mushed together. Is there a somewhat nontedious way to go about this? Thanks! All help appreciated.


Consider the examples:    "My name is Ricky."   He said his name is Ricky.    The tense is not backshifted in #2 because his name is and will always be Ricky. Also consider:    Ricky says: "I live in Paris."   Ricky said that he lives in Paris.    The tense is not backshifted in #4 because he still lives in Paris.  For examples #2 and #4, it is possible to not backshift the tense because the reporting words are still true at the time of reporting, but what will you say about the following examples:        I asked what his name is.   I asked where he lives.      Here, is it correct for #5 and #6 to not backshift the tense?  If #5 and #6 are correct, then under what conditions is it correct to not backshift the verb like that?


This appears to be a bug that occurs when you try and report something with a custom flag:    As you can probably see, the box is actually sticking out of its box. So I just thought that I should report this bug. If it is a bug and not just some weird design!    OS Information:     Description: Ubuntu 14.10      Release:     14.10   Browser Information:     Google Chrome (Version 41.0.2272.118 (64-bit))      PPA:  stable main


I have an object which contain multiple arrays like in the following screenshot:    and I would like to convert it into this object:  { "Manifacture": "Samsung", "Model": "Ipad 2" }   in order to use the data in bootstrap table.  When using stringify, I'm getting the following:  "{"Manifacture":[{"id":2,"name":"Samsung"}],"Model":[{"id":1,"name":"Ipad 2"}]"}"   which is different than what I need.  Is it possible?


Google Sheets and conditional formatting

I have a workbook in Google Sheets and it is for a schedule for my company so I have a few sheets in my workbook that have the days of certain weeks and then one more tab that has inventory information. What I am looking to be able to do is type in the WO number into one of the week sheets and then type that into the WO spot on the inventory tab and in that same row on the inventory sheet there will be check boxes we click on that will change the color of the cell on the schedule so we can see what happening with the WO on the schedule and don't have to shift over to inventory sheet every time we want to see where a house is at in the process. I hope that makes sense and I greatly appreciate the help! Here is a link to it


Add another checkbox column while using Wrapper?

I'm using a wrapper to load a list of records into a VF page that I can select (to add to a related record).  I'd like to add another column of checkboxes that the user can select for a different value (not on the original object that is listed).  If this checkbox is selected, I'll create another related record.  How can I make sure I grab the correct IDs for the rows?


Any checklist/guide when transferring a database to a new server?

I'm looking for steps that I need to follow to transfer a database to a new server.  So far I have:    I restored the current database that I have in SQL Server 2005 instance to another SQL Server 2008R2 from backups Transferred all the database and security logins, Linked server  Re-created the SQL Server agent jobs (including an SSIS package) and maintenance plans Expanding all the other Objects in SSMS but nothing else to move Planning to choose the database task: "Take-Offline" instead of "Detach", not sure why! Point an existing application (built on VB)to the new server, and hopefully it will run the reports (thats calling my SQL stored procedures) successfully!   So am I missing anything else that I should transfer?


Questions before applying for UK visa and Schengen Visa

I'm an Indonesian citizen who is planning to apply for a UK visa and a Schengen visa. I have also lived in the United States since 2012 so I'm a legal US permanent resident with valid green card and state ID. I'm currently a full-time college student but planning on taking a semester off to travel to the UK and some countries in Europe.  Because I'm going to school full-time, I only work part-time. My dad who still lives in Indonesia has been supporting me and will also be doing so for my planned trip so I have some questions:  1) I will submit my bank statement but will it be okay if I also submit my dad's bank statement, even though he lives in another country?   Along with his bank statement, I will also have him go to a notary and sign an affidavit of support and I will also give them his contacts in Indonesia to proof that he is indeed my father. I definitely want to do this to avoid 'funds parking'.   2) The UK requires people from Indonesia to have a TB test but I have been a legal residence of the United States for six years, will I be required to get one as well?  I will apply for the Schengen visa at the Italian Consulate General in Houston and the UK visa by mailing all of my documents to the UK embassy in D.C.


jagged render using cycles, smooth with eevee

I've checked other questions with these terms but no answers.   When I render an image with default settings in eevee, I get smooth shadows, when I render using cycles the shadows on  my snowman show some sharp edges.  What can I do to get a better render using cycles since I plan to use this mode for more in depth animations in the future.


Stop crontab from filling syslog Ubuntu 15.04

How can I prevent (certain cronjobs) from filling my syslog in Ubuntu 15.04? I have some jobs that run 4 times a minute and quickly fill up my syslog files.  I've tried adding:  cron.*                                                  /var/log/cron   to /etc/rsyslog.conf, but this didn't resolve anything.  The current output is:  Aug  8 06:58:01 elitegameservers CRON[25706]: (gijs) CMD (   sleep 15; unison -batch /var/www ssh://server1//var/www) Aug  8 06:58:01 elitegameservers CRON[25703]: (gijs) CMD (   sleep 30; unison -batch /var/www ssh://server2//var/www) Aug  8 06:58:01 elitegameservers CRON[25708]: (gijs) CMD (unison -batch /var/www ssh://server2//var/www) Aug  8 06:58:01 elitegameservers CRON[25713]: (gijs) CMD (   sleep 30; unison -batch /var/www ssh://server1//var/www) Aug  8 06:58:01 elitegameservers CRON[25714]: (gijs) CMD (   sleep 45; unison -batch /var/www ssh://server1//var/www) Aug  8 06:58:01 elitegameservers CRON[25717]: (gijs) CMD (   unison -batch /var/www ssh:// server3//var/www) Aug  8 06:58:01 elitegameservers CRON[25719]: (gijs) CMD (   sleep 15; unison -batch /var/www ssh:// server3//var/www) Aug  8 06:58:01 elitegameservers CRON[25690]: (CRON) info (No MTA installed, discarding output) Aug  8 06:58:01 elitegameservers CRON[25694]: (CRON) info (No MTA installed, discarding output) Aug  8 06:58:08 elitegameservers CRON[25588]: (CRON) info (No MTA installed, discarding output)


Can the stress pattern of "uroboros/ouroboros" be explained by any principle, or is it random?

The word "uroboros," coming ultimately from Greek, has a couple of spellings and also pronunciations (see ). As explained by Nohat in the linked page, the  are the following:  /ɔːˈrɒbɔrəs/ /jʊərɵˈbɒrəs/   lists only /ˌjʊərə(ʊ)ˈbɒrəs/ for "uroboros," and states that the word was first used in English around the 1940s. , for "ouroboros," lists yet another set of pronunciations, oddly enough:  /ˌuːrəˈbɒrəs/ /uːˈrɒbəˌrɒs/  So in one sense, it almost seems a free-for-all. However, there's one pronunciation that seemed natural to me but that I never see listed: /jʊəˈrɒbɔrəs/, with antepenultimate stress. Here's why I'd expect this pronunciation. . The stress in Greek is on the penult, but there's a short /o/ in the penultimate syllable, so I'd expect a Latinized pronunciation of /uˈroboros/ according to the , and I'd also expect for the Latin stress position to carry over to the English word, especially when the initial vowel uses the value /jʊə/ associated with the . Compare to "automaton," another example of a Greek word with a short vowel in the penult that is stressed on the antepenult in English. But, I've never seen this pronunciation listed. Dictionaries do list pronunciations with antepenult accent, and pronunciations with initial /j/, but none I can find list a pronunciation with both of these features combined. So, if I use it, am I just adding my own idiosyncratic pronunciation to the mix, no better and no worse than the other variants? Or is there some flaw in the analogy I made above that makes /jʊəˈrɒbɔrəs/ a solecism, but that justifies /jʊərɵˈbɒrəs/ (or /ɔːˈrɒbɔrəs/, etc.) ?  :  In words of three or more syllables, stress falls either on the penult or the antepenult (third from the end), according to these criteria:  If the penult contains a short vowel in an open syllable, the stress falls on the antepenult: e.g. stá.mi.na, hy.pó.the.sis. If the penult contains a long vowel; a diphthong; a closed syllable (with any length of vowel); or is followed by z, the stress falls on the penult.  [...] The fact that decorum is stressed on the penult, and exodus on the antepenult, is a fact about each of these words that must be memorized separately (unless one is already familiar with the Classical quantities, and in the former case, additionally with the fact that decus -ŏris n. with short -o- syllable became in late Latin decus/decor -ōris m. with long -o- syllable: 'Dómine, diléxi decórem domus tuæ').  Does anyone know if the pronunciation of "uroboros" might be explained in the same way as that of "decorum," where the vowel length/stress shifted at some point in Latin? Was "uroboros" or "ouroboros" even used in Latin? I've already searched out attested English pronunciations, so I don't want an answer that just repeats these (although I would appreciate learning about any additional pronunciations listed by reputable dictionaries). What I'm concerned with now is the pattern behind them, possible etymological bases for the English pronunciation, and orthoëpic advice, in particular about the hypothetical pronunciation /jʊəˈrɒbɔrəs/.


Is there any chance to edit the label size of features from OSM Basemaps in QGIS 3? For example, the road names are displayed way too small and are barely readable when exporting maps as pdf.


WMS layer is displayed with ruined geometry in OpenLayers

I want to display a shapefile in OpenLayers using MapServer 7.6. It is shown properly in the browser using the mapfile's link.    But when I try to display it in OpenLayers, the geometry is completely ruined.    I get no error messages.  What is the cause of this and how could I solve this?  Here is my code:  const map=new ol.Map({     view: new ol.View({         center: [2294319.8093533223, 5942407.910713993],         zoom: 1     }),     target: "js-map" })      var wmsSource = new ol.source.ImageWMS({         url: 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/GEO/test.map',         params: {'LAYERS': 'world'},         serverType: 'mapserver',         crossOrigin: 'anonymous'     });      var wmsLayer = new ol.layer.Image({         source: wmsSource,         title: "world"     });  const overlayGroup=new ol.layer.Group({     title: "Overlays",     fold: 'open',     layers: [wmsLayer] }) map.addLayer(overlayGroup);  var layerSwitcher=new ol.control.LayerSwitcher({     groupSelectStyle: 'group' }); map.addControl(layerSwitcher);   And the mapfile:  MAP   EXTENT -180 -90 180 90   IMAGETYPE "png"   NAME "world"   SIZE 1381 1025   STATUS ON   UNITS METERS    OUTPUTFORMAT     NAME "png"     MIMETYPE "image/png"     DRIVER "AGG/PNG"     EXTENSION "png"     IMAGEMODE RGB     TRANSPARENT FALSE   END # OUTPUTFORMAT    SYMBOL     NAME "symbol1"     TYPE ELLIPSE     FILLED TRUE     POINTS       1 1     END   END    PROJECTION     "init=epsg:4326"   END # PROJECTION   LEGEND     KEYSIZE 20 10     KEYSPACING 5 5     LABEL       SIZE 10       OFFSET 0 0       SHADOWSIZE 1 1     END # LABEL     STATUS OFF   END # LEGEND    QUERYMAP     SIZE -1 -1     STATUS OFF     STYLE HILITE   END # QUERYMAP    SCALEBAR     INTERVALS 4     LABEL       SIZE 10       OFFSET 0 0       SHADOWSIZE 1 1     END # LABEL     SIZE 200 3     STATUS OFF     UNITS MILES   END # SCALEBAR    WEB     METADATA       "wms_srs" "EPSG:4326 EPSG:3857"       "wms_onlineresource"  "http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/GEO/test.map"       "wms_enable_request"  "*"       "mapmanager_version"  "1.1.0.0"       "ows_enable_request"  "*"       "wms_feature_info_mime_type"  "text/html"       "wms_encoding"    "UTF-8"       "wms_title"   "world"     END # METADATA   END # WEB    LAYER     DATA "E:/VECTOR/world_countries.shp"     METADATA       "wms_include_items"   "all"       "wms_title"   "world"     END # METADATA     NAME "world"     PROJECTION       "init=EPSG:4326"     END # PROJECTION     STATUS DEFAULT     TILEITEM "location"     TYPE POLYGON     UNITS METERS     CLASS       NAME "world"       STYLE         COLOR 58 132 59         OUTLINECOLOR 30 30 30       END # STYLE     END # CLASS   END # LAYER  END # MAP


Is there a word like "sides" that means "top or bottom"?

"Sides" can be used to describe positioning relative to the left or right of an object. Is there a corresponding word that has the same meaning for the top or bottom of an object?  For example, if I say "side padding," it's pretty clear that I'm talking about padding from the left and right edge. I want to be able to say the same thing about the top and bottom edge.


How do I put an image onto the surface of a mesh?

How do i get the .tga image on the right onto the mesh on the left?    thank you


How to get \url{} and \href{} displayed identically

I would like the output of \url{} and \href{} displayed identically. I have changed the color for both to be blue, but it appears as if a different for is being used as well:  Code: \documentclass{book} \usepackage{xcolor} \usepackage{hyperref}  \hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue}   \begin{document} url: \url{www.yahoo.com}  href: \href{http://www.yahoo.com}{www.yahoo.com} \end{document}


Is there any tricky way to use Java reserved words as variable, method, class, interface, package, or enum constant names?


Flask Error: Values is not an instance of  (got str)"

I am getting BadValueException error on Flask with the usage of Flask and MongoAlchemy. The issue I am having is requesting POST data from date. I tried encoding to UTF8, however is returning string, instead being instance of datetime.datetime.  Error:  BadValueException: Bad value for field of type "date_deadline".  Reason: "Value is not an instance of <type 'datetime.datetime'> (got: str)".  Python  app = Flask(__name__) db = MongoAlchemy(app)  class Model(db.Document):     name = db.StringField()     date_added = db.DateTimeField()  @app.route('/form', methods=['GET', 'POST']) def form():     if request.form.get('submit'):         get_name = request.form.get('name')         get_date = request.form.get('date').encode('utf8')          new_model = Model(name = get_name, date = get_date)         new_model.save()     return render_template('form.html')   HTML  Name <input type="text" name="name">  Date <input type="datetime-local" name="date">


Do you know about status date changes in Elsevier editorial

I submitted an article to an Elsevier Journal in (Jan, 2018) The status and the status date changed after one week in "under review". Now status remains "Under review" but the status date is new (Sep 2018) Could you please tell me what it means? Thanks


I have programmed with WPF for more than a year. When I started there weren't so many examples and guidelines to follow, now the situation is much more better.  I would like to ask you some help in listing the best WPF (open) source code examples or projects that you suggest to study in order to learn more about project structure, best practices, etc.  Thank you, Marco


Unable to connect to webserver from outside

I set up my  und my webserver but I'm facing the problem that the website cannot be opened from the internet. I'm using Ubuntu server 12.04 with Apache 2.2 (I believe). This is what I checked so far:   http://localhost/ responds with my website  Firewall: port 80 open for incoming and outgoing traffic ports.conf -> listen 80 Virtual host in httpd.conf is configured Port forwarding is enabled in the router configurations When the firewall is disabled and I ping the domain, I get my external IP  doesn't see open port 80 ISP doesn't seem to block incoming traffic on port 80 Domain name is linked to my IP   Still, no connection to the server can be established. What did I forget?


I've come to find a love for UI design, and I really do enjoy it more than most other aspects of the Graphic Design field. But an issue I have encountered is designing for responsiveness.   I know the old standard used to be to use the 960 grid system, but I feel as if this is not nearly as applicable today due to the requirements that go into responsive design.  Is there a standard when it comes to responsive and adaptive design, or do you simply design for separate sizes individually, without any standard adaptation?


I am looking for a noun to describe a person who embodies  and . This would be someone whose public image does not reflect their core beliefs and values, for the reasons of opportunism or because they have none.  In my native language (Serbo-Croatian-Bosnian), the word is poltron and the English cognate thereof seems to be "" but the broad meaning (coward) seems to lack the specificity it has in my language, i.e. the connotation of inauthenticity, value betrayal, and opportunism. Another word that comes to mind is "conformist" but that also doesn't seem specific enough.


I have an Lenovo Ideapad S10-2 Like this  Processor / Chipset CPU Intel Atom N270 / 1.6 GHz  Cache L2 cache - 512.0 KB  Front Side Bus 533.0 MHz  Chipset Mobile Intel 945GSE Express  Features Hyper-Threading Technology  RAM 2.0 GB DDR2 SDRAM 533.0 MHz / PC2-5300  Form Factor SO DIMM 200-pin   Audio & Video Graphics Processor Intel GMA 950  Memory Allocation Technology Dynamic Video Memory Technology 3.0   Which ubuntu derivative should i use for best driver and device performans compatibility  im a general purpose user frequently surf on internet, sometimes i need remote desktop connection, office extension document files, and video multimedia files.  Your suggestions are very important for me because windows slow down my system heaps of times.. so i want to use ubuntu anymore.  Thanks in advance, Best Regards


How to show co-ordinates of all points in a plot using pgfPlots?

I'd like to show the co-ordinates of all the points which have been used for plotting a curve. For this I have created individual nodes for all points manually, is there a better way to do this? I've gone through the documentation of tikz-pgf but I couldn't find a solution. Here's the plot: \documentclass[12pt,a4paper]{article}  \usepackage[a4paper,margin=2cm]{geometry} \usepackage{pgfplots,tikz,siunitx,float,amsfonts,amsmath,amssymb} \pgfplotsset{compat=1.16} \usetikzlibrary{intersections, positioning, calc, math}  \begin{document}     \begin{figure}[htb]         \centering         \begin{tikzpicture}              \begin{axis}[                 axis lines=left, thick, grid=both,                     width=0.8\textwidth, height=0.8\textwidth,                     xmin=0,xmax=110, ymin=0,ymax=150, y=0.06cm,                     xlabel={Upper Limits}, ylabel={Cumulative Frequency}                 ]                  \addplot[color = black,smooth,very thick,mark=*,name path=h1] coordinates {                     (10,3)(20,7)(30,19)(40,37)(50,57)(60,82)(70,94)(80,102)(90,108)(100,110)                 };                                   \legend{Less-Than type Ogive Curve}                 \draw (10,3) node [above]{$(10,3)$};                 \draw (20,7) node [above]{$(20,7)$};                 \draw (30,19) node [above]{$(30,19)$};                 \draw (40,37) node [above]{$(40,37)$};                 \draw (50,57) node [above]{$(50,57)$};                 \draw (60,82) node [above]{$(60,82)$};                 \draw (70,94) node [right]{$(70,94)$};                 \draw (80,102) node [above]{$(80,102)$};                 \draw (90,108) node [below]{$(90,108)$};                 \draw (100,110) node [above]{$(100,110)$};             \end{axis}                      \end{tikzpicture}         \caption{Less-Than type Ogive Curve.}     \end{figure}  \end{document}


Second Linear Algebra Text for Budding Mathematician

I have already worked through Gilbert Strang's  and am interested in learning more Linear Algebra.  What is a good follow-up to Strang for a budding mathematician?  EDIT: The OP in the linked question is a physicist and is interested in topics that apply more to physicists. I am inquiring about a second Linear Algebra text that would be appropriate specifically for someone interested in pure mathematics.


How to prove  $$\sum_{r=1}^{n} r^{2}\binom {n} {r} = n(n+1)2^{n-2}$$ By using binomial theorem?


I have a table with (amongst others) 2 columns (sayA and B) with a primary key and one with a timestamp (say C). I would like to delete everything but the last XXX entries (when sorted by the timestamp). Could anyone help me out with the syntax? I guess it should be along the lines of:     DELETE FROM Table WHERE A, B NOT IN (SELECT A, B FROM Table ORDER BY C   DESC LIMIT XXX)   Is that correct SQL?  Edit: Somehow this question got closed being a duplicate. The referred question however only has answers that apply to a table which has exactly one primary key (or index) .. how do I expand this to a table where there are two?


Ball swung in a horizontal circle, can the string ever by exactly horizontal to the ground?

You swing a ball on the end of a lightweight string in a horizontal circle at constant speed.  Can the string ever by truly horizontal?  If not, would it slope above the horizontal or below the horizontal?  Why?


Can I link to my Male Enhancement Pills site on my profile?

There was a bit of a hubbub on , where some people thought links to gold-farming sites should not be allowed in profiles, while others thought they should.  I took the stance that they should be allowed, but that appears to be the less popular opinion.  However, according to  on meta.SO, and even according to , as long as there's nothing illegal or (too) offensive, profiles are pretty much anything-goes, including advertisements for your businesses.  So let me take it to an extreme:  if I have a site selling male-enhancement pills, and I do everything by the book (have the right paperwork, don't sell where it's illegal to sell, etc.), can I have a link to it in my profile?


What are some effective methods to fix a worn out screw holes of a door hinge?

I have a door that was slightly tilted and didnt close properly. I noticed the hinge was a tad loose, and what was holding it was a short 0.5" screw. I replaced it the screws with a new 1" screw and the door was ok for a couple weeks. But now its tilting sideways again, and the screws are loose again. I assume that the screw holes are worn out and thus do not hold the screws well, and gave up. The door, and the door frame, is a regular standard US wooden door. The hinges are common as well. Not familiar with exact model, type, or naming convention. In the images you can see the hinge tilting sideways, as well as it pushing the screws out from the screwholes. I was thinking about using screw anchors. But what other methods are there to fix a loose screw hole? Attached Images    Thank you


I'm an electronics engineer. I was thinking about how to detect the presence of COVID-19:   Obtain the sample. Increment image/sample, (I need the real size to determine increment/magnification) Digital image processing — detect presence using artificial intelligence or Recognition.   What is the approximate size of COVID-19? Is there a real image of COVID-19?


Numbers with more than 4 divisors = multiples of numbers with exactly 4 divisors. This only applies to 4 (and 2, of course): e.g. numbers with more than 3 divisors != multiples of numbers with exactly 3 divisors. Numbers with more than 5 divisors = multiples of    My quick question is: are these two facts obvious and/or well-known?  I assume that the answer is "yes", but I know pretty much nothing about mathematics, so I wanted to ask this question. I would have asked it in the chat, but I have not enough reputation.  A simple yes/no answer is fine for me, but of course if you want to add an explanation, it's even better. :)  Edit: why I don't think this question was a duplicate. The answer is the same as the answer to  (I have no reason to doubt it, even though I still have to understand the answer to my question!). But, as far as I can understand, "duplicate" applies to questions, not to answers. Otherwise, the following statement  wouldn't make sense:     [...] we love (some) dupes. There are many ways to ask the same question, and a user might not be able to find the answer if they're asking it a different way.   Now, my question is not the same as "finding out the number of divisors", so it isn't a duplicate.


Please help, I had a questing regarding DNS delegation and CNAME. Is it possible to CNAME parent domain to subdomain example I had domain example.com and I want to CNAME it to sub.example.com. The parent domain configuration like below: Domain: example.co.id Record: @ IN NS ns1.example.co.id. ns1 IN A IP_PUBLIC  www.example.co.id. IN CNAME www.sub.example.co.id. example.co.id. IN CNAME sub.example.co.id.  $ORIGIN sub.example.co.id. @ IN NS ns1.sub.example.co.id. @ IN NS ns2.sub.example.co.id. ns1.sub.example.co.id. IN A IP_ISP1 ns2.sub.example.co.id. IN A IP_ISP2  And subdomain configuration like this: DNS: Domain: sub.example.co.id Record: @ IN NS ns1.sub.example.co.id. @ IN NS ns2.sub.example.co.id. ns1 IN A IP_ISP1 ns2 IN A IP_ISP2  www.sub.example.co.id. IN A IP_ISP1 www.sub.example.co.id. IN A IP_ISP2 sub.example.co.id. IN A IP_ISP1 sub.example.co.id. IN A IP_ISP2  I had tried lab in  on bind9 look like the bind9 confused or looped. I had case previously we had record  CNAME to example.com and now we add sub domain and move all service from example.com to sub.example.com without remove original domain name. Our previous DNS server on cloudflare and now we want CNAME and delegate all service to our load balancer as subdomain. Thanks and sorry for bad my bad grammar.


I received the instructions from Edward on brewing Fiz, such as they were.  Unfortunately I can't remember the exact details of what he said, and now I'm stuck.  For example, I think he said to talk to someone about the albino bees?  But I don't remember who or where.  What did he tell me?


In my Terraria iOS world I have made a glowing mushroom biome and made 4 houses. The chat keeps on saying the truffle would like to settle down but he has never settled down.    The update is 1.2, can you please help me?


How to install software provided in software-center via terminal?

Can anyone help me providing terminal command to download and install the software provided by Software center?  Actually I'm searching for command to download and install KDbg (Debugger) via terminal.


Prove that $\displaystyle 1 <\cos A+\cos B+\cos C$

Prove that $\displaystyle 1 < \cos A+\cos B+\cos C \leq \frac{3}{2}$ where $A+B+C = \pi$  Attempt: $\cos A+\cos B+\cos C= 1+4\cos A\cdot \cos B\cdot \cos C$  Now $\displaystyle \cos A\cdot \cos B\cdot \cos C=\frac{1}{2}\cos A\left[\cos (B-C)-\cos A\right]\leq \frac{1}{2}\cos A(1-\cos A)\leq \frac{1}{2}\left[\frac{\cos A+1-\cos A}{2}\right]^2 = \frac{1}{8}$  so $\displaystyle \cos A+\cos B+\cos C\leq 1+\frac{1}{2} = \frac{3}{2}$  could some help me how to solve for minimum , thanks


How do I run different versions of jQuery on the same page?

My company has purchased a product that renders an ASP.NET control on the page. This control uses jQuery 1.2.3 and adds a script tag to the page to reference it. The developers of the control will not support use of the control if it modified in any way (including modification to reference a different version of jQuery).  I'm about to start development of my own control and would like to use the features and speed improvements of jQuery 1.3. Both of these controls will need to exist on the same page.  How can I allow the purchased control to use jQuery 1.2.3 and new custom development to use jQuery 1.3? Also out of curiosity, what if we were to use an additional control that needed to reference yet another version of jQuery?


Viewing ArcPy code from results of process run

How do I copy the ArcPy code from a process I have run in ArcMap where I have run a process with specific environment settings etc (density of, distance to etc) so that I can run the same code iteratively on a number of other features?


Radeon 5770 running in software mode how to change to hardware after upgrade from 14.04 to 16.04

After upgrading to Ubuntu 16.04 from Ubuntu 14.04 it said my graphics card would run in software mode versus hardware mode. It's running loud and my screen resolution isn't 1080p when my monitor is capable of it. I'm just learning linux and could use some help. this is my system ati radeon 5770 1gb intel phenom II x4 945 4gb ddr2 800mhz


How can I get a RSS feed for new posts in a chat room? I would like to connect my RSS reader to chat rooms that I like.


I am trying to find a way to get spell checking to play a sound when an error is detected. I don’t mean when an error is “corrected”, but just when one is detected.  A long time ago, you would add a spell checker to your Mac via a third party application. I remember one which made a sound every time it detected an error, which meant that you didn’t have to look at the screen to notice errors.  I don’t think the feature is built into OS X's spelling error correction (why not?). Is there possibly a third part app that will do this simple task?  The following questions hint at the problem:   &   but (a) they are more concerned with auto-correct; (b) they are a few years old; and (c) they don’t have a real solution.


I'm trying to build a website that enables users to vote for things. The website works, but a user can vote multiple times. How can I prevent that?   I read online that I can use cookies. But I don't know how to implement them in my ASP.NET MVC 5 project.   Can you tell me how to use cookies for preventing multiple voting in ASP.NET MVC 5?  A small code snippet for starting would be great.


Problem due to an image inserted in a table

This is my follow up question. My previous question is here:   Problem:  If I add the image in my table, I get the following output as shown in the image below. Why is the Co-Supervisor going below?   I am using this code:  \begin{tabular}{|l|c|r|} \hline \bf Author: & \hspace{5pt} & \bf Research Supervisor:\\ \hline Mr. X &  \hspace{5pt} & Prof. Dr. Z\\ \hline \includegraphics[width=0.40\textwidth,height=10mm]{Figures/images} &  \hspace{5pt} & \bf Co-Supervisor:\\ \hline &  \hspace{5pt} & Prof. Dr. Y\\ \hline \end{tabular}   What I want is shown below:   PS: Please ignore the table borders, they are for demo only, I won't be using them in my final code.  The final product: that I desire is:


Store Text File Number as Python Variable

I'm trying to extract the numbers presented in a text file to a variable in my Python code. I want to extract the numbers labelled Optic Disc Location X and Y, and save them to the following variables "od_x" and "od_y". Here's the structure of the text file: Code version: $Id: GeneralProjection.m 5455 2017-09-19 12:54:06Z mverhoek $ Device model: California Fovea Location Y (vertical): 1540 Fovea Location X (horizontal): 1980 Fovea Confidence: 0.686278 Optic Disc Location Y (vertical): 1520 Optic Disc Location X (horizontal): 1596 Optic Disc Confidence: 0.731152 Eye Laterality Prediction (L,R): L Eye Steer Prediction (C,I,S,L,R): C Projection Table Used: /media/dropbox/GeneralProjectionTables/California/otrans(0.75,0.88).mat Maximum percent error in area measurement: 0.843522 Distance from fovea to transformation point in degrees: 0.788453  Here's the code I currently have: import re for line in open('test.txt'):     match = re.search('Optic Disc Location X (horizontal): (\d+)', line)     if match:         od_x = match.group(1)         print(od_x)  for line in open('test.txt'):     match = re.search('Optic Disc Location Y (vertical): (\d+)', line)     if match:         od_y = match.group(1)         print(od_y)  What am I doing wrong? Is there an issue with my regex, or the way I'm assigning the result to the variable? Thank you :)


Cannot enter comment text after rotating app

In the Android app, if I start writing a comment, then change the screen orientation (usually because I'm commenting while running for a bus), I can no longer continue typing in the comment box. I can focus on the box, and bring the keyboard up, but typing does nothing.   Refreshing the question doesn't fix it either. The only way around it is to completely exit the question, and go back in.


Minimal integer to make a rational into an integer

Let $q = \frac ab$ be any rational number such that $a < b$. What is the smallest positive integer $n$ such that $\frac ab \times  \left(2^n-1\right)$ is an integer?


I've noticed in the last couple of days that there have been a few occasions when there's been a sudden surge of questions in the SO "Reopen" review queue.  Normally there's either no questions at all to reopen or at most three or four, and that's still the case, except that for the last couple of days I've gone to the review page and seen about fifty-odd questions in the queue, where just moments before there had been none.  I've gone through the reviews and the questions themselves seem reasonably legitimate (including the occasional audit), so I'm not questioning that... it just seems odd that there would be so many more than usual all of a sudden, and that they'd all appear at once.  Anyone got any insights, or should I just chalk this down as "one of those things"?


Why is my desktop the same as home folder?

My desktop (not the /home/user/Desktop folder) shows the contents of my /home/user folder. I don't know how I have done it and can I have some help on undoing it? The /home/user/Desktop folder just contains my desktop files which do not appear on my desktop.


I found the Stack Exchange and recently. I'm trying to understand its operation and structure. Who funds the site Stack Overflow?


It was in an economics paper and I've been searching for it for 20 minutes with no luck.  I've tried detexify and most normal packages. amsfonts  and dsfont  both don't fit the bill


Correct way to quote variables for use in Bash backticks?

I have a script which I want to go over 4 sets of files PURO*.xml, PURR*.xml, SALO*.xml and SALR*.xml.  for j in PUR SAL do         mask=("${j}O*.xml" "${j}R*.xml")         for k in 0 1         do                 for file in `find ${CDIR} -maxdepth 1 -daystart -mtime ${MTIME} -and -name ${mask[$k]} | xargs`   The script works, however, when it is executed, if the working directory has files that match one of the mask, that mask gets expanded.  Question is, what would be the correct way to write the above piece of script so that mask is passed correctly to find command? I want "${j}" expanded at the point where I create mask, but not the "*".  Also, is backticked find OK or should I perhaps rewrite that part differently as well?


How many books can each home in Skyrim hold?

How many books can the automatic bookshelves in each house hold? Are there any in the base game which can hold a copy of every non-spell book in the game? (Books, not 0-weight notes.)   So basically, what is the total bookshelf capacity for each house, including Hearthfire ones with the library wing, and how does that compare to the total number of non-spell books?   Footnote: I'm asking this for a stock Skyrim game with only Bethesda's official add-ons installed, as a console player would.


How to create a simple GUI in C++; without Qt, Gtk, or Mondo?

newbie here using Ubuntu 18.04 LTS  I am coming from the easy Windows world, I am trying to write an Windows Forms dialog application.  When writing code I see that we have a choice between Mondo, Qt, Gtk and Tkintker. However, I am also looking for the understanding of how does Linux applications like FireFox show a GUI? I mean I am sure that these applications used something that was here before Mondo, Qt and Gtk appeared, right?  Does anyone know of a simple github project written in C++, hopefully simple means 5 lines of code as it doesn't take much to say Hello World.  I tried installing ubuntu-sdk-ide that was previously mentioned about in a 5 year old post, however, after installing I tried to start it but it just shows "QtCreator, The container backend returns an unknown error status. This is a bug and should never happen, please contact the developers."  note: ubuntu-sdk is here and says it's safe for 14.04. and the current is 18.04, thus any duplicate posts will point to the broken 14.04, and it doesn't say what real applications like FireFox uses.


I'm pretty new to Linux, but trying to learn. Ive installed Ubuntu 18 as a VM and playing around.  I was wondering, is there a plugin/application/scheme (not sure of proper term) that allows you to preview what linux is doing in the shell when you do things in the GUI?  For those of you familiar with Windows Server environments, im looking for something like the "Preview powershell command" button that is in the bottom of the gui windows.  I feel this would help me a ton on learning commands and seeing what is actually happening in the shell.  For example when i install a program using the 'ubuntu software' repository, and click to install 'terminator' is there something that someone has created that will let me see "sudo apt install terminator" ?  Thanks in advance!


Request for reference for longitudinal data analysis which is mathematically well-written

I'm a person with graduate level mathematics and some undergraduate statistics background, who'll have to study some basic longitudinal data analysis. I've studied the basics of correlation and regression, measure-theoretic probability, all the necessary distributions (chi², T, F) for the previous, basic tests of confidence intervals etc.  I'm looking for textbooks/lecture notes which are mathematically well-written. By 'well-written', I mean it states the all the necessary results in a mathematically neat way, with or without necessarily going into details of the proof, or by referencing them wherever necessary.   I'm going to use these basic knowledge and results for statistical shape analysis/shape modelling, so may be an inclination to that subject would be preferred, but not absolutely necessary.


How to fix TikZ node's height with \heightof?

I can use \widthof{text} to fix a minimum width of a TikZ's node. I would like to use \heightof{text} to fix its minimum height but it doesn't work.  I just want to fill my nodes with one word but I want to draw some empty nodes with same height as filled ones. But I would like not to use a trial and error system to fix it's size.  Next code shows what I want to do. I've tried uncommenting \usepackage{calc} but nothing changed. .log file doesn't show any error about knowing or not command \heightof.  A possible solution would be to use \vphantom{text} inside empty nodes, but I would like to know what's wrong with this one.  \documentclass[tikz,border=1mm]{standalone} %\usepackage{calc} \usetikzlibrary{positioning}  \tikzset{ box/.style={draw,%     minimum width=5mm,%     minimum height=\heightof{Cap},%     align=center}, }  \begin{document} \begin{tikzpicture}[font=\small\sffamily]  \node[box] (h0) {Cap}; \foreach \i [remember=\i as \lastx (initially 0)] in {1,...,6}      \node[box,right= 0mm of h\lastx] (h\i) {}; \node[box,right=0mm of h\lastx] {cua};  \end{tikzpicture} \end{document}   This is the result. You can see that minimum height is not fixed with \heightof. Why?


Buy orders increase price of stock? Sell orders decreased price of stock?

My understanding is that buy orders increase the price of stock and sell Orders decrease the price of stock.     Is this correct? Aren't more people likely to buy than sell? Aren't there a lot more buyers then sellers? Thus leading to prices just going up?


Does notification in comment work for gold tag badge holders if they are not the only person that reopened/closed a question?

The answer for the question  states the following:  For questions: The moderator or gold badge holder who closed or reopened the question, provided they were the only one to do so. Users who have closed or reopened a question without a binding close vote (i.e. without a gold tag badge or a moderator vote), and those who bindingly voted, but other users were also involved (e.g. closed by User1, User2, and Moderator) cannot be notified.  It's not quite clear for me, does a gold tag badge holder get notified from a comment via @ if for instance they are second person who voted to close/reopen?


How can I include a YAML file inside another?

So I have two YAML files, "A" and "B" and I want the contents of A to be inserted inside B, either spliced into the existing data structure, like an array, or as a child of an element, like the value for a certain hash key.  Is this possible at all? How? If not, any pointers to a normative reference?


How to access console mode in macOS Big Sur

I can't login using the  to disable the GUI on macOS Big Sur.  Is there any other way to use macOS Big Sur in console mode?


How can I form a word like "quadruple" for any number I want?

I'm not sure what these are called, but how can I form a word like "quadruple" for any number I want? Like 5× as much is quintuple, what is 31× as much or 147× as much? I want to know how they are formed so I can make my own.  Similarly, how do I construct the prefixes, such as unicycle, bicycle, tricycle, quadricycle? I figured out 12 is duodeci-, but how can I form any prefix like this?


Since I want to add line number in my manuscript, I have to wrap align environment into linenomath environment to have right numbering. I wanted to define new environment in preamble in which I want Latex to put the math inputting into these environments, but It didn't work. Can you help me please? Here is my codes.  \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[switch*, displaymath,pagewise, mathlines]{lineno} \leftlinenumbers \linenumbers  \newenvironment{Align}{\begin{linenomath*}  \begin{align}}{\end{align}    \end{linenomath*}}  \begin{document} \begin{Align} x+y=10 \end{Align} \end{document}