I wonder if it is possible to retrieve something similar to regression equation from the trained decision tree or random forest for the regression problem? In particular, I want to know how much each attribute impacts on the response factor (not pair-wise, but in total). It is possible to measure feature importance, but can I then use this feature importance values as the equation, e.g. y = 0.2*x1 + 0.5*x2, where 0.2 and 0.5 are normalised feature importance values.   The duplicated answer is provided for random forest, but says nothing about simpler models like decision trees.

I need an equation for random forest so that I can score fresh data I receive every week, based on beta estimates I got after building model using this ensemble methodology.   Every week I do not want to build random forest model again and then score it using following commands in Python. Because I have build 15 such models and I need to score them every week. So easiest way is to get the equation (betas I already have) and score.  # importing the ensemble libraries from `numpy` import `genfromtxt` from `sklearn.metrics` import `classification_report`  #importing the dataset  dataset = genfromtxt(open('~//win_5050_6oct.csv','r'))[1:]    target = [x[1] for x in dataset] train = [x[2:] for x in dataset] test = genfromtxt(open('~\\win_act_6oct.csv','r'))[1:]  val = [x[2:] for x in test] y_act = [x[1] for x in test] Gst_i=[x[0] for x in test]  #building random forest model  rf = RandomForestClassifier(n_estimators=100) rf.fit(train, target)


while reading NYT's review on the Gladwell's last book I stumbled upon a rather strange passage:     In the weeks I spent listening to Malcolm Gladwell’s podcast, I   learned that lobsters have serotonin, that Elvis Presley suffered from   parapraxis and that Mr. Gladwell adheres to a firm life rule that he   drink only five liquids: water, tea, red wine, espresso and milk.   Why the author uses "he drink" here? Is it a legal thing to do? Are there cases when you should use it?

Why is this sentence correct?     She suggested that he go to the cinema.   I would definitely use goes instead of go.


Given is the forgetful functor: $U: Grp \rightarrow Set$. I've already seen that we can construct a left adjoint $F: Set \rightarrow Grp$ to this functor by introducing the free functor, which associates to any set $X \in Set$ the free group $F(X)$.  Now I want to check if there is a right adjoint to our forgetful functor, let's say it is the functor $R: Set \rightarrow Grp$. If we had a right adjoint, we'd have a bijection between hom-sets, namely $Hom_{Grp}(R(X), G) \simeq Hom_{Set}(X, U(G))$ for any set $X \in Set$ and $G \in Grp$.  I guess there is no such a right adjoint to the forgetful functor $U$ but I don't know how to show it. Can anybody help me, please? Thank you very much!

The forgetful functor $\mathsf{Groups} \to \mathsf{Sets}$ admits a left adjoint, namely, "forming the free group" functor.  I was wondering if this has a left adjoint.  This seems unlikely, but I don't have a proof.  Is there a functor $\mathsf{Sets} \to \mathsf{Groups}$ that admits a left adjoint at all?


My WiFi is not working after installing Ubuntu 18.04 (my LAN is working). For two days, I have followed instructions in different forums, however, none of them worked for me. For example . The secure boot disable (checked by mokutil --sb-state. Here the network adapter information    *-network UNCLAIMED        description: Network controller        product: Intel Corporation        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:3e:00.0        version: 1a        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix cap_list        configuration: latency=0        resources: memory:dc200000-dc203fff   Also, the output of lspci just in case:   3e:00.0 Network controller: Intel Corporation Device 2723 (rev 1a)   I would appreciate any help.

My wifi card is an Intel® Wireless-AX200 (802.11/a/b/g/n/ac/ax), Bluetooth® 5, and bluetooth is working. I've tried following various guides, however these drivers are apparently yet to make it into the kernel.  Their product brief states linux is supported:    And yet their driver page has no listing for them:    sudo lshw -c network => mark@m-blade-2019:~$ sudo lshw -c network   *-network UNCLAIMED               description: Network controller        product: Intel Corporation        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:02:00.0        version: 1a        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix cap_list        configuration: latency=0        resources: memory:cf300000-cf303fff   *-network        description: Ethernet interface        physical id: 2        logical name: enx0050b6b47e72        serial: 00:50:b6:b4:7e:72        capabilities: ethernet physical        configuration: broadcast=yes driver=cdc_ncm driverversion=22-Aug-2005 firmware=CDC NCM ip=192.168.1.17 link=yes multicast=yes   I'm running kernel version Linux 5.0.0-13-generic, any help is greatly appreciated.  EDIT: results of lspci -nnk | grep 00280 -A3:  mark@m-blade-2019:~$ lspci -nnk | grep 0280 -A3 02:00.0 Network controller [0280]: Intel Corporation Device [8086:2723] (rev 1a)     Subsystem: Intel Corporation Device [8086:0084]     Kernel modules: wl, iwlwifi 03:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981 [144d:a808] mark@m-blade-2019:~$


I use Ubuntu through a virtual machine (VM Workstation Player) and sometimes download packages through the terminal. Some of the packages I download are not the latest version. For example, I downloaded Eclipse IDE and Wireshark and some versions were downloaded. Even when I try to update those packages, it tells me that the packages are up to date.  Why can't I download the latest versions and how can I fix this?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


When $m,n\in \mathbb{Z} $ and $a,b \in \mathbb{Z}$, show that there exist integers $a$ and $b$, so $am + bn = 1$ which also means $gcd(m,n) = 1$.  I tried proof through contradiction but I didn't succeed. Any suggestion would be helpful.

Did not find this from this website...  If $$ \gcd(a,b)=1,$$ then there exists integers $x$ and $y$ such that $$xa+yb=1.$$  Now, the tip is to use particular corollary, that states:  The class $[m]_{n}$ generates $\mathbb{Z}/n\mathbb{Z}\Leftrightarrow \gcd(m,n)=1.$  I am totally lost with the corollary.  Let's assume that $\gcd(m,n)=1$. Then, $[m]_{n}$ generates $\mathbb{Z}/n\mathbb{Z}$.  OK! Then what?  There is also follow up, where I have to prove the converse. I am familiar with Bezout's lemma.


In the following sentence how many persons are mentioned, 3 or 4? The Sentence is:  "They invited me to dinner, and when I arrived at their house, there stood my girlfriend's father, and her mother, Katherine the school principal, and Tommy."   First interpretation (4 persons): The two and makes that this sentence talks about 2 pairs of persons (4 persons in total). 1- my girlfriend's father and 2- her mother 3- Katherine the school principal and 4- Tommy This is, separating first couple in father and mother and the other couple Katherine and Tommy. Second interpretation (3 persons): If I follow the rules of how/when to use commas, I find 3 persons here. 1- my girlfriend's father and 2- her mother, Katherine the school principal and 3- Tommy In this case Katherine the school principal that appears after the comma is an additional information about the second person that is her mother  UPDATE: The main rules of commas used in this sentence suggests to be these 3 persons.  Use a comma before any coordinating conjunction (and, but, for, or, nor, so, yet) that links two independent clauses  Use a comma after a dependent clause that starts a sentence  Use commas to offset appositives from the rest of the sentence   Appositives act as synonyms for a juxtaposed word or phrase. For example, "While running, I saw a mallard, a kind of duck." "A kind of duck" is the appositive, which gives more information about "a mallard." If the appositive occurs in the middle of the sentence, both sides of the phrase need a comma, as in:  A mallard, a kind of duck, attacked me.  References:

Just me, a schizophrenic and a petty arsonist.   How many people are there in the above sentence? Is it ambiguous?


Try as I might, I can't figure out why this server randomly timestamps syslog entries with bad time.  Here's a 5-minute stretch of syslog from a few minutes ago.  You'll notice there are two places where the time is logged wrong.  Once where it logs it as January 10th (off by ~4 days) and another where it logs it as November 16th (either ~2 months behind or ~10 months ahead--can't tell since syslog doesn't log the year):  Jan 14 18:25:01 tetrad CRON[15482]: (root) CMD (zfs-auto-snapshot -q -g --label=frequent --keep=12  //) Jan 14 18:25:01 tetrad CRON[15483]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:25:03 tetrad zfs-auto-snap: @zfs-auto-snap_frequent-2015-01-15-0225, 1 created, 1 destroyed, 0 warnings. Jan 14 18:26:54 tetrad puppet-master[31196]: message repeated 2 times: [ Could not find default node or by name with 'kvm4.virt.pne.local, kvm4.virt.pne, kvm4.virt, kvm4' on node kvm4.virt.pne.local] >> Jan 10 00:00:01 tetrad CRON[18094]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:27:01 tetrad CRON[18094]: (root) CMD (/usr/local/bin/lockrun --lockfile=/root/updatecw.lock -- /root/sqlworkbench/updatecw.sh > /dev/null) Jan 14 18:28:02 tetrad fetchmail[7149]: message repeated 51 times: [ Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)] >> Nov 16 23:45:01 tetrad CRON[20554]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:29:04 tetrad fetchmail[7149]: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!) Jan 14 18:29:58 tetrad kernel: [7713426.484590] ip_set: protocol 6   I have verified the timezone settings are correct on the box, and I've completely stopped rsyslogd and started it again.  I can even leave a loop running on the box for hours without an error:  while true; do date; sleep 1; done   ...so it doesn't appear to be an issue with the clock.  Reviewing 10,000+ lines of 'date' output in the console sucks!  ;)  I should point out that I've only ever seen it when logging a CRON action.  The cron jobs are not long running, and I've even tested by commenting out all the jobs in cron for a day.  No false time entries.  Any thoughts?

Have you ever seen wrong order in /var/log/syslog ? I think that it causes only crontab.  Jun 28 22:20:01 alex CRON[2327]: (root) CMD (something > /dev/null) Jun 28 22:21:01 alex CRON[2700]: (root) CMD (something > /dev/null) Jun 21 03:49:01 alex CRON[2753]: (root) CMD (something > /dev/null) Jun 28 22:23:01 alex CRON[2754]: (root) CMD (something > /dev/null) Jun 27 05:08:01 alex CRON[2813]: (root) CMD (something > /dev/null) Jun 26 00:19:01 alex CRON[2816]: (root) CMD (something > /dev/null) Jun 28 22:25:01 alex CRON[2816]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Jun 28 22:25:01 alex CRON[2821]: (root) CMD (something > /dev/null) Jun 28 22:27:01 alex CRON[3225]: (root) CMD (something > /dev/null) Jun 28 22:28:01 alex CRON[3240]: (root) CMD (something > /dev/null) Jun 28 22:30:01 alex CRON[3290]: (root) CMD (something > /dev/null) Jun 26 12:03:01 alex CRON[3291]: message repeated 2 times: [ (root) CMD (something > /dev/null)] Jun 28 22:30:01 alex CRON[3291]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Jun 28 22:31:01 alex CRON[3659]: (root) CMD (something > /dev/null) Jun 28 22:32:01 alex CRON[3754]: (root) CMD (something > /dev/null) Jun 16 06:41:01 alex CRON[3846]: (root) CMD (something > /dev/null) Jun 28 22:35:58 alex cron[909]: (CRON) INFO (pidfile fd = 3) Jun 28 22:35:58 alex cron[944]: (CRON) STARTUP (fork ok) Jun 28 22:35:58 alex cron[944]: (CRON) INFO (Running @reboot jobs) Jun 28 22:36:01 alex CRON[1428]: (root) CMD (something > /dev/null) Jun 28 22:37:01 alex CRON[3050]: (root) CMD (something > /dev/null) Jun 28 22:38:01 alex CRON[3082]: (root) CMD (something > /dev/null) Jun 28 22:39:01 alex CRON[3114]: (root) CMD (something > /dev/null)   As you can see, there is bad time order between lines. It is just crontab error, or there is some problem with system clock, or something?  I am running the latest Ubuntu 14.04 kernel:  Linux alex 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


I would like a quick breakdown of the types of MySQL joins. I know of these, the rest I am not sure what they mean.   comma separated (what exactly is this short for?): SELECT * FROM a, b WHERE b.id = a.beeId AND ... show information from a, even if there are no matches in b: SELECT * FROM a LEFT OUTER JOIN b ON b.id = a.beeId WHERE ...   I have seen other joins, but want to know what makes them different, what is INNER/OUTER, does adding LEFT change things.  I already know how joins work, I just want to know if there are other types of joins, or if they are just different ways to get the same result.

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


I want to edit my shapefile by adding a new column "ID" and assign a value to it. I am trying to achieve this using Java Geotools. Here is the snippet code:   File inFile = new File("/abc".shp");          System.out.println("********* GEOTOOLS *************");          System.out.println("********* READ *************");         Map<String, Object> map = new HashMap<>();         map.put("url", inFile.toURI().toURL());          DataStore dataStore = DataStoreFinder.getDataStore(map);         String typeName = dataStore.getTypeNames()[0];          FeatureSource<SimpleFeatureType, SimpleFeature> source =             dataStore.getFeatureSource(typeName);         Filter filter = Filter.INCLUDE; // ECQL.toFilter("BBOX(THE_GEOM, 10,20,30,40)")      FeatureCollection<SimpleFeatureType, SimpleFeature> collection = source.getFeatures(filter);     try (FeatureIterator<SimpleFeature> features = collection.features()) {         while (features.hasNext()) {             SimpleFeature feature = features.next();              // Adding new column attribute ID              feature.setAttribute("id", "ADSAS2132312");              System.out.print(feature.getID());             System.out.print(": ");             System.out.println(feature.getDefaultGeometryProperty().getValue());         }     }   // Write the features to the shapefile  System.out.println("********* WRITE *************");  Transaction transaction = new DefaultTransaction("create");     // String typeName = newDataStore.getTypeNames()[0];     SimpleFeatureSource featureSource = newDataStore.getFeatureSource(typeName);      if (featureSource instanceof SimpleFeatureStore) {         SimpleFeatureStore featureStore = (SimpleFeatureStore) featureSource;          featureStore.setTransaction(transaction);         try {             featureStore.addFeatures(collection);             transaction.commit();          } catch (Exception problem) {             problem.printStackTrace();             transaction.rollback();          } finally {             transaction.close();         }         System.exit(0); // success!     } else {         System.out.println(typeName + " does not support read/write access");         System.exit(1);     } }   I am not able to write the ID column into shapefile. The reading works fine, but not the write part. I don't know much of Java, so its hard for me to figure out. I followed this reference:

I have a shapefile with an attribute I want to compute programmatically in Java for each feature. I have found a lot of documentation on how to read and create shapefiles with geotools ( ), but no documentation on how to modify an attribute.  So far, I am loading the shapefile data into a FeatureCollection, and modifying each feature attribute with:  myFeature.setAttribute("ATTRIBUTE", myAttributeValue);   but these modifications are not stored into the shapefile (only in memory I guess).  Is there a way to make these modification persistent into the shapefile? Maybe there is a more standard and simple way to update feature attribute with geotools. The only thing I would like to avoid is to re-create a new shapefile.


I want to have TB use the same set of messages, folders, calendar from both ubuntu 14.04 and W7.  thread seems to answer my question, but it pertains to ubuntu 11.10. My reputation isn't sufficient to add to that discussion.  I don't like to assume that what worked for 11 (or 10 or older) will work with a new version of ubuntu -- is that overly cautious?  I have everything backed up, but what risks are there editing the profiles.ini?

Hi I'm curious if it's possible to use the same Thunderbird profile, stored on a NAS, form an Ubuntu based PC as well as from a Windows based one. Anybody out there with some experience?  Since one month, I now use a setup, where I have stored the Thunderbird Profile on my NAS and use it from different PC's under Windows. I would like to keep it like this, while switching one of the PC's to Ubuntu 11.10 (just done and it runs quite well) and use the same profile.


I want to know how to add an image logo as website title. for example if we open our gmail, it shows gmail logo in the title bar how to achieve this..  <title>  Hello user  </title>

What is currently the best way to get a favicon to display in all browsers that currently support it?  Please include:   Which image formats are supported by which browsers. Which lines are needed in what places for the various browsers.


Barron's Grammar Workbook (which claims to be written for those wishing to take "the SAT, ACT, and more") says to use a possessive pronoun before a gerund, and gives the following example:  Her asking the question shows that she is alert.  Then it goes on to give two more examples, the second of which is said to contain not a gerund but a participle:  I hope you don't mind my intruding on your conversation.  I hope you don't mind me intruding on your conversation.  The first version conforms to the rule, and I bet the 2nd is fine in speech. But from a pedantic perspective (which the SAT and the GMAT presumably adhere to), is the second version correct? The present participle following a noun (phrase) functions like a relative clause, so what is grammatically being minded in the second version is not the action of intrusion, but the individual referred to by the pronoun "me."

I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions:     He does not want to destroy his parents' dream of him achieving a Cambridge degree.   I am especially interested in the: dream of him achieving a Cambridge degree.  I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?


I'm wondering if my friend who is a British citizen can be my sponsor for the trip. I'm a working doctor and I live with my family members my two sisters and the their siblings who are 3.both my sisters are divorced and I'm supporting my family financially. I have a regular job but I'm not able to save for the trip. I managed to pay the fees  for plab2 and the plane ticket. My friend will provide the accommodation for me and he will take care of my all dialy expenses for the intended period which is 30 days. We are close friend. We went to the same university and spent most of the time together  and I  have visited and stayed with him regulary in our home country. We have shared memories together and pictures. Do I have any chance of being granted the visa

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


I know that by integrating the surface area of a sphere we can get the formula of its volume.  Similarly, I wanted to find about other ways of doing this. So, I thought what if we divide the sphere into infinite circles or sections of the sphere and the add their areas for the volume and their perimeter for the surface area.  Problem is I am not able to do this. I tried but didn't work for me. I just knew the above logic but didn't know how to implement it.  So, I would like you to guide me on how I can do this and not just give a direct solution. Also, I would like to know about other ways for getting these results.   P.S.- if you are just giving me the answer can you explain it a bit. My calculus is not very strong. I know basic rules but I don't know how to set up the equations and I think that's where I am weak. How to implement this kind of logic.

Why does the integral of the surface area of a sphere equal it's volume?   $$\int{4\pi r^2 \ \mathrm{d}r =\frac{4}{3}\pi r^3}$$  I don't quite understand why the relationship between surface area and volume is this way. Is this true for any other shapes?


The functionality of my program is not working properly. It is not doing what I need it to do. I don't have any errors in the code but the app isn't doing what I want it to do.  **UPDATE: Okay thank you very much for the help. the button displays a value for TextView ce. However, the app does not seem to run my ifstatement to get a new value of CE1 which would be = 4*credit_1. The app is taking the initialized value of CE1 which is = 0, and converting that to a string CE1s. Hence dispalying 0.0 in TextView ce. Why is the app not taking my ifstatement if(grade_1.equals("A")) into consideration?  Here is the MainActivity.java:  public class MainActivity extends ActionBarActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     final EditText course1 = (EditText)findViewById(R.id.Course1);     EditText credit1 = (EditText)findViewById(R.id.editText7);     final EditText grade1 = (EditText)findViewById(R.id.editText13);     final Button b = (Button)findViewById(R.id.button1);     final TextView ce = (TextView)findViewById(R.id.textView5);     String grade_1 = grade1.getText().toString();     String text = credit1.getText().toString();     if (!TextUtils.isEmpty(text)) {         // call parseDouble in here         double credit_1 = Double.parseDouble(text);          double CE1=0;         if (grade_1 =="A")             CE1 = 4*credit_1;         final String CE1s = Double.toString(CE1);          b.setOnClickListener(new OnClickListener(){             public void onClick(View v){             ce.setText(CE1s);             }            });     }      }   @Override public boolean onCreateOptionsMenu(Menu menu) {      // Inflate the menu; this adds items to the action bar if it is present.     getMenuInflater().inflate(R.menu.main, menu);     return true; }  @Override public boolean onOptionsItemSelected(MenuItem item) {     // Handle action bar item clicks here. The action bar will     // automatically handle clicks on the Home/Up button, so long     // as you specify a parent activity in AndroidManifest.xml.     int id = item.getItemId();     if (id == R.id.action_settings) {         return true;     }     return super.onOptionsItemSelected(item); }  /**  * A placeholder fragment containing a simple view.  */ public static class PlaceholderFragment extends Fragment {      public PlaceholderFragment() {     }       } }   Here is the AndroidManifest.xml  <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.rutgersgpacalculator"     android:versionCode="1"     android:versionName="1.0" >      <uses-sdk         android:minSdkVersion="8"         android:targetSdkVersion="19" />      <application         android:allowBackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/AppTheme" >         <activity             android:name="com.example.rutgersgpacalculator.MainActivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.MAIN" />                  <category android:name="android.intent.category.LAUNCHER" />             </intent-filter>         </activity>     </application>  </manifest>

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


I am trying to implement a convex decomposition and I need to find the convex vertex on a mesh. Is there a algorithm that I can use to find the convex vertex on a mesh.

There are three phases of collision detection.    Broadphase: It loops between all objecs that can interact, false positives are allowed, if it would speed up the loop. Narrowphase: Determines whether they collide, and sometimes, how, no false positives Resolution: Resolves the collision.   The question I'm asking is about the narrowphase. There are multiple algorithms, differing in complexity and accuracy.   Hitbox intersection: This is an a-posteriori algorithm, that has the lowest complexity, but also isn't too accurate, Color intersection: Hitbox intersection for each pixel, a-posteriori, pixel-perfect, not accuratee in regards to time, higher complexity Separating axis theorem: This is used more often, accurate for triangles, however, a-posteriori, as it can't find the edge, when taking last frame in account, it's more stable Linear raycasting: A-priori algorithm, useful for semi-realistic-looking physics, finds the intersection point, even more accurate than SAT, but with more complexity Spline interpolation: A-priori, even more accurate than linear rays, even more coplexity.    There are probably many more that I've forgot about. The question is, in when is it better to use SAT, when rays, when splines, and whether there is anything better.


I'm citing a technical report that is made up of a number of large chapters, each with their own authors. Each chapter states something like this:  Cite as: Sub-author 1, sub-author 2. (year). Chapter title. In: editor 1, editor 2 (eds): Report title.  Is there a proper way to cite something in this way using BibTeX? I haven't found anything useful through searching. Should I just cite the overall work, or should I take details from both to come up with a more usual citation entry that doesn't include "In:"?

I don't know how to cite a chapter written by an author who is not the editor or author of the book.   How can I get the following citation?     Grandstrand, O. (2004), 'Innovation and Intellectual Property Rights', in J. Fagerberg, D.C. Mowery and R.R. Nelson (Eds.), Oxford Handbook of Innovation. Oxford University Press: Oxford.


Consider two fair $k$-sided dice with the numbers 1 through $k$ on their faces, obtaining values $X_1$ and $X_2$. What is $\mathbb{E}[\max(X_1, X_2)]$ and what is $\mathbb{E}[\min(X_1, X_2)]$.  And the answer to this question as posted in the link above is   HINT: $\min(x_1,x_2) + \max(x_1,x_2) = x_1 + x_2$, so it is enough to evaluate either expected value. Also $\max(x_1,x_2) - \min(x_1,x_2) = \vert x_2-x_1\vert$. Therefore, finding $\mathbb{E}(\vert X_2-X1 \vert)$ allows to determine expectations needed:  $$ \begin{eqnarray}    \mathbb{E}\left( \vert X_2- X_1\vert \right) &=& \sum_{n_1=1}^k \sum_{n_2=1}^k \mathbb{P}(X_1=n_1) \mathbb{P}(X_2=n_2) \vert n_2 - n_1 \vert \\ &=&     2 \sum_{n_2=1}^k \sum_{n_1=1}^{n_2-1} \mathbb{P}(X_1=n_1) \mathbb{P}(X_2=n_2) (n_2 - n_1 ) \\ &=&     2 \sum_{n_2=1}^k \sum_{n_1=1}^{n_2-1} \mathbb{P}(X_1=n_1) \mathbb{P}(X_2=n_2-n_1) n_1   \end{eqnarray} $$  I don't understand how step three in the above answer is derived


I'm trying to obtain a white background for a render using the workbench render engine. I have set the "Viewport Display" inside World settings to white but the background renders light grey. What is the correct procedure?

I am using the 2D Animation preset and so far every new scene I made had the same bright white background. Now my two latest scenes (created with 'copy settings') have a light grey background even though they are set to white. There's also no difference in surface, nodes or strength.  There are apparently exist different background shades with an off-white color but selecting the white one doesn't help either


If I wanted to refer to the magnitude (brightness) of Sirius, would "Sirius's magnitude" be a (the?) correct form for placing the ending 's' and apostrophe? I always get confused about possessive forms of words already ending in an 's.'

Many questions already ask about this topic ( , , etc.) and their answers vary, but they always give exceptions to the apostrophe-s rule, for example:      6.24 The general rule for the possessive of nouns covers most proper nouns, including most names ending in sibilants."   Examples they give include Kansas’s, Ross’s land, and Jones’s reputation. Exceptions include Jesus’  and Moses’.  Which names does this apply to?  Is the Aeneas’  form correct, or is it Aeneas’s instead?


I use a HP Pavilion ab253cl laptop running windows 10 home. I am kind of addicted to the laptop and couldn't make productive use of my time. most of the time, i kill my time doiong random stuff on laptop. Is there a way by which i can lock this laptop for a certain time, so that even i couldn't unlock it until the time lapses?? I tried searching for a solution, but couldn't find any. Please help me. thanks in advance.

I want to limit some users daily computer usage on the family PC. Currently we only have one user account set up on it, but I could create new ones. So Is there a way to set daily time limits for user on a windows 7 PC? Ideally I would like to set up it up for 2 hours on weekdays and 3 hours on weekends.


I need to print the IPA symbol for the labiodental flap ⱱ (Unicode U+2C71) and it is not available in the tipa package for phonetic symbols. Is there a way I can use the Unicode hex in the input so I get the symbol as the output?

I need the ⱱ character (prefereably with the advanced diacritic underneath it) for a phonetics paper, but the tipa package doesn't seem to contain it.  I have at least one font with this character on my computer (Charis SIL).  How do I get the character into my LaTeX document?


1)   echo *  Only displays file names having [a-z, A-Z] but does not display files starting with .  For example .bashrc is not covered with shell glob *  2)  echo .* gives the expected output.    In first case, why does the shell glob does not include file names with dot?

I was surprised recently when I did something like mv ./* ../somedirectory and found that files like .gitignore were not moved.  I do most of my work in zsh on OS X, and this surprise bit me in bash on CentOS.  I tried bash on OS X and found the same behavior: * does not match dot files.  This seems very undesirable to me, but apparently it's the bash default.  (It may be the zsh default too for all I remember, but I may have changed it years ago in my .zshrc and forgotten it ever worked differently.)  How can I configure bash to behave as I expected: for * to match all files, and not ignore dot files.  In case this is at all unclear, here's how to reproduce it    cd /tmp mkdir {t,d}est touch test/{.,}{1,2,3,4,5,6,7} ls -hal test mv test/* dest ls -hal test     # notice dot files are still there ls -hal dest     # notice only some files were mv'ed


I'm using Drupal 7.23 on my test site and since a couple of days the status report page is completely blank (no theme, no menu, nothing). No info shown at all. Other (report) pages are shown without noticeable issues.  Does anybody have an idea what could cause this? I have a almost similar 7.23 life site that shows this /admin/reports/status report perfectly.   Any log-file to check?

How can I see the error messages when the site I am working on gets a white screen?


I have created a neural network that can identify watermarks and can classify them to which company do they belong. Now I created a script that will identify watermark from a folder and move them to different folders where they belong. But this script is quite slow and consumes too much RAM. What should i do to improvise it?    from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import argparse import imutils import pickle import cv2 import os import time  import glob import shutil import csv d = glob.glob("colabData/Krishna/*.jpg") print("Total Number of Images are :" ,len(d))  count = 0 final_data = [] def convertToRGB(img):      return cv2.cvtColor(img, cv2.COLOR_BGR2RGB)  for images in d:     count += 1     test1 = cv2.imread(images)     sublist = []     output = test1.copy()     image = cv2.resize(test1, (96, 96))     image = image.astype("float") / 255.0     image = img_to_array(image)     image = np.expand_dims(image, axis=0)      model = load_model("colabData/pokedex.model")     lb = pickle.loads(open("colabData/lb.pickle", "rb").read())     proba = model.predict(image)     idx = np.argmax(proba)     label = lb.classes_[idx]     if not os.path.exists(label):         os.makedirs(label)     sublist.append(label)     if label=="Commonfloor":         shutil.move(images, "colabData/commonfloorr")         print("WaterMark is Available", images, label)     elif label=="Housing":         shutil.move(images, "colabData/housingg")         print("WaterMark is Available", images, label)     elif label=="Sulekha":         shutil.move(images, "colabData/sulekhaa")         print("WaterMark is Available", images, label)     elif label=="Magicbricks":         shutil.move(images, "colabData/magicbrickss")         print("WaterMark is Available",images, label)     elif label=="Property_Wala":         shutil.move(images, "colabData/propertywalaa")         print("WaterMark is Available", images, label)     elif label=="Non-Watermark":         shutil.move(images, "colabData/nonwatermarkk")         print("WaterMark is Not Available", images, label)     elif label=="FloorPlans":         shutil.move(images, "colabData/floorplann")         print("WaterMark is Not Available", images, label)     elif label=="MasterPlan":         shutil.move(images, "colabData/masterplann")         print("WaterMark is Not Available", images, label)     else:         print("Unable to classify")     print(count)     final_data.append(sublist)  filename = "data.csv" with open("colabData/"+filename,'w') as csvfile:     csvfile = csv.writer(csvfile, delimiter=',')     csvfile.writerow("")     for i in range(0, len( final_data )):         csvfile.writerow( final_data[i]  )

I have created a neural network that can identify watermarks and can classify them to which company do they belong. Now I created a script that will identify watermark from a folder and move them to different folders where they belong. But this script is quite slow and consumes too much RAM. What should I do to improve it?  from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import argparse import imutils import pickle import cv2 import os import time  import glob import shutil import csv d = glob.glob("colabData/Krishna/*.jpg") print("Total Number of Images are :" ,len(d))  count = 0 final_data = [] def convertToRGB(img):      return cv2.cvtColor(img, cv2.COLOR_BGR2RGB)  for images in d:     count += 1     test1 = cv2.imread(images)     sublist = []     output = test1.copy()     image = cv2.resize(test1, (96, 96))     image = image.astype("float") / 255.0     image = img_to_array(image)     image = np.expand_dims(image, axis=0)      model = load_model("colabData/pokedex.model")     lb = pickle.loads(open("colabData/lb.pickle", "rb").read())     proba = model.predict(image)     idx = np.argmax(proba)     label = lb.classes_[idx]     if not os.path.exists(label):         os.makedirs(label)     sublist.append(label)     if label=="Commonfloor":         shutil.move(images, "colabData/commonfloorr")         print("WaterMark is Available", images, label)     elif label=="Housing":         shutil.move(images, "colabData/housingg")         print("WaterMark is Available", images, label)     elif label=="Sulekha":         shutil.move(images, "colabData/sulekhaa")         print("WaterMark is Available", images, label)     elif label=="Magicbricks":         shutil.move(images, "colabData/magicbrickss")         print("WaterMark is Available",images, label)     elif label=="Property_Wala":         shutil.move(images, "colabData/propertywalaa")         print("WaterMark is Available", images, label)     elif label=="Non-Watermark":         shutil.move(images, "colabData/nonwatermarkk")         print("WaterMark is Not Available", images, label)     elif label=="FloorPlans":         shutil.move(images, "colabData/floorplann")         print("WaterMark is Not Available", images, label)     elif label=="MasterPlan":         shutil.move(images, "colabData/masterplann")         print("WaterMark is Not Available", images, label)     else:         print("Unable to classify")     print(count)     final_data.append(sublist)  filename = "data.csv" with open("colabData/"+filename,'w') as csvfile:     csvfile = csv.writer(csvfile, delimiter=',')     csvfile.writerow("")     for i in range(0, len( final_data )):         csvfile.writerow( final_data[i]  )


Last night I was watching the movie in which I heard this phrase     "I am home"   Actually, I am looking for explanations. How can it be possible to say, I am home?   Is it the same like      I am at home   Please explain it to me in details.

What's the difference between these two sentences? And which one's grammatically correct?


Having problem with uninstalling a program, what I usually do is delet all its files and folders and then manually clean the registry for remains, and then use ccleaner to rectify remaining obselete registry keys. Until today. This time I had a program that won't uninstall. So I did what I usually do. This time the particular program had left behind a background service. I have deleted the registry already. So now this service cannot be started or stopped or managed. It is required to reinstall the program. How to delete this service?

I would like to do this because I have a half installed service because of installation failure which is just there, non-functioning.  How can I delete the Windows service using the command line?


I am currently examining the acyl transfer catalysis activity of several enzymes that I was told are all lipases. Through reading a couple of papers including these enzymes I found out that all of them are hydrolases with promiscuous acyltransfer activity. Specifically one of the enzymes is a carboxyl-esterase, one is an aryl-esterase and the third one is an acyl-esterase. I know that esterases are part of hydrolases and lipases are basically fat-splitting esterases. Lipases also catalyze transesterification = acyl transfer, just like all of the enzymes I am working with do. I just don't understand the classification of all these enzymes as lipases. Can someone explain the connection to me?

Sometimes I get confused about why this or that enzyme was named in this or that particular way.  1) TCA: Why was not isocitrate dehydrogenase named isocitrate decarboxylase?  Wouldn't it have been at least as accurate to name the enzyme in question isocitrate decarboxylase as to call it isocitrate dehydrogenase? It does remove the -COOH, doesn't it?  2) Glycolysis: PEP (phosphoenolpyruvate) carboxykinase. Why isn't it oxaloacetate carboxykinase? Isn't it agreed upon that enzyme substrate be used in the name of enzyme?  3) Why name enzymes by reverse reactions (especially when the reaction is irreversible)? Pyruvatekinase makes pyruvate from PEP. Why not use another name, PEP phosphatase, for example?  I understand that this is the way the enzymes were named and I just have to accept it. But I would also like to understand the logic behind these names.


Like for example, on Stack Overflow I have around 85 rep, but when I go to a new network site, like User Experience, my rep is reset to one, why is this?

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


I am trying to debug a complex CMD batch script. Is there a way to run it one statement at a time, like how some IDEs allow you to run your program step-by-step?  In addition, I would like to log everything (each statement and its result after evaluation) to a log file.

Is there a way to step through a .bat script? The thing is, I have a build script , which calls a lot of other scripts, and I would like to see what is the order in which they are called, so that I may know where exactly I have to go about and add my modifications.


I'm not sure but before I purchase  IP anyast service I really need to know What is IP Anycast actually and how does this work? Can anyone explain in simple sense?

I'd never heard of anycast until a few seconds ago when I read "".  The wikipedia "" article on it is quite formal and doesn't really evoke a mental picture of how it would be used.  Can someone explain in a few informal sentences what "anycast" is, how you configure it (just in a general sense), and what its benefits are (what does it make easier)?


I get the following message:   An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: 'E:Type 'b-src' is not known on line 2 in source list /etc/apt/sources.list.d/cdemu-ppa-precise.list'

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I there a way to split single line into multiple lines with 3 columns. New line characters are missing at the end of all the lines in the file.  I tried using awk, but it is splitting each column as one row instead of 3 columns in each row.  awk '{ gsub(",", "\n") } 6' filename   where filename's content looks like:  A,B,C,D,E,F,G,H,I,J,K,L,M,N,O   Desired output has 3 columns in each line:  A,B,C D,E,F G,H,I J,K,L M,N,O

I have a text file:  a   aa  aaa     b   bb  bbb     c   cc  ccc d   dd  ddd     e   ee  eee     f   ff  fff g   gg  ggg     h   hh  hhh     i   ii  iii j   jj  jjj   How can I process it and get a 2 column file like this:  a   aa aaa b bb  bbb c   cc ccc d dd  ddd e   ee eee f ff  fff g   gg ggg h hh  hhh i   ii iii j jj  jjj   Or a three column file like this:  a   aa  aaa b   bb  bbb c   cc  ccc d   dd  ddd e   ee  eee f   ff  fff g   gg  ggg h   hh  hhh i   ii  iii j   jj  jj   I prefer to get awk solution but other solutions are welcomed too.


There are black lines on my Nikon D3100 and I'm wondering if it is a problem with the lens or with the body itself.

In my question's preview, the attached image looks rotated. So, assuming you are able to see it in the real orientation, can anyone determine what is that dust flake type thing on the top, slightly towards the left?   One looks like a dust flake and there's another dot to the left of it?  Note: I wont have physical access to the camera until the weekend.  Is it just a dust flake on the lens or can it be some problem with the sensor? Its a 3 month old Canon 1500D.


Prove that the centre of finite $p$ group is not trivial.   I have found on many links proofs of this property, but all of them use the "Class Equation". I would like to know if there is a proof which doesn't use class equation or cosets, but only simpler properties of elements in groups.   For example, the order of an element, Lagrange or Cauchy theorems

I know this is a very common corollary of the class equation. And I know how to do it by using class equation.   But can you do it bu using group action, maybe find a nice set for G to act on?


I need to hide the form on submit  <form id="details_form" class="form-horizontal" role="form">   and show the game "pacman"

   I'm using style.display property to hide and show the div and the form  $(document).ready(function() {  _("pacman").style.display = "none";  $("form").submit(function(e) {     _("details_form").style.display = "none";     if(_("details_form").style.display === "none"){         _("pacman").style.display = "block";     }     return false; // prevents page refresh! :) yay!! }); });   On Chrome and IE:   but, on Firefox:   I've also hosted it on a server and checked. But with the same result. What's happening? Check my code on

Suppose that I have a <div> that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the <div> element.   What should I use? Please include information on browser compatibility.


What is the difference between viewDidLoad() and LoadView()? In what way are they different from each other?  Which one is better when we develop applications without  using XIB ?   Thanks .

When working with views and view controllers in an iPhone app, can anyone explain the difference between loadView and viewDidLoad?    My personal context, is that I build all my views from code, I do not and will not use Interface Builder, should that make any difference.  I've found that often when I add init code to loadView, I end up with an infinite stack trace, so I typically do all my child-view building in viewDidLoad...but it's really unclear to me when each gets executed, and what is the more appropriate place to put init code.  What would be perfect, is a simple diagram of the initialization calls.  Thanks!


I'm working with a long table in and I'm having some issues with the it. I can't wrap the text in the last column, which uses multicolumn. Therefore, the text goes out of margins. Here's my code:   \usepackage{multirow} \usepackage{makecell}  \begin{tabularx}{\textwidth}{XXXXXX}%[H]         \hline     Header that can be wrapped & Header 2 & Header 3 & Header 4 & Header 5 & Header 6\\        \hline     Data1 & 0.111 & 0.112 & 0.113 & 0.114 & \multirow{3}{*}{This text is too long and can not be wrapped}\\     Data2 & 0.221 & 0.222 & 0.223 & 0.224 & \\     Data3 & 0.331 & 0.332 & 0.333 & 0.334 & \\     \hline     \end{tabularx}     I've tried to force the line in the last column to break, but then it invades the cell below. This is what I've tried:    \usepackage{multirow}  \usepackage{makecell}     \begin{tabularx}{\textwidth}{XXXXXX}%[H]             \hline         Header that can be wrapped & Header 2 & Header 3 & Header 4 & Header 5 & Header 6\\            \hline         Data1 & 0.111 & 0.112 & 0.113 & 0.114 & \multirow{3}{*}{This text is too long and can not be wrapped}\\         Data2 & 0.221 & 0.222 & 0.223 & 0.224 & \\         Data3 & 0.331 & 0.332 & 0.333 & 0.334 & \\         \hline         Data4 & 0.111 & 0.112 & 0.113 & 0.114 & \multirow{2}{*}{Cell bellow}\\         Data5 & 0.221 & 0.222 & 0.223 & 0.224 & \\         \hline         \end{tabularx}     Any idea of how can I fix this situation?

I have long text in a multirow cell. And the text takes more rows than the rows in the second column.  \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable}  \begin{document}  \begin{longtable}[H]{|p{\dimexpr0.5\linewidth-2\tabcolsep}|p{\dimexpr0.5\linewidth-2\tabcolsep}|} \caption{Title} \tabularnewline\hline \multirow{2}{\linewidth}{\centering \tiny \textbf{Long long  long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long text}} & \tiny 11 \tabularnewline \cline{2-2}  & \tiny 11 \tabularnewline \cline{1-2} \end{longtable}  \end{document}   I get this:   How can I fix it? I generate table automatically, and I do not know how many lines of text in the multirow cell takes. So I can not manually add blank lines in the second column.  Update for Bernard When I compile this code:  \documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{multirow} \usepackage{longtable}  \usepackage{makecell}  \begin{document}  \begin{longtable}{|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|} \caption{Title} \tabularnewline\hline% \multirow{2}{*}{\parbox{\linewidth}%[24pt] {\centering \scriptsize \textbf{Long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long}}} & \Gape[12pt]{\scriptsize 11} \tabularnewline \cline{2-2} & \Gape[12pt]{\scriptsize 11} \tabularnewline  \cline{1-2} \end{longtable}\bigskip  {\normalsize \begin{longtable}{|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|} \caption{Title} \tabularnewline\hline% \multirowcell{8}{\parbox{\linewidth} {\centering \textbf{Long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long}}} &\multirowcell{4}{11} \tabularnewline & \tabularnewline & \tabularnewline & \tabularnewline \cline{2-2} & \multirowcell{4}{11} \tabularnewline & \tabularnewline & \tabularnewline & \tabularnewline  \cline{1-2} \end{longtable} } \end{document}    I see this result:


I am trying to map my Caps Lock to Control. To that end I added the following:  setxkbmap -option ctrl:nocaps   to the Startup Applications menu. This works fine whenever I start the system, however, after unlocking the screen lock the setting is reset back to the default. Why is that? I run Ubuntu 15.04.

Ctrl+Alt+← can usually be set to restart X, however I can't find the option to allow this (it is disabled by default).  I have looked in System->Preferences->Keyboard and System->Preferences->Keyboard Shortcuts but I can't find an option to enable it.  Where can I change this setting?


I m not able to choose a nickname for me in the game so which type of nickname I should try?

The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name?


I'm trying to install ubuntu 18.04 on windows 10 Lenovo by rebooting with a usb hard disk drive. I got to the boot menu here:  Then, I selected "Install Ubuntu" and clicked "e". Then I replaced "quiet splash" with "nomodeset" ( shown in this picture)  Then I got a blank screen. Any advice on this? Thank you

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I could not figure out how to solve this limit:  $$\lim\limits_{n \to \infty} \frac{2^n+3^n}{2^{n+1}+3^{n+1}}$$  I aleady checked the step-by-step solution by wolfram, still does not make sense.

i am pulling my hair out in solving this problem. i know, it is a stupid question but i am not that good at maths, and many thanks for any help   $\lim_{n \to \infty} \frac{2^{n+1}+3^{n+1}}{2^n+3^n}$  my steps are: $\lim_{n \to \infty} \frac{2^{n+1}+3^{n+1}}{2^n+3^n} = \frac{2^{n}2+3^{n}3}{2^n+3^n} = help = ?  $  i know, it diverges as the denominator grows faster than the nominator, but the calculation is killing me now


I am trying to build a javascript regex for phone number. I currently have this...but it is failing. ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})?[#. ]?([0-9]{10})$  Examples: (555) 555-1212 - Acceptable  (555) 555-1212 #12525 - Acceptable (Up to 10 digits after the # sign) 5555551212 - Acceptable 555-555-1212 - Acceptable 555-555-1212 #12525 - Acceptable (Up to 10 digits after the # sign)  Any alpha characters should be Unacceptable (555) 555-1212 ext 12525 - Unacceptable (555) 555-1212 x12525 - Unacceptable  Regex has been a weak area of mine and I am not sure how to make it work.

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


Found this statement in Quantum Mechanics by David McIntyre and was wondering how this is proven.

When the Hamiltonian is Hermitian(i,e. beyond the effective mass approximation), generally under which conditions the eigenfunctions/wavefunctions are real? What happens in 1D case like the finite quantum well symmetric with respect to the origin might be an example. any general rule? further generalization into 2D case?


Is there a Ubuntu 10.04-compatible version of Shockwave Player to run on the Chromium browser?

Is there a Ubuntu compatible version of the "Adobe Shockwave Player?" I'm running Firefox and when I try to bring up one of my School's websites it says missing plugin. When I click on "Install missing plug-in" it says none found, so when I click on manually install plug-in it takes me to Adobe Shockwave Player installation, but there is no ubuntu version to install??? On the Firefox plug-in finder service it says "Unknown Plugin (application/x-director)


Show that $$\frac{1}{n+1}+\frac{1}{n+2}+...+\frac{1}{3n+1}>1,\:\forall n\in\mathbb{N}$$ This is a 9th grade problem. I was trying to take the greatest numerator, which is the  last numerator of the last fraction. But there are only $2n+1$ terms. Right? After that I have no idea. Thx!

Prove by induction: $$\frac1{n+1} + \frac1{n+2} + \cdots +\frac1{3n+1} > 1$$  adding $1/(3m+4)$ as the next $m+1$ value proves pretty fruitless. Can I make some simplifications in the inequality that because the $m$ step is true by the inductive hypothesis, the 1 is already less than all those values?


Is there any experimental evidence of space contraction which theory of spacial relativity predicts? You should bear in mind that GPS & muon detection beyond the distance permitted by its half life are the evidences of time dilation. If not is it justified to accept the theory of special relativity & consequences thereof? The supposedly answer to the similar question is already ruled out in the question.

The measurement of the flux of muons at the Earth's surface shows that many more muons are detected than would be expected, based on their mean half-lifetime of 2,2 microseconds. This is a good proof for the time dilatation as predicted by the special relativity theory.  QUESTION: does there exist a similar proof for the Lorentz contraction?


I give up. I'm new in the fields world, and      I'm trying to give a sufficient and necessary condition for $\mathbb{Z}_{p}[\sqrt{k}]=\{a+b\sqrt{k}:a,b\in \mathbb{Z}_{p}\}$ to be a field ($p$ is a prime and $k$ is a positive integer).    I claim that the condition is that $p$ doesn't divide $k$, but I don't know if this is true, I've tried to prove this but I've got stuck in the "sufficient" part.  It would be great if some of you can help me, thanks!.

If $k>0$ is a positive integer and $p$ is any prime, when is $\mathbb Z_p[\sqrt{k}] =\{a + b\sqrt k~|~a,b \in\mathbb Z_p\}$ a field? Find necessary and sufficient condition.   Attempt: Since we know that a finite integral domain is a field and since $\mathbb Z_p[\sqrt{k}]$ is finite, it suffices to find the condition when $\mathbb Z_p[\sqrt{k}] =\{a + b\sqrt k~|~a,b \in \mathbb Z_p\}$ forms an integral domain.  The given set forms a commutative ring with unity. Hence, the only condition that needs to be satisfied is the absence of any zero divisors.  $(a_1+b_1 \sqrt k)(a_2+b_2 \sqrt k) = (a_1a_2+b_1b_2k)+(a_1b_2+a_2b_1)\sqrt k$  Case $1$: When $k$ is not a perfect square  $(a_1+b_1 \sqrt k)(a_2+b_2 \sqrt k)=0 \implies (a_1a_2+b_1b_2k) \bmod p=0~~ \& ~~ (a_1b_2+a_2b_1) \bmod p =0$  Case $2$: When $k$ is a perfect square $ = u^2$  $(a_1+b_1 \sqrt k)(a_2+b_2 \sqrt k) = 0 \implies (a_1a_2+b_1b_2 u^2 + (a_1b_2+a_2b_1)u ) \bmod p=0 $  Both the above cases can have many cases and seems a bit complicated. Am I missing out on something? The book which I am reading (Gallian) hasn't introduced Quadratic Residues as of yet. Thank you for the help.


I want to create 5 second mp4 video from 1 image.  When I use below code the video is smooth. Default direction is zoom in to top left.  ffmpeg -loop 1 -i prop1.jpeg -vf "zoompan=z='min(zoom+0.0015,1.5)':d=125" -c:v libx264  -t 5 -s "800x450" fade.mp4   So, to zoom in to top right I figure it out to use the code below  ffmpeg -loop 1 -i prop1.jpeg -vf "zoompan=z='min(zoom+0.0015,1.5)':x='if(gte(zoom,1.5),x,x+1)':y='y':d=125" -c:v libx264  -t 5 -s "800x450" fade.mp4   It is zooming in to the right direction but the video become jittery.  Also got some error when converting :  [swscaler @ 0x429bda0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x429bac0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x429bac0] Warning: data is not aligned! This can lead to a speedloss [swscaler @ 0x429bac0] deprecated pixel format used, make sure you did set range correctly Last message repeated 97 times [output stream 0:0 @ 0x37af200] 100 buffers queued in output stream 0:0, something may be wrong. [swscaler @ 0x429bac0] deprecated pixel format used, make sure you did set range correctly Last message repeated 24 times [swscaler @ 0x42b7040] deprecated pixel format used, make sure you did set range correctly Last message repeated 1 times   What is wrong with the code?

I'm trying to create a basic 5 second zoompan to the center of an image (from the example on the ). The command below works, but jitters more than my hands after 5 cups of coffee:  ffmpeg -framerate 25 -loop 1 -i island.jpg -filter_complex "[0:v]scale=-2:480,zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=125,trim=duration=5[v]" -map "[v]" -y out.mp4   .  .  I'm aware of the . The posted suggested workaround is to use the scale filter prior to zoompan. But as shown in my example, this still seems to have no effect.  It seems any arbitrary x or y values cause the jiggle/jerky/shaky effect.  Can anyone offer any kind of effective workaround?  Thanks!  Version info:  ffmpeg version 3.1.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers   built with gcc 5.4.0 (Debian 5.4.0-6) 20160609


I am dualbooting ubuntu 13.10 and windows 7. When I boot into ubuntu and then into windows, the windows time is +2 hours of the correct time.  I know this has to do with the way the operating systems handle BIOS time. For ubuntu it is UTC and for windows is local time.  So I searched about it and found that i need to make a .reg file with these contents and then run it.  Windows Registry Editor Version 5.00  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]      "RealTimeIsUniversal"=dword:00000001   But it doesn't work. Even if I do it, after some time windows changes the clock again to +2 hours... I also tried rebooting immediately after doing the fix, but still nothing.

Today I was installing Windows 7 on the same computer I have Ubuntu. For some reason, after installing Windows 7 and going back to Ubuntu the time went from the correct hour at that moment, 12:30PM to 7:30AM. This happened after installing Windows 7. For what I understand the BIOS has a time set, Ubuntu has the same time that is shown in the BIOS when installing it. At least up to this point is what I have seen. Now after installing Windows 7 (And believe me this is only for testing the performance of Windows 7 against Ubuntu in which case Windows 7 is falling behind a lot on the same hardware) the time changes in Ubuntu to the wrong one that is set in Windows 7.  I actually do not change the time in Windows 7 since this is one of the checks I am doing to see if the operating system can correctly grab the time. Windows 7 fails. Ubuntu does not BUT Windows 7 actually changes the time for Ubuntu if I boot with it afterwards.  So my question is, why/how does time change in Ubuntu after installing Windows.  NOTE - I have set Ubuntu time to "manual" instead of grabbing it from the Internet just to test out this.


I want to use my laptop like an external hard drive.  How can I completely access my laptop's storage on another computer with the help of any cable?  Can we mount a particular partition of the laptop on another PC?

Is there a software package available that can serve up a hard-drive internal to a PC and make it available over USB to other USB Master nodes as mass storage?  Ex: take your C: or /dev/hda drive on a PC (let's call the computer PC-A), and run a driver program which makes your C: or /dev/hda drive available to external devices as USB mass storage.  When you'd hook up another PC (PC-B) to PC-A via USB, it would detect a USB mass storage device, which is C: or /dev/hda on PC-A.  Is this even possible?    EDIT:  I know that there are other ways of making data on a drive available between two different computers (eg. putting PC-A's hdd in a USB-drive-enclosure, or having PC-A make the hdd available via a network share).  But I'd like to know if the method that I describe above is even technically possible.


I am using  \resizebox{\columnwidth}{!}{% ... %}   to fit a table which might be too wide onto a page by scaling it down.  However, my problem is that if the table is smaller than the column width, it gets scaled up, which looks really ugly, and, more importantly, it can then become too long to fit on the page.  So how do I change above to either shrink it or keep it the same, but not scale it up?  I need something along the lines of  \resizebox{min(\columnwidth,\originalwidth)}{!}{% ... %}


I don’t understand when I should use zero article.  Can you explain me usage of article in these sentences: 1. They have little experience. 2. You can have a little rest.  I think in both cases we are talking about abstractions. Please help me.

What are the differences among “little”, “few”, “a little” and “a few”?   Are “little” and “few” synonyms?


When I download some files from blendswap they look like this.   I want the silver/gray solid view.

I'm new to Blender and this site, so I apologize in advance if I'm not following any of the proper etiquette.  I'm no artist, but I'm trying to learn Blender so that I have some programmer art for me to work around in Unity.    I followed a tutorial for making a basic human model, I rigged it with rigify, and now I'm starting to export it following yet another tutorial.  The thing is, when I was trying to rig the model, I couldn't get the model to go transparent so that I could see the bones inside the model.  Eventually, I managed to get it into wireframe mode, but I can't get it back into solid mode.    It's probably just a display thing and not a property of the model itself, but I want to be sure.  I'm looking at the display options under the "Figure" pane in Blender, and none of the Display check boxes are checked, including the one that says "Wire".  I don't want to import a plain wireframe model into Unity, and even if that doesn't happen, this is functionality of Blender that I should really know anyway, so I'd appreciate any help that anyone has to offer.  If necessary, I can upload the .blend file, but I'm not sure what site people would prefer that I upload it to.


I want Google spreadsheets to automatically uppercase text inputted into a cell.  I'm using the following code and receiving circular dependency errors:  =ARRAYFORMULA(UPPER(C5:C))   I'm inputting text into column C

I have a spreadsheet I'm sharing with others to collect some data. Each person is just (supposed to be) putting a single character in any of a range of cells.  How can I cause those cells to convert to uppercase?   Using =UPPER() in each cell would seem to be a non-starter, because it'll be overwritten by whatever they enter.


After not using kali for a long time (+/- 2 years) I decided to run it again. First thing I did was opening my terminal and updating kali using apt-get update && apt-get upgrade. To my surprise it couldn't find any update. I checked my sources.list and found several lines, which I can't remember anymore. Deleted and replaced them with "deb  kali-rolling main non-free contrib" according to the official website. Opened the terminal again and entered the update command. It found a ton of updates, dpkg'd most of them and after half an hour updating was completed.   Rebooted my pc and encountered the following on boot up:   Got the same result when trying to open recovery mode.  What is the reason behind my bricked kali and how do I resolve my problem?

There are a lot of tutorials which show how to install Kali Linux's tools on Ubuntu distros.  So I was wondering, why do pen-testers use Kali instead of Ubuntu? while it's more reliable & fancy than Kali.  What are the pros of working on Kali?


If any of Canadian publishers already have/has the rights for this book?   Which one is correct or both are possible?

While I'm aware of  it does not quite answer my question. I have a simple sentence:     If any of the devices was not switched off, do something.   Is there supposed to be was or were? I was thinking about was since it could be rephrased as:     If any one of the devices was not switched off, do something.   But maybe that does not make any sense at all. Also, this is for a technical documentation where more formal language is preferred, not sure if that makes any difference.


I want to show 1 GS/s (one giga sample per second) in my article. How to make use of siunitx package to produce the rate correctly?  I assume there to be something better, than \SI{1}{GS/s}.  I would like to write something like  \SI{1}{\giga\sample\per\second}, but \sample is not defined in the package.  Related:

I'm having a hard time figuring out the LaTeX commands to define new units of year and century in siunitx.  I'd like to write \SI{3}{\cm\per\year} and have it show: 3 cm yr-1, or \SI{42}{\micro\meter\per\century} become 4.2E-5 m/century


Sorry not very good with the whole JSON thing, from the json below, how would I output the title?    So far i've got:  <?php       $url ="http://en.wikipedia.org/w/api.php?action=query&list=search&format=json&srsearch=world%20cup";       $json = file_get_contents($url);       $wiki = json_decode($json, TRUE);        var_dump($wiki);     ?>

Trends data from Twitter Search API in JSON.  Grabbing the file using:  $jsonurl = "http://search.twitter.com/trends.json"; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json);   How do I work with data from this object. As an array? Only really need to extract data from the [name] values.  JSON object contains:  stdClass Object (     [trends] => Array         (             [0] => stdClass Object                 (                     [name] => Vote                     [url] => http://search.twitter.com/search?q=Vote                 )              [1] => stdClass Object                 (                     [name] => Halloween                     [url] => http://search.twitter.com/search?q=Halloween                 )              [2] => stdClass Object                 (                     [name] => Starbucks                     [url] => http://search.twitter.com/search?q=Starbucks                 )              [3] => stdClass Object                 (                     [name] => #flylady                     [url] => http://search.twitter.com/search?q=%23flylady                 )              [4] => stdClass Object                 (                     [name] => #votereport                     [url] => http://search.twitter.com/search?q=%23votereport                 )              [5] => stdClass Object                 (                     [name] => Election Day                     [url] => http://search.twitter.com/search?q=%22Election+Day%22                 )              [6] => stdClass Object                 (                     [name] => #PubCon                     [url] => http://search.twitter.com/search?q=%23PubCon                 )              [7] => stdClass Object                 (                     [name] => #defrag08                     [url] => http://search.twitter.com/search?q=%23defrag08                 )              [8] => stdClass Object                 (                     [name] => Melbourne Cup                     [url] => http://search.twitter.com/search?q=%22Melbourne+Cup%22                 )              [9] => stdClass Object                 (                     [name] => Cheney                     [url] => http://search.twitter.com/search?q=Cheney                 )          )      [as_of] => Mon, 03 Nov 2008 21:49:36 +0000 )


In my design I have 1 base class and N child class:  class BaseClass {   public:         BaseClass() {}         virtual void execute(int16_t* l_image); }  class ChildClass1: public BaseClass {   public:         ChildClass1() {}         void execute(int16_t* l_image); }  class ChildClass2: public BaseClass {   public:         ChildClass2() {}         void execute(int16_t* l_image); }    int main {      std::vector<std::string> class_names;     // read list of string from file using get_names(), omitted for brevity of the example     class_names = get_names();       std::vector<BaseClass> all_layers;        for (size_t name_idx = 0; name_idx < class_names.size(); name_idx++) {         BaseClass new_layer;         if (class_names[name_idx] == "ChildClass1")            new_layer = ChildClass1();         if (class_names[name_idx] == "ChildClass2")            new_layer = ChildClass2();           all_layers.push_back(new_layer);     }         for (size_t layer_idx = 0; layer_idx < all_layers.size(); layer_idx++) {          all_layers[layer_idx].execute();      } }   I have a std:vector of BaseClass that actually contains instances of differend ChildClassN. Now, if I iterate over the array calling the "execute" method on each object, the BaseClass one is called instead of the child one. How can I call the child method, not knowing which child I do have?  The only thing that i found online is that somehow what I'm doing is a bad design, but I'm not sure what alternatives would I have...  Thanks

Someone mentioned it in the IRC as the slicing problem.


Is there a way to keep the Windows Store Icon from always coming back pinned to the Task Bar? It seems like every update it comes back. Very annoying.  Can I just uninstall or disable the stupid store?

I don't want to use the Windows Store and don't let the other user to use it. So what is the way to disable the Store on Windows 8?


I have a multipart shapefile, which I would like to split into many individual shapefiles (by FID for example).   Is there some way to do this in ArcGIS 10.x without using python?

I have a feature class with over 2,000 features, and I need to make them all individual feature classes based on a field.   Is there a way to do this?


I'm trying to implement the java program to compare two HTML files. I gone through a lot of sources in the internet, but everything is stops at one for me. That is I'm getting below exception   Exception in thread "main" java.lang.NullPointerException at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:279) at org.outerj.daisy.diff.html.HtmlSaxDiffOutput.generateOutput(Unknown Source) at org.outerj.daisy.diff.html.HTMLDiffer.diff(Unknown Source) at com.interac.api.emt.noti.DaizyDiff.main(DaizyDiff.java:63)   My Full Code:  public class DaizyDiff {      static String html1 = "Hello";     static String html2 = "Bye";      public static void main(String args[]) throws TransformerConfigurationException, IOException, SAXException {          final StringWriter finalResult = new StringWriter();         final SAXTransformerFactory tf = (SAXTransformerFactory) TransformerFactory.newInstance();          final TransformerHandler result = tf.newTransformerHandler();         result.getTransformer().setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");         result.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");         result.getTransformer().setOutputProperty(OutputKeys.METHOD, "html");         result.getTransformer().setOutputProperty(OutputKeys.ENCODING, "UTF-8");         result.setResult(new StreamResult(finalResult));          final ContentHandler postProcess = result;          final Locale locale = Locale.getDefault();         final String prefix = "diff";          final NekoHtmlParser cleaner = new NekoHtmlParser();          final InputSource oldSource = new InputSource(new StringReader(html1));         final InputSource newSource = new InputSource(new StringReader(html2));          final DomTreeBuilder oldHandler = new DomTreeBuilder();         cleaner.parse(oldSource, oldHandler);         final TextNodeComparator leftComparator = new TextNodeComparator(oldHandler, locale);          final DomTreeBuilder newHandler = new DomTreeBuilder();         cleaner.parse(newSource, newHandler);         final TextNodeComparator rightComparator = new TextNodeComparator(newHandler, locale);          final HtmlSaxDiffOutput output = new HtmlSaxDiffOutput(postProcess, prefix);          final HTMLDiffer differ = new HTMLDiffer(output);         differ.diff(leftComparator, rightComparator);          System.out.println(finalResult.toString());          System.out.println(finalResult.toString());     }

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


I'm trying to print a list of tuples inserted in an object, among the attributes of the tuple there is an array of strings, but ResultSet reads the array with split, but it doesn't print it correctly. How can I do to print it? Thanks rs = st.executeQuery(sql); // faccio la query su uno statement         while (rs.next() == true) {             AttivitaParlamentare a = new AttivitaParlamentare(rs.getDate("data"),                         rs.getTime("ora").toLocalTime(),                         rs.getString("ddl"),                        rs.getString("commissione_camera"),                        rs.getString("commissione_senato"),                         rs.getInt("seduta_numero"),                        rs.getString("tipo_assemblea"),                        rs.getString("parlamentare").split(","));  If I use: System.out.println(java.util.Arrays.toString(rs.getString("parlamentare").split(",")));  I print the column correctly, OUTPUT: [{{BELLANOVA, MARGIOTTA, GRIMANI, BOLDRINI, MANCA, BITI, COLLINA, "D ALFONSO", COMINCINI, CUCCA, LAUS, MARINO, FARAONE}}]  but from main if I insert the function that returns the object to me in a println, it doesn't print the list of tuples correctly. AttivitaParlamentare a = new AttivitaParlamentare(data,             ora,ddl,commissione_camera,commissione_senato,seduta_numero,             tipo_assemblea,parlamentare);          Tabella_AttivitaParlamentare.nuovaAttivitaParlamentare(a);     System.out.println(Tabella_AttivitaParlamentare.elencoAttivitaParlamentari());     //df.parse("2016-10-10")          Tabella_AttivitaParlamentare.modificaAttivitaParlamentare(a);     System.out.println(Tabella_AttivitaParlamentare.elencoAttivitaParlamentari());          Tabella_AttivitaParlamentare.eliminaAttivitaParlamentare(a);     System.out.println(Tabella_AttivitaParlamentare.elencoAttivitaParlamentari());  OUTPUT: parlamentare=[Ljava.lang.String;@42dafa95]

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I have read several posts regarding smoke and sanity testing. All are almost confusing. Neither explaining them clearly,just repeating the matter except some two or three posts and based on that two or three posts i concluded that following is the formal process:  Smoke testing(generalized health checkup)---then--> Sanity Testing(checking functionalities to deepest level)(Specialized health checkup)----------------then--------> Functional testing(full functionality checking)  Am I right in above concept?  I have confusion regarding when sanity is performed. Smoke is performed when build comes very first time. But when sanity is performed? Is sanity is performed only after every smoke OR it is performed every time build undergoes some change(i.e. even when smoke is not performed because smoke is performed only first time build comes) OR in both cases?  [EDIT]i want to made it clear here that i am not asking here for difference between smoke and sanity as many people are marking it duplicate for another question in which user has asked for difference between two. Here i am asking WHEN and HOW OFTEN sanity is performed in testing life cycle.  [EDIT] Thanks all for giving time to this question. Though it is not duplicate still marked duplicate. Anyways. I found my answer .

When there is a new build we perform smoke testing,in few projects they call it as sanity testing. Can someone please elaborate on the difference between the both?


I need help on the pagination. I try to put the NEXT and PREVIOUS pagination that show the post in a same category, but I am not sure what happen that showing nothing.  If you can help, much thanks!

     <?php      $previous_post = get_previous_post('%link', 'Next post in category', TRUE);     if ( $previous_post ) : ?>
     <?php if ( has_post_thumbnail( $previous_post->ID ) ) : ?>     <?php echo get_the_post_thumbnail( $previous_post->ID, 'gallery-navigation' ); ?>     <?php endif; ?>     <a href="<?php echo get_permalink( $previous_post->ID ); ?>">

<?php echo $previous_post->post_title; ?>

      <?php _e( 'Previous Featured', ); ?>
     <?php endif; //End of Previous Post Item ?>      <?php $next_post = get_next_post('%link', 'Next post in category', TRUE);     if ( $next_post ) : ?>
     <?php if ( has_post_thumbnail( $next_post->ID ) ) {      echo get_the_post_thumbnail( $next_post->ID, 'gallery-navigation' ); }?>     <a href="<?php echo get_permalink( $next_post->ID ); ?>">

<?php echo $next_post->post_title; ?>

      <?php _e( 'Next Featured'); ?>
     <?php endif; //End of Next Post Item ?>

Is it possible to force previous/next navigation to browse through the posts (back and forth) that are only inside the same category (and to exclude other categories)?


Does the samsung tablet model # GT-P3113 have OTG USB support already built in or do I need to get the cable?  Am thinking of getting a keyboard for my tablet.

Some Android devices can act as a USB host, so that you can use other USB devices attached to them. For instance, browse or import the photos stored on a camera from your phone, or copy files onto a USB memory stick attached to your tablet, plug a full-size USB keyboard or mouse into a tablet, or use an external GPS or wifi device.  How can I tell if my device can do this?


I have Ubuntu 19.04 dual booted alongside Windows 10. I had not used my PC for a month. The last time I used my PC, Ubuntu was working great. Today (after a month), when I turned on my PC, the boot process got stuck on a black screen with some text written on it. I don't understand what is written (too much technical terms). And at last line "intramfs" is written and I can type and enter any command into it (just like in the terminal).

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted.  Now when I try to boot into Ubuntu I get this message:  fsck from util-linux 2.26.2 /dev/sda6 contains a file system with errors, check forced. /dev/sda6: Inodes that were part of a corrupted orphan linked list found.  /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.         (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda6 requires a manual fsck  Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs) _   How can I fix this?


When I run "Inspect element" on some element (HTML is on my local machine) some really easy-to-use Chrome windows appears. I can search and change text strings, but when I want to save my changes anyhow I face some problems.  Does anybody know what should I do to save this HTML locally?

Can I add or change HTML when in 'Inspect Element'. I have a 'Home' link button that I want amend the link. I've used the right click option but my changes are not saved?


Backspace and arrow keys are not working in terminal vim. I tried to solve the issue using following commands from root user:  sudo apt-get update sudo apt-get install vim   But I am getting following message on the terminal:  root@abhi:/home# sudo apt-get install vim Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  vim : Depends: vim-common (= 2:7.4.052-1ubuntu3) but 2:7.4.273-2ubuntu4 is to be installed        Depends: vim-runtime (= 2:7.4.052-1ubuntu3) but 2:7.4.273-2ubuntu4 is to be installed E: Unable to correct problems, you have held broken packages. root@abhi:/home#    How can I solve this issue?

I am running Ubuntu 11.10, as Xubuntu, in an AMD 64 pc, configured as dual boot with Windows 7.  I tried installing vim with this:  sudo apt-get install vim   I got this error message:  The following packages have unmet dependencies:  vim : Depends: vim-common (= 2:7.3.154+hg~74503f6ee649-2ubuntu2) but 2:7.3.154+hg~74503f6ee649-2ubuntu3 is to be installed E: Unable to correct problems, you have held broken packages.   I only have a very faint idea of what the problem is, and none whatsoever on how to correct this. Hope you guys can help.


I can't concatenate two pointer strings using strcat, is it not possible?  I tried using them like strcat(s1,s2), and strcat(*s1,*s2), and all and it still doesn't work.  char *s1="Hello"; char *s2="Bye"; printf("%s\n",s1); strcat(s1,s2); printf("%s",s1);   When I run it prints the first "Hello" that is before the strcat, but the code doesn't display the remaining output and doesn't return 0.

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


I was conducting a language assessment test when I was asked to fill out a clause:    He asked what time the train [ was / will / be] leaving.   I would have chosen be to form a subjunctive clause, had the sentence been in the present tense. But now that it is in the past form, I had a hard time deciding. Can be be used, too, here? Or does one have to use was, which would have been my hasty answer in the first place, but forfeiting the possibility to distinguish a subjunctive?  Looking forward to a informative discussion!

I know the past tense carries the past tense in every dependent clause, but referring specifically to places or to things that are eternal, like the Earth, seems a bit weird and therefore we sometimes (I believe incorrectly) say     He didn't know that New Jersey was actually on the East Coast.   Because it still is. Or     He thought the Earth was round.   So is it square now?  Logically speaking, would you consider the use of past tense here a bit confusing in a day-to-day speech in these examples? Would you instinctively opt for using the present tense?


I have a Nishiki Pueblo and I am looking to put disk brakes on it.   My problem is that I am not sure which disk brakes fit on my bike.   Thanks in advance.

I have a Gary Fisher bike (wahoo I believe). I think it's considered the entry level Fisher mountain bike.  Could I put on disc brakes as opposed to using the standard  brakes on this bike?  Standard brakes are the rim brakes.   Thanks Carlos


After installing 14.04 LTS on a HP Probook 6560b  my wifi does not work,  on the web I found this Ask Ubuntu question and proceeded as follows :  lspci -vnn | grep Network  00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 04) 25:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)  iwconfig  eth0      no wireless extensions.  wlan0     IEEE 802.11abg  ESSID:off/any             Mode:Managed  Access Point: Not-Associated              Retry short limit:7   RTS thr:off   Fragment thr:off           Power Management:off  lo        no wireless extensions.  lspci -nn  -d 14e4: 25:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)   Looking in the Broadcomm Wireless Table I found bcmwl-source as possible solution and continued  sudo update-pciids  sudo add-apt-repository restricted  sudo apt-get update  sudo apt-get install linux-generic   sudo apt-get install linuxmint-keyring   sudo apt-get install bcmwl-kernelsource  E: Unable to locate package bcmwl-kernelsource

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


How many daedric missions are there that give you armor as a reward. I've only gone through a few of them and was wondering what the others were like and if they're worth possibly getting arrested.

The only quest I completed was "Mind Of Madness" with Sheogorath, which was hilarious, and I would like to know where to find the rest of the Daedric quests.


I have level 35 legacy in my main character's server. And I created another one to play with my friends in another server which has level 20 legacy.   Now my friends quit the game, and I want to transfer the little one to my main's server.  I checked the link below:    Here it says:    Unlocks will pass, quite nice. Old one will remain and won't be affected, nice as well   But what about Legacy level? I have 35 here, if I transfer the small one to my server which is 20, will my legacy level still be 35, or will they merge the xp and become a higher legacy level?

My server is just ridiculous sometimes. So I have looked intensively into another server and things are quite better there. So I have 2 higher level characters (55, 30+) on this server. What happens to my legacy if I transfer only one of them and the other one later?  Will my legacy stay on the original server? What will happen there?


$$I=\int_{0}^{\dfrac\pi4}\log(\cos(x))\mathop{\mathrm{d}x}$$ I can solve it if the limit is from $0$ to $\frac\pi2$. How to do it? I have done like this, tried not to use any knowledge of series but just simple integration rules. $I_1=\int_{0}^{\frac{\pi}{4}} \ln(\sin x)+\ln (\cos x) dx \\ =\int_{0}^{\frac{\pi}{4}}\ln\left(\frac{\sin 2x}{2}\right) dx \\ =-\frac{\pi}{4}\ln 2 -\frac{\pi}{4}\ln 2 \\ =-\frac{\pi}{2}\ln 2$  Now ,  $I_2=\int_{0}^{\frac{\pi}{4}} \ln(\cos x)-\ln(\sin x) dx \\ =\int _{0}^{\frac{\pi}{4}} \ln(\cot x) dx \\ =-\int_{-\infty}^{0} \frac{(e^z)^2}{1+(e^z)^2} dz$  Say $$[\cot x=e^z \implies dx=-\frac{e^z}{1+(e^z)^2} dz]$$  Now from above, $$=-\int_{0}^{\infty} \frac{1}{1+(e^z)^2} dz \\ =-\int_{0}^{\infty} \frac{e^{-z}}{e^z+e^{-z}} dz \\ =-\frac{1}{2} \int_{0}^{\infty} 1-\frac{e^z-e^{-z}}{e^z+e^{-z}}dz \\ =-\frac{1}{2}\left[z-\ln (e^z+e^{-z})\right]^\infty_0 \\ =-\frac{1}{2}\ln 2$$

It's my first  post here  and I was wondering  if someone  could help me with evaluating the definite integral  $$ \int_0^{\Large\frac{\pi}{4}} \log\left( \cos x\right) \, \mathrm{d}x $$ Thanks in advance, any help would be appreciated.


I want to know how to add code tags in this editor. As an example if I want to post an answer in PHP, as soon as I type "open php" my line disappears. How to post PHP with open and close?

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


i'm having 2 buttons one to create a div and the other is to remove the added div. There's no problem adding a new div but when i try to remove it i can't use div:eq(index) because it wasn't loaded with the DOM here's the code  $(document).ready(function(e) {  $(".inner").eq(1).css("background-color","#0C9"); $(".inner").eq(2).css("background-color","#F00"); $(".inner").eq(3).css("background-color","#990");  $("#add").click(function(){     $(".content").append("
remove this inner
");  });  $(document).on("click","a.rem",function(e){     e.preventDefault();     var num = $("a.rem").index(this);     //alert(num);     $(".inner").eq(num).remove(); }); }); </script>   code on jsfiddle :

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


i have stored the records from database in a array. Now i want to sort the array based on the price index and than print the result according.  Can any one help me with this?  Code i tried ..  <?php include('db.php');  $query = mysql_query("SELECT * FROM user");  $array = array();  while($row = mysql_fetch_assoc($query)) {   $array[] = $row;   $price[]=$row['price']; }  echo "<pre>"; print_r($array);   Output..  Array (     [0] => Array         (             [id] => 1             [name] => abc             [email] => abc@gmail.com             [contact] => 27488887             [price] => 12AED         )      [1] => Array         (             [id] => 2             [name] => siddharth             [email] => dgsfgsjkf@gmail.cm             [contact] => 7878787             [price] => 10AED         )      [2] => Array         (             [id] => 3             [name] => abc             [email] => def@gmail.com             [contact] => 4554545             [price] => 2AED         )      [3] => Array         (             [id] => 4             [name] => xyz             [email] => test@gmail.com             [contact] => 878778             [price] => 1AED         )      [4] => Array         (             [id] => 5             [name] => dandas             [email] => sdskagdsa             [contact] => 24221             [price] => 200AED         )      [5] => Array         (             [id] => 6             [name] => ass             [email] => asas             [contact] => 78787             [price] => 3AED         )  )   Now i want to sort the array obtained as output by price and then display the records..

I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row.


I am trying to install matlab in Ubuntu but getting this error:  Access Denied Unable to write to /usr/local/MATLAB/R2017a/

How to install MATLAB in Ubuntu 14.04? I searched in USC, but it only has some extension for MATLAB.


I am having a bit of an argument with my DM.  The rules say that you can have sneak attack if "you don’t have disadvantage on the attack roll".  If I have both advantage and disadvantage, that results in a straight roll when attacking. A straight roll suggests that sneak attack is allowed.  My DM interprets it as, if I have a source of disadvantage, regardless of weather I also have advantage or not, the fact I am being disadvantaged in some way prevents sneak attack from triggering.  Can someone please let me know who has the correct interpretation?

In a recent question -  - it was pointed out that you couldn't Sneak Attack an invisible opponent because the rules specifically state that you cannot use Sneak Attack if you have disadvantage on the attack roll. However, it would not be impossible for the rogue to also have advantage on the attack, by virtue of being hidden or invisible himself.   In this context, where a character has both advantage and disadvantage on a single attack/check, the rules mention that the roll is resolved normally: you roll a single d20 and that's it. Does that mean that you are no longer considered advantaged/disadvantaged?  If so, and assuming the presence of an ally within 5 feet of the invisible enemy, it could mean that an invisible rogue could sneak attack an invisible opponent while a visible rogue couldn't. Is that correct? Or are you, in fact, still considered both advantaged and disadvantaged, and thus can't perform a Sneak Attack?  Precision: Sneak Attack is the use case that triggered the question. That being said, there are probably other things that require advantage/disadvantage to be activated, so answers should focus on the relationship between advantage and disadvantage, and not on Sneak Attack necessarily.