I'm working on a chat-bot, however before I can do so, I need to understand the English language a lot better, in order to make the bot understand. Say I have 'The quick brown fox jumped over the lazy dog,' I have the adjectives quick, brown, and lazy, and two nouns, fox and dog. That makes a complete sentence, however how can I identify a sentence assuming I only know the structure of the English language, and punctuation, but not what the words are (yet)?  Alternatively, I COULD get a dictionary library to find the type of word each word is individually, and format it such as 'The ADJ ADJ NOUN VERB(past) over the ADJ NOUN' and go from there, however then I need to translate 'the' and 'over the' to a readable format.  Is there any type of English 'equation' for formatted sentences which I could use? Potentially in a RegEx expression of sorts?
I am studying English in Korea.   All my friends and I are studying about 'sentence patterns'  Sentence patterns, said in here, are S+V, S+V+C, S+V+O, S+V+I.O+D.O, S+V+O+O.C.  But my teacher said these 5-sentence patterns are not perfect in grammar. But  because we don't use English by mother language, they will be helpful for understanding English.  Then, I came up with something.   Is sentence patterns used everywhere? (like U.S.A, U.K, Australia, anyother country where people use english by their mother language?)  I really wonder.
Clear 301-redirect cache in Firefox Is it possible to clear only 301-redirects from Firefox's cache? CTRL+F5 doesn't do the job since you just reload the target without caching but do not clear the cached redirect.  An option to disable caching of those redirects completely would be fine, too - but some way (possibly through an extension) to remove those cached redirects would be better.  Note: I'm not looking for answers that disable all caching (including CSS, JS, etc.) Automatically login and lock I want to configure Windows 7 to login automatically after the computer is switched on. That's not because I'm lazy and don't like typing passwords. That's because I want programs that are configured to run on startup run automatically.  But I don't want everyone to see my desktop, so I want my computer to remain locked. When I'm ready to work, I just type my password and don't have to wait until all startup programs run. I have Ubuntu 13.1 installed with the default window manager and DE.   I am trying to enable single click so I can open files and folders with only one click. I tried googling and all results said to open files, then go to preferences from top bar but my top bar has no options.  picture of desktop: Proving that two matrices are congruent, in order to establish a rank and signature result. Why didn't Dumbledore just hunt Voldemort down? I just saw a user named: .yahoo.co.jpaqwsykcj3aulh3h1k0cy6nzs3isj  Could new users be named according to their user-number, or something other than "Unknown"? Perhaps User1234567 instead? It would be less awkward to address them in answers and comments.   Additionally, I often times have to check profiles to make sure users aren't abusing the system, since I find many of the same questions from "unknown (google)" from time to time. That, or I'll mistakenly think I've helped the user on a similar issue in the past, and assume the user has knowledge that he or she does not have. I'm trying to prove that  $$ \left| \frac{1}{x}-\frac{1}{y} \right| $$  is a metric on $X = \mathbb R^+$.  The properties of non-negativity and symmetry are obvious (do I actually even need to prove them?), but the tricky one is, as usual the inequality property, i.e.  $$ d(x,z) \le d(x,y) + d(y,z) \text{ for any } z \in X. $$  So, ok, I have that  $$ d(x,z) \le d(x,y) + d(y,z) \\ \iff \left| \frac{1}{x}-\frac{1}{z} \right| \le \left|\frac{1}{x} - \frac{1}{y} \right| + \left|\frac{1}{y} - \frac{1}{z} \right| \\ \iff \left| \frac{1}{x} \right|- \left| \frac{1}{z} \right| \le \left| \frac{1}{x}-\frac{1}{z} \right| \le \left|\frac{1}{x} - \frac{1}{y} \right| + \left|\frac{1}{y} - \frac{1}{z} \right| $$  ...and that's about as far as I've gotten–which is to say, not very far. I also tried multiplying both sides by $ \left| \frac{1}{x}-\frac{1}{z} \right| $, but that wasn't very fruitful. If someone could point me in the right direction, it'd be greatly appreciated. Thanks. "What day is it today?" vs. "What day is today?" Recover scaling factor in TikZ Does it exist some tikz register (let say \zoomfactor) that provides the curent scale factor. For example can I do something like :   \begin{tikzpicture}[scale=2]     \begin{scope}[scale=1.5]         \draw (0,0) circle (\zoomfactor);     \end{scope} \end{tikzpicture}   and to obtain circle of size 3=2*1.5 ? I'm trying to work out what value resistor to use in a LED circuit. The equation I'd use to do this is:  $$ R = \frac{V_{cc} - V_f}{I_f} $$  Seems logical, and makes complete sense. The answers to the question  confirm this too.  I have the following LEDs:   \$ V_f = 3.3V \$ \$ I_{f_{typ}} = 20mA \$   Using a 5V power supply:   \$ V_{cc} = 5V \$   Plugging these into the above equation gives:  $$ \begin{eqnarray} R &amp; = &amp; \frac{V_{cc} - V_f}{I_f} \\   &amp; = &amp; \frac{5V - 3.3V}{20mA} \\   &amp; = &amp; 85\Omega \end{eqnarray} $$  All good so far.  However, if I use the calculator at , that gives me 100&Omega;. If I use the ElectroDroid app on my phone, that gives me 85&Omega;.  So, I assume that the linear1 calculator is using a different method of calculating this resistor value; is there some better way of doing this? How to deserialize a JSON String to Apex How can I deserialize this json object:      {     "response": {         "count": 1,         "benchmark": 0.22567009925842,         "requests": [             {                 "request": {                     "id": 537481,                     "image_thumbnail": "",                     "title": "Request for new bin(s) - residential",                     "description": "Propmain ref  3234-1114",                     "status": "submitted",                     "address": "36 Pine Tree Close",                     "location": "Peterborough, England",                     "zipcode": "PE1 1EJ",                     "user": "",                     "date_created": 1417173208,                     "count_comments": 0,                     "count_followers": 0,                     "count_supporters": 0,                     "lat": 52.599967,                     "lon": -0.233482,                     "user_follows": 0,                     "user_comments": 0,                     "user_request": 1,                     "rank": "0"                 }             }         ],         "status": {             "type": "success",             "message": "Success",             "code": 200,             "code_message": "Ok"         }     } }   What i've tried:   Map&lt;String,Object&gt; rawObj = (Map&lt;String,Object&gt;) JSON.deserializeUntyped(jsonString);     Map&lt;String,Object&gt; responseObj = (Map&lt;String,Object&gt;)rawObj.get('response');     List&lt;Object&gt; reqs = (List&lt;Object&gt;) responseObj.get('requests');     System.debug('Map Size = ' + reqs.size());     Map&lt;String, Object&gt; i = new Map&lt;String, Object&gt; ();     for (Object x : reqs) {          i = (Map&lt;String, Object&gt;)x; }     Map&lt;String,Object&gt; requests = (Map&lt;String,Object&gt;)i.get('request');     System.debug('Map Size = ' + i.size());     for (String field : i.keySet()){          Object id = i.get(field);         Object title = i.get('title');         System.debug('Id : ' + id);         System.debug('title : ' + title);          //System.debug('Title : ' + title);       } 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: Make tools indestructible in Minecraft In Minecraft, is there any way to make tools indestructible (without using mods)? I want to make some tools indestructible (for an adventure map). Is it possible to do this using enchantments (or a command of some kind?) What is the !! (not not) operator in JavaScript? MT7610U - Unable to install wifi driver Alert on edit after a downvote Why Multiplication of zero by any number is zero? If I multiply $a$ by $0$, it means $a$ is added $0$ times, but I am not able to visualize $0$ times! Why couldn't Bond have backup at the battle of Skyfall? I think I am missing a key plot point here.   Bond had to fake-kidnap M and bring her to Skyfall in order to lure Silva there for one last stand. Why did this have to be a secret from his colleagues at MI6? Why couldn't there have been other agents there to help defend the house and take down Silva?  Also, why did he have to have Q lay a fake trail to get Silva to follow him to Skyfall when he was actually going there, and he wanted Silva to follow him? Accessing class members on a NULL pointer I was experimenting with C++ and found the below code as very strange.   class Foo{ public:     virtual void say_virtual_hi(){         std::cout &lt;&lt; "Virtual Hi";     }      void say_hi()     {         std::cout &lt;&lt; "Hi";     } };  int main(int argc, char** argv) {     Foo* foo = 0;     foo-&gt;say_hi(); // works well     foo-&gt;say_virtual_hi(); // will crash the app     return 0; }   I know that the virtual method call crashes because it requires a vtable lookup and can only work with valid objects.   I have the following questions    How does the non virtual method say_hi work on a NULL pointer? Where does the object foo get allocated?   Any thoughts? How to lazy load images in ListView in Android