SessionStorage caching when getting items from a list

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); var listTitle = []; var listUrl = []; var listIsActive = []; var listOrder = [];  function sharePointReady(){ var siteUrl = mysite;     var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('Privacy Statements');  var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml(''); this.collListItem = oList.getItems(camlQuery);  clientContext.load(collListItem);  clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));         }    function onQuerySucceeded(sender, args) {  var listItemEnumerator = collListItem.getEnumerator();   while (listItemEnumerator.moveNext()) {     var oListItem = listItemEnumerator.get_current();     listTitle.push(oListItem.get_item('Title'));     listUrl.push(oListItem.get_item('PrivacyStatementUrls').get_url());      listIsActive.push(oListItem.get_item('IsActive'));     listOrder.push(oListItem.get_item('SortOrder'));    } sessionStorage.setItem('Title', JSON.stringify(listTitle)); sessionStorage.setItem('Url', JSON.stringify(listUrl)); sessionStorage.setItem('IsActive', JSON.stringify(listIsActive)); sessionStorage.setItem('Order', JSON.stringify(listOrder)); var retrievedTitle = sessionStorage.getItem("Title"); var arTitle = JSON.parse(retrievedTitle); var retrievedUrl = sessionStorage.getItem("Url"); var arUrl = JSON.parse(retrievedUrl); var retrievedIsActive = sessionStorage.getItem("IsActive"); var arIsAct = JSON.parse(retrievedIsActive); var retrievedOrd = sessionStorage.getItem("Order"); var arOrd = JSON.parse(retrievedOrd);  var test = '' for(x=0; x<arTitle.length+1;x++) {      for(i=0; i<arTitle.length+1;i++)     {          if(arIsAct[i] == true){             if(arOrd[i] == x){                 test +=''+arTitle[i]+'
';             }            }      } }  document.getElementById('test').innerHTML = test; }  function onQueryFailed(sender, args) {  alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace()); }   I am trying to use caching with sessionstorage when getting items from a list, so it doesn't have to keep querying the list over and over again. It can just check with the sessionstorage and if its in the list there is no need to get the item but if its not in sessionstorage get the item from the list. I am not sure how to do this, my code above shows my attempt


How can I listen to a voice memo in background like iPod and open some other note taking app on iPhone 4?

I tried, but my voice memo gets paused. If this isn't possible, is there any way to import voice memos to ipod (kind of workaround)?


I have been wondering how to put all the stored procedures on a SQL 2000 under source control.  We are using Subversion for all our normal source code, so it would be great if there were a solution to the problem using Subversion.  Do you have any ideas?  Update 16-02-2009: This is the vbs script i used to export all the stored procedures:  Set con = CreateObject("ADODB.Connection") con.ConnectionString = "*** Database connection string here ***" con.Open  Set rs = CreateObject("ADODB.RecordSet") rs.ActiveConnection = con  strSQL = "SELECT ROUTINE_NAME, ROUTINE_DEFINITION " & _ "FROM INFORMATION_SCHEMA.routines " & _ "WHERE ROUTINE_NAME NOT LIKE 'dt_%' " & _ "ORDER BY 1"  Set fso = CreateObject("Scripting.FileSystemObject") rs.Open strSQL  While Not rs.Eof      filename = rs("ROUTINE_NAME") & ".sql"     routineSQL = rs("ROUTINE_DEFINITION")     Set tf = fso.CreateTextFile(filename, True)     tf.Write routineSQL     tf.Close     set tf = Nothing      rs.MoveNext Wend Set fso = Nothing  rs.Close  Set rs = Nothing


Any suggestions on how to increase cycles rendering quality? I would like to have this image as HQ as possible.


CSV containing GeoJSON format geometries to DataFrame

I have a CSV file I open as a DataFrame. Among the columns is one named geom 1 :  df.loc[:, 'geom 1'] >>> 0       {'type': 'Polygon', 'coordinates': [[[2.826589... 1       {'type': 'Polygon', 'coordinates': [[[2.225689... 2       {'type': 'Polygon', 'coordinates': [[[2.225689... 3       {'type': 'MultiPolygon', 'coordinates': [[[[5.... 4       {'type': 'Polygon', 'coordinates': [[[3.933055...                               ...                         2998                                                 None 2999                                                  NaN 3000    {'type': 'Polygon', 'coordinates': [[[5.014937... 3001    {'type': 'Polygon', 'coordinates': [[[4.912995... 3002    {'type': 'Polygon', 'coordinates': [[[4.739631... Name: geom 1, Length: 3003, dtype: object  #Conditionning the dataframe : df.replace('None', np.nan, inplace=True)   I would like to convert these strings to geometries in a GeoDataFrame.   After a few resarches I did not find a working solution :   :  df.loc[:, 'geom 1'] = df.loc[:, 'geom 1'].apply(wkt.loads)  >>> ParseException: Unknown type: '{'TYPE':' WKTReadingError: Could not create geometry because of errors while reading input.    :  df.replace('None', np.nan, inplace=True) geom = [shape(i) for i in df.loc[:, 'geom 1'].dropna()] >>> AttributeError: 'str' object has no attribute 'get'   What I succeded was to sent the DataFrame to PostGIS, convert the type of the column geom 1 from text to geometry and use the function ST_FromGeoJson to access the geometry. Since I have many columns geom I want to do this under python in order to merge all the columns geom into a single one named all_geoms.


How do the Chitauri "ships" propel themselves?

In the 2012 The Avengers film, the Chitauri army arrives through the portal along with these big robot alien whale Chitauri dudes. Here's one chasing Iron Man:  These guys basically swim through the air like... giant robot alien whales. I don't see any means of propulsion. Other, more humanoid Chitauri soldiers fly around on things that seem to be mechanical "speeders" of sorts. What are these guys? Are they ships, creatures, or both? Is there an explanation anywhere in the Avengers universe for how they defy gravity and swim through the air?


Does a Canada PR card holder require a transit visa for London Heathrow airport?

I have an Indian passport and a Canadian PR card. I am travelling back to Canada from India with stopovers in Frankfurt and London. Do I need a transit visa for this?  Thanks.


Getting the eyes of another community in the exchange on a question

I've had a few situations where someone asks a well-qualified question on SO but it could still use the eyes of an expert in another domain. What would be the best way to approach the following situation?   could have had some profiling done before it was asked but it is reasonably well presented with working code. I made some trivial optimizations just by looking at it logically but I think real improvement needs to be focused on the more technical part of the code.   is another question where it happened. I was eventually able to help but I it took a long time and I have a feeling if a real mathematician looked at it they could have made more useful suggestions.  All I could come up with so far:   Wait and hope an expert in DSP who also uses python notices it and helps. This seems too luck-dependent and would only work for languages with very large communities) Post a new question on  asking for mathematical improvements with links between each question. This seems ok but it seems like it would be better if everything could be contained in one place. Also, it would need to be rephrased in mathematical terms and might miss some optimizations that could be done by doing things a slightly different way with the libraries that are being used. Join general DSP chat and ask for help. I tried this but there is no general DSP chat that I could find.   I look forward to hearing any advice you all have.


how can i delete two chars before - in notepad++

I have database that organize this way   now -  14-17  ,  16-20  ,  1-12  ,  10-1  i want it to be like   after -  17, 20 , 12, 1  thanks!


How null object can still return its property value?

Below is my code. I set the object to null, still my print statement can print the property name correctly. Can anyone tell me what's happening?  public class MyClass {     String name;      public String getName() {         return name;     }      public void setName(String s) {         name = s;     }     public static void main(String args[]) {         MyClass obj = new MyClass();         obj.changeName(obj);          System.out.println("Name = " + obj.getName());     }     public MyClass() {         name = "A";     }      public void changeName(MyClass obj) {          obj.setName("B");          obj = null;     } }   Output is:     Name = B


If $\int_0^\pi{f(\theta)\cos\theta}=\int_0^\pi{f(\theta)\sin\theta}$, prove that $f$ has two zeroes in $(0,\pi)$

I read a Putnam question recently. I am having trouble remembering which year it was, but it was probably from before the 1950's     Let $f\in[0,\pi]$ be a continuous function. If $$\int_0^\pi{f(\theta)\cos\theta \;{\rm d}\theta}=\int_0^\pi{f(\theta)\sin\theta\; {\rm d}\theta}$$ prove that $f$ has two zeroes in $(0,\pi)$   Consider the function $f(\theta)=e^{-\theta}$. It satisfies the condition given above, which can be seen through integration by parts, and does not have any zeroes. Where am I going wrong?


How to determine the point of intersection of two lines?

I have two lines say P1( 0, -1, 0, -1 ) and P2( -1, 0, 0, -1 ). Since I'm working in 2D, there is no Z component. The x,y,z components are normals and the w component is the distance from origin. I am not given the origin or any points on the line.  What method should I use to programmatically determine the point of intersection for these two lines?


– Schematic created using  There is also the resistance of the Mosfet which is equal to 0.25(Ohm) I just didn't know how to add it to the circuit. We're gonna call it Rdson. First question says: Calculate Ids that passes through the transistor. Vcc - rIds - Rdson x Ids = 0 Ids = 12/ (0.25 + 1.25) = 8 A Second question says: Calculate VDS(max) Vds = Ids(r + Rdson) = 8(1.5) = 12v That's what I don't understand. Why the book included r in calculating VDS? Isn't it supposed to be: Vds = Ids x r Did the book make a mistake here? Also, is VDS(max) the same as normal VDS? My problem: How VDS(max) is calculated in this circuit? Is the way the book solved it correct?


Riddle (simple arithmetic problem/illusion)

I'm not sure how well known this "riddle" is but here it goes.  3 people go to a restaurant, each buy food worth 10.00.  When they're done, they give 30.00 to the waitress.  She gives the money to the manager, manager says they paid too much, gives 5.00 back to the waitress.  She comes back to the table, gives a dollar back to each person and then puts the remaining 2.00 in her pocket for tip.  So now, each person has paid 9.00.  9.00 x 3 = 27.00.  Plus the 2.00 in the waitresses pocket is 29.00.  What happened to the 30th dollar?  So what's the issue with this way of calculating (since if you backward it works fine), that doesn't give us the correct result?


How to check if the array is not empty? I did this:  if not self.table[5] is None:   Is this the right way?


In what order does python reveal the key of the dictionary

I understand that dictionary is not ordered. I know that.  However, this is a code of counting word frequency.  def wordCount(kalimat):     counter = {}     for kata in kalimat.split(" "):         if kata in counter:             counter[kata] += 1         else:             counter[kata] = 1     for I in sorted(counter):         if counter[I] == 1:             print("{:<10} appears 1   time.".format(I,counter[I]))         else:             print("{:<10} appears {:<3} times.".format(I,counter[I]))   I called the wordCount with the following string.     A word may appear once but twice may appear twice since this one will not appear again with this animal   This is the result.   Run #1  again      appears 1   time. not        appears 1   time. one        appears 1   time. may        appears 2   times. word       appears 1   time. appear     appears 3   times. since      appears 1   time. twice      appears 2   times. but        appears 1   time. with       appears 1   time. will       appears 1   time. A          appears 1   time. animal     appears 1   time. this       appears 2   times. once       appears 1   time.   Run #2  once       appears 1   time. word       appears 1   time. will       appears 1   time. animal     appears 1   time. appear     appears 3   times. again      appears 1   time. A          appears 1   time. not        appears 1   time. one        appears 1   time. but        appears 1   time. twice      appears 2   times. may        appears 2   times. with       appears 1   time. since      appears 1   time. this       appears 2   times.   I understand that is not ordered, but even if they are not ordered, why the order is different? My imagination is the reason it's not alphabetically ordered because the order is based on the time they are registered (ie.queue)  I can't imagine that they call random.shuffle() when I want to display it.


Which Salesforce License is required to use Dev Hub (beta)?

Today I've tried to enable the new Dev Hub for some of our Developers. Dev Hub itself is working only for me as I am using a Salesforce license with the Profile System Administrator. Since the Devs are not involved in selling activities, we use Plattform Licenses (Force.com) for them.  Now the devs should be able to use the Dev Hub.  I was able to create the Permission Set as described .  But as I'm trying to assign the permissio set, I get only an error complaining about the license type.  Is there any way to allow these licenses to use the dev hub? If not, why such an restriction? It does not make sense to provide them with a Sales Cloud License.


How to add Leading Zero with getMonth in Java (Android)

I'm using an int variable:  month = dp.getMonth() + 1;   currently getting an output of "2" and when I do the following:  if (month<10){                 month = '0'+month;             };   I get:  50.


What is difference between field level security and field accessibility

On field detail page, there are two different buttons called Set Field-Level Security and View Field Accessibility. What is the exact difference in them.


undefined reference to \ `__gxx_personality_seh0' and collect2.exe: error: ld returned 1 exit status

It is in essence an C++ and compiler problem. But I will describe how does this error occur.  I am writing mathematica librarylink function using C++ and , which is as follows  libsource = "#include \"WolframLibrary.h\"   #include <Eigen/Dense>   EXTERN_C DLLEXPORT int donothing(WolframLibraryData libData,mint \ Argc,MArgument*Args,MArgument Res) {   using namespace std;   using namespace Eigen;   Matrix2d a;   a<<1,2,3,4;   return LIBRARY_NO_ERROR;}";   And load it as using   LibraryFunctionUnload[donothing]; libnew = CreateLibrary[libsource, "donothing", "Debug" -> True,     "CompileOptions" -> "-x c++"]; donothing = LibraryFunctionLoad[libnew, "donothing", {}, "Void"];   I turned on debug, and mathematica ouput shell compilation result as below:  C:\Users\qq\AppData\Roaming\Mathematica\SystemFiles\LibraryResources\W\ indows-x86-64\Working-lenovo-qq-5144-7404-36>C:\mingw-w64\mingw64\bin\ \x86_64-w64-mingw32-gcc-5.2.0.exe -shared -o \ "C:\Users\qq\AppData\Roaming\Mathematica\SystemFiles\LibraryResources\ \Windows-x86-64\Working-lenovo-qq-5144-7404-36\donothing.dll" -g -x c++ \  -I"C:\Program Files\Wolfram \ Research\Mathematica\10.3\SystemFiles\IncludeFiles\C" -I"C:\Program \ Files\Wolfram \ Research\Mathematica\10.3\SystemFiles\Links\MathLink\DeveloperKit\W\ indows-x86-64\CompilerAdditions\mldev64\include" "C:\Users\qq\AppData\ \Roaming\Mathematica\SystemFiles\LibraryResources\Windows-x86-64\W\ orking-lenovo-qq-5144-7404-36\donothing.c"  -L"C:\Program \ Files\Wolfram \ Research\Mathematica\10.3\SystemFiles\Links\MathLink\DeveloperKit\W\ indows-x86-64\CompilerAdditions\mldev64\lib" -L"C:\Program \ Files\Wolfram \ Research\Mathematica\10.3\SystemFiles\Libraries\Windows-x86-64"    \ 2>&1  R:\temp\cc9bBS4s.o:donothing.c:(.data+0x0): undefined reference to \ `__gxx_personality_seh0' R:\temp\cc9bBS4s.o:donothing.c:(.xdata+0x10): undefined reference to \ `__gxx_personality_seh0' collect2.exe: error: ld returned 1 exit status   Yesterday, I run the same code, it works perfectly. While now, I don't know what is wrong.  At the same time, all librarylink without Eigen library works well. And Eigen library is not damaged, since I can compile .cpp file using Eigen without problem.  How to solve this?  update  I don't know why my question marked as duplicate without any comment! I read that link, and it didn't solve my problem! I already said "yesterday it works well". I already use option "-x c++", and I also tried "-x c++ -lstdc++" and the error is __gxx_personality_seh0 not ___gxx_personality_v0


Suppose $z,z_1,z_2,z_3 \in \mathbb{C}$ such that $z^2 = z_1^2+z_2^2+z_3^2$.  Prove that $$|\Re(z)| \le|\Re(z_1)|+|\Re(z_2)|+|\Re(z_3)|$$ where $\Re(z)$ is the real part of $z$.  I think we can use the triangle inequality but I can't complete it.


FLASK: how to calculate the number of clicks made by the client on the server (ANSWER)

I am trying to calculate how much times user clicked the button. Using this flask code on server:  from flask import Flask, render_template, jsonify app = Flask(__name__)  nums=1 @app.route('/')  def index():     return render_template('index.html')  @app.route('/_get_data/', methods=['POST']) def _get_data():     nums=nums+1     myList = [str(nums)]     return jsonify({'data': render_template('response.html', myList=myList)})  if __name__ == "__main__":     app.run(debug=True)   and i get server error:     UnboundLocalError: local variable 'nums' referenced before assignment   For the client i use this html/javascript:  <!doctype html>               <meta charset="utf-8">                    <button id="btn">Click Me</button>

                       And a template response.html:
     {% for elem in myList %}
{{elem}}
      {% endfor %}
   So how to use global var's or what must i use just to calculate cliks??  UPD. THE ANSWER IS:  from flask import Flask, render_template, jsonify, session, redirect  class Test:     e=1  app = Flask(__name__) app.secret_key = 'xyz'  @app.route('/') def index():     session['my_object'] = Test.e     return render_template('index.html')  @app.route('/_get_data/', methods=['POST']) def _get_data():     my_object = session.get('my_object')     my_object=my_object+1     session['my_object'] = my_object     myList = [str(my_object)]     return jsonify({'data': render_template('response.html', myList=myList)})  if __name__ == "__main__":     app.run(debug=True)


Create a second network on same physical LAN?

I have a LAN at home using the subnetwork 192.168.1.0/24. I know this subnet mask supports 254 hosts.  Two Questions:   How can I create a subnetwork like 192.168.2.0/24 on the same physical network? Would a host on the 192.168.2.0/24 network be able to access the Internet if I pointed its default gateway to my router's IP address of 192.168.1.1?


What to call a person who always says he can do everything?

What to call a person who always says (as an example): I'm the strongest one. Says that he can do and do and whatever (But actually just boasting, whether he can or can't, but mostly ineffective)...


I have a little problem with netbeans and SQL Developer. Failed to move to sql date Date. Netbeans freezes :S the above error was the casting of date to sql.date.   Any solution? brings me crazy.  I attached pieces of my code and see if you can help me. (i use jDateChooser)    Main:   java.util.Date d = FechaEntrada.getDate(); java.sql.Date fecha = new java.sql.Date(d.getDate());           Entrada ent= new Entrada(Integer.parseInt(idEntrada.getText()),                 Integer.parseInt(idTaquilla.getText()),                 Integer.parseInt(Cantidad.getText()),                 fecha,                 Integer.parseInt(pPrecio.getText()));              CrudEntrada.create(ent);                       Crud:    public static boolean create (Entrada entrads) {                  String sql = "INSERT INTO ENTRADA VALUES (?, ?, ?, ?, ?)";  int nFilas = 0;                  try {    PreparedStatement pstm = ConnectDB.conectar().prepareStatement(sql);                           pstm.setInt(1, entrads.getId_entrada());    pstm.setInt(2, entrads.getId_taquilla());    pstm.setInt(3, entrads.getCantidad());    pstm.setDate(4, entrads.getFecha());             pstm.setDouble(5, entrads.getPrecio());                                                                               nFilas = pstm.executeUpdate();    .     .    .    .             return (nFilas > 0) ? true : false;         }


I got c# project from my prof.(no i can't ask him) I understand all except marked part in this class. Can someone give me short explanation or link to answer, what that part of code actually do?  class AccessConnection {     private OleDbConnection conn;      public AccessConnection()     {         conn = new OleDbConnection();         conn.ConnectionString= @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Bata\Desktop\Izvestaj\praksa\praksa\Studenti.accdb";     }     public void otvoriKonekciju()     {         conn.Open();     }     public void zatvoriKonekciju()     {         conn.Close();     }     /* This is part of code i don't understand     public OleDbConnection Conn     {         get         {             return this.conn;         }     }     */ }


C++: How to initialize a static vector of a custom member of a class template?

This is (a small part of) my struct: ` struct BASE { struct s {      //...  };   template<typename T> struct DerivedTemplate : public s {      struct SW     {         short   ndx = 0;         double  val = 0;         bool    glch = false;          SW(short ndx, double val, bool glch){this->ndx = ndx;this->val = val;this->glch = glch;}     };      static vector<SW> SW__BIGGR;  };  };` Then I seek to initialize the vector "SW__BIGGR" in the following way: template <typename T> vector<BASE::DerivedTemplate<T>::SW> BASE::DerivedTemplate<T>::SW__BIGGR = BASE::DerivedTemplate<T>::SW(0, 0, false);  And I get this compiler error: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’  vector<BASE::DerivedTemplate<T>::SW> BASE::DerivedTemplate<T>::SW__BIGGR = BASE::DerivedTemplate<T>::SW(0, 0, false);                                          ^ [...] note:   expected a type, got ‘BASE::DerivedTemplate<T>::SW’  When I do the same operation with a vector of simple type such as "int", everything works fine. What am I doing wrong? Thank you! EDIT: After adding "typename" before "BASE:: ..." as I was kindly told to do in a comment, I get this error: error: expected unqualified-id before ‘=’ token vector<typename BASE::DerivedTemplate::SW> typename BASE::DerivedTemplate::SW__BIGGR = typename BASE::DerivedTemplate::SW(0, 0, false); ^ Obviously, the vector cannot be initialized like that (as I am doing without problem with an "int" or "double" vector), but how can it? EDIT 2: After deleting "typename" before " ... SW__BIGGR" as kindly suggested, I now get this error for which I could not find an answer googling ("sgnl__01" is a struct based on the struct template "DerivedTemplate"): "error: conversion from ‘BASE::DerivedTemplateBASE::sgnl__01::SW’ to non-scalar type ‘std::vectorBASE::DerivedTemplate<BASE::sgnl__01::SW, std::allocatorBASE::DerivedTemplate<BASE::sgnl__01::SW> >’ requested vector<typename BASE::DerivedTemplate::SW> BASE::DerivedTemplate::SW__BIGGR = typename BASE::DerivedTemplate::SW(0, 0, false);" Lost again :-(


Box cropping shapefile based on particular latitude and longitude using QGIS?

I have a shapefile and I need to crop/clip it based on a rectangle of particular latitude and longitude using QGIS.   If it is possible, how do I do that?


What are some examples of generalizations to higher dimensions which do not hold?

My professor said (hesitantly)  $\textit{If it works in 1-D, it is likely that it also works in N-D}$  Hesitantly because, she remarked, it is not true for everything (which is expected).  After some research, I found one such example:  In 1-D and 2-D, if you start at the origin and continually do random unit steps in each of the cardinal directions (north, south, east, west, etc.), you will return to the origin with probability one. This fails for dimensions three and higher, in fact, you return to origin with probability zero in those cases.  What are some other striking examples of this?


SO i wanted to get to feel that nostalgia but i have been REALLY annoyed by an unpleasant issue. any help its hugely apreciated! My specs:   IntelCorei7-2600 3.6 GHz 8GB Ram Windows 10 pro No graphics card (hope that this its not the issue, even tho im pretty sure it can be)   Here is the error log  ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe!  Time: 11/04/19 20:14 Description: Initializing game  java.lang.IllegalStateException: GLFW error 65542: WGL: The driver does not appear to support OpenGL     at cgd.b(SourceFile:218)     at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:36)     at org.lwjgl.system.JNI.invokePPPP(Native Method)     at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1649)     at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1827)     at cgd.<init>(SourceFile:99)     at cgc.a(SourceFile:79)     at cft.am(SourceFile:439)     at cft.a(SourceFile:380)     at net.minecraft.client.main.Main.main(SourceFile:144)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Thread: Client thread Stacktrace:     at cgd.b(SourceFile:218)     at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:36)     at org.lwjgl.system.JNI.invokePPPP(Native Method)     at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1649)     at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1827)     at cgd.<init>(SourceFile:99)     at cgc.a(SourceFile:79)     at cft.am(SourceFile:439)  -- Initialization -- Details: Stacktrace:     at cft.a(SourceFile:380)     at net.minecraft.client.main.Main.main(SourceFile:144)  -- System Details -- Details:     Minecraft Version: 1.13.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_201, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 34848312 bytes (33 MB) / 202657792 bytes (193 MB) up to 6991118336 bytes (6667 MB)     JVM Flags: 5 total; -Xmn128M -Xmx6680M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+UseConcMarkSweepGC     Launched Version: 1.13.2     LWJGL: 3.1.6 build 14     OpenGL: NO CONTEXT     GL Caps:      Using VBOs: Yes     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs:      Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     CPU: <unknown>


Rey might know how to pilot, due to her years a junk trader, but one scene from The Force Awakens bothers me. The scene where she flies in the Salt mines on Crait and in the Star Destroyer wreckage on Jakku?. How could she, and anyone else who tried, pilot the Falcon? The ship's cockpit is at the opposite end of the ship, so its a pretty steep learning curve. Han Solo and Chewbacca have piloted the ship for years, But how can a newcomer fly the ship with the skill of someone whos been piloting it for years?


Equidecomposability of a Cube into 6 Trirectangular Tetrahedra

In grade school we learn that a square can be equidecomposed into two congruent right isosceles triangles. Does the following three dimensional generalization hold?  Consider a trirectangular tetrahedron with vertices at $(0,0,0)$, $(1,0,0)$, $(0,1,0)$ and $(0,0,1)$ and volume $\frac{1}{6}$. (It has three orthogonal right triangular faces and one equilateral triangular face opposite the (tri-right-angled) common vertex.) The inscribing cube of the tetrahedron has unit side length and unit volume. Is there a dissection of this cube into 6 tetrahedra of the above form?   Provided that such a dissection exists and this is the way it is to be done, it's easy to see how 4 tetrahedra can be glued together to give the boundary of the cube, but I don't quite see how the other two should fit inside.


I'm trying to prove by induction that for all $a,b \in \mathbb{Z}$ and $n \in \mathbb{N}$, that $(a-b) \mid (a^n-b^n)$. The base case was trivial, so I started by assuming that $(a-b) \mid (a^n-b^n)$. But I found that: \begin{align*} (a-b)(a^{n-1}+a^{n-2}b + a^{n-3}b^2+...+b^{n-1}) &= a^n-b^n. \end{align*}  Doesn't this imply that $(a-b) \mid (a^n-b^n)$ as $a^{n-1}+a^{n-2}b+\dots+b^{n-1}$ is clearly an integer? This obviously isn't a proof by induction, but is there anything wrong with taking this approach to prove this result, other than the fact that it isn't what is being asked?   Aside, I'm having trouble getting started with the proof by induction. I've tried making the above equivalence useful during the induction step, but it doesn't seem to be helpful, so any hints would be greatly appreciated!


Finding $\displaystyle \tan \left(\frac{\pi}{14}\right)\cdot \tan \left(\frac{3\pi}{14}\right)\cdot \tan \left(\frac{5\pi}{14}\right) $  assume $\displaystyle \frac{\pi}{14} = \theta$ then $\tan (14\theta) = 0$  wan,t be able to go further, some help me


What is the right way to indent your source code?

This is probably a really basic question:  When I write code, I want to achieve a logical and readable structure of the lines, where I can see which brace closes which brace.  \begin{equation}  \begin{multlined}   Here is some random equation that goes on for a long time  \end{multlined} \end{equation}   If the equation (here I am referring to the source code, not the compiled document) goes on to where it needs to jump to the next line, it is left-aligned, which screws up the indentation. I can manually add some spaces, but then if I change the size of the window, it realigns and is wrong again. What is the right way to achieve a logical indentation?  My apologies if this has been asked before; I did not find it on previously asked questions.  Edit: Sorry, forgot to mention, I am using writelatex.com as my editor.


Which products are recommended to clean and polish a cooking pot?

I have a metal (probably stainless steel based on its weight) cooking pot that seems to be getting old. I am not worried about the outside, but on the inside, I can see:   Shallow scratches Small oxide dots Overall a darker (yellowish/brownish) color that looks as if it is always uncleaned     The usual tools I use (soap and a sponge) do not seem to work well against that... No matters how hard I try.  I saw  and I wondered which products he was using.   At first () he uses a white cream cleanser and he says "calcium carbonate". It looks to me like ceramic glass cleaner, but it may be completely different, and he only uses that for the outside, so maybe it is not safe for the inside? Then () he uses stainless steel polisher to make it shiny   I have a couple of questions:   Is that the recommended way to go? Can I use any stainless steel polisher or any cleanser considering this is a cooking pot? (I plan to cook food on it... :-D) What are the generic names of those products? Or would you recommend only specific products/brands? I live in Spain and I may be unable to find certain brands if they are local to your country.


I issued my first flag and got a deduction for it

As my title says, it was the first time I had issued a flag. There was this answer to one of my questions that clearly was spam. It was a clear advertising of a website/application and in no way answers or even relates to my question, and it was from a new contributor.  I flagged it as a spam and shortly after I got a notification of a -1 reputation. When I clicked the notification it brought me to the "answer" I had just flagged.  I thought I was helping maintain the quality of answers on this site by doing this, and to get a deduction (even a meager -1 reputation) was pretty discouraging. Did I really just get a deduction from flagging? I read the different flags carefully and am absolutely sure it's spam.


How do you explain the usage of "it" in the sentences below?

Could you explain the usage of it in the following sentences?   I don't like it  when you speak like this. I hate it when you speak like this. I know it for certain that he is in town now. He owes it to his brother that he became a research chemist.


NullPointerException when iterating through an array of objects

When I try to iterate through my 2D array of objects, I get a NullPointerException. I know that means the object I am trying to use is null, but I can't see why. I have 3 classes, Main, Map, and Tile. The array is a 2D array of tiles within the class Map. I then create a new Map called map1 in Main, and try to read some values from each tile with a for loop.  Main:  public class Main {     public static void main(String[] args) {         Map map1 = new Map(5, 6);         map1.listTiles();     } }   Map:  public class Map {      int width;     int height;     Tile[][] tiles;      public Map(int Width, int Height) {         width = Width;         height = Height;         tiles = new Tile[width][height];     }      public void listTiles() {         for(Tile[] tileArray : tiles){             for(Tile tile : tileArray) {                 System.out.println(tile.tileType);             }         }     } }   Tile:  public class Tile {     public String tileType = "Grass";     public int xCoord = 0;     public int yCoord = 0; }   As it turns out, replacing System.out.println(tile.tileType); with System.out.println(tile); results in null being written to the console 30 times. I still don't know why though.


Timezone for any city of any country in iPhone

While programming an iPhone application, how can I find the timezone of any city / country?


I want to make an isometric game like in the picture.  At point "1" character must be visible and the train car drawn behind the character. At point "2" the train car should cover the character so that the character is behind the train car.  This is not a 3D game but a 2D game, what is the principle called that makes this happen? or maybe there is a good tutorial somewhere.  Thank you.


I understand the basic premise behind subnet masks, such as 255.255.255.0. But all the subnet examples I’ve seen have been (from left-to-right) contiguous 1s (HI bits). For instance, 255.255.0.0 (/16) translates to the following octets:  11111111 . 11111111 . 00000000 . 00000000   I believe that these bits must be contiguous, because the whole point of subnetting is to derive host ID and ranges of available device IDs. But it does have me wondering, might you ever have a subnet mask of, say, 255.17.255.0, or:  11111111 . 00010001 . 11111111 . 00000000    Would this ever happen? Or is it impossible for subnets to exist without contiguous 1s? If so, why? Otherwise, if it is possible to do this, why would you (some concrete examples)?


How to Dual-boot Ubuntu 15.10 with Windows 10 (OLD HARDWARE! NO UEFI)

I have a bootable USB that has Ubuntu 15.10 on it. I used UUI (Universal USB Installer) to do this. Keep in mind that I have a computer built in 2010 that was made to support Windows 7, but I upgraded it to Windows 10. I have an old motherboard that doesn't have an option for secure boot or whatever.  I am finally able to boot from this USB but when I get to the partition part of the installation, my partition I made (70GB) says that it is unusable. Every tutorial I watch makes this partition and when they go into the Ubuntu setup, the partition says free space, then they go about making a swap area and installing Ubuntu. In the partition tab, how come mine says unusable space?!  I made a partition, I am using a bootable USB, but it doesn't work! I have tried everything. When I try to turn my Unallocated partition into an actual usable partition in Disk Management, it won't let me either.


Null Pointer Exception when calling a method from another class android     I have 1 class and have 2 method and I would like to call both method on another class, but 1 method working fine but another method I am getting NULL POINTER EXECPTION     package Testing;  import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test;   public class Dashboard {   public static WebDriver driver;   static String  baseURL = "https://storedemo.unipagos.com/";      @BeforeClass   public static void OpenBrowsers()   {    System.setProperty("webdriver.gecko.driver", "E:\\Automation\\BrowserDriver\\geckodriver.exe");    driver = new FirefoxDriver();    driver.manage().window().maximize();    driver.get(baseURL);    driver.findElement(By.id("password_protected_pass")).sendKeys("admin");    driver.findElement(By.id("wp-submit")).click();          }      @Test   public static void Checkout() throws InterruptedException   {        driver.findElement(By.id("billing_first_name")).sendKeys("Sourabh");    driver.findElement(By.id("billing_last_name")).sendKeys("Nigam");          }     }        OpenBrowsers method on above class is worked but got NUll pointer exception on Checkout method      package Testing;  import org.testng.annotations.Test;  public class Login2 {   @Test   public static void log2()   {   Dashboard.OpenBrowsers();  }  @Test  public static void Login1() throws InterruptedException  {    Dashboard.Checkout();    }  }


I recently started having compilation problems after updating my TeXstudio to the newest version (3.0.1) using Windows 10. Whenever I try to compile any tex files, I encounter the following error:  I can't write on file `document.pdf'. \end{document}  As an example, I created a new file from a template using the article class: \documentclass[]{article}  %opening \title{Test} \author{Marcelo}  \begin{document}  \maketitle  \begin{abstract}  \end{abstract}  \section{}  \end{document}  I have found similar questions on StackExchange, and tried some of the suggestions such as:  Make sure that Adobe Reader is closed and delete the pdf file generated Compile from the command prompt using "pdflatex document.tex" Make sure I have writing permissions - this should not be a problem since I am writing to my desktop  But I am still getting the same error:  This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.10) (preloaded format=pdflatex 2020.10.17)  27 OCT 2020 11:22 entering extended mode **./document.tex (document.tex LaTeX2e <2020-10-01> patch level 1 L3 programming layer <2020-10-05> xparse <2020-03-03> (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2020/04/10 v1.4m Standard LaTeX document class (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option) ) \c@part=\count175 \c@section=\count176 \c@subsection=\count177 \c@subsubsection=\count178 \c@paragraph=\count179 \c@subparagraph=\count180 \c@figure=\count181 \c@table=\count182 \abovecaptionskip=\skip47 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-p dftex.def File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX) \l__kernel_color_stack_int=\count183 \l__pdf_internal_box=\box47 ) (document.aux) \openout1 = `document.aux'. LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info: External font cmex10' loaded for size (Font)              <12> on input line 9. LaTeX Font Info:    External font cmex10' loaded for size (Font)              <8> on input line 9. LaTeX Font Info: External font `cmex10' loaded for size (Font)              <6> on input line 9. ! I can't write on file `document.pdf'. Please type another file name for output ! Emergency stop.  ...shipout:D \box_use:N \l_shipout_box l.17 \end{document} *** (job aborted, file error in nonstop mode) Here is how much of TeX's memory you used:  410 strings out of 480236  7293 string characters out of 2879607  268785 words of memory out of 3000000  17041 multiletter control sequences out of 15000+200000  539335 words of font info for 43 fonts, out of 3000000 for 9000  1141 hyphenation exceptions out of 8191 41i,6n,47p,132b,189s stack positions out of 5000i,500n,10000p,200000b,50000s !  ==> Fatal error occurred, no output PDF file produced!  It would be great if anyone had suggestions on how to solve this problem besides reinstalling TeXstudio, which I have already tried. Thank you!! Related questions:


Upgrading a motherboard and keeping old Windows 7 installation

I recently upgraded my motherboard from a Gigabyte 78LMT-S2p to a Gigabyte 990FXA-UD3. When I tried booting up Windows it blue-screened, and after some research I learned that it has something to do with the drivers and that the easiest solution would be to reinstall Windows 7. I also read that it is possible to get Windows running without reinstalling it, but I was unable to find any sort of guidance on how to go about that. I'm currently running Windows 7 off of a spare HDD I had, so I'm wondering if there is some way to fix the old installation from this new installation on a different drive.


Exchange values between two array elements (Simple)

Imagine something like this: I have an array of 4 elements and I want to exchange the value between the element 1 and 3. How can I do this?  int[] i = new array[4];  i[0] = 10; i[1] = 20; i[2] = 30; i[3] = 40;  if(something...) {   i[1] = i[3]   i[3] = previous value of i[1] }   I want this:  i[0] = 10; i[1] = 40; i[2] = 30; i[3] = 20;   ANy idea?


Can Ubuntu Bash installed from Windows Store destroy or change Windows files?  I want to use Ubuntu Bash freely and not be afraid if I break something. I want to know if Ubuntu Bash has the permissions to make Windows unable to use.


check php array for key/value duplicates

My array is something like this:     $sth = array(         array("group" => "1", "name" => "John", "whatever" => "a"),         array("group" => "1", "name" => "John", "whatever" => "b"), // this is the duplicate I want to remove         array("group" => "1", "name" => "Henry", "whatever" => "c"),         array("group" => "2", "name" => "John", "whatever" => "d"),         array("group" => "2", "name" => "Peter", "whatever" => "e")     )   And I want to remove the duplicate 1/John entry, but not the 2/John since it's not a duplicate. I only want to check those two values, not the "whatever" value, since that will always be different. I know I could use in_array to search for just "John", or array_search to check the keys, but the keys don't always correlate to the name, so I need to only remove duplicates where the key/value are the exact same. I'm thinking something like:  $cleaned_sth = array(); foreach($sth as $s) {     $group = $s[0];     $name = $s[1];     if( in_array($group => $name, $cleaned_sth ) continue;     else $cleaned_sth[] = array("group" => $group, "name" => $name); }


How to compare two lookup field in system.AssertEquals

I have an object Timecard ( pse__Timecard_Header__c ) inside which there is a field called Period__c. I have another object Period (c2g__codaPeriod__c).  In system.assertEquals I want to compare these two things the field (Period__c) from Timecard and ID of period   pse__Timecard_Header__c th1 = new pse__Timecard_Header__c(             CurrencyIsoCode         = 'USD',             pse__Project__c         = project.ID,             pse__Resource__c        = pmResource.Id,             pse__Monday_Hours__c    = 8,             pse__Tuesday_Hours__c   = 8,             pse__Wednesday_Hours__c = 8,             pse__Thursday_Hours__c  = 8,             pse__Friday_Hours__c    = 8,             pse__Start_Date__c      = Date.today().toStartOfWeek(),             pse__End_Date__c        = Date.today().toStartOfWeek()+6         );   insert th1;            System.runAs(pmUser) {         delete th1;         system.assert([select ID from pse__Timecard_Header__c WHERE Id = :th1.Id ].IsEmpty());                               }         system.assertEquals(th1.Period__c, c2g__codaPeriod__c.Id);   This is giving me error Comparison arguments must be compatible types: Id, Schema.SObjectField. Also I would like to know whether I can use system.assert and system.assertEquals both.


What does new (int) (constructor) syntax mean in C++?

So I was looking at LLVM's Call instruction code, and it has a public constructor like so:    static CallInst *Create(FunctionType *Ty, Value *Func, ArrayRef<Value *> Args,                           const Twine &NameStr,                           Instruction *InsertBefore = nullptr) {     return new (ComputeNumOperands(Args.size()))         CallInst(Ty, Func, Args, None, NameStr, InsertBefore);   }   Create calls the appropriate private consstructor CallInst, but with an integer which I don't understand.   This is the code for ComputeNumOperands, and you can see that it returns int.     /// Compute the number of operands to allocate.   static int ComputeNumOperands(int NumArgs, int NumBundleInputs = 0) {     // We need one operand for the called function, plus the input operand     // counts provided.     return 1 + NumArgs + NumBundleInputs;   }   Hence my question: what does new int Constructor() mean?


Can I force a cache refresh in Safari running on iOS?

Most Windows desktop browsers utilize the keyboard combination Ctrl + F5 to force a page specific cache refresh. Mac OS X based browsers tend to use Command + R. Is there an equivalent cache refresh for a single page in Safari running on iOS?  I realize I can manually clear the browser cache, but I'd prefer to only refresh for the page I am currently viewing.


I have been looking at get a polarizer and some nd filters for my sigma 50mm art lense. From my research, it looks like the best are B+W and Hoya. Does anybody have any experience with either brand on full frame or can suggest an alternative?   Also, anybody know of nd filters that will fit on a sigma 12-24? I have see a few "home made" ones on the net, but I'm not crazy about trying to make one.   Shooting a d810 body


What does this symbol mean in Game Of Thrones?

In Game Of Thrones, we see this symbol associated with the white walkers twice (that I remember, might be more).  I don't remember any explanation about it in the show. Is there any explanation in the books about the meaning of it (or maybe I missed it in the show)?


what do you mean by DASH? I have not come across this on other operating syatems

what do you mean by  DASH? I have not come across this on other operating systems. Some one asked me to help them so I don't know your jargon


Why are the holodecks on Voyager in use if they have energy issues?

I'm watching the first two seasons of Voyager and various episodes have commentary on having energy limitations -- but we constantly see crew using extremely complicated holodeck simulations. Why would they allow use of the holodeck if they need to conserve energy?


I am trying to perform stepwise regression for variable selection in R.  In matlab, the stepwisefit function is able to work in n < p problems. Trying to use step() for such problems i get the error message AIC is -infinity for this model, so 'step' cannot proceed. Is there a way to modify parameters so i can use step function?


How does the Southwest Airlines boarding process work?

I'm flying this week on Southwest Airlines for the first time. I paid for "Early Bird" automatic checkin and the FAQ mentions something about "A" boarding passes. I have no idea what that means, and I know that Southwest doesn't have assigned seats.  How does the boarding process work and is there anything I should be aware of?


$|G| = pqr$ with $p$, $q$ and $r$ distinct primes. Show G is not simple. I know this might have been asked and answered before. I just wanted someone to tell me if my argument is OK:  Let $|G| = pqr$, and assume $p < q < r$. We have at least one Sylow-$q$ subgroup (call it $Q$) and at least another Sylow-$r$ subgroup (call it $R$). Consider the subgroup $K = $ $<Q, R>$. Now $K$ is not the whole group because there is no element of order $p$ in there. Further, $|K|$ must equal $qr$ because nothing smaller is possible by Lagrange's theorem.  Therefore [G : K] = p, which is the smallest prime dividing G. Hence by a standard theorem (for instance, see corollary 4.5, p. 44, Isaacs' Algebra), K must be normal. Hence $G$ is not simple.  Thanks!  WH


How to put consecutive numbers into table for SQL not one by one

Using below codes makes a table with one column as:  1 2 3 4 5 6 7  CREATE TABLE abc (a VARCHAR(8)); INSERT INTO abc VALUES(1),(2),(3),(4),(5),(6),(7)   But how we can use a method with using (1),(2),(3),(4),(5),(6),(7) , I mean something like 1:7 only?


Trouble with GROUP_CONCAT and Longtext in MySQL

The SQL...  UPDATE Threads t  SET t.Content = (     SELECT GROUP_CONCAT(a.Content ORDER BY a.PageID SEPARATOR '<!-- pagebreak -->')      FROM MSarticlepages a     WHERE a.ArticleID = t.MSthreadID GROUP BY a.ArticleID )   As you can see it takes all of an article's pages (which are each stored as longtext in separate rows) and GROUP_CONCATs them into a single longtext row. The problem is the results are only so many characters and then it gets completely truncated, losing about 90% of the contents. Does CONCAT not handle longtext very well or is there something else I am doing wrong?


Why doesn't my Bash script recognize aliases?

In my ~/.bashrc file reside two definitions:   commandA, which is an alias to a longer path commandB, which is an alias to a Bash script   I want to process the same file with these two commands, so I wrote the following Bash script:    #!/bin/bash  for file in "$@"     do     commandA $file     commandB $file done   Even after logging out of my session and logging back in, Bash prompts me with command not found errors for both commands when I run this script.  What am I doing wrong?


Managing user errors on Self-Register though communities

External customers are registered via Self Registered page. I want to configure validation errors so that users have more understanding about mistakes they do on login page such as entering existing userID . so we want to custmise the user friendly erorr massage such as "User ID already exist, please enter another user ID"  User always get "Your request cannot be processed at this time. The site administrator has been alerted"   I already check in "LightningSelfRegisterController" to customize error massage, But there is no mention to error messages in the controller. If I know the page or controller these messages are generated I can customise them.


What are the options for traveling to the airports in Paris?

Paris has 3 airports (Orly, Roissy, Beauvais), what are the options to go to or to come from there?  (There is also Vatry (XCR) but there is very few flights and i see the shuttle system is currently off.)


How do I extract an ISO on Linux without root access

I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root access?


90/80s young adult sci-fi tv show: young girl turns out to be alien princess (or some such)

I'm trying to find a tv-series/mini-series that I viewed as a teenager, probably in the 90s, possibly late 80s.  A pair of siblings (twins as I remembers) grow up in a nice neighbourhood. One day an old lady moves in next door.  Soon after, at a birthday the sister gets roller skates and is accidentally hit by a car. When taken to the hospital the doctors find that she doesn't seem to be human (not the right number of organs or something like that).  I can't remember the exact story after that, but it turns out that sister is actually an alien while the brother is a normal human. The neighbour is an alien as well sent to protect the girl. They are at some point attacked by light sabre wielding aliens (looking like big red bears on two legs and made of energy).  As I remember it ends with most of the family (at least the brother and sister) leaving the earth and as the sister leaves she turns into her alien form (lots of white shining light).  I don't think it is US made, possibly Canadian, Australian or from the UK.


Why is this number : $e^{e^{e^{79}}}$ conjectured to be an integer number which is a skew number?

is defined as : $e^{e^{e^{79}}}$ , I seek for the mathematical reasons which let $e^{e^{e^{79}}}$ conjectured to be an integer  ?


Is it possible to enter the US through the Nexus lane while my Nexus card is being renewed? And how?


Open terminal window and execute Python script on startup

I have a Python script which I would like to execute at every startup. I can run it by adding this to the startup applications:  python3 /path/to/script.py   That works, but it doesn't open a terminal window, so I can't see the program's output. How could I make it open a terminal window and execute the script in there?  Note: I get the window to stay open with input(' ') at the end of the Python script. Thanks!


Can't install rtl8192eu-linux-driver on UBUNTU 18.10

I am using UBUNTU 18.10 and I had problem with TL-WN822n v5 driver in UBUNTU and Kali (4.19.0-kali5-amd64)  The problem is driver=rtl8xxxu so I found a driver in this page :   and installed the driver on Kali and it worked perfectly fine but when I wanted to install it on my ubuntu, after I ran the sudo dkms install rtl8192eu/1.0; I got this error :   Kernel preparation unnecessary for this kernel.  Skipping...  Building module: cleaning build area... 'make' all KVER=4.18.0-25-generic...(bad exit status: 2) ERROR (dkms apport): binary package for rtl8192eu: 1.0 not found Error! Bad return status for module build on kernel: 4.18.0-25-generic (x86_64) Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.   and This is my Log file (/var/lib/dkms/rtl8192eu/1.0/build/make.log) :  DKMS make.log for rtl8192eu-1.0 for kernel 4.18.0-25-generic (x86_64) Sun Jul  7 13:35:02 +0430 2019 make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.18.0-25-generic/build  M=/var/lib/dkms/rtl8192eu/1.0/build  modules make[1]: Entering directory '/usr/src/linux-headers-4.18.0-25-generic'   CC [M]  /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’? make[2]: *** [scripts/Makefile.build:325:/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1534:_module_/var/lib/dkms/rtl8192eu/1.0/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.18.0-25-generic' make: *** [Makefile:1710: modules] Error 2   What's the problem ??


I'm trying to create an opaque div with a slight colour over an image. I can't seem to get it to fit exactly over the whole image. I've tried so many different variations and the following is the best I can come up with. I know it's probably something simple but I think I need some help lol.    .old{     position: relative; }  .cover{  background-color: blue;     width: 100%;  height: 200vh;  position: absolute;  top: 0;  left: 0;  z-index: 1;  opacity: 0.5; }


I downloaded a huge amount of files, but discovered the use of md5 and sha as integrity checkers quite recently. From then I always prefer to check it for big downloaded files, even if I never found them to be corrupted.   Do we really need to check the integrity of downloaded files?   Pick as example a Linux distribution that I have just downloaded, which is 1GB, if you want.   Thank you


how do I determine the file type of a video file

Sometimes I get the url of a video embedded in a webpage and download it, just to find the file has no extension name. I can play the video with a player, so it must be legal. How do I determine the extension name of the video file in such circumstance?


Passing by reference in Java. Help me understand

I have the following code  public static void main(String[] args) {  String word = "Super";  reverseString(word);  System.out.println(word);  }  public static String reverseString(String word) {  String helper = "";  int i = word.length() - 1;  while (i >= 0) {     helper += word.charAt(i);     i--;  }  return helper;   I do not understand why when I'm printing the "word" variable it still prints "Super" even though I changed it in the reverseString method. I understand that strings are passed by reference and not a copy like primitive values.  If I do word = reverseString(word) it prints the reverse what I expect, "repuS"  Thanks


One liner to see if grep returned something?

I'm trying to check if a machine is a ThinkPad or not using something like this:  sudo dmidecode | grep ThinkPad   I want the end result return true or false (or 1/0).   I'm thinking the solution might be something like this:  sudo dmidecode | grep -c ThinkPad | test xargs -gt 0   But I'm not sure how to properly use xargs here.


I just tried to update to Ubuntu 14.04.5 on my Dell Inspiron 8600 running Ubuntu 12.02 LTS, and I received an error saying that PAE is not enabled. I looked at the support for enabling PAE on Pentium M systems, but when I tried to run the command  apt-get install linux-image-generic-pae , I received an error saying:   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   I've tried to find answers to this in the forum, however I cannot find the solution to this. Is there any way to fix this issue? Do I need to run this as a superuser?


Extra alignment tab has been changed to \cr end template?


Why $ \mathbb{Z}[x]$ is not Principal Ideal Domain

$ \mathbf{Z}[x]$ is not PID.   we know $\mathbb Z$ is a Unique Factorization Domain, so $\mathbb Z[x]$ is UFD, but why isn't it PID (since I think $\mathbb Z$ is PID)?


How to create meaningful relationships with NPCs

How do I help the PCs to create meaningful relationships with NPCs?   Maybe it is a result of my group playing too many one-dimensional adventures trying to find whatever MacGuffin they are after each week, but most of the time my PCs don't tend to value NPCs too much. Every time they meet an NPC they quickly evaluate what immediate values the NPC can give or tend to ignore them.  What I would really like is to have some good relationships where the PCs actually go out of their way to help NPCs without selfish motivation or even just to try to think of NPCs more and how their actions affect others.  I am not looking for a specific game rules solution to this, but instead techniques to get the players to feel attachment to these fictional characters.


vertically center text in two inline-block div

If you click on my header (jsfiddle below), a new div will slide down with text in it, and if you click the close button, it will close. My problem is that the header and the close button are not on the same line or there is unwanted or unequal space between the borders and the element(s). (maybe because they do not have the same font size?)  jsfiddle:  Chrome Inspector:     .con {   width: 40%;   color: black;   border: 1px solid black;   transition: ease all 0.2s; }  .con:hover {   border: 1px solid limegreen; }  .header, .close {   display: inline-block;   text-align: center;   cursor: pointer; }  .header {   width: 90%;   color: black;   font-size: 14px;   text-transform: uppercase;   font-family: 'Open Sans'; }  .close {   width: 10%;   color: black;   font-size: 18px;   font-family: 'Open Sans'; }  .close:hover {   color: red; }

HEADER

&times;

     In order to vertically center them i tried:   using flex display, and setting line height, adding margin and padding to equalize the distance setting a specific height to both


Mount ext4 partition: “permission denied”

I have exactly the same problem as in  except that my disk has ext4 filesystem. (don't have enough "reputation" to comment there)  To repeat the problem: I can only write as root.  The corresponding line of /etc/fstab is atm  UUID=<long stuff> /mountpoint ext4 defaults,rw,user,auto,exec 0 2  Linked answer doesn't work since mount -t ext4 doesn't have -o uid=<...>,gid=<...> option.


Difference between 'max distance' and 'radius' in Physics.SphereCastAll

I needed a way to check for all gameobjects within a set sphere of my player object.  I found Physics.SphereCastAll which will return a RaycastHit[], exactly what I wanted. But, I am having trouble understanding the method signature/docs.  Basically, it's the two things in the title I am confused on right now:  From Unity docs:    radius    - The radius of the sphere. maxDistance - The max length of the sweep.   Is 'max length of the sweep' a measurement of time (or degrees?)? I would have thought the length would be the same as the radius (or at least you could calculate it from the radius) but it obviously isn't what I think length means.


I had a Logitech G9 and my mouse kept disconnecting/reconnecting after a few seconds randomly. So I changed back to my MX518 and didn't have the problem for at least a month. Then it started again. Right now I just had a disconnection/reconnection every 5 seconds for an entire minute.  I've looked into Device Manager and everytime the disconnection was happening it was refreshing. I tried turning off the power management off all the USB Root Hub. I don't know what to do anymore.  Here's a screenshot of my device manager :    EDIT: And I've also tried the mouses on other computers and they work fine. I'm on windows 7 64 bits.


When I read  the distance between Earth and Voyager 1 is decreasing.  Is it right?


Temporarily suspend bash_history on a given shell?

Is there a way to temporarily suspend history tracking in bash, so as to enter a sort of "incognito" mode? I'm entering stuff into my terminal that I don't want recorded, sensitive financial info.


I got this error during installation.  The installer encountered an error copying files to the hard disk: [Errno 5] Input/output error This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment.  How can I fix this and what does it mean specifically? I'm installing via USB so it can't be the CD. the laptop is recent so it cant be an old HD.


Unix O_CREAT flag without mode specified

The definition of the UNIX open() function when used with the O_CREAT flag is that it requires a third argument named mode in order to set the files' privileges.   What if that mode is not specified?  int file; static const char filename[] = "test.test";  if ((file = open(filename, O_RDWR | O_CREAT | O_TRUNC)) == 1) {     perror("Error opening file.");     exit(EXIT_FAILURE); }  close(file);   What happens with the file that is created using those flags?  On my system I get:  -r--r-s---  1 hyperboreean hyperboreean     0 2009-02-25 01:40 test.test   A theory is that the open function looks on the stack and checks for the mode parameter and ends up using a random integer it finds.  What does the standard say about this?


How to approach asking and answering a canonical question?

Background: Over at , I've noticed an increasing number of questions about Clash Of Clans asking how to recover their lost account. These questions are not closed as duplicates since each case is slightly different based on the user's platform etc. I often answer these questions with the exact same answer. I wish to fix this problem by creating a canonical question on this topic, and answering it myself. However, since the act of making canonical questions applies across the entire the whole network, I decided to ask this question here.    I wish to create a canonical question and answer for a frequently-asked question, as the current questions and answers are highly specific to each case.  I created the question, answered it, and marked the answer as community wiki. But how do I let everyone know that this post is intended to be canonical, and all past and future questions on this topic should be closed as duplicates?  Should I:  a) Post a comment stating this  b) Create a meta discussion and link it to the question  c) Flag all other duplicate questions to show my intent  d) Do all of the above  e) Different order? Something else?


On which Stack Exchange site can I ask Windows-related questions?

I have a question like "How to merge two drives in Windows 10 without losing my apps and data?"  Which Stack Exchange site is preferred to ask these kind of questions?


HP Proliant DL360 G6 Maximum Logical Drives

I have an HP Proliant DL360 G6 server with 8 HD bays.  Currently I have the first two bays working with ESXi and I'm just running RAID 0 on a single drive.  This is not a production machine.  It has a P410i Controller.  I'm trying to add a third drive to machine and when I go into the controller menu at boot time and select "Create Logical Drive" it says I've reached the max of 2 logical drives.  I was under the impression I could many more logical drives than just 2?  I'm not a server admin by any means, so this is definitely not my strength, but any help would be greatly appreciated.  Thank you.


So, I am having some trouble rewriting a C++ class I made in C. The C++ class has some private attributes: int grid_width; int grid_height; const int group_width = 2; const int group_height = 4; std::vector<int> buffer;  It is initialized like so: grid::grid(int width, int height) {             this->grid_width = width;             this->grid_height = height;             buffer.resize(this->grid_width / this->group_width * this->grid_height / this->group_height, 0);      }  It also comes with a clear function like so: void grid::clear() {     // get_buffer_size returns elements in the buffer vector     for (int i = 0; i < get_buffer_size(); ++i) {         buffer[i] = 0x00;     } }  Now, my attempt to rewrite this in C looks somewhat like this: typedef struct {     int width;     int height;     int *buffer; } grid;  grid *grid_new(int grid_width, int grid_height) {     if ((grid_width % 2 != 0) || (grid_height % 4 != 0))         return NULL;      int group_height = 4;     int group_width = 2;      grid *p_grid = calloc(grid_width / group_width * grid_height / group_height, sizeof(int));     p_grid->width = grid_width;     p_grid->height = grid_height;      return p_grid; }  void grid_free(grid *p_grid) {     free(p_grid->buffer);     free(p_grid); }  void grid_clear(grid *g) {     // ToDo: Iterate over all elements in the buffer     int elements = sizeof(g->buffer) / sizeof(int);     printf("Elements: %i", elements); }  But for some reason, the amount of elements in my C code is always 2? Does anyone know where I am messing up? If the grid is initialized with 4 and 8, the expected buffer size should be 4, not 2. If it would be initialized with 10 and 24, the expected size would be 30, but it still remains 2 in my C example.


English usage and grammatical correctness

Is it correct to use "what's," "who's," and "why's," in a single sentence?  Example:     She was perplexed at the "what's", "who's" and "why's" of the   situation, so much so that she lost her mental balance.


I have recently learned about LS means (estimated marginal means, predicted marginal means) and I am trying to understand what they could be used for and under what circumstances.   For concreteness, consider a dependent variable $y$ and two categorical independent variables, $x_1$ with two categories and $x_2$ with three categories. One could create dummy variables corresponding to these categories and call them $d_{1,1}, d_{1,2}$ and $d_{2,1}, d_{2,2}, d_{2,3}$. One could then have a linear model (without interaction terms) $$ y = \beta_0 + \beta_{1,2} d_{1,2} + \beta_{2,2} d_{2,2} + \beta_{2,3} d_{2,3} + \varepsilon $$ where $d_{1,1}$ and $d_{2,1}$ are the reference categories. LS means for $x_1$ would be  \begin{align} \bar y_{1,1} &= \beta_0 &+ \frac{1}{3}(\beta_{2,2} + \beta_{2,3}), \\ \bar y_{1,2} &= \beta_0 + \beta_{1,2} &+ \frac{1}{3}(\beta_{2,2} + \beta_{2,3}). \\ \end{align}  Uses I can think of Given $x_1$ and $x_2$, the best (in MSE sense) prediction of $y$ is $\beta_0 + \beta_{1,2} d_{1,2} + \beta_{2,2} d_{2,2} + \beta_{2,3} d_{2,3}$. This is also the expected result after treatment if $x_1$ and/or $x_2$ are interpreted as levels of treatment. Given $x_1$ alone, the best prediction of $y$ is $\frac{1}{n}\sum_{i=1}^n y_i \mathbb{1}_{d_j=1}$ for $x_1$ being in the category $j$. This is also the expected result after treatment if $x_1$ are interpreted as levels of treatment. None of these two coincides with $\bar y_{1,1}$ or $\bar y_{1,2}$. I get that      Least-squares means [are] predictions from a model over a regular grid, averaged over zero or more dimensions    (which is the Wiki excerpt for the  tag), but is what is the practical use of that? So far I can see only one situation in which this could be useful; this is if we know that in population the proportion of observations that have $d_{i,j}=1$ and $d_{k,l}=1$ is the same for all combinations of $i,j,k,l$. Is that the intended use of LS means? Or can it be useful for description or hypothesis testing?


Self-hosted site now producing ERR_CONNECTION_REFUSED

Earlier today I set up a self-hosted website using Ghost. Everything went fine and the site loaded. However, after restarting, I am now encountering ERR_CONNECTION_REFUSED when I visit the website URL. I have ran ghost start, followed by ghost ls. This produces the following:   │ Name   │ Location               │ Version │ Status               │ URL            │ Port │ Process Manager │  │ mysite │ /mnt/raid1/nginx/ghost │ 3.13.3  │ running (production) │ https://mysite │ 2368 │ systemd  I've no idea what I need to do to get my site back online. I've tried restarting ghost and it produces the same running (production).  If I can provide additional details, please ask. I'm a complete novice. Thanks!


Is it ok to have huge page life expectancy?

Recently I have buffer issue for my SSIS package. When i started to monitor metrics in perfmon i noticed the PLE is nearly 500000. Is it ok to have this huge PLE.


In my bachelors thesis I have a problem with the title. The vertical spacing between the lines in the title seems a bit off and looks like this:    It seems to me that the space between the first and second line is normal, whereas the space between line 2 and line 3 is too tight.  Since I am using a template provided by my universtiy and I have no idea why this is happening it is a bit hard for me to figure out a fix, thats why I am asking this question.  The code looks like this:  \thesistitle{Entwicklung und empirische Überprüfung einer Software zur Detektion von Fake-Profilen in Social Discovery Applikationen}  \begin{minipage}[t][2.8cm][t]{\textwidth}% \begin{center} {\thesistitlefontHUGE\sffamily\bfseries\tuinfthesistitle} \end{center} \end{minipage}  \newcommand{\thesistitlefontHUGE}{\fontsize{22}{25}\selectfont}   Thanks for any help!


Why is the square root of a number not plus or minus?

For example, $\sqrt{4}$. I've asked a bunch of people and I get mixed answers all the time, as to whether it is $-2$ and $+2$ or just $+2$.  How about if there's a negative in front of the square root sign, for example, $-\sqrt{4}$? Would that still be plus or minus or just minus?


Error log here:   I am trying to install Ubuntu through WUBI, and am unsuccessful. I believe this is because my c: drive is corrupt, however that does not make sense to me because I have this installed on my e: drive.  Any help would be appreciated.    Okay well due to that "bad" word someone edited my post in a really weird way. I want ubuntu installed on C not E, its giving me an error that E is corrupt(according to the log). And my C harddrive is not corrupt.   But how can I install ubuntu while keeping windows 7 without using Wubi?  "Just install Ubuntu in virtual machine and play around with it" Yeah I tried that after I posted this last night, diden't go that well either. The installer diden't wanna add 64bit and it diden't want to start the machine itself. Gonna take another look at it today!


How do I install the Cisco Anyconnect VPN client?

I installed Cisco AnyConnect for Ubuntu(64) 12.04, but it failed. It can be installed on Ubuntu 10.10(64).  The error log  Installing Cisco AnyConnect VPN Client ... Extracting installation files to /tmp/vpn.teuSIr/vpninst096243274.tgz... Unarchiving installation files to /tmp/vpn.teuSIr... Starting the VPN agent... /opt/cisco/vpn/bin/vpnagentd: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory   When I meet that,  locate libxml2.so.2 /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8   So I create symbol link libxml2.so.2 in /user/lib and after I do:  Installing Cisco AnyConnect VPN Client ... Extracting installation files to /tmp/vpn.5cz4FV/vpninst001442979.tgz... Unarchiving installation files to /tmp/vpn.5cz4FV... Starting the VPN agent... /opt/cisco/vpn/bin/vpnagentd: error while loading shared libraries: libxml2.so.2: wrong ELF class: ELFCLASS64   I ensure that there exist lib32 runtime lib on my device.  How can I fix this?


Best way to save a ordered List to the Database while keeping the ordering

I was wondering if anyone has a good solution to a problem I've encountered numerous times during the last years.  I have a shopping cart and my customer explicitly requests that it's order is significant. So I need to persist the order to the DB.  The obvious way would be to simply insert some OrderField where I would assign the number 0 to N and sort it that way.  But doing so would make reordering harder and I somehow feel that this solution is kinda fragile and will come back at me some day.  (I use C# 3,5 with NHibernate and SQL Server 2005)  Thank you


I am using Ubuntu and I'm quite new to this OS. How can I install PHP 5.6.8?


Eigenvalues of product of two complex matrices

Let $A$ be a $n\times n$ complex matrix. Assume that $A$ is self-adjoint and $B$ denote the inverse of $A+iI$, where $I$ is identity matrix of order $n\times n$.  Then all eigenvalues of $(A-iI)B$ are   purely imaginary real of modulus one of modulus less than one   My attempt: I discarded options $1,4$ by taking $A=O$ $($null matrix$)$. Let '$a$' be an eigenvalue of $A$ then the eigenvalues of $(A-iI)B$ are $(a-i)(a+i)^{-1}$. But I'm not sure about it. Please help me.


I'm going to meet a big scientist. What should I say in the first meeting? I want to impress him and become a friend of him so that I can do common projects with him.   Please help me. It is the most important meeting in my life.  Information about the meeting:  He is going to attend a conference in his country and I'm going to attend the conference, too. I want to go to him, say hello, and speak about his works. I'm a Ph.D. student in physics.


Does a bad grade in one course (with otherwise OK record) affect graduate admissions?

I'm currently an M. Phil student in Math and I failed a course last semester because I was not able to hand in a home work assignment (which was worth 40% of my grade) on time (I was 30 minutes late).   Apart from that I'd say I'm a fairly decent student, I got an upper second class honours bachelors degree, I have a B+ and A's for all my other courses in my current programme and I'm almost finished with my first paper to be published.   I've however been deeply worried about this failure as it would reflect poorly on my transcript if I were to apply to a Ph.D or another Master's programme.   Will my failing grade affect my chances of getting into a competitive programme or greatly lower my chances of getting a scholarship?


`dd` is running at full speed, but I only see 20% disk utilization. Why?

sudo dd if=/dev/sda of=/dev/null bs=1M iflag=direct atopsar -d 5    # in a second terminal top             # in a third terminal  Results from atopsar : 19:18:32  disk           busy read/s KB/read  writ/s KB/writ avque avserv _dsk_ ... 19:16:50  sda             18%  156.5  1024.0     0.0     0.0   5.0   1.15 ms 19:16:55  sda             18%  156.3  1024.0     0.0     0.0   4.9   1.15 ms ...  Why is disk utilization ("busy") reported as much less than 100% ? According to top, the dd process only uses 3% of a CPU or less.  top also provides an overall report of hardware and software interrupt (hi and si) usage of the system's CPU's, which shows as less than 1%.  I have four CPUs (2 cores with 2 threads each). /dev/sda is a SATA HDD.  It is not an SSD, it is not even a hybrid SSHD drive.  It cannot read faster than about 150 megabytes per second :-).  So that part of the results makes sense: 156 read/s * 1024 KB/read = 156 MB/s The kernel version is 5.0.9-200.fc29.x86_64 (Fedora Workstation 29).  The IO scheduler is mq-deadline.  Since kernel version 5.0, Fedora uses the multi-queue block layer.  Because the single queue block layer has been removed :-). I believe the disk utilization figure in atopsar -d and atop is calculated from one of the .  The linked doc mentions "field 10 -- # of milliseconds spent doing I/Os".  There is a more detailed definition as well, although I am not sure that the functions it mentions still exist in the multi-queue block layer.  As far as I can tell, both atopsar -d and atop use  to read this field 10.  (I believe this field is also used by sar -d / iostat -x / mxiostat.py) Additional tests Variant 2: Changing to bs=512k, but keeping iflag=direct. dd if=/dev/sda of=/dev/null bs=512k iflag=direct 19:18:32  disk           busy read/s KB/read  writ/s KB/writ avque avserv _dsk_ ... 19:18:00  sda             35%  314.0   512.0     0.0     0.0   2.1   1.12 ms 19:18:05  sda             35%  313.6   512.0     0.2     4.0   2.1   1.11 ms  Variant 3: Using bs=1M, but removing iflag=direct . dd uses about 10% CPU, and 35% disk. dd if=/dev/sda of=/dev/null bs=1M 19:18:32  disk           busy read/s KB/read  writ/s KB/writ avque avserv _dsk_ ... 19:21:47  sda             35%  242.3   660.2     0.0     0.0   5.4   1.44 ms 19:21:52  sda             31%  232.3   667.8     0.0     0.0   9.5   1.33 ms  How to reproduce these results - essential details Beware of the last test, i.e. running dd without iflag=direct It is a bit of a hog.  I saw it freeze the system (mouse cursor) for ten seconds or longer.  Even when I had swap disabled.  (The test fills your RAM with .  It is filling the inactive LRU list.  I think the turnover evicts inactive cache pages relatively quickly.  At the same time, the disk is busy with sequential reads, so it takes longer when you need to page something in.  How bad this gets probably depends on whether the kernel ends up also turning over the active LRU list, or shrinking it too much.  I.e. how well the current  is working in your case). The exact results of the first test are difficult to reproduce. Sometimes, KB/read shows as 512 instead of 1024.  In this case, the other results look more like the results from bs=512k.  Including that it shows a disk utilization around 35%, instead of around 20%.  My question stands in either case. If you would like to understand this behaviour, it is described here:


What do you call a circular paved protuberance added to a paved street?

I used to own a house located in a modern suburban street with a circular protuberance, a circular paved (tarred) surface appended to the paved street it was part of. Four houses with their gardens were positioned around this circular paved street area. The number of properties in the street was thus increased by three. The point of entry into the circular paved area had the width of the street. This drive-in entry area could have accommodated one property. By serving as the entrance to the circular paved area, it allowed three extra properties to be erected. What is the name of such a circular paved street area?


How would I stop this loop? The loop is necessary, I'm just not sure how I stop it when I need to.     setInterval(function(){         console.log("Loop running"); }, 6000);


How to recover overwritten NTFS partition?

The first 7GB of a 500GB NTFS partiton was accidentally overwritten with another file. Is it possible to recover some of the data in the remaining 493 GB of the NTFS volume? The partition table is intact. The executed command was:  dd if=file of=/dev/sdc1   Thanks  Edit: My question is different. I overwrite first 7GB of NTFS partition. Other question mostly deals with hardware failures or bad sectors.


Confusion in finding left and right hand limits

Let $f:\mathbb R$→$\mathbb R$ defined as   -  $f(x)=0$, if $x$ is irrational or $x=0$ and $f(x)=1/q$, if $x=p/q$, $p\in$$\mathbb Z$ ,$q\in$$\mathbb N$, $(p,q)=1$. What are the points of continuity of $f(x)$? I wanted to use simple left hand and right hand limits criteria but the uncertainity of $\epsilon>0$ (rational as well as rational) is restricting my thoughts to evaluate these.


finding files that match a precise size: a multiple of 4096 bytes

I have several drupal sites running on my local machine with WAMP installed (apache 2.2.17, php 5.3.4, and mysql 5.1.53).  Whenever I try to visit the administrative page, the php process seems to die.  From apache_error.log:  [Fri Nov 09 10:43:26 2012] [notice] Parent: child process exited with status 255 -- Restarting. [Fri Nov 09 10:43:26 2012] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations [Fri Nov 09 10:43:26 2012] [notice] Server built: Oct 24 2010 13:33:15 [Fri Nov 09 10:43:26 2012] [notice] Parent: Created child process 9924 [Fri Nov 09 10:43:26 2012] [notice] Child 9924: Child process is running [Fri Nov 09 10:43:26 2012] [notice] Child 9924: Acquired the start mutex. [Fri Nov 09 10:43:26 2012] [notice] Child 9924: Starting 64 worker threads. [Fri Nov 09 10:43:26 2012] [notice] Child 9924: Starting thread to listen on port 80.   Some research has led me to a php bug report on the .  I would like to see if I have any files whose filesize is a multiple of 4096 bytes, but I don't know how to do that.  I have gitBash installed and can use most of the typical linux tools through that (find, grep, etc), but I'm not familiar enough with linux to figure it out on my own.  Little help?


I realized that cat sth and cat < sth both happen to give same output. Are they the same?


I have a choice currently between the troll bludgeon (12-16 damage, slow) or my silver sword (7 damage, medium speed). Which has a higher average dps?


How can i give a video out as web camera device?

Some apps need a webcam and i would like to feed them a dummy "device" which is just a video on loop. How can one do this?


Is there still a hook_nodeapi in drupal 7 or do i have to try hook_node_load hook for appending some content to node?


Image bleed when using Import Image as Plane

I'm working on an project where I need to import some graphics that I created. I'm able to import them fine using the Import Images as Planes plugin.  They look totally fine when in the Material viewport shading type:    However, as soon as I go to render it out, I get these strange speckles along the sides and top:    I'm using Blender 2.76, hash 477078b and from what I can tell it's the image bleeding over the edge of the plane to the other side, but I have no idea how to fix that.  Does anyone know what's causing this and how I could fix it?


As an engineer, we are taught that the root cause of any problem can be solved if we ask why 5 times.  Sometimes you can figure it out at 4 and sometimes at 6, but it always averages to 5 times. - You can occasionally add a "how" into that root cause analysis, but generally, it is "why".  So I was reading an article on the internet about how black holes form and I started asking why.   Unfortunately, my analysis broke down on the first why.   So why a singularity? -  If the sum of a massive star's core is crushed to become a black hole, why and how does it become a singularity?  How do you crush point-like particles (quarks, electrons, etc) beyond their current size?  Logic dictates that there has to be a size where you cannot make an object anymore dense.     How do you get around Heisenberg's uncertainty principle?  We now know the exact location for all of the matter in the black hole.  We also should know the state of all of the matter in the black hole.  How do you get around Pauli's Exclusion Principle? - Do electrons cease being electrons when you squeeze them hard enough?  If so, at what point is it no longer an electron?  If a BH is a point-like object smaller than an electron, how does matter falling onto it smear over the surface?  Can an object be Planck size and still be a singularity? If so this would solve some of these questions....  Does matter falling onto the surface of a BH cause it to shrink further or does it grow with all of the matter smearing onto it?   If it grows in size, does this mean its gravity gets weaker?  After all, its gravity is inversely proportional to its size isn't it?


If $m > 0$, fix a reduced residue system $r_{1}, r_2, \dotsc, r_{\varphi(m)} $ mod $ m$. Let $x=r_1+r_2+\dotsb+r_{\varphi(m)}$. What is $x$ mod $m$?

Given $m > 0$, fix a reduced residue system (RRS) $r_{1}, r_2,\dotsc , r_{\varphi(m)} $ mod $ m$. Let $x$ denote the sum $r_1 + r_2 + \dotsb + r_{\varphi(m)}$. What is $x$ mod $m$?  The problem is that I'm stuck. So suppose that $m = 2k + 1$. Then the RRS would include an even number of elements since all even numbers are relatively prime to $m$. But I don't know what to do with this information and I also don't know how to solve for if $m$ is even. Any help will be appreciated.


Is it possible in C# to produce Pivot output on column as in Excel?

I'm often faced with exporting data as  CSV. The nature of the outpu is comparable of the PIvotTable feature in excel.   There are sample code to produce simple Pivot in C#. But as you have 2 or more column then things get pretty complicated. I can imagine someone would suggest to use Reporting service or other BI tools but these are no options for our small team.  Could it be that someone had an idea of how to produce pivot outpu of more then 2 columns and one segregated row?  Thanks  B


How to introduce my package for linux users?

Recently I created a package named  for linux and any system that has a CLI. This package solves a boring problem for terminal geeks, it can help you surf the paths and do some actions on them just in terminal and no writing stuff. I need help to introduce this package and collect people to use it.


Not enough reputation - wanting to answer/comment

I've seen a few questions I'd like to comment on or give a different answer, but seeing how I don't have 50 reputation (I've been a lurker for years, finally decided to participate) do I really need to ask a few questions before I can comment/answer other people's stuff? Or am I missing something here?  Sorry if this has been answered before, but with a few search tries I couldn't find any similar stuff, even tried google just for "50 reputation stackoverflow" but that didn't give me anything either.


I have this table in my db  id | major | code_lesson | files   Which the contents look like this  id | major | code_lesson | files 1  | Math  | MAT12       | mat.pdf 2  | Socio | SOC15       | soc.pdf 3  | Math  | MAT12       | mat_pre.pdf 4  | Physic| PHY19       | physci.pdf 5  | Physic| PHY19       | phy2.pdf   I want to display this table like this  major |file1       |file2 Math  |mat.pdf     |math_pre.pdf Socio |soc.pdf     | Physic|physci.pdf  |phy2.pdf   Can you please explain me how to achieve this, since my output result  1 rows :  select major, files as file1, (select files where max(id)) as file2 from db_school   Thanks in advance


How to add repeated Footer to PDF Visualforce?

I have a requirement where I have to add a footer to PDF, This footer will be repeated for all the pages. I am generating this PDF using Visual force PDF renderAS functionality.  I have gone through various solutions in google and Salesforce knowledge articles too, but none of them worked for me.  Can anyone post me a sample code with repeated footer display for all the pages in PDF.  Thanks in Advance.


How many 1080p Monitors i can connect to MacBook pro 13 inch 2019 model with 4 thunderbolt port?

Can anyone please help me to connect my MacBook pro 13 inches with 4 thunderbolts to 3 external monitors ( one U2414H and two P2419H) ?   I tried connecting them using three type-c to HDMI convertors but I can only power any two of them with or without my built-in MacBook pro display.   any help would be appreciated, guys  my mac info:


Place two Lilypond examples side by side

I need help here: I am trying to place two Lilypond musical examples side-by-side. How can I achieve that? Any help is appreciated.   This is the code I am using:  \usepackage{float}   ... \begin{document}   ...     \begin{minipage}         \begin{example}          \centering   \begin{lilypond}[staffsize=12]  Musical Example 1 comes here  \end{lilypond}       \caption{Caption 1}        \label{ex1}   \end{minipage}   \begin{minipage}         \begin{example}          \centering   \begin{lilypond}[staffsize=12]  Musical Example 2 comes here  \end{lilypond}       \caption{Caption 2}        \label{ex2}   \end{minipage} \end{document}     By the way, TexShop with the Lilypond-Book implementation is a life saver!


Is it possible to change the Finder sidebar icons

I know you can change the icons of files, folders, etc, but in the sidebar folders appear the same. Is it possible to give them a custom icon for the sidebar like the Music, Photo's, Movies, etc folders have?


I'm trying to install Ubuntu on my desktop and am getting the message: "no root file system is defined" on the menu for installation type. I can't seem to find what to do next.


I want to multiply the result of Math.Pow by a double (2 decimals). Here is an example:  const number = 2.01*Math.pow(10,9);   Expected result: 2010000000  Actual Result: 2009999999.9999998  What causes this slight deviation? Is there a solution to this problem without rounding the incorrect number?


I installed Ubuntu server 16.04 and installed services I want. And now I want to create my customized ubuntu image from this server.  How could I do it?


Bandwidth: How many nodes can a 15Mbps connection serve?

I have looked for an answer but can't seem to find what I'm looking for so thought I'd ask here.  We have decided to get a connection from a local ISP offering an upload speed of 15Mbps to serve a site we've developed. We expect that the site will have a decent about of traffic after about 5 or 6 months. During the initial 6 months, I don't plan to have any more than maybe 100 to 200 people a day coming to the site.  The site is all image based, so a single pageload may be around 3Mb each.  I'm concerned that maybe 15Mbps may not be able to serve very many nodes simultaneously. Is there a formula to figure this out? Or maybe even a calculator that can address this question?


Where should I ask a question about the principle of image convolution?

I understand the principle of image convolution. Maybe. I think it is this:  You use a small matrix with numbers in it,  Then take a sample of an image with as many pixels as you have numbers in your matrix,  Then do a dot product, then add up all the terms and   then use the result as the new value for the pixel located in the center of your image sample.  Now, my question is this:  Does it make sense to think about an image kernel for convolution whose values actually depend on the image? For example, consider a 'sharpen' kernel:   0  1  0  1  4  1 0  1  0   I want to change the value in the center to be a number between 1 and 5 depending on the brightness of the pixel which is two places to the left.  The reason I ask this is because I've noticed that when I look at an image, I actually look at 'neighborhoods'. not just individual pixels. While bright spots might catch my attention. I recognize parts of an image before it 'clicks'. So if I am using some parts of an image to inform me about the 'neighborhood' that part lives in, I am wondering if this sort of 'dynamic kernel' could produce a matrix that informs us more meaningfully about the image. Obviously I am naive and know very little about image processing but a lot of papers on image convolution get technical very fast and then I'm lost. I am afraid to ask this on stack overflow because there is no specific code I am asking about..  EDIT: The link you posted does not have any mention of the signal processing site. As the question has no specific coding it is therefore not a question for stack overflow. Whether it belongs in math, signal processing or other section is not immediately obvious to a neophyte. I appreciate the recommendation to post on signal processing.


I am still vulnerable to spectre and meltdown

I found  script on GitHub that checks whether you susceptible to spectre and meltdown. Due to this script I am still susceptible. But I read that Ubuntu 16.04 got all patches on 9-th January. I use  Linux 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux   UPD: I've done all apt update/upgrade magic but my kernel version is 4.13.0-26-generic. I've tested it on 2 machines. The update server is set to main server. Does anybody know why I do not see the latest kernel version?  UPD (about duplicate): It's not about official status of fixing this vulnerabilities on Ubuntu. It's about why I cannot install patches


Let $(X,d)$ be a metric space and $ ( x_{n} )$ , $ ( y_{n} )$ convergent sequences in $X$. Is the sequence $( d(x_{n},y_{n}))$ convergent if $X = \mathbb{R}$ with standard topology.   I am having trouble showing that it is convergent because it seems to me like the metric $d$ could be anything. Or does it have to be the absolute value on $\mathbb{R}$?


MWE for Norwegian index with Xindy, anyone?

I would like to make a Norwegian index for a book. Is there a MWE  which can help me?


Can we use the planets and Sun to fling out a craft at relativistic speeds?

E.g. The Voyager crafts took various assists from the planets. Sun being much more massive, wouldn't a spacecraft gain much more energy from such a flyby on the correct trajectory? If so then what fraction of $c$ could we achieve?


How to join values from multiple rows in a single column?

I'm working on a project to find the association rule of items for Market dataset. I have a huge database that contains multi-tables. The output I got from this query   select sales_fact_1997.customer_id, sales_fact_1997.product_id,      product.product_name from sales_fact_1997 , product where sales_fact_1997.product_id = product.product_id group by sales_fact_1997.customer_id , sales_fact_1997.product_id order by sales_fact_1997.customer_id, product.product_name;   is like that:  customer_id     product_id      product_name 13               1466           Hot Dogs 13               937            American Cole Slaw  13               10             Akron City Map ...   Is there a way to get the output in this format:   customer_id     product_id      product_name 13              1466,937,10     Hot Dogs, American Cole Slaw, Akron City Map


Using injective function to prove relation between image of function

Question:  Let $f : A \rightarrow B$ be a function and $C$, $D ⊆ A$ Prove that if $f$ is injective then $f(C) ∩ f(D) \subseteq f(C ∩ D)$.  My attempt:  Let $ y \in f(C) \cap f(D)$ implies $y \in f(C)$  and $y \in f(D)$  which implies $y = f(a)$  for  some $a \in C$  and  $y = f(b)$ for  some  $b\in D$.  I am not sure how to use the fact that $f$ is injective in order to continue.


How do I make the method return type generic?

Consider this example (typical in OOP books):    I have an Animal class, where each Animal can have many friends. And subclasses like Dog, Duck, Mouse etc which add specific behavior like bark(), quack() etc.  Here's the Animal class:  public class Animal {     private Map<String,Animal> friends = new HashMap<>();      public void addFriend(String name, Animal animal){         friends.put(name,animal);     }      public Animal callFriend(String name){         return friends.get(name);     } }   And here's some code snippet with lots of typecasting:  Mouse jerry = new Mouse(); jerry.addFriend("spike", new Dog()); jerry.addFriend("quacker", new Duck());  ((Dog) jerry.callFriend("spike")).bark(); ((Duck) jerry.callFriend("quacker")).quack();   Is there any way I can use generics for the return type to get rid of the typecasting, so that I can say      jerry.callFriend("spike").bark(); jerry.callFriend("quacker").quack();   Here's some initial code with return type conveyed to the method as a parameter that's never used.   public<T extends Animal> T callFriend(String name, T unusedTypeObj){     return (T)friends.get(name);         }   Is there a way to figure out the return type at runtime without the extra parameter using instanceof? Or at least by passing a class of the type instead of a dummy instance. I understand generics are for compile time type-checking, but is there a workaround for this?