I was reading Xanathar’s Guide, and the Celestial Warlock subclass is able to choose a unicorn for their patron. However, in the Monster Manual, unicorns only have a CR of 5. So that raised the question: What happens if a warlock kills their patron? Are they unable to level up, do they lose their powers. Or is this another one of those things where nobody from the actual D&D lore has ever been dumb enough to actually try, so it’s just up to the DM?

Fiends and Archfey could be killed by a rival trying to usurp their power.  If this is not covered in the 5e RAW, is there a good resource from another edition that could be helpful in determining how the death of the being with whom a Warlock has a pact with affects a Warlock?


Be $n$ greater than 2 integer and is $\bar x\in\mathbb{Z}_n-\{\bar0,\bar1,\bar2,\ldots,\overline{n-1}\},$ $\;0\leq x<n$. Show that $\exists\; \bar y\in\mathbb{Z}_n$, such that $\bar x\cdot \bar y=\bar y\cdot \bar x=\bar1\Longleftrightarrow gcd\{x,n\}=1$ (i.e., the elements $\bar x$, $0\leq x<n$, invertible in $\mathbb{Z}_n$ são aqueles tais que $gcd\{x,n\}=1$)

I am trying to wrap my head around calculating residue classes, for example $\mathbb{Z}^*_{12} = [1]...$  Would anyone mind making up an example with a decent explanation. I just wrap my head around things easier seeing the process.  Thanks


i need to install windows on a 150 computers for a bank, i've never done anything like this before, so if anyone can help me find a fast efficient way to do so, they are IBM computers all with the same hardware specifications, brand new

My company is in the process of upgrading all of our users from old Windows XP computers to newer quad-core Win7 computers.  This is a good thing - it's long overdue that we upgrade our workstations - but I now spend a ton of time configuring new computers.  Is there any way to automate this process?  The steps that I go through with just about every computer:   Run through Win7 setup process (we do mostly HPs, so we get the stupid "The computer is personal again" thing.   Uninstall bloatware (norton, bing bar, roxio, etc.) Install Updates Add to domain & configure network settings Install Office, and other company-specific applications Configure important shortcuts (Outlook on task bar)   There's a couple other things that I do after that that would be nice to automate, but it's unlikely due to license keys, passwords, etc.   Configure Outlook Pull in files/settings with easy transfer wizard Map network drives   I know that it's possible to create a complete image of a computer, but how does that work with different hardware/drivers?  What about Win7 license keys?  If there is a way to make this work, what is the best (preferably free/open source) software out there to do this?


I'm writing a paper in LaTeX according to a CogSci template which uses two columns. However, I have a very wide table which needs to span accross both columns to be shown correctly. I want this table at the bottom of the current page and therefore could not use table* (which can only place things at the top of the current page or at that position). So I found online that I needed to use a local minipage, which kind of works fine as you can see below. The table is at the correct spot and apans two columns; however the column in the right side is superimposed on the table rendering both unreadable.  How can I solve this?  I use this code for the table:  \begin{table}[b!] \begin{minipage}{\textwidth}     \centering     \setcounter{table}{3}     \begin{tabular}{l|l|l|l|l|l|l|l}     ~                        & $P$    & $S$     & $SP$   & $T$    & $TP$      & $TS$      & $TSP$       \\ \hline     \textit{no restrictions} & $.150$ & $.013$  & $.106$ & $.036$ & $< .001^*$ & $< .001^*$ & $< .001^*$  \\ \hline     $P$                      & -      & $.022$ & $.557$ & $.640$ & $.006$   & $.004$  & $ .001^*$ \\ \hline     $S$                      & -      & -       & $.020$ & $.002$ & $< .001^*$ & $< .001^*$ & $< .001^*$  \\ \hline     $SP$                     & -      & -       & -      & $.888$ & $.032$    & $.003$    & $< .001^*$  \\ \hline     $T$                      & -      & -       & -      & -      & $.008$    & $< .002$ & $< .001^*$  \\ \hline     $TP$                     & -      & -       & -      & -      & -         & $.403$    & $.022$     \\ \hline     $TS$                     & -      & -       & -      & -      & -         & -         & $.006$     \\ \hline     \end{tabular}         \caption{Overview of $p$-values for every combination of the restrictions\label{table:posthoc}.}             \end{minipage} \end{table}

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 & Column 2 & Column 3 & Column 4 \\ \hline Column 1 & Column 2 & Column 3 & Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}


What is the Quickest way to eject a specific disk when I have multiple drives mounted? Right now I use spotlight to open Finder and manually search for the drive to unmount, is there an easier way to eject?

I usually have a lot of external drives connected to my MacBook, such as flash drives, hard drives, and SD cards. It so happens that I need to eject them quite often.  The usual way I eject these is by either showing the desktop using a shortcut and dragging the drives I want to eject to the trash, or navigating to the finder and ejecting the drives from there, or by using a script which ejects all my external drives at once. However, when I want to do something simple like ejecting a flash drive or SD card (which I do quite often) I'd prefer not to break my workflow and simply be able to, say, click on a menu bar icon and select which volume I want to eject.  I haven't yet seen a utility which can achieve this. Does anyone know of one?


The rules state that a player cannot choose to take a condition when he already has one of that type.  How do you deal with cases when an event forces you to draw a condition card?  As an example, let's say my character has a debt card and he is asked by an event in the game to draw one. Do you   simply ignore this step in the event resolution flip the card you previously owned and that's it flip the card you previously owned and draw another one (ouch) other?

The rules states that you cannot have two of the same conditions.  You can take a debt condition to gain two additional successes on your influence test to gain assets from the reserve. Thus if you already have a debt, does that mean that you automatically gain two additional successes for each gain asset actions?


I have compiled my ns3 project using c++11 option. However, when I run gdb with any of the executable to find the source of a segmentation fault, gdb does not print the line number and it only gives the name of the function in which the segmentation happened. Here is the output of gdb:  Program received signal SIGSEGV, Segmentation fault. 0x00007ffff40aac5d in ns3::WifiInformationElement::DeserializeElementBody(ns3::Buffer::Iterator, unsigned char) ()    from /home/hanyassasa/MyWorkSpace/source/ns3-80211ad/build/libns3.25-wifi-debug.so (gdb) where #0  0x00007ffff40aac5d in ns3::WifiInformationElement::DeserializeElementBody(ns3::Buffer::Iterator, unsigned char) ()    from /home/hanyassasa/MyWorkSpace/source/ns3-80211ad/build/libns3.25-wifi-debug.so #1  0x00007ffff439d044 in ns3::MgtFrame::DeserializeInformationElements(ns3::Buffer::Iterator) ()    from /home/hanyassasa/MyWorkSpace/source/ns3-80211ad/build/libns3.25-wifi-debug.so #2  0x00007ffff4193420 in ns3::MgtAssocRequestHeader::Deserialize(ns3::Buffer::Iterator) ()   Is there any additional option I should add when I compile with c++11 so that gdb prints the line number of the error?

Is there any gcc option I can set that will give me the line number of the segmentation fault?  I know I can:   Debug line by line Put printfs in the code to narrow down.   Edits:   bt / where on gdb give No stack.


As you can try yourself, sometimes searching for a number redirects you directly to a question with that id:  or . But sometimes not: . (I will add that there is a .)  What decides whether you are redirected directly to the question or whether you see search results?  In the cases when from search you are redirected, is there also a possibility do display search results (instead of going directly to the question with that id)?

Over at the  community, when I type 1040 into the search box in the upper right corner and hit Enter, it immediately returns the , even though there are .  But when I type 193 into the search box, it returns a  instead of the .  Why the different behavior?


I've come across this expression and am not quite sure what it actually should be. Is it "I want the beer to never end" or "I want the beer never ends" or something else? Which is the correct way?

Some verbs are followed by ing, e.g. I enjoy swimming. We can't say I enjoy to swim. Likewise, some verbs are followed by to, e.g. I decided to make a plan.   Which particular verbs are followed by ing and to? Can you please provide a list for that?  Moreover, which verbs can be followed by both without having the meaning changed?


I was wondering if there is a way to export in DXF from QGIS (version 3.4.4) this type of line (The one with the "E" as a pattern).     Here is how the line was created    Currently, when I export this type of line, the symbols are not kept and the result is two superposed polylines: one which is the green polyline and the other which is a black polyline with the same thickness as the size of my symbols "E".

I have a map I've made in QGIS which is points from a .csv file. These have then be turned into different symbols based on what they represent and then the sizes of said symbols based on values in the .csv.  I need to export this as a .dxf to use in AutoCAD so it basically looks the same as it does in QGIS. However, when I do so it just exports as single dots (points). Is there a way I can export them as the symbols as I can see in QGIS?


I have the following question:  My laptop randomly shuts down, only if I move it. Sometimes it shuts down, sometimes it doesn't. I keep my laptop on for 12+ hrs a day, and it never shuts down, given I don't move it. when I move it, sometimes it shuts down, sometimes it doesn't. I don't hear anything rattling when I shake my PC. The move could be a 4-cm move and it'll happen, or it could be a whole 2 meters etc. Any guesses on why? I've had this computer for 4 years without any problem like this before.  Please let me know where I can put my question.

Where can I ask questions about the computer problems I have been facing?  Current problems I am facing with my computers:   Windows 7 errors random "Blue screens of Death" computer randomly freezing up Xfire challenges


Is there a device that can evenly split the load on two separate panels? For example, Panel A ——————-\                 >-[ device ]— Load Panel B ——————-/  The use case is, up stairs and down stairs tenants have separate electric service. There is a shared washer and dryer in the basement. Both machines are using the down stairs electricity. Is there a device that can be plugged into both panels and draw the power evenly to share the cost?

Is it possible to split electricity consumption of a heavy-duty-home-appliance - like a washing machine, for ex. - between two distinct apartments (splitting usage costs)? Something like this...


I will be traveling from Chicago to Copenhagen on 15th December with an overnight layover at Heathrow airport (Terminal 3, American airlines). I'll be reaching UK at 10:45 pm and will be leaving the next day at 8:45 am from Terminal 5.  After going through the official UK government visa site I understand that I should be eligible for transit without visa at UK since I have a US visa (F1). I am an Indian citizen.  I do not have enough time to apply for a visa at this point and I really hope I do not need to. I have tried to contact the embassy and have also tried getting in touch with an immigrant advisor but to no avail. They are either unreachable or cannot appropriately reply to my queries. So any information regarding this would be greatly appreciated.  Also if anyone faced a similar situation please let me know what happened.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


Captain America's metabolism is four times faster than normal humans (Atleast in MCU). He can't get drunk as a result of this.  It got me wondered, how much does Captain America need to eat and poop? His appetite should be higher and he should digest foods faster.

In both the movies and comics Cap gains his peak human strength via the supersoldier serum and a does of vita rays, resulting in the rapid development of his super buff body:     While the most obvious real world analogue would be the use of steroids, these would still require that the person taking them train extensively and significantly increase their protein intake in order to gain muscle mass. While there are frequent scenes of Steve training in both mediums I've yet to see any scenes of him eating a 12-egg omelette or downing protein shakes. Are there any in-world explanations that would account for the increased muscle mass? Extra-dimensional energy conversion?


polynomial function f(x,y) = x^3 – 5*y^2. polynomial function f(x,y) = x^3 – 5*y^2.  Heading

Please help me to write the function drawing code  polynomial function f(x) = x^3 – 5*x.  polynomial function f(x,y) = x^3 – 5*y^2.


I have a list of like 3000 items, and I think there are a ton of duplicates. So to make my program run faster, I want to delete them. This is the code along with my function, which when I run the program the text file is empty.  List<string> allCombos = new List<string>();         string here = RemoveTheSame(allCombos, allCombos);         System.IO.File.WriteAllText(@"C:\Hodag Image Storage Folder\creo.txt", here);   //////////////////////////////          private string RemoveTheSame(List<String> lista, List<String> listb)     {         List<String> newList = lista;          newList.AddRange(lista);         for(int i = 0; i < lista.Count; i++)         {             int a = 0;             for(int ii = 0; ii < listb.Count; ii++)             {                 if(lista[i] == listb[ii])                 {                     a += 1;                     if(a >= 2)                     {                         newList.RemoveAt(ii);                         a = 0;                     }                 }             }         }          string wat = "";         for(int i = 0; i < newList.Count; i++)         {             wat += newList[i] + " ";         }           return wat;     }

Anyone have a quick method for de-duplicating a generic List in C#?


Problem_     Evaluate $$\sum_{n=1}^\infty\frac{1}{n}\left[\frac{\ln{n}}{n-\ln{n}}\right]$$   I separated the given fraction into two fractions: $$\frac{1}{n}\left[\frac{\ln{n}}{n-\ln{n}}\right]=\frac{1}{n-\ln{n}}-\frac{1}{n}$$  But, the terms are not erased by others. Then, how can I find out the values of each series? Actually, it is impossible to find out the sum of each series since both them diverge: $$\sum_{n=1}^\infty\frac{1}{n-\ln{n}}>\sum_{n=1}^\infty\frac{1}{n}>\sum_{n=1}^\infty2^n\frac{1}{2^n}=\sum_{n=1}^\infty1=(diverge)$$So the new idea should be established. Could you please suggest me other methods? Thanks.  [EDIT] I've also taken account of Riemann Sum, but I still don't know how to apply it.

Find the following sum : $\sum_{n=1}^{\infty} \frac{\ln n }{n(n- \ln n)}$  I couldn't find any way to solve.   I just want a hint, how to initiate?


I am running Ubuntu 13.10 and would like to use Adobe flash in Chromium (or Chrome). How can I do this? If not possible, what linux software is available that will work with flash files?

I have had significant problems with watching flash video in 64-bit Ubuntu.  Does anyone know of a good way to get flash running on the platform?


So, is it possible to add Yakkety or Zesty repositories to Ubuntu 16.04? I mean I would like to add something like this deb http://cz.archive.ubuntu.com/ubuntu zesty main universe to sources.list file. Will I get errors or another problems with packages? My current system is Ubuntu 16.04.

I need these packages with the latest upstream version backported for ubuntu/natty   libccid_1.4.5-0ubuntu1_amd64.deb libpcsclite1_1.8.1-0ubuntu1_amd64.deb libpcsclite-dev_1.8.1-0ubuntu1_amd64.deb libusb-1.0-0_1.0.9-0ubuntu1_amd64.deb libusb-1.0-0-dev_1.0.9-0ubuntu1_amd64.deb opensc_0.12.2-1ubuntu1ppa1~natty1_amd64.deb pcscd_1.8.1-0ubuntu1_amd64.deb pcsc-tools_1.4.18-0ubuntu1_amd64.deb   I tried to build them from source with update but it failed. I am not an expert at packaging and there are so many tutorials and recipes out there.  Do you know a good and up to date tutorial for backporting Ubuntu packages?  How do I get packages from other releases without having to build them myself?


So I am getting output in #s and I need to convert this to hour:min form. For example, 50 mins = 00:50  and 100 mins would be 01:40. How do I accomplish this? lbltime.Text = ??.ToString();

What is the best way to convert seconds into (Hour:Minutes:Seconds:Milliseconds) time?  Let's say I have 80 seconds, are there any specialized classes/techniques in .NET that would allow me to convert those 80 seconds into (00h:00m:00s:00ms) format like to DateTime or something?


My problem is that a JTable does not update when I select my combobox. The program I present below should delete all data (data = null;), when LA is selected. The table does not update.   public class minimumExample extends JFrame {      private JTabbedPane tabbedPane;     private FilteredTabPanel filteredTabPanel;      public void createTabBar() {          tabbedPane = new JTabbedPane(JTabbedPane.TOP);          filteredTabPanel = new FilteredTabPanel();         tabbedPane.addTab("Test", filteredTabPanel.createLayout());          add(tabbedPane);         tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);     }      private void makeLayout() {          setTitle("Test App");         setLayout(new BorderLayout());         setPreferredSize(new Dimension(1000, 500));         createTabBar();         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         pack();         setVisible(true);      }      public void start() {         javax.swing.SwingUtilities.invokeLater(new Runnable() {             public void run() {                 makeLayout();                }         });     }      public static void main(String[] args) throws IOException {         minimumExample ex = new minimumExample();         ex.start();     }      public class FilteredTabPanel extends JPanel {          private JPanel selectionArea;         private JLabel lCity;         private JComboBox cityBox;         private JTable filterTable;         String[] columnNames = {"Cities"};         String[][] data = {                 {"NY"}, {"NY"}, {"NY"}, {"NY"}, {"LA"}, {"LA"},{"Columbia"},{"DC"},{"DC"},{"DC"},{"DC"},{"DC"},{"DC"}             };          private JScrollPane scrollPane;          public JPanel createLayout() {             JPanel panel = new JPanel(new GridLayout(0, 1));             //add panels to the layout             panel.add(addButtons());                 panel.add(showTable());              repaint();             revalidate();              return panel;         }          public JPanel addButtons(){              selectionArea = new JPanel(new FlowLayout(FlowLayout.LEFT));              lCity = new JLabel("City");              String[] fillings = {"NY", "LA", "Columbia", "DC"};             cityBox = new JComboBox(fillings);              cityBox.addActionListener(new ActionListener() {                  private String cityFilter;                  @Override                 public void actionPerformed(ActionEvent arg0) {                     //2. get data                     cityFilter = cityBox.getSelectedItem().toString();                      if(cityFilter.equals("LA")) {                         data = null;                     }                      showTable();                     repaint();                 }             });              selectionArea.add(lCity);             selectionArea.add(cityBox);              selectionArea.repaint();              return selectionArea;         }          private JScrollPane showTable() {              filterTable =new JTable(data, columnNames);             filterTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);              scrollPane = new JScrollPane(filterTable);              scrollPane.repaint();             scrollPane.validate();              return scrollPane;         }     } }   As you can see the table does not update. Any recommendations what I am doing wrong?

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


Imagine an InvoiceHeaderGrid and an InvoiceDetailGrid.  Lets's say we have this code in a HeaderGrid's rowchanged event:      DataTable InvoiceDetail = new GetInvoiceDetail(HeaderGrid.CurrentId);     InvoiceDetail.ItemDeleted += (sender, evt) =>      {       };      DetailGrid.DataSource = InvoiceDetail;   so that the code is called every time the user focuses a different row  in the HeaderGrid.    The "dead" InvoiceDetail datatable and its attached anonymous handler get garbage-collected with each reassignment of variable InvoiceDetail, right?  The attached handler isn't treated as a reference to the object that would prevent it from being garbage-collected?

I have a class that offers up a few events. That class is declared globally but not instanced upon that global declaration--it's instanced on an as-needed basis in the methods that need it.   Each time that class is needed in a method, it is instanced and event handlers are registered. Is it necessary to remove the event handlers explicitly before the method goes out of scope?   When the method goes out of scope, so goes the instance of the class. Does leaving event handlers registered with that instance that is going out of scope have a memory footprint implication? (I'm wondering if the event handler keeps the GC from seeing the class instance as no longer being referenced.)


Below is the code I'm working on. The code will execute a Swing-based GUI, with a simple JFrame that holds a button which when pressed will run the Ping utility in the background. If the host is either reachable or not, a dialog will be displayed with a successful/unsuccess message. import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.net.InetAddress;  public class App {  private JTextArea clickThisButtonTextArea; public JButton button1; private JPanel panelMain;  public App() {     button1.addActionListener(new ActionListener() {         @Override         public void actionPerformed(ActionEvent actionEvent) {             try {                 sendPing("8.8.8.8");                 //JOptionPane.showMessageDialog(null, sendPing("192.168.0.1"));             } catch (IOException e) {                 e.printStackTrace();             }         }     }); }  public String sendPing(String ipAddr) throws IOException {     InetAddress ip = InetAddress.getByName(ipAddr);     boolean ipReach = ip.isReachable(5000);     System.out.println("Sending Ping Request to " + ipAddr);     if (ip.isReachable(5000)) {         JOptionPane.showMessageDialog(null, "Host is reachable!");         System.out.println("Host is reachable");     } else {         JOptionPane.showMessageDialog(null, "Sorry, no host!");         System.out.println("Sorry ! We can't reach to this host");     }     return null; }  public static void main(String[] args) {     JFrame frame = new JFrame("App");     frame.setContentPane(new App().panelMain);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.pack();     frame.setVisible(true);     frame.setLocationRelativeTo(null);     frame.setSize(250,250);   }  } The image below shows a tcpdump of traffic flowing out after the button is pressed vs. a ping ran from the terminal.  Any insights will be greatly appreciated.

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


Original question: Let a sample space $S$ have $n$ elements. Prove   that the number of subsets of $ S $ is $2^n$.   Key insight: The amount of subsets of a set can be counted using combinations. For example, if a set has $ 2 $ elements, then the number of subsets is:  $$ \binom{2}{0} + \binom{2}{1} + \binom{2}{2} = 1 + 2 + 1 = 4 $$  Therefore, if a set $ S $ has $ n $ elements, then $ S $ has  $$ \binom{n}{0} + \binom{n}{1} + \binom{n}{2} + ... + \binom{n}{n} $$ subsets   Thus, proving that a set with $ n $ elements has $ 2^n $ subsets amounts to proving the following statement:  $$ \sum_{i = 0}^{n} \binom{n}{i} = 2^n $$  The most obvious way to prove this equality seems to be by induction. A set with $ n = 1 $ elements has $ \binom{1}{0} + \binom{1}{1} = 2 $ subsets, so the base case holds. Now we assume the equality works for $ n $ and show that it works for $ n+1 $:  $$ \sum_{i = 0}^{n+1} \binom{n+1}{i} = 2^{n+1} $$  $$ \sum_{i = 0}^{n} \binom{n+2}{i} = 2 \times 2^n $$ This is where I'm stumbling.

I'm well aware of the combinatorial variant of the proof, i.e. noting that each formula is a different representation for the number of subsets of a set of $n$ elements. I'm curious if there's a series of algebraic manipulations that can lead from $\sum\limits_{i=0}^n \binom{n}{i}$ to $2^n$.


I would like to access my profile with two different Google accounts, one ending with @gmail.com the other related to Google Suite.  Currently I am doing the following:   Visit my profile:  Login with Google account (@gmail.com). Click on: Network profile Click on: my logins Shows a popup "My Logins" Click link in popup "add more logins…" Visit new page (attached screenshot)  Click on logo "log in with Google" At this point I am being redirected to my profile page:    When instead I should be able to enter the credentials from another Google account (company one on G-Suite) I want to use.  I was able years ago to add three different accounts, but I am currently not able to add a new one.  Is a bug in the application? What are the steps to make it works?

I went ahead and added my work account to my personal account's   chrome session and then revisited the google auth link from my main SO   account, and this time it gave me the 2 options, and I successfully   added it. However, I don't think it should work this way! You should   get that screen that either allows you to select an existing logged-in   account, or add a new one.      @RudyOnRails Yeah, I agree. Looks like there's a parameter we can pass   along for that, though I'm not sure off the top of my head how much   work it'd be for us to start doing that for the "add login" path.   Could you do me a favor and write up a quick feature-request for this   so we can track it easier? Thanks! – Adam Lear♦ 20 hours ago


I have a single entry visa for Italy from 03/07/15 to 01/08/15 with 15 days validity. I also want to visit Spain and France in same month. I will be back from Italy on 07/07/15, So can I apply for another Schengen country in July month or I have to wait till 01/08/15?

I'm traveling to Belgium for a month for a training and already got my single entry Schengen visa from 29-6 to 13-8 with a 30 days stay duration. My stay in Belgium will be from 30-6 to 28-7 for the training. However, I wish to visit a friend in Croatia and stay there for 7 more days after Belgium; where Croatia will become part of the EU countries in 1/7.  My questions are: can I apply for Croatia as a non-EU country and expect a normal entry OR do I apply for a multiple entry visa from Germany since I will be landing there to go to Belgium even is I don't stay there. If I apply for Germany, can I simply go from Germany to Belgium, then Belgium to Croatia then back home or do I have to pass by Germany on my way back. How long does a visa from the Embassy take to be issued and do they keep the passport? Is it possible that I apply to Croatia from Belgium or not? Sorry for the long question. Your help is much appreciated.


Does the War Machine Armor have any AI? I know it has a basic HUD, but we never see Rhodes get any AI feedback. If he doesn't, then how does he get anything done? It seems like Tony wouldn't be able to operate the suit very well without JARVIS, and later FRIDAY.

What are the differences between Iron Man and War Machine armours ?  In the movies, it seems that they are the same, except the War Machine armour features more heavy weapons. But if they are the same, why wouldn't Tony Stark use the War Machine armour?  Do they have different characteristics (like strength, resistance, flight time...)?  I am looking for answers from the movies and/or the comics.


Is this the right way to use delete[] operator?  int* a=new int[size]; delete[] a;   If yes, Who (compiler or GC or whoever) will determine the size of the newly created array? and where will it store the array size?  Thanks

Foo* set = new Foo[100]; // ... delete [] set;   You don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised?


I met a girl who has a diverse ethnic heritage. Part German, part Central American, part African-American, part some other European country that I forget.  What word can be used to describe her? Multi-ethnic, poly-ethnic? Multi-racial as in the title? What's the most proper/common term?

As is commonly known, one of the most delicate question is how to refer to people of mixed race, which can be a matter of condemnation.   Some words may have fueled the problem and  I never would have thought that the word miscegenation were one of these.  In fact, as Merriam-Webster reads, miscegenation especially refers to a "marriage, cohabitation, or sexual intercourse between a white person and a member of another race."  However, racial issues aside, I'm wondering whether there is a "parallel" word which is especially used to to refer to a "marriage, cohabitation, or sexual intercourse between a black person and a member of another race;" a word which is not perceived as offensive from a black person.  Can anyone explain?


I occasionally get flagged for not passing a review audit test because of duplicate questions.   In nearly all cases for a duplicate answer vote the easiest way to see the candidate questions is to choose "Close" button, then click "Duplicate of...", then it will show you the question previous people think is the duplicate. If I read it and I do not think it is a duplicate, I hit the "X" button in the upper right to cancel the operation and go back to the question. If I do think it is a duplicate, I click the "Vote to Close" button.  The problem is that the current auditing system thinks you are voting to close as soon as you click the first "Close" button (which is not true), thus you get falsely criticized by the system for trying to make an invalid close when all you were trying to do was see the duplicate question.  I would suggest fixing this by making the audit only complete when the person clicks the "Vote to Close" button, not when they click the "Close" button.

Having just  from any of the queues, it was reviewing close votes; however, this audit was flawed in that I didn't even cast a close vote.  Often I press the Close button to preview greater detail and sentiment of the closure, spawning the Why should this question be closed dialog box:    Especially for duplicates, where functionality is solely dependent on spawning this dialog.  From Closing > Duplicate, I can search or view selected duplicates:    Although, I realize general closure reasons are summarized on the page:    This question had 6-upvotes, but seemed very localized referencing subjective query is "taking too long" and even had a sqlfiddle link.  Maybe overly broad regarding performance tuning, the OP was posting like a forum with two answer posts to his own question  and  with one of those answers asking follow-up questions.    Wanting to gauge community response, current closure totals struck my curiosity.  So, I pressed the Close button and boom - oh, the humanity!  I failed, and didn't even cast a close vote.    Votes are not cast until a reason for closure is selected and Vote to Close is pressed.  Taking any review very seriously on this site, it only seems fair that my review quality is tested through actionable steps instead of clicking for more detailed information, leveraging the functional design of the close vote user interface.  Sure, it's complex to seed fake vote totals, and then there's controversy of mindless voting in the majority or people who simply cherry pick 4-vote questions.  Still though, it seems unfair I should hesitate to review further information of vote totals and duplicates before skipping due to the implementation of this audit.


as of superuser rules which i can't understand, i can't answer to the question here:   so i have to make a new question about it.  answer is below.

I have recently upgraded my Windows 7 Pro to Windows 10 and basically everything seems to be working fine. Except for the fact that Win10 won't get Firefox as the default browser in the system... It started when I noticed that nothing happens when I click on links in email messages on Outlook. After I checked a few things, I also got to change the defualt browser to Chrome and the links worked. That's when I realized that the issue is with the definition of the default browser on Win10. I should mention that I have used all possible ways to set FF as the default browser in the system - from FF itself of couse, from the settings of the system, from file associations, program association and so on. Nothing changed when I did it for FF. Once I do it for Chrome (in ANY of the mentioned ways), it works exactly like it should. Is it a Win10 issue? Is it an FF issue? What can I do more about this?  UPDATE: I have tried everything that has to do with settings Firefox as the default browser in the system, including going through the Settings of Windows, going from the Settings of Firefox, setting default files and protocols, but nothing helps except for re-installing Firefox. If doing that would have closed the issue once and for all, I would have settled for that, but that's the "solution" after every reboot of the OS! This is very frustrating and I don't know what more I can do about it.


After fitting a logistic regression model in R using model <- glm(y~x,family='binomial') I can obtain the confidence intervals for the fitted coefficients using confint(model), but I want to know how to manually compute these values. In the case of a linear model lin_mod <- lm(y~x) I can just do the following to obtain a 95% confidence interval for the slope coefficient:  CI_lower <- coefficients(lin_mod)[2] - 1.96*summary(lin_mod)$coefficients[2,2] CI_upper <- coefficients(lin_mod)[2] + 1.96*summary(lin_mod)$coefficients[2,2]   Where coefficients(lin_mod)[2] is the estimated value of the coefficient, and summary(lin_mod)$coefficients[2,2] is corresponding standard error.  However when I use this same process to compute the confidence interval of the fitted coefficients of a logistic regression, the values don't agree with the output from confint. Below is an example using some randomly generated data:  x <- rnorm(n=100, mean=5, sd=2) y_prob <- plogis(x, location=5, scale=1) y <- sapply(y_prob, function(p) rbinom(1, 1, p)) model <- glm(y~x, family='binomial')  summary(model)$coefficients #               Estimate Std. Error   z value     Pr(>|z|) # (Intercept) -3.8998231  0.8838826 -4.412150 1.023490e-05 # x            0.7963213  0.1746632  4.559183 5.135303e-06  CI_lower <- coefficients(model)[2] - 1.96*summary(model)$coefficients[2,2] # = 0.4539815  CI_upper <- coefficients(model)[2] + 1.96*summary(model)$coefficients[2,2] # = 1.138661   confint(model) #                  2.5 %    97.5 % # (Intercept) -5.8044657 -2.313925 # x            0.4843258  1.173998   As you can see, manually computing the 95% CI around the x-coefficient yielded (0.4539815,1.138661) whereas computing it using confint yielded (0.4843258,1.173998). So my question is, how is confint computing this confidence interval, and why does my estimate differ? From some additional tests on larger samples I can see that the two estimates converge in the large-N limit, but I'm interested in what's going on for small N, in particular why the CI produced by confint is not symmetric about the coefficient estimate.

Dear everyone - I've noticed something strange that I can't explain, can you? In summary: the manual approach to calculating a confidence interval in a logistic regression model, and the R function confint() give different results.  I've been going through Hosmer & Lemeshow's Applied logistic regression (2nd edition).  In the 3rd chapter there is an example of calculating the odds ratio and 95% confidence interval.  Using R, I can easily reproduce the model:  Call: glm(formula = dataset$CHD ~ as.factor(dataset$dich.age), family = "binomial")  Deviance Residuals:     Min      1Q  Median      3Q     Max   -1.734  -0.847  -0.847   0.709   1.549    Coefficients:                              Estimate Std. Error z value Pr(>|z|)     (Intercept)                   -0.8408     0.2551  -3.296  0.00098 *** as.factor(dataset$dich.age)1   2.0935     0.5285   3.961 7.46e-05 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   (Dispersion parameter for binomial family taken to be 1)      Null deviance: 136.66  on 99  degrees of freedom Residual deviance: 117.96  on 98  degrees of freedom AIC: 121.96  Number of Fisher Scoring iterations: 4   However, when I calculate the confidence intervals of the parameters, I get a different interval to the one given in the text:  > exp(confint(model)) Waiting for profiling to be done...                                  2.5 %     97.5 % (Intercept)                  0.2566283  0.7013384 as.factor(dataset$dich.age)1 3.0293727 24.7013080   Hosmer & Lemeshow suggest the following formula:  $$ e^{[\hat\beta_1\pm z_{1-\alpha/2}\times\hat{\text{SE}}(\hat\beta_1)]} $$   and they calculate the confidence interval for as.factor(dataset$dich.age)1 to be (2.9, 22.9).  This seems straightforward to do in R:  # upper CI for beta exp(summary(model)$coefficients[2,1]+1.96*summary(model)$coefficients[2,2]) # lower CI for beta exp(summary(model)$coefficients[2,1]-1.96*summary(model)$coefficients[2,2])   gives the same answer as the book.  However, any thoughts on why confint() seems to give different results?  I've seen lots of examples of people using confint().


I'd like to switch to sans serif in order to make my text dyslexic-friendly.  Unfortunately, captions still have serif, and it raises a warning:  Font shape 'T1/lmss/m/sc' in size <12> not available Font shape 'T1/lmr/m/sc' tried instead   I (obviously) used lmodern, I tried \usepackage{anyfontsize} and several other tricks, but it won't work. Any idea?  \documentclass[a4paper,12pt]{report}        %article, report, book  \usepackage[latin1]{inputenc}            \usepackage[T1]{fontenc}                   \usepackage{textcomp}                                            \usepackage[gen]{eurosym}                                    \usepackage{gensymb}                             \usepackage[english,francais]{babel}     \usepackage{graphicx}                                            \usepackage{amsmath}                                             \usepackage{mathtools, bm} \usepackage{amssymb, bm} \usepackage[colorlinks=true]{hyperref}       \usepackage{nccrules}                                        \usepackage[version=3]{mhchem}                       \usepackage{pgf,tikz}                                    \usetikzlibrary{arrows}                              \usepackage{geometry}                        \usepackage{parskip}                                             \usepackage{lmodern}                                              \renewcommand{\familydefault}{\sfdefault}   % Supprime le serif (dyslexie) %\usepackage[font=sf, labelfont={sf}]{caption} %\usepackage[font=sf]{floatrow} \linespread{1.2}                                                     \geometry{hmargin=2.5cm,vmargin=2.5cm}       %\pagestyle{empty}                                       \hypersetup{urlcolor=blue,linkcolor=black,citecolor=black}  \begin{document}  \begin{figure}[h]     \centering         \includegraphics[width=0.7 \textwidth]{Deb.jpg}     \caption{Leviers}     \label{Leviers} \end{figure}

Consider the following MWE  \documentclass{beamer} \usepackage{silence} \WarningFilter{biblatex}{Patching footnotes failed}  \usepackage{lmodern} \usepackage[T1]{fontenc}  \usepackage[style=authoryear-comp,backend=biber]{biblatex} \addbibresource{biblatex-examples.bib}  \begin{document} \begin{frame}   \fullcite{sarfraz} \end{frame} \end{document}   This generates the warning:  LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10.95> not available (Font)              Font shape `T1/lmr/m/sc' tried instead on input line 28.   Is there a way to avoid the warning without using the silence package?


I want to enable core dump generation by default upon reboot.  Executing:  ulimit -c unlimited   in a terminal seems to work until the computer is rebooted.

Before Mavericks, I could use /etc/launchd.conf file to change maximum system resource consumption, for example:  limit maxfiles 16384 unlimited limit maxproc 16384 unlimited   It no longer works in Mavericks.  What is the correct way to do it in the recent version of OS X?


Sorry for weird wording of the title, here's my problem: I'm making a game in a java, and I have a Model Library class which loads all the models in a specific folder to an array list of models. The code I have works just fine for loading the models, but the problem is getting a model with a specific name from an Array List.  I use:  public RawModel getModel(String name){     for(int i =0;i< modes.size();i++){         System.out.println((i+1)+". Comparing " + name + " with " + modes.get(i).getName());         if(modes.get(i).getName() == name){             System.out.println("Returned model " + modes.get(i).getName());             return modes.get(i);          }     }     System.err.println("Returned default Model");     return modes.get(0); }   which in theory SHOULD work with getting the model with the said name, but in the console it returns this:  1. Comparing platform.river with cube Returned default Model Returned default Model 2. Comparing platform.river with grenade 3. Comparing platform.river with plasma 4. Comparing platform.river with platform.river 5. Comparing platform.river with waterhole 1. Comparing cube with cube 2. Comparing cube with grenade 3. Comparing cube with plasma 4. Comparing cube with platform.river 5. Comparing cube with waterhole 1. Comparing waterhole with cube 2. Comparing waterhole with grenade 3. Comparing waterhole with plasma 4. Comparing waterhole with platform.river 5. Comparing waterhole with waterhole Returned default Model   It doesn't seem to complete the loop before returning null! Then in the second one it seems to have skipped the loop entirely, then the third one seems to have returned null after looping. Is there a better way to get a model with the said name? How can I fix this issue?

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


What is correct Stack Exchange site for a question about historical fiction?  Here is the context:  Many years ago I read a rather interesting book that tracked the life of two physical objects (a whip and a crown perhaps) over several centuries. The book was given to me as a child by my father, who read it as a child. Napoleon's invasion of Russia plays a role in the book with two characters surviving a winter using the remains of a horse for shelter. I am now trying to find the name of the book and if it is still in print.

Science Fiction and Fantasy has a highly active  tag but where should I ask for identification of fictional stories that are of neither science-fiction nor fantasy genre?


I was thinking and came up with the question "Can the path of a photon be warped by a strong magnetic field?" I tried searching online for an answer but couldn't find much scientific evidence of it being possible or not.  So is it possible?

I'm struck with two competing ideas on the question in the title.  :   How far can a magnetic field bend light?   A: Unfortunately, the path light takes is not affected by the presence of a magnetic field. Light itself is composed of an oscillating electric and magnetic field, and one very important property of electric and magnetic fields is what we call linearity. That is, if you have two sources of electric and/or magnetic fields, you can predict what the combined field is just by adding the two source fields together. The two fields don’t change each other at all.   (Answer #1)    Does electric charge affect the space time fabric? If so, why?    A: [See link. Rather, see both links if you must.]  I'm more inclined to consider the latter question and answer as the correct interpretation. Anyway, if anyone could help me out with this conceptualization that would be great, thanks.


I am trying to customize the html in theme/woocommerce/layout-products/grid.php, I have copied the file from parent theme to theme-child/woocommerce/layout-products/grid.php but without any effects.  From the answers I found here I understand that sometimes copying the php file works, sometimes not?  I also tried the require_once for this file but this breaks the whole WordPress. How can I customize the product grid html?

Basically, I'm trying to override some files of the Uncode theme. But this is not a theme-specific question: it can be applied to any theme. The Uncode theme has a custom dir 'partials' (/uncode/partials/) that contains some layout elements. On my child theme I created a 'partials' folder as well (my-child-theme/partials), but the inner files seem not to be overridden. Is it normal? WP docs say that any file of the same name should be overridable, but is seems that's not true. Am I doing something wrong?


I'm new to D&D and most of the stuff is easily understood (though might require some time spent reading the rules). What has me flummoxed is how casting of bless works for my cleric. I can't figure out how I determine if the cast was successful. I understand the mechanics for attack spells and spells requiring saving throws. But can anyone shed some light on how I determine if the cast for Bless was successful?

I understand to attack you need to make attack rolls, but does casting spells require any kind of test before they can be successfully cast or does the player just declare that the spell has been cast assuming they can. The starter rules don't seem to say.  Spells in questions are things like sleep or mage armor.


Trying to multiply two matrices of the dimension 1000*1000 . However, trying to do so causes Segmentation fault. what is possibly causing this and how to resolve it?   #include <stdio.h> #include<stdlib.h> #include<time.h> int main() { clock_t t;     t = clock();    long int a[1000][1000], b[1000][1000], result[1000][1000], r1=1000, c1=1000, r2=1000, c2=1000, i, j, k;     // Column of first matrix should be equal to column of second matrix and   /*  while (c1 != r2)     {         printf("Error! column of first matrix not equal to row of second.\n\n");         printf("Enter rows and column for first matrix: ");         scanf("%d %d", &r1, &c1);         printf("Enter rows and column for second matrix: ");         scanf("%d %d",&r2, &c2);     } */      // Storing elements of first matrix.     printf("\nEnter elements of matrix 1:\n");     for(i=0; i<r1; ++i)         for(j=0; j<c1; ++j)         {           a[i][j]=rand()%20;         }      // Storing elements of second matrix.     printf("\nEnter elements of matrix 2:\n");     for(i=0; i<r2; ++i)         for(j=0; j<c2; ++j)         {             b[i][j]=rand()%20;         }      // Initializing all elements of result matrix to 0     for(i=0; i<r1; ++i)         for(j=0; j<c2; ++j)         {             result[i][j] = 0;         }      // Multiplying matrices a and b and     // storing result in result matrix     for(i=0; i<r1; ++i)         for(j=0; j<c2; ++j)             for(k=0; k<c1; ++k)             {                 result[i][j]+=a[i][k]*b[k][j];             }  // Displaying the result     printf("\nOutput Matrix:\n");     for(i=0; i<r1; ++i)         for(j=0; j<c2; ++j)         {             printf("%ld  ", result[i][j]);             if(j == c2-1)                 printf("\n\n");         } t = clock() - t;     double time_taken = ((double)t)/CLOCKS_PER_SEC; // in seconds      printf("\n \nfunction took %f seconds to execute \n", time_taken);     return 0; }

The following code is generating a stack overflow error for me  int main(int argc, char* argv[]) {     int sieve[2000000];     return 0; }   How do I get around this? I am using Turbo C++ but would like to keep my code in C  EDIT:  Thanks for the advice.  The code above was only for example, I actually declare the array in a function and not in sub main.  Also, I needed the array to be initialized to zeros, so when I googled malloc, I discovered that calloc was perfect for my purposes.  Malloc/calloc also has the advantage over allocating on the stack of allowing me to declare the size using a variable.


How can I use a javascript onclick function like  $('#resultTable tbody tr').on('click', function () {   on an element (in this case table) that is returned in partial view?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


while i have tried reading explanations for why newtons third law doesn't mean objects can't move such as this one:  I still do not understand how to apply them to the system I'm about to describe:    (Suppose the system is in space so friction isn't present)  Force F is pushing object A, object A thus pushes object B with force equal to F. According to newtons third law object B will exert an equal force on object A in the opposite direction. So now on Object A, two equal forces are acting in opposite directions, so it should not move. my question is why does object A end up moving after all?

Given Newton's third law, why is there motion at all? Should not all forces even themselves out, so nothing moves at all? When I push a table using my finger, the table applies the same force onto my finger like my finger does on the table just with an opposing direction, nothing happens except that I feel the opposing force. But why can I push a box on a table by applying force ($F=ma$) on one side, obviously outbalancing the force the box has on my finger and at the same time outbalancing the friction the box has on the table? I obviously have the greater mass and acceleration as for example the matchbox on the table and thusly I can move it, but shouldn't the third law prevent that from even happening? Shouldn't the matchbox just accommodate to said force and applying the same force to me in opposing direction?


I'm kinda new to stats and trying to find info on PDFs that depend on multiple parameters, but I keep finding info only on multi-variate distributions. The point is that I have only one random variable $R$, but it depends on two or more parameters, say $(x_1,x_2,x_3)$. My actual goal is: I know the dependency of R on the separate params, and I need to create a joint PDF for it. An example can be: say you have the distribution of heights based on age, and separately based on weight, how do you combine those to one PDF such that given (age, weight) will give the correct height distribution? Any help will be very appreciated! Edit: it seems that there's not enough data to “build” a joint PDF. Will the answer be any different if I can assume everything is distributed normally? Meaning, can the “joint” mean and variance be determined given age + weight?

Somebody asked me this question in a job interview and I replied that their joint distribution is always Gaussian. I thought that I can always write a bivariate Gaussian with their means and variance and covariances. I am wondering if there can be a case for which the joint probability of two Gaussians is not Gaussian?


All it is, is a simple function that takes two variables and "merges" (concats) them. Code below:  function merge(var1, var2) {      var1 += var2; }  var a = 'a';  var b = 'b';  merge(a, b);  console.log(a);   When I call a console log inside the function, it works as planned, and prints 'ab', however on the outside of the function if I console log a, the expected result is of course 'ab' but it prints 'a'. I understand this is because a function is an asynchronous event therefore it is run after the console log outside is run however I haven't the slightest clue how to go around this. All help is appreciated.

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


So, I've seen this rule at several English books about how if a word has a voiced final sound (e.g. r, voiced th, l, m, n..) then added 's' is pronounced more like /z/. If the final sound is voiceless (e.g. t, p, k etc) then it's pronounced like /s/.   ()  But, in practice, I see this rule violated often for several instances, at least in GenAmE (standard/General American Accent). Examples:        Some words ending with L/N sounds:  Falls, malls, aliens, holes   (sounds like final s is still /s/ not /z/ in falls, malls, aliens,   wells, holes)   Doesn’t seem to happen in some words ending with ‘m’: E.g. dreams,   problems, times   Doesn't happen for some words ending in ‘r’: E.g. truckers/f**ers   seems to be pronounced with /s/ at the end rather than /z/      I can see some people still using slight /z/ sound (not full blown /z/ but somewhere in the middle of /s/ and /z/) but I think many standard US english speakers still would be pronouncing them with more of /s/ than /z/ sound in the final position for these words. It also seems like people aim for /s/ sound but since the final sound in the word was voiced, a slight /z/ (not full-blown) may sneak in, which may give the impression of a slight /z/ mixed with /s/. Still, in these cases, the "Rule" doesn't apply and is more of an aberration than the standard practice.   Questions:   Why is this then stated as a 'rule' when clearly it's not so cut-and-dried?  Can someone explain the basis for this so-called 'rule' when there are so many instances of standard american speech pattern deviating from it?

I’m Spanish but sometimes see TV shows in English.  My question is whether the words horse and whores sound exactly the same, because in many English language TV shows it seems like they are, which really surprises me.   Are they homophones?  I cannot hear any voicing at the end of the word whores to distinguish the two words.


The name of the last one should be NOT "Butterknife". Very minor issue, I know ... ;)     App version: 1.0.85 Device manufacturer: Xiaomi Device model: Redmi Note 3 OS version: 5.1.1 (V7.3.6.0.LHOMIDD)

Butterknife appears twice in the OSS attribution list of the Android app (v1.0.85). Based on the links, the second one should be JMustache.


Steam won't run properly, it just shows up at the bottom panel for a few seconds then disappears and there's not even an icon next to the tab. No window comes up.   I have WINE & winetricks installed.  How do I get Steam to run properly? I'm not sure what the issue is.  kubuntu@kubuntu:~$ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast

I have been on quite the odyssey trying to get steam to work.   I am using Ubuntu 15.04 and the linux 4.0.5 kernel. System specs:  Intel haswell quad core CPU AMD Radeon 7870 Graphics Samsung 850 EVO SSD 16GB Memory  I was able to get steam to work in 14.04LTS, but I had other problems with that version; namely flash issues in chrome. So I updated to 15.04 and my system is more stable (except for steam, there is always something...)  I have tried removing various lib files to no effect. I have removed and installed steam a few times and it doesn't appear to be working.   I tried switching to the proprietary drivers, but that causes my system to hang when it boots. In order to fix it I completely removed and purged fglrx from my system. I attempted to reinstall the proprietary drivers via command line according the ubuntu page instructions, and ran into the same error, so I am stuck with the open source drivers.  I can only assume that my card is no longer supported by the proprietary drivers, which is frustrating.   Before I removed the proprietary drivers I got the same error as these guys:   Now that I have removed the proprietary drivers I am getting missing lib errors, which I guess is not surprising:  libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast  I am about ready to give up and am seriously considering buying an Nvidia card. If anybody has any suggestions on what else I can do, I would really appreciate it.


This was a bonus question on a recent homework in my point-set topology class. I've since turned in the assignment but still don't have an answer to this question.     Let $X$ be a locally compact Hausdorff topological space. Let $X^+$ denote the one-point compactification of $X$. Prove or find a counterexample to the following claim: If $X^+$ is connected, then $X$ has no connected components which are compact.   The converse is true and straightforward to show. If we add the assumption that $X$ is locally connected, then the statement is true. And if we remove the requirement of local compactness, then it's false. But in its current form I haven't been able to make heads or tails of it.

Let $X$ be a Hausdorff, locally compact but non-compact topological space. If the (Alexandroff) one-point compactification is connected, can $X$ have compact connected components?


I have to take a soup to a party but my kids only like the Pacific brand of tomato soup. I am wondering if it's safe to put in the crock pot to heat up and take it with me. Thanks, Kay

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


In the video  from 03:00 to 05:00  I hope that both the clocks would read the same equal amount ,say,1 revolution, in measuring the time elapsed for the flash to return to the laser fired.   And the both Sarah and Adam may feel the time elapsed to be different in their own perspectives which might have arised from "the speed of light is same for all observers.   I think i am right upto this extent.  Now, Is time dilation an illusive phenomenon in which one may feel "a one single tick of a clock" which can be "one minute" for another one WHILE for both of them, the clock is universal and runs at same pace ???   Why do Sarah and Adam feel the time elapsed to be different ?? in what way ?

It is said that we can verify time dilation by flying a very accurate clock on a fast jet or spaceship and prove that it registers less time than the clocks on earth. However, the clocks on earth would be moving relative to the clock on the spaceship, and since time always dilates and never goes faster regardless of the direction of relative motion,  the clocks on earth should register less time than the clock on the spaceship.  Is this true? Whenever there is a fast-moving object such as a rocket do all clocks on earth really become slow?  If the rocket with the clock landed after moving at relativistic speed, would its clock and the earth's clock again show the same time since during its travel both appeared slow to each other?  Or is all this just an illusion, ie. the clocks just appear to be slow to each other but in actually run at normal speed, and neither is behind when the rocket actually lands?


I am working as software engineer.  I have to use sentences like 'it is impossible' or it is not possible' in many emails.  I want to know that both are same or some has more impossible look than other?

When we say,      It is not fair.   or     It is unfair.   I'm not sure enough to say whether both of the sentences have the same meaning or not though superficially, there is no difference between them but if we say,     Something is not possible.   or     Something is impossible.   then there is really an observable difference in my first language. Hence, the question - is there a difference between the preceding two sentences in English?


I am a Kenyan citizen ,wuld like to travel to Cayman islands from Nairobi through Dubai to Frankfurt using Emirates airlines, from  Frankfurt to Panama with a different airline. so will I need any transit Visa in Dubai or in Frankfurt bearing in mind that Kenyans don't require a visa to Cayman islands and Panama? And if I get to Frankfurt will the airlines check in my luggage to the next flight since I will change the airlines in Frankfurt Germany?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


These two houses  are exactly like the house on the left. I have taken the wall out and put it back in multiple times and I really don't know what is going on this is making my brain melt

I read on the wiki that people will move in under the following conditions:   You do something to please them An empty house is available with a light source, table, and chair (also with walls).   I have a house which is about 7x8, then a roof space above that; about half the area. I could put furniture up there too, but will anyone move in?


An SNL skit or a SNL skit?  I am pretty sure it's "an", but I wasn't exactly sure, because I was news articles use "a" instead.

Say we have an acronym or abbreviation like SSH (Secure Shell). What is the correct form of the following phrase? 1) An SSH console 2) A SSH console  I tend to use the first because it "sounds" right. However, a reader of the phrase could expand the abbreviation and read "an secure shell" which obviously sounds wrong! Is there a definite rule for this or the choice is made based on the sound of the phrase?


Let's say I am lying on the ground when my friend runs over me on his speeder bike, does it feel like I've just been run over by a bike or as though a light breeze just passed over me? There doesn't seem to be much visible disturbance in the film, however, it's possible that's just a budget reason or that the compression of the ground simply isn't very visible.   Alternatively does this vary depending on what that writer wants different models of repulsor lifts, the specifics of the planet their on, the altitude the repulsor lift is functioning at etc. etc.  Legends answers are perfectly acceptable if nothing is found in canon.

I know this sounds like a stupid question, but I just wanted to confirm if they are the same thing. In new canon, anti-gravity is never mentioned.


I have this problem:    I've had it for a couple of years, but now my computer always does this, and the only program which is ever shown on this screen is Skype. I've tried to reinstall Skype, but this hasn't solved this issue, so I don't really know where to fix this...  I'm normally good with computers and pretty much an expert, but this has stumped me.   Is there a way to make Windows immediately terminate the background programs without showing me this screen (it really annoys me sometimes, and sometimes hangs for 30 seconds or more), or to fix this problem within Skype?  My computer is a laptop and it's pretty fast, but it's pretty much dwarfed by newer computers (the laptop is a 4 year old Medion Akoya X7811 with 1st-gen Core i7) and it shouldn't be doing this. Almost every program runs fine on it, yet it always stalls on this screen.  Yes, I know this question has been asked before, but I would generally like to make Skype stop causing this problem (is there a way to switch it to a foreground process?) instead of modifying the registry. This laptop is my primary laptop and I use it for my business, and do not want to break it.  I'm not sure if this site is the right place to ask this question, if it isn't, please notify me instead of downvoting my question.

I am using Windows 7 Home Premium. When I shut down my computer why does the screen show this:    Before shutting down I'm close all programs.


This is my material menu look like    meanwhile this is most people material menu look like in most youtube tutorials

Complete beginner here.  I'm trying to follow  tutorial on Anisotropic shaders, but my property panel looks nothing like the property panel in the tutorial.  For example, when creating a material, this is what his property panel looks like:    But this is what mine looks like, if I follow the same path:    I'm sure I'm missing something obvious.  How can I see the property panel shown in the tutorial?


I've a table like this,  values ------------------- male,female PHP 30 PHP (30) PHP ($30),CSS ($20) PHP {$30},CSS {$20} PHP [$30],CSS [$20] PHP (€30),CSS (20)   I've prepared the sql like this,  SELECT mytable.values FROM mytable WHERE mytable.values REGEXP '[[:<:]]PHP ($30)[[:>:]]'   It should match one row (4th), but it's not working.  It's also not working with () / {} / [] or any types of symbols like $ / €  I want to mention here that,   MYSQL LIKE isn't the right thing for me I think, because it won't work if we want to match male. REGEXP is working for PHP 30 here and it's working for only strings.   Could anyone please inform me what will be the best solution to match the exact word or sentence?  Thanks in advance.

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


Why is E(XY)=E(XE(Y|X))?  Is this using the properties of conditional expectation and is there a general formula that can be applied when you have E(...)=E(..(E(Y|X))?

How to prove that $E[Y]=E[E[E[Y|X_1, X_2]]]$ ?  PS. I don't see how $E[E(Y|X_{1},X_{2})|X_{1}]=Y[Y|X_{1}]$ and $E[Y]=E[E(Y|X_{1})]$ can be used here. But it feels close. Please help, I'm stuck PPS. Thanks @Deep North. Let's consider the case when X1 is independent of X2


For a month or so now the default programs keeps reverting. And I have to manually re-set my desired applications for certain file types, however these keep reverting irregular (sometimes after a day and sometimes after a week). I'm getting sick of it.  It does not matter what way I set the default app for a file type, after a while its reverted at boot. I tried setting the default programs using: Set Default Programs, Set Associations (both in Control Panel) and by hand: right click > Properties > opens with...  .txt files changes to Notepad instead Sublime Text, images opens with Windows Photo Viewer and not Picasa Photo Viewer, .html files change from Chrome to Edge, .php files get no default program to be opened with, etc. etc.  Windows 10 Pro Version 1511 OS Build 10586.218

Since the fall update last month, Windows 10 automatically keeps changing the default apps for certain types (mostly browser,pdf,mp3,jpg). I have tried changing them back from the Settings app as well as the Control Panel.  I have observed that this happens mostly while unzipping files using WinZip. Windows changes the default programs back to Microsoft recommended programs such as Edge, Photos, Groove etc.  Is there a way to restrict this from happening? Has anybody else encountered a similar situation? I couldn't find similar question anywhere so I'm asking this here.


The text is . Or , p. 65.      Waipoli Road Holy cow! What's happening?! Yep, this devilish road sneaks up on you. One minute you're gazing tranquilly over a pretty , the next minute you're navigating a tight series of rising blind curves that surely can't fit two cars at once. And wait, was that the bottom of my rental car scraping the edge of the road? OK, try to relax. Just watch the paragliders floating overhead. They sure are pretty. Twist. Turn. Twist. Will this road ever end? Yep, for most rental cars it ends at the entrance to the Kula Forest Reserve, where signage makes it clear that 4WD vehicles [I bolded.] are the only way forward on the unpaved nightmare just ahead.     didn't recommend 4WD for this road. So is  the quote overhead correct? What exactly does 4WD involve for 4 adult travellers? Does a small SUV suffice, like ? If not, an Elite SUV, like Audi A3 or BWW X3? Or is an off-road vehicle necessary, like the Jeep Wrangler?

My grandparents will drive only on roads recommended in printed travel guides; they'll ask the rental car company if Waipio Valley Road and the road to the top of Mauna Kea are sanctioned.       A rented 4WD vehicle is allowed by law to travel ANY public roadway in Hawaii. AND there are some places that require a 4WD vehicle.      [...]      If you travel down into  or to the top of , you are legally allowed to do so, but your rental company will expect you to pay for any damage incurred whether you selected the insurance or not, as the insurance is null and void when you violate the contract.        I do not believe a 4x4 rental is necessary for 99% of visitors. For the other 1%, "necessary" is too strong a word!      But, being in that "1%" category, there ARE worthy places to go on the BI that require 4x4 (the kind you can rent from a normal rental outlet, not the kind locals may drive). I won't publicize those places because I don't want such places to become overused. [I bolded.] Just don't believe it when you read here that there is absolutely no place at all worth visiting that would require 4x4.    I doubt the Tripadvisor comments overhead, as none of them discussed potholes:          Please see the bolded phrase. Where on the BI requires an SUV?


I tried to use regexvalidators from django to validate form so that it does not contain http or https (many spammers using link) but it doesn't work.  from django import forms from django.core.validators import RegexValidator from antispam.honeypot.forms import HoneypotField  class ContactForm(forms.Form):     name = forms.CharField(max_length=50)     email = forms.EmailField()     phone = forms.CharField(max_length=11)     message = forms.CharField(widget=forms.Textarea, validators=[RegexValidator(regex=r'http(s)?|HTTP(s)?', message="I don't accept link", code="invalid")])     spam_honeypot_field = HoneypotField()   How do I solve this problem?

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


I keep getting the error : "failed to find solution for one or more bones" when trying to parent rig to my character. I cant seem to find the problem, does anyone know what I can do?

Here is the .  Picture:   It's nothing special but I cant figure out why I get problems rigging this mesh. It would be important and a great Help! Thanks for reading and I know there are a lot of guides answering this question but I tried all and it doesn't seem to work.


The stated  does not address solution in terms of $p, q, r,$ i.e. not in terms of the Viete's formula. My  approach is based on the viete's formula by finding the relation between the coefficients of a polynomial to sums and products of its roots.  If $\frac 1{a+b+c}= \frac 1a+ \frac 1b+ \frac 1c$, then show for odd $n$, $ \frac 1{a^n+b^n+c^n}=  \frac 1{a^n}+ \frac 1{b^n}+ \frac 1{c^n}$  Cannot establish the significance of odd $n$, i.e., why not applicable for even $n$.  Also, a simple approach is: $\frac 1{a+b+c}= \frac{ab+bc+ca}{abc}\implies abc = (ab+bc+ca)(a+b+c)$.  The two product terms are usually associated to a polynomial (as shown below) with $3$ roots: $a,b,c,$ having $-p=$ sum of roots $=a+b+c$, and $q=$ sum of product of roots two at a time$=ab+bc+ca$, and the single term for all $3$ roots $=-r= abc.$  So, $-r = -pq\implies r = pq$.    Derivation of polynomial with $3$ roots: Let $a,b,c$ be the roots of $x^3 + px^2 + qx + r = 0$. Then, writing the polynomial in terms of roots gives $(x - a)(x - b)(x -c)$.  $\therefore$ $x^3 + px^2 + qx + r = (x - a)(x - b)(x - c)$.  $= (x^2 - (a + b)x + ab)(x - c)$  $= x^3 - (a + b)\cdot x^2 + (ab)\cdot x - c\cdot x^2 + (a+b)c\cdot x - abc$  $= x^3 - (a + b +c) x^2 + (ab + bc + ca) x - abc$  $\therefore$ equating coefficients  (a) $a + b + c = -p$.  (b) $ab+ bc + ca = q$.  (c) $abc = -r$.    Unable to proceed further.  I want to add that the source has cryptic answer that has next step as : The required polynomial is : $f(x)= x^3 +px^2+qx+pq$. <-- This step stucks me.  The next one ones are easy: This implies $(x+p)(x^2+q)$.  As one root is $=-p$, so $a=-p= a+b+c\implies c=-b$.  So, $\frac 1{a^n+b^n+c^n} = \frac 1{a^n}=\frac 1{a^n+b^n-b^n}=\frac 1{a^n+b^n+c^n}$.   The last part uses odd $n$ property, but the stucking step is issue.

I'm having trouble finishing a problem on an old national competition.  As the title states, the question says asks:  Given $a,b,c \neq 0,a+b=c$ such that $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=\frac{1}{a+b+c}$,  Find all integers $n$ such that $\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n}=\frac{1}{a^n+b^n+c^n}$.  I know that if it is true for $n$, it is also true for $-n$ since $(a^n+b^n+c^n)(\frac{1}{a^n+b^n+c^n})=1$ and $(a^n+b^n+c^n)(\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n})=1$ and the statment follows for $-n$ given that we can make the substitution for $n$. Thus I found out that $n=-1$ satisfies the equality.  I also know that it fails for all even $n$. If $n$ were even, $(a^n,b^n,c^n)$ would all be positive, and Titu's Lemma asserts that $\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n}\geq \frac{9}{a^n+b^n+c^n}$. Thus $n$ must be odd.  I also observed that $(2,-1,1)$ was a solution, and from here noted that this particular solution satisfies all odd $n$.  I have been trying to prove that all other solutions satisfy all odd $n$ with no success.  Any help would be greatly appreciated. Thanks!


I am working on a school project where I have to create a basic webpage.  How can I make the main_content div reach each ends, because that will allow me to centre the webpage text.  1]:     .main_content {   position: relative;   padding: 0.8em;   margin: auto;   width: 50%; }

Welcome to TK Digital Arts

The #1 modern design and media company in New Zealand.

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


I am looking for a proof that the standard unit square in $\mathbb{R}^2$ is not a variety. To be a variety I only require that it be the solution to a system of polynomial equations.

I am trying to show that square with vertices at $(\pm1,0)$ and $(0,\pm1)$ is not a zero set of a polynomial in $\mathbb{R}[x,y]$. Clearly, square is the zero set of a function  $$ f: \mathbb{R}^2\to \mathbb{R}; $$ $$ (x,y)\mapsto |x|+|y|-1, $$ which is not a polynomial. But how to show that there is no polynomial which has square as the zero set?


There is the following equation.  $$x^{2}+2(m-a)x+3am-2=0$$  a) Find $a$ such that the equation has real roots, $\forall m\in \mathbb{R}$  b) Find $m$ such that the equation has real roots, $\forall a\in \mathbb{R}$  The discriminant is $m^{2}-5am+a^{2}+2\geq 0$ and $a^{2}-5am+m^{2}+2\geq 0$  I found that $a,m\in (-\infty , -\sqrt{\frac{8}{21}}]\cup [\sqrt{\frac{8}{21}}, +\infty)$ but I don't know why $|a|\leqslant \sqrt{\frac{8}{21}}$and $|m|\leqslant \sqrt{\frac{8}{21}}$  Yes, I saw that question but I don't understand why in that answer the discriminant of the new quadratic in $a$ is $\le0$. For radicals I know that it should be $\ge0$.

1.find a for $f(x) = x^2 + 2(m − a)x + 3am −2 = 0$ such that for every m real, f has real roots 2.find m such that for every a real, f has real roots  My ideea is to demonstrate that $\delta=4(m-a)^2 - 4(3am-2) = 4(m^2-5am+a^2+2) >0$ But I have no ideea how to do this.


I'm trying to figure out the best/easiest method to format number into currency in python.  If the number is negative I want the minus sign to be before the dollar sign (ex.  -$123,323). Otherwise the number should appear in this form  (ex $123,323,323). Is there a built in python method to do this?

I am looking to format a number like 188518982.18 to £188,518,982.18 using Python.  How can I do this?


I tried to research this for a bit and I can't figure out the problem  Here's the code:  #include <iostream> #include <stdlib.h> #include <string> void choose(); void newuser(); void admuse();  using namespace std; string x; string z; string w;  void CreNeAcc(){   cout << "Enter User Name for your new account\n"; getline(cin, x);  cout << "Enter Password for your new account\n"; getline(cin, z);  cout << "Would you like the account to be admin?\n"; cout << "Yes = Y, No = N\n"; getline(cin, w); choose();  }  void choose(){  if(w == "Y"){ newuser(); admuse(); }else if(w == "N"){ newuser(); }else{ cout << "Invalide Command\n"; }  }    void newuser(){  const char* Letter_x = x.c_str(); char command [100] = "net user /add "; strcat(command, x); //This is where I get the error strcat(command, " "); strcat(commad, z); system(command); }  void admuse(){     system("new localgroup administrators " << x << " /add") }   also the error its giving me is:  cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '2' to 'char* strcat(char*, const char*)'|

How can I convert an std::string to a char* or a const char*?


I have this table called HISTORY:  CREATE TABLE HISTORY (START_DATE DATE, POSITION  VARCHAR2(80 BYTE));   The table is populated like this:  START_DATE    POSITION 15-jun-1983   SUPPLY ATTENDANT 01-abr-1987   SUPPLY HELPER 01-mar-1990   SUPPLY ASSISTANT 01-mai-1991   TECHNICAL SUPLY ASSISTENT 01-abr-1999   TECHNICAL SUPLY ASSISTENT SR 01-dez-1999   SUPPLY TECHNICIAN 01-mai-2001   SUPERVISOR 01-jul-2002   SUPERVISOR 01-jan-2004   SECTOR MANAGER 01-jul-2005   SECTOR MANAGER 01-fev-2006   SECTOR MANAGER 01-jan-2007   SENIOR SUPPLY TECHNICIAN 01-mai-2007   SECTOR MANAGER 01-fev-2008   SENIOR SUPPLY TECHNICIAN   I want to make a query that summarize it like this way:  START_DATE    POSITION 15-jun-1983   SUPPLY ATTENDANT 01-abr-1987   SUPPLY HELPER 01-mar-1990   SUPPLY ASSISTANT 01-mai-1991   TECHNICAL SUPLY ASSISTENT 01-abr-1999   TECHNICAL SUPLY ASSISTENT SR 01-dez-1999   SUPPLY TECHNICIAN 01-mai-2001   SUPERVISOR 01-jan-2004   SECTOR MANAGER 01-jan-2007   SENIOR SUPPLY TECHNICIAN 01-mai-2007   SECTOR MANAGER 01-fev-2008   SENIOR SUPPLY TECHNICIAN   In a nutshell, I would to like to remove the grouped position repetitions, keeping only the first one.  Does anybody know how?  Thanks in advance

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


To show that $$\sum\limits_{n=2}^{\infty}\frac{(n^3+1)^\frac13-n}{\log n}$$ is convergent My attempt: Expanding the first term using binomial series and simplifying, I tried comparison test with $b_{n}=\frac{1}{n^2}$  $$\lim_{n \to \infty}\left(\frac{(n^3+1)^\frac13-n}{\log n}\right)n^2 $$ $$=\lim_{n \to \infty}\frac{n\left(\frac13\frac{1 }{n^{3}}-\frac19\frac{1 }{n^{6}}+\dots\right)n^2}{\log n}$$ I could simplify this using binomial theorem but I don't know how to deal with the $\log$ term in the denominator

Show that the series $$\sum\limits_{n=2}^{\infty} \frac {(n^3+1)^{1/3}-n}{\log n}$$ converges.   I showed it using Abel's theorem and limit comparison test. Any other simpler method?


Hi I've been trying to create a local web dev environment in my home folder. My local LAMP is running fine, and I tried this tutorial to develop without the hassle of the permissions in var/www    I'm getting a 403 forbidden error when trying to access it like so:   http://localhost/~asdf/   Please advise.

Server: Ubuntu 12.04 w/ LAMP I can access the default index.html, but I created a symbolic link to a folder in my Dropbox.  Whenever I try to access 192.168.2.6/Joomla (Joomla is the symbolic link), I get a 403 error.  Editing my httpd.conf according to  didn't work.  I can post conf files, etc, just ask.  I've tried using chmod to allow all permissions on the files in question, but that didn't help.  Also, I deleted the default index.html to force Apache to show the www directory.  It shows, but is empty (Symbolic link doesn't show up)  Output from ls -lSrah (in Joomla):   total 7.6M -rwxrwxr-x  1 somekittens somekittens  865 Mar 31 18:03 robots.txt -rwxrwxr-x  1 somekittens somekittens 1.3K Mar 31 18:03 index.php -rwxrwxr-x  1 somekittens somekittens 1.7K Mar 31 18:03 web.config.txt -rwxrwxr-x  1 somekittens somekittens 1.8K Mar 31 18:07 joomla.xml -rwxrwxr-x  1 somekittens somekittens 3.1K Mar 31 18:03 htaccess.txt drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 tmp drwxrwxr-x  6 somekittens somekittens 4.0K Mar 31 18:03 templates drwxrwxr-x 13 somekittens somekittens 4.0K Mar 31 18:03 plugins drwxrwxr-x 26 somekittens somekittens 4.0K Mar 31 18:03 modules drwxrwxr-x 15 somekittens somekittens 4.0K Mar 31 18:03 media drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 logs drwxrwxr-x  7 somekittens somekittens 4.0K Mar 31 18:03 libraries drwxrwxr-x  4 somekittens somekittens 4.0K Mar 31 18:03 language drwxrwxr-x 10 somekittens somekittens 4.0K Mar 31 18:03 installation drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 includes drwxrwxr-x  4 somekittens somekittens 4.0K Mar 31 18:03 images drwxrwxr-x 13 somekittens somekittens 4.0K Mar 31 18:03 components drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 cli drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 cache drwxrwxr-x 10 somekittens somekittens 4.0K Mar 31 18:03 administrator drwxrwxr-x  5 somekittens somekittens 4.0K May 25 08:51 .. drwxrwxr-x 17 somekittens somekittens 4.0K May 25 08:53 . -rwxrwxr-x  1 somekittens somekittens 4.2K Mar 31 18:03 README.txt -rwxrwxr-x  1 somekittens somekittens  18K Mar 31 18:03 LICENSE.txt -rwxrwxr-x  1 somekittens somekittens 7.5M Mar 31 18:18 Joomla_2.5.4-Stable-Full_Package.zip   Output from ls -lSrah (in /var/www/):    somekittens@KittensTest:/var/www$ ls -lSrah total 7.5M lrwxrwxrwx  1 root root   41 May 25 09:39 Joomla -> /home/somekittens/Dropbox/Project/Joomla/ drwxr-xr-x 13 root root 4.0K May 24 20:50 .. drwxr-xr-x  2 root root 4.0K May 25 10:08 .   /etc/apache2/httpd.conf  <virtualHost indextj:80> ServerAdmin webmaster@indextj  DocumentRoot /home/somekittens/Dropbox/Project/Joomla <Directory />         Options +FollowSymLinks -SymLinksIfOwnerMatch         AllowOverride All </Directory>


So I have this (selected plane in edit mode below) plane and I want to cut into it with this mesh (the mesh on top):  The crucial bit is that I'm not looking to use the boolean mod to punch out a shape. I just want the curve of this long, thin piece to be part of the plane's geometry. That way, I can select those faces and adjust the Z location (riverbed). I've tried using the boolean modifiers but have had no luck. Is there a way for me to project this other mesh onto the plane? Thanks for your attention.

I want to divide this model into separate pieces to prepare it for the next stage of a project. The divide needs to be made down a curved line (which I hope is visible in picture).  ,   I figured out how to cut it down a straight line a couple weeks ago, but apparently a curve is a different beast. Is there an operation for this, or do I have to manually make a bunch of straight cuts (or something equally painful)?


I am fairly new to neural networks. I am trying to empirically show that a neural network can work better than logistic regression when the underlying function is non-linear. In my simulation study, the true probability of assignment to the treatment group is a function of $X_1$, $X_2^2$, $X_3$, and $X_4$ - however, I am acting as if I don't know that $X_2$ is squared, and just using the non-squared term. Logistic regression performs poorly.   I think that I can get a neural network to estimate the function better since it's a (rather simple) non-linear function. However, my first attempt was not fruitful and I'm not sure if I need to increase "hidden," the number of hidden neurons, or change the activation function (or something else). Here's what I tried in R:  nn = neuralnet(t ~ X1+X2+X3+X4, data=df, hidden=3, act.fct = "logistic",              linear.output = FALSE)   Any thoughts?  Thanks!

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


int main() { float b=123.1265; printf("%f\t",b); return 0; }   OUTPUT is 123.126503  now my question is from where this 03 is coming in the output.. I tried with random numbers but every time I got random output rather than the value I assigned..

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Does a Paladin's steed, when not using it as a mount, attack and perform other tasks through your command, like a Ranger's animal companion?  I'm under the impression that a Paladin's steed works like an animal companion since it says in the Player's Handbook under the Find Steed spell that you "fight as a seamless unit."

I have read so many things already that I'm more confused than before. So decided to ask this by myself.  My paladin just got his Find Steed spell, and after some tweaking and talking, he decided to get a Worg and I was okay with it. This last session was his first time using it and I have few doubts when it comes to combat.  I know that while mounted, he uses the mounts movement and actions. But what about when unmounted? What if the combat began with him walking by his mount's side?   Does the mount share his initiative? Are the actions that the mount do, part of the Paladin's actions? Or are they both separately, having his Action, Movement and Bonus Action and then the mounts Action and movement?   We've stated that it can understand him but not talk back, he just telepathically receives feelings as a feedback to his commands, knowing that the mount understood what he needed. Last session he just said things to the mount like "I tell the mount to protect the ranger and the druid" and in case they got hit, it would attack them, but it didn't really do anything at all, as I didn't know when it would act and I had too many things already to remember about the mount.


I have installed Ubuntu 18.04 in Oracle virtual box but I am not able to install Guest Additions to maximize the Ubuntu screen. I have run the following command in the Ubuntu terminal but when I click "Devices => Insert Guest Addition CD Image" I get an error that unable to insert virtual optical disk. How to fix the issue ? I need to maximize the Ubuntu screen. sudo apt install build-essential dkms linux-headers-$(uname -r)

I've recently installed Ubuntu on Oracle's Virtualbox.  Now I want to install the guest additions.  I started up my Ubuntu guest OS, clicked "Devices" and chose "Install Guest Additions". Nothing happened, and I don't see the CD icon on my desktop.  How can I make this work?


Given PDF and CDF of a distribution, how does one find an approximation of $(\operatorname{Var}(X_i))$ using a normal approximation of $(X_i)$?   According to "Mathematica Laboratories for Mathematical Statistics" by Jenny Baglivo (Theorem 9.1 on page 120), it is said that:  $\operatorname{Var}(X_i) \approx p(1-p) / (n+2)f(x)^2$ where $f$ is PDF, $x$ is $p^\text{th}$ quantile of the $X$ distribution, and $p = i/(n+1)$  I have $0$ ideas on how we get to this result. I am absolutely drawing at a blank. Help is very much appreciated!

If I calculate the median of a sufficiently large number of observations drawn from the same distribution, does the central limit theorem state that the distribution of medians will approximate a normal distribution? My understanding is that this is true with the means of a large number of samples, but is it also true with medians?  If not, what is the underlying distribution of sample medians?


Is it possible to simulate event time T from a distribution that depends on two variables A and Z but the hazard function conditioning on A only follows a proportional hazards model?

I want to simulate survival times from the model  $\lambda(t|X_1,X_2) = \lambda_0(t) \exp(\gamma_1X_1+\gamma_2X_2)$  where covariates are given by $X_1\sim$Binomial(1,0.5), $X_2\sim$Uniform(0,1), the true parameter values are  $\gamma_1=-0.5$, $\gamma_2=1.5$ and the true baseline hazard function is as follows  $ \lambda_0(t)=  \left\{ \begin{array}{ll}       \exp(-0.3t); & 0<t\leq 1 \\       \exp(-0.3); & 1<t\leq2.5 \\       \exp(0.3(t-3.5)); & t>2.5 \end{array}  \right. $  The censoring time is from the exponential distribution with mean 2.5.  For a simple baseline hazard function(e.g. $\lambda_0(t)=\lambda$), i used the following algorithm to generate survival times  $$T=H_0^-\{-\log(u) \times \exp(\gamma_1X_1+\gamma_2X_2)\} =\lambda^-\{-\log(u) \times \exp(\gamma_1X_1+\gamma_2X_2))\}$$  where $u\sim$Uniform(0,1). The R codes are as follows  gamma <- c(-0.5, 1.5) X1 <- rbinom(n=200,size=1,prob=.5) X2 <- round(runif(n=200,0,1),2) time <- (1/.3)*(-log(runif(200))/exp(gamma[1]*X1+gamma[2]*X2)) cen <- rexp(200,rate=1/2.5) event <- as.numeric(time <= cen)   But i'm struggling to generate for the piecewise baseline hazard function that i mentioned above. Would anyone please help me to generate survival times for the above settings using R.


I am trying to bind a Html.DropDownList from Enum. Can anyone help me thanks in advance.

I'm trying to use the Html.DropDownList extension method but can't figure out how to use it with an enumeration.  Let's say I have an enumeration like this:  public enum ItemTypes {     Movie = 1,     Game = 2,     Book = 3 }   How do I go about creating a dropdown with these values using the Html.DropDownList extension method?  Or is my best bet to simply create a for loop and create the Html elements manually?


Someone asked  about why they got permission denied when they entered in a Bash shell  /etc/profile   I know this is because the file has no execute permission. Even root cannot execute it (sudo /path/to/file/with/no/execute/bits fails with the uninformative error sudo /path/to...: command not found). I also know that root can enter a directory with no execute bits, so the absolute prohibition on executing non-executable files seems special. In chat,  (presumably, from accidentally executing dangerous code).  I briefly wondered why anyone would want to execute /etc/profile and thought that if anyone did want to execute it, they would probably actually want to source it (because it is a configuration file that sets environment and shell variables). I then realised that execute permission is not needed to source any regular file. But source executes the file in the current shell! The file can contain any command, and . file will go right ahead and execute it.  If execute permission is restricted to prevent accidental execution of potentially dangerous code, why is it possible to execute non-excutable files using the source command?

With Bash's source it is possible to execute a script without an execution bit set. This is documented and expected behaviour, but isn't this against the use of an execution bit?  I know, that source doesn't create a subshell.


If I set the ajax format to x-www-form-urlencoded I can easily access the sent data in the $_POST['whateverinput'] global, but if I use JSON it will introduce another problem of having to convert it back to a usable format to PHP with   $_POST = json_decode(file_get_contents('php://input'), true);   Why bother with JSON to transmit data from AJAX?

I've looked on Wikipedia and Googled it and read the official documentation, but I still haven't got to the point where I really understand what JSON is, and why I'd use it. I have been building applications using PHP, MySQL and JavaScript / HTML for a while, and if JSON can do something to make my life easier or my code better or my user interface better, then I'd like to know about it. Can someone give me a succinct explanation?


I was reading an article that I was assigned by my professor, and I came across the following:  “We’re the ones getting killed,” Los Angeles Clippers coach Doc Rivers, who is Black, said in an emotional postgame speech Tuesday night.  Is the usage of the capital B in "black" correct, is it incorrect, or does it fall into a completely different category altogether? Also, is it racist to say "black" with a capital B, but not for example, 'the white man' not using a capital W as I have seen in the past? And this is not a typo because it also turned up earlier in the article:  Taylor, a 26-year-old Black woman, was fatally shot when police officers burst into her Louisville, Kentucky apartment using a no- knock warrant during a narcotics investigation on March 13.  Here is a link to the article:

What is the accepted custom regarding capitalization when it comes to "White" and "Black" when referring to race, whether they are being used as nouns or adjectives?


How can I formally classify a function that increases to infinity?  Intuitively I know (I don't why I know it, maybe from school) that functions like:  $$f(n) = n^2 + n + 123 + log_2n$$ $$f(n) = n^2 + n$$ $$f(n) = 12 * n^2$$  Have quadratic class  Functions like:  $$f(n) = log_2n + 2$$ $$f(n) = 5 + log_5n + 2$$  Have logarithmic class  I did this classification because it is obvious for me that $n^2$ has higher growth rate than $n$ and $n$ has higher growth rate than $log_2n$  But do we have any common and formal way to classify a function?   Or more commonly speaking, what does exactly word class means when we talk about functions?    UPDATE:  Someone suggested me that I should look at Big O notation. I don't see how it can solve my problem.  Let's say we have a function like: $$f(n) = 2^{(n + log_2n +12)} + 3^{(5n + log_2n)}$$  How Big O can help me to determine at what set (class) of functions $f(n)$ belongs to?  Moreover, we can use Big O notation only after function is been classified, not before. So I need some math framework to classify function and only then I can use Big O notation.

There is a formal definition for the Big O notation in . Up to now I have come across Big O in Numerical Analysis, Calculus and Algorithms which all are pretty distinct fields. What I am wondering is if that definition is global and is the only one that is used in every field where the Big O is involved or there are other ways that the Big O is defined in other areas  of Mathematics.